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

 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 Yq,Rk3,EqV,E6,lJ,zkP,iuS,g8,DI,lIS,xbk,ckk,U6,sk6,N83,SP,yk8,gq3,rkk,Ubl,S6P,IIS,Wlu,fIu,p3k,B8b,AE,hkq,l8,oqI,xZ,kSk,cS,sA,Zuu,tPP,IA,WS,uV8,Rqq,AEb,Fb,EZk,zq6,aA,iDl,lzS,xGk,CD,YAI,oA,ODJ,Nfk,Tfk,cF,QAP,vZk,gZ8,nZV,HDV,xn,JES,z0,yEq,mG3,KSI,jAl,bDk,QN,FSq,pSl,Bfq,azk,C8S,oZV,kNk,tHV,wSP,qAu,dGu,A9l,ifk,xg3,ljV,ff,c9k,VGV,FY,y9u,gn3,Tok,nnI,QHV,BF,hqV,Cf,h9,oH,HfJ,kn,Ugq,r9l,Dgk,ui,$gk,XFu,SWV,Ijk,Wml,KmI,jHk,bfJ,fjV,t9,Fml,ajk,hQJ,k0k,Eg,Zf6,uYJ,ib,Lmk,Abl,wF3,Ygk,EDk,zb8,sRP,xLu,VcI,yb6,mLq,
QRk,vDI,rbb,DLS,Xxu,KoP,jR3,bqP,pxb,aE6,Zql,Xf,wx3,eb8,qg6,fq,pq,Bx,wZ,ec,qL,zKS,xRl,cO6,sGk,VBk,JO6,OT,yO3,sT,NR,Vr,yr,T28,QG3,vUI,gU8,nU6,rOV,DR3,UR3,$Rk,ST8,vt,Qr,I4l,K6V,W6u,by3,jG3,f4q,ptq,F6V,SB,IG,Ky,Wt,be,a4k,fy,hK8,tB8,FH,wtS,uHk,eKk,aG,qTl,L6k,dRk,Cy,Yp6,kU,zdP,is3,GO,xMP,lgS,crV,Osk,Mpk,sS6,ue,NLu,Vpk,eB,Jr6,yrV,qR,Ly,d2,RS,mMk,QSJ,TL6,Ar,g2k,n26,HsV,PO,zE,iG,lG,x2,cO,rr3,DM8,$MS,XOS,Spk,IgI,KM6,WM3,jS3,bsu,fg3,pOb,FM6,BL3,MM,agq,CGS,TE,hdI,vO,gL,o2k,Zs8,tpS,wO3,edl,qpk,LM6,YUk,Ptl,Etk,
zoP,iJk,lel,x_k,sX6,rL,Nz8,VK8,Jlk,ylk,m_k,Tz8,vtk,WEb,jXk,bJk,FE3,Bzk,jp,aeV,otu,ZJb,tKk,wvV,uLq,eoI,qUJ,LE8,d_k,A6k,Y9l,kZk,PmP,E0V,zUV,iXl,li3,x9k,c63,OXq,Mqk,J68,NE8,TEq,y63,m9J,g0V,n0J,HXq,QNk,D96,v0I,$9k,Ls,XVI,dL,Al,S9S,Kfk,Wfl,fiJ,ZXV,Ffk,pVk,aik,hUb,BES,LfJ,uFq,d9u,RAl,Avk,Yek,PIk,zAq,EW3,iQq,lrq,xI3,cvV,MOb,Nuk,VO8,Jv3,mIS,yvl,SeI,zZ,IrS,WJl,j1k,bQb,frk,pDk,Buk,arJ,CI3,N_,V6,hAb,wDb,mE,TZ,LJk,R4b,Ow8,Hv,NrV,VxS,Tr6,yNP,m1P,XL,QWk,vSu,nS8,HwS,rNJ,D1u,U1b,$1k,XUl,IO6,KTb,jWl,WTV,RsJ,FL,CJ,
YFP,PBl,E_P,zsI,in6,lFk,cZl,MXl,Onu,RN,Y0,g_V,im,$zq,XGP,lm,IF6,SFI,aFS,CBl,hs6,k53,wGI,esk,qFb,L3J,dzk,A$b,PjP,Eau,M9,iKP,c$u,OKu,M_6,snk,V_q,xjk,zyI,N5k,N9,mju,gaq,QnV,J6,HKk,Djq,Uj6,$j3,XjJ,Qy,Sak,KxP,IAV,WxV,bK3,nX,hyk,k$S,ZK3,U9,wjk,Sq,WV,KX,Lxb,t_V,dj8,fX,Pyk,BV,aN,igu,cw3,MyJ,s$q,NvI,CX,VyP,h6,Jwb,mKk,TvJ,Q$q,vcl,nck,G8,Hg3,rwk,um,LX,$Kq,Xuk,S_3,INl,j$J,bgb,puk,FeJ,GRk,Zgk,hOu,wuJ,u4S,q_q,xW,Oe,MI,A_8,YPk,VI,PPI,Ehk,zPP,iOI,x4k,c_3,OOu,M0I,lZk,sKk,mJ,V0P,y_8,QI,J_q,m43,Nqk,Tq3,gu,vhS,gh3,HO8,
r_k,U4J,D4k,$4b,IZS,Xek,WrV,CP6,ohS,ZOI,GrI,kr3,t0l,u9P,qPb,ePb,d4V,I1,Agk,YC6,PEu,Eob,cgV,MFJ,Ojk,soS,NHk,bI,VFl,Jg6,mTk,Qok,no8,rgP,Hjk,PU,DTq,THI,WZk,bj8,fMI,pkV,xS,FZI,aMP,ooJ,ZjV,Gik,eYb,qC8,LZS,dTJ,A0k,ix8,YQk,Ebq,z2k,lnu,x66,OxS,c0S,sak,M9S,nw,NFP,J0k,y0V,vbk,IW,Kw,gbP,nbJ,WU,U6k,pw,FN,BU,KcV,aW,bxl,oW,fnk,pK8,FcS,BFu,ZO,anb,CwP,h2l,kX3,Zxk,uE6,qQk,Y_,Lcu,d68,RpP,Afl,Yd6,Pkk,Epk,zpk,z5,xik,cfk,Ook,MIJ,s4u,NaS,VIk,JfS,yfu,miI,TaJ,Q48,vpk,Nz,Wbk,j43,VA,JZ,yA,boV,fs6,prP,FbS,Bab,as3,CkJ,ZoV,tIu,
wrl,uIV,ep3,vG,nn,HG,rM,$_,XX,SX,Lb6,Kn,Rxk,WG,Ahk,Yl6,jX,P5J,EwS,zxl,Vzl,yhk,gwP,Doq,rhk,Jh8,Uob,Slk,k26,fok,u7u,FyV,wZk,exJ,aB,Lyk,hZ,Rwb,A7J,P4k,E9S,zwk,lc8,G5,c78,OCk,M5b,sZJ,NUP,V5V,J7b,xfl,TUP,QZV,v9q,tZ,Uf3,$fk,Dfl,S5q,Ick,W0I,jZk,K08,C46,o9k,GjI,t5b,Pj,dfq,L0k,ELV,iY3,lLV,xHk,cMI,OYk,Mib,Nj,vLl,nLk,Tlk,mHI,gL3,NlV,rMI,fLk,$Hu,X1b,SwV,ZYk,w1l,Gok,RHk,ko8,sE3,dHk,UHk,bY8,til,HYJ,JMq,ViS,yMl,QE6,oLk,In,Vdu,y4q,mVl,T0P,QPl,XTq,biP,fk6,CK,FpV,CcV,GIk,kIu,tdk,wTJ,eHV,Lpk,qJq,dVl,R$,R8k,Amu,Yr8,
Aw,cmS,xhS,l5P,Nck,O0k,VbV,s9k,Pu,JmJ,Q9S,mh6,Tck,gsl,rmk,DhJ,XLl,Srl,I5q,WOk,iy,b0J,FOu,f5J,BcI,osk,ktP,tb3,unP,MK,s_,dh3,R3S,NK,Vc,AVS,Jw,yc,YR6,me,PDb,TR,Ej3,z3u,vu,i6V,l78,xmq,cV8,O6J,sLS,Mvl,Vvu,mmP,yVu,TeS,QLk,Neq,vj6,H6u,njI,JV6,rV6,Dmk,DN,UmJ,XCl,$mI,SRu,I7q,W88,K86,jLk,$c,f7J,pCS,b63,Bel,a7u,CD8,GGJ,wCk,dmV,Puk,Sy,i7k,l0V,I$,xcS,by,fg,VRk,Wu,Cg,JRI,yRI,TAI,Q2k,gB8,H7k,rRk,DcI,Uck,Sku,b7b,Wh3,XbV,f0k,pbk,GR,j23,Fhb,wv,BAP,a06,Cu6,hzk,Z7P,oB8,Gxu,ez6,qk8,Y3k,A8P,z5q,MNb,s78,VN3,y86,mAl,Q7q,
vl8,glV,HF3,r8u,DAI,Xsb,W5I,j7k,S3I,fxV,F5k,ps8,bFk,B$J,CKP,h5k,ol6,ksb,GsP,iP,lP,OP,sP,wsk,e5k,L5l,AAl,N4,Vz,YXk,J_,zMq,iA6,luI,mr,s88,yAI,T4q,Q8J,vyk,gyI,ny6,DlP,Qz,Ulk,SX6,ve,Iuk,j8q,bAk,fuq,WL8,hMb,Gbk,oyV,ZAV,uQV,qXl,dl3,Pd3,Y2l,lw3,DZ,xdV,cnq,UP,O$b,$h,ME6,sFk,NbS,Jnl,VEq,yn8,md6,Tbb,QF6,Udk,Xmu,IwJ,S2S,H$V,gPJ,Wsl,b$k,awl,Cdk,kpb,euq,LsV,KO,ddl,AHl,Y0P,Eku,x26,MYk,VYJ,JH8,yH8,m2b,nk8,Txu,U2b,$2k,XPk,IG6,bP,Kw6,jck,b9q,fGl,pPk,FwP,BxP,aGI,h$l,okq,Be,kf6,GfP,tYk,CO,Z9l,utq,d2V,kh,RVl,ASJ,YuV,
zVb,iUu,PX6,xBV,sy8,Nkl,VJb,e0,JS8,QyP,vIS,Ro,HUk,gIq,nIP,UBS,$Bk,XyP,WCI,fVk,bUP,jyS,pyu,Bk6,aVk,GJb,CXV,ZU8,wyV,tJl,RgP,PV6,zgq,lRk,MQ6,TS6,fj,vg6,rXk,UYV,jF,ko,Wv8,p9J,fRq,BSI,aRl,hgl,CV3,ogq,kLk,Gi,nw8,jjJ,FvJ,brk,hg,tQk,w9k,uvk,egI,q8k,Lvk,dYk,Rlk,Yb,Aeu,YOJ,PoV,ENJ,zl8,lw,idu,ceS,MM8,sYP,QYk,gN8,nNq,HdJ,DNI,UNV,TX,XMk,SOq,IXI,KUk,WU3,jYI,fXq,FUk,aXk,Cok,tMV,Gyu,wMl,qOb,LU8,Dn,dNV,RSk,AsP,E5P,i_S,zSq,xJS,O_8,S9,sCV,NYq,Mmk,Vmu,Jsk,mJS,QCb,TYk,v5b,ysJ,g5V,n5k,H_P,rs6,DJ6,UJb,$Jk,Xik,S7k,WAS,KAb,
jCV,fYV,b_k,Ia,pi3,aYJ,kA8,FA6,tmk,wiq,uqu,eSk,dJP,i1k,lpq,cdJ,O1k,kb,Vwk,TRu,g7J,GX,Da8,rd8,UaV,wF,$a8,Xdq,SVI,K$k,W$k,jmV,b1S,pd6,F$J,wdI,kDb,Z1k,eR3,usl,qV3,L$q,R13,Yhb,Euu,pX8,Btb,umu,L43,REk,ABS,Ybq,POu,EMk,ilk,lmP,Olk,MtI,sJV,NIk,Vtb,JBu,yBk,mvk,vMl,rB8,lk,xp,cr,Od,Dvk,Ni,$vI,pwk,oMV,COk,zvq,ip8,lPk,SbI,fmJ,WXV,cCl,Opb,MLS,BIk,NyI,JCV,muk,vXk,gXP,$p,I4,Ko,Xfl,$uV,Wu3,jz3,oXV,GFk,tLJ,wfq,qHI,duJ,LuI,YD3,EmJ,MnV,ciP,iPl,OPq,l_3,s_q,yiu,tf,DWS,nmV,$WI,Xl6,I_6,KKu,uk,WK6,f_J,FKk,B7S,CMJ,a_k,Lo,
tn8,El,u3J,e_6,i5,qDl,LKP,dWk,RGP,Ajk,Ymk,Pfq,EE3,zG3,iSk,lqu,xqk,cjJ,OS6,MW6,l5,sUl,Nwk,VWJ,Jjq,yjk,mqq,Twb,QU3,vEV,gE6,nE6,HSk,cZ,Dqk,$qP,Smk,Wa6,fq6,pob,Fak,aqq,hG6,oEk,k1k,my,u0u,tW6,eGJ,qmk,LaJ,Ac3,Yok,P0u,zeJ,Sz,l$P,$w,cc3,Omq,I6,Mkk,sb8,NBV,Vk6,WZ,TBJ,v4J,Dr3,rcq,$rk,XAk,hh,Sol,I$6,WIk,bmV,f$8,FII,BBu,jbq,a$b,Ggk,ujJ,eek,o6,qoq,LIk,PWI,drk,ADk,Y$k,cD6,z66,O5u,swb,Vsk,JDP,yDu,m8u,TC8,Qwb,gzk,nzS,H5J,rD3,D8q,$8J,S$V,Wgq,pRu,aBl,h6J,Glu,ez,Z5k,tsk,wRk,uo3,e6b,Lg6,d8k,RtV,AK8,YY8,P2u,E8S,ztJ,iIu,
lJq,xtk,OIk,cKk,N9k,JKk,dg,yKk,Qiq,T96,n8q,HIl,rK8,Utk,SY6,Wj3,Kjb,X8q,fJP,bIP,C2I,p86,zj,B9S,w8k,kKJ,GKu,ZI3,tuI,uDJ,qYl,etq,i4,l4,Eek,dtI,P9P,YZI,RX8,Aou,ll8,co3,M4l,Ovk,JoI,V4b,meP,veb,geV,QfI,nel,ro8,HvI,Uek,SZ6,Vp,Ilk,KNu,bvk,alJ,ZvV,yp,wal,LNk,YSS,Atk,deJ,RCP,gU,ia8,PNP,Erk,lh8,ct3,xwq,sQk,N_V,Jtk,ytV,mw8,T_k,QQk,grk,nrk,b4,rtP,DwP,SSV,Ihl,aZ,Kkk,jQS,or8,Gj,Fkk,hCJ,B_k,ahq,t7l,Za8,qS6,wpI,Lkk,dwu,t7,Ay3,Yqk,PqV,R9u,LC,Evk,wU,xku,Jyb,yyJ,mkV,TWq,Qqk,vvk,ryk,nvq,HL6,gv6,Uk8,Sqk,Wn6,jq3,fKb,BWk,
phu,Fn3,aKP,h9q,ovu,kzk,GzV,ZL8,t$S,u5u,ih,qq3,Rmk,dku,YMJ,Azl,PCq,EOV,lh,l8u,Tsu,yzS,gOk,nOk,XI3,SMl,I8k,Kzk,WzS,jpk,pIq,Fz8,Bsu,CCk,hml,oOJ,v1,tlI,ZZ8,Gmk,kmk,u_u,Lzb,eml,Rnk,Aul,YN3,PlS,xQ6,ETk,znu,iR3,cuJ,ORP,MTJ,lv6,rl,VTk,yuk,JuJ,Uw,TDI,Qdl,vT3,mQl,gTk,nT6,HR8,rub,DQk,$QJ,X5V,SNJ,IvV,jdJ,WRJ,BDk,KRk,$L,av3,bR6,FRb,oTk,kUk,GUI,ZRJ,tT6,w5l,uM3,enk,qN3,LRq,dQ3,A28,Yvu,PRS,zfk,lal,c2P,Ma6,y2S,VaJ,J26,NPq,stJ,m7k,TPP,QtS,vfu,CY,HVJ,r2J,D7b,U7l,$7b,XES,jtb,Iaq,Sv3,Kik,GCq,ofl,Wi3,hfk,LiP,d7J,R0b,
AYJ,Y1P,P3I,ECJ,z0b,xnk,OMk,sDk,V8l,JYS,yYI,vCl,QDl,gCk,HMu,xH,UnV,$nS,XNk,S1k,OJ,MV,W26,f1l,h03,ZMk,t8V,wNq,uBk,e0k,q1P,dnl,A1I,Rhk,Y4k,ERl,zhk,ibP,lSk,xFJ,c1k,mp,ObI,mF8,Tnb,V1P,Nnk,y1V,J13,Hbl,r18,DFJ,UFV,$Fq,XYV,KYJ,S4k,ISq,C13,hhS,oRu,ZbV,t1P,kcV,Gck,AJk,PZV,zBu,lU8,cJ3,MZI,JJI,yJl,mCb,vi8,QIl,TpS,giu,niu,rJS,DCV,UCu,$Ck,XJk,Sy8,KHl,WHl,jIk,bhI,fUS,pJS,aUk,CZV,oiJ,GYI,kYk,Zhu,Sd,tZk,wJJ,uAu,eBu,RJk,dCk,APq,YGq,Pzl,E1k,l6k,cPS,OE8,Mfb,s5P,NOq,Vfk,JPk,yPk,m$l,TO6,v1l,Q58,g1I,n13,HEk,rPV,D$8,U$P,
$$q,XQJ,Fk,I63,KWP,j5b,bEI,f6V,pQk,FW3,BO8,Cz3,hJu,kBV,ZEI,wQ8,LWq,eJV,uUb,qGP,d$l,RFk,AF3,EJk,zFk,iBl,l2k,cF3,OBk,MDk,NJk,seI,VDk,JF3,yF3,Qeb,vJk,gJI,nJk,HB6,rFu,$Eu,X28,qV,bBJ,f2k,FDS,CaP,a2q,hFk,oJP,Li,R9,Gn6,ZBk,PL,Er,eFP,tDk,w2q,dEq,R7P,A3k,Yik,i33,x3S,c3V,O3k,MCS,slq,VCq,J3k,y38,m36,TGV,Ql6,v$V,lx,g$l,n$k,cL,H3k,r33,D3I,U3u,$3J,XB6,sr,Nh,SiV,Iy6,Vh,KVk,WV8,jlu,b3k,pBJ,FVP,ay3,Ghb,khl,o$P,Z3k,tCV,d3k,e7S,qiJ,uZS,LVV,yh,Yt8,PQ8,EQk,zIb,i2V,x0k,O2u,NQk,m0k,Jq3,mO,VUl,nQ6,rq3,Tt,D08,U03,$0S,Stk,
I9q,Kdq,Wdk,b2k,f9k,p0S,BQ6,a98,hIJ,oQq,w0S,tUV,eIu,qtS,Yfk,PAk,EVS,zak,xxk,Mrb,D5,Ur,sV3,NhI,Vrl,JxS,yxV,Thk,QVV,vVq,gVV,Hzk,rxq,Dxl,$s,Uxk,$xV,ICV,Kq8,Xn,Sb,bzu,WqJ,Fqk,fC6,BhV,CAS,jb,ha6,oVq,Zzb,wHk,bx,eaP,qfl,Lqk,dxb,RjP,AWV,Ynk,iNJ,lQV,ONP,xsV,cWk,MAk,JWb,s3u,VAl,yWk,ms3,T13,gdu,ndk,HN3,Dsk,Usl,WQI,KQq,B1q,hju,ks,od3,KJJ,kqk,Gqk,tAk,ej6,qnk,EAk,zL3,ik3,l3q,xSP,cGk,Mj3,s08,Vju,yGk,NVI,JGJ,TVV,mSb,vAk,Hkk,gAb,rGq,DSb,USV,$Sk,Xqq,SLk,K98,I38,f36,BVP,pqu,a36,Cpk,hL3,L0,oAu,kMk,RL,ZkS,GMu,tjP,wqJ,
eLV,qL6,dSu,Rrk,AIk,Yx8,PnI,ic8,xXk,Mok,OcS,sMq,N66,yI8,UX3,vxJ,X6k,Sxb,K1P,W1k,p6k,F16,B6V,aHP,Cnb,hrq,oxV,k_k,Zc8,G_8,upq,erI,qxV,L1S,dXk,RiP,AT3,P_k,iWl,ldS,xPq,cTq,OWu,M3J,V3k,Nil,Tiq,QrV,vFk,gFI,nFl,rTk,HWu,UP3,K7b,fdS,bW3,pzV,F7b,Bi8,C_I,vC,oF3,re,GQS,t3k,wz8,dPJ,Aaq,EKk,i4P,ltS,cau,O4k,MeP,Ndl,Jak,yak,Tdk,gKu,vKS,Qvk,K6,H4u,nKb,raP,DD3,UDq,$DI,XgV,Ss3,Itb,W_k,jvk,b4u,ft3,pgk,F_P,Bdu,atu,C$6,oKb,kdP,L_b,dDS,RTV,YBb,PHk,E6k,lfq,hV,NKJ,V68,JL6,yLI,myk,oL,kj,A6,GG,tV,Dyk,UyS,SBq,KP6,IfP,uD,WPk,
jTl,btl;_.Rk=function(R,A){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Rk);else{var Y=Error().stack;Y&&(this.stack=Y)}R&&(this.message=String(R));A!==void 0&&(this.cause=A)};
Yq=function(){throw Error("E");};
Rk3=function(R,A){A=String.fromCharCode.apply(null,A);return R==null?A:R+A};
EqV=function(R){var A=!1;A=A===void 0?!1:A;if(Akk){if(A&&(Y6q?!R.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(R)))throw Error("F");R=(PJk||(PJk=new TextEncoder)).encode(R)}else{for(var Y=0,P=new Uint8Array(3*R.length),E=0;E<R.length;E++){var z=R.charCodeAt(E);if(z<128)P[Y++]=z;else{if(z<2048)P[Y++]=z>>6|192;else{if(z>=55296&&z<=57343){if(z<=56319&&E<R.length){var c=R.charCodeAt(++E);if(c>=56320&&c<=57343){z=(z-55296)*1024+c-56320+65536;P[Y++]=z>>18|
240;P[Y++]=z>>12&63|128;P[Y++]=z>>6&63|128;P[Y++]=z&63|128;continue}else E--}if(A)throw Error("F");z=65533}P[Y++]=z>>12|224;P[Y++]=z>>6&63|128}P[Y++]=z&63|128}}R=Y===P.length?P:P.subarray(0,Y)}return R};
E6=function(R){_.P3.setTimeout(function(){throw R;},0)};
_.iJ=function(R,A){return R.lastIndexOf(A,0)==0};
lJ=function(R,A){var Y=R.length-A.length;return Y>=0&&R.indexOf(A,Y)==Y};
_.c3=function(R){return/^[\s\xa0]*$/.test(R)};
_.O6=function(R,A){return R.indexOf(A)!=-1};
_.Mb=function(R,A){return _.O6(R.toLowerCase(),A.toLowerCase())};
_.Vk=function(R,A){var Y=0;R=s6(String(R)).split(".");A=s6(String(A)).split(".");for(var P=Math.max(R.length,A.length),E=0;Y==0&&E<P;E++){var z=R[E]||"",c=A[E]||"";do{z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];c=/(\d*)(\D*)(.*)/.exec(c)||["","","",""];if(z[0].length==0&&c[0].length==0)break;Y=zkP(z[1].length==0?0:parseInt(z[1],10),c[1].length==0?0:parseInt(c[1],10))||zkP(z[2].length==0,c[2].length==0)||zkP(z[2],c[2]);z=z[3];c=c[3]}while(Y==0)}return Y};
zkP=function(R,A){return R<A?-1:R>A?1:0};
_.yk=function(){var R=_.P3.navigator;return R&&(R=R.userAgent)?R:""};
iuS=function(R){if(!TS||!v3)return!1;for(var A=0;A<v3.brands.length;A++){var Y=v3.brands[A].brand;if(Y&&_.O6(Y,R))return!0}return!1};
g8=function(R){return _.O6(_.yk(),R)};
DI=function(){return TS?!!v3&&v3.brands.length>0:!1};
lIS=function(){return DI()?!1:g8("Opera")};
xbk=function(){return DI()?!1:g8("Trident")||g8("MSIE")};
ckk=function(){return DI()?iuS("Microsoft Edge"):g8("Edg/")};
U6=function(){return g8("Firefox")||g8("FxiOS")};
_.Ou8=function(){return g8("Safari")&&!(_.$q()||(DI()?0:g8("Coast"))||lIS()||(DI()?0:g8("Edge"))||ckk()||(DI()?iuS("Opera"):g8("OPR"))||U6()||g8("Silk")||g8("Android"))};
_.$q=function(){return DI()?iuS("Chromium"):(g8("Chrome")||g8("CriOS"))&&!(DI()?0:g8("Edge"))||g8("Silk")};
_.MP6=function(){return g8("Android")&&!(_.$q()||U6()||lIS()||g8("Silk"))};
sk6=function(R){var A={};R.forEach(function(Y){A[Y[0]]=Y[1]});
return function(Y){return A[Y.find(function(P){return P in A})]||""}};
N83=function(R){var A=_.yk();if(R==="Internet Explorer"){if(xbk())if((R=/rv: *([\d\.]*)/.exec(A))&&R[1])A=R[1];else{R="";var Y=/MSIE +([\d\.]+)/.exec(A);if(Y&&Y[1])if(A=/Trident\/(\d.\d)/.exec(A),Y[1]=="7.0")if(A&&A[1])switch(A[1]){case "4.0":R="8.0";break;case "5.0":R="9.0";break;case "6.0":R="10.0";break;case "7.0":R="11.0"}else R="7.0";else R=Y[1];A=R}else A="";return A}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");Y=[];for(var E;E=P.exec(A);)Y.push([E[1],E[2],E[3]||void 0]);
A=sk6(Y);switch(R){case "Opera":if(lIS())return A(["Version","Opera"]);if(DI()?iuS("Opera"):g8("OPR"))return A(["OPR"]);break;case "Microsoft Edge":if(DI()?0:g8("Edge"))return A(["Edge"]);if(ckk())return A(["Edg"]);break;case "Chromium":if(_.$q())return A(["Chrome","CriOS","HeadlessChrome"])}return R==="Firefox"&&U6()||R==="Safari"&&_.Ou8()||R==="Android Browser"&&_.MP6()||R==="Silk"&&g8("Silk")?(A=Y[2])&&A[1]||"":""};
_.VPP=function(R){if(DI()&&R!=="Silk"){var A=v3.brands.find(function(Y){return Y.brand===R});
if(!A||!A.version)return NaN;A=A.version.split(".")}else{A=N83(R);if(A==="")return NaN;A=A.split(".")}return A.length===0?NaN:Number(A[0])};
SP=function(){return TS?!!v3&&!!v3.platform:!1};
_.Jkk=function(){return SP()?v3.platform==="Android":g8("Android")};
yk8=function(){return g8("iPhone")&&!g8("iPod")&&!g8("iPad")};
_.Ik=function(){return yk8()||g8("iPad")||g8("iPod")};
_.mbk=function(){return SP()?v3.platform==="macOS":g8("Macintosh")};
_.T8V=function(){return SP()?v3.platform==="Windows":g8("Windows")};
_.QkS=function(){return SP()?v3.platform==="Chrome OS":g8("CrOS")};
_.Ku=function(R){return R[R.length-1]};
_.jP=function(R,A,Y){A=_.vqu(R,A,Y);return A<0?null:typeof R==="string"?R.charAt(A):R[A]};
_.vqu=function(R,A,Y){for(var P=R.length,E=typeof R==="string"?R.split(""):R,z=0;z<P;z++)if(z in E&&A.call(Y,E[z],z,R))return z;return-1};
gq3=function(R){for(var A=_.bJ,Y=typeof R==="string"?R.split(""):R,P=R.length-1;P>=0;P--)if(P in Y&&A.call(void 0,Y[P],P,R))return P;return-1};
_.B3=function(R,A){return _.fu(R,A)>=0};
_.nqk=function(R,A){_.B3(R,A)||R.push(A)};
_.ak=function(R,A){A=_.fu(R,A);var Y;(Y=A>=0)&&_.HuS(R,A);return Y};
_.HuS=function(R,A){Array.prototype.splice.call(R,A,1)};
_.Cu=function(R){var A=R.length;if(A>0){for(var Y=Array(A),P=0;P<A;P++)Y[P]=R[P];return Y}return[]};
_.kq=function(R,A){for(var Y=1;Y<arguments.length;Y++){var P=arguments[Y];if(_.ok(P)){var E=R.length||0,z=P.length||0;R.length=E+z;for(var c=0;c<z;c++)R[E+c]=P[c]}else R.push(P)}};
_.Dbk=function(R,A,Y,P){Array.prototype.splice.apply(R,rkk(arguments,1))};
rkk=function(R,A,Y){return arguments.length<=2?Array.prototype.slice.call(R,A):Array.prototype.slice.call(R,A,Y)};
Ubl=function(R,A){A=A||R;for(var Y=0,P=0,E={};P<R.length;){var z=R[P++],c=_.ZI(z)?"o"+_.tk(z):(typeof z).charAt(0)+z;Object.prototype.hasOwnProperty.call(E,c)||(E[c]=!0,A[Y++]=z)}A.length=Y};
_.X3l=function(R,A,Y){Y=Y||_.$b3;for(var P=0,E=R.length,z;P<E;){var c=P+(E-P>>>1);var M=Y(A,R[c]);M>0?P=c+1:(E=c,z=!M)}return z?P:-P-1};
_.uJ=function(R,A,Y){if(!_.ok(R)||!_.ok(A)||R.length!=A.length)return!1;var P=R.length;Y=Y||S6P;for(var E=0;E<P;E++)if(!Y(R[E],A[E]))return!1;return!0};
_.$b3=function(R,A){return R>A?1:R<A?-1:0};
S6P=function(R,A){return R===A};
IIS=function(R,A,Y){A=Array.prototype.splice.call(R,A,1);Array.prototype.splice.call(R,Y,0,A[0])};
Wlu=function(R){return Klk[R]||""};
fIu=function(R){if(!jkV)return _.eP(R);R=buk.test(R)?R.replace(buk,Wlu):R;R=atob(R);for(var A=new Uint8Array(R.length),Y=0;Y<R.length;Y++)A[Y]=R.charCodeAt(Y);return A};
p3k=function(R,A){R.__closure__error__context__984382||(R.__closure__error__context__984382={});R.__closure__error__context__984382.severity=A};
_.Lu=function(R){R=Error(R);p3k(R,"warning");return R};
B8b=function(R,A){if(R!=null){var Y;var P=(Y=FlJ)!=null?Y:FlJ={};Y=P[R]||0;Y>=A||(P[R]=Y+1,R=Error(),p3k(R,"incident"),E6(R))}};
AE=function(R,A,Y){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Y===void 0?0:Y)&&Symbol.for&&R?Symbol.for(R):R!=null?Symbol(R):Symbol():A};
hkq=function(R,A){EA||_.zN in R||aI3(R,CJk);R[_.zN]|=A};
l8=function(R,A){EA||_.zN in R||aI3(R,CJk);R[_.zN]=A};
oqI=function(R){if(4&R)return 512&R?512:1024&R?1024:0};
xZ=function(R){hkq(R,34);return R};
kSk=function(R){hkq(R,32);return R};
cS=function(){return typeof BigInt==="function"};
sA=function(R,A){return A===void 0?R.copyOnWrite!==MG&&!!(2&(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.zN]|0)):!!(2&A)&&R.copyOnWrite!==MG};
_.UA=function(R,A){if(R!=null)if(typeof R==="string")R=R?new TN(R,rf):_.Dz();else if(R.constructor!==TN)if(GS6&&R!=null&&R instanceof Uint8Array)R=R.length?new TN(new Uint8Array(R),rf):_.Dz();else{if(!A)throw Error();R=void 0}return R};
Zuu=function(R,A){if(typeof A!=="number"||A<0||A>=R.length)throw Error();};
tPP=function(R,A,Y){var P=A&128?0:-1,E=R.length,z;if(z=!!E)z=R[E-1],z=z!=null&&typeof z==="object"&&z.constructor===Object;var c=E+(z?-1:0);for(A=A&128?1:0;A<c;A++)Y(A-P,R[A]);if(z){R=R[E-1];for(var M in R)!isNaN(M)&&Y(+M,R[M])}};
IA=function(R){return R&128?SH:void 0};
WS=function(R){R.isGuard_doNotManuallySetPrettyPlease=!0;return R};
uV8=function(){var R=w3b;return WS(function(A){for(var Y in R)if(A===R[Y]&&!/^[0-9]+$/.test(Y))return!0;return!1})};
_.jH=function(R){var A=R;if(eku(A)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(A))throw Error(String(A));}else if(q6J(A)&&!Number.isSafeInteger(A))throw Error(String(A));return Llq?BigInt(R):R=dbl(R)?R?"1":"0":eku(R)?R.trim()||"0":String(R)};
Rqq=function(R,A){if(R.length>A.length)return!1;if(R.length<A.length||R===A)return!0;for(var Y=0;Y<R.length;Y++){var P=R[Y],E=A[Y];if(P>E)return!1;if(P<E)return!0}};
AEb=function(R){var A=R>>>0;b8=A;pD=(R-A)/4294967296>>>0};
Fb=function(R){if(R<0){AEb(-R);var A=_.x(YAI(b8,pD));R=A.next().value;A=A.next().value;b8=R>>>0;pD=A>>>0}else AEb(R)};
EZk=function(R){var A=P86||(P86=new DataView(new ArrayBuffer(8)));A.setFloat32(0,+R,!0);pD=0;b8=A.getUint32(0,!0)};
zq6=function(R,A){var Y=A*4294967296+(R>>>0);return Number.isSafeInteger(Y)?Y:_.BS(R,A)};
aA=function(R,A){var Y=A&2147483648;Y&&(R=~R+1>>>0,A=~A>>>0,R==0&&(A=A+1>>>0));R=zq6(R,A);return typeof R==="number"?Y?-R:R:Y?"-"+R:R};
iDl=function(R){var A=b8,Y=pD,P=Y>>31;Y=(Y<<1|A>>>31)^P;R(A<<1^P,Y)};
lzS=function(R,A){var Y=-(R&1);R=(R>>>1|A<<31)^Y;return aA(R,A>>>1^Y)};
_.BS=function(R,A){A>>>=0;R>>>=0;if(A<=2097151)var Y=""+(4294967296*A+R);else cS()?Y=""+(BigInt(A)<<BigInt(32)|BigInt(R)):(Y=(R>>>24|A<<8)&16777215,A=A>>16&65535,R=(R&16777215)+Y*6777216+A*6710656,Y+=A*8147497,A*=2,R>=1E7&&(Y+=R/1E7>>>0,R%=1E7),Y>=1E7&&(A+=Y/1E7>>>0,Y%=1E7),Y=A+xGk(Y)+xGk(R));return Y};
xGk=function(R){R=String(R);return"0000000".slice(R.length)+R};
_.cE8=function(R,A){A&2147483648?cS()?R=""+(BigInt(A|0)<<BigInt(32)|BigInt(R>>>0)):(A=_.x(YAI(R,A)),R=A.next().value,A=A.next().value,R="-"+_.BS(R,A)):R=_.BS(R,A);return R};
CD=function(R){if(R.length<16)Fb(Number(R));else if(cS())R=BigInt(R),b8=Number(R&BigInt(4294967295))>>>0,pD=Number(R>>BigInt(32)&BigInt(4294967295));else{var A=+(R[0]==="-");pD=b8=0;for(var Y=R.length,P=A,E=(Y-A)%6+A;E<=Y;P=E,E+=6)P=Number(R.slice(P,E)),pD*=1E6,b8=b8*1E6+P,b8>=4294967296&&(pD+=Math.trunc(b8/4294967296),pD>>>=0,b8>>>=0);A&&(A=_.x(YAI(b8,pD)),R=A.next().value,A=A.next().value,b8=R,pD=A)}};
YAI=function(R,A){A=~A;R?R=~R+1:A+=1;return[R,A]};
oA=function(R){return Array.prototype.slice.call(R)};
_.kZ=function(R,A){throw Error(A===void 0?"unexpected value "+R+"!":A);};
_.GN=function(R){if(R!=null&&typeof R!=="number")throw Error("L`"+typeof R+"`"+R);return R};
_.Zz=function(R){if(R==null||typeof R==="number")return R;if(R==="NaN"||R==="Infinity"||R==="-Infinity")return Number(R)};
ODJ=function(R){if(R!=null&&typeof R!=="boolean")throw Error("M`"+_.tE(R)+"`"+R);return R};
_.MH3=function(R){if(R==null||typeof R==="boolean")return R;if(typeof R==="number")return!!R};
_.LD=function(R){switch(typeof R){case "bigint":return!0;case "number":return qG(R);case "string":return sAI.test(R);default:return!1}};
_.df=function(R){if(!qG(R))throw _.Lu("enum");return R|0};
_.Yn=function(R){return R==null?R:qG(R)?R|0:void 0};
Nfk=function(R){if(typeof R!=="number")throw _.Lu("int32");if(!qG(R))throw _.Lu("int32");return R|0};
_.PF=function(R){return R==null?R:Nfk(R)};
_.EW=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return qG(R)?R|0:void 0};
_.VHJ=function(R){if(R==null)return R;if(typeof R==="string"&&R)R=+R;else if(typeof R!=="number")return;return qG(R)?R>>>0:void 0};
Tfk=function(R){var A=0;A=A===void 0?0:A;if(!_.LD(R))throw _.Lu("int64");var Y=typeof R;switch(A){case 512:switch(Y){case "string":return z0(R);case "bigint":return String(ii(64,R));default:return JES(R)}case 1024:switch(Y){case "string":return yEq(R);case "bigint":return _.jH(ii(64,R));default:return mG3(R)}case 0:switch(Y){case "string":return z0(R);case "bigint":return _.jH(ii(64,R));default:return xn(R)}default:return _.kZ(A,"Unknown format requested type for int64")}};
cF=function(R){return R==null?R:Tfk(R)};
QAP=function(R){if(R[0]==="-")return!1;var A=R.length;return A<20?!0:A===20&&Number(R.substring(0,6))<184467};
vZk=function(R){var A=R.length;return R[0]==="-"?A<20?!0:A===20&&Number(R.substring(0,7))>-922337:A<19?!0:A===19&&Number(R.substring(0,6))<922337};
gZ8=function(R){if(R<0){Fb(R);var A=_.BS(b8,pD);R=Number(A);return OW(R)?R:A}A=String(R);if(QAP(A))return A;Fb(R);return zq6(b8,pD)};
nZV=function(R){if(vZk(R))return R;CD(R);return _.cE8(b8,pD)};
HDV=function(R){if(QAP(R))return R;CD(R);return _.BS(b8,pD)};
xn=function(R){R=Ng(R);OW(R)||(Fb(R),R=aA(b8,pD));return R};
_.rEl=function(R){R=Ng(R);return R>=0&&OW(R)?R:gZ8(R)};
JES=function(R){R=Ng(R);if(OW(R))R=String(R);else{var A=String(R);vZk(A)?R=A:(Fb(R),R=_.cE8(b8,pD))}return R};
_.DGl=function(R){R=Ng(R);if(R>=0&&OW(R))R=String(R);else{var A=String(R);QAP(A)?R=A:(Fb(R),R=_.BS(b8,pD))}return R};
z0=function(R){var A=Ng(Number(R));if(OW(A))return String(A);A=R.indexOf(".");A!==-1&&(R=R.substring(0,A));return nZV(R)};
yEq=function(R){var A=Ng(Number(R));if(OW(A))return _.jH(A);A=R.indexOf(".");A!==-1&&(R=R.substring(0,A));return cS()?_.jH(ii(64,BigInt(R))):_.jH(nZV(R))};
mG3=function(R){return OW(R)?_.jH(xn(R)):_.jH(JES(R))};
_.UGk=function(R){return OW(R)?_.jH(_.rEl(R)):_.jH(_.DGl(R))};
_.$GI=function(R){var A=Ng(Number(R));if(OW(A)&&A>=0)return String(A);A=R.indexOf(".");A!==-1&&(R=R.substring(0,A));return HDV(R)};
_.XSV=function(R){var A=Ng(Number(R));if(OW(A)&&A>=0)return _.jH(A);A=R.indexOf(".");A!==-1&&(R=R.substring(0,A));return cS()?_.jH((0,_.VN)(64,BigInt(R))):_.jH(HDV(R))};
_.IzS=function(R){if(R==null)return R;if(typeof R==="bigint")return SAI(R)?R=Number(R):(R=ii(64,R),R=SAI(R)?Number(R):String(R)),R;if(_.LD(R))return typeof R==="number"?xn(R):z0(R)};
KSI=function(R,A){A=A===void 0?!1:A;var Y=typeof R;if(R==null)return R;if(Y==="bigint")return String(ii(64,R));if(_.LD(R))return Y==="string"?z0(R):A?JES(R):xn(R)};
_.WSk=function(R){var A=typeof R;if(R==null)return R;if(A==="bigint")return _.jH(ii(64,R));if(_.LD(R))return A==="string"?yEq(R):mG3(R)};
jAl=function(R){if(R==null)return R;var A=typeof R;if(A==="bigint")return String(ii(64,R));if(_.LD(R)){if(A==="string")return z0(R);if(A==="number")return xn(R)}};
bDk=function(R){if(R==null)return R;var A=typeof R;if(A==="bigint")return String((0,_.VN)(64,R));if(_.LD(R)){if(A==="string")return _.$GI(R);if(A==="number")return _.rEl(R)}};
_.J9=function(R){if(typeof R!=="string")throw Error();return R};
QN=function(R){if(R!=null&&typeof R!=="string")throw Error();return R};
_.vF=function(R){return R==null||typeof R==="string"?R:void 0};
FSq=function(R,A,Y,P){if(R!=null&&R[nf]===HF)return R;if(!Array.isArray(R))return Y?P&2?A[fzk]||(A[fzk]=pSl(A)):new A:void 0;Y=R[_.zN]|0;P=Y|P&32|P&2;P!==Y&&l8(R,P);return new A(R)};
pSl=function(R){R=new R;xZ(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return R};
Bfq=function(R,A,Y){R=A?Nfk(R):_.EW(R);return R==null?Y?0:void 0:R|0};
azk=function(R){return R};
C8S=function(R){return R};
oZV=function(R,A,Y,P,E,z){R=FSq(R,P,Y,z);E&&(R=hqV(R));return R};
kNk=function(R){return[R,this.get(R)]};
tHV=function(){return GNV||(GNV=new $n(xZ([]),void 0,void 0,void 0,ZDk))};
wSP=function(R){var A=XY(IH);return A?R[A]:void 0};
qAu=function(R,A){var Y=Y===void 0?!1:Y;if(XY(ubk)&&XY(IH)&&void 0===ubk){var P=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=P[IH];if(!E)return;if(E=E.reviveUnknownFields)try{E(P,A,eqI);return}catch(z){E6(z)}}Y&&(R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(Y=XY(IH))&&Y in R&&(R=R[Y])&&delete R[A])};
dGu=function(R,A){var Y=XY(IH),P;EA&&Y&&((P=R[Y])==null?void 0:P[A])!=null&&B8b(LSI,3)};
A9l=function(R,A){A<100||B8b(RQP,1)};
ifk=function(R,A,Y,P){var E=P!==void 0;P=!!P;var z=XY(IH),c;!E&&EA&&z&&(c=R[z])&&YWk(c,A9l);z=[];var M=R.length;c=4294967295;var N=!1,y=!!(A&64),m=y?A&128?0:-1:void 0;if(!(A&1)){var T=M&&R[M-1];T!=null&&typeof T==="object"&&T.constructor===Object?(M--,c=M):T=void 0;if(y&&!(A&128)&&!E){N=!0;var Q;c=((Q=PiI)!=null?Q:azk)(c-m,m,R,T,void 0)+m}}A=void 0;for(Q=0;Q<M;Q++){var g=R[Q];if(g!=null&&(g=Y(g,P))!=null)if(y&&Q>=c){var r=Q-m,I=void 0;((I=A)!=null?I:A={})[r]=g}else z[Q]=g}if(T)for(var b in T)M=T[b],
M!=null&&(M=Y(M,P))!=null&&(Q=+b,g=void 0,y&&!Number.isNaN(Q)&&(g=Q+m)<c?z[g]=M:(Q=void 0,((Q=A)!=null?Q:A={})[b]=M));A&&(N?z.push(A):z[c]=A);E&&XY(IH)&&(R=wSP(R))&&R instanceof Enq&&(z[IH]=zQl(R));return z};
xg3=function(R){R[0]=ljV(R[0]);R[1]=ljV(R[1]);return R};
ljV=function(R){switch(typeof R){case "number":return Number.isFinite(R)?R:""+R;case "bigint":return SAI(R)?Number(R):""+R;case "boolean":return R?1:0;case "object":if(Array.isArray(R)){var A=R[_.zN]|0;return R.length===0&&A&1?void 0:ifk(R,A,ljV)}if(R!=null&&R[nf]===HF)return c9k(R);if(R instanceof TN){A=R.JSC$8812_value_;if(A==null)R="";else if(typeof A==="string")R=A;else{if(jkV){for(var Y="",P=0,E=A.length-10240;P<E;)Y+=String.fromCharCode.apply(null,A.subarray(P,P+=10240));Y+=String.fromCharCode.apply(null,
P?A.subarray(P):A);A=btoa(Y)}else A=_.WF(A);R=R.JSC$8812_value_=A}return R}if(R instanceof $n)return R=R.size!==0?Array.from(jG.prototype.entries.call(R),xg3):void 0,R;return}return R};
ff=function(R,A){if(A){PiI=A==null||A===azk||A[Ofu]!==MGl?azk:A;try{return c9k(R)}finally{PiI=void 0}}return c9k(R)};
c9k=function(R){R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ifk(R,R[_.zN]|0,ljV)};
VGV=function(R){switch(typeof R){case "boolean":return sHV||(sHV=[0,void 0,!0]);case "number":return R>0?void 0:R===0?Nok||(Nok=[0,void 0]):[-R,void 0];case "string":return[0,R];case "object":return R}};
FY=function(R,A,Y){return R=_.pf(R,A[0],A[1],Y?1:2)};
_.pf=function(R,A,Y,P){P=P===void 0?0:P;if(R==null){var E=32;Y?(R=[Y],E|=128):R=[];A&&(E=E&-8380417|(A&1023)<<13)}else{if(!Array.isArray(R))throw Error("O");E=R[_.zN]|0;if(J9S&&1&E)throw Error("P");2048&E&&!(2&E)&&y9u();if(E&256)throw Error("Q");if(E&64)return P!==0||E&2048||l8(R,E|2048),R;if(Y&&(E|=128,Y!==R[0]))throw Error("R");a:{Y=R;E|=64;var z=Y.length;if(z){var c=z-1,M=Y[c];if(M!=null&&typeof M==="object"&&M.constructor===Object){A=E&128?0:-1;c-=A;if(c>=1024)throw Error("T");for(var N in M)z=
+N,z<c&&(Y[z+A]=M[N],delete M[N]);E=E&-8380417|(c&1023)<<13;break a}}if(A){N=Math.max(A,z-(E&128?0:-1));if(N>1024)throw Error("U");E=E&-8380417|(N&1023)<<13}}}E|=64;P===0&&(E|=2048);l8(R,E);return R};
y9u=function(){if(J9S)throw Error("S");B8b(mgV,5)};
gn3=function(R,A){if(typeof R!=="object")return R;if(Array.isArray(R)){var Y=R[_.zN]|0;return R.length===0&&Y&1?void 0:Tok(R,Y,A)}if(R!=null&&R[nf]===HF)return QHV(R);if(R instanceof $n){A=R.arrayState;if(A&2)return R;if(!R.size)return;Y=xZ(vnk(R));if(R.valueCtor)for(R=0;R<Y.length;R++){var P=Y[R],E=P[1];E==null||typeof E!=="object"?E=void 0:E!=null&&E[nf]===HF?E=QHV(E):Array.isArray(E)?E=Tok(E,E[_.zN]|0,!!(A&32)):E=void 0;P[1]=E}return Y}if(R instanceof TN)return R};
Tok=function(R,A,Y){if(A&2)return R;!Y||4096&A||16&A?R=BF(R,A,!1,Y&&!(A&16)):(hkq(R,34),A&4&&Object.freeze(R));return R};
nnI=function(R,A,Y){R=new R.constructor(A);Y&&(R.copyOnWrite=MG);R.noLegacyNull=MG;return R};
QHV=function(R){var A=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=A[_.zN]|0;return sA(R,Y)?R:HfJ(R,A,Y)?nnI(R,A):BF(A,Y)};
BF=function(R,A,Y,P){P!=null||(P=!!(34&A));R=ifk(R,A,gn3,P);P=32;Y&&(P|=2);A=A&8380609|P;l8(R,A);return R};
hqV=function(R){var A=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=A[_.zN]|0;return sA(R,Y)?HfJ(R,A,Y)?nnI(R,A,!0):new R.constructor(BF(A,Y,!1)):R};
Cf=function(R){if(R.copyOnWrite!==MG)return!1;var A=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;A=BF(A,A[_.zN]|0);hkq(A,2048);R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=A;R.copyOnWrite=void 0;R.noLegacyNull=void 0;return!0};
h9=function(R){if(!Cf(R)&&sA(R,R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.zN]|0))throw Error();};
oH=function(R,A){A===void 0&&(A=R[_.zN]|0);A&32&&!(A&4096)&&l8(R,A|4096)};
HfJ=function(R,A,Y){return Y&2?!0:Y&32&&!(Y&4096)?(l8(A,Y|2),R.copyOnWrite=MG,!0):!1};
kn=function(R,A,Y,P,E){var z=Y+(E?0:-1),c=R.length-1;if(c>=1+(E?0:-1)&&z>=c){var M=R[c];if(M!=null&&typeof M==="object"&&M.constructor===Object)return M[Y]=P,A}if(z<=c)return R[z]=P,A;if(P!==void 0){var N;c=((N=A)!=null?N:A=R[_.zN]|0)>>13&1023||536870912;Y>=c?P!=null&&(z={},R[c+(E?0:-1)]=(z[Y]=P,z)):R[z]=P}return A};
_.wo=function(R,A,Y,P,E){var z=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=z[_.zN]|0;P=sA(R,c)?1:P;E=!!E||P===3;P===2&&Cf(R)&&(z=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=z[_.zN]|0);R=r9l(z,A);var M=R===Zj?7:R[_.zN]|0,N=Dgk(M,c);var y=4&N?!1:!0;if(y){4&N&&(R=oA(R),M=0,N=t9(N,c),c=kn(z,c,A,R));for(var m=0,T=0;m<R.length;m++){var Q=Y(R[m]);Q!=null&&(R[T++]=Q)}T<m&&(R.length=T);Y=(N|4)&-513;N=Y&=-1025;N&=-4097}N!==M&&(l8(R,N),2&N&&Object.freeze(R));return R=Ugq(R,N,z,
c,A,P,y,E)};
Ugq=function(R,A,Y,P,E,z,c,M){var N=A;z===1||(z!==4?0:2&A||!(16&A)&&32&P)?ui(A)||(A|=!R.length||c&&!(4096&A)||32&P&&!(4096&A||16&A)?2:256,A!==N&&l8(R,A),Object.freeze(R)):(z===2&&ui(A)&&(R=oA(R),N=0,A=t9(A,P),P=kn(Y,P,E,R)),ui(A)||(M||(A|=16),A!==N&&l8(R,A)));2&A||!(4096&A||16&A)||oH(Y,P);return R};
r9l=function(R,A,Y){R=eG(R,A,Y);return Array.isArray(R)?R:Zj};
Dgk=function(R,A){2&A&&(R|=2);return R|1};
ui=function(R){return!!(2&R)&&!!(4&R)||!!(256&R)};
$gk=function(R){return _.UA(R,!0)};
XFu=function(R){R=oA(R);for(var A=0;A<R.length;A++){var Y=R[A]=oA(R[A]);Array.isArray(Y[1])&&(Y[1]=xZ(Y[1]))}return R};
SWV=function(R,A){var Y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,P=Y[_.zN]|0;a:{var E=P;P=sA(R,P);!P&&Cf(R)&&(Y=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=Y[_.zN]|0);var z=eG(Y,A);R=!1;if(z==null){if(P){A=tHV();break a}z=[]}else if(z.constructor===$n)if(z.arrayState&2&&!P)z=vnk(z);else{A=z;break a}else Array.isArray(z)?R=!!((z[_.zN]|0)&2):z=[];if(P){if(!z.length){A=tHV();break a}R||(R=!0,xZ(z))}else R&&(R=!1,z=XFu(z));!R&&E&32&&kSk(z);P=new $n(z,void 0,Bfq,Bfq);E=kn(Y,
E,A,P);R||oH(Y,E);A=P}return A};
_.qg=function(R,A,Y,P){h9(R);var E=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=E[_.zN]|0;if(Y==null)return kn(E,z,A),R;var c=Y===Zj?7:Y[_.zN]|0,M=c,N=ui(c),y=N||Object.isFrozen(Y);N||(c=0);y||(Y=oA(Y),M=0,c=t9(c,z),y=!1);c|=5;var m;N=(m=oqI(c))!=null?m:0;for(m=0;m<Y.length;m++){var T=Y[m],Q=P(T,N);Object.is(T,Q)||(y&&(Y=oA(Y),M=0,c=t9(c,z),y=!1),Y[m]=Q)}c!==M&&(y&&(Y=oA(Y),c=t9(c,z)),l8(Y,c));kn(E,z,A,Y);return R};
_.Lf=function(R,A,Y,P,E){h9(R);var z=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;kn(z,z[_.zN]|0,A,(P==="0"?Number(Y)===0:Y===P)?void 0:Y,E);return R};
_.RR=function(R,A,Y){if(A&2)throw Error();var P=IA(A),E=r9l(R,Y,P),z=E===Zj?7:E[_.zN]|0,c=Dgk(z,A);if(2&c||ui(c)||16&c)E=oA(E),z=0,c=t9(c,A),kn(R,A,Y,E,P);c&=-13;c!==z&&l8(E,c);return E};
Ijk=function(R){if(EA){var A;return(A=R[YD])!=null?A:R[YD]=new Map}if(YD in R)return R[YD];A=new Map;Object.defineProperty(R,YD,{value:A});return A};
Wml=function(R,A,Y,P,E){var z=Ijk(R),c=KmI(z,R,A,Y,E);c!==P&&(c&&(A=kn(R,A,c,void 0,E)),z.set(Y,P));return A};
KmI=function(R,A,Y,P,E){var z=R.get(P);if(z!=null)return z;for(var c=z=0;c<P.length;c++){var M=P[c];eG(A,M,E)!=null&&(z!==0&&(Y=kn(A,Y,z,void 0,E)),z=M)}R.set(P,z);return z};
jHk=function(R,A,Y,P,E){var z=!1;P=eG(R,P,E,function(c){var M=FSq(c,Y,!1,A);z=M!==c&&M!=null;return M});
if(P!=null)return z&&!sA(P)&&oH(R,A),P};
bfJ=function(R,A,Y,P,E,z,c,M){var N=sA(R,Y);z=N?1:z;c=!!c||z===3;N=M&&!N;(z===2||N)&&Cf(R)&&(A=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y=A[_.zN]|0);R=r9l(A,E);var y=R===Zj?7:R[_.zN]|0,m=Dgk(y,Y);if(M=!(4&m)){var T=R,Q=Y,g=!!(2&m);g&&(Q|=2);for(var r=!g,I=!0,b=0,p=0;b<T.length;b++){var h=FSq(T[b],P,!1,Q);if(h instanceof P){if(!g){var L=sA(h);r&&(r=!L);I&&(I=L)}T[p++]=h}}p<b&&(T.length=p);m|=4;m=I?m&-4097:m|4096;m=r?m|8:m&-9}m!==y&&(l8(R,m),2&m&&Object.freeze(R));if(N&&!(8&m||!R.length&&
(z===1||(z!==4?0:2&m||!(16&m)&&32&Y)))){ui(m)&&(R=oA(R),m=t9(m,Y),Y=kn(A,Y,E,R));P=R;N=m;for(y=0;y<P.length;y++)T=P[y],m=hqV(T),T!==m&&(P[y]=m);N|=8;m=N=P.length?N|4096:N&-4097;l8(R,m)}return R=Ugq(R,m,A,Y,E,z,M,c)};
fjV=function(R){R==null&&(R=void 0);return R};
t9=function(R,A){return R=(2&A?R|2:R&-3)&-273};
_.pFk=function(R,A,Y,P,E){h9(R);A=_.wo(R,A,E,2,!0);var z;E=(z=oqI(A===Zj?7:A[_.zN]|0))!=null?z:0;A.push(Y(P,E));return R};
Fml=function(R,A,Y,P,E,z,c){h9(R);var M=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R=bfJ(R,M,M[_.zN]|0,Y,A,2,!0);if(z&&c)E!=null||(E=R.length-1),Zuu(R,E),R.splice(E,z),R.length||(R[_.zN]&=-4097);else{if(z){if(typeof E!=="number"||E<0||E>R.length)throw Error();}else P=P!=null?P:new Y;E!=void 0?R.splice(E,z,P):R.push(P);E=Y=R===Zj?7:R[_.zN]|0;(P=sA(P))?(Y&=-9,R.length===1&&(Y&=-4097)):Y|=4096;Y!==E&&l8(R,Y);P||oH(M)}};
ajk=function(R,A){if(typeof R==="string")return new Px(fIu(R),A);if(Array.isArray(R))return new Px(new Uint8Array(R),A);if(R.constructor===Uint8Array)return new Px(R,!1);if(R.constructor===ArrayBuffer)return R=new Uint8Array(R),new Px(R,!1);if(R.constructor===TN)return A=Bou(R)||new Uint8Array(0),new Px(A,!0,R);if(R instanceof Uint8Array)return R=R.constructor===Uint8Array?R:new Uint8Array(R.buffer,R.byteOffset,R.byteLength),new Px(R,!1);throw Error();};
hQJ=function(R){switch(typeof R){case "string":CiS(R)}};
k0k=function(R){switch(typeof R){case "string":on8(R)}};
Eg=function(){var R=function(){throw Error();};
Object.setPrototypeOf(R,R.prototype);return R};
Zf6=function(R,A){var Y=Y===void 0?G0k:Y;return new ze(R,A,Y)};
uYJ=function(R,A,Y,P,E){tGu(R,Y,wF3(A,P),E)};
ib=function(R,A,Y,P){var E=P[R];if(E)return E;E={};E.binaryFields=P;E.messageMetadata=VGV(P[0]);var z=P[1],c=1;z&&z.constructor===Object&&(E.extensions=z,z=P[++c],typeof z==="function"&&(E.isMessageSet=!0,eQk!=null||(eQk=z),qWP!=null||(qWP=P[c+1]),z=P[c+=2]));for(var M={};z&&Lmk(z);){for(var N=0;N<z.length;N++)M[z[N]]=z;z=P[++c]}for(N=1;z!==void 0;){typeof z==="number"&&(N+=z,z=P[++c]);var y=void 0;if(z instanceof ze)var m=z;else m=dg6,c--;z=void 0;if((z=m)==null?0:z.$$isMsg){z=P[++c];y=P;var T=c;
typeof z==="function"&&(z=z(),y[T]=z);y=z}z=P[++c];T=N+1;typeof z==="number"&&z<0&&(T-=z,z=P[++c]);for(;N<T;N++){var Q=M[N];y?Y(E,N,m,y,Q):A(E,N,m,Q)}}return P[R]=E};
Lmk=function(R){return Array.isArray(R)&&!!R.length&&typeof R[0]==="number"&&R[0]>0};
Abl=function(R){return Array.isArray(R)?R[0]instanceof ze?R:[RbJ,R]:[R,void 0]};
wF3=function(R,A){if(R instanceof _.lb)return R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(R))return FY(R,A,!1)};
Ygk=function(R,A,Y,P){var E=Y.$$binaryReaderFn;R[A]=P?function(z,c,M){return E(z,c,M,P)}:E};
EDk=function(R,A,Y,P,E){var z=Y.$$binaryReaderFn,c,M;R[A]=function(N,y,m){return z(N,y,m,M||(M=ib(PbP,Ygk,EDk,P).messageMetadata),c||(c=zb8(P)),E)}};
zb8=function(R){var A=R[iqu];if(A!=null)return A;var Y=ib(PbP,Ygk,EDk,R);A=Y.isMessageSet?function(P,E){return eQk(P,E,Y)}:function(P,E){for(;lES(E)&&E.nextWireType_!=4;){var z=E.nextField_,c=Y[z];
if(c==null){var M=Y.extensions;M&&(M=M[z])&&(M=xLu(M),M!=null&&(c=Y[z]=M))}if(c==null||!c(E,P,z)){M=E;c=M.fieldCursor_;cb3(M);if(M.discardUnknownFields)var N=void 0;else{var y=M.decoder_.cursor_-c;M.decoder_.cursor_=c;N=OqJ(M.decoder_,y)}y=M=c=void 0;var m=P;N&&((c=(M=(y=m[IH])!=null?y:m[IH]=new Enq)[z])!=null?c:M[z]=[]).push(N)}}if(P=wSP(P))P.reviveUnknownFields=Y.binaryFields[Mck];return!0};
R[iqu]=A;R[Mck]=sRP.bind(R);return A};
sRP=function(R,A,Y,P){var E=this[PbP],z=this[iqu],c=FY(void 0,E.messageMetadata,!1),M=wSP(R);if(M){var N=!1,y=E.extensions;if(y){E=function(r,I,b){if(b.length!==0)if(y[I])for(r=_.x(b),I=r.next();!I.done;I=r.next()){I=NZk(I.value);try{N=!0,z(c,I)}finally{I.free()}}else P==null||P(R,I,b)};
if(A==null)YWk(M,E);else if(M!=null){var m=M[A];m&&E(M,A,m)}if(N){var T=R[_.zN]|0;if(T&2&&T&2048&&(Y==null||!Y.reviveIntoImmutable))throw Error();var Q=IA(T),g=function(r,I){if(eG(R,r,Q)!=null)switch(Y==null?void 0:Y.resolutionBehavior){case 1:return;default:throw Error();}I!=null&&(T=kn(R,T,r,I,Q));delete M[r]};
A==null?tPP(c,c[_.zN]|0,function(r,I){g(r,I)}):g(A,eG(c,A,Q))}}}};
xLu=function(R){R=Abl(R);var A=R[0].$$binaryReaderFn;if(R=R[1]){var Y=zb8(R),P=ib(PbP,Ygk,EDk,R).messageMetadata;return function(E,z,c){return A(E,z,c,P,Y)}}return A};
VcI=function(R,A,Y){R[A]=Y.$$binaryWriterFn};
yb6=function(R,A,Y,P){var E,z,c=Y.$$binaryWriterFn;R[A]=function(M,N,y){return c(M,N,y,z||(z=ib(JbJ,VcI,yb6,P).messageMetadata),E||(E=mLq(P)))}};
mLq=function(R){var A=R[TZk];if(!A){var Y=ib(JbJ,VcI,yb6,R);A=function(P,E){return QRk(P,E,Y)};
R[TZk]=A}return A};
QRk=function(R,A,Y){tPP(R,R[_.zN]|0,function(P,E){if(E!=null){var z=vDI(Y,P);z?z(A,E,P):P<500||B8b(gDJ,3)}});
(R=wSP(R))&&YWk(R,function(P,E,z){cx(A,A.encoder_.end());for(P=0;P<z.length;P++)cx(A,Bou(z[P])||new Uint8Array(0))})};
vDI=function(R,A){var Y=R[A];if(Y)return Y;if(Y=R.extensions)if(Y=Y[A]){Y=Abl(Y);var P=Y[0].$$binaryWriterFn;if(Y=Y[1]){var E=mLq(Y),z=ib(JbJ,VcI,yb6,Y).messageMetadata;Y=R.isMessageSet?qWP(z,E):function(c,M,N){return P(c,M,N,z,E)}}else Y=P;
return R[A]=Y}};
_.nDk=function(R,A,Y){if(Array.isArray(A)){var P=A[_.zN]|0;if(P&4)return A;for(var E=0,z=0;E<A.length;E++){var c=R(A[E]);c!=null&&(A[z++]=c)}z<E&&(A.length=z);Y&&(l8(A,(P|5)&-1537),P&2&&Object.freeze(A));return A}};
_.ML=function(R,A,Y){return new ze(R,A,Y)};
_.HqV=function(R,A,Y){return new ze(R,A,Y)};
_.sg=function(R,A,Y){kn(R,R[_.zN]|0,A,Y,IA(R[_.zN]|0))};
rbb=function(R,A,Y){A=_.Zz(A);A!=null&&(_.NL(R,Y,1),R=R.encoder_,Y=P86||(P86=new DataView(new ArrayBuffer(8))),Y.setFloat64(0,+A,!0),b8=Y.getUint32(0,!0),pD=Y.getUint32(4,!0),_.V$(R,b8),_.V$(R,pD))};
DLS=function(R,A,Y){A=_.Zz(A);A!=null&&(_.NL(R,Y,5),R=R.encoder_,EZk(A),_.V$(R,b8))};
_.y$=function(R,A,Y){A=jAl(A);if(A!=null&&(hQJ(A),A!=null))switch(_.NL(R,Y,0),typeof A){case "number":R=R.encoder_;Fb(A);Jb(R,b8,pD);break;case "bigint":Y=BigInt.asUintN(64,A);Y=new ULq(Number(Y&BigInt(4294967295)),Number(Y>>BigInt(32)));Jb(R.encoder_,Y.JSC$8855_lo,Y.JSC$8855_hi);break;default:Y=CiS(A),Jb(R.encoder_,Y.JSC$8855_lo,Y.JSC$8855_hi)}};
Xxu=function(R,A,Y){A=_.EW(A);A!=null&&A!=null&&(_.NL(R,Y,0),_.$Lk(R.encoder_,A))};
_.IEk=function(R,A,Y){Sgq(R,Y,bDk(A))};
KoP=function(R,A,Y){A=_.MH3(A);A!=null&&(_.NL(R,Y,0),R.encoder_.JSC$8857_buffer_.push(A?1:0))};
jR3=function(R,A,Y){A=_.vF(A);A!=null&&WoV(R,Y,EqV(A))};
bqP=function(R,A,Y,P,E){tGu(R,Y,wF3(A,P),E)};
_.fEl=function(R,A,Y){A=A==null||typeof A=="string"||A instanceof TN?A:void 0;A!=null&&WoV(R,Y,ajk(A,!0).buffer)};
pxb=function(R,A,Y){A=_.VHJ(A);A!=null&&A!=null&&(_.NL(R,Y,0),mo(R.encoder_,A))};
_.FoJ=function(R,A,Y){A=_.EW(A);A!=null&&(A=parseInt(A,10),_.NL(R,Y,0),_.$Lk(R.encoder_,A))};
_.Te=function(R,A){return function(Y,P){var E={treatNewDataAsImmutable:!0};P&&Object.assign(E,P);Y=NZk(Y,void 0,void 0,E);try{var z=new R,c=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;zb8(A)(c,Y);var M=z}finally{Y.free()}return M}};
_.gZ=function(R){return function(A){return BZV(A,R)}};
aE6=function(R){return function(){return BZV(this,R)}};
_.Cbu=function(R){return WS(function(A){return A instanceof R&&!sA(A)})};
_.Hx=function(R){return function(A){return hbk(R,A)}};
Zql=function(R,A){return oDS({child:R,origin:A||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:keJ,getPayloadCase:function(Y){return Y.getPayloadCase()},
createInitMessage:function(Y){var P=new rZ,E=new Geq;Y=_.DE(E,1,Y);return _.Ug(P,5,$D,Y)}})};
Xf=function(R){return{valueOf:R}.valueOf()};
wx3=function(){var R=null;if(!tck)return R;try{var A=function(Y){return Y};
R=tck.createPolicy("goog#html",{createHTML:A,createScript:A,createScriptURL:A})}catch(Y){}return R};
eb8=function(){ufk===void 0&&(ufk=wx3());return ufk};
_.IR=function(R){var A=eb8();R=A?A.createScriptURL(R):R;return new Sc(R)};
_.Kq=function(R){if(R instanceof Sc)return R.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.Wx=function(R){return Object.isFrozen(R)&&Object.isFrozen(R.raw)};
qg6=function(R){return R.toString().indexOf("`")===-1};
fq=function(R){return new _.bb(Lol,R)};
pq=function(R){return R instanceof _.bb};
_.Ff=function(R){if(pq(R))return R.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
Bx=function(R){return new dLk(function(A){return A.substr(0,R.length+1).toLowerCase()===R+":"})};
_.Cq=function(R,A){A=A===void 0?RK6:A;if(pq(R))return R;for(var Y=0;Y<A.length;++Y){var P=A[Y];if(P instanceof dLk&&P.isValid(R))return fq(R)}};
_.oR=function(R,A){A=A===void 0?RK6:A;return _.Cq(R,A)||hb};
_.kD=function(R){var A=window;if(typeof MediaSource!=="undefined"&&R instanceof MediaSource||typeof A.ManagedMediaSource!=="undefined"&&R instanceof A.ManagedMediaSource)return fq(URL.createObjectURL(R));A=R.type;A.toLowerCase()==="application/octet-stream"?A=!0:(A=A.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),A=(A==null?void 0:A.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(A[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(A[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(A[1])||/^font\/[\w-]+$/i.test(A[1])));if(!A)throw Error("Z");return fq(URL.createObjectURL(R))};
_.AOk=function(R){for(var A=_.Ge.apply(1,arguments),Y=[R[0]],P=0;P<A.length;P++)Y.push(String(A[P])),Y.push(R[P+1]);return fq(Y.join(""))};
_.Pek=function(R){if(!YTP){a:{var A=document.createElement("a");try{A.href=R}catch(Y){R=void 0;break a}R=A.protocol;R=R===":"||R===""?"https:":R}return R}try{A=new URL(R)}catch(Y){return"https:"}return A.protocol};
_.ZE=function(R){R instanceof _.bb?R=_.Ff(R):R=EUl.test(R)?R:void 0;return R};
wZ=function(R,A){A=_.ZE(A);A!==void 0&&(R.href=A)};
ec=function(R){var A=eb8();R=A?A.createHTML(R):R;return new ub(R)};
qL=function(R){if(R instanceof ub)return R.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.Lq=function(R,A){R.src=_.Kq(A).toString()};
zKS=function(R,A){R.setAttribute("sandbox","");for(var Y=0;Y<A.length;Y++)R.sandbox.supports&&!R.sandbox.supports(A[Y])||R.sandbox.add(A[Y])};
_.l4k=function(R,A,Y){R.removeAttribute("srcdoc");switch(A){case 0:if(Y instanceof Sc)throw new iyb("TrustedResourceUrl",0);zKS(R,[]);A=_.ZE(Y);A!==void 0&&(R.src=A);break;case 1:if(!(Y instanceof Sc))throw new iyb(typeof Y,1);zKS(R,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.Lq(R,Y);break;case 2:if(Y instanceof Sc)throw new iyb("TrustedResourceUrl",2);zKS(R,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
A=_.ZE(Y);A!==void 0&&(R.src=A);break;default:_.kZ(A)}};
_.dZ=function(R,A,Y,P){A=_.ZE(A);return A!==void 0?R.open(A,Y,P):null};
_.RG=function(R){R=R===void 0?document:R;var A,Y;R=(Y=(A=R).querySelector)==null?void 0:Y.call(A,"script[nonce]");return R==null?"":R.nonce||R.getAttribute("nonce")||""};
_.YU=function(R){var A=eb8();R=A?A.createScript(R):R;return new _.AO(R)};
xRl=function(R){if(R instanceof _.AO)return R.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
cO6=function(R){var A=_.RG(R.ownerDocument);A&&R.setAttribute("nonce",A)};
_.Pt=function(R,A){R.textContent=xRl(A);cO6(R)};
_.ET=function(R,A){R.src=_.Kq(A);cO6(R)};
_.zO=function(R,A){if(R.nodeType===1&&/^(script|style)$/i.test(R.tagName))throw Error("Z");R.innerHTML=qL(A)};
_.ie=function(R,A,Y,P){if(R.length===0)throw Error("Z");R=R.map(function(z){if(z instanceof Oy3)z=z.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return z});
var E=Y.toLowerCase();if(R.every(function(z){return E.indexOf(z)!==0}))throw Error("aa`"+Y);
A.setAttribute(Y,P)};
_.xU=function(R,A,Y){if(A instanceof Sc)R.href=_.Kq(A).toString(),R.rel=Y;else{if(MB6.indexOf(Y)===-1)throw Error("ba`"+Y);A=_.ZE(A);A!==void 0&&(R.href=A,R.rel=Y)}};
sGk=function(R){if(R instanceof ct)return R.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.N2l=function(R,A){A=_.ZE(A);A!==void 0&&(R.href=A)};
VBk=function(R){return _.IR(R)};
JO6=function(R,A){R&&(A=R.indexOf(A),0<=A&&R.splice(A,1))};
OT=function(R){return typeof R==="function"};
yO3=function(R){return R instanceof MR||R&&"closed"in R&&OT(R.remove)&&OT(R.add)&&OT(R.unsubscribe)};
sT=function(){};
NR=function(R){mR8(function(){throw R;})};
Vr=function(R){return R};
yr=function(){return T28(_.Ge.apply(0,arguments))};
T28=function(R){return R.length===0?Vr:R.length===1?R[0]:function(A){return R.reduce(function(Y,P){return P(Y)},A)}};
QG3=function(R){var A;return(A=R!=null?R:void 0)!=null?A:Promise};
vUI=function(R,A){return new m6(function(Y){var P=0;return A.schedule(function(){P===R.length?Y.complete():(Y.next(R[P++]),Y.closed||this.schedule())})})};
gU8=function(R,A){if(!R)throw Error("ca");return new m6(function(Y){var P=new MR;P.add(A.schedule(function(){var E=R[Symbol.asyncIterator]();P.add(A.schedule(function(){var z=this;E.next().then(function(c){c.done?Y.complete():(Y.next(c.value),z.schedule())})}))}));
return P})};
nU6=function(R,A,Y){A=A.schedule(function(){try{Y.call(this)}catch(P){R.error(P)}},0);
R.add(A)};
rOV=function(R,A){return new m6(function(Y){var P;Y.add(A.schedule(function(){P=R[HyP]();nU6(Y,A,function(){var E=P.next(),z=E.value;E.done?Y.complete():(Y.next(z),this.schedule())})}));
return function(){var E;return OT((E=P)==null?void 0:E.return)&&P.return()}})};
DR3=function(R,A){return new m6(function(Y){var P=new MR;P.add(A.schedule(function(){var E=R[TO]();P.add(E.subscribe({next:function(z){P.add(A.schedule(function(){return Y.next(z)}))},
error:function(z){P.add(A.schedule(function(){return Y.error(z)}))},
complete:function(){P.add(A.schedule(function(){return Y.complete()}))}}))}));
return P})};
UR3=function(R,A){return new m6(function(Y){return A.schedule(function(){return R.then(function(P){Y.add(A.schedule(function(){Y.next(P);Y.add(A.schedule(function(){return Y.complete()}))}))},function(P){Y.add(A.schedule(function(){return Y.error(P)}))})})})};
$Rk=function(R){return new TypeError("da`"+(R!==null&&typeof R==="object"?"an invalid object":"'"+R+"'"))};
ST8=function(R,A){if(R!=null){if(OT(R[TO]))return DR3(R,A);if(XtP(R))return vUI(R,A);if(OT(R==null?void 0:R.then))return UR3(R,A);if(Symbol.asyncIterator&&OT(R==null?void 0:R[Symbol.asyncIterator]))return gU8(R,A);if(OT(R==null?void 0:R[HyP]))return rOV(R,A)}throw $Rk(R);};
vt=function(R,A){return A?ST8(R,A):Qr(R)};
Qr=function(R){if(R instanceof m6)return R;if(R!=null){if(OT(R[TO]))return I4l(R);if(XtP(R))return K6V(R);if(OT(R==null?void 0:R.then))return W6u(R);if(Symbol.asyncIterator&&OT(R==null?void 0:R[Symbol.asyncIterator]))return jG3(R);if(OT(R==null?void 0:R[HyP]))return by3(R)}throw $Rk(R);};
I4l=function(R){return new m6(function(A){var Y=R[TO]();if(OT(Y.subscribe))return Y.subscribe(A);throw new TypeError("ea");})};
K6V=function(R){return new m6(function(A){for(var Y=0;Y<R.length&&!A.closed;Y++)A.next(R[Y]);A.complete()})};
W6u=function(R){return new m6(function(A){R.then(function(Y){A.closed||(A.next(Y),A.complete())},function(Y){return A.error(Y)}).then(null,NR)})};
by3=function(R){return new m6(function(A){for(var Y=R[HyP]();!A.closed;){var P=Y.next(),E=P.value;P.done?A.complete():A.next(E)}return function(){return OT(Y==null?void 0:Y.return)&&Y.return()}})};
jG3=function(R){return new m6(function(A){f4q(R,A).catch(function(Y){return A.error(Y)})})};
f4q=function(R,A){var Y,P,E,z,c,M;return _.O(function(N){switch(N.nextAddress){case 1:_.g2(N,2,3),z=_.ny(R);case 5:return N.yield(z.next(),8);case 8:P=N.yieldResult;if(P.done){N.jumpTo(3);break}c=P.value;A.next(c);N.jumpTo(5);break;case 3:_.Ht(N);_.r2(N,9);if(!P||P.done||!(E=z.return)){N.jumpTo(9);break}return N.yield(E.call(z),9);case 9:_.Ht(N,0,0,1);if(Y)throw Y.error;_.D4(N,10,1);break;case 10:_.D4(N,4);break;case 2:M=_.UT(N);Y={error:M};N.jumpTo(3);break;case 4:A.complete(),_.XH(N)}})};
ptq=function(R,A){return A?vUI(R,A):K6V(R)};
F6V=function(R){return OT(R[R.length-1])?R.pop():void 0};
SB=function(R){var A=R[R.length-1];return A&&OT(A.schedule)?R.pop():void 0};
IG=function(){var R=_.Ge.apply(0,arguments),A=SB(R);return A?vUI(R,A):ptq(R)};
Ky=function(R){var A=OT(R)?R:function(){return R};
return new m6(function(Y){return Y.error(A())})};
Wt=function(R){return function(A){if(OT(A==null?void 0:A.lift))return A.lift(function(Y){try{return R(Y,this)}catch(P){this.error(P)}});
throw new TypeError("fa");}};
be=function(){return Wt(function(R,A){var Y=null;R._refCount++;var P=new jB(A,void 0,void 0,void 0,function(){if(!R||R._refCount<=0||0<--R._refCount)Y=null;else{var E=R._connection,z=Y;Y=null;!E||z&&E!==z||E.unsubscribe();A.unsubscribe()}});
R.subscribe(P);P.closed||(Y=R.connect())})};
a4k=function(){var R=B2k;var A=A===void 0?0:A;return Wt(function(Y,P){P.add(R.schedule(function(){return Y.subscribe(P)},A))})};
fy=function(R){return Wt(function(A,Y){var P=0;A.subscribe(new jB(Y,function(E){Y.next(R.call(void 0,E,P++))}))})};
hK8=function(R){return fy(function(A){return CeP(A)?R.apply(null,_.py(A)):R(A)})};
tB8=function(R){if(R.length===1){var A=R[0];if(oUk(A))return{args:A,keys:null};if(A&&typeof A==="object"&&kOb(A)===GOS)return R=Zyl(A),{args:R.map(function(Y){return A[Y]}),
keys:R}}return{args:R,keys:null}};
FH=function(){var R=_.Ge.apply(0,arguments),A=SB(R),Y=F6V(R);R=tB8(R);var P=R.args,E=R.keys;if(P.length===0)return vt([],A);A=new m6(wtS(P,A,E?function(z){for(var c={},M=0;M<z.length;M++)c[E[M]]=z[M];return c}:Vr));
return Y?A.pipe(hK8(Y)):A};
wtS=function(R,A,Y){Y=Y===void 0?Vr:Y;return function(P){uHk(A,function(){for(var E=R.length,z=Array(E),c=E,M=R.map(function(){return!1}),N=!0,y={i$jscomp$217:0};y.i$jscomp$217<E;y={i$jscomp$217:y.i$jscomp$217},y.i$jscomp$217++)uHk(A,function(m){return function(){vt(R[m.i$jscomp$217],A).subscribe(new Bt(P,function(T){z[m.i$jscomp$217]=T;
N&&(M[m.i$jscomp$217]=!0,N=!M.every(Vr));N||P.next(Y(z.slice()))},function(){return--c===0}))}}(y),P)},P)}};
uHk=function(R,A,Y){R?Y.add(R.schedule(A)):A()};
eKk=function(R,A,Y,P){var E=[],z=0,c=0,M=!1,N=function(y){z++;Qr(Y(y,c++)).subscribe(new jB(A,function(m){A.next(m)},void 0,function(){z--;
for(var m={};E.length&&z<P;m={bufferedValue:void 0})m.bufferedValue=E.shift(),N(m.bufferedValue);!M||E.length||z||A.complete()}))};
R.subscribe(new jB(A,function(y){return z<P?N(y):E.push(y)},void 0,function(){M=!0;
!M||E.length||z||A.complete()}));
return function(){E=null}};
aG=function(R,A){var Y=Y===void 0?Infinity:Y;if(OT(A))return aG(function(P,E){return fy(function(z,c){return A(P,z,E,c)})(Qr(R(P,E)))},Y);
typeof A==="number"&&(Y=A);return Wt(function(P,E){return eKk(P,E,R,Y)})};
qTl=function(R){R=R===void 0?Infinity:R;return aG(Vr,R)};
L6k=function(){var R=_.Ge.apply(0,arguments);return qTl(1)(ptq(R,SB(R)))};
dRk=function(R){return new m6(function(A){Qr(R()).subscribe(A)})};
Cy=function(R,A,Y){if(OT(Y)){var P=Y;Y=void 0}if(P)return Cy(R,A,Y).pipe(hK8(P));P=_.x(OT(R.addEventListener)&&OT(R.removeEventListener)?RdS.map(function(c){return function(M){return R[c](A,M,Y)}}):OT(R.addListener)&&OT(R.removeListener)?ArS.map(Yp6(R,A)):OT(R.on)&&OT(R.off)?PGJ.map(Yp6(R,A)):[]);
var E=P.next().value,z=P.next().value;return!E&&XtP(R)?aG(function(c){return Cy(c,A,Y)})(ptq(R)):new m6(function(c){if(!E)throw new TypeError("ga");
var M=function(){var N=_.Ge.apply(0,arguments);return c.next(1<N.length?N:N[0])};
E(M);return function(){return z(M)}})};
Yp6=function(R,A){return function(Y){return function(P){return R[Y](A,P)}}};
kU=function(){var R=_.Ge.apply(0,arguments),A=SB(R);var Y=typeof R[R.length-1]==="number"?R.pop():Infinity;return R.length?R.length===1?Qr(R[0]):qTl(Y)(ptq(R,A)):hO};
zdP=function(R){return R.length===1&&E2P(R[0])?R[0]:R};
is3=function(){var R=zdP(_.Ge.apply(0,arguments));return Wt(function(A,Y){var P=[A].concat(_.py(R)),E=function(){if(!Y.closed)if(P.length>0){try{var z=Qr(P.shift())}catch(M){E();return}var c=new jB(Y,void 0,sT,sT);Y.add(z.subscribe(c));c.add(E)}else Y.complete()};
E()})};
GO=function(R){return Wt(function(A,Y){var P=0;A.subscribe(new jB(Y,function(E){return R.call(void 0,E,P++)&&Y.next(E)}))})};
xMP=function(){var R=_.Ge.apply(0,arguments);R=zdP(R);return R.length===1?Qr(R[0]):new m6(lgS(R))};
lgS=function(R){return function(A){for(var Y=[],P={i$jscomp$220:0};Y&&!A.closed&&P.i$jscomp$220<R.length;P={i$jscomp$220:P.i$jscomp$220},P.i$jscomp$220++)Y.push(Qr(R[P.i$jscomp$220]).subscribe(new jB(A,function(E){return function(z){if(Y){for(var c=0;c<Y.length;c++)c!==E.i$jscomp$220&&Y[c].unsubscribe();Y=null}A.next(z)}}(P))))}};
crV=function(){var R=_.Ge.apply(0,arguments),A=F6V(R),Y=zdP(R);return Y.length?new m6(function(P){var E=Y.map(function(){return[]}),z=Y.map(function(){return!1});
P.add(function(){E=z=null});
for(var c={sourceIndex$jscomp$1:0};!P.closed&&c.sourceIndex$jscomp$1<Y.length;c={sourceIndex$jscomp$1:c.sourceIndex$jscomp$1},c.sourceIndex$jscomp$1++)Qr(Y[c.sourceIndex$jscomp$1]).subscribe(new jB(P,function(M){return function(N){E[M.sourceIndex$jscomp$1].push(N);E.every(function(y){return y.length})&&(N=E.map(function(y){return y.shift()}),P.next(A?A.apply(null,_.py(N)):N),E.some(function(y,m){return!y.length&&z[m]})&&P.complete())}}(c),void 0,function(M){return function(){z[M.sourceIndex$jscomp$1]=
!0;
!E[M.sourceIndex$jscomp$1].length&&P.complete()}}(c)));
return function(){E=z=null}}):hO};
Osk=function(R){var A,Y,P;return!!R&&typeof R.active==="boolean"&&typeof((A=R.clock)==null?void 0:A.now)==="function"&&((Y=R.clock)==null?void 0:Y.timeline)!==void 0&&!((P=R.lastMeasurement)==null||!P.timestamp)&&typeof R.equivalentTo==="function"&&typeof R.extrapolateToNow==="function"&&typeof R.extrapolateToTime==="function"&&typeof R.map==="function"&&typeof R.joinWith==="function"};
Mpk=function(R){function A(Y){return typeof Y==="boolean"||typeof Y==="string"||typeof Y==="number"||Y===void 0||Y===null}
return A(R)?!0:Array.isArray(R)?R.every(A):typeof R==="object"?Object.keys(R).every(function(Y){return typeof Y==="string"})&&Object.values(R).every(function(Y){return Array.isArray(Y)?Y.every(A):A(Y)}):!1};
sS6=function(R){if(Mpk(R))return R;if(Osk(R))return{lastMeasurement:{value:sS6(R.lastMeasurement.value),timestamp:tO(R.lastMeasurement.timestamp,new w2(0,R.lastMeasurement.timestamp.timeline))},active:R.active};try{return JSON.parse(JSON.stringify(R))}catch(A){}return String(R)};
ue=function(R,A){return function(Y){return new m6(function(P){return Y.subscribe(function(E){R.timeExecution(A,function(){P.next(E)})()},function(E){R.timeExecution(A,function(){P.error(E)})()},function(){R.timeExecution(A,function(){P.complete()})()})})}};
NLu=function(R,A){var Y=!1;return new m6(function(P){var E=R.setTimeout(function(){Y=!0;P.next(!0);P.complete()},A);
return function(){Y||R.clearTimeout(E)}})};
Vpk=function(R){R=R.global;if(R.fetchLater)return R.fetchLater.bind(R)};
eB=function(R){return Wt(function(A,Y){var P=null,E=!1,z;P=A.subscribe(new jB(Y,void 0,function(c){z=Qr(R(c,eB(R)(A)));P?(P.unsubscribe(),P=null,z.subscribe(Y)):E=!0}));
E&&(P.unsubscribe(),P=null,z.subscribe(Y))})};
Jr6=function(R,A,Y){return function(P,E){var z=Y,c=A,M=0;P.subscribe(new jB(E,function(N){var y=M++;c=z?R(c,N,y):(z=!0,N);E.next(c)},void 0,void 0))}};
yrV=function(R){R=R===void 0?null:R;return Wt(function(A,Y){var P=!1;A.subscribe(new jB(Y,function(E){P=!0;Y.next(E)},void 0,function(){P||Y.next(R);
Y.complete()}))})};
qR=function(){return Wt(function(R,A){R.subscribe(new jB(A,sT))})};
Ly=function(R){return Wt(function(A,Y){A.subscribe(new jB(Y,function(){return Y.next(R)}))})};
d2=function(R){return R<=0?function(){return hO}:Wt(function(A,Y){var P=0;
A.subscribe(new jB(Y,function(E){++P<=R&&(Y.next(E),R<=P&&Y.complete())}))})};
RS=function(R){var A=A===void 0?Vr:A;var Y;R=(Y=R)!=null?Y:mMk;return Wt(function(P,E){var z,c=!0;P.subscribe(new jB(E,function(M){var N=A(M);if(c||!R(z,N))c=!1,z=N,E.next(M)}))})};
mMk=function(R,A){return R===A};
QSJ=function(R){R=R===void 0?TL6:R;return Wt(function(A,Y){var P=!1;A.subscribe(new jB(Y,function(E){P=!0;Y.next(E)},void 0,function(){return P?Y.complete():Y.error(R())}))})};
TL6=function(){return new v2k};
Ar=function(){var R=_.Ge.apply(0,arguments);return function(A){return L6k(A,IG.apply(null,_.py(R)))}};
g2k=function(R){return Wt(function(A,Y){var P=0;A.subscribe(new jB(Y,function(E){R.call(void 0,E,P++,A)||(Y.next(!1),Y.complete())},void 0,function(){Y.next(!0);
Y.complete()}))})};
n26=function(){return Wt(function(R,A){var Y=[];R.subscribe(new jB(A,function(P){Y.push(P);1<Y.length&&Y.shift()},void 0,function(){for(var P=_.x(Y),E=P.next();!E.done;E=P.next())A.next(E.value);
A.complete()},function(){Y=null}))})};
HsV=function(R,A){var Y=arguments.length>=2;return function(P){return P.pipe(R?GO(function(E,z){return R(E,z,P)}):Vr,n26(),Y?yrV(A):QSJ(function(){return new v2k}))}};
PO=function(R){var A=OT(R)?R:function(){return R};
return OT()?Wt(function(Y,P){var E=A();(void 0)(E).subscribe(P).add(Y.subscribe(E))}):function(Y){var P=new Y2(Y,A);
OT(Y==null?void 0:Y.lift)&&(P.lift=Y.lift);P.source=Y;P.subjectFactory=A;return P}};
zE=function(R){var A=new Ep(R,void 0,void 0);return function(Y){return PO(function(){return A})(Y)}};
iG=function(R,A){return Wt(Jr6(R,A,arguments.length>=2))};
lG=function(){var R=_.Ge.apply(0,arguments),A=SB(R);return Wt(function(Y,P){(A?L6k(R,Y,A):L6k(R,Y)).subscribe(P)})};
x2=function(R){return Wt(function(A,Y){var P=null,E=0,z=!1;A.subscribe(new jB(Y,function(c){var M;(M=P)==null||M.unsubscribe();M=E++;Qr(R(c,M)).subscribe(P=new jB(Y,function(N){return Y.next(N)},void 0,function(){P=null;
z&&!P&&Y.complete()}))},void 0,function(){(z=!0,!P)&&Y.complete()}))})};
cO=function(R,A){A=A===void 0?!1:A;return Wt(function(Y,P){var E=0;Y.subscribe(new jB(P,function(z){var c=R(z,E++);(c||A)&&P.next(z);!c&&P.complete()}))})};
rr3=function(R,A,Y){var P=OT(R)||A||Y?{next:R,error:A,complete:Y}:R;return P?Wt(function(E,z){E.subscribe(new jB(z,function(c){var M;(M=P.next)==null||M.call(P,c);z.next(c)},function(c){var M;
(M=P.error)==null||M.call(P,c);z.error(c)},function(){var c;
(c=P.complete)==null||c.call(P);z.complete()}))}):Vr};
DM8=function(){var R=_.Ge.apply(0,arguments),A=F6V(R);return Wt(function(Y,P){for(var E=R.length,z=Array(E),c=R.map(function(){return!1}),M=!1,N={i$jscomp$230:0};N.i$jscomp$230<E;N={i$jscomp$230:N.i$jscomp$230},N.i$jscomp$230++)Qr(R[N.i$jscomp$230]).subscribe(new jB(P,function(y){return function(m){z[y.i$jscomp$230]=m;
M||c[y.i$jscomp$230]||(c[y.i$jscomp$230]=!0,(M=c.every(Vr))&&(c=null))}}(N),void 0,sT));
Y.subscribe(new jB(P,function(y){M&&(y=[y].concat(_.py(z)),P.next(A?A.apply(null,_.py(y)):y))}))})};
$MS=function(R){try{return!!R&&R.location.href!=null&&UM6(R,"foo")}catch(A){return!1}};
XOS=function(R){var A=[],Y=0,P;for(P in R)A[Y++]=P;return A};
Spk=function(R,A){for(var Y in R)if(R[Y]==A)return!0;return!1};
IgI=function(R,A,Y){for(var P in R)if(A.call(Y,R[P],P,R))return P};
KM6=function(R){if(!R||typeof R!=="object")return R;if(typeof R.clone==="function")return R.clone();if(typeof Map!=="undefined"&&R instanceof Map)return new Map(R);if(typeof Set!=="undefined"&&R instanceof Set)return new Set(R);if(R instanceof Date)return new Date(R.getTime());var A=Array.isArray(R)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(R)||R instanceof DataView?{}:new R.constructor(R.length),Y;for(Y in R)A[Y]=KM6(R[Y]);return A};
WM3=function(R){var A=arguments.length;if(A==1&&Array.isArray(arguments[0]))return WM3.apply(null,arguments[0]);if(A%2)throw Error("ka");for(var Y={},P=0;P<A;P+=2)Y[arguments[P]]=arguments[P+1];return Y};
jS3=function(R){var A=arguments.length;if(A==1&&Array.isArray(arguments[0]))return jS3.apply(null,arguments[0]);for(var Y={},P=0;P<A;P++)Y[arguments[P]]=!0;return Y};
_.Op=function(R){return new Oy3(R[0].toLowerCase())};
bsu=function(R){for(var A=_.Ge.apply(1,arguments),Y=R[0],P=0;P<R.length-1;P++)Y+=String(A[P]),Y+=R[P+1];A=document.implementation.createHTMLDocument("");P=A.createElement("style");A.head.appendChild(P);A=P.sheet;A.insertRule(Y,0);if(A.cssRules.length===1&&(Y=A.cssRules[0],Y instanceof CSSStyleRule))return new ct(Y.cssText.replace(/</g,"\\3C "))};
fg3=function(R){try{return new URL(R,window.document.baseURI)}catch(A){return new URL("about:invalid")}};
pOb=function(R,A){var Y=A.createRange();Y.selectNode(A.body);R=ec(R);return Y.createContextualFragment(qL(R))};
FM6=function(R){R=R.nodeName;return typeof R==="string"?R:"FORM"};
BL3=function(R){R=R.nodeType;return R===1||typeof R!=="number"};
MM=function(R,A,Y){R.setAttribute(A,Y)};
agq=function(R){return R.parts.map(function(A){var Y=A.descriptor;return""+A.url+(Y?" "+Y:"")}).join(" , ")};
_.Jr=function(R){var A=_.Ge.apply(1,arguments);if(A.length===0)return _.IR(R[0]);for(var Y=R[0],P=0;P<A.length;P++)Y+=encodeURIComponent(A[P])+R[P+1];return _.IR(Y)};
_.mM=function(R,A){R=_.Kq(R).toString();var Y=R.split(/[?#]/),P=/[?]/.test(R)?"?"+Y[1]:"";return CGS(Y[0],P,/[#]/.test(R)?"#"+(P?Y[2]:Y[1]):"",A)};
CGS=function(R,A,Y,P){function E(c,M){c!=null&&(Array.isArray(c)?c.forEach(function(N){return E(N,M)}):(A+=z+encodeURIComponent(M)+"="+encodeURIComponent(c),z="&"))}
var z=A.length?"&":"?";P.constructor===Object&&(P=Object.entries(P));Array.isArray(P)?P.forEach(function(c){return E(c[1],c[0])}):P.forEach(E);
return _.IR(R+A+Y)};
TE=function(R,A,Y,P){this.top=R;this.right=A;this.bottom=Y;this.left=P};
hdI=function(R){R=R.global;if(R.PendingGetBeacon)return R.PendingGetBeacon};
vO=function(R){return function(A){return A.pipe(o2k(R,PO(new QX)))}};
gL=function(R){return function(A){return A.pipe(o2k(R,zE(1)))}};
o2k=function(R,A){function Y(P){return new m6(function(E){return P.subscribe(function(z){ns(R,function(){return void E.next(z)},3)},function(z){ns(R,function(){return void E.error(z)},3)},function(){ns(R,function(){return void E.complete()},3)})})}
return yr(Y,a4k(),A,be(),Y)};
Zs8=function(R){var A=kEk(R);return A===null?new HO(null):A.pipe(fy(function(Y){Y=Y.serialize();if(GEq)Y=_.P3.btoa(Y);else{for(var P=[],E=0,z=0;z<Y.length;z++){var c=Y.charCodeAt(z);c>255&&(P[E++]=c&255,c>>=8);P[E++]=c}Y=_.WF(P)}return Y}),d2(1),gL(R.queue))};
tpS=function(R){var A=A===void 0?{}:A;if(typeof Event==="function")return new Event(R,A);if(typeof document!=="undefined"){var Y=document.createEvent("CustomEvent");Y.initCustomEvent(R,A.bubbles||!1,A.cancelable||!1,A.detail);return Y}throw Error();};
wO3=function(R){return typeof R==="string"?document.getElementById(R):R};
edl=function(R){var A=!1;A=A===void 0?!1:A;if(R.tagName==="IMG"){if(R.complete&&(!R.naturalWidth||!R.naturalHeight))return!0;var Y;if(A&&((Y=R.style)==null?void 0:Y.display)==="none")return!0}var P,E;return urk.test((P=R.getAttribute("width"))!=null?P:"")&&urk.test((E=R.getAttribute("height"))!=null?E:"")};
qpk=function(R,A){if(R.tagName==="IMG")return R.naturalWidth&&R.naturalHeight?!0:!1;try{if(R.readyState)var Y=R.readyState;else{var P,E;Y=(P=R.contentWindow)==null?void 0:(E=P.document)==null?void 0:E.readyState}return Y==="complete"}catch(z){return A===void 0?!1:A}};
LM6=function(R){R||(R=function(A,Y,P){A.addEventListener(Y,P)});
return R};
YUk=function(R,A){var Y=dMu();Y=Y===void 0?new Rol:Y;if(R=wO3(R)){var P=LM6(P);for(var E=!1,z=function(b){E||(E=!0,A(b))},c,M=2,N=0;N<Al3.length;++N)if(Al3[N]===R.tagName){M=3;
c=[R];break}c||(c=R.querySelectorAll(Al3.join(",")));var y=0,m=0,T=!0,Q=R=!1;N={};for(var g=0;g<c.length;N={isImg:void 0},g++){var r=c[g];if(!edl(r))if(N.isImg=r.tagName==="IMG",qpk(r,Y.crossDomainLoadedDefault))R=!0,N.isImg&&(T=!0);else{y++;var I=function(b){return function(p){y--;!y&&T&&z(M);b.isImg&&(p=p&&p.type==="error",m--,p||(T=!0),!m&&Q&&T&&z(M))}}(N);
P(r,"load",I);N.isImg&&(m++,P(r,"error",I))}}m===0&&(T=!0);c=null;c=_.P3.document.readyState==="complete";if(y===0&&!R&&c)M=5;else if(y||!R){P(_.P3,"load",function(){!Y.pendingImagesBlockLoad||!m&&T?z(4):Q=!0});
return}z(M)}};
Ptl=function(R,A,Y){if(R)for(var P=0;R!=null&&P<500&&!Y(R);++P)R=A(R)};
Etk=function(R,A){Ptl(R,function(Y){try{return Y===Y.parent?null:Y.parent}catch(P){}return null},A)};
zoP=function(R,A){if(R.tagName=="IFRAME")A(R);else{R=R.querySelectorAll("IFRAME");for(var Y=0;Y<R.length&&!A(R[Y]);++Y);}};
iJk=function(R){return(R=R.ownerDocument)&&(R.parentWindow||R.defaultView)||null};
lel=function(R,A,Y){try{var P=JSON.parse(Y.data)}catch(c){}if(typeof P==="object"&&P&&P.type==="creativeLoad"){var E=iJk(R);if(Y.source&&E){var z;Etk(Y.source,function(c){try{if(c.parent===E)return z=c,!0}catch(M){}});
z&&zoP(R,function(c){if(c.contentWindow===z)return A(P),!0})}}};
x_k=function(R){return typeof R==="string"?document.getElementById(R):R};
sX6=function(){var R={};return R[0]=_.Jr(clk,"current"),R[1]=_.Jr(OJq),R[2]=_.Jr(MKk),R};
rL=function(R,A){return R.left===A.left&&R.top===A.top&&R.width===A.width&&R.height===A.height};
Nz8=function(R,A){return{left:Math.max(R.left,A.left),top:Math.max(R.top,A.top),width:Math.max(0,Math.min(R.left+R.width,A.left+A.width)-Math.max(R.left,A.left)),height:Math.max(0,Math.min(R.top+R.height,A.top+A.height)-Math.max(R.top,A.top))}};
VK8=function(R,A){return{left:Math.round(R.left+A.x),top:Math.round(R.top+A.y),width:R.width,height:R.height}};
Jlk=function(R,A,Y){if(R&&A!==null&&A!=A.top){if(!A.top)return new _.Dg(-12245933,-12245933);A=A.top}try{return(Y===void 0?0:Y)?(new _.Dg(A.innerWidth,A.innerHeight)).round():_.$2(A).round()}catch(P){return new _.Dg(-12245933,-12245933)}};
ylk=function(R,A,Y){try{if(R){if(!A.top)return new TE(-12245933,-12245933,-12245933,-12245933);A=A.top}var P=Jlk(R,A,Y),E=P.height,z=P.width;if(z===-12245933)return new TE(z,z,z,z);var c=Xr(Sp(A.document)),M=c.x,N=c.y;return new TE(N,M+z,N+E,M)}catch(y){return new TE(-12245933,-12245933,-12245933,-12245933)}};
m_k=function(R){var A;return(A=R.google_tag_data)!=null?A:R.google_tag_data={}};
Tz8=function(R){var A,Y;return typeof((A=R.navigator)==null?void 0:(Y=A.userAgentData)==null?void 0:Y.getHighEntropyValues)==="function"};
vtk=function(R){if(!Tz8(R))return null;var A=m_k(R);if(A.uach_promise)return A.uach_promise;R=R.navigator.userAgentData.getHighEntropyValues(QXl).then(function(Y){A.uach!=null||(A.uach=Y);return Y});
return A.uach_promise=R};
WEb=function(R){var A;return gtk(ntq(HJ3(rlq(D_6(U_J($_k(Xvk(SUk(new Ie6,R.architecture||""),R.bitness||""),R.mobile||!1),R.model||""),R.platform||""),R.platformVersion||""),R.uaFullVersion||""),((A=R.fullVersionList)==null?void 0:A.map(function(Y){var P=new KEV;P=_.IS(P,1,Y.brand);return _.IS(P,2,Y.version)}))||[]),R.wow64||!1)};
jXk=function(R){var A,Y;return(Y=(A=vtk(R))==null?void 0:A.then(function(P){return WEb(P)}))!=null?Y:null};
bJk=function(R,A){return new m6(function(Y){var P=!1,E=Array(A.length);E.fill(void 0);var z=new Set,c=new Set,M=function(T,Q){R.running?(E[Q]=T,z.add(Q),P||(P=!0,ns(R,function(){P=!1;Y.next(_.Cu(E))},1))):Y.error(new WO(Q))},N=function(T,Q){c.add(Q);
z.add(Q);ns(R,function(){Y.error(T)},1)},y=function(T){c.add(T);
ns(R,function(){c.size===A.length&&Y.complete()},1)},m=A.map(function(T,Q){return T.subscribe(function(g){return void M(g,Q)},function(g){return void N(g,Q)},function(){return void y(Q)})});
return function(){m.forEach(function(T){return void T.unsubscribe()})}})};
FE3=function(R,A,Y){function P(){if(A.debugChannel){var b=A.debugChannel,p=b.next;var h={creativeId:A.debugNames.getName(Y),requiredSignals:E,signals:Object.assign({},z),hasPrematurelyCompleted:c,errorMessage:M,erroredSignalKey:N};h={specMajor:2,specMinor:0,specPatch:0,timestamp:tO(A.timeProvider.now(),new w2(0,A.timeProvider.timeline)),instanceId:A.debugNames.getName(A.symbol),creativeState:h};p.call(b,h)}}
for(var E=Object.keys(R),z={},c=!1,M=null,N=null,y={},m=new Set,T=[],Q=[],g=_.x(E),r=g.next(),I={};!r.done;I={key$jscomp$396:void 0},r=g.next())I.key$jscomp$396=r.value,r=R[I.key$jscomp$396],r instanceof HO?(y[I.key$jscomp$396]=r.value,m.add(I.key$jscomp$396),A.debugChannel&&(z[String(I.key$jscomp$396)]=sS6(r.value))):(r=r.pipe(RS(function(b,p){return Osk(b)||Osk(p)?!1:b===p}),fy(function(b){return function(p){A.debugChannel&&(z[String(b.key$jscomp$396)]=sS6(p),P());
var h={};return h[b.key$jscomp$396]=p,h}}(I)),eB(function(b){return function(p){if(p instanceof WO)throw new feS(String(b.key$jscomp$396));
throw p;}}(I)),rr3(function(b){return function(){m.add(b.key$jscomp$396)}}(I),function(b){return function(p){N=String(b.key$jscomp$396);
M=String(p);P()}}(I),function(b){return function(){m.has(b.key$jscomp$396)||(c=!0,P())}}(I))),Q.push(I.key$jscomp$396),T.push(r));
(R=Object.keys(z).length>0)&&P();g=bJk(A.queue,T).pipe(eB(function(b){if(b instanceof WO)throw new pvb(String(Q[b.inputObservableIndex]));throw b;}),fy(function(b){return Object.freeze(Object.assign.apply(Object,[{},
y].concat(_.py(b))))}));
return(T=T.length>0)&&R?kU(IG(Object.freeze(y)),g):T?g:IG(Object.freeze(y))};
Bzk=function(R,A,Y,P,E){return R.performanceMonitor.timeExecution.bind(R.performanceMonitor)(733,function(){var z={};try{return A.pipe(eB(function(c){P(Object.assign({},z,{error:c}));return hO}),aG(function(c){try{var M=Y(R,c)}catch(y){return P(Object.assign({},z,{error:y instanceof Error?y:String(y)})),hO}var N={};
return FE3(M,R,c.symbol).pipe(rr3(function(y){N=y}),zE(1),be()).pipe(E,eB(function(y){P(Object.assign({},N,{error:y}));
return hO}),Ar(void 0),fy(function(){return!0}))})).pipe(iG(function(c){return c+1},0),eB(function(c){P(Object.assign({},z,{error:c}));
return hO}))}catch(c){return P(Object.assign({},z,{error:c})),hO}})()};
jp=function(R){var A=new Map;if(typeof R!=="object"||R===null)return A;Object.values(R).forEach(function(Y){Y&&typeof Y.extrapolateToNow==="function"&&(A.has(Y.clock.timeline)||A.set(Y.clock.timeline,Y.clock.now()))});
return A};
aeV=function(R,A){return typeof R==="string"?encodeURIComponent(R):typeof R==="number"?String(R):Array.isArray(R)?R.map(function(Y){return aeV(Y,A)}).join(","):R instanceof w2?R.toString():R&&typeof R.extrapolateToNow==="function"?aeV(R.extrapolateUsingTimestampMap(A).value,A):R===!0?"1":R===!1?"0":R===void 0||R===null?null:R instanceof Ctk?hoS(R):[R.top,
R.left,R.top+R.height,R.left+R.width].join()};
otu=function(R,A){R=Object.entries(R).map(function(Y){var P=_.x(Y);Y=P.next().value;P=P.next().value;P=aeV(P,A);return P===null?"":Y+"="+P}).filter(function(Y){return Y!==""});
return R.length?R.join("&"):""};
ZJb=function(R,A){var Y=kZk,P=GZJ;A=A===void 0?.01:A;return function(E){A>0&&Math.random()<=A&&(R.global.HTMLFencedFrameElement&&R.global.fence&&typeof R.global.fence.reportEvent==="function"&&R.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),E=Object.assign({},E,{errorMessage:E.error instanceof Error&&E.error.message?E.error.message:String(E.error),errorStack:E.error instanceof Error&&E.error.stack?String(E.error.stack):null,errorName:E.error instanceof
Error&&E.error.name?String(E.error.name):null,errorContext:String(R.performanceMonitor.timedFunctionContext),errorEscapedQueryId:E.escapedQueryId}),Y(Object.assign({},E,{payloadMapper:function(){return function(z){try{return P(Object.assign({},z))}catch(c){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),jp(E)).forEach(function(z){R.beaconFactory.makeBeacon(z).sendNow()}))}};
tKk=function(){var R=_.Ge.apply(0,arguments);return function(A){var Y=A.pipe(zE(1),be());A=R.map(function(P){return Y.pipe(P,Ar(!0))});
return FH(A).pipe(d2(1),qR())}};
wvV=function(){var R=_.Ge.apply(0,arguments);return function(A){var Y=A.pipe(zE(1),be());A=R.map(function(P){return Y.pipe(P,Ar(!0))});
return kU.apply(null,_.py(A)).pipe(d2(1),qR())}};
uLq=function(R,A){return function(Y){var P=Y.pipe(zE(1),be());Y=P.pipe(R,Ar(!0));P=P.pipe(yr(A,zE(),be()),Ar(!0));Y=FH([Y,P]);return xMP(Y,P).pipe(d2(1),qR())}};
eoI=function(R,A,Y){Y(!0)};
qUJ=function(R,A){return yr(x2(function(Y){var P=R(Y),E=A(Y),z={};return P&&E&&z?new m6(function(c){E(P,z,function(M){c.next(Object.assign({},Y,{canEmit:M}));c.complete()});
return function(){}}):bG}),GO(function(Y){return Y.canEmit}))};
LE8=function(R){var A={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(Y){return Y.pipe(x2(function(P){return new m6(function(E){function z(){M.disconnect();N.unsubscribe()}
var c=R.MutationObserver;if(c&&P.ref!==void 0){var M=new c(function(y){E.next(y)});
M.observe(P.ref,A);var N=P.JSC$9353_released.subscribe(z);return z}})}))}};
d_k=function(R){if(R.measurementDeferralState===3)return null;if(R.timeOnScreenReason!==void 0){var A=R.creativeFound===!1?"n":null;if(A!==null)return A}return R.geometricMeasurementErrors instanceof ps?"msf":R.contextValidationErrors instanceof Fr?"c":R.contextVisibilityKnown===!1?"pv":R.geometricMeasurementErrors||R.contextValidationErrors?"x":null};
A6k=function(R,A){return R.replace(RUk,function(Y,P){try{var E=_.BO.get(A,P);if(E==null||E.toString()==null)return Y;E=E.toString();if(E==""||!_.c3(E==null?"":String(E)))return encodeURIComponent(E).replace(/%2C/g,",")}catch(z){}return Y})};
Y9l=function(R,A){var Y=Object.assign({},R),P=R.userAgentClientHints;Y=(delete Y.userAgentClientHints,Y);Y=R.payloadMapper(Y);var E=otu(Y,A);return _.aS(R.urlPrefixes,function(z){var c="";typeof P==="string"&&(c="&"+otu({uach:P},A));var M={};return A6k(z,(M.VIEWABILITY=E,M))+c})};
kZk=function(R,A){var Y=R.payloadMapper(R),P=otu(Y,A);return P?_.aS(R.urlPrefixes,function(E){E=E.indexOf("?")>=0?E:E+"?";E="?&".indexOf(E.slice(-1))>=0?E:E+"&";return E+P}):R.urlPrefixes};
PmP=function(){return yr(GO(function(R){return R!==void 0}),fy(function(R){return R}))};
E0V=function(R){return yr(fy(function(){return!0}),lG(!1),gL(R))};
zUV=function(R){return R.length<=0?hO:FH(R.map(function(A){var Y=0;return A.pipe(fy(function(P){return{index:Y++,value:P}}))})).pipe(GO(function(A){return A.every(function(Y){return Y.index===A[0].index})}),fy(function(A){return A.map(function(Y){return Y.value})}))};
iXl=function(R,A){R.currentState&&(R.previousState=R.currentState);R.currentState=A;R.previousState&&R.previousState.value?(A=Math.max(0,tO(A.timestamp,R.previousState.timestamp)),R.totalTime+=A,R.consecutiveTime+=A):R.consecutiveTime=0;return R};
li3=function(){return yr(iG(iXl,{totalTime:0,consecutiveTime:0}),fy(function(R){return R.totalTime}))};
x9k=function(){return yr(iG(iXl,{totalTime:0,consecutiveTime:0}),fy(function(R){return R.consecutiveTime}))};
c63=function(R,A){return function(Y){return zUV(A.map(function(P){return Y.pipe(R(P))}))}};
OXq=function(){var R;return yr(rr3(function(A){return void(R=A.timestamp)}),x9k(),fy(function(A){return{timestamp:R,
value:Math.round(A)}}))};
Mqk=function(R,A){return rL(R.topWindowViewportExternalGeometry,A.topWindowViewportExternalGeometry)&&rL(R.elementGeometry,A.elementGeometry)&&rL(R.exposedViewportLocalGeometry,A.exposedViewportLocalGeometry)&&rL(R.intersectionGeometry,A.intersectionGeometry)&&R.elementGeometrySourceName===A.elementGeometrySourceName&&R.measurementRequests===A.measurementRequests&&R.viewportGeometrySourceName===A.viewportGeometrySourceName&&R.viewportLocalAppOffset.x===A.viewportLocalAppOffset.x&&R.viewportLocalAppOffset.y===
A.viewportLocalAppOffset.y};
J68=function(R,A){return function(Y){return function(P){var E=P.pipe(PO(new QX),be());P=Y.element.pipe(RS());E=E.pipe(fy(function(z){return z.value}));
return FH([P,E,A]).pipe(fy(function(z){var c=_.x(z);z=c.next().value;var M=c.next().value;c=c.next().value;if(z.ref===void 0)var N={top:0,left:0,width:0,height:0};else{N=z.ref.getBoundingClientRect();var y=z.ref,m=R.global,T=new _.Cs(0,0),Q=hr(_.oS(y));if(UM6(Q,"parent")){do{if(Q==m)var g=_.k2(y);else g=sN3(y),g=new _.Cs(g.left,g.top);T.x+=g.x;T.y+=g.y}while(Q&&Q!=m&&Q!=Q.parent&&(y=Q.frameElement)&&(Q=Q.parent))}N={top:T.y,left:T.x,width:N.width,height:N.height}}N=VK8(N,M.viewportLocalAppOffset);
m=Nz8(N,M.exposedViewportLocalGeometry);T=R.timeProvider.now();Q=Object;y=Q.assign;if(c!==2||R.inCrossDomainIframe||m.width<=0||m.height<=0)var r=!1;else try{var I=R.document.elementFromPoint(m.left+m.width/2,m.top+m.height/2);r=I?!NE8(I,z):!1}catch(b){r=!1}return{timestamp:T,value:y.call(Q,{},M,{elementGeometrySourceName:"geo",intersectionGeometry:r?Vqk.intersectionGeometry:m,elementGeometry:N})}}),vO(R.queue))}}};
NE8=function(R,A,Y){Y=Y===void 0?0:Y;return R.ref===void 0||A.ref===void 0?!1:R.ref===A.ref||_.GE(A.ref,function(P){return P===R.ref})?!0:A.ref.ownerDocument&&A.ref.ownerDocument.defaultView&&A.ref.ownerDocument.defaultView===A.ref.ownerDocument.defaultView.top?!1:Y<10&&A.ref.ownerDocument&&A.ref.ownerDocument.defaultView&&A.ref.ownerDocument.defaultView.frameElement?NE8(R,new Zg(A.ref.ownerDocument.defaultView.frameElement),Y+1):!0};
TEq=function(R){return function(A){return A.pipe(R.ResizeObserver?y63(R):m9J(R),zE(1),be())}};
y63=function(R){return function(A){return A.pipe(x2(function(Y){var P=R.ResizeObserver;if(!P||Y.ref===void 0)return IG(Vqk.elementGeometry);var E=(new m6(function(z){function c(){Y.ref!==void 0&&M.unobserve(Y.ref);M.disconnect();N.unsubscribe()}
if(Y.ref===void 0)return z.complete(),function(){};
var M=new P(function(y){y.forEach(function(m){z.next(m)})});
M.observe(Y.ref);var N=Y.JSC$9353_released.subscribe(c);return c})).pipe(ue(R.performanceMonitor,736),fy(function(z){return z.contentRect}));
return kU(IG(Y.ref.getBoundingClientRect()),E)}),RS(rL))}};
m9J=function(R){return function(A){var Y=A.pipe(LE8(R)),P=R.onResize;Y=kU(A.pipe(fy(function(){return tpS("resize")})),Y,P);
return FH(A,Y).pipe(ue(R.performanceMonitor,737),fy(function(E){E=_.x(E).next().value;return E.ref===void 0?void 0:E.ref.getBoundingClientRect()}),PmP(),RS(rL))}};
g0V=function(R,A){var Y=QNk(R,A).pipe(zE(1),be());return function(P){return function(E){E=E.pipe(x2(function(z){return z.element}),RS());
return FH([Y,E]).pipe(x2(function(z){var c=_.x(z);z=c.next().value;c=c.next().value;return v0I(R,z.intersectionObserver,TEq(R),z.observations,P,z.flushRecords,c)}),vO(R.queue))}}};
n0J=function(R){return fy(function(A){return A.value.viewportGeometrySourceName!=="nio"?A:Object.assign({},A,{value:Object.assign({},A.value,{exposedViewportLocalGeometry:tr(R,!0),topWindowViewportExternalGeometry:tr(R,!0)})})})};
HXq=function(R,A){return IG(A).pipe(R,fy(function(){return A}))};
QNk=function(R,A){return R.timeProvider.timeline!==r66?Ky(new ps(2)):R.MutationObserver?typeof IntersectionObserver==="undefined"?Ky(new ps(0)):(new m6(function(Y){var P=new QX,E=new wL(P.next.bind(P),{threshold:[].concat(_.py(A))});Y.next({observations:P.pipe(ue(R.performanceMonitor,735)),intersectionObserver:E,flushRecords:function(z){z=E.takeRecords(z);z.length>0&&P.next(z)}})})).pipe(d2(1),zE(1),be()):Ky(new ps(1))};
D96=function(R){return ST8(R.sort(function(A,Y){return A.time-Y.time}),B2k)};
v0I=function(R,A,Y,P,E,z,c){return new m6(function(M){function N(){r||(r=!0,c.ref!==void 0&&A.unobserve(E,c.ref),m.unsubscribe(),g.unsubscribe(),Q.unsubscribe(),I.unsubscribe())}
if(c.ref!==void 0){U9l(A,E);A.observe(E,c.ref);var y=new ep({timestamp:R.timeProvider.now(),value:Object.assign({},Vqk,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),m=P.pipe(aG(function(b){return D96(b)}),GO(function(b){return b.target===c.ref}),fy(function(b){return{timestamp:new w2(b.time,r66),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:b.rootBounds||qM,topWindowViewportExternalGeometry:b.rootBounds||tr(R,!0),measurementRequests:T,elementGeometrySourceName:"nio",intersectionGeometry:b.intersectionRect,elementGeometry:b.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:b.isIntersecting,isV2Visible:b.isVisible}}}),PO(y),be()).subscribe(M),T=new QX,Q=T.subscribe(function(){z(E);
M.next({timestamp:R.timeProvider.now(),value:y.value.value});c.ref!==void 0&&(A.unobserve(E,c.ref),A.observe(E,c.ref))}),g=HXq(Y,c).subscribe(function(){T.next()}),r=!1,I=c.JSC$9353_released.subscribe(function(){return N()});
return N}})};
$9k=function(R,A){var Y=R.getOnBackgrounded().pipe(fy(function(){return"b"}));
return xMP(A,Y).pipe(d2(1),gL(R.queue))};
Ls=function(R){return function(A){var Y;return A.pipe(rr3(function(P){return void(Y=P.timestamp)}),fy(function(P){return P.value}),R,fy(function(P){return{timestamp:Y,
value:P}}))}};
XVI=function(R){return R.intersectionGeometry.width*R.intersectionGeometry.height/(R.elementGeometry.width*R.elementGeometry.height)};
dL=function(R,A,Y){Y=Y===void 0?function(P,E){return P===E}:Y;
return R.timestamp.equals(A.timestamp)&&Y(R.value,A.value)};
Al=function(R,A){return A.pipe(fy(function(Y){return new RX(R.timeProvider,{timestamp:R.timeProvider.now(),value:Y})}))};
S9S=function(R){return function(A){return A.pipe(DM8(R),fy(function(Y){var P=_.x(Y);Y=P.next().value;P=P.next().value;var E=Y.value;return{timestamp:Y.timestamp,value:E>=1?!0:E<=0?!1:E>=P}}))}};
Kfk=function(){return yr(GO(function(R,A){return A>0}),IiS,lG(-1),RS())};
Wfl=function(R,A,Y){return R?FH([A,Y]).pipe(GO(function(P){var E=_.x(P);P=E.next().value;E=E.next().value;return P.timestamp.equals(E.timestamp)}),fy(function(P){var E=_.x(P);
P=E.next().value;E=E.next().value;return P.value>E.value?P:E})):A};
fiJ=function(R){return function(A){var Y=A.pipe(jNk),P=A.pipe(bXu);return R instanceof m6?R.pipe(x2(function(E){return Wfl(E,Y,P)})):Wfl(R.value,Y,P)}};
ZXV=function(R,A,Y,P){var E=P.geometryIsOccluded,z=P.exposureThreshold,c=P.wasLargeAdAtRender,M=P.allowLargeAdThreshold,N=P.largeAdExposureThreshold,y=P.mayUseViewportShareExposure,m=P.hasMeasurementStarted;P=P.useIntersectionObserverV2;A=pVk(R,Y,A);Y=Ffk(R,Y);P=BES(A,P);var T=aik(R,E,y,A),Q=T.pipe(fy(function(w){return w.value}),RS(),gL(R),iG(function(w,t){return Math.max(w,t)},0)),g=T.pipe(fy(function(w){return w.value}),Kfk(),gL(R)),r=A.pipe(Cmb,fy(function(w){return w.value}),d2(2),RS(),gL(R));
c=hUb(R,A,c,M);var I=c.pipe(lG(!1),RS(),fy(function(w){return w?N:z}));
M=T.pipe(S9S(I),RS(),gL(R));var b=FH([M,A]).pipe(GO(function(w){var t=_.x(w);w=t.next().value;t=t.next().value;return w.timestamp.equals(t.timestamp)}),fy(function(w){var t=_.x(w);
w=t.next().value;t=t.next().value;return{visible:w.value,geometry:t.value.elementGeometry}}),iG(function(w,t){return!t.visible&&w.visible?w:t},{visible:!1,
geometry:qM}),fy(function(w){return w.geometry}),lG(qM),gL(R),RS(rL));
y=y instanceof m6?y.pipe(RS(),Ly()):bG;I=FH([y,I]).pipe(Ly());var p=A.pipe(GO(function(w){return w.value.viewportGeometrySourceName!=="ns"&&w.value.elementGeometrySourceName!=="ns"}),iG(function(w){return w+1},0),lG(0),gL(R)),h=Y.pipe(Ly(!0),lG(!1),gL(R));
h=FH([m,h]).pipe(fy(function(w){var t=_.x(w);w=t.next().value;t=t.next().value;return w&&!t}),gL(R));
var L=A.pipe(o0k,RS()),Z=L.pipe(fy(function(w){return w.value}),iG(function(w,t){return Math.max(w,t)},0),RS(),gL(R));
R=L.pipe(fy(function(w){return w.value}),Kfk(),gL(R));
return{shouldResetExposureSignals:y,shouldResetViewabilitySignals:I,geometrySignals:{readyGeometryWithDefault:A,measurementStrategy:A.pipe(k8b),creativePosition:b.pipe(RS(rL)),visible:M.pipe(RS(dL)),timestampedExposure:T.pipe(RS(dL)),maximumExposure:Q,minimumExposure:g,browserSize:A.pipe(G8V,RS(_.uJ)),timestampedScreenShare:L,maxScreenShare:Z,minScreenShare:R,geometricMeasurementErrors:Y,measurementRequests:A.pipe(fy(function(w){return w.value.measurementRequests})),
isLargeAd:c,geometryIsOccluded:E,hasMeasurementStarted:m,geometryMeasurable:h,validMeasurementCount:p,loadTimeExposure:r,v2VisibilityBitVector:P}}};
Ffk=function(R,A){return A.pipe(GO(function(){return!1}),fy(function(Y){return Y}),eB(function(Y){return Yt(new HO(Y),R)}))};
pVk=function(R,A,Y){return A.pipe(is3(bG),gL(R)).pipe(RS(function(P,E){return dL(P,E,Mqk)}),lG({timestamp:Y.now(),
value:Vqk}),gL(R))};
aik=function(R,A,Y,P){Y=P.pipe(fiJ(Y),Ls(fy(function(E){return Math.round(E*100)/100})),gL(R));
return A instanceof HO?Y:FH([Y,A]).pipe(fy(function(E){var z=_.x(E);E=z.next().value;z=z.next().value;return{timestamp:z.timestamp.maximum(E.timestamp),value:z.value?0:E.value}}),RS(dL),gL(R))};
hUb=function(R,A,Y,P){A=[A.pipe(fy(function(E){return E.value.elementGeometry.width*E.value.elementGeometry.height>=242500}))];
Y instanceof m6&&A.push(Y.pipe(fy(function(E){return!!E})));
Y=FH(A);return P?Y.pipe(fy(function(E){return E.some(function(z){return z})}),lG(!1),RS(),gL(R)):Yt(new HO(!1),R)};
BES=function(R,A){R=FH([R,A]).pipe(fy(function(E){var z=_.x(E);E=z.next().value;if(z.next().value&&E.value.isIntersecting)return E.value.isV2Visible}),RS());
var Y=R.pipe(fy(function(E){return E===void 0?!0:E}),iG(function(E,z){return E||!z},!1)),P=R.pipe(iG(function(E,z){return z===void 0?E:z?!1:E!=null?E:!0},void 0),fy(function(E){return!!E}));
return FH([A,crV(R,Y,P)]).pipe(fy(function(E){var z=_.x(E);E=z.next().value;var c=_.x(z.next().value);z=c.next().value;var M=c.next().value;c=c.next().value;var N=0;if(!E)return 0;if(z===void 0)return 16;z&&(N|=1);z||(N|=2);M&&(N|=4);c&&(N|=8);return N}))};
LfJ=function(R,A,Y,P,E){var z=tqu.timeThresholdMs;var c=c===void 0?new wV3(A,P):c;return(new m6(function(M){var N=Y.pipe(lG(void 0),x2(function(){return uFq(E)})).pipe(fy(function(y){var m=y.value;
y=y.timestamp;var T=m.visible;m=m.consecutiveViewTime;var Q=m>=z;Q||!T?eUP(c):(y=Math.max(0,tO(A.now(),y)),q9I(c,Math.max(0,z-m-y)));return Q}),iG(function(y,m){return m||y},!1),RS()).subscribe(M);
return function(){c.dispose();N.unsubscribe()}})).pipe(cO(function(M){return!M},!0),gL(R))};
uFq=function(R){return zUV([R,R.pipe(OXq())]).pipe(fy(function(A){var Y=_.x(A);A=Y.next().value;Y=Y.next().value;return{timestamp:A.timestamp,value:{visible:A.value,consecutiveViewTime:Y.value}}}),RS(function(A,Y){return dL(A,Y,function(P,E){return P.consecutiveViewTime===E.consecutiveViewTime&&P.visible===E.visible})}))};
d9u=function(){return yr(x9k(),iG(function(R,A){return Math.max(R,A)},0),fy(function(R){return Math.round(R)}))};
RAl=function(R){return yr(S9S(IG(R)),d9u())};
Avk=function(R,A){return A instanceof m6?A.pipe(x2(function(Y){return(Y=Y?15:null)?Ky(new ps(Y)):R})):(A=A.value?15:null)?Ky(new ps(A)):R};
Yek=function(R){var A=new ps(13);if(R.length<1)return{chain:hO,capturedErrors:hO};var Y=new QX,P=R[0];return{chain:R.slice(1).reduce(function(E,z){return E.pipe(eB(function(c){Y.next(c);return z}))},P).pipe(eB(function(E){Y.next(E);
return Ky(A)}),PO(new QX),be()),
capturedErrors:Y}};
PIk=function(R,A){var Y=R.pipe(PO(new QX),be());return x2(function(P){return Y.pipe(A(P))})};
zAq=function(R,A){if(R.inCrossDomainIframe)return Ky(new ps(6));var Y=new QX;return kU(IG({}),A,Y).pipe(fy(function(){return{timestamp:R.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:EW3(R),topWindowViewportExternalGeometry:tr(R,!0),measurementRequests:Y,viewportLocalAppOffset:{x:0,y:0}}}}),vO(R.queue))};
EW3=function(R){var A=tr(R,!1);if(!R.inIframe||!$MS(R.global.parent)||R.global.parent===R.global)return A;var Y=new Pv(R.global.parent,R.debugChannel);Y.beaconFactory=R.beaconFactory;Y=EW3(Y);R=R.global.frameElement.getBoundingClientRect();return Nz8(VK8(Nz8(Y,R),{x:A.left-R.left,y:A.top-R.top}),A)};
iQq=function(R){if(R.prerendering)return 3;var A;return(A={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[R.visibilityState||R.webkitVisibilityState||R.mozVisibilityState||""])!=null?A:0};
lrq=function(R){return R.document.JSC$9364_onVisibilityChange.pipe(fy(function(A){return A==="visible"}),RS(),gL(R.queue))};
xI3=function(R,A,Y){var P;return A.pipe(RS(),x2(function(E){return Y.pipe(fy(function(){if(!P){P=!0;try{E.next()}finally{P=!1}}return!0}))}),lG(!1),gL(R.queue))};
cvV=function(R){return yr(Ls(fy(function(A){return A>=1?!0:A<=0?!1:A>=R})),li3(),fy(function(A){return Math.round(A)}))};
MOb=function(R,A,Y,P,E){var z=OQk;if(z.length>1)for(var c=0;c<z.length-1;c++)if(z[c]<z[c+1])throw Error();c=E.pipe(lG(void 0),x2(function(){return Y.pipe(OXq())}),RS(),gL(R));
E=E.pipe(lG(void 0),x2(function(){return Y.pipe(d9u())}),RS(),gL(R));
return{totalMeasurementTime:P.pipe(lG(void 0),x2(function(){return A.pipe(fy(function(M){return{timestamp:M.timestamp,value:!0}}),li3())}),RS(),gL(R)),
totalUnviewedTime:P.pipe(lG(void 0),x2(function(){return A.pipe(fy(function(M){return{timestamp:M.timestamp,value:M.value===0}}),li3())}),RS(),gL(R)),
maxTimeOnScreen:P.pipe(lG(void 0),x2(function(){return A.pipe(c63(RAl,z))}),RS(_.uJ),gL(R)),
timeOnScreen:P.pipe(lG(void 0),x2(function(){return A.pipe(c63(cvV,z),fy(function(M){return M.map(function(N,y){return y>0?N-M[y-1]:N})}))}),RS(_.uJ),gL(R)),
maxConsecutiveViewTime:E,consecutiveViewTime:c.pipe(RS(dL),gL(R))}};
Nuk=function(R){var A=!0;A=A===void 0?!1:A;return yr(x2(function(Y){return s18(R.document,Y,A)}),gL(R.queue))};
VO8=function(R,A,Y){var P=Y.pipe(fy(function(E){return{value:E,timestamp:R.timeProvider.now()}}),RS(dL));
return A instanceof m6?A.pipe(RS(),x2(function(E){return E?Yt(new HO({value:!1,timestamp:R.timeProvider.now()}),R.queue):P})):A.value===!1?P:new HO(!1)};
Jv3=function(R,A,Y,P,E,z,c){var M=tqu;A=A instanceof m6?A.pipe(lG(!1),RS()):A;var N=!R.isMobile();Y=VO8(R,Y,P);R=c.measurableCreative.pipe(E0V(R.queue));return Object.assign({},M,{geometryIsOccluded:Y,wasLargeAdAtRender:E,allowLargeAdThreshold:N,mayUseViewportShareExposure:A,hasMeasurementStarted:R,useIntersectionObserverV2:z})};
mIS=function(R,A,Y,P,E,z){var c=1;z=z===void 0?!0:z;c=c===void 0?.01:c;var M=M===void 0?R.timeProvider.intervalObservable(100).pipe(gL(R.queue)):M;return R.performanceMonitor.timeExecution(916,function(){return yvl(R,A.pipe(vO(R.queue)),Y.pipe(vO(R.queue)),P,E,z,c,M)})()};
yvl=function(R,A,Y,P,E,z,c,M){var N=lrq(R).pipe(fy(function(m){return!m})),y=new TuI(R,[new Q16(R,OQk),
new vWI(R,M)]);M=tKk(gWu,nWq);return Bzk(R,A,function(m,T){var Q=Yt(new HO(T.element),m.queue).pipe(Nuk(m),gL(m.queue)),g={loadedElement:Q,shouldMeasure:Q.pipe(Ly(!0)),measurableCreative:Q.pipe(fy(function(w){var t=t===void 0?Symbol():t;return Object.freeze({symbol:t,element:Yt(new HO(w),m.queue)})})),
creativeSearchResult:Yt(new HO("mue"),m.queue)},r=new HO(!1),I=new HO(!1),b=new HO(17),p=new HO(!1),h=new HO(!1),L=Yt(EU,m.queue);r=y.buildGeometrySource(g,{inApp:r,useV2:!1,requestSource:Yt(b,m.queue)}).geometrySource;g=Jv3(m,p,I,N,h,L,g);I=ZXV(m.queue,m.timeProvider,r,g);g=I.geometrySignals;p=I.shouldResetViewabilitySignals;I=MOb(m.queue,g.timestampedExposure,g.visible,I.shouldResetExposureSignals,p);p=LfJ(m.queue,m.timeProvider,p,g.measurementRequests,g.visible);h=Y.pipe(GO(function(w){return w===
T.element.ref}),fy(function(){return"ur"}));
L=NLu(m.timeProvider,E).pipe(Ly("t"));h=$9k(m,kU(h,L));L=xI3(m,g.measurementRequests,h.pipe(GO(function(w){return w!==null})));
r=h.pipe(GO(function(w){return w!==null}),fy(function(){return iQq(m.global.document)===1}));
var Z=HQ6(m.document);return Object.assign({},{beaconFactory:new HO(m.beaconFactory),context:new HO(m),inferredPingId:new HO("lidar2"),timeOnScreenPingId:new HO("lidartos"),binaryContext:new HO(17),binaryVersion:new HO(P),requestSource:b,contextValidationErrors:new HO(m.validate()?null:new Fr),contextVisibilityKnown:new HO(Z),payloadMapper:new HO(GZJ),endOfSessionReason:h,timeOnScreenReason:h,requestMeasurementOnEndOfSession:L,hasImpressionFired:rvV,crossDomainIframeState:new HO(m.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:EU,inFetchLaterBeaconExperiment:EU,isTurtlex:EU,turtlexReportEventData:new HO(""),reportFencedFrameEvent:bG,isViewableAttributionEnabled:EU,inViewableAttributionExperiment:new HO(0),fetchBeaconFactory:bG,supportsPendingBeacon:EU,supportsFetchLater:EU,emit:new HO(eoI),beginToRenderEvent:new HO(Symbol()),activeViewUnmeasurableEvent:new HO(Symbol()),activeViewViewableEvent:new HO(Symbol()),creativeFound:rvV,immediateUrlPrefixes:new HO(T.immediateUrls),timeOnScreenUrlPrefixes:new HO(T.timeOnScreenUrls),
cpmavUrls:bG,viewableRelayUrls:bG,measurementDeferralState:new HO(2),urlSerializer:new HO(Y9l),viewUrlSerializer:new HO(DII),isCreativeLoaded:Q.pipe(E0V(m.queue)),pageVisible:N.pipe(fy(function(w){return!w})),
eosPageVisible:r,timestampedExposureHistory:g.timestampedExposure.pipe(iG(function(w,t){w.push(t);return w},[]))},g,{viewable:Al(m,p),
maxTimeOnScreen:Al(m,I.maxTimeOnScreen),timeOnScreen:Al(m,I.timeOnScreen),maxConsecutiveViewTime:Al(m,I.maxConsecutiveViewTime),consecutiveViewTime:I.consecutiveViewTime.pipe(fy(function(w){return new RX(m.timeProvider,w)})),
totalMeasurementTime:Al(m,I.totalMeasurementTime),totalUnviewedTime:Al(m,I.totalUnviewedTime),userAgentClientHints:Zs8(m),clientOrderPingCounter:new HO(new Ctk)})},ZJb(R,c),wvV(z?uLq(M,UI3):uLq(M,$Ik),XDb))};
SeI=function(R){var A=_.Ge.apply(1,arguments).filter(Boolean).join("&");if(!A)return R;var Y=R.match(/[?&]adurl=/);return Y?R.slice(0,Y.index+1)+A+"&"+R.slice(Y.index+1):R+(R.indexOf("?")<0?"?":"&")+A};
zZ=function(R,A){return A?"&"+R+"="+encodeURIComponent(A):""};
IrS=function(){try{var R,A;return!!((R=window)==null?0:(A=R.top)==null?0:A.location.href)&&!1}catch(Y){return!0}};
_.lt=function(R){R&&typeof R.dispose=="function"&&R.dispose()};
_.xt=function(R){for(var A=0,Y=arguments.length;A<Y;++A){var P=arguments[A];_.ok(P)?_.xt.apply(null,P):_.lt(P)}};
WJl=function(){var R=KJJ();R=R===void 0?"bevasrsg":R;return new Promise(function(A){var Y=window===window.top?window:IrS()?window:window.top,P=Y[R],E;((E=P)==null?0:E.bevasrs)?A(new cv(P.bevasrs)):(P||(P={},P=(P.nqfbel=[],P),Y[R]=P),P.nqfbel.push(function(z){A(new cv(z))}))})};
j1k=function(R){var A={c:R.v6,e:R.jKK,mc:R.dMo,me:R.uSo};R.vY&&(A.co={c:R.vY.hHs,a:R.vY.tj4,s:R.vY.cyb});return A};
bQb=function(R){var A,Y,P={v6:R.c,jKK:R.e,dMo:(A=R.mc)!=null?A:!1,uSo:(Y=R.me)!=null?Y:!1};R.co&&(P.vY={hHs:R.co.c,tj4:R.co.a,cyb:R.co.s});return P};
frk=function(R){return function(){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R(),2);A=Y.yieldResult;return Y.return({f:function(){return A.xEg()},
c:function(P){return A.zWG(P)},
m:function(P){return A.kZ(bQb(P))},
mws:function(P){return A.jcm(bQb(P))}})})}};
pDk=function(R,A){var Y=KJJ();Y=Y===void 0?"bevasrsg":Y;A={s:function(z){var c;return R.snapshot(Object.assign({},z.c&&{v6:z.c},z.s&&{qKn:z.s},{v5E:(c=z.p)!=null?c:!0}))},
e:function(z){var c;return void((c=R.seK)==null?void 0:c.call(R,z))},
c:function(z,c){return R.eQs(z,c)},
p:R.qHK,l:function(){return R.drB()},
wpc:A?frk(A):void 0};var P=window===window.top?window:IrS()?window:window.top,E=P[Y];if(E){E.bevasrs=A;if(E.nqfbel!==void 0)for(Y=_.x(E.nqfbel),P=Y.next();!P.done;P=Y.next())P=P.value,P(A);E.nqfbel=void 0}else E={},E=(E.bevasrs=A,E.nqfbel=void 0,E),P[Y]=E};
Buk=function(R){var A=A===void 0?51:A;var Y=[];_.OU(R,FJ6,6,_.M_()).forEach(function(P){_.sU(P,2)<=A&&Y.push(_.sU(P,1))});
return Y};
arJ=function(R){var A=A===void 0?51:A;var Y=[];_.OU(R,FJ6,6,_.M_()).forEach(function(P){_.sU(P,2)>A&&Y.push(_.sU(P,1))});
return Y};
CI3=function(R){R.then(function(){},function(){})};
N_=function(R){return{fieldType:1,fieldName:R}};
V6=function(R){return{fieldType:2,fieldName:R}};
_.Jl=function(R){return{fieldType:3,fieldName:R}};
hAb=function(){function R(){E[0]=1732584193;E[1]=4023233417;E[2]=2562383102;E[3]=271733878;E[4]=3285377520;m=y=0}
function A(T){for(var Q=c,g=0;g<64;g+=4)Q[g/4]=T[g]<<24|T[g+1]<<16|T[g+2]<<8|T[g+3];for(g=16;g<80;g++)T=Q[g-3]^Q[g-8]^Q[g-14]^Q[g-16],Q[g]=(T<<1|T>>>31)&4294967295;T=E[0];var r=E[1],I=E[2],b=E[3],p=E[4];for(g=0;g<80;g++){if(g<40)if(g<20){var h=b^r&(I^b);var L=1518500249}else h=r^I^b,L=1859775393;else g<60?(h=r&I|b&(r|I),L=2400959708):(h=r^I^b,L=3395469782);h=((T<<5|T>>>27)&4294967295)+h+p+L+Q[g]&4294967295;p=b;b=I;I=(r<<30|r>>>2)&4294967295;r=T;T=h}E[0]=E[0]+T&4294967295;E[1]=E[1]+r&4294967295;E[2]=
E[2]+I&4294967295;E[3]=E[3]+b&4294967295;E[4]=E[4]+p&4294967295}
function Y(T,Q){if(typeof T==="string"){T=unescape(encodeURIComponent(T));for(var g=[],r=0,I=T.length;r<I;++r)g.push(T.charCodeAt(r));T=g}Q||(Q=T.length);g=0;if(y==0)for(;g+64<Q;)A(T.slice(g,g+64)),g+=64,m+=64;for(;g<Q;)if(z[y++]=T[g++],m++,y==64)for(y=0,A(z);g+64<Q;)A(T.slice(g,g+64)),g+=64,m+=64}
function P(){var T=[],Q=m*8;y<56?Y(M,56-y):Y(M,64-(y-56));for(var g=63;g>=56;g--)z[g]=Q&255,Q>>>=8;A(z);for(g=Q=0;g<5;g++)for(var r=24;r>=0;r-=8)T[Q++]=E[g]>>r&255;return T}
for(var E=[],z=[],c=[],M=[128],N=1;N<64;++N)M[N]=0;var y,m;R();return{reset:R,update:Y,digest:P,digestString:function(){for(var T=P(),Q="",g=0;g<T.length;g++)Q+="0123456789ABCDEF".charAt(Math.floor(T[g]/16))+"0123456789ABCDEF".charAt(T[g]%16);return Q}}};
wDb=function(R,A){A=A===void 0?oWq:A;if(!kTS){var Y;R=(Y=R.navigator)==null?void 0:Y.userAgentData;if(!R||typeof R.getHighEntropyValues!=="function"||R.brands&&typeof R.brands.map!=="function")return Promise.reject(Error("ua"));GTl((R.brands||[]).map(function(E){var z=new ZQu;z=_.IS(z,1,E.brand);return _.IS(z,2,E.version)}));
typeof R.mobile==="boolean"&&_.y6(tO3,2,R.mobile);kTS=R.getHighEntropyValues(A)}var P=new Set(A);return kTS.then(function(E){var z=tO3.clone();P.has("platform")&&_.IS(z,3,E.platform);P.has("platformVersion")&&_.IS(z,4,E.platformVersion);P.has("architecture")&&_.IS(z,5,E.architecture);P.has("model")&&_.IS(z,6,E.model);P.has("uaFullVersion")&&_.IS(z,7,E.uaFullVersion);return z.serialize()}).catch(function(){return tO3.serialize()})};
mE=function(R,A,Y,P){this.initialValue_=R;this.maxValue_=A;this.currBaseValue_=this.currValue_=R;this.randomFactor_=Y||0;this.backoffFactor_=P||2};
TZ=function(R){this.src=R;this.listeners={};this.typeCount_=0};
LJk=function(){for(var R;R=uck.remove();){try{R.fn.call(R.scope)}catch(A){E6(A)}eA3.put(R)}qeb=!1};
_.dIJ=function(R){switch(R){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}};
R4b=function(R){switch(R){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""}};
_.ANk=function(){};
Ow8=function(R,A,Y,P){R=YKk(Psk(ESk(new _.Q6(1828,"0"),R),new z46)).disableWithCredentials();A.length&&iwl(R,lOk(new x1P,A));P!==void 0&&(R.destinationUrl=P);var E=new cNS(1828,"","",!1,"",R.build());_.gz(E,R);var z=new nJ({flush:function(c){try{E.flush(c)}catch(M){Y(M)}}});
z.addOnDisposeCallback(function(){setTimeout(function(){try{z.snapshotAndFlush()}finally{E.dispose()}})});
z.invocationLimit=1E5;z.flushInterval=3E4;z.JSC$9780_flushTimer.setInterval(3E4);return z};
Hv=function(){var R,A,Y;return(Y=(R=globalThis.performance)==null?void 0:(A=R.now)==null?void 0:A.call(R))!=null?Y:Date.now()};
NrV=function(R,A){if(R.disable)return new Mxl;A=A?Buk(A):[];R={iL:R.iL,nUn:R.oaD,qtJ:R.bZT,destinationUrl:R.destinationUrl,epl:R.epl,opz:R.opz};A=A===void 0?[]:A;return new sWS(R,A)};
VxS=function(R){if(!R)return null;R=_.rz(R,2);return R===null||R===void 0?null:ec(R)};
_.JNJ=function(R){if(!R)return null;R=_.rz(R,4);return R===null||R===void 0?null:_.IR(R)};
Tr6=function(R,A){return A?yNP(A):R?m1P(R):Promise.resolve()};
yNP=function(R){return new Promise(function(A,Y){var P=_.De("SCRIPT"),E=_.JNJ(R);_.ET(P,E);P.onload=function(){_.UU(P);A()};
P.onerror=function(){_.UU(P);Y(Error("Fa"))};
($t("HEAD")[0]||document.documentElement).appendChild(P)})};
m1P=function(R){return new Promise(function(A){var Y=_.De("SCRIPT");if(R){var P=_.rz(R,6);P=P===null||P===void 0?null:_.YU(P)}else P=null;_.Pt(Y,P);($t("HEAD")[0]||document.documentElement).appendChild(Y);_.UU(Y);A()})};
XL=function(R,A,Y){var P,E=new Promise(function(z){P=setTimeout(z,A)});
return Promise.race([R.finally(function(){return void clearTimeout(P)}),
E.then(Y)])};
QWk=function(R,A){try{return globalThis.sessionStorage.setItem(R,A),!0}catch(Y){return!1}};
vSu=function(R,A,Y,P){A=A===void 0?0:A;Y=Y===void 0?R.length:Y;var E=0;for(P&&(E=vSu(P));A<Y;A++)P=typeof R==="string"?R.charCodeAt(A):R[A],E=gS6(31,E)+P|0;return E};
nS8=function(R,A){return[vSu(R,0,R.length>>1,A),vSu(R,R.length>>1)]};
HwS=function(R){var A=_.x(nS8(R,SK));R=A.next().value;A=A.next().value;return R.toString(16)+A.toString(16)};
rNJ=function(R,A){var Y=nS8(A);R=new Uint32Array(R.buffer);A=R[0];var P=_.x(Y);Y=P.next().value;P=P.next().value;for(var E=1;E<R.length;E+=2){for(var z=A,c=E,M=Y,N=P,y=0;y<22;y++)c=c>>>8|c<<24,c+=z|0,c^=M+38293,z=z<<3|z>>>29,z^=c,N=N>>>8|N<<24,N+=M|0,N^=y+38293,M=M<<3|M>>>29,M^=N;z=[z,c];R[E]^=z[0];E+1<R.length&&(R[E+1]^=z[1])}};
D1u=function(R,A,Y,P,E){var z=(4-(SK.length+Y.length)%4)%4,c=new Uint8Array(4+z+SK.length+4+Y.length),M=new DataView(c.buffer),N=0;M.setUint32(N,Math.random()*4294967295);N=N+4+z;c.set(SK,N);N+=SK.length;M.setUint32(N,E);c.set(Y,N+4);rNJ(c,P);return R.insert(A,function(y){return void globalThis.sessionStorage.removeItem(y)})?QWk(A,_.WF(c))?"s":"t":"i"};
U1b=function(R,A){var Y=globalThis.sessionStorage.getItem(R);if(!Y)return["m"];try{var P=_.eP(Y);rNJ(P,A)}catch(E){return globalThis.sessionStorage.removeItem(R),["c"]}for(A=4;A<7&&P[A]===0;)A++;for(Y=0;Y<SK.length;Y++)if(P[A++]!==SK[Y])return globalThis.sessionStorage.removeItem(R),["d"];Y=(new DataView(P.buffer)).getUint32(A);return Math.floor(Date.now()/1E3)>=Y?(globalThis.sessionStorage.removeItem(R),["e"]):["a",new Uint8Array(P.buffer,A+4)]};
$1k=function(R){return globalThis.TextEncoder?(new TextEncoder).encode(R):_.IX(R)};
XUl=function(R){var A=R,Y;return function(){if(A){var P=A;A=void 0;Y=P.apply(this,arguments)}return Y}};
IO6=function(R){return WS(function(A){if(A instanceof R)return!0;var Y,P,E=A==null?void 0:(Y=A.ownerDocument)==null?void 0:(P=Y.defaultView)==null?void 0:P[R.name];return SKk(E)&&A instanceof E})};
_.jK=function(R,A,Y){_.KJ.call(this);this.JSC$9993_listener_=R;this.JSC$9993_interval_=A||0;this.handler_=Y;this.callback_=(0,_.Wv)(this.JSC$9995_doAction_,this)};
_.bt=function(R){R=KTb(R);return _.IR(R)};
KTb=function(R){return R===null?"null":R===void 0?"undefined":R};
jWl=function(R){if(R&&R.focus)if(R!==document.activeElement)R.focus();else return WTV(function(){return _.O(function(A){document.activeElement&&document.activeElement.blur();return A.return(WTV(function(){R.focus()}))})})};
_.LTS=function(R){var A=A===void 0?5:A;setTimeout(function(){var Y;return _.O(function(P){P.nextAddress==1&&(Y=document.activeElement);if(P.nextAddress!=5)return(document.activeElement===Y||document.activeElement===document.body)&&A>=0&&R?P.yield(jWl(R),5):P.jumpTo(0);if(document.activeElement===R)return P.return();R=R.parentElement;--A;return P.jumpTo(2)})},15)};
WTV=function(R){return new Promise(function(A){requestAnimationFrame(function(){A(R())})})};
RsJ=function(R){if(_.fJ)R(_.fJ);else{var A;((A=d1q)!=null?A:d1q=[]).push(R)}};
FL=function(){!_.fJ&&_.pJ&&_.AZ3(_.pJ());return _.fJ};
_.AZ3=function(R){_.fJ=R;var A;(A=d1q)==null||A.forEach(RsJ);d1q=void 0};
_.Bv=function(R){_.fJ&&_.fJ.beforeLoadModuleCode(R)};
_.aX=function(){_.fJ&&_.fJ.JSC$11042_setLoaded()};
CJ=function(R){return SAI(R)?Number(R):String(R)};
YFP=function(R){this.action=R;this.wfv=!1};
PBl=function(R,A){YFP.call(this,"set-drive-options");this.appId=R;this.appOrigin=A};
E_P=function(R){YFP.call(this,"visibility");this.visible=R};
zsI=function(R,A,Y){oX.call(this,R,A,Y)};
in6=function(R){kt.call(this,R)};
lFk=function(R){R=R&&R.getWindow()||window;return R.gadgets&&R.gadgets.rpc};
cZl=function(R,A){var Y=A&&A.getWindow()||window;if(lFk(A))R();else if(xz8)xz8.push(R);else var P=xz8=[R],E=Y.setInterval(function(){if(lFk(A)){Y.clearInterval(E);for(var z=0;z<P.length;z++)P[z]();xz8=null}},100)};
MXl=function(R,A){var Y=new GZ(R);_.gz(A,Y);var P={passive:!1};A.listen(Y,"mousewheel",function(E){return void Onu(R,E)},P).listen(R,"scroll",function(E){return void Onu(R,E)},P)};
Onu=function(R,A){var Y;a:{for(Y=A.target;Y;){if(Y.nodeType==1){var P=_.Ze(Y,"overflowY");if(P=="auto"||P=="scroll")break a}Y=Y.parentNode}Y=null}if(!Y||!_.tl(R,Y)||Y.scrollHeight==Y.clientHeight||A.deltaY>0&&Math.abs(Y.scrollTop-(Y.scrollHeight-Y.clientHeight))<=1||A.deltaY<0&&Y.scrollTop==0)A.preventDefault(),A.stopPropagation()};
RN=function(R,A,Y,P,E,z,c,M,N){M=M===void 0?!1:M;N=N===void 0?!1:N;oX.call(this,void 0,void 0,void 0);oX.call(this,z?z+" picker modal-dialog":"picker modal-dialog",!0,Y);_.wz(R,"protocol");this.iframeManager_=new sBJ;this.targetId_=ut();this.rpcToken_=ut();R=_.eK(R);_.q_(R,"hostId");Y=_.q_(R,"parent");this.useGapi_=!N&&!0||(Y==null?void 0:Y.includes("onepick.corp.google.com"));M&&_.LJ(R,"fv2","true");this.setUrl(R.toString());this.preferredDialogWidth_=P;this.preferredDialogHeight_=E;P!==void 0||
E!==void 0?P=!0:(P=_.q_(_.eK(R.toString()),"hostId"),NMP||(NMP=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),P=!NMP.has(P));this.autoSizeDialog_=P;this.JSC$10183_gadgetsDomHelper_=c||this.JSC$10134_dom_;A&&(c=this.JSC$10183_gadgetsDomHelper_,A=_.q_(_.eK(this.JSC$10185_url_),"grugl")=="true"?VXq:JZ8,lFk(c)||(c=c||Sp(document),P=c.createElement("SCRIPT"),_.ET(P,A),P.type="text/javascript",c.JSC$9319_document_.body.appendChild(P)));
R=R.toString();A=null;c=R.indexOf("/picker?");c>-1?A=R.substring(0,c+8-1):lJ(R,"/picker")&&(A=R);A&&this.setRelayUrl(A+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(R=this.buttons_,R.JSC$10168_element_=this.buttonEl_,R.render()):_.zO(this.buttonEl_,yZV),_.dz(this.buttonEl_,!!this.buttons_))};
_.v_I=function(R){var A=A===void 0?mzS:A;var Y=_.tk(R),P=function(z){z=_.x(z);z.next();z=A6(z);return A(Y,z)},E=function(z){var c=_.x(z);
z=c.next().value;c=A6(c);return R.apply(z,c)};
return function(){var z=_.Ge.apply(0,arguments),c=this||_.P3,M=TMk.get(c);M||(M={},TMk.set(c,M));return QB8(M,[this].concat(_.py(z)),E,P)}};
Y0=function(R){var A={};R=R.replace(/\r/g,"").split("\n");for(var Y=0;Y<R.length;Y++){var P=R[Y],E=P.indexOf(":");E<0||(A[P.substring(0,E)]=P.substring(E+2,P.length))}return A};
g_V=function(R,A,Y){Y=Y===void 0?function(){}:Y;
return R?A():Y()};
_.Hn8=function(R){var A;return((A=n_k.documentOverride)!=null?A:R).__wizdispatcher};
_.E9=function(R){var A=PV;PV=R;return A};
_.DzI=function(R){return R===rZV||(R==null?void 0:R.name)==="\u0275NotFound"};
_.z8=function(R,A){var Y;if((Y=R)==null?0:Y.isDisposed)throw Error("jb`"+String(R.debugName));for(;R!==void 0;){Y=R;if(Y.retrieve)return Y.retrieve(A,{optional:!0});R=R.parent}return rZV};
im=function(R){return{"\u0275prov":{providedIn:"root",token:Symbol(R),factory:void 0,value:void 0}}};
_.UzJ=function(R){var A=PV;if(!A){switch(R===void 0?3:R){case 0:R=Error("ib");break;case 1:R=Error("kb");break;case 2:R=Error("lb");break;default:R=Error("mb")}throw R;}return A};
$zq=function(R){var A=_.E9(R);R={};return R[Symbol.dispose]=function(){_.E9(A)},R};
XGP=function(R,A){R.disposables||(R.disposables=[]);R.disposables.push(A)};
lm=function(R){var A=PV;A&&!A.isDisposed&&(XGP(A,R),R.parent=A)};
IF6=function(R){if(R.disposables){for(var A=_.x(R.disposables),Y=A.next();!Y.done;Y=A.next())Y=Y.value,typeof Y==="function"?Y():SFI(Y);R.disposables.length=0}};
SFI=function(R){if(!R.isDisposed){R.isDisposed=!0;var A;(A=R[Symbol.dispose])==null||A.call(R);delete R.parent;IF6(R)}};
aFS=function(R){var A={retrieve:function(Y){switch(Y.\u0275prov.token){case K3P.\u0275prov.token:var P=R.asyncDeps;break;case _.W33.\u0275prov.token:P=R.rootElement;break;case jBk.\u0275prov.token:P=R.modelRootElement;break;case bnq.\u0275prov.token:P=R.appContext;break;case fFb.\u0275prov.token:P=R.rendererData;break;case pGI.\u0275prov.token:P=R.injectingConstructor;break;case F3S.\u0275prov.token:P=R.dispatcher}if(P)Y=P;else a:{for(P=A.parent;P;){var E=P;if(E.retrieve){Y=E.retrieve(Y);break a}P=
P.parent}P=Y.\u0275prov.token;E=BM3[P];E!==void 0?Y=E:(E=Y.\u0275prov.providedIn,Y.\u0275prov.factory?(Y=Y.\u0275prov.factory(),P&&E==="root"&&(BM3[P]=Y)):Y=rZV)}return Y}};
lm(A);return A};
CBl=function(){var R=_.UzJ(1),A=_.z8(R,bnq);_.DzI(A)&&(R=_.z8(R,F3S),_.DzI(R)||R.getOptionalAppContext())};
hs6=function(R){if(typeof document!=="undefined"&&document&&document.getElementById&&(R=document.getElementById(R))){var A=R.tagName.toUpperCase();if(A=="SCRIPT"||A=="LINK")return R}return null};
k53=function(R,A){if((R=R===void 0?"":R)&&A)throw Error("sb");var Y="";var P=_.P3._F_jsUrl;(R=A||hs6(R))&&(Y=R.src?R.src:R.getAttribute("href"));if(P&&Y){if(P!=Y)throw Error("tb`"+P+"`"+Y);Y=P}else Y=P||Y;if(!o_V(Y))throw Error("ub");return Y};
wGI=function(){if(!G5V){G5V=!0;try{var R=k53(_.P3._F_jsUrl?"":"base-js")}catch(P){return}var A=Znb(tXP(R)),Y=Object.keys(A);Y.length!==0&&RsJ(function(P){for(var E=_.x(Y),z=E.next();!z.done;z=E.next()){z=z.value;for(var c=_.x(Object.keys(A[z])),M=c.next();!M.done;M=c.next())P.addExtraEdge(z,M.value)}})}};
esk=function(){var R=Object.assign({},uXS);Object.getOwnPropertyNames(uXS).forEach(function(A){x0[A]!==void 0&&(R[A]=x0[A])});
return R};
qFb=function(R,A){if(x0.enablePerformanceTiming){var Y,P;(P=(Y=performance).mark)==null||P.call(Y,R+"Start__"+A)}};
L3J=function(R,A){if(x0.enablePerformanceTiming){var Y,P;(P=(Y=performance).measure)==null||P.call(Y,R+"__"+A,R+"Start__"+A)}};
dzk=function(R,A,Y){var P;return R&&A?R+"__"+A:(P=R!=null?R:A)!=null?P:Y};
A$b=function(R,A){var Y=Object.create(Ryk);Y.debugName=A;!PV||lm(Y);A=_.E9(Y);try{R(Y)}finally{_.E9(A)}return function(){return void SFI(Y)}};
PjP=function(R){return cV(R)&&YaP in R};
Eau=function(R,A){return Object.is(R,A)};
M9=function(R){var A=O9;O9=R;return A};
iKP=function(R){if(s9)throw Error("Z");if(O9!==null){var A=O9.producersTail;if(A===void 0||A.producer!==R){var Y=void 0,P=O9.recomputing;if(P&&(Y=A!==void 0?A.nextProducer:O9.producers,Y!==void 0&&Y.producer===R)){O9.producersTail=Y;Y.lastReadVersion=R.version;return}var E=R.consumersTail,z;if(!(z=E===void 0||E.consumer!==O9)){if(P){a:{z=O9;P=z.producersTail;if(P!==void 0){z=z.producers;do{if(z===E){P=!0;break a}if(z===P)break;z=z.nextProducer}while(z!==void 0)}P=!1}P=!P}z=P}z&&(P=N9(O9),Y={producer:R,
consumer:O9,nextProducer:Y,prevConsumer:E,lastReadVersion:R.version,nextConsumer:void 0},O9.producersTail=Y,A!==void 0?A.nextProducer=Y:O9.producers=Y,P&&zyI(R,Y))}}};
c$u=function(R){if(!N9(R)||R.dirty)if(R.dirty||R.lastCleanEpoch!==lAu)(R.producerMustRecompute(R)||xjk(R))&&R.producerRecomputeValue(R),R.dirty=!1,R.lastCleanEpoch=lAu};
OKu=function(R){if(R.consumers!==void 0){var A=s9;s9=!0;try{for(var Y=R.consumers;Y!==void 0;Y=Y.nextConsumer){var P=Y.consumer;P.dirty||(R=void 0,P.dirty=!0,OKu(P),(R=P.consumerMarkedDirty)==null||R.call(P,P))}}finally{s9=A}}};
M_6=function(){var R;return((R=O9)==null?void 0:R.consumerAllowSignalWrites)!==!1};
snk=function(R){R&&(R.producersTail=void 0,R.recomputing=!0);return M9(R)};
V_q=function(R,A){M9(A);if(R){R.recomputing=!1;A=R.producersTail;var Y=A!==void 0?A.nextProducer:R.producers;if(Y!==void 0){if(N9(R)){do Y=N5k(Y);while(Y!==void 0)}A!==void 0?A.nextProducer=void 0:R.producers=void 0}}};
xjk=function(R){for(R=R.producers;R!==void 0;R=R.nextProducer){var A=R.producer,Y=R.lastReadVersion;if(Y!==A.version)return!0;c$u(A);if(Y!==A.version)return!0}return!1};
zyI=function(R,A){var Y=R.consumersTail,P=N9(R);Y!==void 0?(A.nextConsumer=Y.nextConsumer,Y.nextConsumer=A):(A.nextConsumer=void 0,R.consumers=A);A.prevConsumer=Y;R.consumersTail=A;if(!P)for(R=R.producers;R!==void 0;R=R.nextProducer)zyI(R.producer,R)};
N5k=function(R){var A=R.producer,Y=R.nextProducer,P=R.nextConsumer,E=R.prevConsumer;R.nextConsumer=void 0;R.prevConsumer=void 0;P!==void 0?P.prevConsumer=E:A.consumersTail=E;if(E!==void 0)E.nextConsumer=P;else if(A.consumers=P,!N9(A))for(R=A.producers;R!==void 0;)R=N5k(R);return Y};
N9=function(R){return R.consumerIsAlwaysLive||R.consumers!==void 0};
mju=function(R){var A=Object.create(J$P);A.computation=R;R=function(){c$u(A);iKP(A);if(A.value===Vy)throw A.error;return A.value};
R[y$k]=A;return R};
gaq=function(R,A){var Y=Object.create(T5k);Y.value=R;A!==void 0&&(Y.equal=A);R=function(){iKP(Y);return Y.value};
R[y$k]=Y;return[R,function(P){return QnV(Y,P)},
function(P){M_6()||vaq(Y);QnV(Y,P(Y.value))}]};
QnV=function(R,A){M_6()||vaq(R);if(!R.equal(R.value,A)){R.value=A;R.version++;lAu++;OKu(R);var Y;(Y=nak)==null||Y(R)}};
J6=function(R){var A=M9(null);try{return R()}finally{M9(A)}};
_.yy=function(R,A,Y){Y=Y===void 0?"":Y;R=gaq(R,A==null?void 0:A.equals);var P=R[0],E=P[y$k];E.debugName=dzk(A==null?void 0:A.debugName,Y,"[signal]");if(!x0.enablePerformanceTiming)return R;var z=R[1],c=R[2];return[P,function(M){HKk(function(){return void z(M)},E)},
function(M){HKk(function(){return void c(M)},E)}]};
HKk=function(R,A){qFb("signalSet",A.debugName);try{R()}finally{L3J("signalSet",A.debugName)}};
Djq=function(R,A){var Y=_.x(_.yy(R,void 0,"cPpJzc"));R=Y.next().value;Y=Y.next().value;R[r$J]=Y;R[mf]=A;return R};
Uj6=function(R){return!!R&&typeof R==="object"&&Object.getPrototypeOf(R)===Object.prototype};
$j3=function(R){return typeof R==="function"&&r$J in R&&typeof R[r$J]==="function"};
XjJ=function(R,A){Object.defineProperty(R,mf,{get:function(){return A}})};
Qy=function(R,A){if(T8(R)){var Y=R.map(function(z){return Qy(z,A)});
XjJ(Y,A);return Y}if(Uj6(R)){Y={};R=_.x(Object.entries(R));for(var P=R.next();!P.done;P=R.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;Y[P]=Qy(E,A)}XjJ(Y,A);return Y}return Djq(R,A)};
Sak=function(R){if(T8(R))return R.map(function(E){return Sak(E)});
if(Uj6(R)){var A={};R=_.x(Object.entries(R));for(var Y=R.next();!Y.done;Y=R.next()){var P=_.x(Y.value);Y=P.next().value;P=P.next().value;A[Y]=Sak(P)}return A}return $j3(R)?R():R};
KxP=function(){var R={height:0,width:0};if(!Uj6(R))throw Error("Jb");var A=Symbol("Kb");return[Qy(R,A),function(Y,P){if(Y[mf]===A)if(typeof P==="function"){var E=[].concat(_.py(Sak(Y)));P=P(E)||E;IAV(Y,[].concat(_.py(P)))}else IAV(Y,P);else throw Error("Lb");}]};
IAV=function(R,A){if($j3(R))R[r$J](A);else if(T8(R)&&T8(A))A=Qy(A,R[mf]),R.length=0,R.push.apply(R,_.py(A));else if((Uj6(R)||T8(R))&&(T8(A)||typeof A==="object"&&A!==null)){A=_.x(Object.entries(A));for(var Y=A.next();!Y.done;Y=A.next()){var P=_.x(Y.value);Y=P.next().value;P=P.next().value;var E=R,z=E[Y];Object.hasOwn(R,Y)?IAV(z,P):E[Y]=Qy(P,R[mf])}}else throw Error("Mb");};
WxV=function(R){return Object.create(Object.assign({},vV,R))};
bK3=function(){var R;return(R=jn8)!=null?R:jn8=WxV({consumerAllowSignalWrites:!0})};
_.gE=function(R,A,Y){Y=Y===void 0?"":Y;R=mju(R);var P=R[y$k];P.debugName=dzk(A==null?void 0:A.debugName,Y,"[computed]");(A==null?void 0:A.equals)!=null&&(P.equal=A.equals);return R};
nX=function(R){var A=M9(fAu);try{R()}finally{M9(A)}};
hyk=function(R){if(!R.isDisposed)switch(R.effectType){case HV:pj3.schedule(R);break;case FxI:B5l.schedule(R);break;case aA6:Cjq.schedule(R);break;default:_.kZ(R.effectType)}};
k$S=function(){if(rE>0)x0.flushRenderEffectsDuringRender&&pj3.flush();else for(var R=_.x(oau),A=R.next();!A.done;A=R.next())A.value.flush()};
ZK3=function(R){Di=!0;try{for(var A=_.x(R),Y=A.next();!Y.done;Y=A.next()){for(var P=Y.value,E=[P],z=P;z.parent!==void 0;)z=z.parent,G$k(z)&&R.has(z)&&E.push(z);for(;E.length>0;){var c=E.pop();R.delete(c);c.run()}}}finally{Di=!1}};
U9=function(R){rE--;if(R){R=_.x(oau);for(var A=R.next();!A.done;A=R.next())A.value.clear()}else rE>0||Di&&!x0.flushRenderEffectsDuringRender||k$S()};
wjk=function(R,A,Y){var P=t_V(R);$0={name:Y?P+" ("+Y+")":P,isReactive:R.componentType!==_.XF,parent:$0};R=A();$0=$0.parent;return R};
Sq=function(){var R=$0;return R?R.isReactive:!1};
WV=function(R,A,Y){var P=$0;A&&($0=A);try{return Y==null?R():R.call(Y)}catch(z){R=z;KX(R,$0);if(R!==u8S){eyk=$0;A=[];for(Y=PV;Y;){var E=void 0;A.push((E=Y.debugName)!=null?E:"[context]");E=void 0;Y=(E=Y.parent)!=null?E:null}qaP=A.reverse()}u8S=R;throw R;}finally{$0=P}};
KX=function(R,A){try{var Y=Lxb(A);if(Y&&!R.componentStack&&(R.componentStack=Y,x0.enableComponentStacksInErrorMessages)){var P=R.message+"\n\nComponent stack: "+Y;R.stack&&(R.stack=R.stack.replace(R.message,P));R.message=P}}catch(E){}};
Lxb=function(R){if(cV(R)&&R.name!==void 0&&R.isReactive!==void 0&&R.parent!==void 0||R===null){for(var A=0,Y="";A<20&&R;)Y+=R.name+" > ",R=R.parent,A++;R=Y.slice(0,-3)}else if(x0.enableContextBasedComponentStacks){a:{for(R=R===void 0?PV:R;R;){if(PjP(R))break a;A=void 0;R=(A=R.parent)!=null?A:null}R=null}R=R.getComponentStack().slice(0,20).join(" > ")}else R="";return R};
t_V=function(R){return R.debugName||R.name||"[component]"};
dj8=function(R,A,Y){A=Object.create(A);R&&(A.effectFn=R);Y&&(A.debugName=Y);lm(A);A.componentStack=$0;return A};
_.jq=function(R,A){R=dj8(R,ROI,A);hyk(R)};
_.bm=function(R){var A=PV;if(A){var Y=$0;XGP(A,function(){var P=M9(bK3());try{WV(function(){return void R()},Y)}catch(E){throw x0.enableContextBasedComponentStacks&&KX(E),E;
}finally{M9(P)}})}};
fX=function(R,A){var Y={};(A===void 0||A)&&lm(Y);A=_.E9(Y);try{R(Y)}finally{_.E9(A)}return function(){return void SFI(Y)}};
_.pX=function(R){return typeof R==="function"?R():(R==null?0:R[AwP])?R.get():R};
_.FF=function(R,A){R=dj8(R,Y_8,A);hyk(R)};
Pyk=function(R){if(PV)throw Error("nb");fX(R,!1)};
BV=function(R,A){R=_.E9(R);try{return J6(A)}finally{_.E9(R)}};
aN=function(R,A){var Y=Lxb(eyk),P,E;var z=(E=(P=qaP)==null?void 0:P.slice())!=null?E:[];A={componentStack:Y,contextTrace:z,errorSeverity:3,featureFlags:esk(),tagName:A};return[R,A]};
igu=function(R,A,Y){if(Object.hasOwnProperty.call(Eck,R)&&(R=Eck[R],Object.hasOwnProperty.call(R,A)&&(R=R[A],R instanceof Array))){for(var P=null,E=!1,z=0,c=R.length;z<c;++z){var M=R[z],N=M.contingentAttribute;if(!N)return M.contract;P===null&&(P={});N=Object.hasOwnProperty.call(P,N)?P[N]:P[N]=Y(N);if(N===M.requiredValue)return M.contract;N==null&&(E=!0)}if(E)return null}A=zO6[A];return typeof A==="number"?A:null};
cw3=function(R,A,Y){var P=null;(R=lNJ[R])&&(P=R[A]);return typeof P!=="number"&&((R=lNJ["*"])&&(P=R[A]),typeof P!=="number")?!1:!0===xKI[P][String(Y).toLowerCase()]};
MyJ=function(R,A){A=igu(R.toLowerCase(),A,function(){var P;(P=x0.handleError)==null||P.call.apply(P,[x0].concat(_.py(aN(Error("Rb"),R.toLowerCase()))))});
if(A===null)return null;var Y;return(Y=Ogq[A])!=null?Y:null};
s$q=function(R,A,Y){if(Y===null||Y===void 0)return Y;A=A.toLowerCase();R=MyJ(R,A);return R===null?Y:R(A,Y)};
NvI=function(){};
CX=function(R,A){for(;R.length>A;)R.pop()};
VyP=function(R){R=Array(R);CX(R,0);return R};
h6=function(R,A,Y){if(Y==null)R.removeAttribute(A);else{var P;(P=A.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":A.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?R.setAttributeNS(P,A,Y):R.setAttribute(A,Y)}};
Jwb=function(R,A,Y){R[A]=Y};
mKk=function(R,A,Y){R=R.style;if(typeof Y==="string")R.cssText=Y;else{R.cssText="";for(var P in Y)if(ywl.call(Y,P)){A=R;var E=P,z=Y[P];E.indexOf("-")>=0?A.setProperty(E,z):A[E]=z}}};
TvJ=function(R,A,Y){var P=typeof Y;P==="object"||P==="function"?R[A]=Y:h6(R,A,Y)};
Q$q=function(){var R=new NvI;R[k0.default]=TvJ;R.style=mKk;return R};
vcl=function(R,A,Y,P){(P[A]||P[k0.default])(R,A,Y)};
nck=function(R,A,Y){A=new gcu(A,Y);return R.__incrementalDOMData=A};
G8=function(R,A){if(R.__incrementalDOMData)return R.__incrementalDOMData;var Y=R.nodeType===1?R.localName:R.nodeName,P=R.nodeType===1?R.getAttribute("key"):null;A=nck(R,Y,R.nodeType===1?P||A:null);if(R.nodeType===1&&(R=R.attributes,Y=R.length)){P=A._attrsArr||(A._attrsArr=VyP(Y*2));for(var E=0,z=0;E<Y;E+=1,z+=2){var c=R[E],M=c.value;P[z]=c.name;P[z+1]=M}}return A};
Hg3=function(R,A,Y,P,E){return A==Y&&P==E};
rwk=function(R){for(var A=wE,Y=um();Y!==R;){var P=Y.nextSibling;A.removeChild(Y);eq.deleted.push(Y);Y=P}};
um=function(){return q9?q9.nextSibling:wE.firstChild};
LX=function(){q9=um()};
$Kq=function(R,A,Y){LX();var P;a:{if(P=q9){do{var E=P,z=R,c=A,M=G8(E,c);if(DKk(E,z,M.nameOrCtor,c,M.key))break a}while(A&&(P=P.nextSibling))}P=null}P||(R==="#text"?(Y=dE.createTextNode(""),nck(Y,"#text",null),R=Y):(P=dE,E=wE,typeof R==="function"?P=new R:P=(E=R==="svg"?"http://www.w3.org/2000/svg":R==="math"?"http://www.w3.org/1998/Math/MathML":E==null||G8(E).nameOrCtor==="foreignObject"?null:E.namespaceURI)?P.createElementNS(E,R):P.createElement(R),nck(P,R,A),R=P,Y&&R.setAttribute("nonce",Y)),eq.created.push(R),
P=R);Y=P;if(Y!==q9){if(UKJ.indexOf(Y)>=0)for(R=wE,A=Y.nextSibling,P=q9;P!==null&&P!==Y;)E=P.nextSibling,R.insertBefore(P,A),P=E;else wE.insertBefore(Y,q9);q9=Y}};
Xuk=function(R,A,Y){$Kq(R,A,Y);wE=q9;q9=null;return wE};
S_3=function(){rwk(null);q9=wE;wE=wE.parentNode};
INl=function(){q9=wE.lastChild};
j$J=function(R,A){A=A===void 0?{}:A;var Y=A.matches===void 0?Hg3:A.matches;return function(P,E,z){var c=eq,M=dE,N=UKJ,y=R1,m=Av,T=q9,Q=wE,g=DKk;dE=P.ownerDocument;eq=new Kek(P);DKk=Y;R1=[];Av=[];q9=null;var r=wE=P.parentNode,I,b=WeI.call(P);if((I=b.nodeType===11||b.nodeType===9?b.activeElement:null)&&P.contains(I)){for(b=[];I!==r;)b.push(I),I=I.parentNode||(r?I.host:null);r=b}else r=[];UKJ=r;try{return R(P,E,z)}finally{P=eq,YW&&P.deleted.length>0&&YW(P.deleted),dE=M,eq=c,DKk=g,R1=y,Av=m,q9=T,wE=Q,
UKJ=N}}};
bgb=function(R,A,Y,P){PD.push(vcl);PD.push(R);PD.push(A);PD.push(Y);PD.push(P)};
puk=function(R,A,Y){var P=Av;A=A._attrsArr||(A._attrsArr=VyP(P.length));for(var E=!A.length||!1,z=0;z<P.length;z+=2){var c=P[z];if(E)A[z]=c;else if(A[z]!==c)break;var M=P[z+1];if(E||A[z+1]!==M)A[z+1]=M,bgb(R,c,M,Y)}if(z<P.length||z<A.length){for(z=E=z;z<A.length;z+=2)Ee[A[z]]=A[z+1];for(z=E;z<P.length;z+=2)E=P[z],c=P[z+1],Ee[E]!==c&&bgb(R,E,c,Y),A[z]=E,A[z+1]=c,delete Ee[E];CX(A,P.length);for(var N in Ee)bgb(R,N,void 0,Y),delete Ee[N]}R=fNq;fNq=Y=PD.length;for(N=R;N<Y;N+=5)(0,PD[N])(PD[N+1],PD[N+
2],PD[N+3],PD[N+4]);fNq=R;CX(PD,R);CX(P,0)};
FeJ=function(R){$Kq("#text",null);var A=q9;var Y=G8(A);if(Y.text!==R){Y=Y.text=R;for(var P=1;P<arguments.length;P+=1)Y=(0,arguments[P])(Y);A.data!==Y&&(A.data=Y)}};
GRk=function(R,A,Y){if(Y===!1&&Bvu.has(A))h6(R,A,null);else if(A!=="idomKey"&&A!=="skip"&&A!=="skipchildren"&&A!=="children"&&A!=="el")if(A.startsWith("on")){if(A[2]!==":")throw Error("Qb`"+A);if(Y===void 0||Y===null){var P;(P=x0.handleError)==null||P.call.apply(P,[x0].concat(_.py(aN(Error("Vb`"+A),R.tagName))));R[A]=void 0}else{var E=A.slice(3);P=Sq();if(E==="jsaction"){Y=Array.isArray(Y)?Y:[Y];Y=_.x(Y);for(var z=Y.next();!z.done;z=Y.next()){z=z.value;if(typeof z!=="object"||z===null||typeof z.selfReg!==
"function")throw Error("Yb`"+A);z.selfReg(0,R,P?_.bm:function(){})}}else{if(typeof Y!=="object"||Y===null)throw Error("Wb`"+A+"`"+typeof Y);
if(typeof Y.getFn!=="function")throw Error("Xb`"+A+"`"+Object.keys(Y));if(Y.selfReg)Y.selfReg(0,R,E,P?_.bm:function(){});
else if(P&&R["on"+E]===void 0){var c=Y.getFn(0);R.addEventListener(E,c);_.bm(function(){return void R.removeEventListener(E,c)})}else if(P||!aN3.includes(E))R["on"+E]=Y.getFn(0)}}}else{if(A.startsWith("data-")&&typeof Y==="string")try{Y=Cy3(Y)}catch(M){Y="zSoyz"}typeof Y!=="function"||R._disposeEffects!=null?((P=A.startsWith("prop:"))&&(A=A.slice(5)),x0.enableAttributeSanitization&&(P&&hOu(R.tagName)||(Y=s$q(R.tagName,A,Y))),A==="style"?("function"==typeof _.zT&&Y instanceof _.zT&&(Y=Y.toString()),
ocP(R,A,Y)):P?R[A]=Y:kRl(R,A,Y)):(R._signalProps||(R._signalProps=[]),R._signalValues||(R._signalValues=[]),R._signalProps.push(A))}};
Zgk=function(R,A,Y){Y=(Y===void 0?{}:Y).isReactive;if(A==null?0:A.el){var P=A.el,E;(E=P.onRender)==null||E.call(P,R);R._disposeRef||(R._disposeRef=function(){var z;(z=P.onUnmount)==null||z.call(P);delete R._disposeRef},Y&&_.bm(function(){var z;
(z=R._disposeRef)==null||z.call(R)}))}};
hOu=function(R){return R.length>0&&R.includes("-")&&!tyq.includes(R.toLowerCase())};
wuJ=function(R){return cV(R)&&iI in R};
u4S=function(R){return wuJ(R)?R[iI].flattened:R};
q_q=function(R,A){var Y=_.Ge.apply(2,arguments),P;A=(P=A)!=null?P:{};P={};return P.type=R,P.props=A,P.children=Y,P[eO8]=!0,P};
_.lI=function(R){return R.children};
xW=function(R){var A=LeP!==q_q;LeP=R?dKS:q_q;return A};
_.cD=function(R){return _.ZI(R)?"nodeType"in R:!1};
Oe=function(){return document.createTextNode("")};
MI=function(R){R=document.createTextNode(String(R));R._isSignalTextNode=!0;return R};
A_8=function(R){return R!=null&&R.contentKind===se||R instanceof ub||RPk(R)};
YPk=function(R){var A=document.createElement("div");if(RPk(R)&&VxS(R))_.zO(A,VxS(R));else if(R instanceof ub)_.zO(A,R);else if(R!=null&&R.contentKind===se){if(R.contentKind!==se)throw Error("Ub");R=ec(R.toString());_.zO(A,R)}R=_.x(A.childNodes);for(var Y=R.next();!Y.done;Y=R.next())Y.value._isSafeOrSanitizedHtmlNode=!0;return A};
VI=function(R){R=typeof R;return R==="string"||R==="number"||R==="boolean"};
PPI=function(R){return R instanceof Sc||pq(R)||R instanceof ct||"function"==typeof _.zT&&R instanceof _.zT};
Ehk=function(R,A){var Y=R.parentElement;if(!Y)return A;Y.replaceChild(A,R);return A};
zPP=function(R,A){var Y=R[0].parentElement;if(Y)if(R[0].previousSibling||R[R.length-1].nextSibling){Y.insertBefore(A,R[0]);for(var P=R.length-1;P>=0;P--)Y.removeChild(R[P])}else Y.textContent="",Y.appendChild(A);return A};
iOI=function(R,A){if(R[0].parentElement)for(var Y=R[0].parentElement,P=A.length,E=R.length,z=P,c=0,M=0,N=R[E-1].nextSibling,y=null;c<E||M<z;)if(R[c]===A[M])c++,M++;else{for(;R[E-1]===A[z-1];)E--,z--;if(E===c)for(var m=z<P?M?A[M-1].nextSibling:A[z-M]:N;M<z;){var T=A[M++];Y.insertBefore(T,m)}else if(z===M)for(;c<E;)m=R[c],y&&y.has(m)||Y.removeChild(m),c++;else if(R[c]===A[z-1]&&A[M]===R[E-1])m=R[--E].nextSibling,Y.insertBefore(A[M++],R[c++].nextSibling),Y.insertBefore(A[--z],m),R[E]=A[z];else{if(!y)for(y=
new Map,m=M;m<z;)y.set(A[m],m++);m=y.get(R[c]);if(m==null)Y.removeChild(R[c]),c++;else if(M<m&&m<z){T=c;for(var Q=1,g=void 0;++T<E&&T<z&&(g=y.get(R[T]))!=null&&g===m+Q;)Q++;if(Q>m-M)for(T=R[c];M<m;)Y.insertBefore(A[M++],T);else Y.replaceChild(A[M++],R[c++])}else c++}}return A};
x4k=function(R){if(Array.isArray(R)){if(R.length>1)throw Error("hc`"+R.length+"`"+R.map(lZk).join(", "));R=R[0]}if(R==null)return null;if(!(R instanceof _.AO)){var A,Y;if((A=window)==null?0:(Y=A.trustedTypes)==null?0:Y.isScript(R))throw Error("gc");if(String(R).trim().length===0)return null;throw Error("ic`"+lZk(R));}return R};
c_3=function(R,A){A=x4k(A);A!==null&&_.Pt(R,A)};
OOu=function(R){if(Array.isArray(R)){if(R.length>1)throw Error("jc`"+R.length+"`"+R.map(lZk).join(", "));R=R[0]}if(R==null)return null;if(!(R instanceof ct)){if(String(R).trim().length===0)return null;throw Error("kc`"+lZk(R));}return R};
M0I=function(R,A){A=OOu(A);A!==null&&(R.textContent=sGk(A))};
lZk=function(R){return"("+typeof R+") "+(R!=null&&typeof R==="object"?R.constructor.name:typeof R)+" "+R};
sKk=function(){};
mJ=function(R,A){A=A===void 0?{}:A;var Y=Nqk();x0.legacyTriggerSoyRendererEvents&&CBl();_.FF(function(){Jv.setUp();A.isControlFlowComponent&&rE++;var P=Y[0],E=Y[iI].flattened,z=xW(!0);try{var c=R(),M=V0P(P,c,Y);Array.isArray(M)||(Y[iI].flattened=[M]);var N=Y[iI].flattened;if(E&&(!Array.isArray(E)||E.length!==0)){var y=Array.isArray(E)?E[0]:E,m=y[yI],T=y._disposeEffects;y._disposeEffects=void 0;y=Array.isArray(N)?N[0]:N;y[yI]=m;y[yI]&&(y[yI].numNodes=y===N?1:N.length);y._disposeEffects=T}Y[0]=M;A.isControlFlowComponent&&
U9(!1)}catch(Q){throw A.isControlFlowComponent&&U9(!0),Q;}finally{xW(z),Jv.tearDown()}},A.debugName);
return Y};
V0P=function(R,A,Y){for(;typeof A==="function";)A=A();if(A!=null&&A[eO8]){var P,E,z;(z=x0.handleError)==null||z.call.apply(z,[x0].concat(_.py(aN(Error("lc`"+((P=A.type)==null?void 0:P.TAG_NAME)),(E=A.type)==null?void 0:E.TAG_NAME))))}if(R==null)return A==null?Oe():VI(A)?MI(A):PPI(A)?MI(A.toString()):_.cD(A)?A:A.length===0?Oe():J_q(A,Y);if(_.cD(R)){if(A==null)return Ehk(R,Oe());if(VI(A))return y_8(R,A);if(PPI(A))return y_8(R,A.toString());if(_.cD(A))return Ehk(R,A);if(A.length===0)return Ehk(R,Oe());
A=J_q(A,Y);iOI([R],Y[iI].flattened);return A}R=QI(R);if(A==null)return zPP(R,Oe());if(VI(A))return zPP(R,MI(A));if(PPI(A))return zPP(R,MI(A.toString()));if(_.cD(A))return iOI(R,[A])[0];if(A.length===0)return zPP(R,Oe());A=J_q(A,Y);iOI(R,Y[iI].flattened);return A};
y_8=function(R,A){R.nodeType===Node.TEXT_NODE?R.textContent!==String(A)&&(R.textContent=String(A)):R=Ehk(R,MI(A));return R};
QI=function(R,A,Y){return m43(R,A!=null?A:[],Y===void 0?!1:Y)};
J_q=function(R,A){var Y=QI(R,void 0,!0);if(Y.length===0)return Oe();A[iI].flattened=Y;return R};
m43=function(R,A,Y,P,E){A=A===void 0?[]:A;Y=Y===void 0?!1:Y;E=E===void 0?-1:E;if(R==null)return A;if(R instanceof vD){var z=R.render();return m43(z,A,Y,P,E)}if(_.cD(A)&&A.nodeType===Node.ELEMENT_NODE)switch(A.tagName){case "SCRIPT":c_3(A,R);return;case "STYLE":M0I(A,R);return}VI(R)&&(R=MI(R),P&&Y&&(P[E]=R));if(A_8(R)){Y=YPk(R);Y=Array.from(Y.childNodes);Y=_.x(Y);for(z=Y.next();!z.done;z=Y.next())Tq3(A,z.value);return A}PPI(R)&&(R=MI(R.toString()),P&&Y&&(P[E]=R));if(_.cD(R))return Tq3(A,R);if(Array.isArray(R)){for(z=
0;z<R.length;z++)m43(R[z],A,Y,R,z);return A}if(typeof R==="function"){z=mJ(function(){var M=R();return M!=null&&!VI(M)&&A_8(M)?(M=YPk(M),Array.from(M.childNodes)):M},{debugName:"qmF2ne",
debugFn:R})[0];if(Array.isArray(z)){Y=_.x(z);for(z=Y.next();!z.done;z=Y.next())Tq3(A,z.value);return A}P&&Y&&(P[E]=z);return Tq3(A,z)}if(R!=null&&R[eO8]){P=R;E=xW(!0);var c=LeP;try{z=c.apply(null,[P.type,P.props].concat(_.py(P.children)))}finally{xW(E)}return m43(z,A,Y)}(c=x0.handleError)==null||c.call.apply(c,[x0].concat(_.py(aN(Error("mc")))));return A};
Nqk=function(R){var A={};A=Object.assign([],(A[iI]={flattened:[]},A));if(!R)return A;A[0]=J_q(R,A);return A};
Tq3=function(R,A){Array.isArray(R)?R.push(A):R.appendChild(A);return R};
gu=function(R){if(!x0.enableLazyTsx)return R;if(Array.isArray(R)){for(var A=0;A<R.length;A++)R[A]=gu(R[A]);return R}return R instanceof vD?(R=R.render(),gu(R)):R};
vhS=function(R,A){var Y,P,E=t_V(R),z=function(g){P=g;g=xW(!0);var r=M9(nQ);qFb("render",E);try{Y=gu(R(A))}finally{L3J("render",E),M9(r),xW(g)}};
z=x0.enableContextPerComponent?A$b(z,E):fX(z,x0.alwaysTrackContexts||!!PV);PjP(P);if(!A.renderedFromIdom){var c=_.E9(P);try{return QKJ(R,A,Y),Y}finally{_.E9(c)}}!wuJ(Y)&&Array.isArray(Y)&&(Y=Nqk(Y));var M=u4S(Y);c=Array.isArray(M)?M[0]:M;var N=!1;if(c){var y,m=(y=A==null?void 0:A.idomKey)!=null?y:R;y=M!==c;c._disposeEffects=z;var T=c[yI]||{},Q=wuJ(Y)?Y:T.sourceDynamicRange;Object.assign(T,{key:m,numNodes:y?M.length:1,context:P,higherOrder:!!c[yI],sourceDynamicRange:Q});c[yI]=T}else N=!0;(function(){var g=
_.E9(P);try{QKJ(R,A,M)}finally{_.E9(g)}})();
N&&z();return Y};
gh3=function(R){var A={},Y;for(Y in R)A={prev$jscomp$24:void 0,next$jscomp$33:void 0},A.prev$jscomp$24=HD[Y],A.next$jscomp$33=R[Y],HD[Y]=function(P){return function(){var E=_.Ge.apply(0,arguments);P.prev$jscomp$24.apply(null,_.py(E));P.next$jscomp$33.apply(null,_.py(E))}}(A)};
HO8=function(){if(Sq())throw Error("nc");return nhP};
r_k=function(R,A){if(!R.__unmounted&&A){R.__unmounted=!0;try{R.didUnmount()}catch(E){var Y,P;(P=x0.handleError)==null||P.call.apply(P,[x0].concat(_.py(aN(E,(Y=R.__type)==null?void 0:Y.TAG_NAME))))}HD.didUnmount(R);R.el=null;A.__instance&&delete A.__instance}};
U4J=function(R,A,Y){R._signalProps!=null&&R._disposeEffects==null&&((Y===void 0?0:Y)?R._disposeEffects=fX(function(){return void D4k(R,A)},x0.alwaysTrackContexts||!!PV):D4k(R,A))};
D4k=function(R,A){_.FF(function(){for(var Y=R._signalProps,P=R._signalValues,E=0;E<Y.length;E++){var z=Y[E],c=A[z]();P[E]!==c&&(P[E]=c,GRk(R,z,c))}},"e3YVbb")};
$4b=function(R,A,Y){var P,E=[];R._disposeEffects=fX(function(){_.FF(function(){var z=Y();if(z===null||z===void 0)z="";if(VI(z)||z===null)P!=null||(P=document.createTextNode("")),P.parentNode!==R&&(P._isSignalTextNode=!0,R.insertBefore(P,A)),P.textContent=String(z);else if(A_8(z)){for(var c=E.length>0?E[E.length-1].nextSibling:A,M=_.x(E),N=M.next();!N.done;N=M.next())R.removeChild(N.value);z=YPk(z);E=Array.from(z.childNodes);z=_.x(E);for(M=z.next();!M.done;M=z.next())R.insertBefore(M.value,c)}else throw N=
(M=(c=$0)==null?void 0:c.name)!=null?M:"unknown",Error("cc`"+N+"`"+typeof z);},"VvDgC")},x0.alwaysTrackContexts||!!PV)};
IZS=function(R,A){var Y=_.Ge.apply(2,arguments);A!=null||(A={});return!x0.enableLazyTsx||$0!=null&&!Sq()?Xek(R,A,Y):new SPk(R,A,Y)};
Xek=function(R,A,Y){if(R===_.lI)return Y;if(typeof R==="function")return $0&&!Sq()&&(A.renderedFromIdom=!0),wjk(R,function(){var z=KrS(R,A,Y);if(z)return z;Y.length>0&&(A.children=Y.length===1?Y[0]:Y);if(R.componentType===_.XF){var c;A$b(function(){var M=A;if(R.componentType!==_.XF)c=!1;else{M||(M={});var N=new ru(M,R),y=M9(nQ);try{var m=N.render(M)}finally{M9(y)}m instanceof HTMLElement?(m.__instance=N,N.el=m,N.__type=R,R.TAG_NAME=m.tagName.toLowerCase(),HD.didPatch(N),c=m):c=m}},R.name);
if(c)return c}return vhS(R,A)},A.debugInstance);
var P=WrV(R,A),E;for(E in A)GRk(P,E,A[E]);U4J(P,A);QI(Y,P);Zgk(P,A,{isReactive:!0});jKI(P,A);return P};
WrV=function(R,A){R=(bOk.has(R.toLowerCase())?0:fZS.has(R.startsWith("svg:")?R.replace("svg:",""):R))?document.createElementNS("http://www.w3.org/2000/svg",R.startsWith("svg:")?R.replace("svg:",""):R):peP(R,A)||document.createElement(R);R[Frk]=!0;return R};
_.Bq8=function(R){if(R){var A;(A=R._disposeRef)==null||A.call(R);var Y;(Y=R._disposeEffects)==null||Y.call(R);R.__instance&&R.__instance instanceof Dr&&(A=R.__instance,r_k(A,R),A instanceof ru&&A.disposeEffects());for(A=0;A<R.childNodes.length;A++)_.Bq8(R.childNodes[A])}};
CP6=function(R){aZJ.push(R)===1&&requestAnimationFrame(function(){setTimeout(function(){var A=[].concat(_.py(aZJ));aZJ=[];A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;try{for(var P=0;P<Y.length;P++)_.Bq8(Y[P])}catch(E){P=Y=void 0,(P=(Y=x0).handleError)==null||P.call.apply(P,[Y].concat(_.py(aN(E))))}}})})};
_.V=function(R,A){return LeP.apply(null,[R,A].concat(_.py(_.Ge.apply(2,arguments))))};
_.J=function(R){var A=R.cond;if(A===void 0)return R.else&&R.else();var Y=_.gE(function(){return!!A()},void 0,"JHVi8"),P=function(){var E=A();
if(!E){var z;(z=x0.handleError)==null||z.call.apply(z,[x0].concat(_.py(aN(hPk.nonNullableCondIsNull()))))}return E};
return mJ(function(){var E=Y(),z;fX(function(){var c=M9(nQ);try{z=gu(E?R.then(P):R.else&&R.else())}finally{M9(c)}},!0);
return z},{debugName:R.debugInstance,
debugFn:R.then,isControlFlowComponent:!0})};
ohS=function(R){return _.J(R)};
_.Ue=function(R){return R.keyBy==="INDEX"?kr3(R):GrI(R)};
ZOI=function(R){R=_.x(R);for(var A=R.next();!A.done;A=R.next()){var Y=void 0;(Y=A.value)==null||Y()}};
GrI=function(R){var A=R.keyBy===void 0||R.keyBy==="REFERENCE",Y=A?function(m){return m}:R.keyBy,P=[],E=[],z=[],c=[],M=[],N=[],y=!0;
_.bm(function(){ZOI(c)});
return mJ(function(){var m=R.each(),T=m.length;if(T===0){if(P.length===0&&!y)return z;ZOI(c);P=m;E=[];for(m=0;m<P.length;m++)E.push(Y(P[m]));z=[];c=[];M=[];N=[];R.fallback&&(c[0]=t0l(function(){z[0]=gu(R.fallback())}));
y=!1;return z}for(var Q=new weP,g=P.length-1;g>=0;g--)Q.push(E[g],g);g=Array(T);for(var r=Array(T),I=Array(T),b=Array(T),p=Array(A?0:T),h={i$jscomp$450:0};h.i$jscomp$450<T;h={i$jscomp$450:h.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$564:void 0},h.i$jscomp$450++){h.item$jscomp$104=m[h.i$jscomp$450];h.key$jscomp$564=Y(h.item$jscomp$104);var L=Q.pop(h.key$jscomp$564);L!=null?(I[h.i$jscomp$450]=z[L],r[h.i$jscomp$450]=E[L],g[h.i$jscomp$450]=c[L],b[h.i$jscomp$450]=M[L],A||(p[h.i$jscomp$450]=N[L]),nX(function(Z){return function(){b[Z.i$jscomp$450](Z.i$jscomp$450);
if(!A)p[Z.i$jscomp$450](Z.item$jscomp$104)}}(h)),delete c[L]):g[h.i$jscomp$450]=t0l(function(Z){return function(){var w=_.x(_.yy(Z.i$jscomp$450,void 0,"Fqk1zd")),t=w.next().value;
w=w.next().value;b[Z.i$jscomp$450]=w;r[Z.i$jscomp$450]=Z.key$jscomp$564;if(A)I[Z.i$jscomp$450]=gu(R.children(Z.item$jscomp$104,t));else{var d=_.x(_.yy(Z.item$jscomp$104,void 0,"GBj5de"));w=d.next().value;d=d.next().value;p[Z.i$jscomp$450]=d;I[Z.i$jscomp$450]=gu(R.children(w,t))}}}(h))}ZOI(c);
P=m;E=r;z=I;c=g;M=b;N=p;y=!1;return I},{debugName:R.debugInstance,
debugFn:R.each,isControlFlowComponent:!0})};
kr3=function(R){var A=[],Y=[],P=[],E=[],z=!1;_.bm(function(){for(var c=_.x(E),M=c.next();!M.done;M=c.next())M=M.value,M()});
return mJ(function(){var c=R.each();z&&c.length>0&&(E.pop()(),A.pop(),z=!1);for(var M=Array(c.length),N={i$jscomp$451:0};N.i$jscomp$451<c.length;N={i$jscomp$451:N.i$jscomp$451},N.i$jscomp$451++)if(N.i$jscomp$451<A.length)A[N.i$jscomp$451]!==c[N.i$jscomp$451]&&(nX(function(m){return function(){return void Y[m.i$jscomp$451](c[m.i$jscomp$451])}}(N)),A[N.i$jscomp$451]=c[N.i$jscomp$451]),M[N.i$jscomp$451]=P[N.i$jscomp$451];
else{var y=t0l(function(m){return function(){A[m.i$jscomp$451]=c[m.i$jscomp$451];var T=_.x(_.yy(c[m.i$jscomp$451],void 0,"JMMLmd")),Q=T.next().value;T=T.next().value;Y[m.i$jscomp$451]=T;M[m.i$jscomp$451]=gu(R.children(Q,m.i$jscomp$451))}}(N));
E[N.i$jscomp$451]=y}for(;A.length>c.length;)A.pop(),E.pop()(),Y.pop();c.length===0&&!z&&R.fallback&&(N=t0l(function(){M[0]=gu(R.fallback())}),E[0]=N,z=!0);
return P=M},{debugName:R.debugInstance,
isControlFlowComponent:!0})};
t0l=function(R){var A=PV;return fX(function(Y){var P=M9(nQ);try{Y.parent=A,R(Y)}finally{M9(P)}},!1)};
_.$W=function(R){return R};
_.Xc=function(R){return{isDefault:!0,children:R.children}};
_.SO=function(R){var A=u9P(R),Y=_.gE(function(){return ePb(A)},void 0,"F1PF4");
return mJ(function(){var P=Y(),E;fX(function(){var z=M9(nQ);try{E=gu(P())}finally{M9(z)}});
return E},{debugName:R.debugInstance,
isControlFlowComponent:!0})};
u9P=function(R){R=R.children;return Array.isArray(R)?R:[R]};
qPb=function(R){var A=R.props;R=R.getChildren()[0];return A.when?{when:A.when,children:R}:{isDefault:!0,children:R}};
ePb=function(R){var A=function(){return null};
R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,Y!=null&&Y[eO8]&&(Y=Y.type===_.Xc?{isDefault:!0,children:Y.children[0]}:{when:Y.props.when,children:Y.children[0]}),Y instanceof vD&&(Y=qPb(Y)),Y.isDefault)A=Y.children;else if(Y.when())return Y.children;return A};
d4V=function(R){var A=null,Y,P={get value(){var z,c;(c=(z=E).validateGetValue)==null||c.call(z);return E.__value},set value(z){var c,M;(M=(c=E).validateSetValue)==null||M.call(c,z);E.__value=z;E.__hasBeenSet=!0}},E=(P.__value=null,P.__hasBeenSet=!1,P.__hasErrored=!1,P.onRender=function(z){if(Y&&z!==Y){Y._disposeRef=void 0;var c;(c=A)==null||c()}Y=z;A=R(z)||null},P.onUnmount=function(){var z;
(z=A)==null||z();A=E.value=null},P[_.LrI]=!0,P);
return E};
I1=function(R){return typeof R==="symbol"};
Agk=function(R){var A=HO8();if(A==null)throw _.RY6.PRIMITIVE_INVALID_HOOK_CALL();var Y=A.hookCounter++;A.hooks||(A.hooks=[]);var P=A.hooks;P[Y]||(P[Y]={key:R,host:A});if(R!==P[Y].key){if(A.__type){var E;R=(E=A.__type)==null?void 0:E.name}else R=A instanceof ru?t_V(A.functionComponent):"<"+A.el.tagName.toLowerCase()+">";throw _.RY6.OUT_OF_ORDER_HOOK_CALL(R);}return P[Y]};
YC6=function(R,A){return!R||R.length!==(A==null?void 0:A.length)||R.some(function(Y,P){return Y!==A[P]})};
PEu=function(R,A){var Y=Agk("onChange"),P=HO8();YC6(Y.deps,A)&&(Y.deps=A,Y.pendingEffect=R,P.__syncEffects||(P.__syncEffects=[]),P.__syncEffects.push(Y))};
_.KQ=function(R,A,Y){Y!=null||(Y={});Y=Y.appContext;var P=!!x0.legacyTriggerSoyRendererEvents;Jv.setUp();try{var E=Eob(R,A,Y);P&&(A=Y,A==null&&(A=_.Hn8(document).getAppContext()),A.get(zYk).JSC$29019_getEventTarget().dispatchEvent(new ijk(lMP,R,se)));Jv.log(R);return E}finally{Jv.tearDown()}};
Eob=function(R,A,Y){var P=function(){var z=M9(nQ);try{return fX(function(){var c=_.Hn8(_.oS(R)),M;var N=aFS({rootElement:{value:R},appContext:Y||(c==null?void 0:(M=c.getOptionalAppContext)==null?void 0:M.call(c)),dispatcher:c});c=_.E9(N);N=xW(!0);rE++;try{QI(A(),R),U9(!1)}catch(y){throw U9(!0),y;}finally{xW(N),_.E9(c)}},!1)}catch(c){throw x0.enableContextBasedComponentStacks&&KX(c),c;
}finally{M9(z)}},E=WV(function(){return P()});
R[xT8]=!0;return function(){R.textContent="";E();R[xT8]=!1}};
_.WD=function(R){if(G$k(O9)){var A;(A=x0.handleError)==null||A.call.apply(A,[x0].concat(_.py(aN(Error("bc")))))}var Y=PV,P=$0;Promise.resolve().then(function(){if(Y&&!Y.isDisposed){var E=_.E9(Y);try{WV(function(){return void R()},P)}catch(z){throw x0.enableContextBasedComponentStacks&&KX(z),z;
}finally{_.E9(E)}}})};
cgV=function(R,A){PEu(function(){return J6(R)},A)};
_.jO=function(R){Sq()?_.WD(function(){J6(R)}):PEu(function(){return J6(R)},[])};
MFJ=function(R){var A=[].concat(_.py(R));R.length=0;R=_.x(A);for(A=R.next();!A.done;A=R.next()){A=A.value;Ojk(A);var Y=A.pendingEffect;A.pendingEffect=null;if(Y=Y==null?void 0:Y())A.pendingCleanup=Y}};
Ojk=function(R){var A=R.pendingCleanup;R.pendingCleanup=null;A==null||A()};
soS=function(R,A){if(Sq())return R();var Y=Agk("useMemoInternal");YC6(Y.deps,A)&&(Y.deps=A,Y.value=R());return Y.value};
NHk=function(R,A){return soS(R,A)};
bI=function(R){return soS(R,[])};
VFl=function(R){return bI(function(){return{value:R}})};
_.fQ=function(R,A){if(!R)return null;R=Object.keys(R);R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next()){Y=Y.value;var P=Y.toLowerCase();if(P.indexOf(A,P.length-A.length)>-1)return Y}return null};
_.BD=function(){var R=arguments,A=_.Fc;R.length>1?A[R[0]]=R[1]:R.length===1&&Object.assign(A,R[0])};
_.a1=function(R,A){return R in _.Fc?_.Fc[R]:A};
_.CQ=function(R,A){return!!_.a1(R,A)};
Jg6=function(R){var A=_.Fc.EXPERIMENT_FLAGS;return A?A[R]:void 0};
mTk=function(R){yg6.forEach(function(A){return A(R)})};
_.o1=function(R){return R&&window.yterr?function(){try{return R.apply(this,arguments)}catch(A){_.hv(A)}}:R};
_.hv=function(R){var A=_.Zr("yt.logging.errors.log");A?A(R,"ERROR",void 0,void 0,void 0,void 0,void 0):(A=_.a1("ERRORS",[]),A.push([R,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.BD("ERRORS",A));mTk(R)};
_.tv=function(R,A,Y,P,E){var z=_.Zr("yt.logging.errors.log");z?z(R,"WARNING",A,Y,P,void 0,E):(z=_.a1("ERRORS",[]),z.push([R,"WARNING",A,Y,P,void 0,E]),_.BD("ERRORS",z))};
Qok=function(R,A){A=R.split(A);for(var Y={},P=0,E=A.length;P<E;P++){var z=A[P].split("=");if(z.length===1&&z[0]||z.length===2)try{var c=THI(z[0]||""),M=THI(z[1]||"");if(c in Y){var N=Y[c];Array.isArray(N)?_.kq(N,M):Y[c]=[N,M]}else Y[c]=M}catch(Q){var y=Q,m=z[0],T=String(Qok);y.args=[{key:m,value:z[1],query:R,method:vok===T?"unchanged":T}];goV.hasOwnProperty(m)||_.tv(y)}}return Y};
no8=function(R){var A=[];_.BO.forEach(R,function(Y,P){var E=_.wu(P);Y=Array.isArray(Y)?Y:[Y];_.uI(Y,function(z){z==""?A.push(E):A.push(E+"="+_.wu(z))})});
return A.join("&")};
_.eO=function(R){R.charAt(0)==="?"&&(R=R.substring(1));return Qok(R,"&")};
_.qI=function(R){return R.indexOf("?")!==-1?(R=(R||"").split("#")[0],R=R.split("?",2),_.eO(R.length>1?R[1]:R[0])):{}};
_.LQ=function(R,A){return Hjk(R,A||{},!0)};
rgP=function(R,A){return Hjk(R,A||{},!1)};
Hjk=function(R,A,Y){var P=R.split("#",2);R=P[0];P=P.length>1?"#"+P[1]:"";var E=R.split("?",2);R=E[0];E=_.eO(E[1]||"");for(var z in A)if(Y||!_.BO.containsKey(E,z))E[z]=A[z];return _.du(R,E)+P};
PU=function(R){if(!A)var A=window.location.href;var Y=_.RW(R)[1]||null,P=_.AN(R);return Y&&P?YS(R,A):P?_.AN(A)===P&&(Number(_.RW(A)[4]||null)||null)===(Number(_.RW(R)[4]||null)||null):!0};
_.UT6=function(R){R=DTq(R);return R===null?!1:R[0]==="com"&&R[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
DTq=function(R){R=_.AN(R);return R!==null?R.split(".").reverse():null};
THI=function(R){return R&&R.match($TS)?R:EK(R)};
_.z3=function(R){return new XkS(R)};
_.is=function(){SCP||(SCP=new IMq);return SCP};
WZk=function(){var R=KZ6;return function(){var A=_.is();A.resolve(_.z3(R))||A.addProvider({provide:R,useClass:R});return A.resolve(R)}};
bj8=function(R){var A=_.ls,Y,P;_.O(function(E){Y=_.is();return(P=Y.resolve(_.z3(A)))?(R(P),E.return(Promise.resolve(P))):E.return(Y.resolve(new jok(A)).then(function(z){R(z);return z}))})};
_.v=function(R){R=xS(R);return typeof R==="string"&&R==="false"?!1:!!R};
_.cU=function(R,A){R=xS(R);return R===void 0&&A!==void 0?A:Number(R||0)};
fMI=function(R){R=xS(R);return Array.isArray(R)?_.aS(R,function(A){return Number(A||0)}):[Number(R||0)]};
_.OK=function(R){R=xS(R);return R!==void 0?String(R):""};
_.M1=function(R){R=xS(R);return Array.isArray(R)?_.aS(R,function(A){return String(A||"")}):[String(R||"")]};
pkV=function(){return _.a1("EXPERIMENTS_TOKEN","")};
xS=function(R){return _.a1("EXPERIMENT_FLAGS",{})[R]};
FZI=function(){for(var R=[],A=_.a1("EXPERIMENTS_FORCED_FLAGS",{}),Y=_.x(Object.keys(A)),P=Y.next();!P.done;P=Y.next())P=P.value,R.push({key:P,value:String(A[P])});Y=_.a1("EXPERIMENT_FLAGS",{});P=_.x(Object.keys(Y));for(var E=P.next();!E.done;E=P.next())E=E.value,E.startsWith("force_")&&A[E]===void 0&&R.push({key:E,value:String(Y[E])});return R};
aMP=function(){if(!BHV)return null;var R=BHV();return"open"in R?R:null};
_.CEk=function(R){switch(_.VQ(R)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.VQ=function(R){return R&&"status"in R?R.status:-1};
_.JN=function(R,A){typeof R==="function"&&(R=_.o1(R));return window.setTimeout(R,A)};
_.yQ=function(R,A){typeof R==="function"&&(R=_.o1(R));return window.setInterval(R,A)};
_.mT=function(R){window.clearTimeout(R)};
ooJ=function(R){R=_.qI(R);for(var A=_.x(hY3),Y=A.next();!Y.done;Y=A.next())if(R[Y.value]!==void 0)return!0;return!1};
ZjV=function(R,A,Y,P,E,z,c,M,N){Y=Y===void 0?"GET":Y;P=P===void 0?"":P;M=M===void 0?!1:M;var y=aMP();if(!y)return null;var m=function(){(y&&"readyState"in y?y.readyState:0)===4&&A&&_.o1(A)(y)};
"onloadend"in y?y.addEventListener("loadend",m,!1):y.onreadystatechange=m;_.v("debug_forward_web_query_parameters")&&(R=ki6(R,window.location.search));y.open(Y,R,!0);z&&(y.responseType=z);c&&(y.withCredentials=!0);Y=Y==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(E=Gik(R,E))for(var T in E)y.setRequestHeader(T,E[T]),"content-type"===T.toLowerCase()&&(Y=!1);Y&&y.setRequestHeader("Content-Type","application/x-www-form-urlencoded");N&&"onprogress"in y&&(y.onprogress=function(){N(y.responseText)});
if(M&&"setAttributionReporting"in XMLHttpRequest.prototype){R={eventSourceEligible:!0,triggerEligible:!1};try{y.setAttributionReporting(R)}catch(Q){_.tv(Q)}}y.send(P);return y};
Gik=function(R,A){A=A===void 0?{}:A;var Y=PU(R),P=_.a1("INNERTUBE_CLIENT_NAME"),E=_.v("web_ajax_ignore_global_headers_if_set"),z;for(z in tFJ){var c=_.a1(tFJ[z]),M=z==="X-Goog-AuthUser"||z==="X-Goog-PageId";z!=="X-Goog-Visitor-Id"||c||(c=_.a1("VISITOR_DATA"));var N;if(!(N=!c)){if(!(N=Y||(_.AN(R)?!1:!0))){N=R;var y;if(y=_.v("add_auth_headers_to_remarketing_google_dot_com_ping")&&z==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY"))y=DTq(N),y=y===null?!1:y[1]==="google"?
!0:y[2]==="google"?y[0]==="au"&&y[1]==="com"?!0:y[0]==="uk"&&y[1]==="co"?!0:!1:!1;y&&(N=_.T3(N)||"",N=N.split("/"),N="/"+(N.length>1?N[1]:""),y=N==="/pagead");N=y?!0:!1}N=!N}N||E&&A[z]!==void 0||P==="TVHTML5_UNPLUGGED"&&M||(A[z]=c)}"X-Goog-EOM-Visitor-Id"in A&&"X-Goog-Visitor-Id"in A&&delete A["X-Goog-Visitor-Id"];if(Y||!_.AN(R))A["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Y||!_.AN(R)){try{var m=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(T){}m&&(A["X-YouTube-Time-Zone"]=
m)}document.location.hostname.endsWith("youtubeeducation.com")||!Y&&_.AN(R)||(A["X-YouTube-Ad-Signals"]=no8(wku()));return A};
_.uhV=function(R,A){var Y=_.AN(R);_.v("debug_handle_relative_url_for_query_forward_killswitch")||!Y&&PU(R)&&(Y=document.location.hostname);var P=_.T3(R);P=(Y=Y&&(Y.endsWith("youtube.com")||Y.endsWith("youtube-nocookie.com")))&&P&&P.startsWith("/api/");if(!Y||P)return R;var E=_.eO(A),z={};_.uI(hY3,function(c){E[c]&&(z[c]=E[c])});
return rgP(R,z)};
eYb=function(R,A){A.method="POST";A.postParams||(A.postParams={});return _.QQ(R,A)};
qC8=function(R,A){var Y=_.a1("XSRF_FIELD_NAME"),P;A.headers&&(P=A.headers["Content-Type"]);return!A.excludeXsrf&&(!_.AN(R)||A.withCredentials||_.AN(R)===document.location.hostname)&&A.method==="POST"&&(!P||P==="application/x-www-form-urlencoded")&&!(A.postParams&&A.postParams[Y])};
_.QQ=function(R,A){var Y=A.format||"JSON";R=LZS(R,A);var P=dTJ(R,A),E=!1,z=R26(R,function(N){if(!E){E=!0;M&&_.mT(M);var y=_.CEk(N),m=null,T=400<=N.status&&N.status<500,Q=500<=N.status&&N.status<600;if(y||T||Q)m=A0k(R,Y,N,A.convertToSafeHtml);y&&(y=YQk(Y,N,m));m=m||{};T=A.context||_.P3;y?A.onSuccess&&A.onSuccess.call(T,N,m):A.onError&&A.onError.call(T,N,m);A.onFinish&&A.onFinish.call(T,N,m)}},A.method,P,A.headers,A.responseType,A.withCredentials,!1,A.onProgress);
P=A.timeout||0;if(A.onTimeout&&P>0){var c=A.onTimeout;var M=_.JN(function(){E||(E=!0,z.abort(),_.mT(M),c.call(A.context||_.P3,z))},P)}return z};
LZS=function(R,A){A.includeDomain&&(R=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+R);var Y=_.a1("XSRF_FIELD_NAME");if(A=A.urlParams)A[Y]&&delete A[Y],R=_.LQ(R,A);return R};
dTJ=function(R,A){var Y=_.a1("XSRF_FIELD_NAME"),P=_.a1("XSRF_TOKEN"),E=A.postBody||"",z=A.postParams;qC8(R,A)&&(z||(z={}),z[Y]=P);(_.v("ajax_parse_query_data_only_when_filled")&&z&&Object.keys(z).length>0||z)&&typeof E==="string"&&(E=_.eO(E),_.BO.extend(E,z),E=A.postBodyFormat&&A.postBodyFormat==="JSON"?JSON.stringify(E):_.vU(E));z=E||z&&!_.BO.isEmpty(z);!PwJ&&z&&A.method!=="POST"&&(PwJ=!0,_.hv(Error("Ic")));return E};
A0k=function(R,A,Y,P){var E=null;switch(A){case "JSON":try{var z=Y.responseText}catch(c){throw P=Error("Jc"),P.params=R,_.tv(P),c;}R=Y.getResponseHeader("Content-Type")||"";z&&R.indexOf("json")>=0&&(z.substring(0,5)===")]}'\n"&&(z=z.substring(5)),E=JSON.parse(z));break;case "XML":if(R=(R=Y.responseXML)?Ebq(R):null)E={},_.uI(R.getElementsByTagName("*"),function(c){E[c.tagName]=z2k(c)})}P&&ix8(E);
return E};
ix8=function(R){if(_.ZI(R))for(var A in R)A==="html_content"||lJ(A,"_html")?R[A]=ec(R[A]):ix8(R[A])};
YQk=function(R,A,Y){if(A&&A.status===204)return!0;switch(R){case "JSON":return!!Y;case "XML":return Number(Y&&Y.return_code)===0;case "RAW":return!0;default:return!!Y}};
Ebq=function(R){return R?(R=("responseXML"in R?R.responseXML:R).getElementsByTagName("root"))&&R.length>0?R[0]:null:null};
z2k=function(R){var A="";_.uI(R.childNodes,function(Y){A+=Y.nodeValue});
return A};
lnu=function(R){if(R.name==="JavaException")return!0;R=R.stack;return R.includes("chrome://")||R.includes("-extension://")||R.includes("webkit-masked-url://")};
x66=function(R){if(!R.stack)return!0;var A=!R.stack.includes("\n");return A&&R.stack.includes("ErrorType: ")||A&&R.stack.includes("Anonymous function (Unknown script")||R.stack.toLowerCase()==="not available"||R.fileName==="user-script"||R.fileName.startsWith("user-script:")?!0:!1};
_.gr=function(R){_.KJ.call(this);this.JSC$10507_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!R};
OxS=function(R,A){var Y=R.length,P=0,E=function(){return R.charCodeAt(P++)};
do{var z=c0S(E);if(z===Infinity)break;var c=z>>3;switch(z&7){case 0:z=c0S(E);if(c===A)return z;break;case 1:if(c===A)return;P+=8;break;case 2:z=c0S(E);if(c===A)return R.substr(P,z);P+=z;break;case 5:if(c===A)return;P+=4;break;default:return}}while(P<Y)};
c0S=function(R){var A=R(),Y=A&127;if(A<128)return Y;A=R();Y|=(A&127)<<7;if(A<128)return Y;A=R();Y|=(A&127)<<14;if(A<128)return Y;A=R();return A<128?Y|(A&127)<<21:Infinity};
sak=function(R,A,Y,P){if(R)if(Array.isArray(R)){var E=P;for(P=0;P<R.length&&!(R[P]&&(E+=M9S(P,R[P],A,Y),E>500));P++);P=E}else if(typeof R==="object")for(E in R){if(R[E]){var z=E;var c=R[E],M=A,N=Y;z=typeof c!=="string"||z!=="clickTrackingParams"&&z!=="trackingParams"?0:(c=OxS(atob(c.replace(/-/g,"+").replace(/_/g,"/")),2))?M9S(z+".ve",c,M,N):0;P+=z;P+=M9S(E,R[E],A,Y);if(P>500)break}}else Y[A]=nw(R),P+=Y[A].length;else Y[A]=nw(R),P+=Y[A].length;return P};
M9S=function(R,A,Y,P){Y+="."+R;R=nw(A);P[Y]=R;return Y.length+R.length};
nw=function(R){try{return(typeof R==="string"?R:String(JSON.stringify(R))).substr(0,500)}catch(A){return"unable to serialize "+typeof R+" ("+A.message+")"}};
NFP=function(R){switch(R){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}};
_.rr=function(R,A,Y,P,E){_.HU.set(R,A,{maxAge:Y,path:"/",domain:P===void 0?"youtube.com":P,secure:E===void 0?!1:E})};
_.V9k=function(R,A,Y){_.HU.remove(R,A===void 0?"/":A,Y===void 0?"youtube.com":Y)};
_.DO=function(){if(_.v("embeds_web_enable_cookie_detection_fix")){if(!_.P3.navigator.cookieEnabled)return!1}else if(!_.HU.isEnabled())return!1;if(!_.HU.isEmpty())return!0;_.v("embeds_web_enable_cookie_detection_fix")?_.HU.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.HU.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.HU.get("TESTCOOKIESENABLED")!=="1")return!1;_.HU.remove("TESTCOOKIESENABLED");return!0};
J0k=function(){var R=_.P3.navigator;return R?R.connection:void 0};
y0V=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(R){}};
_.TF8=function(){var R=J0k();if(R){var A=m66[R.type||"unknown"]||"CONN_UNKNOWN";R=m66[R.effectiveType||"unknown"]||"CONN_UNKNOWN";A==="CONN_CELLULAR_UNKNOWN"&&R!=="CONN_UNKNOWN"&&(A=R);if(A!=="CONN_UNKNOWN")return A;if(R!=="CONN_UNKNOWN")return R}};
vbk=function(){var R=J0k();if(R!=null&&R.effectiveType)return QaJ.hasOwnProperty(R.effectiveType)?QaJ[R.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.$S=function(){try{return _.UK(),!0}catch(R){return!1}};
_.UK=function(R){if(_.a1("DATASYNC_ID")!==void 0)return _.a1("DATASYNC_ID");throw new _.XN("Datasync ID not set",R===void 0?"unknown":R);};
_.Sx=function(R){this.mechanism=R};
IW=function(R){this.mechanism=R};
Kw=function(R){this.storage_=R;this.cachedIsStorageAvailable_=null};
gbP=function(){var R=null;try{R=_.P3.localStorage||null}catch(A){}Kw.call(this,R)};
nbJ=function(){var R=null;try{R=_.P3.sessionStorage||null}catch(A){}Kw.call(this,R)};
WU=function(R,A){this.mechanism_=R;this.JSC$10609_prefix_=A+"::"};
_.Hx8=function(R){var A=new gbP;return A.isAvailable()?R?new WU(A,R):A:null};
_.r0q=function(R){var A=new nbJ;return A.isAvailable()?R?new WU(A,R):A:null};
U6k=function(){var R;return(R=D6J())==null?void 0:R.get("LAST_RESULT_ENTRY_KEY",!0)};
_.fw=function(R){$6V||(_.jx?_.jx.logError(R):(_.bs.push({type:"ERROR",payload:R}),_.bs.length>10&&_.bs.shift()))};
pw=function(R,A){$6V||(_.jx?_.jx.logEvent(R,A):(_.bs.push({type:"EVENT",eventType:R,payload:A}),_.bs.length>10&&_.bs.shift()))};
FN=function(R){if(R.indexOf(":")>=0)throw Error("Qc");};
BU=function(R){return R.substr(0,R.indexOf(":"))||R};
KcV=function(){return(XKq||SQk)&&aW("applewebkit")&&!aW("version")&&(!aW("safari")||aW("gsa/"))};
aW=function(R){var A=_.yk();return A?A.toLowerCase().indexOf(R)>=0:!1};
bxl=function(R,A,Y,P){A=BU(A);var E=R instanceof Error?R:Error("Rc`"+R);if(E instanceof Cw)return E;R={objectStoreNames:Y,dbName:A,dbVersion:P};if(E.name==="QuotaExceededError")return new Cw("QUOTA_EXCEEDED",R);if(_.hN&&E.name==="UnknownError")return new Cw("QUOTA_MAYBE_EXCEEDED",R);if(E instanceof Wc8)return new Cw("MISSING_INDEX",Object.assign({},R,{objectStore:E.objectStore,index:E.index}));if(E.name==="InvalidStateError"&&jaI.some(function(z){return E.message.includes(z)}))return new Cw("EXECUTE_TRANSACTION_ON_CLOSED_DB",
R);
if(E.name==="AbortError")return new Cw("UNKNOWN_ABORT",R,E.message);E.args=[Object.assign({},R,{name:"IdbError",originalName:E.name})];E.level="WARNING";return E};
oW=function(R,A,Y){var P=U6k();return new Cw("IDB_NOT_SUPPORTED",{context:{caller:R,publicName:A,version:Y,hasSucceededOnce:P==null?void 0:P.hasSucceededOnce}})};
fnk=function(R){if(!R)throw Error();throw R;};
pK8=function(R){return R};
FcS=function(R,A,Y){var P=function(){try{R.removeEventListener("success",E),R.removeEventListener("error",z)}catch(c){}},E=function(){A(R.result);
P()},z=function(){Y(R.error);
P()};
R.addEventListener("success",E);R.addEventListener("error",z)};
BFu=function(R){return new Promise(function(A,Y){FcS(R,A,Y)})};
ZO=function(R){return new kS(new G3(function(A,Y){FcS(R,A,Y)}))};
anb=function(R,A){return new kS(new G3(function(Y,P){var E=function(){var z=R?A(R):null;z?z.then(function(c){R=c;E()},P):Y()};
E()}))};
CwP=function(R,A,Y){return new Promise(function(P,E){var z=A!==void 0?self.indexedDB.open(R,A):self.indexedDB.open(R);var c=Y.blocked,M=Y.blocking,N=Y.terminated,y=Y.upgrade,m=Y.closed,T,Q=function(){T||(T=new tN(z.result,{closed:m}));return T};
z.addEventListener("upgradeneeded",function(g){try{if(g.newVersion===null)throw Error("Wc");if(z.transaction===null)throw Error("Xc");g.dataLoss&&g.dataLoss!=="none"&&pw("IDB_DATA_CORRUPTED",{reason:g.dataLossMessage||"unknown reason",dbName:BU(R)});var r=Q(),I=new wr(z.transaction);y&&y(r,function(b){return g.oldVersion<b&&g.newVersion>=b},I);
I.done.catch(function(b){E(b)})}catch(b){E(b)}});
z.addEventListener("success",function(){var g=z.result;M&&g.addEventListener("versionchange",function(){M(Q())});
g.addEventListener("close",function(){pw("IDB_UNEXPECTEDLY_CLOSED",{dbName:BU(R),dbVersion:g.version});N&&N()});
P(Q())});
z.addEventListener("error",function(){E(z.error)});
c&&z.addEventListener("blocked",function(){c()})})};
h2l=function(R,A,Y){Y=Y===void 0?{}:Y;return CwP(R,A,Y)};
_.ex=function(R,A){A=A===void 0?{}:A;var Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return _.g2(c,2),Y=self.indexedDB.deleteDatabase(R),P=A,(E=P.blocked)&&Y.addEventListener("blocked",function(){E()}),c.yield(BFu(Y),4);
if(c.nextAddress!=2)return _.us(c,0);z=_.UT(c);throw bxl(z,R,"",-1);})};
kX3=function(R,A){var Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(_.q1(obJ,A),2);Y=P.yieldResult;return P.return(_.Lw(Y,["databases"],{enableRetries:!0,mode:"readwrite"},function(E){var z=E.objectStore("databases");return z.get(R.actualName).then(function(c){if(c?R.actualName!==c.actualName||R.publicName!==c.publicName||R.userIdentifier!==c.userIdentifier:1)return z.put(R).then(function(){})})}))})};
_.dr=function(R,A){var Y;return _.O(function(P){if(P.nextAddress==1)return R?P.yield(_.q1(obJ,A),2):P.return();Y=P.yieldResult;return P.return(Y.delete("databases",R))})};
_.GXP=function(R,A){var Y,P;return _.O(function(E){return E.nextAddress==1?(Y=[],E.yield(_.q1(obJ,A),2)):E.nextAddress!=3?(P=E.yieldResult,E.yield(_.Lw(P,["databases"],{enableRetries:!0,mode:"readonly"},function(z){Y.length=0;return RB(z.objectStore("databases"),{},function(c){R(c.getValue())&&Y.push(c.getValue());return c.continue()})}),3)):E.return(Y)})};
Zxk=function(R,A){return _.GXP(function(Y){return Y.publicName===R&&Y.userIdentifier!==void 0},A)};
uE6=function(){var R,A,Y,P;return _.O(function(E){switch(E.nextAddress){case 1:R=U6k();if((A=R)==null?0:A.hasSucceededOnce)return E.return(!0);var z;if(z=t9V)z=/WebKit\/([0-9]+)/.exec(_.yk()),z=!!(z&&parseInt(z[1],10)>=600);z&&(z=/WebKit\/([0-9]+)/.exec(_.yk()),z=!(z&&parseInt(z[1],10)>=602));if(z||AZ)return E.return(!1);try{if(Y=self,!(Y.indexedDB&&Y.IDBIndex&&Y.IDBKeyRange&&Y.IDBObjectStore))return E.return(!1)}catch(c){return E.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return E.return(!1);
_.g2(E,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return E.yield(kX3(P,wKk),4);case 4:return E.yield(_.dr("yt-idb-test-do-not-use",wKk),5);case 5:return E.return(!0);case 2:return _.UT(E),E.return(!1)}})};
qQk=function(){if(e2J!==void 0)return e2J;$6V=!0;return e2J=uE6().then(function(R){$6V=!1;var A;if((A=D6J())!=null&&A.expiringStorage_){var Y;A={hasSucceededOnce:((Y=U6k())==null?void 0:Y.hasSucceededOnce)||R};var P;(P=D6J())==null||P.set("LAST_RESULT_ENTRY_KEY",A,2592E3,!0)}return R})};
Y_=function(){return _.Zr("ytglobal.idbToken_")||void 0};
_.EF=function(){var R=Y_();return R?Promise.resolve(R):qQk().then(function(A){(A=A?wKk:void 0)&&_.PG("ytglobal.idbToken_",A);return A})};
Lcu=function(R){if(!_.$S())throw R=new Cw("AUTH_INVALID",{dbName:R}),_.fw(R),R;var A=_.UK();return{actualName:R+":"+A,publicName:R,userIdentifier:A}};
d68=function(R,A,Y,P){var E,z,c,M,N,y;return _.O(function(m){switch(m.nextAddress){case 1:return z=(E=Error().stack)!=null?E:"",m.yield(_.EF(),2);case 2:c=m.yieldResult;if(!c)throw M=oW("openDbImpl",R,A),_.v("ytidb_async_stack_killswitch")||(M.stack=M.stack+"\n"+z.substring(z.indexOf("\n")+1)),_.fw(M),M;FN(R);N=Y?{actualName:R,publicName:R,userIdentifier:void 0}:Lcu(R);_.g2(m,3);return m.yield(kX3(N,c),5);case 5:return m.yield(h2l(N.actualName,A,P),6);case 6:return m.return(m.yieldResult);case 3:return y=
_.UT(m),_.g2(m,7),m.yield(_.dr(N.actualName,c),9);case 9:_.us(m,8);break;case 7:_.UT(m);case 8:throw y;}})};
RpP=function(R,A,Y){Y=Y===void 0?{}:Y;return d68(R,A,!1,Y)};
Afl=function(R,A,Y){Y=Y===void 0?{}:Y;return d68(R,A,!0,Y)};
Yd6=function(R,A){A=A===void 0?{}:A;var Y,P;return _.O(function(E){if(E.nextAddress==1)return E.yield(_.EF(),2);if(E.nextAddress!=3){Y=E.yieldResult;if(!Y)return E.return();FN(R);P=Lcu(R);return E.yield(_.ex(P.actualName,A),3)}return E.yield(_.dr(P.actualName,Y),0)})};
Pkk=function(R,A,Y){R=R.map(function(P){return _.O(function(E){return E.nextAddress==1?E.yield(_.ex(P.actualName,A),2):E.yield(_.dr(P.actualName,Y),0)})});
return Promise.all(R).then(function(){})};
Epk=function(R){var A=A===void 0?{}:A;var Y,P;return _.O(function(E){if(E.nextAddress==1)return E.yield(_.EF(),2);if(E.nextAddress!=3){Y=E.yieldResult;if(!Y)return E.return();FN(R);return E.yield(Zxk(R,Y),3)}P=E.yieldResult;return E.yield(Pkk(P,A,Y),0)})};
zpk=function(R,A){A=A===void 0?{}:A;var Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(_.EF(),2);if(P.nextAddress!=3){Y=P.yieldResult;if(!Y)return P.return();FN(R);return P.yield(_.ex(R,A),3)}return P.yield(_.dr(R,Y),0)})};
z5=function(R,A){return iok(R,A)};
xik=function(R){return _.q1(lsu(),R)};
cfk=function(R,A,Y,P){var E,z,c;return _.O(function(M){switch(M.nextAddress){case 1:return E={config:R,hashData:A,timestamp:P!==void 0?P:(0,_.iB)()},M.yield(xik(Y),2);case 2:return z=M.yieldResult,M.yield(z.clear("hotConfigStore"),3);case 3:return M.yield(z.put("hotConfigStore",E),4);case 4:return c=M.yieldResult,M.return(c)}})};
Ook=function(R,A,Y,P,E){var z,c,M;return _.O(function(N){switch(N.nextAddress){case 1:return z={config:R,hashData:A,configData:Y,timestamp:E!==void 0?E:(0,_.iB)()},N.yield(xik(P),2);case 2:return c=N.yieldResult,N.yield(c.clear("coldConfigStore"),3);case 3:return N.yield(c.put("coldConfigStore",z),4);case 4:return M=N.yieldResult,N.return(M)}})};
MIJ=function(R){var A,Y;return _.O(function(P){return P.nextAddress==1?P.yield(xik(R),2):P.nextAddress!=3?(A=P.yieldResult,Y=void 0,P.yield(_.Lw(A,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(E){return _.lB(E.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(z){Y=z.getValue()})}),3)):P.return(Y)})};
s4u=function(R){var A,Y;return _.O(function(P){return P.nextAddress==1?P.yield(xik(R),2):P.nextAddress!=3?(A=P.yieldResult,Y=void 0,P.yield(_.Lw(A,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(E){return _.lB(E.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(z){Y=z.getValue()})}),3)):P.return(Y)})};
NaS=function(){return _.O(function(R){return R.yield(Epk("ytGcfConfig"),0)})};
VIk=function(){return"INNERTUBE_API_KEY"in _.Fc&&"INNERTUBE_API_VERSION"in _.Fc};
_.x_=function(){return{innertubeApiKey:_.a1("INNERTUBE_API_KEY"),innertubeApiVersion:_.a1("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.a1("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.a1("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.a1("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.a1("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.a1("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.a1("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.a1("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.CQ("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.CQ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.a1("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.gp6=function(R){var A={client:{hl:R.innertubeContextHostLanguage,gl:R.innertubeContextGeoLocation,clientName:R.innertubeContextClientName,clientVersion:R.innertubeContextClientVersion,configInfo:R.innertubeContextClientConfigInfo}};navigator.userAgent&&(A.client.userAgent=String(navigator.userAgent));var Y=_.P3.devicePixelRatio;Y&&Y!=1&&(A.client.screenDensityFloat=String(Y));Y=pkV();Y!==""&&(A.client.experimentsToken=Y);Y=FZI();Y.length>0&&(A.request={internalExperimentFlags:Y});JfS(R,void 0,A);
yfu(void 0,A);miI(void 0,A);TaJ(R,void 0,A);Q48(void 0,A);_.v("start_client_gcf")&&vpk(void 0,A);_.a1("DELEGATED_SESSION_ID")&&!_.v("pageid_as_header_web")&&(A.user={onBehalfOfUser:_.a1("DELEGATED_SESSION_ID")});!_.v("fill_delegate_context_in_gel_killswitch")&&(R=_.a1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(A.user=Object.assign({},A.user,{serializedDelegationContext:R}));R=_.a1("INNERTUBE_CONTEXT");var P;if(_.v("enable_persistent_device_token")&&(R==null?0:(P=R.client)==null?0:P.rolloutToken)){var E;
A.client.rolloutToken=R==null?void 0:(E=R.client)==null?void 0:E.rolloutToken}P=Object;E=P.assign;R=A.client;Y={};for(var z=_.x(Object.entries(_.eO(_.a1("DEVICE","")))),c=z.next();!c.done;c=z.next()){var M=_.x(c.value);c=M.next().value;M=M.next().value;c==="cbrand"?Y.deviceMake=M:c==="cmodel"?Y.deviceModel=M:c==="cbr"?Y.browserName=M:c==="cbrver"?Y.browserVersion=M:c==="cos"?Y.osName=M:c==="cosver"?Y.osVersion=M:c==="cplatform"&&(Y.platform=M)}A.client=E.call(P,R,Y);return A};
JfS=function(R,A,Y){R=R.innertubeContextClientName;if(R==="WEB"||R==="MWEB"||R===1||R===2)if(A){Y=_.cG(A,npq,96)||new npq;var P=Hol();P=Object.keys(rfJ).indexOf(P);P=P===-1?null:P;P!==null&&_.OF(Y,3,P);_.DE(A,96,Y)}else Y&&(Y.client.mainAppWebInfo=(P=Y.client.mainAppWebInfo)!=null?P:{},Y.client.mainAppWebInfo.webDisplayMode=Hol())};
yfu=function(R,A){var Y=_.Zr("yt.embedded_player.embed_url");Y&&(R?(A=_.cG(R,DiJ,7)||new DiJ,_.IS(A,4,Y),_.DE(R,7,A)):A&&(A.thirdParty={embedUrl:Y}))};
miI=function(R,A){var Y;if(_.v("web_log_memory_total_kbytes")&&((Y=_.P3.navigator)==null?0:Y.deviceMemory)){var P;Y=(P=_.P3.navigator)==null?void 0:P.deviceMemory;R?_.Mz(R,95,cF(Y*1E6)):A&&(A.client.memoryTotalKbytes=""+Y*1E6)}};
TaJ=function(R,A,Y){if(R.appInstallData)if(A){var P;Y=(P=_.cG(A,sF,62))!=null?P:new sF;_.IS(Y,6,R.appInstallData);_.DE(A,62,Y)}else Y&&(Y.client.configInfo=Y.client.configInfo||{},Y.client.configInfo.appInstallData=R.appInstallData)};
Q48=function(R,A){var Y=_.TF8();Y&&(R?_.OF(R,61,Ui6[Y]):A&&(A.client.connectionType=Y));_.v("web_log_effective_connection_type")&&(Y=vbk())&&(R?_.OF(R,94,$iJ[Y]):A&&(A.client.effectiveConnectionType=Y))};
_.Is8=function(R,A,Y){Y=Y===void 0?{}:Y;var P={};_.a1("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":_.a1("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":Y.visitorData||_.a1("VISITOR_DATA","")};if(A&&A.includes("www.youtube-nocookie.com"))return P;A=Y.authorization||_.a1("AUTHORIZATION");A||(R?A="Bearer "+_.Zr("gapi.auth.getToken")().access_token:(Xrk.instance||(Xrk.instance=new Xrk),R=Sd8(),_.v("pageid_as_header_web")||delete R["X-Goog-PageId"],P=Object.assign({},P,R)));A&&(P.Authorization=A);return P};
vpk=function(R,A){var Y=Kb6();if(Y){var P=Y.coldConfigData,E=Y.coldHashData;Y=Y.hotHashData;if(R){var z;A=(z=_.cG(R,sF,62))!=null?z:new sF;P=_.IS(A,1,P);_.IS(P,3,E).setHotHashData(Y);_.DE(R,62,A)}else A&&(A.client.configInfo=A.client.configInfo||{},P&&(A.client.configInfo.coldConfigData=P),E&&(A.client.configInfo.coldHashData=E),Y&&(A.client.configInfo.hotHashData=Y))}};
Nz=function(R){for(var A=R.length;--A>=0;)R[A]=0};
Wbk=function(R,A,Y,P,E){this.static_tree=R;this.extra_bits=A;this.extra_base=Y;this.elems=P;this.max_length=E;this.has_stree=R&&R.length};
j43=function(R,A){this.dyn_tree=R;this.max_code=0;this.stat_desc=A};
VA=function(R,A){R.pending_buf[R.pending++]=A&255;R.pending_buf[R.pending++]=A>>>8&255};
JZ=function(R,A,Y){R.bi_valid>16-Y?(R.bi_buf|=A<<R.bi_valid&65535,VA(R,R.bi_buf),R.bi_buf=A>>16-R.bi_valid,R.bi_valid+=Y-16):(R.bi_buf|=A<<R.bi_valid&65535,R.bi_valid+=Y)};
yA=function(R,A,Y){JZ(R,Y[A*2],Y[A*2+1])};
boV=function(R,A){var Y=0;do Y|=R&1,R>>>=1,Y<<=1;while(--A>0);return Y>>>1};
fs6=function(R,A,Y){var P=Array(16),E=0,z;for(z=1;z<=15;z++)P[z]=E=E+Y[z-1]<<1;for(Y=0;Y<=A;Y++)E=R[Y*2+1],E!==0&&(R[Y*2]=boV(P[E]++,E))};
prP=function(R){var A;for(A=0;A<286;A++)R.dyn_ltree[A*2]=0;for(A=0;A<30;A++)R.dyn_dtree[A*2]=0;for(A=0;A<19;A++)R.bl_tree[A*2]=0;R.dyn_ltree[512]=1;R.opt_len=R.static_len=0;R.last_lit=R.matches=0};
FbS=function(R){R.bi_valid>8?VA(R,R.bi_buf):R.bi_valid>0&&(R.pending_buf[R.pending++]=R.bi_buf);R.bi_buf=0;R.bi_valid=0};
Bab=function(R,A,Y){FbS(R);VA(R,Y);VA(R,~Y);m3.arraySet(R.pending_buf,R.window,A,Y,R.pending);R.pending+=Y};
as3=function(R,A,Y,P){var E=A*2,z=Y*2;return R[E]<R[z]||R[E]===R[z]&&P[A]<=P[Y]};
CkJ=function(R,A,Y){for(var P=R.heap[Y],E=Y<<1;E<=R.heap_len;){E<R.heap_len&&as3(A,R.heap[E+1],R.heap[E],R.depth)&&E++;if(as3(A,P,R.heap[E],R.depth))break;R.heap[Y]=R.heap[E];Y=E;E<<=1}R.heap[Y]=P};
ZoV=function(R,A,Y){var P=0;if(R.last_lit!==0){do{var E=R.pending_buf[R.d_buf+P*2]<<8|R.pending_buf[R.d_buf+P*2+1];var z=R.pending_buf[R.l_buf+P];P++;if(E===0)yA(R,z,A);else{var c=T5[z];yA(R,c+256+1,A);var M=hpl[c];M!==0&&(z-=opP[c],JZ(R,z,M));E--;c=E<256?QA[E]:QA[256+(E>>>7)];yA(R,c,Y);M=k9k[c];M!==0&&(E-=G96[c],JZ(R,E,M))}}while(P<R.last_lit)}yA(R,256,A)};
tIu=function(R,A){var Y=A.dyn_tree,P=A.stat_desc.static_tree,E=A.stat_desc.has_stree,z=A.stat_desc.elems,c,M=-1;R.heap_len=0;R.heap_max=573;for(c=0;c<z;c++)Y[c*2]!==0?(R.heap[++R.heap_len]=M=c,R.depth[c]=0):Y[c*2+1]=0;for(;R.heap_len<2;){var N=R.heap[++R.heap_len]=M<2?++M:0;Y[N*2]=1;R.depth[N]=0;R.opt_len--;E&&(R.static_len-=P[N*2+1])}A.max_code=M;for(c=R.heap_len>>1;c>=1;c--)CkJ(R,Y,c);N=z;do c=R.heap[1],R.heap[1]=R.heap[R.heap_len--],CkJ(R,Y,1),P=R.heap[1],R.heap[--R.heap_max]=c,R.heap[--R.heap_max]=
P,Y[N*2]=Y[c*2]+Y[P*2],R.depth[N]=(R.depth[c]>=R.depth[P]?R.depth[c]:R.depth[P])+1,Y[c*2+1]=Y[P*2+1]=N,R.heap[1]=N++,CkJ(R,Y,1);while(R.heap_len>=2);R.heap[--R.heap_max]=R.heap[1];c=A.dyn_tree;N=A.max_code;P=A.stat_desc.static_tree;E=A.stat_desc.has_stree;z=A.stat_desc.extra_bits;var y=A.stat_desc.extra_base,m=A.stat_desc.max_length,T,Q=0;for(T=0;T<=15;T++)R.bl_count[T]=0;c[R.heap[R.heap_max]*2+1]=0;for(A=R.heap_max+1;A<573;A++){var g=R.heap[A];T=c[c[g*2+1]*2+1]+1;T>m&&(T=m,Q++);c[g*2+1]=T;if(!(g>
N)){R.bl_count[T]++;var r=0;g>=y&&(r=z[g-y]);var I=c[g*2];R.opt_len+=I*(T+r);E&&(R.static_len+=I*(P[g*2+1]+r))}}if(Q!==0){do{for(T=m-1;R.bl_count[T]===0;)T--;R.bl_count[T]--;R.bl_count[T+1]+=2;R.bl_count[m]--;Q-=2}while(Q>0);for(T=m;T!==0;T--)for(g=R.bl_count[T];g!==0;)P=R.heap[--A],P>N||(c[P*2+1]!==T&&(R.opt_len+=(T-c[P*2+1])*c[P*2],c[P*2+1]=T),g--)}fs6(Y,M,R.bl_count)};
wrl=function(R,A,Y){var P,E=-1,z=A[1],c=0,M=7,N=4;z===0&&(M=138,N=3);A[(Y+1)*2+1]=65535;for(P=0;P<=Y;P++){var y=z;z=A[(P+1)*2+1];++c<M&&y===z||(c<N?R.bl_tree[y*2]+=c:y!==0?(y!==E&&R.bl_tree[y*2]++,R.bl_tree[32]++):c<=10?R.bl_tree[34]++:R.bl_tree[36]++,c=0,E=y,z===0?(M=138,N=3):y===z?(M=6,N=3):(M=7,N=4))}};
uIV=function(R,A,Y){var P,E=-1,z=A[1],c=0,M=7,N=4;z===0&&(M=138,N=3);for(P=0;P<=Y;P++){var y=z;z=A[(P+1)*2+1];if(!(++c<M&&y===z)){if(c<N){do yA(R,y,R.bl_tree);while(--c!==0)}else y!==0?(y!==E&&(yA(R,y,R.bl_tree),c--),yA(R,16,R.bl_tree),JZ(R,c-3,2)):c<=10?(yA(R,17,R.bl_tree),JZ(R,c-3,3)):(yA(R,18,R.bl_tree),JZ(R,c-11,7));c=0;E=y;z===0?(M=138,N=3):y===z?(M=6,N=3):(M=7,N=4)}}};
ep3=function(R){var A=4093624447,Y;for(Y=0;Y<=31;Y++,A>>>=1)if(A&1&&R.dyn_ltree[Y*2]!==0)return 0;if(R.dyn_ltree[18]!==0||R.dyn_ltree[20]!==0||R.dyn_ltree[26]!==0)return 1;for(Y=32;Y<256;Y++)if(R.dyn_ltree[Y*2]!==0)return 1;return 0};
vG=function(R,A,Y){R.pending_buf[R.d_buf+R.last_lit*2]=A>>>8&255;R.pending_buf[R.d_buf+R.last_lit*2+1]=A&255;R.pending_buf[R.l_buf+R.last_lit]=Y&255;R.last_lit++;A===0?R.dyn_ltree[Y*2]++:(R.matches++,A--,R.dyn_ltree[(T5[Y]+256+1)*2]++,R.dyn_dtree[(A<256?QA[A]:QA[256+(A>>>7)])*2]++);return R.last_lit===R.lit_bufsize-1};
nn=function(R,A){R.msg=gM[A];return A};
HG=function(R){for(var A=R.length;--A>=0;)R[A]=0};
rM=function(R){var A=R.state,Y=A.pending;Y>R.avail_out&&(Y=R.avail_out);Y!==0&&(m3.arraySet(R.output,A.pending_buf,A.pending_out,Y,R.next_out),R.next_out+=Y,A.pending_out+=Y,R.total_out+=Y,R.avail_out-=Y,A.pending-=Y,A.pending===0&&(A.pending_out=0))};
$_=function(R,A){var Y=R.block_start>=0?R.block_start:-1,P=R.strstart-R.block_start,E=0;if(R.level>0){R.strm.data_type===2&&(R.strm.data_type=ep3(R));tIu(R,R.l_desc);tIu(R,R.d_desc);wrl(R,R.dyn_ltree,R.l_desc.max_code);wrl(R,R.dyn_dtree,R.d_desc.max_code);tIu(R,R.bl_desc);for(E=18;E>=3&&R.bl_tree[qdk[E]*2+1]===0;E--);R.opt_len+=3*(E+1)+5+5+4;var z=R.opt_len+3+7>>>3;var c=R.static_len+3+7>>>3;c<=z&&(z=c)}else z=c=P+5;if(P+4<=z&&Y!==-1)JZ(R,A?1:0,3),Bab(R,Y,P);else if(R.strategy===4||c===z)JZ(R,2+(A?
1:0),3),ZoV(R,DF,UF);else{JZ(R,4+(A?1:0),3);Y=R.l_desc.max_code+1;P=R.d_desc.max_code+1;E+=1;JZ(R,Y-257,5);JZ(R,P-1,5);JZ(R,E-4,4);for(z=0;z<E;z++)JZ(R,R.bl_tree[qdk[z]*2+1],3);uIV(R,R.dyn_ltree,Y-1);uIV(R,R.dyn_dtree,P-1);ZoV(R,R.dyn_ltree,R.dyn_dtree)}prP(R);A&&FbS(R);R.block_start=R.strstart;rM(R.strm)};
XX=function(R,A){R.pending_buf[R.pending++]=A};
SX=function(R,A){R.pending_buf[R.pending++]=A>>>8&255;R.pending_buf[R.pending++]=A&255};
Lb6=function(R,A){var Y=R.max_chain_length,P=R.strstart,E=R.prev_length,z=R.nice_match,c=R.strstart>R.w_size-262?R.strstart-(R.w_size-262):0,M=R.window,N=R.w_mask,y=R.prev,m=R.strstart+258,T=M[P+E-1],Q=M[P+E];R.prev_length>=R.good_match&&(Y>>=2);z>R.lookahead&&(z=R.lookahead);do{var g=A;if(M[g+E]===Q&&M[g+E-1]===T&&M[g]===M[P]&&M[++g]===M[P+1]){P+=2;for(g++;M[++P]===M[++g]&&M[++P]===M[++g]&&M[++P]===M[++g]&&M[++P]===M[++g]&&M[++P]===M[++g]&&M[++P]===M[++g]&&M[++P]===M[++g]&&M[++P]===M[++g]&&P<m;);
g=258-(m-P);P=m-258;if(g>E){R.match_start=A;E=g;if(g>=z)break;T=M[P+E-1];Q=M[P+E]}}}while((A=y[A&N])>c&&--Y!==0);return E<=R.lookahead?E:R.lookahead};
Kn=function(R){var A=R.w_size,Y;do{var P=R.window_size-R.lookahead-R.strstart;if(R.strstart>=A+(A-262)){m3.arraySet(R.window,R.window,A,A,0);R.match_start-=A;R.strstart-=A;R.block_start-=A;var E=Y=R.hash_size;do{var z=R.head[--E];R.head[E]=z>=A?z-A:0}while(--Y);E=Y=A;do z=R.prev[--E],R.prev[E]=z>=A?z-A:0;while(--Y);P+=A}if(R.strm.avail_in===0)break;E=R.strm;Y=R.window;z=R.strstart+R.lookahead;var c=E.avail_in;c>P&&(c=P);c===0?Y=0:(E.avail_in-=c,m3.arraySet(Y,E.input,E.next_in,c,z),E.state.wrap===
1?E.adler=diP(E.adler,Y,c,z):E.state.wrap===2&&(E.adler=IB(E.adler,Y,c,z)),E.next_in+=c,E.total_in+=c,Y=c);R.lookahead+=Y;if(R.lookahead+R.insert>=3)for(P=R.strstart-R.insert,R.ins_h=R.window[P],R.ins_h=(R.ins_h<<R.hash_shift^R.window[P+1])&R.hash_mask;R.insert&&!(R.ins_h=(R.ins_h<<R.hash_shift^R.window[P+3-1])&R.hash_mask,R.prev[P&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=P,P++,R.insert--,R.lookahead+R.insert<3););}while(R.lookahead<262&&R.strm.avail_in!==0)};
Rxk=function(R,A){for(var Y;;){if(R.lookahead<262){Kn(R);if(R.lookahead<262&&A===0)return 1;if(R.lookahead===0)break}Y=0;R.lookahead>=3&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+3-1])&R.hash_mask,Y=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart);Y!==0&&R.strstart-Y<=R.w_size-262&&(R.match_length=Lb6(R,Y));if(R.match_length>=3)if(Y=vG(R,R.strstart-R.match_start,R.match_length-3),R.lookahead-=R.match_length,R.match_length<=R.max_lazy_match&&R.lookahead>=3){R.match_length--;
do R.strstart++,R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+3-1])&R.hash_mask,R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart;while(--R.match_length!==0);R.strstart++}else R.strstart+=R.match_length,R.match_length=0,R.ins_h=R.window[R.strstart],R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+1])&R.hash_mask;else Y=vG(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++;if(Y&&($_(R,!1),R.strm.avail_out===0))return 1}R.insert=R.strstart<2?R.strstart:2;return A===4?($_(R,
!0),R.strm.avail_out===0?3:4):R.last_lit&&($_(R,!1),R.strm.avail_out===0)?1:2};
WG=function(R,A){for(var Y,P;;){if(R.lookahead<262){Kn(R);if(R.lookahead<262&&A===0)return 1;if(R.lookahead===0)break}Y=0;R.lookahead>=3&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+3-1])&R.hash_mask,Y=R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart);R.prev_length=R.match_length;R.prev_match=R.match_start;R.match_length=2;Y!==0&&R.prev_length<R.max_lazy_match&&R.strstart-Y<=R.w_size-262&&(R.match_length=Lb6(R,Y),R.match_length<=5&&(R.strategy===1||R.match_length===3&&
R.strstart-R.match_start>4096)&&(R.match_length=2));if(R.prev_length>=3&&R.match_length<=R.prev_length){P=R.strstart+R.lookahead-3;Y=vG(R,R.strstart-1-R.prev_match,R.prev_length-3);R.lookahead-=R.prev_length-1;R.prev_length-=2;do++R.strstart<=P&&(R.ins_h=(R.ins_h<<R.hash_shift^R.window[R.strstart+3-1])&R.hash_mask,R.prev[R.strstart&R.w_mask]=R.head[R.ins_h],R.head[R.ins_h]=R.strstart);while(--R.prev_length!==0);R.match_available=0;R.match_length=2;R.strstart++;if(Y&&($_(R,!1),R.strm.avail_out===0))return 1}else if(R.match_available){if((Y=
vG(R,0,R.window[R.strstart-1]))&&$_(R,!1),R.strstart++,R.lookahead--,R.strm.avail_out===0)return 1}else R.match_available=1,R.strstart++,R.lookahead--}R.match_available&&(vG(R,0,R.window[R.strstart-1]),R.match_available=0);R.insert=R.strstart<2?R.strstart:2;return A===4?($_(R,!0),R.strm.avail_out===0?3:4):R.last_lit&&($_(R,!1),R.strm.avail_out===0)?1:2};
Ahk=function(R,A){for(var Y,P,E,z=R.window;;){if(R.lookahead<=258){Kn(R);if(R.lookahead<=258&&A===0)return 1;if(R.lookahead===0)break}R.match_length=0;if(R.lookahead>=3&&R.strstart>0&&(P=R.strstart-1,Y=z[P],Y===z[++P]&&Y===z[++P]&&Y===z[++P])){for(E=R.strstart+258;Y===z[++P]&&Y===z[++P]&&Y===z[++P]&&Y===z[++P]&&Y===z[++P]&&Y===z[++P]&&Y===z[++P]&&Y===z[++P]&&P<E;);R.match_length=258-(E-P);R.match_length>R.lookahead&&(R.match_length=R.lookahead)}R.match_length>=3?(Y=vG(R,1,R.match_length-3),R.lookahead-=
R.match_length,R.strstart+=R.match_length,R.match_length=0):(Y=vG(R,0,R.window[R.strstart]),R.lookahead--,R.strstart++);if(Y&&($_(R,!1),R.strm.avail_out===0))return 1}R.insert=0;return A===4?($_(R,!0),R.strm.avail_out===0?3:4):R.last_lit&&($_(R,!1),R.strm.avail_out===0)?1:2};
Yl6=function(R,A){for(var Y;;){if(R.lookahead===0&&(Kn(R),R.lookahead===0)){if(A===0)return 1;break}R.match_length=0;Y=vG(R,0,R.window[R.strstart]);R.lookahead--;R.strstart++;if(Y&&($_(R,!1),R.strm.avail_out===0))return 1}R.insert=0;return A===4?($_(R,!0),R.strm.avail_out===0?3:4):R.last_lit&&($_(R,!1),R.strm.avail_out===0)?1:2};
jX=function(R,A,Y,P,E){this.good_length=R;this.max_lazy=A;this.nice_length=Y;this.max_chain=P;this.func=E};
P5J=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 m3.Buf16(1146);this.dyn_dtree=new m3.Buf16(122);this.bl_tree=new m3.Buf16(78);HG(this.dyn_ltree);HG(this.dyn_dtree);HG(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new m3.Buf16(16);this.heap=new m3.Buf16(573);HG(this.heap);this.heap_max=this.heap_len=0;this.depth=new m3.Buf16(573);HG(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};
EwS=function(R,A){if(!R||!R.state||A>5||A<0)return R?nn(R,-2):-2;var Y=R.state;if(!R.output||!R.input&&R.avail_in!==0||Y.status===666&&A!==4)return nn(R,R.avail_out===0?-5:-2);Y.strm=R;var P=Y.last_flush;Y.last_flush=A;if(Y.status===42)if(Y.wrap===2)R.adler=0,XX(Y,31),XX(Y,139),XX(Y,8),Y.gzhead?(XX(Y,(Y.gzhead.text?1:0)+(Y.gzhead.hcrc?2:0)+(Y.gzhead.extra?4:0)+(Y.gzhead.name?8:0)+(Y.gzhead.comment?16:0)),XX(Y,Y.gzhead.time&255),XX(Y,Y.gzhead.time>>8&255),XX(Y,Y.gzhead.time>>16&255),XX(Y,Y.gzhead.time>>
24&255),XX(Y,Y.level===9?2:Y.strategy>=2||Y.level<2?4:0),XX(Y,Y.gzhead.os&255),Y.gzhead.extra&&Y.gzhead.extra.length&&(XX(Y,Y.gzhead.extra.length&255),XX(Y,Y.gzhead.extra.length>>8&255)),Y.gzhead.hcrc&&(R.adler=IB(R.adler,Y.pending_buf,Y.pending,0)),Y.gzindex=0,Y.status=69):(XX(Y,0),XX(Y,0),XX(Y,0),XX(Y,0),XX(Y,0),XX(Y,Y.level===9?2:Y.strategy>=2||Y.level<2?4:0),XX(Y,3),Y.status=113);else{var E=8+(Y.w_bits-8<<4)<<8;E|=(Y.strategy>=2||Y.level<2?0:Y.level<6?1:Y.level===6?2:3)<<6;Y.strstart!==0&&(E|=
32);Y.status=113;SX(Y,E+(31-E%31));Y.strstart!==0&&(SX(Y,R.adler>>>16),SX(Y,R.adler&65535));R.adler=1}if(Y.status===69)if(Y.gzhead.extra){for(E=Y.pending;Y.gzindex<(Y.gzhead.extra.length&65535)&&(Y.pending!==Y.pending_buf_size||(Y.gzhead.hcrc&&Y.pending>E&&(R.adler=IB(R.adler,Y.pending_buf,Y.pending-E,E)),rM(R),E=Y.pending,Y.pending!==Y.pending_buf_size));)XX(Y,Y.gzhead.extra[Y.gzindex]&255),Y.gzindex++;Y.gzhead.hcrc&&Y.pending>E&&(R.adler=IB(R.adler,Y.pending_buf,Y.pending-E,E));Y.gzindex===Y.gzhead.extra.length&&
(Y.gzindex=0,Y.status=73)}else Y.status=73;if(Y.status===73)if(Y.gzhead.name){E=Y.pending;do{if(Y.pending===Y.pending_buf_size&&(Y.gzhead.hcrc&&Y.pending>E&&(R.adler=IB(R.adler,Y.pending_buf,Y.pending-E,E)),rM(R),E=Y.pending,Y.pending===Y.pending_buf_size)){var z=1;break}z=Y.gzindex<Y.gzhead.name.length?Y.gzhead.name.charCodeAt(Y.gzindex++)&255:0;XX(Y,z)}while(z!==0);Y.gzhead.hcrc&&Y.pending>E&&(R.adler=IB(R.adler,Y.pending_buf,Y.pending-E,E));z===0&&(Y.gzindex=0,Y.status=91)}else Y.status=91;if(Y.status===
91)if(Y.gzhead.comment){E=Y.pending;do{if(Y.pending===Y.pending_buf_size&&(Y.gzhead.hcrc&&Y.pending>E&&(R.adler=IB(R.adler,Y.pending_buf,Y.pending-E,E)),rM(R),E=Y.pending,Y.pending===Y.pending_buf_size)){z=1;break}z=Y.gzindex<Y.gzhead.comment.length?Y.gzhead.comment.charCodeAt(Y.gzindex++)&255:0;XX(Y,z)}while(z!==0);Y.gzhead.hcrc&&Y.pending>E&&(R.adler=IB(R.adler,Y.pending_buf,Y.pending-E,E));z===0&&(Y.status=103)}else Y.status=103;Y.status===103&&(Y.gzhead.hcrc?(Y.pending+2>Y.pending_buf_size&&rM(R),
Y.pending+2<=Y.pending_buf_size&&(XX(Y,R.adler&255),XX(Y,R.adler>>8&255),R.adler=0,Y.status=113)):Y.status=113);if(Y.pending!==0){if(rM(R),R.avail_out===0)return Y.last_flush=-1,0}else if(R.avail_in===0&&(A<<1)-(A>4?9:0)<=(P<<1)-(P>4?9:0)&&A!==4)return nn(R,-5);if(Y.status===666&&R.avail_in!==0)return nn(R,-5);if(R.avail_in!==0||Y.lookahead!==0||A!==0&&Y.status!==666){P=Y.strategy===2?Yl6(Y,A):Y.strategy===3?Ahk(Y,A):bB[Y.level].func(Y,A);if(P===3||P===4)Y.status=666;if(P===1||P===3)return R.avail_out===
0&&(Y.last_flush=-1),0;if(P===2&&(A===1?(JZ(Y,2,3),yA(Y,256,DF),Y.bi_valid===16?(VA(Y,Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0):Y.bi_valid>=8&&(Y.pending_buf[Y.pending++]=Y.bi_buf&255,Y.bi_buf>>=8,Y.bi_valid-=8)):A!==5&&(JZ(Y,0,3),Bab(Y,0,0),A===3&&(HG(Y.head),Y.lookahead===0&&(Y.strstart=0,Y.block_start=0,Y.insert=0))),rM(R),R.avail_out===0))return Y.last_flush=-1,0}if(A!==4)return 0;if(Y.wrap<=0)return 1;Y.wrap===2?(XX(Y,R.adler&255),XX(Y,R.adler>>8&255),XX(Y,R.adler>>16&255),XX(Y,R.adler>>24&255),XX(Y,
R.total_in&255),XX(Y,R.total_in>>8&255),XX(Y,R.total_in>>16&255),XX(Y,R.total_in>>24&255)):(SX(Y,R.adler>>>16),SX(Y,R.adler&65535));rM(R);Y.wrap>0&&(Y.wrap=-Y.wrap);return Y.pending!==0?0:1};
zxl=function(R){if(!(this instanceof zxl))return new zxl(R);R=this.options=m3.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},R||{});R.raw&&R.windowBits>0?R.windowBits=-R.windowBits:R.gzip&&R.windowBits>0&&R.windowBits<16&&(R.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new iGk;this.strm.avail_out=0;var A=this.strm;var Y=R.level,P=R.method,E=R.windowBits,z=R.memLevel,c=R.strategy;if(A){var M=1;Y===-1&&(Y=6);E<0?(M=0,E=-E):E>15&&
(M=2,E-=16);if(z<1||z>9||P!==8||E<8||E>15||Y<0||Y>9||c<0||c>4)A=nn(A,-2);else{E===8&&(E=9);var N=new P5J;A.state=N;N.strm=A;N.wrap=M;N.gzhead=null;N.w_bits=E;N.w_size=1<<N.w_bits;N.w_mask=N.w_size-1;N.hash_bits=z+7;N.hash_size=1<<N.hash_bits;N.hash_mask=N.hash_size-1;N.hash_shift=~~((N.hash_bits+3-1)/3);N.window=new m3.Buf8(N.w_size*2);N.head=new m3.Buf16(N.hash_size);N.prev=new m3.Buf16(N.w_size);N.lit_bufsize=1<<z+6;N.pending_buf_size=N.lit_bufsize*4;N.pending_buf=new m3.Buf8(N.pending_buf_size);
N.d_buf=N.lit_bufsize;N.l_buf=3*N.lit_bufsize;N.level=Y;N.strategy=c;N.method=P;if(A&&A.state){A.total_in=A.total_out=0;A.data_type=2;Y=A.state;Y.pending=0;Y.pending_out=0;Y.wrap<0&&(Y.wrap=-Y.wrap);Y.status=Y.wrap?42:113;A.adler=Y.wrap===2?0:1;Y.last_flush=0;if(!lok){P=Array(16);for(z=c=0;z<28;z++)for(opP[z]=c,E=0;E<1<<hpl[z];E++)T5[c++]=z;T5[c-1]=z;for(z=c=0;z<16;z++)for(G96[z]=c,E=0;E<1<<k9k[z];E++)QA[c++]=z;for(c>>=7;z<30;z++)for(G96[z]=c<<7,E=0;E<1<<k9k[z]-7;E++)QA[256+c++]=z;for(E=0;E<=15;E++)P[E]=
0;for(E=0;E<=143;)DF[E*2+1]=8,E++,P[8]++;for(;E<=255;)DF[E*2+1]=9,E++,P[9]++;for(;E<=279;)DF[E*2+1]=7,E++,P[7]++;for(;E<=287;)DF[E*2+1]=8,E++,P[8]++;fs6(DF,287,P);for(E=0;E<30;E++)UF[E*2+1]=5,UF[E*2]=boV(E,5);xol=new Wbk(DF,hpl,257,286,15);chk=new Wbk(UF,k9k,0,30,15);OGJ=new Wbk([],Mzk,0,19,7);lok=!0}Y.l_desc=new j43(Y.dyn_ltree,xol);Y.d_desc=new j43(Y.dyn_dtree,chk);Y.bl_desc=new j43(Y.bl_tree,OGJ);Y.bi_buf=0;Y.bi_valid=0;prP(Y);Y=0}else Y=nn(A,-2);Y===0&&(A=A.state,A.window_size=2*A.w_size,HG(A.head),
A.max_lazy_match=bB[A.level].max_lazy,A.good_match=bB[A.level].good_length,A.nice_match=bB[A.level].nice_length,A.max_chain_length=bB[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=2,A.match_available=0,A.ins_h=0);A=Y}}else A=-2;if(A!==0)throw Error(gM[A]);R.header&&(A=this.strm)&&A.state&&A.state.wrap===2&&(A.state.gzhead=R.header);if(R.dictionary){var y;typeof R.dictionary==="string"?y=s6q(R.dictionary):Ng6.call(R.dictionary)==="[object ArrayBuffer]"?
y=new Uint8Array(R.dictionary):y=R.dictionary;R=this.strm;z=y;c=z.length;if(R&&R.state)if(y=R.state,A=y.wrap,A===2||A===1&&y.status!==42||y.lookahead)A=-2;else{A===1&&(R.adler=diP(R.adler,z,c,0));y.wrap=0;c>=y.w_size&&(A===0&&(HG(y.head),y.strstart=0,y.block_start=0,y.insert=0),Y=new m3.Buf8(y.w_size),m3.arraySet(Y,z,c-y.w_size,y.w_size,0),z=Y,c=y.w_size);Y=R.avail_in;P=R.next_in;E=R.input;R.avail_in=c;R.next_in=0;R.input=z;for(Kn(y);y.lookahead>=3;){z=y.strstart;c=y.lookahead-2;do y.ins_h=(y.ins_h<<
y.hash_shift^y.window[z+3-1])&y.hash_mask,y.prev[z&y.w_mask]=y.head[y.ins_h],y.head[y.ins_h]=z,z++;while(--c);y.strstart=z;y.lookahead=2;Kn(y)}y.strstart+=y.lookahead;y.block_start=y.strstart;y.insert=y.lookahead;y.lookahead=0;y.match_length=y.prev_length=2;y.match_available=0;R.next_in=P;R.input=E;R.avail_in=Y;y.wrap=A;A=0}else A=-2;if(A!==0)throw Error(gM[A]);this._dict_set=!0}};
Vzl=function(R,A){A=A||{};A.gzip=!0;A=new zxl(A);A.push(R,!0);if(A.err)throw A.msg||gM[A.err];return A.result};
yhk=function(R,A){var Y=Jh8();Y&&Y.publish.call(Y,R.toString(),R,A)};
gwP=function(R,A,Y){var P=Jh8();if(!P)return 0;var E=P.subscribe(R.toString(),function(z,c){var M=_.Zr("ytPubsub2Pubsub2SkipSubKey");M&&M==E||(M=function(){if(mok[E])try{if(c&&R instanceof Tgk&&R!=z)try{var N=R.dataClass,y=c;if(!y.args||!y.version)throw Error("Zc");try{if(!N.version_){var m=new N;N.version_=m.version}var T=N.version_}catch(Q){}if(!T||y.version!=T)throw Error("$c");try{c=Reflect.construct(N,_.Cu(y.args))}catch(Q){throw Q.message="yt.pubsub2.Data.deserialize(): "+Q.message,Q;}}catch(Q){throw Q.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+R.toString()+": "+Q.message,Q;}A.call(Y||window,c)}catch(Q){_.hv(Q)}},Q6l[R.toString()]?_.Zr("yt.scheduler.instance")?_.fn.addLowPriorityJob(M):_.JN(M,0):M())});
mok[E]=!0;vwk[R.toString()]||(vwk[R.toString()]=[]);vwk[R.toString()].push(E);return E};
Doq=function(){var R=nw8,A=gwP(HGu,function(Y){R.apply(void 0,arguments);rhk(A)});
return A};
rhk=function(R){var A=Jh8();A&&(typeof R==="number"&&(R=[R]),_.uI(R,function(Y){A.unsubscribeByKey(Y);delete mok[Y]}))};
Jh8=function(){return _.Zr("ytPubsub2Pubsub2Instance")};
Uob=function(R,A,Y){Y=Y===void 0?{sampleRate:.1}:Y;Math.random()<Math.min(.02,Y.sampleRate/100)&&yhk("meta_logging_csi_event",{timerName:R,timelineData:A})};
_.$ou=function(R){return R?(R=R.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.YU(R):null:null};
_.pn=function(R){return R?(R=R.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.IR(R):null:null};
Slk=function(){XZJ||(XZJ=_.pn(_.a1("WORKER_SERIALIZATION_URL")));return XZJ||void 0};
_.Ky8=function(){var R=Slk();IoS||R===void 0||(IoS=new Worker(_.Kq(R),void 0));return IoS};
_.Wyk=function(){return typeof Worker==="function"&&Slk()?!0:!1};
_.pZ6=function(){if(_.Wyk()&&!j6J){var R=function(Y){Y=Y.data;if(Y.op==="gzippedGelBatch"){var P=bGk.get(Y.key);P&&(fok(Y.gzippedBatch,P.latencyPayload,P.url,P.options,P.sendFn),bGk.delete(Y.key))}},A=_.Ky8();
A&&(A.addEventListener("message",R),A.onerror=function(){bGk.clear()},j6J=!0)}};
k26=function(R,A,Y,P,E){E=E===void 0?!1:E;var z={startTime:(0,_.iB)(),ticks:{},infos:{}};if(FX)try{var c=FyV(A);if(c!=null&&(c>Bg8||c<aoP))P(R,Y);else{if(_.v("gzip_gel_with_worker")&&(_.v("initial_gzip_use_main_thread")&&!C58||!_.v("initial_gzip_use_main_thread"))){j6J||_.pZ6();var M=_.Ky8();if(M&&!E){bGk.set(hx6,{latencyPayload:z,url:R,options:Y,sendFn:P});M.postMessage({op:"gelBatchToGzip",serializedBatch:A,key:hx6});hx6++;return}}var N=Vzl(owk(A));fok(N,z,R,Y,P)}}catch(y){_.tv(y),P(R,Y)}else P(R,
Y)};
fok=function(R,A,Y,P,E){C58=!1;var z=(0,_.iB)();A.ticks.gelc=z;BG++;_.v("disable_compression_due_to_performance_degredation")&&z-A.startTime>=G2I&&(ZG3++,_.v("abandon_compression_after_N_slow_zips")?BG===_.cU("compression_disable_point")&&ZG3>tzu&&(FX=!1):FX=!1);wZk(A);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=R;P.postParams=void 0;E(Y,P)};
u7u=function(R){var A=A===void 0?!1:A;var Y=Y===void 0?!1:Y;var P=(0,_.iB)(),E={startTime:P,ticks:{},infos:{}},z=A?_.Zr("yt.logging.gzipForFetch",!1):!0;if(FX&&z){if(!R.body)return R;try{var c=Y?R.body:typeof R.body==="string"?R.body:JSON.stringify(R.body);z=c;if(!Y&&typeof c==="string"){var M=FyV(c);if(M!=null&&(M>Bg8||M<aoP))return R;Y=A?{level:1}:void 0;z=Vzl(owk(c),Y);var N=(0,_.iB)();E.ticks.gelc=N;if(A){BG++;if((_.v("disable_compression_due_to_performance_degredation")||_.v("disable_compression_due_to_performance_degradation_lr"))&&
N-P>=G2I)if(ZG3++,_.v("abandon_compression_after_N_slow_zips")||_.v("abandon_compression_after_N_slow_zips_lr")){A=ZG3/BG;var y=tzu/_.cU("compression_disable_point");BG>0&&BG%_.cU("compression_disable_point")===0&&A>=y&&(FX=!1)}else FX=!1;wZk(E)}}R.headers=Object.assign({},{"Content-Encoding":"gzip"},R.headers||{});R.body=z;return R}catch(m){return _.tv(m),R}}else return R};
FyV=function(R){try{return(new Blob(R.split(""))).size}catch(A){return _.tv(A),null}};
wZk=function(R){_.v("gel_compression_csi_killswitch")||!_.v("log_gel_compression_latency")&&!_.v("log_gel_compression_latency_lr")||Uob("gel_compression",R,{sampleRate:.1})};
exJ=function(){this.blockSize=-1};
aB=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var R=1;R<this.blockSize;++R)this.pad_[R]=0;this.total_=this.inbuf_=0;this.reset()};
Lyk=function(R){R=Object.assign({},R);delete R.Authorization;var A=_.qlV();if(A){var Y=new aB;Y.update(_.a1("INNERTUBE_API_KEY"));Y.update(A);R.hash=_.WF(Y.digest(),3)}return R};
hZ=function(){doS||(doS=new _.Cn("yt.innertube"));return doS};
Rwb=function(R,A,Y,P){if(P)return null;P=hZ().get("nextId",!0)||1;var E=hZ().get("requests",!0)||{};E[P]={method:R,request:A,authState:Lyk(Y),requestTime:Math.round((0,_.iB)())};hZ().set("nextId",P+1,86400,!0);hZ().set("requests",E,86400,!0);return P};
A7J=function(R){var A=hZ().get("requests",!0)||{};delete A[R];hZ().set("requests",A,86400,!0)};
P4k=function(R){var A=hZ().get("requests",!0);if(A){for(var Y in A){var P=A[Y];if(!(Math.round((0,_.iB)())-P.requestTime<6E4)){var E=P.authState,z=Lyk(_.Is8(!1));_.BO.equals(E,z)&&(E=P.request,"requestTimeMs"in E&&(E.requestTimeMs=Math.round((0,_.iB)())),Y53(R,P.method,E,{}));delete A[Y]}}hZ().set("requests",A,86400,!0)}};
E9S=function(R){var A;return(R=R==null?void 0:(A=R.error)==null?void 0:A.code)&&R>=400&&R<=599?!1:!0};
zwk=function(R){var A;R=R==null?void 0:(A=R.error)==null?void 0:A.code;return!(R!==400&&R!==415)};
lc8=function(){if(iC8)return iC8();var R={};iC8=z5("LogsDatabaseV2",{objectStores:(R.LogsRequestsStore={addedAtVersion:2},R),shared:!1,upgrade:function(A,Y,P){Y(2)&&oB(A,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Y(3);Y(5)&&(P=P.objectStore("LogsRequestsStore"),P.JSC$10668_wrapped.indexNames.contains("newRequest")&&P.JSC$10668_wrapped.deleteIndex("newRequest"),k_(P,"newRequestV2",["status","interface","timestamp"]));Y(7)&&A.JSC$10653_wrapped.objectStoreNames.contains("sapisid")&&A.JSC$10653_wrapped.deleteObjectStore("sapisid");
Y(9)&&A.JSC$10653_wrapped.objectStoreNames.contains("SWHealthLog")&&A.JSC$10653_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return iC8()};
G5=function(R){return _.q1(lc8(),R)};
c78=function(R,A){var Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return Y={startTime:(0,_.iB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},c.yield(G5(A),2);if(c.nextAddress!=3)return P=c.yieldResult,E=Object.assign({},R,{options:JSON.parse(JSON.stringify(R.options)),interface:_.a1("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),c.yield(P.put("LogsRequestsStore",E),3);z=c.yieldResult;Y.ticks.tc=(0,_.iB)();xfl(Y);return c.return(z)})};
OCk=function(R,A){var Y,P,E,z,c,M,N,y,m;return _.O(function(T){if(T.nextAddress==1)return Y={startTime:(0,_.iB)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},T.yield(G5(A),2);if(T.nextAddress!=3)return P=T.yieldResult,E=_.a1("INNERTUBE_CONTEXT_CLIENT_NAME",0),z=[R,E,0],c=[R,E,(0,_.iB)()],M=IDBKeyRange.bound(z,c),N="prev",_.v("use_fifo_for_networkless")&&(N="next"),y=void 0,m=R==="NEW"?"readwrite":"readonly",_.v("use_readonly_for_get_most_recent_by_status_killswitch")&&(m="readwrite"),
T.yield(_.Lw(P,["LogsRequestsStore"],{mode:m,enableRetries:!0},function(Q){return _.lB(Q.objectStore("LogsRequestsStore").index("newRequestV2"),{query:M,direction:N},function(g){g.getValue()&&(y=g.getValue(),R==="NEW"&&(y.status="QUEUED",g.update(y)))})}),3);
Y.ticks.tc=(0,_.iB)();xfl(Y);return T.return(y)})};
M5b=function(R,A){var Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(G5(A),2);Y=P.yieldResult;return P.return(_.Lw(Y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(E){var z=E.objectStore("LogsRequestsStore");return z.get(R).then(function(c){if(c)return c.status="QUEUED",z.put(c).then(function(){return c})})}))})};
sZJ=function(R,A,Y,P){Y=Y===void 0?!0:Y;var E;return _.O(function(z){if(z.nextAddress==1)return z.yield(G5(A),2);E=z.yieldResult;return z.return(_.Lw(E,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){var M=c.objectStore("LogsRequestsStore");return M.get(R).then(function(N){return N?(N.status="NEW",Y&&(N.sendCount+=1),P!==void 0&&(N.options.compress=P),M.put(N).then(function(){return N})):kS.resolve(void 0)})}))})};
NUP=function(R,A){var Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(G5(A),2);Y=P.yieldResult;return P.return(Y.delete("LogsRequestsStore",R))})};
V5V=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(G5(R),2);A=P.yieldResult;Y=(0,_.iB)()-2592E6;return P.yield(_.Lw(A,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(E){return RB(E.objectStore("LogsRequestsStore"),{},function(z){if(z.getValue().timestamp<=Y)return z.delete().then(function(){return z.continue()})})}),0)})};
J7b=function(){_.O(function(R){return R.yield(Epk("LogsDatabaseV2"),0)})};
xfl=function(R){_.v("nwl_csi_killswitch")||Uob("networkless_performance",R,{sampleRate:1})};
_.mfl=function(R){return _.q1(y7k(),R)};
TUP=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(_.mfl(R),2);A=P.yieldResult;Y=(0,_.iB)()-2592E6;return P.yield(_.Lw(A,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(E){return RB(E.objectStore("SWHealthLog"),{},function(z){if(z.getValue().timestamp<=Y)return z.delete().then(function(){return z.continue()})})}),0)})};
QZV=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(_.mfl(R),2);A=Y.yieldResult;return Y.yield(A.clear("SWHealthLog"),0)})};
_.ZF=function(R,A,Y,P,E,z,c){E=E===void 0?"":E;z=z===void 0?!1:z;c=c===void 0?!1:c;if(R)if(Y&&!aW("cobalt"))_.tv(new _.XN("Legacy referrer-scrubbed ping detected")),R&&v9q(R,void 0,{scrubReferrer:!0});else if(E)ZjV(R,A,"POST",E,P);else if(_.a1("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||c)ZjV(R,A,"GET","",P,void 0,z,c);else{b:{try{c:{var M=new g9k({url:R});if(M.urlParamValues_.dsh==="1")var N=null;else{var y=M.urlParamValues_.ae;if(y==="1"){var m=M.urlParamValues_.adurl;if(m)try{N={version:3,directUrl:decodeURIComponent(m),
asyncUrl:SeI(M.JSC$9469_url_,"act=1","ri=1",n96(M))};break c}catch(r){}}N=y==="2"?{version:4,directUrl:SeI(M.JSC$9469_url_,"dct=1","suid="+M.suid_,""),asyncUrl:SeI(M.JSC$9469_url_,"act=1","ri=1","suid="+M.suid_)}:null}}if(N){var T=_.T3(R);var Q=!(!T||!T.endsWith("/aclk")||_.wz(R,"ri")!=="1");break b}}catch(r){}Q=!1}if(Q){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(R,"")){var g=!0;break b}}catch(r){}g=!1}g?(A&&A(),Y=!0):Y=!1}else Y=!1;Y||v9q(R,A)}};
v9q=function(R,A,Y){Y=Y===void 0?{}:Y;var P=new Image,E=""+HCq++;r7V[E]=P;P.onload=P.onerror=function(){A&&r7V[E]&&A();delete r7V[E]};
Y.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=R};
tZ=function(R,A){Dfl(R,A==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
Uf3=function(R){var A;return((A=document.featurePolicy)==null?0:A.allowedFeatures().includes("attribution-reporting"))?R+"&nis=6":R+"&nis=5"};
$fk=function(R){if(!R)return!1;try{var A;if(((A=_.eO(R))==null?void 0:A.asm)==="4")return!0}catch(Y){_.hv(Y)}return!1};
Dfl=function(R,A){A?(R=Uf3(R),_.ZF(R,void 0,void 0,void 0,"",!0,!0)):_.ZF(R)};
S5q=function(){Xck||(Xck=new _.Cn("yt.offline"));return Xck};
Ick=function(R){if(_.v("offline_error_handling")){var A=S5q().get("errors",!0)||{};A[R.message]={name:R.name,stack:R.stack};R.level&&(A[R.message].level=R.level);S5q().set("errors",A,2592E3,!0)}};
W0I=function(R,A,Y,P){P=P===void 0?!1:P;A=_.v("web_fp_via_jspb")?Object.assign({},A):A;_.v("use_cfr_monitor")&&K08(R,A);if(_.v("use_request_time_ms_header"))A.headers&&PU(R)&&(A.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.iB)())));else{var E;if((E=A.postParams)==null?0:E.requestTimeMs)A.postParams.requestTimeMs=Math.round((0,_.iB)())}Y&&Object.keys(A).length===0?_.ZF(R):A.compress?A.postBody?(typeof A.postBody!=="string"&&(A.postBody=JSON.stringify(A.postBody)),k26(R,A.postBody,
A,_.QQ,P)):k26(R,JSON.stringify(A.postParams),A,eYb,P):_.QQ(R,A)};
jZk=function(R,A){_.v("use_event_time_ms_header")&&PU(R)&&(A.headers||(A.headers={}),A.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.iB)())));return A};
_.fcu=function(){bCb||(bCb=new _.wM({logOfflineErrors:!0,enablePolling:!0}));return bCb};
K08=function(R,A){var Y=A.onError?A.onError:function(){};
A.onError=function(E,z){uB().requestComplete(R,!1);Y(E,z)};
var P=A.onSuccess?A.onSuccess:function(){};
A.onSuccess=function(E,z){uB().requestComplete(R,!0);P(E,z)}};
_.pc8=function(){return _.AN(document.location.toString())!=="www.youtube-nocookie.com"};
_.ack=function(){return _.Zr("ytNetworklessLoggingInitializationOptions")?_.F0k.isNwlInitialized:_.BU8};
C46=function(R,A){if(_.v("polymer_on_demand_shady_dom")){var Y;var P=(Y=R.__shady_native_firstElementChild)!=null?Y:R.firstElementChild}else P=R.firstElementChild;for(;P;){if(R=A(P)?P:C46(P,A))return R;P=P.nextElementSibling}return null};
o9k=function(){var R=document;if("visibilityState"in R)return R.visibilityState;var A=hw6+"VisibilityState";if(A in R)return R[A]};
_.kjk=function(R,A){var Y;eX(R,function(P){Y=A[P];return!!Y});
return Y};
_.Ln=function(R){var A=GjI(R);A?A.focus(void 0):_.qz(R)};
GjI=function(R){return(R=C46(R,function(A){return _.dM(A)?ZC6(A)&&!!A.offsetParent:!1}))?R:null};
_.qz=function(R,A){R.hasAttribute("tabindex")||R.setAttribute("tabindex","-1");R.focus(A)};
t5b=function(R,A,Y,P){P=P===void 0?{}:P;R.addEventListener&&(A!="mouseenter"||"onmouseenter"in document?A!="mouseleave"||"onmouseenter"in document?A=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(A="MozMousePixelScroll"):A="mouseout":A="mouseover");return _.BO.findKey(Rn,function(E){var z=typeof E[4]==="boolean"&&E[4]==!!P,c=_.ZI(E[4])&&_.ZI(P)&&_.BO.equals(E[4],P);return!!E.length&&E[0]==R&&E[1]==A&&E[2]==Y&&(z||c)})};
_.Ya=function(R,A,Y,P){P=P===void 0?{}:P;if(!R||!R.addEventListener&&!R.attachEvent)return"";var E=t5b(R,A,Y,P);if(E)return E;E=++wck.count+"";var z=!(A!="mouseenter"&&A!="mouseleave"||!R.addEventListener||"onmouseenter"in document);var c=z?function(M){M=new A$(M);if(!_.GE(M.relatedTarget,function(N){return N==R},!0))return M.currentTarget=R,M.type=A,Y.call(R,M)}:function(M){M=new A$(M);
M.currentTarget=R;return Y.call(R,M)};
c=_.o1(c);R.addEventListener?(A=="mouseenter"&&z?A="mouseover":A=="mouseleave"&&z?A="mouseout":A=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(A="MozMousePixelScroll"),uSu()||typeof P==="boolean"?R.addEventListener(A,c,P):R.addEventListener(A,c,!!P.capture)):R.attachEvent("on"+A,c);Rn[E]=[R,A,Y,c,P];return E};
_.q5I=function(R,A,Y){var P=P===void 0?{}:P;var E=_.Ya(R,A,function(){_.ewu(E);Y.apply(R,arguments)},P)};
_.ewu=function(R){R&&(typeof R=="string"&&(R=[R]),_.uI(R,function(A){if(A in Rn){var Y=Rn[A],P=Y[0],E=Y[1],z=Y[3];Y=Y[4];P.removeEventListener?uSu()||typeof Y==="boolean"?P.removeEventListener(E,z,Y):P.removeEventListener(E,z,!!Y.capture):P.detachEvent&&P.detachEvent("on"+E,z);delete Rn[A]}}))};
Pj=function(R){this.callback_=R;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(R=0;R<4;R++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Ya(window,"mousemove",(0,_.Wv)(this.onMouseMove_,this));this.timerId_=_.yQ((0,_.Wv)(this.checkPosition_,this),25)};
dfq=function(){var R={};var A=R.preferMobileEvents===void 0?!1:R.preferMobileEvents;R=R.enableScrollEventListener===void 0?!0:R.enableScrollEventListener;if(_.Zr("_lact",window)==null){var Y=parseInt(_.a1("LACT"),10);Y=isFinite(Y)?Date.now()-Math.max(Y,0):-1;_.PG("_lact",Y,window);_.PG("_fact",Y,window);Y==-1&&_.Ea();_.Ya(document,"keydown",_.Ea);_.Ya(document,"keyup",_.Ea);_.Ya(document,"mousedown",_.Ea);_.Ya(document,"mouseup",_.Ea);A?_.Ya(window,"touchmove",function(){L0k("touchmove",200)},{passive:!0}):
(_.Ya(window,"resize",function(){L0k("resize",200)}),R&&_.Ya(window,"scroll",function(){L0k("scroll",200)}));
new Pj(function(){L0k("mouse",100)});
_.Ya(document,"touchstart",_.Ea,{passive:!0});_.Ya(document,"touchend",_.Ea,{passive:!0})}};
L0k=function(R,A){Rck[R]||(Rck[R]=!0,_.fn.addLowPriorityJob(function(){_.Ea();Rck[R]=!1},A))};
_.Ea=function(){_.Zr("_lact",window)==null&&dfq();var R=Date.now();_.PG("_lact",R,window);_.Zr("_fact",window)==-1&&_.PG("_fact",R,window);(R=_.Zr("ytglobal.ytUtilActivityCallback_"))&&R()};
_.z$=function(){var R=_.Zr("_lact",window);return R==null?-1:Math.max(Date.now()-R,0)};
_.Oa=function(R,A,Y){var P=_.lj();if(P&&A){var E=P.subscribe(R,function(){var z=arguments,c=function(){xa[E]&&A.apply&&typeof A.apply=="function"&&A.apply(Y||window,z)};
try{_.AMJ[R]?c():_.JN(c,0)}catch(M){_.hv(M)}},Y);
xa[E]=!0;cj[R]||(cj[R]=[]);cj[R].push(E);return E}return 0};
_.Ywb=function(R){var A=_.lj();A&&(typeof R==="number"?R=[R]:typeof R==="string"&&(R=[parseInt(R,10)]),_.uI(R,function(Y){A.unsubscribeByKey(Y);delete xa[Y]}))};
_.Phk=function(R,A){var Y=_.lj();Y&&Y.publish.apply(Y,arguments)};
_.zck=function(R){var A=_.lj();if(A)if(A.clear(R),R)ELV(R);else for(var Y in cj)ELV(Y)};
_.lj=function(){return _.P3.ytPubsubPubsubInstance};
ELV=function(R){cj[R]&&(R=cj[R],_.uI(R,function(A){xa[A]&&delete xa[A]}),R.length=0)};
iY3=function(){var R,A;return"h5vcc"in Mj&&((R=Mj.h5vcc.traceEvent)==null?0:R.traceBegin)&&((A=Mj.h5vcc.traceEvent)==null?0:A.traceEnd)?1:"performance"in Mj&&Mj.performance.mark&&Mj.performance.measure?2:0};
lLV=function(R){var A=iY3();switch(A){case 1:Mj.h5vcc.traceEvent.traceBegin("YTLR",R);break;case 2:Mj.performance.mark(R+"-start");break;case 0:break;default:_.kZ(A,"unknown trace type")}};
xHk=function(R){var A=iY3();switch(A){case 1:Mj.h5vcc.traceEvent.traceEnd("YTLR",R);break;case 2:A=R+"-start";var Y=R+"-end";Mj.performance.mark(Y);Mj.performance.measure(R,A,Y);break;case 0:break;default:_.kZ(A,"unknown trace type")}};
cMI=function(R){var A,Y;(Y=(A=window).onerror)==null||Y.call(A,R.message,"",0,0,R)};
OYk=function(R){if(_.v("web_lifecycle_error_handling_killswitch"))return R();try{return R()}catch(A){cMI(A)}};
Mib=function(R){return[R.auth===void 0?"undefined":R.auth,R.isJspb===void 0?"undefined":R.isJspb,R.cttAuthInfo===void 0?"undefined":R.cttAuthInfo,R.tier===void 0?"undefined":R.tier].join("/")};
_.n=function(R,A){if(R)return R[A.name]};
Nj=function(){var R=_.Zr("yt.logging.ims");R||(R=new sa,_.PG("yt.logging.ims",R));return R};
vLl=function(R,A){if(R.endpoint==="log_event"){sE3(R);var Y=NlV(R),P=ViS(R.payload)||"",E=JMq(P),z=200;if(E){if(E.enabled===!1&&!_.v("web_payload_policy_disabled_killswitch"))return;z=yMl(E.tier);if(z===400){mHI(R,A);return}}VR[Y]=!0;Y={cttAuthInfo:Y,isJspb:!1,tier:z};Nj().storePayload(Y,R.payload);Tlk(A,!1,Y,QE6(P))}};
nLk=function(R,A,Y){if(A.endpoint==="log_event"){sE3(void 0,A);var P=NlV(A,!0),E=JMq(R),z=200;if(E){if(E.enabled===!1&&!_.v("web_payload_policy_disabled_killswitch"))return;z=yMl(E.tier);if(z===400){gL3(R,A,Y);return}}VR[P]=!0;P={cttAuthInfo:P,isJspb:!0,tier:z};Nj().storePayload(P,ff(A.payload));Tlk(Y,!0,P,QE6(R))}};
Tlk=function(R,A,Y,P){A=A===void 0?!1:A;P=P===void 0?!1:P;R&&(J$=new R);R=_.cU("tvhtml5_logging_max_batch_ads_fork")||_.cU("tvhtml5_logging_max_batch")||_.cU("web_logging_max_batch")||100;var E=(0,_.iB)(),z=HYJ(A,Y.tier),c=z.lastDebounceQueueFromLogTimeMs;P&&(z.useVideoStatsEndPoint=!0);P=0;Y&&(P=Nj().getSequenceCount(Y));var M=function(){rMI({writeThenSend:!0},A,Y.tier)};
P>=1E3?M():P>=R?DHu||(DHu=UHk(function(){M();DHu=void 0},0)):E-c>=10&&($Hu(A,Y.tier),z.lastDebounceQueueFromLogTimeMs=E)};
mHI=function(R,A){if(R.endpoint==="log_event"){_.v("more_accurate_gel_parser")&&Nj().storePayload({isJspb:!1},R.payload);sE3(R);var Y=NlV(R),P=new Map;P.set(Y,[R.payload]);var E=ViS(R.payload)||"";A&&(J$=new A);return new _.yR(function(z,c){J$&&J$.isReady()?X1b(P,J$,z,c,{bypassNetworkless:!0},!0,QE6(E)):z()})}};
gL3=function(R,A,Y){if(A.endpoint==="log_event"){sE3(void 0,A);var P=NlV(A,!0),E=new Map;E.set(P,[ff(A.payload)]);Y&&(J$=new Y);return new _.yR(function(z){J$&&J$.isReady()?SwV(E,J$,z,{bypassNetworkless:!0},!0,QE6(R)):z()})}};
NlV=function(R,A){var Y="";if(R.dangerousLogToVisitorSession)Y="visitorOnlyApprovedKey";else if(R.cttAuthInfo){if(A===void 0?0:A){A=R.cttAuthInfo.token;Y=R.cttAuthInfo;var P=new ILb;Y.videoId?P.setVideoId(Y.videoId):Y.playlistId&&mx(P,2,KBk,QN(Y.playlistId));WBk[A]=P}else A=R.cttAuthInfo,Y={},A.videoId?Y.videoId=A.videoId:A.playlistId&&(Y.playlistId=A.playlistId),jEu[R.cttAuthInfo.token]=Y;Y=R.cttAuthInfo.token}return Y};
rMI=function(R,A,Y){R=R===void 0?{}:R;A=A===void 0?!1:A;new _.yR(function(P,E){var z=HYJ(A,Y),c=z.useVideoStatsEndPoint;z.useVideoStatsEndPoint=!1;bY8(z.queueTimer);bY8(z.queueMaxTimer);z.queueMaxTimer=0;J$&&J$.isReady()?Y===void 0&&_.v("enable_web_tiered_gel")?fLk(P,E,R,A,300,c):fLk(P,E,R,A,Y,c):($Hu(A,Y),P())})};
fLk=function(R,A,Y,P,E,z){var c=J$;Y=Y===void 0?{}:Y;P=P===void 0?!1:P;E=E===void 0?200:E;z=z===void 0?!1:z;var M=new Map,N=new Map,y={isJspb:P,cttAuthInfo:void 0,tier:E},m={isJspb:P,cttAuthInfo:void 0};if(P){A=_.x(Object.keys(VR));for(E=A.next();!E.done;E=A.next())E=E.value,N=_.v("enable_web_tiered_gel")?Nj().smartExtractMatchingEntries({keys:[y,m],sizeLimit:1E3}):Nj().extractMatchingEntries({isJspb:!0,cttAuthInfo:E}),N.length>0&&M.set(E,N),(_.v("web_fp_via_jspb_and_json")&&Y.writeThenSend||!_.v("web_fp_via_jspb_and_json"))&&
delete VR[E];SwV(M,c,R,Y,!1,z)}else{M=_.x(Object.keys(VR));for(y=M.next();!y.done;y=M.next())y=y.value,m=_.v("enable_web_tiered_gel")?Nj().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:y,tier:E},{isJspb:!1,cttAuthInfo:y}],sizeLimit:1E3}):Nj().extractMatchingEntries({isJspb:!1,cttAuthInfo:y}),m.length>0&&N.set(y,m),(_.v("web_fp_via_jspb_and_json")&&Y.writeThenSend||!_.v("web_fp_via_jspb_and_json"))&&delete VR[y];X1b(N,c,R,A,Y,!1,z)}};
$Hu=function(R,A){R=R===void 0?!1:R;A=A===void 0?200:A;var Y=function(){rMI({writeThenSend:!0},R,A)},P=HYJ(R,A),E=P===p1b||P===FBP?5E3:BlI;
_.v("web_gel_timeout_cap")&&!P.queueMaxTimer&&(E=UHk(function(){Y()},E),P.queueMaxTimer=E);
bY8(P.queueTimer);E=_.a1("LOGGING_BATCH_TIMEOUT",_.cU("web_gel_debounce_ms",1E4));_.v("shorten_initial_gel_batch_timeout")&&aLl&&(E=ChI);E=UHk(function(){_.cU("gel_min_batch_size")>0?Nj().getSequenceCount({cttAuthInfo:void 0,isJspb:R,tier:A})>=hcS&&Y():Y()},E);
P.queueTimer=E};
X1b=function(R,A,Y,P,E,z,c){E=E===void 0?{}:E;var M=Math.round((0,_.iB)()),N=R.size,y=oLk(c);R=_.x(R);var m=R.next();for(c={};!m.done;c={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},m=R.next()){var T=_.x(m.value);m=T.next().value;T=T.next().value;c.batchRequest=_.BO.unsafeClone({context:_.gp6(A.config_||_.x_())});if(!_.ok(T)&&!_.v("throw_err_when_logevent_malformed_killswitch")){P();break}c.batchRequest.events=T;
(T=jEu[m])&&ko8(c.batchRequest,m,T);delete jEu[m];c.dangerousLogToVisitorSession=m==="visitorOnlyApprovedKey";Gok(c.batchRequest,M,c.dangerousLogToVisitorSession);ZYk(E);c.onSuccess$jscomp$3=function(Q){_.v("start_client_gcf")&&_.fn.addLowPriorityJob(function(){return _.O(function(g){return g.yield(til(Q),0)})});
N--;N||Y()};
c.networkFailures=0;c.onError$jscomp$5=function(Q){return function(){Q.networkFailures++;if(E.bypassNetworkless&&Q.networkFailures===1)try{Y53(A,y,Q.batchRequest,w1l({writeThenSend:!0},Q.dangerousLogToVisitorSession,Q.onSuccess$jscomp$3,Q.onError$jscomp$5,z)),aLl=!1}catch(g){_.hv(g),P()}N--;N||Y()}}(c);
try{Y53(A,y,c.batchRequest,w1l(E,c.dangerousLogToVisitorSession,c.onSuccess$jscomp$3,c.onError$jscomp$5,z)),aLl=!1}catch(Q){_.hv(Q),P()}}};
SwV=function(R,A,Y,P,E,z){P=P===void 0?{}:P;var c=Math.round((0,_.iB)()),M={value:R.size},N=new Map([].concat(_.py(R)));N=_.x(N);for(var y=N.next();!y.done;y=N.next()){var m=_.x(y.value).next().value,T=R.get(m);y=new uW8;var Q=A.config_||_.x_(),g=new T$,r=new eck;_.IS(r,1,Q.innertubeContextHostLanguage);_.IS(r,2,Q.innertubeContextGeoLocation);_.OF(r,16,Q.innertubeContextClientNameFieldNumber);_.IS(r,17,Q.innertubeContextClientVersion);if(Q.innertubeContextClientConfigInfo){var I=Q.innertubeContextClientConfigInfo,
b=new sF;I.coldConfigData&&_.IS(b,1,I.coldConfigData);I.appInstallData&&_.IS(b,6,I.appInstallData);I.coldHashData&&_.IS(b,3,I.coldHashData);I.hotHashData&&b.setHotHashData(I.hotHashData);_.DE(r,62,b)}(I=_.P3.devicePixelRatio)&&I!=1&&_.Mz(r,65,_.GN(I));I=pkV();I!==""&&_.IS(r,54,I);I=FZI();if(I.length>0){b=new qwu;for(var p=0;p<I.length;p++){var h=new QR;h.setKey(I[p].key);mx(h,2,LBP,QN(I[p].value));vj(b,15,QR,h)}_.DE(g,5,b)}JfS(Q,r);yfu(g);miI(r);TaJ(Q,r);Q48(r);_.v("start_client_gcf")&&vpk(r);_.a1("DELEGATED_SESSION_ID")&&
!_.v("pageid_as_header_web")&&(Q=new g5,_.IS(Q,3,_.a1("DELEGATED_SESSION_ID")));!_.v("fill_delegate_context_in_gel_killswitch")&&(I=_.a1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b=_.cG(g,g5,3)||new g5,Q=g,I=_.IS(b,18,I),_.DE(Q,3,I));Q=r;I=_.x(Object.entries(_.eO(_.a1("DEVICE",""))));for(b=I.next();!b.done;b=I.next())p=_.x(b.value),b=p.next().value,p=p.next().value,b==="cbrand"?_.IS(Q,12,p):b==="cmodel"?_.IS(Q,13,p):b==="cbr"?_.IS(Q,87,p):b==="cbrver"?_.IS(Q,88,p):b==="cos"?_.IS(Q,18,
p):b==="cosver"?_.IS(Q,19,p):b==="cplatform"&&_.OF(Q,42,NFP(p));g.setClient(r);_.DE(y,1,g);if(r=WBk[m])a:{if(_.rz(r,nK(r,KBk,1)))g=1;else if(r.getPlaylistId())g=2;else break a;_.DE(y,4,r);r=y.getContext()||new T$;Q=_.cG(r,g5,3)||new g5;I=new Hj;I.setToken(m);_.OF(I,1,g);vj(Q,12,Hj,I);_.DE(r,3,Q)}delete WBk[m];m=m==="visitorOnlyApprovedKey";dHk()||_.r5(y,2,c);!m&&(g=_.a1("EVENT_ID"))&&(r=RHk(),Q=new A4J,_.IS(Q,1,g),_.r5(Q,2,r),_.DE(y,5,Q));ZYk(P);if(_.v("jspb_serialize_with_worker")&&(g=_.Ky8())&&
P.writeThenSend){_.YJS.set(Pc8,{client:A,resolve:Y,networklessOptions:P,isIsolated:E,useVSSEndpoint:z,dangerousLogToVisitorSession:m,requestsOutstanding:M});g.postMessage({op:"gelBatchToSerialize",batchRequest:ff(y),clientEvents:T,key:Pc8});Pc8++;break}if(T){g=[];for(r=0;r<T.length;r++)try{g.push(new DA(T[r]))}catch(L){_.hv(new _.XN("Transport failed to deserialize "+String(T[r])))}T=g}else T=[];T=_.x(T);for(g=T.next();!g.done;g=T.next())vj(y,3,DA,g.value);T={startTime:(0,_.iB)(),ticks:{},infos:{}};
y=y.serialize();T.ticks.geljspc=(0,_.iB)();_.v("log_jspb_serialize_latency")&&Uob("gel_jspb_serialize",T,{sampleRate:.1});_.EHV(y,A,Y,P,E,z,m,M)}};
_.EHV=function(R,A,Y,P,E,z,c,M){P=P===void 0?{}:P;M=M===void 0?{value:0}:M;z=oLk(z);P=w1l(P,c,function(N){_.v("start_client_gcf")&&_.fn.addLowPriorityJob(function(){return _.O(function(y){return y.yield(til(N),0)})});
M.value--;M.value||Y()},function(){M.value--;
M.value||Y()},E);
P.headers["Content-Type"]="application/json+protobuf";P.postBodyFormat="JSPB";P.postBody=R;Y53(A,z,"",P);aLl=!1};
ZYk=function(R){_.v("always_send_and_write")&&(R.writeThenSend=!1)};
w1l=function(R,A,Y,P,E){R={retry:!0,onSuccess:Y,onError:P,networklessOptions:R,dangerousLogToVisitorSession:A,bypassMonitoring:!!E,headers:{},postBodyFormat:"",postBody:"",compress:_.v("compress_gel")||_.v("compress_gel_lr")};dHk()&&(R.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.iB)())));return R};
Gok=function(R,A,Y){dHk()||(R.requestTimeMs=String(A));_.v("unsplit_gel_payloads_in_logs")&&(R.unsplitGelPayloadsInLogs=!0);!Y&&(A=_.a1("EVENT_ID"))&&(Y=RHk(),R.serializedClientEventId={serializedEventId:A,clientCounter:String(Y)})};
RHk=function(){var R=_.a1("BATCH_CLIENT_COUNTER")||0;R||(R=Math.floor(Math.random()*65535/2));R++;R>65535&&(R=1);_.BD("BATCH_CLIENT_COUNTER",R);return R};
ko8=function(R,A,Y){if(Y.videoId)var P="VIDEO";else if(Y.playlistId)P="PLAYLIST";else return;R.credentialTransferTokenTargetId=Y;R.context=R.context||{};R.context.user=R.context.user||{};R.context.user.credentialTransferTokens=[{token:A,scope:P}]};
sE3=function(R,A){var Y=_.OK("il_payload_scraping")==="enable_il_payload_scraping";if(!_.Zr("yt.logging.transport.enableScrapingForTest"))if(Y)zHk=[],_.PG("yt.logging.transport.enableScrapingForTest",!0),_.PG("yt.logging.transport.scrapedPayloadsForTesting",zHk),_.PG("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.PG("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.PG("yt.logging.transport.scrapeClientEvent",!0);else return;Y=_.Zr("yt.logging.transport.scrapedPayloadsForTesting");var P=_.Zr("yt.logging.transport.payloadToScrape");A&&(A=_.Zr("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(A.payload)())&&Y.push(A);A=_.Zr("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var E=0;E<P.length;E++)if(R&&R.payload[P[E]])if(A)Y.push(R.payload);else{var z=void 0;Y.push(((z=R)==null?void 0:z.payload)[P[E]])}_.PG("yt.logging.transport.scrapedPayloadsForTesting",
Y)};
dHk=function(){return _.v("use_request_time_ms_header")||_.v("lr_use_request_time_ms_header")};
UHk=function(R,A){return _.v("transport_use_scheduler")===!1?_.JN(R,A):_.v("logging_avoid_blocking_during_navigation")||_.v("lr_logging_avoid_blocking_during_navigation")?_.Ua(_.fn,function(){if(_.iiJ().currentState==="none")R();else{var Y={};_.iiJ().install((Y.none={callback:R},Y))}},A):_.Ua(_.fn,R,A)};
bY8=function(R){_.v("transport_use_scheduler")?_.fn.cancelJob(R):_.mT(R)};
til=function(R){var A,Y,P,E,z,c,M,N,y,m;return _.O(function(T){return T.nextAddress==1?(P=(A=R)==null?void 0:(Y=A.responseContext)==null?void 0:Y.globalConfigGroup,E=_.n(P,lkq),c=(z=P)==null?void 0:z.hotHashData,M=_.n(P,xVk),y=(N=P)==null?void 0:N.coldHashData,(m=_.is().resolve(_.z3($a)))?c?E?T.yield(c4P(m,c,E),2):T.yield(c4P(m,c),2):T.jumpTo(2):T.return()):y?M?T.yield(OiJ(m,y,M),0):T.yield(OiJ(m,y),0):T.jumpTo(0)})};
HYJ=function(R,A){A=A===void 0?200:A;return R?A===300?p1b:Mdk:A===300?FBP:sPq};
JMq=function(R){if(_.v("enable_web_tiered_gel")){R=N0l[R||""];var A,Y,P,E=_.is().resolve(_.z3($a))==null?void 0:(A=X8())==null?void 0:(Y=A.loggingHotConfig)==null?void 0:(P=Y.eventLoggingConfig)==null?void 0:P.payloadPolicies;if(E)for(A=0;A<E.length;A++)if(E[A].payloadNumber===R)return E[A]}};
ViS=function(R){R=Object.keys(R);R=_.x(R);for(var A=R.next();!A.done;A=R.next())if(A=A.value,N0l[A])return A};
yMl=function(R){switch(R){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}};
QE6=function(R){return R==="gelDebuggingEvent"};
oLk=function(R){return(R===void 0?0:R)&&_.v("vss_through_gel_video_stats")?"video_stats":"log_event"};
In=function(R,A,Y,P){P=P===void 0?{}:P;var E={},z=Math.round(P.timestamp||(0,_.iB)());E.eventTimeMs=z<Number.MAX_SAFE_INTEGER?z:0;E[R]=A;R=_.z$();E.context={lastActivityMs:String(P.timestamp||!isFinite(R)?-1:R)};P.sequenceGroup&&!_.v("web_gel_sequence_info_killswitch")&&(R=E.context,A=P.sequenceGroup,A={index:Vdu(A),groupKey:A},R.sequence=A,P.endOfSequence&&delete S_[P.sequenceGroup]);_.v("web_tag_automated_log_events")&&(E.context.automatedLogEventSource=P.automatedLogEventSource);(P.sendIsolatedPayload?
mHI:vLl)({endpoint:"log_event",payload:E,cttAuthInfo:P.cttAuthInfo,dangerousLogToVisitorSession:P.dangerousLogToVisitorSession},Y)};
Vdu=function(R){S_[R]=R in S_?S_[R]+1:0;return S_[R]};
_.Wj=function(R,A,Y){Y=Y===void 0?{}:Y;var P=KK;_.CQ("ytLoggingEventsDefaultDisabled",!1)&&KK===KK&&(P=null);In(R,A,P,Y)};
_.j_=function(){if(_.v("web_fp_via_jspb")){var R=!0;R=R===void 0?!1:R;var A=J48;J48=[];if(A){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,R?In(Y.payloadName,Y.payload,KK,Y.options):_.Wj(Y.payloadName,Y.payload,Y.options)}rMI(void 0,!0);if(!_.v("web_fp_via_jspb_and_json"))return}rMI(void 0,!1)};
y4q=function(R,A){var Y;if((Y=A)==null?0:Y.componentStack)return A;if(R=R.componentStack)A||(A={}),A.componentStack=R;return A};
mVl=function(){_.uI(_.a1("ERRORS")||[],function(R){_.bj.apply(null,R)});
_.BD("ERRORS",[])};
_.fK=function(R){_.bj(R)};
_.pK=function(R){_.bj(R,"WARNING")};
T0P=function(R){R instanceof Error?_.bj(R):(R=_.ZI(R)?JSON.stringify(R):String(R),R=new _.XN(R),R.name="RejectedPromiseError",_.pK(R))};
QPl=function(R,A,Y,P,E,z){A=A===void 0?"Unknown file":A;Y=Y===void 0?0:Y;var c=!1,M=Jg6("log_window_onerror_fraction");if(M&&Math.random()<M)c=!0;else{M=document.getElementsByTagName("script");for(var N=0,y=M.length;N<y;N++)if(M[N].src.indexOf("/debug-")>0){c=!0;break}}c&&(c=!1,E?c=!0:(typeof R==="string"?M=R:ErrorEvent&&R instanceof ErrorEvent?(c=!0,M=R.message,A=R.filename,Y=R.lineno,P=R.colno):(M="Unknown error",A="Unknown file",Y=0),E=new _.XN(M),E.name="UnhandledWindowError",E.message=M,E.fileName=
A,E.lineNumber=Y,isNaN(P)?delete E.columnNumber:E.columnNumber=P),_.v("wiz_enable_component_stack_propagation_killswitch")||(z=y4q(E,z)),z&&_.F8(E,z),c?_.bj(E):_.pK(E))};
_.bj=function(R,A,Y,P,E,z,c,M){z=z===void 0?{}:z;z.name=Y||_.a1("INNERTUBE_CONTEXT_CLIENT_NAME",1);z.version=P||_.a1("INNERTUBE_CONTEXT_CLIENT_VERSION");Y=z;A=A===void 0?"ERROR":A;c=c===void 0?!1:c;A=A===void 0?"ERROR":A;c=c===void 0?!1:c;if(R&&(R.hasOwnProperty("level")&&R.level&&(A=R.level),_.v("console_log_js_exceptions")&&(P=[],P.push("Name: "+R.name),P.push("Message: "+R.message),R.hasOwnProperty("params")&&P.push("Error Params: "+JSON.stringify(R.params)),R.hasOwnProperty("args")&&P.push("Error args: "+
JSON.stringify(R.args)),P.push("File name: "+R.fileName),P.push("Stacktrace: "+R.stack),P=P.join("\n"),window.console.log(P,R)),!(vHS>=5))){P=[];E=_.x(gHu);for(z=E.next();!z.done;z=E.next()){z=z.value;try{z()&&P.push(z())}catch(b){}}P=[].concat(_.py(nHJ),_.py(P));var N=Hi6(R);E=N.message||"Unknown Error";z=N.name||"UnknownError";var y=N.stack||R.stacktrace||"Not available";if(y.startsWith(z+": "+E)){var m=y.split("\n");m.shift();y=m.join("\n")}m=N.lineNumber||"Not available";N=N.fileName||"Not available";
var T=0;if(R.hasOwnProperty("args")&&R.args&&R.args.length)for(var Q=0;Q<R.args.length&&!(T=sak(R.args[Q],"params."+Q,Y,T),T>=500);Q++);else if(R.hasOwnProperty("params")&&R.params){var g=R.params;if(typeof R.params==="object")for(Q in g){if(g[Q]){var r="params."+Q,I=nw(g[Q]);Y[r]=I;T+=r.length+I.length;if(T>500)break}}else Y.params=nw(g)}if(P.length)for(Q=0;Q<P.length&&!(T=sak(P[Q],"params.context."+Q,Y,T),T>=500);Q++);navigator.vendor&&!Y.hasOwnProperty("vendor")&&(Y["device.vendor"]=navigator.vendor);
Q={message:E,name:z,lineNumber:m,fileName:N,stack:y,params:Y,sampleWeight:1};Y=Number(R.columnNumber);isNaN(Y)||(Q.lineNumber=Q.lineNumber+":"+Y);if(R.level==="IGNORED")R=0;else a:{R=r4q();Y=_.x(R.messageWeights);for(P=Y.next();!P.done;P=Y.next())if(P=P.value,Q.message&&Q.message.match(P.messageRegExp)){R=P.weight;break a}R=_.x(R.callbackWeights);for(Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,Y.callback(Q)){R=Y.weight;break a}R=1}Q.sampleWeight=R;R=_.x(DVb);for(Y=R.next();!Y.done;Y=R.next())if(Y=
Y.value,Y.patternsForType[Q.name])for(E=_.x(Y.patternsForType[Q.name]),P=E.next();!P.done;P=E.next())if(z=P.value,P=Q.message.match(z.regexp)){Q.params["params.error.original"]=P[0];E=z.groups;z={};for(m=0;m<E.length;m++)z[E[m]]=P[m+1],Q.params["params.error."+E[m]]=P[m+1];Q.message=Y.messageFn(z);break}Q.params||(Q.params={});R=r4q();Q.params["params.errorServiceSignature"]="msg="+R.messageWeights.length+"&cb="+R.callbackWeights.length;Q.params["params.serviceWorker"]="false";_.P3.document&&_.P3.document.querySelectorAll&&
(Q.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Bj(UVk,"sample")).constructor!==Bj&&(Q.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Q);if(Q.sampleWeight!==0&&!$Vk.has(Q.message)){if(c&&_.v("web_enable_error_204"))XTq(A===void 0?"ERROR":A,Q);else{A=A===void 0?"ERROR":A;A==="ERROR"?(SJ3.publish("handleError",Q),_.v("record_app_crashed_web")&&Ikq===0&&Q.sampleWeight===1&&(Ikq++,c={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.v("report_client_error_with_app_crash_ks")||(c.systemHealth={crashData:{clientError:{logMessage:{message:Q.message}}}}),_.Wj("appCrashed",c)),Kpk++):A==="WARNING"&&SJ3.publish("handleWarning",Q);if(_.v("kevlar_gel_error_routing")){c=A;M=M===void 0?{}:M;b:{R=_.x(WpJ);for(Y=R.next();!Y.done;Y=R.next())if(aW(Y.value.toLowerCase())){R=!0;break b}R=!1}if(R)M=void 0;else{Y={stackTrace:Q.stack};Q.fileName&&(Y.filename=Q.fileName);R=Q.lineNumber&&Q.lineNumber.split?Q.lineNumber.split(":"):[];R.length!==
0&&(R.length!==1||isNaN(Number(R[0]))?R.length!==2||isNaN(Number(R[0]))||isNaN(Number(R[1]))||(Y.lineNumber=Number(R[0]),Y.columnNumber=Number(R[1])):Y.lineNumber=Number(R[0]));R={level:"ERROR_LEVEL_UNKNOWN",message:Q.message,errorClassName:Q.name,sampleWeight:Q.sampleWeight};c==="ERROR"?R.level="ERROR_LEVEL_ERROR":c==="WARNING"&&(R.level="ERROR_LEVEL_WARNNING");Y={isObfuscated:!0,browserStackInfo:Y};M.pageUrl=window.location.href;M.kvPairs=[];_.a1("FEXP_EXPERIMENTS")&&(M.experimentIds=_.a1("FEXP_EXPERIMENTS"));
P=_.a1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!Jg6("web_disable_gel_stp_ecatcher_killswitch")&&P)for(E=_.x(Object.keys(P)),z=E.next();!z.done;z=E.next())z=z.value,M.kvPairs.push({key:z,value:String(P[z])});if(P=Q.params)for(E=_.x(Object.keys(P)),z=E.next();!z.done;z=E.next())z=z.value,M.kvPairs.push({key:"client."+z,value:String(P[z])});P=_.a1("SERVER_NAME");E=_.a1("SERVER_VERSION");P&&E&&(M.kvPairs.push({key:"server.name",value:P}),M.kvPairs.push({key:"server.version",value:E}));M={errorMetadata:M,
stackTrace:Y,logMessage:R}}M&&(_.Wj("clientError",M),(c==="ERROR"||_.v("errors_flush_gel_always_killswitch"))&&_.j_())}_.v("suppress_error_204_logging")||XTq(A,Q)}try{$Vk.add(Q.message)}catch(b){}vHS++}}};
XTq=function(R,A){var Y=A.params||{};R={urlParams:{a:"logerror",t:"jserror",type:A.name,msg:A.message.substr(0,250),line:A.lineNumber,level:R,"client.name":Y.name},postParams:{url:_.a1("PAGE_NAME",window.location.href),file:A.fileName},method:"POST"};Y.version&&(R["client.version"]=Y.version);if(R.postParams){A.stack&&(R.postParams.stack=A.stack);A=_.x(Object.keys(Y));for(var P=A.next();!P.done;P=A.next())P=P.value,R.postParams["client."+P]=Y[P];if(Y=_.a1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(A=
_.x(Object.keys(Y)),P=A.next();!P.done;P=A.next())P=P.value,R.postParams[P]=Y[P];(Y=_.a1("LAVA_VERSION"))&&(R.postParams["lava.version"]=Y);Y=_.a1("SERVER_NAME");A=_.a1("SERVER_VERSION");Y&&A&&(R.postParams["server.name"]=Y,R.postParams["server.version"]=A)}_.QQ(_.a1("ECATCHER_REPORT_HOST","")+"/error_204",R)};
_.jPk=function(R,A){A=A===void 0?"ERROR":A;var Y=Y===void 0?{}:Y;var P=_.Zr("ytbin.polymer.shared.lib.tampering.info");P&&(P=P())&&(Y["params.tamperingInfo"]=P.sort().join(","));_.bj(R,A,void 0,void 0,!0,Y)};
_.F8=function(R){var A=_.Ge.apply(1,arguments);R.args||(R.args=[]);Array.isArray(R.args)&&R.args.push.apply(R.args,_.py(A))};
biP=function(R){R.level="IGNORED"};
fk6=function(R,A){nHJ.push(R);A();nHJ.pop()};
CK=function(R,A){for(var Y in A)A.hasOwnProperty(Y)&&(R=_.an(R,Y,A[Y]));return R};
_.pTV=function(R,A,Y){Y=Y===void 0?!1:Y;if(!R)return null;if(R.adInfoDialogEndpoint||R.backstageImageUploadEndpoint||R.confirmDialogEndpoint||R.clientActionEndpoint||R.createBackstagePostDialogEndpoint||R.createCommentReplyDialogEndpoint||R.flowEndpoint||R.guideBuilderEndpoint||R.liveChatDialogEndpoint||R.modalEndpoint||R.openPopupAction||R.shareEndpoint||R.shareEntityEndpoint||R.showLiveChatItemEndpoint||R.subscriptionManagerEndpoint||R.unlimitedCreateFamilyEndpoint||R.unlimitedFamilyFlowEndpoint||
R.updateCommentDialogEndpoint||R.updateCommentReplyDialogEndpoint||R.userFeedbackEndpoint||R.videoEditorEndpoint||R.ypcCancelSurveyEndpoint)return A=_.cU("polymer_report_client_url_requested_rate"),!Y&&Math.random()<A&&_.pK(new _.XN("urlForEndpoint used on client endpoint",R)),null;var P=_.cU("polymer_report_missing_web_navigation_endpoint_rate");if(R.liveChatEndpoint||R.liveChatReplayEndpoint)P=0;if(!R.commandMetadata&&!R.clickTrackingParams&&Math.random()<P){var E={},z;for(z in R)E[z]="1";_.pK(new _.XN("Missing navigation data",
E))}E="";if(R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.url)E=R.commandMetadata.webCommandMetadata.url;else if(R.searchEndpoint)Math.random()<P&&_.pK(new _.XN("Should not manually handle search",R)),E="/results?search_query="+encodeURIComponent(R.searchEndpoint.query).replace(/%20/g,"+"),R.searchEndpoint.params&&(E+="&sp="+R.searchEndpoint.params);else if(R.watchEndpoint)Math.random()<P&&_.pK(new _.XN("Should not manually handle watch",R)),E="/watch?v="+
R.watchEndpoint.videoId,R.watchEndpoint.playlistId&&(E+="&list="+R.watchEndpoint.playlistId),R.watchEndpoint.index&&(E+="&index="+R.watchEndpoint.index),R.watchEndpoint.startTimeSeconds&&(E+="&t="+R.watchEndpoint.startTimeSeconds);else if(R.browseEndpoint)P=R.browseEndpoint.browseId,(z=R.browseEndpoint.canonicalBaseUrl)?E=z:P&&(E=P.substr(0,2),E=E==="FE"?P==="FEwhat_to_watch"?"/":P==="FEmy_videos"?"/my_videos":"/feed/"+P.substr(2):E==="VL"?"/playlist?list="+P.substr(2):"/channel/"+P),E&&R.browseEndpoint.query&&
(E=CK(E+"/search",{query:R.browseEndpoint.query})),E&&R.browseEndpoint.params&&(E=CK(E,{params:R.browseEndpoint.params}));else{if(R.urlEndpoint)return R.urlEndpoint.url;R.signInEndpoint?(E="https://accounts.google.com/ServiceLogin",P={},_.BO.extend(P,A||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),A=P):R.uploadEndpoint?E="//www.youtube.com/upload":R.liveChatEndpoint?(E=R.liveChatEndpoint,P=_.BO.clone(E),_.ZI(E.continuation)&&(z=Object.keys(E.continuation)[0],
P.continuation=E.continuation[z].continuation),E=CK("/youtubei/v1/live_chat/get_live_chat",P)):R.liveChatReplayEndpoint?(E=_.BO.clone(R.liveChatReplayEndpoint),E.currentPlayerState&&(_.BO.extend(E,E.currentPlayerState),delete E.currentPlayerState),E=CK("/youtubei/v1/live_chat/get_live_chat_replay",E)):R.liveChatItemContextMenuEndpoint?E=CK("/youtubei/v1/live_chat/get_item_context_menu",R.liveChatItemContextMenuEndpoint):R.liveChatPurchaseMessageEndpoint?E=CK("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
R.liveChatPurchaseMessageEndpoint):R.openSuperStickerBuyFlowCommand?E=CK("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",R.openSuperStickerBuyFlowCommand):R.videoEditEndpoint?E=CK("/edit",{video_id:R.videoEditEndpoint.videoId}):R.liveDashboardEndpoint?E=R.liveDashboardEndpoint.videoId?CK("/live_dashboard",{v:R.liveDashboardEndpoint.videoId}):"/live_dashboard":R.signalNavigationEndpoint&&R.signalNavigationEndpoint.signal&&R.signalNavigationEndpoint.signal==="WEBCAM"?E="/webcam":R.getPdgBuyFlowCommand&&
(E=CK(R.getPdgBuyFlowCommand.buyflowApiPath,{params:R.getPdgBuyFlowCommand.params}))}return E||Y?CK(E,A||{}):(_.pK(new _.XN("Error: Can't construct url for endpoint","keys:"+Object.keys(R).sort().join(","),R)),null)};
FpV=function(R){if(R){if(R.browseEndpoint)return!!R.browseEndpoint.nofollow;if(R.watchEndpoint)return!!R.watchEndpoint.nofollow;if(R.urlEndpoint)return!!R.urlEndpoint.nofollow}return!1};
_.ak8=function(R,A){var Y=A+R,P=B0k.get(Y);if(P)return P;R=A+"-"+R.replace(/([A-Z])/g,"-$1").toLowerCase();B0k.set(Y,R);return R};
CcV=function(R){var A=_.fQ(R,"action")||_.fQ(R,"command")||_.fQ(R,"endpoint");if(!A)return null;A=_.ak8(A,"yt");_.n(R,_.h$)&&(A+="-"+_.n(R,_.h$).signal.toLowerCase().replace(/_/g,"-"));return A};
GIk=function(R){try{var A=Object.keys(R)}catch(E){return[]}for(var Y=0;Y<A.length;Y++){var P=A[Y];if(hHl.test(P)||oH3.test(P))return kIu(R[P])}return[]};
kIu=function(R){return R.command?[R.command]:R.onExecutionAction?[R.onExecutionAction]:R.onResponseReceivedCommand?[R.onResponseReceivedCommand]:R.updateFlowCommand?[R.updateFlowCommand]:R.clientActions?R.clientActions:R.action?[R.action]:R.actions||R.commands||R.onResponseReceivedActions||R.onResponseReceivedCommands||R.onResponseReceivedEndpoints||[]};
tdk=function(R,A){A=A===void 0?!1:A;var Y=_.is().resolve(_.z3(on));Y||(Y=new ZiJ,_.is().addProvider({provide:on,useValue:Y}));return Y&&R&&!_.BO.isEmpty(R)?Y.getUrl(R,A):""};
wTJ=function(R,A,Y){Y=Y===void 0?"":Y;if(A){R.data=A;var P=tdk(A);P?(wZ(R,P),FpV(A)||!PU(P)?R.rel="nofollow":R.removeAttribute("rel"),_.n(A,_.G$)&&_.n(A,_.G$).target==="TARGET_NEW_WINDOW"?R.target="_blank":Y?R.target=Y:R.removeAttribute("target")):(R.removeAttribute("href"),R.removeAttribute("rel"),R.removeAttribute("target"))}};
_.qj=function(R,A){var Y=PV;if(Sq())ukV(R,function(){var z=_.Ge.apply(0,arguments);BV(Y,function(){A.apply(null,_.py(z))})});
else{var P=_.ZA.getInstance(),E=VFl(A);PEu(function(){E.value=A});
_.jO(function(){var z={},c=_.t$(P,(z[R]=function(){var M=_.Ge.apply(0,arguments);BV(Y,function(){E.value.apply(E,_.py(M))})},z));
return function(){var M={};_.e_(P,(M[R]="",M),c)}})}};
_.LK=function(R,A){return eHV(R,!1,A)};
_.d5=function(R,A){return eHV(R,!0,A)};
eHV=function(R,A,Y){return Sq()?qJq(R,A,Y):Lpk(R,A,Y)};
Lpk=function(R,A,Y){return bI(function(){return qJq(R,A,Y)})};
qJq=function(R,A,Y){var P=d4V(function(E){P.value=E;var z=function(){var c=M9(null);try{return Y==null?void 0:Y(E)}finally{M9(c)}}();
return function(){z==null||z()}});
P.__expectedTagName=R;P.__optional=A;P.isIdom=!Sq();return P};
dVl=function(R){var A=PV,Y=$0;return{getFn:function(){return function(P){A.isDisposed||WV(function(){return J6(function(){return R(P)})},Y)!==!0&&P.stopPropagation()}}}};
R$=function(R){if(typeof R.children==="function")return R.children(),null;R=_.x(R.children);for(var A=R.next();!A.done;A=R.next())A=A.value,A();return null};
R8k=function(R){var A;return((A=R.prototype)==null?void 0:A.render)===void 0};
Amu=function(R){return R.items.map(R.children)};
_.Pxl=function(R,A,Y){Y=Y===void 0?!1:Y;WV(function(){return Yr8(R,A,Y)})};
Yr8=function(R,A,Y){var P=null;rE++;Y=(Y===void 0?0:Y)?Es3:z8q;try{P=Y(R,function(){Aw(A)}),U9(!1)}catch(E){throw U9(!0),E;
}return P===null?R:P};
Aw=function(R){if(R!==void 0&&R!==null)if(R instanceof vD)for(var A=wE;um()!=null&&Frk in um()&&A.contains(um());)LX();else if(Array.isArray(R))for(A=_.x(R),R=A.next();!R.done;R=A.next())Aw(R.value);else if(R instanceof Sc||R instanceof ct||"function"==typeof _.zT&&R instanceof _.zT)FeJ(R.toString());else if(_.cD(R)){if(um()!==R){var Y,P;A=(P=(Y=$0)==null?void 0:Y.name)!=null?P:"unknown";throw Error("fc`"+R.tagName+"`"+A);}LX()}else if(R!=null&&R.contentKind===se||R instanceof ub||RPk(R))for(A=YPk(R),
A=Array.from(A.childNodes),A=_.x(A),R=A.next();!R.done;R=A.next())wE.appendChild(R.value),LX();else if(pq(R)&&(R=R.toString()),Y=typeof R,Y==="boolean"||Y==="number"||Y==="string")FeJ(R);else if(typeof R==="function"){A=wE;var E=um();E&&(E._isSignalTextNode||E._isSafeOrSanitizedHtmlNode)||$4b(A,E,R);LX()}else if(R.type===Amu)Aw(R.type(Object.assign({},R.props,{children:R.children[0]})));else{HD.beforeVisit(R);if(typeof R.type==="string"){a:{R.__open||Xuk(R.type,R.props.idomKey);E=wE;for(A in R.props)if(R.props[A]!==
i0S){var z=R.props[A];Y=Av;Y.push(A);Y.push(z)}A=x0.attributes;A=A===void 0?Yc:A;z=wE;Y=G8(z);puk(z,Y,A);U4J(E,R.props,!0);if((R.props.skip||R.props.skipchildren)&&wE.hasChildNodes())INl();else{if(R.type==="style"&&OOu(R.children)===null){INl();A=void 0;break a}Aw(R.children)}S_3();R.__open&&(R.__open=!1);Zgk(E,R.props);A=E}return A}if(R.type===_.lI)Aw(R.children);else if(!l5P(R)){A=R;try{xhS(A)}catch(c){R=c,(z=x0.handleError)==null||z.call.apply(z,[x0].concat(_.py(aN(R,(E=A.type)==null?void 0:E.TAG_NAME))))}A.__open&&
(S_3(),A.__open=!1)}}};
cmS=function(R,A){var Y;R8k(R)?Y=new ru(A,R):Y=new R(A);Y.__type=R;Y.__updateContext={nextState:Y.state,isForced:!1};return Y};
xhS=function(R){var A=R.type,Y=A.TAG_NAME;if(A===R$)R.props.children=R.children,A(R.props);else{R.children.length>0&&(R.props.children=R.children);var P;(P=R.props).idomKey||(P.idomKey=A);if(Y){var E=Xuk(Y,R.props.idomKey);R.__open=!0;var z=E.__instance}z||(z=cmS(A,R.props),z.props=null,E&&(E.__instance=z,z.el=E));var c;Y=((c=z.__updateContext)!=null?c:{nextState:z.state,isForced:!1}).nextState;z.__updateContext=void 0;A.getDerivedStateFromProps&&(Y=A.getDerivedStateFromProps(R.props,Y));z.props=
R.props;z.state=Y;c=function(){var M=z;HD.beforeRender(M);var N=M.render(M.props);HD.afterRender(M,N);N?(M.props.idomKey&&(N.props.idomKey=M.props.idomKey),M=N):M=void 0;if(N=M)if(N.__open=R.__open,M=Aw(N),R.__open=N.__open,!A.TAG_NAME)if(M)A.TAG_NAME=M.tagName.toLowerCase(),M.__instance=z,z.el=M;else{var y;if((y=z.hooks)==null?0:y.length){var m;(m=x0.handleError)==null||m.call.apply(m,[x0].concat(_.py(aN(Error("md")))))}}z.didPatch();HD.didPatch(z)};
(Y=z.functionComponent)?wjk(Y,c,z.props.debugInstance):c()}};
l5P=function(R){var A=R.type;if(!R8k(A)||A===R$||A.componentType===_.XF)return!1;R.props.children=R.children.length>1?R.children:R.children[0];var Y,P=(Y=R.props.idomKey)!=null?Y:R.type,E;if(um()&&((E=um()[yI])==null?void 0:E.key)===P){var z=um(),c=z[yI];if(!c)throw Error("ec`"+z.tagName);var M;(M=c.updateSignalsFromIdomProps)==null||M.call(c,R.props);O0k(c);return!0}if(MbP.has(A.name))throw M=A.name,A=(c=(z=$0)==null?void 0:z.name)!=null?c:"unknown",Error("dc`"+M+"`"+A);KrS(R.type,R.props,R.children);
R.props.renderedFromIdom=!0;(M=wjk(R.type,function(){return vhS(R.type,R.props)},R.props.debugInstance))&&s9k(M);
return!0};
Nck=function(R){for(var A=0;A<QI(R).length;A++)LX()};
O0k=function(R){var A=VbV();if(A)Nck(A);else for(var Y=0;Y<R.numNodes;Y++)(A=VbV())?Nck(A):LX()};
VbV=function(){var R;return(R=um()[yI])==null?void 0:R.sourceDynamicRange};
s9k=function(R){R=u4S(R);R=Array.isArray(R)?R:[R];R=_.x(R);for(var A=R.next();!A.done;A=R.next())wE.insertBefore(A.value,um()),LX()};
Pu=function(R,A){var Y=PV,P=function(E){BV(Y,function(){A(E)})};
window.addEventListener(R,P,void 0);_.bm(function(){window.removeEventListener(R,P,void 0)})};
_.zR=function(R){var A=PV;return function(Y){var P,E=(P=R.observer)!=null?P:_.is().resolve(E_);P=JmJ(Y);var z=[];R.showOption&&z.push(E.observe(Y,function(){BV(A,function(){R.visibilityCallback(!0,Y)})},R.showOption));
R.hideOption&&z.push(E.observe(Y,function(){BV(A,function(){R.visibilityCallback(!1,Y)})},R.hideOption));
R.prescanOption&&R.prescanCallback&&z.push(E.observe(Y,function(){BV(A,function(){R.prescanCallback()})},R.prescanOption));
var c;P.visibilityMonitorKeys=((c=P.visibilityMonitorKeys)!=null?c:[]).concat(z)}};
JmJ=function(R){var A;return(A=R.polymerController)!=null?A:R};
Q9S=function(R,A){var Y=ymb;return _.V(_.lI,null,g_V(x0.enableLazyTsx,function(){return _.V(mh6,{id:Y,value:R,children:A})},function(){var P=Tck(Y,R);
lm(P);P=_.E9(P);try{return A()}finally{_.E9(P)}}))};
mh6=function(R){var A=R.children;R=Tck(R.id,R.value);lm(R);R=_.E9(R);try{return _.V(_.lI,null,gu(A()))}finally{_.E9(R)}};
Tck=function(R,A){return Object.assign(Object.create(vsk),{id:R,contextValue:A})};
gsl=function(R){var A,Y=PV;_.FF(function(){var P=_.E9(Y),E=xW(!A);try{if(A)_.Pxl(A,R.children(),!0);else if(A=gu(R.children()),!(A instanceof Element))throw Error("nd");}finally{xW(E),_.E9(P)}});
return A};
_.nsS=function(R,A){var Y;A=fX(function(){var P=xW(!0);rE++;try{Y=QI(R()),U9(!1)}catch(E){throw U9(!0),E;}finally{xW(P)}},A===void 0?!1:A);
return[Y,A]};
rmk=function(R){var A=new H0k;A.abort(R);return A.signal};
DhJ=function(){if(this.aborted){var R;throw(R=this.reason)!=null?R:new DOMException("signal is aborted without reason","AbortError");}};
XLl=function(R){var A=new H0k;R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,Y.aborted){A.abort(Y.reason);break}else Uhk.set(A.signal,A),$hV.add(Y,A.signal);return A.signal};
Srl=function(){for(var R=_.x($hV.get(this)),A=R.next();!A.done;A=R.next())Uhk.get(A.value).abort(this.reason)};
I5q=function(R){var A=new H0k;setTimeout(function(){A.abort(new DOMException("signal timed out","TimeoutError"))},R);
return A.signal};
WOk=function(R){R=R.buf.charCodeAt(R.pos++);return KO3[R]};
iy=function(R){var A=0,Y=0;do{var P=WOk(R);A|=(P&31)<<Y;Y+=5}while(P&32);return A<0?A+4294967296:A};
b0J=function(){var R=!0;R=R===void 0?!1:R;var A=A===void 0?!1:A;var Y=Y===void 0?{}:Y;var P=Y.cssRowKey||"",E=Y.combinedSignature||"";!P&&window&&window._F_cssRowKey&&(P=window._F_cssRowKey,!E&&window._F_combinedSignature&&(E=window._F_combinedSignature));if(P&&typeof window._F_installCss!=="function")throw Error("wd");var z=Y.loaderClass||_.ly,c=hs6("base-js");R=new z(VBk(k53("",c)),P,E,R,A);A=Y.useCors||c&&c.hasAttribute("crossorigin");c=Y.corsMode||c&&c.getAttribute("crossorigin");A&&(R.useCors_=
A);c&&(R.corsMode_=c);Y.urlMaxLength&&(R.urlMaxLength=Y.urlMaxLength);Y.fetchPriority&&(R.fetchPriority=Y.fetchPriority);var M=FL();M.JSC$10046_loader_=R;M.setBatchModeEnabled(!0);_.j9k=function(N){return Promise.resolve(M.load(N))}};
FOu=function(R,A,Y){f5J(R,A);R[A][pLk].unshift(Y)};
f5J=function(R,A){if(!R[A]||!R[A][pLk]){var Y=R[A],P=Y?[Y]:[];R[A]=function(){for(var E=_.x(P),z=E.next();!z.done;z=E.next())z.value.apply(this,arguments)};
R[A][pLk]=P}};
BcI=function(R){if(!R)return[];var A=[];R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,Array.isArray(Y)?A.push.apply(A,_.py(BcI(Y))):A.push(Y);return A};
_.cu=function(R,A){if(R&&a58.test(R)||R==="//")return R;if(Cxk===void 0){Cxk=!1;try{var Y=new URL("b","http://a");Y.pathname="c%20d";Cxk=Y.href==="http://a/c%20d"}catch(P){}}A||(A=document.baseURI||window.location.href);if(Cxk)try{return(new URL(R,A)).href}catch(P){return R}xc||(xc=document.implementation.createHTMLDocument("temp"),xc.base=xc.createElement("base"),xc.head.appendChild(xc.base),xc.anchor=xc.createElement("a"),xc.body.appendChild(xc.anchor));xc.base.href=A;xc.anchor.href=R;return xc.anchor.href||
R};
osk=function(R,A){return R.replace(h8k,function(Y,P,E,z){return P+"'"+_.cu(E.replace(/["']/g,""),A)+"'"+z})};
ktP=function(R){return R.substring(0,R.lastIndexOf("/")+1)};
tb3=function(){Gtb=!1;for(var R=O_.length,A=0;A<R;A++){var Y=O_[A];if(Y)try{Y()}catch(P){setTimeout(function(){throw P;})}}O_.splice(0,R);
Z06+=R};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(R){console.log("["+R.is+"]: registered")};
unP=function(R){wLP.push(R)};
MK=function(R){return e86[R]||(e86[R]=R.indexOf("-")<0?R:R.replace(qr6,function(A){return A[1].toUpperCase()}))};
s_=function(R){return e86[R]||(e86[R]=R.replace(LOP,"-$1").toLowerCase())};
dh3=function(R,A){var Y=A.parentInfo&&dh3(R,A.parentInfo);if(Y)for(R=Y.firstChild,Y=0;R;R=R.nextSibling){if(A.parentIndex===Y++)return R}else return R};
R3S=function(R,A){R=R._methodHost||R;return function(Y){if(R[A])R[A](Y,Y.detail);else console.warn("listener method `"+A+"` not defined")}};
NK=function(R){return R.indexOf(".")>=0};
Vc=function(R){var A=R.indexOf(".");return A===-1?R:R.slice(0,A)};
AVS=function(R,A){return R.indexOf(A+".")===0};
Jw=function(R,A){return A.indexOf(R+".")===0};
yc=function(R,A,Y){return A+Y.slice(R.length)};
YR6=function(R,A){return R===A||AVS(R,A)||Jw(R,A)};
me=function(R){if(Array.isArray(R)){for(var A=[],Y=0;Y<R.length;Y++)for(var P=R[Y].toString().split("."),E=0;E<P.length;E++)A.push(P[E]);return A.join(".")}return R};
PDb=function(R){return Array.isArray(R)?me(R).split("."):R.toString().split(".")};
TR=function(R,A,Y){A=PDb(A);for(var P=0;P<A.length;P++){if(!R)return;R=R[A[P]]}Y&&(Y.path=A.join("."));return R};
Ej3=function(R,A,Y){var P=PDb(A),E=P[P.length-1];if(P.length>1){for(A=0;A<P.length-1;A++)if(R=R[P[A]],!R)return;R[E]=Y}else R[A]=Y;return P.join(".")};
z3u=function(R,A,Y){var P=R[A];if(!P)P=R[A]={};else if(!R.hasOwnProperty(A)&&(P=R[A]=Object.create(R[A]),Y))for(var E in P)for(R=P[E],A=P[E]=Array(R.length),Y=0;Y<R.length;Y++)A[Y]=R[Y];return P};
vu=function(R,A,Y,P,E,z){if(A){var c=!1,M=Qc++,N;for(N in Y){var y=E?Vc(N):N;if(y=A[y])for(var m=0,T=y.length,Q=void 0;m<T&&(Q=y[m]);m++)Q.info&&Q.info.lastRun===M||E&&!i6V(N,Q.trigger)||(Q.info&&(Q.info.lastRun=M),Q.fn(R,N,Y,P,Q.info,E,z),c=!0)}return c}return!1};
i6V=function(R,A){if(A){var Y=A.name;return Y==R||!(!A.structured||!AVS(Y,R))||!(!A.wildcard||!Jw(Y,R))}return!0};
l78=function(R,A,Y,P,E){A=typeof E.method==="string"?R[E.method]:E.method;Y=E.property;A?A.call(R,R.__data[Y],P[Y]):E.dynamicFn||console.warn("observer method `"+E.method+"` not defined")};
xmq=function(R,A,Y,P){Y={value:Y,queueProperty:!0};P&&(Y.path=P);(0,_.gv)(R).dispatchEvent(new CustomEvent(A,{detail:Y}))};
cV8=function(R,A,Y,P,E,z){z=(P=(z?Vc(A):A)!=A?A:null)?TR(R,P):R.__data[A];P&&z===void 0&&(z=Y[A]);xmq(R,E.eventName,z,P)};
O6J=function(R,A,Y,P,E){Y=R.__data[A];ng&&(Y=ng(Y,E.attrName,"attribute",R));R._propertyToAttribute(A,E.attrName,Y)};
sLS=function(R){var A=R.constructor.__orderedComputedDeps;if(!A){A=new Map;for(var Y=R.__computeEffects,P=Mvl(R),E=P.counts,z=P.ready,c=P.total;P=z.shift();)A.set(P,A.size),(P=Y[P])&&P.forEach(function(M){M=M.info.methodInfo;--c;--E[M]===0&&z.push(M)});
c!==0&&console.warn("Computed graph for "+R.localName+" incomplete; circular?");R.constructor.__orderedComputedDeps=A}return A};
Mvl=function(R){var A=R.__computeInfo,Y={};R=R.__computeEffects;var P=[],E=0,z;for(z in A){var c=A[z];E+=Y[z]=c.args.filter(function(N){return!N.literal}).length+(c.dynamicFn?1:0)}for(var M in R)A[M]||P.push(M);
return{counts:Y,ready:P,total:E}};
Vvu=function(R,A,Y,P,E){A=Neq(R,A,Y,P,E);if(A===Hu)return!1;E=E.methodInfo;if(R.__dataHasAccessor&&R.__dataHasAccessor[E])return R._setPendingProperty(E,A,!0);R[E]=A;return!1};
mmP=function(R,A,Y,P,E,z,c){Y.bindings=Y.bindings||[];P={kind:P,target:E,parts:z,literal:c,isCompound:z.length!==1};Y.bindings.push(P);P.target&&P.kind!="attribute"&&P.kind!="text"&&!P.isCompound&&P.parts[0].mode==="{"&&(Y=P.parts[0],z=Y.negate,P.listenerEvent=Y.event||s_(E)+"-changed",P.listenerNegate=z);E=A.nodeInfoList.length;for(Y=0;Y<P.parts.length;Y++){var M=P.parts[Y];M.compoundIndex=Y;z=R;c=A;var N=P,y=M,m=E;if(!y.literal)if(N.kind==="attribute"&&N.target[0]==="-")console.warn("Cannot set attribute "+
N.target+' because "-" is not a valid attribute starting character');else for(M=y.dependencies,N={index:m,binding:N,part:y,evaluator:z},y=0;y<M.length;y++)m=M[y],typeof m=="string"&&(m=JV6(m),m.wildcard=!0),z._addTemplatePropertyEffect(c,m.rootProperty,{fn:yVu,info:N,trigger:m})}};
yVu=function(R,A,Y,P,E,z,c){c=c[E.index];var M=E.binding,N=E.part;z&&N.source&&A.length>N.source.length&&M.kind=="property"&&!M.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[M.target]?(Y=Y[A],A=yc(N.source,M.target,A),c._setPendingPropertyOrPath(A,Y,!1,!0)&&R._enqueueClient(c)):(A=E.evaluator._evaluateBinding(R,N,A,Y,P,z),A!==Hu&&(M.isCompound&&(Y=c.__dataCompoundStorage[M.target],Y[N.compoundIndex]=A,A=Y.join("")),M.kind==="attribute"||M.target!=="textContent"&&
(M.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(A=A==void 0?"":A),N=A,ng&&(N=ng(N,M.target,M.kind,c)),M.kind=="attribute"?R._valueToNodeAttribute(c,N,M.target):(M=M.target,c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[M]?c.__readOnly&&c.__readOnly[M]||c._setPendingProperty(M,N)&&R._enqueueClient(c):R._setUnmanagedPropertyToNode(c,M,N))))};
TeS=function(R,A,Y){if(Y.listenerEvent){var P=Y.parts[0];R.addEventListener(Y.listenerEvent,function(E){var z=Y.target,c=P.source,M=P.negate,N=E.detail,y=N&&N.path;y?(c=yc(z,c,y),E=N&&N.value):E=E.currentTarget[z];A.__readOnly&&A.__readOnly[c]||!A._setPendingPropertyOrPath(c,M?!E:E,!0,!!y)||N&&N.queueProperty||A._invalidateProperties()})}};
QLk=function(R,A,Y,P,E,z){z=A.static||z&&(typeof z!=="object"||z[A.methodName]);E={methodName:A.methodName,args:A.args,methodInfo:E,dynamicFn:z};for(var c=0,M=void 0;c<A.args.length&&(M=A.args[c]);c++)M.literal||R._addPropertyEffect(M.rootProperty,Y,{fn:P,info:E,trigger:M});z&&R._addPropertyEffect(A.methodName,Y,{fn:P,info:E});return E};
Neq=function(R,A,Y,P,E){P=R._methodHost||R;var z=P[E.methodName];if(z)return R=R._marshalArgs(E.args,A,Y),R===Hu?Hu:z.apply(P,R);E.dynamicFn||console.warn("method `"+E.methodName+"` not defined")};
vj6=function(R){for(var A="",Y=0;Y<R.length;Y++)A+=R[Y].literal||"";return A};
H6u=function(R){if(R=R.match(/([^\s]+?)\(([\s\S]*)\)/)){var A={methodName:R[1],static:!0,args:gjI};return R[2].trim()?njI(R[2].replace(/\\,/g,"&comma;").split(","),A):A}return null};
njI=function(R,A){A.args=R.map(function(Y){Y=JV6(Y);Y.literal||(A.static=!1);return Y},this);
return A};
JV6=function(R){R=R.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var A={name:R,value:"",literal:!1},Y=R[0];Y==="-"&&(Y=R[1]);Y>="0"&&Y<="9"&&(Y="#");switch(Y){case "'":case '"':A.value=R.slice(1,-1);A.literal=!0;break;case "#":A.value=Number(R),A.literal=!0}A.literal||(A.rootProperty=Vc(R),A.structured=NK(R),A.structured&&(A.wildcard=R.slice(-2)==".*",A.wildcard&&(A.name=R.slice(0,-2))));return A};
rV6=function(R,A,Y){R=TR(R,Y);R===void 0&&(R=A[Y]);return R};
Dmk=function(R,A,Y,P){P={indexSplices:P};rv&&!R._overrideLegacyUndefined&&(A.splices=P);R.notifyPath(Y+".splices",P);R.notifyPath(Y+".length",A.length);rv&&!R._overrideLegacyUndefined&&(P.indexSplices=[])};
DN=function(R,A,Y,P,E,z){Dmk(R,A,Y,[{index:P,addedCount:E,removed:z,object:A,type:"splice"}])};
UmJ=function(R){R=osk((R.body?R.body:R).textContent,R.baseURI);var A=document.createElement("style");A.textContent=R;return A};
XCl=function(R){R=R.trim().split(/\s+/);for(var A=[],Y=0;Y<R.length;Y++)A.push.apply(A,_.py($mI(R[Y])));return A};
$mI=function(R){var A=U_.import(R);if(!A)return console.warn("Could not find style data in module named",R),[];if(A._styles===void 0){R=[];R.push.apply(R,_.py(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A)));var Y=A.querySelector("template");Y&&R.push.apply(R,_.py(SRu(Y,A.assetpath)));A._styles=R}return A._styles};
SRu=function(R,A){if(!R._styles){for(var Y=[],P=R.content.querySelectorAll("style"),E=0;E<P.length;E++){var z=P[E],c=z.getAttribute("include");c&&Y.push.apply(Y,_.py(XCl(c).filter(function(M,N,y){return y.indexOf(M)===N})));
A&&(z.textContent=osk(z.textContent,A));Y.push(z)}R._styles=Y}return R._styles};
I7q=function(R){return(R=U_.import(R))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(R){var A=[];R=R.querySelectorAll("link[rel=import][type~=css]");for(var Y=0;Y<R.length;Y++){var P=R[Y];if(P.import){var E=P.import;if((P=P.hasAttribute("shady-unscoped"))&&!E._unscopedStyle){var z=UmJ(E);z.setAttribute("shady-unscoped","");E._unscopedStyle=z}else E._style||(E._style=UmJ(E));A.push(P?E._unscopedStyle:E._style)}}return A};
W88=function(R){R=R.trim().split(/\s+/);for(var A="",Y=0;Y<R.length;Y++)A+=K86(R[Y]);return A};
K86=function(R){var A=U_.import(R);if(A&&A._cssText===void 0){var Y=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(A),P=A.querySelector("template");P&&(Y+=jLk(P,A.assetpath));A._cssText=Y||null}A||console.warn("Could not find style data in module named",R);return A&&A._cssText||""};
jLk=function(R,A){var Y="";R=SRu(R,A);for(A=0;A<R.length;A++){var P=R[A];P.parentNode&&P.parentNode.removeChild(P);Y+=P.textContent}return Y};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(R){var A="";R=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R);for(var Y=0;Y<R.length;Y++)A+=R[Y].textContent;return A};
$c=function(R,A){return{index:R,removed:[],addedCount:A}};
f7J=function(R,A,Y,P){var E=0,z=0,c=0,M=0,N=Math.min(A-E,P-z);if(E==0&&z==0)a:{for(c=0;c<N;c++)if(R[c]!==Y[c])break a;c=N}if(A==R.length&&P==Y.length){M=R.length;for(var y=Y.length,m=0;m<N-c&&b63(R[--M],Y[--y]);)m++;M=m}E+=c;z+=c;A-=M;P-=M;if(A-E==0&&P-z==0)return[];if(E==A){for(A=$c(E,0);z<P;)A.removed.push(Y[z++]);return[A]}if(z==P)return[$c(E,A-E)];N=E;c=z;P=P-c+1;M=A-N+1;A=Array(P);for(y=0;y<P;y++)A[y]=Array(M),A[y][0]=y;for(y=0;y<M;y++)A[0][y]=y;for(y=1;y<P;y++)for(m=1;m<M;m++)if(R[N+m-1]===
Y[c+y-1])A[y][m]=A[y-1][m-1];else{var T=A[y-1][m]+1,Q=A[y][m-1]+1;A[y][m]=T<Q?T:Q}N=A.length-1;c=A[0].length-1;P=A[N][c];for(R=[];N>0||c>0;)N==0?(R.push(2),c--):c==0?(R.push(3),N--):(M=A[N-1][c-1],y=A[N-1][c],m=A[N][c-1],T=y<m?y<M?y:M:m<M?m:M,T==M?(M==P?R.push(0):(R.push(1),P=M),N--,c--):T==y?(R.push(3),N--,P=y):(R.push(2),c--,P=m));R.reverse();A=void 0;N=[];for(c=0;c<R.length;c++)switch(R[c]){case 0:A&&(N.push(A),A=void 0);E++;z++;break;case 1:A||(A=$c(E,0));A.addedCount++;E++;A.removed.push(Y[z]);
z++;break;case 2:A||(A=$c(E,0));A.addedCount++;E++;break;case 3:A||(A=$c(E,0)),A.removed.push(Y[z]),z++}A&&N.push(A);return N};
pCS=function(R,A){return f7J(R,R.length,A,A.length)};
b63=function(R,A){return R===A};
Bel=function(R){if(R instanceof F8P)return R.value;throw Error("Ed`"+R);};
a7u=function(R,A){for(var Y in A)Y===null?R.style.removeProperty(Y):R.style.setProperty(Y,A[Y])};
CD8=function(R,A){return(R=window.getComputedStyle(R).getPropertyValue(A))?R.trim():""};
GGJ=function(R){requestAnimationFrame(function(){h3k?h3k(R):(oj6||(oj6=new Promise(function(A){kGV=A}),document.readyState==="complete"?kGV():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&kGV()})),oj6.then(function(){R&&R()}))})};
wCk=function(R){Z6k=R&&R.shimcssproperties?!1:tvk||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
dmV=function(R){if(!(u23.indexOf(R)>-1)&&R!=="touchend"&&e38&&qR8&&L8q)return{passive:!0}};
Puk=function(R){for(var A=Rz6?["click"]:u23,Y=0,P;Y<A.length;Y++)P=A[Y],R?(ARk.length=0,document.addEventListener(P,Ykl,!0)):document.removeEventListener(P,Ykl,!0)};
Sy=function(R){var A=R.type;return u23.indexOf(A)>-1?A==="mousemove"?(A=R.buttons===void 0?1:R.buttons,R instanceof window.MouseEvent&&!EBk&&(A=zzk[R.which]||0),!!(A&1)):(R.button===void 0?0:R.button)===0:!1};
i7k=function(R){if(R.type==="click"){if(R.detail===0)return!0;var A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R);if(!A.nodeType||A.nodeType!==Node.ELEMENT_NODE)return!0;A=A.getBoundingClientRect();var Y=R.pageX;R=R.pageY;return!(Y>=A.left&&Y<=A.right&&R>=A.top&&R<=A.bottom)}return!1};
l0V=function(R,A,Y){R.movefn=A;R.upfn=Y;document.addEventListener("mousemove",A);document.addEventListener("mouseup",Y)};
I$=function(R){document.removeEventListener("mousemove",R.movefn);document.removeEventListener("mouseup",R.upfn);R.movefn=null;R.upfn=null};
xcS=function(R,A){for(var Y=document.elementFromPoint(R,A),P=Y;P&&P.shadowRoot&&!window.ShadyDOM;){var E=P;P=P.shadowRoot.elementFromPoint(R,A);if(E===P)break;P&&(Y=P)}return Y};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){var A=cRS(R);return A.length>0?A[0]:R.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){var A=R.type,Y=R.currentTarget.__polymerGestures;if(Y&&(Y=Y[A])){if(!R.__polymerGesturesHandled&&(R.__polymerGesturesHandled={},A.slice(0,5)==="touch")){var P=R.changedTouches[0];A==="touchstart"&&R.touches.length===1&&(O7I=P.identifier);if(O7I!==P.identifier)return;e38||(A==="touchstart"||A==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R)}P=
R.__polymerGesturesHandled;if(!P.skip){for(var E=0,z;E<Kg.length;E++)z=Kg[E],Y[z.name]&&!P[z.name]&&z.flow&&z.flow.start.indexOf(R.type)>-1&&z.reset&&z.reset();for(E=0;E<Kg.length;E++)z=Kg[E],Y[z.name]&&!P[z.name]&&(P[z.name]=!0,z[A](R))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){var A=R.changedTouches[0],Y=R.type;if(Y==="touchstart")MRu=A.clientX,s26=A.clientY,NAq=!1;else if(Y==="touchmove"&&!NAq){NAq=!0;Y="auto";for(var P=cRS(R),E=0,z;E<P.length;E++)if(z=P[E],z.__polymerGesturesTouchAction){Y=z.__polymerGesturesTouchAction;break}P=!1;E=Math.abs(MRu-A.clientX);A=Math.abs(s26-A.clientY);R.cancelable&&(Y==="none"?P=!0:Y==="pan-x"?P=A>E:Y==="pan-y"&&(P=E>A));P?R.preventDefault():
Wu("track")}};
by=function(R,A,Y){return jy[A]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,A,Y),!0):!1};
fg=function(R,A,Y){return jy[A]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R,A,Y),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R,A,Y){var P=jy[A],E=P.deps,z=P.name,c=R.__polymerGestures;c||(R.__polymerGestures=c={});for(var M=0,N,y;M<E.length;M++)N=E[M],Rz6&&u23.indexOf(N)>-1&&N!=="click"||((y=c[N])||(c[N]=y={_count:0}),y._count===0&&R.addEventListener(N,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,dmV(N)),y[z]=(y[z]||0)+1,y._count=(y._count||0)+1);R.addEventListener(A,Y);P.touchAction&&_.Bu(R,P.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R,A,Y){var P=jy[A],E=P.deps;P=P.name;var z=R.__polymerGestures;if(z)for(var c=0,M,N;c<E.length;c++)M=E[c],(N=z[M])&&N[P]&&(N[P]=(N[P]||1)-1,N._count=(N._count||1)-1,N._count===0&&R.removeEventListener(M,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,dmV(M)));R.removeEventListener(A,Y)};
VRk=function(R){Kg.push(R);for(var A=0;A<R.emits.length;A++)jy[R.emits[A]]=R};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R){for(var A=0,Y;A<Kg.length;A++){Y=Kg[A];for(var P=0,E;P<Y.emits.length;P++)if(E=Y.emits[P],E===R)return Y}return null};
_.Bu=function(R,A){e38&&R instanceof HTMLElement&&a$.run(function(){R.style.touchAction=A});
R.__polymerGesturesTouchAction=A};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(R,A,Y){A=new Event(A,{bubbles:!0,cancelable:!0,composed:!0});A.detail=Y;(0,_.gv)(R).dispatchEvent(A);A.defaultPrevented&&(R=Y.preventer||Y.sourceEvent)&&R.preventDefault&&R.preventDefault()};
Wu=function(R){R=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R);R.info&&(R.info.prevent=!0)};
Cg=function(R,A,Y,P){A&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,R,{x:Y.clientX,y:Y.clientY,sourceEvent:Y,preventer:P,prevent:function(E){return Wu(E)}})};
JRI=function(R,A,Y){if(R.prevent)return!1;if(R.started)return!0;Y=Math.abs(R.y-Y);return Math.abs(R.x-A)>=5||Y>=5};
yRI=function(R,A,Y){if(A){var P=R.moves[R.moves.length-2],E=R.moves[R.moves.length-1],z=E.x-R.x,c=E.y-R.y,M=0;if(P){var N=E.x-P.x;M=E.y-P.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(A,"track",{state:R.state,x:Y.clientX,y:Y.clientY,dx:z,dy:c,ddx:N,ddy:M,sourceEvent:Y,hover:function(){return xcS(Y.clientX,Y.clientY)}})}};
TAI=function(R,A,Y){var P=Math.abs(A.clientX-R.x),E=Math.abs(A.clientY-R.y),z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Y||A);!z||mc8[z.localName]&&z.hasAttribute("disabled")||!(isNaN(P)||isNaN(E)||P<=25&&E<=25||i7k(A))||R.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"tap",{x:A.clientX,y:A.clientY,sourceEvent:A,preventer:Y})};
Q2k=function(R,A,Y,P,E){var z;E&&(z=typeof Y==="object"&&Y!==null)&&(P=R.__dataTemp[A]);P=P!==Y&&(P===P||Y===Y);z&&P&&(R.__dataTemp[A]=Y);return P};
gB8=function(){if(hw&&!o$){if(!vBq){vBq=!0;var R=document.createElement("style");R.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(R)}return!0}return!1};
H7k=function(){return nBk};
rRk=function(R,A){nBk=R;Object.setPrototypeOf(R,A.prototype);new A;nBk=null};
DcI=function(R,A){for(var Y=0;Y<A.length;Y++){var P=A[Y];if(!!R!=!!P.__hideTemplateChildren__)if(P.nodeType===Node.TEXT_NODE)R?(P.__polymerTextContent__=P.textContent,P.textContent=""):P.textContent=P.__polymerTextContent__;else if(P.localName==="slot")if(R)P.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.gv)((0,_.gv)(P).parentNode).replaceChild(P.__polymerReplaced__,P);else{var E=P.__polymerReplaced__;E&&(0,_.gv)((0,_.gv)(E).parentNode).replaceChild(P,E)}else P.style&&(R?(P.__polymerDisplay__=
P.style.display,P.style.display="none"):P.style.display=P.__polymerDisplay__);P.__hideTemplateChildren__=R;P._showHideChildren&&P._showHideChildren(R)}};
Uck=function(R){return(R=R.__dataHost)&&R._methodHost||R};
Sku=function(R,A,Y){var P=Y.mutableData?$cJ:kc;GR.mixin&&(P=GR.mixin(P));var E=function(){return P.apply(this,arguments)||this};
_.H(E,P);E.prototype.__templatizeOptions=Y;E.prototype._bindTemplate(R);XbV(E,R,A,Y);return E};
b7b=function(R,A,Y,P){var E=Y.forwardHostProp;if(E&&A.hasHostProps){var z=R.localName=="template",c=A.templatizeTemplateClass;if(!c){if(z){var M=Y.mutableData?I0P:Khq;c=function(){return M.apply(this,arguments)||this};
_.H(c,M);c=A.templatizeTemplateClass=c}else{var N=R.constructor;c=function(){return N.apply(this,arguments)||this};
_.H(c,N);c=A.templatizeTemplateClass=c}var y=A.hostProps,m;for(m in y)c.prototype._addPropertyEffect("_host_"+m,c.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Wh3(E)}),c.prototype._createNotifyingProperty("_host_"+m);ZN&&P&&j23(A,Y,P)}R.__dataProto&&Object.assign(R.__data,R.__dataProto);if(z)rRk(R,c),R.__dataTemp={},R.__dataPending=null,R.__dataOld=null,R._enableProperties();else{Object.setPrototypeOf(R,c.prototype);A=A.hostProps;for(var T in A)T="_host_"+T,T in R&&(A=R[T],delete R[T],R.__data[T]=
A)}}};
Wh3=function(R){return function(A,Y,P){R.call(A.__templatizeOwner,Y.substring(6),P[Y])}};
XbV=function(R,A,Y,P){var E=Y.hostProps||{},z;for(z in P.instanceProps){delete E[z];var c=P.notifyInstanceProp;c&&R.prototype._addPropertyEffect(z,R.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:f0k(c)})}if(P.forwardHostProp&&A.__dataHost)for(var M in E)Y.hasHostProps||(Y.hasHostProps=!0),R.prototype._addPropertyEffect(M,R.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pbk()})};
f0k=function(R){return function(A,Y,P){R.call(A.__templatizeOwner,A,Y,P[Y])}};
pbk=function(){return function(R,A,Y){R.__dataHost._setPendingPropertyOrPath("_host_"+A,Y[A],!0,!0)}};
GR=function(R,A,Y){if(tw&&!Uck(R))throw Error("Kd");Y=Y||{};if(R.__templatizeOwner)throw Error("Ld");R.__templatizeOwner=A;var P=(A?A.constructor:kc)._parseTemplate(R),E=P.templatizeInstanceClass;E||(E=Sku(R,P,Y),P.templatizeInstanceClass=E);var z=Uck(R);b7b(R,P,Y,z);Y=function(){return E.apply(this,arguments)||this};
_.H(Y,E);Y.prototype._methodHost=z;Y.prototype.__dataHost=R;Y.prototype.__templatizeOwner=A;Y.prototype.__hostProps=P.hostProps;return Y};
j23=function(R,A,Y){Y=Y.constructor._properties;R=R.propertyEffects;A=A.instanceProps;for(var P in R)if(!(Y[P]||A&&A[P]))for(var E=R[P],z=0;z<E.length;z++){var c=E[z].info.part;if(!c.signature||!c.signature.static){console.warn("Property '"+P+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
Fhb=function(R,A){for(var Y;A;)if(Y=A.__dataHost?A:A.__templatizeInstance)if(Y.__dataHost!=R)A=Y.__dataHost;else return Y;else A=(0,_.gv)(A).parentNode;return null};
wv=function(R){return R.localName==="slot"};
BAP=function(){for(var R=uy.prototype,A="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),Y={},P=0;P<A.length;Y={method$jscomp$33:void 0},P++)Y.method$jscomp$33=A[P],R[Y.method$jscomp$33]=function(E){return function(){return this.node[E.method$jscomp$33].apply(this.node,arguments)}}(Y)};
a06=function(R,A){for(var Y={},P=0;P<A.length;Y={name$jscomp$448:void 0},P++)Y.name$jscomp$448=A[P],Object.defineProperty(R,Y.name$jscomp$448,{get:function(E){return function(){return this.node[E.name$jscomp$448]}}(Y),
configurable:!0})};
Cu6=function(){for(var R=uy.prototype,A=["textContent","innerHTML","className"],Y={},P=0;P<A.length;Y={name$jscomp$449:void 0},P++)Y.name$jscomp$449=A[P],Object.defineProperty(R,Y.name$jscomp$449,{get:function(E){return function(){return this.node[E.name$jscomp$449]}}(Y),
set:function(E){return function(z){this.node[E.name$jscomp$449]=z}}(Y),
configurable:!0})};
hzk=function(){ey=document.documentElement.getAttribute("dir");ey=document.documentElement.getAttribute("dir");for(var R=0;R<qK.length;R++){var A=qK[R];A.__autoDirOptOut||A.setAttribute("dir",ey)}};
Z7P=function(){Lg=!0;requestAnimationFrame(function(){Lg=!1;oB8(kxV);setTimeout(function(){for(var R=0,A=dv.length;R<A;R++)Gxu(dv.shift())})})};
oB8=function(R){for(;R.length;)Gxu(R.shift())};
Gxu=function(R){var A=R[0],Y=R[1];R=R[2];try{Y.apply(A,R)}catch(P){setTimeout(function(){throw P;})}};
_.tRS=function(R,A,Y){Lg||Z7P();kxV.push([R,A,Y])};
_.RK=function(R,A,Y){Lg||Z7P();dv.push([R,A,Y])};
ez6=function(R,A){A=A===void 0?!1:A;if(!wbl||!u18||!wbl.handlesDynamicScoping)return null;var Y=u18.ScopingShim;if(!Y)return null;var P=Y.scopeForNode(R),E=(0,_.gv)(R).getRootNode(),z=function(c){if((0,_.gv)(c).getRootNode()===E){var M=Array.from(wbl.nativeMethods.querySelectorAll.call(c,"*"));M.push(c);for(c=0;c<M.length;c++){var N=M[c];if((0,_.gv)(N).getRootNode()===E){var y=Y.currentScopeForNode(N);y!==P&&(y!==""&&Y.unscopeNode(N,y),Y.scopeNode(N,P))}}}};
z(R);return A?(A=new MutationObserver(function(c){for(var M=0;M<c.length;M++)for(var N=c[M],y=0;y<N.addedNodes.length;y++){var m=N.addedNodes[y];m.nodeType===Node.ELEMENT_NODE&&z(m)}}),A.observe(R,{childList:!0,
subtree:!0}),A):null};
qk8=function(){document.body.removeAttribute("unresolved")};
Y3k=function(R){var A=R=R.replace(Lhu,"").replace(dcu,""),Y=new R5k;Y.start=0;Y.end=A.length;for(var P=Y,E=0,z=A.length;E<z;E++)if(A[E]==="{"){P.rules||(P.rules=[]);var c=P,M=c.rules[c.rules.length-1]||null;P=new R5k;P.start=E+1;P.parent=c;P.previous=M;c.rules.push(P)}else A[E]==="}"&&(P.end=E+1,P=P.parent||Y);return A8P(Y,R)};
A8P=function(R,A){var Y=A.substring(R.start,R.end-1);R.parsedCssText=R.cssText=Y.trim();R.parent&&(Y=A.substring(R.previous?R.previous.end:R.parent.start,R.start-1),Y=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Y),Y=Y.replace(PKq," "),Y=Y.substring(Y.lastIndexOf(";")+1),Y=R.parsedSelector=R.selector=Y.trim(),R.atRule=Y.indexOf("@")===0,R.atRule?Y.indexOf("@media")===0?R.type=4:Y.match(Elk)&&(R.type=7,R.keyframesName=R.selector.split(PKq).pop()):Y.indexOf("--")===
0?R.type=1E3:R.type=1);if(Y=R.rules)for(var P=0,E=Y.length,z=void 0;P<E&&(z=Y[P]);P++)A8P(z,A);return R};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(R){return R.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var A=arguments[1],Y=6-A.length;Y--;)A="0"+A;return"\\"+A})};
z5q=function(R,A,Y){Y=Y===void 0?"":Y;var P="";if(R.cssText||R.rules){var E=R.rules;if(E&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(E))for(var z=0,c=E.length,M=void 0;z<c&&(M=E[z]);z++)P=z5q(M,A,P);else A?A=R.cssText:(A=R.cssText,A=A.replace(iFP,"").replace(lxk,""),A=A.replace(xAk,"").replace(c8l,"")),(P=A.trim())&&(P="  "+P+"\n")}P&&(R.selector&&(Y+=R.selector+" {\n"),Y+=P,R.selector&&(Y+="}\n\n"));return Y};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(R){R=R[0];return!!R&&!!R.selector&&R.selector.indexOf("--")===0};
MNb=function(R){if(R=OFk[R])R._applyShimCurrentVersion=R._applyShimCurrentVersion||0,R._applyShimValidatingVersion=R._applyShimValidatingVersion||0,R._applyShimNextVersion=(R._applyShimNextVersion||0)+1};
s78=function(R){return R._applyShimCurrentVersion===R._applyShimNextVersion};
VN3=function(R){R._applyShimValidatingVersion=R._applyShimNextVersion;R._validating||(R._validating=!0,N$6.then(function(){R._applyShimCurrentVersion=R._applyShimNextVersion;R._validating=!1}))};
y86=function(R){if(!R)return"";typeof R==="string"&&(R=Y3k(R));return z5q(R,J8k)};
mAl=function(R){!R.__cssRules&&R.textContent&&(R.__cssRules=Y3k(R.textContent));return R.__cssRules||null};
Q7q=function(R,A,Y,P){if(R){var E=!1,z=R.type;if(P&&z===4){var c=R.selector.match(T$S);c&&(window.matchMedia(c[1]).matches||(E=!0))}z===1?A(R):Y&&z===7?Y(R):z===1E3&&(E=!0);if((R=R.rules)&&!E)for(E=0,z=R.length,c=void 0;E<z&&(c=R[E]);E++)Q7q(c,A,Y,P)}};
vl8=function(R,A){var Y=R.indexOf("var(");if(Y===-1)return A(R,"","","");a:{var P=0;var E=Y+3;for(var z=R.length;E<z;E++)if(R[E]==="(")P++;else if(R[E]===")"&&--P===0)break a;E=-1}P=R.substring(Y+4,E);Y=R.substring(0,Y);R=vl8(R.substring(E+1),A);z=P.indexOf(",");if(z===-1)return A(Y,P.trim(),"",R);E=P.substring(0,z).trim();P=P.substring(z+1).trim();return A(Y,E,P,R)};
glV=function(R){if(A_!==void 0)return A_;if(R.__cssBuild===void 0){var A=R.getAttribute("css-build");if(A)R.__cssBuild=A;else{a:{A=R.localName==="template"?R.content.firstChild:R.firstChild;if(A instanceof Comment&&(A=A.textContent.trim().split(":"),A[0]==="css-build")){A=A[1];break a}A=""}if(A!==""){var Y=R.localName==="template"?R.content.firstChild:R.firstChild;Y.parentNode.removeChild(Y)}R.__cssBuild=A}}return R.__cssBuild||""};
HF3=function(R,A,Y,P){for(var E=A._noAccessors,z=Object.getOwnPropertyNames(A),c=0;c<z.length;c++){var M=z[c];if(!(M in P))if(E)R[M]=A[M];else{var N=Object.getOwnPropertyDescriptor(A,M);N&&(N.configurable=!0,Object.defineProperty(R,M,N))}}for(var y in nlI)A[y]&&(Y[y]=Y[y]||[],Y[y].push(A[y]))};
r8u=function(R,A,Y){A=A||[];for(var P=R.length-1;P>=0;P--){var E=R[P];E?Array.isArray(E)?r8u(E,A):A.indexOf(E)<0&&(!Y||Y.indexOf(E)<0)&&A.unshift(E):console.warn("behavior is null, check for missing or 404 import")}return A};
DAI=function(R,A){for(var Y in A){var P=R[Y],E=A[Y];R[Y]=!("value"in E)&&P&&"value"in P?Object.assign({value:P.value},E):E}};
Xsb=function(R,A,Y){var P={},E=function(){return A.apply(this,arguments)||this};
_.H(E,A);E._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(c)for(var N=0,y;N<c.length;N++)y=c[N],y.properties&&this.createProperties(y.properties),y.observers&&this.createObservers(y.observers,y.properties);R.properties&&this.createProperties(R.properties);R.observers&&this.createObservers(R.observers,R.properties);this._prepareTemplate()}else A._finalizeClass.call(this)};
E.prototype.created=function(){A.prototype.created.call(this);var N=P.created;if(N)for(var y=0;y<N.length;y++)N[y].call(this)};
E.prototype._registered=function(){var N=E.prototype;if(!N.hasOwnProperty("__hasRegisterFinished")){N.__hasRegisterFinished=!0;A.prototype._registered.call(this);hw&&M(N);N=Object.getPrototypeOf(this);var y=P.beforeRegister;if(y)for(var m=0;m<y.length;m++)y[m].call(N);if(y=P.registered)for(m=0;m<y.length;m++)y[m].call(N)}};
E.prototype._applyListeners=function(){A.prototype._applyListeners.call(this);var N=P.listeners;if(N)for(var y=0;y<N.length;y++){var m=N[y];if(m)for(var T in m)this._addMethodEventListenerToNode(this,T,m[T])}};
E.prototype._ensureAttributes=function(){var N=P.hostAttributes;if(N)for(var y=N.length-1;y>=0;y--){var m=N[y],T;for(T in m)this._ensureAttribute(T,m[T])}A.prototype._ensureAttributes.call(this)};
E.prototype.ready=function(){A.prototype.ready.call(this);var N=P.ready;if(N)for(var y=0;y<N.length;y++)N[y].call(this)};
E.prototype.attached=function(){A.prototype.attached.call(this);var N=P.attached;if(N)for(var y=0;y<N.length;y++)N[y].call(this)};
E.prototype.detached=function(){A.prototype.detached.call(this);var N=P.detached;if(N)for(var y=0;y<N.length;y++)N[y].call(this)};
E.prototype.attributeChanged=function(N,y,m){A.prototype.attributeChanged.call(this);var T=P.attributeChanged;if(T)for(var Q=0;Q<T.length;Q++)T[Q].call(this,N,y,m)};
_.Yh.Object.defineProperties(E,{properties:{configurable:!0,enumerable:!0,get:function(){var N={};if(c)for(var y=0;y<c.length;y++)DAI(N,c[y].properties);DAI(N,R.properties);return N}},
observers:{configurable:!0,enumerable:!0,get:function(){var N=[];if(c)for(var y=0,m;y<c.length;y++)m=c[y],m.observers&&(N=N.concat(m.observers));R.observers&&(N=N.concat(R.observers));return N}}});
if(Y){Array.isArray(Y)||(Y=[Y]);var z=A.prototype.behaviors;var c=r8u(Y,null,z);E.prototype.behaviors=z?z.concat(Y):c}var M=function(N){if(c)for(var y=c,m=0;m<y.length;m++)HF3(N,y[m],P,UAV);HF3(N,R,P,$Au)};
hw||M(E.prototype);E.generatedFrom=R;return E};
W5I=function(R){var A=typeof R!=="string"?R:{is:R,notifyObserversOnUndefined:!0};A.fastInit===void 0&&(A.fastInit=!0);return function(Y){if(!A.disableInheritanceCheck&&Object.getPrototypeOf(Y.prototype).constructor!==_.Pe)throw Error("Pd");var P=Y.prototype;P.is=A.is;FOu(P,"created",function(){this.hostElement=this;this.polymerController=this});
S3I(P,Y,A.fastInit);A.notifyObserversOnUndefined&&(P._overrideLegacyUndefined=!0);if(Ixq)for(var E=_.x(Object.getOwnPropertyNames(P)),z=E.next();!z.done;z=E.next()){z=z.value;var c=Object.getOwnPropertyDescriptor(P,z);c.enumerable===!1&&(c.enumerable=!0,Object.defineProperty(P,z,c))}if("template"in Y)var M=function(){return Y.template};
else A.template!==void 0&&(M=A.template);if(M!==void 0){var N;Object.defineProperty(P,"_template",{get:function(){N===void 0&&(N=M());return N},
set:function(y){N=y},
configurable:!0,enumerable:!0})}Polymer(P);Y[K5P]=P}};
j7k=function(R){R=R===void 0?{}:R;R.fastInit===void 0&&(R.fastInit=!0);return function(A){if(!R.disableInheritanceCheck&&Object.getPrototypeOf(A.prototype).constructor!==EP)throw Error("Qd");S3I(A.prototype,A,R.fastInit)}};
S3I=function(R,A,Y){Y=Y===void 0?!1:Y;bFk(A);Y?FOu(R,"created",function(){this.disableEnforceFastDefaultValuesCheck||fxV(A,this)}):FOu(R,"ready",function(){for(var P={},E=_.x(BcI(this.behaviors)),z=E.next();!z.done;z=E.next())z=z.value,z.properties&&Object.assign(P,ps8(this,z.properties));
Object.assign(P,ps8(this,this.properties));fxV(A,this);E=_.x(Object.keys(P));for(z=E.next();!z.done;z=E.next())z=z.value,this[z]=P[z]})};
fxV=function(R,A){if(Ixq){R=new R;for(var Y=_.x(Object.getOwnPropertyNames(R)),P=Y.next();!P.done;P=Y.next())P=P.value,A[P]=R[P];for(Y=A;Y&&Y!==Object.prototype;Y=Object.getPrototypeOf(Y)){P=_.x(Object.getOwnPropertyNames(Y));for(var E=P.next();!E.done;E=P.next())E=E.value,R.hasOwnProperty(E)||Object.defineProperty(R,E,F5k(A,E))}}else R.apply(A)};
F5k=function(R,A){return{get:function(){var Y=R[A];return Y instanceof Function?Y.bind(R):Y},
set:function(Y){R[A]=Y}}};
ps8=function(R,A){if(!A)return{};for(var Y={},P=_.x(Object.keys(A)),E=P.next();!E.done;E=P.next())if(E=E.value,!A[E].readOnly){var z=R[E];z!==void 0&&(Y[E]=z)}return Y};
bFk=function(R){var A=new R;R=R.prototype.properties||{};for(var Y=_.x(Object.keys(R)),P=Y.next();!P.done;P=Y.next())if(P=P.value,A.hasOwnProperty(P)){var E=R[P];typeof E==="function"&&(R[P]=E={type:E});A[P]!=null&&E.type===Object&&(E.type=B$J(A[P].constructor))}};
B$J=function(R){for(var A=_.x(axk),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,R===Y)return Y;return Object};
CKP=function(R){return function(A,Y){A.behaviors=A.behaviors||[];A.behaviors.push(R||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",A,Y).prototype:void 0));Object.defineProperty(A,Y,{get:function(){return this},
enumerable:!0,configurable:!0})}};
h5k=function(R){R=R===void 0?{}:R;return function(A,Y){A.properties=A.properties||{};R.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?R.type=B$J(Reflect.getMetadata("design:type",A,Y)):R.type=String);var P=R,E=A.properties[Y];A.properties[Y]=E?Object.assign({},E,P):P}};
ol6=function(R){return function(A,Y){A.listeners=A.listeners||{};A.listeners[R]=Y}};
ksb=function(){var R=_.Ge.apply(0,arguments);if(R.length===0)throw Error("Rd");return function(A,Y){A.observers=A.observers||[];A.observers.push(Y+"("+R.join(",")+")")}};
GsP=function(){var R=_.Ge.apply(0,arguments);return function(A,Y,P){var E=Object.getOwnPropertyDescriptor(A,Y).get,z="__compute__"+Y;Object.defineProperty(A,z,{value:E,enumerable:!0});A.properties=A.properties||{};E=A.properties[Y];E||(E={},A.properties[Y]=E);E.computed=z+"("+R.join(",")+")";P.get=void 0}};
_.zr=function(R,A,Y){_.KJ.call(this);this.JSC$11301_id_=null;this.usingListeners_=!1;this.JSC$11301_listener_=R;this.handler_=Y;this.JSC$11301_win_=A||window;this.callback_=(0,_.Wv)(this.JSC$11303_doAction_,this)};
iP=function(R){this.range_=R};
lP=function(R){this.range_=R};
OP=function(R,A,Y){_.KJ.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=R;this.scrollTimer_=new _.xh(50);this.JSC$11380_eventHandler_=new _.ce(this);this.scrollDelta_=new _.Cs;this.containerIsActuallyContent_=R.tagName==="BODY"||R.tagName==="HTML";this.containerBounds_=ZFu(R);this.containerIsActuallyContent_&&(R=_.$2(),this.containerBounds_.height=R.height,this.containerBounds_.width=R.width);this.margin_=A||0;if(A){if(A=this.containerBounds_.clone(),R=this.margin_){var P=
Math.min(R,A.height*.25);A.top+=P;A.height-=2*P;R=Math.min(R,A.width*.25);A.left+=R;A.width-=2*R}}else A=this.containerBounds_;this.scrollBounds_=A;Y||this.JSC$11380_eventHandler_.listen(_.oS(this.containerNode_),"mousemove",this.JSC$11382_onMouseMove);this.JSC$11380_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11382_onTick_)};
_.M4=function(R){this.mechanism=R};
sP=function(R,A){this.JSC$11478_key_=R;this.JSC$11478_value_=A};
wsk=function(R){if(R>=55296&&R<=57343||R>1114111)return"\ufffd";R in tNk&&(R=tNk[R]);var A="";R>65535&&(R-=65536,A+=String.fromCharCode(R>>>10&1023|55296),R=56320|R&1023);return A+=String.fromCharCode(R)};
e5k=function(R,A){return R<A?1:-1};
L5l=function(){return function(R){return R.charAt(1)==="#"?R.charAt(2)==="X"||R.charAt(2)==="x"?wsk(parseInt(R.substr(3),16)):wsk(parseInt(R.substr(2),10)):q33[R.slice(1,-1)]}};
AAl=function(R){return R.slice(1,R.length-1).trim().replace(dAV,function(A){return RMS[A]||" "})};
N4=function(R){return R===32||R===9};
Vz=function(R,A){return A<R.length?R.charCodeAt(A):-1};
YXk=function(R){for(;R;){if(R._lastLineBlank)return!0;var A=R.type;if(A==="list"||A==="item")R=R._lastChild;else break}return!1};
J_=function(R){if(P6l.test(R)){var A=1,Y=0,P=0;for(R[Y]=="|"&&Y++;Y<R.length;){switch(R[Y]){case "|":P=1;break;case " ":break;case "\t":break;default:P&&(P=0,A++)}Y++}return Eyq.test(R)?-A:A}return 0};
zMq=function(R){return R=="table"||R=="row"||R=="cell"};
iA6=function(){return new yz("document",[[1,1],[0,0]])};
luI=function(){};
mr=function(){var R={safe:!1};R=R||{};R.softbreak=R.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=R};
s88=function(R,A){var Y="";if(R)if(R=R.toLowerCase(),R===" "||xlk.test(R))Y="space";else if(cAP.test(R))Y="esc";else if(R.length==1){if(!A||OAk.test(R))Y=R}else Y=MSk.test(R)?R.replace("arrow",""):R=="multiply"?"*":R;return Y};
yAI=function(R,A){var Y=R.hasModifiers;if(A.key)Y=s88(A.key,Y);else if(A.detail&&A.detail.key)Y=s88(A.detail.key,Y);else{Y=A.keyIdentifier;var P="";Y&&(Y in N4V?P=N4V[Y]:VSV.test(Y)?(Y=parseInt(Y.replace("U+","0x"),16),P=String.fromCharCode(Y).toLowerCase()):P=Y.toLowerCase());(Y=P)||(Y=A.keyCode,P="",Number(Y)&&(Y>=65&&Y<=90?P=String.fromCharCode(32+Y):Y>=112&&Y<=123?P="f"+(Y-112+1):Y>=48&&Y<=57?P=String(Y-48):Y>=96&&Y<=105?P=String(Y-96):P=JA6[Y]),Y=P);Y=Y||""}return Y===R.key&&(!R.hasModifiers||
!!A.shiftKey===!!R.shiftKey&&!!A.ctrlKey===!!R.ctrlKey&&!!A.altKey===!!R.altKey&&!!A.metaKey===!!R.metaKey)};
T4q=function(R){return R.length===1?{combo:R,key:R,event:"keydown"}:R.split("+").reduce(function(A,Y){var P=Y.split(":");Y=P[0];P=P[1];Y in mlb?(A[mlb[Y]]=!0,A.hasModifiers=!0):(A.key=Y,A.event=P||"keydown");return A},{combo:R.split(":").shift()})};
Q8J=function(R){return R.trim().split(" ").map(function(A){return T4q(A)})};
vyk=function(R,A){if(R&&R.fn){var Y=R.fn;R.fn=function(){try{Y.apply(this,arguments)}catch(P){if(P instanceof Tr)console.warn("Argument '"+P.arg+"'"+(A?" for method '"+A+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw P;}}}return R};
gyI=function(){var R=_.Ge.apply(0,arguments);return R.length===0?function(A){return A}:R.length===1?R[0]:R.reduce(function(A,Y){return function(){return A(Y.apply(null,_.py(_.Ge.apply(0,arguments))))}})};
ny6=function(){var R=_.Ge.apply(0,arguments);return function(A){return function(Y,P){Y=A(Y,P);var E=function(){throw Error("Be");},z={getState:Y.getState,
dispatch:function(c){return E.apply(null,[c].concat(_.py(_.Ge.apply(1,arguments))))}};
P=R.map(function(c){return c(z)});
E=gyI.apply(null,_.py(P))(Y.dispatch);return Object.assign({},Y,{dispatch:E})}}};
DlP=function(R){Object.keys(R).forEach(function(A){var Y=R[A];if(typeof Y(void 0,{type:HAu})==="undefined")throw Error("Ce`"+A);if(typeof Y(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+rAS()})==="undefined")throw Error("De`"+A+"`"+HAu);})};
Qz=function(R){for(var A=Object.keys(R),Y={},P=0;P<A.length;P++){var E=A[P];typeof R[E]==="function"&&(Y[E]=R[E])}var z=Object.keys(Y);try{DlP(Y)}catch(M){var c=M}return function(M,N){M=M===void 0?{}:M;if(c)throw c;for(var y=!1,m={},T=0;T<z.length;T++){var Q=z[T],g=M[Q],r=(0,Y[Q])(g,N);if(typeof r==="undefined")throw M=N&&N.type,Error("Ee`"+(M?'"'+String(M)+'"':"(unknown type)")+"`"+Q);m[Q]=r;y=y||r!==g}return(y=y||z.length!==Object.keys(M).length)?m:M}};
Ulk=function(R,A,Y){function P(){if(m)throw Error("Fe");return M}
function E(g){if(typeof g!=="function")throw Error("Ge`"+typeof g);if(m)throw Error("He");var r=!0;y===N&&(y=N.slice());y.push(g);return function(){if(r){if(m)throw Error("Ie");r=!1;y===N&&(y=N.slice());var I=y.indexOf(g);y.splice(I,1);N=null}}}
function z(g){if(typeof g!=="object"||g===null)var r=!1;else{for(r=g;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);r=Object.getPrototypeOf(g)===r}if(!r)throw Error("Je`"+typeof g);if(typeof g.type==="undefined")throw Error("Ke");if(m)throw Error("Le");try{m=!0,M=c(M,g)}finally{m=!1}r=N=y;for(var I=0;I<r.length;I++)(0,r[I])();return g}
if(typeof A==="function"&&typeof Y==="function"||typeof Y==="function"&&typeof arguments[3]==="function")throw Error("Me");typeof A==="function"&&typeof Y==="undefined"&&(Y=A,A=void 0);if(typeof Y!=="undefined"){if(typeof Y!=="function")throw Error("Ne`"+typeof Y);return Y(Ulk)(R,A)}if(typeof R!=="function")throw Error("Oe`"+typeof R);var c=R,M=A,N=[],y=N,m=!1;z({type:HAu});var T={},Q=(T.dispatch=z,T.subscribe=E,T.getState=P,T.replaceReducer=function(g){if(typeof g!=="function")throw Error("Pe`"+
typeof g);c=g;z({type:$lk});return Q},T[X$q]=function(){var g={};
return g.subscribe=function(r){function I(){r.next&&r.next(P())}
if(typeof r!=="object"||r===null)throw new TypeError("Qe`"+typeof r);I();return{unsubscribe:E(I)}},g[X$q]=function(){return this},g},T);
return Q};
SX6=function(R){function A(){E&&(E=!1,R());z&&P()}
function Y(){requestAnimationFrame(A)}
function P(){var M=Date.now();if(E){if(M-c<2)return;z=!0}else E=!0,z=!1,setTimeout(Y,20);c=M}
var E=!1,z=!1,c=0;return P};
ve=function(R){return typeof R==="number"?R:parseFloat(R)||0};
Iuk=function(R){return _.Ge.apply(1,arguments).reduce(function(A,Y){return A+ve(R["border-"+Y+"-width"])},0)};
_.D=function(R,A){A=qL(ec(A));R.innerHTML=A};
j8q=function(R){var A=KL3;A||(A=WL8(),A=KL3=_.BO.transpose(A));A=A[R];return typeof A==="string"?A:_.gq(R)};
bAk=function(R){R=String(R).toLowerCase();var A=WL8()[R];return typeof A==="string"?A:_.nO(R)};
fuq=function(R){R=R.toLowerCase();R=WL8()[R];return typeof R==="string"?R:null};
WL8=function(){if(!p$P){for(var R=Object.assign({},FLP),A=_.x(B4P),Y=A.next();!Y.done;Y=A.next())Y=Y.value,R[Y.toLowerCase()]=Y;p$P=R}return p$P};
hMb=function(R,A){var Y=window.customElements;return Y&&Y.get(R)||auP[R]===!0?2:A.name==="HTMLUnknownElement"?1:A.name==="HTMLElement"&&C6P.test(R)?3:0};
Gbk=function(R,A){switch(A){case "innerHTML":return oyV(R)===1?2:null;case "textContent":return R=oyV(R),R===1||R===6?1:null;default:var Y,P;return(P=(Y=kbu[R.localName])==null?void 0:Y[A])!=null?P:null}};
oyV=function(R){var A=R.localName,Y=hMb(A,R.constructor);switch(Y){case 0:case 1:return ZAV(A,R);case 3:case 2:return 1;default:_.kZ(Y,"got an unknown element classification")}};
ZAV=function(R,A){var Y=Object.hasOwnProperty.call(tSq,R)?tSq[R]:null;return Y!==null?Y:Object.hasOwnProperty.call(w$S,R)&&A instanceof SVGElement?w$S[R]:null};
uQV=function(R,A){return A};
qXl=function(R){return(R=R.split(eM8,2))?{url:R[0],metadata:R[1]}:null};
dl3=function(R){var A=String(R.url).replace(LLq,encodeURIComponent);if(R=R.metadata){LLq.lastIndex=0;if(LLq.test(R))return null;A+=" "+R}return A};
Pd3=function(R){function A(y){var m=y.localName;if(!y.getAttribute("is")&&hMb(m,y.constructor)===2){var T;return(T=N)!=null?T:N=document.createElement("polyresinuncustomized")}(y=M[m])||(y=M[m]=document.createElement(m));return y}
var Y=R.reportHandler||void 0,P=R.safeTypesBridge||Ruu,E=/^$/;if(R=R.allowedIdentifierPrefixes){R=_.x(R);for(var z=R.next();!z.done;z=R.next())E=new RegExp(E.source+"|^"+_.Ank(z.value))}Y&&Y(!1,"initResin",null);var c=Y2l(E,P,Y),M={},N=null;return function(y,m,T){var Q=y.nodeType;if(Q!==Node.ELEMENT_NODE){if(Q===Node.TEXT_NODE){m=y.parentElement;T=!m;if(m&&m.nodeType===Node.ELEMENT_NODE){Q=m.localName;var g=hMb(Q,m.constructor);switch(g){case 0:case 1:m=ZAV(Q,m);T=m===1||m===6;break;case 3:case 2:T=
!0;break;default:_.kZ(g,"got an unknown element classification")}}if(T)return function(p){return""+P(p,"STRING",p)}}return function(p){if(!p&&p!==document.all)return p;
Y&&Y(!0,"Failed to sanitize "+(y.parentElement&&y.parentElement.nodeName)+" #text node to value "+p,y.parentElement);return He}}var r=y.localName;
Q=A(y);var I=null;switch(T){case "attribute":if(bAk(m)in Q)break;return function(p){return p};
case "property":if(m in Q){I=Gbk(Q,m);break}if((g=fuq(m))&&g in Q)break;return function(p){return p};
default:_.kZ(T,"got an unknown resin type, expected either 'property' or 'attribute'")}var b=T==="attribute"?m.toLowerCase():j8q(m);I||(I=igu(r,b,function(p){var h=y.getAttribute(p);return!h||/[\[\{]/.test(p)?null:h}));
return function(p){var h=rq,L=null;if(!p&&p!==document.all)return p;if(I!=null){var Z=c[I],w=Z.safeType;L=Z.safeReplacement;w&&(h=P(p,w,rq));h===rq&&(Z.filterString?(h=String(P(p,"STRING",p)),h=Z.filterString(r,b,h)):Z.filterRaw&&(h=Z.filterRaw(r,b,p,y)),h===L&&(h=rq))}h===rq&&(h=L||He,Y&&Y(!0,"Failed to sanitize attribute of <"+r+">: <"+r+" "+b+'="'+p+'">',y));return h}}};
Y2l=function(R,A,Y){return[,{filterRaw:function(P,E,z){return z},
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:EPk,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:EPk,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:He,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:zuJ,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(P,E,z){z=
String(z).toLowerCase();return cw3(P,E,z)?z:He},
safeReplacement:He,safeType:void 0},,{filterRaw:void 0,filterString:function(P,E,z){return R.test(z)?z:He},
safeReplacement:He,safeType:"CONSTANT"},{filterRaw:function(P,E,z,c){if(typeof z==="string")var M=(M=z.match(i$l))?M.map(qXl).filter(Boolean):[];else if(Array.isArray(z))M=z;else return EPk;var N=M;M=[];var y=[],m={};if(Array.isArray(N))for(var T=0,Q=N.length;T<Q;++T){var g=N[T],r=g&&g.url;if(r){var I=A(r,"URL",m);if(I){var b=I!==m;(b?M:y).push({url:b?I:r,metadata:g.metadata})}}}else y.push(N);N=y.length?JSON.stringify(y):null;y=rq;if(M.length){if(!Array.isArray(M))throw Error();y=M.map(dl3).filter(Boolean).join(" , ")||
rq}N&&Y&&Y(!0,"Failed to sanitize attribute value of <"+P+">: <"+P+" "+E+'="'+z+'">: '+N,c);return y===rq?EPk:y},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
lw3=function(R){var A=Pd3(R);return function(Y,P,E,z){return z||z===document.all?A(Y,P,E)(z):z}};
DZ=function(R,A){function Y(){function E(M,N,y){for(N=Reflect.getMetadata("parameters",M)||[];N.length<=y;)N.push(null);N[y]=N[y]||[];N[y].push(c);Reflect.defineMetadata(N,M);return M}
var z=_.Ge.apply(0,arguments);if(this instanceof Y)return P.apply(this,z),this;var c=new (Function.prototype.bind.apply(Y,[null].concat(_.py(z))));E.annotation=c;return E}
var P=xdV(A);Y.prototype.toString=function(){return"@"+R};
return Y.annotationCls=Y};
xdV=function(R){return function(){var A=_.Ge.apply(0,arguments),Y=this;R.forEach(function(P,E){E=A[E];if(Array.isArray(P))Y[P[0]]=E&&E!==void 0?E:P[1];else for(var z in P)Y[z]=E&&E[z]!==void 0?E[z]:P[z]})}};
cnq=function(R){return R!==void 0&&R!==null};
UP=function(R){if(typeof R==="string")return R;if(R===void 0||R===null)return""+R;if(R.overriddenName)return R.overriddenName;if(R.name)return R.name;R=R.toString();var A=R.indexOf("\n");return A===-1?R:R.substring(0,A)};
O$b=function(R){R.__forward_ref__=O$b;R.toString=function(){return UP(this())};
return R};
$h=function(R){return typeof R==="function"&&R.hasOwnProperty("__forward_ref__")&&R.__forward_ref__===O$b?R():R};
ME6=function(R){return R?R.map(function(A){return new (Function.prototype.bind.apply(A.type.annotationCls,[null].concat(_.py(A.args?A.args:[]))))}):[]};
sFk=function(R){for(var A=[],Y=0;Y<R.length;++Y){if(A.indexOf(R[Y])>-1){A.push(R[Y]);break}A.push(R[Y])}return A};
NbS=function(R){return R.length>1?" ("+sFk(R.slice().reverse()).map(function(A){return UP(A.token)}).join(" -> ")+")":""};
Jnl=function(R,A,Y,P){if(P){var E=Error("Xe``"+(P instanceof Error?P.message:P));E.ngOriginalError=P}else E=Error();E.addKey=VEq;E.keys=[A];E.injectors=[R];E.constructResolvingMessage=Y;E.message=E.constructResolvingMessage();E.ngOriginalError=P;return E};
VEq=function(R,A){this.injectors.push(R);this.keys.push(A);this.message=this.constructResolvingMessage()};
yn8=function(R,A){return Jnl(R,A,function(){return"No provider for "+UP(this.keys[0].token)+"!"+NbS(this.keys)})};
md6=function(R,A){return Jnl(R,A,function(){return"Cannot instantiate cyclic dependency!"+NbS(this.keys)})};
Tbb=function(R,A,Y){return Jnl(R,Y,function(){var P=UP(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+P+"!"+NbS(this.keys)+"."},A)};
QF6=function(R,A){for(var Y=[],P=0,E=A.length;P<E;P++){var z=A[P];z&&z.length!=0?Y.push(z.map(UP).join(" ")):Y.push("?")}return Error("af`"+UP(R)+"`"+Y.join(", ")+"`"+UP(R))};
Udk=function(R){var A=void 0,Y=void 0;if(R&&R.useClass!==void 0){A=R.useClass;var P=$h(R.useClass);var E=vPk.factory(P);P=gPJ(P)}else R&&R.useExisting!==void 0?(E=function(z){return z},P=[nPP(X9.get($h(R.useExisting)))]):R&&R.useFactory!==void 0?(E=R.useFactory,P=H$V(R.useFactory,R.deps)):(Y=R.useValue,E=function(){return R.useValue},P=rn6);
return new Ddl(E,P,A,Y)};
Xmu=function(R){return new $dq(X9.get($h(R.provide)),[Udk(R)],R.multi)};
IwJ=function(R){R=S2S(R,[]).map(Xmu);for(var A=new Map,Y=0;Y<R.length;Y++){var P=R[Y],E=A.get(P.key.id);if(E){if(P.multiProvider!==E.multiProvider)throw Error("cf`"+E+"`"+P);if(P.multiProvider)for(var z=0;z<P.resolvedFactories.length;z++)E.resolvedFactories.push(P.resolvedFactories[z]);else A.set(P.key.id,P)}else E=void 0,P.multiProvider?E=new $dq(P.key,P.resolvedFactories.slice(),P.multiProvider):E=P,A.set(P.key.id,E)}return Array.from(A.values())};
S2S=function(R,A){R.forEach(function(Y){if(Y instanceof KsS)A.push({provide:Y,useClass:Y});else if(Y&&typeof Y=="object"&&Y.provide!==void 0)A.push(Y);else if(Y instanceof Array)S2S(Y,A);else throw Error("$e`"+Y);});
return A};
H$V=function(R,A){if(A){var Y=A.map(function(P){return[P]});
return A.map(function(P){return Wsl(R,P,Y)})}return gPJ(R)};
gPJ=function(R){var A=vPk.parameters(R);if(!A)return[];if(A.some(function(Y){return Y==null}))throw QF6(R,A);
return A.map(function(Y){return Wsl(R,Y,A)})};
Wsl=function(R,A,Y){var P=null,E=!1;if(!Array.isArray(A))return A instanceof jFk?b$k(A.token,E,null):b$k(A,E,null);for(var z=null,c=0;c<A.length;++c){var M=A[c];if(M instanceof KsS)P=M;else if(M instanceof jFk)P=M.token;else if(M instanceof fwk)E=!0;else if(M instanceof pmV||M instanceof FsV)z=M}P=$h(P);if(P!=null)return b$k(P,E,z);throw QF6(R,Y);};
b$k=function(R,A,Y){return new BbV(X9.get($h(R)),A,Y)};
awl=function(R,A){for(var Y=Array(R.providers.length),P=0;P<R.providers.length;++P){var E=P;if(P<0||P>=R.providers.length)throw Error("bf`"+P);Y[E]=A(R.providers[P])}return Y};
Cdk=function(R){return typeof R==="function"&&vPk.parameters(R).every(function(A){return!!A})};
kpb=function(R){var A=hu6;oPk.get(R)||oPk.set(R,new A);return oPk.get(R)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(R)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(R)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R,A){var Y,P;if(R.contains(A))return!0;R=_.S0(R).querySelectorAll("content,slot");for(Y=0;Y<R.length;++Y){var E=_.S0(R[Y]).getDistributedNodes();for(P=0;P<E.length;++P)if(E[P].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(E[P],A))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R){R.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(R)&&R.preventDefault();R.targetTouches&&(R=R.targetTouches[0],GpS=R.pageX,Z$k=R.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 R=0,A=IK.length;R<A;R++)document.addEventListener(IK[R],_._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 R=0,A=IK.length;R<A;R++)document.removeEventListener(IK[R],_._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(R){var A=_.S0(R).rootTarget;R.type!=="touchmove"&&tEJ!==A&&(tEJ=A,wm8=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.S0(R).path));if(!wm8.length)return!0;if(R.type==="touchstart")return!1;R=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(R);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(wm8,R.deltaX,R.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R){for(var A=[],Y=R.indexOf(uOq),P=0;P<=Y;P++)if(R[P].nodeType===Node.ELEMENT_NODE){var E=R[P],z=E.style;z.overflow!=="scroll"&&z.overflow!=="auto"&&(z=window.getComputedStyle(E));z.overflow!=="scroll"&&z.overflow!=="auto"||A.push(E)}return A};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R,A,Y){if(A||Y)for(var P=Math.abs(Y)>=Math.abs(A),E=0;E<R.length;E++){var z=R[E];if(P?Y<0?z.scrollTop>0:z.scrollTop<z.scrollHeight-z.clientHeight:A<0?z.scrollLeft>0:z.scrollLeft<z.scrollWidth-z.clientWidth)return z}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(R){var A={deltaX:R.deltaX,deltaY:R.deltaY};"deltaX"in R||("wheelDeltaX"in R&&"wheelDeltaY"in R?(A.deltaX=-R.wheelDeltaX,A.deltaY=-R.wheelDeltaY):"wheelDelta"in R?(A.deltaX=0,A.deltaY=-R.wheelDelta):"axis"in R?(A.deltaX=R.axis===1?R.detail:0,A.deltaY=R.axis===2?R.detail:0):R.targetTouches&&(R=R.targetTouches[0],A.deltaX=GpS-R.pageX,A.deltaY=Z$k-R.pageY));return A};
euq=function(R){this.element=R;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
LsV=function(R){this.element=R;this.color=window.getComputedStyle(R).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");_.S0(this.waveContainer).appendChild(this.wave);q2k(this)};
KO=function(R,A){for(var Y in R)if(Y.toLowerCase()===A.toLowerCase())return R[Y]};
ddl=function(R,A){for(var Y in R)if(Y.toLowerCase()===A.toLowerCase()){delete R[Y];break}};
AHl=function(R){R=_.BO.clone(R);for(var A=0;A<R$k.length;++A){var Y=R$k[A],P=KO(R,Y);P&&(R["X-Goog-Upload-Header-"+Y]=P,ddl(R,Y))}return R};
Y0P=function(R){R=_.BO.clone(R);ddl(R,"X-Goog-Upload-Status")};
Eku=function(R){return PUk.some(function(A){return A.test(R)})};
x26=function(R,A){var Y;var P=(Y=R.formContent)==null?void 0:Y.locale;Y=P==null?void 0:P.split("-")[0];P=P&&z$l.includes(P)?P:Y&&z$l.includes(Y)?Y:void 0;P=(P!=null?P:"en").replaceAll("-","_").toLowerCase();var E;R=((E=R.initializationData)==null?0:E.useNightlyRelease)?"nightly":"live";var z;return(A==null?0:(z=A.getEnableAlohaBinarySplit)==null?0:z.call(A))?_.Jr(i9J,R):_.Jr(lG6,R,P)};
MYk=function(R,A,Y,P){if(cHk&&O9k===A)return cHk;O9k=A;var E=x26(R,P);return cHk=A.feedbackV2GlobalObject?Promise.resolve(A.feedbackV2GlobalObject):new Promise(function(z,c){var M=_.De("SCRIPT");_.ET(M,E);M.onload=function(){A.feedbackV2GlobalObject?z(A.feedbackV2GlobalObject):c(Error("ff"))};
M.onerror=function(){c(Error("gf`"+E.toString()))};
Y.body.appendChild(M)})};
VYJ=function(R,A,Y,P){if(sck&&NxJ===A)return sck;NxJ=A;var E=x26(R,P);return sck=A.feedbackV2GlobalObject?Promise.resolve(A.feedbackV2GlobalObject):new Promise(function(z,c){var M=_.De("SCRIPT");_.ET(M,E);M.onload=function(){A.feedbackV2GlobalObject?z(A.feedbackV2GlobalObject):c(Error("ff"))};
M.onerror=function(){c(Error("gf`"+E.toString()))};
Y.body.appendChild(M)})};
JH8=function(R,A,Y,P,E){E=E===void 0?!0:E;var z,c,M,N,y;return _.O(function(m){switch(m.nextAddress){case 1:return z=Date.now(),m.yield(MYk(R,Y,P,A),2);case 2:c=m.yieldResult;if(!(E||((N=R.initializationData)==null?0:N.useNightlyRelease)||((y=R.initializationData)==null?0:y.isLocalServer))){M=c.initializeFeedbackClient(R,z,A);m.jumpTo(3);break}return m.yield(c.initializeFeedbackClientAsync(R,z,A),4);case 4:M=m.yieldResult;case 3:return M.initiateAloha(),m.return(M)}})};
yH8=function(R,A,Y,P){var E,z,c;return _.O(function(M){if(M.nextAddress==1)return E=Date.now(),M.yield(VYJ(R,Y,P.document,A),2);if(M.nextAddress!=3)return z=M.yieldResult,M.yield(z.initializeFeedbackClientAsync(R,E,A,P),3);c=M.yieldResult;c.initiateAloha();return M.return(c)})};
m2b=function(R,A,Y){var P=!0;P=P===void 0?!0:P;var E,z,c,M,N,y,m,T,Q,g;return _.O(function(r){E=Y||_.P3;if((z=A)==null?0:(M=(c=z).getEnableAlohaBinarySplit)==null?0:M.call(c)){N=E;if(N.isFormOpened)throw y=Error("hf"),y.name="DuplicateFormError",y;N.isFormOpened=!0;R.callbacks=R.callbacks||{};m=R.callbacks.onClose||function(){};
R.callbacks.onClose=function(I){N.isFormOpened=!1;m(I)};
try{return r.return(yH8(R,A,N,E))}catch(I){throw N.isFormOpened=!1,I;}}else{T=E;if(T.isFormOpened)throw Q=Error("hf"),Q.name="DuplicateFormError",Q;T.isFormOpened=!0;R.callbacks=R.callbacks||{};g=R.callbacks.onClose||function(){};
R.callbacks.onClose=function(I){T.isFormOpened=!1;g(I)};
try{return r.return(JH8(R,A,T,E.document,P))}catch(I){throw T.isFormOpened=!1,I;}}_.XH(r)})};
nk8=function(R,A){return _.O(function(Y){return Y.return(new Promise(function(P){var E=Txu(A!=null?A:"")+"/aloha_form_properties?productId="+R;QcS(E,function(z){z=z.target;var c=null;try{var M=JSON,N=M.stringify;if(z.JSC$9789_xhr_){var y=z.JSC$9789_xhr_.responseText;y.indexOf(")]}'\n")==0&&(y=y.substring(5));var m=(0,_.We)(y)}else m=void 0;c=hbk(vk6,N.call(M,m))}catch(T){N=new vk6,m=gkk(),m=_.j0(m,13,!1),m=_.j0(m,14,!0),m=_.j0(m,15,!0),m=_.j0(m,20,!1),c=_.DE(N,1,m)}P(c)},"GET","",{},2E3,!0)}))})};
Txu=function(R){return Eku(R)?R:"https://www.google.com/tools/feedback"};
U2b=function(R){R=R.match(new RegExp(H9k,"gi"))||[];R=_.x(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;a:{var Y=_.x(rHk);for(var P=Y.next();!P.done;P=Y.next())if(P.value.test(A)){Y=!1;break a}Y=!0}if(!Y)a:{Y=_.x(D23);for(P=Y.next();!P.done;P=Y.next())if(P.value.test(A)){Y=!0;break a}Y=!1}if(Y)return!0}return!1};
$2k=function(R,A){var Y={},P=Object.keys(R);P=_.x(P);for(var E=P.next();!E.done;E=P.next())E=E.value,Y[E]=A(E,R[E]);return Y};
XPk=function(R){switch(R){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"}};
IG6=function(R){if(window.crypto&&window.crypto.getRandomValues)try{var A=Array(R),Y=new Uint8Array(R);window.crypto.getRandomValues(Y);for(var P=0;P<A.length;P++)A[P]=Y[P];return A}catch(z){}A=Array(R);for(Y=0;Y<R;Y++){P=Date.now();for(var E=0;E<P%23;E++)A[Y]=Math.random();A[Y]=Math.floor(Math.random()*256)}if(S06)for(Y=1,P=0;P<S06.length;P++)A[Y%R]^=A[(Y-1)%R]/4^S06.charCodeAt(P),Y++;return A};
bP=function(R){R=IG6(R);for(var A=[],Y=0;Y<R.length;Y++)A.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(R[Y]&63));return A.join("")};
Kw6=function(){var R=_.P3.ytLoggingDocDocumentNonce_;R||(R=bP(16),_.PG("ytLoggingDocDocumentNonce_",R));return R};
jck=function(R){R&&_.Wj("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:WwI,clientScreenNonce:R})};
b9q=function(R){return _.a1("client-screen-nonce-store",{})[R===void 0?0:R]};
fGl=function(R,A){A=A===void 0?0:A;var Y=_.a1("client-screen-nonce-store");Y||(Y={},_.BD("client-screen-nonce-store",Y));Y[A]=R};
pPk=function(R){R=R===void 0?0:R;return R===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+R};
FwP=function(R){return _.a1(pPk(R===void 0?0:R))};
_.pO=function(R){return(R=FwP(R===void 0?0:R))?new fO({veType:R,youtubeData:void 0,jspbYoutubeData:void 0}):null};
BxP=function(){var R=_.a1("csn-to-ctt-auth-info");R||(R={},_.BD("csn-to-ctt-auth-info",R));return R};
aGI=function(){return Object.values(_.a1("client-screen-nonce-store",{})).filter(function(R){return R!==void 0})};
_.F9=function(R){R=b9q(R===void 0?0:R);if(!R&&!_.CQ("USE_CSN_FALLBACK",!0))return null;R||(R="UNDEFINED_CSN");return R?R:null};
h$l=function(R){for(var A=_.x(Object.values(CUq)),Y=A.next();!Y.done;Y=A.next())if(_.F9(Y.value)===R)return!0;return!1};
okq=function(R,A,Y){var P=BxP();(Y=_.F9(Y))&&delete P[Y];A&&(P[R]=A)};
Be=function(R){return BxP()[R]};
_.aK=function(R,A,Y,P){Y=Y===void 0?0:Y;if(R!==b9q(Y)||A!==_.a1(pPk(Y)))if(okq(R,P,Y),fGl(R,Y),_.BD(pPk(Y),A),A=function(){setTimeout(function(){jck(R)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(A)}catch(E){A()}else A()};
kf6=function(R,A){A=A===void 0?"":A;var Y=[],P;for(P in R)if(R.hasOwnProperty(P)){var E=A!==""?A+"."+P:P;typeof R[P]==="object"?Y.push.apply(Y,_.py(kf6(R[P],E))):Y.push([E,R[P]])}Y.sort();return Y};
_.h_=function(R){var A=_.Ge.apply(1,arguments);if(!CO(R)||A.some(function(P){return!CO(P)}))throw Error("jf");
A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())GfP(R,Y.value)};
GfP=function(R,A){for(var Y in A)if(CO(A[Y])){if(Y in R&&!CO(R[Y]))throw Error("kf");Y in R||(R[Y]={});GfP(R[Y],A[Y])}else if(Z9l(A[Y])){if(Y in R&&!Z9l(R[Y]))throw Error("lf");Y in R||(R[Y]=[]);tYk(R[Y],A[Y])}else R[Y]=A[Y];return R};
tYk=function(R,A){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,CO(Y)?R.push(GfP({},Y)):Z9l(Y)?R.push(tYk([],Y)):R.push(Y);return R};
CO=function(R){return typeof R==="object"&&!Array.isArray(R)};
Z9l=function(R){return typeof R==="object"&&Array.isArray(R)};
utq=function(R){for(var A=_.x(Object.entries(wPI)),Y=A.next();!Y.done;Y=A.next())if(Y=_.x(Y.value),Y.next(),Y=Y.next().value,Y==="SLI_STATUS_"+R)return Y;return"SLI_STATUS_UNKNOWN"};
_.oK=function(R,A,Y,P){return e$J(R,A,function(){return new _.q0S(R,A,Y,P)})};
_.Lw3=function(){return _.oK("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
d2V=function(){return _.oK("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
kh=function(){return _.oK("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
RVl=function(){return _.oK("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
ASJ=function(){return _.oK("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
YuV=function(){return _.oK("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
zVb=function(R){R&&(R.dataset?R.dataset[PX6()]="true":_.ie([_.Op(EI6)],R,"data-loaded","true".toString()))};
iUu=function(R){return R?R.dataset?R.dataset[PX6()]:R.getAttribute("data-loaded"):null};
PX6=function(){return lV6.loaded||(lV6.loaded="loaded".replace(/\-([a-z])/g,function(R,A){return A.toUpperCase()}))};
_.Gr=function(R,A,Y){xBV(R,A,Y===void 0?null:Y)};
_.OUV=function(R,A){R&&A&&(R=""+_.tk(A),(R=cSq[R])&&_.Ywb(R))};
xBV=function(R,A,Y){Y=Y===void 0?null:Y;var P=_.MJb(typeof R==="string"?R:R.toString()),E=document.getElementById(P),z=E&&iUu(E),c=E&&!z;z?A&&A():(A&&(z=_.Oa(P,A),A=""+_.tk(A),cSq[A]=z),c||(E=sy8(R,P,function(){iUu(E)||(zVb(E),_.Phk(P),_.JN(function(){_.zck(P)},0))},Y)))};
sy8=function(R,A,Y,P){P=P===void 0?null:P;var E=_.De("SCRIPT");E.id=A;E.onload=function(){Y&&setTimeout(Y,0)};
E.onreadystatechange=function(){switch(E.readyState){case "loaded":case "complete":E.onload()}};
P&&E.setAttribute("nonce",P);_.ET(E,typeof R==="string"?_.bt(R):R);R=document.getElementsByTagName("head")[0]||document.body;R.insertBefore(E,R.firstChild);return E};
_.MJb=function(R){var A=document.createElement("a");wZ(A,R);return"js-"+ZZ(A.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
Nkl=function(R){var A=_.a1("INNERTUBE_HOST_OVERRIDE");A&&(R=String(A)+String(_.t_(R)));return R};
VJb=function(R){var A={};_.v("json_condensed_response")&&(A.prettyPrint="false");return R=rgP(R,A)};
_.wq=function(R){return PU(R)?"same-origin":"include"};
_.uP=function(R){return PU(R)?"same-origin":"cors"};
e0=function(R,A,Y){Y=Y===void 0?{}:Y;R={method:A===void 0?"POST":A,mode:_.uP(R),credentials:_.wq(R)};A={};for(var P=_.x(Object.keys(Y)),E=P.next();!E.done;E=P.next())E=E.value,Y[E]&&(A[E]=Y[E]);Object.keys(A).length>0&&(R.headers=A);return R};
_.q4=function(R,A){A=A===void 0?{}:A;return"service:"+R+"/"+Object.keys(A).sort().map(function(Y){return Y+":"+A[Y]}).join("/")};
JS8=function(R){var A,Y,P,E;R=(A=_.n(R,_.LO))==null?void 0:(Y=A.watchEndpointSupportedOnesieConfig)==null?void 0:(P=Y.html5PlaybackOnesieConfig)==null?void 0:(E=P.commonConfig)==null?void 0:E.url;if(!R)return[];A=new _.dq(R);return A.JSC$10024_domain_?["https://"+A.JSC$10024_domain_+"/generate_204"]:[]};
_.Tk6=function(){return ySV()||KcV()||mBS&&aW("version/")?!0:_.a1("EOM_VISITOR_DATA")?!1:!0};
QyP=function(R){var A=R.docid||R.video_id||R.videoId||R.id;if(A)return A;A=R.raw_player_response;A||(R=R.player_response)&&(A=JSON.parse(R));return A&&A.videoDetails&&A.videoDetails.videoId||null};
vIS=function(R){return R.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
Ro=function(R){return!isNaN(Number(R))&&!_.c3(R)};
_.Yo=function(R,A,Y,P){P=P===void 0?!0:P;var E=_.a1("VALID_SESSION_TEMPDATA_DOMAINS",[]),z=_.AN(window.location.href);z&&E.push(z);z=_.AN(R);if(_.B3(E,z)||!z&&_.iJ(R,"/"))if(E=document.createElement("a"),wZ(E,R),R=E.href)if(R=_.t_(R),R=_.Ag(R))P&&!A.csn&&(A.itct||A.ved)&&(A=Object.assign({csn:_.F9()},A)),Y?(Y=parseInt(Y,10),isFinite(Y)&&Y>0&&gIq(R,A,Y)):gIq(R,A)};
HUk=function(R){var A=_.a1("VALID_SESSION_TEMPDATA_DOMAINS",[]),Y=_.AN(window.location.href);Y&&A.push(Y);Y=_.AN(R);if(!(_.B3(A,Y)||!Y&&_.iJ(R,"/")))return null;R=_.t_(R);(R=_.Ag(R))?(R=nIP(R),R=(R=_.HU.get(R,void 0)||null)?_.eO(R):{}):R=null;return R};
gIq=function(R,A,Y){R=nIP(R);A=A?_.vU(A):"";Y=Y||5;_.Tk6()&&_.rr(R,A,Y)};
nIP=function(R){for(var A=_.x(rSV),Y=A.next();!Y.done;Y=A.next())R=_.Pk(R,Y.value);return"ST-"+ZZ(R).toString(36)};
_.DBb=function(R){if(R.requestFullscreen)R=R.requestFullscreen(void 0);else if(R.webkitRequestFullscreen)R=R.webkitRequestFullscreen();else if(R.mozRequestFullScreen)R=R.mozRequestFullScreen();else if(R.msRequestFullscreen)R=R.msRequestFullscreen();else if(R.webkitEnterFullscreen)R=R.webkitEnterFullscreen();else return Promise.reject(Error("uf"));return R instanceof Promise?R:Promise.resolve()};
_.zi=function(R){var A;_.kjk(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.EC()==R&&(A=document):A=R;if(A&&(R=_.kjk(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],A))){R.call(A)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.EC=function(){var R=R===void 0?!1:R;var A=_.kjk(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(R)for(;A&&A.shadowRoot;)A=A.shadowRoot.fullscreenElement;return A?A:null};
_.iE=function(R,A){A=A===void 0?!0:A;R.addEventListener("wheel",UBS);R.overscrollConfig={cooldown:A}};
_.lE=function(R){R.overscrollConfig=void 0;R.removeEventListener("wheel",UBS)};
UBS=function(R){var A=R.deltaY,Y=R.target,P=null;if(window.Polymer&&window.Polymer.Element){if(Y=R.path||R.composedPath&&R.composedPath()){Y=_.x(Y);for(var E=Y.next();!E.done&&(E=E.value,!$Bk(E,A));E=Y.next())if(E.overscrollConfig){P=E;break}}}else for(;Y&&!$Bk(Y,A);){if(Y.overscrollConfig){P=Y;break}Y=Y.parentElement}P&&(A=P.overscrollConfig,A.cooldown?(P=R.deltaY,Y=A.lastDeltaY||0,A.lastDeltaY=P,E=A.lastStopped||0,Y&&E&&Y>0==P>0?Math.abs(Y)>=Math.abs(P)?(P=E+1200,Y=!1):(P=E+600,Y=!0):(P=Date.now()+
600,Y=!0),P>Date.now()&&(R.preventDefault(),Y&&(A.lastStopped=Date.now()))):R.preventDefault())};
$Bk=function(R,A){return A<0&&R.scrollTop>0||A>0&&R.scrollTop<R.scrollHeight-R.clientHeight-1?(R=getComputedStyle(R).overflowY,R=="auto"||R=="scroll"):!1};
_.xo=function(R,A,Y,P){P||(P={bubbles:!0,cancelable:!1,composed:!0});Y!==null&&Y!==void 0&&(P.detail=Y);var E=new CustomEvent(A,P);_.v("untrack_fire_custom_event_killswitch")?R.dispatchEvent(E):J6(function(){return void R.dispatchEvent(E)});
return E};
XyP=function(R){var A=window,Y=function(P){A.removeEventListener("yt-navigate-start",Y);return R.call(A,P)};
A.addEventListener("yt-navigate-start",Y,void 0)};
_.OC=function(R,A,Y,P){A=new SuJ(A,!(P===void 0||!P),Y);_.xo(R,"yt-action",A);return A.returnValue};
_.MT=function(R,A,Y){return _.OC(R,A,Y,!0)};
_.NT=function(R,A,Y,P){A&&A.length&&A.forEach(function(E){var z=CcV(E);z&&(_.v("handle_service_request_actions")&&E.commandMetadata&&E.commandMetadata.webCommandMetadata&&E.commandMetadata.webCommandMetadata.sendPost?_.sC(Y?Y:R,[E]):_.MT(R,z,[E,Y,P]))})};
_.sC=function(R,A){var Y=[R];A&&Y.push.apply(Y,A);A=_.OC(R,"yt-service-request",Y);return A.length>0&&(A=A[0],_.xo(R,"yt-service-request-sent",A),A&&A.ajaxPromise)?(A.ajaxPromise.then(function(P){_.xo(R,"yt-service-request-completed",P)},function(P){_.xo(R,"yt-service-request-error",{error:P,
params:Y})},R),A.ajaxPromise):_.Vn()};
_.yn=function(R,A){if(_.v("handle_service_request_actions"))_.NT(A,R,A);else{R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next()){Y=Y.value;var P=void 0;((P=_.n(Y,_.Jg))==null?0:P.commands)?_.yn(_.n(Y,_.Jg).commands,A):(P=void 0,((P=_.n(Y,_.mZ))==null?0:P.actions)?_.yn(_.n(Y,_.mZ).actions,A):(P=void 0,((P=_.n(Y.commandMetadata,_.Ti))==null?0:P.sendPost)?_.sC(A,[Y]):_.NT(A,[Y],A)))}}};
_.KCI=function(R,A,Y){A=A===void 0?{}:A;typeof A==="function"&&(A={callback:A});Y||A._c&&A._c.jsl&&A._c.jsl.h||_.BO.extend(A,{_c:{jsl:{h:_.a1("GAPI_HINT_PARAMS")}}});(A.gapiHintOverride||_.a1("GAPI_HINT_OVERRIDE"))&&(Y=_.qI(document.location.href).gapi_jsh)&&_.BO.extend(A,{_c:{jsl:{h:Y}}});IV6(R,A)};
_.vk=function(R,A,Y){A=A===void 0?{}:A;R=(R=R in Qn?Qn[R]:Y)||"";Y={};for(var P in A){Y={key$jscomp$838:Y.key$jscomp$838};Y.key$jscomp$838=P;var E=function(z){return function(){return String(A[z.key$jscomp$838])}}(Y);
R=R.replace(new RegExp("\\$\\{"+Y.key$jscomp$838+"\\}","gi"),E);R=R.replace(new RegExp("\\$"+Y.key$jscomp$838,"gi"),E)}return R};
_.gH=function(R,A){return WCI(R in Qn?Qn[R]:{},A)};
WCI=function(R,A){var Y=_.a1("I18N_PLURAL_RULES");Y||(Y=function(P){return P==1?"one":"other"});
return(R=R["case"+A]||R[Y(A)])?R.replace("#",A.toString()):A+""};
fVk=function(R){var A=jyS(R),Y=document.getElementById(A),P=Y&&iUu(Y);P||Y&&!P||(Y=bUP(R,A,function(){if(!iUu(Y)){zVb(Y);_.Phk(A);var E=_.nj(_.zck,A);_.JN(E,0)}}))};
bUP=function(R,A,Y){var P=document.createElement("link");P.id=A;P.onload=function(){Y&&setTimeout(Y,0)};
R=_.bt(R);_.xU(P,R,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(P);return P};
jyS=function(R){var A=_.De("A");wZ(A,fq(R));return"css-"+ZZ(A.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.FCb=function(R){var A=pyu();R!==A&&(A=_.Hk(),!_.v("web_autonav_allow_off_by_default")&&R||_.rH(0,141,!0),_.rH(0,140,!R),A.save())};
pyu=function(){var R=_.Hk();return _.v("web_autonav_allow_off_by_default")&&!R.getFlag(141)&&_.a1("AUTONAV_OFF_BY_DEFAULT")?!1:!R.getFlag(140)};
Bk6=function(R,A){var Y,P;R=((Y=R.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(P=Y.videoAuthorizationToken)==null?void 0:P.credentialTransferTokens)||[];for(Y=0;Y<R.length;++Y)if(R[Y].scope===A)return R[Y].token||void 0};
aVk=function(R){for(var A=0,Y=0;Y<R.length;Y++)A=A*31+R.charCodeAt(Y),Y<R.length-1&&(A%=0x800000000000);return A%1E5};
_.DM=function(R){return _.Zr("ytcsi."+(R||"")+"data_")||CXV(R)};
_.hVk=function(R){R=_.DM(R);R.metadata||(R.metadata={});return R.metadata};
_.oIJ=function(R){R=_.DM(R);R.tick||(R.tick={});return R.tick};
_.UC=function(R){R=_.DM(R);if(R.gel){var A=R.gel;A.gelInfos||(A.gelInfos={});A.gelTicks||(A.gelTicks={})}else R.gel={gelTicks:{},gelInfos:{}};return R.gel};
_.kJb=function(R){R=_.UC(R);R.gelInfos||(R.gelInfos={});return R.gelInfos};
GJb=function(R){var A=_.DM(R).nonce;A||(A=bP(16),_.DM(R).nonce=A);return A};
CXV=function(R){var A={tick:{},info:{}};_.PG("ytcsi."+(R||"")+"data_",A);return A};
ZU8=function(){var R=_.Zr("ytcsi.debug");R||(R=[],_.PG("ytcsi.debug",R),_.PG("ytcsi.reference",{}));return R};
_.$o=function(R){R=R||"";var A=tJl();if(A[R])return A[R];var Y=ZU8(),P={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};Y.push(P);return A[R]=P};
wyV=function(R){R=R||"";var A=tJl();A[R]&&delete A[R];var Y=ZU8(),P={timerName:R,info:{},tick:{},span:{},jspbInfo:[]};Y.push(P);A[R]=P};
tJl=function(){var R=_.Zr("ytcsi.reference");if(R)return R;ZU8();return _.Zr("ytcsi.reference")};
_.eVP=function(R){return uik[R]||"LATENCY_ACTION_UNKNOWN"};
RgP=function(R,A,Y){Y=Y===void 0?{}:Y;var P=!1;_.CQ("ytLoggingEventsDefaultDisabled",!1)&&(P=!0);P=P?null:KK;Y=Y===void 0?{}:Y;var E=Math.round(Y.timestamp||(0,_.iB)());_.r5(A,1,E<Number.MAX_SAFE_INTEGER?E:0);E=new quk;if(Y.lact)_.r5(E,1,isFinite(Y.lact)?Y.lact:-1);else if(Y.timestamp)_.r5(E,1,-1);else{var z=_.z$();_.r5(E,1,isFinite(z)?z:-1)}if(Y.sequenceGroup&&!_.v("web_gel_sequence_info_killswitch")){z=Y.sequenceGroup;var c=Vdu(z),M=new LC6;_.r5(M,2,c);_.IS(M,1,z);_.DE(E,3,M);Y.endOfSequence&&delete dBV[Y.sequenceGroup]}_.DE(A,
33,E);(Y.sendIsolatedPayload?gL3:nLk)(R,{endpoint:"log_event",payload:A,cttAuthInfo:Y.cttAuthInfo,dangerousLogToVisitorSession:Y.dangerousLogToVisitorSession},P)};
_.SF=function(){return(_.v("csi_use_time_origin")||_.v("csi_use_time_origin_tvhtml5"))&&_.Xh.timeOrigin?Math.floor(_.Xh.timeOrigin):_.Xh.timing.navigationStart};
_.AXJ=function(R,A){_.Io("_start",R,A)};
_.Kj=function(R,A){if(!_.v("web_csi_action_sampling_enabled")||!_.DM(A).actionDisabled){var Y=_.$o(A||"");_.h_(Y.info,R);R.loadType&&(Y=R.loadType,_.hVk(A).loadType=Y);_.h_(_.kJb(A),R);Y=GJb(A);A=_.DM(A).cttAuthInfo;Y8q().info(R,Y,A)}};
PV6=function(){var R,A,Y,P;return((P=_.is().resolve(_.z3($a))==null?void 0:(R=X8())==null?void 0:(A=R.loggingHotConfig)==null?void 0:(Y=A.csiConfig)==null?void 0:Y.debugTicks)!=null?P:[]).map(function(E){return Object.values(E)[0]})};
_.Io=function(R,A,Y){if(!_.v("web_csi_action_sampling_enabled")||!_.DM(Y).actionDisabled){var P=GJb(Y),E;if(E=_.v("web_csi_debug_sample_enabled")&&P){(_.is().resolve(_.z3($a))==null?0:X8())&&!EgS&&(EgS=!0,_.Io("gcfl",(0,_.iB)(),Y));var z,c,M;E=(_.is().resolve(_.z3($a))==null?void 0:(z=X8())==null?void 0:(c=z.loggingHotConfig)==null?void 0:(M=c.csiConfig)==null?void 0:M.debugSampleWeight)||0;if(z=E!==0)b:{z=PV6();if(z.length>0)for(c=0;c<z.length;c++)if(R===z[c]){z=!0;break b}z=!1}z?(E=aVk(P)%E!==0,
_.DM(Y).debugTicksExcludedLogged||(z={},z.debugTicksExcluded=E,_.Kj(z,Y)),_.DM(Y).debugTicksExcludedLogged=!0):E=!1}if(!E){R[0]!=="_"&&zgq(R,Y,A);E=_.$o(Y||"");E.tick[R]=A||(0,_.iB)();if(E.callback&&E.callback[R])for(E=_.x(E.callback[R]),z=E.next();!z.done;z=E.next())z=z.value,z();E=_.UC(Y);E.gelTicks&&(E.gelTicks[R]=!0);z=_.oIJ(Y);E=A||(0,_.iB)();_.v("log_repeated_ytcsi_ticks")?R in z||(z[R]=E):z[R]=E;z=_.DM(Y).cttAuthInfo;R==="_start"?Y8q().baseline(P,A,z):Y8q().tick(R,P,A,z);_.irP(Y);return E}}};
zgq=function(R,A,Y){if(_.Xh.mark)if(R.startsWith("mark_")||(R="mark_"+R),A&&(R+=" ("+A+")"),Y===void 0||_.v("web_csi_disable_alt_time_performance_mark"))_.Xh.mark(R);else{Y=_.v("csi_use_performance_navigation_timing")?Y-_.Xh.timeOrigin:Y-(_.Xh.timeOrigin||_.Xh.timing.navigationStart);try{_.Xh.mark(R,{startTime:Y})}catch(P){}}};
lRk=function(){var R,A=(R=_.Xh.getEntriesByType)==null?void 0:R.call(_.Xh,"mark");A&&A.forEach(function(Y){if(Y.name.startsWith("mark_")){var P;(P=_.Xh.clearMarks)==null||P.call(_.Xh,Y.name)}})};
_.xYS=function(){switch(o9k()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.cXk=function(R){var A={},Y=function(z,c,M){c=c.match("_rid")?c.split("_rid")[0]:c;typeof M==="number"&&(M=JSON.stringify(M));z.requestIds?z.requestIds.push({endpoint:c,id:M}):z.requestIds=[{endpoint:c,id:M}]};
R=_.x(Object.entries(R));for(var P=R.next();!P.done;P=R.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;switch(P){case "GetBrowse_rid":Y(A,P,E);break;case "GetGuide_rid":Y(A,P,E);break;case "GetHome_rid":Y(A,P,E);break;case "GetPlayer_rid":Y(A,P,E);break;case "GetSearch_rid":Y(A,P,E);break;case "GetSettings_rid":Y(A,P,E);break;case "GetTrending_rid":Y(A,P,E);break;case "GetWatchNext_rid":Y(A,P,E);break;case "yt_red":A.isRedSubscriber=!!E;break;case "yt_ad":A.isMonetized=!!E}}return A};
MQ6=function(R,A,Y,P,E,z){if(!_.v("web_csi_action_sampling_enabled")||!_.DM(z).actionDisabled){var c=_.UC(z);if(c.gelSpans)c.gelSpans[R]=!0;else{var M={};c.gelSpans=(M[R]=!0,M)}OrJ++;R={spanName:R,spanLengthUsec:String(Math.round(A*1E3)),spanNonce:OrJ};P&&(R.spanInfo=P);E&&(R.parentSpanNonce=E);Y&&(R.spanStartTimeUsec=String(Math.round(Y*1E3)));_.$o(z||"").span[String(R.spanName)]=R;Y=_.UC(z);Y.gelSpans||(Y.gelSpans={});_.h_(Y.gelSpans,R);Y=GJb(z);z=_.DM(z).cttAuthInfo;Y8q().span(R,Y,z);return R.spanNonce}};
_.sjl=function(R){var A=_.Wk("aft",R);if(A)return A;A=_.a1((R||"")+"TIMING_AFT_KEYS",["ol"]);for(var Y=A.length,P=0;P<Y;P++){var E=_.Wk(A[P],R);if(E)return E}return NaN};
_.NSk=function(R,A){_.PG("ytglobal.timing"+(A||"")+"ready_",R)};
_.Wk=function(R,A){if(R=_.oIJ(A)[R])return typeof R==="number"?R:R[R.length-1]};
_.irP=function(R){var A=_.Wk("_start",R),Y=_.sjl(R),P=!VQ3;A&&Y&&P&&(yhk(JXl,new yXk(Math.round(Y-A),R)),VQ3=!0)};
TS6=function(R){CXV(R);mY6();lRk();R||(_.a1("TIMING_ACTION")&&_.BD("PREVIOUS_ACTION",_.a1("TIMING_ACTION")),_.BD("TIMING_ACTION",""))};
_.Qj3=function(R){R=R===void 0?{}:R;_.o1(function(){jF();wyV();TS6();_.NSk(!1);R.cttAuthInfo&&(_.DM().cttAuthInfo=R.cttAuthInfo);_.BD("TIMING_AFT_KEYS",[]);R.isHot?_.bE({loadType:"hot"}):_.bE({loadType:"warm"});_.BD("TIMING_ACTION","");delete _.a1("TIMING_INFO",{}).yt_lt;_.o1(_.AXJ)(R.startTime,void 0)})()};
_.pj=function(R,A,Y,P){A=A===void 0?{}:A;_.o1(function(){var E=Y?Y:R;fj(E);var z=A.sampleRate;if(!_.v("web_csi_action_sampling_enabled")||z===void 0||z<=1)z=!1;else{var c=GJb(E);z=aVk(c)%z!==0}z&&(_.DM(E).actionDisabled=!0);_.$o(E||"").info.actionType=R;A.cttAuthInfo&&(_.DM(E).cttAuthInfo=A.cttAuthInfo);_.BD(E+"TIMING_ACTION",R);_.o1(_.AXJ)(A.startTime,E);z={actionType:P||_.eVP(R)};A.logPreviousAction&&(z.previousAction=_.eVP(_.a1("TIMING_ACTION")));(c=_.F9())&&c!=="UNDEFINED_CSN"&&(z.clientScreenNonce=
c);_.bE(z,E);_.NSk(!0,E)})()};
fj=function(R){_.o1(function(){jF(R);wyV(R);TS6(R)})()};
vg6=function(){_.o1(function(){var R=[],A;for(A in _.Zr("ytcsi.".slice(0,-1)))A.endsWith("data_")&&R.push(A.slice(0,-5));R=_.x(R);for(A=R.next();!A.done;A=R.next())fj(A.value);jF()})()};
_.ngV=function(R){return _.o1(function(){return _.ggI("_start",R)})()};
_.bE=function(R,A,Y){_.o1(_.Kj)(R,A,Y===void 0?!1:Y)};
_.Fh=function(R,A,Y){return _.o1(_.Io)(R,A,Y)};
_.ggI=function(R,A){return _.o1(function(){var Y=_.oIJ(A);return R in Y})()};
rXk=function(R){if(!_.v("universal_csi_network_ticks"))return"";R=_.T3(R)||"";for(var A=Object.keys(Hrk),Y=0;Y<A.length;Y++){var P=A[Y];if(R.includes(P))return P}return""};
UYV=function(R){if(!_.v("universal_csi_network_ticks"))return function(){};
var A=Hrk[R];return A?(_.Bk(A),function(){var Y=_.v("universal_csi_network_ticks")?(Y=DY8[R])?_.Bk(Y):!1:!1;return Y}):function(){}};
_.Bk=function(R,A,Y){return _.o1(function(){if(_.ggI(R,Y))return!1;_.Fh(R,A,Y);return!0})()};
_.ao=function(R,A,Y){_.o1(function(){if(!_.ngV(Y)||_.ggI(R,Y))return!1;_.Fh(R,A,Y);return!0})()};
_.Cj=function(R){return _.o1(_.Wk)(R,void 0)};
jF=function(R){_.ngV(R)&&_.Fh("aa",void 0,R)};
_.KvJ=function(R,A,Y,P,E,z,c,M,N){var y=$Yk();M=new fO({veType:A,youtubeData:z,jspbYoutubeData:M});z=hg({},y);E&&(z.cttAuthInfo=E);E={csn:y,pageVe:M.getAsJson()};_.v("expectation_logging")&&N&&N.screenCreatedLoggingExpectations&&(E.screenCreatedLoggingExpectations=N.screenCreatedLoggingExpectations);Y&&Y.visualElement?(E.implicitGesture={parentCsn:Y.clientScreenNonce,gesturedVe:Y.visualElement.getAsJson()},c&&(E.implicitGesture.gestureType=c)):Y&&_.pK(new _.XN("newScreen() parent element does not have a VE - rootVe",
A));P&&(E.cloneCsn=P);R?In("screenCreated",E,R,z):_.Wj("screenCreated",E,z);yhk(HGu,new X9P(y));oo.clear();S8b.clear();IRI.clear();return y};
ko=function(R,A,Y,P,E,z){z=z===void 0?{}:z;Wv8(R,A,Y,[P],E===void 0?!1:E,z)};
Wv8=function(R,A,Y,P,E,z){E=E===void 0?!1:E;z=z===void 0?{}:z;Object.assign(z,hg({cttAuthInfo:Be(A)||void 0},A));for(var c=_.x(P),M=c.next();!M.done;M=c.next()){M=M.value;var N=M.getAsJson();(_.BO.isEmpty(N)||!N.trackingParams&&!N.veType)&&_.pK(Error("vf"));if(_.v("no_client_ve_attach_unless_shown")){var y=jjJ(M,A);if(N.veType&&!S8b.has(y)&&!IRI.has(y)&&!E){if(!_.v("il_attach_cache_limit")||oo.size<1E3){oo.set(y,[R,A,Y,M]);return}_.v("il_attach_cache_limit")&&oo.size>1E3&&_.pK(new _.XN("IL Attach cache exceeded limit"))}M=
jjJ(Y,A);oo.has(M)?brk(Y,A):IRI.set(M,!0)}}P=P.filter(function(m){m.csn!==A?(m.csn=A,m=!0):m=!1;return m});
Y={csn:A,parentVe:Y.getAsJson(),childVes:_.aS(P,function(m){return m.getAsJson()})};
A==="UNDEFINED_CSN"?Gi("visualElementAttached",z,Y):R?In("visualElementAttached",Y,R,z):_.Wj("visualElementAttached",Y,z)};
p9J=function(R,A,Y,P,E){fRq(R,A,Y,E)};
fRq=function(R,A,Y,P){FvJ(Y,A);var E=hg({cttAuthInfo:Be(A)||void 0},A);Y={csn:A,ve:Y.getAsJson(),eventType:1};P&&(Y.clientData=P);A==="UNDEFINED_CSN"?Gi("visualElementShown",E,Y):R?In("visualElementShown",Y,R,E):_.Wj("visualElementShown",Y,E)};
BSI=function(R,A,Y,P){FvJ(Y,A);var E=hg({cttAuthInfo:Be(A)||void 0},A);Y={csn:A,ve:Y.getAsJson(),eventType:4};P&&(Y.clientData=P);A==="UNDEFINED_CSN"?Gi("visualElementShown",E,Y):R?In("visualElementShown",Y,R,E):_.Wj("visualElementShown",Y,E)};
aRl=function(R,A,Y,P,E){var z=(P=P===void 0?!1:P)?16:8;P=hg({cttAuthInfo:Be(A)||void 0,endOfSequence:P},A);Y={csn:A,ve:Y.getAsJson(),eventType:z};E&&(Y.clientData=E);A==="UNDEFINED_CSN"?Gi("visualElementHidden",P,Y):R?In("visualElementHidden",Y,R,P):_.Wj("visualElementHidden",Y,P)};
hgl=function(R,A,Y,P,E){CV3(R,A,Y,void 0,P,E)};
CV3=function(R,A,Y,P,E){FvJ(Y,A);P=P||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var z=hg({cttAuthInfo:Be(A)||void 0},A);Y={csn:A,ve:Y.getAsJson(),gestureType:P};E&&(Y.clientData=E);A==="UNDEFINED_CSN"?Gi("visualElementGestured",z,Y):R?In("visualElementGestured",Y,R,z):_.Wj("visualElementGestured",Y,z)};
ogq=function(R,A,Y,P){var E=hg({cttAuthInfo:Be(A)||void 0},A);Y={csn:A,ve:Y.getAsJson(),clientData:P};A==="UNDEFINED_CSN"?Gi("visualElementStateChanged",E,Y):R?In("visualElementStateChanged",Y,R,E):_.Wj("visualElementStateChanged",Y,E)};
kLk=function(){var R=IG6(16);for(var A=[],Y=0;Y<R.length;Y++)A.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(R[Y]&63));return A.join("")};
Gi=function(R,A,Y){GLu.push({payloadName:R,payload:Y,jspbPayload:void 0,options:A});Zrl||(Zrl=Doq())};
nw8=function(R){if(GLu){for(var A=_.x(GLu),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.payload&&(Y.payload.csn=R.csn,_.Wj(Y.payloadName,Y.payload,Y.options));GLu.length=0}Zrl=0};
jjJ=function(R,A){return""+R.getAsJson().veType+R.getAsJson().veCounter+A};
FvJ=function(R,A){if(_.v("no_client_ve_attach_unless_shown")){var Y=jjJ(R,A);S8b.set(Y,!0);brk(R,A)}};
brk=function(R,A){R=jjJ(R,A);oo.has(R)&&(A=oo.get(R)||[],ko(A[0],A[1],A[2],A[3],!0),oo.delete(R))};
hg=function(R,A){_.v("log_sequence_info_on_gel_web")&&(R.sequenceGroup=A);return R};
_.ZM=function(R,A,Y){_.o1(ko)(void 0,R,A,Y)};
_.tg=function(R,A,Y){_.o1(Wv8)(void 0,R,A,Y)};
_.wH=function(R,A){_.o1(p9J)(void 0,R,A,void 0,void 0,void 0)};
_.uE=function(R,A,Y){_.o1(function(){_.uI(A,function(P){BSI(void 0,R,P,Y)})})()};
_.eF=function(R,A,Y,P){_.o1(function(){_.uI(A,function(E){aRl(void 0,R,E,Y,P)})})()};
_.qT=function(R,A,Y){_.o1(hgl)(void 0,R,A,Y,void 0)};
_.Lj=function(R,A,Y,P){_.o1(CV3)(void 0,R,A,Y,P,void 0)};
_.dH=function(R,A,Y){_.o1(ogq)(void 0,R,A,Y,void 0)};
tQk=function(R,A){Ra.set(R,A)};
w9k=function(R){return A0.initialized?A0.enabledSpans?A0.enabledSpans[R]:!0:!1};
uvk=function(R,A){if(R){A=A===void 0?1:A;if(R){R.endTime=(0,_.iB)();A&&(R.status=A);A=_.x(A0.processors);for(var Y=A.next();!Y.done;Y=A.next()){var P=void 0,E=void 0;(E=(P=Y.value).onSpanEnd)==null||E.call(P,R)}}R!==A0.stack[A0.stack.length-1]&&_.pK(Error("yf`"+R.name));A0.stack.pop()}};
egI=function(R,A,Y){if(w9k(R)){var P=A0.nextSpanId++,E=A0.stack[A0.stack.length-1];R={id:P,parentId:E==null?void 0:E.id,name:R,attributes:A,traceId:E?E.traceId:P,sessionId:A0.sessionId,startTime:(0,_.iB)(),status:0};E&&(E.children||(E.children=[]),E.children.push(R));E=_.x(A0.processors);for(A=E.next();!A.done;A=E.next()){var z=P=void 0;(z=(P=A.value).onSpanStart)==null||z.call(P,R)}}else R=void 0;R?A0.stack.push(R):R=void 0;if(!R)return Y();try{var c=Y(R);uvk(R);return c}catch(M){throw uvk(R,2),
M;}};
q8k=function(){};
Lvk=function(R,A){var Y=Object.keys(R);R=new _.XN("[Command Handler] "+A,{filteredCommandNames:Y,originalCommand:R});_.bj(R)};
dYk=function(R,A){Lvk(R,A+" was called but not set")};
Rlk=function(R){return function(){return new R}};
Yb=function(R){return function(){return _.is().resolve(R)}};
Aeu=function(R,A){var Y=_.n(R,_.h$);if(Y&&(Y=A[Y.signal]))return Y();R=_.x(Object.keys(R));for(Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,A[Y]&&(Y=A[Y]))return Y()};
_.PK=function(R,A,Y,P){return{browseEndpoint:{browseId:R},commandMetadata:{webCommandMetadata:{url:A,rootVe:Y,webPageType:P===void 0?"WEB_PAGE_TYPE_BROWSE":P}}}};
YOJ=function(R,A,Y){var P=A=A===void 0?0:A;Y=Y===void 0?0:Y;var E=Y-P;return _.zX(R,"PPSV",void 0,void 0,(E>600?0:E<60||Y<=0||P/Y>.9)?0:A)};
_.zX=function(R,A,Y,P,E){var z="/watch?v="+R;R={videoId:R};A&&(R.playlistId=A,z+="&list="+A);P&&(z+="&pp="+P);E&&(R.startTimeSeconds=E,z+="&t="+E+"s");A={watchEndpoint:R,commandMetadata:{webCommandMetadata:{url:z,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};Y&&(A.clickTrackingParams=Y);P&&(_.n(A,_.LO).playerParams=P);return A};
PoV=function(R){return{browseEndpoint:{browseId:"VL"+R},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+R,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
ENJ=function(R){if(R){var A;if(R){var Y=(A=_.n(R.commandMetadata,_.Ti))==null?void 0:A.url;A=!(!Y||Y==="/service_ajax")}else A=!1;if(A)return R;var P;if(R=(P=_.n(R,_.Jg))==null?void 0:P.commands)for(P=_.x(R),R=P.next();!R.done;R=P.next())if(R=ENJ(R.value))return R}};
_.iw=function(R){return{runs:[{text:R}]}};
zl8=function(R,A){return R&&A?{runs:[{text:R,navigationEndpoint:A}]}:void 0};
lw=function(R){return R?_.iw(R):void 0};
_.xb=function(R){return R?{simpleText:R}:void 0};
_.cK=function(R){var A=R.type;R=R.payload;A={type:A};R!==void 0&&(A.payload=R);return A};
idu=function(R,A,Y){for(var P=Object.assign({},R),E=_.x(Object.keys(A)),z=E.next();!z.done;z=E.next()){z=z.value;var c=R[z],M=A[z];if(M===void 0)delete P[z];else if(c===void 0)P[z]=M;else if(Array.isArray(M)&&Array.isArray(c))P[z]=Y?[].concat(_.py(c),_.py(M)):M;else if(!Array.isArray(M)&&_.ZI(M)&&!Array.isArray(c)&&_.ZI(c))P[z]=idu(c,M,Y);else if(typeof M===typeof c)P[z]=M;else return A=new _.XN("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:z,originalValue:c,updateValue:M}),
_.bj(A),R}return P};
ceS=function(R){if(!R.length)return"";try{if(lX8)return lX8.decode(R);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(R)}catch(c){}for(var A=0,Y=[],P=R.length;A<P;){for(var E=0;E<1024&&A<P;){var z=R[A++];if(z<128)xNu[E++]=z;else{if(z<224)z=(z&31)<<6|R[A++]&63;else if(z<240)z=(z&15)<<12|(R[A++]&63)<<6|R[A++]&63;else{if(E+1===1024){--A;break}z=(z&7)<<18|(R[A++]&63)<<12|(R[A++]&63)<<6|R[A++]&63;z-=65536;xNu[E++]=55296|z>>10;z=56320|z&1023}xNu[E++]=z}}z=String.fromCharCode.apply(String,
xNu);E<1024&&(z=z.substring(0,E));Y.push(z)}return Y.join("")};
MM8=function(R,A){var Y;if((Y=OdI)==null?0:Y.encodeInto)return A=OdI.encodeInto(R,A),A.read<R.length?R.length*4:A.written;for(var P=Y=0;P<R.length;P++){var E=R.charCodeAt(P);E<128?A[Y++]=E:(E<2048?A[Y++]=E>>6|192:((E&64512)===55296&&P+1<R.length&&(R.charCodeAt(P+1)&64512)===56320?(E=65536+((E&1023)<<10)+(R.charCodeAt(++P)&1023),A[Y++]=E>>18|240,A[Y++]=E>>12&63|128):A[Y++]=E>>12|224,A[Y++]=E>>6&63|128),A[Y++]=E&63|128)}return Y};
sYP=function(R,A,Y){if(A&&Y&&Y.buffer===A.exports.memory.buffer){var P=A.realloc(Y.byteOffset,R);if(P)return new Uint8Array(A.exports.memory.buffer,P,R)}R=A?new Uint8Array(A.exports.memory.buffer,A.malloc(R),R):new Uint8Array(R);Y&&R.set(Y);return R};
_.M6=function(R){R=new N3k(new VMJ([_.eP(decodeURIComponent(R))]));if(JeI(R,2)){var A=OQ(R);var Y=R.pos;var P=R.arrayView;Y=Y===void 0?0:Y;var E=A===void 0?-1:A;Y=Y===void 0?0:Y;E=E===void 0?-1:E;if(P.totalLength&&E){E<0&&(E=P.totalLength-Y);P.focus(Y);if(!(Y-P.arrayPos+E<=P.arrays[P.arrayIdx].length)){var z=P.arrayIdx,c=P.arrayPos;P.focus(Y+E-1);c=new Uint8Array(P.arrayPos+P.arrays[P.arrayIdx].length-c);for(var M=0,N=z;N<=P.arrayIdx;N++)c.set(P.arrays[N],M),M+=P.arrays[N].length;P.arrays.splice(z,
P.arrayIdx-z+1,c);P.arrayIdx=0;P.arrayPos=0;P.focus(Y)}z=P.arrays[P.arrayIdx];P=new DataView(z.buffer,z.byteOffset+Y-P.arrayPos,E)}else P=new DataView(new ArrayBuffer(0));P=new Uint8Array(P.buffer,P.byteOffset,P.byteLength);R.pos+=A;A=P}else A=void 0;A=A?ceS(A):void 0;R=JeI(R,4)?OQ(R):void 0;P=yek[R];if(typeof P==="undefined")throw R=new _.XN("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:R}),_.bj(R),R;return{entityTypeFieldNumber:R,entityType:P,entityId:A}};
_.yS=function(R,A,Y){Y=Y===void 0?0:Y;var P=new mN8;if(OdI)R=OdI.encode(R);else{var E=new Uint8Array(Math.ceil(R.length*1.2)),z=MM8(R,E);E.length<z&&(E=new Uint8Array(z),z=MM8(R,E));E.length>z&&(E=E.subarray(0,z));R=E}R!==void 0&&(sQ(P,18),E=R.length,sQ(P,E),N6(P,E),P.buf.set(R,P.pos),P.pos+=E);R=T3V[A];if(typeof R==="undefined")throw Y=new _.XN("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:A}),_.bj(Y),Y;R!==void 0&&(sQ(P,32),sQ(P,R));sQ(P,40);sQ(P,1);A=new Uint8Array(P.buf.buffer,
P.buf.byteOffset,P.pos);return encodeURIComponent(_.WF(A,Y))};
QYk=function(R){R=R.key||R.id;if(!R)throw Error("Af");return R};
gN8=function(R,A){R=R===void 0?{}:R;return vNu(R,A)};
nNq=function(R,A,Y,P){if(P===void 0)return P=Object.assign({},R[A]||{}),Y=(delete P[Y],P),P={},Object.assign({},R,(P[A]=Y,P));var E={},z={};return Object.assign({},R,(z[A]=Object.assign({},R[A],(E[Y]=P,E)),z))};
HdJ=function(R,A,Y,P,E){var z=R[A];if(z==null||!z[Y])return R;P=idu(z[Y],P,E==="REPEATED_FIELDS_MERGE_OPTION_APPEND");E={};z={};return Object.assign({},R,(z[A]=Object.assign({},R[A],(E[Y]=P,E)),z))};
_.mc=function(R,A,Y){return R[A]?R[A][Y]||null:null};
DNI=function(){if(rel)return rel();var R={};rel=z5("PersistentEntityStoreDb",{objectStores:(R.EntityStore={addedAtVersion:1},R.EntityAssociationStore={addedAtVersion:2},R),shared:!1,upgrade:function(A,Y){Y(1)&&k_(oB(A,"EntityStore",{keyPath:"key"}),"entityType","entityType");Y(2)&&(A=oB(A,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),k_(A,"byParentEntityKey","parentEntityKey"),k_(A,"byChildEntityKey","childEntityKey"))},
version:3});return rel()};
UNV=function(R){return _.q1(DNI(),R)};
TX=function(R){return window.Int32Array?new Int32Array(R):Array(R)};
XMk=function(R){return _.q1($Nk(),R)};
SOq=function(R){return new QS("WRONG_DATA_TYPE",{encoderVersion:R})};
IXI=function(R){return R instanceof Error?new QS("UNKNOWN_ENCODE_ERROR",{originalMessage:R.message}):new QS("UNKNOWN_ENCODE_ERROR")};
KUk=function(R){return R instanceof Error?new QS("UNKNOWN_DECODE_ERROR",{originalMessage:R.message}):new QS("UNKNOWN_DECODE_ERROR")};
WU3=function(R,A){R=R instanceof QS?R:A(R);_.bj(R);throw R;};
jYI=function(R){R=(new TextEncoder).encode(R).subarray(0,16);var A=new Uint8Array(16);A.set(R);return A};
fXq=function(R){var A=bdk[R];if(A)return A;_.pK(new _.XN("Entity model not found.",{entityType:R}))};
_.vK=function(){pMJ||(pMJ=FUk());return pMJ};
FUk=function(){var R,A,Y;return _.O(function(P){if(P.nextAddress==1)return _.g2(P,2),P.yield(_.EF(),4);if(P.nextAddress!=2){R=P.yieldResult;if(!R||!_.$S()||typeof _.P3.BroadcastChannel==="undefined")return P.return();A=new B3J;return P.return(new gF(R,A))}Y=_.UT(P);Y instanceof Error&&_.bj(Y);return P.return()})};
_.nx=function(R,A){var Y;return _.O(function(P){if(P.nextAddress==1){Y=R.mutations;if(!Y||Y.length<=0)return P.return();A&&A.dispatch(_.cK({type:"ENTITY_LOADED",payload:Y}));return P.yield(aXk(Y),2)}Y.length=0;_.XH(P)})};
aXk=function(R){var A;return _.O(function(Y){return Y.nextAddress==1?Y.yield(_.vK(),2):(A=Y.yieldResult)?Y.yield(_.HK(A,"readwrite",function(P){for(var E={},z=_.x(R),c=z.next(),M={};!c.done;M={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},c=z.next())M.mutation$jscomp$4=c.value,M.mutation$jscomp$4.entityKey&&Cok(M.mutation$jscomp$4)&&(M.mutationEntityType$jscomp$3=(0,_.BO.getAnyKey)(M.mutation$jscomp$4.payload),c=void 0,M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(c=function(N){return function(){return _.hlk(P,
N.mutation$jscomp$4.payload[N.mutationEntityType$jscomp$3],N.mutationEntityType$jscomp$3)}}(M)),M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(c=function(N){return function(){return oNb(P,N.mutation$jscomp$4.entityKey)}}(M)),M.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(c=function(N){return function(){return kyP(P,N.mutation$jscomp$4.entityKey,N.mutation$jscomp$4.payload[N.mutationEntityType$jscomp$3],N.mutationEntityType$jscomp$3)}}(M)),c&&(E[M.mutation$jscomp$4.entityKey]=
E[M.mutation$jscomp$4.entityKey]?E[M.mutation$jscomp$4.entityKey].then(c):c()));
return kS.all(Object.values(E))}),0):Y.return()})};
Cok=function(R){var A;R=(A=R.options)==null?void 0:A.persistenceOption;return R==="ENTITY_PERSISTENCE_OPTION_PERSIST"||R==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
tMV=function(R,A){var Y,P;_.O(function(E){if(E.nextAddress==1)return E.yield(_.vK(),2);if(E.nextAddress!=3)return(Y=E.yieldResult)?E.yield(_.HK(Y,"readonly",function(z){var c={},M=Object.keys(A).map(function(N){var y=A[N]?[].concat(_.py(A[N])):[];return Gyu(z,N,y,c)});
return kS.all(M).then(function(){return c})}),3):E.return();
P=E.yieldResult;Object.keys(P).length>0&&R.dispatch(Zd8(P));_.XH(E)})};
Gyu=function(R,A,Y,P){return rF(R,A,Y).then(function(E){P[A]=wMl(Y,E)})};
wMl=function(R,A){if(A.length!==R.length)throw Error("Df");return A.reduce(function(Y,P,E){Y[R[E]]=P;return Y},{})};
qOb=function(R){var A=R.filter(function(E){var z;return(E==null?void 0:(z=E.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_COMPLETE"}).length,Y=R.filter(function(E){var z;
return(E==null?void 0:(z=E.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_FAILED"}).length,P=R.filter(function(E){var z;
return(E==null?void 0:(z=E.transferEntity)==null?void 0:z.transferState)&&uek.includes(E.transferEntity.transferState)});
if(!(A||P!=null&&P.length))return 0;A=_.elk(P)+A;R=R.length-Y;return R===0?0:Math.round(A*100/R)/100};
_.elk=function(R){var A=[];A=A.concat.apply(A,_.py(R.filter(function(z){return z.streamEntity}).map(function(z){var c=Object.assign({},z.streamEntity),M,N=(M=z.transferEntity)==null?void 0:M.transferState;
c.streamsProgress=c.streamsProgress||[];c.streamsProgress=c.streamsProgress.map(function(y){var m=Object.assign({},y);m.numBytesDownloaded=N==="TRANSFER_STATE_COMPLETE"?y.numTotalBytes:y.numBytesDownloaded;return m});
return c}).map(function(z){return z.streamsProgress})));
var Y=R=0;A=_.x(A);for(var P=A.next();!P.done;P=A.next()){var E=P.value;P=Number(E.numBytesDownloaded);E=Number(E.numTotalBytes);Y+=isNaN(P)?0:P;R+=isNaN(E)?0:E}return R===0?0:Math.round(Y*100/R)/100};
LU8=function(R){if(!R||!R.expirationTimestamp||!R.action)return!1;var A=(0,_.iB)()/1E3;return Number(R.expirationTimestamp)>=A};
Dn=function(R){return R&&R.expirationTimestamp&&R.action?LU8(R)&&R.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.UQ=function(R){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(R||"TRANSFER_STATE_UNKNOWN")};
dNV=function(R){var A=new mN8;if(R!==void 0){var Y=Math.ceil(Math.log2(R.length*4+2)/7);Y=Y===void 0?2:Y;sQ(A,10);A.submessagePosStack.push(A.pos);A.submessagePosStack.push(Y);A.pos+=Y;N6(A,R.length*1.2);Y=MM8(R,A.buf.subarray(A.pos));A.pos+Y>A.buf.length&&(N6(A,Y),Y=MM8(R,A.buf.subarray(A.pos)));A.pos+=Y;R=A.submessagePosStack.pop();Y=A.submessagePosStack.pop();for(var P=A.pos-Y-R;R--;){var E=R?128:0;A.view.setUint8(Y++,P&127|E);P>>=7}}A=new Uint8Array(A.buf.buffer,A.buf.byteOffset,A.pos);return(new TextDecoder("utf-8")).decode(A)};
_.$b=function(R){var A=0;R=_.x(R);for(var Y=R.next(),P={};!Y.done;P={transferState$jscomp$3:void 0},Y=R.next()){var E=Y.value,z=void 0;Y=(z=E.streamEntity)!=null?z:{};z=void 0;P.transferState$jscomp$3=(z=E.transferEntity)==null?void 0:z.transferState;z=E=void 0;((E=Y)==null?0:(z=E.streamsProgress)==null?0:z.length)&&Y.streamsProgress.forEach(function(c){return function(M){M=Number(c.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?M.numTotalBytes:M.numBytesDownloaded);isFinite(M)&&(A+=M)}}(P))}return A};
RSk=function(R){return R.some(function(A){var Y;if(!(A==null?0:(Y=A.transferEntity)==null?0:Y.transferState)){var P;return!(A==null?0:(P=A.policyEntity)==null?0:P.action)||A.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return uek.includes(A.transferEntity.transferState)})};
AsP=function(R,A){if(!A)return!1;if(_.v("of_pb_en_po_ks"))return!0;var Y;R=(Y=_.mc(R,"offlineVideoPolicy",_.yS(A,"offlineVideoPolicy")))!=null?Y:void 0;return!!R&&Dn(R)};
_.PSq=function(R){var A=["TRANSFER_STATE_COMPLETE"];A=A===void 0?Y7b:A;return R.filter(function(Y){var P,E;return A.includes((E=(P=Y.transferEntity)==null?void 0:P.transferState)!=null?E:"TRANSFER_STATE_UNKNOWN")})};
E5P=function(R,A){if(A){var Y,P=(Y=_.mc(R,"playbackData",_.yS(A,"playbackData")))!=null?Y:null,E;Y=(E=_.mc(R,"transfer",_.yS(A,"transfer")))!=null?E:null;var z;E=(z=_.mc(R,"offlineVideoStreams",_.yS(A,"offlineVideoStreams")))!=null?z:null;var c;R=(c=_.mc(R,"offlineVideoPolicy",_.yS(A,"offlineVideoPolicy")))!=null?c:null;if(P||Y||E||R)return{playbackDataEntity:P,transferEntity:Y,streamEntity:E,policyEntity:R}}};
_.XE=function(R){var A=R.playbackData;if(!A)return[];var Y=[];A=_.x(Object.keys(A));for(var P=A.next();!P.done;P=A.next()){var E=P.value;if(!zSq(R,_.M6(E).entityId)&&(P=E5P(R,_.M6(E).entityId))){var z=void 0,c=void 0;E=(c=Number((z=_.mc(R,"playbackData",E))==null?void 0:z.streamDownloadTimestampSeconds))!=null?c:(0,_.iB)();Y.push({entity:P,streamDownloadTimestamp:E})}}return Y.sort(function(M,N){var y=M.streamDownloadTimestamp,m=N.streamDownloadTimestamp;return m===y?M.entity.streamEntity&&!N.entity.streamEntity?
1:-1:m-y}).map(function(M){return M.entity})};
i_S=function(R){return _.PSq(_.XE(R))};
_.lYV=function(R){return _.XE(R).filter(function(A){var Y;if(((Y=A.policyEntity)==null?0:Y.action)&&A.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var P;if((P=A.transferEntity)==null?0:P.transferState){var E;return uek.includes((E=A.transferEntity)==null?void 0:E.transferState)}return!0})};
zSq=function(R,A){var Y;return((Y=_.mc(R,"downloadStatusEntity",_.yS(A,"downloadStatusEntity")))==null?void 0:Y.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
xJS=function(R){var A;if(R==null?0:(A=R.playbackDataEntity)==null?0:A.key)return _.M6(R.playbackDataEntity.key).entityId;var Y;if(R==null?0:(Y=R.transferEntity)==null?0:Y.key)return _.M6(R.transferEntity.key).entityId;var P;if(R==null?0:(P=R.streamEntity)==null?0:P.key)return _.M6(R.streamEntity.key).entityId;var E;if(R==null?0:(E=R.policyEntity)==null?0:E.key)return _.M6(R.policyEntity.key).entityId};
O_8=function(R){var A=new Set,Y;R=(Y=R.mainDownloadsListEntity)==null?void 0:Y[cs8];var P;if(!(R==null?0:(P=R.downloads)==null?0:P.length))return A;var E;R==null||(E=R.downloads)==null||E.forEach(function(z){(z==null?0:z.videoItem)&&A.add(z.videoItem)});
return A};
S9=function(R,A){if(A){var Y=_.mc(R,"mainVideoEntity",_.yS(A,"mainVideoEntity")),P=_.mc(R,"downloadStatusEntity",_.yS(A,"downloadStatusEntity")),E=_.mc(R,"ytMainChannelEntity",_.yS(A,"ytMainChannelEntity")),z={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};R=E5P(R,A);P=(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.v("woffle_render_failed_download_state_ks")&&(P==null?void 0:P.downloadState)==="DOWNLOAD_STATE_FAILED";!R&&P&&(R=z);if(R&&Y&&
E)return Object.assign({},{videoEntity:Y,channelEntity:E},R)}};
sCV=function(R,A){return Mmk(R,A)==="TRANSFER_STATE_COMPLETE"&&AsP(R,A)};
NYq=function(R,A){if(!A)return!1;var Y;R=(Y=_.mc(R,"playbackData",_.yS(A,"playbackData")))!=null?Y:void 0;return!!R&&!!R.playerResponseJson};
Mmk=function(R,A){if(!A)return"TRANSFER_STATE_UNKNOWN";var Y=_.mc(R,"transfer",_.yS(A,"transfer"));if(Y){var P;return(P=Y.transferState)!=null?P:"TRANSFER_STATE_UNKNOWN"}Y=_.mc(R,"offlineOrchestrationActionWrapperEntity",_.yS(A,"offlineOrchestrationActionWrapperEntity"));R=_.mc(R,"mainVideoEntity",_.yS(A,"mainVideoEntity"));return Y||R?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
Vmu=function(R,A){if(!A)return"TRANSFER_STATE_UNKNOWN";if(R=_.mc(R,"transfer",_.yS(A,"transfer"))){var Y;return(Y=R.transferState)!=null?Y:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Jsk=function(R,A){return A&&(R=_.mc(R,"videoPlaybackPositionEntity",_.yS(A,"videoPlaybackPositionEntity")),R==null?0:R.lastPlaybackPositionSeconds)?Number(R.lastPlaybackPositionSeconds):0};
mJS=function(R,A){return ysJ(R).some(function(Y){var P;return(Y==null?void 0:(P=Y.mainPlaylistEntity)==null?void 0:P.playlistId)===A})};
QCb=function(R,A,Y){var P=TYk(R,A);if(!P.length)return[];A=[];P=_.x(P);for(var E=P.next();!E.done;E=P.next()){E=E.value;var z=S9(R,E);Y&&Mmk(R,E)!=="TRANSFER_STATE_COMPLETE"||z&&A.push(z)}return A};
TYk=function(R,A){if(!A)return[];var Y=_.yS(A,"mainPlaylistEntity"),P;A=(P=R.mainPlaylistEntity)==null?void 0:P[Y];P=[];if(A==null||!A.videos)return P;A=_.x(A.videos);for(Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var E=void 0,z=void 0,c=void 0,M=(E=R)==null?void 0:(z=E.mainPlaylistVideoEntity)==null?void 0:(c=z[Y])==null?void 0:c.video;M&&(Y=_.M6(M).entityId)&&P.push(Y)}return P};
v5b=function(R,A){if(A){var Y=_.mc(R,"mainPlaylistEntity",_.yS(A,"mainPlaylistEntity")),P=_.mc(R,"mainPlaylistDownloadStateEntity",_.yS(A,"mainPlaylistDownloadStateEntity"));R=_.mc(R,"ytMainChannelEntity",_.yS(A,"ytMainChannelEntity"));if(P&&Y)return Object.assign({},{mainPlaylistEntity:Y,mainPlaylistDownloadStateEntity:P},!!R&&{channelEntity:R})}};
ysJ=function(R){return g5V(R).sort(function(A,Y){return Y.addedTimestampMillis-A.addedTimestampMillis}).map(function(A){return A.downloadedPlaylistEntities})};
g5V=function(R){var A=R.mainPlaylistDownloadStateEntity,Y=[];if(!A)return Y;for(var P=_.x(Object.keys(A)),E=P.next();!E.done;E=P.next()){var z=E.value;E=v5b(R,_.M6(z).entityId);var c=void 0;z=Number((c=A[z])==null?void 0:c.addedTimestampMillis);c=isNaN(z)?(0,_.iB)():z;E!==void 0&&Y.push({downloadedPlaylistEntities:E,addedTimestampMillis:c})}return Y};
n5k=function(R){var A,Y=(A=R.mainPlaylistVideoEntity)!=null?A:{};return new Set(ysJ(R).reduce(function(P,E){P=P===void 0?[]:P;var z,c;E==null||(z=E.mainPlaylistEntity)==null||(c=z.videos)==null||c.forEach(function(M){var N;(M=(N=Y[M])==null?void 0:N.video)&&P.push(M)});
return P},[]))};
H_P=function(R){return"downloadedMusicPlaylistEntities"in R};
rs6=function(R){return"mainPlaylistEntity"in R&&"mainPlaylistDownloadStateEntity"in R};
DJ6=function(R){return"videoEntity"in R&&"channelEntity"in R};
UJb=function(R){var A=R.musicPlaylistDownloadMetadataEntity,Y=[];if(!A)return Y;for(var P=_.x(Object.keys(A)),E=P.next();!E.done;E=P.next()){E=E.value;a:{var z=R,c=_.M6(E).entityId;if(c){var M=_.mc(z,"musicPlaylist",_.yS(c,"musicPlaylist"));z=_.mc(z,"musicPlaylistDownloadMetadataEntity",_.yS(c,"musicPlaylistDownloadMetadataEntity"));if(M&&z){M={musicPlaylistEntity:M,musicPlaylistDownloadStateEntity:z};break a}}M=void 0}z=void 0;E=Number((z=A[E])==null?void 0:z.addedTimestampMillis);E=isNaN(E)?(0,_.iB)():
E;M!==void 0&&Y.push({downloadedMusicPlaylistEntities:M,addedTimestampMillis:E})}return Y};
$Jk=function(R){var A=new Set;R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,"musicPlaylistEntity"in Y&&"musicPlaylistDownloadStateEntity"in Y){Y=_.x(Y.musicPlaylistEntity.tracks);for(var P=Y.next();!P.done;P=Y.next())A.add(P.value)}return A};
Xik=function(R,A){if(A){var Y=_.mc(R,"musicTrack",_.yS(A,"musicTrack")),P=_.mc(R,"musicArtist",_.yS(A,"musicArtist"))||{};if((R=E5P(R,A))&&Y&&P)return Object.assign({},{musicTrackEntity:Y,musicArtistEntity:P},R)}};
S7k=function(R){var A=R.musicTrackDownloadMetadataEntity,Y=[];if(!A)return[];A=_.x(Object.keys(A));for(var P=A.next();!P.done;P=A.next()){var E=P.value;P=Xik(R,_.M6(E).entityId);var z=void 0;E=Number((z=_.mc(R,"musicTrackDownloadMetadataEntity",E))==null?void 0:z.addedTimestampMillis);z=isNaN(E)?(0,_.iB)():E;P!==void 0&&Y.push({downloadedMusicEntities:P,addedTimestampMillis:z})}return Y};
WAS=function(R,A){if(!A)return[];if(Object.values(IYk).includes(A))return KAb(R,A);A=_.yS(A,"musicPlaylist");var Y;R=(Y=R.musicPlaylist)==null?void 0:Y[A];Y=[];if(R==null||!R.tracks)return Y;R=_.x(R.tracks);for(A=R.next();!A.done;A=R.next())(A=_.M6(A.value).entityId)&&Y.push(A);return Y};
KAb=function(R,A){var Y=new Set,P=UJb(R).map(function(z){return z.downloadedMusicPlaylistEntities});
P=$Jk(P);P=_.x(P);for(var E=P.next();!E.done;E=P.next())(E=_.M6(E.value).entityId)&&Y.add(E);return jCV(R).downloadedMusicEntities.filter(function(z){var c;if((c=z.musicTrackEntity)!=null&&c.videoId){z=z.musicTrackEntity;if(c=A==="PPOM"?!0:!Y.has(z.videoId))b:switch(z=z.musicVideoType,A){case "PPSE":c=z==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:c=z!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}z=c}else z=!1;return z}).map(function(z){var c;
return(c=z.musicTrackEntity)==null?void 0:c.videoId})};
jCV=function(R){var A=S7k(R).sort(function(Y,P){return P.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return"downloadedMusicEntities"in Y?Y.downloadedMusicEntities:H_P(Y)?Y.downloadedMusicPlaylistEntities:{}});
R=UJb(R).sort(function(Y,P){return P.addedTimestampMillis-Y.addedTimestampMillis}).map(function(Y){return"downloadedMusicEntities"in Y?Y.downloadedMusicEntities:H_P(Y)?Y.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:A,downloadedMusicPlaylistEntities:R}};
fYV=function(R,A){A=_.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?WAS(R,A):TYk(R,A);if(!A.length)return"TRANSFER_STATE_UNKNOWN";A=A.map(function(Y){return Vmu(R,Y)});
return b_k(A)};
b_k=function(R){var A=new Set(R);if(A.has("TRANSFER_STATE_FAILED")&&A.size===1)return"TRANSFER_STATE_FAILED";A.delete("TRANSFER_STATE_FAILED");if(A.has("TRANSFER_STATE_UNKNOWN")&&A.size===1)return"TRANSFER_STATE_PRE_TRANSFER";A.delete("TRANSFER_STATE_UNKNOWN");if(A.has("TRANSFER_STATE_PRE_TRANSFER")&&A.size===1||A.size===0)return"TRANSFER_STATE_PRE_TRANSFER";R=A.has("TRANSFER_STATE_TRANSFERRING");A=A.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return R||A?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Ia=function(R){var A=R.mainVideoDownloadStateEntity,Y=[];if(!A)return[];A=_.x(Object.keys(A));for(var P=A.next();!P.done;P=A.next()){var E=P.value;if(!zSq(R,_.M6(E).entityId)){P=S9(R,_.M6(E).entityId);var z=void 0,c=void 0;E=(c=Number((z=_.mc(R,"mainVideoDownloadStateEntity",E))==null?void 0:z.addedTimestampMillis))!=null?c:(0,_.iB)();P!==void 0&&Y.push({downloadedVideoEntities:P,addedTimestampMillis:E})}}return Y};
pi3=function(R){return Ia(R).sort(function(A,Y){return Y.addedTimestampMillis-A.addedTimestampMillis}).map(function(A){return A.downloadedVideoEntities})};
_.BYb=function(R){var A=n5k(R),Y=_.Kx(R),P=O_8(R),E=Ia(R).filter(function(c){var M,N;if((c==null?void 0:(M=c.downloadedVideoEntities)==null?void 0:(N=M.transferEntity)==null?void 0:N.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var y,m;c=c==null?void 0:(y=c.downloadedVideoEntities)==null?void 0:(m=y.videoEntity)==null?void 0:m.key;return _.v("kevlar_use_library_entity")?c&&(P.has(c)||Y[c]):c&&!A.has(c)}),z=g5V(R).filter(function(c){return fYV(R,c.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.py(E),_.py(z)).sort(function(c,M){return M.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return FA6(c)})};
aYJ=function(R,A){if(A&&AsP(R,A)){var Y,P,E=(P=(Y=_.mc(R,"playbackData",_.yS(A,"playbackData")))!=null?Y:void 0)==null?void 0:P.playerResponseJson;if(E){try{var z=JSON.parse(E);var c=_.mc(R,"transfer",_.yS(A,"transfer")),M=Jsk(R,A);M&&(z=Object.assign({},z,{playerConfig:Object.assign({},z.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+M*1E3}}})}));z.cotn=c==null?void 0:c.cotn}catch(N){}return z}}};
_.hSI=function(R){var A,Y,P;R=(P=(Y=((A=R.downloadsPageViewConfigurationEntity)!=null?A:{})[_.WK])==null?void 0:Y.smartDownloadsOptInBannerVisibility)!=null?P:{};var E;return(E=_.n(R,CSk))!=null?E:{}};
_.Kx=function(R){var A,Y,P;R=(P=(Y=((A=R.mainDownloadsListEntity)!=null?A:{})[_.o56])==null?void 0:Y.downloads)!=null?P:[];A={};Y=_.x(R);for(P=Y.next();!P.done;P=Y.next())R=void 0,A[(R=P.value.videoItem)!=null?R:""]=!0;return A};
kA8=function(R){var A=_.Kx(R);if(Object.keys(A).length===0)return!1;var Y=R.mainVideoEntity;if(!Y)return!0;Y=_.x(Object.keys(Y));for(var P=Y.next();!P.done;P=Y.next()){P=P.value;var E=_.M6(P).entityId;if(A[P]&&!zSq(R,E))return!1}return!0};
_.j9=function(R){var A=_.Kx(R);return Ia(R).sort(function(Y,P){return Y.addedTimestampMillis-P.addedTimestampMillis}).map(function(Y){return Y.downloadedVideoEntities}).filter(function(Y){var P;
return(Y=Y==null?void 0:(P=Y.videoEntity)==null?void 0:P.key)&&!!A[Y]})};
_.Z_k=function(R){var A,Y,P;R=(P=(Y=((A=R.downloadsPageViewConfigurationEntity)!=null?A:{})[_.WK])==null?void 0:Y.downloadsUpsellBannerVisibility)!=null?P:{};var E;return(E=_.n(R,GAl))!=null?E:{}};
FA6=function(R){return"downloadedVideoEntities"in R?R.downloadedVideoEntities:"downloadedPlaylistEntities"in R?R.downloadedPlaylistEntities:{}};
tmk=function(R){var A=_.Kx(R),Y=n5k(R),P=Ia(R).filter(function(E){var z,c;return(E=E==null?void 0:(z=E.downloadedVideoEntities)==null?void 0:(c=z.videoEntity)==null?void 0:c.key)&&!A[E]&&!Y.has(E)});
R=g5V(R);return[].concat(_.py(P),_.py(R)).sort(function(E,z){return z.addedTimestampMillis-E.addedTimestampMillis}).map(function(E){return FA6(E)})};
_.bw=function(R){if(!_.v("kevlar_use_library_entity"))return tmk(R);var A=Ia(R).filter(function(P){var E,z;if(E=P=P==null?void 0:(E=P.downloadedVideoEntities)==null?void 0:(z=E.videoEntity)==null?void 0:z.key){var c,M,N;E=((M=(c=R.mainDownloadsListEntity)==null?void 0:c[cs8])==null?0:(N=M.downloads)==null?0:N.length)?O_8(R).has(P):!1}return E}),Y=g5V(R);
return[].concat(_.py(A),_.py(Y)).sort(function(P,E){return E.addedTimestampMillis-P.addedTimestampMillis}).map(function(P){return FA6(P)})};
wiq=function(R){var A=_.Kx(R),Y=n5k(R);return pi3(R).filter(function(P){var E;return(P=P==null?void 0:(E=P.videoEntity)==null?void 0:E.key)&&!A[P]&&!Y.has(P)})};
uqu=function(R){if(!_.v("kevlar_use_library_entity"))return wiq(R);var A=_.Kx(R),Y=O_8(R);return pi3(R).filter(function(P){var E;return(P=P==null?void 0:(E=P.videoEntity)==null?void 0:E.key)&&!A[P]&&Y.has(P)})};
eSk=function(R,A){A=_.yS(A,"settingEntity");var Y,P,E;return!!((E=(P=((Y=R.settingEntity)!=null?Y:{})[A])==null?void 0:P.settingOptionValue)!=null?E:{}).boolValue};
_.fx=function(R){var A=_.j9(R);if(RSk(A))return 0;var Y=[];A=_.x(A);for(var P=A.next();!P.done;P=A.next()){P=P.value;var E=void 0,z=void 0;if((E=P)==null?0:(z=E.videoEntity)==null?0:z.key)E=_.M6(P.videoEntity.key).entityId,P=R,E=_.yS(E,"mainVideoDownloadStateEntity"),P=_.mc(P,"mainVideoDownloadStateEntity",E),(P=Number(P==null?void 0:P.addedTimestampMillis))&&Y.push(P)}return Math.max.apply(Math,_.py(Y))};
_.px=function(R){return R.ui.richGridMiniMode};
_.FE=function(R){return R.ui.richGridItemsPerRow};
_.q7S=function(R){return R.ui.richGridSlimItemsPerRow};
_.LA3=function(R){return R.ui.guideIsExpanded};
_.BK=function(R){return R.ui.miniplayerIsActive};
dJP=function(R){return R.ui.singleOptionSurveyIsActive};
_.aa=function(R){var A;return((A=R.ui)==null?void 0:A.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.RR8=function(R){return _.aa(R)==="WEB_PAGE_TYPE_WATCH"};
_.AdP=function(R){return _.aa(R)==="WEB_PAGE_TYPE_SHORTS"};
_.YVl=function(R){return R.ui.inlinePreviewIsActive};
_.Prk=function(R){return R.ui.inlinePreviewIsEnabled};
_.E7k=function(R){return R.ui.miniplayerPlaybackState};
_.Cx=function(R){return R.ui.isOnline};
_.zRq=function(R){return R.ui.frostedGlassMode};
_.h0=function(R,A){return Mmk(R.entities,A)};
_.oa=function(R,A){return fYV(R.entities,A)};
i1k=function(R,A){var Y;if(A){var P;R=(P=_.mc(R.entities,"offlineVideoPolicy",_.yS(A,"offlineVideoPolicy")))==null?void 0:P.action}else R=void 0;return(Y=R)!=null?Y:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
lpq=function(R,A){var Y;A?(R=_.mc(R.entities,"offlineVideoPolicy",_.yS(A,"offlineVideoPolicy")),R=Number(R==null?void 0:R.expirationTimestamp)):R=void 0;return(Y=R)!=null?Y:0};
_.xak=function(R){return _.XE(R.entities).length};
cdJ=function(R,A){return S9(R.entities,A)};
O1k=function(R,A){return v5b(R.entities,A)};
kb=function(R,A){return(R=S9(R.entities,A))?_.elk([R]):0};
_.MwV=function(R,A){var Y=_.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(Y){var P=R.entities;var E=WAS(P,A);if(E.length){var z=[];E=_.x(E);for(var c=E.next();!c.done;c=E.next())(c=Xik(P,c.value))&&z.push(c);P=z}else P=[]}else P=QCb(R.entities,A);var M;if(Y){var N=R.entities;A?(A=_.yS(A,"musicPlaylist"),N=(M=N.musicPlaylist)==null?void 0:M[A],M=N!=null&&N.tracks?N.tracks.length:0):M=0}else M=R.entities,A?(A=_.yS(A,"mainPlaylistEntity"),M=(N=M.mainPlaylistEntity)==null?void 0:N[A],M=M!=null&&M.videos?
M.videos.length:0):M=0;return P.length!==M?0:P?qOb(P):0};
_.smJ=function(R){return R.download.isLeaderTab};
_.NRI=function(R,A,Y){if(!A&&Y){var P=R.entities;if(Y){var E=dNV(Y),z,c;A=(c=(z=_.mc(P,"offlineabilityEntity",_.yS(E,"offlineabilityEntity")))==null?void 0:z.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else A="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else z=R.entities,A?(c=dNV(A),A=(E=(P=_.mc(z,"offlineabilityEntity",_.yS(c,"offlineabilityEntity")))==null?void 0:P.addToOfflineButtonState)!=null?E:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):A="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return A};
Vwk=function(R,A){R=R.entities;if(A){A=dNV(A);var Y,P;A=(P=(Y=_.mc(R,"offlineabilityEntity",_.yS(A,"offlineabilityEntity")))==null?void 0:Y.addToOfflineButtonState)!=null?P:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else A="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return A};
_.JdS=function(R){var A=R.entities;R=_.Cx(R);var Y=eSk(A,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.v("kevlar_modern_downloads_page")&&Y)var P=!1;else{var E,z;A=(z=(E=((P=A.downloadsPageViewConfigurationEntity)!=null?P:{})[_.WK])==null?void 0:E.smartDownloadsOptInBannerVisibility)!=null?z:{};P=R?!!A.visibleWithConnection:!!A.visibleWithoutConnection}return P};
_.ydS=function(R){return eSk(R.entities,"SMART_DOWNLOADS_ENABLED")};
_.maP=function(R){return kA8(R.entities)};
TRu=function(R){return _.j9(R.entities).every(function(A){var Y;return(A==null?void 0:(Y=A.transferEntity)==null?void 0:Y.transferState)&&!uek.includes(A.transferEntity.transferState)})};
_.Qmk=function(R){var A,Y,P,E=(P=(Y=((A=R.entities.downloadsPageViewConfigurationEntity)!=null?A:{})[_.WK])==null?void 0:Y.downloadsUpsellBannerVisibility)!=null?P:{};return _.Cx(R)?!!E.visibleWithConnection:!!E.visibleWithoutConnection};
_.v7P=function(R,A){return zSq(R.entities,A)};
g7J=function(R,A){if(A){var Y,P;R=(P=(Y=_.mc(R.entities,"downloadStatusEntity",_.yS(A,"downloadStatusEntity")))==null?void 0:Y.downloadState)!=null?P:"DOWNLOAD_STATE_UNKNOWN"}else R="DOWNLOAD_STATE_UNKNOWN";return R};
GX=function(R,A){return Jsk(R.entities,A)};
Da8=function(R){R=_.n7l(R);var A=R.hours===void 0?0:R.hours,Y=R.minutes===void 0?0:R.minutes,P=R.seconds===void 0?0:R.seconds,E=A>0;R=[];E&&(A=_.H1k(A),R.push(A));A=E;A=A===void 0?!1:A;Y=(["af","be","lt"].includes(_.Zn)||A)&&Y<10?rd8().format(Y):(new Intl.NumberFormat("en-u-nu-latn")).format(Y);R.push(Y);Y=rd8().format(P);R.push(Y);Y=":";"da fi id si sr sr-Latn".split(" ").includes(_.Zn)&&(Y=".");return R.join(Y)};
_.n7l=function(R){var A=R.hours||0,Y=R.minutes||0,P=R.seconds||0;A=P+Y*60+A*3600+(R.days||0)*86400+(R.weeks||0)*604800+(R.months||0)*2629800+(R.years||0)*31557600;if(A<=0)return{hours:0,minutes:0,seconds:0};R=A;A=Math.floor(R/3600);R%=3600;Y=Math.floor(R/60);P=Math.floor(R%60);return{hours:A,minutes:Y,seconds:P}};
_.H1k=function(R){R=(new Intl.NumberFormat("en-u-nu-latn")).format(R);var A=["fr"],Y="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(_.Zn)?R.replace(",","\u00a0"):A.includes(_.Zn)?R.replace(",","\u202f"):Y.includes(_.Zn)?R.replace(",","."):R};
rd8=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
UaV=function(R){try{return(new _.t0(5)).format(R)}catch(A){}};
wF=function(R){return{thumbnailOverlayDownloadingRenderer:{state:R}}};
$a8=function(R){if(R=UaV(R))return{thumbnailOverlaySidePanelRenderer:{text:_.iw(R),icon:{iconType:"PLAYLISTS"}}}};
Xdq=function(){var R=_.vk("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.iw(R),icon:{iconType:"PLAY_ALL"}}}};
SVI=function(R){R=_.uw(R,2);return _.Zn!=="ru"&&_.Zn!=="es_419"&&_.Zn!=="es-419"&&_.Zn!=="es"&&_.Zn!=="es_US"&&_.Zn!=="es-US"&&_.Zn!=="fr"&&_.Zn!=="pl"&&_.Zn!=="it"&&_.Zn!=="nl"&&_.Zn!=="uk"&&_.Zn!=="fr_CA"&&_.Zn!=="fr-CA"||R===""?R:R[0].toLocaleUpperCase()+R.substring(1)};
K$k=function(R){return function(A){var Y=R(),P=_.uw(A,Y.dateFormat);A=_.uw(A,Y.timeFormat);var E=Ipk.DATETIMEFORMATS[Y.joinerStyle];E=E.replace(/'(?!')/g,"");E=E.replace("{0}",A);E=E.replace("{1}",P);return Y.capitalize(E)}};
W$k=function(R){return R?typeof R.seconds==="string"&&(R.nanos===void 0||typeof R.nanos==="number"):!1};
jmV=function(R){return new Date(Number(R.seconds)*1E3+(R.nanos||0)*1E-6)};
_.uw=function(R,A){if(typeof R.getTime==="function")R={date:R};else if(W$k(R))R={date:jmV(R)};else if(typeof W$k(R.timestamp)&&typeof R.i18nInternalSecondsEastOfUtc==="number")R={date:jmV(R.timestamp),timeZone:e9(-R.i18nInternalSecondsEastOfUtc/60)};else throw Error("Ef`"+JSON.stringify(R));var Y=R;R=Y.date;Y=Y.timeZone;A=b1S(A).format(R,Y);_.Zn==="zh-TW"&&(R=Y?Number(b1S("H").format(R,Y)):R.getHours(),A=R<5?A.replace("\u4e0a\u5348","\u51cc\u6668"):R<8?A.replace("\u4e0a\u5348","\u65e9\u4e0a"):R<12?
A.replace("\u4e0a\u5348","\u4e0a\u5348"):R<13?A.replace("\u4e0b\u5348","\u4e2d\u5348"):R<19?A.replace("\u4e0b\u5348","\u4e0b\u5348"):A.replace("\u4e0b\u5348","\u665a\u4e0a"));return A};
b1S=function(R){if(fpk.has(R))return fpk.get(R);var A=pd6(R);A=F$J(A);BRb!==!0&&(BRb=!0);apJ=!0;apJ=!1;A=new q6(A,Ipk);fpk.set(R,A);return A};
pd6=function(R){return(new q6(R,Ipk)).patternParts_.map(function(A){return A.type===0?"'"+A.text+"'":A.text}).join("")};
F$J=function(R){return _.Zn==="en"||_.Zn==="es_US"||_.Zn==="es-US"?R:R.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(A,Y,P){return"H".repeat(Y.length)+P})};
wdI=function(R,A){CrS||(_.Lx=_.hRk,CrS=new o7V);var Y=CrS;a:if(R=kDb(R),A=kDb(A||new Date),R>A)Y=R.getTime()-A.getTime()>6048E5?_.uw(R,1):GDS(R);else{for(var P=0;Z1k(R,12*(P+1))<A;)++P;if(P>0)Y=Y.format(-P,0);else{for(P=0;Z1k(R,P+1)<A;)++P;if(P>0)Y=Y.format(-P,2);else{R=A.getTime()-R.getTime();A=_.x(twk);for(P=A.next();!P.done;P=A.next()){P=P.value;var E=P.unit,z=Math.floor(R/P.unitDuration);if(z>=(P.threshold===void 0?1:P.threshold)){Y=Y.format(-z,E);break a}}Y=Y.format(-0,7)}}}return Y};
kDb=function(R){if(typeof R.getTime==="function")return R;if(W$k(R))return jmV(R);throw Error("Ff`"+JSON.stringify(R));};
Z1k=function(R,A){for(var Y=0,P;;++Y)if(P=new Date(R.getFullYear(),R.getMonth()+A,R.getDate()-Y,R.getHours(),R.getMinutes(),R.getSeconds()),P.getMonth()===(R.getMonth()+A)%12)return P};
_.dF=function(R){return{runs:[{text:R}]}};
_.R4=function(R){if(R&&R.simpleText)return R.simpleText;var A="";if(R&&R.runs)for(var Y=0;Y<R.runs.length;Y++)R.runs[Y].text&&(A+=R.runs[Y].text);return A};
eR3=function(R,A,Y,P){return R.videoEntity&&!R.policyEntity&&Y!=="DOWNLOAD_STATE_FAILED"?[wF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Dn(R.policyEntity)&&A!=="TRANSFER_STATE_FAILED"&&A!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?A==="TRANSFER_STATE_PAUSED_BY_USER"?[wF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.UQ(A)?[wF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:R.videoEntity.lengthSeconds?usl(R.videoEntity.lengthSeconds,P):[]:
[wF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
usl=function(R,A){var Y=[{thumbnailOverlayTimeStatusRenderer:{text:_.iw(Da8({seconds:R})),style:"DEFAULT"}}];A&&(R=A<=0||R<=0?0:A>=R?100:Math.ceil(A*100/R),R>0&&Y.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:R}}));return Y};
qV3=function(R,A,Y,P,E){if(A==="TRANSFER_STATE_UNKNOWN"||!R)return{};if(_.UQ(A)||A==="TRANSFER_STATE_PRE_TRANSFER")var z=[wF("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var c,M;if(A==="TRANSFER_STATE_COMPLETE"&&((c=R.mainPlaylistEntity)==null?0:(M=c.videos)==null?0:M.length)){if(_.v("web_modern_collections_v2")){var N;var y=(z=R.mainPlaylistEntity)==null?void 0:(N=z.videos)==null?void 0:N.length;z=(z=UaV(y))?{thumbnailOverlayBottomPanelRenderer:{text:_.iw(z),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var m;z=$a8((y=R.mainPlaylistEntity)==null?void 0:(m=y.videos)==null?void 0:m.length)}var T;z=[Xdq(),Object.assign({},(T=z)!=null?T:{})]}else z=[]}T=z;a:if(A==="TRANSFER_STATE_PRE_TRANSFER")Y=lw(_.vk("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(A==="TRANSFER_STATE_TRANSFER_IN_QUEUE")Y=lw(_.vk("WAITING_TO_DOWNLOAD"));else if(_.UQ(A))Y=Math.floor(Y*100).toString(),Y=lw(_.vk("DOWNLOADING_PERCENT",{percent:Y},"Downloading... "+Y+"%"));else{if(P&&(_.v("playlist_is_offline_selector_killswitch")&&
(E=_.is().resolve(_.wM).isNetworkAvailable()),E)){Y=zl8(_.vk("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),PoV(P));break a}Y=void 0}A=A==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.vk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},T.length?{thumbnailOverlays:T}:{},Y?{viewPlaylistText:Y}:{viewPlaylistText:_.dF("")},A.length?{badges:A}:{})};
L$q=function(R,A,Y,P,E,z){if(A==="TRANSFER_STATE_UNKNOWN"||!R)return{};if(P==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var c=eR3(R,A,P);if(R.videoEntity&&!R.policyEntity&&P!=="DOWNLOAD_STATE_FAILED"){var M=_.vk("WAITING_TO_DOWNLOAD");if(M)return{shortViewCountText:_.dF(M),publishedTimeText:void 0,thumbnailOverlays:c}}if(!Dn(R.policyEntity)){z=R.policyEntity&&!LU8(R.policyEntity)?_.vk("DOWNLOAD_EXPIRED",{},"Download expired"):
_.vk("TRANSFER_FAILED",{},"Download failed");var N;if((N=R.policyEntity)==null?0:N.shortMessageForDisabledAction)z=R.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:lw(z),publishedTimeText:void 0,thumbnailOverlays:c}}if(A==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.dF(_.vk("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:c};if(A==="TRANSFER_STATE_FAILED"||A==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.dF(_.vk("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:c};if(A==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(N=_.vk("WAITING_TO_DOWNLOAD"),P==="DOWNLOAD_STATE_PAUSED"&&(N=_.vk("DOWNLOAD_PAUSED",{},"Download paused")),N))return{shortViewCountText:_.dF(N),publishedTimeText:void 0,thumbnailOverlays:c};if(_.UQ(A))return R=Math.floor(Y*100).toString(),{shortViewCountText:_.dF(_.vk("DOWNLOADING_PERCENT",{percent:R},"Downloading... "+R+"%")),publishedTimeText:void 0,thumbnailOverlays:c};A=void 0;R.videoEntity.publishedTimestampMillis&&
(A=new Date,E&&(A=new Date(E)),A=lw(wdI(new Date(Number(R.videoEntity.publishedTimestampMillis)),A)));E=[];_.v("kevlar_woffle_badge_killswitch")||(E=[{metadataBadgeRenderer:{label:_.vk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var y;R=lw((y=R.videoEntity.localizedStrings)==null?void 0:y.viewCount);return Object.assign({},z?{shortViewCountText:void 0}:{shortViewCountText:R},z?{}:{publishedTimeText:A},{badges:E,thumbnailOverlays:c})};
R13=function(R,A){R=R===void 0?dau:R;switch(A.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:A.payload.playlistId,inviteLinkURL:A.payload.inviteLinkUrl};default:return R}};
Yhb=function(R,A){R=R===void 0?AQk:R;switch(A.type){case "SET_CURRENT_FORM_ID":return A=A.payload.formId,R.currentFormId===A?R:{currentFormId:A,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var Y=A.payload;A=Y.groupId;Y=Y.command;if(R.currentFormId){var P=Object.assign({},R.commandsMap);P[A]=Y;R=Object.assign({},R,{commandsMap:P})}return R;case "RESET_COMMAND_MAP":return Object.assign({},R,{commandsMap:{}});default:return R}};
Euu=function(R,A){R=R===void 0?PFV:R;switch(A.type){case "UPDATE_CANVAS_MODE":return Object.assign({},R,{currentMode:A.payload.currentMode});default:return R}};
pX8=function(R,A){R=R===void 0?z1u:R;switch(A.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},R,{guideIsExpanded:A.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},R,{scrollAtTop:A.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},R,{guideIsVisibleButNotPersistent:A.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},R,{miniplayerIsActive:A.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},R,{singleOptionSurveyIsActive:A.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},R,{slimlineSurveyRatingSelectedIndex:A.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},R,{richGridMiniMode:A.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},R,{richGridItemsPerRow:A.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},R,{richGridSlimItemsPerRow:A.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},R,{richGridContainerWidth:A.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},R,{richGridStyle:A.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},R,{currentPageType:A.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},R,{inlinePreviewIsActive:A.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},R,{inlinePreviewIsEnabled:A.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},R,{darkModeIsEnabled:A.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
R,{miniplayerPlaybackState:A.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},R,{tabGesturesIsActive:A.payload});case "SET_ONLINE_STATUS":return Object.assign({},R,{isOnline:A.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},R,{chipBarIsSticky:A.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},R,{frostedGlassMode:A.payload});default:return R}};
Btb=function(R,A){R=R===void 0?F4S:R;switch(A.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},R,{transcription:A.payload});case "SET_OVERLAY_STATE":return Object.assign({},R,{overlay:A.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return R}};
umu=function(){return Qz(Object.assign({},{continuation:aW8,download:CF3,canvas:Euu,reportChannelAbuse:h1J,share:ouq,talkToRecs:kuJ,ui:pX8,voiceSearch:Btb,watch:Gu3,ypc:ZHS,shorts:tVk,radioButtonGroup:Yhb,collabInviteLink:R13},wXk))};
L43=function(){return _.v("web_player_entities_middleware")?new Af(umu(),[e1k,qhl]):new Af(umu(),[e1k])};
_.Yp=function(){dU8||(dU8=L43());return dU8};
REk=function(R,A,Y){if(R.length)return{titleText:_.iw(A!=null?A:_.vk("DOWNLOADS",void 0,"Downloads")),contents:R.map(function(P){var E=P.videoEntity;P={videoId:E.videoId,title:lw(E.title),shortBylineText:lw(P.channelEntity.title),thumbnail:E.thumbnail};var z=E.videoId?GX(_.Yp().getState(),E.videoId):0;E.videoId&&Y?P.navigationEndpoint=_.zX(E.videoId,Y,void 0,void 0,z):E.videoId&&(P.navigationEndpoint=YOJ(E.videoId,z,E.lengthSeconds));E.lengthSeconds&&(P.thumbnailOverlays=usl(E.lengthSeconds,z));return{playlistPanelVideoRenderer:P}}),
totalVideos:R.length}};
ABS=function(R){return(R=(0,_.BO.getValueByKeys)(R,"playlistId"))?{playlistId:R}:null};
Ybq=function(){return{}};
POu=function(R,A){return new _.yR(function(Y,P){R.then(function(E){if(E){if(E=A(E))return Y(E);P()}},P)})};
EMk=function(R){var A,Y,P,E=(A=R.contents)==null?void 0:(Y=A.twoColumnWatchNextResults)==null?void 0:(P=Y.autoplay)==null?void 0:P.autoplay,z,c,M;A=(z=R.contents)==null?void 0:(c=z.twoColumnWatchNextResults)==null?void 0:(M=c.playlist)==null?void 0:M.playlist;return E&&A&&A.playlistId?{rawResponse:R,autoplayRenderer:E,playlistPanelRenderer:A,playlistId:A.playlistId}:null};
ilk=function(R){var A=A===void 0?"UNKNOWN_INTERFACE":A;if(R.length===1)return R[0];var Y=zES[A];if(Y){Y=new RegExp(Y);for(var P=_.x(R),E=P.next();!E.done;E=P.next())if(E=E.value,Y.exec(E))return E}var z=[];Object.entries(zES).forEach(function(c){var M=_.x(c);c=M.next().value;M=M.next().value;A!==c&&z.push(M)});
Y=new RegExp(z.join("|"));R.sort(function(c,M){return c.length-M.length});
P=_.x(R);for(E=P.next();!E.done;E=P.next())if(E=E.value,!Y.exec(E))return E;return R[0]};
_.Pr=function(R){return"/youtubei/v1/"+ilk(R)};
_.Ed=function(R){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:R}}}}};
_.z9=function(R){return _.Ed(_.dF(R))};
lmP=function(R,A){var Y={mode:"NORMAL"};R&&(Y.autoplayVideo=R.navigationEndpoint,Y.nextButtonVideo=R.navigationEndpoint);A&&(Y.previousButtonVideo=A.navigationEndpoint);return Y};
Olk=function(R,A,Y){if(!Y||!Y.sets)return{sets:[lmP(R,A)]};var P=Y.sets.find(function(c){return c.mode==="NORMAL"}),E=(0,_.BO.unsafeClone)(Y);
if(!P)return E.sets.push(lmP(R,A)),E;if(!R)return Y;P=_.BO.getValueByKeys.apply(null,[P].concat(_.py(xvP)));var z=_.BO.getValueByKeys.apply(null,[R].concat(_.py(cBb)));if(P===z)return Y;E.sets=E.sets.filter(function(c){return c.mode!=="NORMAL"});
E.sets.push(lmP(R,A));return E};
MtI=function(R){return!!R.playlistPanelVideoRenderer&&!R.playlistPanelVideoRenderer.unplayableText};
sJV=function(R){return!!R.playlistPanelVideoRenderer&&!!R.playlistPanelVideoRenderer.title};
NIk=function(R,A){if(A.contents&&!(R>=A.contents.length)&&(R=A.contents.slice(R).find(MtI)))return R.playlistPanelVideoRenderer};
Vtb=function(R,A){if(A.contents)return(A=A.contents.find(function(Y){return!!Y.playlistPanelVideoRenderer&&Y.playlistPanelVideoRenderer.videoId===R}))?A.playlistPanelVideoRenderer:void 0};
JBu=function(R,A){return A.contents?A.contents.findIndex(function(Y){return!!Y.playlistPanelVideoRenderer&&Y.playlistPanelVideoRenderer.videoId===R}):-1};
yBk=function(R,A){return A.contents?A.contents.findIndex(function(Y){return!!Y.playlistPanelVideoRenderer&&Y.playlistPanelVideoRenderer.playlistSetVideoId===R}):-1};
mvk=function(R,A){R.contents&&A!==-1&&R.contents.splice(A,1).length===1&&R.totalVideos!==void 0&&(--R.totalVideos,delete R.videoCountText)};
_.TIV=function(R){var A=[];if(!R||!R.contents)return A;R=_.x(R.contents);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,Y.playlistPanelVideoRenderer&&Y.playlistPanelVideoRenderer.videoId&&A.push(Y.playlistPanelVideoRenderer.videoId);return A};
_.QJ6=function(R){if(R&&R.contents)return(R=R.contents.find(function(A){return!!A.playlistPanelVideoRenderer&&!!A.playlistPanelVideoRenderer.selected})||R.contents[R.currentIndex])?R.playlistPanelVideoRenderer:void 0};
vMl=function(R,A,Y,P,E,z,c){E=E===void 0?!1:E;z=z===void 0?!1:z;c=c===void 0?!1:c;if(R.contents&&R.contents.length!==0){P&&(R.contents=R.contents.filter(P));P=R.contents.length;for(var M=0;M<P;M++){var N=R.contents[M].playlistPanelVideoRenderer;N&&(M===A?(z&&delete N.menu,N.indexText=_.dF("\u25b6")):E||R.isInfinite||N.indexText===void 0?delete N.indexText:N.indexText=_.dF((M+1+Y).toString()))}R.currentIndex=A+Y;c&&(delete R.videoCountText,R.totalVideos=P)}};
_.ik=function(R){R=gMJ(R);if(R){var A=R.length;var Y=-28%A;Y<0&&(Y=A+Y);R=R.slice(A-Y)+R.slice(0,A-Y)}else R="";Y="";for(A=0;A<R.length&&R[A]!==nM6;A++)Y+=R[A];return Y};
_.Hlk=function(R,A){var Y=document.body;A=A===void 0?function(M){return M}:A;
var P,E=null;R=_.x(R);for(P=R.next();!P.done;P=R.next()){var z=P.value;P="div";z[2]&&(P=A(z[2]));P=document.createElement(P);E||(E=P);var c=z[0];z=z[1];c&&(P.id=A(c));if(z)for(z=_.x(z),c=z.next();!c.done;c=z.next())P.classList.add(A(c.value));Y.appendChild(P);Y=P}return[E,Y]};
rB8=function(R,A){for(var Y="",P=0;P<A;P++)Y+=R.charAt(Math.floor(Math.random()*R.length));return Y};
lk=function(R){return rB8("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",R)};
xp=function(R){return rB8("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",R)};
cr=function(R){return rB8("0123456789",R)};
Od=function(){var R=performance.now(),A=new Date;var Y="2."+A.getFullYear()+String(A.getMonth()+1).padStart(2,"0")+String(A.getDate()).padStart(2,"0");for(var P,E=Math.floor(Math.random()*11)+15,z=[],c=0;c<E;c++)z.push(Math.floor(Math.random()*26476865)+24547720);P=z.join(",");var M=lk(10),N=lk(100),y=lk(102),m=lk(106),T=lk(108),Q=lk(11),g=lk(1140),r=lk(123),I=lk(14),b=lk(16),p=lk(1900),h=lk(23),L=lk(26),Z=lk(34),w=lk(397),t=lk(44),d=lk(5),Jk=lk(72),Nb=lk(74),Qk=lk(75),H3=lk(88),nu=lk(91),hk="rr4---sn-q4flrney rr4---sn-5hnekn7k rr4---sn-q4flrnl7 rr5---sn-q4fzen7y rr3---sn-hgn7rn7k rr2---sn-q4fl6ns7 rr5---sn-q4flrnss rr1---sn-q4fl6nd6 rr5---sn-ntq7yns7 rr2---sn-q4flrnee rr2---sn-q4fl6n6y rr5---sn-t0a7ln7d rr5---sn-q4fl6n6s rr2---sn-t0a7ln7d rr2---sn-5hnekn76 rr4---sn-q4fzen7l rr1---sn-5hneknek rr5---sn-aigl6nsd rr5---sn-q4fl6ndl rr1---sn-5hne6nsz".split(" ");
var FV=hk[Math.floor(Math.random()*hk.length)];var i8=(new Date("2010-01-01")).getTime();var fD=(new Date(i8+Math.random()*((new Date).getTime()-i8))).toISOString().split("T")[0];for(var NG,d8=[],mS=0;mS<4;mS++)d8.push(Math.floor(Math.random()*100));NG=d8.join(".");var V7=Number(cr(5)),KD=Number(cr(6)),UW=Number(cr(7)),eH=Number(cr(9)),zS=cr(1),RA=cr(10),vS=cr(16),Mg=cr(19),gf=cr(2),A9=cr(20),le=cr(21),RH=cr(3),OA=cr(4),wf=cr(5),mm=cr(6),$Z=cr(7),Xb=cr(8),go=cr(9);var JO=rB8("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var yN=[xp(5),xp(5),xp(5)].join("%2C"),Ks=[cr(3),cr(5),cr(5)].join("%2C"),X4=xp(0),hE=xp(1),Ab=xp(10),G0=xp(108),xD=xp(11),sK=xp(12),sp=xp(13),NI=xp(14),pQ=xp(15),oG=xp(16),EQ=xp(17),XV=xp(18),pu=xp(19),GS=xp(2),Q7=xp(20),sW=xp(22),jc=xp(23),ro=xp(24),HS=xp(266),nD=xp(3),bi=xp(30),Q$=xp(34),y7=xp(35),Up=xp(36),IN=xp(4),aR=xp(40),oN=xp(43),ka=xp(47),lK=xp(5),NM=xp(6),e5=xp(7),Jz=xp(75),w8=xp(8),T0=xp(80),SG=xp(9),li="https://www."+xp(12)+".com",VX={},uG={},hl={},qf={},UJ={},nz={},HH={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:P}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:Y},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+xp(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:Y},{key:"client.name",value:"WEB"},{key:"client.fexp",value:P}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:le+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+xp(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:aR,ypcGetOfflineUpsellEndpoint:{params:T0}},trackingParams:y7+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&cnr="+gf+"&ratebypass=yes&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&c=WEB&txp="+$Z+"&n="+b+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:KD,width:640,height:360,lastModified:vS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$Z,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+Ks+"&mn="+
yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&cnr="+gf+"&ratebypass=yes&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&c=WEB&txp="+$Z+"&n="+b+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+G0+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:KD,width:1280,
height:720,lastModified:vS,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$Z,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+Ks+"&mn="+yN+"&ms="+
yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+go+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:UW,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:go,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:UW,approxDurationMs:$Z},{itag:248,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+Ks+"&mn="+yN+"&ms="+yN+"&mv="+
hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+go+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:UW,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:go,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:UW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:399,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+go+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:UW,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:go,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:UW,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:136,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+go+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:UW,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:go,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KD,approxDurationMs:$Z},{itag:247,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+Ks+"&mn="+
yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+go+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:UW,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:go,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:398,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+go+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:UW,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:go,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:135,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:KD,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KD,approxDurationMs:$Z},{itag:244,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+Ks+"&mn="+
yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+G0+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:KD,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:397,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:KD,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:134,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:KD,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KD,highReplication:!0,approxDurationMs:$Z},{itag:243,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:KD,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:396,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:KD,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:133,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:KD,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KD,approxDurationMs:$Z},{itag:242,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+Ks+"&mn="+
yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:KD,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:395,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:KD,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:KD,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:160,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:KD,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:V7,approxDurationMs:$Z},{itag:278,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+Ks+"&mn="+
yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+T+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/webm; codecs="vp9"',bitrate:KD,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:V7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:394,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&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="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=video%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:V7,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:V7,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$Z},{itag:140,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=audio%2Fmp4&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:KD,
initRange:{start:"0",end:"631"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KD,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$Z,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+
gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=audio%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+$Z+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/webm; codecs="opus"',bitrate:V7,initRange:{start:"0",end:"265"},indexRange:{start:RH,
end:OA},lastModified:vS,contentLength:$Z,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:V7,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$Z,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=audio%2Fwebm&ns="+
ro+"&gir="+nD+"&clen="+$Z+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+m+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/webm; codecs="opus"',bitrate:V7,initRange:{start:"0",end:"265"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:$Z,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:V7,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$Z,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+FV+".googlevideo.com/videoplayback?expire="+RA+"&ei="+h+"&ip="+NG+"&id=o-AF"+oN+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+Ks+"&mn="+yN+"&ms="+yN+"&mv="+hE+"&mvi="+zS+"&pl="+gf+"&initcwndbps="+$Z+"&siu="+zS+"&spc="+t+"&vprv="+zS+"&svpuc="+zS+"&mime=audio%2Fwebm&ns="+ro+"&gir="+nD+"&clen="+Xb+"&dur="+Xb+"&lmt="+vS+"&mt="+RA+"&fvip=3&keepalive="+nD+"&c=WEB&txp="+
$Z+"&n="+oG+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+N+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+T,mimeType:'audio/webm; codecs="opus"',bitrate:KD,initRange:{start:"0",end:"265"},indexRange:{start:RH,end:OA},lastModified:vS,contentLength:Xb,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:KD,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$Z,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="+go+"&docid="+Q+"&ei="+h+"&feature="+M+"&fexp="+X4+"&ns="+GS+"&plid="+b+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+hE+"&el="+Ab+"&len="+OA+"&of="+sW+
"&uga="+gf+"&vm="+HS},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+go+"&docid="+Q+"&ei="+h+"&feature="+M+"&fexp="+X4+"&ns="+GS+"&plid="+b+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+hE+"&el="+Ab+"&len="+OA+"&of="+sW+"&uga="+gf+"&vm="+HS},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+go+"&docid="+Q+"&ei="+h+"&feature="+M+"&fexp="+X4+"&ns="+GS+"&plid="+b+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
hE+"&el="+Ab+"&len="+OA+"&of="+sW+"&uga="+gf+"&vm="+HS},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+h+"&m="+H3+"&oid="+sW+"&plid="+b+"&pltype="+e5+"&ptchn="+sW+"&ptk="+I+"&video_id="+Q},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+go+"&docid="+Q+"&ei="+h+"&event="+NI+"&feature="+M+"&fexp="+X4+"&ns="+GS+"&plid="+b+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+hE},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+Q+"&ei="+h+"&feature="+
M+"&len="+OA+"&ns="+GS+"&plid="+b+"&ver="+zS,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+nD+"&opi="+go+"&xoaf="+zS+"&hl="+GS+"&ip="+NG+"&ipbits="+zS+"&expire="+RA+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+NG+"&key="+nD+"&lang="+d,name:{simpleText:e5},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+nD+"&opi="+go+"&xoaf="+zS+"&hl="+GS+"&ip="+NG+"&ipbits="+zS+"&expire="+RA+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+NG+"&key="+nD+"&kind="+nD+"&lang="+GS,name:{simpleText:EQ},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:xD,title:xD,lengthSeconds:"1155",keywords:[lK,pu,XV,IN],
channelId:ro,isOwnerViewing:!1,shortDescription:sp,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Q$,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Q$,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
Q+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:$Z,author:sp,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:$Z,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+sW+"/featured_channel.jpg?v="+w8,width:40,height:40}]},trackingParams:y7+"=",navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"/channel/"+ro,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ro}},channelName:sp,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:pQ}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ro,showPreferences:!1,subscribedButtonText:{runs:[{text:NI}]},unsubscribedButtonText:{runs:[{text:EQ}]},trackingParams:y7+"=",unsubscribeButtonText:{runs:[{text:IN}]},serviceEndpoints:[{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ro],params:w8}},{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:aR,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:y7+"=",dialogMessages:[{runs:[{text:NM},{text:w8},{text:xD}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:IN}]},serviceEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ro],params:w8}},accessibility:{label:EQ},trackingParams:y7+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:SG}]},accessibility:{label:sp},trackingParams:y7+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:NM}},unsubscribeAccessibility:{accessibilityData:{label:SG}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:Xb},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ro],params:w8}},unsubscribeCommand:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ro],params:w8}},addToWatchLaterCommand:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:xD,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:xD}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Q+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Up+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
Q+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+xD,width:1280,height:720},title:{simpleText:IN},description:{simpleText:oG},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+NI,externalChannelId:ro,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:$Z,category:"Travel & Events",publishDate:fD,ownerChannelName:sp,uploadDate:fD}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:NI},trackingParams:y7+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:aR,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:y7+"="}}],headerText:{simpleText:NI},icon:{infoCardIconRenderer:{trackingParams:y7+"="}},closeButton:{infoCardIconRenderer:{trackingParams:y7+"="}},trackingParams:y7+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:y7+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+xD+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:JO,interpreterSafeUrl:(VX.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+bi+".js",VX),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:sK},{text:Ab,bold:!0}]},endpoint:{clickTrackingParams:aR,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:y7+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:lK}]},actionButton:{buttonRenderer:{text:{runs:[{text:pu}]},navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Q,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Q,target:"TARGET_NEW_WINDOW"}},trackingParams:y7+"="}},trackingParams:y7+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jk+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+Jk+"=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:$Z,endMs:$Z,title:{accessibility:{accessibilityData:{label:Q7}},simpleText:pQ},metadata:{simpleText:oG},callToAction:{simpleText:NI},dismiss:{simpleText:sK},endpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"/channel/"+ro,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ro}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:sK}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ro,showPreferences:!1,
subscribedButtonText:{runs:[{text:XV}]},unsubscribedButtonText:{runs:[{text:pQ}]},trackingParams:y7+"=",unsubscribeButtonText:{runs:[{text:sp}]},serviceEndpoints:[{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ro],params:w8}},{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:aR,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:y7+
"=",dialogMessages:[{runs:[{text:pu},{text:SG},{text:w8}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:SG}]},serviceEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ro],params:w8}},accessibility:{label:xD},trackingParams:y7+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:xD}]},
accessibility:{label:Q7},trackingParams:y7+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:xD}},unsubscribeAccessibility:{accessibilityData:{label:SG}}}},trackingParams:y7+"=",isSubscribe:!0,id:A9}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Z,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Q$,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Z,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Up+"G&rs="+Z,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:$Z,endMs:$Z,title:{accessibility:{accessibilityData:{label:pu}},simpleText:sK},metadata:{simpleText:w8},endpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
xD,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:xD,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+FV+".googlevideo.com/videoplayback?source=youtube&oeis="+zS+"&c=WEB&oad="+OA+"&ovd="+OA+"&oaad="+wf+"&oavd="+wf+"&ocs="+RH+"&oewis="+zS+"&oputc="+zS+"&ofpcc="+zS+"&siu="+zS+"&msp="+zS+"&odepv="+zS+
"&id=o-AF"+oN+"&ip="+NG+"&initcwndbps="+$Z+"&mt="+RA+"&oweuc="+X4}}}}},trackingParams:y7+"=",id:A9,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:lK}},simpleText:e5},style:"DEFAULT"}}]}}],startMs:$Z,trackingParams:y7+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:zS,offsetEndMilliseconds:wf},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+go+";dc_trk_cid="+go+";dc_dbm_token="+T+";ord="+RA+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+RH+";dc_sk="+zS+";dc_ctype="+gf+";dc_ref=http://www.youtube.com/video/"+xD+";dc_pubid="+zS+";dc_btype=23?gclid="+nu+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+zS+"&ns="+zS+"&event="+zS+"&device="+zS+"&content_v="+Q+"&el="+Ab+"&ei="+h+"&devicever="+Y+"&bti="+$Z+"&format="+mm+"&break_type="+zS+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+zS+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+NG+"&slot_pos="+zS+"&slot_len="+zS+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+Ks+"&ad_len="+wf+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
xD+"&aqi="+h+"&ad_rmp="+zS+"&sli="+zS}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+
";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+$Z+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&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"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&ctype="+RH+"&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"+
g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_engaged_view&ctype="+RH+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
go+";dc_trk_cid="+go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+";dc_rui="+zS+";dc_exteid="+Mg+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+jc+"&ad_cpn=[AD_CPN]&id="+NM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NM+"&dc_pubid="+zS+"&dc_exteid="+A9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+jc+"&ad_cpn=[AD_CPN]&id="+NM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+zS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NM+"&avm="+zS+"&dc_pubid="+zS+"&dc_exteid="+
A9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&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="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
y+"&sig="+jc+"&ad_cpn=[AD_CPN]&id="+NM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+zS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NM+"&dc_pubid="+zS+"&dc_exteid="+A9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:aR,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+
RH+"&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/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:y7+"="},trackingParams:y7+
"=",templatedCountdown:{templatedAdText:{text:pu,isTemplated:!0,trackingParams:y7+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:NM,isTemplated:!1,trackingParams:y7+"="},trackingParams:y7+"="}},trackingParams:y7+"=",skipOffsetMilliseconds:5E3}},trackingParams:y7+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:e5},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:y7+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:NM,isTemplated:!1,trackingParams:y7+"="},trackingParams:y7+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:pu,isTemplated:!0,trackingParams:y7+"="}},trackingParams:y7+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:aR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(uG.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+GS+"&origin=www.youtube.com&ata_theme="+IN,uG),trackingParams:y7+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:y7+"="}},hoverText:{runs:[{text:w8}]},trackingParams:y7+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ka+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:y7+"="},headline:{text:w8,isTemplated:!1,trackingParams:y7+"="},description:{text:lK,
trackingParams:y7+"="},actionButton:{buttonRenderer:{text:{simpleText:xD},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+go+";dc_trk_cid="+go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:y7+"="}},startMs:zS,trackingParams:y7+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:e5},elementId:pu}},elementId:xD,trackingParams:y7+"=",legacyInfoCardVastExtension:IN,sodarExtensionData:{siub:w8,bgub:NM,scs:pQ,bgp:sp},externalVideoId:xD,adLayoutLoggingData:{serializedAdServingDataEntry:e5},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ka+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:y7+"="},
headline:{text:EQ,isTemplated:!1,trackingParams:y7+"="},description:{text:pQ,isTemplated:!1,trackingParams:y7+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:SG},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+go+";dc_trk_cid="+go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+";dc_rui="+zS+";dc_exteid="+
A9+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+
zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:y7+"="}},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+go+";dc_trk_cid="+
go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+
r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:y7+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:y7+"="},abandonCommands:{commands:[{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&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="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+
zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:aR,commandExecutorCommand:{commands:[{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:EQ,isTemplated:!1,trackingParams:y7+
"="},trackingParams:y7+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pu},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+$Z+";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="+go+";dc_trk_cid="+go+";ord="+RA+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+RH+";dc_sk="+zS+";dc_ctype="+gf+";dc_ref=http://www.youtube.com/video/"+xD+";dc_pubid="+zS+";dc_btype=23?gclid="+nu+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+zS+"&ns="+zS+"&event="+zS+"&device="+zS+"&content_v="+Q+"&el="+Ab+"&ei="+h+"&devicever="+Y+"&bti="+$Z+"&format="+mm+"&break_type="+zS+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+zS+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+NG+"&slot_pos="+zS+"&slot_len="+zS+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
Ks+"&ad_len="+wf+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+xD+"&aqi="+h+"&ad_rmp="+zS+"&sli="+zS}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+
L+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+$Z+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&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"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&ctype="+RH+"&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"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_engaged_view&ctype="+RH+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+jc+"&ad_cpn=[AD_CPN]&id="+
NM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NM+"&dc_pubid="+zS+"&dc_exteid="+A9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+
"&sig="+jc+"&ad_cpn=[AD_CPN]&id="+NM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+zS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NM+"&avm="+zS+"&dc_pubid="+zS+"&dc_exteid="+A9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&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="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+y+"&sig="+jc+"&ad_cpn=[AD_CPN]&id="+NM+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+zS},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+NM+"&dc_pubid="+zS+"&dc_exteid="+A9+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+mm+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+
RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&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/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:y7+"="},trackingParams:y7+"=",templatedCountdown:{templatedAdText:{text:IN,isTemplated:!0,trackingParams:y7+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Q7,isTemplated:!1,trackingParams:y7+"="},trackingParams:y7+"="}},
trackingParams:y7+"=",skipOffsetMilliseconds:5E3}},trackingParams:y7+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:IN},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:e5,isTemplated:!1,trackingParams:y7+"="},trackingParams:y7+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:oG,
isTemplated:!0,trackingParams:y7+"="}},trackingParams:y7+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:aR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(hl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+GS+"&origin=www.youtube.com&ata_theme="+IN,hl),trackingParams:y7+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:y7+"="}},hoverText:{runs:[{text:e5}]},trackingParams:y7+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nb+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:y7+"="},headline:{text:NI,isTemplated:!1,trackingParams:y7+"="},description:{text:pQ,trackingParams:y7+"="},actionButton:{buttonRenderer:{text:{simpleText:Q7},navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:y7+"="}},startMs:zS,trackingParams:y7+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pu},elementId:NM}},elementId:pQ,trackingParams:y7+"=",legacyInfoCardVastExtension:Q7,sodarExtensionData:{siub:XV,bgub:NM,scs:oG,bgp:NI},externalVideoId:xD,adLayoutLoggingData:{serializedAdServingDataEntry:pu},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nb+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:y7+"="},headline:{text:pu,
isTemplated:!1,trackingParams:y7+"="},description:{text:oG,isTemplated:!1,trackingParams:y7+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:NM},navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:y7+"="}},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+
zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:y7+"="},abandonCommands:{commands:[{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&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="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+gf+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:aR,commandExecutorCommand:{commands:[{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:oG,isTemplated:!1,trackingParams:y7+"="},trackingParams:y7+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:SG},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+zS+";dc_exteid="+A9+";met="+zS+";ecn"+zS+"="+zS+";etm1="+zS+";eid1="+
$Z+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:NI}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:sK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:wf,offsetEndMilliseconds:mm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+gf+"&token=ALHj"+w+"&index="+zS+"&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="+Y+"&m_pos_ms="+wf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:mm,offsetEndMilliseconds:mm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+RH+"&token=ALHj"+w+"&index="+zS+"&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="+
Y+"&m_pos_ms="+mm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:e5}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:mm,offsetEndMilliseconds:mm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+RH+"&token=ALHj"+w+"&index="+zS+"&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="+
Y+"&m_pos_ms="+mm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:mm,offsetEndMilliseconds:mm},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+RH+"&token=ALHj"+w+"&index="+zS+"&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="+
Y+"&m_pos_ms="+mm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:pQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:mm,offsetEndMilliseconds:gf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+RH+"&token=ALHj"+w+"&index="+zS+"&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="+
Y+"&m_pos_ms="+mm}},adSlotLoggingData:{serializedSlotAdServingDataEntry:SG}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:gf,offsetEndMilliseconds:gf},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+h+"&m_pos="+gf+"&token=ALHj"+w+"&index="+zS+"&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="+
Y+"&m_pos_ms="+gf}},adSlotLoggingData:{serializedSlotAdServingDataEntry:sp}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:oG,isTemplated:!1,trackingParams:y7+"="},description:{text:oG,isTemplated:!1,trackingParams:y7+"="},actionButton:{buttonRenderer:{text:{simpleText:pu},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
go+";dc_trk_cid="+go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ka+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:y7+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qk+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:y7+"="},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+go+";dc_trk_cid="+go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+
";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:aR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(qf.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+GS+"&origin=www.youtube.com&ata_theme="+IN,qf),trackingParams:y7+"="}},popupType:"DIALOG"}},trackingParams:y7+"="}},hoverText:{runs:[{text:lK}]},trackingParams:y7+"="}},adVideoId:xD,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:pQ},associatedCompositePlayerBytesLayoutId:oG}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:lK}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:NI,isTemplated:!1,trackingParams:y7+"="},description:{text:w8,isTemplated:!1,trackingParams:y7+"="},actionButton:{buttonRenderer:{text:{simpleText:sp},navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+
r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:y7+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nb+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:y7+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Jz+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:y7+"="},navigationEndpoint:{clickTrackingParams:aR,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+
zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:aR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(UJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+GS+"&origin=www.youtube.com&ata_theme="+IN,UJ),trackingParams:y7+"="}},popupType:"DIALOG"}},trackingParams:y7+"="}},
hoverText:{runs:[{text:oG}]},trackingParams:y7+"="}},adVideoId:xD,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+xD+"&cid="+L+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:XV},associatedCompositePlayerBytesLayoutId:oG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:EQ}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:IN,
isTemplated:!1,trackingParams:y7+"="},description:{text:sK,isTemplated:!1,trackingParams:y7+"="},actionButton:{buttonRenderer:{text:{simpleText:NI},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+go+";dc_trk_cid="+go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+
gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+
Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:y7+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+ka+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:y7+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Qk+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:y7+
"="},navigationEndpoint:{clickTrackingParams:aR,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+go+";dc_trk_cid="+go+";dc_dbm_token="+T+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+zS+";ord="+go+";dc_rui="+zS+";dc_exteid="+A9+";dc_av="+zS+";dc_sk="+zS+";dc_ctype="+gf+";dc_pubid="+zS+";dc_btype=3?gclid="+nu+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+g+"____________"+r+"AxAA&ase=2&num="+zS+"&cid="+L+"&ad_cpn=%5BAD_CPN%5D&sig="+Z+"&adurl="+li+"&label=video_click_to_advertiser_site&ctype="+RH+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:y7+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:aR,openPopupAction:{popup:{aboutThisAdRenderer:{url:(nz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+p+"&hl="+GS+"&origin=www.youtube.com&ata_theme="+IN,nz),trackingParams:y7+"="}},popupType:"DIALOG"}},trackingParams:y7+
"="}},hoverText:{runs:[{text:IN}]},trackingParams:y7+"="}},adVideoId:xD,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+g+"____________"+r+"AxAA&sigh="+Q+"&cid="+L+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:pu},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:oG}},adSlotLoggingData:{serializedSlotAdServingDataEntry:sK}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:bi,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:bi,command:{innertubeCommand:{clickTrackingParams:aR,ypcGetOfflineUpsellEndpoint:{params:T0}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:y7+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:RA,nanos:eH}}}},uwk=JSON.stringify(HH),rh=performance.now()-R;return{objectRepresentation:HH,jsonRepresentation:uwk,generationTime:rh}};
Dvk=function(R,A){if(R===A)return!0;if(!R||!A||typeof R!==typeof A)return!1;if(R instanceof Array&&A instanceof Array){if(R.length!==A.length)return!1;for(var Y=0;Y<R.length;Y++)if(!Dvk(R[Y],A[Y]))return!1;return!0}if(typeof R==="object"&&typeof A==="object"&&R&&A){for(Y in R)if(!(Y in A&&Dvk(R[Y],A[Y])))return!1;for(var P in A)if(!(P in R))return!1;return!0}return!1};
_.sd=function(){if(!Mi){Mi=new nJ(new Uvq);var R=_.cU("client_streamz_web_flush_count",-1);R!==-1&&(Mi.invocationLimit=R)}return Mi};
Ni=function(R,A,Y,P){if(R===A)return!0;if(Array.isArray(R)&&Array.isArray(A)){if(R.length!==A.length)return!1;for(var E=0;E<R.length;E++)if(!Ni(R[E],A[E],Y,P))return!1;return!0}if(R instanceof Set||A instanceof Set){if(R instanceof Set&&A instanceof Set){if(R.size!==A.size)return!1;P=_.x(R.values());for(E=P.next();!E.done;E=P.next())if(!A.has(E.value))return!1;return!0}return!1}if(R instanceof Function){if(P)return!0;R.name===""&&_.bj(Error("Jf"),"ERROR");return!1}if(R instanceof Date&&A instanceof
Date)return R.getTime()===A.getTime();if(R instanceof Object&&A instanceof Object){if($vI(R)&&$vI(A))try{return R.equals(A)}catch(c){_.bj(Error("Kf`"+c),"ERROR")}E=Object.getOwnPropertyNames(R).filter(function(c){return Y?R[c]!==void 0:!0});
var z=Object.getOwnPropertyNames(A).filter(function(c){return Y?A[c]!==void 0:!0});
if(E.length!==z.length)return!1;E=_.x(E);for(z=E.next();!z.done;z=E.next())if(z=z.value,!Ni(R[z],A[z],Y,P))return!1;return!0}return!1};
$vI=function(R){R=Object.getPrototypeOf(R).equals;return R instanceof Function&&R.length===1};
_.Imb=function(){return _.O(function(R){if(R.nextAddress==1)return XwP!==2?R.jumpTo(2):R.yield(SbI(),3);R.nextAddress!=2&&(XwP=R.yieldResult);return R.return(XwP)})};
_.jJ3=function(){return _.O(function(R){if(R.nextAddress==1)return _.v("ab_pl_man")?KX3!==2?R.jumpTo(2):R.yield(WXV(),3):R.return(1);R.nextAddress!=2&&(KX3=R.yieldResult);return R.return(KX3)})};
pwk=function(){return _.O(function(R){if(R.nextAddress==1)return _.v("ab_fk_sk_cl")?bl3!==2?R.jumpTo(2):R.yield(fmJ(),3):R.return(1);R.nextAddress!=2&&(bl3=R.yieldResult);return R.return(bl3)})};
_.am8=function(){return _.O(function(R){if(R.nextAddress==1)return _.v("ab_det_apb_b")?FXq!==2?R.jumpTo(2):R.yield(BIk(),3):R.return(1);R.nextAddress!=2&&(FXq=R.yieldResult);return R.return(FXq)})};
oMV=function(){var R;return _.O(function(A){if(A.nextAddress==1)return A.yield(Promise.all([_.Imb(),_.am8(),_.jJ3(),pwk()]),2);if(A.nextAddress!=3)return COk()?A.return(!0):A.yield(_.hEl(),3);R=A.yieldResult;return A.return(R===0)})};
COk=function(){var R=!1,A=function(Y,P){kVV.increment(P,Y);Y===0&&(R=!0)};
A(_.GVb(),"j.s_");A(XwP,"f.i_");A(FXq,"a.b_");A(KX3,"p.m_");A(bl3,"i.f_");Zlk===2&&(Zlk=_.tt6(wwl));A(Zlk,"e.h_");_.v("ks_det_gpbl")||A(_.uP8(),"p.i_");_.v("ks_get_o_pp")||A(_.eEb(),"g.o_");_.v("ab_deg_unex_thr")||A(_.qbk(),"a.o_");A(LX8,"s.t_");_.v("ab_det_sc_inj_enf")&&A(_.dvb(),"s.i_");A(Rv3,"d.p_");A(_.ACP(_.V2),"o.p_");A(_.YHb()===0?0:_.PgJ(),"o.a_");return _.v("debug_sk_em_precheck")?!0:R};
zvq=function(){var R=[].concat(_.py(EXV));try{var A=Od();R.push({jsonRepresentation:A.jsonRepresentation,objectRepresentation:A.objectRepresentation})}catch(Y){R=[].concat(_.py(EXV))}return R};
ip8=function(){var R=["adPlacements","adSlots"];try{return R.filter(function(){return!0}).length!==R.length?0:1}catch(A){return 0}};
_.eEb=function(){if(ip8()===0)return 0;var R=Od(),A=R.objectRepresentation,Y=(0,_.BO.unsafeClone)(A),P=[];if(A&&typeof A==="object")for(var E in A)P.push(E);else return 4;R=R.objectRepresentation.adPlacements;if(!(R&&R.length>0))return 4;try{if(!Dvk(P,Object.getOwnPropertyNames(A)))return 0}catch(z){return 0}return Dvk(Y,A)?1:0};
_.ACP=function(R){if(!R||!R.length||typeof R==="string")return 0;for(var A=Object.getOwnPropertyNames(Object.prototype),Y=0;Y<R.length;Y++)for(var P=_.ik(R[Y]),E=_.x(A),z=E.next();!z.done;z=E.next())if(P===z.value)return 0;return 1};
lPk=function(R){var A=_.ik(R[1]);if(R[0]===null)return A;R=R[0];for(var Y={},P=0;P<R.length;P++){var E=_.ik(R[P]);if(P===0)Y[E]=A;else{var z={};z[E]=Y;Y=z}}return Y};
_.YHb=function(){for(var R=_.Jf,A=0;A<R.length;A++){var Y=lPk(R[A]),P=[];P.push(Y);if(P.length===0)return 0}return 1};
_.PgJ=function(){for(var R=_.Jf,A={},Y=0;Y<R.length;A={iAn:void 0},Y++){var P=[lPk(R[Y])];A.iAn=[];P.forEach(function(E){return function(z){E.iAn[E.iAn.length]=z}}(A));
if(A.iAn.length===0)return 0}return 1};
_.GVb=function(){for(var R=_.x(zvq()),A=R.next();!A.done;A=R.next()){var Y=A.value;A=Y.jsonRepresentation;Y=Y.objectRepresentation;try{var P=JSON.parse(A);if(!Ni(P,Y,!1,!1))return 0}catch(E){return 0}}return 1};
_.dvb=function(){try{var R=_.M1("ab_det_sc_inj_val");R.length===1&&R[0]===""&&(R=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var A=document.querySelectorAll("script"),Y=_.x(A),P=Y.next();!P.done;P=Y.next())for(var E=P.value,z=_.x(R),c=z.next();!c.done;c=z.next()){var M=c.value;A=void 0;if((A=E.textContent)==null?0:A.includes(M))return 0}}catch(N){return 4}return 1};
_.hEl=function(){var R,A,Y,P,E,z,c;return _.O(function(M){switch(M.nextAddress){case 1:_.g2(M,2),R=_.x(EXV),A=R.next();case 4:if(A.done)return M.return(1);P=Y=A.value;E=P.jsonRepresentation;z=P.objectRepresentation;return M.yield((new Response(E,{status:200})).json(),7);case 7:c=M.yieldResult;if(!Ni(c,z,!1,!1))return M.return(0);A=R.next();M.jumpTo(4);break;case 2:return _.UT(M),M.return(4)}})};
_.qbk=function(){try{btoa("abc")}catch(R){return 0}return 1};
SbI=function(){var R,A,Y,P,E,z,c,M,N,y,m;return _.O(function(T){switch(T.nextAddress){case 1:_.g2(T,2),R=_.x(zvq()),A=R.next();case 4:if(A.done)return T.return(1);P=Y=A.value;E=P.jsonRepresentation;z=P.objectRepresentation;c=btoa(E);M="data:application/json;base64,"+c;N=new Request(M);Object.defineProperty(N,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(N,"method",{get:function(){return"POST"}});
Object.defineProperty(N,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(N,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(N,"body",{get:function(){return new ReadableStream}});
return T.yield(fetch(N),7);case 7:return y=T.yieldResult,T.yield(y.json(),8);case 8:m=T.yieldResult;if(!Ni(m,z,!1,!1))return T.return(0);A=R.next();T.jumpTo(4);break;case 2:return _.UT(T),T.return(4)}})};
_.tt6=function(R){if(!R||!R.length||typeof R==="string")return 0;for(var A=function(E){return _.ik(E)},Y=2,P=0;P<R.length&&(Y=_.xub(_.Hlk(R[P],A)),Y!==0);P++);
return Y};
_.xub=function(R){var A=_.x(R);R=A.next().value;A=A.next().value;try{var Y=document.createElement("div");document.body.appendChild(Y);var P=getComputedStyle(Y).display;document.body.removeChild(Y);if(P==="none")return 4;var E=getComputedStyle(A).display==="none"?0:1;document.body.removeChild(R);return E}catch(z){return 4}};
fmJ=function(){var R,A,Y;return _.O(function(P){R=new _.y2;A=document.createElement("button");A.classList.add("ytp-ad-skip-button");A.style.opacity="0";A.style.height="0px";A.style.width="0px";A.style.padding="0px";A.style.border="none";Y=function(){A.parentElement&&A.parentElement.removeChild(A)};
A.onclick=function(){R.resolve(0);Y()};
document.body.appendChild(A);setTimeout(function(){Y();R.resolve(1)},50);
return P.return(R.promise)})};
WXV=function(){var R,A,Y,P,E,z,c;return _.O(function(M){R=new _.y2;A=document.createElement("ytd-player");try{document.body.prepend(A)}catch(N){return M.return(4)}Y=function(){A.parentElement&&A.parentElement.removeChild(A)};
A.getElementsByTagName("div").length>0?P=A.getElementsByTagName("div")[0]:(P=document.createElement("div"),A.appendChild(P));E=document.createElement("div");P.appendChild(E);z=document.createElement("video");c=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"});z.src=_.Ff(_.kD(c));z.ontimeupdate=function(){Y();R.resolve(0)};
E.appendChild(z);z.classList.add("html5-main-video");setTimeout(function(){E.classList.add("ad-interrupting")},200);
setTimeout(function(){Y();R.resolve(1)},5E3);
return M.return(R.promise)})};
cCl=function(R,A){var Y,P;return _.O(function(E){switch(E.nextAddress){case 1:Y=[],P=0;case 2:if(!(P<3)){E.jumpTo(4);break}return E.yield(fetch(R,{cache:"no-store",method:A}).then(function(z){Y.push(z.status)}).catch(function(){Y.push(-1)}),3);
case 3:P++;E.jumpTo(2);break;case 4:return E.return(Y)}})};
Opb=function(R){return R.domainLookupStart===0&&R.domainLookupEnd===0&&R.connectStart===0&&R.connectEnd===0};
MLS=function(R,A,Y){Y=Y===void 0?"GET":Y;var P,E,z,c,M,N,y,m,T,Q;return _.O(function(g){if(g.nextAddress==1)return g.yield(Promise.all([cCl(R,Y),cCl(A,Y)]),2);P=g.yieldResult;E=_.x(P);z=E.next().value;c=E.next().value;M=z;N=c;if(Math.min.apply(Math,_.py(N))!==Math.max.apply(Math,_.py(N))||Math.min.apply(Math,_.py(M))!==Math.max.apply(Math,_.py(M)))return g.return(2);if(Math.min.apply(Math,_.py(N))===Math.min.apply(Math,_.py(M)))return g.return(1);m=(y=performance.getEntriesByName(R))==null?void 0:
y[0];Q=(T=performance.getEntriesByName(A))==null?void 0:T[0];return m&&Q?Opb(Q)?g.return(1):Opb(m)?g.return(0):g.return(1):g.return(2)})};
BIk=function(){var R;return _.O(function(A){var Y=[];var P;var E,z,c;(E=P=(E=Od().objectRepresentation.streamingData)==null?void 0:(z=E.formats)==null?void 0:(c=z[0])==null?void 0:c.url)&&E&&!P.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(E=E.replace("initcwndbps","ctier=L&initcwndbps"),E=E.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),P={testUrl:E,baseUrl:P,method:"GET"}):P=void 0;P&&Y.push(P);_.v("ab_net_tp_e")&&Y.push({testUrl:_.P3.location.origin+"/ad_companion",baseUrl:_.P3.location.origin+
"/generate_204",method:"OPTIONS"});if(_.v("ad_net_pb_ab")){var M;b:{P=/api\/stats\/ads/;var N,y,m,T;E=(M=Od().objectRepresentation.adPlacements)==null?void 0:(N=M[0])==null?void 0:(y=N.adPlacementRenderer)==null?void 0:(m=y.renderer)==null?void 0:(T=m.linearAdSequenceRenderer)==null?void 0:T.linearAds;if(E!=null&&E.length&&(M=_.n(E[0],szl))&&(M=M.pings,M!=null&&M.impressionPings))for(N=[].concat(_.py(M.impressionPings)),M.progressPings&&(N=[].concat(_.py(N),_.py(M.progressPings))),M=_.x(N),N=M.next();!N.done;N=
M.next())if(N=N.value,N.baseUrl&&P.test(N.baseUrl)){M=N.baseUrl.replace("https://www.youtube.com","");break b}M=void 0}M&&Y.push({testUrl:_.P3.location.origin+M,baseUrl:_.P3.location.origin+"/feed/download",method:"GET"})}if(_.v("ad_net_pb_pbp")){var Q;b:{M=/api\/stats\/qoe/;if(N=Od().objectRepresentation.playbackTracking){y=[];y.push(N==null?void 0:(Q=N.videostatsPlaybackUrl)==null?void 0:Q.baseUrl);var g;y.push(N==null?void 0:(g=N.videostatsDelayplayUrl)==null?void 0:g.baseUrl);var r;y.push(N==
null?void 0:(r=N.videostatsWatchtimeUrl)==null?void 0:r.baseUrl);var I;y.push(N==null?void 0:(I=N.ptrackingUrl)==null?void 0:I.baseUrl);var b;y.push(N==null?void 0:(b=N.qoeUrl)==null?void 0:b.baseUrl);var p;y.push(N==null?void 0:(p=N.atrUrl)==null?void 0:p.baseUrl);Q=_.x(y);for(g=Q.next();!g.done;g=Q.next())if((g=g.value)&&M.test(g)){Q=g.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}Q=void 0}Q&&Y.push({testUrl:_.P3.location.origin+Q,baseUrl:_.P3.location.origin+
"/feed/download",method:"GET"})}Y=Y.length!==0?Y[Math.floor(Math.random()*Y.length)]:void 0;return(R=Y)?A.return(MLS(R.testUrl,R.baseUrl,R.method)):A.return(4)})};
_.uP8=function(){if(_.P3.oPL===void 0||_.P3.oPL===null||typeof _.P3.oPL!=="function")return 2;try{return _.P3.oPL()===!0?0:1}catch(R){return 0}};
NyI=function(R){switch(R){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.kZ(R,"unknown result type")}};
_.VLk=function(R,A){var Y=Number(_.a1("CATSTAT",0));if(A.tPz===void 0)return Y;A=A.tPz;R=NyI(R);return Y&~(3<<A)|R<<A};
JCV=function(R){var A,Y;if((R=(A=R.auxiliaryUi)==null?void 0:(Y=A.messageRenderers)==null?void 0:Y.bkaEnforcementMessageViewModel)&&R.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return R};
muk=function(){for(var R=_.x(Object.values(_.yCV)),A=R.next();!A.done;A=R.next())A=A.value,A.isAsync&&A.tPz&&_.BD("CATSTAT",_.VLk(2,A))};
_.vr=function(R,A){R=_.mb("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",R);(A===void 0?0:A)?_.Ty6(R,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.T9(_.Q2(),R,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
vXk=function(){if(!QzI){if(Polymer.Base){var R=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{R.apply(this,arguments)}catch(T){_.hv(T)}};
var A=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{A.apply(this,arguments)}catch(T){_.hv(T)}};
var Y=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{Y.apply(this,arguments)}catch(T){_.hv(T)}};
var P=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{P.apply(this,arguments)}catch(T){_.hv(T)}};
var E=Polymer.Base._listen,z=new WeakMap;Polymer.Base._listen=function(T,Q,g){var r=function(){try{g.apply(this,arguments)}catch(I){_.hv(I)}};
z.set(g,r);E.call(this,T,Q,r)};
var c=Polymer.Base._unlisten;Polymer.Base._unlisten=function(T,Q,g){c.call(this,T,Q,z.get(g))}}if(Polymer.Async){var M=Polymer.Async,N=M._atEndOfMicrotask;
M._atEndOfMicrotask=function(){try{N.apply(M,arguments)}catch(T){_.hv(T)}}}if(Polymer.RenderStatus){var y=Polymer.RenderStatus,m=y.afterNextRender;
y.afterNextRender=function(T,Q,g){m.call(y,T,function(){try{Q.apply(this,arguments)}catch(r){_.hv(r)}},g)}}QzI=!0}};
_.Hr=function(R){var A=R?_.T3(R):"";if(A){if(A.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(A.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(A.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(A.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(A.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.v("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(A.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";A=A.toLowerCase();if(A==="/")return"home";if(A==="/channel_memberships")return"channel-memberships-shopfront";if(A.indexOf("/feed/trending")===0)return"trending";if(A.indexOf("/feed/explore")===0)return"explore";if(A.indexOf("/live")===0)return"live";if(A.indexOf("/results")===0)return"search";if(A.indexOf("/sports")===0)return"sports";if(A.indexOf("/fashion")===0||A.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(A))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(A))return _.v("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(A.indexOf("/channel/")===0||A.indexOf("/user/")===0||A.indexOf("/gaming")===0||A.indexOf("/post/")===0)return"channel";if(gXP(R))return"show";if(A==="/playlist"||A.indexOf("/playlist/")===0||A==="/view_play_list"||A.indexOf("/view_play_list/")===0||A.indexOf("/show/")===0)return"playlist";if(A==="/feed/history"||A.indexOf("/feed/history/")===0)return"history";if(A===
"/new")return"labs";if(A==="/feed/subscriptions")return"subscriptions";if(A.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(A==="/history_controls")return"standalone";if(A.indexOf("/account")===0||A==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(A.indexOf("/paid_memberships")===0||A.indexOf("/refund")===0||A.indexOf("/purchases")===0||A.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(A.indexOf("/product")===0)return"yts-products";if(A.indexOf("/premium")===
0||A.indexOf("/musicpremium")===0)return A.indexOf("/premium/offers")===0||A.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(A==="/cart/checkout"||A==="/cart")return"ypc-checkout";if(A.indexOf("/feed/downloads")===0||A.indexOf("/redeem")===0||A.indexOf("/reporthistory")===0)return"browse";if(A.indexOf("/hashtag")===0)return"hashtag-landing-page";if(A.indexOf("/handle")===0)return"handle";if(A.indexOf("/source")===0)return"audio-pivot";if(A.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(A.indexOf("/playables")===0)return"playables";if(A.indexOf("/create/live/join")===0)return"open-in-app";if(A.indexOf("/shorts")===0)return"shorts";if(A.indexOf("/feed/channels")===0)return"subscriptions-channels";(A=R?_.T3(R):"")&&A.indexOf("/watch")===0&&_.v("web_watch_enable_learning_journey")?(R=_.qI(R),R=!!R.list&&R.list.indexOf("LJPP")===0):R=!1;if(R)return"learning_journey_watch"}};
_.ra=function(R){var A,Y;(R=(Y=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:Y.url)&&(A=_.Hr(R));return A};
gXP=function(R){var A=R?_.T3(R):"";if(!A)return!1;A=A.toLowerCase();return A.indexOf("/show/")===0||A.indexOf("/playlist")===0&&(R=_.qI(R),R.list&&R.list.indexOf("EL")===0)?!0:!1};
$p=function(R){var A="unknown",Y;var P=((Y=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:Y.webPageType)||"";P?(Y=P.toLowerCase(),Y.startsWith("web_page_type_")&&(Y=Y.slice(14))):Y=P;Y&&nXk[Y.toUpperCase()]?A=nXk[Y.toUpperCase()]:_.n(R,_.Ds)||_.n(R,Hpk)?A="browse":_.n(R,_.Ud)?A="search":_.n(R,_.LO)&&(A="watch");A==="watch"&&_.ra(R||null)==="learning_journey_watch"&&(A="learning_journey_watch");A==="unknown"&&_.pK(Error("Mf`"+JSON.stringify({clickTrackingParams:R==null?void 0:R.clickTrackingParams,
commandMetadata:R==null?void 0:R.commandMetadata,allEndpointKeys:Object.keys(R||[])})));return A};
_.XI=function(R){if(!_.rCl||R)_.rCl=_.$2();return _.rCl};
_.DuV=function(R){return!!_.n(R,_.LO)||!!_.n(R,_.SI)&&_.v("kevlar_enable_shorts_prefetch")};
_.UuV=function(R,A){R=_.n(R,_.LO)||_.n(R,_.SI);return"v"+R.videoId+(R.playlistId?"-pl"+R.playlistId:"")+(A?"-an1":"")+(R.params?"-pr"+R.params:"")};
I4=function(R){return function(){return new R}};
Ko=function(R){var A=_.is();return function(){return A.resolve(R)}};
Xfl=function(R){var A=_.cU("web_pbj_log_warning_rate",0);A=A>0&&Math.random()<A;if(!_.n(R,_.SI))return A&&_.pK(Error("Pf")),!1;var Y;return _.v("shorts_controller_retrieve_seedless_sequence_v2")&&((Y=_.n(R,_.SI))==null?void 0:Y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:$uV(R)?!0:(A&&_.pK(Error("Qf")),!1)};
$uV=function(R){var A=(_.n(R,_.LO)||_.n(R,_.SI)).videoId;if(!A||!SHb.test(A))return!1;var Y;return(R=(Y=_.n(R.commandMetadata,_.Ti))==null?void 0:Y.url)&&(R.includes(A)||R.startsWith("/clip"))?!0:!1};
_.Kuk=function(){var R=_.Hk();return R.getFlag(192)?R.getFlag(190):!(_.v("web_watch_cinematics_disabled_by_default")||_.v("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&IPq())};
_.Wr=function(R,A,Y){var P={};P.currentUrl=A;P.vis=R.vis!==void 0?R.vis:0;P.splay=!1;A=_.Hk();P.autoCaptionsDefaultOn=A.getFlag(66);A.getFlag(141)?A.getFlag(140)?P.autonavState="STATE_OFF":P.autonavState="STATE_ON":P.autonavState="STATE_NONE";P.html5Preference="HTML5_PREF_WANTS";isNaN(_.a1("STS"))||(P.signatureTimestamp=_.a1("STS"));R.autonav&&(P.autoplay=!0,P.autonav=!0);R.mutedAutoplay&&(P.autoplay=!0,P.mutedAutoplay=!0);R.inlinePlayback&&(P.autoplay=!0,P.autonav=!1,P.isInlineUnmutedPlayback=!!R.inlineUnmuted);
P.referer=Y;P.lactMilliseconds=R.lact!==void 0?R.lact.toString():"-1";_.v("enable_unknown_lact_fix_on_html5")&&P.lactMilliseconds==="-1"&&_.pK(new _.XN("Unknown LACT is set in playbackContext.",{"lact in tempData":R.lact||"undefined",autonav:R.autonav||"undefined"}));R={};A.getFlag(194)&&(R.hasShownAmbientMode=!0);A.getFlag(192)&&(R.hasToggledOffAmbientMode=!0);_.Kuk()&&(R.watchAmbientModeEnabled=!0);P.watchAmbientModeContext=R;return P};
Wu3=function(R){var A={},Y=R.pbis||0;Y&&(A.playbackBeginsInSeconds=Y);R.prefetch_reason&&R.prefetch_reason==="hc_pbis"&&(A.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return A};
_.bk=function(R){R=R===void 0?!1:R;var A=_.Hk(),Y="USER_INTERFACE_THEME_LIGHT";A.getFlag(165)?Y="USER_INTERFACE_THEME_DARK":A.getFlag(174)?Y="USER_INTERFACE_THEME_LIGHT":_.jI()&&(Y="USER_INTERFACE_THEME_DARK");return R?Y:jz3()||Y};
_.bpk=function(){return!_.v("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.jI=function(){return _.bpk()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.fo=function(){var R=_.Hk();return _.bpk()&&!R.getFlag(165)&&!R.getFlag(174)};
jz3=function(){var R=R===void 0?window.location.href:R;if(_.v("kevlar_disable_theme_param"))return null;var A=_.T3(R);if(_.fPk(A))return"USER_INTERFACE_THEME_DARK";try{var Y=_.qI(R).theme;return pfk.get(Y)||null}catch(P){}return null};
_.fPk=function(R){return _.v("enable_dark_theme_only_on_shorts")?!(R==null||!R.startsWith("/shorts/")):!1};
_.aPk=function(R,A,Y,P,E){A=A===void 0?!1:A;Y=Y===void 0?!1:Y;var z=_.a1("INNERTUBE_CONTEXT");if(!z)return _.bj(Error("Tf")),{};z=(0,_.BO.unsafeClone)(z);_.v("web_no_tracking_params_in_shell_killswitch")||delete z.clickTracking;z.client||(z.client={});var c=z.client;c.clientName==="MWEB"&&c.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(c.clientFormFactor=_.a1("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");c.screenWidthPoints=window.innerWidth;c.screenHeightPoints=window.innerHeight;c.screenPixelDensity=
Math.round(window.devicePixelRatio||1);c.screenDensityFloat=window.devicePixelRatio||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());c.userInterfaceTheme=_.bk();if(!A){var M=_.TF8();M&&(c.connectionType=M);_.v("web_log_effective_connection_type")&&(M=vbk())&&(z.client.effectiveConnectionType=M)}var N;if(_.v("web_log_memory_total_kbytes")&&((N=_.P3.navigator)==null?0:N.deviceMemory)){var y;N=(y=_.P3.navigator)==null?void 0:y.deviceMemory;z.client.memoryTotalKbytes=""+N*1E6}A&&P&&!_.v("web_it_context_set_original_url_ks")&&
(c.originalUrl=Fuk(_.P3.location.href,P).toString());_.v("web_gcf_hashes_innertube")&&(M=Kb6())&&(y=M.coldConfigData,N=M.coldHashData,M=M.hotHashData,z.client.configInfo=z.client.configInfo||{},y&&(z.client.configInfo.coldConfigData=y),N&&(z.client.configInfo.coldHashData=N),M&&(z.client.configInfo.hotHashData=M));y=_.qI(_.P3.location.href);!_.v("web_populate_internal_geo_killswitch")&&y.internalcountrycode&&(c.internalGeo=y.internalcountrycode);!_.v("web_populate_client_screen_killswitch")&&E&&(c.clientScreen=
E);c.clientName==="MWEB"||c.clientName==="WEB"?(c.mainAppWebInfo||(c.mainAppWebInfo={}),c.mainAppWebInfo.graftUrl=P||_.P3.location.href,_.v("kevlar_woffle")&&_.po.instance&&(P=_.po.instance,c.mainAppWebInfo.pwaInstallabilityStatus=!P.appInstalledEventFired&&P.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),c.mainAppWebInfo.webDisplayMode=Hol(),c.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):c.clientName==="TVHTML5"&&
(!_.v("web_lr_app_quality_killswitch")&&(P=_.a1("LIVING_ROOM_APP_QUALITY"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{appQuality:P})),P=_.a1("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{certificationScope:P}));!_.v("web_populate_time_zone_itc_killswitch")&&(P=y0V())&&(c.timeZone=P);(P=pkV())?c.experimentsToken=P:delete c.experimentsToken;c=FZI();P=_.Byk();P=(0,_.BO.getValues)(P.tokenJars);z.request=Object.assign({},z.request,{internalExperimentFlags:c,consistencyTokenJars:P});
!_.v("web_prequest_context_killswitch")&&(c=_.a1("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(z.request.externalPrequestContext=c);P=_.Hk();c=P.getFlag(58);P=P.get("gsml","");z.user=Object.assign({},z.user);c&&(z.user.enableSafetyMode=c);P&&(z.user.lockedSafetyMode=!0);_.v("warm_op_csn_cleanup")?Y&&(A=_.F9())&&(z.clientScreenNonce=A):!A&&(A=_.F9())&&(z.clientScreenNonce=A);R&&(z.clickTracking={clickTrackingParams:R});if(R=_.Zr("yt.mdx.remote.remoteClient_"))z.remoteClient=R;_.FI.getInstance().setLocationOnInnerTubeContext(z);
try{var m=wku(),T=m.bid;delete m.bid;z.adSignalsInfo={params:[],bid:T};for(var Q=_.x(Object.entries(m)),g=Q.next();!g.done;g=Q.next()){var r=_.x(g.value),I=r.next().value,b=r.next().value;m=I;T=b;R=void 0;(R=z.adSignalsInfo.params)==null||R.push({key:m,value:""+T})}var p,h;if(((p=z.client)==null?void 0:p.clientName)==="TVHTML5"||((h=z.client)==null?void 0:h.clientName)==="TVHTML5_UNPLUGGED"){var L=_.a1("INNERTUBE_CONTEXT");L.adSignalsInfo&&(z.adSignalsInfo.advertisingId=L.adSignalsInfo.advertisingId,
z.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",z.adSignalsInfo.limitAdTracking=L.adSignalsInfo.limitAdTracking)}}catch(Z){_.bj(Z)}return z};
_.Cgu=function(R){var A=new Br(_.a1("ONE_PICK_URL",""));A.urlParamMap_.set("hostId",R);(R=_.a1("GAPI_LOCALE"))&&A.urlParamMap_.set("hl",R);(R=_.a1("SESSION_INDEX"))&&A.urlParamMap_.set("authuser",R);(R=_.a1("DELEGATED_SESSION_ID"))&&A.urlParamMap_.set("groupId",R);return A};
oXV=function(){var R=_.is(),A=R.resolve(_.a4);R=R.resolve(_.Co);return new hv8(A,R)};
GFk=function(R){if(window.IntersectionObserver)return new kF6(R,400);throw new TypeError("$f");};
tLJ=function(){var R=Hammer.TouchAction,A=R.prototype.preventDefaults;R.prototype.preventDefaults=function(Y){var P=this.actions.indexOf("pan-down")>-1;if(!P)return A.call(this,Y);if(!Zpu){var E=Y.srcEvent;Y=Y.direction;var z;if((z=this.manager)==null?0:z.session.prevented)E.preventDefault();else if(P&&Y&Hammer.DIRECTION_DOWN)return this.preventSrc(E)}}};
wfq=function(R){if(!R||R.size===0)return Hammer.DIRECTION_ALL;if(R.size===2){if(R.has("up")&&R.has("down"))return Hammer.DIRECTION_VERTICAL;if(R.has("right")&&R.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(R.size===1){if(R.has("up"))return Hammer.DIRECTION_UP;if(R.has("down"))return Hammer.DIRECTION_DOWN;if(R.has("right"))return Hammer.DIRECTION_RIGHT;if(R.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.evu=function(){return uyb?Promise.resolve(uyb):new Promise(function(R,A){var Y=self.indexedDB.open("swpushnotificationsdb");Y.onerror=A;Y.onsuccess=function(){var P=Y.result;if(P.objectStoreNames.contains("swpushnotificationsstore"))uyb=P,R(uyb);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.evu()};
Y.onupgradeneeded=qHI})};
qHI=function(R){R=R.target.result;R.objectStoreNames.contains("swpushnotificationsstore")&&R.deleteObjectStore("swpushnotificationsstore");R.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
duJ=function(R){var A=LuI(),Y;return _.O(function(P){switch(P.nextAddress){case 1:return _.g2(P,2),P.yield(R.match(A,{cacheName:"yt-appshell-assets"}),4);case 4:Y=P.yieldResult;_.us(P,3);break;case 2:_.UT(P);case 3:return P.return(Y)}})};
LuI=function(){var R=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?R_k.registration.scope:Ai8;R.endsWith("/")&&(R=R.slice(0,-1));return R+"/app_shell_home"};
YD3=function(R){R.map(function(A){return A.source}).join("|")};
_.PMk=function(R){return _.O(function(A){return A.return(duJ(R))})};
EmJ=function(){var R=window.caches,A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(_.PMk(R),2);A=Y.yieldResult;return Y.return(!!A)})};
MnV=function(){_.O(function(R){if(R.nextAddress==1){if(z_u)return R.jumpTo(0);z_u=!0;if(_.v("enable_system_health_primes_monitoring"))return _.yQ(iPl,3E4),l_3(),R.return();if(!(Math.random()<_.cU("web_system_health_fraction")))return R.jumpTo(0);xWb={heightPixels:screen.height,widthPixels:screen.width};hf&&!isNaN(hf.jsHeapSizeLimit)&&(xWb.memoryTotalKbytes=String(Math.round(hf.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(xWb.devicePixelRatio=window.devicePixelRatio);return R.yield(ciP(),4)}_.yQ(iPl,
3E4);return R.yield(OPq(),0)})};
ciP=function(){return _.O(function(R){if(R.nextAddress==1)return o4.intersectionObserverPresent="IntersectionObserver"in window,o4.serviceWorkerPresent="serviceWorker"in navigator,o4.webSharePresent="share"in navigator,o4.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,o4.cacheStoragePresent="caches"in window,o4.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,o4.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
o4.webkitTemporaryStoragePresent="webkitTemporaryStorage"in kp&&kp.webkitTemporaryStorage&&"queryUsageAndQuota"in kp.webkitTemporaryStorage,o4.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",R.yield(qQk(),2);o4.indexedDbPresent=R.yieldResult;o4.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;o4.broadcastChannelPresent="BroadcastChannel"in window;o4.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(o4.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,o4.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.XH(R)})};
iPl=function(){var R=9E4+Math.random()*2E3;_.z$()>R||(_.v("enable_system_health_primes_monitoring")?l_3():OPq())};
OPq=function(){var R;return _.O(function(A){if(A.nextAddress==1)return A.yield(s_q(),2);R=A.yieldResult;_.Wj("systemHealthCaptured",R);_.XH(A)})};
l_3=function(){var R={metric:{}},A=N7l();A.networkEvents.length&&(R.metric.networkEvents=Vnb(A));_.Wj("systemHealthCaptured",R)};
s_q=function(){var R,A,Y,P,E,z,c,M,N,y;return _.O(function(m){switch(m.nextAddress){case 1:R={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)};A=window.screen;_.v("enable_is_extended_monitoring")&&A&&"isExtended"in A&&(R.isExtended=!!A.isExtended);Y={metric:{staticContext:xWb,dynamicContext:R,webMetric:Ji3,webApiSupport:o4}};
if(P=_.F9())Y.csn=P;hf&&(Y.metric.webMetric.currentHeapKbytes=Math.round(hf.usedJSHeapSize/1E3));window.matchMedia&&(Y.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,Y.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,Y.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in kp&&typeof kp.getBattery==="function")){m.jumpTo(2);break}return m.yield(kp.getBattery(),3);case 3:if(E=
m.yieldResult)Y.metric.dynamicContext.chargingStatus=E.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(Y.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(o4.storageEstimatePresent)return m.yield(navigator.storage.estimate(),8);if(!o4.webkitTemporaryStoragePresent){m.jumpTo(5);break}return m.yield(yiu(),7);case 7:z=m.yieldResult;m.jumpTo(5);break;case 8:z=m.yieldResult;case 5:return Y.metric.dynamicContext.deviceStorageQuotaMbytes=((c=z)==null?0:c.quota)?String(Math.round(z.quota/
1048576/10)*10):"-1",Y.metric.dynamicContext.deviceStorageUsageMbytes=((M=z)==null?0:M.usage)?String(Math.round(z.usage/1048576/10)*10):"-1",N=Y.metric.dynamicContext,m.yield(EmJ(),9);case 9:return N.hasAppShell=m.yieldResult,y=N7l(),y.networkEvents.length&&(Y.metric.networkEvents=Vnb(y)),m.return(Y)}})};
yiu=function(){return new Promise(function(R){var A;o4.webkitTemporaryStoragePresent&&(A=kp.webkitTemporaryStorage)!=null&&A.queryUsageAndQuota?kp.webkitTemporaryStorage.queryUsageAndQuota(function(Y,P){R({usage:Y,quota:P})}):R(void 0)})};
_.G9=function(R){R&=16777215;R=[(R&16711680)>>16,(R&65280)>>8,R&255];return mWk(R[0],R[1],R[2])};
_.Zs=function(R){R=[(R&16711680)>>>16,(R&65280)>>>8,R&255,(R&4278190080)>>>24];var A=_.T7S(R,function(Y){return Y==(Y&255)});
R[3]=(R[3]/255).toFixed(3);if(!A)throw Error("ag`"+R.join(","));return"rgba("+R.join(",")+")"};
_.Q_I=function(R){return[(R&16711680)>>>16,(R&65280)>>>8,R&255]};
_.vmk=function(R){R=R.map(function(A){A/=255;return A<=.03928?A/12.92:Math.pow((A+.05)/1.05,2.4)});
return R[0]*.2126+R[1]*.7152+R[2]*.0722};
tf=function(R,A){R=_.Q_I(R);return"rgba("+R[0]+", "+R[1]+", "+R[2]+", "+A+")"};
_.gmq=function(){try{return!!self.localStorage}catch(R){return!1}};
DWS=function(){if(nmV())_.pK(Error("bg"));else{var R=document.createElement("iframe");R.style.display="none";var A=A===void 0?window.location.href:A;var Y=_.pn(_.a1("PERSIST_IDENTITY_IFRAME_URL"));A=Y?Y:(new URL(A)).host.indexOf("studio")===0?_.Jr(HPS,"persist_identity"):_.Jr(riS,"persist_identity");_.l4k(R,1,A);R.id="persist_identity";var P;(P=document.body)==null||P.appendChild(R)}};
nmV=function(){var R=UWV;R||(R=document.querySelector("#persist_identity"));return R};
$WI=function(){var R=!1;try{R=!!window.sessionStorage.getItem("session_logininfo")}catch(A){R=!0}return(_.a1("INNERTUBE_CLIENT_NAME")==="WEB"||_.a1("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&R};
Xl6=function(R,A){if(!$WI())return!1;A||(A=_.a1("LOGIN_INFO"));return A?(R.session_logininfo=A,!0):!1};
I_6=function(R,A){R=R===void 0?!1:R;if((A===void 0||!A)&&SDl!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.CQ("LOG_STICKINESS",!1)){A=_.F9();var Y=_.pO(),P={identityStickinessData:{initialState:SDl}};A&&Y&&_.dH(A,Y,P)}if(A=nmV())if(Y=A.src?(new URL(A.src)).origin:"*",R){var E;(E=A.contentWindow)==null||E.postMessage({action:"clear"},Y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(R=window.sessionStorage.getItem("session_logininfo"))){var z;(z=A.contentWindow)==null||z.postMessage({loginInfo:R},Y)}};
_.wa=function(R){R=R===void 0?!0:R;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.BD("LOGIN_INFO",""),R&&window.sessionStorage.setItem("from_switch_account","1"),I_6(!0,R)}catch(A){}};
KKu=function(R){R&&(R.startsWith("https://accounts.google.com/AddSession")?_.wa():R.startsWith("https://accounts.google.com/ServiceLogin")?_.wa():R.startsWith("https://myaccount.google.com")&&_.eK(R).getPath().endsWith("/youtubeoptions")&&_.wa())};
uk=function(R,A){KKu(R);if(_.CQ("LOGGED_IN",!0)&&$WI()){var Y=HUk(R);Y==null&&(Y={});Xl6(Y,A)&&_.Yo(R,Y)}};
WK6=function(){function R(A){for(A=A.target;A&&A.nodeName!=="A";)if(A=A.parentNode,!(A&&A instanceof HTMLElement))return;if(A&&!A.hasAttribute("download")&&A.getAttribute("rel")!=="external"&&A.href)return A.href}
document.addEventListener("mousedown",function(A){A.button!==0&&(A=R(A))&&uk(A)});
document.addEventListener("click",function(A){(A=R(A))&&uk(A)})};
f_J=function(){var R=new j_P;try{if(_.CQ("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(M){R.increment(5,!1);return}if(_.a1("LOGIN_INFO")){var A=bPl?bPl:window.location;_.a1("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&DWS();var Y=HUk(A.href);Y==null&&(Y={});var P=Y.session_logininfo,E=Number(window.sessionStorage.getItem("stickiness_reload")),z=P===_.a1("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
E>=2||z)E>=2?R.increment(2,z):z?R.increment(7,z):window.sessionStorage.getItem("session_logininfo")||(R.increment(3,z),SDl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.a1("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.a1("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))R.increment(4,z),window.sessionStorage.removeItem("stickiness_reload");
else if(E<2){window.sessionStorage.setItem("stickiness_reload",String(E+1));var c=A.href;c=_.Pk(c,"sttick");uk(c,window.sessionStorage.getItem("session_logininfo"));c=_.LQ(c,{sttick:E});R.increment(E,z);_.N2l(A,c)}}else R.increment(6,!1)}else _.wa(!1)}catch(M){}};
_.eI=function(R,A,Y,P,E){A=A===void 0?{}:A;Y=Y===void 0?"":Y;P=P===void 0?window:P;R=_.du(R,A);uk(R);Y=_.oR(R+Y,E);_.N2l(P.location,Y)};
_.plb=function(R,A,Y,P,E){E=E===void 0?!1:E;Y&&_.Yo(R,Y);Y=_.oR(R);var z=_.Ff(Y);R!=z&&_.tv(Error("cg`"+R));R=z;A=A||ZZ(R).toString(36);try{if(E)return E=R,E=Uf3(E),uk(E),_.dZ(window,E,A,"attributionsrc")}catch(c){_.hv(c)}uk(R);return _.dZ(window,Y,A,P)};
FKk=function(R){if(R.urlEndpoint){if(R=_.qI(R.urlEndpoint.url),R.adurl)return EK(R.adurl)}else if(R.watchEndpoint)return"//www.youtube.com/watch?v="+R.watchEndpoint.videoId;return null};
B7S=function(R){if(!R||!R.reportingPings)return null;var A={};R.reportingPings.forEach(function(Y){Y.pingType in A?A[Y.pingType].push(Y.url):A[Y.pingType]=[Y.url]});
return{adpings:no8(A)}};
_.qi=function(){return{isShellLoad:_.CQ("IS_SHELL_LOAD",!1)}};
CMJ=function(){navigator.serviceWorker.getRegistrations().then(function(R){R.forEach(a_k)})};
a_k=function(R){R&&_.h_J(omk,R.scope)};
_.h_J=function(R,A){A={scope:A||_.OK("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Kq(R),A)};
Lo=function(R,A,Y,P){if(A&&A.serializedYpcCujLoggingParams){if(Y){var E={};E.transactionErrorType=Y;P&&(E.errorMessage=P);A.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:E}}}Y={};Y.ypcCujContext=A;R=_.mb("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",R,Y);_.T9(_.Q2(),R,"FLOW_TYPE_YPC_ACQUISITION")}};
_.kP8=function(R,A,Y,P){var E={};E.serializedTransactionFlowLoggingParams=A;Y&&(E.errorType=Y);P&&(E.errorMessage=P);_.Wj(R,E);_.j_()};
_.GPk=function(R){R&&_.kP8("transactionFlowStarted",R)};
_.ZPk=function(R){R&&_.kP8("transactionFlowCancelled",R)};
_.da=function(R,A,Y){A&&_.kP8("transactionFlowFailed",A,R,Y)};
tn8=function(R){var A=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");A&&(A.inert=R)};
_.R6=function(){this.megabloxUrl_=null};
_.Ah=function(R){try{var A=wlk==null?void 0:wlk.composedPath(R)}catch(Y){A=R.composedPath?R.composedPath():[]}return A&&A.length>0?A:R.composedPath?R.composedPath():[]};
_.Yw=function(R){return _.Ah(R)[0]};
_.PZ=function(R){if(!(R instanceof Element))return null;R=R.classList?Array.from(R.classList):void 0;if(!R)return null;var A=R.indexOf("style-scope");return A>-1&&A+1<R.length?R[A+1]:null};
El=function(R){if(!(R instanceof HTMLElement))return null;var A=R&&(R.$$||R.polymerController)?R.tagName.toLowerCase():null;return A?A:_.PZ(R)};
u3J=function(R,A){return R.replace(/[^a-z]*[^\s]+/g,function(Y){return Y+".style-scope."+A})};
e_6=function(R,A){return A?R.split(",").map(function(Y){return u3J(Y.trim(),A)}).join(", "):R};
_.z2=function(R){var A,Y,P,E;return(E=(P=(Y=(A=R.root)!=null?A:R.shadowRoot)!=null?Y:R.__shady_native_shadowRoot)!=null?P:R.__shady_shadowRoot)!=null?E:R};
i5=function(R){return R instanceof ShadowRoot?ShadowRoot:R instanceof DocumentFragment?DocumentFragment:R instanceof Document?Document:HTMLElement};
qDl=function(R){var A,Y,P;return(P=(Y=(A=R.parentElement)!=null?A:R.__shady_native_parentElement)!=null?Y:R.__shady_parentElement)!=null?P:null};
LKP=function(R){var A,Y,P;return(P=(Y=(A=R.parentNode)!=null?A:R.__shady_native_parentNode)!=null?Y:R.__shady_parentNode)!=null?P:null};
dWk=function(R){var A,Y,P;return(P=(Y=(A=R.__shady_parentNode)!=null?A:R.__shady_native_parentNode)!=null?Y:R.parentNode)!=null?P:null};
RGP=function(R){var A,Y;return(Y=(A=LKP(R))!=null?A:R.host)!=null?Y:null};
Ajk=function(R){var A,Y,P;return(P=(Y=(A=R.nextSibling)!=null?A:R.__shady_native_nextSibling)!=null?Y:R.__shady_nextSibling)!=null?P:null};
Ymk=function(R){var A,Y,P;return(P=(Y=(A=R.previousSibling)!=null?A:R.__shady_native_previousSibling)!=null?Y:R.__shady_previousSibling)!=null?P:null};
Pfq=function(R){var A,Y,P;return(P=(Y=(A=R.nextElementSibling)!=null?A:R.__shady_native_nextElementSibling)!=null?Y:R.__shady_nextElementSibling)!=null?P:null};
EE3=function(R){var A,Y,P;return(P=(Y=(A=R.previousElementSibling)!=null?A:R.__shady_native_previousElementSibling)!=null?Y:R.__shady_previousElementSibling)!=null?P:null};
zG3=function(R){var A,Y,P;return new Set([].concat(_.py((A=R.children)!=null?A:[]),_.py((Y=R.__shady_native_children)!=null?Y:[]),_.py((P=R.__shady_children)!=null?P:[])))};
iSk=function(R){var A,Y,P;return new Set([].concat(_.py((A=R.childNodes)!=null?A:[]),_.py((Y=R.__shady_native_childNodes)!=null?Y:[]),_.py((P=R.__shady_childNodes)!=null?P:[])))};
lqu=function(R){if(!R)return null;var A=_.PZ(R);if(!A){var Y;return(Y=Node.prototype.getRootNode)==null?void 0:Y.call(R)}A=A.toUpperCase();for(R=qDl(R);R&&R.tagName!==A;)R=qDl(R);return R?_.z2(R):null};
xqk=function(R){for(;R&&!(R instanceof HTMLElement);)R=RGP(R);return R};
cjJ=function(R){var A=xqk(R);return R===A?_.PZ(R):A?El(A):null};
OS6=function(R){return(R=xqk(R))?El(R):null};
MW6=function(R){if(R instanceof Comment)return!1;if(R instanceof Text){var A,Y;if(((Y=(A=R.textContent)==null?void 0:A.trim())!=null?Y:"")==="")return!1}return!0};
l5=function(R,A,Y){var P=A(R);for(Y=Y===void 0?OS6(R):Y;P&&(cjJ(P)!==Y||!MW6(P));)R=P,P=A(R);return P};
sUl=function(R,A,Y){if(!A)return null;R=OS6(R);return cjJ(A)===R&&MW6(A)?A:l5(A,Y,R)};
Nwk=function(R){return l5(R,dWk,_.PZ(R))};
VWJ=function(R){return l5(R,Pfq)};
Jjq=function(R){return l5(R,Ajk)};
yjk=function(R){return l5(R,EE3)};
mqq=function(R){return l5(R,Ymk)};
Twb=function(R){return sUl(R,R.firstChild||R.__shady_native_firstChild||R.__shady_firstChild||null,Ajk)};
QU3=function(R){var A,Y,P;var E=(P=(Y=(A=R.firstElementChild)!=null?A:R.__shady_native_firstElementChild)!=null?Y:R.__shady_firstElementChild)!=null?P:null;return sUl(R,E,Pfq)};
vEV=function(R){var A,Y,P;var E=(P=(Y=(A=R.lastChild)!=null?A:R.__shady_native_lastChild)!=null?Y:R.__shady_lastChild)!=null?P:null;return sUl(R,E,Ymk)};
gE6=function(R){var A,Y,P;var E=(P=(Y=(A=R.lastElementChild)!=null?A:R.__shady_native_lastElementChild)!=null?Y:R.__shady_lastElementChild)!=null?P:null;return sUl(R,E,EE3)};
nE6=function(R){var A=OS6(R);return Array.from(iSk(R)).filter(function(Y){return cjJ(Y)===A})};
HSk=function(R){var A=El(R);return Array.from(zG3(R)).filter(function(Y){return _.PZ(Y)===A})};
_.xw=function(R,A,Y){if(R instanceof HTMLElement&&_.PZ(R)===Y){var P=Array.from(R.classList).indexOf("style-scope");if(P===-1)R.classList.add("style-scope"),R.classList.add(A);else if(!(P+1>=R.classList.length)){P=R.classList[P+1];var E,z;R==null||(E=R.classList)==null||(z=E.replace)==null||z.call(E,P,A)}}if(R instanceof HTMLElement||R instanceof DocumentFragment)for(E=_.x(zG3(R)),z=E.next();!z.done;z=E.next())_.xw(z.value,A,Y);return R};
cZ=function(R,A){if(R instanceof HTMLElement&&_.PZ(R)===A){var Y=Array.from(R.classList).indexOf("style-scope");Y===-1||Y+1>=R.classList.length||R.classList.remove("style-scope",R.classList[Y+1])}if(R instanceof HTMLElement||R instanceof DocumentFragment){Y=_.x(R.children);for(var P=Y.next();!P.done;P=Y.next())cZ(P.value,A)}return R};
_.rjk=function(R,A){return i5(R).prototype.appendChild.call(R,A)};
Dqk=function(R,A){if(R===A)return!0;R=iSk(R);return Array.from(R).some(function(Y){return Dqk(Y,A)})};
_.Mo=function(R,A){if(R instanceof Ol)return R;(A==null?0:A.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(R,"ownerDocument")&&Object.defineProperty(R,"ownerDocument",{get:function(){return window.document}});
return new Ol(R)};
$qP=function(){var R=Ol.prototype,A=[].concat(_.py(Uqk?[]:["getRootNode"]),["setAttribute","removeAttribute"]);A=_.x(A);for(var Y=A.next(),P={};!Y.done;P={method$jscomp$51:void 0},Y=A.next())P.method$jscomp$51=Y.value,R[P.method$jscomp$51]=function(E){return function(){return this.host[E.method$jscomp$51].apply(this.host,arguments)}}(P)};
Smk=function(){var R=Ol.prototype,A=[].concat(_.py(Uqk?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.py(XoS?[]:["querySelector","querySelectorAll"]));A=_.x(A);for(var Y=A.next(),P={};!Y.done;P={method$jscomp$52:void 0},Y=A.next())P.method$jscomp$52=Y.value,R[P.method$jscomp$52]=function(E){return function(){return this.root[E.method$jscomp$52].apply(this.root,arguments)}}(P)};
Wa6=function(){var R=Ol.prototype,A=[].concat(_.py(Iqk?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.py(Kaq?[]:["parentNode"]));A=_.x(A);for(var Y=A.next(),P={};!Y.done;P={prop$jscomp$63:void 0},Y=A.next())P.prop$jscomp$63=Y.value,Object.defineProperty(R,P.prop$jscomp$63,{get:function(E){return function(){return this.host[E.prop$jscomp$63]}}(P),
configurable:!0})};
fq6=function(){var R=Ol.prototype,A=["activeElement"].concat(_.py(Iqk?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.py(jUP?[]:["children"]),_.py(bSl?[]:["lastChild"]));A=_.x(A);for(var Y=A.next(),P={};!Y.done;P={prop$jscomp$64:void 0},Y=A.next())P.prop$jscomp$64=Y.value,Object.defineProperty(R,P.prop$jscomp$64,{get:function(E){return function(){return this.root[E.prop$jscomp$64]}}(P),
configurable:!0})};
pob=function(){for(var R=Ol.prototype,A=_.x(["innerHTML","textContent"]),Y=A.next(),P={};!Y.done;P={prop$jscomp$65:void 0},Y=A.next())P.prop$jscomp$65=Y.value,Object.defineProperty(R,P.prop$jscomp$65,{get:function(E){return function(){return this.root[E.prop$jscomp$65]}}(P),
set:function(E){return function(z){this.root[E.prop$jscomp$65]=z}}(P),
configurable:!0})};
Fak=function(R){var A=Ol.prototype;R=_.x(Object.entries(R));for(var Y=R.next(),P={};!Y.done;P={fn$jscomp$401:void 0},Y=R.next()){var E=_.x(Y.value);Y=E.next().value;E=E.next().value;P.fn$jscomp$401=E;A[Y]=function(z){return function(){return z.fn$jscomp$401.apply(null,[this.host.node||this.host].concat(_.py(arguments)))}}(P)}};
aqq=function(){for(var R=Ol.prototype,A=_.x(Object.entries(Bwk)),Y=A.next(),P={};!Y.done;P={fn$jscomp$402:void 0},Y=A.next()){var E=_.x(Y.value);Y=E.next().value;E=E.next().value;P.fn$jscomp$402=E;Object.defineProperty(R,Y,{get:function(z){return function(){return z.fn$jscomp$402.apply(null,[this.host.node||this.host].concat(_.py(arguments)))}}(P),
configurable:!0})}};
_.sl=function(R){return R instanceof CfI||R instanceof Document?R:new CfI(R)};
hG6=function(){for(var R=CfI.prototype,A=_.x("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),Y=A.next(),P={};!Y.done;P={method$jscomp$53:void 0},Y=A.next())P.method$jscomp$53=Y.value,R[P.method$jscomp$53]=function(E){return function(){return HTMLElement.prototype[E.method$jscomp$53].call.apply(HTMLElement.prototype[E.method$jscomp$53],[this.node].concat(_.py(arguments)))}}(P)};
oEk=function(){for(var R=CfI.prototype,A=_.x("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),Y=A.next(),P={};!Y.done;P={prop$jscomp$66:void 0},Y=A.next())P.prop$jscomp$66=Y.value,Object.defineProperty(R,P.prop$jscomp$66,{get:function(E){return function(){var z;return(z=this.node["__shady_native_"+E.prop$jscomp$66])!=null?z:this.node[E.prop$jscomp$66]}}(P),
configurable:!0})};
_.No=function(R,A,Y){Y===void 0&&(Y=!R.classList.contains(A));Y?R.classList.add(A):R.classList.remove(A)};
_.Va=function(R,A,Y){Y===void 0&&(Y=!R.hasAttribute(A));if(A==="class")throw Error("gg");Y?_.sl(R).setAttribute(A,""):_.sl(R).removeAttribute(A)};
k1k=function(R){return(R.localName!=="slot"?[]:(0,_.Jh)(R).assignedNodes({flatten:!0})).filter(function(A){return A.nodeType===Node.ELEMENT_NODE})};
_.G1l=function(R){return(R=_.Mo(R).querySelector("slot"))&&R.localName==="slot"?k1k(R):[]};
_.ya=function(R,A){window.ShadyCSS&&window.ShadyCSS.styleSubtree(R,A)};
my=function(R,A){var Y=A.bind(R);return function(P){Y(P,P.detail)}};
_.T2=function(R,A){var Y=ZSS.get(R);Y||(Y=new WeakMap,ZSS.set(R,Y));if(Y.has(A))return Y.get(A);if(_.v("web_fi_listen_disable_bound_fn_helper")){var P=A.bind(R);R=function(E){P(E,E==null?void 0:E.detail)}}else R=my(R,A);
Y.set(A,R);return R};
u0u=function(R,A){tW6(R);R.created[wo8].push(A)};
tW6=function(R){if(!R.created||!R.created[wo8]){var A=R.created,Y=A?[A]:[];R.created=function(){for(var P=_.x(Y),E=P.next();!E.done;E=P.next())E.value.apply(this)};
R.created[wo8]=Y}};
eGJ=function(R){return function(){var A=_.Ge.apply(0,arguments);return function(Y,P,E){R.apply(null,_.py(A))(Y,P,E)}}};
qmk=function(){return function(){var R=_.Ge.apply(0,arguments);return function(A,Y,P){CKP.apply(null,_.py(R))(A,Y,P)}}};
_.U=function(R){return qmk()(R)};
_.X=function(){return eGJ(GsP).apply(null,_.py(_.Ge.apply(0,arguments)))};
_.Qa=function(R){return _.v("pbcm_fi_listen_decorators")?LaJ(R):eGJ(ol6)(R)};
LaJ=function(R){return function(A,Y){u0u(A,function(){var P=this[Y],E=_.v("web_fi_listen_disable_bound_fn_helper")?function(z){P(z,z.detail)}.bind(this):my(this,P);
dqu.has(R)?by(this.hostElement,R,E):this.hostElement.addEventListener(R,E)})}};
_.vZ=function(){return eGJ(ksb).apply(null,_.py(_.Ge.apply(0,arguments)))};
_.S=function(R){R=R===void 0?{}:R;return eGJ(h5k)(R)};
_.gg=function(R){if(R.hostElement&&R!==R.hostElement){var A=_.S0(R.hostElement);A=R.renderIdom?A:A.shadowRoot}A||(R=R.root,A=R instanceof Node?_.S0(R):null);return A};
_.nG=function(R){return ReV?Ac3(R):function(A,Y){Object.defineProperty(A,Y,{get:function(){var P;return(P=_.gg(this))==null?void 0:P.querySelector(R)},
enumerable:!0,configurable:!0})}};
Ac3=function(R){return function(A,Y){Object.defineProperty(A,Y,{get:function(){var P,E=(P=_.Mo(this.hostElement))==null?void 0:P.querySelector(R);if(E)return E;var z;return(z=_.gg(this))==null?void 0:z.querySelector(R)},
enumerable:!0,configurable:!0})}};
_.HZ=function(R){return ReV?Yok(R):function(A,Y){Object.defineProperty(A,Y,{get:function(){var P;return(P=_.gg(this))==null?void 0:P.querySelectorAll(R)},
enumerable:!0,configurable:!0})}};
Yok=function(R){return function(A,Y){Object.defineProperty(A,Y,{get:function(){var P,E=(P=_.Mo(this.hostElement))==null?void 0:P.querySelectorAll(R);if(E==null?0:E.length)return E;var z;return(z=_.gg(this))==null?void 0:z.querySelectorAll(R)},
enumerable:!0,configurable:!0})}};
P0u=function(R){return function(A){if(![_.Pe,_.K].includes(Object.getPrototypeOf(A.prototype).constructor))throw Error("hg");W5I(Object.assign({},typeof R!=="string"?R:{is:R,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(A)}};
_.Do=function(){var R=R===void 0?{}:R;return function(A){if(![EP,_.rg].includes(Object.getPrototypeOf(A.prototype).constructor))throw Error("ig");j7k(Object.assign({},R,{disableInheritanceCheck:!0}))(A)}};
zeJ=function(R,A){E4S[R]!=null||(E4S[R]=new Set);E4S[R].add(A)};
_.Ul=function(){var R=_.vZ.apply(null,_.py(_.Ge.apply(0,arguments)));return function(A,Y){zeJ(A.is,Y);R(A,Y)}};
Sz=function(R,A,Y){if($w(R)&&!im8.has(A)){A=A.replace(/^JSC\$[\d]+_/,"");A=A.replace(/\.\d+(\.|$)/g,function(z,c){return".#"+c});
X7[R]!=null||(X7[R]={});var P,E;(P=X7[R])[E=A]!=null||(P[E]=new Set);X7[R][A].has(Y)||(X7[R][A].add(Y),_.Wj("polymerPropertyAccessEvent",{componentName:R,propertyName:A,accessType:Y}))}};
l$P=function(){return _.v("polymer_property_access_logging_debug")||_.v("polymer_enable_property_access_logging")};
$w=function(R){if(_.v("polymer_property_access_logging_debug"))return!0;if(!_.v("polymer_enable_property_access_logging"))return!1;xru||(xru=Date.now());return(ZZ(R)+xru)%100<_.cU("polymer_property_access_logging_percent")};
cc3=function(R,A){return $w(A)&&R.hostElement.loggingStatus?new Proxy(R,{get:function(Y,P,E){if(Y.hostElement.loggingStatus.bypassProxyController)return Y[P];Y.hostElement.loggingStatus.isExternalGet=!0;var z=Y[P];Y.hostElement.loggingStatus.isExternalGet=!1;if(z instanceof Function)return function(){var c=_.Ge.apply(0,arguments);try{return Y.hostElement.loggingStatus.currentExternalCall=P,Sz(A,P,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),z.apply(this===E?Y:this,c)}finally{Y.hostElement.loggingStatus.currentExternalCall=
void 0}};
Sz(A,P,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return z},
set:function(Y,P,E){if(Y.hostElement.loggingStatus.bypassProxyController)return Y[P]=E,!0;Y.hostElement.loggingStatus.isRendererStamper?Sz(A,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):Y.hostElement.loggingStatus.isDeclarativeExternal||Sz(A,P,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{Y.hostElement.loggingStatus.currentExternalSet=P,Y[P]=E}finally{Y.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):R};
Omq=function(R,A){R&&R.loggingStatus&&!R.loggingStatus.isDeclarativeExternal&&!R.loggingStatus.isExternalGet&&R.loggingStatus.currentExternalSet!==A&&Sz(R.tagName.toLowerCase(),A,"PROPERTY_ACCESS_GET_INTERNAL")};
I6=function(R,A,Y){R&&(Y||R.loggingStatus&&!R.loggingStatus.isInitializing&&!R.loggingStatus.isDefiningPropertyAccessor&&R.loggingStatus.currentExternalSet!==A)&&Sz(R.tagName.toLowerCase(),A,"PROPERTY_ACCESS_SET_INTERNAL")};
Mkk=function(){return{_definePropertyAccessor:function(R,A){var Y=this,P=Y.hostElement.loggingStatus;P&&(P.isDefiningPropertyAccessor=!0);var E=Y[R];E!==void 0&&(Y.__data?Y._setPendingProperty(R,E):(Y.__dataProto!=null||(Y.__dataProto={}),Y.__dataProto[R]=E));P&&(P.isDefiningPropertyAccessor=!1);Object.defineProperty(this,R,{get:function(){Omq(Y.hostElement,R);return this.__data[R]},
set:function(z){A||this._setPendingProperty(R,z,!0)&&this._invalidateProperties()}})},
created:function(){var R=this._setPendingProperty.bind(this);this._setPendingProperty=function(A,Y,P){I6(this.hostElement,A);return R.apply(this,[A,Y,P])}}}};
sb8=function(R){l$P()&&_.U(KG.prototype)(R.prototype,"__templateBindingLoggingBehavior")};
NBV=function(R,A){if(A.resolvedFactories.length!==R.resolvedFactories.length)return!0;A=_.x(A.resolvedFactories.entries());for(var Y=A.next();!Y.done;Y=A.next()){var P=_.x(Y.value);Y=P.next().value;P=P.next().value;if(P.providerClass){if(P.providerClass!==R.resolvedFactories[Y].providerClass)return!0}else if(P.providerValue){if(P.providerValue!==R.resolvedFactories[Y].providerValue)return!0}else if(P.factory!==R.resolvedFactories[Y].factory)return!0}return!1};
Vk6=function(R,A){R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,Y.constructor===Array)Vk6(Y,A);else{var P=A;P.has(Y)||(Y.inject&&P.add(Y),Y.behaviors&&Vk6(Y.behaviors,P))}};
WZ=function(R,A){var Y=R[A];R[A]=function(){var P=_.Ge.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(Y)return Y.apply(this,P)}};
TBJ=function(){_.jz.Class=function(Y,P){Y=JcS(Y,P);WZ(Y.prototype,"created");return Y};
WZ(b5.prototype,"_initializeProperties");WZ(_.fG.prototype,"_initializeProperties");if(ycq)WZ(mrk,"created");else{var R=function(){WZ(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))R();else{var A=customElements.define;customElements.define=function(Y,P,E){A.call(customElements,Y,P,E);Y==="tp-yt-iron-list"&&(R(),customElements.define=A)}}}};
v4J=function(R,A){R.prototype.behaviors=R.prototype.behaviors||[];R.prototype.behaviors.unshift(Qb6.InjectBehavior);R.prototype.provide=A};
_.CG=function(R){return function(A){if(!R.disableElementRegistration){R.noInjection||v4J(A,R.providers);var Y=A.prototype;Y.__templateHelpers||CKP(pG.prototype)(Y,"__templateHelpers");Y=R.is;g4k||(g4k=Date.now());(ZZ(Y)+g4k)%100<_.cU("polymer_log_prop_change_observer_percent")&&CKP(a6.prototype)(A.prototype,"__propertyObserverObserver");A.prototype.behaviors=A.prototype.behaviors||[];A.prototype.behaviors.unshift(_.n4u.YtHostElementBehavior);sb8(A);P0u({is:R.is,notifyObserversOnUndefined:R.notifyObserversOnUndefined!==
!1,fastInit:R.fastInit,template:R.template,disableEnforceFastDefaultValuesCheck:!0})(A)}}};
_.F=function(R){return _.CG({is:R.is,template:R.template,disableElementRegistration:R.disableElementRegistration,cssBuildOptOut:R.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
Dr3=function(R,A){if(Hml){R=new R;for(var Y=_.x(Object.getOwnPropertyNames(R)),P=Y.next();!P.done;P=Y.next())P=P.value,A[P]=R[P];for(Y=A;Y&&Y!==Object.prototype;Y=Object.getPrototypeOf(Y)){P=_.x(Object.getOwnPropertyNames(Y));for(var E=P.next();!E.done;E=P.next())E=E.value,R.hasOwnProperty(E)||Object.defineProperty(R,E,rcq(A,E))}}else R.apply(A)};
rcq=function(R,A){return{get:function(){var Y=R[A];return Y instanceof Function?Y.bind(R):Y},
set:function(Y){R[A]=Y}}};
$rk=function(R,A){for(var Y=R._noAccessors,P=_.x(Object.getOwnPropertyNames(R)),E=P.next();!E.done;E=P.next())if(E=E.value,!Ur6.has(E))if(Y)A[E]=R[E];else{var z=Object.getOwnPropertyDescriptor(R,E);z&&(z.configurable=!0,Object.defineProperty(A,E,z))}};
XAk=function(R,A,Y){return function(P){if(Y){var E=Y();P.model=E}if(R[A])R[A](P,P.detail)}};
hh=function(R){var A=[];if(typeof R==="string")R.length>0&&A.push.apply(A,_.py(R.split(".")));else{R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,typeof Y==="string"?A.push.apply(A,_.py(Y.split("."))):A.push(Y)}return A};
Sol=function(R,A){if(A[A.length-1]!=="*"&&A[A.length-1]!=="splices"){for(var Y=0;Y<A.length;Y++){if(!R)return;R=R[A[Y]]}return R}};
I$6=function(R,A){if(R.length>A.length)return!1;for(var Y=0;Y<R.length;Y++)if(R[Y]!==A[Y])return!1;return!0};
WIk=function(R,A,Y){if(A.type==="compute"){var P=A.getter.bind(Y);var E=A.args}else P=function(){return Y[A.method.methodName].apply(Y,_.py(_.Ge.apply(0,arguments)))},E=A.method.args;
KII(R,A.propertyKey,P,E,A.value)};
bmV=function(R,A){if(A.readOnly){var Y=Object.getOwnPropertyDescriptor(R.model,A.propertyKey);Object.defineProperty(R.model,A.propertyKey,{get:Y.get,set:function(){}});
R.model[jbq(A.propertyKey)]=Y.set}};
f$8=function(R,A,Y){if(Y){var P=A.propertyKey,E=A.selector;A=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.py(A.selectorArgs.map(function(z){return{type:"path",path:z}})));
KII(R,P,function(z){var c=_.Ge.apply(1,arguments);return E.apply(null,[Y.getState()].concat(_.py(c)))},A)}};
FII=function(R,A,Y){var P=_.gq(A.propertyKey)+"-changed";pAu(R,function(E){var z={value:E.value,queueProperty:!0};E.path.split(".").length>1&&(z.path=E.path);Y.dispatchEvent(new CustomEvent(P,{detail:z}))},[{type:"wildcard",
path:A.propertyKey}])};
BBu=function(R,A,Y){pAu(R,function(){Y[A.method.methodName].apply(Y,_.py(_.Ge.apply(0,arguments)))},A.method.args)};
jbq=function(R){return"_set"+(R.charAt(0).toUpperCase()+R.slice(1))};
a$b=function(){var R,A=fX(function(Y){R=Y},!1);
return[R,A]};
Ggk=function(R){R=R.trim().replace(C0J,",").replace(hek,"$1");var A=R[0];A==="-"&&(A=R[1]);if(A>="0"&&A<="9")return{type:"literal",value:Number(R)};if(A==="'"||A==='"')return{type:"literal",value:R.slice(1,-1)};if(A=R.match(o4l)){A=A[1];var Y=kgS[A];if(Y)return{type:Y,path:R.slice(0,-(A.length+1))}}return{type:"path",path:R}};
ujJ=function(R){var A=R.match(ZmV);if(A)return R={methodName:A[1],args:tkI},A[2].trim()&&(A=A[2].replace(wAb,"&comma;").split(","),R.args=A.map(Ggk)),R};
eek=function(R,A,Y,P){P=P===void 0?!1:P;A=_.gq(A);var E=ng;E&&(Y=E(Y,A,"attribute",R));o6(R,Y,A,P)};
o6=function(R,A,Y,P){A=qoq(A,P===void 0?!1:P);A===void 0?R.removeAttribute(Y):R.setAttribute(Y,A)};
qoq=function(R,A){switch(typeof R){case "object":case "function":if(R instanceof Date)return R.toString();if(R){if((A===void 0?0:A)&&!_.v("polymer_reflect_objects_as_boolean_killswitch"))return R?"":void 0;A=window.trustedTypes?window.trustedTypes.isHTML(R)||window.trustedTypes.isScript(R)||window.trustedTypes.isScriptURL(R):void 0;if(A)return R;try{return JSON.stringify(R)}catch(Y){_.pK(Error("Eg`"+R))}}break;case "boolean":return R?"":void 0;default:return R!==null&&R!==void 0?R.toString():void 0}};
LIk=function(R){if(R===void 0)throw Error("Fg");return R};
PWI=function(R,A,Y,P){var E=drk(P);if(E.length){P=Y;var z="property";R6J.test(Y)?z="attribute":Y[Y.length-1]==="$"&&(Y=Y.slice(0,-1),z="attribute");var c=ADk(E);c&&z==="attribute"&&(Y==="class"&&R.hasAttribute("class")&&(c+=" "+R.getAttribute(Y)),o6(R,c,Y));z==="attribute"&&P==="disable-upgrade$"&&R.setAttribute("disable-upgrade","");R.localName==="input"&&P==="value"&&R.setAttribute("value","");R.removeAttribute(P);z==="property"&&(Y=_.nO(Y));A=LIk(A);Y$k(A,z,Y,E);return!0}return Y.slice(0,3)===
"on-"?(R.removeAttribute(Y),(z=A).events!=null||(z.events=[]),A.events.push({name:Y.slice(3),value:P}),!0):Y==="id"?(A.id=P,!0):!1};
drk=function(R){for(var A=[],Y=0,P;(P=Ezk.exec(R))!==null;){P.index>Y&&A.push({type:"literal",value:R.slice(Y,P.index)});var E=P[1][0];Y=!!P[2];P=P[3].trim();if(E==="{")throw Error("Gg");(E=ujJ(P))?A.push({type:"method",negate:Y,signature:E}):A.push({type:"path",negate:Y,path:P});Y=Ezk.lastIndex}Y&&Y<R.length&&(R=R.substring(Y))&&A.push({type:"literal",value:R});return A};
ADk=function(R){for(var A="",Y=0;Y<R.length;Y++){var P=R[Y];P.type==="literal"&&(A+=P.value)}return A};
Y$k=function(R,A,Y,P){R.bindings!=null||(R.bindings=[]);R.bindings.push({kind:A,target:Y,parts:P})};
cD6=function(R,A,Y){var P=!1;if(R.localName==="template"){P=Y;var E=A.stripWhitespace;E=z66(R,E===void 0?!1:E);var z=R.content.ownerDocument.createDocumentFragment();E.content=z;z.appendChild(R.content);P&&(P.templateInfo=E);P=!0}else R.localName==="slot"&&(A.hasInsertionPoint=!0);if(R.firstChild&&(E=Y,R.localName!=="script"&&R.localName!=="style")){z=0;for(var c=R.firstChild;c;){var M=c;if(M.localName==="template"){var N=M.getAttribute("is");if((c=N==="dom-if")||N==="dom-repeat"){M.removeAttribute("is");
N=M.ownerDocument.createElement("ps-"+N);M.parentNode.replaceChild(N,M);N.appendChild(M);var y=Array.from(M.attributes);y=_.x(y);for(var m=y.next();!m.done;m=y.next())m=m.value,c?i5V.has(m.name)&&o6(N,m.value,m.name):lB8.has(m.name)?o6(N,m.value,m.name):x8k.has(m.name),M.removeAttribute(m.name);c=N}else c=M}if(c.nodeType===Node.TEXT_NODE){M=void 0;N=R;for(y=c;((M=y.nextSibling)==null?void 0:M.nodeType)===Node.TEXT_NODE;)m=void 0,(m=y).textContent!=null||(m.textContent=""),y.nextSibling.textContent&&
(y.textContent+=y.nextSibling.textContent),N.removeChild(y.nextSibling);if(A.stripWhitespace&&c.textContent&&!c.textContent.trim()){R.removeChild(c);c=c.nextSibling;continue}}cD6(c,A,{parentIndex:z,parentInfo:E});c.parentNode&&z++;c=c.nextSibling}}var T;if((T=R.hasAttributes)==null?0:T.call(R)){T=Y=LIk(Y);E=!1;z=Array.from(R.attributes);z=_.x(z);for(M=z.next();!M.done;M=z.next())M=M.value,E=PWI(R,T,M.name,M.value)||E;P=E||P}R.nodeType===Node.TEXT_NODE&&(T=drk(R.textContent),T.length&&(R.textContent=
ADk(T)||" ",Y=LIk(Y),Y$k(Y,"text","textContent",T),P=!0));Y&&P&&(Y.infoIndex=A.nodeInfoList.push(Y)-1)};
z66=function(R,A){A={nodeInfoList:[],stripWhitespace:(A===void 0?!1:A)||R.hasAttribute("strip-whitespace")};cD6(R.content,A);return A};
O5u=function(R){Object.assign(R,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
swb=function(R,A,Y){A.signalCache!=null||(A.signalCache={});var P=A.signalCache[Y];if(!P){var E=Y.split(".");P=!Msk(R,E[0]);if(E.length>1&&P){var z=R.getPathMutationSignal(E);P=function(){var c=BV(R.owner,function(){return R.getWithPath([E[0]])}),M,N=(M=z())==null?void 0:M.value;
return{rootWasDefined:c!==void 0,value:N}}}else P=function(){var c=R.getWithPath(E);
return{rootWasDefined:c!==void 0,value:c}};
A.signalCache[Y]=P}return P()};
Vsk=function(R,A,Y,P,E){A=A.parts.map(function(c,M){if(c.type==="literal"){Y.partWasDefined!=null||(Y.partWasDefined=[]);var N;(N=Y.partWasDefined)[M]||(N[M]=c.value!==void 0);return c.value}var y;if(c.type==="method"){var m,T=(m=(y=Y.partWasDefined)==null?void 0:y[M])!=null?m:!1;T||(T=c.signature.args.every(function(r){return r.type==="literal"}));
var Q=!1,g=!0;y=c.signature.args.map(function(r){if(r.type==="literal")return r.value;if(r.type!=="path")throw Error("Hg`"+r.type);var I=swb(R,Y,r.path);r=I.value;I=I.rootWasDefined;Q||(Q=I);g&&(g=I);return r});
T||(T=E===1?g:Q);Y.partWasDefined!=null||(Y.partWasDefined={});Y.partWasDefined[M]=T;if(!T)return;y=(M=swb(R,Y,c.signature.methodName).value)&&typeof M==="function"?M.apply(P,y):void 0}else m=swb(R,Y,c.path),y=m.value,Y.partWasDefined!=null||(Y.partWasDefined={}),(T=Y.partWasDefined)[M]||(T[M]=y!==void 0||m.rootWasDefined);c.negate&&(y=!y);return y});
if(A.length===1){var z;return((z=Y.partWasDefined)==null?0:z[0])?A[0]:NCu}return A.join("")};
JDP=function(R){return typeof R==="object"&&!!R&&"notifyPath"in R&&"canNotifyPath"in R};
yDu=function(R){return typeof R==="object"&&!!R&&"notifyPath"in R};
m8u=function(R){return"polymerController"in R};
TC8=function(R,A){A=""+hh(A)[0];if(JDP(R))return R.canNotifyPath(A);if(m8u(R)&&JDP(R.polymerController))return R.polymerController.canNotifyPath(A);if(yDu(R)){var Y;return!((Y=R.properties)==null||!Y[A])}if(m8u(R)&&yDu(R.polymerController)){var P;return!((P=R.polymerController.properties)==null||!P[A])}return!1};
Qwb=function(R,A,Y){JDP(R)||yDu(R)?R.notifyPath(A,Y):m8u(R)&&(JDP(R.polymerController)||yDu(R.polymerController))&&R.polymerController.notifyPath(A,Y)};
gzk=function(R,A,Y){if(Y!==NCu){R.kind==="attribute"||R.target!=="textContent"&&(R.target!=="value"||A.localName!=="input"&&A.localName!=="textarea")||(Y=Y===void 0?"":Y);var P,E=(P=vzJ.Polymer)==null?void 0:P.sanitizeDOMValue;E&&(Y=E(Y,R.target,R.kind,A));if(R.kind==="attribute"){R=R.target;if(R==="class"||R==="name"||R==="slot")A=(0,_.Jh)(A);o6(A,Y,R)}else if(R=R.target,Y!==A[R]||typeof Y==="object")A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!0,Sz(A.localName,R,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
A[R]=Y,A.loggingStatus&&(A.loggingStatus.isDeclarativeExternal=!1)}};
nzS=function(R,A,Y,P){var E=A.parts[0];if(A.parts.length!==1||E.type!=="path"||!TC8(Y,A.target))return!1;var z=_.x(E.path.split(".")),c=z.next().value,M=A6(z);if(Msk(R,c))return!1;P.signalCache!=null||(P.signalCache={});z=P.signalCache[E.path];var N;z=(N=z)==null?void 0:N().value;if((z==null?void 0:z.path)!==void 0){P=hh(z.path);var y=hh(E.path);P=[A.target].concat(_.py(P.slice(y.length-1)));Qwb(Y,P,E.negate?!z.value:z.value);return!0}var m=kw(R,c);var T=m.getChangeRecordSignal(M),Q=!1;z=function(){if(!Q){var r=
BV(R.owner,function(){return m.getWithPath([])});
Q||(Q=r!==void 0)}return{value:T(),rootWasDefined:Q}};
P.signalCache[E.path]=z;P.partWasDefined!=null||(P.partWasDefined={});z=z();(y=P.partWasDefined)[0]||(y[0]=z.rootWasDefined);var g=BV(R.owner,function(){return m.getWithPath(M)});
P.partWasDefined[0]&&BV(R.owner,function(){return void gzk(A,Y,E.negate?!g:g)});
return!0};
H5J=function(R,A,Y,P,E,z){if(!nzS(R,A,Y,P)){var c=Vsk(R,A,P,E,z);BV(R.owner,function(){return void gzk(A,Y,c)})}};
rD3=function(R,A,Y,P,E,z){Y=_.x(Y);for(var c=Y.next(),M={};!c.done;M={infoIndex:void 0},c=Y.next()){c=c.value;var N=c.bindings;M.infoIndex=c.infoIndex;c=c.parentInfo;if(N){N=_.x(N);for(var y=N.next(),m={};!y.done;m={b$jscomp$253:void 0,bindingCtx$jscomp$4:void 0},y=N.next()){m.b$jscomp$253=y.value;if(M.infoIndex===void 0)throw Error("Ig");m.bindingCtx$jscomp$4={};R.effect(function(T,Q){return function(){E&&!E()||H5J(R,T.b$jscomp$253,A[Q.infoIndex],T.bindingCtx$jscomp$4,P,z)}}(m,M))}}c&&rD3(R,A,[c],
P,E,z)}};
D8q=function(R,A){R=(A.parentInfo?D8q(R,A.parentInfo):R).firstChild;for(var Y=0;R;R=R.nextSibling)if(A.parentIndex===Y++)return R;throw Error("Jg");};
$8J=function(R,A,Y,P){R=document.importNode(R.content,!0);R.__noInsertionPoint=!(P==null?0:P.hasInsertionPoint);for(var E=Array(A.length),z={},c=0;c<A.length;c++){var M=A[c],N=D8q(R,M);E[c]=N;M.id&&(z[M.id]=N);if(M.templateInfo){var y=N.parentElement;y&&(y.templateInfo=M.templateInfo,y.parentSignalProxy=Y,y.eventListenerHost=P.eventListenerHost,y.stampingEnabled=P.enabledSignal)}y=void 0;if((y=M.events)==null?0:y.length)for(y=0;y<M.events.length;y++){var m=M.events[y];U83(P.eventListenerHost,N,m.name,
m.value,P.getModel)}}rD3(Y,E,A,P.thisCtx,P.enabledSignal,P.methodInvocationRequirement);return{root:R,nodes:E,nodesById:z}};
S$V=function(R,A){R=R();var Y;(Y=XRl.ShadyCSS)==null||Y.prepareTemplate(R,A);A=z66(R);return{template:R,nodeInfoList:A.nodeInfoList,hasInsertionPoint:A.hasInsertionPoint}};
Wgq=function(){IBb=!1;for(var R=G2.length,A=0;A<R;A++){var Y=G2[A];if(Y)try{Y()}catch(P){Promise.resolve().then(function(){throw P;})}}G2.splice(0,R);
KgJ+=R};
pRu=function(R){IBb||(IBb=!0,jwk.textContent=(b5u++).toString());G2.push(R);return fBP++};
_.wg=function(R,A,Y){Zo++;R=A?new FgS(Zo,R,A,Y):new BCI(Zo,R);th.set(Zo,R);return Zo};
aBl=function(R){(R=th.get(R))&&R.cancel()};
h6J=function(R,A){R=CWk.get(R);return R?(A=R.get(A))?A:null:null};
_.u5=function(R,A,Y,P){var E=h6J(R,A);if(!E){E=new ozk;var z=CWk.get(R);z||(z=new Map,CWk.set(R,z));z.set(A,E)}R=Y.bind(R);E.run(R,P,void 0)};
_.klS=function(R,A){var Y;(Y=h6J(R,A))==null||Y.cancel()};
Glu=function(R){var A;(A=h6J(R,"doRender"))==null||A.flush()};
ez=function(R){var A;return(A=R.hostElement)!=null?A:R};
Z5k=function(R){var A=R.indexOf(".");return A===-1?R:R.slice(0,A)};
tsk=function(R,A,Y,P,E,z){z=(E=(P=z?Z5k(A):A)?A:null)?R.get(E):R.__data[A];E&&z===void 0&&(z=Y[A]);_.xo(R.hostElement,vIS(P)+"-changed",{value:z,queueProperty:!0,path:E!=null?E:void 0},{bubbles:!1,composed:!1})};
wRk=function(R,A){R.__isReflecting=!0;eek(R.hostElement,A,R.__data[A]);R.__isReflecting=!1};
uo3=function(R){if(R._onIronRequestResizeNotifications){var A=R._onIronRequestResizeNotifications.bind(R);R._onIronRequestResizeNotifications=function(Y){_.Yw(Y)!==R.hostElement&&A(Y)}}R._ariaActiveAttributeChanged&&(R._ariaActiveAttributeChanged=R._ariaActiveAttributeChanged.bind(R.hostElement));
R._activeChanged&&(R._activeChanged=function(Y){R.toggles?o6(R.hostElement,Y?"true":"false",R.ariaActiveAttribute):R.hostElement.removeAttribute(R.ariaActiveAttribute);R._changedButtonState()});
R._asyncClick&&(R._asyncClick=function(){_.wg(function(){R.hostElement.click()},1)});
!R.keyEventTarget||R.keyEventTarget instanceof EventTarget||(R.keyEventTarget=ez(R.keyEventTarget));R._disabledChanged&&(R._disabledChanged=R._disabledChanged.bind(R.hostElement));R._observeItems&&(R._observeItems=function(Y){var P=ez(Y);return _.S0(P).observeNodes(function(E){R._updateItems();R._updateSelected();_.xo(P,"iron-items-changed",E,{bubbles:!1,cancelable:!1})})});
R._updateItems&&R._updateItems===_.qo._updateItems&&(R._updateItems=function(){var Y=_.S0(R.hostElement).queryDistributedElements(R.selectable||"*");Y=Array.prototype.filter.call(Y,R._bindFilterItem);R._setItems(Y)});
R._computeKeyboardClass&&(R._computeKeyboardClass=function(Y){_.No(R.hostElement,"keyboard-focus",Y)});
R.ensureRipple&&(R.ensureRipple=function(Y){if(R.hasRipple&&!R.hasRipple()){if(!R._createRipple)return;R._ripple=R._createRipple();R._ripple.noink=R.noink;var P=R._rippleContainer||R.hostElement;P&&_.Mo(P).appendChild(R._ripple)}var E;if(Y&&((E=R._ripple)==null?0:E.uiDownAction)){P=_.Mo(R._rippleContainer||R.hostElement);var z;E=(z=Y.composedPath())==null?void 0:z[0];P.contains(E)&&R._ripple.uiDownAction(Y)}});
R._updateMultiselectable&&(R._updateMultiselectable=function(Y){Y?R.hostElement.setAttribute("aria-multiselectable","true"):R.hostElement.removeAttribute("aria-multiselectable")})};
e6b=function(R,A,Y){Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next())Dr3(P.value.constructor,R);Dr3(A.constructor,R)};
Lg6=function(R,A){R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,Y.type==="signal"){var P=Y.propertyKey;if(A.hasOwnProperty(P)&&A[P]!=null&&Y.attributeType===Object){a:{P=A[P].constructor;for(var E=_.x(q$q),z=E.next();!z.done;z=E.next())if(z=z.value,P===z){P=z;break a}P=Object}Y.attributeType=P}}};
d8k=function(){};
RtV=function(R){var A;return(A=R.hostElement)!=null?A:R};
AK8=function(){throw Error("Ng");};
YY8=function(R,A){R.constructor.prototype.useSignals=!0;var Y=new R.constructor;e6b(Y,R,A.behaviors);Lg6(A.reactiveSchemas,Y);Y={};for(var P=_.x(A.reactiveSchemas),E=P.next();!E.done;E=P.next())E=E.value,E.type==="signal"&&(Y[E.propertyKey]=E.attributeType);var z={copyPropertiesToProto:AK8,didRegister:!1,typesForSignals:Y},c=["disable-upgrade"].concat(_.py(A.observedAttributes)),M=function(N){LG.call(this,R,A,z,N)};
_.H(M,LG);_.Yh.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
z.copyPropertiesToProto=function(){for(var N=0;N<A.behaviors.length;N++)$rk(A.behaviors[N],M.prototype);$rk(R,M.prototype)};
A.legacyOptimizations||z.copyPropertiesToProto();M.prototype.is=R.is;return M};
P2u=function(R,A){if(Object.getPrototypeOf(A.prototype).constructor!==_.K)throw Error("Og");A.prototype.is=R.is;return YY8(A.prototype,R)};
E8S=function(R){return R.type==="compute"||R.type==="computeWithMethod"};
ztJ=function(R){for(var A=R.reactiveSchemas.filter(E8S),Y=new Map,P=new Map,E=new Map,z=_.x(A),c=z.next();!c.done;c=z.next())c=c.value,Y.set(c.propertyKey,c),P.set(c.propertyKey,[]),E.set(c.propertyKey,0);z=0;A=_.x(A);for(c=A.next();!c.done;c=A.next()){c=c.value;for(var M=_.x(c.type==="computeWithMethod"?c.method.args:c.args),N=M.next();!N.done;N=M.next())N=N.value,N.type!=="literal"&&(N=N.path.split(".")[0],P.has(N)&&(P.get(N).push(c.propertyKey),E.set(c.propertyKey,E.get(c.propertyKey)+1),z++))}c=
[].concat(_.py(P.keys())).filter(function(y){return E.get(y)===0});
for(A=[];c.length;)for(M=c.shift(),A.push(Y.get(M)),M=_.x(P.get(M)),N=M.next();!N.done;N=M.next())N=N.value,E.set(N,E.get(N)-1),z--,E.get(N)===0&&c.push(N);Y=R.reactiveSchemas.filter(function(y){return!E8S(y)});
R.reactiveSchemas=[].concat(_.py(Y),_.py(A))};
iIu=function(R,A){if(A.properties)for(var Y=_.x(Object.entries(A.properties)),P=Y.next();!P.done;P=Y.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;R.properties[P]=typeof E==="function"?{type:E}:E}A.observers&&R.observers.push.apply(R.observers,_.py(A.observers));A.disabledPolySiReactions&&R.disabledPolySiReactions.push.apply(R.disabledPolySiReactions,_.py(A.disabledPolySiReactions))};
lJq=function(R,A){for(var Y=A.length-1;Y>=0;Y--){var P=A[Y];Array.isArray(P)?lJq(R,P):R.indexOf(P)<0&&R.unshift(P)}};
xtk=function(R,A){R.reactiveSchemas=R.reactiveSchemas.filter(function(Y){return Y.type==="observe"&&A.includes(Y.method.methodName)||E8S(Y)&&A.includes(Y.propertyKey)?!1:!0})};
OIk=function(R,A){var Y=A.prototype,P,E,z={is:R.is,reactiveSchemas:[],observedAttributes:[],behaviors:[Qb6.InjectBehavior,pG.prototype],disableElementRegistration:R.disableElementRegistration,provide:(P=R.providers)!=null?P:[],reactivityMode:R.reactivityMode,signalProperties:(E=Y.signalProperties)!=null?E:[]};"template"in A?z.templateGetter=function(){return A.template}:R.getTemplate&&(z.templateGetter=R.getTemplate);
Y.behaviors&&lJq(z.behaviors,Y.behaviors);cKk(z,A);return z};
cKk=function(R,A){for(var Y=A.prototype,P={properties:{},observers:[],disabledPolySiReactions:[]},E=_.x(R.behaviors),z=E.next();!z.done;z=E.next())iIu(P,z.value);iIu(P,Y);if(R.signalProperties)for(Y=_.x(R.signalProperties),E=Y.next();!E.done;E=Y.next())delete P.properties[E.value];Y=_.x(Object.entries(P.properties));for(E=Y.next();!E.done;E=Y.next()){z=_.x(E.value);E=z.next().value;z=z.next().value;var c=void 0;if((c=R.signalProperties)==null||!c.includes(E)){c=void 0;var M=R,N=z.type;if(!N)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{N=Reflect.getMetadata("design:type",A,E);for(var y=_.x(Muk),m=y.next();!m.done;m=y.next())if(m=m.value,N===m){N=m;break a}N=Object}else N=String;z.computed||z.selector||(M.reactiveSchemas.push({type:"signal",propertyKey:E,value:z.value,attributeType:N,readOnly:z.readOnly}),M.observedAttributes.push(_.gq(E)));z.reflectToAttribute&&M.reactiveSchemas.push({type:"reflect",propertyKey:E});if(z.computed){N=ujJ(z.computed);if(!N)throw Error("Pg");M.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:E,method:N,value:z.value})}z.observer&&M.reactiveSchemas.push({type:"observe",method:{methodName:z.observer,args:[{type:"path",path:E}]}});z.notify&&M.reactiveSchemas.push({type:"notify",propertyKey:E});z.selector&&M.reactiveSchemas.push({type:"redux",propertyKey:E,selector:z.selector,selectorArgs:(c=z.selectorArgs)!=null?c:[]})}}si8&&ztJ(R);A=_.x(P.observers);for(E=A.next();!E.done;E=A.next())Y=R,E=E.value,(z=ujJ(E))?Y.reactiveSchemas.push({type:"observe",method:z}):console.log('Warning: unable to parse observe declaration: "'+
E+'"');xtk(R,P.disabledPolySiReactions)};
N9k=function(R,A){for(var Y=0;Y<A.length;Y++){var P=A[Y],E=void 0;(E=P).showHideApi!=null||(E.showHideApi={});E=void 0;!!R!==!((E=P.showHideApi)==null||!E.hideTemplateChildren)&&(P.nodeType===Node.TEXT_NODE?R?(P.showHideApi.polymerTextContent=P.textContent,P.textContent=""):(E=void 0,P.textContent=(E=P.showHideApi.polymerTextContent)!=null?E:null):P instanceof Element&&P.localName==="slot"?R?(P.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.Jh)((0,_.Jh)(P).parentNode).replaceChild(P.showHideApi.polymerReplaced,
P)):(E=P.showHideApi.polymerReplaced)&&(0,_.Jh)((0,_.Jh)(E).parentNode).replaceChild(P,E):P instanceof HTMLElement&&P.style&&(R?(P.showHideApi.polymerDisplay=P.style.display,P.style.display="none"):P.style.display=P.showHideApi.polymerDisplay));P.showHideApi.hideTemplateChildren=R;P.showHideChildren&&P.showHideChildren(R)}};
JKk=function(){if(!VuS){var R=document.createElement("style");R.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(R);VuS=!0}};
dg=function(){return _.v("disable_hidden_dom_if_using_stamper")};
yKk=function(R,A){var Y=_.RZ().getState();return A?R.apply(null,[Y].concat(_.py(A))):R(Y)};
Qiq=function(){if(mtJ)return mtJ;var R=_.x(_.yy(0,void 0,"MB1Hb")),A=R.next().value;R.next();var Y=R.next().value;_.RZ().subscribe(function(){T96(Y)});
return mtJ=A};
T96=function(R){v83||(v83=!0,Promise.resolve().then(function(){R(function(A){return A+1});
v83=!1}))};
_.RZ=function(){return g8P.getAppStore()};
n8q=function(R,A){return g8P.getSelectFn()(R,A)};
_.A7=function(R){g8P.getDispatchFn()(R)};
HIl=function(R,A){var Y={},P;for(P in R)Y[P]=A(R[P],P);return Y};
_.Y9=function(R,A){return function(){var Y;return(Y=_.pX(R))!=null?Y:A}};
_.Pc=function(R,A){var Y=Object.assign({},R),P;for(P in A)A.hasOwnProperty(P)&&(Y[P]=_.Y9(R[P],A[P]));return Y};
rK8=function(R,A,Y){R instanceof Element&&(Y.debugName||(Y.debugName="<"+R.tagName.toLowerCase()+(R.tagName.includes("-")?">":"."+R.className+">")),_.v("ytwiz_enable_debug_component_props")&&(R.debugProps||(R.debugProps=HIl(A,function(P){return function(){return P()}}))))};
Utk=function(R){var A;return Dtk.value.traceAllComponents||((A=A0.stack[A0.stack.length-1])==null?void 0:A.name)!=="ytComponent"?egI("ytComponent",{},R):R()};
_.E5=function(R,A){var Y=function(P){return Utk(function(E){var z=$tk={};var c;if(((c=Y)==null?0:c.idomCompat)&&P.renderedFromIdom){var M;c=typeof Y.idomCompat==="object"?(M=Y)==null?void 0:M.idomCompat.callbacks:{};c=_.x(X8q(P,c,Y.debugName));M=c.next().value;c.next();c=c.next().value;var N=SY6(R,M);z.privateValue=N;$tk=void 0;rK8(N,M,Y);z={debugName:Y.debugName};E&&z&&Object.assign(E.attributes,z);E=u4S(N);E=Array.isArray(E)?E[0]:E;E[yI]||(E[yI]={});E[yI].updateSignalsFromIdomProps=c;IJP(M,N);return N}c=
HIl(P,Kjb);M=SY6(R,c);z.privateValue=M;$tk=void 0;rK8(M,c,Y);z={debugName:Y.debugName};E&&z&&Object.assign(E.attributes,z);IJP(c,M);return M})};
Y.debugName=A===void 0?"":A;return Y};
SY6=function(R,A){R=R(A);return gu(R)};
Wj3=function(R,A){R[A]||(R=new _.XN("IDOM interop setter undefined. Key:",A),_.bj(R))};
Kjb=function(R,A){return A==="children"||A==="ref"||typeof R==="function"||R===void 0?R:function(){return _.pX(R)}};
X8q=function(R,A,Y){var P={},E={},z={},c={},M;for(M in R){c={key$jscomp$947:c.key$jscomp$947};c.key$jscomp$947=M;var N=R[c.key$jscomp$947];if(c.key$jscomp$947==="children"||c.key$jscomp$947==="ref")P[c.key$jscomp$947]=N;else if(typeof N==="function")c.key$jscomp$947 in A||N.length>0?(z[c.key$jscomp$947]=N,P[c.key$jscomp$947]=function(m){return function(){return z[m.key$jscomp$947].apply(z,_.py(_.Ge.apply(0,arguments)))}}(c)):P[c.key$jscomp$947]=N;
else if(!(R[c.key$jscomp$947]===void 0&&c.key$jscomp$947 in A)){var y=_.x(_.yy(R[c.key$jscomp$947],{debugName:c.key$jscomp$947+":cwis:"+Y},"rvrjQe"));N=y.next().value;y=y.next().value;P[c.key$jscomp$947]=N;E[c.key$jscomp$947]=y}}return[P,E,function(m){var T={},Q;for(Q in m)T={key$jscomp$948:T.key$jscomp$948,val$jscomp$123:void 0},T.key$jscomp$948=Q,T.val$jscomp$123=m[T.key$jscomp$948],T.key$jscomp$948!=="children"&&T.key$jscomp$948!=="ref"&&(typeof T.val$jscomp$123==="function"?T.key$jscomp$948 in
A?z[T.key$jscomp$948]=T.val$jscomp$123:T.val$jscomp$123.length>0&&(z[T.key$jscomp$948]=T.val$jscomp$123,_.pK(new _.XN("Callback detected that was not set in the idomCompat callbacks map. Key:",T.key$jscomp$948))):T.key$jscomp$948 in A&&T.val$jscomp$123===void 0||(Wj3(E,T.key$jscomp$948),nX(function(g){return function(){E[g.key$jscomp$948](g.val$jscomp$123)}}(T))))}]};
fJP=function(R,A,Y){var P=Xsb(R.prototype,jiP,R.prototype.behaviors);P.prototype.is=A;P.prototype.localName=A;Y&&bIP(P,Y);return function(E){E&&(P.prototype.hostElement=E);var z=new P;z.root=z;z.hostElement=E;return z}};
bIP=function(R,A){var Y;Object.defineProperty(R.prototype,"_template",{get:function(){Y===void 0&&(Y=A());return Y},
set:function(P){Y=P},
configurable:!0,enumerable:!0})};
C2I=function(R,A,Y,P){function E(){if(!g){for(var r=new Set,I=_.x(m),b=I.next();!b.done;b=I.next()){b=b.value;for(var p=_.x(Object.getOwnPropertyNames(b)),h=p.next();!h.done;h=p.next()){h=h.value;var L=void 0,Z=(L=Object.getOwnPropertyDescriptor(b,h))==null?void 0:L.value;Z&&Z instanceof Function&&!zj(h)&&(!M[h]||_.v("polymer_forward_method_killswitch"))&&r.add(h)}}I=_.x(Object.entries(Object.getOwnPropertyDescriptors(R.prototype)));for(b=I.next();!b.done;b=I.next())p=_.x(b.value),b=p.next().value,
p=p.next().value,p.value instanceof Function&&!zj(b)&&r.add(b);g=r}return g}
p86(R,A,P==null?void 0:P.providers);S3I(R.prototype,R,!0);var z=fJP(R,A,Y),c,M=(c=R.prototype.properties)!=null?c:{},N,y,m=(y=(N=R.prototype.behaviors)==null?void 0:N.flat(Infinity))!=null?y:[];Y=_.x(m);for(c=Y.next();!c.done;c=Y.next())M=Object.assign({},c.value.properties,M);var T=[].concat(_.py(Fjk),_.py(Object.keys(M).map(function(r){return _.gq(r)}))),Q=!1,g;
return{ctor:function(r,I){var b=z(r),p,h;r=[].concat(_.py((p=P==null?void 0:P.allowedProps)!=null?p:[]),_.py((h=P==null?void 0:P.allowedPropsFromBehaviors)!=null?h:[]));b.allowedProps=r.length>0?r:void 0;p={};h=_.x(T);for(r=h.next();!r.done;r=h.next())r=r.value,p[r]=_.nO(r);b.__dataAttributes=p;var L=b.ready.bind(b);b.ready=function(){I.beforeReady();L();if($w(A)&&!Q){var Z=b.__templateInfo;if(Z==null?0:Z.hostProps){Z=_.x(Object.keys(Z.hostProps));for(var w=Z.next();!w.done;w=Z.next())Sz(A,w.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Q=!0}};
b._overrideLegacyUndefined=!0;return b},
props:M,observedAttributes:T,getInitialMethods:E,getPropsToForwardBeforeRegister:function(){for(var r=[],I=new Set,b=_.x(Object.keys(M)),p=b.next();!p.done;p=b.next())p=p.value,r.push([p,M[p].readOnly]),I.add(p);b=E();p=_.x(Object.keys(Object.getOwnPropertyDescriptors(R.prototype)));for(var h=p.next();!h.done;h=p.next())h=h.value,!B9S(h)||b.has(h)||I.has(h)||(r.push([h,!1]),I.add(h));I=_.x(aJ6);for(b=I.next();!b.done;b=I.next())r.push([b.value,!0]);return r},
getPropsToForwardBeforeReady:function(r){for(var I=[],b=_.x(Object.entries(r)),p=b.next();!p.done;p=b.next()){var h=_.x(p.value);p=h.next().value;h=h.next().value;if(B9S(p)&&!(h instanceof Function)&&(I.push([p,!1]),$w(A))){var L=h=void 0;(L=(h=r)._createPropertyAccessor)==null||L.call(h,p)}}return I},
shouldForwardProp:B9S,shouldLog:$w}};
p86=function(R,A,Y){v4J(R,Y);R.prototype.behaviors.unshift(htk);if(l$P()){if($w(A)){var P;(P=R.prototype).behaviors!=null||(P.behaviors=[]);R.prototype.behaviors.unshift(Mkk())}sb8(R)}_.U(pG.prototype)(R.prototype,"__templateHelpers")};
zj=function(R){return o8J.has(R)||R.startsWith("__compute__")};
B9S=function(R){return!zj(R)&&!R.startsWith("_")&&!R.endsWith("_")};
w8k=function(R,A){function Y(){var Q=N();Q=_.x(Q);for(var g=Q.next();!g.done;g=Q.next()){var r=_.x(g.value);g=r.next().value;r=r.next().value;kKJ(T.prototype,g,r)}P=!0}
var P=!1,E=R.ctor,z=R.getInitialMethods,c=R.observedAttributes,M=R.getPropsToForwardBeforeReady,N=R.getPropsToForwardBeforeRegister,y=R.shouldForwardProp,m=R.shouldLog,T=function(){var Q=HTMLElement.call(this)||this;Q.didForwardDynamicProps=!1;Q.loggingStatus={};P||Y();Q.inst=E(Q,{beforeReady:function(){Q.didForwardDynamicProps||(Q.forwardDynamicProps(),Q.didForwardDynamicProps=!0)}});
Q.controllerProxy=cc3(Q.inst,A);Q.forwardMethods();return Q};
_.H(T,HTMLElement);T.prototype.forwardMethods=function(){for(var Q=this,g=_.x(this.inst.getExtraMethodsToForward()),r=g.next(),I={};!r.done;I={method$jscomp$63:void 0},r=g.next()){var b=_.x(r.value);r=b.next().value;b=b.next().value;I.method$jscomp$63=b;this[r]=function(p){return function(){return p.method$jscomp$63.call.apply(p.method$jscomp$63,[Q.inst].concat(_.py(_.Ge.apply(0,arguments))))}}(I)}g=_.x(z());
for(I=g.next();!I.done;I=g.next())I=I.value,y(I)&&GKu(this,I),m(A)&&!zj(I)&&ZI3(this.inst,I)};
T.prototype.forwardDynamicProps=function(){var Q=M(this.inst);Q=_.x(Q);for(var g=Q.next();!g.done;g=Q.next()){var r=_.x(g.value);g=r.next().value;r=r.next().value;kKJ(this,g,r);m(A)&&!zj(g)&&tuI(this.inst,g)}};
T.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
T.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
T.prototype.attributeChangedCallback=function(Q,g,r){this.inst.attributeChangedCallbackWrapper(Q,g,r)};
_.Yh.Object.defineProperties(T.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return A}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Yh.Object.defineProperties(T,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
customElements.define(A,T)};
kKJ=function(R,A,Y){R.hasOwnProperty(A)||Object.defineProperty(R,A,{get:function(){var P,E=((P=R.is)!=null?P:R.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||Sz(E,A,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,P=this.polymerController[A],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,P},
set:function(P){if(!Y){var E,z=((E=R.is)!=null?E:R.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||Sz(z,A,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=A,this.loggingStatus.bypassProxyController=!0,this.polymerController[A]!==P&&(E={},this.polymerController.setProperties((E[A]=P,E)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
GKu=function(R,A,Y){var P=R.polymerController;R[A]=function(){var E=_.Ge.apply(0,arguments);R.loggingStatus.currentExternalCall=A;R.loggingStatus.bypassProxyController=!0;var z,c=((z=R.is)!=null?z:R.tagName).toLowerCase();Sz(c,A,"PROPERTY_ACCESS_CALL_EXTERNAL");var M;z=(M=Y!=null?Y:P[A])==null?void 0:M.call.apply(M,[P].concat(_.py(E)));R.loggingStatus.currentExternalCall=void 0;R.loggingStatus.bypassProxyController=!1;return z}};
ZI3=function(R,A){var Y=R.hostElement,P=R[A];R[A]=function(){var E=_.Ge.apply(0,arguments);if(Y.loggingStatus.currentExternalCall!==A){var z,c=((z=Y.is)!=null?z:Y.tagName).toLowerCase();Sz(c,A,"PROPERTY_ACCESS_CALL_INTERNAL")}return P==null?void 0:P.apply(R,E)}};
tuI=function(R,A){var Y=Object.getOwnPropertyDescriptor(R,A);Y&&!Y.get&&Object.defineProperty(R,A,{get:function(){Omq(R.hostElement,A);return Y.value},
set:function(P){I6(R.hostElement,A);Y.value=P}})};
uDJ=function(R){return _.v("poly_si_dom_repeat_detached_fix_killswitch")||R.tagName!=="PS-DOM-REPEAT"?R.tagName==="DOM-REPEAT":!0};
qYl=function(R,A){var Y=etq(R);R instanceof Element&&Y.unshift(R);R=_.x(Y.filter(uDJ));for(var P=R.next();!P.done;P=R.next()){var E=void 0;P=_.x((E=P.value.__instances)!=null?E:[]);for(E=P.next();!E.done;E=P.next())if(E=E.value,E.root){E=Array.from(E.root.children);E=_.x(E);for(var z=E.next();!z.done;z=E.next())Y.push.apply(Y,_.py(qYl(z.value,A)))}}return Y.filter(function(c){return c.usePatchedLifecycles&&c.lifecycleIsConnected===A})};
etq=function(R){var A=null;R instanceof Element?A=Element.prototype.querySelectorAll:R instanceof DocumentFragment&&(A=DocumentFragment.prototype.querySelectorAll);return A?Array.from(A.call(R,"*")):[]};
i4=function(R){J6(function(){for(var A=_.x(qYl(R,!1)),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;Y.lifecycleIsConnected=!0;try{var P=void 0,E=void 0,z=void 0,c=void 0;(P=(c=Y.polymerController)!=null?c:Y)==null||(z=(E=P).connectedCallback)==null||z.call(E)}catch(M){_.bj(M)}}})};
l4=function(R){J6(function(){for(var A=_.x(qYl(R,!0)),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;Y.lifecycleIsConnected=!1;try{var P=void 0,E=void 0,z=void 0,c=void 0;(P=(c=Y.polymerController)!=null?c:Y)==null||(z=(E=P).disconnectedCallback)==null||z.call(E)}catch(M){_.bj(M)}}})};
Eek=function(){if(!LjP){LjP=!0;var R=[Node];x9&&R.push(x9.Wrapper);var A=Node.prototype.insertBefore,Y=Node.prototype.removeChild;R=_.x(R);for(var P=R.next(),E={};!P.done;E={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},P=R.next())P=P.value,E.nativeInsertBefore=P.prototype.insertBefore,P.prototype.insertBefore=function(c){return function(M,N){if(M instanceof DocumentFragment){var y=Array.from(M.children);M=c.nativeInsertBefore.call(this,M,N);
if(this.isConnected&&c.nativeInsertBefore===A)for(N=_.x(y),y=N.next();!y.done;y=N.next())i4(y.value);return M}y=M instanceof Element&&M.isConnected;N=c.nativeInsertBefore.call(this,M,N);y&&l4(M);this.isConnected&&i4(M);return N}}(E),E.nativeAppendChild=P.prototype.appendChild,P.prototype.appendChild=function(c){return function(M){if(M instanceof DocumentFragment){var N=Array.from(M.children);
M=c.nativeAppendChild.call(this,M);if(this.isConnected){N=_.x(N);for(var y=N.next();!y.done;y=N.next())i4(y.value)}return M}N=M instanceof Element&&M.isConnected;y=c.nativeAppendChild.call(this,M);N&&l4(M);this.isConnected&&i4(M);return y}}(E),E.nativeRemoveChild=P.prototype.removeChild,P.prototype.removeChild=function(c){return function(M){var N=M instanceof Element&&M.isConnected,y=c.nativeRemoveChild.call(this,M);
N&&Y===c.nativeRemoveChild&&l4(M);return y}}(E),E.nativeReplaceChild=P.prototype.replaceChild,P.prototype.replaceChild=function(c){return function(M,N){if(M instanceof DocumentFragment){var y=Array.from(M.children);
M=c.nativeReplaceChild.call(this,M,N);if(this.isConnected)for(l4(N),N=_.x(y),y=N.next();!y.done;y=N.next())i4(y.value);return M}y=M instanceof Element&&M.isConnected;var m=this.isConnected,T=c.nativeReplaceChild.call(this,M,N);m&&l4(N);y&&l4(M);m&&i4(M);return T}}(E);
R=[Element];x9&&R.push(x9.Wrapper);R=_.x(R);P=R.next();for(E={};!P.done;E={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},P=R.next())P=P.value,P.prototype.before=dtI(P.prototype.before),P.prototype.after=dtI(P.prototype.after),E.nativeReplaceWith=P.prototype.replaceWith,P.prototype.replaceWith=function(c){return function(){var M=_.Ge.apply(0,arguments),N=_.x(RX8(M)),y=N.next().value,
m=N.next().value;N=this.isConnected;c.nativeReplaceWith.apply(this,M);M=_.x(m);for(m=M.next();!m.done;m=M.next())l4(m.value);if(N)for(l4(this),y=_.x(y),N=y.next();!N.done;N=y.next())N=N.value,N instanceof Element&&i4(N)}}(E),E.nativeRemove=P.prototype.remove,P.prototype.remove=function(c){return function(){var M=this.isConnected;
c.nativeRemove.call(this);M&&l4(this)}}(E),E.nativeInsertAdjacentElement=P.prototype.insertAdjacentElement,P.prototype.insertAdjacentElement=function(c){return function(M,N){var y=N.isConnected;
M=c.nativeInsertAdjacentElement.call(this,M,N);y&&l4(N);M.isConnected&&i4(M);return M}}(E),E.nativeSetAttribute=P.prototype.setAttribute,P.prototype.setAttribute=function(c){return function(M,N){var y=Aou(this);
if(!y.usePatchedLifecycles)return c.nativeSetAttribute.call(this,M,N);var m=this.getAttribute(M);c.nativeSetAttribute.call(this,M,N);N=this.getAttribute(M);YZI(y,M,m,N)}}(E),E.nativeRemoveAttribute=P.prototype.removeAttribute,P.prototype.removeAttribute=function(c){return function(M){var N=Aou(this);
if(!N.usePatchedLifecycles)return c.nativeRemoveAttribute.call(this,M);var y=this.getAttribute(M);c.nativeRemoveAttribute.call(this,M);y!==null&&YZI(N,M,y,null)}}(E),E.nativeToggleAttribute=P.prototype.toggleAttribute,P.prototype.toggleAttribute=function(c){return function(M,N){var y=Aou(this);
if(!this.usePatchedLifecycles)return c.nativeToggleAttribute.call(this,M,N);var m=this.getAttribute(M),T=m!==null;N=c.nativeToggleAttribute.call(this,M,N);N!==T&&YZI(y,M,m,N?"":null);return N}}(E);
R=[Document,DocumentFragment,Element,ShadowRoot];x9&&R.push(x9.Wrapper);R=_.x(R);for(E=R.next();!E.done;E=R.next())E=E.value,E.prototype.prepend=dtI(E.prototype.prepend),E.prototype.append=dtI(E.prototype.append);(x9==null?void 0:x9.noPatch)===!0&&P9P();document.readyState==="complete"?i4(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&i4(document.body)});
var z=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");z&&z.get&&z.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:z.enumerable,configurable:!0,get:z.get,set:function(c){c||l4(this);z.set.call(this,c);return c}})}};
dtI=function(R){return function(){var A=_.Ge.apply(0,arguments),Y=_.x(RX8(A)),P=Y.next().value;Y=Y.next().value;R.apply(this,A);A=_.x(Y);for(Y=A.next();!Y.done;Y=A.next())l4(Y.value);if(this.isConnected)for(P=_.x(P),A=P.next();!A.done;A=P.next())A=A.value,A instanceof Element&&i4(A)}};
P9P=function(){for(var R=_.x(zXV),A=R.next();!A.done;A=R.next()){A=A.value.prototype;for(var Y=_.x(ivI),P=Y.next();!P.done;P=Y.next()){P=P.value;var E=Object.getOwnPropertyDescriptor(A,P);E&&Object.defineProperty(A,"__shady_native_"+P,E)}}};
YZI=function(R,A,Y,P){var E,z;if((E=R.polymerController)==null?0:(z=E.observedAttributes)==null?0:z.includes(A))if(R=R.polymerController,R.attributeChangedCallbackWrapper)R.attributeChangedCallbackWrapper.call(R,A,Y,P);else{var c;(c=R.attributeChangedCallback)==null||c.call(R,A,Y,P)}};
RX8=function(R){var A=[],Y=[];R=_.x(R);for(var P=R.next();!P.done;P=R.next())P=P.value,P instanceof Element&&P.isConnected&&Y.push(P),P instanceof DocumentFragment?A.push.apply(A,_.py(Array.from(P.children))):A.push(P);return[A,Y]};
Aou=function(R){return!(R instanceof Element)&&R.node instanceof Element?R.node:R};
ll8=function(R,A){var Y=A?["children"].concat(_.py(A)):["children"];A=[];Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next()){var E=P.value;if(R.hasOwnProperty(E)){P=R[E];P=typeof P==="function"?P():P;P=Array.isArray(P)?P:[P];P=gu(P).flat();if(E!=="children"){E=vIS(E);for(var z=_.x(P),c=z.next();!c.done;c=z.next())c=c.value,c instanceof Element&&c.setAttribute("slot",E)}A.push(P)}}A.length===0?R=[]:(R=gu(_.V("div",null,A)),R=Array.from(R.childNodes));return R};
co3=function(R,A,Y){var P={};_.FF(function(){var E={},z;for(z in A)if(A.hasOwnProperty(z)){var c=void 0,M=void 0;if(!(((c=Y.slotProps)==null?0:c.includes(z))||z==="children"||((M=Y.callbackProps)==null?0:M.includes(z))||z==="ref")&&(c=_.pX(A[z]),P[z]!==c)){P[z]=c;M=void 0;var N=(M=R.hostElement)!=null?M:R;xe8.has(z)&&(N[z]=c);E[z]=c}}nX(function(){if(R.setProperties)R.setProperties(E);else for(var y=_.x(Object.entries(E)),m=y.next();!m.done;m=y.next()){var T=_.x(m.value);m=T.next().value;T=T.next().value;
R[m]=T}})})};
M4l=function(R,A,Y,P){var E=ll8(Y,P.slotProps),z=(0,_.Jh)(R);E=_.x(E);for(var c=E.next();!c.done;c=E.next())z.appendChild(c.value);co3(A,Y,P);P=_.x(P.callbackProps||[]);E=P.next();for(z={};!E.done;z={kebabEventName:void 0,eventListener:void 0},E=P.next())c=E=E.value,String(E).substring(0,2)==="on"&&Y[c]?(z.kebabEventName=vIS(String(E).substring(2)),z.eventListener=Y[c],R.addEventListener(z.kebabEventName,z.eventListener),_.bm(function(m){return function(){R.removeEventListener(m.kebabEventName,m.eventListener)}}(z))):
A[c]=Y[c];
if(Y.ref){Y=_.x(Ovk(Y.ref));var M=Y.next().value,N=Y.next().value,y=A.attached.bind(A);A.attached=function(){M(R);y()};
_.bm(function(){N()})}};
Ovk=function(R){if(typeof R==="function"){var A;return[function(Y){A=R(Y)},
function(){var Y;(Y=A)==null||Y()}]}if(!R.onRender||!R.onUnmount)throw Error("Tg");
return[R.onRender,R.onUnmount]};
JoI=function(R,A,Y,P,E){P=P===void 0?{}:P;var z=sfq,c=!1;z?(c=!0,sfq=void 0):(Nju=A,z=document.createElement(A),Nju=void 0);var M=z;M.usePatchedLifecycles=!0;M.lifecycleIsConnected=!1;z.loggingStatus={};var N=V4b(R,A,z,P,E);_.bm(function(){M.lifecycleIsConnected&&(M.lifecycleIsConnected=!1,N.disconnectedCallback())});
c||(z.__noInsertionPoint=!0,M4l(z,N,Y,P));return z};
V4b=function(R,A,Y,P,E){E=E===void 0?C2I:E;you[A]!=null||(you[A]=E(R,A,P==null?void 0:P.getTemplate,P));var z=you[A],c=z.ctor;E=z.getInitialMethods;var M=z.getPropsToForwardBeforeReady;R=z.getPropsToForwardBeforeRegister;P=z.shouldForwardProp;var N=z.observedAttributes,y=z.shouldLog,m=c(Y,{beforeReady:function(){var T=m;T._takeAttributes?T._takeAttributes():T.setPropertiesFromInitialAttributeValues&&T.setPropertiesFromInitialAttributeValues();T=_.x(M(Y.polymerController));for(var Q=T.next();!Q.done;Q=
T.next()){var g=_.x(Q.value);Q=g.next().value;g=g.next().value;kKJ(Y,Q,g);y(A)&&!zj(Q)&&tuI(Y.polymerController,Q)}Y.polymerController=cc3(m,A)}});
Y.polymerController=m;Y.polymerController.observedAttributes=N;z=_.x(m.getExtraMethodsToForward());for(c=z.next();!c.done;c=z.next())N=_.x(c.value),c=N.next().value,N=N.next().value,GKu(Y,c,N);E=_.x(E());for(z=E.next();!z.done;z=E.next())z=z.value,P(z)&&GKu(Y,z),y(A)&&!zj(z)&&ZI3(m,z);R=_.x(R());for(P=R.next();!P.done;P=R.next())E=_.x(P.value),P=E.next().value,E=E.next().value,kKJ(Y,P,E);return m};
meP=function(R){var A=cc;cc=R;return A};
veb=function(R){if(_.O5.has(R))_.Tjk=R;else if(Mf.has(R)&&cc&&QfI(cc)===R){var A;(A=cc)._numRenders!=null||(A._numRenders=0);cc._numRenders++;if(cc._numRenders>1)throw Error("Ug");return cc}};
geV=function(R){_.O5.has(QfI(R))?_.Tjk=QfI(R):Mf.has(QfI(R))&&cc!==R&&(R._isInert=!0)};
QfI=function(R){var A;return(A=R==null?void 0:R.tagName.toLowerCase())!=null?A:""};
nel=function(R,A){if(R.componentType===_.XF)throw Error("Vg");Mf.add(A);var Y=function(){var P=HTMLElement.call(this)||this;P.is=A;if(Nju===A)return P.isInert=!0,P;P.createElement();return P};
_.H(Y,HTMLElement);Y.prototype.createElement=function(){if(!this.isInert){sfq=this;var P=_.x(_.nsS(function(){return _.V(R,null)})).next().value;
sfq=void 0;O5u(this);return P}};
customElements.define(A,Y)};
ro8=function(R,A,Y,P,E){R.prototype.is=A;(P==null?0:P.useSink)?HvI(R,A,Y,P,E):(Y=C2I(R,A,Y,P),w8k(Y,A));return R};
HvI=function(R,A,Y,P,E){Eek();var z=_.E5(function(c){return JoI(R,A,c,Object.assign({},P,{getTemplate:Y}),E)},"a");
z.debugName=A+" (CoW wrapped)";nel(z,A);return z};
Uek=function(R){return!DeS.has(R)};
SZ6=function(R,A,Y,P){function E(){if(!T){for(var Q=new Set($eP),g=_.x(z.behaviors),r=g.next();!r.done;r=g.next()){r=r.value;for(var I=_.x(Object.getOwnPropertyNames(r)),b=I.next();!b.done;b=I.next()){b=b.value;var p=void 0,h=(p=Object.getOwnPropertyDescriptor(r,b))==null?void 0:p.value;h&&h instanceof Function&&(!y[b]||_.v("polymer_forward_method_killswitch"))&&Q.add(b)}}g=_.x(Object.entries(Object.getOwnPropertyDescriptors(R.prototype)));for(r=g.next();!r.done;r=g.next())I=_.x(r.value),r=I.next().value,
I=I.next().value,I.value instanceof Function&&Q.add(r);T=Q}return T}
var z=OIk({is:A,disableElementRegistration:!1,getTemplate:Y,providers:P==null?void 0:P.providers,reactivityMode:P==null?void 0:P.reactivityMode},R);if((P==null?0:P.allowedProps)||(P==null?0:P.allowedPropsFromBehaviors)){var c,M;z.allowedProps=[].concat(_.py((c=P.allowedProps)!=null?c:[]),_.py((M=P.allowedPropsFromBehaviors)!=null?M:[]))}var N=P2u(z,R);A=N.observedAttributes;var y={};Y=_.x(z.reactiveSchemas);for(P=Y.next();!P.done;P=Y.next())if(P=P.value,P.type==="signal")y[P.propertyKey]={readOnly:P.readOnly},
P.readOnly&&(y[jbq(P.propertyKey)]={readOnly:!0});else if(P.type==="compute"||P.type==="computeWithMethod"||P.type==="redux")y[P.propertyKey]={readOnly:!0};var m=z.reactiveSchemas.length,T;return{ctor:function(Q,g){Q=new N(Q);Q.beforeReady=g.beforeReady;return Q},
props:y,observedAttributes:A,getInitialMethods:E,getPropsToForwardBeforeRegister:function(){for(var Q=[],g=new Set,r=_.x(Xal),I=r.next();!I.done;I=r.next())I=I.value,Q.push([I,I!=="observers"&&I!=="properties"]),g.add(I);r=_.x(Object.keys(y));for(I=r.next();!I.done;I=r.next())I=I.value,Q.push([I,y[I].readOnly]),g.add(I);r=E();I=_.x(Object.keys(Object.getOwnPropertyDescriptors(R.prototype)));for(var b=I.next();!b.done;b=I.next())b=b.value,!Uek(b)||r.has(b)||g.has(b)||(Q.push([b,!1]),g.add(b));Q.push(["allowedProps",
!0]);return Q},
getPropsToForwardBeforeReady:function(Q){var g=[];Q=_.x(Object.keys(Q));for(var r=Q.next();!r.done;r=Q.next()){r=r.value;var I=E();Uek(r)&&!I.has(r)&&g.push([r,!1])}Q=_.x(z.reactiveSchemas.slice(m));for(r=Q.next();!r.done;r=Q.next())r=r.value,r.type!=="compute"&&r.type!=="computeWithMethod"&&r.type!=="redux"&&r.type!=="signal"||g.push([r.propertyKey,r.type==="signal"?r.readOnly:!0]);return g},
shouldForwardProp:Uek,shouldLog:$w}};
_.B=function(R,A,Y,P){var E,z,c=(z=(E=P)==null?void 0:E.mode)!=null?z:0;P!=null||(P={});var M;(M=P).reactivityMode!=null||(M.reactivityMode=0);c===1&&_.M1("creator_poly_si_disable_list").includes(A)&&(c=2);return c===1?ro8(R,A,Y,Object.assign({},P,{useSink:!0}),SZ6):ro8(R,A,Y,Object.assign({},P,{useSink:c===2}))};
_.s5=function(){return function(R,A,Y,P){var E,z,c=(z=(E=P)==null?void 0:E.mode)!=null?z:2;P!=null||(P={});var M;(M=P).reactivityMode!=null||(M.reactivityMode=0);if(c===0)throw Error("Wg`"+c);return HvI(R,A,Y,P,c===1?SZ6:void 0)}};
_.Nf=function(R){return _.v("creator_poly_si_killswitch")?!1:_.v("force_all_poly_si_batches")&&(R==="poly_si_all_on_test_check"||R==="creator_poly_si_batch_050"?0:R)||document.documentElement.hasAttribute("use-signals")?!0:!R||_.v(R+"_holdback_enabled")&&_.v("kevlar_polysi_holdback")?!1:_.v(R)};
Vp=function(R){return R?R.icon?R.icon.iconType.toLowerCase():R.customThumbnail?"member":"":""};
Ilk=function(R){if(!R)return"";R=_.x(R);for(var A=R.next();!A.done;A=R.next())if((A=A.value)&&A.liveChatAuthorBadgeRenderer&&(A=Vp(A.liveChatAuthorBadgeRenderer))&&A!=="verified")return A;return""};
KNu=function(R,A){if(!R)return null;var Y;return((Y=R.find(function(P){return P&&P.liveChatAuthorBadgeRenderer?Vp(P.liveChatAuthorBadgeRenderer)===A:!1}))==null?void 0:Y.liveChatAuthorBadgeRenderer)||null};
_.FNJ=function(R){var A=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;R=WNP(R);A=WNP(A);var Y=jf6(R.hex);A=jf6(A.hex);var P=A[0]/255;var E=A[1]/255,z=A[2]/255,c=Math.max(P,E,z),M=Math.min(P,E,z),N=0,y=0,m=.5*(c+M);c!=M&&(c==P?N=60*(E-z)/(c-M):c==E?N=60*(z-P)/(c-M)+120:c==z&&(N=60*(P-E)/(c-M)+240),y=0<m&&m<=.5?(c-M)/(2*m):(c-M)/(2-2*m));P=[Math.round(N+360)%360,y,m];Y=bvk(Y,A);for(R=flk(R.hex);Y<4.5;){R=P[2]>=.5?R.darker((4.5-Y)/2):R.brighter((4.5-Y)/2);Y=R.toString();
E=pak(Y);if(!E.length)throw Error("Td`"+Y);Y=E;Y=bvk(Y,A)}return R.hex()};
bvk=function(R,A){R=_.vmk(R);A=_.vmk(A);return(Math.max(R,A)+.05)/(Math.min(R,A)+.05)};
_.J7=function(R){return"#"+("000000"+(R&16777215).toString(16)).slice(-6)};
_.BjP=function(R){for(var A=0,Y=0;Y<R.length;Y++)A=R.charCodeAt(Y)+((A<<5)-A);R="#";for(Y=0;Y<3;Y++)R+=("00"+(A>>Y*8&255).toString(16)).slice(-2);return R};
alJ=function(R){R=(R||"").split(":");R.length===1&&R.unshift("yt-icons");R[1]=R[1].toLowerCase();return R};
ZvV=function(R,A){var Y=(A=A===void 0?!1:A)?C9J:hX6,P=A?oeu:kH8;R.getIconNames().forEach(function(E){E=A?E:E.substring(E.indexOf(":")+1);R.name==="yt-icons"?GHu.add(E):E.includes("-filled")?Y.add(E):P.add(E)})};
yp=function(R,A,Y,P){Y=Y===void 0?!1:Y;P=P===void 0?!1:P;var E,z,c;return _.O(function(M){if(M.nextAddress==1)return M.yield(t4k,2);if(P)return M.return(GHu.has(R));E=Y?C9J:hX6;z=Y?oeu:kH8;return A?(c=R.includes("-filled")?R:R.concat("-filled"),M.return(E.has(c))):M.return(z.has(R))})};
_.eX3=function(R){if(wal(R))return R;var A=R=R.toLowerCase();(R=uGS.get(R))&&(A=R);return A};
_.m0=function(R){if(wal(R))return R.toString();var A=qZu.get(R);if(A)return A;A=R.toLowerCase();var Y="yt-icons",P=A.replace(/_/g,"-");switch(R){case "MY_CHANNEL":A="account_circle";break;case "ADD_TO_LIBRARY":A="add";break;case "ALERT_WARN_RED":A="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":A="person_music";break;case "BLOCK_USER":A="block";break;case "CAPTIONS":A="closed_caption";break;case "CLOSED_CAPTION":Y="av";A="closed-caption";break;case "COLLECTION":Y="maps";A="layers";break;case "CONTACT":Y=
"icons";A="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":Y="ytcp-icons";A=P.split("creator-studio-")[1];break;case "DISMISSAL":A="close";break;case "DO_NOT_DISTURB":A="block";break;case "DOGFOOD":Y="icons";A="pets";break;case "DRAFT":A="paper_corner_folded";break;
case "EMPTY_LIKE":A="like_outline";break;case "EXIT_APP":A="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":A=P;break;case "GAMES":Y="ytg";A="my-games";break;case "GO_TO_PAGE":A="arrow-forward";break;case "GROUP":Y="social";break;case "HIDE":A="not_interested";break;case "INPUT_COMPONENT":Y="icons";A="settings-input-component";break;case "KIDS_BLOCK":A="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":Y="ytg";A="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":Y=
"ytg";A="membership-post-purchase";break;case "MULTIVIEW":A="screen_multi_view";break;case "MY_LOCATION":Y="maps";A=P;break;case "NOTIFICATIONS_INBOX":A="NOTIFICATIONS";break;case "NEXT":A="chevron_right";break;case "OFFLINE":A="power-settings-new";break;case "PAUSE":Y="miniplayer";break;case "PAYMENT":Y="icons";break;case "PHONE_DOWNLOAD":A="phone_download";break;case "PREMIUM_STANDALONE":Y="yt-logos";A="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":Y="yt-logos";A="premium_standalone_cairo";
break;case "QUESTION_ANSWER":A="question_answer";break;case "REDEEM":Y="icons";A="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":A="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":A="library_add";break;case "SCHOOL":Y="yt-sys-icons";A="creator_academy";break;case "SETTINGS_LIGHT":A="settings_applications";break;case "SETTINGS_MATERIAL":A="settings";break;case "SEARCH_HISTORY":A="watch_history";break;case "SHOPPING_BAG":A="bag";break;case "SOCIAL":case "PEOPLE":Y=
"yt-icons";A="people";break;case "STAFF_PICK":Y="ytg";A="spotlight";break;case "START_DVR":A="add";break;case "STOP_DVR":Y="av";A="stop";break;case "TAB_LIKED":A="like";break;case "TAB_INBOX":A="mail";break;case "TERMS_OF_SERVICE":Y="icons";A="description";break;case "TRENDING":A="fire";break;case "UNBLOCK_USER":A="remove";break;case "UNPLUGGED_DARK_THEME":Y="image";A="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":A="live";break;case "UNPLUGGED_SPORTS":Y="ytu";A="visibility-off";break;
case "VIDEOS":Y="av";A="play-circle-filled";break;case "YOUTUBE":Y="yt-logos";A="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":Y="yt-logos-ext";A="yt-logo-red-updated";break;case "YOUTUBE_LOGO":Y="yt-logos-ext";A="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":Y="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":Y="shorts";A=P;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":Y="yt-sys-icons";A="youtube_improve_tv";break;case "OUTLINE_BAG":Y=
"yt-sys-icons";A="bag";break;case "QUEUE_PLAY_LAST":Y="yt-sys-icons";A="list_queue_last";break;case "SLASH_CIRCLE_LEFT":A="slash_circle_left";break;case "SPEED_1_POINT_2X":A="1_point_2x";break;case "SPEED_1_POINT_5X":A="1_point_5x";break;case "SPEED_1_POINT_8X":A="1_point_8x";break;case "SPEED_POINT_2X":A="point_2x";break;case "SPEED_POINT_5X":A="point_5x";break;case "SPEED_POINT_8X":A="point_8x";break;case "SPEED_1X":A="1x";break;case "SPEED_2X":A="2x";break;case "TAB_BOOKMARK":A="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":Y="yt-sys-icons";A="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":Y="yt-sys-icons";A="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":Y="yt-sys-icons",A="tic_tac_toe"}A=Y+":"+A;qZu.set(R,A);return A};
wal=function(R){var A;_.v("kevlar_use_wil_icons")?A=!!_.is().resolve(_.Tj).resolveIcon({iconName:R.toString()}):A=!1;return A};
_.vc=function(R,A,Y,P){Y=Y===void 0?{}:Y;P=P===void 0?!1:P;Y===null&&(Y={});var E=_.M1("kevlar_command_handler_command_banlist");E=_.x(E);for(var z=E.next();!z.done;z=E.next())if(z=R?R.hasOwnProperty(z.value):void 0,z)return!1;E=_.n(R.commandMetadata,_.Ti);return P&&E!=null&&E.url?!1:!A.disableCommandHandlerOverride&&_.Qp.instance?(P=_.Qp.instance,Y.form||(Y.form={element:A}),Y.form.element||(Y.form.element=A),!Y.clickedVisualElement&&A.visualElement&&(Y.clickedVisualElement=A.visualElement),P.resolveCommand(R,
Y),!0):!1};
LNk=function(R,A){R=gU(R);for(var Y=_.x(R.visibilityMonitorKeys||[]),P=Y.next();!P.done;P=Y.next())A.unobserveByKey(P.value);R.visibilityMonitorKeys=void 0};
YSS=function(R,A){if(_.F9()){if(_.v("kevlar_vimio_use_shared_monitor"))deJ(R,A.data);else if(!deJ(R,A.data))return;var Y=A.data,P=RCP(Y);if(_.v("enable_client_ve_spec_logging"))LNk(R,A.observer);else{var E=gU(R);E.trackedParams&&E.trackedParams!==P&&LNk(R,A.observer)}E=gU(R);!Y||E.data&&E.data===Y||(E.data=Y);Atk(R,A);E.trackedParams=P}};
Atk=function(R,A){var Y=A.observer;if(!Y&&_.v("web_skip_missing_vimio_observer")){var P,E;_.pK(new _.XN("VisibilityObserver is not defined.",R.tagName,R.trackedParams,(P=A.data)==null?void 0:P.trackingParams,(E=A.data)==null?void 0:E.loggingDirectives))}else{var z=A.layer,c=A.visibilityCallback||function(){},M=A.prescanCallback,N=gU(R);
P=[];A.showOption&&P.push(Y.observe(R,function(){A.skipLogging&&A.skipLogging()||_.nC().reportShown(N,void 0,z);c(!0)},A.showOption));
A.hideOption&&P.push(Y.observe(R,function(){_.nC().reportHidden(N,void 0,z);c(!1)},A.hideOption));
A.prescanOption&&M&&P.push(Y.observe(R,function(){M()},A.prescanOption));
N.visibilityMonitorKeys=P}};
deJ=function(R,A){R=gU(R);if(R.visualElement&&!A)return!0;if(!A)return!1;var Y=!1;if(_.v("enable_client_ve_spec_logging")){var P,E;Y=!!((P=A.loggingDirectives)==null?0:(E=P.clientVeSpec)==null?0:E.uiType)}P=RCP(A);if(!P&&!Y)return!1;_.v("mweb_component_visibility_logging")&&(R.veContainer||(R.veContainer={}),R.veContainer.trackingParams=P);if(R.trackedParams&&R.trackedParams===P)return!1;var z;if(_.v("enable_client_ve_spec_logging")&&((z=R.visualElement)==null?0:z.isClientVe())){var c;z=(c=R.visualElement)==
null?void 0:c.getAsJspb();var M,N,y,m;if(_.sU(z,2)===((M=A.loggingDirectives)==null?void 0:(N=M.clientVeSpec)==null?void 0:N.uiType)&&_.sU(z,3,-1)===((y=A.loggingDirectives)==null?void 0:(m=y.clientVeSpec)==null?void 0:m.elementIndex))return!1}if(_.v("enable_client_ve_spec_logging")){var T,Q;!R.visualElement&&((T=A.loggingDirectives)==null?0:(Q=T.clientVeSpec)==null?0:Q.uiType)&&(M=A.loggingDirectives.clientVeSpec,A=M.uiType,c=M.elementIndex,M=M.clientYoutubeData,R.visualElement=_.Hc(_.rU(),{veType:A,
elementIndex:c,clientYouTubeData:M}))}return!0};
RCP=function(R){if(R==null?0:R.rendererContext){var A=_.n(R.rendererContext,_.Dc);if(A==null?0:A.loggingDirectives)return A.loggingDirectives.trackingParams}return(R==null?0:R.loggingDirectives)?R.loggingDirectives.trackingParams:R==null?void 0:R.trackingParams};
gU=function(R){var A;return(A=R.polymerController)!=null?A:R};
ia8=function(R){_.nC();if(_.o1(U5().JSC$12554_elementShouldLogGesture).bind(U5())(R,4)){PNP(R);var A=Erk(R);zC6.set(R,A)}};
PNP=function(R){zC6.has(R)&&(zC6.get(R).cancel("untrack hover element"),zC6.delete(R))};
Erk=function(R){var A,Y=[],P=!1,E=new _.yR(function(z,c){$9(R,"mouseenter",_.o1(function(){var M,N,y;return _.O(function(m){if(m.nextAddress==1)return A=(0,_.iB)(),M=lh8(R),Y.push(M),N=xwq(R,function(){P=!0;c(Error("Xg"))}),m.yield(M,2);
if(m.nextAddress!=3)return N&&XS(N),y=ct3(R),Y.push(y),m.yield(y,3);z();_.XH(m)})}))});
E.then(function(){var z=(0,_.iB)()-A;z=Math.round(z);if(!(500>z||6E5<=z)){var c=R.getScreenLayer?R.getScreenLayer():void 0;c=_.F9(c)||"";var M=Oau(_.nC(),R);_.Lj(c,R.visualElement?R.visualElement:_.S5(M),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:z}})}ia8(R)},function(){IZ&&(IZ(),IZ=null);
P&&(PNP(R),ia8(R))});
return E};
lh8=function(R){var A;return(new _.yR(function(Y,P){IZ=function(){P(Error("Yg"))};
A=_.fn.debounce(_.o1(function(){XS(E);Y()}),1,100);
var E=_.KC(R,"mousemove",A)})).thenCatch(function(){var Y=_.fn.cancelDebouncedJobMap.get(A);
Y&&_.fn.cancelJob(Y)})};
ct3=function(R){var A;return(new _.yR(function(Y,P){IZ=function(){P(Error("Zg"))};
A=$9(R,"mouseleave",_.o1(function(){Y()}))})).thenCatch(function(){XS(A)})};
xwq=function(R,A){return $9(R,"mouseleave",_.o1(A))};
sQk=function(R){M7u&&_.Wc.cancel(M7u);M7u=_.Wc.run(function(){_.xo(R,"yt-visibility-refresh");M7u=0})};
N_V=function(R){R=Number(R);return"rgba("+[R>>16&255,R>>8&255,R&255,(R>>24&255)/255].join()+")"};
Jtk=function(R){if(!R)return!1;if(_.n(R,_.V7l))return!0;var A;if(R=(A=_.n(R,_.Jg))==null?void 0:A.commands)for(A=_.x(R),R=A.next();!R.done;R=A.next())if(_.n(R.value,_.V7l))return!0;return!1};
ytV=function(R){var A=!0;A=A===void 0?!0:A;if(!R.useSignals&&!R.experimentalPropertiesChanged||_.v("experimental_templating_behavior_nopatch_killswitch")){var Y=R._propertiesChanged;R._propertiesChanged=function(P,E,z){A?R.debounceRender():R.doRender();Y&&Y.call(R,P,E,z)}}};
mw8=function(R,A){if(R.useSignals||R.experimentalPropertiesChanged)if(_.v("experimental_templating_behavior_nopatch_killswitch"))R.experimentalPropertiesChanged=function(){};
else return;var Y=new Set,P=[R].concat(_.py(R.behaviors));P=_.x(P);for(var E=P.next();!E.done;E=P.next()){E=E.value;for(var z in E.properties)Y.has(z)||(R._addPropertyEffect(z,"function",A),Y.add(z))}};
T_k=function(){var R=Polymer.Element,A=R._prepareTemplate;R._prepareTemplate=function(){A.call(this);var Y=this.prototype;if(Y.experimentalTemplatingInUse&&Y.experimentalTemplatingInUse()&&Y.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.bj(Error("$g"));else{Y=this.template.content.childNodes;for(var P=Y.length-1;P>=0;P--){var E=Y[P];E.nodeName!=="STYLE"&&E.nodeName!=="LINK"&&E.nodeName!=="SCRIPT"&&E.nodeName!=="#comment"&&E.remove()}}}};
QQk=function(R){var A=!0;A=A===void 0?!0:A;T_k();var Y=R.ready;R.ready=function(){this._template=null;Y.call(this)};
mw8(R,A?R.debounceRender:R.doRender)};
grk=function(R,A,Y){if(Y===null||Y===void 0)return Y;var P=igu(R.tagName.toLowerCase(),A,function(){throw Error("Rb");});
if(P===null)return Y;P=vrl[P];var E;if((E=P.isUnwrappable)==null?0:E.call(P,Y)){if(P.unwrap)return P.unwrap(Y);throw Error("ch");}return P.filterString?P.filterString(R.tagName,A,String(Y)):Y};
nrk=function(R,A,Y){var P=A[A.length-1]!=="$",E=grk(R,A,Y);if(P)if(typeof E==="function"&&A.startsWith("reactiveon")&&A===A.toLowerCase()){var z=PV;Jwb(R,A.slice(8),function(c){BV(z,function(){E(c)})})}else R[A]=E;
else Y=E==null?null:String(E),h6(R,A.slice(0,-1),Y)};
b4=function(R){HaJ.length===0&&requestAnimationFrame(function(){setTimeout(function(){var A=HaJ.slice();HaJ.length=0;A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;try{Y()}catch(P){_.j5(P)}}})});
HaJ.push(R)};
rtP=function(R){if(R){var A=R.component;if(A){var Y;A==null||(Y=A.events)==null||Y.publish("DISCONNECTED");var P;A==null||(P=A.onDisconnected)==null||P.call(A)}var E,z;(E=R.__spec)==null||(z=E.didUnmount)==null||z.call(E);for(A=0;A<R.childNodes.length;A++)rtP(R.childNodes[A])}};
DwP=function(R,A,Y){var P=A&&A.key,E=R1;E[0]=R;E[1]=P;E[2]=void 0;for(var z in A)A.hasOwnProperty(z)&&(R=A[z],P=Av,P.push(z),P.push(R));A=R1;a:{if(z=R1[2])for(R=0;R<z.length;R+=2)if(z[R]==="nonce"){z=z[R+1];break a}z=""}z=Xuk(A[0],A[1],z);R=G8(z);P=A[2];if(!R.staticsApplied&&(R.staticsApplied=!0,P&&P.length))if((E=R._attrsArr)&&E.length){for(E=0;E<P.length;E+=2)fC[P[E]]=E+1;E=R._attrsArr||(R._attrsArr=VyP(0));for(var c=0,M=0;M<E.length;M+=2){var N=E[M],y=E[M+1],m=fC[N];m?P[m]===y&&delete fC[N]:(E[c]=
N,E[c+1]=y,c+=2)}CX(E,c);for(var T in fC)vcl(z,T,P[fC[T]],Yc),delete fC[T]}else for(T=0;T<P.length;T+=2)vcl(z,P[T],P[T+1],Yc);puk(z,R,Yc);CX(A,0);Y&&Y(wE);S_3()};
_.pC=function(R,A,Y){Y===void 0?delete R[A.name]:R[A.name]=Y};
_.FS=function(R){var A={androidIncludeFontPadding:!1},Y=0,P=[],E=[],z=[];if(R.simpleText)return A.content=R.simpleText,A;if(R.runs===void 0)return A.content="",A;R=_.x(R.runs);for(var c=R.next();!c.done;c=R.next()){c=c.value;var M=c.text,N=void 0,y=(N=M)==null?void 0:N.length;if(M&&y){P.push(M);if(c.bold||c.italics||c.strikethrough||c.underline||c.textColor!=null&&c.textColor!==0||c.deemphasize){M=E;N=M.push;var m={startIndex:Y,length:y};c.bold&&(m.weightLabel="FONT_WEIGHT_MEDIUM");c.italics&&(m.italic=
!0);c.strikethrough&&(m.strikethrough="LINE_STYLE_SINGLE");c.underline&&(m.underline="LINE_STYLE_SINGLE");c.textColor!=null&&c.textColor!==0?document.documentElement.hasAttribute("dark")?m.fontColor=c.darkModeTextColor||c.textColor:m.fontColor=c.textColor:c.deemphasize&&(document.documentElement.hasAttribute("dark")?m.fontColor=parseInt("ff"+UwS("#aaa").substring(1),16):m.fontColor=parseInt("ff"+UwS("#606060").substring(1),16));N.call(M,m)}c.navigationEndpoint&&(M=z,N=M.push,m={startIndex:Y,length:y,
onTap:{innertubeCommand:c.navigationEndpoint}},c.loggingDirectives&&_.pC(m,$wk,c.loggingDirectives),N.call(M,m));Y+=y}}A.content=P.join("");A.styleRuns=E.length?E:void 0;A.commandRuns=z.length?z:void 0;return A};
SSV=function(R){if(R==null||!R.runs)return!0;R=_.x(R.runs);for(var A=R.next();!A.done;A=R.next())if(A=A.value,A.bracket||A.errorUnderline||A.deemphasize||_.n(A,Bc)||_.n(A,XpV))return!1;return!0};
Ihl=function(R,A){return function(Y){var P=A.unit;if(P!==Y)throw Error("fh`"+R+"`"+P+"`"+Y);return A}};
aZ=function(R){if(!((R==null?0:R.value)&&(R==null?0:R.unit)))return"";switch(R.unit){case "DIMENSION_UNIT_FRACTION":var A="%";break;default:A="px"}R=R.value;A==="%"&&(R*=100);return""+R+A};
Kkk=function(R){try{return R()}catch(A){_.pK(A)}};
_.h7=function(R){var A=_.n(R,_.CC);if(A)return A;if((A=_.n(R,Wku))&&A.commands)return jQS(A.commands);if((A=_.n(R,bal))&&A.commands)return jQS(A.commands);if((R=_.n(R,fh3))&&R.identifier&&R.command&&(ppl||(ppl=[]),!ppl.includes(R.identifier)))return ppl.push(R.identifier),_.n(R.command,_.CC)};
jQS=function(R){if(R.length!==0){var A=[];R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())(Y=_.h7(Y.value))&&A.push(Y);return{commandExecutorCommand:{commands:A}}}};
_.k9=function(R){var A=R.defaultTarget,Y=R.elementConfig,P=R.elementsCommand,E=R.skipOnClick,z=R.forceNewState,c=R.additionalCommandArgs,M=R.innertubeCommand||_.h7(P);if(M){R={};var N=Fkk(M);P=N.navigatingCommand;N=N.href;P&&N?(R.href$=N,B_k(R,P,N,A),_.v("web_atagconfig_pointerdown")&&ahq(R,P),z&&(R["force-new-state$"]=!0)):(R.role$="button",R.href$="javascript:void(0);");_.n(M,CNJ)&&(R["aria-haspopup$"]=!0);E||(R.onclick=function(y){var m={};if(hCJ(y)){var T=(c==null?void 0:c.clickedVisualElement)||
(c==null?void 0:c.getClickedVisualElement)&&c.getClickedVisualElement();T&&(m={clickedVisualElement:T});m=Object.assign({},{form:{element:y.target,event:y,createScreenConfig:m}},c);y.preventDefault();_.oZ(M,m)}});
return Object.assign({},Y,R)}};
or8=function(R){if(R.length){if(R.length===1)return R[0];var A={};_.pC(A,_.Jg,{commands:R});return A}};
Gj=function(R){return R&&R.href$!=="javascript:void(0);"};
Fkk=function(R){var A,Y=((A=_.n(R,_.Jg))==null?void 0:A.commands)||[R];R=_.x(Y);for(A=R.next();!A.done;A=R.next()){A=A.value;var P=void 0,E=void 0;Y=(E=_.n((P=A)==null?void 0:P.commandMetadata,_.Ti))==null?void 0:E.url;_.v("web_remove_web_navigation_endpoint_data")||(P=void 0,Y=Y||((P=_.n(A,kvk))==null?void 0:P.url));if(Y&&Y!=="/service_ajax"){if(P=_.Cq(Y,GvP))return R=_.Ff(P),{navigatingCommand:A,href:R};_.pK(new _.XN("AttributedString URL could not be sanitized",Y))}}return{}};
hCJ=function(R){return R.button!==void 0?R.button===0&&!(R.shiftKey||R.altKey||R.metaKey||R.ctrlKey):!(R.shiftKey||R.altKey||R.metaKey||R.ctrlKey)};
B_k=function(R,A,Y,P){Y=!PU(Y);var E,z,c;if((E=_.n(A,_.Ds))!=null&&E.nofollow||(z=_.n(A,_.LO))!=null&&z.nofollow||(c=_.n(A,_.G$))!=null&&c.nofollow||Y)R.rel$="nofollow";var M;A=((M=_.n(A,_.G$))==null?void 0:M.target)==="TARGET_NEW_WINDOW"?"_blank":P===void 0?"":P;R.target$=A};
ahq=function(R,A){A.clickTrackingParams&&(R.params={itct:A.clickTrackingParams});R.onpointerdown=function(Y){Za8(Y)};
R._data=A};
t7l=function(R){(R.loggingUrls||[]).forEach(function(A){tZ(A.baseUrl,A.attributionSrcMode)})};
Za8=function(R){var A=R.currentTarget;R=Kkk(function(){return A.href});
var Y=A.params;R&&_.Yo(R,Y||{},8,!0)};
_.Zc=function(R,A){(R=_.h7(R))&&_.oZ(R,A)};
_.oZ=function(R,A){bj8(function(Y){A?Y.resolveCommand(R,A):Y.resolveCommand(R)})};
qS6=function(R,A){var Y=["yt-core-attributed-string__link"];A!=null&&A.noLinkColor||((A==null?0:A.isOverlay)?Y.push("yt-core-attributed-string__link--overlay-call-to-action-color"):Y.push("yt-core-attributed-string__link--call-to-action-color"),(A==null?0:A.linkInheritColor)&&Y.push("yt-core-attributed-string--link-inherit-color"));Y={className:Y.join(" "),tabindex$:"0"};var P=R.onTap||R.onLongPress;if(!P)return Y;var E=wpI(R);E&&(Y["aria-label$"]=E);A=_.k9({elementsCommand:P,elementConfig:Y,skipOnClick:!(A==
null||!A.skipOnClick),forceNewState:!0});R.onLongPress&&(P=new ugk(function(){var z=_.h7(R.onLongPress);z&&_.is().resolve(_.ls).resolveCommand(z)}),A&&eCP(P,A));
return A||Y};
wpI=function(R){var A,Y;return(A=R.onTapOptions)==null?void 0:(Y=A.accessibilityInfo)==null?void 0:Y.accessibilityLabel};
Lkk=function(R){var A=R;R<=16777215&&(A+=parseInt("ff000000",16));return _.Zs(A)};
dwu=function(R){var A=R.isDarkTheme;var Y=R.extension;R=R.runColor;var P=void 0;if(Y=Y==null?void 0:Y.colorMap){A=A?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";Y=_.x(Y);for(var E=Y.next();!E.done;E=Y.next())if(E=E.value,A===E.key){P=E.value;break}}P==null&&R&&(P=R);if(P)return Lkk(P)};
t7=function(R){var A=R.config;var Y=R.image;var P=R.imageConfig;var E=R.imageWrapperConfig;var z=R.run;var c=R.tag;var M=R.textLength;var N=R.startIndex===void 0?0:R.startIndex;R=R.length;N===void 0&&(N=0);z={run:z,startIndex:N,endIndex:R!==void 0?N+R:M,tag:c};Y&&(z.image=Y);P&&(z.imageConfig=P);E&&(z.imageWrapperConfig=E);A&&(z.config=A);return z};
Ay3=function(R,A){var Y=[];Y.push("yt-core-attributed-string");(A==null?0:A.className)&&Y.push(A==null?void 0:A.className);(A==null?0:A.ellipsisTruncate)?Y.push("yt-core-attributed-string--ellipsis-truncate"):(A==null?0:A.noWrap)?Y.push("yt-core-attributed-string--white-space-no-wrap"):(A==null?0:A.noPreWrap)||Y.push("yt-core-attributed-string--white-space-pre-wrap");(A==null?0:A.linkInheritColor)&&Y.push("yt-core-attributed-string--link-inherit-color");R.alignment&&Y.push(R9u(R.alignment));R.lineBreakMode&&
Y.push("yt-core-attributed-string--word-wrapping");return Y.join(" ")};
Yqk=function(R,A){if(R.weight)return R.weight;switch(R.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 A?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
PqV=function(R){switch(R){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"}};
R9u=function(R){switch(R){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"}};
LC=function(R,A,Y){var P=A;R.content&&Y&&(Y=R.content.indexOf("\n"),Y!==-1&&(P=Math.min(A,Y)));if(!R.content||R.content.length<=P)A=R;else if(R.attachmentRuns||R.commandRuns||R.decorationRuns||R.styleRuns||R.paragraphStyleRuns){A=wU(R.content,P);Y=P;var E=R.attachmentRuns;if(E){var z=[];E=_.x(E);for(var c=E.next();!c.done;c=E.next())c=Object.assign({},c.value),c.startIndex===void 0||c.startIndex>=Y||(c.length||(c.length=0),c.length+c.startIndex>Y&&(c.length=Y-c.startIndex),z.push(c));Y=z}else Y=void 0;
z=Evk(P,R.commandRuns);E=P;var M=R.decorationRuns;if(M){c=[];M=_.x(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;var y=_.n(N.textDecorator,u4);if(y&&y.startIndex!==void 0&&!(y.startIndex>=E)){N=Object.assign({},N,{textDecorator:{highlightTextDecorator:Object.assign({},y)}});y=_.n(N.textDecorator,u4);if(!y.length||y.length+y.startIndex>E)y.length=E-y.startIndex;c.push(N)}}E=c}else E=void 0;c=Evk(P,R.styleRuns);if(M=R.paragraphStyleRuns)for(R=[],M=_.x(M),N=M.next();!N.done;N=M.next()){var m=N.value;
N=Object.assign({},m);if(!(N.startIndex===void 0||N.startIndex>=P)){if(!N.length||N.length+N.startIndex>P)N.length=P-N.startIndex;y=[];var T=void 0,Q=void 0;if((T=m)==null?0:(Q=T.listGroup)==null?0:Q.listItems)for(m=_.x(m.listGroup.listItems),T=m.next();!T.done;T=m.next())if(T=Object.assign({},T.value),!(T.startIndex===void 0||T.startIndex>=P)){if(!T.length||T.length+T.startIndex>P)T.length=P-T.startIndex;y.push(T)}y.length>0&&(N.listGroup||(N.listGroup={}),N.listGroup=Object.assign({},N.listGroup,
{listItems:y}));R.push(N)}}else R=void 0;A={content:A,attachmentRuns:Y,commandRuns:z,decorationRuns:E,styleRuns:c,paragraphStyleRuns:R}}else A=Object.assign({},R,{content:wU(R.content,P)});return A};
Evk=function(R,A){if(A){var Y=[];A=_.x(A);for(var P=A.next();!P.done;P=A.next())if(P=Object.assign({},P.value),!(P.startIndex===void 0||P.startIndex>=R)){if(!P.length||P.length+P.startIndex>R)P.length=R-P.startIndex;Y.push(P)}return Y}};
wU=function(R,A){var Y=A,P;if(P=Y>0)P=R.charCodeAt(Y-1),P=P>=55296&&P<=56319;P&&(Y=R.charCodeAt(Y),P=Y>=56320&&Y<=57343);P&&--A;return R.substring(0,A)};
xku=function(R,A,Y){Y=Y===void 0?z9V:Y;if(R){var P=_.is().resolve(E_);P||_.v("mweb_no_observer_killswitch")?YSS(R,{data:A,observer:P,visibilityCallback:Y,hideOption:iLJ,showOption:lK8,layer:R.layer}):_.pK(new _.XN("Warning: monitorVisibility called with null observer",R.tagName,A==null?void 0:A.loggingDirectives,A==null?void 0:A.trackingParams))}else _.pK(new _.XN("Warning: monitorVisibility called with null element",A==null?void 0:A.loggingDirectives,A==null?void 0:A.trackingParams,A==null?void 0:
A.rendererContext))};
Jyb=function(R,A){var Y=[],P=R.content.length,E,z=(E=_.is().resolve(_.z3(_.dU)))==null?void 0:E();if(R.paragraphStyleRuns){E=_.x(R.paragraphStyleRuns);for(var c=E.next();!c.done;c=E.next()){var M=Y.push,N=M.apply;var y=void 0;c=c.value;if((y=c.listGroup)!=null&&y.listItems){y=[];b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var m="ul";break b;default:m="span"}y.push(t7({run:c,textLength:P,tag:m,config:{className:"yt-core-attributed-string__list-group"},startIndex:c.startIndex,length:c.length}));
m=_.x(c.listGroup.listItems);for(var T=m.next();!T.done;T=m.next()){T=T.value;b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var Q="li";break b;default:Q="span"}y.push(t7({run:c,textLength:P,tag:Q,startIndex:T.startIndex,length:T.length}))}c=y}else c=[];N.call(M,Y,_.py(c))}}if(R.styleRuns&&(A==null||!A.noStyleRuns))for(E=_.x(R.styleRuns),M=E.next();!M.done;M=E.next()){c=M=M.value;y=z;N=A;y=dwu({extension:_.n(c.styleRunExtensions,cy3),isDarkTheme:y===void 0?!1:y,runColor:c.fontColor});T=c;
m=[];y&&m.push("yt-core-attributed-string--link-inherit-color");T.italic&&m.push("yt-core-attributed-string--italicized");T.underline&&T.strikethrough?m.push("yt-core-attributed-string--underline-strikethrough",PqV(T.underline)):T.underline?m.push("yt-core-attributed-string--underlined",PqV(T.underline)):T.strikethrough&&m.push("yt-core-attributed-string--strikethrough",PqV(T.strikethrough));if(T.baselineOffset){a:switch(T.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":T="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":T="yt-core-attributed-string--baseline-offset-superscript";break a;default:T="yt-core-attributed-string--baseline-offset-unknown"}m.push(T)}m=m.join(" ");T={};if(c.weight||c.weightLabel)T.fontWeight=Yqk(c,N==null?void 0:N.isHeadline).toString();y&&(T.color=y);Y.push(t7({run:M,textLength:P,tag:"span",config:{className:m,style:T},startIndex:M.startIndex,length:M.length}))}if(R.decorationRuns)for(E=_.x(R.decorationRuns),M=E.next();!M.done;M=E.next())M=M.value,
N={},M.textDecorator&&(m=M.textDecorator,c=z===void 0?!1:z,T=[],y=_.n(m,u4),m=_.n(m,OLu),y?(m=T,T=m.concat,Q=[],(c=dwu({extension:_.n(y.highlightTextDecoratorExtensions,M$3),isDarkTheme:c,runColor:y.backgroundColor}))&&Q.push("background-color: "+c+";"),y.backgroundCornerRadius!==void 0&&Q.push("border-radius: "+y.backgroundCornerRadius+"px;"),y.leftPadding!==void 0&&Q.push("padding-left: "+y.leftPadding+"px;"),y.rightPadding!==void 0&&Q.push("padding-right: "+y.rightPadding+"px;"),y.topPadding!==
void 0&&Q.push("padding-top: "+y.topPadding+"px;"),y.bottomPadding!==void 0&&Q.push("padding-bottom: "+y.bottomPadding+"px;"),T=T.call(m,Q)):m&&(y=T,T=y.concat,c=c?"#2ba640":"#107516",c=m.color?Lkk(m.color):c,c=["padding: 2px;","border-top: solid "+c+" 2px;","border-bottom: solid "+c+" 2px;","background: linear-gradient(135deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px);"],T=T.call(y,c)),c=T.join(" "),N.style$=c,c=M.textDecorator,y=[],m=_.n(c,
OLu),_.n(c,u4)?y.push("yt-core-attributed-string--highlight-text-decorator"):m&&y.push("yt-core-attributed-string--bracket-text-decorator"),c=y.join(" "),N.className=c,N.dir="auto"),c=_.n(M.textDecorator,u4),y=_.n(M.textDecorator,OLu),m=_.n(M.textDecorator,u4),T=_.n(M.textDecorator,OLu),Y.push(t7({run:M,textLength:P,tag:"span",config:N,startIndex:(c==null?void 0:c.startIndex)||(y==null?void 0:y.startIndex)||0,length:(m==null?void 0:m.length)||(T==null?void 0:T.length)||0}));if(R.commandRuns&&(A==
null||!A.noEndpoints))for(z=_.x(R.commandRuns),E=z.next();!E.done;E=z.next())E=E.value,M=qS6(E,A),Y.push(t7({run:E,textLength:P,tag:"a",config:M,startIndex:E.startIndex,length:E.length}));if(R.attachmentRuns)for(R=_.x(R.attachmentRuns),z=R.next();!z.done;z=R.next()){z=z.value;N=M=void 0;E={className:"yt-core-attributed-string--inline-block-mod"};if((N=z.element)==null?0:N.properties){N=(M=z.element)==null?void 0:M.properties;M=[];N=_.n(N,sqP);if(N==null?0:N.margin)N=N.margin,N.left&&M.push("margin-left: "+
aZ(N.left)+";"),N.right&&M.push("margin-right: "+aZ(N.right)+";"),N.top&&M.push("margin-top: "+aZ(N.top)+";"),N.bottom&&M.push("margin-bottom: "+aZ(N.bottom)+";");M=M.length!==0?M.join(" "):void 0;E.style$=M}c=void 0;M={alt:"",preserveHeight:!0,preserveWidth:!0};N=["yt-core-attributed-string__image-element"];if(z.alignment){a:switch(z.alignment){case "ALIGNMENT_BASELINE":y="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":y="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:y="yt-core-attributed-string__image-element--image-alignment-bottom"}N.push(y)}if((c=z.element)==null?0:c.properties)c=[],y=_.n(z.element.properties,sqP),(y==null?0:y.height)&&c.push("height: "+aZ(y.height)+";"),(y==null?0:y.width)&&c.push("width: "+aZ(y.width)+";"),c=c.length!==0?c.join(" "):void 0,M.style$=c,y=void 0,c=((y=_.n(z.element.properties,NWV))==null?void 0:y.label)||"",M.alt=c;M.className=N.join(" ");N=void 0;m=y=void 0;c=((m=z.element)==null?0:m.type)?(y=_.n(z.element.type,
V$k))==null?void 0:y.image:void 0;Y.push(t7({run:z,textLength:P,tag:"img",image:c,imageConfig:M,imageWrapperConfig:E,startIndex:z.startIndex,length:(N=z.length)!=null?N:0}))}if(A==null?0:A.headerRuns)for(A=_.x(A.headerRuns),R=A.next();!R.done;R=A.next())if(R=R.value,R.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(R.headerMapping)){a:{switch(R.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":z=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":z="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":z="yt-core-attributed-string--heading-3";break a}z=void 0}Y.push(t7({run:R,textLength:P,tag:"span",config:z?{className:z}:void 0,startIndex:R.startIndex,length:R.length}))}return Y};
_.RE=function(R){return(R==null?void 0:R.content)!==void 0};
yyJ=function(R){return _.RE(R)?R:_.FS(R)};
mkV=function(R){return R.image!==void 0&&R.imageConfig!==void 0};
TWq=function(R,A){if(A==null?0:A.userInput)for(R=_.x(R),A=R.next();!A.done;A=R.next())if(A=A.value,A.tag!=="a"&&A.tag!=="li"){var Y=void 0;(Y=A).config||(Y.config={});A.config.dir=A.tag==="ul"?_.is().resolve(_.AM):"auto"}};
Qqk=function(R){return function(A){var Y=R.run;(Y.onTap!==void 0||Y.onLongPress!==void 0)&&_.n(Y,$wk)&&xku(A,{loggingDirectives:_.n(Y,$wk)})}};
vvk=function(R){return function(A){for(var Y in R)(Yc[Y]||Yc[k0["default"]])(A,Y,R[Y])}};
ryk=function(R,A){gv6(A);var Y={data:null,start:0,end:R.length,parts:[]};A=_.x(A);for(var P=A.next();!P.done;P=A.next())P=P.value,nvq(Y,P.startIndex,P.endIndex,P);HL6(R,Y);return Y};
nvq=function(R,A,Y,P){for(var E=_.x(R.parts),z=E.next();!z.done;z=E.next()){z=z.value;if(typeof z==="string")throw Error("hh");if(z.start<=A&&Y<=z.end){nvq(z,A,Y,P);return}}R.parts.push({data:P,parts:[],start:A,end:Y})};
HL6=function(R,A){for(var Y=A.parts.length;Y>=0;Y--){var P=A.parts[Y],E=A.parts[Y-1],z=Y===A.parts.length?A.end:P.start;E=Y===0?A.start:E.end;z!==E&&A.parts.splice(Y,0,R.slice(E,z));P&&HL6(R,P)}};
gv6=function(R){R.sort(function(A,Y){if(A.startIndex<Y.startIndex)return-1;if(Y.startIndex<A.startIndex)return 1;A=A.endIndex-A.startIndex;Y=Y.endIndex-Y.startIndex;return A>Y?-1:Y>A?1:0})};
_.Dk3=function(R){var A=R.thumbnails;if(A){R={sources:[]};A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P={};P.url=Y.url;P.width=Y.width;P.height=Y.height;R.sources.push(P)}return R}};
Uk8=function(R,A,Y,P){if(!A)return R.length>=1?R[R.length-1]:null;if(P)for(var E=_.x(R),z=E.next();!z.done;z=E.next()){z=z.value;var c=void 0,M=(c=z.url)==null?void 0:c.indexOf(P);if(M!==void 0&&M>=0)return z}P=_.x(R);for(E=P.next();!E.done;E=P.next())if(E=E.value,E.width&&E.height&&(Y&&E.width>=A||!Y&&E.height>=A))return E;for(A=R.length-1;A>=0;A--)if(Y&&R[A].width||!Y&&R[A].height)return R[A];return R[0]};
_.$kS=function(R){var A;return(R=(A=R.sources)==null?void 0:A[0])?R.width/R.height:0};
_.Xhl=function(R){if(R.sources){R=_.x(R.sources);for(var A=R.next();!A.done;A=R.next()){A=A.value;var Y=void 0;if((Y=A.clientResource)==null?0:Y.imageName)return A}}};
Sqk=function(R){var A;if((A=R.clientResource)!=null&&A.imageColor)return _.Zs(R.clientResource.imageColor)};
_.Knu=function(R,A,Y,P,E,z,c){if(!A||A.length===0||A[0].clientResource)return null;if(Y&&A[0].url)return A[0].url;P===void 0&&(P=!0);if(P){var M;R=IKq*(E||(R==null?void 0:(M=R.getBoundingClientRect())==null?void 0:M.width)||0)}else{var N;R=IKq*(z||(R==null?void 0:(N=R.getBoundingClientRect())==null?void 0:N.height)||0)}A=Uk8(A,R,P,c);return(A==null?0:A.url)?A.url:(A==null?0:A.imageData)?A.imageData:null};
Wn6=function(R,A,Y){Y=Y?[Y]:[];R.opacity&&Y.push("opacity: "+R.opacity+";");A&&R.placeholderColor?(R=_.Zs(R.placeholderColor),Y.push("background-color: "+R+";")):Y.push("background-color: transparent;");return Y.join(" ")};
jq3=function(R,A,Y,P,E){var z=["ytCoreImageHost"];A&&z.push(A);Y||z.push("ytCoreImageFillParentHeight");P||z.push("ytCoreImageFillParentWidth");switch(R.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":z.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":z.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":z.push("ytCoreImageContentModeCenter");break;default:z.push("ytCoreImageContentModeScaleToFill")}R.flipForRtlLayout&&z.push("ytCoreImageFlipRtl");
switch(E){case "TOP_START":var c;z.push(((c=document.body)==null?void 0:c.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return z.join(" ")};
fKb=function(R){var A;if(R==null?0:(A=R.clientResource)==null?0:A.imageName){var Y;R=(Y=R.clientResource)==null?void 0:Y.imageName;a:{switch(R){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":Y="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":Y="yt-logos-ext:yt-logo-updated";break a}Y=void 0}return Y||bLl.get(R)||R}};
BWk=function(R){return _.v("mweb_wiz_skip_render")?phu(R):Fn3(R)};
phu=function(R){return function(A){var Y=Xuk("wink-root");INl();S_3();_.Pxl(Y,_.V(R,A))}};
Fn3=function(R){var A=A===void 0?!1:A;return function(Y){if(!A||!_.v("mweb_skip_keto_to_c3_if_no_data")||Y.data!==void 0){var P=xW(!1);try{var E=Y.children;_.v("mweb_render_outside_patch_killswitch")||wE?E?Aw(_.V(R,Y,E)):Aw(_.V(R,Y)):_.pK(new _.XN("ketoToC3 called outside of a patch",{tagName:R.TAG_NAME}))}finally{xW(P)}}}};
aKP=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
h9q=function(R,A){R.onViewportEntered=A;CqV.observe(R)};
ovu=function(){var R={rootMargin:"10%",threshold:.01};_.v("mweb_enable_set_io_root_to_null_safari")?R.root=null:_.v("mweb_enable_set_io_root_to_body_safari")&&(R.root=document.body);return new IntersectionObserver(function(A,Y){A.filter(function(P){return P.intersectionRect.height>0}).forEach(function(P){P=P.target;
if(!_.v("mweb_enable_only_update_image_when_connected")||P.isConnected!==!1){var E;(E=P.onViewportEntered)==null||E.call(P);Y.unobserve(P)}})},R)};
kzk=function(R,A,Y,P,E){function z(){if(P){var M=P.loadedClass,N=P.notifyOnUnloaded;M&&_.YL(R,M);N&&R.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function c(){var M=Y(A,R);M&&R.getAttribute("src")!==M&&(_.v("mweb_enable_only_update_image_when_connected")&&R.isConnected===!1||M===R.src||(R.src=M),z())}
E=E===void 0?!0:E;R.removeAttribute("src");z();A&&(E?h9q(R,c):c())};
GzV=function(R,A,Y){if(!A)return!1;A=Y(A,R);Y=R.getAttribute("src");return A&&A===Y&&R.complete};
ZL8=function(R,A){for(var Y in A)Y==="className"?R.className=A[Y]:(Yc[Y]||Yc[k0.default])(R,Y,A[Y])};
t$S=function(R,A,Y,P){BWk(_.P1)({contentMode:A.contentMode,loadedClass:A.loadedClass,isPreloaded:A.isPreloaded,notifyOnLoaded:A.notifyOnLoaded,notifyOnUnloaded:A.notifyOnUnloaded,preferredThumbnail:A.preferredThumbnail,preserveHeight:A.preserveHeight,preserveWidth:A.preserveWidth,objectPosition:A.objectPosition,targetWidth:A.targetWidth,targetHeight:A.targetHeight,shouldShowPlaceholder:A.shouldShowPlaceholder,useWidth:A.useWidth,isToggled:A.isToggled,alt:A.alt,className:A.className,onerror:A.onerror,
onload:A.onload,style$:A.style$,color:A.color,width:A.width,height:A.height,"aria-hidden$":A["aria-hidden$"],draggable:A.draggable,"data-disabled$":A["data-disabled$"],data:R,callback:Y,renderLazy:P===void 0?!0:P,hideOn404:!1})};
u5u=function(R,A,Y){Y=Y===void 0?!1:Y;var P=R.sources!==void 0?R:_.Dk3(R);if(P){var E=A.onload;A.onload=function(N){var y=N.target;Y&&y.naturalWidth===120||_.Ew(y,"ytCoreImageLoaded");A.notifyOnLoaded&&y.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));E==null||E(N)};
A.targetWidth&&A.preserveWidth&&(A.width=A.targetWidth);A.targetHeight&&A.preserveHeight&&(A.height=A.targetHeight);var z=_.Xhl(P),c=z&&fKb(z);if(c)return(R=Sqk(z))&&(A.color=R),{type:"icon",iconName:c,config:Object.assign({},A,A.alt?{}:{"aria-hidden$":"true"},{"aria-label$":A.alt,role:"img"})};if(R.sources===void 0){A.alt=R.accessibility&&R.accessibility.accessibilityData&&R.accessibility.accessibilityData.label||A.alt;A.style$=Wn6(R,A.shouldShowPlaceholder,A.style$);var M;A.isPreloaded=!((M=_.n(R,
whP))==null||!M.isPreloaded)}A.contentMode&&!P.contentMode&&(P.contentMode=A.contentMode);A.className=jq3(P,A.className,A.preserveHeight,A.preserveWidth,A.objectPosition);A.loadedClass="ytCoreImageLoaded";return{type:"image",image:P,config:A}}};
_.zo=function(){var R=_.Ge.apply(0,arguments);return _.d5(e9u,function(A){var Y=R.map(function(P){return P==null?void 0:P(A)});
return function(){return void Y.forEach(function(P){return void(P==null?void 0:P())})}})};
ih=function(R,A){var Y=A==null?void 0:A.initial;return _.gE(function(){_.pX(!0);return Y=R(Y)},{equals:A==null?void 0:A.isEqual},"rSlKsc")};
qq3=function(R,A){if(R===A)return!0;if(R===void 0||A===void 0)return!1;var Y,P,E,z,c,M,N,y;return R.content===A.content&&((Y=R.styleRuns)==null?void 0:Y.length)===((P=A.styleRuns)==null?void 0:P.length)&&((E=R.commandRuns)==null?void 0:E.length)===((z=A.commandRuns)==null?void 0:z.length)&&((c=R.attachmentRuns)==null?void 0:c.length)===((M=A.attachmentRuns)==null?void 0:M.length)&&((N=R.decorationRuns)==null?void 0:N.length)===((y=A.decorationRuns)==null?void 0:y.length)};
Rmk=function(R,A){if(R){var Y=yyJ(R);if(Y!=null&&Y.content)if(_.v("attr_string_reactive"))BWk(Lnb)({text:R,config:A});else{var P=!(A==null||!A.ariaLabel)||!(Y.commandRuns&&Y.commandRuns.length!==0||Y.paragraphStyleRuns&&Y.paragraphStyleRuns.length!==0);R=P?A==null?void 0:A.ariaLabel:null;P=P?"text":null;DwP("span",{className:Ay3(Y,A),dir$:(A==null?0:A.userInput)?"auto":void 0,"aria-label$":R,role$:P},function(){if(Y.styleRuns||Y.commandRuns||Y.attachmentRuns||Y.decorationRuns||Y.paragraphStyleRuns){var E=
Jyb(Y,A);TWq(E,A);E=ryk(Y.content,E);E=_.x(E.parts);for(var z=E.next();!z.done;z=E.next())dku(z.value)}else FeJ(Y.content)})}}};
dku=function(R){typeof R==="string"?FeJ(R):mkV(R.data)?DwP("span",R.data.imageWrapperConfig,function(){t$S(R.data.image,R.data.imageConfig)}):DwP(R.data.tag,R.data.config,function(A){Qqk(R.data)(A);
A=_.x(R.parts);for(var Y=A.next();!Y.done;Y=A.next())dku(Y.value)})};
YMJ=function(R){return R.parts.map(Azl)};
Azl=function(R){if(typeof R==="string")return R;R=mkV(R.data)?_.V("span",{el:_.zo(vvk(R.data.imageWrapperConfig))},_.V(_.P1,Object.assign({},{data:R.data.image},R.data.imageConfig))):_.V(R.data.tag,{el:_.zo(Qqk(R.data),vvk(R.data.config))},R.parts.map(Azl));return gu(R)};
PCq=function(R,A){return R===A?!0:R===void 0||A===void 0?!1:R.noStyleRuns===A.noStyleRuns&&R.noLinkColor===A.noLinkColor&&R.noEndpoints===A.noEndpoints&&R.headerRuns===A.headerRuns&&R.isOverlay===A.isOverlay&&R.linkInheritColor===A.linkInheritColor&&R.userInput===A.userInput&&R.isHeadline===A.isHeadline};
EOV=function(R){return function(){var A,Y,P,E,z,c,M,N,y,m,T,Q,g,r;return{ariaLabel:(A=R.ariaLabel)==null?void 0:A.call(R),className:(Y=R.className)==null?void 0:Y.call(R),ellipsisTruncate:(P=R.ellipsisTruncate)==null?void 0:P.call(R),isOverlay:(E=R.isOverlay)==null?void 0:E.call(R),linkInheritColor:(z=R.linkInheritColor)==null?void 0:z.call(R),noEndpoints:(c=R.noEndpoints)==null?void 0:c.call(R),noStyleRuns:(M=R.noStyleRuns)==null?void 0:M.call(R),noLinkColor:(N=R.noLinkColor)==null?void 0:N.call(R),
noPreWrap:(y=R.noPreWrap)==null?void 0:y.call(R),noWrap:(m=R.noWrap)==null?void 0:m.call(R),skipOnClick:(T=R.skipOnClick)==null?void 0:T.call(R),userInput:(Q=R.userInput)==null?void 0:Q.call(R),headerRuns:(g=R.headerRuns)==null?void 0:g.call(R),isHeadline:(r=R.isHeadline)==null?void 0:r.call(R)}}};
_.zm8=function(R){return R.value===""||R.value==="true"?!0:R.value==="false"?!1:isNaN(Number(R.value))?R.value:Number(R.value)};
lh=function(R,A){R=new iZJ(R,A);_.bj(R);throw R;};
l8u=function(R,A,Y){var P=meP(R);R._numRenders=0;try{var E=_.nsS(function(){return _.V(A,Object.assign({},Y))})}catch(c){var z=function(M){M.args||(M.args=[]);
M.args.push("Error in web component wrapper");M.args.push(R.tagName.toLowerCase());return M};
_.fK(c instanceof Error?z(c):new iZJ("Wiz rendering error",R.tagName.toLowerCase()));throw c;}finally{meP(P)}return E};
_.Ow=function(R,A,Y){function P(m){var T={};m=_.x(m);for(var Q=m.next();!Q.done;Q=m.next()){Q=Q.value;var g=void 0,r=void 0,I=void 0,b=_.nO((I=(r=(g=Q).getAttribute)==null?void 0:r.call(g,"slot"))!=null?I:"children");if(g=T[b])g.push(Q);else if(b in z||b==="children")T[b]=[Q]}m=_.x(Object.keys(T));b=m.next();for(Q={};!b.done;Q={content$jscomp$57:void 0},b=m.next())b=b.value,b!=="children"&&(Q.content$jscomp$57=T[b],T[b]=function(p){return function(){return p.content$jscomp$57}}(Q));
return T}
Y=Y===void 0?{}:Y;R.componentType!==_.XF||lh("Components must be marked reactive to be used from web component wrapper.",A);_.O5.has(A)&&lh("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",A);var E,z=(E=Y.props)!=null?E:{};Mf.add(A);var c=_.xp6();E=function(){var m=c.apply(this,arguments)||this;m.rawProps={};m.queuingRender=!1;m.dispose=function(){};
m.isWebComponentWrapper=!0;m.isReparenting=!1;m.hasRendered=!1;return m};
_.H(E,c);E.prototype.render=function(){this.hasRendered=!0;for(var m=_.x([].concat(_.py(this.attributes))),T=m.next();!T.done;T=m.next())T=T.value,T.name!=="slot"&&T.name!=="hidden"&&this.removeAttribute(T.name);m=Object.assign({},this.componentProps,this.slotProps);T=_.x(l8u(this,R,m));m=T.next().value;T=T.next().value;!(m[0]instanceof Element)||m.length>1?lh("Wrapped Wiz components must return a single root element.",A):(m=m[0].tagName.toLowerCase(),m!==A&&lh("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(m+" !== '"+A),A),this.dispose=T)};
E.prototype.setUpProps=function(){for(var m=this.rawProps,T=this.attributes,Q=_.x(Object.keys(z)),g=Q.next();!g.done;g=Q.next()){g=g.value;var r=void 0;((r=this)==null?0:r[g])&&this[g]!==czJ&&m[g]===void 0&&(m[g]=this[g],(r=Object.getOwnPropertyDescriptor(this.constructor.prototype,g))&&Object.defineProperty(this,g,r))}Q=_.x(T);for(g=Q.next();!g.done;g=Q.next()){r=g.value;g=_.nO(r.name);var I=g==="class"&&!T.getNamedItem("class-name");if(g in z||I)r=_.zm8(r),g!=="class"||m.className?m[g]=r:m.className=
r}T={};for(var b in z)z[b]!==_.xL&&z[b]!==OZk&&(m[b]instanceof Function&&lh("Function props must be configured as STATIC, not SIGNAL.",A),g=_.x(_.yy(m[b],void 0,"Ri8MSe")),Q=g.next().value,g=g.next().value,T[b]=g,m[b]=Q);m=_.x([m,T]);this.componentProps=m.next().value;this.setters=m.next().value;this.slotProps=P(this.childNodes)};
E.prototype.connectedCallback=function(){_.c1===A&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in z&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
E.prototype.disconnectedCallback=function(){if(!this._isInert){var m;a:{if(_.MlV)for(m=this;m;){if(_.spP.has(m)){m=!0;break a}m=m.parentElement}m=!1}if(m)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){m=_.x([].concat(_.py(this.attributes)));for(var T=m.next();!T.done;T=m.next()){T=T.value;var Q=void 0;T.name==="slot"||T.name==="hidden"&&((Q=Y.unsafeExternallySettableAttributes)==null?0:Q.has("hidden"))||this.removeAttribute(T.name)}}this.innerText="";O5u(this)}}};
E.prototype._setPendingPropertyOrPath=function(){};
E.prototype.notifyPath=function(){};
_.Yh.Object.defineProperties(E.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var M=_.x(Object.keys(z)),N=M.next(),y={};!N.done;y={prop$jscomp$105:void 0},N=M.next())y.prop$jscomp$105=N.value,N=void 0,((N=Y.legacyPolymer)==null?0:N.forwardHostProps)&&xe8.has(y.prop$jscomp$105)||Object.defineProperty(E.prototype,y.prop$jscomp$105,{set:function(m){return function(T){var Q=this;this._isInert||(this.setters?nX(function(){var g,r;return void((r=(g=Q.setters)[m.prop$jscomp$105])==null?void 0:r.call(g,T))}):(this.rawProps[m.prop$jscomp$105]=T,this.queuingRender&&m.prop$jscomp$105===
"data"&&T!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(y),
get:NsS.has(y.prop$jscomp$105)?void 0:function(){return czJ}});
customElements.define(A,E)};
_.VlP=function(R,A){return(R=_.MH(R,A))?_.Ff(_.oR(R)):null};
_.sw=function(R){if(R=_.MH(R,Number.MAX_VALUE,void 0,"width"))return _.oR(R)};
_.MH=function(R,A,Y,P){P=P===void 0?"width":P;if(!R||!R.length)return null;if(_.v("kevlar_tuner_should_always_use_device_pixel_ratio")){var E=window.devicePixelRatio;_.v("kevlar_tuner_should_clamp_device_pixel_ratio")?E=Math.min(E,_.cU("kevlar_tuner_clamp_device_pixel_ratio")):_.v("kevlar_tuner_should_use_thumbnail_factor")&&(E=_.cU("kevlar_tuner_thumbnail_factor"));Jzk=E}else Jzk||(Jzk=window.devicePixelRatio);E=Jzk;_.v("kevlar_tuner_should_always_use_device_pixel_ratio")?A*=E:E>1&&(A*=E);if(_.v("kevlar_tuner_min_thumbnail_quality"))return R[0].url||
null;E=R.length;if(_.v("kevlar_tuner_max_thumbnail_quality"))return R[E-1].url||null;if(Y)for(var z=0;z<E;z++)if(R[z].url.indexOf(Y)>=0)return R[z].url||null;for(Y=0;Y<E;Y++)if(R[Y][P]>=A)return R[Y].url||null;for(A=E-1;A>0;A--)if(R[A][P])return R[A].url||null;return R[0].url||null};
Tsu=function(){NH.size?setTimeout(function(){Vi(yzS)},0):mpk=0};
yzS=function(){var R=(0,_.iB)(),A=null,Y=!1;NH.forEach(function(E){E.loaded=!0;E.loadTime=R;E.pendingPaint=!1;var z=QpP.get(E);z&&z.resolve(R);A=E;Y||!E.ftlEligible&&E.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(Y=!0)});
var P;((P=A)==null?0:P.markDirty)&&A.markDirty();NH.clear();mpk=0;Y&&vOq(R)};
gOk=function(R){NH.add(R);R.pendingPaint=!0;mpk||(mpk=_.JM(_.fn,Tsu))};
nOk=function(R){R.loaded=!1;R.loadTime=Infinity;var A=QpP.get(R);A&&(A.reject(Error("nh")),QpP.delete(R));R.pendingPaint&&(NH.delete(R),R.pendingPaint=!1)};
_.HZV=function(R){var A=R.indexOf(":");return A===-1?{originalName:R}:{originalName:R.substring(0,A),datasyncId:R.substring(A+1)}};
_.DpS=function(){return _.O(function(R){if(rz6!==void 0)return R.return(rz6);rz6=new Promise(function(A){var Y;return _.O(function(P){switch(P.nextAddress){case 1:return _.g2(P,2),P.yield(_.yi.open("test-only"),4);case 4:return P.yield(_.yi.delete("test-only"),5);case 5:_.us(P,3);break;case 2:if(Y=_.UT(P),Y instanceof Error&&Y.name==="SecurityError")return A(!1),P.return();case 3:A("caches"in window),_.XH(P)}})});
return R.return(rz6)})};
XI3=function(){return _.O(function(R){if(R.nextAddress==1)return R.yield(_.DpS(),2);if(!R.yieldResult)return R.return(void 0);Up3||(Up3=new $pJ);return R.return(Up3)})};
SMl=function(R){var A,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:return z.yield(XI3(),2);case 2:A=z.yieldResult;if(!A)throw Error("ph");return z.yield(A.open("yt-player-local-img"),3);case 3:return Y=z.yieldResult,z.yield(Y.match(R),4);case 4:P=z.yieldResult;if(!P)throw Error("qh");return z.yield(P.blob(),5);case 5:return E=z.yieldResult,z.return(E)}})};
I8k=function(R,A){for(var Y in R)if(R.hasOwnProperty(Y)&&A[Y])return Y;return null};
Kzk=function(R){return"stamp"+R.replace("-","_")+"_"};
WzS=function(R){var A=R.match(/\[\[([\w\.]+)\]\]/);if(A&&A.length>1)return A[1];_.bj(Error("sh`"+R));return null};
jpk=function(R){return R===void 0?_.CQ("REUSE_COMPONENTS",!1):R||!1};
pIq=function(R,A,Y){Y&&(A.is?(bZ6.has(A)&&(R=bZ6.get(A),Y=R.listener,delete A[R.property],Y.type==="element"&&A.removeEventListener(Y.eventName,Y.handler),bZ6.delete(A)),f8k(A)):A.__proto__==HTMLElement.prototype&&(A=new _.XN("Rendererstamper removed a non custom element","Stamper: "+R+" element: "+(A&&A.nodeName)),_.pK(A)))};
Fz8=function(R,A,Y,P){var E=A.node?A.node:A;_.Mo(Y).parentNode===E&&(A.removeChild(Y),pIq(R,Y,P));if(R=mB.get(Y))mB.delete(Y),_.fn.cancelJob(R);Y.hidden=!1};
Bsu=function(R,A,Y,P){if(A&&A.children&&(Y=A.children[Y]))if(_.CQ("DEFERRED_DETACH"))for(;Y&&!mB.has(Y);){var E=R,z=A,c=Y,M=P;c.hidden=!0;E=_.Ua(_.fn,Fz8.bind(null,E,z,c,M),0);mB.set(c,E);Y=Y.nextElementSibling}else for(;(c=A.lastElementChild)&&(A.removeChild(c),pIq(R,c,P),c!=Y););};
_.To=function(){for(var R=_.Ge.apply(0,arguments),A=!0,Y=_.x(R),P=Y.next();!P.done;P=Y.next())if(typeof P.value!=="string"){A=!1;break}return A?R.join(" ").trim()||void 0:function(){for(var E="",z=_.x(R),c=z.next();!c.done;c=z.next())if(c=c.value,typeof c==="function"&&(c=c()),c)if(typeof c==="string")E+=" "+c;else for(var M in c)if(c.hasOwnProperty(M)){var N=c[M];typeof N==="function"&&(N=N());N&&(E+=" "+M)}E=E.trim()||void 0;return _.pX(E)}};
CCk=function(R){var A;return(A=a8q[R])!=null?A:"EVENT_SPAN_TYPE_UNKNOWN"};
hml=function(R){var A=R.nodeName;if(R.id)return A+="#"+R.id;if(R.classList)for(var Y=_.x(R.classList),P=Y.next();!P.done;P=Y.next())A+="."+P.value;R.parentElement&&(A=hml(R.parentElement)+" > "+A);return A};
oOJ=function(R){return function(A){var Y=CCk(A.type);return Y==="EVENT_SPAN_TYPE_UNKNOWN"?R(A):egI("event",{type:Y,nodepath:A.target instanceof Element?hml(A.target):void 0},function(){return R(A)})}};
_.Qi=function(R){R&&w9k("event")&&(R=oOJ(R));return dVl(function(A){var Y,P=(Y=R)==null?void 0:Y(A);return typeof P==="boolean"?P:!0})};
v1=function(R){return function(){return R()?R():void 0}};
tlI=function(R){var A=_.LK("animated-rolling-character"),Y=VFl(),P=Ro(R.character)||Ro(R.previousCharacter);PEu(function(){if(R.marginMultiplier){var E;(E=Y.value)==null||E.cancel();P?(E=R.previousCharacter?Number(R.previousCharacter)+10:R.rollUp?0:30,R.shouldAnimate||(E-=kmk(R,E))):(E=R.rollUp?0:2,R.shouldAnimate||(E-=R.rollUp?-1:1));A.value.style.marginTop="-"+E*R.marginMultiplier+"px";R.shouldAnimate?Y.value=Gmk(A.value,R,E,P):A.value.style.display=R.character?"":"none"}});
return _.V("animated-rolling-character",{el:A,class:"animatedRollingCharacterHost"},g_V(P,function(){for(var E=[],z=1;z<30;z++)E.push(_.V("div",null,z%10));return _.V(_.lI,null,_.V("div",null,"\u00a0"),E,_.V("div",null,"\u00a0"))},function(){return ZZ8(R.character)}))};
ZZ8=function(R){return _.V(_.lI,null,_.V("div",null,"\u00a0"),_.V(_.lI,null,g_V(!R||_.c3(R),function(){return _.V("div",null,"\u00a0")},function(){return _.V("div",null,R)})),_.V("div",null,"\u00a0"))};
Gmk=function(R,A,Y,P){Y=new Animation(new KeyframeEffect(R,[{transform:"translateY(0px)"},{transform:"translateY("+(P?kmk(A,Y):A.rollUp?-1:1)*A.marginMultiplier+"px)"}],wII),document.timeline);A.character?(R.style.display="",Y.onfinish=null):Y.onfinish=function(){R.style.display="none"};
Y.play();return Y};
kmk=function(R,A){var Y=Number(R.character)+10;if(R.previousCharacter)if(R.character){var P=Number(R.character),E=Number(R.previousCharacter);R=R.rollUp?E<P?Y:Y+10:E<P?Y-10:Y}else R=R.rollUp?30:0;else R=R.character==="0"?Y:R.rollUp?Y-10:Y+10;return A-R};
u_u=function(R){return function(A){var Y={},P;for(P in A){var E=void 0,z=void 0;((E=void 0)==null?0:(z=E.callbacks)==null?0:z[P])||(Y[P]=A[P])}return _.V(gsl,null,function(){for(var c in Y)A[c]=_.pX(Y[c]);A.disableReactiveLogging=!0;return _.V(R,Object.assign({},A))})}};
Lzb=function(R,A,Y,P,E,z,c){Y=new Animation(new KeyframeEffect(R,[{transform:"translateY(0px)"},{transform:"translateY("+(z?eml(A,Y,P,E):P?-1:1)*c+"px)"}],qMk),document.timeline);A?(R.style.display="",Y.onfinish=null):Y.onfinish=function(){R.style.display="none"};
Y.play();return Y};
eml=function(R,A,Y,P){var E=Number(R)+10;A?R?(R=Number(R),A=Number(A),Y=Y?A<R?E:E+10:A<R?E-10:E):Y=Y?30:0:Y=R==="0"?E:Y?E-10:E+10;return P-Y};
Rnk=function(R){var A=VFl(),Y=VFl();cgV(function(){A.value=R.numberText;Y.value=R.numberValue},[R.numberText]);
var P=R.fontSizeMultiplier?R.heightPx*R.fontSizeMultiplier:R.heightPx,E=NHk(function(){if(R.numberText){var c=R.numberText;var M=R.forceRollUp||!Y.value||!R.numberValue||Y.value<R.numberValue;var N=!!R.shouldAnimate,y=A.value,m=[],T=0,Q=0,g=(y?y.replace(/\D/g,"").length:0)-(c?c.replace(/\D/g,"").length:0);y=y?y.split(/(\d)/).filter(Boolean):[];for(c=c.split(/(\d)/).filter(Boolean);g<0;){var r=c[Q];m.push({character:r,rollUp:M,marginMultiplier:P,shouldAnimate:N});Q++;Ro(r)&&g++}for(;T<g;)r=y[T],m.push({previousCharacter:r,
rollUp:M,marginMultiplier:P,shouldAnimate:N}),T++,Ro(r)||g++;for(;Q<c.length;)g=c[Q],r=y[T],Ro(g)===Ro(r)?(Q++,T++):Ro(g)?(T++,g=void 0):Ro(r)&&(Q++,r=void 0),m.push({character:g,previousCharacter:r,rollUp:M,marginMultiplier:P,shouldAnimate:N});M=m}else M=[];return M},[R.numberText]),z=R.numberText?["height: "+P+"px;",
"line-height: "+R.heightPx+"px;"].join(" "):"";return _.V("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:z,dir:"ltr","aria-hidden":"true"},E.map(function(c){return _.V(dpk,Object.assign({},c))}))};
Aul=function(R){return new KeyframeEffect(R,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
YN3=function(R){return new KeyframeEffect(R,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.gl=function(R){var A=ih(function(Y){Y=Y?J6(Y[0]):void 0;return _.yy(R(Y),void 0,"AwTxXe")},{isEqual:function(Y,P){return J6(Y[0])===J6(P[0])}});
return[function(){return A()[0]()},
function(Y){return void A()[1](Y)}]};
_.nY=function(R){return function(){var A="",Y;for(Y in R){for(var P=R[Y];typeof P==="function";)P=P();P!==void 0&&P!==null&&(A+="; "+Y+": "+P)}return A.length>0?_.pX(A.slice(2)):_.pX()}};
PlS=function(R){switch(R){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"}};
xQ6=function(R,A,Y,P,E,z,c){var M=ETk(R),N=M.disabled,y=M.iconPosition,m=M.style,T=M.focused,Q=function(){return!!I()&&y()==="icon-only"},g=function(){return!!I()&&y()==="icon-only-40"},r=function(){return!!I()&&y()==="icon-with-label"},I=function(){return!!A||!(P==null||!P())};
return{type:function(){return m()==="call-to-action-inverse"?"text":m()==="overlay-dark"&&R().type!=="filled"&&R().type!=="tonal"?"tonal":R().type},
shouldFocus:function(){return(T()||(z==null?void 0:z()))&&!N()},
hasIconLeading:function(){return!!I()&&y()==="leading"},
hasIconTrailing:function(){return!!I()&&y()==="trailing"},
hasIconLeadingTrailing:function(){return!!I()&&!!(Y||E!=null&&E())&&y()==="leading-trailing"},
hasIconOnly:Q,hasIconOnly40:g,hasIconWithLabel:r,iconButton:function(){return Q()||g()||r()},
visiblyDisabled:function(){return(N()?"disabled":R().state)==="disabled"||N()},
overrideSmallSizeIcon:function(){return!R().ignoreIconSizeOverride&&znu(R(),I())},
iconToRender:A?A:function(){return _.V(_.H1,{icon:P,size:function(){return iR3(R(),!0,R().ignoreIconSizeOverride)},
active:function(){return R().toggled},
iconFilter:function(){return lv6(R())},
animateIcon:c})},
secondaryIconToRender:Y?Y:function(){return _.V(_.H1,{icon:E,size:function(){return iR3(R(),!0,R().ignoreIconSizeOverride)},
active:function(){return R().toggled},
iconFilter:function(){return lv6(R())}})}}};
ETk=function(R){return{size:function(){return R().size},
style:function(){return R().style},
focused:function(){return R().focused},
disabled:function(){return R().disabled},
onTap:function(A){var Y,P;return(P=(Y=R()).onTap)==null?void 0:P.call(Y,A)},
alignByText:function(){return R().alignByText},
aTagConfig:function(){return R().aTagConfig},
customColors:function(){return R().customColors},
segmentedPosition:function(){return R().segmentedPosition},
toggled:function(){return R().toggled},
toggleable:function(){return R().toggleable},
accessibilityLabel:function(){return R().accessibilityLabel},
onToggle:function(A){var Y,P;return(P=(Y=R()).onToggle)==null?void 0:P.call(Y,A)},
iconPosition:function(){return R().iconPosition},
oneOffCustomTextWrap:function(){return R().oneOffCustomTextWrap},
disableTextEllipsis:function(){return R().disableTextEllipsis},
disableBackdropFilter:function(){return R().disableBackdropFilter},
tooltipText:function(){return R().tooltipText},
ariaHidden:function(){return R().ariaHidden},
tabIndex:function(){return R().tabIndex},
buttonText:function(){return R().buttonText},
formattedButtonText:function(){return R().formattedButtonText},
animatedTextProps:function(){return R().animatedTextProps}}};
znu=function(R,A){A=(R.iconPosition==="icon-only"||R.iconPosition==="icon-only-40"||R.iconPosition==="icon-with-label")&&A;return!R.segmentedPosition&&A&&R.size==="S"};
iR3=function(R,A,Y){switch(R.size){case "XS":return 16;case "S":return!Y&&znu(R,A)?24:16;default:return 24}};
cuJ=function(R){switch(R){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"}};
ORP=function(R){switch(R){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"}};
MTJ=function(R){switch(R){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"}};
lv6=function(R){if(R.style==="overlay-dark"&&R.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
rl=function(R){return R&&R.endsWith("px")?Number(R.slice(0,-2)):0};
VTk=function(R){var A=A===void 0?{}:A;R=_.x(_.gl(R));var Y=R.next().value;return[function(P){var E=_.gE(function(){var M,N,y,m;return{text:(M=Y())!=null?M:"",location:(N=A.location)!=null?N:"bottom",offset:(y=A.offset)!=null?y:16,delay:(m=A.delay)!=null?m:1}},void 0,"MgTrkc");
_.jq(function(){var M=E();J6(function(){_.fn.addJob(function(){DL.notify(P,M)},4)})},"WlsgZc");
var z=function(){sdk(P,E())},c=function(){NDl()};
P.addEventListener("mouseenter",z);P.addEventListener("focus",z);P.addEventListener("mouseleave",c);P.addEventListener("blur",c);P.addEventListener("tap",c);_.bm(function(){P.removeEventListener("mouseenter",z);P.removeEventListener("mouseleave",c);P.removeEventListener("focus",z);P.removeEventListener("blur",c);P.removeEventListener("tap",c);NDl()})},
R.next().value]};
yuk=function(R,A){if(!PV){var Y;Pyk(function(){return Y=Q9S(R,A)});
return Y}R.parent=JuJ();return Q9S(R,A)};
JuJ=function(){var R=_.z8(PV||void 0,ymb);return _.DzI(R)?void 0:R};
Uw=function(R,A){_.oZ(R,Object.assign({},A,{forceClickLogging:!0}))};
TDI=function(R,A){var Y=_.h7(R==null?void 0:R.onTap),P={};Y&&(P.getClickedVisualElement=function(){var E;return mQl(R,Y,A==null?void 0:(E=A.value)==null?void 0:E.visualElement)});
P=_.k9({elementsCommand:R.onTap,forceNewState:!0,additionalCommandArgs:P});return Gj(P)?P:void 0};
Qdl=function(R,A,Y,P){Uw(R,Object.assign({},{form:{element:A,event:Y}},P))};
vT3=function(R,A,Y,P,E){var z=void 0;return function(c){var M=_.h7(Y?R==null?void 0:R.onDisabledTap:R==null?void 0:R.onTap);if(M){var N;z=(N=z)!=null?N:A==null?void 0:A.value;if(M)if(_.v("web_button_vm_click_client_ve_killswitch"))Qdl(M,z,c);else{var y;N=mQl(R,M,(y=z)==null?void 0:y.visualElement);if(E){Qdl(M,E,c,{clickedVisualElement:N,form:{element:E}});return}Qdl(M,z,c,{clickedVisualElement:N})}}P&&P(c)}};
mQl=function(R,A,Y){A=A==null?void 0:A.clickTrackingParams;var P,E;R=R==null?void 0:(P=R.loggingDirectives)==null?void 0:(E=P.clientVeSpec)==null?void 0:E.uiType;if(Y&&R&&!A)return Y};
gTk=function(R){switch(R){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"}};
nT6=function(R){switch(R){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"}};
HR8=function(R){switch(R){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"}};
rub=function(R){switch(R){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"}};
DQk=function(R,A){return _.mc(R.entities,"engagementToolbarStateEntityPayload",A)};
$QJ=function(R){(R=_.S5(R))&&_.UQb(R)};
_.UQb=function(R){var A=_.F9();A&&_.wH(A,R)};
X5V=function(R,A,Y){_.OC(R,"yt-open-popup-action",[A,Y||R])};
SNJ=function(R,A){var Y=_.fQ(R,"endpoint"),P=_.fQ(R,"action");return(Y=P?P:Y)&&A&&(Y=A.navigationEndpointPopupMap[Y])&&(R=_.Zr(Y,R),(Y=_.fQ(R,"renderer"))&&A.supportedPopups.hasOwnProperty(Y))?{openPopupAction:{popupType:A.popupTypeMap[Y],popup:R}}:null};
IvV=function(R,A,Y,P){if(P){var E;Y=Y==null?void 0:(E=Y.data)==null?void 0:E.contents;(E=Y instanceof Array&&Y.length?Y[0]:Y)&&(Y=_.fQ(E,"renderer"))&&P.supportedPopups.hasOwnProperty(Y)&&(A.stopPropagation(),X5V(R,{openPopupAction:{popupType:P.popupTypeMap[Y],popup:E}}))}};
jdJ=function(R,A,Y,P){P=P===void 0?!1:P;var E=KRk(A);if(E){E.href&&uk(E.href);var z=A.button;z=z!==void 0?z===0&&!$L(A):!$L(A);E.data&&z&&WRJ(R,E,A,Y,P)}};
WRJ=function(R,A,Y,P,E){E=E===void 0?!1:E;var z=_.cU("pbj_navigate_limit",-1)===0;bR6(A);_.is().resolve(_.z3(on));var c=A.data;if(Object.keys(c).length!==0)if(!_.v("unplugged_web_disable_actions_for_cec_endpoint")&&_.n(c,_.Jg))_.v("endpoint_behavior_command_executor_fix_killswitch")||(Y.preventDefault(),Y.stopPropagation()),_.NT(R,[c],R);else if(P=SNJ(c,P))c.loggingUrls&&c.loggingUrls.forEach(function(N){N.baseUrl&&_.ZF(N.baseUrl)}),Y.preventDefault(),Y.stopPropagation(),X5V(R,P,A);
else{var M=fvk(0,A.data,Y);if(R=A.getForm)R=R(),M.tempData=M.tempData||{},M.tempData=Object.assign({},M.tempData,R);R=_.Ah(Y);if(P=R.find(function(N){return!!N.visualElement}))M.createScreenConfig=M.createScreenConfig||{},M.createScreenConfig.clickedVisualElement=P.visualElement;
if(!z)if(Y.preventDefault(),Y.stopPropagation(),_.n(c,_.p56)&&!E&&_.Qp.instance)_.Qp.instance.resolveCommand(c,M);else if(_.v("kevlar_command_handler_formatted_string")&&!E&&_.Qp.instance&&FRb(c))E=R.find(function(N){return!!N.is})||Y.target,Y={form:Object.assign({},M,{event:Y,
element:E,originatingNode:A})},_.Qp.instance.resolveCommand(c,Y);else{c=_.Ah(Y);Y=[];for(E=0;E<c.length;E++)(z=c[E].is)&&Y.push(z);fk6({parents:Y.join(","),text:A.innerText},function(){_.xo(A,"yt-navigate",M)})}}};
BDk=function(R){if(R=KRk(R))bR6(R),KKu(R.href)};
KRk=function(R){R=_.Ah(R);for(var A,Y=0;Y<R.length;Y++)if(A=R[Y],A.tagName==="A"&&A.classList.contains("yt-simple-endpoint")){if(!A.data)break;return A}return null};
$L=function(R){return R.shiftKey||R.altKey||R.metaKey||R.ctrlKey};
av3=function(R,A){var Y={itct:A.clickTrackingParams};_.v("kevlar_client_side_screens")&&(!_.n(A,_.SI)||_.v("kevlar_exclude_endpoint_killswitch"))&&(Y.endpoint=JSON.stringify(A));_.v("enable_unknown_lact_fix_on_html5")&&_.is().resolve(_.z3(_.XW))&&(Y.lact=_.z$());Xl6(Y);_.Yo(R,Y)};
bR6=function(R){R.href&&Object.keys(R.data).length!==0&&av3(R.href,R.data)};
FRb=function(R){for(var A=_.x(ClI),Y=A.next();!Y.done;Y=A.next())if(R[Y.value])return!1;return!0};
_.hnP=function(R,A){return _.mc(R.entities,"markersEngagementPanelSyncEntity",A)};
oTk=function(R,A){return _.mc(R.entities,"fantasyWinProbabilityEntity",A)};
kUk=function(R,A){return _.mc(R.entities,"fantasyTeamEntity",A)};
GUI=function(R,A){return _.mc(R.entities,"fantasyPlayerEntity",A)};
ZRJ=function(R,A){return _.mc(R.entities,"booleanEntity",A)};
tT6=function(R,A){return _.mc(R.entities,"qrCodeEntity",A)};
w5l=function(R){return _.mc(R.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
uM3=function(){if(Si)return Si;if(window.lottie)return Si=Promise.resolve(window.lottie);var R=_.pn(_.a1("LOTTIE_URL"));return R?Si=new Promise(function(A,Y){var P=document.createElement("script");P.addEventListener("load",function(){A(lottie)});
P.addEventListener("error",function(E){var z="Lottie library failed to load.";E?E.message&&(z+=" Original description: "+E.message,_.F8(E,z)):E=Error(z);_.pK(E);Y(E)});
P.setAttribute("async","");_.ET(P,R);document.head.appendChild(P)}):Promise.reject(Error("th"))};
enk=function(){return Si?Si:uM3()};
qN3=function(R){if(R)switch(R){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.v("kevlar_use_wil_icons"))return R=(R=w5l(_.Yp().getState()))&&R.animationLightUrl&&R.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:R.animationLightUrl,pathDarkTheme:R.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,R?R:IE.get("LIKE");break;case "LIKE_DELHI_PLAYER":return IE.get("LIKE_DELHI_PLAYER")}};
LRq=function(R){var A=qN3(R);if(A)return A;switch(R){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return IE.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return IE.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return IE.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return IE.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return IE.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return IE.get("NOTIFICATION_BELL")}};
dQ3=function(R,A){if(!R.closest)return!1;A=!!qN3(A);return _.a1("ID_TOKEN")&&A?!!R.closest("segmented-like-dislike-button-view-model")||!!R.closest("yt-player-quick-action-buttons"):!1};
A28=function(R,A){if(!R||Rfk)A=!1;else{var Y;if(!(Y=dQ3(R,A)))if(R.closest)if(Y=!_.a1("ID_TOKEN"),R=R.closest("ytd-subscription-notification-toggle-button-renderer-next"),Y||!R)Y=!1;else{var P;Y=((P=R.data)==null?void 0:P.targetId)==="notification-bell"&&A!=="EXPAND_MORE"}else Y=!1;A=Y}return A};
Yvu=function(R){var A,Y;return _.O(function(P){switch(P.nextAddress){case 1:return _.g2(P,2),P.yield(fetch(R),4);case 4:return A=P.yieldResult,P.yield(A.json(),5);case 5:return P.return(P.yieldResult);case 2:Y=_.UT(P),_.pK(Y),_.XH(P)}})};
PRS=function(R,A){var Y,P,E;return _.O(function(z){if(z.nextAddress==1)return(Y=A?R.pathDarkTheme:R.path)?z.yield(Promise.all([Yvu(Y),uM3()]),2):z.return();P=z.yieldResult;E=P[0];KY.set(Y,E);_.XH(z)})};
zfk=function(R,A,Y,P){function E(c,M){if(A.value===M&&R!=null&&R.value){for(;R.value.firstChild;)R.value.removeChild(R.value.firstChild);R.value.classList.add("ytSpecIconShapeHost");c(R.value,P)}}
Y=_.Ef6(_.is().resolve(_.Tj),Y);if(typeof Y==="function")A.value=null,E(Y,null);else{var z=new _.yR(Y.then,Y);A.value=z;z.then(function(c){E(c,z)})}};
lal=function(R,A){var Y=document.createElement("div"),P=_.KQ(Y,function(){return _.V(_.J,{cond:R,then:function(E){return _.V(iVq,{data:E,options:A})}})},"D");
return[Y,P]};
_.W1=function(R,A){if(A){var Y={};x7u.forEach(function(P){P=c2P(A,P,"--yt-lightsource-");Object.assign(Y,P)});
OVJ.forEach(function(P){P=c2P(A,P,"--yt-basic-");Object.assign(Y,P)});
_.ya(R,Y)}};
c2P=function(R,A,Y){var P={};P[Y+_.gq(A)]=R&&R[A]?_.Zs(R[A]):"";return P};
_.bh=function(R,A,Y){ji[R]||(ji[R]={});ji[R][A]=Y};
_.fY=function(R){ji[R]||(ji[R]={});return ji[R]};
Ma6=function(R){if(!R)return{};var A=R.foregroundTitleColor,Y=R.backgroundColor;R=R.borderColor;var P="text";R?P="outline":Y&&(P="filled");return{type:P,customColors:{color:A?_.Zs(A):void 0,backgroundColor:Y?_.Zs(Y):void 0,borderColor:R?_.Zs(R):void 0}}};
y2S=function(R){var A=R.renderer;var Y=R.element;var P=R.commandController;var E=R.onTapCallback;var z=R.skipCommandHandling;var c=R.overrides;var M=R.forceIcon;var N=R.forceModernIconButton;var y=R.forceDisabled;var m=R.isSubscribe===void 0?!1:R.isSubscribe;var T=R.isPressed===void 0?!1:R.isPressed;var Q=R.useButtonSize===void 0?!1:R.useButtonSize;R=stJ(A);m&&(R.style="mono",R.type="filled");M=!A.icon||!M&&A.text?A.icon?A.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:N?"icon-only":"icon-only-40";M==="icon-only-40"&&(R.type="text");var g;N=Object;m=N.assign;Q=NPq(A,Q);T=!!A.isSelected||!_.v("web_propagate_is_pressed_killswitch")&&!!T;var r=A.isSelected!==void 0;y=y===void 0?A.isDisabled:y;var I=A.text?_.FS(A.text):void 0;var b,p,h,L=((b=A.accessibilityData)==null?void 0:(p=b.accessibilityData)==null?void 0:p.label)||((h=A.accessibility)==null?void 0:h.label);b=L?L:_.R4(A.text);Y=VaJ(A,Y,P,E,z);P=J26(A);P!=null&&P.length?(P=_.k9({innertubeCommand:or8(P),
forceNewState:!0}),P=Gj(P)?P:void 0):P=void 0;return m.call(N,{},R,Q,{iconPosition:M},c,{focused:!1,toggled:T,toggleable:r,disabled:y,formattedButtonText:I,accessibilityLabel:b,onTap:Y,aTagConfig:P},Ma6((g=A.colorData)==null?void 0:g.basicColorPaletteData),{oneOffCustomTextWrap:A.oneOffCustomTextWrap})};
VaJ=function(R,A,Y,P,E){return function(z){var c=J26(R);P(c,z);if(!E){c=_.x(c);for(var M=c.next();!M.done;M=c.next())Uw(M.value,{form:{element:A,event:z},commandController:Y})}}};
J26=function(R){var A=[];R.command&&A.push(R.command);R.serviceEndpoint&&A.push(R.serviceEndpoint);R.navigationEndpoint&&A.push(R.navigationEndpoint);return A};
NPq=function(R,A){if(A)switch(R.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(R.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
stJ=function(R){switch(R.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"}}};
m7k=function(R,A){return typeof R!=="object"||R===null?!1:Object.keys(A).every(function(Y){return Y in R})};
TPP=function(R){return Object.fromEntries(Object.keys(R).map(function(A){return[A,A]}))};
QtS=function(R,A,Y){return $2k(Y,function(P,E){return function(z){var c=_.Ge.apply(1,arguments);return m7k(z,R)?E.apply(null,[z[A]].concat(_.py(c))):E.apply(null,[z].concat(_.py(c)))}})};
vfu=function(R){return function(A,Y){return QtS(R,A,Y)}};
_.pY=function(R){return R!=null&&R.watch?R.watch.isTheaterMode:!1};
_.FW=function(R){return R!=null&&R.watch?R.watch.isWatchFullscreen:!1};
_.B1=function(R){R=_.gf3(R);return _.v("web_watch_enable_single_column_grid_view")?R:!1};
_.gf3=function(R){return R.watch.isWatchNarrowWidth};
_.nfJ=function(R){return R.watch.openEngagementPanels};
_.aE=function(R){return _.gE(function(){Qiq()();return n8q(R)},{debugName:"d8B62c"},"wfRQAb")};
CY=function(R,A){return _.mc(R.entities,"likeStatusEntity",A)};
HVJ=function(R,A){return _.mc(R.entities,"likeCountEntity",A)};
_.hM=function(R,A){return _.mc(R.entities,"stringEntity",A)};
r2J=function(R,A){if(!R)return!1;var Y,P=(Y=_.n(R,_.mZ))==null?void 0:Y.signal;if(P&&A.signalEndpointMap)return!!A.signalEndpointMap[P];var E;if((Y=(E=_.n(R,_.oE))==null?void 0:E.request)&&A.continuationEndpointMap)return!!A.continuationEndpointMap[Y];for(var z in R)if(A.commandEndpointMap[z])return!0;return!1};
D7b=function(R,A){if(A.streamingEndpointMap)for(var Y in R)if(A.streamingEndpointMap[Y]&&(R=A.streamingEndpointMap[Y]))return R()};
U7l=function(R,A){var Y,P=(Y=_.n(R,_.mZ))==null?void 0:Y.signal;if(P&&A.signalEndpointMap&&(Y=A.signalEndpointMap[P]))return Y();var E;if((Y=(E=_.n(R,_.oE))==null?void 0:E.request)&&A.continuationEndpointMap&&(E=A.continuationEndpointMap[Y]))return E();for(var z in R)if(A.commandEndpointMap[z]&&(R=A.commandEndpointMap[z]))return R()};
$7b=function(R){var A={"Content-Type":"application/json"};_.a1("EOM_VISITOR_DATA")?A["X-Goog-EOM-Visitor-Id"]=_.a1("EOM_VISITOR_DATA"):_.a1("VISITOR_DATA")&&(A["X-Goog-Visitor-Id"]=_.a1("VISITOR_DATA"));A["X-Youtube-Bootstrap-Logged-In"]=_.a1("LOGGED_IN",!1);_.a1("DEBUG_SETTINGS_METADATA")&&(A["X-Debug-Settings-Metadata"]=_.a1("DEBUG_SETTINGS_METADATA"));if(R!=="cors"){var Y=_.a1("INNERTUBE_CONTEXT_CLIENT_NAME");Y&&(A["X-Youtube-Client-Name"]=Y);(Y=_.a1("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(A["X-Youtube-Client-Version"]=
Y);(Y=_.a1("CHROME_CONNECTED_HEADER"))&&(A["X-Youtube-Chrome-Connected"]=Y);(Y=_.a1("DOMAIN_ADMIN_STATE"))&&(A["X-Youtube-Domain-Admin-State"]=Y)}_.CQ("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(R=_.a1("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(A["X-YouTube-Lava-Device-Context"]=R):R!=="cors"&&_.CQ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(R=_.a1("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(A["X-YouTube-Lava-Device-Context"]=R);return A};
XES=function(R,A){A.watchNextResponse||A.reelItemWatchResponse?A.watchNextResponse?R.content=A.watchNextResponse:R.content=A.reelItemWatchResponse:A.playerResponse?R.player=A.playerResponse:A.reelWatchSequenceResponse&&(R.reelSequence=A.reelWatchSequenceResponse)};
_.kL=function(R){if(!R)return null;for(var A=[],Y=0;Y<R.textSegments.length;Y++){var P=R.textSegments[Y];P.text?A.push(P):P.emojiId&&A.push({emoji_id:P.emojiId})}return{text_segments:A}};
jtb=function(R,A,Y,P,E,z,c){z=z===void 0?[]:z;var M=new _.Go;M.endpoint=Y;if(!Y)return _.fK(new _.XN("handle undefined endpoint",A.tagName)),M;var N=GIk(Y);N.length&&(_.NT(R,N,A,P),M.actions=N);Y.loggingUrls&&Y.loggingUrls.forEach(function(m){m.baseUrl&&tZ(m.baseUrl,m.attributionSrcMode)});
N=!_.v("web_skip_impression_click_killswitch")&&P&&P.impression;if(Y.clickTrackingParams&&!Sv3(Y)&&!Iaq(A)&&!N&&(N=_.rU(),!_.ZL(N,A))){var y=A.getScreenLayer&&A.getScreenLayer();y?N.clickCommand(Y,null,y):N.clickCommand(Y,null)}N=!1;for(y=0;y<z.length;y++)if((0,z[y])(A,Y,P)){N=!0;break}!N&&Kik(Y)&&(M.ajaxPromise=Wi3(R,A,Y,P,E,c));return M};
Iaq=function(R){var A;return(R=(A=R.data)==null?void 0:A.navigationEndpoint)&&!!R.clickTrackingParams};
Sv3=function(R){var A=_.n(R,_.mZ);if(A&&(A=A.signal)&&bVb.indexOf(A)>=0)return!0;for(var Y in R)if(fak.indexOf(Y)>=0)return!0;return!1};
Kik=function(R){var A;if(((A=_.n(R,_.mZ))==null?void 0:A.signal)==="CLIENT_SIGNAL")return!1;for(var Y in R)if(pEk.indexOf(Y)>=0)return!1;R=Object.keys(R);return R.length===1&&R[0]==="loggingUrls"?!1:!0};
GCq=function(R,A,Y,P,E,z,c){var M=_.tM.instance;if(M&&_.wl(M,P))var N=_.uh(M,P,E).then(function(m){return(m==null?0:m.data)?m:{data:m}});
else N=R.requestDataForServiceEndpoint(P,E),_.n(P,Fik)||_.n(P,BPl)||_.n(P,_.aaJ)||_.n(P,CRk)||_.pK(new _.XN("No RequestBuilder for endpoint",P));var y=_.ei();y.promise.thenCatch(function(){var m=_.fQ(P,"action")||_.fQ(P,"command")||_.fQ(P,"endpoint");m&&(m=P[m],m.hasOwnProperty("onFailureAction")?_.NT(A,[m.onFailureAction],Y):m.hasOwnProperty("onFailureCommand")&&_.NT(A,m.onFailureCommand,Y));N.cancel("Resolver promise rejected")});
N.then(function(m){if(m){var T=m.error;if(T){if(z&&z.onServerError)z.onServerError(P,m);y.reject(new _.XN("Response error",P,T))}else if(m=m.data)if(T=m.error){if(z&&z.onServerError)z.onServerError(P,m);y.reject(new _.XN("Returned error",P,T))}else{hfk(A,Y,m,P);ofl(m);if(T=kIu(m))for(var Q=_.x(T),g=Q.next();!g.done;g=Q.next()){g=g.value;var r=_.is().resolve(_.z3(kCJ))||qH;if(!_.tM.instance||!r.some(function(b){return!!_.n(P,b)})||_.v("kevlar_response_processor_allowlist_killswitch")){var I=r=void 0;
((I=_.n((r=g)==null?void 0:r.commandMetadata,_.Ti))==null?0:I.sendPost)?_.sC(A,[g]):_.NT(A,[g],Y)}}(Q=_.n(m==null?void 0:m.frameworkUpdates,LY))&&c&&c(Q);if(z&&z.onSuccess)z.onSuccess(P,m);y.resolve(new _.dl(m,T))}}else y.reject(new _.XN("Invalid service endpoint provided",P))},function(m){y.reject(m)});
return y.promise};
ofl=function(R){var A;(R=(A=_.n(R==null?void 0:R.onResponseReceivedCommand,_.ZVk))==null?void 0:A.continuationItems)&&(R==null?void 0:R.length)===1&&_.n(R[0],tak)&&_.Fh("so_r",void 0,"search_overview_answer")};
Wi3=function(R,A,Y,P,E,z){var c;return(c=A.getNetworkManager&&A.getNetworkManager()?A.getNetworkManager():_.is().resolve(_.z3(_.a4)))?GCq(c,R,A,Y,P,E,z):_.j5("No network manager.")};
hfk=function(R,A,Y,P){if(Y=Y.trackingParams||Y.loggingDirectives&&Y.loggingDirectives.trackingParams){var E;(_.n(P,wEk)||_.n(P,uxk)||_.n(P,efk))&&P.clickTrackingParams?E=_.S5(P.clickTrackingParams):_.v("web_graft_to_parent_command")&&P.clickTrackingParams&&(E=_.S5(P.clickTrackingParams));var z;P=(z=A.getScreenLayer)==null?void 0:z.call(A);A=_.rU().graftServerVe(Y,E,P);_.MT(R,"yt-store-grafted-ve-action",[A])}};
_.qvk=function(R){var A=new Image;return new _.yR(function(Y,P){A.addEventListener("load",function(){Y()});
A.addEventListener("error",function(){P()});
A.src=R})};
LiP=function(R){return!!R};
d7J=function(R){return!!R};
R0b=function(R,A,Y){var P=R.rowIndex;P!==void 0&&_.MT(R.hostElement,"yt-section-reactive-dismissal",[P,A,Y])};
_.RP=function(R,A,Y){R=_.x(R);for(var P=R.next();!P.done;P=R.next()){P=P.value;if(P===A)break;for(var E=_.x(Y),z=E.next();!z.done;z=E.next())if(z=z.value,P.tagName===z||!_.v("web_event_button_role_check_killswitch")&&P.role==="button"&&z==="BUTTON")return!0}return!1};
_.A4=function(R,A,Y){R=_.x(R);for(var P=R.next();!P.done;P=R.next()){P=P.value;if(P===A)break;for(var E=_.x(Y),z=E.next();!z.done;z=E.next())if(P.id===z.value)return!0}return!1};
AYJ=function(R){switch(R){case 0:return 16/9;case 1:return 2/3;case 2:return.75;case 3:return 1;case 4:return.5625;default:return 0}};
Y1P=function(R,A){if(!R&&!A)return"medium";R=Math.max(R||0,A||0);return R>=256?"large":R>=96?"medium":"small"};
P3I=function(R){switch(R){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.EJ=function(){var R=_.is().resolve(_.z3(_.YH));return R?(R=R.getCurrentPage())?_.PT(R):null:null};
_.zI=function(){var R=_.EJ();if(!R){var A=_.is().resolve(_.z3(_.YH)),Y=A?typeof A:"no page manager";A=A?A.getCurrentPage():null;Y=new _.XN("Player is missing when requested.",Y,A?A.tagName:"no page");_.bj(Y)}return R};
_.PT=function(R){return R&&R.getPlayer?R.getPlayer():null};
ECJ=function(R,A){R={args:{raw_player_response:R}};A&&(R.args=Object.assign({},R.args,A));return R};
z0b=function(R){if(R.args){if(R.args.raw_player_response)return R.args.raw_player_response;if(R.args.player_response)return JSON.parse(R.args.player_response)}};
_.iMJ=function(R,A){var Y={url:"/watch?v="+R.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};R.playlistId&&(Y.url+="&list="+R.playlistId);R.playerParams&&(Y.url+="&pp="+R.playerParams);R={watchEndpoint:R,commandMetadata:{webCommandMetadata:Y}};A&&(R.clickTrackingParams=A);return R};
xnk=function(){return l1q||!!_.Zr("yt.player.Application")};
OMk=function(){return cYb||!!document.querySelector("link#player-css")};
sDk=function(){function R(){l1q=!0;M86.resolve()}
var A,Y;return _.O(function(P){M86||(M86=new _.y2,xnk()?R():(A=document.createElement("script"),A.addEventListener("load",R),Y=_.bt(_.a1("PLAYER_JS_URL")),_.ET(A,Y),document.head.appendChild(A)));return P.return(M86.promise)})};
V8l=function(){function R(){cYb=!0;Nmu.resolve()}
if(!Nmu)if(Nmu=new _.y2,OMk())R();else{var A=document.createElement("link");A.id="player-css";A.addEventListener("load",R);var Y=_.bt(_.a1("PLAYER_CSS_URL"));_.xU(A,Y,"stylesheet");document.head.appendChild(A)}return Nmu.promise};
JYS=function(){return xnk()&&OMk()?Promise.resolve([]):Promise.all([sDk(),V8l()])};
yYI=function(R,A,Y){var P={args:{}};R&&(P.args.raw_player_response=R);A&&(P.args.raw_watch_next_response=A);Y&&(P.args=Object.assign({},P.args,Y));return P};
vCl=function(R,A,Y){var P=!1;P=P===void 0?!0:P;R=typeof R==="string"?_.ic(document,R):R;var E=mnV+"_"+_.tk(R),z=Tm8[E];if(z&&P)return QDl(A,Y)?z.api.loadVideoByPlayerVars(A.args||null):z.loadNewVideoConfig(A),z.api;z=new lc(R,E,A,Y,void 0);Tm8[E]=z;z.addOnDisposeCallback(function(){delete Tm8[z.getId()]});
return z.api};
QDl=function(R,A){return A&&A.serializedExperimentFlags?A.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):R&&R.args&&R.args.fflags?R.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
gCk=function(){var R=new _.y2;R.resolved=!1;var A=R.resolve;R.resolve=function(Y){R.resolved=!0;A(Y)};
return R};
HMu=function(R){var A={};nC6().install((A.document_disposed={callback:R},A))};
xH=function(R,A){if(!R&&Math.random()<=_.cU("kevlar_unified_player_logging_threshold")){R=Error("vh`"+(A?A:"Unspecified error"));if(_.v("kevlar_unified_player_throw_errors"))throw R;_.pK(R)}};
_.rY8=function(){var R=_.Zr("ytDebugData.callbacks");R||(R={},_.PG("ytDebugData.callbacks",R));return R};
UnV=function(R,A){var Y=_.rY8();if(_.v("web_dd_iu")||Dnk.includes(R))Y[R]=A};
$nS=function(){return _.O(function(R){return R.return({isLeader:_.smJ(_.Yp().getState()),c:_.a1("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.a1("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
XNk=function(){var R;_.O(function(A){if(A.nextAddress==1)return UnV("APP_STATE",$nS),A.yield(_.is().resolve(_.cT),2);R=A.yieldResult;UnV("PI",function(){return _.O(function(Y){return Y.return(R.getVideoStats())})});
_.XH(A)})};
S1k=function(R){var A=_.Ag(_.t_(_.P3.location.href));R=_.Ag(_.t_(R));return _.v("kevlar_clear_non_displayable_url_params")?A==OJ(R):OJ(A)==OJ(R)};
OJ=function(R){var A=_.I1k(R);R=R.slice(0);var Y=["frags"];_.v("kevlar_hide_pp_url_param")&&Y.push("pp");_.v("kevlar_hide_time_continue_url_param")&&Y.push("time_continue");Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,R=_.Pk(_.Ag(R),P);return _.Ag(R)+(A?"#"+A:"")};
MV=function(R,A){A=Number(A)*1E3;var Y=Math.round((0,_.iB)()),P=Y.toString();R={innertubeResponse:R,serverDateTimestampMs:P,lastModifiedTimestampMs:P,expireTimestampMs:(Y+A).toString()};if(A=_.a1("INNERTUBE_CONTEXT_CLIENT_NAME"))R.clientName=A;return R};
W26=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++K2P};
_.jDq=function(){var R=_.pO(),A=_.F9();A&&R&&_.eF(A,[R],!0)};
f1l=function(R){return R&&bM8.some(function(A){return R.includes(A)})};
h03=function(R){var A=_.n(R,_.G$);if(!A)return!1;var Y=A.url,P=A.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!Y)return _.bj(Error("Ah")),!1;if(A.target==="TARGET_NEW_WINDOW"){var E={};_.v("resolve_url_parent_tracking_params")&&(!_.AN(Y)||YS(window.location.href,Y))&&(E={endpoint:R,itct:R.clickTrackingParams});Xl6(E);R=null;try{if(P)return R=_.plb(Y,"_blank",E,void 0,P),pNu(_.is().resolve(F23),R,Y),!0}catch(Q){_.bj(Q)}_.Yo(Y,E);A={target:"_blank",noopener:_.v("set_window_noopener_ks")&&
!A.allowOpener};R=window;P=pq(Y)?Y:_.oR(typeof Y.href!="undefined"?Y.href:String(Y));E=self.crossOriginIsolated!==void 0;var z="strict-origin-when-cross-origin";window.Request&&(z=(new Request("/")).referrerPolicy);var c=A.noreferrer;if(E&&c&&z==="unsafe-url")throw Error("re");z=c&&!E;c=A.target||Y.target;var M=[],N=[],y=!1;for(T in A){var m=A[T];switch(T){case "width":case "height":case "top":case "left":M.push(T+"="+m);break;case "target":break;case "noopener":case "noreferrer":m?N.push(T):(y=!0,
N.push(T+"=false"));break;case "attributionsrc":M.push(T+(m?"="+m:""));break;default:M.push(T+"="+(m?1:0))}}var T=c!==void 0&&!["_blank","_self","_top","_parent",""].includes(c);T=U6()&&T;Bmk&&E&&M.length===0&&N.length>0&&!T&&!y?(N.length===2&&(N=["noreferrer"]),_.dZ(R,P,c,N[0]),R=a1P()):(T=M.join(","),_.Ik()&&R.navigator&&R.navigator.standalone&&c&&c!="_self"?(T=_.De("A"),wZ(T,P),T.target=c,z&&(T.rel="noreferrer"),((A=A.attributionsrc)||A==="")&&T.setAttribute("attributionsrc",A),A=document.createEvent("MouseEvent"),
A.initMouseEvent("click",!0,!0,R,1),T.dispatchEvent(A),R=a1P()):z?(R=_.dZ(R,"",c,T),A=_.Ff(P),R&&(R.opener=null,A===""&&(A="javascript:''"),A='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+sJ(A)+'">',A=ec(A),(P=R.document)&&P.write&&(P.write(qL(A)),P.close()))):((R=_.dZ(R,P,c,T))&&A.noopener&&(R.opener=null),R&&A.noreferrer&&(R.opener=null)));pNu(_.is().resolve(F23),R,Y);return!0}A=_.T3(Y);A=f1l(A)||Y==="https://studio.youtube.com/";P=!(!_.AN(Y)||YS(window.location.href,
Y));T=Y.indexOf("disable_polymer=1")>=0;if(P||T||A)uk(Y),jF(),_.eI(Y,void 0,void 0,window.top,C38);else return _.pK(new _.XN("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",R)),!1;return!0};
_.GaP=function(R,A){A=A===void 0?0:A;if(!(_.n(R,oCq)||_.n(R,kak)||_.n(R,_.G$)&&_.n(R,_.G$).url))return!1;var Y,P=(Y=_.n(R,_.G$))==null?void 0:Y.url;Y=P?{externalLinkData:{url:P}}:null;return _.rU().clickCommand(R,Y,A)};
ZMk=function(R,A){return _.mc(R.entities,"subscriptionStateEntity",A)};
t8V=function(R,A){return _.mc(R.entities,"subscriptionNotificationStateEntity",A)};
wNq=function(R,A){return _.mc(R.entities,"upcomingEventReminderStateEntity",A)};
uBk=function(R,A){return _.mc(R.entities,"engagementToolbarSurfaceEntityPayload",A)};
e0k=function(R,A){return _.mc(R.entities,"triStateButtonStateEntityPayload",A)};
q1P=function(R,A){return _.mc(R.entities,"commerceCartCheckoutButtonEntity",A)};
_.L2k=function(R,A){return _.mc(R.entities,"playlistLoopStateEntity",A)};
dnl=function(R,A){return _.mc(R.entities,"commandEntity",A)};
A1I=function(R,A,Y,P,E){E=E===void 0?{}:E;return function(z){var c,M;var N=((c=R.loggingDirectives)==null?0:(M=c.clientVeSpec)==null?0:M.uiType)?_.NV(R.loggingDirectives.clientVeSpec.uiType):void 0;E.clickedVisualElement||(E.clickedVisualElement=N);N=Rhk(R,A);Y(N,z);N=_.x(N);for(c=N.next();!c.done;c=N.next()){c=c.value;M=P;var y=z,m=E;m.form?m.form.event=y:m.form={element:M,event:y};Uw(c,m)}}};
Rhk=function(R,A){var Y=[];A?(R.toggledCommand&&Y.push(R.toggledCommand),R.toggledServiceEndpoint&&Y.push(R.toggledServiceEndpoint)):(R.defaultCommand&&Y.push(R.defaultCommand),R.defaultServiceEndpoint&&Y.push(R.defaultServiceEndpoint),R.defaultNavigationEndpoint&&Y.push(R.defaultNavigationEndpoint));return Y};
Y4k=function(R,A){var Y=R.toggledStyle||R.style,P;switch((P=A?Y:R.style)==null?void 0:P.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"}}};
_.VJ=function(){return _.O(function(R){return R.nextAddress==1?R.yield(_.is().resolve(_.cT),2):R.return(_.is().resolve(P1J)())})};
_.J4=function(){return _.is().resolve(P1J)()};
_.yJ=function(){return bI(function(){return{lottieEl:void 0}})};
ERl=function(R,A){return R.startsWith(A.uniqueId)};
zhk=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(_.VJ(),2);A=P.yieldResult;if((Y=A)==null||!Y.addEventListener)return mp(),P.return();A.addEventListener("onCueRangeEnter",R);_.XH(P)})};
ibP=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(_.VJ(),2);A=P.yieldResult;if((Y=A)==null||!Y.removeEventListener)return mp(),P.return();A.removeEventListener("onCueRangeEnter",R);_.XH(P)})};
lSk=function(R){var A,Y,P,E,z;_.O(function(c){if(c.nextAddress==1)return c.yield(_.VJ(),2);A=c.yieldResult;if((Y=A)==null||!Y.addCueRange)return mp(),c.return();P=_.x(R.timings);for(E=P.next();!E.done;E=P.next())z=E.value,A.addCueRange(R.uniqueId+"-"+z,z/1E3,(z+100)/1E3);_.XH(c)})};
xFJ=function(R){var A,Y,P,E,z;_.O(function(c){if(c.nextAddress==1)return c.yield(_.VJ(),2);A=c.yieldResult;if((Y=A)==null||!Y.removeCueRange)return mp(),c.return();P=_.x(R.timings);for(E=P.next();!E.done;E=P.next())z=E.value,A.removeCueRange(R.uniqueId+"-"+z);_.XH(c)})};
c1k=function(){var R,A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(_.VJ(),2);R=P.yieldResult;if((A=R)==null||!A.getPlayerState)return mp(),P.return();Y=R.getPlayerState();return P.return(Y===2)})};
mp=function(){_.pK(new _.XN("Smartimation player does not exist or is corrupted"))};
ObI=function(){try{var R;return(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(A){return _.pK(new _.XN("Smartimation CSS.supports threw an error")),!1}};
mF8=function(R,A,Y,P,E){var z=R.playlistId?M1S:sg6;A=A();Y=Y();E=!!R.videoId&&E()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.UQ(A))return Nnk({data:R,actionType:z,disabled:E},Y);if(R.videoId&&P())return V1P({data:R,actionType:z,disabled:E});switch(A){case "TRANSFER_STATE_UNKNOWN":return V1P({data:R,actionType:z,disabled:E});case "TRANSFER_STATE_FAILED":return R.videoId?J13({data:R,actionType:z,disabled:E}):y1V({data:R,actionType:z,disabled:E});case "TRANSFER_STATE_COMPLETE":return y1V({data:R,
actionType:z,disabled:E});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return Nnk({data:R,actionType:z,disabled:E},Y);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return R.videoId?J13({data:R,actionType:z,disabled:E}):V1P({data:R,actionType:z,disabled:E});default:return V1P({data:R,actionType:z,disabled:E})}};
Tnb=function(R,A){var Y=R.onTapCommand,P=_.h7(Y);if(R.videoId&&_.n(P,_.TI))return _.n(P,_.TI).action=A,Y;R.playlistId&&_.n(P,_.QJ)&&(_.n(P,_.QJ).action=A);return Y};
V1P=function(R){var A=R.data;var Y=R.actionType;R=R.disabled;return{text:Qgb,iconType:"OFFLINE_DOWNLOAD",onTap:Tnb(A,Y.ACTION_ADD),disabled:R}};
Nnk=function(R,A){var Y=R.data;var P=R.actionType;R=R.disabled;var E="OFFLINE_DOWNLOAD";A>=0&&A<=.1?E="OFFLINE_DOWNLOADING_ZERO":A>.1&&A<=.3?E="OFFLINE_DOWNLOADING_TWENTY":A>.3&&A<=.5?E="OFFLINE_DOWNLOADING_FORTY":A>.5&&A<=.7?E="OFFLINE_DOWNLOADING_SIXTY":A>.7&&A<1?E="OFFLINE_DOWNLOADING_EIGHTY":A===1&&(E="OFFLINE_PIN");return{text:vR6,iconType:E,onTap:Tnb(Y,P.ACTION_REMOVE_WITH_PROMPT),disabled:R}};
y1V=function(R){var A=R.data;var Y=R.actionType;R=R.disabled;return{text:gRS,iconType:"OFFLINE_PIN",onTap:Tnb(A,Y.ACTION_REMOVE_WITH_PROMPT),disabled:R}};
J13=function(R){var A=R.data;var Y=R.actionType;R=R.disabled;return{text:nRu,iconType:"OFFLINE_DOWNLOAD",onTap:Tnb(A,Y.ACTION_RETRY),disabled:R}};
_.vT=function(R,A){var Y=Qiq();return _.gE(function(){Y();return n8q(R,[_.pX(A)||""])},{debugName:"LUZslf"},"qYSKAc")};
Hbl=function(R){var A=_.vT(_.h0,function(){return R().videoId}),Y=_.vT(_.oa,function(){return R().playlistId});
return function(){return R().videoId?A:R().playlistId?Y:_.x(_.yy("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
r18=function(R){var A=_.vT(kb,function(){return R().videoId}),Y=_.vT(_.MwV,function(){return R().playlistId});
return function(){return R().videoId?A:R().playlistId?Y:_.x(_.yy(0,void 0,"K4tgOc")).next().value}};
DFJ=function(R){var A=_.vT(_.v7P,function(){return R().videoId});
return function(){return R().videoId?A:_.x(_.yy(!1,void 0,"Oaxwcf")).next().value}};
UFV=function(R){var A=_.vT(Vwk,function(){return R().videoId});
return function(){return R().videoId?A:_.x(_.yy("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
$Fq=function(){return{}};
_.WYV=function(R,A,Y){return{submitForm:function(){var P;return _.O(function(E){if(E.nextAddress==1){P=XYV(R());if(!P)return E.return();if(P.onSubmit)return P.onSubmit(),E.return();if(!P.submitConfig||!P.formData)return E.jumpTo(0);P.disableDuringSubmission&&S4k(R(),!0);ISq(A);return E.yield(KYJ(P.submitConfig,P.formData()),3)}ISq(Y);P.disableDuringSubmission&&S4k(R(),!1);return E.return()})},
isValid:function(){var P=XYV(R());if(P){var E;return!((E=P.isValid)==null||!E.call(P))}return!0},
isSubmitting:function(){var P,E;return!!((P=XYV(R()))==null?0:(E=P.isSubmitting)==null?0:E.call(P))}}};
_.fSI=function(){if(!jgV){var R=_.x(_.yy(new Map,void 0,"yE61ae"));jgV=R.next().value;bb3=R.next().value}return jgV};
_.pY3=function(R){bb3(new Map(R))};
XYV=function(R){if(R)return _.fSI()().get(R)};
KYJ=function(R,A){var Y;return _.O(function(P){return A?(Y=_.is().resolve(_.z3(FYk)))&&R.submitId?P.yield(Y.submitForm(R.submitId,A,Bnq,R.params,R.clickTrackingParams),0):P.return():P.return()})};
S4k=function(R,A){if(R){var Y=_.fSI();Y().set(R,Object.assign({},Y().get(R),{isSubmitting:function(){return A}}));
_.pY3(Y())}};
ISq=function(R){if(R){var A=_.is().resolve(_.ls);A&&(R=_.h7(R()))&&A.resolveCommand(R)}};
C13=function(R,A){A=A===void 0?{shouldPersist:!0}:A;return{useUpdatableData:function(Y,P){var E=[],z=_.x(_.gl(function(){var y=Y();if(P!=null&&P.length&&E){var m=E.length>0;for(var T=!1,Q=0;Q<P.length;Q++){var g=P[Q]();m&&g!==E[Q]&&(T=!0);E[Q]=g}m=T}else m=!1;if(m)_.g0.remove(N());else if(m=_.g0.get(N()))return m;return y})),c=z.next().value,M=z.next().value,N=_.gE(function(){return R(Y())},void 0,"mX326");
_.jq(function(){if(N()!=null){aSk.set(N(),[c,M]);var y=N();_.bm(function(){aSk.delete(y)})}},"MgKPjb");
return[c,function(y){M(y);A.shouldPersist&&_.g0.set(N(),y)}]},
getData:function(Y){var P;return(P=aSk.get(R(Y)))==null?void 0:P[0]()},
updateData:function(Y,P){Y=R(Y);var E=aSk.get(Y);if(!E)return!1;var z=_.x(E);E=z.next().value;z=z.next().value;P=P(E());z(P);A.shouldPersist&&_.g0.set(Y,P);return!0}}};
hhS=function(R){var A=_.x(_.yy(!0,void 0,"bKtO6d")),Y=A.next().value;A.next();return function(){var P=gu(R.children());return _.V(_.J,{cond:Y,then:function(){return P},
else:R.fallback})}()};
_.ni=function(R){var A=oRu(R),Y=A.data,P=A.mapping,E=A.wrapper;A=A.pendingFallback;var z=function(){return kcV(_.pX(Y))},c=function(){var M=z(),N=[];
M=_.x(M);for(var y=M.next();!y.done;y=M.next()){var m=void 0;y=y.value;var T=void 0;for(m in y)if(!(!y).hasOwnProperty(m)){T=m;break}(m=T)&&N.push(m)}return N};
return R.data?_.V(hhS,{fallback:A},function(){return _.V(_.Ue,{each:c},function(M,N){var y=E?function(T){return E(function(){return P[M](T,N)},m,N)}:function(T){return P[M](T,N)};
y.debugName||(y.debugName=String(M));if(!P[String(M)])return document.createComment("");y.componentType!==_.XF&&Gck(String(M));var m=ZbV(z,M,N);return _.V(y,{data:m})})}):_.V(_.lI,null)};
oRu=function(R){var A=R.targetId||t1P(R.children);if(!R.data||!A||_.v("mweb_new_replaceables_killswitch"))return Object.assign({},R,{mapping:R.children,wrapper:void 0});var Y="stamper-"+wY3++,P=function(){var M;return(M=typeof R.targetId==="function"?R.targetId(Y):R.targetId)!=null?M:Y};
A=_.x(u$8(function(){var M=kcV(R.data());M.targetId=P;return M})).next().value;
var E=Object.assign({},(_.is().resolve(_.z3(ehb))||{}).replaceableMapping,R.children);if(R.replacementWrapper){var z=E.notificationTextRenderer,c=E.notificationMultiActionRenderer;z&&(E.notificationTextRenderer=function(M,N){return R.replacementWrapper(z({data:M.data},N))});
c&&(E.notificationMultiActionRenderer=function(M,N){return R.replacementWrapper(c({data:M.data},N))})}return Object.assign({},R,{data:A,
mapping:E,wrapper:function(M,N,y){return yuk({targetId:P,stamperIndex:y},M)}})};
ZbV=function(R,A,Y){var P;return _.gE(function(){var E=R()[Y()];if(E)P=E[A];else return _.pK(new _.XN("Stamper failed to find "+String(A)+" at index "+Y()+" of data array of length "+(R().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),P;return E[A]},void 0,"wgRPHd")};
t1P=function(R){R=_.x(Object.keys(R));for(var A=R.next();!A.done;A=R.next())if(A=A.value,q48.includes(A)||LYq.includes(A)||dFk.includes(A))return!0;return!1};
kcV=function(R){return R?Array.isArray(R)?R:[R]:[]};
Gck=function(R){if(_.v("web_enable_renderer_logger")){var A;(A=_.is().resolve(_.z3(RBS)))!=null&&A.loggingEnabled&&!A.ids.has(R)&&A.ids.add(R)}};
AJk=function(){var R,A;return(A=(R=_.is().resolve(_.z3(_.dU)))==null?void 0:R())!=null?A:!1};
PZV=function(R,A){R=R===void 0?Yyb:R;switch(A.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},R,{isOpen:A.payload});default:return R}};
zBu=function(R,A){R=R===void 0?Ei3:R;switch(A.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},R,{isAllowed:A.payload});default:return R}};
lU8=function(R,A){R=R===void 0?ihk:R;switch(A.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},R,{errorMessage:A.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},R,{title:A.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},R,{privacy:A.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},R,{isDisabled:A.payload});default:return R}};
cJ3=function(R,A){R=R===void 0?xCJ:R;switch(A.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},R,{isOpen:A.payload});default:return R}};
MZI=function(R,A){R=R===void 0?Oh8:R;switch(A.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},R,{isFullscreen:A.payload});case "SET_NAVIGATION_BUTTON":var Y=A.payload.targetId,P=Object.assign({},R.navigationButtons);P[Y]=A.payload.button;return Object.assign({},R,{navigationButtons:P});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},R,{topPanelId:A.payload});case "SET_SECONDARY_HEADER":return Y=A.payload.panelId,P=Object.assign({},R.secondaryHeader),P[Y]=A.payload.secondaryHeader,
Object.assign({},R,{secondaryHeader:P});default:return R}};
JJI=function(){return Qz(Object.assign({},{voiceSearch:Btb,engagementPanel:MZI,bottomSheet:PZV,cinematicSetting:zBu,shorts:tVk,drawerLayout:cJ3,createPlaylist:lU8,locationCollection:sIk,reportChannel:Npk,reportForm:VZk},wXk))};
yJl=function(R,A){_.fn.addLowPriorityJob(function(){var Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:return _.g2(z,2),z.yield(uM3(),4);case 4:return z.yield(fetch(R),5);case 5:return Y=z.yieldResult,z.yield(Y.json(),6);case 6:P=z.yieldResult;KY.set(R,P);requestAnimationFrame(function(){A(P)});
_.us(z,0);break;case 2:E=_.UT(z),_.pK(E),_.XH(z)}})})};
mCb=function(R){var A={animationConfig:{},listeners:{}},Y=function(){R(!0)};
A.listeners.data_failed=Y;A.listeners.error=Y;A.listeners.data_ready=function(){R(!1)};
return A};
vi8=function(R){var A=R.model;var Y=R.subscribed;var P=R.isOverlay;var E=R.element;var z=R.commandController;var c=R.notificationState;if(Y){var M,N;var y=(A==null?void 0:(M=A.buttonStyle)==null?void 0:M.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:A==null?void 0:(N=A.unsubscribeButtonContent)==null?void 0:N.buttonText}else{var m;y=A==null?void 0:(m=A.subscribeButtonContent)==null?void 0:m.buttonText}a:{var T;switch(A==null?void 0:(T=A.buttonStyle)==
null?void 0:T.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":M="S";break a;default:M="M"}}a:if(P)P="overlay";else switch(A.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":P="overlay";break a;default:P="mono"}a:if(Y)var Q="tonal";else switch((Q=A.buttonStyle)==
null?void 0:Q.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Q="tonal";break a;default:Q="filled"}return{style:P,type:Q,state:A.disableSubscribeButton?"disabled":"active",size:M,focused:R.focused,toggled:Y,accessibilityLabel:TpS(A,Y,c),buttonText:y,iconPosition:A.disableNotificationBell?"none":"leading-trailing",onTap:QIl(A,Y,E,z),disableTextEllipsis:!!R.disableTextEllipsis}};
QIl=function(R,A,Y,P){return function(E){if(A){var z;var c=R.disableNotificationBell?_.h7(R==null?void 0:(z=R.unsubscribeButtonContent)==null?void 0:z.onTapCommand):_.h7(R==null?void 0:R.onShowSubscriptionOptions)}else{var M;c=_.h7(R==null?void 0:(M=R.subscribeButtonContent)==null?void 0:M.onTapCommand)}c&&Uw(c,{form:{element:Y==null?void 0:Y.value},commandController:P});E.stopPropagation()}};
TpS=function(R,A,Y){if(A){if(R==null?0:R.disableNotificationBell){var P;return R==null?void 0:(P=R.unsubscribeButtonContent)==null?void 0:P.accessibilityText}switch(Y){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var E;return R==null?void 0:(E=R.bellAccessibilityData)==null?void 0:E.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var z;return R==null?void 0:(z=R.bellAccessibilityData)==null?void 0:z.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var c;return R==null?void 0:(c=
R.bellAccessibilityData)==null?void 0:c.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var M;return R==null?void 0:(M=R.bellAccessibilityData)==null?void 0:M.disabledLabel;default:var N;return R==null?void 0:(N=R.unsubscribeButtonContent)==null?void 0:N.accessibilityText}}else{var y;return R==null?void 0:(y=R.subscribeButtonContent)==null?void 0:y.accessibilityText}};
giu=function(R){if(R){switch(R){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":R="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":R="NOTIFICATIONS_OFF";break;default:R="NOTIFICATIONS_NONE"}return R}};
niu=function(R,A,Y){Y.subscribed!==A&&((Y=Y.key)&&_.A7(_.HT("subscriptionStateEntity",Y,{key:Y,subscribed:A})),R.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:A})),A||_.OC(R,"yt-unsubscribe-action"))};
rJS=function(R){R=_.n(_.h7(R),_.r0);var A,Y,P,E;return(E=_.n(R==null?void 0:(A=R.panelLoadingStrategy)==null?void 0:(Y=A.inlineContent)==null?void 0:(P=Y.sheetViewModel)==null?void 0:P.content,Hh6))==null?void 0:E.listItems};
DCV=function(R,A){if(R.onShowSubscriptionOptions&&A&&(R=rJS(R.onShowSubscriptionOptions),R!=null&&R.length)){var Y=giu(A);R.forEach(function(P){P=_.n(P,_.Dk);var E,z,c,M,N=P==null?void 0:(E=P.leadingImage)==null?void 0:(z=E.sources)==null?void 0:(c=z[0])==null?void 0:(M=c.clientResource)==null?void 0:M.imageName;P&&N&&(P.isSelected=N===Y)})}};
UCu=function(R,A,Y,P){A&&Y?R.style.width=Y+"px":!A&&P&&(R.style.width=P+"px")};
$Ck=function(R,A,Y){var P;(P=R.lottieEl)==null||P.goToAndPlay(0);var E;(E=A.lottieEl)==null||E.goToAndPlay(0);_.$H(_.fn,function(){var z;(z=Y.lottieEl)==null||z.goToAndPlay(0)},300)};
XJk=function(R){return!(R==null||!R.iconName||(R==null?0:R.title))};
Sy8=function(R,A,Y,P){Y&&_.fn.cancelJob(Y);Y=_.fn.addLowPriorityJob(function(){P(void 0)},5E3);
P(Y);A&&R!==(A.likeStatus==="LIKE")&&A.key&&_.A7(_.HT("likeStatusEntity",A.key,{key:A.key,likeStatus:R?"LIKE":"INDIFFERENT",hadUserInteraction:R}))};
_.IU6=function(R,A){return _.mc(R.entities,"accountLinkStatusEntity",A)};
KHl=function(R,A){return _.mc(R.entities,"hatsSurveyEntity",A)};
WHl=function(R,A){return _.mc(R.entities,"hatsSurveyStateEntity",A)};
jIk=function(R,A){return _.mc(R.entities,"quantityIncrementerEntity",A)};
bhI=function(R){switch(R){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 6;case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":return 2;case "BADGE_STYLE_TYPE_YPC":return 9;case "BADGE_STYLE_TYPE_FEATURED":return 5;case "BADGE_STYLE_TYPE_THUMBNAIL_OVERLAY_SPECIAL":return 19;case "BADGE_STYLE_TYPE_BLUE":return 12;default:return 0}};
fUS=function(R){switch(R){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}};
pJS=function(R){switch(R){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--promoted-inverted";case 5:return"badge-shape-wiz--timely";case 6:return"badge-shape-wiz--premium";case 7:return"badge-shape-wiz--sale";case 8:return"badge-shape-wiz--membership";case 9:return"badge-shape-wiz--commerce";case 11:return"badge-shape-wiz--live";case 12:return"badge-shape-wiz--status-new";case 13:return"badge-shape-wiz--status-complete";
case 14:return"badge-shape-wiz--status-warning";case 15:return"badge-shape-wiz--status-error";case 16:return"badge-shape-wiz--status-default";case 17:return"badge-shape-wiz--thumbnail-default";case 18:return"badge-shape-wiz--thumbnail-live";case 19:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.Bpu=function(R){var A=_.cU("web_generic_client_event_wait_period ",0);A||(A=3E5);var Y=FH6.get(R);!_.v("enable_web_client_experiment_event_timeout_killswitch")&&Y&&(0,_.iB)()-Y<A||(FH6.set(R,(0,_.iB)()),_.Wj("genericClientExperimentEvent",{eventType:R}))};
aUk=function(R){switch(R){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""}};
CZV=function(R){if(!R)return"";var A,Y=(A=_.is().resolve(_.z3(_.dU)))==null?void 0:A(),P;if(!Y&&((P=R.vibrantColorPalette)==null?0:P.iconInactiveColor))return tf(R.vibrantColorPalette.iconInactiveColor,"1");var E;return Y&&((E=R.darkColorPalette)==null?0:E.iconInactiveColor)?tf(R.darkColorPalette.iconInactiveColor,"1"):R.color?tf(R.color,"1"):R.sampledThumbnailColor?(R=R.sampledThumbnailColor,"rgba("+R.red+","+R.green+","+R.blue+");"):""};
_.Xk=function(R,A){if(!R.includes("DATE_PLACEHOLDER"))return R;var Y=new Date(0);Y.setUTCSeconds(A);return R.replace("DATE_PLACEHOLDER",hBl(Y))};
oiJ=function(R,A,Y){return function(P){var E=R.command;E&&(Uw(E,{form:{element:Y}}),A([E],P))}};
GYI=function(R,A,Y,P,E){return function(z){var c=kYk(R,A);c&&Uw(c,{form:{element:Y},commandController:P});E&&z.stopPropagation()}};
kYk=function(R,A){if(R.signInEndpoint&&!_.v("web_subscribe_sign_in_endpoint_killswitch"))return R.signInEndpoint;if(A){if(R.serviceEndpoints)return R.serviceEndpoints[1];if(R.onUnsubscribeEndpoints)return R.onUnsubscribeEndpoints[0]}else{if(R.serviceEndpoints)return R.serviceEndpoints[0];if(R.onSubscribeEndpoints)return R.onSubscribeEndpoints[0]}};
Zhu=function(R,A){var Y,P,E,z;A=A&&((Y=R.unsubscribeAccessibility)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label)||((E=R.subscribeAccessibility)==null?void 0:(z=E.accessibilityData)==null?void 0:z.label);return R.longSubscriberCountText?[A,_.R4(R.longSubscriberCountText)].filter(function(c){return c}).join(" "):A};
Sd=function(R,A){return A||(R==null?0:R.isChannelDelegate)?"disabled":"active"};
tZk=function(R,A){var Y;switch((Y=R.style)==null?void 0:Y.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:Sd(R)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:Sd(R)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:Sd(R,!0)};case "OVERLAY":return A?{style:"overlay",type:"tonal",state:Sd(R)}:{style:"overlay",type:"filled",state:Sd(R)};default:return A?{style:"mono",type:"tonal",state:Sd(R)}:{style:"mono",type:"filled",state:Sd(R)}}};
_.IP=function(){for(var R=[],A=_.x(_.Ge.apply(0,arguments)),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value)if(typeof Y==="string")R.push(Y);else{Y=_.x(Object.entries(Y));for(var P=Y.next();!P.done;P=Y.next()){var E=_.x(P.value);P=E.next().value;(E=E.next().value)&&R.push(P)}}return R.join(" ")};
wJJ=function(R){switch(R){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
uAu=function(R){switch(R){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
eBu=function(R,A){var Y=R.map(function(P){return P.toString()});
return _.Qi(function(P){if(Y.includes(P.key)){A&&P.preventDefault();var E;(E=P.currentTarget)==null||E.click()}})};
_.qyk=function(){return eBu(["Enter"])};
_.LH8=function(){return eBu(["Enter"," "],!0)};
_.Ki=function(R){if(R.composedPath)return R.composedPath();if(!R.__composedPath){for(var A=[],Y=R.target;Y;)A.push(Y),Y=Y.parentNode;A.push(window);R.__composedPath=A}return R.__composedPath};
_.WT=function(R,A,Y){R=_.x(R);for(var P=R.next();!P.done;P=R.next()){P=P.value;if(P===A)break;for(var E=_.x(Y),z=E.next();!z.done;z=E.next())if(z=z.value,P.tagName===z||P.role==="button"&&z==="BUTTON")return!0}return!1};
RJk=function(R,A){var Y,P=(Y=A.observer)!=null?Y:_.is().resolve(E_);if(R){Y=dCk(R);var E=[];A.showOption&&E.push(P.observe(R,function(){A.visibilityCallback(!0,R)},A.showOption));
A.hideOption&&E.push(P.observe(R,function(){A.visibilityCallback(!1,R)},A.hideOption));
A.prescanOption&&A.prescanCallback&&E.push(P.observe(R,function(){A.prescanCallback()},A.prescanOption));
var z;Y.visibilityMonitorKeys=((z=Y.visibilityMonitorKeys)!=null?z:[]).concat(E)}};
dCk=function(R){var A;return(A=R.polymerController)!=null?A:R};
_.bc=function(R){return!!_.jd(R)};
_.fi=function(R,A,Y,P,E){return function(z){var c=JuJ();_.jq(function(){if(z){APq(z,R(),E);var M=YGq(z,R(),A,Y,P,c);_.bm(M)}},"nr377e")}};
APq=function(R,A,Y){var P=Pzl(A),E=E1k(A);A=P&&zJS;var z=E&&iEk;(P||E)&&RJk(R,{visibilityCallback:function(c){var M=_.is().resolve(_.ls);c&&P?M.resolveCommand(P,{form:{element:Y?R:void 0},disableClickTracking:!0}):!c&&E&&M.resolveCommand(E,{form:{element:Y?R:void 0},disableClickTracking:!0})},
showOption:A,hideOption:z})};
YGq=function(R,A,Y,P,E,z){var c=new Map;if(A=_.jd(A)){var M;R=(P==null?void 0:(M=P.onTap)==null?void 0:M.value)||R;Y=l6k(A,R,Y==null?void 0:Y.onTap,E,z);R.addEventListener("click",Y);c.set("click",Y)}return function(){for(var N=_.x(c),y=N.next();!y.done;y=N.next()){var m=_.x(y.value);y=m.next().value;m=m.next().value;R.removeEventListener(y,m)}}};
_.jd=function(R){var A;return(R=(A=_.n(R,x$3))==null?void 0:A.onTap)&&_.h7(R)};
Pzl=function(R){var A;return(R=(A=_.n(R,x$3))==null?void 0:A.onVisible)&&_.h7(R)};
E1k=function(R){var A;return(R=(A=_.n(R,x$3))==null?void 0:A.onHidden)&&_.h7(R)};
l6k=function(R,A,Y,P,E){var z=function(M){_.is().resolve(_.ls).resolveCommand(R,M)},c=function(M){P&&_.WT(_.Ki(M),A,P)||z(M.target?{form:{element:M.target,
sourceData:R,mutationContext:E}}:void 0)};
Y&&(c=function(M){Y(M,z)});
return c};
cPS=function(R){switch(R){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}};
OE8=function(R){var A=R.numAvatarsInCluster;switch(R.clusterSize){case "small":return A===2?22:18;case "40":return A===2?24:22;default:return A===2?24:20}};
Mfb=function(R,A){return function(Y){var P=Object.keys(A);_.jq(function(){if(R!=null&&R()){for(var E=_.x(P),z=E.next();!z.done;z=E.next())z=z.value,Y.addEventListener(z,A[z]);_.bm(function(){for(var c=_.x(P),M=c.next();!M.done;M=c.next())M=M.value,Y.removeEventListener(M,A[M])})}},"bXZGfe")}};
s5P=function(R){switch(OE8(R)){case 18:return"yt-spec-avatar-shape--avatar-in-cluster-size-18";case 20:return"yt-spec-avatar-shape--avatar-in-cluster-size-20";case 22:return"yt-spec-avatar-shape--avatar-in-cluster-size-22";case 24:return"yt-spec-avatar-shape--avatar-in-cluster-size-24";default:return""}};
NOq=function(R){switch(R){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""}};
Vfk=function(R){switch(OE8(R)){case 18:return"yt-spec-avatar-shape__button--button-in-cluster-size-18";case 20:return"yt-spec-avatar-shape__button--button-in-cluster-size-20";case 22:return"yt-spec-avatar-shape__button--button-in-cluster-size-22";case 24:return"yt-spec-avatar-shape__button--button-in-cluster-size-24";default:return""}};
JPk=function(R){switch(R){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""}};
yPk=function(R){switch(R){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}};
m$l=function(R){return R==="medium"||R==="48"||R==="large"||R==="extra-large"||R==="extra-extra-large"||R==="giant"};
TO6=function(R){return!!((R==null?0:R.includes(3))||(R==null?0:R.includes(5)))};
v1l=function(R){var A=R.data;return{size:Q58(A.avatarImageSize),type:A.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:R.onTap,decorations:R.decorations||[],badgeText:R.badgeText,accessibilityText:R.accessibilityText,avatarButtonCustomClassName:R.avatarButtonCustomClassName,clusterLayoutConfig:R.clusterLayoutConfig}};
Q58=function(R){switch(R){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_40":return"40";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
g1I=function(R){switch(R){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_40":return 40;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
n13=function(R){switch(R){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""}};
HEk=function(R){var A=R.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",Y,P=R.avatars&&R.avatars.length>0?(Y=_.n(R.avatars[0],_.pi))==null?void 0:Y.avatarImageSize:"AVATAR_SIZE_UNKNOWN";Y=g1I(P)||0;if(A){var E,z=(E=R.avatarClusterSize)!=null?E:"AVATAR_SIZE_M";A=g1I(z);var c,M,N=Math.min((M=(c=R.avatars)==null?void 0:c.length)!=null?M:0,4),y;return{avatars:((y=R.avatars)==null?void 0:y.slice(0,4))||[],avatarSizeInPx:Y,avatarStackStyle:{width:A+"px",height:A+"px",position:"relative"},avatarStyle:function(T){var Q=
OE8({clusterSize:Q58(z),numAvatarsInCluster:N,avatarIndex:T});var g=g1I(z);N===3&&T===2?(g=(g-Q)/2,g=(_.a1("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*g):g=void 0;return{position:"absolute",top:N===2&&T===1||N===3&&T===2||N===4&&T>=2?"0":void 0,bottom:N===2&&T===0||N>2&&T<2?"0":void 0,left:N===2&&T===1||N>2&&(T===1||T===3)?"0":void 0,right:N<=3&&T===0||N===4&&(T===0||T===2)?"0":void 0,transform:g?"translateX("+g+"px)":void 0,width:Q+"px",height:Q+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(T){return{clusterSize:Q58(R.avatarClusterSize),numAvatarsInCluster:N,avatarIndex:T}},
avatarButtonCustomClassName:void 0}}var m;return{avatars:((m=R.avatars)==null?void 0:m.slice())||[],avatarSizeInPx:Y,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:n13(P),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
rPV=function(R,A,Y){return function(){Uw(R,{form:{element:A},commandController:Y})}};
D$8=function(R){switch(R){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
U$P=function(R){switch(R){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"}};
$$q=function(R){if("accessibilityText"in R)return R.accessibilityText||"";if("title"in R){var A,Y,P;return((A=R.title)==null?void 0:(Y=A.accessibility)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label)||""}if("accessibility"in R){var E,z;return((E=R.accessibility)==null?void 0:(z=E.accessibilityData)==null?void 0:z.label)||""}return""};
XQJ=function(R){return"inlinePlayerData"in R};
Fk=function(R){return new SGI(R)};
I63=function(R){return function(A){R&&(R.thumbnailElRef=A.thumbnailElRef,R.thumbnail=A.thumbnail,R.thumbnailOverlays=A.thumbnailOverlays,R.thumbnailSize=A.thumbnailSize)}};
KWP=function(R){switch(R){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
j5b=function(R){var A=_.x(_.yy(!1,void 0,"RIOonf")),Y=A.next().value,P=A.next().value;_.jO(function(){var E=R==null?void 0:R();if(E){var z=_.is().resolve(_.z3(WW8));if(z){var c={triggeringElement:E,onDwellTriggeredFn:function(){P(!0)},
onDwellEndFn:function(){P(!1)}};
z.registerElement(c);_.bm(function(){_.BT(z,c)})}}});
return Y};
bEI=function(R,A,Y){Y?Y(A):_.Zc(A,R.target?{form:{element:R.target}}:void 0)};
_.aP=function(R,A,Y){return function(P){_.jq(function(){var E=new Map,z,c=(z=R())==null?void 0:z.onTap;c&&(z=function(M){a:{var N=M.composedPath();N=_.x(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;if(y===P)break;if(y.className.indexOf("HostIsClickableAdComponent")>=0||y.tagName==="A".toString()||y.tagName==="BUTTON".toString()){N=!0;break a}}N=!1}N||bEI(M,c,A)},(Y==null?0:Y())||_.v("enable_web_home_top_landscape_image_layout_level_click")?(P.addEventListener("tap",z),E.set("tap",z)):(P.addEventListener("click",
z),E.set("click",z)));
_.bm(function(){for(var M=_.x(E),N=M.next();!N.done;N=M.next()){var y=_.x(N.value);N=y.next().value;y=y.next().value;P.removeEventListener(N,y)}})},"NMyqj")}};
f6V=function(R,A){var Y,P=(Y=R.interaction)==null?void 0:Y.onTap;if(R=_.k9({elementsCommand:P,forceNewState:!0,skipOnClick:!0}))return R.onclick=function(E){hCJ(E)&&(E.preventDefault(),P&&bEI(E,P,A))},Gj(R)?R:void 0};
pQk=function(R){switch(R){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
FW3=function(R){switch(R){case "AD_BUTTON_STYLE_OVERLAY":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TEXT":return"overlay";case "AD_BUTTON_STYLE_TRANSPARENT":case "AD_BUTTON_STYLE_MONO_FILLED":case "AD_BUTTON_STYLE_MONO_TONAL":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"mono";case "AD_BUTTON_STYLE_OVERLAY_FILLED":return"call-to-action-overlay";default:return"call-to-action"}};
BO8=function(R){switch(R){case "AD_BUTTON_STYLE_OUTLINE":case "AD_BUTTON_STYLE_MONO_OUTLINE":return"outline";case "AD_BUTTON_STYLE_TONAL":case "AD_BUTTON_STYLE_OVERLAY_TONAL":case "AD_BUTTON_STYLE_MONO_TONAL":return"tonal";case "AD_BUTTON_STYLE_OVERLAY_TEXT":case "AD_BUTTON_STYLE_TRANSPARENT":return"text";default:return"filled"}};
_.a66=function(R){return _.v("rich_grid_enable_dynamic_offset")&&R?Math.max(Math.round((R-_.cU("rich_grid_dynamic_offset_anchor_width",1300))/100*_.cU("rich_grid_dynamic_offset_offset_per_100",10)),_.cU("rich_grid_dynamic_offset_lower_bound",-60)):0};
Cz3=function(R,A){switch(A){case 4:return 16;case 1:return R<528?16:R<1024?32:48;case 2:return(R>=528?16:8)/2;case 3:return(R<528?16:R<1024?32:48)+(R>=528?16:8)/2;default:return 0}};
hJu=function(R){var A=R.originalContainerWidth;var Y=R.sizing;var P=R.standardUnit;if(R.isCompactList&&A<528)return 1;switch(Y){case "STANDARD":return P;case "COMPACT":return P+1;case "EXTRA_COMPACT":return _.v("web_responsive_extra_compact_2x")?P*2:_.v("web_responsive_current")?P===1?2:P%2===0?P/2*3:P+2:P<4?P*2:Math.ceil(P*3/2);case "MINI":return P>1?P*2:3;default:return P}};
kBV=function(R){var A=R.containerWidth;var Y=R.peek;var P=R.gutter;var E=R.numItems;R=R.ignoreMaxWidthLimit;A=Y?Math.max((A-Y-P*E)/E,0):Math.max((A-P*(E-1))/E,0);return R?A:Math.min(A,o1k)};
_.Ci=function(R){var A=R.containerWidth;var Y=R.hasPeek;var P=R.sizing;var E=R.marginSettings;var z=R.isCompactList;var c=R.enableFullBleedForSingleCol;var M=R.standardUnitMinWidth;P=P||"STANDARD";Y=!!Y;R=A>=528?16:8;var N=Y?A>=528?48:24:0;E=Cz3(A,E);var y=Math.max(A-E*2,0);M=_.v("kevlar_disable_min_width_override")?void 0:M;M=Math.min(Math.max(Math.floor((y-N+R)/((M!=null?M:GBS)+_.a66(A)+R)),1),6);var m=(c=!!c&&M===1)||M===1&&P!=="STANDARD";Y=Y||m?y:Math.min(y,(o1k+R)*M-R);P=hJu({originalContainerWidth:A,
sizing:P,standardUnit:M,isCompactList:z});return{itemWidth:kBV({containerWidth:Y,peek:N,gutter:R,numItems:P,ignoreMaxWidthLimit:m}),gutter:R,maxContainerWidth:Y,numItems:P,margin:c?0:E,contentMargin:Cz3(A,1),typographyBump:kBV({containerWidth:Y,peek:N,gutter:R,numItems:M,ignoreMaxWidthLimit:m})>400&&!(z&&A<528),standardUnit:M}};
ZEI=function(R){switch(R){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.tfb=function(R){if(R){var A;if((A=R.responsiveContainerConfiguration)==null?0:A.responsiveSize)return ZEI(R.responsiveContainerConfiguration.responsiveSize);if(R.layoutSizing)switch(R.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"}}};
wQ8=function(R){if(R.fullbleed)return 1;switch(R.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
LWq=function(R,A,Y,P,E,z,c,M){a:if(R===4&&P==="LOCKUP_CONTENT_TYPE_SOURCE")var N=1;else switch(R){case 3:N=1;break a;default:N=0}a:switch(R){case 4:z=!!(z&&z<100);break a;default:z=!1}a:switch(R){case 3:case 4:var y=P==="LOCKUP_CONTENT_TYPE_CHANNEL"||P==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:y=!1}a:switch(R){case 5:var m=!0;break a;case 4:m=!1;break a;default:m=!1}return{isOverlay:m,isCard:uUb(P,c),sizing:A!=null?A:"STANDARD",typographyBump:Y!=null?Y:!1,isTiny:z,isCentered:y,isCollection:eJV(P),
arrangement:N,addMarginForFullbleed:R===1&&P!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:R===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:qGP(P,E,M),disableRounding:R===5||uUb(P,c)||R===1&&P==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:eJV(P)?2:0,useLegacyTypography:!(M==null||!M.useLegacyTypography),useRichGridLegacyTypography:!(M==null||!M.useRichGridLegacyTypography)&&!_.v("web_enable_typography_bump"),compactMetadata:N===0&&P==="LOCKUP_CONTENT_TYPE_VIDEO"}};
eJV=function(R){switch(R){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}};
uUb=function(R,A){if(A&&R==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(R){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
qGP=function(R,A,Y){if(A&&(Y==null||!Y.alwaysRespectPodcastShowAspectRatio||R!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(R){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}};
d$l=function(R){switch(R){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"}};
RFk=function(R){switch(R){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
AF3=function(R){switch(R){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}};
_.h4=function(R){if(R){var A;return((A=_.is().resolve(_.z3(_.dU)))==null?0:A())?R.darkThemeImage:R.image}};
EJk=function(R,A,Y,P,E,z){if(E&&z&&A==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:E,height:z};if(!Y)return{};E=Y.size;Y=Y.allowFullWidth;if(A==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&Y)return{fullWidth:!0};if(E===void 0)return{};switch(R){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:E,height:E};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:E,height:1/Yzb*E};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:E*
PaJ,height:E};default:return(P==null?0:P.height)&&(P==null?0:P.width)?P.width/P.height>1?{maxWidth:E*PaJ}:{maxWidth:E}:{maxWidth:E}}};
zFk=function(R){var A;return R&&((A=_.h4(R.themedImage))!=null?A:R.image)};
iBl=function(R){var A;return R==null?void 0:(A=R.sources)==null?void 0:A[0]};
l2k=function(R){switch(R){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"}};
_.xE6=function(R){if(R)return"content-id-"+R};
cF3=function(R){switch(R.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"}}};
OBk=function(R){var A=_.oP.currentPageSubTypeSelector(_.RZ().getState())||"";return R?R+A:""};
MDk=function(R){switch(R){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
NJk=function(R){var A=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],Y=_.x(_.yy(void 0,void 0,"JrqNsb")),P=Y.next().value,E=Y.next().value,z=_.x(_.yy(void 0,void 0,"rWytse"));Y=z.next().value;var c=z.next().value;z=_.x(_.yy(void 0,void 0,"DHRqxe"));var M=z.next().value,N=z.next().value;return{touchFeedbackEvents:{pointerUpEvent:P,pointerDownEvent:Y,pointerLeaveEvent:M},touchFeedbackOnPointerUp:_.Qi(function(y){seI(_.Ki(y),A)||(E(y),c(void 0),N(void 0))}),
touchFeedbackOnPointerDown:_.Qi(function(y){R==null||R(y);seI(_.Ki(y),A)||(c(y),E(void 0),N(void 0))}),
touchFeedbackOnPointerLeave:_.Qi(function(y){seI(_.Ki(y),A)||(N(y),c(void 0),E(void 0))})}};
seI=function(R,A){A=A===void 0?[]:A;A=[].concat(_.py(A),["BUTTON".toString()]);R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next()){Y=Y.value;for(var P=_.x(A),E=P.next();!E.done;E=P.next())if(Y.tagName===E.value)return!0}return!1};
VDk=function(R){switch(R){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"}};
JF3=function(R){return R.scrollHeight-R.offsetHeight>1};
yF3=function(R,A){var Y;return LC(R,((Y=R.content)==null?void 0:Y.length)||0,!A)};
Qeb=function(R,A,Y,P,E,z){if(!A||mE6){var c;return LC(R,((c=R.content)==null?void 0:c.length)||0,!0)}A=P.value;if(!Y.value||!A||!R.content)return R;Y=0;P=R.content.length;c=0;TJS||(TJS=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var M=TJS;for(E=E*z*M;Y<=P;)z=Math.floor(Y+(P-Y)/2),M=LC(R,z)||R,A.firstChild&&(A.firstChild.textContent=M.content),A.scrollHeight>E?P=z-1:(c=z,Y=z+1);return LC(R,c)};
vJk=function(R,A){var Y,P;return(((Y=R.content)==null?void 0:Y.length)||0)>(((P=A.content)==null?void 0:P.length)||0)};
gJI=function(R,A,Y,P,E,z){var c=_.LK("truncated-text-content"),M=_.LK("truncated-text-content"),N=_.LK("button"),y=_.LK("button"),m=_.LK("button"),T=_.is().resolve(_.AM),Q=_.x(_.gl(function(){return yF3(R(),E())})),g=Q.next().value,r=Q.next().value;
Q=_.x(_.gl(function(){return vJk(R(),g())}));
var I=Q.next().value,b=Q.next().value,p=null;_.jq(function(){function h(){if(c.value&&N.value&&m.value){var w=z()?R():Qeb(R(),E(),c,M,A(),Y());r(w);requestAnimationFrame(function(){if(c.value&&N.value&&m.value){var t=JF3(c.value)||vJk(R(),w);b(t);if(!P()){var d=JF3(c.value),Jk=Y(),Nb=c.value,Qk=N.value,H3=m.value,nu=T==="rtl";if(Nb&&Qk){var hk=Qk.offsetLeft;nu&&(hk=Nb.offsetWidth-Qk.offsetWidth-Qk.offsetLeft);if(t){t=Qk.offsetWidth;Qk=Nb.offsetWidth;var FV=d?Qk-t-70:hk-70;Jk="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
Jk+"rem,\n      #000 "+Jk+"rem,\n      #000 100%), linear-gradient(\n      to "+((nu?"left":"right")+",\n      #000 0px,\n      #000 "+FV+"px,\n      transparent "+(d?Qk-t:FV+70)+"px)");Nb.style.setProperty("-webkit-mask-image",Jk);Nb.style.setProperty("mask-image",Jk)}else Nb.style.setProperty("-webkit-mask-image",""),Nb.style.setProperty("mask-image","");d?nu?(H3.style.setProperty("left","0"),H3.style.setProperty("right","unset")):(H3.style.setProperty("left",""),H3.style.setProperty("right","0")):
nu?(H3.style.setProperty("left","unset"),H3.style.setProperty("right",hk+"px")):(H3.style.setProperty("left",hk+"px"),H3.style.setProperty("right","unset"))}}}})}}
var L,Z;(L=p)==null||(Z=L.stop)==null||Z.call(L);L=new _.kH(h,17);h();p=L},"KjwIxd");
_.jO(function(){r(yF3(R(),E()));b(vJk(R(),g()));var h=function(){TJS=void 0;var Z,w;(Z=p)==null||(w=Z.fire)==null||w.call(Z)};
if(window.ResizeObserver){var L=new ResizeObserver(h);L.observe(c.value);_.bm(function(){var Z,w;(Z=p)==null||(w=Z.stop)==null||w.call(Z);L.disconnect()})}else window.addEventListener("resize",h),_.bm(function(){var Z,w;
(Z=p)==null||(w=Z.stop)==null||w.call(Z);window.removeEventListener("resize",h)})});
return{isTruncated:I,displayText:g,contentRef:c,hiddenRef:M,placeholderTruncationTextRef:N,hiddenTruncationTextRef:y,truncationTextRef:m}};
nJk=function(R){return{content:R!=null?R:""}};
HB6=function(R){return _.h7(R.onTap)||_.jd(R.rendererContext)};
rFu=function(R){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:R.overflowMenuA11yLabel,onTap:function(A){A.preventDefault();A.stopPropagation();if(R.overflowMenuOnTap){var Y=_.k9({elementsCommand:R.overflowMenuOnTap,forceNewState:!0});if(Y==null?0:Y.onclick)Y.onclick(A)}}}};
_.GI=function(R,A,Y,P,E){P=P===void 0?{}:P;if(!E||Math.random()<5E-4){A=A||null;Y=Y||null;R=R instanceof Error?R:new _.XN(R);if(R.args)for(var z=_.x(R.args),c=z.next();!c.done;c=z.next())c=c.value,c instanceof Object&&(P=Object.assign({},c,P));P.category="H5 Ads Control Flow";A&&(P.slot=A?"slot:  "+A.slotType:"");Y&&(P.layout=Y?"layout:  "+Y.layoutType:"",P.layoutId=Y.layoutId);E&&(P.known_error_aggressively_sampled=!0);R.args=[P];_.pK(R)}};
_.DEJ=function(R,A){_.OC(R,"yt-open-popup-action",[_.Ed(A),R])};
_.Zk=function(R,A){_.DEJ(R,_.dF(A))};
$Eu=function(R){if(!R)return"";if(UE6[R])return UE6[R];t4||(t4=_.De("A"));t4.href!==R&&wZ(t4,R);var A=t4.pathname;UE6[R]=A.startsWith("/")?A:"/"+A;return UE6[R]};
X28=function(){var R=$Eu(window.location.href);if(R==="/")return"home";if(R.startsWith("/results"))return"search";if(R.startsWith("/watch"))return"watch";if(R.startsWith("/shorts"))return"shorts";if(R.startsWith("/hashtag"))return"hashtag";if(R.startsWith("/create_channel"))return"create_channel";if(R.startsWith("/@")||R.startsWith("/user/")||R.startsWith("/channel/"))return"channel";if(R.startsWith("/experiments"))return"experiments";if(R.startsWith("/sponsor_channel"))return"sponsorship";if(R.startsWith("/select_site"))return"settings";
if(R.startsWith("/locate"))return"locate";if(R.startsWith("/redeem"))return"redeem";if(R.startsWith("/musicpremium")||R.startsWith("/premium")||R.startsWith("/red"))return"premium";if(R.startsWith("/paid_memberships"))return"paid_memberships";if(R.startsWith("/oops"))return"oops";if(R.startsWith("/clip"))return"clip";var A;return(uc==null?void 0:(A=uc.response)==null?void 0:A.page)==="404"?"404":R.startsWith("/feed/history")?"history":R.startsWith("/feed/library")?"library":R.startsWith("/feed/subscriptions")?
"subscriptions":R.startsWith("/feed/trending")?"trending":R.startsWith("/feed/news_destination")?"news":R.startsWith("/playlist")?"playlist":R.startsWith("/minor_moment")?"minor_moment":R.startsWith("/playable/")||R.match("^/playables/(?!saved).")?"mini_app":R.startsWith("/playables")?"playables":R.startsWith("/create/live/join")?"open_in_app":R.startsWith("/feed/explore")?"explore":"browse"};
_.WDk=function(){var R=uc==null?void 0:uc.response,A=R==null?void 0:R.endpoint;if(!A)return(R==null?void 0:R.page)==="watch"?"watch":X28();var Y;R=(Y=_.n(A==null?void 0:A.commandMetadata,_.Ti))==null?void 0:Y.webPageType;Y=!1;if(R&&!Szk.includes(R))switch(R){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 P;return((P=_.n(A==null?void 0:A.commandMetadata,_.Ti))==null?0:P.url)&&$Eu(_.n(A.commandMetadata,_.Ti).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var E;return(A=(E=_.n(A,_.Ds))==null?void 0:E.browseId)?I23[A]||"browse":"browse";default:Y=!0}if(_.n(A,_.ed)||_.n(A,KDI))return"sponsorship";E=$Eu(window.location.href);if(E.startsWith("/experiments"))return"experiments";if(E.startsWith("/create_channel"))return"create_channel";
if(_.n(A,_.G$)&&E.startsWith("/shorts"))return"shorts";if(_.n(A,_.G$)&&E.startsWith("/watch"))return"watch";Y&&(A=new _.XN("Unsupported mWeb page type",{pathname:E,webPageType:R}),_.bj(A));return"browse"};
qV=function(R,A,Y,P){return R&&A?R!==Y||A!==P?(_.GI(Error("Jh"),void 0,void 0,{"stored-slot":R,"stored-layout":A,"latest-slot":Y,"latest-layout":P}),!1):!0:!1};
bBJ=function(R,A,Y){return R({targetId:A},function(P){return Y.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},P,{contents:[Y.continuationItems?_.n(Y.continuationItems[0],jeJ):{}]}):Y.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},P,{header:Y.continuationItems?Y.continuationItems[0]:void 0}):Object.assign({},P,{contents:Y.continuationItems?Y.continuationItems:[]})})};
f2k=function(R,A,Y,P){if(A=A.trackingParams){var E,z=(E=Y.getScreenLayer)==null?void 0:E.call(Y);Y=_.F9(z);E=_.pO(z);if(Y&&E){var c=_.S5(A);_.v("combine_ve_grafts")?R.graftServerVe(A,E,z):_.ZM(Y,E,c);P==null||P(c)}}};
FDS=function(R){var A;return((A=p2k.get(R))==null?void 0:A.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
CaP=function(R,A){var Y={type:A.slotType,controlFlowManagerLayer:BJu.get(A.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};A.slotEntryTrigger&&(Y.entryTriggerType=A.slotEntryTrigger.triggerType);A.slotPhysicalPosition!==1&&(Y.slotPhysicalPosition=A.slotPhysicalPosition);if(R){Y.debugData={slotId:A.slotId};if(R=A.slotEntryTrigger)Y.debugData.slotEntryTriggerData=a2q(R);R=A.slotFulfillmentTriggers;Y.debugData.fulfillmentTriggerData=[];R=_.x(R);for(var P=R.next();!P.done;P=R.next())Y.debugData.fulfillmentTriggerData.push(a2q(P.value));
A=A.slotExpirationTriggers;Y.debugData.expirationTriggerData=[];A=_.x(A);for(R=A.next();!R.done;R=A.next())Y.debugData.expirationTriggerData.push(a2q(R.value))}return Y};
a2q=function(R,A){var Y={type:R.triggerType};A!=null&&(Y.category=A);R.triggeringSlotId!=null&&(Y.triggerSourceData||(Y.triggerSourceData={}),Y.triggerSourceData.associatedSlotId=R.triggeringSlotId);R.triggeringLayoutId!=null&&(Y.triggerSourceData||(Y.triggerSourceData={}),Y.triggerSourceData.associatedLayoutId=R.triggeringLayoutId);return Y};
hFk=function(R,A,Y,P){A={opportunityType:A};R&&(P||Y)&&(P=_.aS(P||[],function(E){return CaP(R,E)}),A.debugData=Object.assign({},Y&&Y.length>0?{associatedSlotId:Y}:{},P.length>0?{slots:P}:{}));
return A};
oJP=function(R){return Li(R.opportunityAdapterMap).concat(Li(R.triggerAdapterMap)).concat(Li(R.fulfillmentAdapterFactoryMap)).concat(Li(R.slotAdapterFactoryMap)).concat(Li(R.layoutRenderingAdapterFactoryMap))};
Li=function(R){var A=[];R=_.x(R.values());for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,Y.isAdsControlFlowEventListener&&A.push(Y);return A};
R9=function(R){var A=R.slotId,Y=R.slotType,P=R.slotPhysicalPosition;return A===void 0?new d0("Cannot construct a slot due to the missing id.",{adSlotMetadata:R}):Y===void 0?new d0("Cannot construct a slot due to the missing type.",{adSlotMetadata:R}):P===void 0?new d0("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:R}):{slotId:A,slotType:Y,slotPhysicalPosition:P,managerLayer:"external",adSlotLoggingData:R.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new kn8}};
Gn6=function(R){var A=R.layoutId,Y=R.layoutType;return A===void 0?new Am("Cannot construct a layout due to the missing id.",{adLayoutMetadata:R}):Y===void 0?new Am("Cannot construct a layout due to the missing type.",{adLayoutMetadata:R}):{layoutId:A,layoutType:Y,managerLayer:"external",adLayoutLoggingData:R.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new kn8,interactionLoggingAdsClientData:{}}};
ZBk=function(R){if(R.querySelector("img")){var A=R.querySelector("img");A.addEventListener("error",function(){SMl(A.src).then(function(Y){(Y=_.kD(Y).toString())?A.src=Y:A.removeAttribute("src")}).catch(function(){A.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
PL=function(R,A){if(A&&(tDk(A.viewableCommand)||tDk(A.endOfSessionCommand))){var Y=w2q(A==null?void 0:A.viewableCommand);A=w2q(A==null?void 0:A.endOfSessionCommand);if(!Ys){var P=_.cU("custom_active_view_tos_timeout_ms");Ys=P>0&&P!==36E5?new uJ8(eFP(),P):new uJ8(eFP())}qzV(Ys,R);LD3(Ys,R,Y,A)}};
Er=function(R){Ys&&qzV(Ys,R)};
eFP=function(){var R=_.a1("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(R==null?void 0:R.length)===2?R[1]:null};
tDk=function(R){R=_.h7(R);return!(R==null||!R.loggingUrls)&&R.loggingUrls.length>0};
w2q=function(R){if(!R)return[];var A=[],Y,P;((P=(Y=_.h7(R))==null?void 0:Y.loggingUrls)!=null?P:[]).forEach(function(E){E.baseUrl&&A.push(E.baseUrl)});
return A};
dEq=function(R){if(_.v("stop_av_measurement_on_detach"))return function(){Er(R)}};
R7P=function(R){return function(){_.v("stop_av_measurement_on_detach")&&Er(R)}};
A3k=function(R){if(_.v("stop_av_measurement_on_detach"))return function(){Er(R)}};
Yik=function(R){return R.shorts.isDesktopSmallWidth};
_.P76=function(R){return R.shorts.isShortsActive};
_.E$k=function(R){return R.shorts.isWatchWhileMode};
_.zt=function(R){return R.shorts.isFullscreen};
_.ix=function(R){return R.shorts.isShortsPipActive};
i33=function(R){var A,Y;if(R=(A=_.n(R.reelsAdCardButtoned,z7P))==null?void 0:(Y=A.animatedRenderingConfig)==null?void 0:Y.easeOutSeconds)return R+"s"};
x3S=function(R,A,Y){return _.O(function(P){return P.return(new Promise(function(E){var z=new Image;z.onload=function(){E(new lyq(R,A,Y,z.naturalWidth,z.naturalHeight))};
z.src=Y.toString()}))})};
c3V=function(R,A){return Math.round(R/1E-5)===Math.round(A/1E-5)};
O3k=function(R,A){return Math.round(R/1E-5)===Math.round(A/1E-5)};
MCS=function(R,A){return R.year===A.year&&R.month===A.month&&R.day===A.day};
slq=function(R,A){return R.year!==A.year?R.year<A.year:R.month!==A.month?R.month<A.month:R.day<A.day};
VCq=function(R){return R.day===NG6(R.year,R.month)?R.month===11?{year:R.year+1,month:0,day:1}:{year:R.year,month:R.month+1,day:1}:{year:R.year,month:R.month,day:R.day+1}};
J3k=function(){var R=new Date,A={year:R.getFullYear(),month:R.getMonth(),day:R.getDate()};return{start:A,end:{year:R.getFullYear()+2,month:R.getMonth(),day:R.getDate()},selectedDate:VCq(A)}};
y38=function(R){return(new q6(2)).format(new Date(R.year,R.month,R.day))};
m36=function(R){return{year:R.getFullYear(),month:R.getMonth(),day:R.getDate()}};
TGV=function(R,A){R=(R+(Number(A.utcOffsetSec)+(new Date(R*1E3)).getTimezoneOffset()*60))*1E3;A=m36(new Date(R));return{date:A,secondsSinceMidnight:Math.floor((R-(new Date(A.year,A.month,A.day)).getTime())/1E3)}};
Ql6=function(R,A){A=A.months.findIndex(function(Y){return Y.year===R.year&&Y.month===R.month});
return A>=0?A:void 0};
v$V=function(R){if(!R)return!1;try{if(R.host&&R.host.tagName==="YT-FORMATTED-STRING"&&R.host.id==="contenteditable-textarea"||R.nodeType===Node.ELEMENT_NODE&&R.tagName==="YTD-COMMENTBOX")return!0}catch(A){return!1}return v$V(R.parentNode)};
lx=function(R){return R?!(R.tagName!=="A"||!R.href||!R.classList.contains("yt-simple-endpoint")):!1};
g$l=function(R){return R?R.tagName==="IMG"&&R.classList.contains("emoji"):!1};
n$k=function(R,A,Y){if(!R)return null;var P=lx(R);if(P&&Y)return A=R.pathname.substring(R.pathname.indexOf("/channel/")+9),document.createTextNode("@"+A);if(P&&!Y)return document.createTextNode("");if(g$l(R))return Y=R.alt,R=R.dataset.emojiId,!R&&A&&(A=_.xs(A,Y))&&A.isCustomEmoji&&(R=A.emojiId),R?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+R+">"):document.createTextNode(Y);P=R.cloneNode(!1);for(var E=0;E<R.childNodes.length;++E){var z=n$k(R.childNodes[E],A,Y);z&&P.appendChild(z)}return P};
cL=function(R){return R?lx(R)?R:cL(R.lastChild):null};
H3k=function(R){return R?lx(R)?R:H3k(R.firstChild):null};
r33=function(R){if(!R)return null;for(var A=R.previousSibling;A;)if(A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="BR")A=A.previousSibling;else if(A.nodeType===Node.TEXT_NODE&&/\s+/.test(A.textContent))A=A.previousSibling;else break;(A=cL(A))?R=A:R=(R=R.parentNode)?cL(R.previousElementSibling):null;return R};
D3I=function(R){if(!R)return null;for(var A=R.nextSibling;A;)if(A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="BR")A=A.nextSibling;else if(A.nodeType===Node.TEXT_NODE&&/\s+/.test(A.textContent))A=A.nextSibling;else break;return(A=H3k(A))?A:D3I(R.parentNode)};
U3u=function(R){var A=_.Or(),Y=A.JSC$11334_getStartNode();if(!v$V(Y.parentNode))return null;A=A.JSC$11334_getStartOffset();if(Y.nodeType===Node.TEXT_NODE){var P=_.GE(Y,lx);if(P){if(R&&A===0||!R&&A===Y.length)return P}else{if(R&&A===Y.length)return!Y||Y.nodeName==="BR"||Y.nextElementSibling&&_.Mh(Y.nextElementSibling,"display")==="block"?null:H3k(Y.nextElementSibling);if(!R&&A===0)return Y?cL(Y.previousElementSibling):null}}if(Y.nodeType===Node.ELEMENT_NODE)if(R){if(0<=A&&A<Y.childNodes.length)return H3k(Y.childNodes[A])}else if(0<
A&&A<=Y.childNodes.length)return cL(Y.childNodes[A-1]);return null};
$3J=function(R,A,Y){if(!R)return null;if(R.nodeType===Node.TEXT_NODE)if(Y){var P=r33(R);if(P&&!/^\s+\S/.test(R.wholeText.substr(0,A)))return P}else if((P=D3I(R))&&!/\S\s+/.test(R.wholeText.substr(A,R.wholeText.length)))return P;return R.nodeType===Node.ELEMENT_NODE?Y?r33(R.childNodes[A]):D3I(R.childNodes[A]):$3J(R.parentNode,A,Y)};
XB6=function(R){if(R.hasChildNodes())switch(R.tagName){case "DIV":case "A":case "SPAN":var A="";for(R=R.firstChild;R;R=R.nextSibling)A+=XB6(R);return A;default:return""}else switch(R.nodeType){case 3:return R.textContent;default:return""}};
sr=function(R,A){return R.year===A.year&&R.month===A.month&&R.day===A.day};
Nh=function(R,A){return R.year!==A.year?R.year<A.year:R.month!==A.month?R.month<A.month:R.day<A.day};
SiV=function(R){return{year:R.getFullYear(),month:R.getMonth(),day:R.getDate()}};
Iy6=function(R){var A=SVI;A=A===void 0?SVI:A;A(new Date(R.year,R.month,R.day))};
Vh=function(R){return SiV(new Date(Number(R.seconds)*1E3))};
KVk=function(R){return R.year!==void 0&&R.month!==void 0&&R.day!==void 0};
WV8=function(R){return R.start!==void 0&&R.end!==void 0};
jlu=function(R){return WV8(R)?R.start:R};
b3k=function(R){return WV8(R)?R.end:void 0};
pBJ=function(R,A){for(var Y=[],P=new Date(R.start.year,R.start.month);P.getFullYear()<R.end.year||P.getFullYear()===R.end.year&&P.getMonth()<=R.end.month;){var E=Y,z=E.push,c=P.getFullYear(),M=P.getMonth(),N=R,y=A,m=void 0,T=[],Q=Object.freeze({extraCssClass:"invisible"}),g=new Date(c,M),r=SiV(g);g=g.getDay();for(var I=SiV(new Date);r.month===M;){g!==fyP&&m||(m=Array.from({length:7}).fill(Q),T.push(m));var b={date:{year:c,month:M,day:r.day},extraCssClass:"",debugClass:""};b.extraCssClass=y(b.date,
r,I,N).trim();m[(g-fyP+7)%7]=b;r=r.day===NG6(r.year,r.month)?r.month===11?{year:r.year+1,month:0,day:1}:{year:r.year,month:r.month+1,day:1}:{year:r.year,month:r.month,day:r.day+1};g=(g+1)%7}z.call(E,{weeks:T,monthLabel:Jm.SHORTMONTHS[M]+" "+c,year:c,month:M,monthLabelExtraCssClass:T[0][2]===Q?"shift-down-label":""});P.setMonth(P.getMonth()+1)}return Y};
FVP=function(R,A){A=A.months.findIndex(function(Y){return Y.year===R.year&&Y.month===R.month});
return A>=0?A:void 0};
ay3=function(R,A){a:{var Y=Y===void 0?[2,3]:Y;Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next()){var E=new Date;if((new BGk(P.value)).parse(A,E,{validate:!0})){E.setHours(0,0,0,0);A=E;break a}}A=null}if(!A)return{isValid:!1,value:void 0};A=SiV(A);Y=R.end;return Nh(A,R.start)||Nh(Y,A)?{isValid:!1,value:void 0}:{isValid:!0,value:A}};
Ghb=function(R){var A=C7k;A=A===void 0?h7q:A;var Y=R.columnsToShow||[],P=o$P(R.columnDimensions,R.columnsToShow,R.leftFloatingColumns,A);return Y.map(function(E,z){var c=R.columns[E];if(c===void 0)throw Error("Ph");var M=P?P[z]:"";var N=R.getCustomTooltip?R.getCustomTooltip(E,c.headerTooltipParagraphs):c.headerTooltipParagraphs;var y=khl(R,E);return{type:E,index:z,style:M,classes:y,headerName:c.headerName||"",headerIcon:c.headerIcon,headerTooltipParagraphs:N||[],headerTooltipHelpContext:c.headerTooltipHelpContext,
sortOrders:c.sortOrders||[],selectionState:c.isSelectionCheckbox?R.selectionState:void 0}})};
khl=function(R,A){var Y=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],P=R.columns[A];if(P===void 0)return"";var E=Y.includes("DEFAULTS")&&P.cssClass?[P.cssClass]:[];if(Y.includes("SORTING")){P.sortOrders&&P.sortOrders.length&&E.push("sortable");if(R.sorting&&R.sorting.columnType===A)a:switch(R.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var z="column-sorted";break a;default:z=""}else z="";z&&E.push(z)}Y.includes("FLOATING")&&(A=R.columnsToShow.indexOf(A),R.leftFloatingColumns&&A<R.leftFloatingColumns&&
E.push("floating-column"),R.leftFloatingColumns&&A===R.leftFloatingColumns-1&&E.push("last-floating-column"));Y.includes("RIGHT_ALIGN")&&P.rightAlignHeader&&E.push("right-align");return E.filter(function(c){return c}).join(" ")};
o$P=function(R,A,Y,P){Y=Y===void 0?0:Y;P=P===void 0?h7q:P;if(R){var E=[],z=0;Z3k(R,A,P).forEach(function(c,M){var N="min-width:"+c.minWidth+"px;padding-left:"+c.paddingLeft+"px;padding-right:"+c.paddingRight+"px;flex:"+c.flexGrow+" 0 "+c.minWidth+"px;";c.maxWidth!==Infinity&&(N=[N,"max-width:"+c.maxWidth+"px;"].join(""));z>0&&M<Y&&(N=[N,"left:"+z+"px;"].join(""));E.push(N);z+=c.minWidth+c.paddingLeft+c.paddingRight});
return E}};
Z3k=function(R,A,Y){Y=Y===void 0?h7q:Y;return A.map(function(P,E){P=R&&R[P]||{};var z=E===0?Y.paddingLeftFirstColumn:Y.padding;P.paddingLeft!==void 0&&(z=P.paddingLeft);E=E===A.length-1?Y.paddingRightLastColumn:Y.padding;P.paddingRight!==void 0&&(E=P.paddingRight);return{paddingLeft:z,paddingRight:E,minWidth:P.minWidth!==void 0?P.minWidth:Y.minWidth,maxWidth:P.maxWidth!==void 0?P.maxWidth:Y.maxWidth,flexGrow:P.flexGrow!==void 0?P.flexGrow:Y.flexGrow}})};
tCV=function(R){var A=R.reduce(function(P,E){var z=E.columnId,c={};E.headerText&&(c.headerName=_.R4(E.headerText));E.rightAlignHeader&&(c.rightAlignHeader=E.rightAlignHeader);var M;if((M=E.headerIcon)==null?0:M.iconType)c.headerIcon=_.m0(E.headerIcon.iconType);P[z]=c;return P},{}),Y=R.filter(function(P){return!P.hideColumn}).map(function(P){return P.columnId});
R=R.filter(function(P){return!!P.dimensions}).reduce(function(P,E){P[E.columnId]=E.dimensions;
return P},{});
return{columns:A,columnsToShow:Y,columnDimensions:R}};
_.wBJ=function(R){return R?R.simpleText?R.simpleText:R.runs?R.runs.map(function(A){return A.text}).join(""):"":""};
d3k=function(R){var A=R.data;var Y=R.onTap;var P=R.isSelected;var E=R.onFocusIn;if(!A)return{};R=uZS(A);P===void 0&&(P=A==null?void 0:A.isSelected);var z;return{text:e7S(A,R),startIcon:(z=A.icon)==null?void 0:z.iconType,state:P?0:2,type:0,onTap:qiJ(A,Y),accessibilityLabel:LVV(A,R),onFocusIn:function(){return E==null?void 0:E()}}};
e7S=function(R,A){if(!A)return R.text?_.wBJ(R.text):void 0};
qiJ=function(R,A){return function(Y){A==null||A(Y,R)}};
uZS=function(R){R=R.style&&R.style.styleType;return!mE6&&R==="STYLE_EXPLORE_LAUNCHER_CHIP"};
LVV=function(R,A){if(A){var Y,P,E;return(E=(Y=R.accessibilityData)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label)!=null?E:e7S(R,!1)}};
yh=function(R){return{signalAction:{signal:R}}};
Yt8=function(){return _.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?RIk:_.AqI};
PQ8=function(R,A){R=R===void 0?"SOFT_RELOAD_PAGE":R;A=A===void 0?49504:A;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.iw(_.vk("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:A}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:R}}]}}}};
EQk=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iw(_.vk("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:Yt8()}};
zIb=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iw(_.vk("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:Yt8()}};
i2V=function(R,A){var Y=_.iw(_.vk("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),P=_.iw(_.vk("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),E={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.iw(_.vk("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};E.serviceEndpoint=R?R:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[yh("SOFT_RELOAD_PAGE")]}};return{title:Y,bodyText:P,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:E},
style:{value:A!=null?A:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
x0k=function(R){R=R===void 0?{}:R;return{title:_.iw(R.localizedZeroStateTitleText===void 0?"":R.localizedZeroStateTitleText),bodyText:_.iw(R.localizedZeroStateMessage===void 0?"":R.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iw(R.localizedZeroStateButtonText===void 0?"":R.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[l9b]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
O2u=function(R){R=R===void 0?{}:R;return{title:_.iw(R.localizedOptInBannerTitleText===void 0?"":R.localizedOptInBannerTitleText),titleLength:19,subtitle:_.iw(R.localizedOptInMessage===void 0?"":R.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iw(_.vk("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:_.iw(_.vk("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:[cqJ]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
NQk=function(R,A){var Y=A=A===void 0?{}:A;A=Y.offlineTitleText===void 0?"":Y.offlineTitleText;var P=Y.offlineDescriptionText===void 0?"":Y.offlineDescriptionText,E=Y.formattedSupplementalText,z=Y.actionButtonText===void 0?"":Y.actionButtonText,c=Y.titleText===void 0?"":Y.titleText;Y=Y.descriptionText===void 0?"":Y.descriptionText;var M={title:z,accessibilityText:z,style:"BUTTON_VIEW_MODEL_STYLE_CTA",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:266213}},onTap:{innertubeCommand:{browseEndpoint:{browseId:"SPunlimited"},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse",rootVe:93498,url:"/premium",webPageType:"WEB_PAGE_TYPE_BROWSE"}}}}};R||(c=A,Y=P,M={title:z,accessibilityText:z,style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_DISABLED",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:266213}}});
return{title:_.iw(c),titleLength:c.length,overrideTitleMaxFontSize:30,subtitle:_.iw(Y),supplementalText:E,primaryButton:{buttonViewModel:M},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[MUb]},darkTileImage:{thumbnails:[sOk]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.yqI=function(R,A,Y,P,E,z,c,M,N,y,m){E=E===void 0?!1:E;z=z===void 0?!1:z;c=c===void 0?0:c;M=M===void 0?-Infinity:M;N=N===void 0?!1:N;y=y===void 0?!1:y;m=m===void 0?!1:m;var T=[],Q=_.iw(_.vk("SMART_DOWNLOADS",void 0,"Smart downloads")),g=_.iw(VUl(c,M,R.length));M=c=void 0;y?c={statementBannerRenderer:NQk(m,P)}:E?R.length>0?M=Jq3(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.v("kevlar_manual_downloads_above"),Q,g):N?M={alertBannerViewModel:{heading:{content:Y.localizedOptInBannerTitleText===
void 0?"":Y.localizedOptInBannerTitleText},body:{content:Y.localizedPromptMessage===void 0?"":Y.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.vk("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.vk("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:_.o56}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:z&&(M={backgroundPromoRenderer:{bodyText:_.iw(_.vk("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"}}}):
z&&(M={alertBannerViewModel:{heading:{content:Y.localizedOptInBannerTitleText===void 0?"":Y.localizedOptInBannerTitleText},body:{content:Y.localizedOptInMessage===void 0?"":Y.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.vk("TURN_ON",void 0,"Turn on"),accessibilityText:_.vk("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});Y=_.iw(_.vk("YOUR_DOWNLOADS",void 0,"Your downloads"));P=void 0;A.length>0?(P=void 0,_.v("kevlar_display_downloads_numbers")&&(P=_.iw(_.gH("VIDEO_COUNT",A.length))),P=Jq3(A,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,Y,P)):E||R.length||
y||(P={backgroundPromoRenderer:{bodyText:_.iw(_.vk("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?T.push({richSectionRenderer:{content:c}}):M&&!_.v("kevlar_manual_downloads_above")&&T.push({richSectionRenderer:{content:M,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
P&&T.push({richSectionRenderer:{content:P,loggingDirectives:{clientVeSpec:{uiType:51721}}}});M&&_.v("kevlar_manual_downloads_above")&&T.push({richSectionRenderer:{content:M,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(A.length>0||E&&R.length>0&&!y)&&T.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iw(_.vk("DOWNLOADS_AVAILABILITY",void 0,"Downloads remain available as long as your device has an active internet connection for 30 days. This process happens automatically and does not re-download the video."))}},
loggingDirectives:{clientVeSpec:{uiType:133683}}}}}});return{contents:T}};
_.TQk=function(R){return m0k(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.QOJ=function(R){return m0k(R,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
m0k=function(R,A){var Y=[];R=Jq3(R,A,!0);Y.push({richSectionRenderer:{content:R}});return{contents:Y}};
Jq3=function(R,A,Y,P,E){Y=Y===void 0?!1:Y;var z="RESPONSIVE_SIZE_STANDARD";_.v("kevlar_modern_downloads_compact")?z="RESPONSIVE_SIZE_COMPACT":_.v("kevlar_modern_downloads_extra_compact")&&(z="RESPONSIVE_SIZE_EXTRA_COMPACT");R={isExpanded:Y,contents:mO(R),entitySelectorType:A,responsiveContainerConfiguration:{responsiveSize:z}};P&&(R.title=P);E&&(R.subtitle=E);Y||(_.v("kevlar_smart_downloads_show_more_button")?(R.showMoreButton={buttonRenderer:{accessibility:{label:_.vk("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.iw(_.vk("SHOW_MORE",void 0,"Show more"))}},R.showLessButton={buttonRenderer:{accessibility:{label:_.vk("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.iw(_.vk("SHOW_LESS",void 0,"Show less"))}}):(R.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.vk("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}}}},R.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.vk("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}}}},R.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.vk("VIEW_ALL",void 0,"View all"),accessibilityText:_.vk("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:_.PK("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:R}};
mO=function(R){var A=[];R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,DJ6(Y)){var P=A,E=P.push;var z=void 0;if(Y==null?0:(z=Y.videoEntity)==null?0:z.videoId){z=GX(_.Yp().getState(),Y.videoEntity.videoId);var c=_.Yp().getState();var M=_.yS(Y.videoEntity.videoId,"mainVideoEntity");c=!!_.Kx(c.entities)[M];c={videoId:Y.videoEntity.videoId,title:lw(Y.videoEntity.title),shortBylineText:lw(Y.channelEntity.title),thumbnail:Y.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:c&&_.v("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:YOJ(Y.videoEntity.videoId,z,Y.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.vk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};Y.videoEntity.lengthSeconds&&(c.thumbnailOverlays=usl(Y.videoEntity.lengthSeconds,z));c.isWatched=z>0;_.v("kevlar_modern_downloads_page")&&(c.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Y.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.vk("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},c.badges=void 0);Y=c}else Y={};E.call(P,{richItemRenderer:{content:{videoRenderer:Y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(rs6(Y)){P=A;E=P.push;var N=M=z=void 0,y=void 0,m=void 0,T=void 0,Q=void 0,g=void 0,r=void 0,I=void 0,b=void 0,p=void 0;c=Y.mainPlaylistEntity.playlistId;var h=Y==null?void 0:(p=Y.mainPlaylistEntity)==null?void 0:(b=p.thumbnailStyleData)==null?void 0:(I=b[0])==null?void 0:(r=I.value)==null?void 0:(g=r.collageThumbnail)==
null?void 0:g.coverThumbnail;if(c&&h){g=PoV(c);!_.v("enable_offline_playlist_page")&&(Y==null?0:(Q=Y.mainPlaylistEntity)==null?0:Q.videos)&&(Q=Y==null?void 0:(T=Y.mainPlaylistEntity)==null?void 0:(m=T.videos)==null?void 0:m[0],m=_.M6(Q).entityId,m=JSON.parse(m).videoId,m!==void 0&&(T=GX(_.Yp().getState(),m),g=_.zX(m,c,void 0,void 0,T)));m=[];if(Y==null?0:(y=Y.mainPlaylistEntity)==null?0:(N=y.videos)==null?0:N.length)m=[Xdq(),Object.assign({},(M=$a8(Y==null?void 0:Y.mainPlaylistEntity.videos.length))!=
null?M:{})];Y={playlistId:c,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:h}},navigationEndpoint:g,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:m,title:lw(Y.mainPlaylistEntity.title),shortBylineText:lw(Y==null?void 0:(z=Y.channelEntity)==null?void 0:z.title),badges:[{metadataBadgeRenderer:{label:_.vk("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.v("kevlar_modern_downloads_page")&&(Y.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:vQk,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:c,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.vk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},Y.badges=void 0)}else Y=void 0;E.call(P,{richItemRenderer:{content:{playlistRenderer:Y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return A};
VUl=function(R,A,Y){R=R?gQ6(R):"";A!==void 0&&isFinite(A)?A===0?A=_.vk("UPDATING",void 0,"Updating..."):(A=wdI(new Date(A),new Date),A=_.vk("UPDATED_TIME",{relative_time:A},"Updated "+A)):A="";var P="";R&&A&&(P=" \u2022 ");if(Y&&_.v("kevlar_display_downloads_numbers")){Y=_.gH("VIDEO_COUNT",Y);if(R||A)P=" \u2022 ";return Y+P+R+P+A}return R+P+A};
nQ6=function(R){return ysJ(R.entities).length};
_.H28=function(R,A){var Y=ZEI(R.responsiveSize),P;R=!((P=R.responsiveMap)==null||!P.some(function(E){return E.containerSize==="CONTAINER_SIZE_NARROW"&&E.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:A,sizing:Y,enableFullBleedForSingleCol:!1,isCompactList:Y==="COMPACT"&&R}};
rq3=function(R,A){return _.mc(R.entities,"votingEntity",A)};
Tt=function(R){if(R){var A;return((A=_.is().resolve(_.z3(_.dU)))==null?0:A())?R.darkTheme:R.lightTheme}};
D08=function(R,A){if(R.simpleText)return Object.assign({},R,{simpleText:wU(R.simpleText,A)});if(!R.runs)return R;for(var Y=Object.assign({},R,{runs:[]}),P=0,E=_.x(R.runs),z=E.next();!z.done;z=E.next())if(z=z.value,z.text)if(P+z.text.length<=A)Y.runs.push(z),P+=z.text.length;else return Y.runs.push(Object.assign({},z,{text:wU(z.text,A-P)})),Y;return R};
U03=function(R,A){return _.mc(R.entities,"chipBarStateEntity",A)};
$0S=function(R,A){return _.mc(R.entities,"chipEntity",A)};
Stk=function(R,A,Y,P){return function(){var E=X0u.has(R.displayType)&&R.selected,z=E&&R.deselectCommand?R.deselectCommand:R.tapCommand;!z||E&&P||_.Zc(z,{form:{element:A==null?void 0:A.value}});Y==null||Y()}};
I9q=function(R){switch(R){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"dividerViewModelBaseDividerFullBleed4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"dividerViewModelBaseDividerFullBleedThick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"dividerViewModelBaseDividerFullBleed8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"dividerViewModelBaseDividerFullBleed12px";default:return""}};
Kdq=function(R,A){return{triggeringElement:R,onDwellTriggeredFn:function(){var Y={triggeringElement:R,loadVideoPreviewEventData:A},P=document.querySelector(".video-preview");P&&P.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:Y}))},
onDwellEndFn:function(){var Y=document.querySelector(".video-preview");Y&&Y.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Wdk=function(R,A){var Y=_.is().resolve(_.z3(WW8)),P=function(){var E=A();return Y&&E?Kdq(R.value,E):null};
_.jq(function(){var E=P();Y&&E&&Promise.resolve().then(function(){Y.registerElement(E)});
_.bm(function(){Y&&E&&Promise.resolve().then(function(){_.BT(Y,E)})})},"csPUge")};
b2k=function(R){var A=R.dataset.resizeObserverId;if(A)return A;A=""+jOk++;return R.dataset.resizeObserverId=A};
f9k=function(R,A){var Y=b2k(R);Qh.has(Y)||Qh.set(Y,new Set);Qh.get(Y).add(A);vL.has(Y)&&A(Object.assign({},{target:R},vL.get(Y)))};
p0S=function(R){R=_.x(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;var Y=b2k(A.target),P=Object.assign({},{target:A.target},vL.get(Y));if(P!=null&&P.contentRect?P.contentRect.width!==A.contentRect.width||P.contentRect.height!==A.contentRect.height:1)for(vL.set(Y,{borderBoxSize:A.borderBoxSize,contentBoxSize:A.contentBoxSize,contentRect:A.contentRect,devicePixelContentBoxSize:A.devicePixelContentBoxSize}),Y=_.x(Qh.get(Y)||[]),P=Y.next();!P.done;P=Y.next())P=P.value,P(A)}};
BQ6=function(){return n0?n0:n0=new Fd3(p0S)};
a98=function(R,A){var Y=b2k(R);Qh.has(Y)&&(Qh.get(Y).delete(A),Qh.get(Y).size===0&&(Qh.delete(Y),vL.delete(Y),n0.unobserve(R),delete R.dataset.resizeObserverId));Qh.size===0&&n0&&(n0.disconnect(),n0=void 0)};
hIJ=function(R,A){var Y=_.is().resolve(E_);return CQk.map(function(P){return Y.observe(R,A,P)})};
oQq=function(R){var A=_.is().resolve(E_);R.forEach(function(Y){A.unobserveByKey(Y)})};
_.Z26=function(R,A){var Y=Object.assign({},k4q,A);A=_.x(KxP());var P=A.next().value,E=A.next().value,z=function(c){var M=c.contentRect.height;if((c=c.contentRect.width)||M||Y.canHaveZeroSize)P.width()===c&&P.height()===M||E(P,{height:M,width:c})};
_.jO(function(){var c=R instanceof HTMLElement?R:R.value,M=G4l(z,Y.throttleMs),N=[];Y.useVisibilityObserver&&(N=hIJ(c,function(y,m){requestAnimationFrame(function(){m==="visible"?(f9k(c,M),BQ6().observe(c)):a98(c,M)})}));
N.length||(f9k(c,M),BQ6().observe(c));_.bm(function(){N.length&&(oQq(N),N.length=0);a98(c,M)})});
return P};
w0S=function(R,A,Y,P,E){R=A?R.switchOffCommand:R.switchOnCommand;if(P&&E)tUV(R,Y,E);else{var z,c;(z=_.k9({elementsCommand:R}))==null||(c=z.onclick)==null||c.call(z,Y)}};
tUV=function(R,A,Y){R=_.k9({elementsCommand:R,additionalCommandArgs:{commandController:{onSuccess:function(){Y(!1)},
onServerError:function(){Y(!1)}}}});
if(R==null?0:R.onclick)R.onclick(A),Y(!0)};
eIu=function(R){if(R)return _.n(R,uzJ)};
qtS=function(R,A){if(!((A==null?0:A.entitySelectorType)&&(A==null?0:A.entityKey)))return{};switch(A.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return R=_.hM(R,A.entityKey),R=R==null?void 0:R.value,A=!1,R==="CAPTIONS_UNAVAILABLE"&&(A=!0,R=""),Object.assign({},!!R&&{selectionText:{content:R}},!!R&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:A});case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":return _.v("web_shorts_audio_track_picker")?
(R=_.hM(R,A.entityKey),R=R==null?void 0:R.value,A=!1,R==="ALTERNATE_AUDIO_TRACK_UNAVAILABLE"&&(A=!0,R=""),Object.assign({},!A&&!!R&&{selectionText:{content:R}},!A&&!!R&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}},{isDisabled:A})):{};default:return{}}};
Yfk=function(R,A,Y){if(A)return[LdJ];switch(R){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[HL];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return Y?[HL]:[d0S,HL];case "TRANSFER_STATE_PAUSED_BY_USER":return[Ral,HL];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[AxP,HL];default:return[LdJ]}};
PAk=function(R,A,Y,P){return Yfk(R,A,P).map(function(E){var z=E.text,c=E.iconType,M=E.videoAction;E=E.playlistAction;z=z?{content:z}:void 0;c=c&&{sources:[{clientResource:{imageName:c}}]};var N=(0,_.BO.unsafeClone)(Y);if(N){var y=_.n(N,_.TI),m=_.n(N,_.QJ);y&&M?y.action=M:m&&E&&(m.action=E)}return{title:z,leadingImage:c,rendererContext:N&&{commandContext:{onTap:{innertubeCommand:N}}}}})};
EVS=function(R){R=_.jd(R.rendererContext);var A;return(A=_.n(R,_.QJ))==null?void 0:A.playlistId};
zak=function(R){var A;return(A=R.listItems)==null?void 0:A.some(function(Y){var P;return _.bc((P=_.n(Y,_.Dk))==null?void 0:P.rendererContext)})};
xxk=function(R){var A;return(A=R.listItems)==null?void 0:A.some(function(Y){var P,E,z=(E=(P=_.n(Y,izl))==null?void 0:P.defaultListItem)!=null?E:Y;Y=_.n(z,_.Dk);return!!_.n(Y==null?void 0:Y.leadingAccessory,lCP)})};
Mrb=function(R){var A=R.element;var Y=R.veType;var P=R.storedVisualElement===void 0?null:R.storedVisualElement;var E=R.elementIndex===void 0?0:R.elementIndex;R=R.clientYouTubeData;var z=_.F9();z!==cxk&&(Ozk.clear(),cxk=z);if(A.visualElement&&Ozk.has(A.visualElement))return null;if(P&&Ozk.has(P))return A.visualElement=P,null;Y=_.Hc(_.rU(),{veType:Y,elementIndex:E,clientYouTubeData:R});if(!Y)return null;A.visualElement=Y;Ozk.add(Y);return Y};
_.rc=function(R,A,Y,P){Y=Y===void 0?null:Y;P=P===void 0?z9V:P;var E=E===void 0?null:E;b4(function(){if(A){Y instanceof Function&&(Y=Y());var z=Mrb({element:A,veType:R,storedVisualElement:Y,clientYouTubeData:void 0});z&&(xku(A,E),P(z))}})};
D5=function(R,A){if(R){switch(A){case 0:R=R.primaryTitleColor;break;case 1:R=R.secondaryTitleColor;break;case 2:R=R.surgeColor;break;case 3:R=R.section2Color;break;case 4:R=R.section3Color;break;default:return}if(R)return _.G9(R)}};
Ur=function(R,A){if(R){switch(A){case 0:R=R.primaryTitleColor;break;case 1:R=R.secondaryTitleColor;break;case 2:R=R.surgeColor;break;case 3:R=R.section2Color;break;case 4:R=R.section3Color;break;default:return}if(R)return _.G9(R)}};
sV3=function(R){return R?_.Zs(R):""};
NhI=function(R){return(R==null?void 0:R.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
Vrl=function(R,A){return _.mc(R.entities,"videoOverviewAsyncDataEntity",A)};
JxS=function(R,A){var Y;return"linear-gradient(to bottom, "+((Y=A==null?void 0:A.map(function(P){var E=R?P.darkThemeColor:P.lightThemeColor;return E?_.Zs(E)+" "+((P==null?void 0:P.startLocation)||0)*100+"%":"transparent"}))==null?void 0:Y.join(", "))+")"};
yxV=function(R,A,Y,P,E){if(!((P==null?0:P.height)&&(P==null?0:P.width)))return{size:0};var z=P.width;P=P.height;if(E)return A==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||A==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&z>P?{size:312/PaJ}:A==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(Y!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||R!==1&&R!==2||A!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&A!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&A!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(A==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||A==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||P===z)switch(R){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(A==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||P>z)switch(R){case 1:case 3:return{size:240*Yzb};default:return{size:360*Yzb}}switch(R){case 1:case 2:return{size:1/PaJ*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.mxk=function(R){if(!("matchMedia"in window))return _.tv(Error("Qh")),function(){return!1};
var A=window.matchMedia(R);R=_.x(_.yy(A.matches,void 0,"jLJc8e"));var Y=R.next().value,P=R.next().value,E=function(z){P(z.matches)};
A.addEventListener?(A.addEventListener("change",E),_.bm(function(){A.removeEventListener("change",E)})):A.addListener&&(A.addListener(E),_.bm(function(){A.removeListener(E)}));
return Y};
Thk=function(R){return R==="IMAGE_BANNER_STYLE_INSET"||R==="IMAGE_BANNER_STYLE_UNKNOWN"};
QVV=function(){if(!("matchMedia"in window))return _.tv(Error("Qh")),function(){return 0};
var R=bI(function(){return window.matchMedia("(max-width: 527.9px)")}),A=bI(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),Y=bI(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),P=bI(function(){return window.matchMedia("(min-width: 1024px)")}),E=_.x(_.yy(R.matches,void 0,"og9kEc")),z=E.next().value,c=E.next().value;
E=_.x(_.yy(A.matches,void 0,"ybDWCb"));var M=E.next().value,N=E.next().value;E=_.x(_.yy(Y.matches,void 0,"o0Gfh"));var y=E.next().value,m=E.next().value;E=_.x(_.yy(P.matches,void 0,"yqUUgd"));var T=E.next().value,Q=E.next().value,g=bI(function(){return function(p){c(p.matches)}}),r=bI(function(){return function(p){N(p.matches)}}),I=bI(function(){return function(p){m(p.matches)}}),b=bI(function(){return function(p){Q(p.matches)}});
_.jO(function(){R.addEventListener?(R.addEventListener("change",g),A.addEventListener("change",r),Y.addEventListener("change",I),P.addEventListener("change",b)):R.addListener&&(R.addListener(g),A.addListener(r),Y.addListener(I),P.addListener(b));_.bm(function(){R.removeEventListener?(R.removeEventListener("change",g),A.removeEventListener("change",r),Y.removeEventListener("change",I),P.removeEventListener("change",b)):R.removeListener&&(R.removeListener(g),A.removeListener(r),Y.removeListener(I),
P.removeListener(b))})});
return function(){return z()?1:M()?2:y()?3:T()?4:0}};
vVq=function(R){var A=0;R=_.x([R.title,R.metadata,R.actions,R.description,R.attribution]);for(var Y=R.next();!Y.done;Y=R.next())Y.value&&A++;return A};
gVV=function(R){return R===1||R===2?1:0};
Hzk=function(R){R=(new nV8).parse(R);return(new mr).render(R).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(A){var Y=A.split(":").map(Number),P=0,E=0;if(Y.length===3)Y=_.x(Y),P=Y.next().value,E=Y.next().value,Y=Y.next().value;else if(Y.length===2)Y=_.x(Y),E=Y.next().value,Y=Y.next().value;else if(Y.length===1)Y=_.x(Y).next().value;else throw Error("Rh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(P*3600+E*60+Y)+'" role="button">'+A+"</span>"})};
rxq=function(R){R=_.x(R.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var A=R.next(),Y={};!A.done;Y={clickHandler$jscomp$5:void 0},A=R.next()){A=A.value;Y.clickHandler$jscomp$5=function(E){E=Number(E.target.getAttribute("data-time"));if(isNaN(E))throw Error("Sh");var z;(z=_.J4())==null||z.seekTo(E,!0)};
var P=function(E){return function(z){z.key!=="Enter"&&z.key!=="Space"||(0,E.clickHandler$jscomp$5)(z)}}(Y);
A.setAttribute("tabindex","0");A.removeEventListener("click",Y.clickHandler$jscomp$5);A.removeEventListener("keydown",P);A.addEventListener("click",Y.clickHandler$jscomp$5);A.addEventListener("keydown",P)}};
Dxl=function(){return _.V("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.V($s,{percentWidth:100}),_.V($s,{animationDelay:200}),_.V($s,{animationDelay:400}),_.V($s,{animationDelay:600}),_.V($s,{animationDelay:800,percentWidth:60}),_.V("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.V($s,{percentWidth:100}),_.V($s,{animationDelay:200}),_.V($s,{animationDelay:400}),_.V($s,{animationDelay:600,percentWidth:50}))};
$s=function(R){return _.V("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(R.percentWidth===void 0?100:R.percentWidth)+"%"},_.V("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(R.animationDelay===void 0?0:R.animationDelay)+"ms"}))};
Uxk=function(){var R=_.x(_.yy(function(){return""},void 0,"dXJHWc")),A=R.next().value;
return[function(){return A()()},
R.next().value]};
$xV=function(R,A){R=R?gQ6(R):"";A!==void 0&&isFinite(A)?A===0?A=_.vk("UPDATING",void 0,"Updating..."):(A=wdI(new Date(A),new Date),A=_.vk("UPDATED_TIME",{relative_time:A},"Updated "+A)):A="";var Y="";R&&A&&(Y=" \u2022 ");return _.iw(R+Y+A)};
ICV=function(R,A,Y,P,E,z){A=A===void 0?0:A;var c=XH6[A],M=c.title,N=c.iconType,y=c.topButtonRenderer,m=c.sectionClientVE;c=c.videoClientVE;var T;if(A!==1||R.length){Y=[];R=_.x(R);for(P=R.next();!P.done;P=R.next()){var Q=P.value;if(DJ6(Q))Y.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Q.videoEntity.videoId,title:lw(Q.videoEntity.title),shortBylineText:lw(Q.channelEntity.title),thumbnail:Q.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Q.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.vk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}}}});else if(rs6(Q)){P=Y;var g=P.push;var r=void 0,I=void 0,b=void 0,p=void 0,h=void 0,L=void 0,Z=void 0,w=void 0,t=Q.mainPlaylistEntity.playlistId,d=Q==null?void 0:(w=Q.mainPlaylistEntity)==null?void 0:(Z=w.thumbnailStyleData)==null?void 0:(L=Z[0])==null?void 0:(h=L.value)==null?void 0:(p=h.collageThumbnail)==null?void 0:p.coverThumbnail;p=PoV(t);if(!_.v("enable_offline_playlist_page")&&
(Q==null?0:(b=Q.mainPlaylistEntity)==null?0:b.videos)){b:{b=Q==null?void 0:(I=Q.mainPlaylistEntity)==null?void 0:I.videos;I=_.Yp().getState().entities;if(b!=null&&b.length&&I)for(b=_.x(b),h=b.next();!h.done;h=b.next())if(h=_.M6(h.value).entityId,(h=JSON.parse(h).videoId)&&Vmu(I,h)==="TRANSFER_STATE_COMPLETE"){I=h;break b}I=""}I!==void 0&&(p=GX(_.Yp().getState(),I),p=_.zX(I,t,void 0,void 0,p))}I=zl8(_.vk("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),PoV(t));Q=t&&d&&I?{playlistId:t,navigationEndpoint:p,
viewPlaylistText:I,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:d}},title:lw(Q.mainPlaylistEntity.title),shortBylineText:lw(Q==null?void 0:(r=Q.channelEntity)==null?void 0:r.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:Sfk,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:t,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.vk("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}:
void 0;g.call(P,{gridPlaylistRenderer:Q})}}c={gridRenderer:{items:Y}};A===1&&(T=$xV(E,z))}else if(P){var Jk=_.iw((g=Y==null?void 0:Y.localizedPromptMessage)!=null?g:"");c={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iw(_.vk("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.o56}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.iw(_.vk("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};T=$xV(E,z)}else Jk=_.iw(_.vk("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
c={};return{contents:[{shelfRenderer:{title:M,titleAnnotation:T,icon:{iconType:N},subtitle:Jk,content:c,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:y}]}}}}],loggingDirectives:{clientVeSpec:{uiType:m}}}};
Kq8=function(R,A,Y,P,E,z,c,M,N,y,m){Y=Y===void 0?{}:Y;P=P===void 0?{}:P;E=E===void 0?!1:E;z=z===void 0?!1:z;c=c===void 0?!1:c;M=M===void 0?!1:M;N=N===void 0?!1:N;y=y===void 0?0:y;m=m===void 0?-Infinity:m;if(!(A.length||R.length||E||M))return z?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:x0k(Y)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.iw(_.vk("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 T=[];R.length&&T.push(ICV(R,0));M?T.push({contents:[{statementBannerRenderer:NQk(N,P)}]}):E?T.push(ICV(A,1,Y,c,y,m)):z&&T.push({contents:[{statementBannerRenderer:O2u(Y)}]});(E&&A.length||R.length)&&T.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.iw(_.vk("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 T.map(function(Q){return{itemSectionRenderer:Q}})};
Xn=function(R,A){if(typeof R!=="object")return null;R=_.x(Object.entries(R));for(var Y=R.next();!Y.done;Y=R.next()){var P=_.x(Y.value);Y=P.next().value;P=P.next().value;if(Y===A)return Y;if(P=Xn(P,A))return Y+"."+P}return null};
Sb=function(R){var A=R.content;return(R=R.styleRuns)&&A?{runs:R.map(function(Y){var P={text:A.slice(Y.startIndex,Y.startIndex+Y.length)};Y.fontColor&&(P.textColor=Y.fontColor);return P})}:{simpleText:A}};
bzu=function(R,A,Y,P){var E=WqJ;P&&(R.quantity=P);if(!R.quantity||!R.maxQuantity)return{};P=R.minusButton;var z=R.plusButton,c,M,N,y;return{value:R.quantity,maxValue:R.maxQuantity,onChangeCallback:function(m){E(R,m)},
minusLabel:(c=_.n(P,jVI))==null?void 0:c.label,minimumReachedLabel:(M=_.n(P,jVI))==null?void 0:M.limitReachedLabel,plusLabel:(N=_.n(z,jVI))==null?void 0:N.label,maximumReachedLabel:(y=_.n(z,jVI))==null?void 0:y.limitReachedLabel,disabled:A,onRemoveCommand:Y}};
WqJ=function(R,A){var Y=R.quantityIncrementerEntityKey;if(Y){var P={};P.quantity=A;_.A7(_.I9("quantityIncrementerEntity",Y,P));R.onChangeCommand&&_.Zc(R.onChangeCommand)}};
Fqk=function(R,A){(R=fC6(R))&&((_.v("enable_mini_app_command_handler_mweb_fix")?0:A)?pH8.push({command:R,sourceData:{},commandContext:void 0}):_.is().resolve(_.ls).resolveCommand(R))};
fC6=function(R){return _.n(R,_.CC)};
BhV=function(){var R=window.performance.timeOrigin+window.performance.now(),A=(new _.K0).setSeconds(R/1E9);return _.Lf(A,2,_.PF(R%1E9),0)};
CAS=function(R,A){var Y;R=(Y=_.n(_.n(R,_.CC),aCk))==null?void 0:Y.methodName;var P,E;(Y=window.youtubewebview||((P=window.webkit)==null?void 0:(E=P.messageHandlers)==null?void 0:E.youtubewebview))&&R&&(P=new WL,R=_.IS(P,1,R),R=_.WF(R.JSC$12379_serializeBinary()),A=_.WF(A),Y.postMessage(R+","+A))};
jb=function(R,A){var Y=_.n(_.n(R,_.CC),aCk);Y&&(A&&(Y.serializedAdditionalMetadata=_.WF(A)),Fqk(R,!0))};
ha6=function(R){switch(R){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"}};
oVq=function(){return!!_.a1("ID_TOKEN")};
Zzb=function(R){return R instanceof Error&&R.cause instanceof k66&&R.cause.rpcErrorCode!==void 0?!G6q.includes(R.cause.rpcErrorCode):!0};
wHk=function(){return _.du(trk,{authuser:""+(_.a1("SESSION_INDEX")||0)})};
bx=function(R,A,Y,P){Y=Y===void 0?"MINI_APP_SDK_API_UNSPECIFIED":Y;P=P===void 0?"":P;var E=new _.XN;Y={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:P,sdkApi:Y};R instanceof Error&&(E.message=R.message,E.name=R.name,R.cause instanceof k66&&R.cause.rpcErrorCode!==void 0&&(Y.rpcErrorCode=R.cause.rpcErrorCode));var z;(z=A.onError)==null||z.call(A,{loggingError:E,metadata:Y})};
eaP=function(R,A,Y,P){switch(R){case "MINI_APP_SOURCE_GAMESNACKS":return new f0(A,Y,P);default:return new ud3(A,Y,P)}};
qfl=function(R){switch(R){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"}};
Lqk=function(R){switch(R){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"}};
dxb=function(R){switch(R){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"}};
RjP=function(){return Math.floor(Math.random()*4)+1};
AWV=function(R,A,Y,P){R=_.x(Object.entries(R));for(var E=R.next(),z={};!E.done;z={message$jscomp$994:void 0},E=R.next()){var c=_.x(E.value);E=c.next().value;c=c.next().value;z.message$jscomp$994=c;A.push(setTimeout(function(M){return function(){P(!1);Y(M.message$jscomp$994.text)}}(z),z.message$jscomp$994.delayMs));
Number(E)>0&&A.push(setTimeout(function(){P(!0)},z.message$jscomp$994.delayMs-400))}};
Ynk=function(R,A){var Y=Y===void 0?z9V:Y;_.v("mweb_fix_monitor_visibility_after_render")?R&&b4(function(){xku(R,A,Y)}):b4(function(){xku(R,A,Y)})};
iNJ=function(R){PL8||(PL8=Edk(new _.t0(1,void 0,void 0,zjI),0));var A=PL8.format(Math.floor(R));A=_.Zn==="be"||_.Zn==="bg"||_.Zn==="es"||_.Zn==="et"||_.Zn==="hu"||_.Zn==="ka"||_.Zn==="lv"||_.Zn==="pl"||_.Zn==="pt-PT"||_.Zn==="sq"?A.replace(new RegExp("^(\\d)"+zjI.GROUP_SEP.replace(".","\\.")+"(\\d+("+zjI.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):A;return R>=1E3&&R<=9999&&A[1]==="."&&(_.Zn==="sl"||_.Zn==="it")?A.replace(".",""):A};
lQV=function(R,A){DwP("ytd-button-renderer",{data:R,className:A?A.className:"",overrides:A==null?void 0:A.buttonOverrides},INl)};
ONP=function(R,A,Y,P){if(R)return P=P||R.likeStatus,A?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="LIKE",isDisabled:!R.likesAllowed,defaultIcon:{iconType:Y},defaultText:P==="LIKE"?R.likeCountWithUnlikeText:R.likeCountText,toggledText:P==="LIKE"?R.likeCountText:R.likeCountWithLikeText,defaultNavigationEndpoint:xsV(R,"LIKE"),defaultServiceEndpoint:cWk(R,"LIKE"),toggledServiceEndpoint:cWk(R,"INDIFFERENT"),defaultTooltip:_.R4(R.likeCountTooltipText),toggledTooltip:_.R4(R.likeCountTooltipText),
targetId:R.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:P==="DISLIKE",isDisabled:!R.likesAllowed,defaultIcon:{iconType:Y},defaultText:P==="DISLIKE"?R.dislikeCountWithUndislikeText:R.dislikeCountText,toggledText:P==="DISLIKE"?R.dislikeCountText:R.dislikeCountWithDislikeText,defaultNavigationEndpoint:xsV(R,"DISLIKE"),defaultServiceEndpoint:cWk(R,"DISLIKE"),toggledServiceEndpoint:cWk(R,"INDIFFERENT"),defaultTooltip:_.R4(R.dislikeCountTooltipText),
toggledTooltip:_.R4(R.dislikeCountTooltipText)}};
xsV=function(R,A){if(A==="LIKE")return R.likeCommand;if(A==="DISLIKE")return R.dislikeNavigationEndpoint};
cWk=function(R,A){var Y;return(Y=R.serviceEndpoints)==null?void 0:Y.find(function(P){var E;return((E=_.n(P,_.p0))==null?void 0:E.status)===A})};
_.N1S=function(R,A,Y){return window.spf&&!_.v("web_disable_spfjs_client")?MAk(R,A,Y):s3u(R,A)};
MAk=function(R,A,Y){var P=null,E=(new _.yR(function(z,c){var M={};if(A){M.method=A.method;var N=A.postParams||{};qC8(R,A)&&(N[_.a1("XSRF_FIELD_NAME")]=_.a1("XSRF_TOKEN"));M.postData=_.vU(N);A.type&&(M.type=A.type);N=A.headers}M.headers=Gik(R,N);_.v("debug_forward_web_query_parameters")&&(R=_.uhV(R,window.location.search));M.experimental_headers=M.headers;M.onError=function(y){y.err&&y.xhr&&(y.err.params={url:y.xhr.responseURL,response:y.xhr.responseText.substr(0,64)});c(y.err)};
M.onPartDone=function(y){Y&&Y.call(null,y.part)};
M.onDone=function(y){var m=VAl(y.response,"xsrf_token");YS(window.location.href,R)&&m&&_.BD("XSRF_TOKEN",m);if(m=VAl(y.response,"service_worker_killswitch"))_.BD("SERVICE_WORKER_KILLSWITCH",m),CMJ();z(y.response)};
P=spf.request(R,M)})).then(JWb);
E.thenCatch(function(z){var c=z instanceof _.Fn,M=z&&z.hasOwnProperty("params")&&z.params.response?z.params.response:"";z instanceof Error&&(M?c?biP(z):M===')]}\'\n{"reload":"now"}'?biP(z):(yWk(z,R,M),ms3(z,M)?_.pK(z):_.bj(z)):biP(z));P&&P.abort()});
return E};
JWb=function(R){if(R.type==="multipart"){var A=R.timing;R=R.parts.reduce(function(Y,P){Object.assign(Y,P);return Y},{});
R.timing=R.timing||{};Object.assign(R.timing,A);R.type="reduced"}return R};
s3u=function(R,A){A=A===void 0?{}:A;var Y=null,P=new _.yR(function(E,z){A.onFinish=function(c){if(c.readyState===XMLHttpRequest.DONE)if(c.status===200){if(c.responseType!=="json"){var M=c.response;M.substring(0,5)===")]}'\n"&&(M=M.substring(5));try{var N=JSON.parse(M)}catch(y){N=y}}else N=c.response;N instanceof Error?z(N):(M=VAl(N,"xsrf_token"),YS(window.location.href,R)&&M&&_.BD("XSRF_TOKEN",M),c=c.responseURL,window.performance&&window.performance.getEntriesByName?(M=window.performance.getEntriesByName(c).pop())?
c={responseStart:(0,_.iB)()-(M.responseEnd-M.responseStart)}:(Math.random()<.01&&(M=Error("di"),M.params=c,_.pK(M)),c={responseStart:-1}):c={responseStart:0},N.timing=N.timing||{},Object.assign(N.timing,c),E(N))}else z(Error("ci`"+c.status))};
(Y=_.QQ(R,A))||z(Error("ci`"+Y.status))});
P.thenCatch(function(E){E instanceof Error&&(yWk(E,R),ms3(E)&&(E.level="WARNING"))});
_.v("cancel_pending_navs")&&P.thenCatch(function(){Y.abort()});
return P};
VAl=function(R,A){var Y=R[A],P=R.parts;R.type==="multipart"&&P&&(Y=(R=P.find(function(E){return A in E}))&&R[A]);
return Y};
yWk=function(R,A,Y){var P=R.message||"";A={original:P,url:A};if(Y)if(P=P.match(/position:?\s*(\d+)/)){P=P&&Number(P[1])?Number(P[1]):0;var E=Math.max(P-25,0);A.position=P;A.response=Y.substring(E,P+25)}else A.response=Y.substring(0,50);_.F8(R,A);try{R.message="JSON parse error"}catch(z){}};
ms3=function(R,A){R=R.message||"";R=!!(R.indexOf("<")>=0||R.indexOf("end of ")>=0||R.indexOf("Unterminated string")>=0||R.indexOf("Unexpected EOF"));if(!R&&A)for(var Y=A.length,P=!1,E=0;E<Y;E++)if(P&&A[E]==="\\")E++;else if(A[E]==='"')P=!P;else if(A[E]==="<"&&!P){R=!0;break}return R};
T13=function(){return document.documentElement.hasAttribute("dark")};
_.Q3I=function(R,A){if(R!=="GFEEDBACK"&&R!=="GUIDED_HELP")_.hv(Error("ei`"+R));else{var Y=_.is().resolve(_.z3(_.YH));if(Y&&(Y=Y.getCurrentPage())&&Y.getServiceTrackingParams&&(Y=Y.getServiceTrackingParams()))for(var P=0,E;E=Y[P++];)if(E.service===R){if(R=E.params)for(Y=0;P=R[Y++];)A[P.key]=P.value;break}}};
_.vdS=function(R){var A=_.EJ();A&&(A=A.getPlayer())&&(A.pauseVideo(),R.playback_id=A.getVideoData().cpn,R.eid=A.getVideoData().eventId,Object.assign(R,A.getFeedbackProductData()))};
gdu=function(){var R={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.a1("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(R.enableAnonymousFeedback=!0);_.a1("SESSION_INDEX")&&(R.authuser=String(_.a1("SESSION_INDEX")));_.v("enable_pageid_for_feedback")&&_.a1("DELEGATED_SESSION_ID")&&(R.pageId=String(_.a1("DELEGATED_SESSION_ID")));return R};
_.BL=function(R){_.v("enable_ypc_spinners")&&_.OC(R,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},R])};
_.a9=function(R){_.v("enable_ypc_spinners")&&_.OC(R,"yt-close-popup-action",["yt-loading-renderer"])};
ndk=function(R){return new Promise(function(A,Y){_.oZ({verifyCommand:{recaptchaToken:R.recaptchaResponse}},{commandController:{onSuccess:function(P,E){E||Y("ChallengeService did not return a response.");var z;A({challengeCompleted:(z=E.verified)!=null?z:!1})},
onServerError:function(P,E){Y(E)}}})})};
HN3=function(R,A,Y,P){A({recaptchaResponse:P}).then(function(E){E.challengeCompleted?_.DO()?(Y(3),_.is().resolve(_.ls).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:R}})):Y(2):Y(4)},function(){Y(4)})};
Dsk=function(R,A,Y){_.Gr(_.Jr(rWl,_.a1("HL")),function(){var P;(P=window.grecaptcha)==null||P.ready(function(){var E=window.grecaptcha;E?(Y(E.render(R,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:HN3.bind(null,R,ndk,A)})),A(1)):A(4)})})};
Usl=function(R,A){return function(){switch(A()){case 0:return R().captchaLoadingMessage;case 1:return R().challengeReason;case 3:return R().captchaSuccessfulMessage;case 2:return R().captchaCookieSetFailureMessage;case 4:return R().captchaFailedMessage;default:return R().challengeReason}}()};
_.C0=function(){if(!$sk){var R=document.querySelector("#player.skeleton");R&&(_.UU(R),$sk=!0)}};
_.Snk=function(){return X43=COk()};
WQI=function(){return _.O(function(R){return IQI!==void 0?R.return():R.yield(KQq(),0)})};
KQq=function(){return _.O(function(R){if(R.nextAddress==1)return R.yield(oMV(),2);X43=R.yieldResult;IQI=_.fn.addLowPriorityJob(KQq,5E3);_.XH(R)})};
B1q=function(R){var A=A===void 0?j38:A;var Y,P,E=(Y=R.responseContext)==null?void 0:(P=Y.mainAppWebResponseContext)==null?void 0:P.trackingParam;if(!E){A.increment("MISSING");var z,c,M,N,y,m;_.pK(new _.XN("282054944_a",{gcU:!!((z=R.responseContext)==null?0:(c=z.mainAppWebResponseContext)==null?0:c.loggedOut),gYq:((M=R.responseContext)==null?void 0:M.mainAppWebResponseContext)===void 0,dgH:R.responseContext===void 0,cp:(N=R.playabilityStatus)==null?void 0:N.contextParams,yvH:(((y=R.streamingData)==
null?void 0:y.formats)||[]).length>0,lt5:(((m=R.streamingData)==null?void 0:m.adaptiveFormats)||[]).length>0,os:!!R.offlineState,cotn:R.cotn}));return 2}Y="";try{Y=bNP(E)}catch(g){return A.increment("C_ERROR"),_.bj(g),2}try{var T=_.fQV(Y);var Q=p4k(T)}catch(g){return A.increment("P_ERROR"),_.bj(g),2}Q=_.OU(Q,FQS,1,_.M_());E=[];Q=_.x(Q);for(T=Q.next();!T.done;T=Q.next())P=T.value,T=P.getPath(),Y=(0,_.BO.getValueByKeys)(R,T.split(".")),Y=String(Y===void 0||Y===null?"":Y),P=P.getValue()||"",z=/[+\-\/_]/g,
Y.replace(z,"")!==P.replace(z,"")&&(A.increment("MISMATCH"),_.v("ab_mis_log_err")&&(Y=new _.XN("282054944_p",{eWH:T,g:String(Y),e:String(P)}),_.bj(Y)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(T)||(T.match(/enforcementMessageViewModel/i)?E.push(3):E.push(2)));if(E.length>0)return Math.max.apply(Math,_.py(E));A.increment("SUCCESS");return 1};
hju=function(R){var A=new hm;if(R.interpreterJavascript){var Y=_.$ou(R.interpreterJavascript);Y=xRl(Y).toString();var P=new aQl;_.IS(P,6,Y);_.DE(A,1,P,SH)}else R.interpreterUrl&&(Y=_.pn(R.interpreterUrl),Y=_.Kq(Y).toString(),P=new _.CLb,_.IS(P,4,Y),_.DE(A,2,P,SH));R.interpreterHash&&_.o9(A,3,R.interpreterHash,SH);R.program&&_.o9(A,4,R.program,SH);R.globalName&&_.o9(A,5,R.globalName,SH);R.clientExperimentsStateBlob&&_.o9(A,7,R.clientExperimentsStateBlob,SH);return A};
ks=function(R){var A={};R=_.x(R.split("&"));for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value.split("="),Y.length===2&&(A[Y[0]]=Y[1]);return A};
od3=function(R){return Number(R.t)||7200};
KJJ=function(){if(_.v("bg_st_hr"))return"havuokmhhs-0";var R,A=((R=performance)==null?void 0:R.timeOrigin)||0;return"havuokmhhs-"+Math.floor(A)};
kqk=function(){return new Promise(function(R){var A=window;A.ntpevasrs!==void 0?R(new Gt(A.ntpevasrs)):(A.ntpqfbel===void 0&&(A.ntpqfbel=[]),A.ntpqfbel.push(function(Y){R(new Gt(Y))}))})};
Gqk=function(R){var A=R.e8n.bind(R);_.PG("yt.aba.att",A);R=R.rpD.bind(R);_.PG("yt.aba.att2",R)};
tAk=function(R){switch(_.T3(R.input)){case _.Pr(ZNP):var A={};return A.encryptedVideoId=R.innerTubeRequest.externalVideoId,A}return{}};
ej6=function(R){switch(_.T3(R.input)){case _.Pr(ZNP):if(_.v("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.Pr(w48):if(_.v("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.Pr(Z5):if(_.v("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&R.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.Pr(ulk):var A,Y;if(_.v("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((Y=_.n((A=R.config)==null?void 0:A.command,wEk))==null?0:Y.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.LQq=function(R){var A;if(R.playlistVideoRenderer&&((A=R.playlistVideoRenderer)==null?0:A.engagementBar))return qnk(R.playlistVideoRenderer.engagementBar);if(_.n(R,tm)){var Y;if(R=(Y=_.n(R,tm))==null?void 0:Y.engagementBar)return qnk(R)}return""};
qnk=function(R){if(!R)return"";R=_.n(R,_.dsk);if(R==null||!R.actions)return"";R=_.x(R.actions);for(R=R.next();!R.done;R=R.next()){R=_.n(R.value,_.RLu);var A=void 0;if((A=R)==null||!A.itemId)break;return R.itemId}return""};
_.AGV=function(R){var A;if(R.playlistVideoRenderer&&((A=R.playlistVideoRenderer)==null?0:A.videoId))return R.playlistVideoRenderer.videoId;if(_.n(R,tm)){var Y,P;if(R=(Y=_.n(R,tm))==null?void 0:(P=Y.playlistItemData)==null?void 0:P.videoId)return R}return""};
_.YLk=function(R){var A;if(R.playlistVideoRenderer&&((A=R.playlistVideoRenderer)==null?0:A.voteCount))return R.playlistVideoRenderer.voteCount;if(_.n(R,tm)){var Y,P;if(R=(Y=_.n(R,tm))==null?void 0:(P=Y.playlistItemData)==null?void 0:P.voteCount)return R}return 0};
_.wc=function(R,A){return _.mc(R.entities,"flowStateEntity",A)};
EAk=function(R,A,Y,P){var E=void 0;R=_.x(R[A.iconName]||[]);for(var z=R.next();!z.done;z=R.next()){z=z.value;var c=A.iconSize;var M=A.iconStyle;c=!c||c===z[2];var N=PpI[z[0]];P&&P!==z[1]||!c||M&&M!==N?M=!1:E?(M=PpI[z[0]],M=!!A.iconStyle||M==="youtube_outline",c=E.version<=z[1],M=(!!A.iconSize||z[2]===24)&&M&&c):M=!0;M&&(E={name:A.iconName,style:PpI[z[0]],size:z[2],version:z[1],allowMirroring:!!z[3],url:Y(A.iconName,z)})}return E};
zL3=function(R,A,Y,P){return R+(""+PpI[Y[0]]+((P===void 0?0:P)?"_experimental":"")+"/"+A+"/v"+Y[1]+"/")+(Y[2]+"px.svg")};
ik3=function(R){return _.a1("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"||_.a1("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":R};
l3q=function(R,A){return zL3("https://fonts.gstatic.com/s/i/",R,A)};
xSP=function(R,A){return zL3("https://fonts.gstatic.com/s/i/",R,A,!0)};
cGk=function(R,A){return zL3("https://www.gstatic.com/youtube/img/icons/web/",R,A)};
Mj3=function(R){var A=R.enabled;var Y=R.itemPlaybackModel;var P=R.thumbnailElRef;var E=R.containerElRef;var z=R.options;var c;_.jq(function(){var M=E==null?void 0:E.value;var N,y=(N=P())==null?void 0:N.value;N=Y();var m=z();if(A&&N&&M&&y&&(m==null?0:m.thumbnail)){var T={data:N,hostElement:M},Q,g,r=_.v("web_explore_hub_on_hover")||_.v("web_client_explore_hub_on_hover")?[].concat(_.py((Q=m.thumbnailOverlays)!=null?Q:[]),_.py((g=N.overlays)!=null?g:[])):m.thumbnailOverlays||[],I,b;M={mediaRenderer:T,
lockupElement:M,thumbnailElement:y,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.h7((I=N.inlinePlayerData)==null?void 0:I.onVisible),navigationEndpoint:_.h7((b=N.inlinePlayerData)==null?void 0:b.onSelect),thumbnail:m.thumbnail,thumbnailOverlays:r,accessibilityText:m.accessibilityText||""},thumbnailSize:m.thumbnailSize,enableRounding:m.enableRounding}}}else M=void 0;if(I=M){var p;(p=c)==null||ux(p);c=Fk(I);var h,L;((h=Y())==null?0:(L=h.inlinePlayerData)==null?0:L.forceImpAutoplay)&&
OkP(c)}},"B33dEc");
_.bm(function(){var M;(M=c)==null||ux(M)})};
s08=function(R){R=atob(R);for(var A=[],Y=0;Y<R.length;Y++)A.push(R.charCodeAt(Y));return new Blob([new Uint8Array(A)],{type:"image/png"})};
Vju=function(R,A,Y,P){P=P===void 0?"INSERTION_POSITION_UNSPECIFIED":P;return R({targetId:A},function(E){var z,c=(z=E.contents)!=null?z:[];z=Y!=null?Y:[];var M=NVI(c);switch(P){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},E,{contents:[].concat(_.py(c.slice(0,M)),_.py(z),_.py(c.slice(M+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},E,{contents:[].concat(_.py(z),_.py(c))});case "INSERTION_POSITION_LAST":return Object.assign({},E,{contents:[].concat(_.py(c),_.py(z))});
default:return E}})};
yGk=function(R,A,Y,P,E){E=E===void 0?"RELATIVE_INSERTION_POSITION_AFTER":E;return R({targetId:A},function(z){var c,M=(c=z.contents)!=null?c:[];c=JGJ(M,Y);if(c<0)return z;c=E==="RELATIVE_INSERTION_POSITION_BEFORE"?c:c+1;return Object.assign({},z,{contents:[].concat(_.py(M.slice(0,c)),_.py(P),_.py(M.slice(c)))})})};
NVI=function(R){var A=R.findIndex(function(Y){return _.n(Y,_.eb)});
return A>=0?A:R.length};
JGJ=function(R,A){return R.findIndex(function(Y){a:{Y=_.x(Object.values(Y));for(var P=Y.next();!P.done;P=Y.next())if((P=P.value)&&P.targetId){Y=P.targetId;break a}Y=""}return Y===A})};
TVV=function(R,A,Y){return R({targetId:A},function(P){var E,z=(E=P.contents)!=null?E:[];return Object.assign({},P,{contents:mSb(z,Y)})})};
mSb=function(R,A){return R.filter(function(Y){var P=A.includes;a:{Y=_.x(Object.values(Y));for(var E=Y.next();!E.done;E=Y.next())if((E=E.value)&&E.targetId){Y=E.targetId;break a}Y=""}return!P.call(A,Y||"")})};
_.Q0l=function(R,A){return{engagementPanelSectionListRenderer:{panelIdentifier:R,identifier:A,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
vAk=function(R,A){R=R.getAvailableAudioTracks();if(R.length)return R==null?void 0:R.find(function(Y){var P;return(Y==null?void 0:(P=Y.getLanguageInfo())==null?void 0:P.getId())===A})};
_.nAJ=function(R){var A,Y=(A=R.getOption("captions","tracklist",{includeAsr:!0}))!=null?A:[];return Y=gAb(Y,R)};
Hkk=function(R){return R.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
gAb=function(R,A){A=Hkk(A);if(A==null||!A.length)return R;var Y=A.filter(function(c){return c});
A=R.filter(function(c){return c.languageCode.startsWith("en")});
Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,A.length){var E=A[0],z=Object.assign({},E);E.languageCode!==P.languageCode&&(z.displayName=E.languageName+" >> "+P.languageName,z.translationLanguage=P,R.push(z))}return R};
rGq=function(R,A,Y){R=_.nAJ(R);if(R.length)return Y?R.find(function(P){if(typeof(P==null?void 0:P.translationLanguage)==="object"){var E;return((E=P.translationLanguage)==null?void 0:E.languageCode)===A}return!1}):R==null?void 0:R.find(function(P){return P.languageCode===A})};
DSb=function(R){return R.getOption("captions","tracklist",{includeAsr:!0})};
USV=function(R){var A=R.getAvailableAudioTracks();if(A!=null&&A.length){var Y=R.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.py(A.map(function(P){return{listItemViewModel:{title:{content:P.getLanguageInfo().getName()},isSelected:P.getLanguageInfo().getId()===(Y==null?void 0:Y.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:P.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
$Sk=function(R){return R.getOption("captions","tracklist",{includeAsr:!0})};
Xqq=function(R){var A=$Sk(R);if(A==null?0:A.length)return A;R.loadModule("captions");return $Sk(R)};
SLk=function(R){var A=R.getOption("captions","track");if(A)return A;R.loadModule("captions");return R.getOption("captions","track")};
K98=function(R){var A=Xqq(R);if(A!=null&&A.length){var Y=SLk(R),P;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.vk("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(Y==null?0:Y.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.py(A.map(function(E){return{listItemViewModel:{title:{content:E.displayName},
isSelected:E.displayName===(Y==null?void 0:Y.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:E.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.vk("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!Y.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!Y.translationLanguage&&{selectionText:{content:(Y==null?void 0:(P=Y.translationLanguage)==null?void 0:P.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[I38(R)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
I38=function(R){var A=Hkk(R);if(A==null||!A.length)throw Error("Di");var Y=SLk(R);R=A.filter(function(P){return!P.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.py(R.map(function(P){var E;return{listItemViewModel:{title:{content:P.languageName},isSelected:P.languageName===(Y==null?void 0:(E=Y.translationLanguage)==null?void 0:E.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:P.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
f36=function(R){return new Promise(function(A,Y){if(R===void 0)_.bj(Error("Hi"),"ERROR"),Y(Error("Hi"));else{Y=new _.W93;var P=_.j0J();Y=Y.init();var E=_.bkk(_.a1("YPC_MB_URL"),!0);Promise.all([Y,E]).then(function(){var z=payments.business.integration.ClientTokenFactory.createClientToken(R,P);A(z)})}})};
BVP=function(R,A,Y,P,E,z,c){var M=_.ei();Y=Y.replace(/-/g,"+").replace(/_/g,"/");var N=_.Hk().get("hl"),y=_.qh(_.R6),m=A==null?void 0:A.element;m&&_.BL(m);pqu(A,!0);_.F9P(y,Y,M.resolve,function(){m&&_.a9(m)},function(T){m&&_.a9(m);
M.reject(T)},N,P?function(T){P&&_.uh(R,P,{backend_analytics:T})}:void 0,M.resolve,E,z,c);
return M.promise};
pqu=function(R,A){!(R=R==null?void 0:R.element)||R.tagName!=="YT-BUTTON-RENDERER"&&R.tagName!=="YTD-BUTTON-RENDERER"||(R.disabled=A)};
a36=function(){var R=_.vk("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.iw(R),actionButton:{buttonRenderer:zIb()}}},popupType:"TOAST"}};
Cpk=function(){var R=_.vk("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.iw(R),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
hL3=function(R){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:R}]}}};
L0=function(R,A,Y,P){var E;return _.O(function(z){if(z.nextAddress==1)return _.g2(z,2),z.yield(R,4);if(z.nextAddress!=2)return(E=_.XE(A.getState().entities).length>0)?z.return({title:_.iw(_.vk("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.iw(_.vk("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:EQk()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
z.return(i2V(Y,P));_.UT(z);return z.return(i2V(Y,P))})};
oAu=function(R,A){return A?A==="PPSV"||mJS(R,A):!1};
kMk=function(R){R.responseContext||(R.responseContext={});R.responseContext.maxAgeSeconds=0;return R};
RL=function(R){var A;return _.O(function(Y){return Y.nextAddress==1?Y.yield(GMu(R,"service:topbar:fallback"),2):(A=Y.yieldResult)&&_.dc(A)?Y.return(kMk(_.dc(A))):Y.return()})};
ZkS=function(R){var A;return _.O(function(Y){return Y.nextAddress==1?Y.yield(GMu(R,"service:downloads_settings:fallback"),2):(A=Y.yieldResult)&&_.dc(A)?Y.return(A):Y.return()})};
GMu=function(R,A){var Y;return _.O(function(P){if(P.nextAddress==1)return R?P.yield(R.get(A),2):P.return();Y=P.yieldResult;return!Y||!_.dc(Y)||!isNaN(Number(Y.data.expireTimestampMs))&&Y.isExpired()?P.return():P.return(Y)})};
tjP=function(R){var A=_.is().resolve(AV).getState().entities;return R.playlistId?oAu(A,R.playlistId):!1};
wqJ=function(R,A){var Y;if(A==null?0:(Y=A.requestTemplate)==null?0:Y.panelId)R.panelId=A.requestTemplate.panelId;var P;if(A==null?0:(P=A.requestTemplate)==null?0:P.params)R.params=A.requestTemplate.params};
eLV=function(){if(uCl)return uCl();var R=!_.v("idb_response_store_auth_killswitch"),A={};uCl=z5("yt-it-response-store",{objectStores:(A.ResponseStore={addedAtVersion:1},A),shared:!R,upgrade:function(Y,P){P(1)&&(Y=oB(Y,"ResponseStore",{keyPath:["key","clientName"]}),k_(Y,"byExpiration","expireTimestampMs"),k_(Y,"byInterface","clientName"))},
version:1});return uCl()};
qL6=function(R){return _.q1(eLV(),R)};
dSu=function(R,A){var Y;return _.O(function(P){return P.nextAddress==1?P.yield(_.EF(),2):(Y=P.yieldResult)?P.return(new L9J(R,A,Y)):P.return()})};
Rrk=function(R){var A=Object.keys(R)[0];if(A)return R.screenExit&&(A=A+";"+R.screenExit.screen),A};
AIk=function(R){var A=new Map;R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,Y!=null&&(A.has(Y.taskType)||A.set(Y.taskType,[]),A.get(Y.taskType).push(Y));return A};
Yx8=function(R){return!isNaN(R)&&R>0};
PnI=function(R){R=[].concat(_.py(R)).sort(function(Y,P){return Y-P});
var A=Math.floor(R.length/2);return R.length%2?R[A]:(R[A-1]+R[A])/2};
ic8=function(R,A){R=R===void 0?QPl:R;A=A===void 0?{}:A;_.PG("yt.logging.errors.log",_.bj);mVl();Exk(r4q(),A);window.onerror=R;zrV=T0P;window.addEventListener("unhandledrejection",function(Y){if(Y.reason instanceof Error){var P=Y.reason;_.F8(P,{source:"unhandledrejection"});P.name==="AbortError"&&(P.level="WARNING")}T0P(Y.reason);Y.preventDefault()})};
_.lHV=function(R){var A,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t,d,Jk,Nb,Qk,H3,nu,hk,FV,i8,fD,NG,d8,mS,V7,KD,UW,eH,zS;return _.O(function(RA){if(RA.nextAddress==1)return RA.yield(_.HK(R,{mode:"readonly",enableRetries:!0},function(vS){return rF(vS,"playbackData").then(function(Mg){var gf=Mg.map(function(OA){return OA.transfer}).filter(function(OA){return!!OA}),A9=Mg.map(function(OA){return OA.offlineVideoPolicy}).filter(function(OA){return!!OA}),le=Mg.filter(function(OA){return!!OA.key}).map(function(OA){return _.yS(_.M6(OA.key).entityId,
"downloadStatusEntity")});
gf=rF(vS,"transfer",gf);A9=rF(vS,"offlineVideoPolicy",A9);le=rF(vS,"downloadStatusEntity",le);var RH=gf.then(function(OA){OA=OA.reduce(function(wf,mm){(mm==null?0:mm.offlineVideoStreams)&&wf.push.apply(wf,_.py(mm.offlineVideoStreams));return wf},[]).filter(function(wf){return!!wf});
return rF(vS,"offlineVideoStreams",OA)});
return kS.all([gf,A9,RH,le]).then(function(OA){var wf=_.x(OA);OA=wf.next().value;var mm=wf.next().value;var $Z=wf.next().value;wf=wf.next().value;return[Mg,OA,mm,$Z,wf]})})}),2);
if(RA.nextAddress!=3)return A=RA.yieldResult,RA.yield(_.HK(R,{mode:"readonly",enableRetries:!0},function(vS){return rF(vS,"mainDownloadsListEntity").then(function(Mg){var gf,A9;return(A9=(gf=Mg[0])==null?void 0:gf.downloads)!=null?A9:[]})}),3);
Y=RA.yieldResult;P=_.x(A);E=P.next().value;z=P.next().value;c=P.next().value;M=P.next().value;N=P.next().value;y=E;m=z;T=c;Q=M;g=N;r={};I={};b={};p={};h={};L=[];Z=_.x(m);for(w=Z.next();!w.done;w=Z.next())(t=w.value)&&(r[t.key]=t);d=_.x(T);for(Jk=d.next();!Jk.done;Jk=d.next())(Nb=Jk.value)&&(I[Nb.key]=Nb);Qk=_.x(g);for(H3=Qk.next();!H3.done;H3=Qk.next())(nu=H3.value)&&(b[nu.key]=nu);hk=_.x(Q);for(FV=hk.next();!FV.done;FV=hk.next())(i8=FV.value)&&(p[i8.key]=i8);fD=_.x(Y);for(NG=fD.next();!NG.done;NG=
fD.next())d8=NG.value,mS=void 0,h[(mS=d8.videoItem)!=null?mS:""]=!0,d8.videoItem&&(KD=V7=void 0,UW=(KD=(V7=_.M6(d8.videoItem))==null?void 0:V7.entityId)!=null?KD:"",L.push({externalVideoId:UW}));eH=y.filter(function(vS){if(!vS||!vS.key||!vS.offlineVideoPolicy)return!1;vS=_.M6(vS.key).entityId;vS=_.yS(vS,"downloadStatusEntity");var Mg;return!(vS&&((Mg=b[vS])==null?void 0:Mg.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
zS=eH.map(function(vS){var Mg=r[vS.transfer],gf=[];if(Mg==null?0:Mg.offlineVideoStreams)for(var A9=_.x(Mg.offlineVideoStreams),le=A9.next();!le.done;le=A9.next())(le=p[le.value])&&gf.push(le);A9=I[vS.offlineVideoPolicy];le=h;var RH=vS==null?void 0:vS.playerResponseTimestamp,OA=_.M6(A9.key).entityId;vS=_.yS(OA,"mainVideoEntity");if(A9.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var wf="OFFLINE_VIDEO_STATE_DISABLED";A9.expirationTimestamp&&Number(A9.expirationTimestamp)<Date.now()/1E3&&(wf="OFFLINE_VIDEO_STATE_EXPIRED")}else if(A9.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")wf="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Mg==null?void 0:Mg.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":wf="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":wf="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":wf="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":wf="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":wf="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":wf="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:wf="OFFLINE_VIDEO_STATE_UNKNOWN"}if(wf==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Mg==null?void 0:Mg.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":wf="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":wf="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":wf=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}OA={id:OA,videoState:wf};if(Mg==null?0:Mg.cotn)OA.cotn=Mg.cotn;if(Mg==null?0:Mg.maximumDownloadQuality)OA.selectedVideoQuality=Mg==null?void 0:Mg.maximumDownloadQuality;if(Mg==null?0:Mg.lastProgressTimeMs)OA.lastProgressTimeMs=Mg.lastProgressTimeMs;RH&&(OA.playerResponseSavedTimeMs=String(Number(RH)*1E3));Mg=String;RH=0;gf=_.x(gf);for(wf=gf.next();!wf.done;wf=gf.next())if(wf=wf.value,wf.streamsProgress){wf=_.x(wf.streamsProgress);for(var mm=wf.next();!mm.done;mm=
wf.next()){var $Z=void 0;RH+=Number(($Z=mm.value.numBytesDownloaded)!=null?$Z:0)}}OA.downloadedBytes=Mg(RH);OA.selectedOfflineMode=le[vS]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";A9.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(OA.offlinePlaybackDisabledReason=A9.offlinePlaybackDisabledReason);return OA});
return RA.return({offlineVideos:zS,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:L}}})})};
xXk=function(){var R;return _.O(function(A){return A.nextAddress==1?A.yield(_.vK(),2):(R=A.yieldResult)?A.return(_.lHV(R)):A.return({state:"PES Unavailable"})})};
Mok=function(){var R,A,Y,P;return _.O(function(E){if(E.nextAddress==1)return E.yield(_.vK(),2);if(E.nextAddress!=3)return(R=E.yieldResult)?E.yield(cIk(R),3):E.return({state:"PES Unavailable"});A=E.yieldResult;Y={};P=A.reduce(function(z,c){z[c.key]=c;return z},Y);
return E.return(OcS(P))})};
OcS=function(R){for(var A={},Y=[],P=_.x(Object.keys(R)),E=P.next();!E.done;E=P.next()){var z=E.value;E=R[z];var c=void 0;if(((c=E)==null?void 0:c.entityType)==="mainVideoEntity"){delete R[z];var M=E.data;E={};if(M){var N=void 0;c=(N=M.videoId)!=null?N:"vid-"+z;z=R;E.video=M;delete E.video.formattedDescription;delete E.video.thumbnail;M.owner&&(N=z[M.owner],N==null?0:N.data)&&(delete z[N.key],E.video.owner=N.data,delete E.video.owner.avatar);if(M=M.downloadState)if(N=z[M],N==null?0:N.data)if(delete z[M],
M=N.data.playbackData)if(N=z[M],N!=null&&N.data){delete z[M];M=N.data;delete M.playerResponseJson;E.playbackData=M;if(M.transfer&&(N=z[M.transfer],N==null?0:N.data)){delete z[N.key];var y=N.data;E.transfer=y;N=[];y=_.x(y.offlineVideoStreams||[]);for(var m=y.next();!m.done;m=y.next())if(m=z[m.value])delete z[m.key],N.push(m.data);N&&(E.streams=N)}(M=M.offlineVideoPolicy)&&(M=z[M])&&M.data&&(delete z[M.key],E.offlineVideoPolicy=M.data)}A[c]=E}}else E&&E.entityType==="offlineOrchestrationActionWrapperEntity"&&
E.data&&(delete R[E.key],c=E.data,z=void 0,Y.push({id:c.rootActionId,type:((z=c.actionProto)==null?void 0:z.actionType)||"",entity:E}))}A.wrapperEntities=Y;Object.keys(R).length>0&&(A.unknownKeys=R);return A};
sMq=function(){var R,A,Y,P,E,z,c,M,N;return _.O(function(y){if(y.nextAddress==1)return R=!!(new _.Cn("")).expiringStorage_,P=!!((A=_.P3.crypto)==null?0:(Y=A.subtle)==null?0:Y.importKey),E=!!_.P3.BroadcastChannel,z=!!_.P3.navigator.locks,y.yield(qQk(),2);c=y.yieldResult;M=R&&P&&E&&z&&c;N={isSupported:M};if(M)return y.return(N);N.missingBrowserFeatures=[];c||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");R||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
P||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");E||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");z||N.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return y.return(N)})};
N66=function(){var R;return!((R=Yj?Yj:null)==null||!R.window)};
_.JIS=function(R){if(_.$q()&&_.VPP("Chromium")>=120){var A=_.Vol().mediaSession;try{A.setActionHandler("enterpictureinpicture",function(){R()})}catch(Y){}}};
yI8=function(R){for(var A=[],Y=_.x(document.styleSheets),P=Y.next(),E={};!P.done;E={node$jscomp$728:void 0},P=Y.next())E.node$jscomp$728=P.value.ownerNode,E.node$jscomp$728&&(E.node$jscomp$728 instanceof HTMLStyleElement||E.node$jscomp$728 instanceof HTMLLinkElement)&&A.push(new Promise(function(z){return function(c){var M=z.node$jscomp$728.cloneNode(!0);M.onload=function(){c()};
M.onerror=function(){_.pK(Error("jj"));c()};
R.document.head.appendChild(M)}}(E)));
return Promise.all(A)};
UX3=function(R){var A=[_.Op(mXS),_.Op(T6I),_.Op(QMP)];vxJ(window.document.documentElement,R.document.documentElement,[_.Op(gxu),_.Op(nxb),_.Op(Hcu),_.Op(rII),_.Op(DXq)]);vxJ(window.document.body,R.document.body,A)};
vxJ=function(R,A,Y){R=_.x(R.attributes);for(var P=R.next();!P.done;P=R.next())if(P=P.value)try{_.ie(Y,A,P.name,P.value)}catch(E){}};
X6k=function(R,A){R=new _.PC(R.document.documentElement);R.start($XI,A);return R};
Sxb=function(R){var A=R.document.documentElement;A.addEventListener("click",function(Y){jdJ(A,Y)});
A.addEventListener("touchstart",function(Y){BDk(Y)});
A.addEventListener("mousedown",function(Y){BDk(Y)})};
K1P=function(R,A,Y,P){P=P===void 0?!1:P;A=new IHk(A||R,Y||R);return{x:R.x+((P===void 0?0:P)?A.lengthX*-1:A.lengthX)*.2,y:R.y+((P===void 0?0:P)?A.lengthY*-1:A.lengthY)*.2}};
W1k=function(R){if(!R)return!1;var A=R.status==="OK"||R.status==="LIVE_STREAM_OFFLINE",Y,P,E,z=(E=(Y=R.errorScreen)==null?void 0:Y.playerLegacyDesktopYpcTrailerRenderer)!=null?E:(P=R.errorScreen)==null?void 0:P.ypcTrailerRenderer;return!!A||!!z};
_.jMV=function(R,A){if(!R)return!1;var Y,P=(Y=R.errorScreen)==null?void 0:Y.playerLegacyDesktopYpcOfferRenderer,E;A=!!(A==null?0:(E=A.playerOverlayRenderer)==null?0:E.gatedActionsOverlayRenderer);return!!W1k(R)||!!P||!!A};
p6k=function(R){return bcl(R,0,"gclid",R.search(fHS))>=0||bcl(R,0,"gad_source",R.search(fHS))>=0};
F16=function(R){var A=[],Y=0;return{clear:function(){Y=A.length=0},
push:function(P){A[Y]=P;Y=(Y+1)%R},
iterate:function(){return function E(){var z,c,M,N;return _.ER(E,function(y){switch(y.nextAddress){case 1:_.r2(y,2),z=A.length,c=0;case 4:if(!(c<z)){y.jumpTo(2);break}M=Y+c;N=_.zG;return y.yield(A[M%z],7);case 7:N(y.yieldResult);c++;y.jumpTo(4);break;case 2:_.Ht(y),_.D4(y,0)}})}()}}};
B6V=function(R){R.eventsToIgnore||(R.eventsToIgnore=[]);var A=R.eventsToIgnore.map(CCk),Y=new Set(A),P=F16(R.bufferSize);return{flush:function(){var E=Array.from(P.iterate());P.clear();E=E.map(function(z){return{name:z.name,timestamp:z.startTime,attributes:z.attributes}});
return JSON.stringify(E)},
onSpanStart:function(E){E.name==="event"&&Y.has(E.attributes.type)||P.push(E)}}};
aHP=function(R){R=B6V(R);var A=R.flush;A0.processors.push({onSpanStart:R.onSpanStart});SJ3.subscribe("handleError",function(Y){try{Y.params.breadcrumbs=A()}catch(P){_.bj(P,"WARNING")}})};
Cnb=function(){fj("web_tracing_action");_.pj("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
hrq=function(R,A,Y){var P=R.endTime;if(P==null)throw Error("lj");var E=R.name,z={};P-=R.startTime;var c=R.startTime;z={webTracing:(z[E]=R.attributes,z)};Y=_.o1(MQ6)(E,P,c,z,Y,A);if(R.children)for(R=_.x(R.children),E=R.next();!E.done;E=R.next())hrq(E.value,A,Y)};
oxV=function(R){var A=q8k.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(Y){Y.data&&typeof Y.data==="object"&&(Y=Y.data,Y.from==="extension"&&Y.app==="yt.telemetry"&&(A("Received message from extension",Y),R.onMessage(Y)))});
return function(Y,P){Y={app:"yt.telemetry",from:"app",key:Y,payload:P};A("Sending message to extension",Y);window.postMessage(Y,"*")}};
k_k=function(){var R=R===void 0?3E3:R;var A=oxV({onMessage:function(){}}),Y=[];
return{onSpanEnd:function(P){P.parentId==null&&Y.push(P)===1&&setTimeout(function(){var E=[].concat(_.py(Y));Y.length=0;A("spansReported",{spans:E})},R)}}};
Zc8=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var R=window.performance.getEntriesByType("navigation");if(R.length>0){var A=R[0];egI("pageLoad",{navigationType:G_8(A.type),unloadEventStart:Math.round(A.unloadEventStart),unloadEventEnd:Math.round(A.unloadEventEnd),domInteractive:Math.round(A.domInteractive),domContentLoadedEventStart:Math.round(A.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(A.domContentLoadedEventEnd),
domComplete:Math.round(A.domComplete),loadEventStart:Math.round(A.loadEventStart),loadEventEnd:Math.round(A.loadEventEnd),redirectCount:A.redirectCount},function(){})}}catch(Y){}})};
G_8=function(R){switch(R){case "navigate":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_NAVIGATE";case "reload":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_RELOAD";case "back_forward":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_BACK_FORWARD";case "prerender":return"PERFORMANCE_NAVIGATION_TIMING_TYPE_PRERENDER";default:return"PERFORMANCE_NAVIGATION_TIMING_TYPE_UNKNOWN"}};
upq=function(){for(var R=Dtk.value,A={},Y=_.x(R.enabledSpansArray),P=Y.next();!P.done;P=Y.next())A[P.value]=!0;if(R.exportToCsi||R.exportBreadcrumbs)Y=Kw6(),A0.initialized=!0,A0.sessionId=Y||"",A0.enabledSpans=A,w9k("pageLoad")&&Zc8();R.exportBreadcrumbs&&aHP({eventsToIgnore:to3,bufferSize:R.bufferSize});R.exportToCsi&&A0.processors.push(w6u);R.exportToDevTools&&(R=k_k(),A0.processors.push(R))};
erI=function(R){return new Promise(function(A){window.setTimeout(A,R)})};
qxV=function(R){var A={bicf:function(z){R.yWK=z},
blc:function(){return R.getLatestChallengeResponse()},
bcr:function(z){R.cma.push(z)}},Y=window;
Y.ntpevasrs=A;if(Y.ntpqfbel!==void 0)for(var P=_.x(Y.ntpqfbel),E=P.next();!E.done;E=P.next())E=E.value,E(A);Y.ntpqfbel=void 0};
L1S=function(R){return _.O(function(A){if(A.nextAddress==1)return _.g2(A,2),A.yield(R.xEg(),4);if(A.nextAddress!=2)return _.us(A,0);_.UT(A);_.XH(A)})};
dXk=function(R){var A,Y;(A=R.ytcsi)==null||(Y=A.tick)==null||Y.call(A,"pot_ist")};
RiP=function(R){if(R instanceof Error){var A=_.Zr("yt.logging.errors.log");A&&A(R,"WARNING")}};
AT3=function(R){try{var A=JSON.parse(R);if(A.bgChallenge)return A}catch(Y){}};
P_k=function(){var R=window,A={networkStatusManagerPromise:_.is().resolve(new jok(_.wM)),initialChallengeSli:_.v("wpo_att_sli")?new _.q0S("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};R=R===void 0?window:R;var Y=R.ytAtR,P;A==null||(P=A.initialChallengeSli)==null||_.iD(P);if(Y){if(Y=AT3(Y)){var E;A==null||(E=A.initialChallengeSli)==null||_.lD(E,"SUCCESS");YEk(Y,A)}R.ytAtR=void 0}else R.ytAtRC=function(z){if(z=AT3(z)){var c;A==null||(c=A.initialChallengeSli)==null||
_.lD(c,"SUCCESS");YEk(z,A);R.ytAtRC=void 0}}};
iWl=function(){if(EFS)return EFS;try{var R=_.De("IFRAME");_.Lq(R,_.Jr(zik));R.sandbox.add("allow-same-origin");R.style.display="none";document.body.appendChild(R);return EFS=R}catch(A){R=new _.XN("Failed to create sandbox iframe"),_.bj(R)}};
ldS=function(R){var A,Y;return(Y=R==null?void 0:(A=R.contentWindow)==null?void 0:A.fetch)!=null?Y:window.fetch};
xPq=function(R){var A,Y;return(Y=R==null?void 0:(A=R.contentWindow)==null?void 0:A.Request)!=null?Y:window.Request};
cTq=function(R){var A,Y;return(Y=R==null?void 0:(A=R.contentWindow)==null?void 0:A.TextDecoder)!=null?Y:window.TextDecoder};
OWu=function(){return function(R,A){_.a1("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[R]=A}};
M3J=function(){return function(R,A){var Y={};Y[R]=A;R=_.o1(_.cXk)(Y);Object.keys(R).length>0&&_.bE(R)}};
V3k=function(){if(o9k()==="hidden")var R="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else o9k()==="visible"&&(R="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",srq=null);R&&Nil(R)};
Nil=function(R){if(R==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||R==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(JTJ===R)return;JTJ=R}var A=9E4+Math.random()*2E3;if(R!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.z$()>A)&&o9k()==="visible"){A=-1;srq&&(A=Math.round((0,_.iB)()-srq));var Y=String;var P=_.Zr("_fact",window);P=P==null||P==-1?-1:Math.max(Date.now()-P,0);_.Wj("foregroundHeartbeat",{firstActivityMs:Y(P),clientDocumentNonce:WwI,index:String(yTq),lastEventDeltaMs:String(A),trigger:R});
_.PG("_fact",-1,window);yTq++;srq=(0,_.iB)()}};
_.mPq=function(){try{return!!self.sessionStorage}catch(R){return!1}};
Tiq=function(){var R=navigator;return new Promise(function(A,Y){var P;(P=R.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?R.webkitTemporaryStorage.queryUsageAndQuota(function(E,z){A({usage:E,quota:z})},function(E){Y(E)}):Y(Error("uj"))})};
QrV=function(R,A){var Y={errorSeverity:A.errorSeverity.toString(),wizFeatureFlags:Object.entries(A.featureFlags).join("\n")};y4q(A,Y);A=A.errorSeverity;A===3?_.bj(R,"ERROR",void 0,void 0,void 0,Y):A===2&&_.bj(R,"WARNING",void 0,void 0,void 0,Y);_.v("cow_if_errors_in_popup")&&A===3&&R.message.indexOf("<If>")!==-1&&window.alert(R.message)};
vFk=function(R,A){var Y=Ra.get(R)||{layerNode:A};Y.layerNode=A;tQk(R,Y);R.getScreenLayer=function(){return xj(Y.layerNode)}};
gFI=function(R){var A;R=R.parentNode;for(var Y;R&&((A=Ra.get(R))==null||!A.isRenderer)&&!((Y=R.polymerController)!=null?Y:R).isRenderer_;)R=R.parentNode||R.host;if(A=R)return Ra.get(A)};
nFl=function(R){if(R){Ra.delete(R);var A=_.is().resolve(E_);LNk(R,A)}};
rTk=function(R,A,Y){if(Y===void 0?0:Y){if(Y=R.getAttribute("client-ve-type"),A.data&&!A.disableReactiveLogging||Y)_.FF(function(){HWu(R,_.pX(A.data))}),_.bm(function(){return void nFl(R)})}else typeof A.data!=="function"&&HWu(R,A.data)};
HWu=function(R,A){DPI++;UP3(R,A)&&_.fn.addJob(function(){_.cC(_.fn,function(){if(UP3(R,A)&&R.ownerDocument.documentElement===document.documentElement&&R){var Y;if(R.getAttribute("layer")){var P=Y=Number(R.getAttribute("layer")),E=Ra.get(R);E?E.layerNode.layer=P:vFk(R,new $P8(P));(P=gFI(R))&&(E=Ra.get(R))!=null&&(E.layerNode.parent=P.layerNode)}else if(Y=Ra.get(R))Y=xj(Y.layerNode);else{Y=xj;P=new $P8;if(E=gFI(R))P.parent=E.layerNode;vFk(R,P);Y=Y(P)}Y!=null||(Y=0);P=R.getAttribute("client-ve-type");
E=Number(P);var z=!1;P=!1;var c=Ra.get(R),M;if((M=c)&&!(M=c[XzV]!==A)&&(M=E)){var N;M=((N=Ra.get(R))==null?void 0:N.clientVeType)===void 0}M&&(c[XzV]=A,z=P=c.isRenderer=!0);Ra.has(R)&&(Ra.get(R).clientVeType=E);R.visualElement&&(P=!0);if(_.v("wiz_next_ld_fix_client_ve_spec")){var y;N=((y=_.n(A==null?void 0:A.rendererContext,_.Dc))==null?void 0:y.loggingDirectives)||(A==null?void 0:A.loggingDirectives)}else N=A==null?void 0:A.loggingDirectives;N&&N.clientVeSpec&&(y=SE6(_.nC(),R),y=_.Idq(_.rU(),N,y||
void 0,Y))&&(R.visualElement=y);!R.visualElement&&E&&z&&(R.veType=E,y=void 0,_.v("wiz_next_client_ve_parent_fix")&&(y=SE6(_.nC(),R)),y=_.Hc(_.rU(),R,y,Y),R.visualElement=y);P&&(y=_.is().resolve(E_),YSS(R,{data:A,observer:y,layer:Y,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
UP3=function(R,A){return(A==null?0:A.trackingParams)||(A==null?0:A.loggingDirectives)||_.n(A==null?void 0:A.rendererContext,_.Dc)||R.getAttribute("client-ve-type")?!0:!1};
K7b=function(R,A,Y){R.componentType!==_.XF&&Y instanceof HTMLElement&&A&&!_.v("cow_logging_in_component_wrapper")&&rTk(Y,A,!0)};
fdS=function(){if(!W7P){W7P=!0;var R=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.v("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:QrV,enableComponentStacksInErrorMessages:!1});Object.assign(x0,R);KrS=jrq;bW3();peP=veb;jKI=geV}};
bW3=function(){_.v("cow_logging_in_component_wrapper")?(IJP=function(R,A){A instanceof HTMLElement&&rTk(A,R,!0)},QKJ=function(){}):(IJP=function(){},QKJ=K7b)};
pzV=function(R,A,Y){A=A===void 0?{}:A;var P,E=(P=_.n(R.commandMetadata,_.Ti))==null?void 0:P.url;P=A.form||{};!Y||P.element||P.skipDefaultElement||(A.form=A.form||{},A.form.element=Y);if(E&&E!=="/service_ajax")return{type:0,command:R,form:A.form};if(_.v("kevlar_service_command_check")){if(_.wl(_.is().resolve(_.Co),R))return Object.assign({},{type:1,command:R},A)}else{var z;if((z=_.n(R.commandMetadata,_.Ti))==null?0:z.apiUrl)return Object.assign({},{type:1,command:R},A)}return{type:2,command:R,form:A.form}};
F7b=function(R){if(R.form){var A=R.form,Y=Object.assign({},A);A=A.element;Y=(delete Y.element,Y);if(A)return[_.sC(A,[R.command,Y,R.commandController])]}return[]};
Bi8=function(R){if(R.form){var A=R.form,Y=Object.assign({},A);A=A.element;Y=(delete Y.element,Y);A&&_.NT(A,[R.command],A,Y)}};
C_I=function(R,A,Y){var P=new adI(R,A),E=new OR(R,A,Y);R={"/youtubei/v1/browse":new Mm(R,A,Y),"/youtubei/v1/player":P,"/youtubei/v1/navigation/resolve_url":new sR,"/youtubei/v1/next":E,"/youtubei/v1/guide":new Nm(Y),"/youtubei/v1/search":new V5(R,A,Y),"/youtubei/v1/reel/reel_item_watch":new JV(R,A,Y),"/youtubei/v1/get_watch":new y5(P,E)};R["/youtubei/v1/account/account_menu"]=new m8;R["/youtubei/v1/notification/get_notification_menu"]=new TG;return R};
vC=function(){var R=_.is().resolve(Q5);return Promise.resolve(hi8(R,_.P3.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
oF3=function(R){return R&&(R=_.ge(_.I1k(R)))?(new URLSearchParams(R)).get("service"):null};
re=function(R,A){_.JM(_.n6(),function(){_.Fh("adl")});
_.is().resolve(kQ6)(A);R=R.root;R.loadData&&R.loadData(A);(A==null?0:A.response)?_.lD(RVl(),"SUCCESS"):_.pK(new _.XN("Lifecycle: No response in data",_.CQ("IS_SHELL_LOAD"),A?A.page:"NO_PAGE",A?A.endpoint:"NO_ENDPOINT"));R.polymerController.$["page-manager"].lazyPrepareCriticalPages((A==null?void 0:A.page)||"",A.endpoint);var Y,P;((P=_.n(A==null?void 0:(Y=A.endpoint)==null?void 0:Y.commandMetadata,_.Ti))==null?0:P.webPageType)&&_.Yp().dispatch(_.HC(_.n(A.endpoint.commandMetadata,_.Ti).webPageType))};
GQS=function(){var R,A;return _.O(function(Y){switch(Y.nextAddress){case 1:R=window;if(!R.getDataPromise){Y.jumpTo(2);break}_.g2(Y,3);return Y.yield(R.getDataPromise(),5);case 5:return Y.return(Y.yieldResult);case 3:return _.UT(Y),Y.yield(vC(),6);case 6:return Y.return(Y.yieldResult);case 2:if(R.getInitialData)return A=R.getInitialData(),R.getInitialData=void 0,Y.return(A);throw Error("wj`"+_.P3.location.href);}})};
t3k=function(){_.BD("CSI_SERVICE_NAME","youtube");_.bE({loadType:"cold"});_.v("kevlar_log_lcp")&&ZWl(function(R){_.Fh("lcp",R.value)})};
wz8=function(){var R=_.wz(document.location.href,"enable");R&&R.indexOf("scraper")>-1&&_.BD("ADD_SCRAPER_ATTRIBUTES",!0)};
dPJ=function(R){var A=R.root;R=[u6l,eiu,_.D7];_.v("web_feedback_endpoint_autolog_allowlist_killswitch")&&R.push(_.UR,qEJ);L7k(function(Y,P){return pzV(Y,P,A)},function(Y){if(!Y.command)return[];
var P;((P=Y.form)==null?0:P.element)?Y.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},Y.form,{endpoint:Y.command})})):A.handleNavigate(Y);return[]},R);
_.is().addProvider({provide:_.ls,useValue:_.Qp.instance})};
Aaq=function(){var R={},A={},Y;for(Y in RDk){var P=_.x(_.yy(RDk[Y],void 0,"IAtZ7"));R[Y]=P.next().value;A[Y]=P.next().value}return[R,function(E){for(var z in E){var c=void 0;(c=A[z])==null||c(E[z])}}]};
_.X2=function(R,A,Y){A=A===void 0?!1:A;var P=_.BO.getValueByKeys(R,"contents","twoColumnWatchNextResults","results","results","contents"),E=_.BO.getValueByKeys(R,"contents","twoColumnWatchNextResults","playlist","playlist")||null;A&&(E=null);var z=A=null;if(E)A=_.BO.getValueByKeys(E,"titleText"),z=_.BO.unsafeClone(_.BO.getValueByKeys(E,"longBylineText")),P="",z&&(P=_.R4(z)),z=_.dF(P);else if(P){P=_.x(P);for(var c=P.next();!c.done;c=P.next())c=c.value,c.videoPrimaryInfoRenderer&&(A=_.BO.getValueByKeys.apply(_.BO,
[c].concat(_.py(Ysk)))),c.videoSecondaryInfoRenderer&&(z=_.BO.getValueByKeys.apply(_.BO,[c].concat(_.py(P$k))))}else _.tv(Error("Bj"));var M;R.currentVideoEndpoint?M=R.currentVideoEndpoint:_.tv(Error("Cj"));var N;Y&&(N=_.BO.getValueByKeys(Y,"playabilityStatus","miniplayer","miniplayerRenderer"));R={miniplayerTitle:A,miniplayerSubtitle:z,watchEndpoint:M,playlistData:E};N&&(R.miniplayerRenderer=N);return R};
EKk=function(R){if(R)return _.FS(R)};
_.zD3=function(){return{isFullscreen:function(){throw Error("Dj");},
toggleFullscreen:function(){throw Error("Ej");},
exitFullscreen:function(){throw Error("Fj");},
isAutonavEnabled:function(){throw Error("Gj");},
setAutonavEnabled:function(){throw Error("Hj");},
isAutoplaySetExplicitly:function(){throw Error("Ij");}}};
i4P=function(R){return R.videoDuration?R.numTaps>1&&R.tapDirection!==0?_.Sv(R.draggedTime/R.videoDuration,0,1):_.Sv((R.playedTime||0)/R.videoDuration,0,1):0};
ltS=function(R){return R.videoDuration?R.isDragging||R.numTaps>1&&R.tapDirection!==0?_.Sv(R.draggedTime/R.videoDuration,0,1):_.Sv((R.playedTime||0)/R.videoDuration,0,1):0};
cau=function(R){var A,Y,P;return _.n(R==null?void 0:(A=R.markersMap)==null?void 0:(Y=A.find(function(E){return E.key==="HEATSEEKER"}))==null?void 0:(P=Y.value)==null?void 0:P.heatmap,xD3)};
O4k=function(R){var A,Y;return(Y=(A=cau(R))==null?void 0:A.heatMarkersDecorations)!=null?Y:[]};
MeP=function(R){if(_.v("mweb_supported_chapters_killswitch"))return!0;var A;return!!(R==null?0:(A=R.markersMap)==null?0:A.find(function(Y){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(Y.key)}))};
_.svq=function(R){var A=Object,Y=A.assign,P;R={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(P=R==null?void 0:R.getPlayerState())!=null?P:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return Y.call(A,{},{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},R,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
Ndl=function(R){return function(A){var Y=R(),P,E=(P=Y.playerApi)==null?void 0:P.getPlayerState();A&&A!==Y.playerState&&(A===1||A===2)&&Y.setState({playerState:E})}};
Jak=function(R){return function(A){var Y=R(),P=Y.playerApi;P&&(A==null?void 0:A.type)==="newdata"&&(Ve6&&(clearTimeout(Ve6),Ve6=void 0),_.v("web_shorts_use_progress_state_for_gapless")?(A=P==null?void 0:P.getProgressState(A==null?void 0:A.playertype),A=A.seekableEnd-A.seekableStart):A=P==null?void 0:P.getDuration(A==null?void 0:A.playertype),Y.setState({playedTime:0,videoDuration:A}))}};
yak=function(R){return function(A){var Y=R(),P=Y.playerApi;if(P){var E=P.getPresentingPlayerType();_.v("web_shorts_use_progress_state_for_gapless")?(P=P.getProgressState(E),P=P.seekableEnd-P.seekableStart):P=P.getDuration(E);Y.setState({playedTime:A,videoDuration:P})}}};
Tdk=function(R){_.rc(112394,R,function(){return mDV},function(A){mDV=A})};
gKu=function(R,A){if(!R)return[];var Y,P,E;R=((Y=R.markersMap)==null?void 0:(P=Y.find(function(z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(z.key)}))==null?void 0:(E=P.value)==null?void 0:E.chapters)||[];
!Qvk(R)||(A==null?0:A.ignoreStub)||(R=[vKS()].concat(_.py(R)));return R};
vKS=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
Qvk=function(R){if(R.length===0)return!1;var A;return((A=_.n(R[0],IL))==null?void 0:A.timeRangeStartMillis)!==0};
K6=function(R){return R?R.timeRangeStartMillis||0:0};
H4u=function(R,A){if(R.isDragging&&A)return R=nKb(R,A),R===-1?vKS():gKu(A)[R]};
nKb=function(R,A){return R.isDragging&&A?gKu(A,{ignoreStub:!0}).findIndex(function(Y,P,E){Y=raP(R);return DD3(Y,E,P).scrubberHovering}):-1};
raP=function(R){return Object.assign({},R,{videoDuration:R.videoDuration*1E3,playedTime:R.playedTime*1E3,draggedTime:R.draggedTime*1E3})};
DD3=function(R,A,Y){var P=K6(_.n(A[Y],IL));A=K6(_.n(A[Y+1],IL))||R.videoDuration;Y=R.isDragging;var E;if(E=R.isDragging)E=R.draggedTime,E=E!==null&&E>=P&&E<A;var z=R.playedTime;return z!==null&&z>=P&&z<A?{videoPosition:"active",isScrubbing:Y,scrubberHovering:E}:R.playedTime<P?{videoPosition:"pending",isScrubbing:Y,scrubberHovering:E}:{videoPosition:"seen",isScrubbing:Y,scrubberHovering:E}};
UDq=function(R,A){return R.videoPosition==="seen"||(A===void 0?0:A)>0};
$DI=function(R,A,Y){A=R/A.storyboardInterval;var P=gKu(Y);if(!P.length)return-A*72;Y=0;P=_.x(P);for(var E=P.next();!E.done;E=P.next())if(K6(_.n(E.value,IL))/1E3<R)Y++;else break;return-(A*72)-Y*56};
XgV=function(R){return R?R.width/R.columns:0};
Ss3=function(R){return R.isHovering?R.hoveredTime:R.draggedTime};
Itb=function(R,A){R=R.draggedTime*1E3;return R>=A.visibleTimeRangeStartMillis&&R<=A.visibleTimeRangeEndMillis};
_.K_q=function(R){if(R===void 0||Number.isNaN(R))return"--:--";var A=Math.abs(Math.floor(R)),Y=Math.floor(A/86400),P=Math.floor(A%86400/3600),E=Math.floor(A%3600/60);A=Math.floor(A%60);var z="";Y>0&&(z+=Y+":",P<10&&(z+="0"));if(Y>0||P>0)z+=P+":",E<10&&(z+="0");z+=E+":";A<10&&(z+="0");z+=A;return R>=0?z:"-"+z};
W_k=function(R,A){return function(){var Y=Ss3(R());var P=A();var E=R().playerApi;if(E&&E.getNumberOfStoryboardLevels()!==0){var z=E.getStoryboardFrameIndex(Y,1);z!==-1?P=E.getStoryboardFrame(z,1):(Y=E.getStoryboardFrameIndex(Y,0),E=E.getStoryboardFrame(Y,0),P&&E&&(E.height*=3,E.width*=3),P=E)}else P=null;if(!P)return null;A()&&(P.width=90*P.columns,P.height=160*P.rows);return P}};
_.WC=function(R){if(!R||R.getVideoData)return R};
jvk=function(){var R;return{playerApi:(R=_.J4())!=null?R:void 0}};
b4u=function(R){var A;_.O(function(Y){if(Y.nextAddress==1)return Y.yield(_.VJ(),2);if(A=Y.yieldResult)A.unMute(!0),A.setVolume(R,!0);_.XH(Y)})};
ft3=function(R,A){R&&(R.value=""+A,R.style.setProperty("--gradient-percent",A+"%"))};
pgk=function(R){var A;return(A=R==null?void 0:R.value)!=null?A:0};
F_P=function(){var R;_.O(function(A){if(A.nextAddress==1)return A.yield(_.VJ(),2);R=A.yieldResult;if(!R)return A.return();R.isMuted()?R.unMute(!0):R.mute(!0);_.XH(A)})};
Bdu=function(R){var A=_.is().resolve(_.jv).getPlayerElement();A&&R&&(R===1?A.pause():A.play())};
atu=function(R){_.MT(R,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
C$6=function(R){_.MT(R,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
oKb=function(R){return _.KQ(R.document.body,function(){return _.V(hDI,null)},"Af")};
kdP=function(){var R=window.performance.getEntriesByType("navigation");return R?R.map(function(A){return A.type}).includes("reload"):!1};
L_b=function(){bD(bD(bD(bD(bD(bD(bD(_.is().resolve(_.f6),_.Gd3),_.Z4J),_.te3),_.wgk),_.uuS),_.eDS),_.qsP)};
dDS=function(R,A){A=A===void 0?!1:A;var Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return A||!_.v("kevlar_shorts_seedless_retry_initial_load")||(Y=window,P=!(!Y.getDataPromise&&!Y.getInitialData),P)?c.yield(GQS(),2):(setTimeout(dDS.bind(window,R,!0),1E3),c.return());if(c.nextAddress!=3)return E=c.yieldResult,c.yield(RTV(E),3);z=c.yieldResult;re(R,z);_.XH(c)})};
RTV=function(R){var A;if((A=R.response)==null||!A.replacementEndpoint)return _.Vn(R);A=_.is().resolve(Q5);R=R.response;_.n(R.replacementEndpoint,_.SI)&&R.sequenceContinuation&&(_.n(R.replacementEndpoint,_.SI).sequenceParams=R.sequenceContinuation);return aL(A,R.replacementEndpoint,{},_.P3.location.href,"shorts",function(){},function(){return!1})};
YBb=function(R){var A=_.is().resolve(ALk);R.playerResponse&&A.handleResponse(R.playerResponse);R.response&&A.handleResponse(R.response)};
PHk=function(R){var A=_.Yp(),Y,P=_.n((Y=R.response)==null?void 0:Y.frameworkUpdates,LY),E;Y=_.n((E=R.playerResponse)==null?void 0:E.frameworkUpdates,LY);var z;R=_.n((z=R.reelWatchSequenceResponse)==null?void 0:z.frameworkUpdates,LY);P&&_.nx(P,A);Y&&_.nx(Y,A);R&&_.nx(R,A)};
E6k=function(R){var A;_.v("enable_redirect_linking_for_desktop_web_client")&&((A=window.location.hash)==null?0:A.includes("redirect_state"))&&R.url&&(R.url=R.url.toString()+window.location.hash)};
lfq=function(R){var A=_.is(),Y=A.resolve(Q5);A=A.resolve(_.zTk);R.endpoint&&(Y=itJ(Y,R.endpoint),Y.content&&R.response&&_.C6(A,R.response,Y.content),Y.player&&R.playerResponse&&_.C6(A,R.playerResponse,Y.player),Y.reelSequence&&R.reelWatchSequenceResponse&&_.C6(A,R.reelWatchSequenceResponse,Y.reelSequence))};
hV=function(R,A){_.v("web_service_params_response_processor")&&YBb(A);PHk(A);var Y;(A==null?0:A.url)&&((Y=window.location.hash)==null?0:Y.includes("redirect_state"))&&(E6k(A),(Y=oF3(A.url))&&_.OC(R.root,"yt-initialize-third-party",[Y,A]));lfq(A);Y=_.is();var P=Y.resolve(xyk);A.playerResponse&&Y.resolve(cLb).handleResponse(A.playerResponse);if(A.playerResponse){Y=void 0;if(_.v("ab_v_vid_sig")&&A.endpoint){var E,z=(E=_.n(A.endpoint,_.LO))!=null?E:_.n(A.endpoint,_.SI);z&&(Y=z.videoId)}Otb(P,A.playerResponse,
Y)}A.playerResponse&&JCV(A.playerResponse)&&_.v("web_enable_ab_rsp_cl")?WQI().then(function(){M6P(P,A.playerResponse);re(R,A)}):re(R,A)};
NKJ=function(R){if(R=R.root.data){var A=_.is().resolve(sTS);R.endpoint&&(R.response&&A.handleResponse(R.response,void 0,document.querySelector("ytd-app")),R.playerResponse&&A.handleResponse(R.playerResponse),R.reelWatchSequenceResponse&&A.handleResponse(R.reelWatchSequenceResponse))}};
V68=function(R){var A,Y,P,E,z,c;return _.O(function(M){switch(M.nextAddress){case 1:A=window;if(!A.getDataPromise){M.jumpTo(2);break}_.g2(M,3);return M.yield(A.getDataPromise(),5);case 5:Y=M.yieldResult;hV(R,Y);_.us(M,4);break;case 3:return _.UT(M),M.yield(vC(),6);case 6:P=M.yieldResult,re(R,P);case 4:return M.return();case 2:if(!_.v("sw_nav_preload_pbj")){M.jumpTo(7);break}A.fetchInitialData=function(){var N;return _.O(function(y){if(y.nextAddress==1)return y.yield(vC(),2);N=y.yieldResult;re(R,N);
_.XH(y)})};
if(A.getInitialData){A.loadInitialData=function(N){hV(R,N)};
E=A.getInitialData();A.getInitialData=void 0;hV(R,E);M.jumpTo(8);break}A.fetchInitialData=void 0;return M.yield(vC(),9);case 9:z=M.yieldResult,re(R,z);case 8:return M.return();case 7:A.getInitialData?(c=A.getInitialData(),A.getInitialData=void 0,hV(R,c)):A.loadInitialData=function(N){hV(R,N)},_.XH(M)}})};
JL6=function(R){var A=0;return function(){return A<R.length?{done:!1,value:R[A++]}:{done:!0}}};
yLI=typeof Object.defineProperties=="function"?Object.defineProperty:function(R,A,Y){if(R==Array.prototype||R==Object.prototype)return R;R[A]=Y.value;return R};
myk=function(R){R=["object"==typeof globalThis&&globalThis,R,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var A=0;A<R.length;++A){var Y=R[A];if(Y&&Y.Math==Math)return Y}throw Error("a");};
_.Yh=myk(this);oL=function(R,A){if(A)a:{var Y=_.Yh;R=R.split(".");for(var P=0;P<R.length-1;P++){var E=R[P];if(!(E in Y))break a;Y=Y[E]}R=R[R.length-1];P=Y[R];A=A(P);A!=P&&A!=null&&yLI(Y,R,{configurable:!0,writable:!0,value:A})}};
oL("Symbol",function(R){if(R)return R;var A=function(z,c){this.$jscomp$symbol$id_=z;yLI(this,"description",{configurable:!0,writable:!0,value:c})};
A.prototype.toString=function(){return this.$jscomp$symbol$id_};
var Y="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",P=0,E=function(z){if(this instanceof E)throw new TypeError("b");return new A(Y+(z||"")+"_"+P++,z)};
return E});
oL("Symbol.iterator",function(R){if(R)return R;R=Symbol("c");for(var A="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Y=0;Y<A.length;Y++){var P=_.Yh[A[Y]];typeof P==="function"&&typeof P.prototype[R]!="function"&&yLI(P.prototype,R,{configurable:!0,writable:!0,value:function(){return TK6(JL6(this))}})}return R});
oL("Symbol.asyncIterator",function(R){return R?R:Symbol("d")});
var TK6=function(R){R={next:R};R[Symbol.iterator]=function(){return this};
return R},QTV=typeof Object.create=="function"?Object.create:function(R){var A=function(){};
A.prototype=R;return new A},v6l=function(){function R(){function Y(){}
new Y;Reflect.construct(Y,[],function(){});
return new Y instanceof Y}
if(typeof Reflect!="undefined"&&Reflect.construct){if(R())return Reflect.construct;var A=Reflect.construct;return function(Y,P,E){Y=A(Y,P);E&&Reflect.setPrototypeOf(Y,E.prototype);return Y}}return function(Y,P,E){E===void 0&&(E=Y);
E=QTV(E.prototype||Object.prototype);return Function.prototype.apply.call(Y,E,P)||E}}(),g6P;
if(typeof Object.setPrototypeOf=="function")g6P=Object.setPrototypeOf;else{var n6V;a:{var HtP={a:!0},rL6={};try{rL6.__proto__=HtP;n6V=rL6.a;break a}catch(R){}n6V=!1}g6P=n6V?function(R,A){R.__proto__=A;if(R.__proto__!==A)throw new TypeError("e`"+R);return R}:null}kj=g6P;
_.H=function(R,A){R.prototype=QTV(A.prototype);R.prototype.constructor=R;if(kj)kj(R,A);else for(var Y in A)if(Y!="prototype")if(Object.defineProperties){var P=Object.getOwnPropertyDescriptor(A,Y);P&&Object.defineProperty(R,Y,P)}else R[Y]=A[Y];R.superClass_=A.prototype};
_.x=function(R){var A=typeof Symbol!="undefined"&&Symbol.iterator&&R[Symbol.iterator];if(A)return A.call(R);if(typeof R.length=="number")return{next:JL6(R)};throw Error("f`"+String(R));};
A6=function(R){for(var A,Y=[];!(A=R.next()).done;)Y.push(A.value);return Y};
_.py=function(R){return R instanceof Array?R:A6(_.x(R))};
_.Z7=function(R){return GG(R,R)};
GG=function(R,A){R.raw=A;Object.freeze&&(Object.freeze(R),Object.freeze(A));return R};
tV=function(R,A){return Object.prototype.hasOwnProperty.call(R,A)};
Dyk=function(R){if(R==null)throw new TypeError("g");return Object(R)};
UyS=typeof Object.assign=="function"?Object.assign:function(R,A){R=Dyk(R);for(var Y=1;Y<arguments.length;Y++){var P=arguments[Y];if(P)for(var E in P)tV(P,E)&&(R[E]=P[E])}return R};
oL("Object.assign",function(R){return R||UyS});
var we=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},$yl=function(R){if(R.isRunning_)throw new TypeError("i");
R.isRunning_=!0};
we.prototype.JSC$8715_next_=function(R){this.yieldResult=R};
var X7l=function(R,A){R.abruptCompletion_={exception:A,isException:!0};R.nextAddress=R.catchAddress_||R.finallyAddress_};
we.prototype.return=function(R){this.abruptCompletion_={return:R};this.nextAddress=this.finallyAddress_};
we.prototype.yield=function(R,A){this.nextAddress=A;return{value:R}};
we.prototype.jumpTo=function(R){this.nextAddress=R};
_.XH=function(R){R.nextAddress=0};
_.g2=function(R,A,Y){R.catchAddress_=A;Y!=void 0&&(R.finallyAddress_=Y)};
_.r2=function(R,A){R.catchAddress_=0;R.finallyAddress_=A||0};
_.us=function(R,A,Y){R.nextAddress=A;R.catchAddress_=Y||0};
_.UT=function(R,A){R.catchAddress_=A||0;A=R.abruptCompletion_.exception;R.abruptCompletion_=null;return A};
_.Ht=function(R,A,Y,P){P?R.finallyContexts_[P]=R.abruptCompletion_:R.finallyContexts_=[R.abruptCompletion_];R.catchAddress_=A||0;R.finallyAddress_=Y||0};
_.D4=function(R,A,Y){Y=R.finallyContexts_.splice(Y||0)[0];(Y=R.abruptCompletion_=R.abruptCompletion_||Y)?Y.isException?R.nextAddress=R.catchAddress_||R.finallyAddress_:Y.jumpTo!=void 0&&R.finallyAddress_<Y.jumpTo?(R.nextAddress=Y.jumpTo,R.abruptCompletion_=null):R.nextAddress=R.finallyAddress_:R.nextAddress=A};
SBq=function(R){this.JSC$8720_context_=new we;this.program_=R};
KP6=function(R,A){$yl(R.JSC$8720_context_);var Y=R.JSC$8720_context_.yieldAllIterator_;if(Y)return IfP(R,"return"in Y?Y["return"]:function(P){return{value:P,done:!0}},A,R.JSC$8720_context_.return);
R.JSC$8720_context_.return(A);return uD(R)};
IfP=function(R,A,Y,P){try{var E=A.call(R.JSC$8720_context_.yieldAllIterator_,Y);if(!(E instanceof Object))throw new TypeError("h`"+E);if(!E.done)return R.JSC$8720_context_.isRunning_=!1,E;var z=E.value}catch(c){return R.JSC$8720_context_.yieldAllIterator_=null,X7l(R.JSC$8720_context_,c),uD(R)}R.JSC$8720_context_.yieldAllIterator_=null;P.call(R.JSC$8720_context_,z);return uD(R)};
uD=function(R){for(;R.JSC$8720_context_.nextAddress;)try{var A=R.program_(R.JSC$8720_context_);if(A)return R.JSC$8720_context_.isRunning_=!1,{value:A.value,done:!1}}catch(Y){R.JSC$8720_context_.yieldResult=void 0,X7l(R.JSC$8720_context_,Y)}R.JSC$8720_context_.isRunning_=!1;if(R.JSC$8720_context_.abruptCompletion_){A=R.JSC$8720_context_.abruptCompletion_;R.JSC$8720_context_.abruptCompletion_=null;if(A.isException)throw A.exception;return{value:A.return,done:!0}}return{value:void 0,done:!0}};
WPk=function(R){this.next=function(A){$yl(R.JSC$8720_context_);R.JSC$8720_context_.yieldAllIterator_?A=IfP(R,R.JSC$8720_context_.yieldAllIterator_.next,A,R.JSC$8720_context_.JSC$8715_next_):(R.JSC$8720_context_.JSC$8715_next_(A),A=uD(R));return A};
this.throw=function(A){$yl(R.JSC$8720_context_);R.JSC$8720_context_.yieldAllIterator_?A=IfP(R,R.JSC$8720_context_.yieldAllIterator_["throw"],A,R.JSC$8720_context_.JSC$8715_next_):(X7l(R.JSC$8720_context_,A),A=uD(R));return A};
this.return=function(A){return KP6(R,A)};
this[Symbol.iterator]=function(){return this}};
_.ER=function(R,A){A=new WPk(new SBq(A));kj&&R.prototype&&kj(A,R.prototype);return A};
jTl=function(R){function A(P){return R.next(P)}
function Y(P){return R.throw(P)}
return new Promise(function(P,E){function z(c){c.done?P(c.value):Promise.resolve(c.value).then(A,Y).then(z,E)}
z(R.next())})};
_.O=function(R){return jTl(new WPk(new SBq(R)))};
_.ny=function(R){var A=R[Symbol.asyncIterator];return A!==void 0?A.call(R):new btl(_.x(R))};
btl=function(R){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return R};
this.next=function(A){return Promise.resolve(R.next(A))};
this["throw"]=function(A){return new Promise(function(Y,P){var E=R["throw"];E!==void 0?Y(E.call(R,A)):(Y=R["return"],Y!==void 0&&Y.call(R),P(new TypeError("j")))})};
R["return"]!==void 0&&(this["return"]=function(A){return Promise.resolve(R["return"](A))})};
_.Ge=function(){for(var R=Number(this),A=[],Y=R;Y<arguments.length;Y++)A[Y-R]=arguments[Y];return A};
_.zG=function(R){return R};
oL("globalThis",function(R){return R||_.Yh});
oL("Reflect",function(R){return R?R:{}});
oL("Reflect.construct",function(){return v6l});
oL("Reflect.setPrototypeOf",function(R){return R?R:kj?function(A,Y){try{return kj(A,Y),!0}catch(P){return!1}}:null});
oL("Promise",function(R){function A(){this.batch_=null}
function Y(c){return c instanceof E?c:new E(function(M){M(c)})}
if(R&&(typeof _.Yh.PromiseRejectionEvent!=="undefined"||!_.Yh.Promise||_.Yh.Promise.toString().indexOf("[native code]")===-1))return R;A.prototype.asyncExecute=function(c){if(this.batch_==null){this.batch_=[];var M=this;this.asyncExecuteFunction(function(){M.executeBatch_()})}this.batch_.push(c)};
var P=_.Yh.setTimeout;A.prototype.asyncExecuteFunction=function(c){P(c,0)};
A.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var M=0;M<c.length;++M){var N=c[M];c[M]=null;try{N()}catch(y){this.asyncThrow_(y)}}}this.batch_=null};
A.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};
var E=function(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var M=this.createResolveAndReject_();try{c(M.resolve,M.reject)}catch(N){M.reject(N)}};
E.prototype.createResolveAndReject_=function(){function c(y){return function(m){N||(N=!0,y.call(M,m))}}
var M=this,N=!1;return{resolve:c(this.resolveTo_),reject:c(this.JSC$8748_reject_)}};
E.prototype.resolveTo_=function(c){if(c===this)this.JSC$8748_reject_(new TypeError("n"));else if(c instanceof E)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var M=c!=null;break a;case "function":M=!0;break a;default:M=!1}M?this.resolveToNonPromiseObj_(c):this.fulfill_(c)}};
E.prototype.resolveToNonPromiseObj_=function(c){var M=void 0;try{M=c.then}catch(N){this.JSC$8748_reject_(N);return}typeof M=="function"?this.settleSameAsThenable_(M,c):this.fulfill_(c)};
E.prototype.JSC$8748_reject_=function(c){this.settle_(2,c)};
E.prototype.fulfill_=function(c){this.settle_(1,c)};
E.prototype.settle_=function(c,M){if(this.state_!=0)throw Error("o`"+c+"`"+M+"`"+this.state_);this.state_=c;this.result_=M;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
E.prototype.scheduleUnhandledRejectionCheck_=function(){var c=this;P(function(){if(c.notifyUnhandledRejection_()){var M=_.Yh.console;typeof M!=="undefined"&&M.error(c.result_)}},1)};
E.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var c=_.Yh.CustomEvent,M=_.Yh.Event,N=_.Yh.dispatchEvent;if(typeof N==="undefined")return!0;typeof c==="function"?c=new c("unhandledrejection",{cancelable:!0}):typeof M==="function"?c=new M("unhandledrejection",{cancelable:!0}):(c=_.Yh.document.createEvent("CustomEvent"),c.initCustomEvent("unhandledrejection",!1,!0,c));c.promise=this;c.reason=this.result_;return N(c)};
E.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var c=0;c<this.onSettledCallbacks_.length;++c)z.asyncExecute(this.onSettledCallbacks_[c]);this.onSettledCallbacks_=null}};
var z=new A;E.prototype.settleSameAsPromise_=function(c){var M=this.createResolveAndReject_();c.callWhenSettled_(M.resolve,M.reject)};
E.prototype.settleSameAsThenable_=function(c,M){var N=this.createResolveAndReject_();try{c.call(M,N.resolve,N.reject)}catch(y){N.reject(y)}};
E.prototype.then=function(c,M){function N(Q,g){return typeof Q=="function"?function(r){try{y(Q(r))}catch(I){m(I)}}:g}
var y,m,T=new E(function(Q,g){y=Q;m=g});
this.callWhenSettled_(N(c,y),N(M,m));return T};
E.prototype.catch=function(c){return this.then(void 0,c)};
E.prototype.callWhenSettled_=function(c,M){function N(){switch(y.state_){case 1:c(y.result_);break;case 2:M(y.result_);break;default:throw Error("p`"+y.state_);}}
var y=this;this.onSettledCallbacks_==null?z.asyncExecute(N):this.onSettledCallbacks_.push(N);this.isRejectionHandled_=!0};
E.resolve=Y;E.reject=function(c){return new E(function(M,N){N(c)})};
E.race=function(c){return new E(function(M,N){for(var y=_.x(c),m=y.next();!m.done;m=y.next())Y(m.value).callWhenSettled_(M,N)})};
E.all=function(c){var M=_.x(c),N=M.next();return N.done?Y([]):new E(function(y,m){function T(r){return function(I){Q[r]=I;g--;g==0&&y(Q)}}
var Q=[],g=0;do Q.push(void 0),g++,Y(N.value).callWhenSettled_(T(Q.length-1),m),N=M.next();while(!N.done)})};
return E});
var ev=function(R,A,Y){if(R==null)throw new TypeError("q`"+Y);if(A instanceof RegExp)throw new TypeError("r`"+Y);return R+""};
oL("String.prototype.startsWith",function(R){return R?R:function(A,Y){var P=ev(this,A,"startsWith"),E=P.length,z=A.length;Y=Math.max(0,Math.min(Y|0,P.length));for(var c=0;c<z&&Y<E;)if(P[Y++]!=A[c++])return!1;return c>=z}});
oL("Object.setPrototypeOf",function(R){return R||kj});
oL("Symbol.dispose",function(R){return R?R:Symbol("s")});
oL("SuppressedError",function(R){function A(Y,P,E){if(!(this instanceof A))return new A(Y,P,E);E=Error(E);"stack"in E&&(this.stack=E.stack);this.message=E.message;this.error=Y;this.suppressed=P}
if(R)return R;_.H(A,Error);A.prototype.name="SuppressedError";return A});
var ffP=function(R,A,Y){R instanceof String&&(R=String(R));for(var P=R.length,E=0;E<P;E++){var z=R[E];if(A.call(Y,z,E,R))return{i:E,v:z}}return{i:-1,v:void 0}};
oL("Array.prototype.find",function(R){return R?R:function(A,Y){return ffP(this,A,Y).v}});
oL("WeakMap",function(R){function A(){}
function Y(N){var y=typeof N;return y==="object"&&N!==null||y==="function"}
function P(N){if(!tV(N,z)){var y=new A;yLI(N,z,{value:y})}}
function E(N){var y=Object[N];y&&(Object[N]=function(m){if(m instanceof A)return m;Object.isExtensible(m)&&P(m);return y(m)})}
if(function(){if(!R||!Object.seal)return!1;try{var N=Object.seal({}),y=Object.seal({}),m=new R([[N,2],[y,3]]);if(m.get(N)!=2||m.get(y)!=3)return!1;m.delete(N);m.set(y,4);return!m.has(N)&&m.get(y)==4}catch(T){return!1}}())return R;
var z="$jscomp_hidden_"+Math.random();E("freeze");E("preventExtensions");E("seal");var c=0,M=function(N){this.JSC$8755_id_=(c+=Math.random()+1).toString();if(N){N=_.x(N);for(var y;!(y=N.next()).done;)y=y.value,this.set(y[0],y[1])}};
M.prototype.set=function(N,y){if(!Y(N))throw Error("t");P(N);if(!tV(N,z))throw Error("u`"+N);N[z][this.JSC$8755_id_]=y;return this};
M.prototype.get=function(N){return Y(N)&&tV(N,z)?N[z][this.JSC$8755_id_]:void 0};
M.prototype.has=function(N){return Y(N)&&tV(N,z)&&tV(N[z],this.JSC$8755_id_)};
M.prototype.delete=function(N){return Y(N)&&tV(N,z)&&tV(N[z],this.JSC$8755_id_)?delete N[z][this.JSC$8755_id_]:!1};
return M});
oL("Map",function(R){if(function(){if(!R||typeof R!="function"||!R.prototype.entries||typeof Object.seal!="function")return!1;try{var M=Object.seal({x:4}),N=new R(_.x([[M,"s"]]));if(N.get(M)!="s"||N.size!=1||N.get({x:4})||N.set({x:4},"t")!=N||N.size!=2)return!1;var y=N.entries(),m=y.next();if(m.done||m.value[0]!=M||m.value[1]!="s")return!1;m=y.next();return m.done||m.value[0].x!=4||m.value[1]!="t"||!y.next().done?!1:!0}catch(T){return!1}}())return R;
var A=new WeakMap,Y=function(M){this[0]={};this[1]=z();this.size=0;if(M){M=_.x(M);for(var N;!(N=M.next()).done;)N=N.value,this.set(N[0],N[1])}};
Y.prototype.set=function(M,N){M=M===0?0:M;var y=P(this,M);y.list||(y.list=this[0][y.id]=[]);y.entry?y.entry.value=N:(y.entry={next:this[1],previous:this[1].previous,head:this[1],key:M,value:N},y.list.push(y.entry),this[1].previous.next=y.entry,this[1].previous=y.entry,this.size++);return this};
Y.prototype.delete=function(M){M=P(this,M);return M.entry&&M.list?(M.list.splice(M.index,1),M.list.length||delete this[0][M.id],M.entry.previous.next=M.entry.next,M.entry.next.previous=M.entry.previous,M.entry.head=null,this.size--,!0):!1};
Y.prototype.clear=function(){this[0]={};this[1]=this[1].previous=z();this.size=0};
Y.prototype.has=function(M){return!!P(this,M).entry};
Y.prototype.get=function(M){return(M=P(this,M).entry)&&M.value};
Y.prototype.entries=function(){return E(this,function(M){return[M.key,M.value]})};
Y.prototype.keys=function(){return E(this,function(M){return M.key})};
Y.prototype.values=function(){return E(this,function(M){return M.value})};
Y.prototype.forEach=function(M,N){for(var y=this.entries(),m;!(m=y.next()).done;)m=m.value,M.call(N,m[1],m[0],this)};
Y.prototype[Symbol.iterator]=Y.prototype.entries;var P=function(M,N){var y=N&&typeof N;y=="object"||y=="function"?A.has(N)?y=A.get(N):(y=""+ ++c,A.set(N,y)):y="p_"+N;var m=M[0][y];if(m&&tV(M[0],y))for(M=0;M<m.length;M++){var T=m[M];if(N!==N&&T.key!==T.key||N===T.key)return{id:y,list:m,index:M,entry:T}}return{id:y,list:m,index:-1,entry:void 0}},E=function(M,N){var y=M[1];
return TK6(function(){if(y){for(;y.head!=M[1];)y=y.previous;for(;y.next!=y.head;)return y=y.next,{done:!1,value:N(y)};y=null}return{done:!0,value:void 0}})},z=function(){var M={};
return M.previous=M.next=M.head=M},c=0;
return Y});
oL("Set",function(R){if(function(){if(!R||typeof R!="function"||!R.prototype.entries||typeof Object.seal!="function")return!1;try{var Y=Object.seal({x:4}),P=new R(_.x([Y]));if(!P.has(Y)||P.size!=1||P.add(Y)!=P||P.size!=1||P.add({x:4})!=P||P.size!=2)return!1;var E=P.entries(),z=E.next();if(z.done||z.value[0]!=Y||z.value[1]!=Y)return!1;z=E.next();return z.done||z.value[0]==Y||z.value[0].x!=4||z.value[1]!=z.value[0]?!1:E.next().done}catch(c){return!1}}())return R;
var A=function(Y){this.JSC$8769_map_=new Map;if(Y){Y=_.x(Y);for(var P;!(P=Y.next()).done;)this.add(P.value)}this.size=this.JSC$8769_map_.size};
A.prototype.add=function(Y){Y=Y===0?0:Y;this.JSC$8769_map_.set(Y,Y);this.size=this.JSC$8769_map_.size;return this};
A.prototype.delete=function(Y){Y=this.JSC$8769_map_.delete(Y);this.size=this.JSC$8769_map_.size;return Y};
A.prototype.clear=function(){this.JSC$8769_map_.clear();this.size=0};
A.prototype.has=function(Y){return this.JSC$8769_map_.has(Y)};
A.prototype.entries=function(){return this.JSC$8769_map_.entries()};
A.prototype.values=function(){return this.JSC$8769_map_.values()};
A.prototype.keys=A.prototype.values;A.prototype[Symbol.iterator]=A.prototype.values;A.prototype.forEach=function(Y,P){var E=this;this.JSC$8769_map_.forEach(function(z){return Y.call(P,z,z,E)})};
return A});
oL("Math.log2",function(R){return R?R:function(A){return Math.log(A)/Math.LN2}});
oL("Object.values",function(R){return R?R:function(A){var Y=[],P;for(P in A)tV(A,P)&&Y.push(A[P]);return Y}});
oL("Object.is",function(R){return R?R:function(A,Y){return A===Y?A!==0||1/A===1/Y:A!==A&&Y!==Y}});
oL("Array.prototype.includes",function(R){return R?R:function(A,Y){var P=this;P instanceof String&&(P=String(P));var E=P.length;Y=Y||0;for(Y<0&&(Y=Math.max(Y+E,0));Y<E;Y++){var z=P[Y];if(z===A||Object.is(z,A))return!0}return!1}});
oL("String.prototype.includes",function(R){return R?R:function(A,Y){return ev(this,A,"includes").indexOf(A,Y||0)!==-1}});
oL("Array.from",function(R){return R?R:function(A,Y,P){Y=Y!=null?Y:function(M){return M};
var E=[],z=typeof Symbol!="undefined"&&Symbol.iterator&&A[Symbol.iterator];if(typeof z=="function"){A=z.call(A);for(var c=0;!(z=A.next()).done;)E.push(Y.call(P,z.value,c++))}else for(z=A.length,c=0;c<z;c++)E.push(Y.call(P,A[c],c));return E}});
oL("Object.entries",function(R){return R?R:function(A){var Y=[],P;for(P in A)tV(A,P)&&Y.push([P,A[P]]);return Y}});
oL("Number.isFinite",function(R){return R?R:function(A){return typeof A!=="number"?!1:!isNaN(A)&&A!==Infinity&&A!==-Infinity}});
oL("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
oL("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
oL("Number.isInteger",function(R){return R?R:function(A){return Number.isFinite(A)?A===Math.floor(A):!1}});
oL("Number.isSafeInteger",function(R){return R?R:function(A){return Number.isInteger(A)&&Math.abs(A)<=Number.MAX_SAFE_INTEGER}});
oL("String.prototype.endsWith",function(R){return R?R:function(A,Y){var P=ev(this,A,"endsWith");Y===void 0&&(Y=P.length);Y=Math.max(0,Math.min(Y|0,P.length));for(var E=A.length;E>0&&Y>0;)if(P[--Y]!=A[--E])return!1;return E<=0}});
var p7q=function(R,A){R instanceof String&&(R+="");var Y=0,P=!1,E={next:function(){if(!P&&Y<R.length){var z=Y++;return{value:A(z,R[z]),done:!1}}P=!0;return{done:!0,value:void 0}}};
E[Symbol.iterator]=function(){return E};
return E};
oL("Array.prototype.entries",function(R){return R?R:function(){return p7q(this,function(A,Y){return[A,Y]})}});
oL("Math.trunc",function(R){return R?R:function(A){A=Number(A);if(isNaN(A)||A===Infinity||A===-Infinity||A===0)return A;var Y=Math.floor(Math.abs(A));return A<0?-Y:Y}});
oL("Number.isNaN",function(R){return R?R:function(A){return typeof A==="number"&&isNaN(A)}});
oL("Array.prototype.keys",function(R){return R?R:function(){return p7q(this,function(A){return A})}});
oL("Array.prototype.values",function(R){return R?R:function(){return p7q(this,function(A,Y){return Y})}});
oL("Array.prototype.fill",function(R){return R?R:function(A,Y,P){var E=this.length||0;Y<0&&(Y=Math.max(0,E+Y));if(P==null||P>E)P=E;P=Number(P);P<0&&(P=Math.max(0,E+P));for(Y=Number(Y||0);Y<P;Y++)this[Y]=A;return this}});
var qm=function(R){return R?R:Array.prototype.fill};
oL("Int8Array.prototype.fill",qm);oL("Uint8Array.prototype.fill",qm);oL("Uint8ClampedArray.prototype.fill",qm);oL("Int16Array.prototype.fill",qm);oL("Uint16Array.prototype.fill",qm);oL("Int32Array.prototype.fill",qm);oL("Uint32Array.prototype.fill",qm);oL("Float32Array.prototype.fill",qm);oL("Float64Array.prototype.fill",qm);
oL("Object.fromEntries",function(R){return R?R:function(A){var Y={};if(!(Symbol.iterator in A))throw new TypeError("v`"+A);A=A[Symbol.iterator].call(A);for(var P=A.next();!P.done;P=A.next()){P=P.value;if(Object(P)!==P)throw new TypeError("w");Y[P[0]]=P[1]}return Y}});
oL("String.prototype.replaceAll",function(R){return R?R:function(A,Y){if(A instanceof RegExp&&!A.global)throw new TypeError("x");return A instanceof RegExp?this.replace(A,Y):this.replace(new RegExp(String(A).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),Y)}});
oL("Object.getOwnPropertySymbols",function(R){return R?R:function(){return[]}});
oL("String.prototype.repeat",function(R){return R?R:function(A){var Y=ev(this,null,"repeat");if(A<0||A>1342177279)throw new RangeError("y");A|=0;for(var P="";A;)if(A&1&&(P+=Y),A>>>=1)Y+=Y;return P}});
oL("Array.prototype.findIndex",function(R){return R?R:function(A,Y){return ffP(this,A,Y).i}});
oL("Array.prototype.flatMap",function(R){return R?R:function(A,Y){var P=[];Array.prototype.forEach.call(this,function(E,z){E=A.call(Y,E,z,this);Array.isArray(E)?P.push.apply(P,E):P.push(E)});
return P}});
oL("String.prototype.codePointAt",function(R){return R?R:function(A){var Y=ev(this,null,"codePointAt"),P=Y.length;A=Number(A)||0;if(A>=0&&A<P){A|=0;var E=Y.charCodeAt(A);if(E<55296||E>56319||A+1===P)return E;A=Y.charCodeAt(A+1);return A<56320||A>57343?E:(E-55296)*1024+A+9216}}});
oL("String.fromCodePoint",function(R){return R?R:function(A){for(var Y="",P=0;P<arguments.length;P++){var E=Number(arguments[P]);if(E<0||E>1114111||E!==Math.floor(E))throw new RangeError("z`"+E);E<=65535?Y+=String.fromCharCode(E):(E-=65536,Y+=String.fromCharCode(E>>>10&1023|55296),Y+=String.fromCharCode(E&1023|56320))}return Y}});
oL("String.prototype.trimLeft",function(R){function A(){return this.replace(/^[\s\xa0]+/,"")}
return R||A});
oL("String.prototype.trimStart",function(R){return R||String.prototype.trimLeft});
oL("String.prototype.padStart",function(R){return R?R:function(A,Y){var P=ev(this,null,"padStart");A-=P.length;Y=Y!==void 0?String(Y):" ";return(A>0&&Y?Y.repeat(Math.ceil(A/Y.length)).substring(0,A):"")+P}});
oL("Promise.prototype.finally",function(R){return R?R:function(A){return this.then(function(Y){return Promise.resolve(A()).then(function(){return Y})},function(Y){return Promise.resolve(A()).then(function(){throw Y;
})})}});
oL("Math.imul",function(R){return R?R:function(A,Y){A=Number(A);Y=Number(Y);var P=A&65535,E=Y&65535;return P*E+((A>>>16&65535)*E+P*(Y>>>16&65535)<<16>>>0)|0}});
oL("Object.hasOwn",function(R){return R?R:function(A,Y){return Object.prototype.hasOwnProperty.call(A,Y)}});
oL("Math.sign",function(R){return R?R:function(A){A=Number(A);return A===0||isNaN(A)?A:A>0?1:-1}});
oL("Array.prototype.flat",function(R){return R?R:function(A){A=A===void 0?1:A;var Y=[];Array.prototype.forEach.call(this,function(P){Array.isArray(P)&&A>0?(P=Array.prototype.flat.call(P,A-1),Y.push.apply(Y,P)):Y.push(P)});
return Y}});
oL("String.raw",function(R){return R?R:function(A,Y){A=Dyk(A);for(var P=A.raw,E=P.length,z="",c=0;c<E;++c)z+=P[c],c+1<E&&c+1<arguments.length&&(z+=String(arguments[c+1]));return z}});
oL("Reflect.ownKeys",function(R){return R?R:function(A){var Y=[],P=Object.getOwnPropertyNames(A);A=Object.getOwnPropertySymbols(A);for(var E=0;E<P.length;E++)(P[E].substring(0,14)=="jscomp_symbol_"?A:Y).push(P[E]);return Y.concat(A)}});
oL("Object.getOwnPropertyDescriptors",function(R){return R?R:function(A){for(var Y={},P=Reflect.ownKeys(A),E=0;E<P.length;E++)Y[P[E]]=Object.getOwnPropertyDescriptor(A,P[E]);return Y}});
oL("WeakSet",function(R){if(function(){if(!R||!Object.seal)return!1;try{var Y=Object.seal({}),P=Object.seal({}),E=new R([Y]);if(!E.has(Y)||E.has(P))return!1;E.delete(Y);E.add(P);return!E.has(Y)&&E.has(P)}catch(z){return!1}}())return R;
var A=function(Y){this.JSC$8782_map_=new WeakMap;if(Y){Y=_.x(Y);for(var P;!(P=Y.next()).done;)this.add(P.value)}};
A.prototype.add=function(Y){this.JSC$8782_map_.set(Y,!0);return this};
A.prototype.has=function(Y){return this.JSC$8782_map_.has(Y)};
A.prototype.delete=function(Y){return this.JSC$8782_map_.delete(Y)};
return A});
oL("Promise.allSettled",function(R){function A(P){return{status:"fulfilled",value:P}}
function Y(P){return{status:"rejected",reason:P}}
return R?R:function(P){var E=this;P=Array.from(P,function(z){return E.resolve(z).then(A,Y)});
return E.all(P)}});
oL("Number.parseInt",function(R){return R||parseInt});
_._DumpException=window._DumpException||function(R){throw R;};
window._DumpException=_._DumpException;var FP3=window.ytcsi;FP3&&typeof FP3.tick==="function"&&FP3.tick("rses_dpj");var BKk,L6,de,R2,afu,CHV,hTl,o66,XY,kk6;BKk=BKk||{};_.P3=this||self;_.PG=function(R,A,Y){R=R.split(".");Y=Y||_.P3;for(var P;R.length&&(P=R.shift());)R.length||A===void 0?Y[P]&&Y[P]!==Object.prototype[P]?Y=Y[P]:Y=Y[P]={}:Y[P]=A};
L6=function(R,A){var Y=_.Zr("WIZ_global_data.oxN3nb");R=Y&&Y[R];return R!=null?R:A};
de=_.P3._F_toggles_default_kevlar_base||[];R2=function(){};
R2.get=function(){return null};
_.j9k=null;_.Zr=function(R,A){R=R.split(".");A=A||_.P3;for(var Y=0;Y<R.length;Y++)if(A=A[R[Y]],A==null)return null;return A};
_.AR=function(R){R.instance_=void 0;R.getInstance=function(){return R.instance_?R.instance_:R.instance_=new R}};
_.tE=function(R){var A=typeof R;return A!="object"?A:R?Array.isArray(R)?"array":A:"null"};
_.ok=function(R){var A=_.tE(R);return A=="array"||A=="object"&&typeof R.length=="number"};
_.ZI=function(R){var A=typeof R;return A=="object"&&R!=null||A=="function"};
_.tk=function(R){return Object.prototype.hasOwnProperty.call(R,afu)&&R[afu]||(R[afu]=++CHV)};
afu="closure_uid_"+(Math.random()*1E9>>>0);CHV=0;hTl=function(R,A,Y){return R.call.apply(R.bind,arguments)};
o66=function(R,A,Y){if(!R)throw Error();if(arguments.length>2){var P=Array.prototype.slice.call(arguments,2);return function(){var E=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(E,P);return R.apply(A,E)}}return function(){return R.apply(A,arguments)}};
_.Wv=function(R,A,Y){_.Wv=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?hTl:o66;return _.Wv.apply(null,arguments)};
_.nj=function(R,A){var Y=Array.prototype.slice.call(arguments,1);return function(){var P=Y.slice();P.push.apply(P,arguments);return R.apply(this,P)}};
_.YB=function(){return Date.now()};
XY=function(R){return R};
_.Pb=function(R,A){function Y(){}
Y.prototype=A.prototype;R.superClass_=A.prototype;R.prototype=new Y;R.prototype.constructor=R;R.base=function(P,E,z){for(var c=Array(arguments.length-2),M=2;M<arguments.length;M++)c[M-2]=arguments[M];return A.prototype[E].apply(P,c)}};
kk6=function(R){return R};var Gkb,Zt3;_.C=function(R,A,Y,P){var E=arguments.length,z=E<3?A:P===null?P=Object.getOwnPropertyDescriptor(A,Y):P,c;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")z=Reflect.decorate(R,A,Y,P);else for(var M=R.length-1;M>=0;M--)if(c=R[M])z=(E<3?c(z):E>3?c(A,Y,z):c(A,Y))||z;E>3&&z&&Object.defineProperty(A,Y,z)};
_.k=function(R,A){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(R,A)};
Gkb=function(R,A){if(A!==null&&A!==void 0){if(typeof A!=="object"&&typeof A!=="function")throw new TypeError("A");if(Y===void 0){if(!Symbol.dispose)throw new TypeError("C");var Y=A[Symbol.dispose]}if(typeof Y!=="function")throw new TypeError("D");R.stack.push({value:A,dispose:Y,async:!1})}return A};
Zt3=function(R){function A(z){R.error=R.hasError?new SuppressedError(z,R.error,"An error was suppressed during disposal."):z;R.hasError=!0}
function Y(){for(;P=R.stack.pop();)try{if(!P.async&&E===1)return E=0,R.stack.push(P),Promise.resolve().then(Y);if(P.dispose){var z=P.dispose.call(P.value);if(P.async)return E|=2,Promise.resolve(z).then(Y,function(c){A(c);return Y()})}else E|=1}catch(c){A(c)}if(E===1)return R.hasError?Promise.reject(R.error):Promise.resolve();
if(R.hasError)throw R.error;}
var P,E=0;Y()};_.Pb(_.Rk,Error);_.Rk.prototype.name="CustomError";var t6k;var w78=void 0,uR8,eTV=typeof TextDecoder!=="undefined",PJk,Y6q=typeof String.prototype.isWellFormed==="function",Akk=typeof TextEncoder!=="undefined";var qBk;_.IX=function(R){for(var A=[],Y=0,P=0;P<R.length;P++){var E=R.charCodeAt(P);E<128?A[Y++]=E:(E<2048?A[Y++]=E>>6|192:((E&64512)==55296&&P+1<R.length&&(R.charCodeAt(P+1)&64512)==56320?(E=65536+((E&1023)<<10)+(R.charCodeAt(++P)&1023),A[Y++]=E>>18|240,A[Y++]=E>>12&63|128):A[Y++]=E>>12|224,A[Y++]=E>>6&63|128),A[Y++]=E&63|128)}return A};
qBk=function(R){for(var A=[],Y=0,P=0;Y<R.length;){var E=R[Y++];if(E<128)A[P++]=String.fromCharCode(E);else if(E>191&&E<224){var z=R[Y++];A[P++]=String.fromCharCode((E&31)<<6|z&63)}else if(E>239&&E<365){z=R[Y++];var c=R[Y++],M=R[Y++];E=((E&7)<<18|(z&63)<<12|(c&63)<<6|M&63)-65536;A[P++]=String.fromCharCode(55296+(E>>10));A[P++]=String.fromCharCode(56320+(E&1023))}else z=R[Y++],c=R[Y++],A[P++]=String.fromCharCode((E&15)<<12|(z&63)<<6|c&63)}return A.join("")};var s6=String.prototype.trim?function(R){return R.trim()}:function(R){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(R)[1]},LP3=/&/g,dyb=/</g,RW8=/>/g,AUq=/"/g,YcI=/'/g,PTJ=/\x00/g,EGk=/[\x00&<>"']/;var Ek=!!(de[0]>>15&1),zWI=!!(de[0]&1024),ieb=!!(de[0]>>16&1),lbl=!!(de[0]&8),xZk=!!(de[0]&2),cUS=!!(de[0]&4),Oeb=!!(de[0]&16),M2l=!!(de[0]&128);var suk=L6(1,!0),TS=Ek?ieb:L6(610401301,!1),NTu=Ek?lbl:L6(772657768,!1),V2J=Ek?xZk:L6(513659523,!1),JUk=Ek?zWI||!cUS:L6(568333945,!0),Bmk=Ek?Oeb:L6(1331761403,!1),J9S=Ek?zWI||!M2l:L6(748402147,suk);var v3,yUS=_.P3.navigator;v3=yUS?yUS.userAgentData||null:null;var eX;_.fu=function(R,A){return Array.prototype.indexOf.call(R,A,void 0)};
_.uI=function(R,A,Y){Array.prototype.forEach.call(R,A,Y)};
_.zx=function(R,A,Y){return Array.prototype.filter.call(R,A,Y)};
_.aS=function(R,A,Y){return Array.prototype.map.call(R,A,Y)};
eX=function(R,A,Y){return Array.prototype.some.call(R,A,Y)};
_.T7S=function(R,A,Y){return Array.prototype.every.call(R,A,Y)};var iu=function(R){iu[" "](R);return R};
iu[" "]=function(){};
var UM6=function(R,A){try{return iu(R[A]),!0}catch(Y){}return!1},QB8=function(R,A,Y,P){P=P?P(A):A;
return Object.prototype.hasOwnProperty.call(R,P)?R[P]:R[P]=Y(A)};var mZS,AZ,TT8,Quk,gG8,nGl,mBS,HeP,rUJ,DZk,mE6,$Zk,X_l,WFl,jul,be8;_.Vol=function(){return _.P3.navigator||null};
mZS=lIS();_.lu=xbk();AZ=g8("Edge");TT8=AZ||_.lu;_.xB=g8("Gecko")&&!(_.Mb(_.yk(),"WebKit")&&!g8("Edge"))&&!(g8("Trident")||g8("MSIE"))&&!g8("Edge");_.cb=_.Mb(_.yk(),"WebKit")&&!g8("Edge");Quk=_.cb&&g8("Mobile");_.vGP=_.mbk();gG8=_.T8V();nGl=(SP()?v3.platform==="Linux":g8("Linux"))||_.QkS();mBS=_.Jkk();HeP=yk8();rUJ=g8("iPad");DZk=g8("iPod");_.UZk=_.Ik();mE6=_.Mb(_.yk(),"KaiOS");$Zk=function(){var R=_.P3.document;return R?R.documentMode:void 0};
a:{var Scu="",Ibu=function(){var R=_.yk();if(_.xB)return/rv:([^\);]+)(\)|;)/.exec(R);if(AZ)return/Edge\/([\d\.]+)/.exec(R);if(_.lu)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(R);if(_.cb)return/WebKit\/(\S+)/.exec(R);if(mZS)return/(?:Version)[ \/]?(\S+)/.exec(R)}();
Ibu&&(Scu=Ibu?Ibu[1]:"");if(_.lu){var KF8=$Zk();if(KF8!=null&&KF8>parseFloat(Scu)){X_l=String(KF8);break a}}X_l=Scu}WFl=X_l;jul={};_.Ok=function(R){return QB8(jul,R,function(){return _.Vk(WFl,R)>=0})};
if(_.P3.document&&_.lu){var fb6=$Zk();be8=fb6?fb6:parseInt(WFl,10)||void 0}else be8=void 0;_.p_8=be8;var XKq,SQk,FFb;_.Mc=U6();XKq=yk8()||g8("iPod");SQk=g8("iPad");FFb=_.MP6();_.sk=_.$q();_.hN=_.Ou8()&&!_.Ik();var BTu,Nc,GEq,gMJ,CT6,abl;BTu={};Nc=null;GEq=_.xB||_.cb||typeof _.P3.btoa=="function";_.WF=function(R,A){A===void 0&&(A=0);abl();A=BTu[A];for(var Y=Array(Math.floor(R.length/3)),P=A[64]||"",E=0,z=0;E<R.length-2;E+=3){var c=R[E],M=R[E+1],N=R[E+2],y=A[c>>2];c=A[(c&3)<<4|M>>4];M=A[(M&15)<<2|N>>6];N=A[N&63];Y[z++]=y+c+M+N}y=0;N=P;switch(R.length-E){case 2:y=R[E+1],N=A[(y&15)<<2]||P;case 1:R=R[E],Y[z]=A[R>>2]+A[(R&3)<<4|y>>4]+N+P}return Y.join("")};
gMJ=function(R){var A="";CT6(R,function(Y){A+=String.fromCharCode(Y)});
return A};
_.fQV=function(R){var A=[];CT6(R,function(Y){A.push(Y)});
return A};
_.eP=function(R){var A=R.length,Y=A*3/4;Y%3?Y=Math.floor(Y):_.O6("=.",R[A-1])&&(Y=_.O6("=.",R[A-2])?Y-2:Y-1);var P=new Uint8Array(Y),E=0;CT6(R,function(z){P[E++]=z});
return E!==Y?P.subarray(0,E):P};
CT6=function(R,A){function Y(N){for(;P<R.length;){var y=R.charAt(P++),m=Nc[y];if(m!=null)return m;if(!_.c3(y))throw Error("H`"+y);}return N}
abl();for(var P=0;;){var E=Y(-1),z=Y(0),c=Y(64),M=Y(64);if(M===64&&E===-1)break;A(E<<2|z>>4);c!=64&&(A(z<<4&240|c>>2),M!=64&&A(c<<6&192|M))}};
abl=function(){if(!Nc){Nc={};for(var R="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),A=["+/=","+/","-_=","-_.","-_"],Y=0;Y<5;Y++){var P=R.concat(A[Y].split(""));BTu[Y]=P;for(var E=0;E<P.length;E++){var z=P[E];Nc[z]===void 0&&(Nc[z]=E)}}}};var GS6=typeof Uint8Array!=="undefined",jkV=!_.lu&&typeof btoa==="function",buk=/[-_.]/g,Klk={"-":"+",_:"/",".":"="},rf={};var TN,oG6;TN=function(R,A){if(A!==rf)throw Error("J");this.JSC$8812_value_=R;if(R!=null&&R.length===0)throw Error("I");};
_.Dz=function(){return hWS||(hWS=new TN(null,rf))};
oG6=function(R){return new Uint8Array(Bou(R)||0)};
TN.prototype.isEmpty=function(){return this.JSC$8812_value_==null};
TN.prototype.sizeBytes=function(){var R=Bou(this);return R?R.length:0};
var Bou=function(R){if(rf!==rf)throw Error("J");var A=R.JSC$8812_value_;A==null||GS6&&A!=null&&A instanceof Uint8Array||(typeof A==="string"?A=fIu(A):(_.tE(A),A=null));return A==null?A:R.JSC$8812_value_=A},hWS;var FlJ=void 0;var EA=typeof Symbol==="function"&&typeof Symbol()==="symbol",k78=AE("jas",void 0,!0),fzk=AE(void 0,"0di"),YD=AE(void 0,"1oa"),IH=AE(void 0,Symbol()),LSI=AE(void 0,"0ub"),RQP=AE(void 0,"0ubs"),gDJ=AE(void 0,"0ubsb"),mgV=AE(void 0,"0actk"),nf=AE("m_m","messagePrototypeMarker",!0),Ofu=AE(void 0,"vps"),ubk=AE();var CJk,aI3,Zj,G7P;CJk={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};aI3=Object.defineProperties;_.zN=EA?k78:"internalArrayState";G7P=[];l8(G7P,7);Zj=Object.freeze(G7P);var HF={},MG={},Ze6=function(R,A,Y){this.iterable=R;this.mapper=A;this.thisArg=Y};
Ze6.prototype.next=function(){var R=this.iterable.next();R.done||(R.value=this.mapper.call(this.thisArg,R.value));return R};
Ze6.prototype[Symbol.iterator]=function(){return this};
var t2V=Object.freeze({}),SH={};_.w_k=WS(function(R){return R!==null&&R!==void 0});var q6J=WS(function(R){return typeof R==="number"}),eku=WS(function(R){return typeof R==="string"}),dbl=WS(function(R){return typeof R==="boolean"}),uKk=WS(function(R){return R!=null&&typeof R==="object"&&typeof R.then==="function"}),SKk=WS(function(R){return typeof R==="function"}),cV=WS(function(R){return!!R&&(typeof R==="object"||typeof R==="function")});var Llq=typeof _.P3.BigInt==="function"&&typeof _.P3.BigInt(0)==="bigint";var SAI=WS(function(R){return Llq?R>=eW6&&R<=qcP:R[0]==="-"?Rqq(R,LFb):Rqq(R,dZI)}),LFb=Number.MIN_SAFE_INTEGER.toString(),eW6=Llq?BigInt(Number.MIN_SAFE_INTEGER):void 0,dZI=Number.MAX_SAFE_INTEGER.toString(),qcP=Llq?BigInt(Number.MAX_SAFE_INTEGER):void 0;var RZV=typeof Uint8Array.prototype.slice==="function",b8=0,pD=0,P86;var ii,OW,qG,Ng,sAI;ii=typeof BigInt==="function"?BigInt.asIntN:void 0;_.VN=typeof BigInt==="function"?BigInt.asUintN:void 0;OW=Number.isSafeInteger;qG=Number.isFinite;Ng=Math.trunc;sAI=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var MGl={};var ZDk={},A5J=function(){try{var R=function(){return v6l(Map,[],this.constructor)};
_.H(R,Map);iu(new R);return!1}catch(A){return!0}}(),VT=function(){this.JSC$8831_map_=new Map};
_.l=VT.prototype;_.l.get=function(R){return this.JSC$8831_map_.get(R)};
_.l.set=function(R,A){this.JSC$8831_map_.set(R,A);this.size=this.JSC$8831_map_.size;return this};
_.l.delete=function(R){R=this.JSC$8831_map_.delete(R);this.size=this.JSC$8831_map_.size;return R};
_.l.clear=function(){this.JSC$8831_map_.clear();this.size=this.JSC$8831_map_.size};
_.l.has=function(R){return this.JSC$8831_map_.has(R)};
_.l.entries=function(){return this.JSC$8831_map_.entries()};
_.l.keys=function(){return this.JSC$8831_map_.keys()};
_.l.values=function(){return this.JSC$8831_map_.values()};
_.l.forEach=function(R,A){return this.JSC$8831_map_.forEach(R,A)};
VT.prototype[Symbol.iterator]=function(){return this.entries()};
var jG=function(){if(A5J)return Object.setPrototypeOf(VT.prototype,Map.prototype),Object.defineProperties(VT.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),VT;var R=function(){return v6l(Map,[],this.constructor)};
_.H(R,Map);return R}(),$n=function(R,A,Y,P){Y=Y===void 0?C8S:Y;
P=P===void 0?C8S:P;var E=jG.call(this)||this;E.arrayState=R[_.zN]|0;E.valueCtor=A;E.keyToApi=Y;E.valueToApi=E.valueCtor?oZV:P;for(var z=0;z<R.length;z++){var c=R[z],M=Y(c[0],!1,!0),N=c[1];A?N===void 0&&(N=null):N=P(c[1],!1,!0,void 0,void 0,E.arrayState);jG.prototype.set.call(E,M,N)}return E};
_.H($n,jG);var YII=function(R){if(R.arrayState&2)throw Error("N");},vnk=function(R){return Array.from(jG.prototype.entries.call(R))};
_.l=$n.prototype;_.l.clear=function(){YII(this);jG.prototype.clear.call(this)};
_.l.delete=function(R){YII(this);return jG.prototype.delete.call(this,this.keyToApi(R,!0,!1))};
_.l.entries=function(){if(this.valueCtor){var R=jG.prototype.keys.call(this);R=new Ze6(R,kNk,this)}else R=jG.prototype.entries.call(this);return R};
_.l.values=function(){if(this.valueCtor){var R=jG.prototype.keys.call(this);R=new Ze6(R,$n.prototype.get,this)}else R=jG.prototype.values.call(this);return R};
_.l.forEach=function(R,A){this.valueCtor?jG.prototype.forEach.call(this,function(Y,P,E){R.call(A,E.get(P),P,E)}):jG.prototype.forEach.call(this,R,A)};
_.l.set=function(R,A){YII(this);R=this.keyToApi(R,!0,!1);return R==null?this:A==null?(jG.prototype.delete.call(this,R),this):jG.prototype.set.call(this,R,this.valueToApi(A,!0,!0,this.valueCtor,!1,this.arrayState))};
_.l.has=function(R){return jG.prototype.has.call(this,this.keyToApi(R,!1,!1))};
_.l.get=function(R){R=this.keyToApi(R,!1,!1);var A=jG.prototype.get.call(this,R);if(A!==void 0){var Y=this.valueCtor;return Y?(Y=this.valueToApi(A,!1,!0,Y,this.callToMutableOnAccess,this.arrayState),Y!==A&&jG.prototype.set.call(this,R,Y),Y):A}};
$n.prototype[Symbol.iterator]=function(){return this.entries()};
$n.prototype.toJSON=void 0;var GNV;var Enq=function(){},YWk=function(R,A){for(var Y in R)!isNaN(Y)&&A(R,+Y,R[Y])},zQl=function(R){var A=new Enq;
YWk(R,function(Y,P,E){A[P]=oA(E)});
A.reviveUnknownFields=R.reviveUnknownFields;return A},eqI={reviveIntoImmutable:!0};var PiI;var sHV,Nok;var PYP,eG,mx,nK,E3u,n7,vj,zZk,iTJ,Uk,lDJ,$B,I2,K7;PYP=_.jH(0);_.JR={};_.yT=function(R,A,Y,P,E){A=eG(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A,Y,E);if(A!==null||P&&R.noLegacyNull!==MG)return A};
eG=function(R,A,Y,P){if(A===-1)return null;var E=A+(Y?0:-1),z=R.length-1;if(!(z<1+(Y?0:-1))){if(E>=z){var c=R[z];if(c!=null&&typeof c==="object"&&c.constructor===Object){Y=c[A];var M=!0}else if(E===z)Y=c;else return}else Y=R[E];if(P&&Y!=null){P=P(Y);if(P==null)return P;if(!Object.is(P,Y))return M?c[A]=P:R[E]=P,P}return Y}};
_.Mz=function(R,A,Y,P){h9(R);var E=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;kn(E,E[_.zN]|0,A,Y,P);return R};
_.mh=function(R,A,Y){R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jHk(R,R[_.zN]|0,A,Y)!==void 0};
_.Tx=function(R,A,Y,P){var E=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return jHk(E,E[_.zN]|0,A,nK(R,P,Y))!==void 0};
_.M_=function(R){return R===t2V?2:4};
_.QT=function(R,A){R=_.yT(R,A,void 0,void 0,$gk);return R==null?_.Dz():R};
mx=function(R,A,Y,P){h9(R);var E=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=E[_.zN]|0;if(P==null){var c=Ijk(E);if(KmI(c,E,z,Y)===A)c.set(Y,0);else return R}else z=Wml(E,z,Y,A);kn(E,z,A,P);return R};
_.vb=function(R,A,Y,P){var E=R[_.zN]|0,z=IA(E);E=Wml(R,E,Y,A,z);kn(R,E,A,P,z)};
nK=function(R,A,Y){return _.gA(R,A)===Y?Y:-1};
_.gA=function(R,A){R=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return KmI(Ijk(R),R,void 0,A,void 0)};
E3u=function(R,A,Y){var P=R[_.zN]|0,E=IA(P),z=eG(R,Y,E);if(z!=null&&z[nf]===HF){if(!sA(z))return Cf(z),z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(z)&&(c=z);if(c){var M=c[_.zN]|0;M&2&&(c=BF(c,M))}c=FY(c,A,!0);c!==z&&kn(R,P,Y,c,E);return c};
_.cG=function(R,A,Y,P){var E=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=E[_.zN]|0;A=jHk(E,z,A,Y,P);if(A==null)return A;z=E[_.zN]|0;if(!sA(R,z)){var c=hqV(A);c!==A&&(Cf(R)&&(E=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=E[_.zN]|0),A=c,z=kn(E,z,Y,A,P),oH(E,z))}return A};
_.OU=function(R,A,Y,P){var E=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bfJ(R,E,E[_.zN]|0,A,Y,P,!1,!0)};
_.DE=function(R,A,Y,P){Y=fjV(Y);_.Mz(R,A,Y,P);Y&&!sA(Y)&&oH(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return R};
_.Ug=function(R,A,Y,P){P=fjV(P);mx(R,A,Y,P);P&&!sA(P)&&oH(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return R};
n7=function(R,A,Y){h9(R);var P=R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=P[_.zN]|0;if(Y==null)return kn(P,E,A),R;for(var z=Y===Zj?7:Y[_.zN]|0,c=z,M=ui(z),N=M||Object.isFrozen(Y),y=!0,m=!0,T=0;T<Y.length;T++){var Q=Y[T];M||(Q=sA(Q),y&&(y=!Q),m&&(m=Q))}M||(z=y?13:5,z=m?z&-4097:z|4096);N&&z===c||(Y=oA(Y),c=0,z=t9(z,E));z!==c&&l8(Y,z);E=kn(P,E,A,Y);2&z||!(4096&z||16&z)||oH(P,E);return R};
vj=function(R,A,Y,P){Fml(R,A,Y,P);return R};
zZk=function(R,A,Y){Fml(R,A,Hb,void 0,Y,1,!0);return R};
_.rA=function(R,A,Y){R=_.yT(R,A,void 0,Y);A=typeof R;R=R==null?R:A==="bigint"?_.jH((0,_.VN)(64,R)):_.LD(R)?A==="string"?_.XSV(R):_.UGk(R):void 0;return R};
_.D0=function(R,A){var Y=Y===void 0?!1:Y;var P;return(P=_.MH3(_.yT(R,A)))!=null?P:Y};
_.sU=function(R,A,Y){Y=Y===void 0?0:Y;var P;return(P=_.EW(_.yT(R,A)))!=null?P:Y};
iTJ=function(R,A){var Y=Y===void 0?0:Y;R=_.VHJ(_.yT(R,A));return R!=null?R:Y};
Uk=function(R,A,Y){Y=Y===void 0?PYP:Y;var P;return(P=_.WSk(_.yT(R,A)))!=null?P:Y};
lDJ=function(R){var A=A===void 0?PYP:A;var Y;return(Y=_.rA(R,23))!=null?Y:A};
$B=function(R,A){var Y=Y===void 0?0:Y;var P;return(P=_.yT(R,A,void 0,void 0,_.Zz))!=null?P:Y};
_.X1=function(R,A,Y,P){Y=Y===void 0?"":Y;var E;return(E=_.vF(_.yT(R,A,P)))!=null?E:Y};
_.SR=function(R,A){var Y=Y===void 0?0:Y;var P;return(P=_.Yn(_.yT(R,A)))!=null?P:Y};
I2=function(R,A){var Y=Y===void 0?"0":Y;R=KSI(_.yT(R,A),!0);return R!=null?R:Y};
K7=function(R,A,Y){return _.X1(R,nK(R,Y,A))};
_.Wb=function(R,A,Y,P){return _.cG(R,A,nK(R,P,Y),void 0)};
_.rz=function(R,A){return _.vF(_.yT(R,A,void 0,_.JR))};
_.y6=function(R,A,Y){return _.Mz(R,A,ODJ(Y))};
_.j0=function(R,A,Y){return _.Lf(R,A,ODJ(Y),!1)};
_.jR=function(R,A,Y){return _.Mz(R,A,_.PF(Y))};
_.r5=function(R,A,Y){return _.Mz(R,A,cF(Y))};
_.IS=function(R,A,Y){return _.Mz(R,A,QN(Y))};
_.o9=function(R,A,Y,P){return _.Lf(R,A,QN(Y),"",P)};
_.OF=function(R,A,Y){return _.Mz(R,A,Y==null?Y:_.df(Y))};
_.bu=function(R,A,Y){return _.Lf(R,A,Y==null?Y:_.df(Y),0)};var Px=function(R,A,Y){this.buffer=R;if(Y&&!A)throw Error();this.JSC$8843_isImmutable=A};var xOk=function(R,A,Y,P){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8846_start_=0;this.init(R,A,Y,P)},f7,OTS,Mgk,sx8,NXV,Vgb,OqJ,c53;
_.l=xOk.prototype;_.l.init=function(R,A,Y,P){var E=P===void 0?{}:P;P=E.aliasBytesFields===void 0?!1:E.aliasBytesFields;E=E.treatNewDataAsImmutable===void 0?!1:E.treatNewDataAsImmutable;this.aliasBytesFields=P;this.treatNewDataAsImmutable=E;R&&(R=ajk(R,this.treatNewDataAsImmutable),this.bytes_=R.buffer,this.bytesAreImmutable_=R.JSC$8843_isImmutable,this.JSC$8846_start_=A||0,this.end_=Y!==void 0?this.JSC$8846_start_+Y:this.bytes_.length,this.cursor_=this.JSC$8846_start_)};
_.l.free=function(){this.clear();c53.length<100&&c53.push(this)};
_.l.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8846_start_=0;this.aliasBytesFields=!1};
_.l.reset=function(){this.cursor_=this.JSC$8846_start_};
_.l.atEnd=function(){return this.cursor_==this.end_};
_.p7=function(R,A){var Y=0,P=0,E=0,z=R.bytes_,c=R.cursor_;do{var M=z[c++];Y|=(M&127)<<E;E+=7}while(E<32&&M&128);if(E>32)for(P|=(M&127)>>4,E=3;E<32&&M&128;E+=7)M=z[c++],P|=(M&127)<<E;f7(R,c);if(!(M&128))return A(Y>>>0,P>>>0);throw Error();};
f7=function(R,A){R.cursor_=A;if(A>R.end_)throw Error();};
_.F1=function(R){var A=R.bytes_,Y=R.cursor_,P=A[Y++],E=P&127;if(P&128&&(P=A[Y++],E|=(P&127)<<7,P&128&&(P=A[Y++],E|=(P&127)<<14,P&128&&(P=A[Y++],E|=(P&127)<<21,P&128&&(P=A[Y++],E|=P<<28,P&128&&A[Y++]&128&&A[Y++]&128&&A[Y++]&128&&A[Y++]&128&&A[Y++]&128)))))throw Error();f7(R,Y);return E};
_.Bb=function(R){var A=R.bytes_,Y=R.cursor_,P=A[Y],E=A[Y+1],z=A[Y+2];A=A[Y+3];f7(R,R.cursor_+4);return(P<<0|E<<8|z<<16|A<<24)>>>0};
OTS=function(R){var A=_.Bb(R);R=_.Bb(R);return zq6(A,R)};
Mgk=function(R){var A=_.Bb(R);R=(A>>31)*2+1;var Y=A>>>23&255;A&=8388607;return Y==255?A?NaN:R*Infinity:Y==0?R*1.401298464324817E-45*A:R*Math.pow(2,Y-150)*(A+8388608)};
sx8=function(R){var A=_.Bb(R),Y=_.Bb(R);R=(Y>>31)*2+1;var P=Y>>>20&2047;A=4294967296*(Y&1048575)+A;return P==2047?A?NaN:R*Infinity:P==0?R*4.9E-324*A:R*Math.pow(2,P-1075)*(A+4503599627370496)};
NXV=function(R){for(var A=0,Y=R.cursor_,P=Y+10,E=R.bytes_;Y<P;){var z=E[Y++];A|=z;if((z&128)===0)return f7(R,Y),!!(A&127)}throw Error();};
Vgb=function(R,A){if(A<0)throw Error();var Y=R.cursor_;A=Y+A;if(A>R.end_)throw Error();R.cursor_=A;return Y};
OqJ=function(R,A){if(A==0)return _.Dz();var Y=Vgb(R,A);R.aliasBytesFields&&R.bytesAreImmutable_?Y=R.bytes_.subarray(Y,Y+A):(R=R.bytes_,A=Y+A,Y=Y===A?new Uint8Array(0):RZV?R.slice(Y,A):new Uint8Array(R.subarray(Y,A)));return Y.length==0?_.Dz():new TN(Y,rf)};
c53=[];var y5u=function(R,A,Y,P){if(c53.length){var E=c53.pop();E.init(R,A,Y,P);R=E}else R=new xOk(R,A,Y,P);this.decoder_=R;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;J5S(this,P)},J5S=function(R,A){A=A===void 0?{}:A;
R.discardUnknownFields=A.discardUnknownFields===void 0?!1:A.discardUnknownFields},NZk=function(R,A,Y,P){if(mOu.length){var E=mOu.pop();
J5S(E,P);E.decoder_.init(R,A,Y,P);return E}return new y5u(R,A,Y,P)},lES,cb3,a2,TXk,mOu;
y5u.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;mOu.length<100&&mOu.push(this)};
y5u.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
lES=function(R){if(R.decoder_.atEnd())return!1;R.fieldCursor_=R.decoder_.cursor_;var A=_.F1(R.decoder_)>>>0,Y=A>>>3;A&=7;if(!(A>=0&&A<=5))throw Error();if(Y<1)throw Error();R.nextField_=Y;R.nextWireType_=A;return!0};
cb3=function(R){switch(R.nextWireType_){case 0:R.nextWireType_!=0?cb3(R):NXV(R.decoder_);break;case 1:R=R.decoder_;f7(R,R.cursor_+8);break;case 2:if(R.nextWireType_!=2)cb3(R);else{var A=_.F1(R.decoder_)>>>0;R=R.decoder_;f7(R,R.cursor_+A)}break;case 5:R=R.decoder_;f7(R,R.cursor_+4);break;case 3:A=R.nextField_;do{if(!lES(R))throw Error();if(R.nextWireType_==4){if(R.nextField_!=A)throw Error();break}cb3(R)}while(1);break;default:throw Error();}};
a2=function(R,A,Y){var P=R.decoder_.end_,E=_.F1(R.decoder_)>>>0;E=R.decoder_.cursor_+E;var z=E-P;z<=0&&(R.decoder_.end_=E,Y(A,R,void 0,void 0,void 0),z=E-R.decoder_.cursor_);if(z)throw Error();R.decoder_.cursor_=E;R.decoder_.end_=P;return A};
TXk=function(R){var A=_.F1(R.decoder_)>>>0;R=R.decoder_;var Y=Vgb(R,A);R=R.bytes_;if(eTV){var P=R,E;(E=uR8)||(E=uR8=new TextDecoder("utf-8",{fatal:!0}));A=Y+A;P=Y===0&&A===P.length?P:P.subarray(Y,A);try{var z=E.decode(P)}catch(y){if(w78===void 0){try{E.decode(new Uint8Array([128]))}catch(m){}try{E.decode(new Uint8Array([97])),w78=!0}catch(m){w78=!1}}!w78&&(uR8=void 0);throw y;}}else{z=Y;A=z+A;Y=[];for(var c=null,M,N;z<A;)M=R[z++],M<128?Y.push(M):M<224?z>=A?Yq():(N=R[z++],M<194||(N&192)!==128?(z--,
Yq()):Y.push((M&31)<<6|N&63)):M<240?z>=A-1?Yq():(N=R[z++],(N&192)!==128||M===224&&N<160||M===237&&N>=160||((E=R[z++])&192)!==128?(z--,Yq()):Y.push((M&15)<<12|(N&63)<<6|E&63)):M<=244?z>=A-2?Yq():(N=R[z++],(N&192)!==128||(M<<28)+(N-144)>>30!==0||((E=R[z++])&192)!==128||((P=R[z++])&192)!==128?(z--,Yq()):(M=(M&7)<<18|(N&63)<<12|(E&63)<<6|P&63,M-=65536,Y.push((M>>10&1023)+55296,(M&1023)+56320))):Yq(),Y.length>=8192&&(c=Rk3(c,Y),Y.length=0);z=Rk3(c,Y)}return z};
_.Qxk=function(R){var A=_.F1(R.decoder_)>>>0;return OqJ(R.decoder_,A)};
_.v3k=function(R,A,Y){var P=_.F1(R.decoder_)>>>0;for(P=R.decoder_.cursor_+P;R.decoder_.cursor_<P;)Y.push(A(R.decoder_))};
mOu=[];var g3P=function(R,A){this.JSC$8853_lo=R>>>0;this.JSC$8853_hi=A>>>0},n3q=function(R){R=BigInt.asUintN(64,R);
return new g3P(Number(R&BigInt(4294967295)),Number(R>>BigInt(32)))},on8=function(R){if(!R)return HT3||(HT3=new g3P(0,0));
if(!/^\d+$/.test(R))return null;CD(R);return new g3P(b8,pD)},HT3,ULq=function(R,A){this.JSC$8855_lo=R>>>0;
this.JSC$8855_hi=A>>>0},CiS=function(R){if(!R)return r5J||(r5J=new ULq(0,0));
if(!/^-?\d+$/.test(R))return null;CD(R);return new ULq(b8,pD)},r5J;var C7=function(){this.JSC$8857_buffer_=[]},Jb,mo,DOb;
C7.prototype.length=function(){return this.JSC$8857_buffer_.length};
C7.prototype.end=function(){var R=this.JSC$8857_buffer_;this.JSC$8857_buffer_=[];return R};
Jb=function(R,A,Y){for(;Y>0||A>127;)R.JSC$8857_buffer_.push(A&127|128),A=(A>>>7|Y<<25)>>>0,Y>>>=7;R.JSC$8857_buffer_.push(A)};
mo=function(R,A){for(;A>127;)R.JSC$8857_buffer_.push(A&127|128),A>>>=7;R.JSC$8857_buffer_.push(A)};
_.$Lk=function(R,A){if(A>=0)mo(R,A);else{for(var Y=0;Y<9;Y++)R.JSC$8857_buffer_.push(A&127|128),A>>=7;R.JSC$8857_buffer_.push(1)}};
DOb=function(R,A){CD(A);iDl(function(Y,P){Jb(R,Y>>>0,P>>>0)})};
C7.prototype.writeUint8=function(R){this.JSC$8857_buffer_.push(R>>>0&255)};
_.V$=function(R,A){R.JSC$8857_buffer_.push(A>>>0&255);R.JSC$8857_buffer_.push(A>>>8&255);R.JSC$8857_buffer_.push(A>>>16&255);R.JSC$8857_buffer_.push(A>>>24&255)};
C7.prototype.writeInt8=function(R){this.JSC$8857_buffer_.push(R>>>0&255)};var UOk,cx,Sgq,WoV,tGu;UOk=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new C7};
cx=function(R,A){A.length!==0&&(R.blocks_.push(A),R.totalLength_+=A.length)};
_.$O3=function(R,A){_.NL(R,A,2);A=R.encoder_.end();cx(R,A);A.push(R.totalLength_);return A};
_.Xnk=function(R,A){var Y=A.pop();for(Y=R.totalLength_+R.encoder_.length()-Y;Y>127;)A.push(Y&127|128),Y>>>=7,R.totalLength_++;A.push(Y);R.totalLength_++};
_.NL=function(R,A,Y){mo(R.encoder_,A*8+Y)};
Sgq=function(R,A,Y){if(Y!=null)switch(k0k(Y),_.NL(R,A,1),typeof Y){case "number":R=R.encoder_;AEb(Y);_.V$(R,b8);_.V$(R,pD);break;case "bigint":Y=n3q(Y);R=R.encoder_;A=Y.JSC$8853_hi;_.V$(R,Y.JSC$8853_lo);_.V$(R,A);break;default:Y=on8(Y),R=R.encoder_,A=Y.JSC$8853_hi,_.V$(R,Y.JSC$8853_lo),_.V$(R,A)}};
WoV=function(R,A,Y){_.NL(R,A,2);mo(R.encoder_,Y.length);cx(R,R.encoder_.end());cx(R,Y)};
tGu=function(R,A,Y,P){Y!=null&&(A=_.$O3(R,A),P(Y,R),_.Xnk(R,A))};var G0k,SI3,IDV,KtJ,Wt8,bT6,fD6,FtV,BXu;G0k=Eg();SI3=Eg();IDV=Eg();KtJ=Eg();Wt8=Eg();_.jxl=Eg();_.hR=Eg();bT6=Eg();fD6=Eg();_.pnJ=Eg();FtV=Eg();BXu=Eg();_.aDP=Eg();_.CYk=Eg();_.lb=function(R,A,Y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R,A,Y)};
_.lb.prototype.toJSON=function(){return ff(this)};
_.lb.prototype.serialize=function(R){return JSON.stringify(ff(this,R))};
var hbk=function(R,A){if(A==null||A=="")return new R;A=JSON.parse(A);if(!Array.isArray(A))throw Error("V");return new R(kSk(A))};
_.lb.prototype.getExtension=function(R){dGu(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,R.fieldIndex);qAu(this,R.fieldIndex);return R.ctor?R.isRepeated?R.getExtensionFn(this,R.ctor,R.fieldIndex,_.M_(),R.JSC$8868_hasMessageId):R.getExtensionFn(this,R.ctor,R.fieldIndex,R.JSC$8868_hasMessageId):R.isRepeated?R.getExtensionFn(this,R.fieldIndex,_.M_(),R.JSC$8868_hasMessageId):R.getExtensionFn(this,R.fieldIndex,R.defaultValue,R.JSC$8868_hasMessageId)};
_.lb.prototype.clone=function(){var R=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,A=R[_.zN]|0;return HfJ(this,R,A)?nnI(this,R,!0):new this.constructor(BF(R,A,!1))};
_.lb.prototype[nf]=HF;_.lb.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var ze=function(R,A,Y){this.$$binaryReaderFn=R;this.$$binaryWriterFn=A;R=XY(G0k);this.$$isMsg=!!R&&Y===R||!1},dg6=Zf6(function(R,A,Y,P,E){if(R.nextWireType_!==2)return!1;
a2(R,E3u(A,P,Y),E);return!0},uYJ),RbJ=Zf6(function(R,A,Y,P,E){if(R.nextWireType_!==2)return!1;
a2(R,E3u(A,P,Y),E);return!0},uYJ),JbJ=Symbol(),PbP=Symbol(),iqu=Symbol(),TZk=Symbol(),Mck=Symbol(),eQk,qWP;var BZV,hZ8,o2,o3S,kWI,GWS,ZTP,Gx,tgV,Z0,wnq,uTk,eZu,qI6,Lt6,dOk,RNS,Yj3,Pvk,EYI,zNS;BZV=function(R,A){var Y=new UOk;QRk(R.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Y,ib(JbJ,VcI,yb6,A));cx(Y,Y.encoder_.end());R=new Uint8Array(Y.totalLength_);A=Y.blocks_;for(var P=A.length,E=0,z=0;z<P;z++){var c=A[z];R.set(c,E);E+=c.length}Y.blocks_=[R];return R};
hZ8=Zf6(function(R,A,Y,P,E){if(R.nextWireType_!==2)return!1;R=a2(R,FY([void 0,void 0],P,!0),E);P=A[_.zN]|0;E=IA(P);if(P&2)throw Error();var z=eG(A,Y,E);z instanceof $n?(z.arrayState&2)!=0?(z=vnk(z),z.push(R),kn(A,P,Y,z,E)):(A=z,Y=A.keyToApi(R[0],!1,!0),R=R[1],R=A.valueCtor?R===void 0?null:R:A.valueToApi(R,!1,!0,void 0,!1,A.arrayState),jG.prototype.set.call(A,Y,R)):Array.isArray(z)?((z[_.zN]|0)&2&&(z=XFu(z),kn(A,P,Y,z,E)),z.push(R)):kn(A,P,Y,[R],E);return!0},function(R,A,Y,P,E){if(A instanceof $n)A.forEach(function(M,
N){tGu(R,Y,FY([N,
M],P,!1),E)});
else if(Array.isArray(A))for(var z=0;z<A.length;z++){var c=A[z];Array.isArray(c)&&tGu(R,Y,FY(c,P,!1),E)}});
o2=_.ML(function(R,A,Y){if(R.nextWireType_!==1)return!1;_.sg(A,Y,sx8(R.decoder_));return!0},rbb,BXu);
o3S=_.ML(function(R,A,Y,P){if(R.nextWireType_!==1)return!1;_.vb(A,Y,P,sx8(R.decoder_));return!0},rbb,BXu);
kWI=_.ML(function(R,A,Y){if(R.nextWireType_!==5)return!1;_.sg(A,Y,Mgk(R.decoder_));return!0},DLS,FtV);
GWS=_.HqV(function(R,A,Y){if(R.nextWireType_!==5&&R.nextWireType_!==2)return!1;A=_.RR(A,A[_.zN]|0,Y);R.nextWireType_==2?_.v3k(R,Mgk,A):A.push(Mgk(R.decoder_));return!0},function(R,A,Y){A=_.nDk(_.Zz,A,!0);
if(A!=null&&A.length)for(_.NL(R,Y,2),mo(R.encoder_,A.length*4),Y=0;Y<A.length;Y++){var P=R.encoder_;EZk(A[Y]);_.V$(P,b8)}},FtV);
ZTP=_.ML(function(R,A,Y,P){if(R.nextWireType_!==5)return!1;_.vb(A,Y,P,Mgk(R.decoder_));return!0},DLS,FtV);
_.kB=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;_.sg(A,Y,_.p7(R.decoder_,aA));return!0},_.y$,_.hR);
Gx=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;R=_.p7(R.decoder_,aA);_.sg(A,Y,R===0?void 0:R);return!0},_.y$,_.hR);
tgV=_.ML(function(R,A,Y,P){if(R.nextWireType_!==0)return!1;_.vb(A,Y,P,_.p7(R.decoder_,aA));return!0},_.y$,_.hR);
Z0=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;_.sg(A,Y,_.p7(R.decoder_,zq6));return!0},function(R,A,Y){A=bDk(A);
if(A!=null&&(k0k(A),A!=null))switch(_.NL(R,Y,0),typeof A){case "number":R=R.encoder_;Fb(A);Jb(R,b8,pD);break;case "bigint":Y=n3q(A);Jb(R.encoder_,Y.JSC$8853_lo,Y.JSC$8853_hi);break;default:Y=on8(A),Jb(R.encoder_,Y.JSC$8853_lo,Y.JSC$8853_hi)}},bT6);
_.tR=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;_.sg(A,Y,_.F1(R.decoder_));return!0},Xxu,KtJ);
wnq=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;R=_.F1(R.decoder_);_.sg(A,Y,R===0?void 0:R);return!0},Xxu,KtJ);
uTk=_.ML(function(R,A,Y,P){if(R.nextWireType_!==0)return!1;_.vb(A,Y,P,_.F1(R.decoder_));return!0},Xxu,KtJ);
eZu=_.ML(function(R,A,Y){if(R.nextWireType_!==1)return!1;_.sg(A,Y,OTS(R.decoder_));return!0},_.IEk,_.pnJ);
qI6=_.HqV(function(R,A,Y){if(R.nextWireType_!==1&&R.nextWireType_!==2)return!1;A=_.RR(A,A[_.zN]|0,Y);R.nextWireType_==2?_.v3k(R,OTS,A):A.push(OTS(R.decoder_));return!0},function(R,A,Y){A=_.nDk(bDk,A,!1);
if(A!=null)for(var P=0;P<A.length;P++)Sgq(R,Y,A[P])},_.pnJ);
_.wA=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;_.sg(A,Y,NXV(R.decoder_));return!0},KoP,SI3);
_.uu=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;R=NXV(R.decoder_);_.sg(A,Y,R===!1?void 0:R);return!0},KoP,SI3);
Lt6=_.ML(function(R,A,Y,P){if(R.nextWireType_!==0)return!1;_.vb(A,Y,P,NXV(R.decoder_));return!0},KoP,SI3);
_.eR=_.ML(function(R,A,Y){if(R.nextWireType_!==2)return!1;_.sg(A,Y,TXk(R));return!0},jR3,IDV);
_.qc=_.ML(function(R,A,Y){if(R.nextWireType_!==2)return!1;R=TXk(R);_.sg(A,Y,R===""?void 0:R);return!0},jR3,IDV);
_.L7=_.ML(function(R,A,Y,P){if(R.nextWireType_!==2)return!1;_.vb(A,Y,P,TXk(R));return!0},jR3,IDV);
dOk=_.HqV(function(R,A,Y){if(R.nextWireType_!==2)return!1;R=TXk(R);_.RR(A,A[_.zN]|0,Y).push(R);return!0},function(R,A,Y){A=_.nDk(_.vF,A,!0);
if(A!=null)for(var P=0;P<A.length;P++){var E=R,z=Y,c=A[P];c!=null&&WoV(E,z,EqV(c))}},IDV);
RNS=void 0;RNS=RNS===void 0?G0k:RNS;_.dA=new ze(function(R,A,Y,P,E){if(R.nextWireType_!==2)return!1;P=FY(void 0,P,!0);_.RR(A,A[_.zN]|0,Y).push(P);a2(R,P,E);return!0},function(R,A,Y,P,E){if(Array.isArray(A))for(var z=0;z<A.length;z++)bqP(R,A[z],Y,P,E)},RNS);
_.R7=Zf6(function(R,A,Y,P,E,z){if(R.nextWireType_!==2)return!1;var c=A[_.zN]|0;Wml(A,c,z,Y,IA(c));A=E3u(A,P,Y);a2(R,A,E);return!0},bqP);
_.Apk=_.ML(function(R,A,Y){if(R.nextWireType_!==2)return!1;_.sg(A,Y,_.Qxk(R));return!0},_.fEl,_.aDP);
Yj3=_.ML(function(R,A,Y,P){if(R.nextWireType_!==2)return!1;_.vb(A,Y,P,_.Qxk(R));return!0},_.fEl,_.aDP);
Pvk=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;_.sg(A,Y,_.F1(R.decoder_)>>>0);return!0},pxb,Wt8);
EYI=_.ML(function(R,A,Y,P){if(R.nextWireType_!==0)return!1;_.vb(A,Y,P,_.F1(R.decoder_)>>>0);return!0},pxb,Wt8);
_.A8=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;_.sg(A,Y,_.F1(R.decoder_));return!0},_.FoJ,_.CYk);
_.Yl=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;R=_.F1(R.decoder_);_.sg(A,Y,R===0?void 0:R);return!0},_.FoJ,_.CYk);
zNS=_.ML(function(R,A,Y){if(R.nextWireType_!==0)return!1;_.sg(A,Y,_.p7(R.decoder_,lzS));return!0},function(R,A,Y){A=jAl(A);
if(A!=null&&(hQJ(A),A!=null))switch(_.NL(R,Y,0),typeof A){case "number":R=R.encoder_;Y=A;A=Y<0;Y=Math.abs(Y)*2;AEb(Y);Y=b8;var P=pD;A&&(Y==0?P==0?P=Y=4294967295:(P--,Y=4294967295):Y--);b8=Y;pD=P;Jb(R,b8,pD);break;case "bigint":R=R.encoder_;A=A<<BigInt(1)^A>>BigInt(63);b8=Number(BigInt.asUintN(32,A));pD=Number(BigInt.asUintN(32,A>>BigInt(32)));Jb(R,b8,pD);break;default:DOb(R.encoder_,A)}},fD6);var x58=function(){var R=i8P,A=lTk;this.fieldIndex=175237375;this.ctor=A;this.isRepeated=0;this.getExtensionFn=_.cG;this.defaultValue=void 0;this.JSC$8868_hasMessageId=R.messageId!=null?SH:void 0};
x58.prototype.register=function(){iu(this)};var cpu=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(cpu,_.lb);var O8k=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(O8k,_.lb);var Geq=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Geq,_.lb);var Mhk=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Mhk,_.lb);var sh3=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(sh3,_.lb);var NN6=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(NN6,_.lb);var VhP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(VhP,_.lb);VhP.prototype.getData=function(){return _.QT(this,2)};var JpP=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(JpP,_.lb);var ypS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(ypS,_.lb);ypS.prototype.getStyle=function(){return _.cG(this,cpu,1)};var rZ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(rZ,_.lb);rZ.prototype.getPayloadCase=function(){return _.gA(this,$D)};
rZ.prototype.getStyle=function(){return _.Wb(this,ypS,6,$D)};
var m5k=function(){var R=new rZ,A=new sh3;return _.Ug(R,7,$D,A)},TNk=function(){var R=new rZ,A=new NN6;
return _.Ug(R,8,$D,A)},$D=[1,
2,3,4,5,6,7,8];var Qh6=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Qh6,_.lb);var vYk=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(vYk,_.lb);var gY3=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(gY3,_.lb);var nYk=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(nYk,_.lb);var H88=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(H88,_.lb);var rpu=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(rpu,_.lb);var D5P=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(D5P,_.lb);var U53=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(U53,_.lb);U53.prototype.getData=function(){return _.QT(this,2)};var $58=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H($58,_.lb);var keJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(keJ,_.lb);keJ.prototype.getPayloadCase=function(){return _.gA(this,Ps)};
var Ps=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var E3=function(R,A){R=Error.call(this,R);this.message=R.message;"stack"in R&&(this.stack=R.stack);this.code=A===void 0?2:A};
_.H(E3,Error);var XWk=Promise;var SjP=function(R){this.channelPromise=R};
SjP.prototype.send=function(R,A,Y){this.channelPromise.then(function(P){P.send(R,A,Y)})};var ITu=function(R,A){this.data=R;this.channel=A};
ITu.prototype.reply=function(R,A,Y){this.channel.send(R,A,Y)};var KGu=function(R){this.JSC$8934_port_=R};
KGu.prototype.send=function(R,A,Y){Y=Y===void 0?[]:Y;var P=new MessageChannel;WGk(P.port1,A);this.JSC$8934_port_.postMessage(R,[P.port2].concat(Y))};
var jhk=function(R,A){WGk(R,A);return new KGu(R)},WGk=function(R,A){A&&(R.onmessage=function(Y){A(new ITu(Y.data,jhk(Y.ports[0])))})};var b8S=function(R){this.verifier_=R};
b8S.prototype.verify=function(R){return this.verifier_(R)};
var fTu=function(R){var A=Object.create(null);(typeof R==="string"?[R]:R).forEach(function(Y){if(Y==="null")throw Error("X");A[Y]=!0});
return function(Y){return A[Y]===!0}};_.pWk=function(){if(!_.P3.addEventListener||!Object.defineProperty)return!1;var R=!1,A=Object.defineProperty({},"passive",{get:function(){R=!0}});
try{var Y=function(){};
_.P3.addEventListener("test",Y,A);_.P3.removeEventListener("test",Y,A)}catch(P){}return R}();var FGJ;_.zs=function(R){var A=R.destination;var Y=R.iframe;var P=R.origin;var E=R.channelName===void 0?"ZNWN1d":R.channelName;var z=R.onMessage===void 0?void 0:R.onMessage;R=R.onEstablished===void 0?void 0:R.onEstablished;return FGJ({destination:A,getSource:function(){return Y.contentWindow},
originVerifier:P instanceof b8S?P:typeof P==="function"?new b8S(P):new b8S(fTu(P)),channelName:E,onMessage:z,onEstablished:R})};
FGJ=function(R){var A=R.destination;var Y=R.getSource;var P=R.originVerifier;var E=R.token===void 0?void 0:R.token;var z=R.channelName;var c=R.onMessage===void 0?void 0:R.onMessage;var M=R.onEstablished===void 0?void 0:R.onEstablished;return new SjP(new XWk(function(N,y){var m=function(T){T.source&&T.source===Y()&&P.verify(T.origin)&&(T.data.n||T.data)===z&&(A.removeEventListener("message",m,!1),E&&T.data.t!==E?y(Error("Y`"+z+"`"+E+"`"+T.data.t)):(N(jhk(T.ports[0],c)),M&&M(T)))};
A.addEventListener("message",m,!1)}))};var BNS=function(R){try{R()}catch(A){E6(A)}};var CvJ=function(R){var A=this;var Y=R.getMessageType;var P=R.onUnregisteredMessage===void 0?function(){}:R.onUnregisteredMessage;
var E=R.onBeforeRegisteredMessage===void 0?function(){}:R.onBeforeRegisteredMessage;
R=R.onAfterRegisteredMessage===void 0?function(){}:R.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=Y;this.onUnregisteredMessage_=P;this.onBeforeRegisteredMessage_=E;this.onAfterRegisteredMessage_=R;this.onMessage=function(z){return aTq(A,z)}};
CvJ.prototype.register=function(R,A){this.registry_.set(R,A);return this};
var aTq=function(R,A){var Y=R.getMessageType_(A.data),P=R.registry_.get(Y);P?(BNS(function(){return R.onBeforeRegisteredMessage_(A,Y)}),BNS(function(){return P(A)}),BNS(function(){return R.onAfterRegisteredMessage_(A,Y)})):BNS(function(){return R.onUnregisteredMessage_(A,Y)})};var hNu=function(R){this.JSC$8951_channel_=R},kw6,GwP;
hNu.prototype.send=function(R,A,Y){this.JSC$8951_channel_.send(ff(R),A,Y)};
_.oYk=function(R,A){return function(Y){var P=new R(Y.data);return A(new ITu(P,Y.channel))}};
kw6=function(R){return function(A){return R(new ITu(A.data,new hNu(A.channel)))}};
GwP=function(R,A){return kw6(_.oYk(R,A))};var Z8I=function(R,A,Y,P){this.registry=R;this.delegate=A;this.receiveMessageConstructor=Y;this.createInitMessage=P;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},oDS=function(R){var A=new CvJ({getMessageType:R.getPayloadCase});
return new Z8I(A,new hNu(_.zs({iframe:R.child,destination:window,origin:R.origin,channelName:R.channelName,onMessage:GwP(R.receiveMessageConstructor,A.onMessage)})),R.receiveMessageConstructor,R.createInitMessage)},thk=function(R,A){R.createInitMessage=A};
Z8I.prototype.send=function(R){if(!this.initialised)throw new E3("Attempted to send a message before initialisation.");this.delegate.send(R)};
var wWk=function(R,A){return _.O(function(Y){if(!R.initialised)throw new E3("Attempted to send a message before initialisation.");return Y.return(new Promise(function(P){R.delegate.send(A,GwP(R.receiveMessageConstructor,P))}))})};
Z8I.prototype.init=function(){var R=this;return _.O(function(A){if(R.initialised)throw new E3("Attempted to initialise twice. The SDK can only be initialised once.");if(R.createInitMessage!==void 0){var Y=R.delegate,P=Y.send,E=R.createInitMessage;var z=new O8k;var c=[].concat(_.py(R.features));z=_.qg(z,1,c,_.df);P.call(Y,E.call(R,z))}R.initialised=!0;_.XH(A)})};
var iK=function(R,A){if(R.initialised)throw new E3('Attempted to set up API "'+A+'" after initialisation. All APIs must be set up before initialising the SDK.');R.features.add(A);return R.registry};
_.Yh.Object.defineProperties(Z8I.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var uaP=function(R){this.channel=R;this.registered=!1};
uaP.prototype.update=function(R){if(this.channel.isInitialised){if(!this.registered)throw new E3("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var A=new rZ;var Y=new Mhk;Y=_.y6(Y,1,R);A=_.Ug(A,2,$D,Y);this.channel.send(A)}else this.register();this.JSC$8965_audioEnabled=R};
uaP.prototype.register=function(){iK(this.channel,1);this.registered=!0};
uaP.prototype.isAudioEnabled=function(){return this.JSC$8965_audioEnabled};var eNu=function(R){this.channel=R};
_.l=eNu.prototype;_.l.onFirstFrameReady=function(R){iK(this.channel,2).register(11,function(A){A=_.Wb(A.data,Qh6,11,Ps);if(!A)throw new E3("Unexpectedly nonexistent GameFirstFrameReadyEvent");R(_.X1(A,1))})};
_.l.onReady=function(R){iK(this.channel,2).register(4,function(A){A=_.Wb(A.data,gY3,4,Ps);if(!A)throw new E3("Unexpectedly nonexistent GameReadyEvent");R(_.X1(A,1))})};
_.l.onLevelComplete=function(R){iK(this.channel,2).register(5,function(A){A=_.Wb(A.data,nYk,5,Ps);if(!A)throw new E3("Unexpectedly nonexistent LevelCompleteEvent");R(_.X1(A,1),_.sU(A,2))})};
_.l.onGameOver=function(R){iK(this.channel,2).register(6,function(A){A=_.Wb(A.data,vYk,6,Ps);if(!A)throw new E3("Unexpectedly nonexistent GameOverEvent");R(_.X1(A,1))})};
_.l.pause=function(){var R=this;if(!this.channel.isInitialised)return iK(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new E3("Using unregistered Game Feature: pause.");var A=m5k();return new Promise(function(Y){return _.O(function(P){if(P.nextAddress==1)return P.yield(wWk(R.channel,A),2);Y();_.XH(P)})})};
_.l.resume=function(){var R=this;if(!this.channel.isInitialised)return iK(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new E3("Using unregistered Game Feature: resume.");var A=TNk();return new Promise(function(Y){return _.O(function(P){if(P.nextAddress==1)return P.yield(wWk(R.channel,A),2);Y();_.XH(P)})})};var qjV=function(R){this.channel=R};
qjV.prototype.onReady=function(R){iK(this.channel,5).register(8,function(A){if(!_.Wb(A.data,H88,8,Ps))throw new E3("Unexpectedly nonexistent PageReadyEvent");R()})};var LGI=function(R){this.channel=R};
LGI.prototype.onChange=function(R){iK(this.channel,3).register(7,function(A){A=_.Wb(A.data,rpu,7,Ps);if(!A)throw new E3("Unexpectedly nonexistent ScoreEvent");R(_.X1(A,1),_.sU(A,2))})};var d56={load:function(){throw new E3("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new E3("Storage used, but storage.onSave() listener not set!");}},RkS=function(R){this.channel=R;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},Akq=function(R){iK(R.channel,4).register(2,d56.load).register(3,d56.save);
R.initialSetupDone=!0};
RkS.prototype.onLoad=function(R){this.initialSetupDone||Akq(this);this.loadRegistered||(this.loadRegistered=!0,iK(this.channel,4).register(2,function(A){var Y,P,E;return _.O(function(z){if(z.nextAddress==1){Y=_.Wb(A.data,D5P,2,Ps);if(!Y)throw new E3("Unexpectedly nonexistent StorageLoad");P=_.X1(Y,1);return z.yield(R(P),2)}E=z.yieldResult;var c=A.reply,M=new rZ;var N=new VhP;N=_.IS(N,1,P);N=_.Mz(N,2,_.UA(E,!1));M=_.Ug(M,3,$D,N);c.call(A,M);_.XH(z)})}))};
RkS.prototype.onSave=function(R){this.initialSetupDone||Akq(this);this.saveRegistered||(this.saveRegistered=!0,iK(this.channel,4).register(3,function(A){var Y,P,E;return _.O(function(z){if(z.nextAddress==1){Y=_.Wb(A.data,U53,3,Ps);if(!Y)throw new E3("Unexpectedly nonexistent StorageSave");P=_.X1(Y,1);E=oG6(Y.getData());return z.yield(R(P,E),2)}var c=A.reply,M=new rZ;var N=new JpP;N=_.IS(N,1,P);M=_.Ug(M,4,$D,N);c.call(A,M);_.XH(z)})}))};var Y6Z=function(R){this.channel=R};
Y6Z.prototype.update=function(R){if(!this.channel.features.has(6))throw new E3("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var A=new rZ,Y=new ypS;R=_.DE(Y,1,R);A=_.Ug(A,6,$D,R);this.channel.send(A)};
Y6Z.prototype.register=function(){iK(this.channel,6)};var PJq=function(R){this.channel=R;this.userActivityLoggingIntervalMs=0};
PJq.prototype.onUserActivity=function(R,A){this.userActivityLoggingIntervalMs=A;iK(this.channel,7).register(9,function(Y){if(!_.Wb(Y.data,$58,9,Ps))throw new E3("Unexpectedly nonexistent ClickEvent");R()})};var Eqb=function(R){var A=this;this.channel=R;this.init=this.channel.init.bind(this.channel);this.page=new qjV(this.channel);this.game=new eNu(this.channel);this.audio=new uaP(this.channel);this.score=new LGI(this.channel);this.storage=new RkS(this.channel);this.style=new Y6Z(this.channel);this.userActivity=new PJq(this.channel);thk(this.channel,function(Y){var P=new Geq;Y=_.DE(P,1,Y);Y=_.jR(Y,3,A.userActivity.userActivityLoggingIntervalMs);P=A.audio.isAudioEnabled();P!==void 0&&_.y6(Y,2,P);P=new rZ;
return _.Ug(P,5,$D,Y)})};var zkH=function(){this.timedFunctionContext=0};
zkH.prototype.timeExecution=function(R,A){var Y=this;return function(){var P=_.Ge.apply(0,arguments);Y.timedFunctionContext=R;return A.apply(null,_.py(P))}};var iuN=function(){var R={};this.priorityTasks=(R[3]=[],R[2]=[],R[1]=[],R);this.isFlushing=!1},ns=function(R,A,Y){var P=lIN(R,Y);
R.priorityTasks[Y].push(A);P&&R.priorityTasks[Y].length===1&&R.flush()},lIN=function(R,A){return Object.keys(R.priorityTasks).map(function(Y){return Number(Y)}).filter(function(Y){return!isNaN(Y)&&Y>A}).every(function(Y){return R.priorityTasks[Y].length===0})};
iuN.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(R){return R.length>0});)xb7(this,3),xb7(this,2),xb7(this,1)}catch(R){throw Object.values(this.priorityTasks).forEach(function(A){return void A.splice(0,A.length)}),R;
}finally{this.isFlushing=!1}}};
var xb7=function(R,A){for(;lIN(R,A)&&R.priorityTasks[A].length>0;)R.priorityTasks[A][0](),R.priorityTasks[A].shift()};
_.Yh.Object.defineProperties(iuN.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(R){return R.length>0})}}});var Lol={};var ck7=globalThis.trustedTypes,tck=ck7,ufk;var Sc=function(R){this.privateDoNotAccessOrElseWrappedResourceUrl=R};
Sc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var Ouf,MPA,skA,N8S,VPH,JkA,ykf,mbq;Ouf=_.Z7([""]);MPA=GG(["\x00"],["\\0"]);skA=GG(["\n"],["\\n"]);N8S=GG(["\x00"],["\\u0000"]);VPH=_.Z7([""]);JkA=GG(["\x00"],["\\0"]);ykf=GG(["\n"],["\\n"]);mbq=GG(["\x00"],["\\u0000"]);_.T8b=qg6(function(R){return R(Ouf)})||qg6(function(R){return R(MPA)})||qg6(function(R){return R(skA)})||qg6(function(R){return R(N8S)});
_.QkN=_.Wx(VPH)&&_.Wx(JkA)&&_.Wx(ykf)&&_.Wx(mbq);var hb;_.bb=function(R,A){this.privateDoNotAccessOrElseWrappedUrl=A};
_.bb.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.vqD=fq("about:blank");hb=fq("about:invalid#zClosurez");var dLk=function(R){this.isValid=R},gqS=new dLk(function(R){return/^[^:]*([/?#]|$)/.test(R)}),nqq=Bx("data"),HuN=Bx("http"),rk7=Bx("https"),Db7=Bx("ftp"),UbS=Bx("mailto"),$bS=Bx("intent"),X3S=Bx("vnd.youtube"),RK6=[nqq,
HuN,rk7,UbS,Db7,gqS],YTP=Xf(function(){return typeof URL==="function"}),S6H=["data:",
"http:","https:","mailto:","ftp:"],EUl=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var ub=function(R){this.privateDoNotAccessOrElseWrappedHtml=R};
ub.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var yZV=Xf(function(){return new ub(ck7?ck7.emptyHTML:"")});var IIN={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"},iyb=function(R,A){var Y=Error.call(this,R+" cannot be used with intent "+IIN[A]);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.type=R;this.intent=A;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.H(iyb,Error);_.AO=function(R){this.privateDoNotAccessOrElseWrappedScript=R};
_.AO.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Oy3=function(R){this.privateDoNotAccessOrElseWrappedAttributePrefix=R};
Oy3.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var MB6="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var ct=function(R){this.privateDoNotAccessOrElseWrappedStyleSheet=R};
ct.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var Hi6=function(R){var A=_.Zr("window.location.href");R==null&&(R='Unknown Error of type "null/undefined"');if(typeof R==="string")return{message:R,name:"Unknown error",lineNumber:"Not available",fileName:A,stack:"Not available"};var Y=!1;try{var P=R.lineNumber||R.line||"Not available"}catch(c){P="Not available",Y=!0}try{var E=R.fileName||R.filename||R.sourceURL||_.P3.$googDebugFname||A}catch(c){E="Not available",Y=!0}A=KlE(R);if(!(!Y&&R.lineNumber&&R.fileName&&R.stack&&R.message&&R.name)){Y=R.message;
if(Y==null){if(R.constructor&&R.constructor instanceof Function){if(R.constructor.name)Y=R.constructor.name;else if(Y=R.constructor,xl[Y])Y=xl[Y];else{Y=String(Y);if(!xl[Y]){var z=/function\s+([^\(]+)/m.exec(Y);xl[Y]=z?z[1]:"[Anonymous]"}Y=xl[Y]}Y='Unknown Error of type "'+Y+'"'}else Y="Unknown Error of unknown type";typeof R.toString==="function"&&Object.prototype.toString!==R.toString&&(Y+=": "+R.toString())}return{message:Y,name:R.name||"UnknownError",lineNumber:P,fileName:E,stack:A||"Not available"}}return{message:R.message,
name:R.name,lineNumber:R.lineNumber,fileName:R.fileName,stack:A}},KlE=function(R,A){A||(A={});
A[WlD(R)]=!0;var Y=R.stack||"",P=R.cause;P&&!A[WlD(P)]&&(Y+="\nCaused by: ",P.stack&&P.stack.indexOf(P.toString())==0||(Y+=typeof P==="string"?P:P.message+"\n"),Y+=KlE(P,A));R=R.errors;if(Array.isArray(R)){P=1;var E;for(E=0;E<R.length&&!(P>4);E++)A[WlD(R[E])]||(Y+="\nInner error "+P++ +": ",R[E].stack&&R[E].stack.indexOf(R[E].toString())==0||(Y+=typeof R[E]==="string"?R[E]:R[E].message+"\n"),Y+=KlE(R[E],A));E<R.length&&(Y+="\n... "+(R.length-E)+" more inner errors")}return Y},WlD=function(R){var A=
"";
typeof R.toString==="function"&&(A=""+R);return A+R.stack},xl={};var jkb,EK,sJ,fID,p3q,bu7,ut,ZZ,B8G;jkb=function(R,A){for(var Y=R.split("%s"),P="",E=Array.prototype.slice.call(arguments,1);E.length&&Y.length>1;)P+=Y.shift()+E.shift();return P+Y.join("%s")};
_.wu=function(R){return encodeURIComponent(String(R))};
EK=function(R){return decodeURIComponent(R.replace(/\+/g," "))};
sJ=function(R){EGk.test(R)&&(R.indexOf("&")!=-1&&(R=R.replace(LP3,"&amp;")),R.indexOf("<")!=-1&&(R=R.replace(dyb,"&lt;")),R.indexOf(">")!=-1&&(R=R.replace(RW8,"&gt;")),R.indexOf('"')!=-1&&(R=R.replace(AUq,"&quot;")),R.indexOf("'")!=-1&&(R=R.replace(YcI,"&#39;")),R.indexOf("\x00")!=-1&&(R=R.replace(PTJ,"&#0;")));return R};
fID=function(R){var A={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var Y=_.P3.document.createElement("div");return R.replace(bu7,function(P,E){var z=A[P];if(z)return z;E.charAt(0)=="#"&&(E=Number("0"+E.slice(1)),isNaN(E)||(z=String.fromCharCode(E)));z||(_.zO(Y,ec(P+" ")),z=Y.firstChild.nodeValue.slice(0,-1));return A[P]=z})};
p3q=function(R){return R.replace(/&([^;]+);/g,function(A,Y){switch(Y){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return Y.charAt(0)!="#"||(Y=Number("0"+Y.slice(1)),isNaN(Y))?A:String.fromCharCode(Y)}})};
bu7=/&([^;\s<&]+);?/g;_.Ank=function(R){return String(R).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.Fl8=String.prototype.repeat?function(R,A){return R.repeat(A)}:function(R,A){return Array(A+1).join(R)};
_.cs=function(R,A){if(!Number.isFinite(R))return String(R);R=String(R);var Y=R.indexOf(".");Y===-1&&(Y=R.length);var P=R[0]==="-"?"-":"";P&&(R=R.substring(1));return P+(0,_.Fl8)("0",Math.max(0,A-Y))+R};
ut=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.YB()).toString(36)};
ZZ=function(R){for(var A=0,Y=0;Y<R.length;++Y)A=31*A+R.charCodeAt(Y)>>>0;return A};
_.nO=function(R){return String(R).replace(/\-([a-z])/g,function(A,Y){return Y.toUpperCase()})};
_.gq=function(R){return String(R).replace(/([A-Z])/g,"-$1").toLowerCase()};
B8G=function(R){return R.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(A,Y,P){return Y+P.toUpperCase()})};var aIS=function(){this.names=new Map};
aIS.prototype.getName=function(R){var A=this.names.get(R);if(A)return A;var Y;A=(Y=R.description)!=null?Y:ut();this.names.set(R,A);return A};var CJE=function(R){var A=Error.call(this,R?R.length+" errors occurred during unsubscription:\n"+R.map(function(Y,P){return P+1+") "+Y.toString()}).join("\n  "):"");
this.message=A.message;"stack"in A&&(this.stack=A.stack);this.errors=R;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.H(CJE,Error);var MR=function(R){this.initialTeardown=R;this.closed=!1;this._teardowns=this._parentage=null};
_.l=MR.prototype;
_.l.unsubscribe=function(){if(!this.closed){this.closed=!0;var R=this._parentage;if(Array.isArray(R))for(var A=_.x(R),Y=A.next();!Y.done;Y=A.next())Y.value.remove(this);else R==null||R.remove(this);A=this.initialTeardown;if(OT(A))try{A()}catch(z){var P=z instanceof CJE?z.errors:[z]}var E=this._teardowns;if(E)for(this._teardowns=null,A=_.x(E),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;try{OT(Y)?Y():Y.unsubscribe()}catch(z){Y=void 0,P=(Y=P)!=null?Y:[],z instanceof CJE?P=[].concat(_.py(P),_.py(z.errors)):
P.push(z)}}if(P)throw new CJE(P);}};
_.l.add=function(R){if(R&&R!==this)if(this.closed)OT(R)?R():R.unsubscribe();else{if(R instanceof MR){if(R.closed||R._hasParent(this))return;R._addParent(this)}var A;(this._teardowns=(A=this._teardowns)!=null?A:[]).push(R)}};
_.l._hasParent=function(R){var A=this._parentage;return A===R||Array.isArray(A)&&A.includes(R)};
_.l._addParent=function(R){var A=this._parentage;this._parentage=Array.isArray(A)?(A.push(R),A):A?[A,R]:R};
_.l._removeParent=function(R){var A=this._parentage;A===R?this._parentage=null:Array.isArray(A)&&JO6(A,R)};
_.l.remove=function(R){var A=this._teardowns;A&&JO6(A,R);R instanceof MR&&R._removeParent(this)};
var hkZ=new MR;hkZ.closed=!0;MR.JSC$9061_EMPTY=hkZ;var mR8=function(){setTimeout.apply(null,_.py(_.Ge.apply(0,arguments)))};var O3=function(R){MR.call(this);this.JSC$9066_isStopped=!1;this.destination=R instanceof O3?R:new MA(!R||OT(R)?{next:R!=null?R:void 0}:R);yO3(R)&&R.add(this)};
_.H(O3,MR);O3.JSC$9061_EMPTY=MR.JSC$9061_EMPTY;O3.create=function(R,A,Y){return new s3(R,A,Y)};
_.l=O3.prototype;_.l.next=function(R){this.JSC$9066_isStopped||this._next(R)};
_.l.error=function(R){this.JSC$9066_isStopped||(this.JSC$9066_isStopped=!0,this._error(R))};
_.l.complete=function(){this.JSC$9066_isStopped||(this.JSC$9066_isStopped=!0,this._complete())};
_.l.unsubscribe=function(){this.closed||(this.JSC$9066_isStopped=!0,MR.prototype.unsubscribe.call(this))};
_.l._next=function(R){this.destination.next(R)};
_.l._error=function(R){this.destination.error(R);this.unsubscribe()};
_.l._complete=function(){this.destination.complete();this.unsubscribe()};
var MA=function(R){this.partialObserver=R};
MA.prototype.next=function(R){var A=this.partialObserver;if(A.next)try{A.next(R)}catch(Y){NR(Y)}};
MA.prototype.error=function(R){var A=this.partialObserver;if(A.error)try{A.error(R)}catch(Y){NR(Y)}else NR(R)};
MA.prototype.complete=function(){var R=this.partialObserver;if(R.complete)try{R.complete()}catch(A){NR(A)}};
var s3=function(R,A,Y){O3.call(this);var P;OT(R)||!R?P={next:R!=null?R:void 0,error:A!=null?A:void 0,complete:Y!=null?Y:void 0}:P=R;this.destination=new MA(P)};
_.H(s3,O3);s3.JSC$9061_EMPTY=O3.JSC$9061_EMPTY;s3.create=O3.create;var TO=typeof Symbol==="function"&&Symbol.observable||"@@observable";var m6=function(R){R&&(this._subscribe=R)};
_.l=m6.prototype;_.l.lift=function(R){var A=new m6;A.source=this;A.operator=R;return A};
_.l.subscribe=function(R,A,Y){R=R&&R instanceof O3||R&&OT(R.next)&&OT(R.error)&&OT(R.complete)&&yO3(R)?R:new s3(R,A,Y);A=this.operator;Y=this.source;R.add(A?A.call(R,Y):Y?this._subscribe(R):this._trySubscribe(R));return R};
_.l._trySubscribe=function(R){try{return this._subscribe(R)}catch(A){R.error(A)}};
_.l.forEach=function(R,A){var Y=this;A=QG3(A);return new A(function(P,E){var z=Y.subscribe(function(c){try{R(c)}catch(M){E(M),z==null||z.unsubscribe()}},E,P)})};
_.l._subscribe=function(R){var A;return(A=this.source)==null?void 0:A.subscribe(R)};
m6.prototype[TO]=function(){return this};
m6.prototype.pipe=function(){var R=_.Ge.apply(0,arguments);return R.length?T28(R)(this):this};
m6.create=function(R){return new m6(R)};var oqz=function(){var R=Error.call(this,"object unsubscribed");this.message=R.message;"stack"in R&&(this.stack=R.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.H(oqz,Error);var QX=function(){this.observers=[];this.hasError=this.JSC$9082_isStopped=this.closed=!1;this.thrownError=null};
_.H(QX,m6);_.l=QX.prototype;_.l.lift=function(R){var A=new NA(this,this);A.operator=R;return A};
_.l._throwIfClosed=function(){if(this.closed)throw new oqz;};
_.l.next=function(R){this._throwIfClosed();if(!this.JSC$9082_isStopped){var A=this.observers.slice();A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y.value.next(R)}};
_.l.error=function(R){this._throwIfClosed();if(!this.JSC$9082_isStopped){this.hasError=this.JSC$9082_isStopped=!0;this.thrownError=R;for(var A=this.observers;A.length;)A.shift().error(R)}};
_.l.complete=function(){this._throwIfClosed();if(!this.JSC$9082_isStopped){this.JSC$9082_isStopped=!0;for(var R=this.observers;R.length;)R.shift().complete()}};
_.l.unsubscribe=function(){this.JSC$9082_isStopped=this.closed=!0;this.observers=null};
_.l._trySubscribe=function(R){this._throwIfClosed();return m6.prototype._trySubscribe.call(this,R)};
_.l._subscribe=function(R){this._throwIfClosed();this._checkFinalizedStatuses(R);return this._innerSubscribe(R)};
_.l._innerSubscribe=function(R){var A=this,Y=this.JSC$9082_isStopped,P=this.observers;return this.hasError||Y?MR.JSC$9061_EMPTY:(P.push(R),new MR(function(){return JO6(A.observers,R)}))};
_.l._checkFinalizedStatuses=function(R){var A=this.thrownError,Y=this.JSC$9082_isStopped;this.hasError?R.error(A):Y&&R.complete()};
QX.create=function(R,A){return new NA(R,A)};
var NA=function(R,A){QX.call(this);this.destination=R;this.source=A};
_.H(NA,QX);NA.create=QX.create;NA.prototype.next=function(R){var A,Y;(A=this.destination)==null||(Y=A.next)==null||Y.call(A,R)};
NA.prototype.error=function(R){var A,Y;(A=this.destination)==null||(Y=A.error)==null||Y.call(A,R)};
NA.prototype.complete=function(){var R,A;(R=this.destination)==null||(A=R.complete)==null||A.call(R)};
NA.prototype._subscribe=function(R){var A,Y;return(Y=(A=this.source)==null?void 0:A.subscribe(R))!=null?Y:MR.JSC$9061_EMPTY};var ep=function(R){QX.call(this);this._value=R};
_.H(ep,QX);ep.create=QX.create;ep.prototype._subscribe=function(R){var A=QX.prototype._subscribe.call(this,R);!A.closed&&R.next(this._value);return A};
ep.prototype.getValue=function(){var R=this.thrownError,A=this._value;if(this.hasError)throw R;this._throwIfClosed();return A};
ep.prototype.next=function(R){QX.prototype.next.call(this,this._value=R)};
_.Yh.Object.defineProperties(ep.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var hO=new m6(function(R){return R.complete()});var HyP=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var XtP=function(R){return R&&typeof R.length==="number"&&typeof R!=="function"};var kS7={now:function(){return(kS7.delegate||Date).now()},
delegate:void 0};var Ep=function(R,A,Y){R=R===void 0?Infinity:R;A=A===void 0?Infinity:A;Y=Y===void 0?kS7:Y;QX.call(this);this.bufferSize=R;this.windowTime=A;this.timestampProvider=Y;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=A===Infinity;this.bufferSize=Math.max(1,R);this.windowTime=Math.max(1,A)};
_.H(Ep,QX);Ep.create=QX.create;Ep.prototype.next=function(R){var A=this.buffer,Y=this.infiniteTimeWindow,P=this.timestampProvider,E=this.windowTime;this.JSC$9082_isStopped||(A.push(R),!Y&&A.push(P.now()+E));GSA(this);QX.prototype.next.call(this,R)};
Ep.prototype._subscribe=function(R){this._throwIfClosed();GSA(this);for(var A=this._innerSubscribe(R),Y=this.infiniteTimeWindow,P=this.buffer.slice(),E=0;E<P.length&&!R.closed;E+=Y?1:2)R.next(P[E]);this._checkFinalizedStatuses(R);return A};
var GSA=function(R){var A=R.bufferSize,Y=R.timestampProvider,P=R.buffer;R=R.infiniteTimeWindow;var E=(R?1:2)*A;A<Infinity&&E<P.length&&P.splice(0,P.length-E);if(!R){A=Y.now();Y=0;for(R=1;R<P.length&&P[R]<=A;R+=2)Y=R;Y&&P.splice(0,Y+1)}};var tPH=function(R,A){A=A===void 0?ZuD:A;this.schedulerActionCtor=R;this.now=A};
tPH.prototype.schedule=function(R,A,Y){A=A===void 0?0:A;return(new this.schedulerActionCtor(this,R)).schedule(Y,A)};
var ZuD=kS7.now;var v2k=function(){var R=Error.call(this,"no elements in sequence");this.message=R.message;"stack"in R&&(this.stack=R.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.H(v2k,Error);var jB=function(R,A,Y,P,E){O3.call(this,R);this.onUnsubscribe=E;A&&(this._next=function(z){try{A(z)}catch(c){this.destination.error(c)}});
Y&&(this._error=function(z){try{Y(z)}catch(c){this.destination.error(c)}this.unsubscribe()});
P&&(this._complete=function(){try{P()}catch(z){this.destination.error(z)}this.unsubscribe()})};
_.H(jB,O3);jB.JSC$9061_EMPTY=O3.JSC$9061_EMPTY;jB.create=O3.create;jB.prototype.unsubscribe=function(){var R;this.closed||(R=this.onUnsubscribe)!=null&&R.call(this);O3.prototype.unsubscribe.call(this)};var Y2=function(R,A){this.source=R;this.subjectFactory=A;this._subject=null;this._refCount=0;this._connection=null};
_.H(Y2,m6);Y2.create=m6.create;Y2.prototype._subscribe=function(R){return w3G(this).subscribe(R)};
var w3G=function(R){var A=R._subject;if(!A||A.JSC$9082_isStopped)R._subject=R.subjectFactory();return R._subject};
Y2.prototype._teardown=function(){this._refCount=0;var R=this._connection;this._subject=this._connection=null;R==null||R.unsubscribe()};
Y2.prototype.connect=function(){var R=this,A=this._connection;if(!A){A=this._connection=new MR;var Y=w3G(this);A.add(this.source.subscribe(new jB(Y,void 0,function(P){R._teardown();Y.error(P)},function(){R._teardown();
Y.complete()},function(){return R._teardown()})));
A.closed&&(this._connection=null,A=MR.JSC$9061_EMPTY)}return A};var CeP=Array.isArray;var oUk=Array.isArray,uVf=Object,kOb=uVf.getPrototypeOf,GOS=uVf.prototype,Zyl=uVf.keys;var Bt=function(R,A,Y){O3.call(this,R);this._next=A;this.shouldComplete=Y};
_.H(Bt,O3);Bt.JSC$9061_EMPTY=O3.JSC$9061_EMPTY;Bt.create=O3.create;Bt.prototype._complete=function(){this.shouldComplete()?O3.prototype._complete.call(this):this.unsubscribe()};var ArS=["addListener","removeListener"],RdS=["addEventListener","removeEventListener"],PGJ=["on","off"];var VG=function(){MR.call(this)};
_.H(VG,MR);VG.JSC$9061_EMPTY=MR.JSC$9061_EMPTY;VG.prototype.schedule=function(){return this};var ekD=function(R,A){return setInterval.apply(null,[R,A].concat(_.py(_.Ge.apply(2,arguments))))};var J8=function(R,A){MR.call(this);this.scheduler=R;this.work=A;this.pending=!1};
_.H(J8,VG);J8.JSC$9061_EMPTY=VG.JSC$9061_EMPTY;J8.prototype.schedule=function(R,A){A=A===void 0?0:A;if(this.closed)return this;this.state=R;R=this.id;var Y=this.scheduler;R!=null&&(this.id=q68(this,R,A));this.pending=!0;this.delay=A;this.id=this.id||this.requestAsyncId(Y,this.id,A);return this};
J8.prototype.requestAsyncId=function(R,A,Y){Y=Y===void 0?0:Y;return ekD(R.flush.bind(R,this),Y)};
var q68=function(R,A,Y){Y=Y===void 0?0:Y;if(Y!=null&&R.delay===Y&&R.pending===!1)return A;clearInterval(A)};
J8.prototype.execute=function(R,A){if(this.closed)return Error("ha");this.pending=!1;if(R=this._execute(R,A))return R;this.pending===!1&&this.id!=null&&(this.id=q68(this,this.id,null))};
J8.prototype._execute=function(R){var A=!1;try{this.work(R)}catch(P){A=!0;var Y=!!P&&P||Error(P)}if(A)return this.unsubscribe(),Y};
J8.prototype.unsubscribe=function(){if(!this.closed){var R=this.id,A=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;JO6(A,this);R!=null&&(this.id=q68(this,R,null));this.delay=null;VG.prototype.unsubscribe.call(this)}};var LlZ=function(R,A){A=A===void 0?ZuD:A;tPH.call(this,R,A);this.actions=[];this.active=!1;this.scheduled=void 0};
_.H(LlZ,tPH);LlZ.prototype.flush=function(R){var A=this.actions;if(this.active)A.push(R);else{var Y;this.active=!0;do if(Y=R.execute(R.state,R.delay))break;while(R=A.shift());this.active=!1;if(Y){for(;R=A.shift();)R.unsubscribe();throw Y;}}};var bG=new m6(sT);var E2P=Array.isArray;var yG=function(R,A){J8.call(this,R,A);this.scheduler=R;this.work=A};
_.H(yG,J8);yG.JSC$9061_EMPTY=J8.JSC$9061_EMPTY;yG.prototype.schedule=function(R,A){A=A===void 0?0:A;if(A>0)return J8.prototype.schedule.call(this,R,A);this.delay=A;this.state=R;this.scheduler.flush(this);return this};
yG.prototype.execute=function(R,A){return A>0||this.closed?J8.prototype.execute.call(this,R,A):this._execute(R,A)};
yG.prototype.requestAsyncId=function(R,A,Y){Y=Y===void 0?0:Y;return Y!=null&&Y>0||Y==null&&this.delay>0?J8.prototype.requestAsyncId.call(this,R,A,Y):R.flush(this)};var dbS=function(){LlZ.apply(this,arguments)};
_.H(dbS,LlZ);var B2k=new dbS(yG);var RqZ=function(){this.performanceMonitor=new zkH;this.queue=new iuN;this.internalSymbol=Symbol();this.debugNames=new aIS};
RqZ.prototype.getOnBackgrounded=function(){return bG};
_.Yh.Object.defineProperties(RqZ.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var m5=function(R,A){A=Error.call(this,A?R+": "+A:String(R));this.message=A.message;"stack"in A&&(this.stack=A.stack);this.code=R;this.__proto__=m5.prototype;this.name=String(R)};
_.H(m5,Error);var ps=function(R){m5.call(this,1E3,'sfr:"'+R+'"');this.measurementStrategyFailureReason=R;this.__proto__=ps.prototype};
_.H(ps,m5);var Fr=function(){m5.call(this,1003);this.__proto__=Fr.prototype};
_.H(Fr,m5);var Ts=function(){m5.call(this,1009);this.__proto__=Ts.prototype};
_.H(Ts,m5);var AEG=function(){m5.call(this,1011);this.__proto__=AEG.prototype};
_.H(AEG,m5);var YAz=function(){m5.call(this,1007);this.__proto__=Fr.prototype};
_.H(YAz,m5);var WO=function(R){m5.call(this,1004,String(R));this.inputObservableIndex=R;this.__proto__=WO.prototype};
_.H(WO,m5);var feS=function(R){m5.call(this,1010,R);this.__proto__=pvb.prototype};
_.H(feS,m5);var pvb=function(R){m5.call(this,1005,R);this.__proto__=pvb.prototype};
_.H(pvb,m5);var P8A=function(R){var A=_.Ge.apply(1,arguments),Y=this;this.orderedFactories=[];this.orderedFactories.push(R);A.forEach(function(P){Y.orderedFactories.push(P)})};
P8A.prototype.isSupported=function(R){return this.orderedFactories.some(function(A){return A.isSupported(R)})};
P8A.prototype.makeBeacon=function(R,A){for(var Y=0;Y<this.orderedFactories.length;Y++)if(this.orderedFactories[Y].isSupported(A))return this.orderedFactories[Y].makeBeacon(R,A);throw new Ts;};var r66=Symbol("ia"),EZ7=Symbol("ja"),w2=function(R,A){this.value=R;this.timeline=A},tO=function(R,A){if(A.timeline!==R.timeline)throw new YAz;
return R.value-A.value};
_.l=w2.prototype;_.l.equals=function(R){return tO(this,R)===0};
_.l.maximum=function(R){if(R.timeline!==this.timeline)throw new YAz;return this.value>=R.value?this:R};
_.l.round=function(){return new w2(Math.round(this.value),this.timeline)};
_.l.add=function(R){return new w2(this.value+R,this.timeline)};
_.l.toString=function(){return String(this.value)};var QG=function(R,A){this.context=R;this.JSC$9188_pinger=A};
QG.prototype.isSupported=function(R){return this.JSC$9188_pinger.isSupported(R)};
QG.prototype.makeBeacon=function(R,A){if(!this.isSupported(A))throw new Ts;return new vs(this.context,this.JSC$9188_pinger,A!=null?A:void 0,R)};
var vs=function(R,A,Y,P){var E=this;this.JSC$9194_pinger=A;this.properties=Y;this.url=P;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var z;this.method=(z=Y==null?void 0:Y.beaconMethod)!=null?z:"GET";this.backgroundedSubscription=R.getOnBackgrounded().subscribe(function(){E.sendNow()})};
vs.prototype.deactivate=function(){this.internalIsPending=!1};
vs.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9194_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var R,A;this.JSC$9194_pinger.pingWithHeadersAndBody((R=this.properties)!=null?R:{},this.customHeaders,(A=this.body)!=null?A:"",this.url)}else this.JSC$9194_pinger.ping(this.url);this.internalIsPending=!1}catch(Y){}else this.internalIsPending=!1};
vs.prototype.setHeader=function(R,A){this.customHeaders.set(R,A)};
_.Yh.Object.defineProperties(vs.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var iDS=function(){for(var R=_.x(_.Ge.apply(0,arguments)),A=R.next();!A.done;A=R.next())if(A=A.value,A.available()){this.timeProvider=A;return}this.timeProvider=new zqA};
_.l=iDS.prototype;_.l.available=function(){return this.timeProvider.available()};
_.l.now=function(){return this.timeProvider.now()};
_.l.setTimeout=function(R,A){return this.timeProvider.setTimeout(R,A)};
_.l.clearTimeout=function(R){this.timeProvider.clearTimeout(R)};
_.l.interval=function(R,A){var Y=this.intervalObservable(R).subscribe(A);return function(){return void Y.unsubscribe()}};
_.l.intervalObservable=function(R){return this.timeProvider.intervalObservable(R)};
_.Yh.Object.defineProperties(iDS.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var zqA=function(){this.timeline=Symbol()};
_.l=zqA.prototype;_.l.available=function(){return!1};
_.l.now=function(){return new w2(0,this.timeline)};
_.l.setTimeout=function(){return 0};
_.l.clearTimeout=function(){};
_.l.interval=function(){return function(){}};
_.l.intervalObservable=function(){return bG};var g$=function(R,A){this.intrinsicFunctionNamespace=R;this.performanceMonitor=A};
_.l=g$.prototype;_.l.setTimeout=function(R,A){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,R),A)};
_.l.clearTimeout=function(R){this.intrinsicFunctionNamespace.clearTimeout(R)};
_.l.interval=function(R,A){var Y=this.intervalObservable(R).subscribe(A);return function(){return void Y.unsubscribe()}};
_.l.intervalObservable=function(R){var A=this;return new m6(function(Y){var P=0,E=A.intrinsicFunctionNamespace.setInterval(function(){Y.next(P++)},R);
return function(){A.intrinsicFunctionNamespace.clearInterval(E)}})};
_.l.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var lzN=function(R,A){g$.call(this,R,A);this.timeline=EZ7};
_.H(lzN,g$);lzN.prototype.now=function(){return new w2(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
lzN.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&g$.prototype.available.call(this)};var xG7=function(R,A){g$.call(this,R,A);this.timeline=r66};
_.H(xG7,g$);xG7.prototype.now=function(){return new w2(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
xG7.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&g$.prototype.available.call(this)};var OD8=function(R){this.context=R;if(cEf===void 0)a:{var A,Y,P=(A=R.global)==null?void 0:(Y=A.document)==null?void 0:Y.createElement("meta");if(P)try{P.httpEquiv="origin-trial";P.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";R.global.document.head.append(P);cEf=P;break a}catch(E){}cEf=void 0}},
cEf;
OD8.prototype.isSupported=function(R){return Vpk(this.context)!==void 0&&!(R==null||!R.endOfSession)&&!nF(this.context)&&!(R==null?0:R.attributionEnabled)&&!(R==null?0:R.customHeaders)&&!(R==null?0:R.customBody)};
OD8.prototype.makeBeacon=function(R,A){if(!this.isSupported(A))throw new Ts;return new Hs(this.context,R,A)};
var Hs=function(R,A,Y){this.context=R;this.properties=Y;this.JSC$9221_urlWithoutToken=A;var P;this.beaconMethod=(P=Y==null?void 0:Y.beaconMethod)!=null?P:"GET";R=Vpk(this.context);if(R===void 0)throw Error();this.fetchLater=R;MHS(this,sAz(this))},MHS=function(R,A){R.beaconResult&&R.beaconResult.activated||(R.beaconAbort=new AbortController,R.beaconResult=R.fetchLater(A,{method:R.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:R.beaconAbort.signal,activateAfter:96E4}))},sAz=function(R){R=R.JSC$9221_urlWithoutToken;
return(R.slice(-1)[0]==="&"?R:R+"&")+"flapi=1"};
Hs.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Hs.prototype.sendNow=function(){};
Hs.prototype.setHeader=function(){};
_.Yh.Object.defineProperties(Hs.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9221_urlWithoutToken},
set:function(R){this.JSC$9221_urlWithoutToken=R;R=sAz(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);MHS(this,R)}},
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 NfE=function(R){this.context=R};
NfE.prototype.isSupported=function(){return!nF(this.context)&&!!this.context.global.fetch};
NfE.prototype.ping=function(){var R=this;return kU.apply(null,_.py(_.Ge.apply(0,arguments).map(function(A){return vt(R.context.global.fetch(A,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(fy(function(Y){return Y.status===200}))}))).pipe(g2k(function(A){return A}),HsV())};
NfE.prototype.pingWithHeadersAndBody=function(R,A,Y){for(var P=_.Ge.apply(3,arguments),E=this,z=new Headers,c=_.x(A.entries()),M=c.next();!M.done;M=c.next()){var N=_.x(M.value);M=N.next().value;N=N.next().value;z.set(M,N)}var y,m=(y=R.keepAlive)!=null?y:!1;kU.apply(null,_.py(P.map(function(T){return vt(E.context.global.fetch(T,Object.assign({},{method:String(R.beaconMethod),cache:"no-cache"},m?{keepalive:!0}:{},{mode:"no-cors",headers:z,body:Y}))).pipe(fy(function(Q){return Q.status===200}))}))).pipe(g2k(function(T){return T}),
HsV())};var VH8,G4l;_.r$=function(){};
_.bJ=function(R){return R};
VH8=function(R){var A=A||0;return function(){return R.apply(this,Array.prototype.slice.call(arguments,0,A))}};
_.U3=function(R){var A=!1,Y;return function(){A||(Y=R(),A=!0);return Y}};
_.$l=function(R,A){var Y=0;return function(P){_.P3.clearTimeout(Y);var E=arguments;Y=_.P3.setTimeout(function(){R.apply(void 0,E)},A)}};
G4l=function(R,A){var Y=0,P=!1,E=[],z=function(){Y=0;P&&(P=!1,c())},c=function(){Y=_.P3.setTimeout(z,A);
var M=E;E=[];R.apply(void 0,M)};
return function(M){E=arguments;Y?P=!0:c()}};var yEZ=function(){return TS&&v3?v3.mobile:!JEN()&&(g8("iPod")||g8("iPhone")||g8("Android")||g8("IEMobile"))},JEN=function(){return TS&&v3?!v3.mobile&&(g8("iPad")||g8("Android")||g8("Silk")):g8("iPad")||g8("Android")&&!g8("Mobile")||g8("Silk")};var mGS;_.BO={};mGS="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.BO.add=function(R,A,Y){if(R!==null&&A in R)throw Error("la`"+A);R[A]=Y};
_.BO.clear=function(R){for(var A in R)delete R[A]};
_.BO.clone=function(R){var A={},Y;for(Y in R)A[Y]=R[Y];return A};
_.BO.contains=function(R,A){return Spk(R,A)};
_.BO.containsKey=function(R,A){return R!==null&&A in R};
_.BO.containsValue=Spk;_.BO.create=WM3;_.BO.createImmutableView=function(R){var A=R;Object.isFrozen&&!Object.isFrozen(R)&&(A=Object.create(R),Object.freeze(A));return A};
_.BO.createSet=jS3;_.BO.equals=function(R,A){for(var Y in R)if(!(Y in A)||R[Y]!==A[Y])return!1;for(var P in A)if(!(P in R))return!1;return!0};
_.BO.every=function(R,A,Y){for(var P in R)if(!A.call(Y,R[P],P,R))return!1;return!0};
_.BO.extend=function(R,A){for(var Y,P,E=1;E<arguments.length;E++){P=arguments[E];for(Y in P)R[Y]=P[Y];for(var z=0;z<mGS.length;z++)Y=mGS[z],Object.prototype.hasOwnProperty.call(P,Y)&&(R[Y]=P[Y])}};
_.BO.filter=function(R,A,Y){var P={},E;for(E in R)A.call(Y,R[E],E,R)&&(P[E]=R[E]);return P};
_.BO.findKey=IgI;_.BO.findValue=function(R,A,Y){return(A=IgI(R,A,Y))&&R[A]};
_.BO.forEach=function(R,A,Y){for(var P in R)A.call(Y,R[P],P,R)};
_.BO.get=function(R,A,Y){return R!==null&&A in R?R[A]:Y};
_.BO.getAllPropertyNames=function(R,A,Y){if(!R)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return XOS(R);for(var P={};R&&(R!==Object.prototype||A)&&(R!==Function.prototype||Y);){for(var E=Object.getOwnPropertyNames(R),z=0;z<E.length;z++)P[E[z]]=!0;R=Object.getPrototypeOf(R)}return XOS(P)};
_.BO.getAnyKey=function(R){for(var A in R)return A};
_.BO.getAnyValue=function(R){for(var A in R)return R[A]};
_.BO.getCount=function(R){var A=0,Y;for(Y in R)A++;return A};
_.BO.getKeys=XOS;_.BO.getSuperClass=function(R){return(R=Object.getPrototypeOf(R.prototype))&&R.constructor};
_.BO.getValueByKeys=function(R,A){var Y=_.ok(A),P=Y?A:arguments;for(Y=Y?0:1;Y<P.length;Y++){if(R==null)return;R=R[P[Y]]}return R};
_.BO.getValues=function(R){var A=[],Y=0,P;for(P in R)A[Y++]=R[P];return A};
_.BO.isEmpty=function(R){for(var A in R)return!1;return!0};
_.BO.isImmutableView=function(R){return!!Object.isFrozen&&Object.isFrozen(R)};
_.BO.map=function(R,A,Y){var P={},E;for(E in R)P[E]=A.call(Y,R[E],E,R);return P};
_.BO.remove=function(R,A){var Y;(Y=A in R)&&delete R[A];return Y};
_.BO.set=function(R,A,Y){R[A]=Y};
_.BO.setIfUndefined=function(R,A,Y){return A in R?R[A]:R[A]=Y};
_.BO.setWithReturnValueIfNotSet=function(R,A,Y){if(A in R)return R[A];Y=Y();return R[A]=Y};
_.BO.some=function(R,A,Y){for(var P in R)if(A.call(Y,R[P],P,R))return!0;return!1};
_.BO.transpose=function(R){var A={},Y;for(Y in R)A[R[Y]]=Y;return A};
_.BO.unsafeClone=KM6;var Xw=function(R,A,Y,P,E){this.allowedElements=R;this.elementPolicies=A;this.allowedGlobalAttributes=Y;this.globalAttributePolicies=P;this.globallyAllowedAttributePrefixes=E},TfA=function(R,A,Y){Y=R.elementPolicies.get(Y);
return(Y==null?0:Y.has(A))?Y.get(A):R.allowedGlobalAttributes.has(A)?{policyAction:1}:(Y=R.globalAttributePolicies.get(A))?Y:R.globallyAllowedAttributePrefixes&&[].concat(_.py(R.globallyAllowedAttributePrefixes)).some(function(P){return A.indexOf(P)===0})?{policyAction:1}:{policyAction:0}};var QAH="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(" "),
vZq=[["A",new Map([["href",{policyAction:7}]])],["AREA",new Map([["href",{policyAction:7}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],gZf="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist coords crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden inert ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type usemap valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
nZb=[["dir",{policyAction:3,conditions:Xf(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Xf(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Xf(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Xf(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],HDb=new Xw(new Set(QAH),new Map(vZq),new Set(gZf),new Map(nZb)),rES=new Xw(new Set(QAH.concat(["BUTTON",
"INPUT"])),new Map(vZq),new Set(Xf(function(){return gZf.concat(["class","id","name"])})),new Map(Xf(function(){return nZb.concat([["style",
{policyAction:1}]])})));var DGS,UGA,XSb;DGS=function(R,A,Y,P,E){this.JSC$9282_sanitizerTable=R;this.styleElementSanitizer=A;this.styleAttributeSanitizer=Y;this.JSC$9282_resourceUrlPolicy=P;this.JSC$9282_navigationUrlPolicy=E;this.changes=[]};
_.$Gz=function(R,A){var Y=document.implementation.createHTMLDocument("");R=UGA(R,A,Y);Y=Y.body;Y.appendChild(R);Y=(new XMLSerializer).serializeToString(Y);Y=Y.slice(Y.indexOf(">")+1,Y.lastIndexOf("</"));return ec(Y)};
UGA=function(R,A,Y){A=pOb(A,Y);A=document.createTreeWalker(A,5,function(M){if(M.nodeType===3)M=1;else if(BL3(M))if(M=FM6(M),M===null)M=2;else{var N=R.JSC$9282_sanitizerTable;M=M!=="FORM"&&(N.allowedElements.has(M)||N.elementPolicies.has(M))?1:2}else M=2;return M});
for(var P=A.nextNode(),E=Y.createDocumentFragment(),z=E;P!==null;){var c=void 0;if(P.nodeType===3)R.styleElementSanitizer&&z.nodeName==="STYLE"?(P=R.styleElementSanitizer(P.data),c=R.createTextNode(P)):c=R.createTextNode(P.data);else if(BL3(P))c=XSb(R,P,Y);else throw Error("Z");z.appendChild(c);if(P=A.firstChild())z=c;else for(;!(P=A.nextSibling())&&(P=A.parentNode());)z=z.parentNode}return E};
DGS.prototype.createTextNode=function(R){return document.createTextNode(R)};
XSb=function(R,A,Y){var P,E=FM6(A);Y=Y.createElement(E);A=A.attributes;for(var z=_.x(A),c=z.next();!c.done;c=z.next()){var M=c.value;c=M.name;M=M.value;var N=TfA(R.JSC$9282_sanitizerTable,c,E);a:{if(P=N.conditions){P=_.x(P);for(var y=P.next();!y.done;y=P.next()){var m=_.x(y.value);y=m.next().value;m=m.next().value;var T=void 0;if((y=(T=A.getNamedItem(y))==null?void 0:T.value)&&!m.has(y)){P=!1;break a}}}P=!0}if(P)switch(N.policyAction){case 1:MM(Y,c,M);break;case 2:throw Error();case 3:MM(Y,c,M.toLowerCase());
break;case 4:R.styleAttributeSanitizer?(M=R.styleAttributeSanitizer(M),MM(Y,c,M)):MM(Y,c,M);break;case 5:R.JSC$9282_resourceUrlPolicy?(N={type:2,attributeName:c,elementName:E},M=fg3(M),(M=R.JSC$9282_resourceUrlPolicy(M,N))&&MM(Y,c,M.toString())):MM(Y,c,M);break;case 6:if(R.JSC$9282_resourceUrlPolicy){N={type:2,attributeName:c,elementName:E};P=[];M=_.x(M.split(","));for(y=M.next();!y.done;y=M.next())m=_.x(y.value.trim().split(/\s+/,2)),y=m.next().value,m=m.next().value,P.push({url:y,descriptor:m});
M={parts:[]};P=_.x(P);for(y=P.next();!y.done;y=P.next())y=y.value,m=fg3(y.url),(m=R.JSC$9282_resourceUrlPolicy(m,N))&&M.parts.push({url:m.toString(),descriptor:y.descriptor});MM(Y,c,agq(M))}else MM(Y,c,M);break;case 7:N=M;if(R.JSC$9282_navigationUrlPolicy){N={type:2,attributeName:c,elementName:E};M=fg3(M);M=R.JSC$9282_navigationUrlPolicy(M,N);if(M===null)break;N=M.toString()}M=N;N=_.Pek(M);N=N!==void 0&&S6H.indexOf(N.toLowerCase())!==-1?M:"about:invalid#zClosurez";MM(Y,c,N)}}return Y};
_.SAz=Xf(function(){return new DGS(HDb)});
_.IzN=Xf(function(){return new DGS(rES)});var KSz=function(){this.calledBuild=!1;this.JSC$9294_sanitizerTable=HDb},WSA=function(){KSz.apply(this,arguments)};
_.H(WSA,KSz);WSA.prototype.build=function(){if(this.calledBuild)throw Error("na");this.calledBuild=!0;return new DGS(this.JSC$9294_sanitizerTable,void 0,void 0,this.JSC$9294_resourceUrlPolicy,this.JSC$9294_navigationUrlPolicy)};var jAS=/[^#]*/;var fzA=function(R){var A=bDA;if(A)for(var Y in A)Object.prototype.hasOwnProperty.call(A,Y)&&R(A[Y],Y,A)},pSS=function(){var R=[];
fzA(function(A){R.push(A)});
return R},bDA={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"},FSZ=_.U3(function(){return pSS()}),azA=function(){var R=BfZ("IFRAME"),
A={};
_.uI(FSZ(),function(Y){R.sandbox&&R.sandbox.supports&&R.sandbox.supports(Y)&&(A[Y]=!0)});
return A},BfZ=function(R,A){A=A===void 0?document:A;
return A.createElement(String(R).toLowerCase())};var SN;_.Sv=function(R,A,Y){return Math.min(Math.max(R,A),Y)};
SN=function(R,A,Y){return R+Y*(A-R)};_.Cs=function(R,A){this.x=R!==void 0?R:0;this.y=A!==void 0?A:0};
_.l=_.Cs.prototype;_.l.clone=function(){return new _.Cs(this.x,this.y)};
_.l.equals=function(R){return R instanceof _.Cs&&(this==R?!0:this&&R?this.x==R.x&&this.y==R.y:!1)};
_.l.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.l.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.l.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.l.translate=function(R,A){R instanceof _.Cs?(this.x+=R.x,this.y+=R.y):(this.x+=Number(R),typeof A==="number"&&(this.y+=A));return this};
_.l.scale=function(R,A){this.x*=R;this.y*=typeof A==="number"?A:R;return this};_.Dg=function(R,A){this.width=R;this.height=A};
_.l=_.Dg.prototype;_.l.clone=function(){return new _.Dg(this.width,this.height)};
_.l.area=function(){return this.width*this.height};
_.l.aspectRatio=function(){return this.width/this.height};
_.l.isEmpty=function(){return!this.area()};
_.l.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.l.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.l.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.l.scale=function(R,A){this.width*=R;this.height*=typeof A==="number"?A:R;return this};var Bj=function(R,A){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=R===UVk&&A||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=C8N};
Bj.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var hqb=function(R){return R instanceof Bj&&R.constructor===Bj&&R.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===C8N?R.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},C8N={},UVk={};
new Bj(UVk,"");var Sp,$t,KF,oZb,ZDq,GNb,hr,wSH,eqz,ubE,fF,qAD,EnZ,Piz,YWA,zQS,ifA,ljb,xgS,ZC6,c9q,MGS,sHb,OfD,I7;Sp=function(R){return R?new I7(_.oS(R)):t6k||(t6k=new I7)};
_.ic=function(R,A){return typeof A==="string"?R.getElementById(A):A};
$t=function(R,A){return(A||document).getElementsByTagName(String(R))};
_.kN7=function(R){return oZb("yt-formatted-string","paper-input-input",R)};
KF=function(R,A,Y,P){R=P||R;return(A=A&&A!="*"?String(A).toUpperCase():"")||Y?R.querySelectorAll(A+(Y?"."+Y:"")):R.getElementsByTagName("*")};
oZb=function(R,A,Y){var P=document,E=R&&R!="*"?String(R).toUpperCase():"";return E||A?(Y||P).querySelector(E+(A?"."+A:"")):KF(P,R,A,Y)[0]||null};
ZDq=function(R,A){_.BO.forEach(A,function(Y,P){P=="style"?R.style.cssText=Y:P=="class"?R.className=Y:P=="for"?R.htmlFor=Y:GNb.hasOwnProperty(P)?R.setAttribute(GNb[P],Y):_.iJ(P,"aria-")||_.iJ(P,"data-")?R.setAttribute(P,Y):R[P]=Y})};
GNb={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"};_.$2=function(R){R=(R||window).document;R=R.compatMode=="CSS1Compat"?R.documentElement:R.body;return new _.Dg(R.clientWidth,R.clientHeight)};
_.tHb=function(R){var A=_.Ws(R);R=R.defaultView;return new _.Cs(R.pageXOffset||A.scrollLeft,R.pageYOffset||A.scrollTop)};
_.Ws=function(R){return R.scrollingElement?R.scrollingElement:_.cb||R.compatMode!="CSS1Compat"?R.body||R.documentElement:R.documentElement};
hr=function(R){return R?R.defaultView:window};
_.jN=function(R,A,Y){return wSH(document,arguments)};
wSH=function(R,A){var Y=A[1],P=ubE(R,String(A[0]));Y&&(typeof Y==="string"?P.className=Y:Array.isArray(Y)?P.className=Y.join(" "):ZDq(P,Y));A.length>2&&eqz(R,P,A,2);return P};
eqz=function(R,A,Y,P){function E(M){M&&A.appendChild(typeof M==="string"?R.createTextNode(M):M)}
for(;P<Y.length;P++){var z=Y[P];if(!_.ok(z)||_.ZI(z)&&z.nodeType>0)E(z);else{a:{if(z&&typeof z.length=="number"){if(_.ZI(z)){var c=typeof z.item=="function"||typeof z.item=="string";break a}if(typeof z==="function"){c=typeof z.item=="function";break a}}c=!1}_.uI(c?_.Cu(z):z,E)}}};
_.De=function(R){return ubE(document,R)};
ubE=function(R,A){A=String(A);R.contentType==="application/xhtml+xml"&&(A=A.toLowerCase());return R.createElement(A)};
_.bK=function(){return document.createTextNode("\n")};
fF=function(R){if(R.nodeType!=1)return!1;switch(R.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};
qAD=function(R,A){eqz(_.oS(R),R,arguments,1)};
_.pF=function(R){for(var A;A=R.firstChild;)R.removeChild(A)};
_.Fw=function(R,A){A.parentNode&&A.parentNode.insertBefore(R,A)};
_.Bs=function(R,A){A.parentNode&&A.parentNode.insertBefore(R,A.nextSibling)};
_.UU=function(R){return R&&R.parentNode?R.parentNode.removeChild(R):null};
_.LSz=function(R,A){var Y=A.parentNode;Y&&Y.replaceChild(R,A)};
_.dGD=function(R){var A,Y=R.parentNode;if(Y&&Y.nodeType!=11)if(R.removeNode)R.removeNode(!1);else{for(;A=R.firstChild;)Y.insertBefore(A,R);_.UU(R)}};
_.a7=function(R){return R.children!=void 0?R.children:Array.prototype.filter.call(R.childNodes,function(A){return A.nodeType==1})};
_.A9S=function(R){return R.nextElementSibling!==void 0?R.nextElementSibling:_.RQH(R.nextSibling,!0)};
_.RQH=function(R,A){for(;R&&R.nodeType!=1;)R=A?R.nextSibling:R.previousSibling;return R};
_.dM=function(R){return _.ZI(R)&&R.nodeType==1};
_.tl=function(R,A){if(!R||!A)return!1;if(R.contains&&A.nodeType==1)return R==A||R.contains(A);if(typeof R.compareDocumentPosition!="undefined")return R==A||!!(R.compareDocumentPosition(A)&16);for(;A&&R!=A;)A=A.parentNode;return A==R};
EnZ=function(R,A){if(R==A)return 0;if(R.compareDocumentPosition)return R.compareDocumentPosition(A)&2?1:-1;if("sourceIndex"in R||R.parentNode&&"sourceIndex"in R.parentNode){var Y=R.nodeType==1,P=A.nodeType==1;if(Y&&P)return R.sourceIndex-A.sourceIndex;var E=R.parentNode,z=A.parentNode;return E==z?YWA(R,A):!Y&&_.tl(E,A)?-1*Piz(R,A):!P&&_.tl(z,R)?Piz(A,R):(Y?R.sourceIndex:E.sourceIndex)-(P?A.sourceIndex:z.sourceIndex)}P=_.oS(R);Y=P.createRange();Y.selectNode(R);Y.collapse(!0);R=P.createRange();R.selectNode(A);
R.collapse(!0);return Y.compareBoundaryPoints(_.P3.Range.START_TO_END,R)};
Piz=function(R,A){var Y=R.parentNode;if(Y==A)return-1;for(;A.parentNode!=Y;)A=A.parentNode;return YWA(A,R)};
YWA=function(R,A){for(;A=A.previousSibling;)if(A==R)return-1;return 1};
zQS=function(R){var A,Y=arguments.length;if(!Y)return null;if(Y==1)return arguments[0];var P=[],E=Infinity;for(A=0;A<Y;A++){for(var z=[],c=arguments[A];c;)z.unshift(c),c=c.parentNode;P.push(z);E=Math.min(E,z.length)}z=null;for(A=0;A<E;A++){c=P[0][A];for(var M=1;M<Y;M++)if(c!=P[M][A])return z;z=c}return z};
_.oS=function(R){return R.nodeType==9?R:R.ownerDocument||R.document};
ifA=function(R){return R.contentDocument||R.contentWindow.document};
_.CF=function(R,A){if("textContent"in R)R.textContent=A;else if(R.nodeType==3)R.data=String(A);else if(R.firstChild&&R.firstChild.nodeType==3){for(;R.lastChild!=R.firstChild;)R.removeChild(R.lastChild);R.firstChild.data=String(A)}else _.pF(R),R.appendChild(_.oS(R).createTextNode(String(A)))};
ljb={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};xgS={IMG:" ",BR:"\n"};ZC6=function(R){var A;R.tagName=="A"&&R.hasAttribute("href")||R.tagName=="INPUT"||R.tagName=="TEXTAREA"||R.tagName=="SELECT"||R.tagName=="BUTTON"?A=!R.disabled&&(!R.hasAttribute("tabindex")||c9q(R)):A=R.hasAttribute("tabindex")&&c9q(R);return A};
c9q=function(R){R=R.tabIndex;return typeof R==="number"&&R>=0&&R<32768};
MGS=function(R){var A=[];OfD(R,A,!0);R=A.join("");R=R.replace(/ \xAD /g," ").replace(/\xAD/g,"");R=R.replace(/\u200B/g,"");R=R.replace(/ +/g," ");R!=" "&&(R=R.replace(/^\s*/,""));return R};
sHb=function(R){var A=[];OfD(R,A,!1);return A.join("")};
OfD=function(R,A,Y){if(!(R.nodeName in ljb))if(R.nodeType==3)Y?A.push(String(R.nodeValue).replace(/(\r\n|\r|\n)/g,"")):A.push(R.nodeValue);else if(R.nodeName in xgS)A.push(xgS[R.nodeName]);else for(R=R.firstChild;R;)OfD(R,A,Y),R=R.nextSibling};
_.NoA=function(R,A,Y){if(!A&&!Y)return null;var P=A?String(A).toUpperCase():null;return _.GE(R,function(E){return(!P||E.nodeName==P)&&(!Y||typeof E.className==="string"&&_.B3(E.className.split(/\s+/),Y))},!0)};
_.GE=function(R,A,Y){R&&!Y&&(R=R.parentNode);for(Y=0;R;){if(A(R))return R;R=R.parentNode;Y++}return null};
I7=function(R){this.JSC$9319_document_=R||_.P3.document||document};
_.l=I7.prototype;_.l.getElement=function(R){return _.ic(this.JSC$9319_document_,R)};
_.l.$=I7.prototype.getElement;_.l.getElementsByTagName=function(R,A){return(A||this.JSC$9319_document_).getElementsByTagName(String(R))};
_.l.getElementsByTagNameAndClass=function(R,A,Y){return KF(this.JSC$9319_document_,R,A,Y)};
_.l.$$=I7.prototype.getElementsByTagNameAndClass;_.l.setProperties=ZDq;_.l.JSC$9321_createDom=function(R,A,Y){return wSH(this.JSC$9319_document_,arguments)};
_.l.createElement=function(R){return ubE(this.JSC$9319_document_,R)};
_.l.createTextNode=function(R){return this.JSC$9319_document_.createTextNode(String(R))};
_.l.getWindow=function(){return this.JSC$9319_document_.defaultView};
var Xr=function(R){return _.tHb(R.JSC$9319_document_)};
_.l=I7.prototype;_.l.appendChild=function(R,A){R.appendChild(A)};
_.l.append=qAD;_.l.canHaveChildren=fF;_.l.removeNode=_.UU;_.l.getChildren=_.a7;_.l.contains=_.tl;_.l=TE.prototype;_.l.getWidth=function(){return this.right-this.left};
_.l.getHeight=function(){return this.bottom-this.top};
_.l.clone=function(){return new TE(this.top,this.right,this.bottom,this.left)};
_.l.contains=function(R){return this&&R?R instanceof TE?R.left>=this.left&&R.right<=this.right&&R.top>=this.top&&R.bottom<=this.bottom:R.x>=this.left&&R.x<=this.right&&R.y>=this.top&&R.y<=this.bottom:!1};
_.l.expand=function(R,A,Y,P){_.ZI(R)?(this.top-=R.top,this.right+=R.right,this.bottom+=R.bottom,this.left-=R.left):(this.top-=R,this.right+=Number(A),this.bottom+=Number(Y),this.left-=Number(P));return this};
_.l.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};
_.l.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};
_.l.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};
_.l.translate=function(R,A){R instanceof _.Cs?(this.left+=R.x,this.right+=R.x,this.top+=R.y,this.bottom+=R.y):(this.left+=R,this.right+=R,typeof A==="number"&&(this.top+=A,this.bottom+=A));return this};
_.l.scale=function(R,A){A=typeof A==="number"?A:R;this.left*=R;this.right*=R;this.top*=A;this.bottom*=A;return this};var h8=function(R,A,Y,P){this.left=R;this.top=A;this.width=Y;this.height=P};
_.l=h8.prototype;_.l.clone=function(){return new h8(this.left,this.top,this.width,this.height)};
_.l.boundingRect=function(R){var A=Math.max(this.left+this.width,R.left+R.width),Y=Math.max(this.top+this.height,R.top+R.height);this.left=Math.min(this.left,R.left);this.top=Math.min(this.top,R.top);this.width=A-this.left;this.height=Y-this.top};
_.l.contains=function(R){return R instanceof _.Cs?R.x>=this.left&&R.x<=this.left+this.width&&R.y>=this.top&&R.y<=this.top+this.height:this.left<=R.left&&this.left+this.width>=R.left+R.width&&this.top<=R.top&&this.top+this.height>=R.top+R.height};
_.l.distance=function(R){var A=R.x<this.left?this.left-R.x:Math.max(R.x-(this.left+this.width),0);R=R.y<this.top?this.top-R.y:Math.max(R.y-(this.top+this.height),0);return Math.sqrt(A*A+R*R)};
_.l.getSize=function(){return new _.Dg(this.width,this.height)};
_.l.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};
_.l.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};
_.l.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};
_.l.translate=function(R,A){R instanceof _.Cs?(this.left+=R.x,this.top+=R.y):(this.left+=R,typeof A==="number"&&(this.top+=A));return this};
_.l.scale=function(R,A){A=typeof A==="number"?A:R;this.left*=R;this.width*=R;this.top*=A;this.height*=A;return this};var J9N,Gs,sN3,kl,QHb,ToE,vnq,ZFu,gnS,Hf8;_.o7=function(R,A,Y){if(typeof A==="string")(A=_.VGb(R,A))&&(R.style[A]=Y);else for(var P in A){Y=R;var E=A[P],z=_.VGb(Y,P);z&&(Y.style[z]=E)}};
J9N={};_.VGb=function(R,A){var Y=J9N[A];if(!Y){var P=_.nO(A);Y=P;R.style[P]===void 0&&(P=(_.cb?"Webkit":_.xB?"Moz":null)+B8G(P),R.style[P]!==void 0&&(Y=P));J9N[A]=Y}return Y};
_.Mh=function(R,A){var Y=_.oS(R);return Y.defaultView&&Y.defaultView.getComputedStyle&&(R=Y.defaultView.getComputedStyle(R,null))?R[A]||R.getPropertyValue(A)||"":""};
_.Ze=function(R,A){return _.Mh(R,A)||(R.currentStyle?R.currentStyle[A]:null)||R.style&&R.style[A]};
_.y9D=function(R){return _.Ze(R,"position")};
Gs=function(R,A,Y){if(A instanceof _.Cs){var P=A.x;A=A.y}else P=A,A=Y;R.style.left=kl(P,!1);R.style.top=kl(A,!1)};
sN3=function(R){try{return R.getBoundingClientRect()}catch(A){return{left:0,top:0,right:0,bottom:0}}};
_.k2=function(R){var A=_.oS(R),Y=new _.Cs(0,0);if(R==(A?_.oS(A):document).documentElement)return Y;R=sN3(R);A=Xr(Sp(A));Y.x=R.left+A.x;Y.y=R.top+A.y;return Y};
_.mgb=function(R,A,Y){if(A instanceof _.Dg)Y=A.height,A=A.width;else if(Y==void 0)throw Error("oa");R.style.width=kl(A,!0);R.style.height=kl(Y,!0)};
kl=function(R,A){typeof R=="number"&&(R=(A?Math.round(R):R)+"px");return R};
QHb=function(R){return ToE(R)};
ToE=function(R){var A=vnq;if(_.Ze(R,"display")!="none")return A(R);var Y=R.style,P=Y.display,E=Y.visibility,z=Y.position;Y.visibility="hidden";Y.position="absolute";Y.display="inline";R=A(R);Y.display=P;Y.position=z;Y.visibility=E;return R};
vnq=function(R){var A=R.offsetWidth,Y=R.offsetHeight,P=_.cb&&!A&&!Y;return(A===void 0||P)&&R.getBoundingClientRect?(R=sN3(R),new _.Dg(R.right-R.left,R.bottom-R.top)):new _.Dg(A,Y)};
ZFu=function(R){var A=_.k2(R);R=ToE(R);return new h8(A.x,A.y,R.width,R.height)};
gnS=function(R,A){R=R.style;"opacity"in R?R.opacity=A:"MozOpacity"in R?R.MozOpacity=A:"filter"in R&&(R.filter=A===""?"":"alpha(opacity="+Number(A)*100+")")};
_.dz=function(R,A){R.style.display=A?"":"none"};
_.nnz=function(R){return"rtl"==_.Ze(R,"direction")};
Hf8=function(R){var A=_.Mh(R,"marginLeft"),Y=_.Mh(R,"marginRight"),P=_.Mh(R,"marginTop");R=_.Mh(R,"marginBottom");return new TE(parseFloat(P),parseFloat(Y),parseFloat(R),parseFloat(A))};
_.r9S=function(R){var A=_.Mh(R,"borderLeftWidth"),Y=_.Mh(R,"borderRightWidth"),P=_.Mh(R,"borderTopWidth");R=_.Mh(R,"borderBottomWidth");return new TE(parseFloat(P),parseFloat(Y),parseFloat(R),parseFloat(A))};var Zx=function(R){this.context=R};
Zx.prototype.isSupported=function(R){return(R==null?0:R.attributionEnabled)||(R==null?void 0:R.beaconMethod)==="POST"||(R==null?0:R.customHeaders)||(R==null?0:R.customBody)||(R==null?0:R.keepAlive)?!1:!nF(this.context)};
Zx.prototype.ping=function(){var R=this;return IG(_.Ge.apply(0,arguments).map(function(A){try{var Y=R.context.global,P=!1;P=P===void 0?!1:P;Y.google_image_requests||(Y.google_image_requests=[]);var E=BfZ("IMG",Y.document);P&&(E.attributionSrc="");E.src=A;Y.google_image_requests.push(E);return!0}catch(z){return!1}}).every(function(A){return A}))};
Zx.prototype.pingWithHeadersAndBody=function(R,A,Y){this.ping.apply(this,_.py(_.Ge.apply(3,arguments)))};var DgA=function(R){this.context=R};
DgA.prototype.isSupported=function(R){return UgZ&&!nF(this.context)&&hdI(this.context)!==void 0&&!(R==null?0:R.attributionEnabled)&&(R==null?void 0:R.beaconMethod)!=="POST"&&!(R==null?0:R.customHeaders)&&!(R==null?0:R.customBody)};
DgA.prototype.makeBeacon=function(R,A){if(!this.isSupported(A))throw new Ts;return new t8(this.context,R)};
var UgZ=!1,t8=function(R,A){this.context=R;this.JSC$9340_urlWithoutToken=A;R=hdI(this.context);if(R===void 0)throw Error();this.wrappedBeacon=new R($gA(this),{})},$gA=function(R){R=R.JSC$9340_urlWithoutToken;
return(R.slice(-1)[0]==="&"?R:R+"&")+"pbapi=1"};
t8.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
t8.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
t8.prototype.setHeader=function(){};
_.Yh.Object.defineProperties(t8.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9340_urlWithoutToken},
set:function(R){this.JSC$9340_urlWithoutToken=R;this.wrappedBeacon.setURL($gA(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(R){if(R!=="GET")throw new Ts;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var XFD=function(R){this.context=R};
XFD.prototype.isSupported=function(R){if((R==null?0:R.attributionEnabled)||(R==null?void 0:R.beaconMethod)==="GET"||(R==null?0:R.customHeaders)||(R==null?0:R.customBody)||(R==null?0:R.keepAlive))return!1;var A;return!nF(this.context)&&((A=this.context.global.navigator)==null?void 0:A.sendBeacon)!==void 0};
XFD.prototype.ping=function(){var R=this;return IG(_.Ge.apply(0,arguments).map(function(A){var Y;return(Y=R.context.global.navigator)==null?void 0:Y.sendBeacon(A)}).every(function(A){return A}))};
XFD.prototype.pingWithHeadersAndBody=function(R,A,Y){this.ping.apply(this,_.py(_.Ge.apply(3,arguments)))};var HO=function(R){this.value=R},Yt=function(R,A){return IG(R.value).pipe(gL(A))},EU=new HO(!1),rvV=new HO(!0);var Zg=function(R){this.value=R;this.releasedSubject=new QX};
Zg.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Yh.Object.defineProperties(Zg.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9353_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var Al3=["FRAME","IMG","IFRAME"],urk=/^[01](px)?$/,Rol=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},dMu=function(){var R=new Rol;
R.crossDomainLoadedDefault=!0;R.pendingImagesBlockLoad=!0;return R};var SWb=function(R,A){var Y=x_k(R);if(Y)if(Y.onCreativeLoad)Y.onCreativeLoad(A);else{var P=A?[A]:[],E=function(z){for(var c=0;c<P.length;++c)try{P[c](1,z)}catch(M){}P={push:function(M){M(1,z)}}};
Y.onCreativeLoad=function(z){P.push(z)};
Y.setAttribute("data-creative-load-listener","");Y.addEventListener("creativeLoad",function(z){E(z.detail)});
_.P3.addEventListener("message",function(z){lel(Y,E,z)})}};var w$=function(R,A){var Y=this;this.global=R;this.parentContext=A;this.JSC$9364_onVisibilityChange=this.document?kU(IG(!0),Cy(this.document,"visibilitychange")).pipe(ue(this.parentContext.performanceMonitor,748),fy(function(){return Y.getVisibilityState()}),RS()):IG("visible");
this.document?Cy(this.document,"DOMContentLoaded").pipe(ue(this.parentContext.performanceMonitor,739),d2(1)):IG(tpS("DOMContentLoaded"))},HQ6=function(R){return R.document!==null&&R.document.visibilityState!==void 0};
w$.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
w$.prototype.querySelector=function(R){return this.document?this.document.querySelector(R):null};
w$.prototype.querySelectorAll=function(R){return this.document?_.Cu(this.document.querySelectorAll(R)):[]};
w$.prototype.elementFromPoint=function(R,A){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;R=this.document.elementFromPoint(R,A);return R===null?null:new Zg(R)};
var s18=function(R,A,Y){Y=Y===void 0?!1:Y;if(A.ref===void 0||!R.document)return IG(A).pipe(ue(R.parentContext.performanceMonitor,749));var P=new Ep(1),E=function(){P.next(A)};
Y||SWb(A.ref,E);YUk(A.ref,E);return P.pipe(ue(R.parentContext.performanceMonitor,749),d2(1))};
_.Yh.Object.defineProperties(w$.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return UM6(this.global,"document")?this.global.document||null:null}}});var clk=_.Z7(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),OJq=_.Z7(["./reach_worklet.js"]),MKk=_.Z7(["./reach_worklet.js"]),IjE=_.Z7(["./reach_worklet.html"]),Kmz=_.Z7(["./reach_worklet.js"]),WmS=_.Z7(["./reach_worklet.js"]);_.Jr(IjE);_.Jr(Kmz);_.Jr(WmS);var qM={left:0,top:0,width:0,height:0};var jHE,bf8,fjb,pFE,YS,BoD,ajq,CiN,bcl,fHS,k07,G07;jHE=function(R,A,Y,P,E,z,c){var M="";R&&(M+=R+":");Y&&(M+="//",A&&(M+=A+"@"),M+=Y,P&&(M+=":"+P));E&&(M+=E);z&&(M+="?"+z);c&&(M+="#"+c);return M};
bf8=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.RW=function(R){return R.match(bf8)};
_.ge=function(R,A){return R?A?decodeURI(R):decodeURIComponent(R):R};
fjb=function(R){R=_.RW(R)[1]||null;!R&&_.P3.self&&_.P3.self.location&&(R=_.P3.self.location.protocol.slice(0,-1));return R?R.toLowerCase():""};
_.AN=function(R){return _.ge(_.RW(R)[3]||null,!0)};
_.T3=function(R){return _.ge(_.RW(R)[5]||null,!0)};
_.I1k=function(R){var A=R.indexOf("#");return A<0?null:R.slice(A+1)};
pFE=function(R){R=_.RW(R);return jHE(R[1],R[2],R[3],R[4])};
_.FmS=function(R){R=_.RW(R);return jHE(R[1],null,R[3],R[4])};
_.t_=function(R){R=_.RW(R);return jHE(null,null,null,null,R[5],R[6],R[7])};
_.Ag=function(R){var A=R.indexOf("#");return A<0?R:R.slice(0,A)};
YS=function(R,A){R=_.RW(R);A=_.RW(A);return R[3]==A[3]&&R[1]==A[1]&&R[4]==A[4]};
BoD=function(R,A){if(R){R=R.split("&");for(var Y=0;Y<R.length;Y++){var P=R[Y].indexOf("="),E=null;if(P>=0){var z=R[Y].substring(0,P);E=R[Y].substring(P+1)}else z=R[Y];A(z,E?EK(E):"")}}};
ajq=function(R){var A=R.indexOf("#");A<0&&(A=R.length);var Y=R.indexOf("?");if(Y<0||Y>A){Y=A;var P=""}else P=R.substring(Y+1,A);return[R.slice(0,Y),P,R.slice(A)]};
CiN=function(R,A){return A?R?R+"&"+A:A:R};
_.hQ8=function(R,A){if(!A)return R;R=ajq(R);R[1]=CiN(R[1],A);return R[0]+(R[1]?"?"+R[1]:"")+R[2]};
_.onf=function(R,A,Y){if(Array.isArray(A))for(var P=0;P<A.length;P++)_.onf(R,String(A[P]),Y);else A!=null&&Y.push(R+(A===""?"":"="+_.wu(A)))};
_.vU=function(R){var A=[],Y;for(Y in R)_.onf(Y,R[Y],A);return A.join("&")};
_.du=function(R,A){A=_.vU(A);return _.hQ8(R,A)};
_.uK=function(R,A,Y){Y=Y!=null?"="+_.wu(Y):"";return _.hQ8(R,A+Y)};
bcl=function(R,A,Y,P){for(var E=Y.length;(A=R.indexOf(Y,A))>=0&&A<P;){var z=R.charCodeAt(A-1);if(z==38||z==63)if(z=R.charCodeAt(A+E),!z||z==61||z==38||z==35)return A;A+=E+1}return-1};
fHS=/#|$/;_.wz=function(R,A){var Y=R.search(fHS),P=bcl(R,0,A,Y);if(P<0)return null;var E=R.indexOf("&",P);if(E<0||E>Y)E=Y;P+=A.length+1;return EK(R.slice(P,E!==-1?E:0))};
k07=/[?&]($|#)/;_.Pk=function(R,A){for(var Y=R.search(fHS),P=0,E,z=[];(E=bcl(R,P,A,Y))>=0;)z.push(R.substring(P,E)),P=Math.min(R.indexOf("&",E)+1||Y,Y);z.push(R.slice(P));return z.join("").replace(k07,"$1")};
_.an=function(R,A,Y){return _.uK(_.Pk(R,A),A,Y)};
G07=function(R){var A=ajq(window.location.href),Y=A[1],P=[];Y&&Y.split("&").forEach(function(E){var z=E.indexOf("=");z=z>=0?E.slice(0,z):E;R.hasOwnProperty(z)||P.push(E)});
A[1]=CiN(P.join("&"),_.vU(R));return A[0]+(A[1]?"?"+A[1]:"")+A[2]};var KEV=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(KEV,_.lb);KEV.prototype.getVersion=function(){return _.X1(this,2)};var Ie6=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Ie6,_.lb);var rlq=function(R,A){return _.IS(R,2,A)},SUk=function(R,A){return _.IS(R,3,A)};
Ie6.prototype.getModel=function(){return _.X1(this,4)};
var U_J=function(R,A){return _.IS(R,4,A)},HJ3=function(R,A){return _.IS(R,5,A)},Xvk=function(R,A){return _.IS(R,9,A)},ntq=function(R,A){return n7(R,10,A)},gtk=function(R,A){return _.y6(R,11,A)},D_6=function(R,A){return _.IS(R,1,A)},$_k=function(R,A){return _.y6(R,7,A)};var QXl="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var Pv=function(R,A,Y,P){R=R===void 0?window:R;A=A===void 0?null:A;Y=Y===void 0?new zkH:Y;P=P===void 0?sX6():P;RqZ.call(this);var E=this;this.global=R;this.debugChannel=A;this.performanceMonitor=Y;this.onPageHide=dRk(function(){return Cy(E.global,"pagehide")}).pipe(ue(this.performanceMonitor,941));
this.onLoad=dRk(function(){return Cy(E.global,"load")}).pipe(ue(this.performanceMonitor,738),d2(1));
this.onResize=dRk(function(){return Cy(E.global,"resize")}).pipe(ue(this.performanceMonitor,741));
this.onMessage=dRk(function(){return Cy(E.global,"message")}).pipe(ue(this.performanceMonitor,740));
this.document=new w$(this.global,this);this.timeProvider=new iDS(new xG7(this.intrinsicFunctionNamespace,this.performanceMonitor),new lzN(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new P8A(new OD8(this),new DgA(this),new QG(this,new NfE(this)),new QG(this,new XFD(this)),new QG(this,new Zx(this)))};
_.H(Pv,RqZ);var nF=function(R){var A=R.global;return!!R.global.HTMLFencedFrameElement&&!!A.fence&&typeof A.fence.reportEvent==="function"};
_.l=Pv.prototype;_.l.reportFencedFrameEvent=function(R){nF(this)&&this.global.fence.reportEvent(R)};
_.l.getOnBackgrounded=function(){return this.onPageHide.pipe(ue(this.performanceMonitor,942),gL(this.queue),fy(function(){}))};
_.l.postMessage=function(R,A,Y){Y=Y===void 0?[]:Y;this.global.postMessage(R,A,Y)};
_.l.getWidth=function(){return $MS(this.global)?this.global.width:0};
_.l.getHeight=function(){return $MS(this.global)?this.global.height:0};
_.l.isMobile=function(){return JEN()||yEZ()};
var tr=function(R,A){try{var Y=ylk(A,R.global,R.isMobile());return{left:Y.left,top:Y.top,width:Y.getWidth(),height:Y.getHeight()}}catch(P){return qM}};
Pv.prototype.validate=function(){var R=this.beaconFactory.isSupported()||nF(this);return this.global&&this.timeProvider.available()&&R};
var kEk=function(R){return(R=jXk(R.global))?vt(R):null};
_.Yh.Object.defineProperties(Pv.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(R){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!$MS(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}}});_.ZfA=!_.lu&&!_.Ou8();var DII=function(R){return R};var $Ik=function(R){return R.pipe(GO(function(A){var Y=A.endOfSessionReason;var P;return((P=A.viewable)==null?void 0:P.extrapolateToNow().value)||Y!=void 0}),d2(1),qR())};var Ctk=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},hoS=function(R){var A=R.sequenceNumber.toString(10).padStart(2,"0");
A=""+R.startTime+A;R.sequenceNumber<99&&R.sequenceNumber++;return A};var nWq=yr(cO(function(R){return R.endOfSessionReason===void 0}),fy(function(R){return Object.assign({},R,{timestamps:jp(R)})}),GO(function(R){var A=R.viewable;
R=R.timestamps;var Y;return(Y=A==null?void 0:A.extrapolateUsingTimestampMap(R).value)!=null?Y:!1}),fy(function(R){var A=R.beaconFactory;
var Y=R.timestampedExposureHistory;var P=R.timeOnScreen;var E=R.binaryContext;R=R.timestamps;if(A===void 0||Y===void 0||P===void 0||E===void 0)return!1;if(P.extrapolateUsingTimestampMap(R).value.every(function(z){return z>=0}))return!0;
Y=Y.map(function(z){return z.timestamp+":"+z.value}).join(",");
P=otu({bin:E,tos:P},R);A.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+P+("&eh="+Y)).sendNow();return!0}),cO(function(R){return!R}),qR());var GZJ=function(R){return{id:R.pingId,mcvt:R.maxConsecutiveViewTime,p:R.creativePosition,asp:R.adSpeedPosition,tm:R.totalMeasurementTime,tu:R.totalUnviewedTime,mtos:R.maxTimeOnScreen,tos:R.timeOnScreen,v:R.binaryVersion,bin:R.binaryContext,avms:R.measurementStrategy,bs:R.browserSize,mc:R.maximumExposure,"if":R.crossDomainIframeState,vu:R.delayedImpressionJsState,app:R.inApp,mse:R.mraidError,mtop:R.mraidSituation,itpl:R.injectedTemplateId,adk:R.adKey,exk:R.awbidKey,rs:R.requestSource,la:R.isLargeAd,
cr:R.isContentRecommendationAd,uach:R.userAgentClientHints,vs:R.viewState,r:R.reasonCode,pay:R.hasCpmavUrl,co:R.clientPingOrderCounter,rst:R.adRenderStartTime,rpt:R.adRenderPeriodTime,isd:R.initialScrollDepth,lsd:R.loadedScrollDepth,context:R.errorContext,msg:R.errorMessage,stack:R.errorStack,name:R.errorName,ec:R.hasElementChanged,sfr:R.strategyFailureReasons,met:R.creativeSearchResult,wmsd:R.webMeasurementStartDiagnostic,pv:R.pageVisible,epv:R.eosPageVisible,pbe:R.inStatefulBeaconExperiment,fle:R.inFetchLaterBeaconExperiment,
vae:R.inViewableAttributionExperiment,spb:R.supportsPendingBeacon,sfl:R.supportsFetchLater,ffslot:R.isFencedFrameSlotTurtlex,reach:R.sharedStorageReachMode,io2:R.v2VisibilityBitVector,rxdbg:R.rxDebugger,omida:R.omidAppId,omidp:R.omidPartner,omidpv:R.omidPartnerVersion,omidor:R.omidOcclusionReasons,omidv:R.omidVersion,omids:R.omidSessionType,omidam:R.omidAccessMode,omidct:R.omidCreativeType,omidia:R.omidInApp,omiddc:R.omidDeviceCategory,omidlat:R.omidLastActivity,omiddit:R.omidDeviceIdleTime,qid:R.errorEscapedQueryId}};var UI3=function(R){var A=[];return R.pipe(fy(function(Y){var P=Y.beaconFactory,E=Y.fetchBeaconFactory,z=Y.timeOnScreen,c=Y.timeOnScreenUrlPrefixes,M=Y.payloadMapper,N=Y.timeOnScreenPingId,y=Y.timeOnScreenReason,m=Y.urlSerializer,T=Y.viewable,Q=Y.hasImpressionFired,g=Y.inStatefulBeaconExperiment,r=Y.supportsPendingBeacon,I=Y.supportsFetchLater,b=Y.turtlexReportEventData;if(!Y.geometryMeasurable||!Q||Y.maxTimeOnScreen===void 0||z===void 0||c===void 0||M===void 0||N===void 0||m===void 0||P===void 0)return!1;
if(Y.isTurtlex){if(y===void 0)return!1;c=Y.reportFencedFrameEvent;if(!c)return!1;c({eventType:"active-view-time-on-screen",eventData:b!=null?b:"",destination:["buyer"]});return!0}if(!(g||I||y))return!1;b=jp(Y);var p;T=(p=T==null?void 0:T.extrapolateUsingTimestampMap(b).value)!=null?p:!1;p=m(Object.assign({},Y,{pingId:N,viewState:T?4:3,reasonCode:y!=null?y:"u",payloadMapper:M,urlPrefixes:c}),b);if(g){for(;A.length>c.length;)Y=void 0,(Y=A.shift())==null||Y.deactivate();p.forEach(function(L,Z){Z>=A.length?
A.push(P.makeBeacon(L)):A[Z].url=L});
return r&&E&&y!==void 0?(p.forEach(function(L){E.makeBeacon(L).sendNow()}),!0):y!==void 0}if(r&&E&&y!==void 0)return p.forEach(function(L){E.makeBeacon(L).sendNow()}),!0;
if(I&&E){for(;A.length>c.length;)r=void 0,(r=A.shift())==null||r.deactivate();var h=m(Object.assign({},Y,{pingId:N,viewState:T?4:3,reasonCode:y!=null?y:"u",payloadMapper:M,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),b)[0];p.forEach(function(L,Z){Z>=A.length?A.push(P.makeBeacon(h,{endOfSession:!0})):A[Z].url=h});
return y!==void 0?(p.forEach(function(L){E.makeBeacon(L).sendNow()}),!0):y!==void 0}return y!==void 0?(p.forEach(function(L){P.makeBeacon(L).sendNow()}),!0):!1}),cO(function(Y){return!Y}),qR())};var XDb=yr(GO(function(R){return R.immediateUrlPrefixes!==void 0&&R.payloadMapper!==void 0&&R.urlSerializer!==void 0&&R.inferredPingId!==void 0&&R.beaconFactory!==void 0}),GO(function(R){return d_k(R)!==null}),qUJ(function(R){return R.activeViewUnmeasurableEvent},function(R){return R.emit}),fy(function(R){if(R.isTurtlex){var A=R.reportFencedFrameEvent;
if(A){var Y;A({eventType:"active-view-unmeasurable",eventData:(Y=R.turtlexReportEventData)!=null?Y:"",destination:["buyer"]})}}else{Y=void 0;var P=d_k(R);if(P==="x"){var E,z=(E=R.geometricMeasurementErrors)!=null?E:R.contextValidationErrors;z&&(A=z.stack,Y=z.message)}R.urlSerializer(Object.assign({},R,{urlPrefixes:R.immediateUrlPrefixes,payloadMapper:R.payloadMapper,pingId:R.inferredPingId,viewState:2,reasonCode:P,errorMessage:Y,errorStack:A}),jp(R)).forEach(function(c){R.beaconFactory.makeBeacon(c).sendNow()})}}),
d2(1),qR());var RUk=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var gWu=yr(GO(function(R){return R.payloadMapper!==void 0&&R.immediateUrlPrefixes!==void 0&&R.urlSerializer!==void 0&&R.inferredPingId!==void 0&&R.beaconFactory!==void 0}),fy(function(R){return Object.assign({},R,{timestamps:jp(R)})}),GO(function(R){var A=R.viewable;
var Y=R.hasImpressionFired;R=R.timestamps;var P;return!!Y&&((P=A==null?void 0:A.extrapolateUsingTimestampMap(R).value)!=null?P:!1)}),qUJ(function(R){return R.activeViewViewableEvent},function(R){return R.emit}),fy(function(R){var A=R.beaconFactory,Y=R.turtlexReportEventData;
if(R.isTurtlex){var P=R.reportFencedFrameEvent;if(!P)return!1;P({eventType:"active-view-viewable",eventData:Y!=null?Y:"",destination:["buyer"]});return!0}Y=R.urlSerializer(Object.assign({},R,{urlPrefixes:R.immediateUrlPrefixes,payloadMapper:R.payloadMapper,pingId:R.inferredPingId,viewState:4,reasonCode:"v"}),R.timestamps);(P=R.cpmavUrls)&&P.length>0&&R.viewUrlSerializer&&R.viewUrlSerializer(P,R).forEach(function(E){A.makeBeacon(E).sendNow()});
(P=R.viewableRelayUrls)&&P.length>0&&R.viewUrlSerializer&&R.viewUrlSerializer(P,R).forEach(function(E){A.makeBeacon(E).sendNow()});
Y.forEach(function(E){A.makeBeacon(E,{attributionEnabled:R.isViewableAttributionEnabled}).sendNow()});
return!0}),cO(function(R){return!R}),qR());var G8V=fy(function(R){return[R.value.topWindowViewportExternalGeometry.width,R.value.topWindowViewportExternalGeometry.height]});var wL=function(R,A){this.callback=R;this.options=A;this.intersectionObserverV2=this.intersectionObserverV1=null},U9l=function(R,A){A?R.intersectionObserverV2||(A=Object.assign({},R.options,{delay:100,
trackVisibility:!0}),R.intersectionObserverV2=new IntersectionObserver(R.callback,A)):R.intersectionObserverV1||(R.intersectionObserverV1=new IntersectionObserver(R.callback,R.options))},tGD=function(R,A){R=A?R.intersectionObserverV2:R.intersectionObserverV1;
if(!R)throw new AEG;return R};
wL.prototype.observe=function(R,A){tGD(this,R).observe(A)};
wL.prototype.unobserve=function(R,A){tGD(this,R).unobserve(A)};
wL.prototype.disconnect=function(R){tGD(this,R).disconnect()};
wL.prototype.takeRecords=function(R){return tGD(this,R).takeRecords()};var Vqk={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:qM,topWindowViewportExternalGeometry:qM,measurementRequests:new QX,elementGeometrySourceName:"ns",elementGeometry:qM,intersectionGeometry:qM,viewportLocalAppOffset:{x:0,y:0}};var jNk=Ls(yr(fy(function(R){var A;return(A=R.exposureOverride)!=null?A:XVI(R)}),fy(function(R){return isFinite(R)?R:0}))),Cmb=Ls(yr(fy(function(R){var A;
return(A=R.exposureOverride)!=null?A:XVI(R)}),fy(function(R){return isFinite(R)?R:-1})));var eN=function(R,A){this.a=R;this.b=A;if(R.clock.timeline!==A.clock.timeline)throw Error();};
eN.prototype.equivalentTo=function(R){return R instanceof eN?this.a.equivalentTo(R.a)&&this.b.equivalentTo(R.b):!1};
eN.prototype.extrapolateToTime=function(R){var A=this.a.extrapolateToTime(R).value,Y=this.b.extrapolateToTime(R).value;return{timestamp:R,value:[A,Y]}};
_.Yh.Object.defineProperties(eN.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 R=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),A=this.a.lastMeasurement.timestamp.equals(R)?this.a.lastMeasurement.value:this.a.extrapolateToTime(R).value,Y=this.b.lastMeasurement.timestamp.equals(R)?this.b.lastMeasurement.value:this.b.extrapolateToTime(R).value;return{timestamp:R,value:[A,Y]}}}});var qA=function(R,A){this.input=R;this.mapFunction=A;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
qA.prototype.equivalentTo=function(R){return R instanceof qA?this.input.equivalentTo(R.input)&&this.mapFunction===R.mapFunction:!1};
qA.prototype.extrapolateToTime=function(R){R=this.input.extrapolateToTime(R);return{timestamp:R.timestamp,value:this.mapFunction(R.value)}};
_.Yh.Object.defineProperties(qA.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var LF=function(){};
LF.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
LF.prototype.extrapolateUsingTimestampMap=function(R){var A=this.clock.timeline,Y,P=(Y=R.get(A))!=null?Y:this.clock.now();R.set(A,P);return this.extrapolateToTime(P)};
LF.prototype.map=function(R){return new wFS(this,R)};
LF.prototype.joinWith=function(R){return new uY8(this,R)};
var uY8=function(){eN.apply(this,arguments);this.map=LF.prototype.map;this.joinWith=LF.prototype.joinWith;this.extrapolateToNow=LF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=LF.prototype.extrapolateUsingTimestampMap};
_.H(uY8,eN);var wFS=function(){qA.apply(this,arguments);this.map=LF.prototype.map;this.joinWith=LF.prototype.joinWith;this.extrapolateToNow=LF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=LF.prototype.extrapolateUsingTimestampMap};
_.H(wFS,qA);var RX=function(R,A){this.lastMeasurement=A;this.extrapolateToNow=LF.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=LF.prototype.extrapolateUsingTimestampMap;this.map=LF.prototype.map;this.joinWith=LF.prototype.joinWith;this.clock=R};
RX.prototype.equivalentTo=function(R){return R.active};
RX.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Yh.Object.defineProperties(RX.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var k8b=fy(function(R){if(R.value.viewportGeometrySourceName==="omid"){if(R.value.elementGeometrySourceName==="nio")return"omio";if(R.value.elementGeometrySourceName==="geo")return"omgeo"}return R.value.elementGeometrySourceName==="geo"||R.value.elementGeometrySourceName==="nio"?R.value.viewportGeometrySourceName:R.value.elementGeometrySourceName});var IiS=yr(GO(function(R){return!isNaN(R)}),iG(function(R,A){return isNaN(R)?A:Math.min(R,A)},NaN),RS());var bXu=Ls(yr(fy(function(R){return R.intersectionGeometry.width*R.intersectionGeometry.height/(R.exposedViewportLocalGeometry.width*R.exposedViewportLocalGeometry.height)}),fy(function(R){return isFinite(R)?Math.min(1,R):0})));var o0k=yr(Ls(fy(function(R){R=R.exposureOverride?R.elementGeometry.width*R.elementGeometry.height*R.exposureOverride/(R.topWindowViewportExternalGeometry.width*R.topWindowViewportExternalGeometry.height):R.intersectionGeometry.width*R.intersectionGeometry.height/(R.topWindowViewportExternalGeometry.width*R.topWindowViewportExternalGeometry.height);return isFinite(R)?R:0})));var wV3=function(R,A){var Y=this;this.timeProvider=R;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=A.pipe(RS()).subscribe(function(P){eUP(Y);Y.measurementRequestObserver=P})},q9I=function(R,A){eUP(R);
R.lastMeasurementRequest=R.timeProvider.setTimeout(function(){var Y;return void((Y=R.measurementRequestObserver)==null?void 0:Y.next())},A)},eUP=function(R){R.lastMeasurementRequest!==null&&R.timeProvider.clearTimeout(R.lastMeasurementRequest);
R.lastMeasurementRequest=null};
wV3.prototype.dispose=function(){eUP(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var eQ7=function(){};var TuI=function(R,A){this.context=R;this.strategies=A};
_.H(TuI,eQ7);TuI.prototype.buildGeometrySource=function(R,A){var Y=this.strategies.map(function(z){return z.buildGeometrySource(R,A)}),P=Yek(Y.map(function(z){return z.geometrySource})),E=P.capturedErrors.pipe(qWH());
return{geometrySource:P.chain.pipe(gL(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:E,strategyErrors:P.capturedErrors}].concat(_.py(Y.map(function(z){return z.additionalOutputs}))))}};
var qWH=function(){return iG(function(R,A){A instanceof ps?R.push(A.measurementStrategyFailureReason):R.push(-1);return R},[])};var vWI=function(R,A){this.context=R;this.poller=A};
_.H(vWI,eQ7);vWI.prototype.buildGeometrySource=function(R,A){var Y=PIk(zAq(this.context,this.poller),J68(this.context,A.requestSource));return{geometrySource:Avk(R.measurableCreative.pipe(Y),A.inApp),additionalOutputs:{}}};var Q16=function(R,A,Y){Y=Y===void 0?g0V(R,A):Y;this.context=R;this.intersectionObserverStrategy=Y};
_.H(Q16,eQ7);Q16.prototype.buildGeometrySource=function(R,A){var Y=this.intersectionObserverStrategy(A.useV2);return{geometrySource:Avk(R.measurableCreative.pipe(Y,n0J(this.context)),A.inApp),additionalOutputs:{}}};var Lmq=function(R,A,Y){var P=P===void 0?Symbol():P;this.element=R;this.immediateUrls=A;this.timeOnScreenUrls=Y;this.symbol=P};var tqu=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),OQk=Object.freeze([1,.75,tqu.exposureThreshold,tqu.largeAdExposureThreshold,0]);var uJ8=function(R,A){A=A===void 0?36E5:A;var Y=Y===void 0?!0:Y;this.creatives=new QX;this.elementsToUnregister=new QX;this.elementMap=new Map;var P=new Pv(window,null);P.beaconFactory=new QG(P,new Zx(P));mIS(P,this.creatives,this.elementsToUnregister,R,A,Y).subscribe()},LD3=function(R,A,Y,P){if(!R.elementMap.has(A)){var E=new Zg(A);
R.elementMap.set(A,E);R.creatives.next(new Lmq(E,Y,P))}},qzV=function(R,A){R.elementsToUnregister.next(A);
var Y=R.elementMap.get(A);Y!==void 0&&(Y.release(),R.elementMap.delete(A))};var g9k=function(R){var A=R.url;R=R.uaDataValues;this.JSC$9469_url_=A;this.uaDataValues_=R;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var Y=/[?&]([^&=]+)=([^&]*)/g;R=Y.exec(A);)this.urlParamValues_[R[1]]=R[2]},n96=function(R){R=R.uaDataValues_;
if(!R)return"";var A=zZ("uap",R.platform)+zZ("uapv",R.platformVersion)+zZ("uafv",R.uaFullVersion)+zZ("uaa",R.architecture)+zZ("uam",R.model)+zZ("uab",R.bitness);R.fullVersionList&&(A+="&uafvl="+encodeURIComponent(R.fullVersionList.map(function(Y){return encodeURIComponent(Y.brand)+";"+encodeURIComponent(Y.version)}).join("|")));
R.wow64!=null&&(A+="&uaw="+Number(R.wow64));return A.slice(1)};var dgA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(dgA,_.lb);dgA.prototype.getId=function(){return _.X1(this,1)};var d$=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(d$,_.lb);d$.prototype.getSeconds=function(){return Uk(this,1)};
d$.prototype.setSeconds=function(R){return _.Lf(this,1,cF(R),"0")};_.K0=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(_.K0,_.lb);_.K0.prototype.getSeconds=function(){return Uk(this,1)};
_.K0.prototype.setSeconds=function(R){return _.Lf(this,1,cF(R),"0")};
_.Rb8=function(R){var A=Number(I2(R,1));R=_.sU(R,2);return new Date(A*1E3+R/1E6)};var R8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(R8,_.lb);R8.prototype.getUrl=function(){return _.X1(this,1)};
R8.prototype.setUrl=function(R){return _.o9(this,1,R)};
R8.prototype.getHeight=function(){return _.sU(this,2)};
R8.prototype.getWidth=function(){return _.sU(this,3)};var AA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(AA,_.lb);AA.prototype.getAspectRatio=function(){return $B(this,1)};
AA.prototype.getDuration=function(){return _.cG(this,d$,2)};var AbS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(AbS,_.lb);var Yg7=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Yg7,_.lb);var PbH=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(PbH,_.lb);var ED7=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(ED7,_.lb);var zbf=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(zbf,_.lb);var iqD=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(iqD,_.lb);var lEN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(lEN,_.lb);var xLD=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(xLD,_.lb);var cbS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(cbS,_.lb);var Yy=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Yy,_.lb);var P$=[2,4,5,6,7];var Oq8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Oq8,_.lb);var Hb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Hb,_.lb);_.l=Hb.prototype;_.l.getId=function(){return _.cG(this,dgA,1)};
_.l.getName=function(){return _.X1(this,2)};
_.l.setDescription=function(R){return _.o9(this,3,R)};
_.l.getUrl=function(){return _.X1(this,8)};
_.l.setUrl=function(R){return _.o9(this,8,R)};
var EX=function(R){return _.OU(R,R8,10,_.M_())};
Hb.prototype.getOwner=function(R){var A=_.wo(this,40,_.vF,3,!0);Zuu(A,R);return A[R]};
Hb.prototype.getVersion=function(){return Uk(this,45)};
var zb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(zb,_.lb);_.i6=[0,Gx,wnq];_.l6=[0,Gx,wnq];var McA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(McA,_.lb);var xy=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(xy,_.lb);xy.prototype.getStatus=function(){return _.SR(this,1)};
xy.prototype.removeItem=function(R){return zZk(this,2,R)};var sRH=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(sRH,_.lb);sRH.prototype.getName=function(){return _.X1(this,8)};var c$=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(c$,_.lb);c$.prototype.getCommand=function(){return _.SR(this,1)};
c$.prototype.getSource=function(){return _.cG(this,sRH,2)};
c$.prototype.setVisible=function(R){return _.j0(this,5,R)};
c$.prototype.removeItem=function(R){return zZk(this,7,R)};var NZE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(NZE,_.lb);NZE.prototype.getCommand=function(){return _.SR(this,1)};
NZE.prototype.removeItem=function(R){return zZk(this,4,R)};
var Vcz=_.Hx(NZE);var OX=function(R,A,Y){Y=Y===void 0?Error():Y;var P=Error.call(this);this.message=P.message;"stack"in P&&(this.stack=P.stack);this.code=R;A+=":";Y instanceof Error?(this.message=A+Y.message,this.stack=Y.stack||""):(this.message=A+String(Y),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.H(OX,Error);_.KJ=function(){this.JSC$9527_disposed_=this.JSC$9527_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.KJ.prototype.JSC$9527_disposed_=!1;_.KJ.prototype.isDisposed=function(){return this.JSC$9527_disposed_};
_.KJ.prototype.dispose=function(){this.JSC$9527_disposed_||(this.JSC$9527_disposed_=!0,this.disposeInternal())};
_.KJ.prototype[Symbol.dispose]=function(){this.dispose()};
_.gz=function(R,A){R.addOnDisposeCallback(_.nj(_.lt,A))};
_.KJ.prototype.addOnDisposeCallback=function(R,A){this.JSC$9527_disposed_?A!==void 0?R.call(A):R():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),A&&(R=R.bind(A)),this.onDisposeCallbacks_.push(R))};
_.KJ.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Ml=function(R){_.KJ.call(this);this.wpc=R};
_.H(Ml,_.KJ);Ml.prototype.xEg=function(){return this.wpc.f()};
Ml.prototype.zWG=function(R){return this.wpc.c(R)};
Ml.prototype.kZ=function(R){return this.wpc.m(j1k(R))};
Ml.prototype.jcm=function(R){return this.wpc.mws(j1k(R))};
var cv=function(R){_.KJ.call(this);var A=this;this.vm=R;this.ffD="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.loL=void 0;this.qHK=this.vm.p;this.bWb=this.seK.bind(this);this.addOnDisposeCallback(function(){return void Jb8(A)})};
_.H(cv,_.KJ);var ybA=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1){if(!R.vm.wpc)throw new OX(30,"NWA");return R.lk7?Y.return(R.lk7):Y.yield(R.vm.wpc(),2)}A=Y.yieldResult;R.lk7=new Ml(A);return Y.return(R.lk7)})};
cv.prototype.snapshot=function(R){return this.vm.s(Object.assign({},R.v6&&{c:R.v6},R.qKn&&{s:R.qKn},R.ckL!==void 0&&{p:R.ckL}))};
cv.prototype.seK=function(R){this.vm.e(R)};
cv.prototype.eQs=function(R,A){return this.vm.c(R,A,!1)};
var Jb8=function(R){R.loL!==void 0&&(R.ffD.forEach(function(A){var Y;(Y=R.loL)==null||Y.removeEventListener(A,R.bWb)}),R.loL=void 0)};
cv.prototype.drB=function(){return this.vm.l()};var sX=function(){_.KJ.apply(this,arguments);this.kVF=1};
_.H(sX,_.KJ);sX.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.kVF++;return this};
sX.prototype.dispose=function(){--this.kVF||_.KJ.prototype.dispose.call(this)};var mLZ=function(R){this.viW=R;R.addNewEventMetric("/client_streamz/bg/frs",_.Jl("mk"))};
mLZ.prototype.record=function(R,A){this.viW.record("/client_streamz/bg/frs",R,A)};
var TZ7=function(R){this.q4W=R;R.addNewEventMetric("/client_streamz/bg/wrl",_.Jl("mn"),V6("ac"),V6("sc"),_.Jl("rk"),_.Jl("mk"))};
TZ7.prototype.record=function(R,A,Y,P,E,z){this.q4W.record("/client_streamz/bg/wrl",R,A,Y,P,E,z)};
var QRq=function(R){this.xjM=R;R.addNewCounter("/client_streamz/bg/ec",_.Jl("en"),_.Jl("mk"))};
QRq.prototype.increment=function(R,A){this.xjM.JSC$9780_incrementCounter("/client_streamz/bg/ec",R,A)};
var vDz=function(R){this.niD=R;R.addNewEventMetric("/client_streamz/bg/el",_.Jl("en"),_.Jl("mk"))};
vDz.prototype.record=function(R,A,Y){this.niD.record("/client_streamz/bg/el",R,A,Y)};
var gD8=function(R){this.t7v=R;R.addNewCounter("/client_streamz/bg/cec",V6("ec"),_.Jl("mk"))};
gD8.prototype.increment=function(R,A){this.t7v.JSC$9780_incrementCounter("/client_streamz/bg/cec",R,A)};
var nD7=function(R){this.psW=R;R.addNewCounter("/client_streamz/bg/po/csc",V6("cs"),_.Jl("mk"))};
nD7.prototype.increment=function(R,A){this.psW.JSC$9780_incrementCounter("/client_streamz/bg/po/csc",R,A)};
var Hqb=function(R){this.ws8=R;R.addNewCounter("/client_streamz/bg/po/ctav",_.Jl("av"),_.Jl("mk"))};
Hqb.prototype.increment=function(R,A){this.ws8.JSC$9780_incrementCounter("/client_streamz/bg/po/ctav",R,A)};
var rbG=function(R){this.giD=R;R.addNewCounter("/client_streamz/bg/po/cwsc",_.Jl("su"),_.Jl("mk"))};
rbG.prototype.increment=function(R,A){this.giD.JSC$9780_incrementCounter("/client_streamz/bg/po/cwsc",R,A)};var x1P=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(x1P,_.lb);var lOk=function(R,A){return _.qg(R,3,A,Nfk)};var DLN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(DLN,_.lb);var ULZ=[1,2,3];var $LA=[0,ULZ,_.L7,uTk,Lt6];var XxD=[0,_.dA,[0,o2,_.kB]];var SgZ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(SgZ,_.lb);var IEq=[1,2,3];var KoH=[0,IEq,tgV,o3S,_.R7,XxD];var Wob=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Wob,_.lb);var jRS=[0,_.dA,$LA,KoH];var bqH=[0,_.eR];var fES=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(fES,_.lb);var pxG=[0,_.eR,-1,_.wA];var Fo8=[0,_.eR,-1,_.tR,_.wA];var BZb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(BZb,_.lb);var aEA=[1,2,3];var CbD=[0,aEA,_.R7,pxG,_.R7,Fo8,_.R7,bqH];var hb7=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(hb7,_.lb);hb7.prototype.JSC$9600_serializeBinary=aE6([0,_.eR,CbD,dOk,_.dA,jRS,eZu,qI6]);var oDN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(oDN,_.lb);var ZqS=function(R){var A=new hb7;A=_.IS(A,1,R.JSC$9716_metricName);var Y=ke8(R);A=_.qg(A,3,Y,_.J9);Y=[];for(var P=[],E=_.x(R.cellMap.keys()),z=E.next();!z.done;z=E.next())P.push(z.value.split(","));for(E=0;E<P.length;E++){z=P[E];for(var c=R.cellType,M=R.getCells(z)||[],N=[],y=0;y<M.length;y++){var m=M[y],T=m&&m.cellValue;m=new SgZ;switch(c){case 3:T=Number(T);Number.isFinite(T)&&mx(m,1,IEq,cF(T));break;case 2:mx(m,2,IEq,_.GN(Number(T)))}N.push(m)}c=N;for(M=0;M<c.length;M++){N=c[M];y=new Wob;N=_.DE(y,
2,N);y=[];m=GeZ(R);for(T=0;T<m.length;T++){var Q=m[T],g=z[T],r=new DLN;switch(Q){case 3:mx(r,1,ULZ,QN(String(g)));break;case 2:Q=Number(g);Number.isFinite(Q)&&mx(r,2,ULZ,_.PF(Q));break;case 1:mx(r,3,ULZ,ODJ(g==="true"))}y.push(r)}n7(N,1,y);Y.push(N)}}n7(A,4,Y);return A};var tcE=function(R){if(!R)return"";if(/^about:(?:blank|srcdoc)$/.test(R))return window.origin||"";R.indexOf("blob:")===0&&(R=R.substring(5));R=R.split("#")[0].split("?")[0];R=R.toLowerCase();R.indexOf("//")==0&&(R=window.location.protocol+R);/^[\w\-]*:\/\//.test(R)||(R=window.location.href);var A=R.substring(R.indexOf("://")+3),Y=A.indexOf("/");Y!=-1&&(A=A.substring(0,Y));Y=R.substring(0,R.indexOf("://"));if(!Y)throw Error("qa`"+R);if(Y!=="http"&&Y!=="https"&&Y!=="chrome-extension"&&Y!=="moz-extension"&&
Y!=="file"&&Y!=="android-app"&&Y!=="chrome-search"&&Y!=="chrome-untrusted"&&Y!=="chrome"&&Y!=="app"&&Y!=="devtools")throw Error("ra`"+Y);R="";var P=A.indexOf(":");if(P!=-1){var E=A.substring(P+1);A=A.substring(0,P);if(Y==="http"&&E!=="80"||Y==="https"&&E!=="443")R=":"+E}return Y+"://"+A+R};var ufq=function(R,A,Y){var P=String(_.P3.location.href);return P&&R&&A?[A,wxS(tcE(P),R,Y||null)].join(" "):null},wxS=function(R,A,Y){var P=[],E=[];
if((Array.isArray(Y)?2:1)==1)return E=[A,R],_.uI(P,function(M){E.push(M)}),ebf(E.join(" "));
var z=[],c=[];_.uI(Y,function(M){c.push(M.key);z.push(M.value)});
Y=Math.floor((new Date).getTime()/1E3);E=z.length==0?[Y,A,R]:[z.join(":"),Y,A,R];_.uI(P,function(M){E.push(M)});
R=ebf(E.join(" "));R=[Y,R];c.length==0||R.push(c.join(""));return R.join("_")},ebf=function(R){var A=hAb();
A.update(R);return A.digestString().toLowerCase()};var Nl=function(R){this.JSC$9611_document_=R||{cookie:""}},qgA;
_.l=Nl.prototype;_.l.isEnabled=function(){if(!_.P3.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};
_.l.set=function(R,A,Y){var P=!1;if(typeof Y==="object"){var E=Y.sameSite;P=Y.secure||!1;var z=Y.domain||void 0;var c=Y.path||void 0;var M=Y.maxAge}if(/[;=\s]/.test(R))throw Error("sa`"+R);if(/[;\r\n]/.test(A))throw Error("ta`"+A);M===void 0&&(M=-1);Y=z?";domain="+z:"";c=c?";path="+c:"";P=P?";secure":"";M=M<0?"":M==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+M*1E3)).toUTCString();this.JSC$9611_document_.cookie=R+"="+A+Y+c+M+P+(E!=null?";samesite="+E:"")};
_.l.get=function(R,A){for(var Y=R+"=",P=(this.JSC$9611_document_.cookie||"").split(";"),E=0,z;E<P.length;E++){z=s6(P[E]);if(z.lastIndexOf(Y,0)==0)return z.slice(Y.length);if(z==R)return""}return A};
_.l.remove=function(R,A,Y){var P=this.containsKey(R);this.set(R,"",{maxAge:0,path:A,domain:Y});return P};
_.l.getKeys=function(){return qgA(this).keys};
_.l.getValues=function(){return qgA(this).values};
_.l.isEmpty=function(){return!this.JSC$9611_document_.cookie};
_.l.getCount=function(){return this.JSC$9611_document_.cookie?(this.JSC$9611_document_.cookie||"").split(";").length:0};
_.l.containsKey=function(R){return this.get(R)!==void 0};
_.l.containsValue=function(R){for(var A=qgA(this).values,Y=0;Y<A.length;Y++)if(A[Y]==R)return!0;return!1};
_.l.clear=function(){for(var R=qgA(this).keys,A=R.length-1;A>=0;A--)this.remove(R[A])};
qgA=function(R){R=(R.JSC$9611_document_.cookie||"").split(";");for(var A=[],Y=[],P,E,z=0;z<R.length;z++)E=s6(R[z]),P=E.indexOf("="),P==-1?(A.push(""),Y.push(E)):(A.push(E.substring(0,P)),Y.push(E.substring(P+1)));return{keys:A,values:Y}};
_.HU=new Nl(typeof document=="undefined"?null:document);var ySV,LoS;ySV=function(){var R=_.P3.__SAPISID||_.P3.__APISID||_.P3.__3PSAPISID||_.P3.__1PSAPISID||_.P3.__OVERRIDE_SID;if(R)return!0;typeof document!=="undefined"&&(R=new Nl(document),R=R.get("SAPISID")||R.get("APISID")||R.get("__Secure-3PAPISID")||R.get("__Secure-1PAPISID"));return!!R};
LoS=function(R,A,Y,P){(R=_.P3[R])||typeof document==="undefined"||(R=(new Nl(document)).get(A));return R?ufq(R,Y,P):null};
_.qlV=function(R){var A=tcE(_.P3==null?void 0:_.P3.location.href),Y=[];if(ySV()){A=A.indexOf("https:")==0||A.indexOf("chrome-extension:")==0||A.indexOf("chrome-untrusted://new-tab-page")==0||A.indexOf("moz-extension:")==0;var P=A?_.P3.__SAPISID:_.P3.__APISID;P||typeof document==="undefined"||(P=new Nl(document),P=P.get(A?"SAPISID":"APISID")||P.get("__Secure-3PAPISID"));(P=P?ufq(P,A?"SAPISIDHASH":"APISIDHASH",R):null)&&Y.push(P);A&&((A=LoS("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",R))&&Y.push(A),
(R=LoS("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",R))&&Y.push(R))}return Y.length==0?null:Y.join(" ")};var dLE=function(){this.minSize=1024};
dLE.prototype.compress=function(R){var A,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:return A=new CompressionStream("gzip"),Y=(new Response(A.readable)).arrayBuffer(),P=A.writable.getWriter(),z.yield(P.write((new TextEncoder).encode(R)),2);case 2:return z.yield(P.close(),3);case 3:return E=Uint8Array,z.yield(Y,4);case 4:return z.return(new E(z.yieldResult))}})};
dLE.prototype.isSupported=function(R){return R<this.minSize?!1:typeof CompressionStream!=="undefined"};var RKA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(RKA,_.lb);var VK=function(R,A){this.intervalMs=R;this.callback=A;this.enabled=!1;this.nowFn=function(){return _.YB()};
this.lastTimeMs=this.nowFn()};
VK.prototype.setInterval=function(R){this.intervalMs=R;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
VK.prototype.start=function(){var R=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){R.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
VK.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
VK.prototype.tick=function(){var R=this;if(this.enabled){var A=Math.max(this.nowFn()-this.lastTimeMs,0);A<this.intervalMs*.8?this.timer=setTimeout(function(){R.tick()},this.intervalMs-A):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var AOq=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(AOq,_.lb);var YTH=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(YTH,_.lb);var Peq=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Peq,_.lb);Peq.prototype.getTransmissionType=function(){return _.SR(this,1)};var ZQu=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(ZQu,_.lb);ZQu.prototype.getVersion=function(){return _.X1(this,2)};var JA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(JA,_.lb);var GTl=function(R){n7(tO3,1,R)};
JA.prototype.getModel=function(){return _.X1(this,6)};
var EUS=_.Hx(JA);var zKN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(zKN,_.lb);var oWq=["platform","platformVersion","architecture","model","uaFullVersion"],tO3=new JA,kTS=null;var yK=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(yK,_.lb);var iyG=function(R){return _.OF(R,1,1)};var l47=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R,4)};
_.H(l47,_.lb);_.mL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R,36)};
_.H(_.mL,_.lb);_.mL.prototype.getExperimentIds=function(){return _.cG(this,RKA,16)};var xRS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R,19)};
_.H(xRS,_.lb);xRS.prototype.setLogSource=function(R){return _.OF(this,2,R)};
xRS.prototype.setScheduler=function(R){return _.OF(this,10,R)};var OyS=function(R,A){this.isServiceWorkerScope=A=A===void 0?!1:A;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new xRS;Number.isInteger(R)&&this.logRequest.setLogSource(R);A||(this.locale=document.documentElement.getAttribute("lang"));cOA(this,new yK)};
OyS.prototype.setLogSource=function(R){this.logRequest.setLogSource(R);return this};
var cOA=function(R,A){_.DE(R.logRequest,1,A);_.SR(A,1)||iyG(A);R.isServiceWorkerScope||(A=Tb(R),_.X1(A,5)||_.IS(A,5,R.locale));R.uach&&(A=Tb(R),_.cG(A,JA,9)||_.DE(A,9,R.uach))},MBA=function(R,A){R.transmissionType=A},sGE=function(R){var A=A===void 0?oWq:A;
var Y=R.isServiceWorkerScope?void 0:hr();Y?wDb(Y,A).then(function(P){R.uach=EUS(P!=null?P:"[]");P=Tb(R);_.DE(P,9,R.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Tb=function(R){var A=_.cG(R.logRequest,yK,1);
A||(A=new yK,cOA(R,A));R=A;A=_.cG(R,zKN,11);A||(A=new zKN,_.DE(R,11,A));return A};
OyS.prototype.build=function(R,A,Y,P,E,z){A=A===void 0?0:A;Y=Y===void 0?0:Y;P=P===void 0?null:P;E=E===void 0?0:E;z=z===void 0?0:z;if(!this.isServiceWorkerScope){var c=Tb(this);var M=new Peq;M=_.OF(M,1,this.transmissionType);M=_.y6(M,2,this.isFinal);Y=_.jR(M,3,Y>0?Y:void 0);Y=_.jR(Y,4,E>0?E:void 0);Y=_.jR(Y,5,z>0?z:void 0);E=Y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=E[_.zN]|0;Y=sA(Y,z)?Y:HfJ(Y,E,z)?nnI(Y,E):new Y.constructor(BF(E,z,!0));_.DE(c,10,Y)}c=this.logRequest.clone();Y=Date.now().toString();
c=_.Mz(c,4,cF(Y));R=R.slice();R=n7(c,3,R);P&&(c=new AOq,P=_.jR(c,13,P),c=new YTH,P=_.DE(c,2,P),c=new l47,P=_.DE(c,1,P),P=_.OF(P,2,9),_.DE(R,18,P));A&&_.r5(R,14,A);return R};mE.prototype.currBackoffCount_=0;mE.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
mE.prototype.getValue=function(){return this.currValue_};
var N2S=function(R){R.currBaseValue_=Math.min(R.maxValue_,R.currBaseValue_*R.backoffFactor_);R.currValue_=Math.min(R.maxValue_,R.currBaseValue_+(R.randomFactor_?Math.round(R.randomFactor_*(Math.random()-.5)*2*R.currBaseValue_):0));R.currBackoffCount_++};var i8P=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R,8)};
_.H(i8P,_.lb);var VB7=_.Hx(i8P);var lTk=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(lTk,_.lb);var QK;QK=new x58;var v$=function(R){_.KJ.call(this);var A=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9689_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$9689_sendBeaconApiEnabled=!1;this.logSource=R.logSource;this.getAuthHeaderValue=
R.getAuthHeaderValue||function(){};
this.logRequestBuilder=new OyS(R.logSource,R.isServiceWorkerScope);this.network=R.network||null;this.productID=R.productID||null;this.bufferSize=1E3;this.clearcutUrl=R.urlOverride||null;this.sessionIndex=R.sessionIndex||null;this.disableAutomaticFlush=R.disableAutomaticFlush||!1;this.withCredentials=!R.disableWithCredentials;this.isServiceWorkerScope=R.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!hr()&&!!hr().navigator&&hr().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(JOA())).searchParams&&!!(new URL(JOA())).searchParams.set;var Y=iyG(new yK);cOA(this.logRequestBuilder,Y);this.flushBackoff=new mE(1E4,3E5,.1);R=yOS(this,R.backgroundJobDeferrer);this.JSC$9689_flushTimer=new VK(this.flushBackoff.getValue(),R);this.backupTimer=new VK(6E5,R);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){mRf(A);
var P;(P=A.metalogService)==null||P.flush()}}),document.addEventListener("pagehide",function(){mRf(A);
var P;(P=A.metalogService)==null||P.flush()}))};
_.H(v$,_.KJ);var yOS=function(R,A){return R.isBrowserSupported?A?function(){A().then(function(){R.flush()})}:function(){R.flush()}:function(){}};
v$.prototype.disposeInternal=function(){mRf(this);this.JSC$9689_flushTimer.stop();this.backupTimer.stop();_.KJ.prototype.disposeInternal.call(this)};
var T2f=function(R){R.clearcutUrl||(R.clearcutUrl=JOA());try{return(new URL(R.clearcutUrl)).toString()}catch(A){return(new URL(R.clearcutUrl,hr().location.origin)).toString()}};
v$.prototype.dispatch=function(R){if(R instanceof _.mL)this.log(R);else try{var A=new _.mL,Y=R.serialize();var P=_.IS(A,8,Y);this.log(P)}catch(E){g4(this,4,1)}};
var g4=function(R,A,Y){R.metalogService&&R.metalogService.increment(A,Y)};
v$.prototype.log=function(R){g4(this,2,1);if(this.isBrowserSupported){R=R.clone();var A=this.sequencePosition++;R=_.r5(R,21,A);this.componentId&&_.IS(R,26,this.componentId);A=R;if(KSI(_.yT(A,1))==null){var Y=Date.now();Y=Number.isFinite(Y)?Y.toString():"0";_.Mz(A,1,cF(Y))}_.IzS(_.yT(A,15))!=null||_.r5(A,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Y=this.experimentIds.clone(),_.DE(A,16,Y));g4(this,1,1);A=this.pendingEvents.length-this.bufferSize+1;A>0&&(this.pendingEvents.splice(0,A),
this.numLogsDroppedSinceLastFlush+=A,g4(this,3,A));this.pendingEvents.push(R);this.disableAutomaticFlush||this.JSC$9689_flushTimer.enabled||this.JSC$9689_flushTimer.start()}};
v$.prototype.flush=function(R,A){var Y=this;if(this.pendingEvents.length===0)R&&R();else if(this.JSC$9689_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,QGS(this);else{var P=Date.now();if(this.noFlushUntilMs>P&&this.startWaitingMs<P)A&&A("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?MBA(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var E=this.pendingEvents.length,
z=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),c=this.getAuthHeaderValue();if(c&&this.lastFailedAuth===c)A&&A("stale-auth-token");else{this.pendingEvents=[];this.JSC$9689_flushTimer.enabled&&this.JSC$9689_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;P=z.serialize();var M;this.JSC$9689_compressor&&this.JSC$9689_compressor.isSupported(P.length)&&
(M=this.JSC$9689_compressor.compress(P));var N=vUz(this,P,c),y=function(Q){Y.flushBackoff.reset();Y.JSC$9689_flushTimer.setInterval(Y.flushBackoff.getValue());if(Q){var g=null;try{var r=JSON.stringify(JSON.parse(Q.replace(")]}'\n","")));g=VB7(r)}catch(I){}g&&(Q=Number(Uk(g,1,_.jH("-1"))),Q>0&&(Y.startWaitingMs=Date.now(),Y.noFlushUntilMs=Y.startWaitingMs+Q),dGu(g.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,QK.fieldIndex),qAu(g,QK.fieldIndex),g=QK.ctor?QK.getExtensionFn(g,QK.ctor,QK.fieldIndex,
QK.JSC$8868_hasMessageId):QK.getExtensionFn(g,QK.fieldIndex,null,QK.JSC$8868_hasMessageId),g=g===null?void 0:g)&&(g=_.sU(g,1,-1),g!==-1&&(Y.flushBackoff=new mE(g<1?1:g,3E5,.1),Y.JSC$9689_flushTimer.setInterval(Y.flushBackoff.getValue())))}R&&R();Y.numRetriesSinceLastSuccessfulFlush=0},m=function(Q,g){var r=_.OU(z,_.mL,3,_.M_());
var I=Number(Uk(z,14));N2S(Y.flushBackoff);Y.JSC$9689_flushTimer.setInterval(Y.flushBackoff.getValue());Q===401&&c&&(Y.lastFailedAuth=c);I&&(Y.numLogsDroppedSinceLastFlush+=I);g===void 0&&(g=Y.isRetryable(Q));g&&(Y.pendingEvents=r.concat(Y.pendingEvents),Y.disableAutomaticFlush||Y.JSC$9689_flushTimer.enabled||Y.JSC$9689_flushTimer.start());g4(Y,7,1);A&&A("net-send-failed",Q);++Y.numRetriesSinceLastSuccessfulFlush},T=function(){Y.network&&Y.network.send(N,y,m)};
M?M.then(function(Q){g4(Y,5,E);N.requestHeaders["Content-Encoding"]="gzip";N.requestHeaders["Content-Type"]="application/binary";N.body=Q;N.bodyType=2;T()},function(){g4(Y,6,E);
T()}):T()}}}};
var vUz=function(R,A,Y){Y=Y===void 0?null:Y;var P=P===void 0?R.withCredentials:P;var E={},z=new URL(T2f(R));Y&&(E.Authorization=Y);R.sessionIndex&&(E["X-Goog-AuthUser"]=R.sessionIndex,z.searchParams.set("authuser",R.sessionIndex));R.pageId&&(Object.defineProperty(E,"X-Goog-PageId",{value:R.pageId}),z.searchParams.set("pageId",R.pageId));return{url:z.toString(),body:A,bodyType:1,requestHeaders:E,requestType:"POST",withCredentials:P,timeoutMillis:R.timeoutMillis}},mRf=function(R){R.logRequestBuilder.isFinal=
!0;
R.flush();R.logRequestBuilder.isFinal=!1},QGS=function(R){gUf(R,function(A,Y){A=new URL(A);
A.searchParams.set("format","json");var P=!1;try{P=hr().navigator.sendBeacon(A.toString(),Y.serialize())}catch(E){}P||(R.isSendBeaconSupported=!1);return P})},gUf=function(R,A){if(R.pendingEvents.length!==0){var Y=new URL(T2f(R));
Y.searchParams.delete("format");var P=R.getAuthHeaderValue();P&&Y.searchParams.set("auth",P);Y.searchParams.set("authuser",R.sessionIndex||"0");for(P=0;P<10&&R.pendingEvents.length;++P){var E=R.pendingEvents.slice(0,32),z=R.logRequestBuilder.build(E,R.numLogsDroppedSinceLastFlush,R.numRetriesSinceLastSuccessfulFlush,R.productID,R.persistedLogRecoveredCount,R.persistedLogExpiredCount);if(!A(Y.toString(),z)){++R.numRetriesSinceLastSuccessfulFlush;break}R.numLogsDroppedSinceLastFlush=0;R.numRetriesSinceLastSuccessfulFlush=
0;R.persistedLogRecoveredCount=0;R.persistedLogExpiredCount=0;R.pendingEvents=R.pendingEvents.slice(E.length)}R.JSC$9689_flushTimer.enabled&&R.JSC$9689_flushTimer.stop()}};
v$.prototype.isRetryable=function(R){return 500<=R&&R<600||R===401||R===0};
var JOA=function(){return"https://play.google.com/log?format=json&hasfast=true"};var nUA=function(){this.abortSupported=typeof AbortController!=="undefined"};
nUA.prototype.send=function(R,A,Y){var P=this,E,z,c,M,N,y,m,T,Q,g;return _.O(function(r){switch(r.nextAddress){case 1:return z=(E=P.abortSupported?new AbortController:void 0)?setTimeout(function(){E.abort()},R.timeoutMillis):void 0,_.g2(r,2,3),c=Object.assign({},{method:R.requestType,
headers:Object.assign({},R.requestHeaders)},R.body&&{body:R.body},R.withCredentials&&{credentials:"include"},{signal:R.timeoutMillis&&E?E.signal:null}),r.yield(fetch(R.url,c),5);case 5:M=r.yieldResult;if(M.status!==200){(N=Y)==null||N(M.status);r.jumpTo(3);break}if((y=A)==null){r.jumpTo(7);break}return r.yield(M.text(),8);case 8:y(r.yieldResult);case 7:case 3:_.Ht(r);clearTimeout(z);_.D4(r,0);break;case 2:m=_.UT(r);switch((T=m)==null?void 0:T.name){case "AbortError":(Q=Y)==null||Q(408);break;default:(g=
Y)==null||g(400)}r.jumpTo(3)}})};
nUA.prototype.getTransmissionType=function(){return 4};_.Q6=function(R,A){A=A===void 0?"0":A;_.KJ.call(this);this.logSource=R;this.sessionIndex=A;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9707_clearExperimentIds=this.productID=null;this.JSC$9707_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.H(_.Q6,_.KJ);var ESk=function(R,A){R.buildLabel=A;return R},Psk=function(R,A){R.network=A;
return R},iwl=function(R,A){R.JSC$9707_clearExperimentIds=A},YKk=function(R){R.JSC$9707_sendBeaconApiEnabled=!0;
return R};
_.Q6.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.Q6.prototype.build=function(){this.network||(this.network=new nUA);var R=new v$({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.qlV,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.gz(this,R);if(this.buildLabel){var A=this.buildLabel,Y=
Tb(R.logRequestBuilder);_.IS(Y,7,A)}R.JSC$9689_compressor=new dLE;this.componentId&&(R.componentId=this.componentId);this.productID&&(R.productID=this.productID);this.pageId&&(R.pageId=this.pageId);this.JSC$9707_clearExperimentIds&&((Y=this.JSC$9707_clearExperimentIds)?(R.experimentIds||(R.experimentIds=new RKA),A=R.experimentIds,Y=Y.serialize(),_.IS(A,4,Y)):R.experimentIds&&_.Mz(R.experimentIds,4));this.JSC$9707_sendBeaconApiEnabled&&(R.JSC$9689_sendBeaconApiEnabled=R.isSendBeaconSupported);sGE(R.logRequestBuilder);
this.bufferSize&&(R.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(R);return R};var cNS=function(R,A,Y,P,E,z,c){R=R===void 0?-1:R;A=A===void 0?"":A;Y=Y===void 0?"":Y;P=P===void 0?!1:P;E=E===void 0?"":E;_.KJ.call(this);this.logSource=R;this.componentId=A;z?A=z:(R=new _.Q6(R,"0"),R.componentId=A,_.gz(this,R),Y!==""&&(R.destinationUrl=Y),P&&(R.serviceWorkerScopeEnabled=!0),E&&ESk(R,E),c&&Psk(R,c),A=R.build());this.JSC$9711_transport=A};
_.H(cNS,_.KJ);cNS.prototype.flush=function(R){R=R||[];if(R.length){for(var A=new oDN,Y=[],P=0;P<R.length;P++){var E=R[P],z=ZqS(E);Y.push(z);E.clear()}n7(A,1,Y);this.JSC$9711_transport.dispatch(A);this.JSC$9711_transport.flush()}};var HyH=function(R){this.cellValue=R};var nA=function(R,A,Y){this.JSC$9716_metricName=R;this.cellType=A;this.fields=Y||[];this.cellMap=new Map},GeZ=function(R){return R.fields.map(function(A){return A.fieldType})},ke8=function(R){return R.fields.map(function(A){return A.fieldName})};
_.l=nA.prototype;_.l.addCell=function(R){var A=_.Ge.apply(1,arguments),Y=this.getCells(A);Y?Y.push(new HyH(R)):this.JSC$9716_setCell(R,A)};
_.l.JSC$9716_setCell=function(R){var A=this.JSC$9716_getKey(_.Ge.apply(1,arguments));this.cellMap.set(A,[new HyH(R)])};
_.l.getCells=function(){var R=this.JSC$9716_getKey(_.Ge.apply(0,arguments));return this.cellMap.has(R)?this.cellMap.get(R):void 0};
_.l.getCell=function(){var R=this.getCells(_.Ge.apply(0,arguments));return R&&R.length?R[0]:void 0};
_.l.clear=function(){this.cellMap.clear()};
_.l.JSC$9716_getKey=function(){var R=_.Ge.apply(0,arguments);return R?R.join(","):"key"};var rOb=function(R,A){nA.call(this,R,3,A)};
_.H(rOb,nA);rOb.prototype.JSC$9719_incrementCounterBy=function(R){var A=_.Ge.apply(1,arguments),Y=0,P=this.getCell(A);P&&(Y=P.cellValue);this.JSC$9716_setCell(Y+R,A)};var DRS=function(R,A){nA.call(this,R,2,A)};
_.H(DRS,nA);DRS.prototype.record=function(R){this.addCell(R,_.Ge.apply(1,arguments))};_.H$=function(R){this.id=R};
_.H$.prototype.toString=function(){return this.id};_.r4=function(R,A){this.type=R instanceof _.H$?String(R):R;this.currentTarget=this.target=A;this.defaultPrevented=this.propagationStopped_=!1};
_.r4.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.r4.prototype.preventDefault=function(){this.defaultPrevented=!0};_.Du=function(R,A){_.r4.call(this,R?R.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;R&&this.init(R,A)};
_.Pb(_.Du,_.r4);
_.Du.prototype.init=function(R,A){var Y=this.type=R.type,P=R.changedTouches&&R.changedTouches.length?R.changedTouches[0]:null;this.target=R.target||R.srcElement;this.currentTarget=A;A=R.relatedTarget;A||(Y=="mouseover"?A=R.fromElement:Y=="mouseout"&&(A=R.toElement));this.relatedTarget=A;P?(this.clientX=P.clientX!==void 0?P.clientX:P.pageX,this.clientY=P.clientY!==void 0?P.clientY:P.pageY,this.screenX=P.screenX||0,this.screenY=P.screenY||0):(this.offsetX=_.cb||R.offsetX!==void 0?R.offsetX:R.layerX,
this.offsetY=_.cb||R.offsetY!==void 0?R.offsetY:R.layerY,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.button=R.button;this.keyCode=R.keyCode||0;this.key=R.key||"";this.charCode=R.charCode||(Y=="keypress"?R.keyCode:0);this.ctrlKey=R.ctrlKey;this.altKey=R.altKey;this.shiftKey=R.shiftKey;this.metaKey=R.metaKey;this.pointerId=R.pointerId||0;this.pointerType=R.pointerType;this.state=R.state;
this.timeStamp=R.timeStamp;this.event_=R;R.defaultPrevented&&_.Du.superClass_.preventDefault.call(this)};
_.Du.prototype.stopPropagation=function(){_.Du.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.Du.prototype.preventDefault=function(){_.Du.superClass_.preventDefault.call(this);var R=this.event_;R.preventDefault?R.preventDefault():R.returnValue=!1};var URS="closure_listenable_"+(Math.random()*1E6|0),UX=function(R){return!(!R||!R[URS])};var $RE=0;var XtH=function(R,A,Y,P,E){this.listener=R;this.proxy=null;this.src=A;this.type=Y;this.capture=!!P;this.handler=E;this.key=++$RE;this.removed=this.callOnce=!1},STf=function(R){R.removed=!0;
R.listener=null;R.proxy=null;R.src=null;R.handler=null};TZ.prototype.add=function(R,A,Y,P,E){var z=R.toString();R=this.listeners[z];R||(R=this.listeners[z]=[],this.typeCount_++);var c=I4S(R,A,P,E);c>-1?(A=R[c],Y||(A.callOnce=!1)):(A=new XtH(A,this.src,z,!!P,E),A.callOnce=Y,R.push(A));return A};
TZ.prototype.remove=function(R,A,Y,P){R=R.toString();if(!(R in this.listeners))return!1;var E=this.listeners[R];A=I4S(E,A,Y,P);return A>-1?(STf(E[A]),_.HuS(E,A),E.length==0&&(delete this.listeners[R],this.typeCount_--),!0):!1};
var K6b=function(R,A){var Y=A.type;if(!(Y in R.listeners))return!1;var P=_.ak(R.listeners[Y],A);P&&(STf(A),R.listeners[Y].length==0&&(delete R.listeners[Y],R.typeCount_--));return P};
TZ.prototype.removeAll=function(R){R=R&&R.toString();var A=0,Y;for(Y in this.listeners)if(!R||Y==R){for(var P=this.listeners[Y],E=0;E<P.length;E++)++A,STf(P[E]);delete this.listeners[Y];this.typeCount_--}return A};
TZ.prototype.getListener=function(R,A,Y,P){R=this.listeners[R.toString()];var E=-1;R&&(E=I4S(R,A,Y,P));return E>-1?R[E]:null};
TZ.prototype.hasListener=function(R,A){var Y=R!==void 0,P=Y?R.toString():"",E=A!==void 0;return _.BO.some(this.listeners,function(z){for(var c=0;c<z.length;++c)if(!(Y&&z[c].type!=P||E&&z[c].capture!=A))return!0;return!1})};
var I4S=function(R,A,Y,P){for(var E=0;E<R.length;++E){var z=R[E];if(!z.removed&&z.listener==A&&z.capture==!!Y&&z.handler==P)return E}return-1};var W6D,jGS,byS,ptZ,F6b,$9,XS,CeH,B27,a47,$y,hKf,f4Z;W6D="closure_lm_"+(Math.random()*1E6|0);jGS={};byS=0;_.KC=function(R,A,Y,P,E){if(P&&P.once)return $9(R,A,Y,P,E);if(Array.isArray(A)){for(var z=0;z<A.length;z++)_.KC(R,A[z],Y,P,E);return null}Y=f4Z(Y);return UX(R)?R.listen(A,Y,_.ZI(P)?!!P.capture:!!P,E):ptZ(R,A,Y,!1,P,E)};
ptZ=function(R,A,Y,P,E,z){if(!A)throw Error("va");var c=_.ZI(E)?!!E.capture:!!E,M=$y(R);M||(R[W6D]=M=new TZ(R));Y=M.add(A,Y,P,c,z);if(Y.proxy)return Y;P=F6b();Y.proxy=P;P.src=R;P.listener=Y;if(R.addEventListener)_.pWk||(E=c),E===void 0&&(E=!1),R.addEventListener(A.toString(),P,E);else if(R.attachEvent)R.attachEvent(B27(A.toString()),P);else if(R.addListener&&R.removeListener)R.addListener(P);else throw Error("wa");byS++;return Y};
F6b=function(){var R=a47,A=function(Y){return R.call(A.src,A.listener,Y)};
return A};
$9=function(R,A,Y,P,E){if(Array.isArray(A)){for(var z=0;z<A.length;z++)$9(R,A[z],Y,P,E);return null}Y=f4Z(Y);return UX(R)?R.listenOnce(A,Y,_.ZI(P)?!!P.capture:!!P,E):ptZ(R,A,Y,!0,P,E)};
_.XQ=function(R,A,Y,P,E){if(Array.isArray(A))for(var z=0;z<A.length;z++)_.XQ(R,A[z],Y,P,E);else P=_.ZI(P)?!!P.capture:!!P,Y=f4Z(Y),UX(R)?R.unlisten(A,Y,P,E):R&&(R=$y(R))&&(A=R.getListener(A,Y,P,E))&&XS(A)};
XS=function(R){if(typeof R==="number"||!R||R.removed)return!1;var A=R.src;if(UX(A))return K6b(A.eventTargetListeners_,R);var Y=R.type,P=R.proxy;A.removeEventListener?A.removeEventListener(Y,P,R.capture):A.detachEvent?A.detachEvent(B27(Y),P):A.addListener&&A.removeListener&&A.removeListener(P);byS--;(Y=$y(A))?(K6b(Y,R),Y.typeCount_==0&&(Y.src=null,A[W6D]=null)):STf(R);return!0};
CeH=function(R,A,Y,P,E){Y=f4Z(Y);P=!!P;return UX(R)?R.getListener(A,Y,P,E):R?(R=$y(R))?R.getListener(A,Y,P,E):null:null};
B27=function(R){return R in jGS?jGS[R]:jGS[R]="on"+R};
a47=function(R,A){if(R.removed)R=!0;else{A=new _.Du(A,this);var Y=R.listener,P=R.handler||R.src;R.callOnce&&XS(R);R=Y.call(P,A)}return R};
$y=function(R){R=R[W6D];return R instanceof TZ?R:null};
hKf="__closure_events_fn_"+(Math.random()*1E9>>>0);f4Z=function(R){if(typeof R==="function")return R;R[hKf]||(R[hKf]=function(A){return R.handleEvent(A)});
return R[hKf]};_.SS=function(){_.KJ.call(this);this.eventTargetListeners_=new TZ(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Pb(_.SS,_.KJ);_.SS.prototype[URS]=!0;_.l=_.SS.prototype;_.l.setParentEventTarget=function(R){this.parentEventTarget_=R};
_.l.addEventListener=function(R,A,Y,P){_.KC(this,R,A,Y,P)};
_.l.removeEventListener=function(R,A,Y,P){_.XQ(this,R,A,Y,P)};
_.l.dispatchEvent=function(R){var A,Y=this.parentEventTarget_;if(Y)for(A=[];Y;Y=Y.parentEventTarget_)A.push(Y);Y=this.actualEventTarget_;var P=R.type||R;if(typeof R==="string")R=new _.r4(R,Y);else if(R instanceof _.r4)R.target=R.target||Y;else{var E=R;R=new _.r4(P,Y);_.BO.extend(R,E)}E=!0;var z;if(A)for(z=A.length-1;!R.propagationStopped_&&z>=0;z--){var c=R.currentTarget=A[z];E=oU7(c,P,!0,R)&&E}R.propagationStopped_||(c=R.currentTarget=Y,E=oU7(c,P,!0,R)&&E,R.propagationStopped_||(E=oU7(c,P,!1,R)&&
E));if(A)for(z=0;!R.propagationStopped_&&z<A.length;z++)c=R.currentTarget=A[z],E=oU7(c,P,!1,R)&&E;return E};
_.l.disposeInternal=function(){_.SS.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.l.listen=function(R,A,Y,P){return this.eventTargetListeners_.add(String(R),A,!1,Y,P)};
_.l.listenOnce=function(R,A,Y,P){return this.eventTargetListeners_.add(String(R),A,!0,Y,P)};
_.l.unlisten=function(R,A,Y,P){return this.eventTargetListeners_.remove(String(R),A,Y,P)};
_.l.removeAllListeners=function(R){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(R):0};
var oU7=function(R,A,Y,P){A=R.eventTargetListeners_.listeners[String(A)];if(!A)return!0;A=A.concat();for(var E=!0,z=0;z<A.length;++z){var c=A[z];if(c&&!c.removed&&c.capture==Y){var M=c.listener,N=c.handler||c.src;c.callOnce&&K6b(R.eventTargetListeners_,c);E=M.call(N,P)!==!1&&E}}return E&&!P.defaultPrevented};
_.SS.prototype.getListener=function(R,A,Y,P){return this.eventTargetListeners_.getListener(String(R),A,Y,P)};
_.SS.prototype.hasListener=function(R,A){return this.eventTargetListeners_.hasListener(R!==void 0?String(R):void 0,A)};var I8=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(R){return R&&AsyncContext.Snapshot.wrap(R)}:function(R){return R};var kOG=function(R,A){this.create_=R;this.reset_=A;this.occupants_=0;this.JSC$9751_head_=null};
kOG.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var R=this.JSC$9751_head_;this.JSC$9751_head_=R.next;R.next=null}else R=this.create_();return R};
kOG.prototype.put=function(R){this.reset_(R);this.occupants_<100&&(this.occupants_++,R.next=this.JSC$9751_head_,this.JSC$9751_head_=R)};var GON=function(){this.workTail_=this.workHead_=null};
GON.prototype.add=function(R,A){var Y=eA3.get();Y.set(R,A);this.workTail_?this.workTail_.next=Y:this.workHead_=Y;this.workTail_=Y};
GON.prototype.remove=function(){var R=null;this.workHead_&&(R=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),R.next=null);return R};
var eA3=new kOG(function(){return new ZyS},function(R){return R.reset()}),ZyS=function(){this.next=this.scope=this.fn=null};
ZyS.prototype.set=function(R,A){this.fn=R;this.scope=A;this.next=null};
ZyS.prototype.reset=function(){this.next=this.scope=this.fn=null};var tBf,qeb,uck,wtN;qeb=!1;uck=new GON;_.KA=function(R,A){tBf||wtN();qeb||(tBf(),qeb=!0);uck.add(R,A)};
wtN=function(){var R=Promise.resolve(void 0);tBf=function(){R.then(LJk)}};var uHq=function(R){R.prototype.$goog_Thenable=!0},eKq=function(R){if(!R)return!1;
try{return!!R.$goog_Thenable}catch(A){return!1}};var qTS,L6q,dR7,ArN,YpA,PG8,lgN,OsE,VpA,sSA,zrV;_.yR=function(R,A){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(R!=_.r$)try{var Y=this;R.call(A,function(P){Y.resolve_(2,P)},function(P){Y.resolve_(3,P)})}catch(P){this.resolve_(3,P)}};
qTS=function(){this.next=this.context=this.JSC$9762_onRejected=this.JSC$9762_onFulfilled=this.child=null;this.always=!1};
qTS.prototype.reset=function(){this.context=this.JSC$9762_onRejected=this.JSC$9762_onFulfilled=this.child=null;this.always=!1};
L6q=new kOG(function(){return new qTS},function(R){R.reset()});
dR7=function(R,A,Y){var P=L6q.get();P.JSC$9762_onFulfilled=R;P.JSC$9762_onRejected=A;P.context=Y;return P};
_.Vn=function(R){if(R instanceof _.yR)return R;var A=new _.yR(_.r$);A.resolve_(2,R);return A};
_.j5=function(R){return new _.yR(function(A,Y){Y(R)})};
ArN=function(R,A,Y){RdN(R,A,Y,null)||_.KA(_.nj(A,R))};
_.W$=function(R){return new _.yR(function(A,Y){var P=R.length,E=[];if(P)for(var z=function(y,m){P--;E[y]=m;P==0&&A(E)},c=function(y){Y(y)},M,N=0;N<R.length;N++)M=R[N],ArN(M,_.nj(z,N),c);
else A(E)})};
YpA=function(R){return new _.yR(function(A){var Y=R.length,P=[];if(Y)for(var E=function(M,N,y){Y--;P[M]=N?{fulfilled:!0,value:y}:{fulfilled:!1,reason:y};Y==0&&A(P)},z,c=0;c<R.length;c++)z=R[c],ArN(z,_.nj(E,c,!0),_.nj(E,c,!1));
else A(P)})};
PG8=function(R){return new _.yR(function(A,Y){var P=R.length,E=[];if(P)for(var z=function(y){A(y)},c=function(y,m){P--;
E[y]=m;P==0&&Y(E)},M,N=0;N<R.length;N++)M=R[N],ArN(M,z,_.nj(c,N));
else A(void 0)})};
_.ei=function(){var R,A,Y=new _.yR(function(P,E){R=P;A=E});
return new E2H(Y,R,A)};
_.yR.prototype.then=function(R,A,Y){return zdH(this,I8(typeof R==="function"?R:null),I8(typeof A==="function"?A:null),Y)};
uHq(_.yR);lgN=function(R,A,Y,P){isS(R,dR7(A||_.r$,Y||null,P))};
_.jS=function(R,A){A=I8(A);A=dR7(A,A);A.always=!0;isS(R,A);return R};
_.yR.prototype.finally=function(R){var A=this;R=I8(R);return new _.yR(function(Y,P){lgN(A,function(E){R();Y(E)},function(E){R();
P(E)})})};
_.yR.prototype.thenCatch=function(R,A){return zdH(this,null,I8(R),A)};
_.yR.prototype.catch=_.yR.prototype.thenCatch;_.yR.prototype.cancel=function(R){if(this.state_==0){var A=new _.Fn(R);_.KA(function(){xMH(this,A)},this)}};
var xMH=function(R,A){if(R.state_==0)if(R.parent_){var Y=R.parent_;if(Y.callbackEntries_){for(var P=0,E=null,z=null,c=Y.callbackEntries_;c&&(c.always||(P++,c.child==R&&(E=c),!(E&&P>1)));c=c.next)E||(z=c);E&&(Y.state_==0&&P==1?xMH(Y,A):(z?(P=z,P.next==Y.callbackEntriesTail_&&(Y.callbackEntriesTail_=P),P.next=P.next.next):crb(Y),OsE(Y,E,3,A)))}R.parent_=null}else R.resolve_(3,A)},isS=function(R,A){R.callbackEntries_||R.state_!=2&&R.state_!=3||MpA(R);
R.callbackEntriesTail_?R.callbackEntriesTail_.next=A:R.callbackEntries_=A;R.callbackEntriesTail_=A},zdH=function(R,A,Y,P){var E=dR7(null,null,null);
E.child=new _.yR(function(z,c){E.JSC$9762_onFulfilled=A?function(M){try{var N=A.call(P,M);z(N)}catch(y){c(y)}}:z;
E.JSC$9762_onRejected=Y?function(M){try{var N=Y.call(P,M);N===void 0&&M instanceof _.Fn?c(M):z(N)}catch(y){c(y)}}:c});
E.child.parent_=R;isS(R,E);return E.child};
_.yR.prototype.unblockAndFulfill_=function(R){this.state_=0;this.resolve_(2,R)};
_.yR.prototype.unblockAndReject_=function(R){this.state_=0;this.resolve_(3,R)};
_.yR.prototype.resolve_=function(R,A){this.state_==0&&(this===A&&(R=3,A=new TypeError("xa")),this.state_=1,RdN(A,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=A,this.state_=R,this.parent_=null,MpA(this),R!=3||A instanceof _.Fn||sSA(this,A)))};
var RdN=function(R,A,Y,P){if(R instanceof _.yR)return lgN(R,A,Y,P),!0;if(eKq(R))return R.then(A,Y,P),!0;if(_.ZI(R))try{var E=R.then;if(typeof E==="function")return NLD(R,E,A,Y,P),!0}catch(z){return Y.call(P,z),!0}return!1},NLD=function(R,A,Y,P,E){var z=!1,c=function(N){z||(z=!0,Y.call(E,N))},M=function(N){z||(z=!0,P.call(E,N))};
try{A.call(R,c,M)}catch(N){M(N)}},MpA=function(R){R.executing_||(R.executing_=!0,_.KA(R.executeCallbacks_,R))},crb=function(R){var A=null;
R.callbackEntries_&&(A=R.callbackEntries_,R.callbackEntries_=A.next,A.next=null);R.callbackEntries_||(R.callbackEntriesTail_=null);return A};
_.yR.prototype.executeCallbacks_=function(){for(var R;R=crb(this);)OsE(this,R,this.state_,this.result_);this.executing_=!1};
OsE=function(R,A,Y,P){if(Y==3&&A.JSC$9762_onRejected&&!A.always)for(;R&&R.hadUnhandledRejection_;R=R.parent_)R.hadUnhandledRejection_=!1;if(A.child)A.child.parent_=null,VpA(A,Y,P);else try{A.always?A.JSC$9762_onFulfilled.call(A.context):VpA(A,Y,P)}catch(E){zrV.call(null,E)}L6q.put(A)};
VpA=function(R,A,Y){A==2?R.JSC$9762_onFulfilled.call(R.context,Y):R.JSC$9762_onRejected&&R.JSC$9762_onRejected.call(R.context,Y)};
sSA=function(R,A){R.hadUnhandledRejection_=!0;_.KA(function(){R.hadUnhandledRejection_&&zrV.call(null,A)})};
zrV=E6;_.Fn=function(R){_.Rk.call(this,R)};
_.Pb(_.Fn,_.Rk);_.Fn.prototype.name="cancel";var E2H=function(R,A,Y){this.promise=R;this.resolve=A;this.reject=Y};var b6;_.xh=function(R,A){_.SS.call(this);this.JSC$9774_interval_=R||1;this.timerObject_=A||_.P3;this.boundTick_=(0,_.Wv)(this.tick_,this);this.last_=_.YB()};
_.Pb(_.xh,_.SS);_.l=_.xh.prototype;_.l.enabled=!1;_.l.JSC$9776_timer_=null;_.l.setInterval=function(R){this.JSC$9774_interval_=R;this.JSC$9776_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9776_timer_&&this.stop()};
_.l.tick_=function(){if(this.enabled){var R=_.YB()-this.last_;R>0&&R<this.JSC$9774_interval_*.8?this.JSC$9776_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9774_interval_-R):(this.JSC$9776_timer_&&(this.timerObject_.clearTimeout(this.JSC$9776_timer_),this.JSC$9776_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.l.start=function(){this.enabled=!0;this.JSC$9776_timer_||(this.JSC$9776_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9774_interval_),this.last_=_.YB())};
_.l.stop=function(){this.enabled=!1;this.JSC$9776_timer_&&(this.timerObject_.clearTimeout(this.JSC$9776_timer_),this.JSC$9776_timer_=null)};
_.l.disposeInternal=function(){_.xh.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
b6=function(R,A,Y){if(typeof R==="function")Y&&(R=(0,_.Wv)(R,Y));else if(R&&typeof R.handleEvent=="function")R=(0,_.Wv)(R.handleEvent,R);else throw Error("ya");return Number(A)>2147483647?-1:_.P3.setTimeout(R,A||0)};
_.JrA=function(R){var A=null;return(new _.yR(function(Y,P){A=b6(function(){Y(void 0)},R);
A==-1&&P(Error("za"))})).thenCatch(function(Y){_.P3.clearTimeout(A);
throw Y;})};var nJ=function(R){_.KJ.call(this);this.streamzLogger=R;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9780_flushTimer=new _.xh(this.flushInterval);this.JSC$9780_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.gz(this,this.JSC$9780_flushTimer)};
_.H(nJ,_.KJ);nJ.prototype.sendIsolatedPayload=function(R){this.shouldSendIsolatedPayload=R;this.invocationLimit=1};
var yrb=function(R){R.JSC$9780_flushTimer.enabled||R.JSC$9780_flushTimer.start();R.invocationCount++;R.invocationCount>=R.invocationLimit&&R.snapshotAndFlush()};
nJ.prototype.snapshotAndFlush=function(){var R=this.metricMap.values();R=[].concat(_.py(R)).filter(function(A){return A.cellMap.size});
R.length&&this.streamzLogger.flush(R,this.shouldSendIsolatedPayload);mME(R);this.invocationCount=0;this.JSC$9780_flushTimer.enabled&&this.JSC$9780_flushTimer.stop()};
nJ.prototype.addNewCounter=function(R){var A=_.Ge.apply(1,arguments);this.metricMap.has(R)||this.metricMap.set(R,new rOb(R,A))};
nJ.prototype.addNewEventMetric=function(R){var A=_.Ge.apply(1,arguments);this.metricMap.has(R)||this.metricMap.set(R,new DRS(R,A))};
var TLA=function(R,A){return R.disabledMetrics.has(A)?void 0:R.metricMap.get(A)};
nJ.prototype.JSC$9780_incrementCounter=function(R){this.JSC$9780_incrementCounterBy(R,1,_.Ge.apply(1,arguments))};
nJ.prototype.JSC$9780_incrementCounterBy=function(R,A){var Y=_.Ge.apply(2,arguments),P=TLA(this,R);P&&P instanceof rOb&&(P.JSC$9719_incrementCounterBy(A,Y),yrb(this))};
nJ.prototype.record=function(R,A){var Y=_.Ge.apply(2,arguments),P=TLA(this,R);P&&P instanceof DRS&&(P.record(A,Y),yrb(this))};
var mME=function(R){for(var A=0;A<R.length;A++)R[A].clear()};_.fA=function(R,A,Y){Y=Y===void 0?{}:Y;A=Error.call(this,A);this.message=A.message;"stack"in A&&(this.stack=A.stack);this.code=R;this.metadata=Y;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.H(_.fA,Error);_.fA.prototype.toString=function(){var R="RpcError("+(R4b(this.code)||String(this.code))+")";this.message&&(R+=": "+this.message);return R};_.QS8=_.P3.JSON.parse;_.pA=_.P3.JSON.stringify;_.We=_.P3.JSON.parse;_.v2A=function(R){switch(R){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 g27=function(R){switch(R){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var n2A,Hsb=function(){};
_.Pb(Hsb,_.ANk);Hsb.prototype.createInstance=function(){return new XMLHttpRequest};
n2A=new Hsb;_.FQ=function(R){_.SS.call(this);this.headers=new Map;this.JSC$9789_xmlHttpFactory_=R||null;this.JSC$9789_active_=!1;this.JSC$9789_xhr_=null;this.JSC$9789_lastUri_="";this.JSC$9789_lastErrorCode_=0;this.JSC$9789_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9789_timeoutId_=null;this.responseType_="";this.JSC$9789_withCredentials_=!1};
_.Pb(_.FQ,_.SS);var rrS=/^https?$/i,DMf=["POST","PUT"],UMA=[],QcS=function(R,A,Y,P,E,z,c){var M=new _.FQ;UMA.push(M);A&&M.listen("complete",A);M.listenOnce("ready",M.cleanupSend_);z&&(M.timeoutInterval_=Math.max(0,z));c&&(M.JSC$9789_withCredentials_=c);M.send(R,Y,P,E)};
_.FQ.prototype.cleanupSend_=function(){this.dispose();_.ak(UMA,this)};
_.FQ.prototype.send=function(R,A,Y,P){if(this.JSC$9789_xhr_)throw Error("Aa`"+this.JSC$9789_lastUri_+"`"+R);A=A?A.toUpperCase():"GET";this.JSC$9789_lastUri_=R;this.JSC$9789_lastError_="";this.JSC$9789_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9789_active_=!0;this.JSC$9789_xhr_=this.createXhr();this.JSC$9789_xhr_.onreadystatechange=I8((0,_.Wv)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9789_xhr_.open(A,String(R),!0),this.inOpen_=!1}catch(c){$MN(this,c);return}R=Y||"";Y=new Map(this.headers);
if(P)if(Object.getPrototypeOf(P)===Object.prototype)for(var E in P)Y.set(E,P[E]);else if(typeof P.keys==="function"&&typeof P.get==="function"){E=_.x(P.keys());for(var z=E.next();!z.done;z=E.next())z=z.value,Y.set(z,P.get(z))}else throw Error("Ba`"+String(P));P=Array.from(Y.keys()).find(function(c){return"content-type"==c.toLowerCase()});
E=_.P3.FormData&&R instanceof _.P3.FormData;!_.B3(DMf,A)||P||E||Y.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");A=_.x(Y);for(P=A.next();!P.done;P=A.next())Y=_.x(P.value),P=Y.next().value,Y=Y.next().value,this.JSC$9789_xhr_.setRequestHeader(P,Y);this.responseType_&&(this.JSC$9789_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9789_xhr_&&this.JSC$9789_xhr_.withCredentials!==this.JSC$9789_withCredentials_&&(this.JSC$9789_xhr_.withCredentials=this.JSC$9789_withCredentials_);
try{this.JSC$9789_timeoutId_&&(clearTimeout(this.JSC$9789_timeoutId_),this.JSC$9789_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9789_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9789_xhr_.send(R),this.inSend_=!1}catch(c){$MN(this,c)}};
_.FQ.prototype.createXhr=function(){return this.JSC$9789_xmlHttpFactory_?this.JSC$9789_xmlHttpFactory_.createInstance():n2A.createInstance()};
_.FQ.prototype.timeout_=function(){typeof BKk!="undefined"&&this.JSC$9789_xhr_&&(this.JSC$9789_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9789_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var $MN=function(R,A){R.JSC$9789_active_=!1;R.JSC$9789_xhr_&&(R.inAbort_=!0,R.JSC$9789_xhr_.abort(),R.inAbort_=!1);R.JSC$9789_lastError_=A;R.JSC$9789_lastErrorCode_=5;XON(R);Sp7(R)},XON=function(R){R.errorDispatched_||(R.errorDispatched_=!0,R.dispatchEvent("complete"),R.dispatchEvent("error"))};
_.FQ.prototype.abort=function(R){this.JSC$9789_xhr_&&this.JSC$9789_active_&&(this.JSC$9789_active_=!1,this.inAbort_=!0,this.JSC$9789_xhr_.abort(),this.inAbort_=!1,this.JSC$9789_lastErrorCode_=R||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Sp7(this))};
_.FQ.prototype.disposeInternal=function(){this.JSC$9789_xhr_&&(this.JSC$9789_active_&&(this.JSC$9789_active_=!1,this.inAbort_=!0,this.JSC$9789_xhr_.abort(),this.inAbort_=!1),Sp7(this,!0));_.FQ.superClass_.disposeInternal.call(this)};
_.FQ.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Igz(this);else this.onReadyStateChangeEntryPoint_()};
_.FQ.prototype.onReadyStateChangeEntryPoint_=function(){Igz(this)};
var Igz=function(R){if(R.JSC$9789_active_&&typeof BKk!="undefined")if(R.inSend_&&_.B$(R)==4)setTimeout(R.onReadyStateChange_.bind(R),0);else if(R.dispatchEvent("readystatechange"),R.isComplete()){R.JSC$9789_active_=!1;try{if(R.isSuccess())R.dispatchEvent("complete"),R.dispatchEvent("success");else{R.JSC$9789_lastErrorCode_=6;try{var A=_.B$(R)>2?R.JSC$9789_xhr_.statusText:""}catch(Y){A=""}R.JSC$9789_lastError_=A+" ["+R.getStatus()+"]";XON(R)}}finally{Sp7(R)}}},Sp7=function(R,A){if(R.JSC$9789_xhr_){R.JSC$9789_timeoutId_&&
(clearTimeout(R.JSC$9789_timeoutId_),R.JSC$9789_timeoutId_=null);
var Y=R.JSC$9789_xhr_;R.JSC$9789_xhr_=null;A||R.dispatchEvent("ready");try{Y.onreadystatechange=null}catch(P){}}};
_.FQ.prototype.isActive=function(){return!!this.JSC$9789_xhr_};
_.FQ.prototype.isComplete=function(){return _.B$(this)==4};
_.FQ.prototype.isSuccess=function(){var R=this.getStatus(),A;if(!(A=g27(R))){if(R=R===0)R=fjb(String(this.JSC$9789_lastUri_)),R=!rrS.test(R);A=R}return A};
_.B$=function(R){return R.JSC$9789_xhr_?R.JSC$9789_xhr_.readyState:0};
_.l=_.FQ.prototype;_.l.getStatus=function(){try{return _.B$(this)>2?this.JSC$9789_xhr_.status:-1}catch(R){return-1}};
_.l.getResponseText=function(){try{return this.JSC$9789_xhr_?this.JSC$9789_xhr_.responseText:""}catch(R){return""}};
_.l.getResponse=function(){try{if(!this.JSC$9789_xhr_)return null;if("response"in this.JSC$9789_xhr_)return this.JSC$9789_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9789_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9789_xhr_)return this.JSC$9789_xhr_.mozResponseArrayBuffer}return null}catch(R){return null}};
_.l.getAllResponseHeaders=function(){return this.JSC$9789_xhr_&&_.B$(this)>=2?this.JSC$9789_xhr_.getAllResponseHeaders()||"":""};
_.l.getLastError=function(){return typeof this.JSC$9789_lastError_==="string"?this.JSC$9789_lastError_:String(this.JSC$9789_lastError_)};var z46=function(){};
z46.prototype.send=function(R,A,Y){A=A===void 0?function(){}:A;
Y=Y===void 0?function(){}:Y;
QcS(R.url,function(P){P=P.target;P.isSuccess()?A(P.getResponseText()):Y(P.getStatus())},R.requestType,R.body,R.requestHeaders,R.timeoutMillis,R.withCredentials)};
z46.prototype.getTransmissionType=function(){return 1};var KMA=function(R,A){this.fSu=R;this.event=A;this.startTime=Hv()},Mxl;
KMA.prototype.done=function(){this.fSu.hg(this.event,Hv()-this.startTime)};
var a8=function(){sX.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.H(a8,sX);_.CA=function(R,A,Y){var P=Hv();A=A();R.hg(Y,Hv()-P);return A};
Mxl=function(){a8.apply(this,arguments)};
_.H(Mxl,a8);_.l=Mxl.prototype;_.l.y6l=function(){};
_.l.pG=function(){};
_.l.hg=function(){};
_.l.logError=function(){};
_.l.i4=function(){};
_.l.twB=function(){};
_.l.xJt=function(){};
_.l.nQn=function(){};
var WMS=function(R){a8.call(this);var A=this;this.ir=R;this.TEST_ONLY={pHw:function(){return A.ir},
getExperimentIds:function(){return A.ir.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void A.ir.dispose()})};
_.H(WMS,a8);_.l=WMS.prototype;_.l.update=function(R){this.ir.dispose();this.ir=R};
_.l.pG=function(R){this.ir.pG(R)};
_.l.hg=function(R,A){this.ir.hg(R,A)};
_.l.logError=function(R){this.ir.logError(R)};
_.l.i4=function(){this.ir.i4()};
_.l.twB=function(R){this.ir.twB(R)};
_.l.xJt=function(R){this.ir.xJt(R)};
_.l.nQn=function(R){this.ir.nQn(R)};
_.l.y6l=function(R){this.ir.y6l(R)};
var jSS=function(R,A){_.KJ.call(this);var Y=this;this.callback=R;this.mhT=A;this.z8V=-A;this.addOnDisposeCallback(function(){return void clearTimeout(Y.timer)})};
_.H(jSS,_.KJ);var bsD=function(R){if(R.timer===void 0){var A=Math.max(0,R.z8V+R.mhT-Hv());R.timer=setTimeout(function(){try{R.callback()}finally{R.z8V=Hv(),R.timer=void 0}},A)}},fgS=function(R,A){a8.call(this);
this.metrics=R;this.iL=A};
_.H(fgS,a8);_.l=fgS.prototype;_.l.y6l=function(R){this.metrics.o35.record(R,this.iL)};
_.l.pG=function(R){this.metrics.eventCount.increment(R,this.iL)};
_.l.hg=function(R,A){this.metrics.yCF.record(A,R,this.iL)};
_.l.logError=function(R){this.metrics.errorCount.increment(R,this.iL)};
_.l.twB=function(R){this.metrics.udq.increment(R,this.iL)};
_.l.xJt=function(R){this.metrics.a6T.increment(R,this.iL)};
_.l.nQn=function(R){this.metrics.drF.increment(R,this.iL)};
var sWS=function(R,A){A=A===void 0?[]:A;var Y={iL:R.iL||"_",nUn:R.nUn||[],qtJ:R.qtJ|0,destinationUrl:R.destinationUrl,epl:R.epl||function(){},
opz:R.opz||function(z,c){return Ow8(z,c,Y.epl,Y.destinationUrl)}},P=Y.opz("51",Y.nUn.concat(A));
fgS.call(this,{o35:new mLZ(P),errorCount:new gD8(P),eventCount:new QRq(P),yCF:new vDz(P),j3w:new TZ7(P),udq:new nD7(P),a6T:new Hqb(P),drF:new rbG(P)},Y.iL);var E=this;this.TEST_ONLY={getExperimentIds:function(){return E.options.nUn.concat(E.l0F).sort(function(z,c){return z-c})}};
this.options=Y;this.service=P;this.cdk=!R.opz;this.flushDebouncer=new jSS(function(){return void E.service.snapshotAndFlush()},Y.qtJ);
this.addOnDisposeCallback(function(){E.flushDebouncer.dispose();E.cdk&&E.service.dispose()});
(this.l0F=A.slice()).sort(_.$b3)};
_.H(sWS,fgS);sWS.prototype.i4=function(){bsD(this.flushDebouncer)};var aQl=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(aQl,_.lb);_.CLb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(_.CLb,_.lb);var hm=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R,0,hm.messageId)};
_.H(hm,_.lb);var pOG=_.Cbu(hm);hm.messageId="bfkj";var FJ6=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(FJ6,_.lb);var FMA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(FMA,_.lb);var BLS=_.Hx(FMA);_.y2=function(){var R=this;this.promise=new Promise(function(A,Y){R.resolve=A;R.reject=Y})};_.hA=function(R){_.KJ.call(this);var A=this;this.fuV=Math.floor(Math.random()*200);this.oLc=new FMA;if("challenge"in R&&pOG(R.challenge)){var Y=_.X1(R.challenge,4,void 0,SH);var P=_.X1(R.challenge,5,void 0,SH);_.X1(R.challenge,7,void 0,SH)&&(this.oLc=BLS(_.X1(R.challenge,7,void 0,SH)))}else Y=R.program,P=R.globalName;this.addOnDisposeCallback(function(){var r,I,b;return _.O(function(p){if(p.nextAddress==1)return p.yield(A.n2n,2);r=p.yieldResult;I=r.piq;(b=I)==null||b();_.XH(p)})});
this.tT=NrV(R.eBM||{},this.oLc);_.gz(this,this.tT);var E=new _.y2;this.n2n=E.promise;this.tT.pG("t");var z=this.tT.share(),c=new KMA(z,"t"),M=function(r,I,b,p){if(!A.tT.isDisposed()){var h="k";I?h="h":b&&(h="u");h!=="k"?p!==0&&(A.tT.pG(h),A.tT.hg(h,r)):A.fuV<=0?(A.tT.pG(h),A.tT.hg(h,r),A.fuV=Math.floor(Math.random()*200)):A.fuV--}},N=function(r,I,b,p){Promise.resolve().then(function(){c.done();
z.i4();z.dispose();E.resolve({wmW:r,piq:I,a7U:b,q9u:p})})};
if(!_.P3[P])throw this.tT.logError(25),Error("Ca");if(!_.P3[P].a)throw this.tT.logError(26),Error("Da");try{var y=_.P3[P].a;P=[];for(var m=[],T=Buk(this.oLc),Q=0;Q<T.length;Q++)P.push(T[Q]),m.push(1);var g=arJ(this.oLc);for(T=0;T<g.length;T++)P.push(g[T]),m.push(2);this.mqp=_.x(y(Y,N,!0,R.g3D,M,[P,m],_.X1(this.oLc,5))).next().value;this.qHK=E.promise.then(function(){})}catch(r){throw this.tT.logError(28),r;
}};
_.H(_.hA,_.KJ);_.hA.prototype.snapshot=function(R){if(this.isDisposed())throw Error("Ea");this.tT.pG("n");var A=this.tT.share();return this.n2n.then(function(Y){var P=Y.wmW;return new Promise(function(E){var z=new KMA(A,"n");P(function(c){z.done();A.y6l(c.length);A.i4();A.dispose();E(c)},[R.v6,
R.qKn,R.lnD,R.ckL])})})};
_.hA.prototype.seK=function(R){this.n2n.then(function(A){var Y;(Y=A.a7U)==null||Y(R)})};
_.hA.prototype.eQs=function(R,A){return this.n2n.then(function(Y){var P;return(P=Y.q9u)==null?void 0:P(R,A,!1)})};
_.hA.prototype.drB=function(){return this.tT.share()};var agZ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(agZ,_.lb);var RPk=_.Cbu(agZ);var CGN=function(){this.promises={};this.p8g=null},hdz=function(){CGN.instance||(CGN.instance=new CGN);
return CGN.instance},kEE=function(R,A){return o27(R,_.cG(A,aQl,1,SH),_.cG(A,_.CLb,2,SH),_.X1(A,3,void 0,SH))},o27=function(R,A,Y,P){if(!A&&!Y)return Promise.resolve();
if(!P)return Tr6(A,Y);var E;(E=R.promises)[P]||(E[P]=new Promise(function(z,c){Tr6(A,Y).then(function(){R.p8g=P;z()},function(M){delete R.promises[P];
c(M)})}));
return R.promises[P]};var GEZ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(GEZ,_.lb);var Zsf=function(R,A){return _.o9(R,1,A)},tpN=function(R,A){return _.o9(R,2,A)};var o8=function(R){_.KJ.call(this);var A=this;this.options=R;this.jVK=new _.y2;this.qHK=this.jVK.promise;this.rG7=new _.y2;this.wdG=1;this.kqB=new _.y2;this.fix=[];this.ydt=R.ydt||function(){};
this.qhs=new WMS(NrV(R.eBM||{}));wOS(this,R.lN,R.qvN,R.bvH,R.ex3,Object.assign({},ur7,R.uis||{}));this.addOnDisposeCallback(function(){return void edS(A)})};
_.H(o8,_.KJ);o8.prototype.snapshot=function(R){var A=this;return _.O(function(Y){switch(Y.nextAddress){case 1:if(A.isDisposed())throw Error("Ea");if(A.u0||A.tfN){Y.jumpTo(2);break}return Y.yield(A.rG7.promise,2);case 2:if(!A.u0){Y.jumpTo(4);break}return Y.yield(A.u0.snapshot(R),5);case 5:return Y.return(Y.yieldResult);case 4:throw A.tfN;}})};
var qpA=function(R){var A;return _.O(function(Y){if(R.isDisposed())throw Error("Ea");(A=R.qg)!=null&&(A.endTimeMs=0,A.resolver(1));return Y.yield(R.kqB.promise,0)})},edS=function(R){R.tfN=Error("Ga");
R.rG7.resolve();CI3(R.jVK.promise);R.jVK.reject(Error("Ga"));R.qhs.dispose();Promise.all(R.fix).then(function(){var Y;return _.O(function(P){(Y=R.u0)==null||Y.dispose();R.u0=void 0;_.XH(P)})});
R.fix=[];var A;(A=R.qg)!=null&&(A.endTimeMs=0,A.resolver(1));CI3(R.kqB.promise);R.kqB.reject(Error("Ga"))};
o8.prototype.seK=function(R){var A,Y;(A=this.u0)==null||(Y=A.seK)==null||Y.call(A,R)};
o8.prototype.eQs=function(R,A){var Y,P,E;return(E=(Y=this.u0)==null?void 0:(P=Y.eQs)==null?void 0:P.call(Y,R,A))!=null?E:Promise.resolve()};
var LMA=function(R,A){var Y=R.ydt;R.ydt=function(){Y();A()}},dMD=function(R,A){R.isDisposed()||(R.u0=A,R.qhs.update(A.drB()),R.rG7.resolve(),R.jVK.resolve(void 0),R.ydt())};
o8.prototype.handleError=function(R){if(!this.isDisposed()){this.tfN=R;this.rG7.resolve();var A,Y;(Y=(A=this.options).wlF)==null||Y.call(A,R)}};
var RoS=function(R,A){A&&(Promise.all(R.fix).then(function(){return void A.dispose()}),R.fix=[])},ky=function(R,A){R.wdG=A;
var Y,P;(P=(Y=R.options).hEH)==null||P.call(Y,A)},AlS=function(R){R.isDisposed()||(R.kqB.resolve(),R.kqB=new _.y2)},wOS=function(R,A,Y,P,E,z){P=P===void 0?hdz():P;
E=E===void 0?Promise.resolve(void 0):E;var c,M,N,y,m,T,Q,g,r,I,b,p;_.O(function(h){switch(h.nextAddress){case 1:return h.yield(0,3);case 3:M=null;if(!c){h.jumpTo(6);break}ky(R,7);_.g2(h,7);return h.yield(XL(c.snapshot({}),z.k3W,function(){return Promise.resolve("E:CTO")}),9);
case 9:M=h.yieldResult;_.us(h,6);break;case 7:_.UT(h),M="E:UCE";case 6:N=void 0,y=c?z.syW:z.kBF,m=new mE(y,z.zz8,z.cCv,z.jya),T=1;case 10:if(!(T<=z.maxAttempts)){h.jumpTo(12);break}if(T===1){h.jumpTo(13);break}ky(R,0);R.qg=new YU7(m.getValue(),z.nev,z.rTM);return h.yield(R.qg.promise,14);case 14:Q=h.yieldResult,R.qg=void 0,Q===1?(T=1,m.reset()):N2S(m);case 13:_.g2(h,15);g=void 0;if(Y){g=Y;h.jumpTo(17);break}ky(R,5);r=P.p8g;return h.yield(XL(PtS(A,r,M),z.cxq,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:g=h.yieldResult;case 17:return ky(R,3),h.yield(XL(kEE(P,g),z.zju,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return ky(R,8),h.yield(E,20);case 20:return I=new _.hA({challenge:g,eBM:R.options.eBM,g3D:R.options.g3D}),h.yield(XL(I.qHK,z.yDU,function(){return Promise.reject(Error("Ja"))}),21);
case 21:N=I;h.jumpTo(12);break;case 15:b=_.UT(h),R.handleError(b),AlS(R);case 11:T++;h.jumpTo(10);break;case 12:if(R.isDisposed()){h.jumpTo(5);break}N&&(Y=void 0,RoS(R,c),c=N,dMD(R,N),AlS(R));ky(R,2);R.qg=new YU7(z.zNa,z.nev,z.rTM);return h.yield(R.qg.promise,22);case 22:R.qg=void 0;if(R.isDisposed()){h.jumpTo(5);break}h.jumpTo(3);break;case 5:(p=c)==null||p.dispose(),_.XH(h)}})};
o8.prototype.drB=function(){return this.qhs.share()};
var ur7={zNa:432E5,nev:3E5,rTM:10,k3W:1E4,cxq:3E4,zju:3E4,yDU:6E4,kBF:1E3,syW:6E4,zz8:6E5,cCv:.25,jya:2,maxAttempts:10},YU7=function(R,A,Y){var P=this;this.endTimeMs=Date.now()+R;this.promise=new Promise(function(z){P.resolver=z});
var E=function(){var z=P.endTimeMs-Date.now();z<=Y?P.resolver(0):setTimeout(E,Math.min(z,A))};
E()};var Et7,gS6=(Et7=Math.imul)!=null?Et7:function(R,A){return R*A|0},SK=[196,
200,224,18],Gb=function(R,A,Y){Y=Y===void 0?[]:Y;this.maxItems=R;this.oD=A===void 0?0:A;this.aP=Y},zoH=function(R){var A=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!A)return new Gb(R);var Y=A.split(",");if(Y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Gb(R);A=Y.slice(1);A.length===1&&A[0]===""&&(A=[]);Y=Number(Y[0]);return isNaN(Y)||Y<0||Y>A.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Gb(R)):new Gb(R,Y,A)};
Gb.prototype.serialize=function(){return String(this.oD)+","+this.aP.join()};
Gb.prototype.insert=function(R,A){var Y=void 0;if(this.aP[this.oD]!==R){var P=this.aP.indexOf(R);P!==-1?(this.aP.splice(P,1),P<this.oD&&this.oD--,this.aP.splice(this.oD,0,R)):(Y=this.aP[this.oD],this.aP[this.oD]=R)}this.oD=(this.oD+1)%this.maxItems;R=QWk("iU5q-!O9@$",this.serialize());Y&&R&&A(Y);return R};
var iJA=function(R,A){this.gJK=A;try{var Y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){Y=!1}Y&&(this.index=zoH(R))},leS=function(R,A,Y,P,E){var z=R.index?_.CA(R.gJK,function(){return D1u(R.index,HwS(A),Y,P,E)},"W"):"u";
R.gJK.nQn(z)},x_A=function(R,A,Y){var P=_.x(R.index?_.CA(R.gJK,function(){return U1b(HwS(A),Y)},"R"):["u"]),E=P.next().value;
P=P.next().value;R.gJK.xJt(E);return P};var cl7={toString:function(R){var A=[],Y=0;R-=-2147483648;A[Y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(R%52);for(R=Math.floor(R/52);R>0;)A[Y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(R%62),R=Math.floor(R/62);return A.join("")}};var sXA=function(R){R=OJZ(R);for(var A=2654435769,Y=2654435769,P=314159265,E=R.length,z=E,c=0,M=function(){A-=Y;A-=P;A^=P>>>13;Y-=P;Y-=A;Y^=A<<8;P-=A;P-=Y;P^=Y>>>13;A-=Y;A-=P;A^=P>>>12;Y-=P;Y-=A;Y^=A<<16;P-=A;P-=Y;P^=Y>>>5;A-=Y;A-=P;A^=P>>>3;Y-=P;Y-=A;Y^=A<<10;P-=A;P-=Y;P^=Y>>>15};z>=12;z-=12,c+=12)A+=MK7(R,c),Y+=MK7(R,c+4),P+=MK7(R,c+8),M();
P+=E;switch(z){case 11:P+=R[c+10]<<24;case 10:P+=R[c+9]<<16;case 9:P+=R[c+8]<<8;case 8:Y+=R[c+7]<<24;case 7:Y+=R[c+6]<<16;case 6:Y+=R[c+5]<<8;case 5:Y+=R[c+4];case 4:A+=R[c+3]<<24;case 3:A+=R[c+2]<<16;case 2:A+=R[c+1]<<8;case 1:A+=R[c]}M();return cl7.toString(P)},OJZ=function(R){for(var A=[],Y=0;Y<R.length;Y++)A.push(R.charCodeAt(Y));
return A},MK7=function(R,A){return R[A]+(R[A+1]<<8)+(R[A+2]<<16)+(R[A+3]<<24)};var Zu=function(R){_.KJ.call(this);this.zx=R;this.uTO=new _.y2};
_.H(Zu,_.KJ);var Nzf=function(R,A){var Y=setTimeout(function(){R.uTO.resolve()},A);
R.addOnDisposeCallback(function(){return void clearTimeout(Y)})};
Zu.prototype.jcm=function(R,A){var Y=this.kZ(R);A==null||A(Y);return _.CA(this.zx,function(){return _.WF(Y,2)},this.pMx)};
var VKf=function(R,A,Y,P){return _.CA(R.zx,function(){return Y?R.jcm(A,P):R.kZ(A,P)},R.kJC)},JlA=function(R,A,Y,P){Zu.call(this,R);
this.vcv=A;this.xha=Y;this.kJC="m";this.pMx="x";this.qFB=0;Nzf(this,P)};
_.H(JlA,Zu);JlA.prototype.kZ=function(R,A){var Y=this;this.zx.pG(this.kJC);++this.qFB>=this.xha&&this.uTO.resolve();var P=R();R=_.CA(this.zx,function(){return Y.vcv(P)},"C");
if(R===void 0)throw new OX(17,"YNJ:Undefined");if(!(R instanceof Uint8Array))throw new OX(18,"ODM:Invalid");A==null||A(R);return R};
var ylE=function(R,A,Y){Zu.call(this,R);this.sqD=A;this.kJC="f";this.pMx="z";Nzf(this,Y)};
_.H(ylE,Zu);ylE.prototype.kZ=function(){return this.sqD};
var m_E=function(R,A,Y){Zu.call(this,R);this.yJv=A;this.kJC="w";this.pMx="z";Nzf(this,Y)};
_.H(m_E,Zu);m_E.prototype.kZ=function(){var R=this;return _.CA(this.zx,function(){return _.eP(R.yJv)},"d")};
m_E.prototype.jcm=function(){return this.yJv};
var Tzf=function(R,A){Zu.call(this,R);this.error=A;this.kJC="e";this.pMx="y"};
_.H(Tzf,Zu);var QXS=function(R,A){var Y=(A(R.error.message)+":"+A(R.error.stack)).substring(0,2048);A=Y.length+1;Y=$1k(Y);var P=new Uint8Array(4+Y.length);P.set([42,A&127|128,A>>7,R.error.code]);P.set(Y,4);return P};
Tzf.prototype.kZ=function(){if(this.dco)return this.dco;this.dco=QXS(this,function(R){return"_"+sXA(R)});
return QXS(this,function(R){return R})};
var vtA=function(R,A,Y){Zu.call(this,R);this.wf1=A;this.clientState=Y;this.kJC="S";this.pMx="q"};
_.H(vtA,Zu);vtA.prototype.kZ=function(){var R=Math.floor(Date.now()/1E3),A=[Math.random()*255,Math.random()*255],Y=A.concat([this.wf1&255,this.clientState],[R>>24&255,R>>16&255,R>>8&255,R&255]);R=new Uint8Array(2+Y.length);R[0]=34;R[1]=Y.length;R.set(Y,2);Y=R.subarray(2);for(var P=A=A.length;P<Y.length;++P)Y[P]^=Y[P%A];this.zx.twB(this.clientState);return R};var gt7={mtk:3E4,i7p:2E4},tA=function(R){_.KJ.call(this);var A=this;this.uF7=new _.y2;this.plN=0;this.yc=void 0;this.state=2;this.vm=R.vm;this.lN=R.lN;this.uis=Object.assign({},gt7,R.uis||{});this.sW=R.vm.drB();var Y;this.onError=(Y=R.onError)!=null?Y:function(){};
this.uqo=R.uqo||!1;if(ntZ(R)){var P=this.vm;this.lSO=function(){return qpA(P).catch(function(c){c=A.reportError(new OX(A.g8?20:32,"TRG:Disposed",c));A.yc=c;var M;(M=A.g8)==null||M.dispose();A.g8=void 0;A.uF7.reject(c)})};
LMA(P,function(){return void HJS(A)});
P.wdG===2&&HJS(this)}else this.lSO=R.dfp,HJS(this);var E=this.sW.share();E.pG("o");var z=new KMA(E,"o");this.uF7.promise.then(function(){z.done();E.i4();E.dispose()},function(){return void E.dispose()});
this.addOnDisposeCallback(function(){A.g8?(A.g8.dispose(),A.g8=void 0):A.yc?A.sW.i4():(A.yc=A.reportError(new OX(32,"TNP:Disposed")),A.sW.i4(),A.uF7.reject(A.yc))});
_.gz(this,this.sW)};
_.H(tA,_.KJ);tA.prototype.xEg=function(){return this.uF7.promise};
var rlZ=function(R,A){if(!(A instanceof OX))if(A instanceof _.fA){var Y=Error(A.toString());Y.stack=A.stack;A=new OX(11,"EBH:Error",Y)}else A=new OX(12,"BSO:Unknown",A);return R.reportError(A)},HJS=function(R){var A,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I;
return _.O(function(b){switch(b.nextAddress){case 1:A=void 0;R.plN++;Y=new _.y2;R.vm instanceof o8&&R.vm.fix.push(Y.promise);if(!R.uqo){b.jumpTo(2);break}P=new _.y2;setTimeout(function(){return void P.resolve()});
return b.yield(P.promise,2);case 2:return E=R.sW.share(),_.g2(b,4,5),R.state=5,z={},c=[],b.yield(XL(R.vm.snapshot({v6:z,lnD:c}),R.uis.i7p,function(){return Promise.reject(new OX(15,"MDA:Timeout"))}),7);
case 7:M=b.yieldResult;if(R.isDisposed())throw new OX(R.g8?20:32,"MDA:Disposed");N=c[0];R.state=6;return b.yield(XL(D_A(R.lN,M),R.uis.mtk,function(){return Promise.reject(new OX(10,"BWB:Timeout"))}),8);
case 8:y=b.yieldResult;if(R.isDisposed())throw new OX(R.g8?20:32,"BWB:Disposed");R.state=7;A=_.CA(E,function(){var h=U_8(R,y,Y,N);h.uTO.promise.then(function(){return void R.lSO()});
return h},"i");
case 5:_.Ht(b);E.dispose();_.D4(b,6);break;case 4:m=_.UT(b);(T=A)==null||T.dispose();if(!R.yc){Q=rlZ(R,m);Y.resolve();var p;if(p=R.vm instanceof o8&&R.plN<2)a:if(m instanceof OX)p=m.code!==32&&m.code!==20&&m.code!==10;else{if(m instanceof _.fA)switch(m.code){case 2:case 13:case 14:case 4:break;default:p=!1;break a}p=!0}if(p)return g=(1+Math.random()*.25)*(R.g8?6E4:1E3),r=setTimeout(function(){return void R.lSO()},g),R.addOnDisposeCallback(function(){return void clearTimeout(r)}),b.return();
R.yc=Q}E.logError(R.g8?13:14);R.uF7.reject(R.yc);return b.return();case 6:R.state=8,R.plN=0,(I=R.g8)==null||I.dispose(),R.g8=A,R.uF7.resolve(),_.XH(b)}})},U_8=function(R,A,Y,P){var E=iTJ(A,2)*1E3;
if(E<=0)throw new OX(31,"TTM:Invalid");if(_.X1(A,4))return new m_E(R.sW,_.X1(A,4),E);if(!iTJ(A,3))return new ylE(R.sW,oG6(_.QT(A,1)),E);if(!P)throw new OX(4,"PMD:Undefined");P=P(oG6(_.QT(A,1)));if(!(P instanceof Function))throw new OX(16,"APF:Failed");R.kga=Math.floor((Date.now()+E)/1E3);R=new JlA(R.sW,P,iTJ(A,3),E);R.addOnDisposeCallback(function(){return void Y.resolve()});
return R};
tA.prototype.kZ=function(R){return $_q(this,Object.assign({},R),!1)};
tA.prototype.jcm=function(R){return $_q(this,Object.assign({},R),!0)};
tA.prototype.zWG=function(R){if(R>150)return!1;try{return this.cache=new iJA(R,this.sW),!0}catch(A){return this.reportError(new OX(22,"GBJ:init",A)),!1}};
tA.prototype.reportError=function(R){this.sW.logError(R.code);this.onError(R);return R};
var Xvq=function(R,A){A=A instanceof OX?A:new OX(5,"TVD:error",A);return R.reportError(A)},$_q=function(R,A,Y){try{if(R.isDisposed())throw new OX(21,"BNT:disposed");
if(!R.g8&&R.yc)throw R.yc;var P,E;return(E=(P=SUA(R,A,Y))!=null?P:IeA(R,A,Y))!=null?E:KEb(R,A,Y)}catch(z){if(!A.uSo)throw Xvq(R,z);return WEG(R,Y,z)}},SUA=function(R,A,Y){var P;
return(P=R.g8)==null?void 0:VKf(P,function(){return jXA(R,A)},Y,function(E){var z;
if(R.g8 instanceof JlA&&((z=A.vY)==null?0:z.cyb))try{var c;(c=R.cache)==null||leS(c,jXA(R,A),E,A.vY.hHs,R.kga-120)}catch(M){R.reportError(new OX(24,"ELX:write",M))}})},IeA=function(R,A,Y){var P;
if((P=A.vY)!=null&&P.tj4)try{var E,z=(E=R.cache)==null?void 0:x_A(E,jXA(R,A),A.vY.hHs);return z?Y?_.CA(R.sW,function(){return _.WF(z,2)},"a"):z:void 0}catch(c){R.reportError(new OX(23,"RXO:read",c))}},KEb=function(R,A,Y){var P={stack:[],
error:void 0,hasError:!1};try{if(!A.dMo)throw new OX(29,"SDF:notready");return VKf(Gkb(P,new vtA(R.sW,0,R.state)),function(){return jXA(R,A)},Y)}catch(E){P.error=E,P.hasError=!0}finally{Zt3(P)}},WEG=function(R,A,Y){var P={stack:[],
error:void 0,hasError:!1};try{var E=Xvq(R,Y);return VKf(Gkb(P,new Tzf(R.sW,E)),function(){return[]},A)}catch(z){P.error=z,P.hasError=!0}finally{Zt3(P)}},jXA=function(R,A){return A.jKK?A.jKK:A.v6?_.CA(R.sW,function(){return A.jKK=$1k(A.v6)},"c"):[]},ntZ=function(R){return WS(function(A){if(!cV(A))return!1;
for(var Y=_.x(Object.entries(R)),P=Y.next();!P.done;P=Y.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;if(!(P in A)){if(E.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!E(A[P]))return!1}return!0})}({vm:function(R){return WS(function(A){return A instanceof R})}(o8)},"");var bJ7=function(){var R=_.sd();this.JSC$9907_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",N_("cookie_enabled"),N_("cookie_3p_enabled"),_.Jl("browser"))};
bJ7.prototype.increment=function(R,A,Y){this.JSC$9907_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",R,A,Y)};
var j_P=function(){var R=_.sd();this.JSC$9931_streamzService=R;R.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",V6("tick"),N_("from_st_cookie"))};
j_P.prototype.increment=function(R,A){this.JSC$9931_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",R,A)};
var feN=function(){var R=_.sd();this.JSC$9937_streamzService=R;R.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Jl("status"))};
feN.prototype.increment=function(R){this.JSC$9937_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",R)};
var pvG=function(){var R=_.sd();this.JSC$9940_streamzService=R;R.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Jl("stage"),N_("is_using_ytd_player"),N_("has_expandable_tiles"))};
pvG.prototype.increment=function(R,A,Y){this.JSC$9940_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",R,A,Y)};
var FES=function(){var R=_.sd();this.JSC$9943_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/response_signature",_.Jl("check_status"))};
FES.prototype.increment=function(R){this.JSC$9943_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/response_signature",R)};
var BzE=function(){var R=_.sd();this.JSC$9946_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Jl("sig"),V6("de"))};
BzE.prototype.increment=function(R,A){this.JSC$9946_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/e_sig_log",R,A)};
var aeb=function(){var R=_.sd();this.JSC$9949_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Jl("sig"),V6("de"))};
aeb.prototype.increment=function(R,A){this.JSC$9949_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/e_sig_en",R,A)};
_.Ct7=function(){var R=_.sd();this.JSC$9952_streamzService=R;R.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Jl("action"))};
_.Ct7.prototype.increment=function(R){this.JSC$9952_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/web/enforcement_intent",R)};var w4=window;var hoN=(new Date).getTime();_.BO.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.BO.createSet("action","cite","data","formaction","href","manifest","poster","src");var otD=function(R){this.servicePromise_=R;R.then((0,_.Wv)(function(){},this),function(){},this)},kZ7=function(R,A,Y){R.servicePromise_.then(function(P){var E=P[A];
if(!E)throw Error("Ka`"+A);return E.apply(P,Y)})},tKq=function(R,A,Y){for(var P=Array(arguments.length-2),E=2;E<arguments.length;E++)P[E-2]=arguments[E];
E=GZ8(R,A).then(function(z){return z.apply(null,P)},function(z){z=Error("La`"+A+"`"+R,{cause:z});
delete ZJG[A];return _.j5(z)});
return new otD(E)},ZJG={},GZ8=function(R,A){var Y=ZJG[A];
if(Y)return Y;Y=(Y=_.Zr(A))?_.Vn(Y):(new _.yR(function(P,E){var z=(new I7(document)).createElement("SCRIPT");z.async=!0;_.ET(z,_.IR(hqb(R)));z.onload=z.onreadystatechange=function(){z.readyState&&z.readyState!="loaded"&&z.readyState!="complete"||P()};
z.onerror=function(c){E(Error("Ma`"+A+"`"+R,{cause:c}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(z)})).then(function(){var P=_.Zr(A);
if(!P)throw Error("Na`"+A+"`"+R);return P});
return ZJG[A]=Y};var wvb={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},eoz=function(){var R=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=XUl(function(){return _.O(function(A){if(A.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?A.return(Promise.resolve()):A.yield(uLZ(R),2);R.rsaForList.length>
0&&document.addEventListener("click",R.requestAccessForHelpPanel);_.XH(A)})});
this.requestAccessForHelpPanel=function(){if(!(R.rsaForPromises.length>0)){for(var A=_.x(R.rsaForList),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;try{R.rsaForPromises.push(document.requestStorageAccessFor(Y))}catch(P){}}Promise.all(R.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){R.reset()})}}};
eoz.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var uLZ=function(R){var A,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:A=_.x(Object.values(wvb)),Y=A.next();case 2:if(Y.done){z.jumpTo(0);break}P=Y.value;_.g2(z,5);return z.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:P}),7);case 7:E=z.yieldResult;E.state!=="granted"&&R.rsaForList.push(P);_.us(z,3);break;case 5:_.UT(z);z.jumpTo(0);break;case 3:Y=A.next(),z.jumpTo(2)}})};(new eoz).initialize();var qU8=function(R){this.JSC$9966_loader_=R};
qU8.prototype.startHelp=function(R){kZ7(this.JSC$9966_loader_,"startHelp",arguments)};
qU8.prototype.JSC$9968_loadChatSupport=function(R){kZ7(this.JSC$9966_loader_,"loadChatSupport",arguments)};
var d_q=function(R,A){A=A||{};R=tKq(LEf,"help.service.Lazy.create",R,{apiKey:A.apiKey||A.apiKey,asxUiUri:A.asxUiUri||A.asxUiUri,environment:A.environment||A.environment,flow:A.flow||A.flow,frdProductData:A.frdProductData||A.frdProductData,frdProductDataSerializedJspb:A.frdProductDataSerializedJspb||A.frdProductDataSerializedJspb,helpCenterPath:A.helpCenterPath||A.helpCenterPath,locale:A.locale||A.locale||"en-US".replace(/-/g,"_"),nonce:A.nonce||A.nonce,productData:A.productData||A.productData,receiverUri:A.receiverUri||
A.receiverUri,renderApiUri:A.renderApiUri||A.renderApiUri,theme:A.theme||A.theme,window:A.window||A.window});return new qU8(R)},LEf=new Bj(UVk,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var RUE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(RUE,_.lb);var A67=_.Hx(RUE);var Y9S=[0,_.qc,Gx,wnq];_.PmH=new function(R,A,Y,P){this.configType=R;this.flagName=Y;this.defaultValue=P;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 zUb=function(){this.retriever=_.is().resolve(E0b)};IO6(Node);IO6(Element);var iXS=IO6(HTMLElement);IO6(SVGElement);var liS,x97,ql,c6S;liS=function(R){return typeof R.className=="string"?R.className:R.getAttribute&&R.getAttribute("class")||""};
x97=function(R){return R.classList?R.classList:liS(R).match(/\S+/g)||[]};
_.u6=function(R,A){typeof R.className=="string"?R.className=A:R.setAttribute&&R.setAttribute("class",A)};
_.eS=function(R,A){return R.classList?R.classList.contains(A):_.B3(x97(R),A)};
_.Ew=function(R,A){if(R.classList)R.classList.add(A);else if(!_.eS(R,A)){var Y=liS(R);_.u6(R,Y+(Y.length>0?" "+A:A))}};
ql=function(R,A){if(R.classList)Array.prototype.forEach.call(A,function(E){_.Ew(R,E)});
else{var Y={};Array.prototype.forEach.call(x97(R),function(E){Y[E]=!0});
Array.prototype.forEach.call(A,function(E){Y[E]=!0});
A="";for(var P in Y)A+=A.length>0?" "+P:P;_.u6(R,A)}};
_.YL=function(R,A){R.classList?R.classList.remove(A):_.eS(R,A)&&_.u6(R,Array.prototype.filter.call(x97(R),function(Y){return Y!=A}).join(" "))};
c6S=function(R,A){R.classList?Array.prototype.forEach.call(A,function(Y){_.YL(R,Y)}):_.u6(R,Array.prototype.filter.call(x97(R),function(Y){return!_.B3(A,Y)}).join(" "))};var OXZ=function(R){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=R.document},NEf=function(R,A){Mqq(R);
var Y=document.createElement("div"),P;(P=A.parentNode)==null||P.insertBefore(Y,A);Y.tabIndex=0;Y.id="fc-focus-trap-pre-div";Y=document.createElement("div");var E;(E=A.parentNode)==null||E.insertBefore(Y,A.nextSibling);Y.tabIndex=0;Y.id="fc-focus-trap-post-div";var z=sNS(R,A),c=sNS(R,A,!0);z&&c&&(R.focusChangeHandler=function(){var M=R.document.activeElement;if(M)if(_.tl(A,M))R.previouslyFocusedElement=M;else if(M===R.document.activeElement)switch(R.previouslyFocusedElement){case z:c.focus();R.previouslyFocusedElement=
c;break;default:z.focus(),R.previouslyFocusedElement=z}},R.document.addEventListener("focus",R.focusChangeHandler,!0),R.document.addEventListener("focusin",R.focusChangeHandler))},Mqq=function(R){R.focusChangeHandler&&(document.removeEventListener("focus",R.focusChangeHandler,!0),document.removeEventListener("focusin",R.focusChangeHandler),R.focusChangeHandler=null);
var A;(A=document.getElementById("fc-focus-trap-pre-div"))==null||A.remove();var Y;(Y=document.getElementById("fc-focus-trap-post-div"))==null||Y.remove()},Vqq=function(R,A,Y,P,E){Y=Y===void 0?!0:Y;
var z;E=(z=E===void 0?null:E)!=null?z:sNS(R,A,P===void 0?!1:P);E!==null&&(E.focus(),Y&&NEf(R,A))};
OXZ.prototype.disableButton=function(R,A){A=A===void 0?null:A;R.disabled=!0;A&&_.Ew(R,A)};
var sNS=function(R,A,Y){Y=Y===void 0?!1:Y;if(ZC6(A)&&!Y)return A;var P=Y?[].slice.call(A.children,0).reverse():A.children;P=_.x(P);for(var E=P.next();!E.done;E=P.next())if(E=E.value,iXS(E)&&(E=sNS(R,E,Y)))return E;return ZC6(A)&&Y?A:null};var J6f=function(R){this.originalBodyOverflow="";this.JSC$9992_domHelper=Sp(R)};
J6f.prototype.enableScrolling=function(){this.JSC$9992_domHelper.JSC$9319_document_.body.style.overflow=this.originalBodyOverflow};_.Pb(_.jK,_.KJ);_.l=_.jK.prototype;_.l.JSC$9995_id_=0;_.l.disposeInternal=function(){_.jK.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$9993_listener_;delete this.handler_};
_.l.start=function(R){this.stop();this.JSC$9995_id_=b6(this.callback_,R!==void 0?R:this.JSC$9993_interval_)};
_.l.stop=function(){this.isActive()&&_.P3.clearTimeout(this.JSC$9995_id_);this.JSC$9995_id_=0};
_.l.fire=function(){this.stop();this.JSC$9995_doAction_()};
_.l.isActive=function(){return this.JSC$9995_id_!=0};
_.l.JSC$9995_doAction_=function(){this.JSC$9995_id_=0;this.JSC$9993_listener_&&this.JSC$9993_listener_.call(this.handler_)};_.ce=function(R){_.KJ.call(this);this.handler_=R;this.JSC$9996_keys_={}};
_.Pb(_.ce,_.KJ);var y6S=[];_.ce.prototype.listen=function(R,A,Y,P){Array.isArray(A)||(A&&(y6S[0]=A.toString()),A=y6S);for(var E=0;E<A.length;E++){var z=_.KC(R,A[E],Y||this.handleEvent,P||!1,this.handler_||this);if(!z)break;this.JSC$9996_keys_[z.key]=z}return this};
_.ce.prototype.listenOnce=function(R,A,Y,P){return m98(this,R,A,Y,P)};
var m98=function(R,A,Y,P,E,z){if(Array.isArray(Y))for(var c=0;c<Y.length;c++)m98(R,A,Y[c],P,E,z);else{A=$9(A,Y,P||R.handleEvent,E,z||R.handler_||R);if(!A)return R;R.JSC$9996_keys_[A.key]=A}return R};
_.ce.prototype.unlisten=function(R,A,Y,P,E){if(Array.isArray(A))for(var z=0;z<A.length;z++)this.unlisten(R,A[z],Y,P,E);else if(R=CeH(R,A,Y||this.handleEvent,_.ZI(P)?!!P.capture:!!P,E||this.handler_||this))XS(R),delete this.JSC$9996_keys_[R.key];return this};
_.ce.prototype.removeAll=function(){_.BO.forEach(this.JSC$9996_keys_,function(R,A){this.JSC$9996_keys_.hasOwnProperty(A)&&XS(R)},this);
this.JSC$9996_keys_={}};
_.ce.prototype.disposeInternal=function(){_.ce.superClass_.disposeInternal.call(this);this.removeAll()};
_.ce.prototype.handleEvent=function(){throw Error("Oa");};var LA=function(){_.KJ.call(this);this.services_={}};
_.Pb(LA,_.KJ);LA.prototype.connect=function(R){R&&R()};
LA.prototype.isConnected=function(){return!0};
LA.prototype.registerService=function(R,A,Y){this.services_[R]={callback:A,objectPayload:!!Y}};
LA.prototype.getService=function(R,A){var Y=this.services_[R];return Y?Y:this.defaultService_?{callback:_.nj(this.defaultService_,R),objectPayload:_.ZI(A)}:null};
var TEZ=function(R,A){if(A&&typeof R==="string")try{return JSON.parse(R)}catch(Y){return null}else if(!A&&typeof R!=="string")return(0,_.pA)(R);return R};
LA.prototype.disposeInternal=function(){LA.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 d4=function(R,A){this.sequence_=[];this.onCancelFunction_=R;this.defaultScope_=A||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};
d4.prototype.cancel=function(R){if(this.fired_)this.result_ instanceof d4&&this.result_.cancel();else{if(this.parent_){var A=this.parent_;delete this.parent_;R?A.cancel(R):(A.branches_--,A.branches_<=0&&A.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new RF(this))}};
d4.prototype.continue_=function(R,A){this.blocked_=!1;QNA(this,R,A)};
var QNA=function(R,A,Y){R.fired_=!0;R.result_=Y;R.hadError_=!A;v0z(R)},n08=function(R){if(R.fired_){if(!R.silentlyCanceled_)throw new g0b(R);
R.silentlyCanceled_=!1}};
d4.prototype.callback=function(R){n08(this);QNA(this,!0,R)};
d4.prototype.errback=function(R){n08(this);QNA(this,!1,R)};
var HXZ=function(R,A,Y){An(R,A,null,Y)};
d4.prototype.finally=function(R){var A=this;return r6A(new Promise(function(Y,P){An(A,function(E){R();Y(E)},function(E){R();
P(E)})}))};
var An=function(R,A,Y,P){var E=R.fired_;E||(A===Y?A=Y=I8(A):(A=I8(A),Y=I8(Y)));R.sequence_.push([A,Y,P]);E&&v0z(R)};
d4.prototype.then=function(R,A,Y){var P,E,z=new _.yR(function(c,M){E=c;P=M});
An(this,E,function(c){c instanceof RF?z.cancel():P(c);return D9A},this);
return z.then(R,A,Y)};
uHq(d4);var U9S=function(R,A){A instanceof d4?HXZ(R,(0,_.Wv)(A.branch,A)):HXZ(R,function(){return A})};
d4.prototype.branch=function(R){var A=new d4;An(this,A.callback,A.errback,A);R&&(A.parent_=this,this.branches_++);return A};
d4.prototype.isError=function(R){return R instanceof Error};
var $97=function(R){return eX(R.sequence_,function(A){return typeof A[1]==="function"})},D9A={},v0z=function(R){if(R.unhandledErrorId_&&R.fired_&&$97(R)){var A=R.unhandledErrorId_,Y=XVz[A];
Y&&(_.P3.clearTimeout(Y.JSC$10013_id_),delete XVz[A]);R.unhandledErrorId_=0}R.parent_&&(R.parent_.branches_--,delete R.parent_);A=R.result_;for(var P=Y=!1;R.sequence_.length&&!R.blocked_;){var E=R.sequence_.shift(),z=E[0],c=E[1];E=E[2];if(z=R.hadError_?c:z)try{var M=z.call(E||R.defaultScope_,A);M===D9A&&(M=void 0);M!==void 0&&(R.hadError_=R.hadError_&&(M==A||R.isError(M)),R.result_=A=M);if(eKq(A)||typeof _.P3.Promise==="function"&&A instanceof _.P3.Promise)P=!0,R.blocked_=!0}catch(N){A=N,R.hadError_=
!0,$97(R)||(Y=!0)}}R.result_=A;P&&(M=(0,_.Wv)(R.continue_,R,!0),P=(0,_.Wv)(R.continue_,R,!1),A instanceof d4?(An(A,M,P),A.blocking_=!0):A.then(M,P));Y&&(A=new S9N(A),XVz[A.JSC$10013_id_]=A,R.unhandledErrorId_=A.JSC$10013_id_)},r6A=function(R){var A=new d4;
R.then(function(Y){A.callback(Y)},function(Y){A.errback(Y)});
return A},g0b=function(){_.Rk.call(this)};
_.Pb(g0b,_.Rk);g0b.prototype.message="Deferred has already fired";g0b.prototype.name="AlreadyCalledError";var RF=function(){_.Rk.call(this)};
_.Pb(RF,_.Rk);RF.prototype.message="Deferred was canceled";RF.prototype.name="CanceledError";var S9N=function(R){this.JSC$10013_id_=_.P3.setTimeout((0,_.Wv)(this.throwError,this),0);this.JSC$10013_error_=R};
S9N.prototype.throwError=function(){delete XVz[this.JSC$10013_id_];throw this.JSC$10013_error_;};
var XVz={};var IiN={1:"NativeMessagingTransport"},Kfq=["pu","lru","pru","lpu","ppu"],jN7=function(){for(var R=10,A=WfS,Y=A.length,P="";R-- >0;)P+=A.charAt(Math.floor(Math.random()*Y));return P},WfS="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var YP=function(R){_.KJ.call(this);this.JSC$10016_domHelper_=R||Sp()};
_.Pb(YP,_.KJ);YP.prototype.transportType=0;YP.prototype.getWindow=function(){return this.JSC$10016_domHelper_.getWindow()};
YP.prototype.getName=function(){return IiN[String(this.transportType)]||""};var Pm=function(R,A,Y,P,E){YP.call(this,Y);this.JSC$10019_channel_=R;this.protocolVersion_=E||2;this.peerHostname_=A||"*";this.JSC$10019_eventHandler_=new _.ce(this);this.maybeAttemptToConnectTimer_=new _.xh(100,this.getWindow());this.oneSidedHandshake_=!!P;this.setupAckReceived_=new d4;this.setupAckSent_=new d4;this.JSC$10019_connected_=new d4;this.endpointId_=jN7();this.peerEndpointId_=null;this.oneSidedHandshake_?bXD(this.JSC$10019_channel_)==1?U9S(this.JSC$10019_connected_,this.setupAckReceived_):
U9S(this.JSC$10019_connected_,this.setupAckSent_):(U9S(this.JSC$10019_connected_,this.setupAckReceived_),this.protocolVersion_==2&&U9S(this.JSC$10019_connected_,this.setupAckSent_));HXZ(this.JSC$10019_connected_,this.notifyConnected_,this);this.JSC$10019_connected_.callback(!0);this.JSC$10019_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Pb(Pm,YP);Pm.prototype.peerProtocolVersion_=null;Pm.prototype.initialized_=!1;Pm.prototype.transportType=1;var fi8={};Pm.prototype.sendTimerId_=0;
var BEN=function(R){var A=R.event_.data;if(typeof A!=="string")return!1;var Y=A.indexOf("|"),P=A.indexOf(":");if(Y==-1||P==-1)return!1;var E=A.substring(0,Y);Y=A.substring(Y+1,P);A=A.substring(P+1);if(P=E2[E])return P.xpcDeliver(Y,A,R.event_.origin),!0;P=pVq(A)[0];for(var z in E2){var c=E2[z];if(bXD(c)==1&&!c.isConnected()&&Y=="tp"&&(P=="SETUP"||P=="SETUP_NTPV2")&&FfA(c,R.event_.origin))return delete E2[c.name],c.name=E,E2[E]=c,c.xpcDeliver(Y,A),!0}return!1},aiq=function(R){R.protocolVersion_!=2||
R.peerProtocolVersion_!=null&&R.peerProtocolVersion_!=2||R.send("tp","SETUP_NTPV2,"+R.endpointId_);
R.peerProtocolVersion_!=null&&R.peerProtocolVersion_!=1||R.send("tp","SETUP")},CmG=function(R,A){if(R.protocolVersion_!=2||R.peerProtocolVersion_!=null&&R.peerProtocolVersion_!=2||A!=2){if(R.peerProtocolVersion_!=null&&R.peerProtocolVersion_!=1||A!=1)return;
R.send("tp","SETUP_ACK")}else R.send("tp","SETUP_ACK_NTPV2");R.setupAckSent_.fired_||R.setupAckSent_.callback(!0)},hUG=function(R,A){A>R.peerProtocolVersion_&&(R.peerProtocolVersion_=A);
R.peerProtocolVersion_==1&&(R.setupAckSent_.fired_||R.oneSidedHandshake_||R.setupAckSent_.callback(!0),R.peerEndpointId_=null)};
_.l=Pm.prototype;_.l.connect=function(){var R=this.getWindow(),A=_.tk(R),Y=fi8[A];typeof Y!=="number"&&(Y=0);Y==0&&_.KC(R.postMessage?R:R.document,"message",BEN,!1,Pm);fi8[A]=Y+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.l.maybeAttemptToConnect_=function(){var R=bXD(this.JSC$10019_channel_)==0;this.oneSidedHandshake_&&R||this.JSC$10019_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),aiq(this))};
_.l.send=function(R,A){var Y=this.JSC$10019_channel_.peerWindowObject_;Y&&(this.send=function(P,E){var z=this,c=this.JSC$10019_channel_.name;this.sendTimerId_=b6(function(){z.sendTimerId_=0;try{var M=Y.postMessage?Y:Y.document;M.postMessage&&M.postMessage(c+"|"+P+":"+E,z.peerHostname_)}catch(N){}},0)},this.send(R,A))};
_.l.notifyConnected_=function(){var R=this.JSC$10019_channel_,A=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;R.isConnected()||R.connectionDelay_&&R.connectionDelay_.isActive()||(R.state_=2,_.lt(R.connectionDelay_),A!==void 0?(R.connectionDelay_=new _.jK(R.connectCb_,A),R.connectionDelay_.start()):(R.connectionDelay_=null,R.connectCb_()))};
_.l.disposeInternal=function(){if(this.initialized_){var R=this.getWindow(),A=_.tk(R),Y=fi8[A];fi8[A]=Y-1;Y==1&&_.XQ(R.postMessage?R:R.document,"message",BEN,!1,Pm)}this.sendTimerId_&&(_.P3.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.lt(this.JSC$10019_eventHandler_);delete this.JSC$10019_eventHandler_;_.lt(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10019_connected_.cancel();delete this.JSC$10019_connected_;delete this.send;Pm.superClass_.disposeInternal.call(this)};
var pVq=function(R){R=R.split(",");R[1]=R[1]||null;return R};var k8G;_.zp=function(R){if(R.getValues&&typeof R.getValues=="function")return R.getValues();if(typeof Map!=="undefined"&&R instanceof Map||typeof Set!=="undefined"&&R instanceof Set)return Array.from(R.values());if(typeof R==="string")return R.split("");if(_.ok(R)){for(var A=[],Y=R.length,P=0;P<Y;P++)A.push(R[P]);return A}return _.BO.getValues(R)};
_.o0E=function(R){if(R.getKeys&&typeof R.getKeys=="function")return R.getKeys();if(!R.getValues||typeof R.getValues!="function"){if(typeof Map!=="undefined"&&R instanceof Map)return Array.from(R.keys());if(!(typeof Set!=="undefined"&&R instanceof Set)){if(_.ok(R)||typeof R==="string"){var A=[];R=R.length;for(var Y=0;Y<R;Y++)A.push(Y);return A}return _.BO.getKeys(R)}}};
k8G=function(R,A,Y){if(R.forEach&&typeof R.forEach=="function")R.forEach(A,Y);else if(_.ok(R)||typeof R==="string")Array.prototype.forEach.call(R,A,Y);else for(var P=_.o0E(R),E=_.zp(R),z=E.length,c=0;c<z;c++)A.call(Y,E[c],P&&P[c],R)};var Fuk,s2,VW,q9z,G8b,tqD,ZXb,eUH,wVS;
_.dq=function(R,A){this.JSC$10024_domain_=this.userInfo_=this.scheme_="";this.JSC$10024_port_=null;this.fragment_=this.JSC$10024_path_="";this.JSC$10024_ignoreCase_=!1;var Y;R instanceof _.dq?(this.JSC$10024_ignoreCase_=A!==void 0?A:R.JSC$10024_ignoreCase_,_.id(this,R.scheme_),this.userInfo_=R.userInfo_,_.ld(this,R.JSC$10024_domain_),_.xP(this,R.JSC$10024_port_),_.cm(this,R.getPath()),_.O2(this,R.JSC$10024_queryData_.clone()),_.Md(this,R.fragment_)):R&&(Y=_.RW(String(R)))?(this.JSC$10024_ignoreCase_=
!!A,_.id(this,Y[1]||"",!0),this.userInfo_=s2(Y[2]||""),_.ld(this,Y[3]||"",!0),_.xP(this,Y[4]),_.cm(this,Y[5]||"",!0),_.O2(this,Y[6]||"",!0),_.Md(this,Y[7]||"",!0)):(this.JSC$10024_ignoreCase_=!!A,this.JSC$10024_queryData_=new _.Nd(null,this.JSC$10024_ignoreCase_))};
_.dq.prototype.toString=function(){var R=[],A=this.scheme_;A&&R.push(VW(A,G8b,!0),":");var Y=this.JSC$10024_domain_;if(Y||A=="file")R.push("//"),(A=this.userInfo_)&&R.push(VW(A,G8b,!0),"@"),R.push(_.wu(Y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Y=this.JSC$10024_port_,Y!=null&&R.push(":",String(Y));if(Y=this.getPath())this.JSC$10024_domain_&&Y.charAt(0)!="/"&&R.push("/"),R.push(VW(Y,Y.charAt(0)=="/"?ZXb:tqD,!0));(Y=this.JSC$10024_queryData_.toString())&&R.push("?",Y);(Y=this.fragment_)&&R.push("#",
VW(Y,wVS));return R.join("")};
_.dq.prototype.resolve=function(R){var A=this.clone(),Y=!!R.scheme_;Y?_.id(A,R.scheme_):Y=!!R.userInfo_;Y?A.userInfo_=R.userInfo_:Y=!!R.JSC$10024_domain_;Y?_.ld(A,R.JSC$10024_domain_):Y=R.JSC$10024_port_!=null;var P=R.getPath();if(Y)_.xP(A,R.JSC$10024_port_);else if(Y=!!R.JSC$10024_path_){if(P.charAt(0)!="/")if(this.JSC$10024_domain_&&!this.JSC$10024_path_)P="/"+P;else{var E=A.getPath().lastIndexOf("/");E!=-1&&(P=A.getPath().slice(0,E+1)+P)}E=P;if(E==".."||E==".")P="";else if(_.O6(E,"./")||_.O6(E,
"/.")){P=_.iJ(E,"/");E=E.split("/");for(var z=[],c=0;c<E.length;){var M=E[c++];M=="."?P&&c==E.length&&z.push(""):M==".."?((z.length>1||z.length==1&&z[0]!="")&&z.pop(),P&&c==E.length&&z.push("")):(z.push(M),P=!0)}P=z.join("/")}else P=E}Y?_.cm(A,P):Y=R.JSC$10024_queryData_.toString()!=="";Y?_.O2(A,R.JSC$10024_queryData_.clone()):Y=!!R.fragment_;Y&&_.Md(A,R.fragment_);return A};
_.dq.prototype.clone=function(){return new _.dq(this)};
_.id=function(R,A,Y){R.scheme_=Y?s2(A,!0):A;R.scheme_&&(R.scheme_=R.scheme_.replace(/:$/,""));return R};
_.ld=function(R,A,Y){R.JSC$10024_domain_=Y?s2(A,!0):A;return R};
_.xP=function(R,A){if(A){A=Number(A);if(isNaN(A)||A<0)throw Error("Pa`"+A);R.JSC$10024_port_=A}else R.JSC$10024_port_=null;return R};
_.dq.prototype.getPath=function(){return this.JSC$10024_path_};
_.cm=function(R,A,Y){R.JSC$10024_path_=Y?s2(A,!0):A;return R};
_.O2=function(R,A,Y){A instanceof _.Nd?(R.JSC$10024_queryData_=A,uFZ(R.JSC$10024_queryData_,R.JSC$10024_ignoreCase_)):(Y||(A=VW(A,eUH)),R.JSC$10024_queryData_=new _.Nd(A,R.JSC$10024_ignoreCase_));return R};
_.LJ=function(R,A,Y){R.JSC$10024_queryData_.set(A,Y);return R};
_.q_=function(R,A){return R.JSC$10024_queryData_.get(A)};
_.Md=function(R,A,Y){R.fragment_=Y?s2(A):A;return R};
_.Jn=function(R){_.LJ(R,"zx",ut());return R};
_.eK=function(R,A){return R instanceof _.dq?R.clone():new _.dq(R,A)};
Fuk=function(R,A){R instanceof _.dq||(R=_.eK(R));A instanceof _.dq||(A=_.eK(A));return R.resolve(A)};
s2=function(R,A){return R?A?decodeURI(R.replace(/%25/g,"%2525")):decodeURIComponent(R):""};
VW=function(R,A,Y){return typeof R==="string"?(R=encodeURI(R).replace(A,q9z),Y&&(R=R.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),R):null};
q9z=function(R){R=R.charCodeAt(0);return"%"+(R>>4&15).toString(16)+(R&15).toString(16)};
G8b=/[#\/\?@]/g;tqD=/[#\?:]/g;ZXb=/[#\?]/g;eUH=/[#\?@]/g;wVS=/#/g;_.Nd=function(R,A){this.count_=this.keyMap_=null;this.encodedQuery_=R||null;this.JSC$10025_ignoreCase_=!!A};
_.yW=function(R){R.keyMap_||(R.keyMap_=new Map,R.count_=0,R.encodedQuery_&&BoD(R.encodedQuery_,function(A,Y){R.add(EK(A),Y)}))};
_.l=_.Nd.prototype;_.l.getCount=function(){_.yW(this);return this.count_};
_.l.add=function(R,A){_.yW(this);this.encodedQuery_=null;R=ms(this,R);var Y=this.keyMap_.get(R);Y||this.keyMap_.set(R,Y=[]);Y.push(A);this.count_+=1;return this};
_.l.remove=function(R){_.yW(this);R=ms(this,R);return this.keyMap_.has(R)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(R).length,this.keyMap_.delete(R)):!1};
_.l.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.l.isEmpty=function(){_.yW(this);return this.count_==0};
_.l.containsKey=function(R){_.yW(this);R=ms(this,R);return this.keyMap_.has(R)};
_.l.containsValue=function(R){var A=this.getValues();return _.B3(A,R)};
_.l.forEach=function(R,A){_.yW(this);this.keyMap_.forEach(function(Y,P){Y.forEach(function(E){R.call(A,E,P,this)},this)},this)};
_.l.getKeys=function(){_.yW(this);for(var R=Array.from(this.keyMap_.values()),A=Array.from(this.keyMap_.keys()),Y=[],P=0;P<A.length;P++)for(var E=R[P],z=0;z<E.length;z++)Y.push(A[P]);return Y};
_.l.getValues=function(R){_.yW(this);var A=[];if(typeof R==="string")this.containsKey(R)&&(A=A.concat(this.keyMap_.get(ms(this,R))));else{R=Array.from(this.keyMap_.values());for(var Y=0;Y<R.length;Y++)A=A.concat(R[Y])}return A};
_.l.set=function(R,A){_.yW(this);this.encodedQuery_=null;R=ms(this,R);this.containsKey(R)&&(this.count_-=this.keyMap_.get(R).length);this.keyMap_.set(R,[A]);this.count_+=1;return this};
_.l.get=function(R,A){if(!R)return A;R=this.getValues(R);return R.length>0?String(R[0]):A};
_.Lf8=function(R,A,Y){R.remove(A);Y.length>0&&(R.encodedQuery_=null,R.keyMap_.set(ms(R,A),_.Cu(Y)),R.count_+=Y.length)};
_.Nd.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var R=[],A=Array.from(this.keyMap_.keys()),Y=0;Y<A.length;Y++){var P=A[Y],E=_.wu(P);P=this.getValues(P);for(var z=0;z<P.length;z++){var c=E;P[z]!==""&&(c+="="+_.wu(P[z]));R.push(c)}}return this.encodedQuery_=R.join("&")};
_.Nd.prototype.clone=function(){var R=new _.Nd;R.encodedQuery_=this.encodedQuery_;this.keyMap_&&(R.keyMap_=new Map(this.keyMap_),R.count_=this.count_);return R};
var ms=function(R,A){A=String(A);R.JSC$10025_ignoreCase_&&(A=A.toLowerCase());return A},uFZ=function(R,A){A&&!R.JSC$10025_ignoreCase_&&(_.yW(R),R.encodedQuery_=null,R.keyMap_.forEach(function(Y,P){var E=P.toLowerCase();
P!=E&&(this.remove(P),_.Lf8(this,E,Y))},R));
R.JSC$10025_ignoreCase_=A};
_.Nd.prototype.extend=function(R){for(var A=0;A<arguments.length;A++)k8G(arguments[A],function(Y,P){this.add(P,Y)},this)};var Tp=function(R,A){LA.call(this);for(var Y=0,P;P=Kfq[Y];Y++)if(P in R&&!/^https?:\/\//.test(R[P]))throw Error("Ra`"+R[P]+"`"+P);this.cfg_=R;this.name=this.cfg_.cn||jN7();this.JSC$10020_domHelper_=A||Sp();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.ce(this);R.lpu=R.lpu||pFE(this.JSC$10020_domHelper_.getWindow().location.href)+"/robots.txt";R.ppu=R.ppu||pFE(R.pu||"")+"/robots.txt";E2[this.name]=this;CeH(window,"unload",d9D)||$9(window,"unload",d9D)};
_.Pb(Tp,LA);var RAS=RegExp("^%*tp$"),Av7=RegExp("^%+tp$");_.l=Tp.prototype;_.l.connectionDelay_=null;_.l.peerWindowDeferred_=null;_.l.transport_=null;_.l.state_=1;_.l.isConnected=function(){return this.state_==2};
_.l.peerWindowObject_=null;_.l.iframeElement_=null;_.l.connect=function(R){this.connectCb_=R||_.r$;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?HXZ(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.l.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10020_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var R=this.iframeElement_.contentWindow;R||(R=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=R}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10020_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new Pm(this,this.cfg_.ph,this.JSC$10020_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.l.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.lt(this.transport_);this.connectCb_=this.transport_=null;_.lt(this.connectionDelay_);this.connectionDelay_=null};
_.l.send=function(R,A){if(this.isConnected()){try{var Y=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(E){Y=!1}if(Y){_.ZI(A)&&(A=(0,_.pA)(A));Y=this.transport_;var P=Y.send;RAS.test(R)&&(R="%"+R);R=R.replace(/[%:|]/g,encodeURIComponent);P.call(Y,R,A)}else this.close()}};
_.l.xpcDeliver=function(R,A,Y){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Wv)(this.xpcDeliver,this,R,A,Y));else if(FfA(this,Y)&&!this.isDisposed()&&this.state_!=3)if(R&&R!="tp")this.isConnected()&&(R=R.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),R=Av7.test(R)?R.substring(1):R,R=this.getService(R,A))&&(A=TEZ(A,R.objectPayload),A!=null&&R.callback(A));else switch(R=this.transport_,Y=pVq(A),A=Y[1],Y[0]){case "SETUP_ACK":hUG(R,1);R.setupAckReceived_.fired_||R.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":R.protocolVersion_==2&&(hUG(R,2),R.setupAckReceived_.fired_||R.setupAckReceived_.callback(!0));break;case "SETUP":hUG(R,1);CmG(R,1);break;case "SETUP_NTPV2":R.protocolVersion_==2&&(Y=R.peerProtocolVersion_,hUG(R,2),CmG(R,2),Y!=1&&R.peerEndpointId_==null||R.peerEndpointId_==A||aiq(R),R.peerEndpointId_=A)}};
var bXD=function(R){var A=R.cfg_.role;return typeof A==="number"?A:window.parent==R.peerWindowObject_?1:0},FfA=function(R,A){var Y=R.cfg_.ph;
return _.c3(A==null?"":String(A))||_.c3(Y==null?"":String(Y))||A==R.cfg_.ph};
Tp.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete E2[this.name];_.lt(this.peerLoadHandler_);delete this.peerLoadHandler_;Tp.superClass_.disposeInternal.call(this)};
var d9D=function(){for(var R in E2)_.lt(E2[R])},E2={};var PIA=function(R,A){this.JSC$10034_win=R;this.allowAdsHttpEndpoint=A;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10034_domHelper=Sp(R);this.scrollManager=new J6f(R);this.accessibilityManager=new OXZ(R);YeE(this)},YeE=function(R){var A=function(){R.allowAdsPopup&&R.allowAdsPopup.style.setProperty("display","none","important");
R.wallElement.style.setProperty("display","","important");Mqq(R.accessibilityManager);Vqq(R.accessibilityManager,R.wallElement.querySelector(".fc-dialog-container"),!1,!1,R.wallElement.querySelector(".fc-button-whitelist"));R.scrollManager.enableScrolling()};
R.allowAdsPopup=R.JSC$10034_domHelper.JSC$9321_createDom("DIV",{"class":"fc-whitelist-root"});R.allowAdsPopup.style.setProperty("display","none","important");R.JSC$10034_domHelper.appendChild(R.JSC$10034_domHelper.JSC$9319_document_.body,R.allowAdsPopup);var Y=R.JSC$10034_domHelper.JSC$9321_createDom("DIV",{"class":"fc-dialog-overlay"});R.JSC$10034_domHelper.appendChild(R.allowAdsPopup,Y);var P=R.JSC$10034_domHelper.JSC$9321_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:A});R.JSC$10034_domHelper.appendChild(R.allowAdsPopup,
P);Y=R.JSC$10034_domHelper.JSC$9321_createDom("IFRAME");Y.className="fc-whitelist-dialog";Y.frameBorder="0";Y.id="fc-whitelist-iframe";Y.tabIndex="0";_.Lq(Y,R.allowAdsHttpEndpoint);R.JSC$10034_domHelper.appendChild(P,Y);P={};P.pu=_.Kq(R.allowAdsHttpEndpoint).toString();P.tp=1;P.cn="fc-whitelist-channel";P.ifrid=Y.id;P.osh=!0;R.allowAdsCrossPageChannel=new Tp(P);R.allowAdsCrossPageChannel.registerService("close",A);R.allowAdsCrossPageChannel.registerService("refresh",function(){R.JSC$10034_win.location.reload()});
R.allowAdsCrossPageChannel.registerService("resize",function(E){if(E){var z=R.allowAdsPopup.querySelector(".fc-whitelist-dialog");E.width&&z.style.setProperty("width",E.width,"important");E.height&&z.style.setProperty("height",E.height,"important")}},!0);
R.allowAdsCrossPageChannel.connect()};
PIA.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10034_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var QW=window,gb=document,EWS=QW.location,zAZ=function(){},iQZ=/\[native code\]/,n$=function(R,A,Y){return R[A]=R[A]||Y},lrZ=function(R){R=R.sort();
for(var A=[],Y=void 0,P=0;P<R.length;P++){var E=R[P];E!=Y&&A.push(E);Y=E}return A},Hm=function(){var R;
if((R=Object.create)&&iQZ.test(R))R=R(null);else{R={};for(var A in R)R[A]=void 0}return R},rb=n$(QW,"gapi",{});var Dw={};Dw=n$(QW,"___jsl",Hm());n$(Dw,"I",0);n$(Dw,"hel",10);var xIS=function(){var R=EWS.href;if(Dw.dpo)var A=Dw.h;else{A=Dw.h;var Y=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),P=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(R=R&&(Y.exec(R)||P.exec(R)))try{A=decodeURIComponent(R[2])}catch(E){}}return A},cvb=function(R){var A=n$(Dw,"PQ",[]);
Dw.PQ=[];var Y=A.length;if(Y===0)R();else for(var P=0,E=function(){++P===Y&&R()},z=0;z<Y;z++)A[z](E)},OQA=function(R){return n$(n$(Dw,"H",Hm()),R,Hm())};var $P=function(R){this.JSC$10036_obj_=R};
$P.prototype.value=function(){return this.JSC$10036_obj_};
$P.prototype.getWidth=function(){return this.JSC$10036_obj_.width};
$P.prototype.getHeight=function(){return this.JSC$10036_obj_.height};
$P.prototype.getStyle=function(){return this.JSC$10036_obj_.style};var MOG=function(R){this.JSC$10039_obj_=R||{}};
_.l=MOG.prototype;_.l.value=function(){return this.JSC$10039_obj_};
_.l.setUrl=function(R){this.JSC$10039_obj_.url=R;return this};
_.l.getUrl=function(){return this.JSC$10039_obj_.url};
_.l.getStyle=function(){return this.JSC$10039_obj_.style};
_.l.getId=function(){return this.JSC$10039_obj_.id};
_.l.getContext=function(){return this.JSC$10039_obj_.context};
var s1f=function(R){R.JSC$10039_obj_.attributes=R.JSC$10039_obj_.attributes||{};return new $P(R.JSC$10039_obj_.attributes)};var NuA=function(){MOG.apply(this,arguments)};
_.H(NuA,MOG);var VOf=n$(Dw,"perf",Hm());n$(VOf,"g",Hm());var JvS=n$(VOf,"i",Hm());n$(VOf,"r",[]);Hm();Hm();var mIN=function(R,A,Y){A&&A.length>0&&(A=yvS(A),Y&&Y.length>0&&(A+="___"+yvS(Y)),A.length>28&&(A=A.substr(0,28)+(A.length-28)),Y=A,A=n$(JvS,"_p",Hm()),n$(A,Y,Hm())[R]=(new Date).getTime(),A=VOf.r,typeof A==="function"?A(R,"_p",Y):A.push([R,"_p",Y]))},yvS=function(R){return R.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var Tuz=Hm(),Q1A=[],XO=function(R){throw Error("Ua`"+R);};
Q1A.push(["jsl",function(R){for(var A in R)if(Object.prototype.hasOwnProperty.call(R,A)){var Y=R[A];typeof Y=="object"?Dw[A]=n$(Dw,A,[]).concat(Y):n$(Dw,A,Y)}if(A=R.u)R=n$(Dw,"us",[]),R.push(A),(A=/^https:(.*)$/.exec(A))&&R.push("http:"+A[1])}]);
var vWz=/^(\/[a-zA-Z0-9_\-]+)+$/,gWD=[/\/amp\//,/\/amp$/,/^\/amp$/],nWZ=/^[a-zA-Z0-9\-_\.,!]+$/,HQA=/^gapi\.loaded_[0-9]+$/,rvb=/^[a-zA-Z0-9,._-]+$/,XDG=function(R,A,Y,P,E){var z=R.split(";"),c=z.shift(),M=Tuz[c],N=null;M?N=M(z,A,Y,P):XO("no hint processor for: "+c);N||XO("failed to generate load url");A=N;Y=A.match(DIz);(P=A.match(UIS))&&P.length===1&&$Iq.test(A)&&Y&&Y.length===1||XO("failed sanity: "+R);try{R="?";if(E&&E.length>0){Ubl(E);var y=E.join(",");N=N+"?le="+y;R="&"}if(Dw.rol){var m=Dw.ol;
m&&m.length&&(N=""+N+R+"ol="+m.length)}}catch(T){}return N},KJ8=function(R,A,Y,P){R=Sez(R);
HQA.test(Y)||XO("invalid_callback");A=IrN(A);P=P&&P.length?IrN(P):null;var E=function(z){return encodeURIComponent(z).replace(/%2C/g,",")};
return[encodeURIComponent(R.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",E(R.version),"/m=",E(A),P?"/exm="+E(P):"","/rt=j/sv=1/d=1/ed=1",R.activeMods?"/am="+E(R.activeMods):"",R.resourceSig?"/rs="+E(R.resourceSig):"",R.zcms?"/t="+E(R.zcms):"","/cb=",E(Y)].join("")},Sez=function(R){R.charAt(0)!=="/"&&XO("relative path");
for(var A=R.substring(1).split("/"),Y=[];A.length;){R=A.shift();if(!R.length||R.indexOf(".")==0)XO("empty/relative directory");else if(R.indexOf("=")>0){A.unshift(R);break}Y.push(R)}R={};for(var P=0,E=A.length;P<E;++P){var z=A[P].split("="),c=decodeURIComponent(z[0]),M=decodeURIComponent(z[1]);z.length==2&&c&&M&&(R[c]=R[c]||M)}A="/"+Y.join("/");vWz.test(A)||XO("invalid_prefix");Y=0;for(P=gWD.length;Y<P;++Y)gWD[Y].test(A)&&XO("invalid_prefix");Y=WJS(R,"k",!0);P=WJS(R,"am");E=WJS(R,"rs");R=WJS(R,"t");
return{pathPrefix:A,version:Y,activeMods:P,resourceSig:E,zcms:R}},IrN=function(R){for(var A=[],Y=0,P=R.length;Y<P;++Y){var E=R[Y].replace(/\./g,"_").replace(/-/g,"_");
rvb.test(E)&&A.push(E)}return A.join(",")},WJS=function(R,A,Y){R=R[A];
!R&&Y&&XO("missing: "+A);if(R){if(nWZ.test(R))return R;XO("invalid: "+A)}return null},$Iq=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,UIS=/\/cb=/g,DIz=/\/\//g;
Tuz.m=function(R,A,Y,P){(R=R[0])||XO("missing_hint");return"https://apis.google.com"+KJ8(R,A,Y,P)};
var j1E=decodeURI("%73cript"),bQG=/^[-+_0-9\/A-Za-z]+={0,2}$/,frA=function(R,A){for(var Y=[],P=0;P<R.length;++P){var E=R[P],z;if(z=E){a:{for(z=0;z<A.length;z++)if(A[z]===E)break a;z=-1}z=z<0}z&&Y.push(E)}return Y},pD7=function(){var R=Dw.nonce;
return R!==void 0?R&&R===String(R)&&R.match(bQG)?R:Dw.nonce=null:gb.querySelector?(R=gb.querySelector("script[nonce]"))?(R=R.nonce||R.getAttribute("nonce")||"",R&&R===String(R)&&R.match(bQG)?Dw.nonce=R:Dw.nonce=null):null:null},ar8=function(R){if(gb.readyState!="loading")FJA(R);
else{var A=pD7(),Y="";A!==null&&(Y=' nonce="'+A+'"');R="<"+j1E+' src="'+encodeURI(R)+'"'+Y+"></"+j1E+">";gb.write(Bu7?Bu7.createHTML(R):R)}},FJA=function(R){var A=gb.createElement(j1E);
A.setAttribute("src",Bu7?Bu7.createScriptURL(R):R);R=pD7();R!==null&&A.setAttribute("nonce",R);A.async="true";(R=gb.getElementsByTagName(j1E)[0])?R.parentNode.insertBefore(A,R):(gb.head||gb.body||gb.documentElement).appendChild(A)},hAG=function(R,A,Y){CIS(function(){var P=A===xIS()?n$(rb,"_",Hm()):Hm();
P=n$(OQA(A),"_",P);R(P)},Y)},IV6=function(R,A){var Y=A||{};
typeof A=="function"&&(Y={},Y.callback=A);var P=(A=Y)&&A._c;if(P)for(var E=0;E<Q1A.length;E++){var z=Q1A[E][0],c=Q1A[E][1];c&&Object.prototype.hasOwnProperty.call(P,z)&&c(P[z],R,A)}A=[];R?A=R.split(":"):Y.features&&(A=Y.features);if(!(R=Y.h)&&(R=xIS(),!R))throw Error("Va");oWZ(A||[],Y,R)},oWZ=function(R,A,Y){R=lrZ(R)||[];
var P=A.callback,E=A.config,z=A.timeout,c=A.ontimeout,M=A.onerror,N=void 0;typeof M=="function"&&(N=M);var y=null,m=!1;if(z&&!c||!z&&c)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";M=n$(OQA(Y),"r",[]).sort();var T=n$(OQA(Y),"L",[]).sort(),Q=Dw.le||[],g=[].concat(M),r=function(L,Z){if(m)return 0;QW.clearTimeout(y);T.push.apply(T,I);var w=((rb||{}).config||{}).update;w?w(E):E&&n$(Dw,"cu",[]).push(E);if(Z){mIN("me0",L,g);try{hAG(Z,Y,N)}finally{mIN("me1",L,g)}}return 1};
z>0&&(y=QW.setTimeout(function(){m=!0;c()},z));
var I=frA(R,T);if(I.length){I=frA(R,M);var b=n$(Dw,"CP",[]),p=b.length;b[p]=function(L){if(!L)return 0;mIN("ml1",I,g);var Z=function(t){b[p]=null;r(I,L)&&cvb(function(){P&&P();t()})},w=function(){var t=b[p+1];
t&&t()};
p>0&&b[p-1]?b[p]=function(){Z(w)}:Z(w)};
if(I.length){var h="loaded_"+Dw.I++;rb[h]=function(L){b[p](L);rb[h]=null};
R=XDG(Y,I,"gapi."+h,M,Q);M.push.apply(M,I);mIN("ml0",I,g);A.sync||QW.___gapisync?ar8(R):FJA(R)}else b[p](zAZ)}else r(I)&&P&&P()},kTN;
var GTS=null,ZQD=_.P3.trustedTypes;if(ZQD&&ZQD.createPolicy){try{GTS=ZQD.createPolicy("goog#gapi",{createHTML:kk6,createScript:kk6,createScriptURL:kk6})}catch(R){_.P3.console&&_.P3.console.error(R.message)}kTN=GTS}else kTN=GTS;var Bu7=kTN,CIS=function(R,A){if(Dw.hee&&Dw.hel>0)try{return R()}catch(Y){A&&A(Y),Dw.hel--,IV6("debug_error",function(){try{window.___jsl.hefn(Y)}catch(P){throw Y;}})}else try{return R()}catch(Y){throw A&&A(Y),Y;
}},tOS=rb.load;
tOS&&n$(Dw,"ol",[]).push(tOS);rb.load=function(R,A){return CIS(function(){return IV6(R,A)})};var d1q;var ucA=function(R,A){var Y=Y||[];this.serviceId_=R;this.moduleId_=A||null;this.dependencies_=[];wDG(this,Y)};
ucA.prototype.toString=function(){return this.serviceId_};
ucA.prototype.getModuleId=function(){return this.moduleId_};
var wDG=function(R,A){var Y=!1;Y=Y===void 0?!1:Y;R.dependencies_=R.dependencies_.concat(A);if(Y){if(!R.moduleId_)throw Error("Wa`"+R.serviceId_);A.map(function(P){return P.getModuleId()}).forEach(function(P){RsJ(function(E){E.addExtraEdge(R.moduleId_,P)})})}};var zYk=new ucA("MpJwZc","MpJwZc");var lMP=new _.H$("a"),ijk=function(R,A,Y){_.r4.call(this,R,A);this.node=A;this.kind=Y};
_.H(ijk,_.r4);var eAS=function(){this.JSC$10052_keys_={};this.urlPrefix_="";this.JSC$10052_queryData_={}};
eAS.prototype.toString=function(){var R=this.urlPrefix_+qeG(this),A=_.vU(this.JSC$10052_queryData_),Y="";A!=""&&(Y="?"+A);return R+Y};
var LJq=function(R){R=SE(R,"md");return!!R&&R!=="0"},qeG=function(R){var A=[],Y=(0,_.Wv)(function(P){this.JSC$10052_keys_[P]!==void 0&&A.push(P+"="+this.JSC$10052_keys_[P])},R);
LJq(R)?(Y("md"),Y("k"),Y("ck"),Y("am"),Y("rs"),Y("gssmodulesetproto"),Y("slk"),Y("dti")):(Y("sdch"),Y("k"),Y("ck"),Y("am"),Y("rt"),"d"in R.JSC$10052_keys_||IF(R,"d","0"),Y("d"),Y("exm"),Y("excm"),(R.JSC$10052_keys_.excm||R.JSC$10052_keys_.exm)&&A.push("ed=1"),Y("im"),Y("dg"),Y("sm"),SE(R,"br")!="1"&&SE(R,"br")!="0"||Y("br"),Y("br-d"),SE(R,"rb")=="1"&&Y("rb"),SE(R,"zs")!=="0"&&Y("zs"),dI8(R)!==""&&Y("wt"),Y("gssmodulesetproto"),Y("ujg"),Y("sp"),Y("rs"),Y("cb"),Y("ee"),Y("slk"),Y("dti"),Y("m"));return A.join("/")},
SE=function(R,A){return R.JSC$10052_keys_[A]?R.JSC$10052_keys_[A]:null},IF=function(R,A,Y){Y?R.JSC$10052_keys_[A]=Y:delete R.JSC$10052_keys_[A]},R4G=function(R,A){R.urlPrefix_=A},ANA=function(R,A){A&&A.length>0?(A.sort(),IF(R,"exm",A.join(","))):IF(R,"exm",null)},YK7=function(R,A){A&&A.length>0?(A.sort(),IF(R,"excm",A.join(","))):IF(R,"excm",null)},Psq=function(R){return(R=SE(R,"m"))?R.split(","):[]},dI8=function(R){switch(SE(R,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},ES7=function(R,A){var Y=Object.keys(A).filter(function(P){return!!Object.keys(A[P]).length}).map(function(P){var E=Object.keys(A[P]);
E.length>1&&E.sort();return P+":"+E.join(",")});
Y.sort();IF(R,"ee",Y.join(";"))},Znb=function(R){var A=SE(R,"ee");
if(!A)return{};R={};A=_.x(A.split(";"));for(var Y=A.next();!Y.done;Y=A.next()){var P=_.x(Y.value.split(":"));Y=P.next().value;P=P.next().value;R[Y]={};P=_.x(P.split(","));for(var E=P.next();!E.done;E=P.next())R[Y][E.value]=!0}return R},z4A=function(R){delete R.JSC$10052_keys_.m;
delete R.JSC$10052_keys_.exm;delete R.JSC$10052_keys_.ed};
eAS.prototype.clone=function(){var R=new eAS;R.JSC$10052_keys_=Object.assign({},this.JSC$10052_keys_);R.urlPrefix_=this.urlPrefix_;R.JSC$10052_queryData_=Object.assign({},this.JSC$10052_queryData_);return R};
var tXP=function(R,A){A=A===void 0?!0:A;var Y=iwS(R),P=new eAS,E=_.RW(Y)[5];_.BO.forEach(lOq,function(c){var M=E.match("/"+c+"=([^/]+)");M&&IF(P,c,M[1])});
var z="";z=R.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";R4G(P,R.substr(0,R.indexOf(z)+z.length));if(!A)return P;(R=_.RW(Y)[6]||null)&&BoD(R,function(c,M){P.JSC$10052_queryData_[c]=M});
return P},o_V=function(R){R=_.T3(iwS(R));
return R===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(R)?/\/k=/.test(R):!1},iwS=function(R){return R.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?R.substr(65):R},lOq={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},x1H=RegExp("^loaded_(g|h)?[_\\d]+$");_.K$=function(R){this.JSC$10064_id_=R;this.opts={}};
_.K$.prototype.JSC$10066_setLabel=function(R){this.label_=R||void 0;return this};
_.K$.prototype.addUploadMetadata=function(R,A){var Y=this.opts.data||{};Y[R]=A;this.opts.data=Y;return this};
var cNN=function(R){var A=_.BO.filter(R.opts,function(Y){return Y!==null});
A=_.BO.isEmpty(A)?null:A;R=[R.JSC$10064_id_,R.label_,A];A=gq3(R);return R=R.slice(0,A+1)};
_.K$.prototype.toString=function(){var R=cNN(this);return"("+_.aS(R,function(A){return JSON.stringify(A)}).join(",")+")"};
_.K$.prototype.getId=function(){return this.JSC$10064_id_};
_.K$.prototype.getOptions=function(){return _.BO.clone(this.opts)};var Wm=function(){_.K$.call(this,"image-search")};
_.H(Wm,_.K$);Wm.prototype.setSize=function(R){this.opts.imgsz=R;return this};
Wm.prototype.JSC$10066_setLabel=function(R){_.K$.prototype.JSC$10066_setLabel.call(this,R);return this};
Wm.prototype.addUploadMetadata=function(R,A){_.K$.prototype.addUploadMetadata.call(this,R,A);return this};var jE=function(){_.K$.call(this,"maps")};
_.H(jE,_.K$);jE.prototype.setZoom=function(R){this.opts.zoom=R;return this};
jE.prototype.JSC$10066_setLabel=function(R){_.K$.prototype.JSC$10066_setLabel.call(this,R);return this};
jE.prototype.addUploadMetadata=function(R,A){_.K$.prototype.addUploadMetadata.call(this,R,A);return this};_.bd=function(){_.K$.call(this,"photos")};
_.H(_.bd,_.K$);_.bd.prototype.JSC$10066_setLabel=function(R){_.K$.prototype.JSC$10066_setLabel.call(this,R);return this};
_.bd.prototype.addUploadMetadata=function(R,A){_.K$.prototype.addUploadMetadata.call(this,R,A);return this};var f$=function(){_.K$.call(this,"url")};
_.H(f$,_.K$);var Owf=function(){var R=new f$;R.opts.type="video";R.opts.site="youtube.com";return R};
f$.prototype.JSC$10066_setLabel=function(R){_.K$.prototype.JSC$10066_setLabel.call(this,R);return this};
f$.prototype.addUploadMetadata=function(R,A){_.K$.prototype.addUploadMetadata.call(this,R,A);return this};var p$=function(){_.K$.call(this,"video-search")};
_.H(p$,_.K$);var MxS=function(){var R=new p$;R.opts.site="youtube.com";return R};
p$.prototype.JSC$10066_setLabel=function(R){_.K$.prototype.JSC$10066_setLabel.call(this,R);return this};
p$.prototype.addUploadMetadata=function(R,A){_.K$.prototype.addUploadMetadata.call(this,R,A);return this};var sWN=function(){_.K$.call(this,"web")};
_.H(sWN,_.K$);sWN.prototype.JSC$10066_setLabel=function(R){_.K$.prototype.JSC$10066_setLabel.call(this,R);return this};
sWN.prototype.addUploadMetadata=function(R,A){_.K$.prototype.addUploadMetadata.call(this,R,A);return this};var FO=function(){this.items_=[];this.opts={}},Nrb=function(R){switch(R){case "image-search":return new Wm;
case "maps":return new jE;case "photos":return new _.bd;case "url":return new f$;case "video-search":return new p$;case "web":return new sWN}return new _.K$(R)};
FO.prototype.addView=function(R){this.items_.push(typeof R==="string"?Nrb(R):R);return this};
var VxN=function(R){return"("+_.aS(R.items_,function(A){return A.toString()}).join(",")+")"};
FO.prototype.toString=function(){return VxN(this)};
FO.prototype.getViews=function(R,A){A=A===void 0?[]:A;for(var Y=this.items_,P=0;P<Y.length;P++){var E=Y[P];E instanceof FO?E.getViews(R,A):E.getId()==R&&A.push(E)}return A};
FO.prototype.getOptions=function(){return _.BO.clone(this.opts)};var kt=function(R){this.basePickerUrl_=R||"https://docs.google.com/picker";this.nav_=new FO};
kt.prototype.nav_=null;kt.prototype.addView=function(R){this.nav_.addView(R);return this};
kt.prototype.getBaseUrl=function(){return this.basePickerUrl_};
kt.prototype.getViews=function(R){return this.nav_.getViews(R)};
_.JN8=function(R,A){R.callback_=A;return R};var yNH=new Map;yNH.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");yNH.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");yNH.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var m1H=new Set;m1H.add("application/vnd.google-apps.kix");m1H.add("application/vnd.google-apps.ritz");m1H.add("application/vnd.google-apps.punch");var SKA=function(R,A,Y){var P=Y&&_.X1(Y,1);Y=TrA(Y);var E=R[0].getId();switch(_.SR(E,2)){case 13:return QWq(R,A,P,Y);case 3:return vSD(R,A,P,Y);case 10:return gSA(R,A,P,Y);case 27:return gSA(R,A,P,Y);case 12:return nSf(R,A);case 2:return HwN(R,A,P,Y);case 5:return rN8(R,A,P,Y);case 9:return D1D(R,A,P,Y);case 6:return U1G(R,A,P,Y);case 25:return $1A(R,A,P,Y);case 1:return _.mh(R[0],AbS,26)?XUS(R,A,P,Y):gSA(R,A,P,Y);default:return{}}},U1G=function(R,A,Y,P){R=R.map(function(E){return{id:E.getId().getId(),
serviceId:"youtube",name:E.getName(),description:_.X1(E,3),type:Bm(E),lastEditedUtc:_.Rb8(_.cG(E,_.K0,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:E.getUrl(),embedUrl:_.X1(E,13),thumbnails:aF(EX(E))}});
return{action:A,docs:R,viewToken:P,view:Y||"youtube",v2Translated:!0}},HwN=function(R,A,Y,P){var E=R.map(function(z){var c=z.getId().getId(),M=_.X1(z,7),N=z.getName(),y=Bm(z),m=_.Rb8(_.cG(z,_.K0,12)).getTime(),T=z.getUrl(),Q=Number(lDJ(z)),g=_.X1(z,3),r=_.X1(z,11),I=aF(EX(z));
var b=_.cG(z,zb,21);b=_.D0(b,1);var p=_.cG(z,zb,21);p=_.X1(p,10);var h=_.X1(z,13);var L=_.cG(z,zb,21);L=_.D0(L,9);var Z=_.cG(z,zb,21);Z=_.X1(Z,11);c={id:c,serviceId:"docs",mimeType:M,name:N,type:y,lastEditedUtc:m,url:T,sizeBytes:Q,description:g,iconUrl:r,thumbnails:I,isShared:b,downloadUrl:p,embedUrl:h,copyable:L,resourceKey:Z};M=_.cG(z,zb,21);_.D0(M,12)&&(c.uploadState="success",c.isNew=!0);M=_.cG(z,zb,21);_.mh(M,AA,3)&&(z=_.cG(z,zb,21),z=_.cG(z,AA,3),_.mh(z,d$,2)&&(M=CJ(z.getDuration().getSeconds()),
N=z.getDuration(),N=_.sU(N,2),c.duration=M+N/1E9),c.aspectRatio=z.getAspectRatio());return c});
return{action:A,docs:E,viewToken:P,view:Y||"all",extraUserInputs:IOA(R),v2Translated:!0}},rN8=function(R,A,Y,P){R=R.map(function(E){var z=_.cG(E,Oq8,15);
z=_.cG(z,R8,1);vj(E,10,R8,z);return{id:E.getId().getId(),serviceId:"web",mimeType:_.X1(E,7),name:E.getName(),type:Bm(E),url:E.getUrl(),description:_.X1(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aF(EX(E))}});
return{action:A,docs:R,viewToken:P,view:Y||"image-search",v2Translated:!0}},D1D=function(R,A,Y,P){R=R.map(function(E){return{serviceId:"url",
name:EX(E)[0].getUrl().split("/").pop(),type:Bm(E),mimeType:_.X1(E,7),url:E.getUrl(),description:_.X1(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aF(EX(E))}});
return{action:A,docs:R,viewToken:P,view:Y||"url",v2Translated:!0}},XUS=function(R,A,Y,P){R=R.map(function(E){return{id:E.getId().getId(),
serviceId:"picasa",name:E.getName(),type:Bm(E),description:_.X1(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aF(EX(E))}});
return{action:A,docs:R,viewToken:P,view:Y||"webcam",v2Translated:!0}},gSA=function(R,A,Y,P){return{action:A,
docs:R.map(KTG),viewToken:P,view:WTb(Y||"upload",R),extraUserInputs:IOA(R),v2Translated:!0}},WTb=function(R,A){return A.some(function(Y){var P;
return((P=_.cG(Y,Yy,30))==null?void 0:_.SR(P,3))===9})?R+"/gmailphotos":R},vSD=function(R,A,Y,P){var E=R.map(function(z){var c={id:z.getId().getId(),
serviceId:"picasa",mimeType:_.X1(z,7),name:z.getName(),type:Bm(z),lastEditedUtc:_.Rb8(_.cG(z,_.K0,12)).getTime(),url:z.getUrl(),sizeBytes:Number(lDJ(z)),description:_.X1(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aF(EX(z)),mediaKey:z.getId().getId(),parentId:_.X1(z,4)},M,N=(M=_.cG(z,ED7,18))==null?void 0:_.cG(M,PbH,3);N&&(c.latitude=$B(N,1),c.longitude=$B(N,2));var y;z=(y=_.cG(z,ED7,18))==null?void 0:Uk(y,6);y=z!=null?CJ(z):void 0;y&&(c.version=
y);return c});
return{action:A,docs:E,viewToken:P,view:Y||"photos",extraUserInputs:IOA(R),v2Translated:!0}},QWq=function(R,A,Y,P){R=R.map(function(E){return{id:E.getId().getId(),
serviceId:"et",name:EX(E)[0].getUrl().split("/").pop(),description:_.X1(E,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aF(EX(E),"etjpg")}});
return{action:A,docs:R,viewToken:P,view:Y||"et",v2Translated:!0}},$1A=function(R,A,Y,P){R=R.map(function(E){var z=E.getId().getId(),c=P["2"];
return{id:z,serviceId:c.type!=="gmail_themes"&&c.parent==="6226252643674576769"?"picasa":"static_themes",name:E.getName(),mimeType:_.X1(E,7),type:Bm(E),description:_.X1(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:E.getUrl(),embedUrl:E.getUrl(),thumbnails:aF(EX(E))}});
return{action:A,docs:R,viewToken:P,view:Y||"photos",v2Translated:!0}},nSf=function(R,A){R=R.map(function(Y){var P=_.cG(Y,Yg7,27);
P=_.wo(P,1,_.vF,_.M_())[0];return{id:Y.getId().getId(),serviceId:"contacts",mimeType:_.X1(Y,7),name:Y.getName(),description:_.X1(Y,3),url:"mailto:"+P,thumbnail:[{url:_.X1(Y,11)}],email:P}});
return{action:A,docs:R,view:"contacts",v2Translated:!0}},TrA=function(R){if(!R)return{};
var A=_.X1(R,3);A=A&&JSON.parse(A)||{};return{0:_.X1(R,1),1:_.X1(R,2),2:A}},aF=function(R,A){A=A===void 0?"":A;
if(!R.length)return null;A=="etjpg"&&(R=R.filter(function(Y){return Y.getUrl().includes("w1200-h300")}));
return R.map(function(Y){return{url:Y.getUrl(),height:Y.getHeight(),width:Y.getWidth(),type:A}})},IOA=function(R){return{isAttachment:R.some(function(A){return _.D0(A,31)})}},KTG=function(R){var A,Y={id:(A=R.getId())==null?void 0:A.getId(),
serviceId:jWS(R),mimeType:_.X1(R,7),name:R.getName(),type:Bm(R),sizeBytes:Number(lDJ(R)),description:_.X1(R,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:aF(EX(R)),isNew:!0};if(A=_.cG(R,Yy,30)){Y.dataUrl=_.X1(A,1)||null;a:{var P=_.cG(R,Yy,30);switch(_.SR(P,3)){case 9:P=_.Wb(P,xLD,2,P$);P={remoteRefs:P&&_.X1(P,1)};break a;case 10:case 15:P=_.Wb(P,lEN,4,P$);var E=EX(R);P={photo_id:P&&_.X1(P,1),media_key:R.getId().getId(),media_type:_.SR(R,6)===1?1:2,image_url:E&&
E[0].getUrl(),width:E&&String(E[0].getWidth()),height:E&&String(E[0].getHeight())};break a}P=null}Y.uploadMetadata=P;Y.uploadId=_.X1(A,9)||null;Y.uploadState=bwA(A)||null}(P=A&&_.Wb(A,lEN,4,P$))&&(Y.id=_.X1(P,1));(P=A&&_.Wb(A,cbS,5,P$))&&(Y.contentId=_.X1(P,1));(P=A&&_.Wb(A,zbf,7,P$))&&(Y.contentId=_.X1(P,1));(P=A&&_.Wb(A,iqD,6,P$))&&(Y.contentId=_.X1(P,1));(A==null?void 0:_.SR(A,3))===1&&(Y.mediaKey=R.getId().getId());return Y},jWS=function(R){var A;
switch(((A=_.cG(R,Yy,30))==null?void 0:_.SR(A,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},Bm=function(R){switch(_.SR(R,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 _.X1(R,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},bwA=function(R){switch(R==null?void 0:_.SR(R,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 Brb,fOZ,pU7,FTD;_.aOz=function(R,A){var Y=A||{};A=Y.document||document;var P=_.Kq(R).toString(),E=(new I7(A)).createElement("SCRIPT"),z={script_:E,timeout_:void 0},c=new d4(fOZ,z),M=null,N=Y.timeout!=null?Y.timeout:5E3;N>0&&(M=window.setTimeout(function(){pU7(E,!0);c.errback(new FTD(1,"Timeout reached for loading script "+P))},N),z.timeout_=M);
E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||(pU7(E,Y.cleanupWhenDone||!1,M),c.callback(null))};
E.onerror=function(){pU7(E,!0,M);c.errback(new FTD(0,"Error while loading script "+P))};
z=Y.attributes||{};_.BO.extend(z,{type:"text/javascript",charset:"UTF-8"});ZDq(E,z);_.ET(E,R);Brb(A).appendChild(E);return c};
Brb=function(R){var A=$t("HEAD",R);return A&&A.length!==0?A[0]:R.documentElement};
fOZ=function(){if(this&&this.script_){var R=this.script_;R&&R.tagName=="SCRIPT"&&pU7(R,!0,this.timeout_)}};
pU7=function(R,A,Y){Y!=null&&_.P3.clearTimeout(Y);R.onload=function(){};
R.onerror=function(){};
R.onreadystatechange=function(){};
A&&window.setTimeout(function(){_.UU(R)},0)};
FTD=function(R,A){var Y="Jsloader error (code #"+R+")";A&&(Y+=": "+A);_.Rk.call(this,Y);this.code=R};
_.Pb(FTD,_.Rk);var CsA=_.Z7(["https://apis.google.com/js/api.js"]),h47=_.Jr(CsA),ZwN=function(R,A,Y){Y=Y===void 0?{}:Y;var P=!1,E=oSb(R,A,Y).then(function(c){P=!0;return c}),z=_.JrA(5E3).then(function(){return P?oSb(R,A,Y):k3f(A,Y).then(function(c){return G3A(c,R)})});
return PG8([E,z])},oSb=function(R,A,Y){Y=Y===void 0?{}:Y;
return tx7(A,Y).then(function(P){return G3A(P,R)})},G3A=function(R,A){var Y=_.iJ(A,"gapi.")?A.slice(5):A;
return R[Y]?_.Vn(R[Y]):new _.yR(function(P,E){var z=b6(function(){E(Error("Ya"))},3E4);
R.load(A,{callback:function(){_.P3.clearTimeout(z);P(R[Y])},
onerror:function(c){_.P3.clearTimeout(z);E(c)}})})},tx7=function(R,A){A=A===void 0?{}:A;
return R.gapi&&R.gapi.load?_.Vn(R.gapi):k3f(R,A)},k3f=function(R,A){A=A===void 0?{}:A;
return _.aOz(h47,{document:R.document,attributes:A}).then(function(){return R.gapi})},wUq=function(){};
wUq.prototype.load=function(R,A,Y){A=A===void 0?window:A;Y=Y===void 0?{}:Y;var P=Date.now();return ZwN(R,A,Y).then(function(E){var z=Date.now();return{library:E,loadStartMs:P,loadEndMs:z}},function(E){throw E instanceof Error?E:Error(String(E));
})};var sBJ=function(){_.KJ.call(this);this.gapiLoader_=new wUq;this.origin_=null;this.gapiPickerIframeResolver_=_.ei();this.gapiIframesResolver_=_.ei();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.H(sBJ,_.KJ);var uNN=function(R,A){var Y=_.Zr("gapi.iframes",A);return Y?(R=Date.now(),_.Vn({library:Y,loadStartMs:R,loadEndMs:R})):R.gapiLoader_.load("gapi.iframes",A)},e4A=function(R,A,Y,P,E,z){var c=!1;
c=c===void 0?!1:c;uNN(R,hr(A.ownerDocument)).then(function(M){var N=M.library;R.gapiIframesResolver_.resolve(N);M=R.gapiPickerIframeResolver_;var y=M.resolve,m=c;m=m===void 0?!1:m;var T={};T["host-message-handler"]=Y;R.hostMessageHandlerInternal_=T;var Q=_.eK(P);Q=_.eK(Q);Q=_.xP(_.ld(_.id(new _.dq,Q.scheme_),Q.JSC$10024_domain_),Q.JSC$10024_port_).toString();R.origin_=Q;Q=(new NuA).setUrl(P);Q.JSC$10039_obj_.where=A;Q.JSC$10039_obj_.allowPost=m;Q.JSC$10039_obj_.messageHandlers=T;m=_.Zr("makeWhiteListIframesFilter",
N)([R.origin_]);Q.JSC$10039_obj_.messageHandlersFilter=m;E!=null&&(Q.JSC$10039_obj_.id=E);z!=null&&(Q.JSC$10039_obj_.rpctoken=z);m=s1f(Q);m.JSC$10036_obj_.style={display:"block","min-width":"100%",width:"1px"};m.JSC$10036_obj_.height="100%";s1f(Q).value().allow="camera 'src' "+R.origin_;N=N.getContext().openChild(Q.value());y.call(M,N)},function(M){R.gapiIframesResolver_.reject(M);
R.gapiPickerIframeResolver_.reject(M)});
return R.gapiPickerIframeResolver_.promise},qKA=function(R,A){return _.W$([R.gapiIframesResolver_.promise,
R.gapiPickerIframeResolver_.promise]).then(function(Y){var P=_.x(Y);Y=P.next().value;return(P=P.next().value)?P.send("picker-message-handler",A,void 0,_.Zr("makeWhiteListIframesFilter",Y)([R.origin_])):_.j5(Error("Za"))})};
sBJ.prototype.disposeInternal=function(){LTN(this);_.KJ.prototype.disposeInternal.call(this)};
var LTN=function(R){R.gapiPickerIframeResolver_.promise.then(function(A){A&&(A.unregister("host-message-handler"),delete R.hostMessageHandlerInternal_["host-message-handler"])})};var d1Z=function(){this.JSC$10126_nextId=0};var AZS=function(R,A){switch(R.action){case "select-contacts":R=Rs8(R.contacts);break;case "visibility":R=R.visible;var Y=new c$;R=_.bu(Y,1,7).setVisible(R);Y={};Y["iframe-command"]=R.serialize();R=Y;break;default:R=null}return R?qKA(A,R):_.Vn()},Rs8=function(R){if(!R||R.length==0)return null;
var A=new c$;_.bu(A,1,11);var Y=new d1Z;R.forEach(function(P){if(P.email){var E=new Hb;E=_.o9(E,2,P.name?P.name:P.email);var z=new Yg7;P=_.pFk(z,1,_.J9,P.email,_.vF);P=_.DE(E,27,P);E=new dgA;z=":"+(Y.JSC$10126_nextId++).toString(36);E=_.o9(E,1,z);E=_.bu(E,2,12);P=_.DE(P,1,E)}else P=null;P&&vj(A,7,Hb,P)});
R={};R["iframe-command"]=A.serialize();return R};_.YFH=function(){if(gG8){var R=/Windows NT ([0-9.]+)/;return(R=R.exec(_.yk()))?R[1]:"0"}return _.vGP?(R=/1[0|1][_.][0-9_.]+/,(R=R.exec(_.yk()))?R[0].replace(/_/g,"."):"10"):mBS?(R=/Android\s+([^\);]+)(\)|;)/,(R=R.exec(_.yk()))?R[1]:""):HeP||rUJ||DZk?(R=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(R=R.exec(_.yk()))?R[1].replace(/_/g,"."):""):""}();var C$;C$=function(R){return(R=R.exec(_.yk()))?R[1]:""};
_.PBS=function(){if(_.Mc)return C$(/Firefox\/([0-9.]+)/);if(_.lu||AZ||mZS)return WFl;if(_.sk){if(_.Ik()||_.mbk()){var R=C$(/CriOS\/([0-9.]+)/);if(R)return R}return C$(/Chrome\/([0-9.]+)/)}if(_.hN&&!_.Ik())return C$(/Version\/([0-9.]+)/);if(XKq||SQk){if(R=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.yk()))return R[1]+"."+R[2]}else if(FFb)return(R=C$(/Android\s+([0-9.]+)/))?R:C$(/Version\/([0-9.]+)/);return""}();var E_H=function(){};
_.AR(E_H);E_H.prototype.nextId_=0;_.hn=function(R){return":"+(R.nextId_++).toString(36)};var oF=function(R){_.SS.call(this);this.JSC$10134_dom_=R||Sp();this.JSC$10134_id_=null;this.inDocument_=!1;this.JSC$10134_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Pb(oF,_.SS);oF.prototype.idGenerator_=E_H.getInstance();oF.prototype.getId=function(){return this.JSC$10134_id_||(this.JSC$10134_id_=_.hn(this.idGenerator_))};
oF.prototype.getElement=function(){return this.JSC$10134_element_};
var kP=function(R){R.googUiComponentHandler_||(R.googUiComponentHandler_=new _.ce(R));return R.googUiComponentHandler_},zsz=function(R,A){if(R==A)throw Error("$a");
var Y;if(Y=A&&R.parent_&&R.JSC$10134_id_){Y=R.parent_;var P=R.JSC$10134_id_;Y=Y.childIndex_&&P?_.BO.get(Y.childIndex_,P)||null:null}if(Y&&R.parent_!=A)throw Error("$a");R.parent_=A;oF.superClass_.setParentEventTarget.call(R,A)};
oF.prototype.setParentEventTarget=function(R){if(this.parent_&&this.parent_!=R)throw Error("ab");oF.superClass_.setParentEventTarget.call(this,R)};
oF.prototype.JSC$10136_createDom=function(){this.JSC$10134_element_=this.JSC$10134_dom_.createElement("DIV")};
oF.prototype.render=function(R){inA(this,R)};
var inA=function(R,A,Y){if(R.inDocument_)throw Error("bb");R.JSC$10134_element_||R.JSC$10136_createDom();A?A.insertBefore(R.JSC$10134_element_,Y||null):R.JSC$10134_dom_.JSC$9319_document_.body.appendChild(R.JSC$10134_element_);R.parent_&&!R.parent_.inDocument_||R.enterDocument()};
_.l=oF.prototype;_.l.decorate=function(R){if(this.inDocument_)throw Error("bb");if(R&&this.canDecorate(R)){this.wasDecorated_=!0;var A=_.oS(R);this.JSC$10134_dom_&&this.JSC$10134_dom_.JSC$9319_document_==A||(this.JSC$10134_dom_=Sp(R));this.decorateInternal(R);this.enterDocument()}else throw Error("cb");};
_.l.canDecorate=function(){return!0};
_.l.decorateInternal=function(R){this.JSC$10134_element_=R};
_.l.enterDocument=function(){this.inDocument_=!0;lF7(this,function(R){!R.inDocument_&&R.getElement()&&R.enterDocument()})};
_.l.exitDocument=function(){lF7(this,function(R){R.inDocument_&&R.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.l.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);lF7(this,function(R){R.dispose()});
!this.wasDecorated_&&this.JSC$10134_element_&&_.UU(this.JSC$10134_element_);this.parent_=this.model_=this.JSC$10134_element_=this.childIndex_=this.children_=null;oF.superClass_.disposeInternal.call(this)};
_.l.getModel=function(){return this.model_};
_.l.addChild=function(R,A){var Y=this.children_?this.children_.length:0;if(R.inDocument_&&(A||!this.inDocument_))throw Error("bb");if(Y<0||Y>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);R.parent_==this?(_.BO.set(this.childIndex_,R.getId(),R),_.ak(this.children_,R)):_.BO.add(this.childIndex_,R.getId(),R);zsz(R,this);_.Dbk(this.children_,Y,0,R);R.inDocument_&&this.inDocument_&&R.parent_==this?(A=this.getContentElement(),
(A.childNodes[Y]||null)!=R.getElement()&&(R.getElement().parentElement==A&&A.removeChild(R.getElement()),Y=A.childNodes[Y]||null,A.insertBefore(R.getElement(),Y))):A?(this.JSC$10134_element_||this.JSC$10136_createDom(),Y=this.children_?this.children_[Y+1]||null:null,inA(R,this.getContentElement(),Y?Y.JSC$10134_element_:null)):this.inDocument_&&!R.inDocument_&&R.JSC$10134_element_&&R.JSC$10134_element_.parentNode&&R.JSC$10134_element_.parentNode.nodeType==1&&R.enterDocument()};
_.l.getContentElement=function(){return this.JSC$10134_element_};
var lF7=function(R,A){R.children_&&R.children_.forEach(A,void 0)};
oF.prototype.removeChild=function(R,A){if(R){var Y=typeof R==="string"?R:R.getId();R=this.childIndex_&&Y?_.BO.get(this.childIndex_,Y)||null:null;Y&&R&&(_.BO.remove(this.childIndex_,Y),_.ak(this.children_,R),A&&(R.exitDocument(),R.JSC$10134_element_&&_.UU(R.JSC$10134_element_)),zsz(R,null))}if(!R)throw Error("eb");return R};_.Pb(PBl,YFP);_.Pb(E_P,YFP);var xzf;_.BO.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var cZS=function(R,A){A?R.setAttribute("role",A):R.removeAttribute("role")},Gp=function(R,A,Y){Array.isArray(Y)&&(Y=Y.join(" "));
var P="aria-"+A;Y===""||Y==void 0?(xzf||(Y={},xzf=(Y.atomic=!1,Y.autocomplete="none",Y.dropeffect="none",Y.haspopup=!1,Y.live="off",Y.multiline=!1,Y.multiselectable=!1,Y.orientation="vertical",Y.readonly=!1,Y.relevant="additions text",Y.required=!1,Y.sort="none",Y.busy=!1,Y.disabled=!1,Y.hidden=!1,Y.invalid="false",Y)),Y=xzf,A in Y?R.setAttribute(P,Y[A]):R.removeAttribute(P)):R.setAttribute(P,Y)};var OnD;_.Zw=function(R,A,Y){_.SS.call(this);this.target=R;this.handle=A||R;this.limits=Y||new h8(NaN,NaN,NaN,NaN);this.JSC$10139_document_=_.oS(R);this.JSC$10139_eventHandler_=new _.ce(this);_.gz(this,this.JSC$10139_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;_.KC(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=OnD};
_.Pb(_.Zw,_.SS);OnD=_.P3.document&&_.P3.document.documentElement&&!!_.P3.document.documentElement.setCapture&&!!_.P3.document.releaseCapture;_.MXS=function(R,A){R.hysteresisDistanceSquared_=Math.pow(A,2)};
_.l=_.Zw.prototype;_.l.setEnabled=function(R){this.enabled_=R};
_.l.disposeInternal=function(){_.Zw.superClass_.disposeInternal.call(this);_.XQ(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10139_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10139_document_.releaseCapture();this.handle=this.target=null};
_.l.startDrag=function(R){var A=R.type=="mousedown";if(!this.enabled_||this.dragging_||A&&(R.event_.button!=0||_.vGP&&R.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new tn("start",this,R.clientX,R.clientY,R)))this.dragging_=!0,A&&R.preventDefault();else return;else A&&R.preventDefault();A=this.JSC$10139_document_;var Y=A.documentElement,P=!this.useSetCapture_;this.JSC$10139_eventHandler_.listen(A,["touchmove","mousemove"],this.handleMove_,
{capture:P,passive:!1});this.JSC$10139_eventHandler_.listen(A,["touchend","mouseup"],this.endDrag,P);this.useSetCapture_?(Y.setCapture(!1),this.JSC$10139_eventHandler_.listen(Y,"losecapture",this.endDrag)):this.JSC$10139_eventHandler_.listen(hr(A),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10139_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,P);this.clientX=this.startX=R.clientX;this.clientY=this.startY=R.clientY;this.screenX=R.screenX;this.screenY=R.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Xr(Sp(this.JSC$10139_document_))}};
_.l.endDrag=function(R,A){this.JSC$10139_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10139_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new tn("end",this,R.clientX,R.clientY,R,sB8(this,this.deltaX),NMH(this,this.deltaY),A||R.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.l.handleMove_=function(R){if(this.enabled_){var A=R.clientX-this.clientX,Y=R.clientY-this.clientY;this.clientX=R.clientX;this.clientY=R.clientY;this.screenX=R.screenX;this.screenY=R.screenY;if(!this.dragging_){var P=this.startX-this.clientX,E=this.startY-this.clientY;if(P*P+E*E>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new tn("start",this,R.clientX,R.clientY,R)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(R);return}}Y=VXZ(this,A,Y);A=Y.x;Y=Y.y;this.dragging_&&this.dispatchEvent(new tn("beforedrag",
this,R.clientX,R.clientY,R,A,Y))&&(JZf(this,R,A,Y),R.preventDefault())}};
var VXZ=function(R,A,Y){var P=Xr(Sp(R.JSC$10139_document_));A+=P.x-R.pageScroll.x;Y+=P.y-R.pageScroll.y;R.pageScroll=P;R.deltaX+=A;R.deltaY+=Y;return new _.Cs(sB8(R,R.deltaX),NMH(R,R.deltaY))};
_.Zw.prototype.onScroll_=function(R){var A=VXZ(this,0,0);R.clientX=this.clientX;R.clientY=this.clientY;JZf(this,R,A.x,A.y)};
var JZf=function(R,A,Y,P){R.target.style.left=Y+"px";R.target.style.top=P+"px";R.dispatchEvent(new tn("drag",R,A.clientX,A.clientY,A,Y,P))},sB8=function(R,A){var Y=R.limits;
R=isNaN(Y.left)?null:Y.left;Y=isNaN(Y.width)?0:Y.width;return Math.min(R!=null?R+Y:Infinity,Math.max(R!=null?R:-Infinity,A))},NMH=function(R,A){var Y=R.limits;
R=isNaN(Y.top)?null:Y.top;Y=isNaN(Y.height)?0:Y.height;return Math.min(R!=null?R+Y:Infinity,Math.max(R!=null?R:-Infinity,A))};
_.Zw.prototype.isDragging=function(){return this.dragging_};
var tn=function(R,A,Y,P,E,z,c){_.r4.call(this,R);this.clientX=Y;this.clientY=P;this.browserEvent=E;this.left=z!==void 0?z:A.deltaX;this.top=c!==void 0?c:A.deltaY};
_.Pb(tn,_.r4);var wb=function(R){this.JSC$10146_map_=new Map;var A=arguments.length;if(A>1){if(A%2)throw Error("ka");for(var Y=0;Y<A;Y+=2)this.set(arguments[Y],arguments[Y+1])}else R&&this.addAll(R)};
_.l=wb.prototype;_.l.getCount=function(){return this.JSC$10146_map_.size};
_.l.getValues=function(){return Array.from(this.JSC$10146_map_.values())};
_.l.getKeys=function(){return Array.from(this.JSC$10146_map_.keys())};
_.l.containsKey=function(R){return this.JSC$10146_map_.has(R)};
_.l.containsValue=function(R){return this.getValues().some(function(A){return A==R})};
_.l.equals=function(R,A){var Y=this;A=A===void 0?function(P,E){return P===E}:A;
return this===R?!0:this.JSC$10146_map_.size!=R.getCount()?!1:this.getKeys().every(function(P){return A(Y.JSC$10146_map_.get(P),R.get(P))})};
_.l.isEmpty=function(){return this.JSC$10146_map_.size==0};
_.l.clear=function(){this.JSC$10146_map_.clear()};
_.l.remove=function(R){return this.JSC$10146_map_.delete(R)};
_.l.get=function(R,A){return this.JSC$10146_map_.has(R)?this.JSC$10146_map_.get(R):A};
_.l.set=function(R,A){this.JSC$10146_map_.set(R,A);return this};
_.l.addAll=function(R){if(R instanceof wb){R=_.x(R.JSC$10146_map_);for(var A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;Y=Y.next().value;this.JSC$10146_map_.set(A,Y)}}else if(R)for(R=_.x(Object.entries(R)),A=R.next();!A.done;A=R.next())Y=_.x(A.value),A=Y.next().value,Y=Y.next().value,this.JSC$10146_map_.set(A,Y)};
_.l.forEach=function(R,A){var Y=this;A=A===void 0?this:A;this.JSC$10146_map_.forEach(function(P,E){return R.call(A,P,E,Y)})};
_.l.clone=function(){return new wb(this)};(function(){for(var R=["ms","moz","webkit","o"],A,Y=0;A=R[Y]&&!_.P3.requestAnimationFrame;++Y)_.P3.requestAnimationFrame=_.P3[A+"RequestAnimationFrame"],_.P3.cancelAnimationFrame=_.P3[A+"CancelAnimationFrame"]||_.P3[A+"CancelRequestAnimationFrame"];if(!_.P3.requestAnimationFrame){var P=0;_.P3.requestAnimationFrame=function(E){var z=(new Date).getTime(),c=Math.max(0,16-(z-P));P=z+c;return _.P3.setTimeout(function(){E(z+c)},c)};
_.P3.cancelAnimationFrame||(_.P3.cancelAnimationFrame=function(E){clearTimeout(E)})}})();
var yZb=[[],[]],mzN=0,TMA=!1,QBf=0,g_b=function(R,A){var Y=QBf++,P={measureTask:{id:Y,fn:R.measure,context:A},mutateTask:{id:Y,fn:R.mutate,context:A},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(P.args||(P.args=[]),P.args.length=0,P.args.push.apply(P.args,arguments),P.args.push(P.state)):P.args&&P.args.length!=0?(P.args[0]=P.state,P.args.length=1):P.args=[P.state];P.isScheduled||(P.isScheduled=!0,yZb[mzN].push(P));TMA||(TMA=!0,window.requestAnimationFrame(v_z))}},v_z=
function(){TMA=!1;
var R=yZb[mzN],A=R.length;mzN=(mzN+1)%2;for(var Y,P=0;P<A;++P){Y=R[P];var E=Y.measureTask;Y.isScheduled=!1;E.fn&&E.fn.apply(E.context,Y.args)}for(P=0;P<A;++P)Y=R[P],E=Y.mutateTask,Y.isScheduled=!1,E.fn&&E.fn.apply(E.context,Y.args),Y.state={};R.length=0};var n_7=_.Z7(["about:blank"]),Hnf=_.Z7(["javascript:undefined"]),rZb=_.Jr(n_7);_.Kq(rZb);var Dzz=_.Jr(Hnf);_.Kq(Dzz);var ud=function(R){_.SS.call(this);this.JSC$10152_element_=R;this.listenKeyIn_=_.KC(this.JSC$10152_element_,"focus",this,!0);this.listenKeyOut_=_.KC(this.JSC$10152_element_,"blur",this,!0)};
_.Pb(ud,_.SS);ud.prototype.handleEvent=function(R){var A=new _.Du(R.event_);A.type=R.type=="focusin"||R.type=="focus"?"focusin":"focusout";this.dispatchEvent(A)};
ud.prototype.disposeInternal=function(){ud.superClass_.disposeInternal.call(this);XS(this.listenKeyIn_);XS(this.listenKeyOut_);delete this.JSC$10152_element_};var Uz8=function(R,A){this.JSC$10155_element_=R;this.JSC$10155_dom_=A};var eE=function(R,A){oF.call(this,A);this.useIframeMask_=!!R;this.lastFocus_=null;this.resizeBackgroundTask_=g_b({mutate:this.resizeBackground_},this);g_b({mutate:this.updateModalAndBackground_},this)};
_.Pb(eE,oF);_.l=eE.prototype;_.l.focusHandler_=null;_.l.visible_=!1;_.l.bgEl_=null;_.l.bgIframeEl_=null;_.l.tabCatcherElement_=null;_.l.backwardTabWrapInProgress_=!1;_.l.getCssClass=function(){return"goog-modalpopup"};
_.l.getBackgroundElement=function(){return this.bgEl_};
_.l.JSC$10136_createDom=function(){eE.superClass_.JSC$10136_createDom.call(this);var R=this.getElement(),A=s6(this.getCssClass()).split(" ");ql(R,A);R.tabIndex=0;_.dz(R,!1);$zZ(this);XGH(this)};
var $zZ=function(R){if(R.useIframeMask_&&!R.bgIframeEl_){var A=R.JSC$10134_dom_.JSC$9321_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.Lq(A,rZb);R.bgIframeEl_=A;R.bgIframeEl_.className=R.getCssClass()+"-bg";_.dz(R.bgIframeEl_,!1);gnS(R.bgIframeEl_,0)}R.bgEl_||(R.bgEl_=R.JSC$10134_dom_.JSC$9321_createDom("DIV",R.getCssClass()+"-bg"),_.dz(R.bgEl_,!1))},XGH=function(R){R.tabCatcherElement_||(R.tabCatcherElement_=R.JSC$10134_dom_.createElement("SPAN"),_.dz(R.tabCatcherElement_,
!1),R.tabCatcherElement_.tabIndex=0,R.tabCatcherElement_.style.position="absolute")};
_.l=eE.prototype;_.l.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.l.canDecorate=function(R){return!!R&&R.tagName=="DIV"};
_.l.decorateInternal=function(R){eE.superClass_.decorateInternal.call(this,R);R=s6(this.getCssClass()).split(" ");ql(this.getElement(),R);$zZ(this);XGH(this);this.getElement().tabIndex=0;_.dz(this.getElement(),!1)};
_.l.enterDocument=function(){this.bgIframeEl_&&_.Fw(this.bgIframeEl_,this.getElement());_.Fw(this.bgEl_,this.getElement());eE.superClass_.enterDocument.call(this);_.Bs(this.tabCatcherElement_,this.getElement());this.focusHandler_=new ud(this.JSC$10134_dom_.JSC$9319_document_);kP(this).listen(this.focusHandler_,"focusin",this.onFocus);SFz(this,!1)};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.lt(this.focusHandler_);eE.superClass_.exitDocument.call(this);_.UU(this.bgIframeEl_);_.UU(this.bgEl_);_.UU(this.tabCatcherElement_)};
_.l.setVisible=function(R){if(R!=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_&&SFz(this,R),R){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10134_dom_.JSC$9319_document_.activeElement}catch(E){}this.updateModalAndBackground_();kP(this).listen(this.JSC$10134_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10134_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);IFA(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)$9(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){kP(this).unlisten(this.JSC$10134_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10134_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)$9(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var A=this.JSC$10134_dom_,Y=A.JSC$9319_document_.body,P=A.JSC$9319_document_.activeElement||Y;if(!this.lastFocus_||this.lastFocus_==Y){this.lastFocus_=null;break a}(P==Y||A.contains(this.getElement(),P))&&this.lastFocus_.focus()}catch(E){}this.lastFocus_=
null}}};
var SFz=function(R,A){R.modalAriaVisibilityHelper_||(R.modalAriaVisibilityHelper_=new Uz8(R.JSC$10134_element_,R.JSC$10134_dom_));R=R.modalAriaVisibilityHelper_;if(A){R.hiddenElements_||(R.hiddenElements_=[]);A=R.JSC$10155_dom_.getChildren(R.JSC$10155_dom_.JSC$9319_document_.body);for(var Y=0;Y<A.length;Y++){var P=A[Y],E;if(E=P!=R.JSC$10155_element_)E=P.getAttribute("aria-hidden"),E=!(E==null||E==void 0?0:String(E));E&&(Gp(P,"hidden",!0),R.hiddenElements_.push(P))}}else if(R.hiddenElements_){for(A=
0;A<R.hiddenElements_.length;A++)R.hiddenElements_[A].removeAttribute("aria-hidden");R.hiddenElements_=null}};
eE.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var IFA=function(R,A){R.bgIframeEl_&&_.dz(R.bgIframeEl_,A);R.bgEl_&&_.dz(R.bgEl_,A);_.dz(R.getElement(),A);_.dz(R.tabCatcherElement_,A)};
_.l=eE.prototype;_.l.onShow=function(){this.dispatchEvent("show")};
_.l.onHide=function(){IFA(this,!1);this.dispatchEvent("hide")};
_.l.isVisible=function(){return this.visible_};
_.l.focus=function(){this.focusElement_()};
_.l.resizeBackground_=function(){this.bgIframeEl_&&_.dz(this.bgIframeEl_,!1);this.bgEl_&&_.dz(this.bgEl_,!1);var R=this.JSC$10134_dom_.JSC$9319_document_;var A=_.$2(hr(this.JSC$10134_dom_.JSC$9319_document_)||window);var Y=Math.max(A.width,Math.max(R.body.scrollWidth,R.documentElement.scrollWidth));R=Math.max(A.height,Math.max(R.body.scrollHeight,R.documentElement.scrollHeight));this.bgIframeEl_&&(_.dz(this.bgIframeEl_,!0),_.mgb(this.bgIframeEl_,Y,R));this.bgEl_&&(_.dz(this.bgEl_,!0),_.mgb(this.bgEl_,
Y,R))};
_.l.reposition=function(){var R;if(_.y9D(this.getElement())=="fixed")var A=R=0;else A=Xr(this.JSC$10134_dom_),R=A.x,A=A.y;var Y=QHb(this.getElement());var P=_.$2(hr(this.JSC$10134_dom_.JSC$9319_document_)||window);R=Math.max(R+P.width/2-Y.width/2,0);A=Math.max(A+P.height/2-Y.height/2,0);Gs(this.getElement(),R,A);Gs(this.tabCatcherElement_,R,A)};
_.l.onFocus=function(R){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():R.target==this.tabCatcherElement_&&b6(this.focusElement_,0,this)};
_.l.focusElement_=function(){try{this.getElement().focus()}catch(R){}};
_.l.disposeInternal=function(){_.lt(this.popupShowTransition_);this.popupShowTransition_=null;_.lt(this.popupHideTransition_);this.popupHideTransition_=null;_.lt(this.bgShowTransition_);this.bgShowTransition_=null;_.lt(this.bgHideTransition_);this.bgHideTransition_=null;eE.superClass_.disposeInternal.call(this)};var oX=function(R,A,Y){eE.call(this,A,Y);this.JSC$10165_class_=R||"modal-dialog";this.buttons_=(new qd).addButton(K3H,!0).addButton(W3S,!1,!0)};
_.Pb(oX,eE);_.l=oX.prototype;_.l.escapeToCancel_=!0;_.l.hasTitleCloseButton_=!0;_.l.modal_=!0;_.l.draggable_=!0;_.l.backgroundElementOpacity_=.5;_.l.title_="";_.l.JSC$10167_dragger_=null;_.l.JSC$10167_disposeOnHide_=!1;_.l.titleEl_=null;_.l.titleTextEl_=null;_.l.titleTextId_=null;_.l.titleCloseEl_=null;_.l.contentEl_=null;_.l.buttonEl_=null;_.l.getCssClass=function(){return this.JSC$10165_class_};
_.l.setTitle=function(R){this.title_=R;this.titleTextEl_&&_.CF(this.titleTextEl_,R)};
_.l.getTitle=function(){return this.title_};
_.l.getContent=function(){return""};
_.l.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var jBE=function(R){R.getElement()||R.render();return R.getElement()};
oX.prototype.getBackgroundElement=function(){this.getElement()||this.render();return oX.superClass_.getBackgroundElement.call(this)};
var bnZ=function(R,A){R.backgroundElementOpacity_=A;R.getElement()&&(A=R.getBackgroundElement())&&gnS(A,R.backgroundElementOpacity_)};
oX.prototype.setDraggable=function(R){this.draggable_=R;fFG(this,R&&this.inDocument_)};
oX.prototype.handleDrag=function(){};
var fFG=function(R,A){var Y=s6(R.JSC$10165_class_+"-title-draggable").split(" ");R.getElement()&&(A?ql(R.titleEl_,Y):c6S(R.titleEl_,Y));A&&!R.JSC$10167_dragger_?(A=new _.Zw(R.getElement(),R.titleEl_),R.JSC$10167_dragger_=A,ql(R.titleEl_,Y),_.KC(R.JSC$10167_dragger_,"start",R.setDraggerLimits_,!1,R),_.KC(R.JSC$10167_dragger_,"drag",R.handleDrag,!1,R)):!A&&R.JSC$10167_dragger_&&(R.JSC$10167_dragger_.dispose(),R.JSC$10167_dragger_=null)};
_.l=oX.prototype;
_.l.JSC$10136_createDom=function(){oX.superClass_.JSC$10136_createDom.call(this);var R=this.getElement(),A=this.JSC$10134_dom_;this.titleTextId_=this.getId();var Y=this.getId()+".contentEl";this.titleEl_=A.JSC$9321_createDom("DIV",this.JSC$10165_class_+"-title",this.titleTextEl_=A.JSC$9321_createDom("SPAN",{className:this.JSC$10165_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=A.JSC$9321_createDom("SPAN",this.JSC$10165_class_+"-title-close"));qAD(R,this.titleEl_,this.contentEl_=
A.JSC$9321_createDom("DIV",{className:this.JSC$10165_class_+"-content",id:Y}),this.buttonEl_=A.JSC$9321_createDom("DIV",this.JSC$10165_class_+"-buttons"));cZS(this.titleTextEl_,"heading");cZS(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Gp(this.titleCloseEl_,"label","Close");cZS(R,"dialog");Gp(R,"labelledby",this.titleTextId_||"");_.dz(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(R=this.buttons_,R.JSC$10168_element_=this.buttonEl_,R.render());_.dz(this.buttonEl_,!!this.buttons_);
bnZ(this,this.backgroundElementOpacity_)};
_.l.decorateInternal=function(R){oX.superClass_.decorateInternal.call(this,R);R=this.getElement();var A=this.JSC$10165_class_+"-content";this.contentEl_=KF(document,null,A,R)[0];this.contentEl_||(this.contentEl_=this.JSC$10134_dom_.JSC$9321_createDom("DIV",A),R.appendChild(this.contentEl_));A=this.JSC$10165_class_+"-title";var Y=this.JSC$10165_class_+"-title-text",P=this.JSC$10165_class_+"-title-close";(this.titleEl_=KF(document,null,A,R)[0])?(this.titleTextEl_=KF(document,null,Y,this.titleEl_)[0],
this.titleCloseEl_=KF(document,null,P,this.titleEl_)[0]):(this.titleEl_=this.JSC$10134_dom_.JSC$9321_createDom("DIV",A),R.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=MGS(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.jN("SPAN",{className:Y,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Gp(R,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10134_dom_.JSC$9321_createDom("SPAN",P),this.titleEl_.appendChild(this.titleCloseEl_));_.dz(this.titleCloseEl_,this.hasTitleCloseButton_);A=this.JSC$10165_class_+"-buttons";(this.buttonEl_=KF(document,null,A,R)[0])?(this.buttons_=new qd(this.JSC$10134_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10134_dom_.JSC$9321_createDom("DIV",A),R.appendChild(this.buttonEl_),this.buttons_&&(R=this.buttons_,R.JSC$10168_element_=this.buttonEl_,R.render()),_.dz(this.buttonEl_,
!!this.buttons_));bnZ(this,this.backgroundElementOpacity_)};
_.l.enterDocument=function(){oX.superClass_.enterDocument.call(this);kP(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);kP(this).listen(this.buttonEl_,"click",this.onButtonClick_);fFG(this,this.draggable_);kP(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var R=this.getElement();cZS(R,"dialog");this.titleTextEl_.id!==""&&Gp(R,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){R=this.JSC$10134_dom_;
var A=this.getBackgroundElement();R.removeNode(this.bgIframeEl_);R.removeNode(A)}this.isVisible()&&SFz(this,!1)}};
_.l.exitDocument=function(){this.isVisible()&&this.setVisible(!1);fFG(this,!1);oX.superClass_.exitDocument.call(this)};
_.l.setVisible=function(R){R!=this.isVisible()&&(this.inDocument_||this.render(),oX.superClass_.setVisible.call(this,R))};
_.l.onShow=function(){oX.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.l.onHide=function(){oX.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10167_disposeOnHide_&&this.dispose()};
_.l.setDraggerLimits_=function(){var R=this.JSC$10134_dom_.JSC$9319_document_,A=_.$2(hr(R)||window),Y=Math.max(R.body.scrollWidth,A.width);R=Math.max(R.body.scrollHeight,A.height);var P=QHb(this.getElement());_.y9D(this.getElement())=="fixed"?this.JSC$10167_dragger_.limits=new h8(0,0,Math.max(0,A.width-P.width),Math.max(0,A.height-P.height)):this.JSC$10167_dragger_.limits=new h8(0,0,Y-P.width,R-P.height)};
_.l.onTitleCloseClick_=function(){pGz(this)};
var pGz=function(R){if(R.hasTitleCloseButton_){var A=R.buttons_,Y=A&&A.cancelButton_;Y?(A=A.get(Y),R.dispatchEvent(new L$(Y,A))&&R.setVisible(!1)):R.setVisible(!1)}},F3N=function(R){R.hasTitleCloseButton_=!1;
R.titleCloseEl_&&_.dz(R.titleCloseEl_,R.hasTitleCloseButton_)};
oX.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;oX.superClass_.disposeInternal.call(this)};
oX.prototype.onButtonClick_=function(R){a:{for(R=R.target;R!=null&&R!=this.buttonEl_;){if(R.tagName=="BUTTON")break a;R=R.parentNode}R=null}if(R&&!R.disabled){R=R.name;var A=this.buttons_.get(R);this.dispatchEvent(new L$(R,A))&&this.setVisible(!1)}};
oX.prototype.onKey_=function(R){var A=!1,Y=!1,P=this.buttons_,E=R.target;if(R.type=="keydown")if(this.escapeToCancel_&&R.keyCode==27){var z=P&&P.cancelButton_;E=E.tagName=="SELECT"&&!E.disabled;z&&!E?(Y=!0,A=P.get(z),A=this.dispatchEvent(new L$(z,A))):E||(A=!0)}else{if(R.keyCode==9&&R.shiftKey&&E==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(m){}b6(this.resetBackwardTabWrap_,0,this)}}else if(R.keyCode==13){if(E.tagName=="BUTTON"&&!E.disabled)z=E.name;
else if(E==this.titleCloseEl_)pGz(this);else if(P){var c=P.defaultButton_,M;if(M=c)a:{M=$t("BUTTON",P.JSC$10168_element_);for(var N,y=0;N=M[y];y++)if(N.name==c||N.id==c){M=N;break a}M=null}E=(E.tagName=="TEXTAREA"||E.tagName=="SELECT"||E.tagName=="A")&&!E.disabled;!M||M.disabled||E||(z=c)}z&&P&&(Y=!0,A=this.dispatchEvent(new L$(z,String(P.get(z)))))}else E!=this.titleCloseEl_||R.keyCode!=32&&R.key!=" "||pGz(this);if(A||Y)R.stopPropagation(),R.preventDefault();A&&this.setVisible(!1)};
var L$=function(R,A){this.type="dialogselect";this.key=R;this.caption=A};
_.Pb(L$,_.r4);var qd=function(R){wb.call(this);R||Sp();this.cancelButton_=this.JSC$10168_element_=this.defaultButton_=null};
_.Pb(qd,wb);_.l=qd.prototype;_.l.clear=function(){wb.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.l.set=function(R,A,Y,P){wb.prototype.set.call(this,R,A);Y&&(this.defaultButton_=R);P&&(this.cancelButton_=R);return this};
_.l.addButton=function(R,A,Y){return this.set(R.key,R.caption,A,Y)};
_.l.render=function(){if(this.JSC$10168_element_){_.zO(this.JSC$10168_element_,yZV);var R=Sp(this.JSC$10168_element_);this.forEach(function(A,Y){A=R.JSC$9321_createDom("BUTTON",{name:Y},A);Y==this.defaultButton_&&(A.className="goog-buttonset-default");this.JSC$10168_element_.appendChild(A)},this)}};
_.l.decorate=function(R){if(R&&R.nodeType==1){this.JSC$10168_element_=R;R=$t("BUTTON",this.JSC$10168_element_);for(var A,Y,P,E=0;A=R[E];E++)if(Y=A.name||A.id,P=MGS(A)||A.value,Y){var z=E==0;this.set(Y,P,z,A.name=="cancel");z&&_.Ew(A,"goog-buttonset-default")}}};
_.l.getElement=function(){return this.JSC$10168_element_};
var K3H={key:"ok",caption:"OK"},W3S={key:"cancel",caption:"Cancel"},BMS={key:"yes",caption:"Yes"},aFN={key:"no",caption:"No"},CBS={key:"save",caption:"Save"},hsA={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new qd).addButton(K3H,!0,!0),(new qd).addButton(K3H,!0).addButton(W3S,!1,!0),(new qd).addButton(BMS,!0).addButton(aFN,!1,!0),(new qd).addButton(BMS).addButton(aFN,!0).addButton(W3S,!1,!0),(new qd).addButton(hsA).addButton(CBS).addButton(W3S,!0,!0));_.Pb(zsI,oX);_.Pb(in6,kt);var o_b=_.Z7(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),k5S=_.Z7(["//apis.google.com/js/rpc.js"]),JZ8=_.Jr(o_b),VXq=_.Jr(k5S),xz8=null;var GZ=function(R,A){_.SS.call(this);this.JSC$10177_element_=R;R=_.dM(this.JSC$10177_element_)?this.JSC$10177_element_:this.JSC$10177_element_?this.JSC$10177_element_.body:null;this.isRtl_=!!R&&_.nnz(R);this.listenKey_=_.KC(this.JSC$10177_element_,_.xB?"DOMMouseScroll":"mousewheel",this,A)};
_.Pb(GZ,_.SS);GZ.prototype.handleEvent=function(R){var A=0,Y=0,P=R.event_;P.type=="mousewheel"?(R=G5b(-P.wheelDelta),P.wheelDeltaX!==void 0?(A=G5b(-P.wheelDeltaX),Y=G5b(-P.wheelDeltaY)):Y=R):(R=P.detail,R>100?R=3:R<-100&&(R=-3),P.axis!==void 0&&P.axis===P.HORIZONTAL_AXIS?A=R:Y=R);typeof this.maxDeltaX_==="number"&&(A=_.Sv(A,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(Y=_.Sv(Y,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(A=-A);A=new ZnG(R,P,A,Y);this.dispatchEvent(A)};
var G5b=function(R){return _.cb&&(_.vGP||nGl)&&R%40!=0?R:R/40};
GZ.prototype.disposeInternal=function(){GZ.superClass_.disposeInternal.call(this);XS(this.listenKey_);this.listenKey_=null};
var ZnG=function(R,A,Y,P){_.Du.call(this,A);this.type="mousewheel";this.detail=R;this.deltaX=Y;this.deltaY=P};
_.Pb(ZnG,_.Du);_.qh=function(R){var A="instance_";if(R.instance_&&R.hasOwnProperty(A))return R.instance_;A=new R;return R.instance_=A};var NMP;var tXH=_.Z7(["https://about:blank"]),wGz=_.Z7(['javascript:""']),uXN=_.Z7(["about:blank"]);_.Pb(RN,zsI);_.l=RN.prototype;_.l.JSC$10185_url_="";_.l.JSC$10185_iframe_=null;_.l.iframeLoaded_=!1;_.l.loadedFired_=!1;_.l.callback_=function(){};
_.l.enterDocument=function(){RN.superClass_.enterDocument.call(this);MXl(this.getBackgroundElement(),kP(this))};
_.l.render=function(R){var A=this;RN.superClass_.render.call(this,R);this.useGapi_?uNN(this.iframeManager_,window).then(function(){return es7(A)}).then(null,function(){A.callback_({action:"error"})}):qFG(this)};
var es7=function(R){var A=R.JSC$10134_dom_.JSC$9321_createDom("div",["picker-dialog-content","picker-frame"]);_.dz(A,!1);R.getContentElement().appendChild(A);return e4A(R.iframeManager_,A,function(Y){var P=Vcz(Y["iframe-command"]);switch(P.getCommand()){case 1:Y=R.callback_;P=_.cG(P,xy,2);var E="";switch(P.getStatus()){case 2:E="cancel";break;case 1:E="picked";break;case 3:E="error"}var z=_.OU(P,Hb,2,_.M_(t2V));P=z.length===0?{action:E}:SKA(z,E,_.cG(P,McA,7));Y.call(R,P);R.setVisible(!1);break;case 4:F3N(R);
R.callback_({action:"loaded"});break;case 7:case 8:Y=R.callback_;a:{E=P.getCommand();z=_.cG(P,xy,2);switch(E){case 7:E="uploadScheduled";break;case 8:E="uploadStateChange";break;default:P={};break a}P=_.OU(z,Hb,2,_.M_(t2V));if(P.length===0)P={action:E};else{var c=_.cG(z,McA,7);z=c&&_.X1(c,1);c=TrA(c);P=gSA(P,E,z,c)}}Y.call(R,P)}},R.JSC$10185_url_,R.targetId_,R.rpcToken_).then(function(Y){R.JSC$10185_iframe_=Y.getIframeEl();
L38(R);_.dz(R.JSC$10185_iframe_.parentElement,!0);_.Ew(R.getElement(),"picker-dialog");dzE(R);return Y})},qFG=function(R){R.JSC$10185_iframe_=R.JSC$10134_dom_.JSC$9321_createDom("IFRAME",{id:R.targetId_,
name:R.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.Lq(R.JSC$10185_iframe_,RyE(R));_.Ew(R.getElement(),"picker-dialog");R.getContentElement().appendChild(R.JSC$10185_iframe_);kP(R).listen(R.JSC$10185_iframe_,"load",function(){return void L38(R)});
R.JSC$10185_iframe_.src=R.JSC$10185_url_;dzE(R)},YaH=function(R){A$G(R,(0,_.Wv)(function(A){A.setAuthToken(this.targetId_,this.rpcToken_)},R))},dzE=function(R){var A=_.q_(_.eK(R.JSC$10185_url_),"title");
A&&R.setTitle(A)},RyE=function(R){return _.VPP("Internet Explorer")>=7&&_.iJ(R.JSC$10185_url_,"https")?_.Jr(tXH):_.lu?_.Jr(wGz):_.Jr(uXN)},L38=function(R){YaH(R);
R.iframeLoaded_=!0;R.JSC$10185_iframe_.tabIndex=0;R.isVisible()&&R.focus()};
RN.prototype.handleKeydown_=function(R){R.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),R.stopPropagation(),R.preventDefault())};
var A$G=function(R,A){var Y=R.JSC$10183_gadgetsDomHelper_;cZl(function(){A(Y.getWindow().gadgets.rpc)},Y)};
RN.prototype.setUrl=function(R){R=_.LJ(new _.dq(R),"rpcService",this.targetId_);_.LJ(R,"rpctoken",this.rpcToken_);_.Md(R,"rpctoken="+this.rpcToken_);_.id(R,"https");this.JSC$10185_url_=R.toString();this.JSC$10185_iframe_&&(this.JSC$10185_iframe_.src=this.JSC$10185_url_)};
var PjH=function(R,A){R.callback_=A;A$G(R,(0,_.Wv)(function(Y){Y.register(this.targetId_,(0,_.Wv)(this.handlePickerAction_,this))},R))};
RN.prototype.handlePickerAction_=function(R){var A=R.action;A=="loaded"&&(this.loadedFired_=!0,EaD(this,new E_P(this.isVisible())),zyz(this),F3N(this),kP(this).unlisten(this.JSC$10134_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10185_iframe_.tabIndex=0);A!="picked"&&A!="cancel"||this.setVisible(!1);this.callback_(R)};
var zyz=function(R){R.JSC$10185_appId_&&EaD(R,new PBl(R.JSC$10185_appId_,window.location.protocol+"//"+window.location.host))};
RN.prototype.setRelayUrl=function(R){A$G(this,(0,_.Wv)(function(A){A.setRelayUrl(this.targetId_,R)},this))};
var EaD=function(R,A){R.useGapi_&&AZS(A,R.iframeManager_).then(null,function(){R.callback_({action:"error"})});
A$G(R,(0,_.Wv)(function(Y){Y.call(this.targetId_,"picker",null,A)},R))};
RN.prototype.resizePicker_=function(){var R=hr(this.JSC$10134_dom_.JSC$9319_document_)||window;if(_.q_(_.eK(this.JSC$10185_url_),"ignoreLimits")=="true")R=new _.Dg(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.q_(_.eK(this.JSC$10185_url_),"shadeDialog")=="true"){var A=jBE(this);A=Hf8(A);var Y=_.$2(R);R=Y.width-80;Y=Y.height-40;A&&(R-=A.left?A.left:0,R-=A.right?A.right:0,Y-=A.top?A.top:0,Y-=A.bottom?A.bottom:0);R=new _.Dg(R>0?R:0,Y>0?Y:0)}else(A=this.preferredDialogWidth_)?(A=Math.max(320,
Math.min(1051,A)),(Y=this.preferredDialogHeight_)||(Y=_.$2(R).height*.85),Y=Math.max(480,Math.min(650,Y))):(A=_.$2(R),Y=A.width*.618,Y=Y<A.height?Math.round(Math.max(480,Math.min(650,Y*.85))):Math.round(Math.max(480,Math.min(650,A.height*.85))),A=Math.round(Y/.618)),R=_.$2(R),A=Math.min(A,Math.max(R.width,320)),Y=Math.min(Y,Math.max(R.height,480)),R=new _.Dg(A,Y);_.mgb(this.getContentElement(),R);this.reposition()};
RN.prototype.reposition=function(){if(_.q_(_.eK(this.JSC$10185_url_),"shadeDialog")=="true"){var R=QHb(this.getElement()),A=_.$2(this.JSC$10134_dom_.getWindow());R=Math.floor(A.width/2-R.width/2);A=jBE(this);if(A=Hf8(A)){var Y=A.left?A.left:0;Y+=A.right?A.right:0;R=Math.floor(R-Y/2)}R=R>0?R:0;A=Xr(this.JSC$10134_dom_).y;Gs(this.getElement(),R,A)}else RN.superClass_.reposition.call(this)};
RN.prototype.setVisible=function(R){if(R!=this.isVisible()&&this.autoSizeDialog_){var A=this.JSC$10134_dom_.getWindow();R?(this.resizePicker_(),kP(this).listen(A,"resize",this.resizePicker_),this.iframeLoaded_||kP(this).listen(A,"keydown",this.handleKeydown_)):(kP(this).unlisten(A,"resize",this.resizePicker_),this.iframeLoaded_||kP(this).unlisten(A,"keydown",this.handleKeydown_))}RN.superClass_.setVisible.call(this,R);EaD(this,new E_P(R))};
RN.prototype.focus=function(){RN.superClass_.focus.call(this);if(this.JSC$10185_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10185_iframe_.focus()}catch(R){}};var Br=function(R,A){A=A===void 0?RN:A;kt.call(this,R);this.pickerConstructor=A;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(R=window.location.origin)||(R=window.location.protocol+"//"+window.location.host);R&&this.urlParamMap_.set("origin",R);this.postProcessors_=[]};
_.H(Br,in6);Br.prototype.JSC$10190_disposeOnHide_=!1;
Br.prototype.build=function(){this.JSC$10091_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10091_appId_);this.getRelayUrl()||this.setRelayUrl(_.cm(_.Md(_.O2(_.eK(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var R=new this.pickerConstructor(iKH(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);R.JSC$10167_disposeOnHide_=this.JSC$10190_disposeOnHide_;
R.JSC$10185_appId_=this.JSC$10091_appId_;R.loadedFired_&&zyz(R);PjH(R,this.callback_);return R};
var lAD=function(R){R.urlParamMap_.set("multiselectEnabled","true");return R};
_.l=Br.prototype;_.l.getHeight=function(){return this.dialogHeight_};
_.l.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.l.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.l.getTitle=function(){return this.urlParamMap_.get("title")};
_.l.getWidth=function(){return this.dialogWidth_};
var xj7=function(R){R.JSC$10190_disposeOnHide_=void 0;return R};
Br.prototype.setRelayUrl=function(R){this.urlParamMap_.set("parent",R);return this};
var c$D=function(R,A){R.urlParamMap_.set("selectButtonLabel",A);return R};
Br.prototype.setSize=function(R,A){this.dialogWidth_=R;this.dialogHeight_=A;return this};
Br.prototype.setTitle=function(R){this.urlParamMap_.set("title",R);return this};
var iKH=function(R){R.postProcessors_.length&&R.urlParamMap_.set("pp",JSON.stringify(R.postProcessors_));R.urlParamMap_.set("nav",VxN(R.nav_));var A=new _.dq(R.getBaseUrl());R.urlParamMap_.forEach(function(Y,P){_.LJ(A,P,Y)});
return A};var snA=function(R,A){R.name!==void 0?(this.name=R.name,this.code=OKD[R.name]):(this.code=R=R.code,this.name=M_A(R));_.Rk.call(this,jkb("%s %s",this.name,A))};
_.Pb(snA,_.Rk);var M_A=function(R){var A=_.BO.findKey(OKD,function(Y){return R==Y});
if(A===void 0)throw Error("hb`"+R);return A},db={},OKD=(db.AbortError=3,db.EncodingError=5,db.InvalidModificationError=9,db.InvalidStateError=7,db.NotFoundError=1,db.NotReadableError=4,db.NoModificationAllowedError=6,db.PathExistsError=12,db.QuotaExceededError=10,db.SecurityError=2,db.SyntaxError=8,db.TypeMismatchError=11,db);var N5A=function(R,A){_.r4.call(this,R.type,A);this.event_=R};
_.Pb(N5A,_.r4);var V_Z=function(R,A,Y){Y===void 0&&(Y=R.size);return R.slice?R.slice(A,Y):null};var TMk=new WeakMap,mzS=function(R,A){R=[R];for(var Y=A.length-1;Y>=0;--Y)R.push(typeof A[Y],A[Y]);return R.join("\v")};_.v_I(function(){if(!_.P3.Blob)return!1;var R=new Uint8Array(100);try{var A=new Blob([R])}catch(Y){return!1}return A.size!=100?!1:!0});
var J$H=_.v_I(function(){if(!_.P3.Blob)return!1;var R=new Uint8Array(100);try{var A=new Blob([R])}catch(Y){return!1}return V_Z(A,0,1)===null?!1:!0});_.P3.U3bHHf!=null||(_.P3.U3bHHf=0);_.P3.U3bHHf++;_.y$7=new WeakMap;_.mjD=new WeakMap;var n_k={};var PV=void 0;var rZV=Symbol("pb");var F3S=im("WizInjectionContext_Dispatcher");var eO8=Symbol("qb");var vD,Dr;vD=function(){this.afterRenderCallbacks=null};
_.LrI=Symbol("rb");Dr=function(R){this.props=R;this.__unmounted=!1};
Dr.prototype.didPatch=function(){};
Dr.prototype.didMount=function(){};
Dr.prototype.didUnmount=function(){};
Dr.prototype.didUpdate=function(){};_.W33=im("WizInjectionContext_RootElement");var bnq=im("WizInjectionContext_AppContext"),jBk=im("WizInjectionContext_ModelRootElement"),fFb=im("WizInjectionContext_RendererData"),pGI=im("WizInjectionContext_InjectingConstructor"),K3P=im("WizInjectionContext_AsyncDeps"),BM3={};var G5V=!1;var uXS={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:V2J,enableLazyTsx:JUk,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:NTu,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var x0=Object.assign({},{attributes:{},handleError:function(R){throw R;}},uXS);var T57=Symbol("vb"),HV=Symbol("wb"),aA6=Symbol("xb"),FxI=Symbol("yb"),G$k=WS(function(R){return cV(R)&&T57 in R});var YaP=Symbol("zb"),Rc={},Ryk=(Rc[YaP]=!0,Rc.debugName="[component]",Rc.getComponentStack=function(){for(var R=[],A=this;A;)PjP(A)&&R.push(A.debugName),A=A.parent;return R},Rc.registerSignal=function(){},Rc.registerEffect=function(){},Rc);var O9=null,s9=!1,lAu=1,y$k=Symbol("Db"),vV={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var AH=Symbol("Eb"),Yk=Symbol("Fb"),Vy=Symbol("Gb"),J$P=Object.assign({},vV,{value:AH,dirty:!0,error:null,equal:Eau,kind:"computed",producerMustRecompute:function(R){return R.value===AH||R.value===Yk},
producerRecomputeValue:function(R){if(R.value===Yk)throw Error("Z");var A=R.value;R.value=Yk;var Y=snk(R),P=!1;try{var E=R.computation();M9(null);P=A!==AH&&A!==Vy&&E!==Vy&&R.equal(A,E)}catch(z){E=Vy,R.error=z}finally{V_q(R,Y)}P?R.value=A:(R.value=E,R.version++)}});var vaq=function(){throw Error();};var nak=null,T5k=Object.assign({},vV,{equal:Eau,value:void 0,kind:"signal"});Object.assign({},vV,{value:AH,dirty:!0,error:null,equal:Eau,kind:"linkedSignal",producerMustRecompute:function(R){return R.value===AH||R.value===Yk},
producerRecomputeValue:function(R){if(R.value===Yk)throw Error("Z");var A=R.value;R.value=Yk;var Y=snk(R);try{var P=R.source();var E=R.computation(P,A===AH||A===Vy?void 0:{source:R.sourceValue,value:A});R.sourceValue=P}catch(z){E=Vy,R.error=z}finally{V_q(R,Y)}A!==AH&&E!==Vy&&R.equal(A,E)?R.value=A:(R.value=E,R.version++)}});Object.assign({},vV,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(R){R.schedule!==null&&R.schedule(R.ref)},
hasRun:!1,cleanupFn:function(){}});var r$J=Symbol("Hb"),mf=Symbol("Ib");var T8=Array.isArray;var jn8;var Qnb={},fAu=WxV(Object.assign({},{consumerAllowSignalWrites:!0},Qnb)),nQ=WxV(Object.assign({},{consumerAllowSignalWrites:!0},Qnb));var rE=0,Di=!1,PP=function(){this.queue=new Set};
PP.prototype.remove=function(R){this.queue.delete(R)};
PP.prototype.clear=function(){this.queue.clear()};
var vaZ=function(){PP.apply(this,arguments)};
_.H(vaZ,PP);vaZ.prototype.schedule=function(R){this.queue.add(R)};
vaZ.prototype.flush=function(){if(this.queue.size){Di=!0;try{for(var R=_.x(this.queue),A=R.next();!A.done;A=R.next()){var Y=A.value;this.queue.delete(Y);try{Y.run()}catch(P){gaZ(P)}}}finally{Di=!1}}};
var na7=new vaZ,E0=function(){PP.apply(this,arguments)};
_.H(E0,PP);var HKE=function(){E0.apply(this,arguments)};
_.H(HKE,E0);HKE.prototype.schedule=function(R){R.hasRun?this.queue.add(R):R.run()};
HKE.prototype.flush=function(){if(this.queue.size)if(x0.flushRenderEffectsDuringRender){var R=this.queue;this.queue=new Set;ZK3(R)}else ZK3(this.queue)};
var pj3=new HKE,r$8=function(){E0.apply(this,arguments)};
_.H(r$8,E0);r$8.prototype.schedule=function(R){var A=this;return _.O(function(Y){if(Y.nextAddress==1)return R.hasRun?Y.jumpTo(2):Y.yield(Promise.resolve(),3);if(Y.nextAddress!=2)return R.run(),Y.return();A.queue.add(R);_.XH(Y)})};
r$8.prototype.flush=function(){var R=this;return _.O(function(A){if(A.nextAddress==1)return R.queue.size?A.yield(Promise.resolve(),2):A.return();ZK3(R.queue);_.XH(A)})};
var Cjq=new r$8,DjZ=function(){E0.apply(this,arguments)};
_.H(DjZ,E0);DjZ.prototype.schedule=function(R){this.queue.add(R)};
DjZ.prototype.flush=function(){this.queue.size&&ZK3(this.queue)};
var B5l=new DjZ,oau=[pj3,na7,B5l,Cjq],UjA=[pj3,B5l,Cjq],$jS=[];nak=function(){k$S();for(var R=_.x($jS),A=R.next();!A.done;A=R.next())A=A.value,A()};
var gaZ=E6;_.XF=Symbol("Nb");var $0=null,u8S,eyk=null,qaP;var zf={},Xj8=Object.assign({},vV,(zf[T57]=!0,zf.effectType=HV,zf.isResettableContext=!0,zf.hasRun=!1,zf.effectFn=null,zf.consumerIsAlwaysLive=!0,zf.consumerAllowSignalWrites=!0,zf.consumerMarkedDirty=hyk,zf.kind="effect",zf.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(s9)throw Error("Ob");this.dirty=!1;if(!this.hasRun||xjk(this)){this.hasRun=!0;IF6(this);var R=_.E9(this),A=snk(this);qFb("effectRun",this.debugName);try{WV(this.effectFn,this.componentStack,this)}catch(Y){throw x0.enableContextBasedComponentStacks&&
KX(Y),Y;}finally{L3J("effectRun",this.debugName),V_q(this,A),_.E9(R)}}}},zf.componentStack=void 0,zf.debugName="[effect]",zf[Symbol.dispose]=function(){if(N9(this))for(var R=this.producers;R!==void 0;)R=N5k(R);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;R=_.x(UjA);for(var A=R.next();!A.done;A=R.next())A.value.remove(this);SFI(this)},zf));var ROI=Object.assign({},Xj8,{effectType:aA6});var AwP=Symbol("Pb");var Y_8=Object.assign({},Xj8,{effectType:HV});var Bvu=new Set("allowfullscreen allowtransparency async autofocus autoplay checked controls default defer disabled disableremoteplayback formnovalidate hidden inert ismap itemscope jsshadow jsslot loop multiple muted nomodule novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var zO6={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,coords:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,
id:10,inert:1,ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,usemap:1,valign:1,value:1,width:1,wrap:1},Eck=
{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}]}},tSq={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},xKI=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],lNJ={"*":{async:1,dir:0,loading:2,target:3}};var Saq=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,iU={},Ogq=(iU[1]=null,iU[2]=function(R,A){return A instanceof ub?qL(A):hb.toString()},iU[3]=function(R,A){return pq(A)?_.Ff(A):Saq.test(String(A))?String(A):hb.toString()},iU[4]=function(R,A){return A instanceof Sc?_.Kq(A):hb.toString()},iU[5]=function(R,A){return String(A)},iU[7]=null,iU[8]=null,iU[10]=null,iU);var i0S=Symbol("Sb");var gQ6=function(R){var A=IAb,Y=R,P="",E="",z=1;R<0&&(R=-R);if(R===Infinity)R=(Infinity*Math.sign(Y)).toString();else{for(var c=0;c<KxH.length;c++){var M=KxH[c];z=A[M];if(R>=z||z<=1&&R>.1*z){P=M;break}}P?(P+="B",E=" "):z=1;R=Math.round(Y/z*10)/10+E+P}return R},KxH="Y Z E P T G M K  m u n".split(" "),IAb={"":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};_.Wxb=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 se={};RegExp.prototype.hasOwnProperty("sticky");var Cy3=function(R){R=String(R);for(var A=function(P,E,z){for(var c=Math.min(E.length-z,P.length),M=0;M<c;M++){var N=E[z+M];if(P[M]!==("A"<=N&&N<="Z"?N.toLowerCase():N))return!1}return!0},Y=0;(Y=R.indexOf("<",Y))!=-1;){if(A("\x3c/script",R,Y)||A("\x3c!--",R,Y))return"zSoyz";
Y+=1}return R};var k0={default:"__default"};var ywl=Object.prototype.hasOwnProperty;NvI.prototype=Object.create(null);var Yc=Q$q();var YW=null;var Kek=function(R){this.created=[];this.deleted=[];this.node=R};var WeI=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var R=this,A=R;R;)A=R,R=R.parentNode;return A};var gcu=function(R,A){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=R;this.key=A;this.text=void 0};var eq=null,q9=null,wE=null,dE=null,UKJ=[],DKk=Hg3,R1=[],Av=[],z8q=function(R){return j$J(function(A,Y,P){wE=q9=A;q9=null;Y(P);rwk(null);q9=wE;wE=wE.parentNode;return A},R)}(),Es3=function(R){return j$J(function(A,Y,P){var E={nextSibling:A};
q9=E;Y(P);wE&&rwk(A.nextSibling);return E===q9?null:q9},R)}();var PD=[],fNq=0;var Ee=new NvI;var fC=new NvI;var jnf=Q$q(),kRl=jnf[k0.default],ocP=jnf.style,aN3=["focusin","focusout"],tyq="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var KrS=function(){},QKJ=function(){},peP=function(){},jKI=function(){};var iI=Symbol("$b");var dKS,LeP=q_q;var yI=Symbol("ac");var fZS=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(" ")),
bOk=new Set(["a","font","script","style","title"]);var Jv={setUp:sKk,tearDown:sKk,log:sKk,logNodeRange:sKk,graft:function(R,A){A()}};var HD={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var nhP=null,ru=function(R,A){Dr.call(this,R);var Y=this;this.functionComponent=A;this.hooks=[];this.hookCounter=0;this.disposeEffects=fX(function(P){Y.effectContext=P;_.bm(function(){r_k(Y,Y.el)})},x0.alwaysTrackContexts||!!PV)};
_.H(ru,Dr);ru.prototype.render=function(R){var A=nhP;nhP=this;this.hookCounter=0;var Y=M9(nQ),P=_.E9(this.effectContext);try{return qFb("render",this.componentName),this.functionComponent(R)}finally{L3J("render",this.componentName),_.E9(P),M9(Y),nhP=A}};
_.Yh.Object.defineProperties(ru.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return t_V(this.functionComponent)}}});var Frk=Symbol("oc"),SPk=function(R,A,Y){this.afterRenderCallbacks=null;this.kind=R;this.props=A;this.children=Y};
_.H(SPk,vD);SPk.prototype.render=function(){var R=Xek(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var A=_.x(this.afterRenderCallbacks),Y=A.next();!Y.done;Y=A.next())Y=Y.value,R=Y(R);return R};
SPk.prototype.getChildren=function(){return this.children};var aZJ=[];vaq=function(R){throw Error("ob`"+R.debugName);};
(function(){var R=YW;YW=function(A){R==null||R(A);CP6(A)}})();Object.assign({},Xj8,{effectType:HV,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var R=this.elementRef;var A;R.element!=null||(R.element=(A=R.document.getElementById(R.value))!=null?A:void 0);R=R.element;for(A=this.attributes;A;){var Y=A.signal();Y!==A.prevValue&&(A.prevValue=Y,A.namespace===1?R[A.name]=Y:Bvu.has(A.name)?h6(R,A.name,Y?"":null):h6(R,A.name,Y));A=A.next}}});Object.assign({},Xj8,{effectType:HV,hasRun:!0});_.J.debugName="RlDudd";var hPk={nonNullableCondIsNull:function(){return Error("tc")}};var weP=function(){this.map=new Map};
weP.prototype.push=function(R,A){var Y=this.map;Y.has(R)&&(this.multi||(this.multi=new Map),this.multi.set(A,Y.get(R)));Y.set(R,A)};
weP.prototype.pop=function(R){var A=this.map,Y=A.get(R),P;Y!==void 0&&((P=this.multi)==null?0:P.has(Y))?(A.set(R,this.multi.get(Y)),this.multi.delete(Y)):A.delete(R);return Y};_.Ue.debugName="nsTGHd";_.$W.debugName="tbhMcf";_.Xc.debugName="zyMFzb";_.SO.debugName="vI1rtf";_.RY6={OUT_OF_ORDER_HOOK_CALL:function(R){return Error("uc`"+R)},
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_ACCESSED_DURING_RENDER:function(R,A){return Error("yc`"+((A===void 0?0:A)?"IDOM":"Reactive")+"`"+(I1(R)?R.description:R))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(R,A){return Error("zc`"+(I1(R)?R.description:R)+"`"+A)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(R){return Error("Ac`"+(I1(R)?R.description:R))},
USE_ELEMENT_NOT_ASSIGNED:function(R){return Error("Bc`"+(I1(R)?R.description:R))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(R){return Error("Cc`"+(I1(R)?R.description:R))}};dKS=IZS;var xT8=Symbol("Dc");gh3({beforeRender:function(R){var A=_.E9(R.effectContext);try{var Y;((Y=R.__syncEffects)==null?0:Y.length)&&MFJ(R.__syncEffects)}finally{_.E9(A)}},
didPatch:function(R){var A=_.E9(R.effectContext);try{var Y;((Y=R.__syncEffects)==null?0:Y.length)&&MFJ(R.__syncEffects)}finally{_.E9(A)}},
didUnmount:function(R){var A;((A=R.hooks)==null?0:A.length)&&R.hooks.forEach(Ojk)}});var bKS,fAD,pjS;bKS=_.P3.window;_.Fc=(bKS==null?void 0:(fAD=bKS.yt)==null?void 0:fAD.config_)||(bKS==null?void 0:(pjS=bKS.ytcfg)==null?void 0:pjS.data_)||{};_.PG("yt.config_",_.Fc);var Fxz={},yg6=[];_.XN=function(R){var A=_.Ge.apply(1,arguments);var Y=Error.call(this,R);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.args=[].concat(_.py(A));Object.setPrototypeOf(this,this.constructor.prototype)};
_.H(_.XN,Error);var SuJ=function(R,A,Y){this.actionName=R;this.optionalAction=A===void 0?!1:A;this.args=Y===void 0?null:Y;this.returnValue=[]};_.lU=function(R){this.name=R};_.h$=new _.lU("signalAction");var $TS=/^[\w.]*$/,goV={q:!0,search_query:!0},vok=String(Qok);var xk;xk=Symbol("Ec");_.cP=function(R){this.name=R};
_.cP.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var XkS=function(R){this.key=R},jok=function(R){this.deferredKey=R},IMq=function(){var R=this;
this.providers=new Map;this.JSC$10477_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(R.providers)}}};
IMq.prototype.addProvider=function(R){this.providers.set(R.provide,R);var A=this.JSC$10477_deferred.get(R.provide);if(A)try{A.resolver(this.resolve(R.provide))}catch(Y){A.rejector(Y)}};
IMq.prototype.resolve=function(R){return R instanceof jok?B5S(this,R):R instanceof XkS?aAA(this,R.key,[],!0):aAA(this,R,[])};
var B5S=function(R,A){A=A.deferredKey;if(R.JSC$10477_deferred.has(A))return R.JSC$10477_deferred.get(A).promise;var Y={};Y.promise=new Promise(function(P,E){Y.resolver=P;Y.rejector=E});
R.JSC$10477_deferred.set(A,Y);return Y.promise},aAA=function(R,A,Y,P){P=P===void 0?!1:P;
if(Y.indexOf(A)>-1)throw Error("Fc`"+A);if(R.cachedValues.has(A))return R.cachedValues.get(A);if(!R.providers.has(A)){if(P)return;throw Error("Gc`"+A);}P=R.providers.get(A);Y.push(A);if(P.useValue!==void 0)var E=P.useValue;else if(P.useFactory)E=P[xk]?CjZ(R,P[xk],Y):[],E=P.useFactory.apply(P,_.py(E));else if(P.useClass){E=P.useClass;var z=E[xk]?CjZ(R,E[xk],Y):[];E=new (Function.prototype.bind.apply(E,[null].concat(_.py(z))))}else throw Error("Hc`"+A);Y.pop();P.skipCache||R.cachedValues.set(A,E);return E},
CjZ=function(R,A,Y){return A?A.map(function(P){return P instanceof XkS?aAA(R,P.key,Y,!0):aAA(R,P,Y)}):[]};var SCP;var on=new _.cP("ENDPOINT_HANDLER_TOKEN");_.G$=new _.lU("urlEndpoint");var hyE=function(){this.data=[];this.cachedPackedInt52=-1};
hyE.prototype.set=function(R,A){A=A===void 0?!0:A;0<=R&&R<52&&Number.isInteger(R)&&this.data[R]!==A&&(this.data[R]=A,this.cachedPackedInt52=-1)};
hyE.prototype.get=function(R){return!!this.data[R]};
var oaD=function(R){R.cachedPackedInt52===-1&&(R.cachedPackedInt52=R.data.reduce(function(A,Y,P){return A+(Y?Math.pow(2,P):0)},0));
return R.cachedPackedInt52};var wku=function(R){var A=k$N;R=R===void 0?_.Zr("yt.ads.biscotti.lastId_")||"":R;var Y=Object,P=Y.assign,E={};E.dt=hoN;E.flash="0";a:{try{var z=A.JSC$10483_win_.top.location.href}catch(d){z=2;break a}z=z?z===A.doc_.location.href?0:1:2}E=(E.frm=z,E);try{E.u_tz=-(new Date).getTimezoneOffset();try{var c=w4.history.length}catch(d){c=0}E.u_his=c;var M;E.u_h=(M=w4.screen)==null?void 0:M.height;var N;E.u_w=(N=w4.screen)==null?void 0:N.width;var y;E.u_ah=(y=w4.screen)==null?void 0:y.availHeight;var m;E.u_aw=
(m=w4.screen)==null?void 0:m.availWidth;var T;E.u_cd=(T=w4.screen)==null?void 0:T.colorDepth}catch(d){}c=A.JSC$10483_win_;try{var Q=c.screenX;var g=c.screenY}catch(d){}try{var r=c.outerWidth;var I=c.outerHeight}catch(d){}try{var b=c.innerWidth;var p=c.innerHeight}catch(d){}try{var h=c.screenLeft;var L=c.screenTop}catch(d){}try{b=c.innerWidth,p=c.innerHeight}catch(d){}try{var Z=c.screen.availWidth;var w=c.screen.availTop}catch(d){}Q=[h,L,Q,g,Z,w,r,I,b,p];g=Jlk(!1,A.JSC$10483_win_.top);r={};var t=t===
void 0?_.P3:t;I=new hyE;"SVGElement"in t&&"createElementNS"in t.document&&I.set(0);b=azA();b["allow-top-navigation-by-user-activation"]&&I.set(1);b["allow-popups-to-escape-sandbox"]&&I.set(2);t.crypto&&t.crypto.subtle&&I.set(3);"TextDecoder"in t&&"TextEncoder"in t&&I.set(4);t=oaD(I);A=(r.bc=t,r.bih=g.height,r.biw=g.width,r.brdim=Q.join(),r.vis=iQq(A.doc_),r.wgl=!!w4.WebGLRenderingContext,r);Y=P.call(Y,E,A);Y.ca_type="image";R&&(Y.bid=R);return Y},k$N=new function(){var R=window.document;
this.JSC$10483_win_=window;this.doc_=R};
_.PG("yt.ads_.signals_.getAdSignalsString",function(R){return no8(wku(R))});_.YB();navigator.userAgent.indexOf(" (CrKey ");var BHV="XMLHttpRequest"in _.P3?function(){return new XMLHttpRequest}:null;var G$7="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),ZKS=[].concat(_.py(G$7),["client_dev_set_cookie"]);var tFJ={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"},hY3="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(_.py(G$7)),PwJ=!1,ki6=_.uhV,R26=ZjV;var DVb=[{messageFn:function(R){return"Cannot read property '"+R.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(R){return"Cannot call '"+R.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(R){return R.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var t_b={messageWeights:[],callbackWeights:[{callback:lnu,weight:500},{callback:x66,weight:500}]};var wjq=function(){this.callbackWeights=[];this.messageWeights=[]},u8N,r4q=function(){if(!u8N){var R=u8N=new wjq;
R.messageWeights.length=0;R.callbackWeights.length=0;Exk(R,t_b)}return u8N},Exk=function(R,A){A.messageWeights&&R.messageWeights.push.apply(R.messageWeights,A.messageWeights);
A.callbackWeights&&R.callbackWeights.push.apply(R.callbackWeights,A.callbackWeights)};_.Pb(_.gr,_.KJ);_.gr.prototype.subscribe=function(R,A,Y){var P=this.topics_[R];P||(P=this.topics_[R]=[]);var E=this.JSC$10507_key_;this.subscriptions_[E]=R;this.subscriptions_[E+1]=A;this.subscriptions_[E+2]=Y;this.JSC$10507_key_=E+3;P.push(E);return E};
var ey7=function(R){var A=SJ3,Y=!1,P=A.subscribe("handleError",function(E){Y||(Y=!0,this.unsubscribeByKey(P),R.apply(void 0,arguments))},A)};
_.gr.prototype.unsubscribe=function(R,A,Y){if(R=this.topics_[R]){var P=this.subscriptions_;if(R=R.find(function(E){return P[E+1]==A&&P[E+2]==Y}))return this.unsubscribeByKey(R)}return!1};
_.gr.prototype.unsubscribeByKey=function(R){var A=this.subscriptions_[R];if(A){var Y=this.topics_[A];this.publishDepth_!=0?(this.pendingKeys_.push(R),this.subscriptions_[R+1]=function(){}):(Y&&_.ak(Y,R),delete this.subscriptions_[R],delete this.subscriptions_[R+1],delete this.subscriptions_[R+2])}return!!A};
_.gr.prototype.publish=function(R,A){var Y=this.topics_[R];if(Y){var P=Array(arguments.length-1),E=arguments.length,z;for(z=1;z<E;z++)P[z-1]=arguments[z];if(this.async_)for(z=0;z<Y.length;z++)E=Y[z],qaH(this.subscriptions_[E+1],this.subscriptions_[E+2],P);else{this.publishDepth_++;try{for(z=0,E=Y.length;z<E&&!this.isDisposed();z++){var c=Y[z];this.subscriptions_[c+1].apply(this.subscriptions_[c+2],P)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;Y=this.pendingKeys_.pop();)this.unsubscribeByKey(Y)}}return z!=
0}return!1};
var qaH=function(R,A,Y){_.KA(function(){R.apply(A,Y)})};
_.gr.prototype.clear=function(R){if(R){var A=this.topics_[R];A&&(A.forEach(this.unsubscribeByKey,this),delete this.topics_[R])}else this.subscriptions_.length=0,this.topics_={}};
_.gr.prototype.getCount=function(R){if(R){var A=this.topics_[R];return A?A.length:0}R=0;for(A in this.topics_)R+=this.getCount(A);return R};
_.gr.prototype.disposeInternal=function(){_.gr.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var SJ3=new _.gr;var sF=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(sF,_.lb);sF.prototype.getColdHashData=function(){return _.X1(this,3)};
sF.prototype.getHotHashData=function(){return _.X1(this,5)};
sF.prototype.setHotHashData=function(R){return _.IS(this,5,R)};var npq=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(npq,_.lb);var eck=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(eck,_.lb);_.l=eck.prototype;_.l.getDeviceId=function(){return _.X1(this,6)};
_.l.getExperimentIds=function(R){var A=_.wo(this,9,_.EW,3,!0);Zuu(A,R);return A[R]};
_.l.getPlayerType=function(){return _.SR(this,36)};
_.l.setHomeGroupInfo=function(R){return _.DE(this,81,R)};
_.l.clearLocationPlayabilityToken=function(){return _.Mz(this,89)};var QR=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(QR,_.lb);QR.prototype.setKey=function(R){return _.IS(this,1,R)};
QR.prototype.getValue=function(){return K7(this,2,LBP)};
var LBP=[2,3,4,5,6];var LxG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(LxG,_.lb);LxG.prototype.setTrackingParams=function(R){return _.Mz(this,1,_.UA(R,!1))};var qwu=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(qwu,_.lb);var DiJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(DiJ,_.lb);DiJ.prototype.getExperimentIds=function(R){var A=_.wo(this,5,_.VHJ,3,!0);Zuu(A,R);return A[R]};var Hj=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Hj,_.lb);Hj.prototype.getToken=function(){return _.rz(this,2)};
Hj.prototype.setToken=function(R){return _.IS(this,2,R)};var g5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(g5,_.lb);g5.prototype.setSafetyMode=function(R){return _.OF(this,5,R)};var T$=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(T$,_.lb);T$.prototype.setClient=function(R){return _.DE(this,1,R)};var rfJ={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 Hol;_.po=function(){var R=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.P3.addEventListener("beforeinstallprompt",function(A){A.preventDefault();R.deferredInstallPrompt=A});
_.P3.addEventListener("appinstalled",function(){R.appInstalledEventFired=!0},{once:!0})};
Hol=function(){if(!_.P3.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.P3.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.P3.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.P3.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.P3.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(R){return"WEB_DISPLAY_MODE_UNKNOWN"}};var Xrk=function(){this.syncHeaders=!0},Sd8=function(R){var A={},Y=[];
"USER_SESSION_ID"in _.Fc&&Y.push({key:"u",value:_.a1("USER_SESSION_ID")});if(Y=_.qlV(Y))A.Authorization=Y,Y=R=R==null?void 0:R.sessionIndex,Y===void 0&&(Y=Number(_.a1("SESSION_INDEX",0)),Y=isNaN(Y)?0:Y),_.v("voice_search_auth_header_removal")||(A["X-Goog-AuthUser"]=Y.toString()),"INNERTUBE_HOST_OVERRIDE"in _.Fc||(A["X-Origin"]=window.location.origin),R===void 0&&"DELEGATED_SESSION_ID"in _.Fc&&(A["X-Goog-PageId"]=_.a1("DELEGATED_SESSION_ID"));return A};var djf={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var O0=_.Zr("ytglobal.prefsUserPrefsPrefs_")||{},ROz;_.PG("ytglobal.prefsUserPrefsPrefs_",O0);_.M2=function(){this.cookieName=_.a1("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.a1("ALT_PREF_COOKIE_DOMAIN","youtube.com");var R=_.HU.get(this.cookieName,void 0);R&&this.parse(R)};
_.Hk=function(){ROz||(ROz=new _.M2);return ROz};
_.M2.prototype.get=function(R,A){AwH(R);Y_f(R);R=O0[R]!==void 0?O0[R].toString():null;return R!=null?R:A?A:""};
_.M2.prototype.set=function(R,A){AwH(R);Y_f(R);if(A==null)throw Error("Kc");O0[R]=A.toString()};
_.M2.prototype.getFlag=function(R){return!!((PyA("f"+(Math.floor(R/31)+1))||0)&1<<R%31)};
_.rH=function(R,A,Y){R="f"+(Math.floor(A/31)+1);A=1<<A%31;var P=PyA(R)||0;P=Y?P|A:P&~A;P===0?delete O0[R]:(Y=P.toString(16),O0[R]=Y.toString())};
_.M2.prototype.remove=function(R){AwH(R);Y_f(R);delete O0[R]};
_.M2.prototype.save=function(){var R=!0;_.v("web_secure_pref_cookie_killswitch")&&(R=!1);_.rr(this.cookieName,this.dump(),63072E3,this.cookieDomain,R)};
_.M2.prototype.clear=function(){_.BO.clear(O0)};
_.M2.prototype.dump=function(){var R=[],A;for(A in O0)O0.hasOwnProperty(A)&&R.push(A+"="+encodeURIComponent(String(O0[A])));return R.join("&")};
var Y_f=function(R){if(/^f([1-9][0-9]*)$/.test(R))throw Error("Lc`"+R);},AwH=function(R){if(!/^\w+$/.test(R))throw Error("Mc`"+R);
},PyA=function(R){R=O0[R]!==void 0?O0[R].toString():null;
return R!=null&&/^[A-Fa-f0-9]+$/.test(R)?parseInt(R,16):null};
_.M2.prototype.parse=function(R){R=decodeURIComponent(R).split("&");for(var A=0;A<R.length;A++){var Y=R[A].split("="),P=Y[0];(Y=Y[1])&&(O0[P]=Y.toString())}};var m66={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"},Ui6={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},$iJ={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},QaJ={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Vi;_.s0=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Ua=function(R,A,Y){return R.addJob(A,0,Y)};
_.s0.prototype.addLowPriorityJob=function(R,A){return this.addJob(R,1,A)};
_.$H=function(R,A,Y){return R.addJob(A,2,Y)};
_.cC=function(R,A,Y){return R.addJob(A,3,Y)};
_.JM=function(R,A,Y){return R.addJob(A,4,Y)};
Vi=function(R){var A=_.Zr("yt.scheduler.instance.addImmediateJob");A?A(R):R()};
_.s0.prototype.debounce=function(R,A,Y){var P=this,E=0,z=function(){E&&P.cancelJob(E);E=P.addJob(R,A,Y);P.cancelDebouncedJobMap.set(z,E)};
return z};
_.s0.prototype.cancelThrottle=function(R){(R=this.cancelThrottledJobMap.get(R))&&R()};var N2=function(){_.s0.apply(this,arguments)};
_.H(N2,_.s0);_.n6=function(){N2.instance||(N2.instance=new N2);return N2.instance};
N2.prototype.addJob=function(R,A,Y){Y!==void 0&&Number.isNaN(Number(Y))&&(Y=void 0);var P=_.Zr("yt.scheduler.instance.addJob");return P?P(R,A,Y):Y===void 0?(R(),NaN):_.JN(R,Y||0)};
N2.prototype.cancelJob=function(R){if(R===void 0||!Number.isNaN(Number(R))){var A=_.Zr("yt.scheduler.instance.cancelJob");A?A(R):_.mT(R)}};
N2.prototype.start=function(){var R=_.Zr("yt.scheduler.instance.start");R&&R()};
N2.prototype.pause=function(){var R=_.Zr("yt.scheduler.instance.pause");R&&R()};
_.fn=_.n6();_.Sx.prototype.set=function(R,A){A===void 0?this.mechanism.remove(R):this.mechanism.set(R,(0,_.pA)(A))};
_.Sx.prototype.get=function(R){try{var A=this.mechanism.get(R)}catch(Y){return}if(A!==null)try{return JSON.parse(A)}catch(Y){throw"Storage: Invalid value was encountered";}};
_.Sx.prototype.remove=function(R){this.mechanism.remove(R)};var V3=function(R){this.mechanism=R};
_.Pb(V3,_.Sx);var Ecq=function(R){this.data=R},zOA=function(R){return R===void 0||R instanceof Ecq?R:new Ecq(R)};
V3.prototype.set=function(R,A){V3.superClass_.set.call(this,R,zOA(A))};
V3.prototype.getWrapper=function(R){R=V3.superClass_.get.call(this,R);if(R===void 0||R instanceof Object)return R;throw"Storage: Invalid value was encountered";};
V3.prototype.get=function(R){if(R=this.getWrapper(R)){if(R=R.data,R===void 0)throw"Storage: Invalid value was encountered";}else R=void 0;return R};_.Pb(IW,V3);_.igD=function(R){var A=R.creation;R=R.expiration;return!!R&&R<_.YB()||!!A&&A>_.YB()};
IW.prototype.set=function(R,A,Y){if(A=zOA(A)){if(Y){if(Y<_.YB()){IW.prototype.remove.call(this,R);return}A.expiration=Y}A.creation=_.YB()}IW.superClass_.set.call(this,R,A)};
IW.prototype.getWrapper=function(R,A){var Y=IW.superClass_.getWrapper.call(this,R);if(Y)if(!A&&_.igD(Y))IW.prototype.remove.call(this,R);else return Y};var JH=function(){};
JH.prototype.next=function(){return y3};
var y3={done:!0,value:void 0},mw=function(R){return{value:R,done:!1}};
JH.prototype.__iterator__=function(){return this};
_.lN8=function(R){if(R instanceof JH)return R;if(typeof R.__iterator__=="function")return R.__iterator__(!1);if(_.ok(R)){var A=0,Y=new JH;Y.next=function(){for(;;){if(A>=R.length)return y3;if(A in R)return mw(R[A++]);A++}};
return Y}throw Error("Nc");};var xKz=function(R){if(R instanceof Tf||R instanceof Q3||R instanceof vP)return R;if(typeof R.next=="function")return new Tf(function(){return R});
if(typeof R[Symbol.iterator]=="function")return new Tf(function(){return R[Symbol.iterator]()});
if(typeof R.__iterator__=="function")return new Tf(function(){return R.__iterator__()});
throw Error("Oc");},Tf=function(R){this.func_=R};
Tf.prototype.__iterator__=function(){return new Q3(this.func_())};
Tf.prototype[Symbol.iterator]=function(){return new vP(this.func_())};
Tf.prototype.toEs6=function(){return new vP(this.func_())};
var Q3=function(R){this.JSC$10591_iter_=R};
_.H(Q3,JH);Q3.prototype.next=function(){return this.JSC$10591_iter_.next()};
Q3.prototype[Symbol.iterator]=function(){return new vP(this.JSC$10591_iter_)};
Q3.prototype.toEs6=function(){return new vP(this.JSC$10591_iter_)};
var vP=function(R){Tf.call(this,function(){return R});
this.JSC$10594_iter_=R};
_.H(vP,Tf);vP.prototype.next=function(){return this.JSC$10594_iter_.next()};var cwS=function(){};var gx=function(){};
_.Pb(gx,cwS);gx.prototype.getCount=function(){for(var R=0,A=_.x(this),Y=A.next();!Y.done;Y=A.next())R++;return R};
gx.prototype[Symbol.iterator]=function(){return xKz(this.__iterator__(!0)).toEs6()};
gx.prototype.clear=function(){var R=Array.from(this);R=_.x(R);for(var A=R.next();!A.done;A=R.next())this.remove(A.value)};_.Pb(Kw,gx);_.l=Kw.prototype;_.l.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var R=this.storage_;if(R)try{R.setItem("__sak","1");R.removeItem("__sak");var A=!0}catch(Y){A=Y instanceof DOMException&&(Y.name==="QuotaExceededError"||Y.code===22||Y.code===1014||Y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&R&&R.length!==0}else A=!1;this.cachedIsStorageAvailable_=A}return this.cachedIsStorageAvailable_};
_.l.set=function(R,A){n9(this);try{this.storage_.setItem(R,A)}catch(Y){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.l.get=function(R){n9(this);R=this.storage_.getItem(R);if(typeof R!=="string"&&R!==null)throw"Storage mechanism: Invalid value was encountered";return R};
_.l.remove=function(R){n9(this);this.storage_.removeItem(R)};
_.l.getCount=function(){n9(this);return this.storage_.length};
_.l.__iterator__=function(R){n9(this);var A=0,Y=this.storage_,P=new JH;P.next=function(){if(A>=Y.length)return y3;var E=Y.key(A++);if(R)return mw(E);E=Y.getItem(E);if(typeof E!=="string")throw"Storage mechanism: Invalid value was encountered";return mw(E)};
return P};
_.l.clear=function(){n9(this);this.storage_.clear()};
_.l.key=function(R){n9(this);return this.storage_.key(R)};
var n9=function(R){if(R.storage_==null)throw Error("Pc");R.isAvailable()||E6(Error("Pc"))};_.Pb(gbP,Kw);_.Pb(nbJ,Kw);_.Pb(WU,gx);WU.prototype.set=function(R,A){this.mechanism_.set(this.JSC$10609_prefix_+R,A)};
WU.prototype.get=function(R){return this.mechanism_.get(this.JSC$10609_prefix_+R)};
WU.prototype.remove=function(R){this.mechanism_.remove(this.JSC$10609_prefix_+R)};
WU.prototype.__iterator__=function(R){var A=this.mechanism_[Symbol.iterator](),Y=this,P=new JH;P.next=function(){var E=A.next();if(E.done)return E;for(E=E.value;E.slice(0,Y.JSC$10609_prefix_.length)!=Y.JSC$10609_prefix_;){E=A.next();if(E.done)return E;E=E.value}return mw(R?E.slice(Y.JSC$10609_prefix_.length):Y.mechanism_.get(E))};
return P};_.Cn=function(R){this.expiringStorage_=(R=_.Hx8(R))?new IW(R):null;this.JSC$10613_domain_=document.domain||window.location.hostname};
_.Cn.prototype.set=function(R,A,Y,P){Y=Y||31104E3;this.remove(R);if(this.expiringStorage_)try{this.expiringStorage_.set(R,A,Date.now()+Y*1E3);return}catch(z){}var E="";if(P)try{E=escape((0,_.pA)(A))}catch(z){return}else E=escape(A);_.rr(R,E,Y,this.JSC$10613_domain_)};
_.Cn.prototype.get=function(R,A){var Y=void 0,P=!this.expiringStorage_;if(!P)try{Y=this.expiringStorage_.get(R)}catch(E){P=!0}if(P&&(Y=_.HU.get(R,void 0))&&(Y=unescape(Y),A))try{Y=JSON.parse(Y)}catch(E){this.remove(R),Y=void 0}return Y};
_.Cn.prototype.remove=function(R){this.expiringStorage_&&this.expiringStorage_.remove(R);_.V9k(R,"/",this.JSC$10613_domain_)};
_.Cn.prototype.getCreationTime=function(R){return this.expiringStorage_&&(R=(this.expiringStorage_.getWrapper(R)||{}).creation,typeof R==="number")?R:null};var D6J=function(){var R;return function(){R||(R=new _.Cn("ytidb"));return R}}();var $6V;_.bs=[];$6V=!1;var t9V=XKq||SQk;var HP={},OgZ=(HP.AUTH_INVALID="No user identifier specified.",HP.EXPLICIT_ABORT="Transaction was explicitly aborted.",HP.IDB_NOT_SUPPORTED="IndexedDB is not supported.",HP.MISSING_INDEX="Index not created.",HP.MISSING_OBJECT_STORES="Object stores not created.",HP.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",HP.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",HP.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",HP.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",HP.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",HP.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",HP.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",HP),rx={},My8=(rx.AUTH_INVALID="ERROR",rx.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",rx.EXPLICIT_ABORT="IGNORED",
rx.IDB_NOT_SUPPORTED="ERROR",rx.MISSING_INDEX="WARNING",rx.MISSING_OBJECT_STORES="ERROR",rx.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",rx.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",rx.QUOTA_EXCEEDED="WARNING",rx.QUOTA_MAYBE_EXCEEDED="WARNING",rx.UNKNOWN_ABORT="WARNING",rx.INCOMPATIBLE_DB_VERSION="WARNING",rx),DG={},s$Z=(DG.AUTH_INVALID=!1,DG.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,DG.EXPLICIT_ABORT=!1,DG.IDB_NOT_SUPPORTED=!1,DG.MISSING_INDEX=!1,DG.MISSING_OBJECT_STORES=!1,DG.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,DG.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,DG.QUOTA_EXCEEDED=!1,DG.QUOTA_MAYBE_EXCEEDED=!0,DG.UNKNOWN_ABORT=!0,DG.INCOMPATIBLE_DB_VERSION=!1,DG),Cw=function(R,A,Y,P,E){A=A===void 0?{}:A;Y=Y===void 0?OgZ[R]:Y;P=P===void 0?My8[R]:P;E=E===void 0?s$Z[R]:E;_.XN.call(this,Y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:R},A));this.type=R;this.message=Y;this.level=P;this.retryable=E;Object.setPrototypeOf(this,Cw.prototype)};
_.H(Cw,_.XN);var Nvz=function(R,A){Cw.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:A,foundObjectStores:R},OgZ.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Nvz.prototype)};
_.H(Nvz,Cw);var Wc8=function(R,A){var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.index=R;this.objectStore=A;Object.setPrototypeOf(this,Wc8.prototype)};
_.H(Wc8,Error);var jaI=["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 G3=function(R){this.executor=R},kS=function(R){var A=this;
this.state={status:"PENDING"};this.JSC$10641_onFulfilled=[];this.JSC$10641_onRejected=[];R=R.executor;var Y=function(E){if(A.state.status==="PENDING"){A.state={status:"FULFILLED",value:E};E=_.x(A.JSC$10641_onFulfilled);for(var z=E.next();!z.done;z=E.next())z=z.value,z()}},P=function(E){if(A.state.status==="PENDING"){A.state={status:"REJECTED",
reason:E};E=_.x(A.JSC$10641_onRejected);for(var z=E.next();!z.done;z=E.next())z=z.value,z()}};
try{R(Y,P)}catch(E){P(E)}};
kS.all=function(R){return new kS(new G3(function(A,Y){var P=[],E=R.length;E===0&&A(P);for(var z={i$jscomp$468:0};z.i$jscomp$468<R.length;z={i$jscomp$468:z.i$jscomp$468},++z.i$jscomp$468)kS.resolve(R[z.i$jscomp$468]).then(function(c){return function(M){P[c.i$jscomp$468]=M;E--;E===0&&A(P)}}(z)).catch(function(c){Y(c)})}))};
kS.resolve=function(R){return new kS(new G3(function(A,Y){R instanceof kS?R.then(A,Y):A(R)}))};
kS.reject=function(R){return new kS(new G3(function(A,Y){Y(R)}))};
kS.prototype.then=function(R,A){var Y=this,P=R!=null?R:pK8,E=A!=null?A:fnk;return new kS(new G3(function(z,c){Y.state.status==="PENDING"?(Y.JSC$10641_onFulfilled.push(function(){VyH(Y,Y,P,z,c)}),Y.JSC$10641_onRejected.push(function(){JwG(Y,Y,E,z,c)})):Y.state.status==="FULFILLED"?VyH(Y,Y,P,z,c):Y.state.status==="REJECTED"&&JwG(Y,Y,E,z,c)}))};
kS.prototype.catch=function(R){return this.then(void 0,R)};
var VyH=function(R,A,Y,P,E){try{if(R.state.status!=="FULFILLED")throw Error("Sc");var z=Y(R.state.value);z instanceof kS?ywS(R,A,z,P,E):P(z)}catch(c){E(c)}},JwG=function(R,A,Y,P,E){try{if(R.state.status!=="REJECTED")throw Error("Tc");
var z=Y(R.state.reason);z instanceof kS?ywS(R,A,z,P,E):P(z)}catch(c){E(c)}},ywS=function(R,A,Y,P,E){A===Y?E(new TypeError("Uc")):Y.then(function(z){z instanceof kS?ywS(R,A,z,P,E):P(z)},function(z){E(z)})};var U0;U0=window;_.iB=U0.ytcsi&&U0.ytcsi.now?U0.ytcsi.now:U0.performance&&U0.performance.timing&&U0.performance.now&&U0.performance.timing.navigationStart?function(){return U0.performance.timing.navigationStart+U0.performance.now()}:function(){return(new Date).getTime()};var tN=function(R,A){this.JSC$10653_wrapped=R;this.options=A;this.transactionCount=0;this.startedMs=Math.round((0,_.iB)());this.hasUnknownAbortedTransaction=!1},$k=function(){return _.v("idb_immediate_commit")},Q$Z,vcS,Ic,HgS;
tN.prototype.add=function(R,A,Y){return _.Lw(this,[R],{mode:"readwrite",enableRetries:!0,commit:$k()},function(P){return P.objectStore(R).add(A,Y)})};
tN.prototype.clear=function(R){return _.Lw(this,[R],{mode:"readwrite",enableRetries:!0},function(A){return A.objectStore(R).clear()})};
tN.prototype.close=function(){this.JSC$10653_wrapped.close();var R;((R=this.options)==null?0:R.closed)&&this.options.closed()};
tN.prototype.count=function(R,A){return _.Lw(this,[R],{mode:"readonly",enableRetries:!0,commit:$k()},function(Y){return Y.objectStore(R).count(A)})};
var oB=function(R,A,Y){R=R.JSC$10653_wrapped.createObjectStore(A,Y);return new Xt(R)};
tN.prototype.delete=function(R,A){return _.Lw(this,[R],{mode:"readwrite",enableRetries:!0,commit:$k()&&!(A instanceof IDBKeyRange)},function(Y){return Y.objectStore(R).delete(A)})};
var mKq=function(R,A){return _.Lw(R,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(Y){return Y.objectStore("ResponseStore").index("byInterface").delete(A)})};
tN.prototype.get=function(R,A){return _.Lw(this,[R],{mode:"readonly",enableRetries:!0,commit:$k()},function(Y){return Y.objectStore(R).get(A)})};
tN.prototype.getAll=function(R,A,Y){return _.Lw(this,[R],{mode:"readonly",enableRetries:!0},function(P){return P.objectStore(R).getAll(A,Y)})};
tN.prototype.put=function(R,A,Y){return _.Lw(this,[R],{mode:"readwrite",enableRetries:!0,commit:$k()},function(P){return P.objectStore(R).put(A,Y)})};
tN.prototype.objectStoreNames=function(){return Array.from(this.JSC$10653_wrapped.objectStoreNames)};
_.Lw=function(R,A,Y,P){var E,z,c,M,N,y,m,T,Q,g,r,I;return _.O(function(b){switch(b.nextAddress){case 1:var p={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Y==="string"?p.mode=Y:Object.assign(p,Y);E=p;R.transactionCount++;z=E.enableRetries?3:1;c=0;case 2:if(M){b.jumpTo(4);break}c++;N=Math.round((0,_.iB)());_.g2(b,5);y=R.JSC$10653_wrapped.transaction(A,E.mode);p=b.yield;var h=!!E.commit;var L=new wr(y);h=Tv8(L,P,h);return p.call(b,h,7);case 7:return m=b.yieldResult,T=Math.round((0,_.iB)()),
Q$Z(R,N,T,c,void 0,A.join(),E),b.return(m);case 5:Q=_.UT(b);g=Math.round((0,_.iB)());r=bxl(Q,R.JSC$10653_wrapped.name,A.join(),R.JSC$10653_wrapped.version);if((I=r instanceof Cw&&!r.retryable)||c>=z)Q$Z(R,N,g,c,r,A.join(),E),M=r;b.jumpTo(2);break;case 4:return b.return(Promise.reject(M))}})};
Q$Z=function(R,A,Y,P,E,z,c){A=Y-A;E?(E instanceof Cw&&(E.type==="QUOTA_EXCEEDED"||E.type==="QUOTA_MAYBE_EXCEEDED")&&pw("QUOTA_EXCEEDED",{dbName:BU(R.JSC$10653_wrapped.name),objectStoreNames:z,transactionCount:R.transactionCount,transactionMode:c.mode}),E instanceof Cw&&E.type==="UNKNOWN_ABORT"&&(Y-=R.startedMs,Y<0&&Y>=2147483648&&(Y=0),pw("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:z,transactionDuration:A,transactionCount:R.transactionCount,dbDuration:Y}),R.hasUnknownAbortedTransaction=!0),
vcS(R,!1,P,z,A,c.tag),_.fw(E)):vcS(R,!0,P,z,A,c.tag)};
vcS=function(R,A,Y,P,E,z){pw("TRANSACTION_ENDED",{objectStoreNames:P,connectionHasUnknownAbortedTransaction:R.hasUnknownAbortedTransaction,duration:E,isSuccessful:A,tryCount:Y,tag:z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":z})};
tN.prototype.getVersion=function(){return this.JSC$10653_wrapped.version};
tN.prototype.getName=function(){return this.JSC$10653_wrapped.name};
var Xt=function(R){this.JSC$10668_wrapped=R};
Xt.prototype.add=function(R,A){return ZO(this.JSC$10668_wrapped.add(R,A))};
Xt.prototype.autoIncrement=function(){return this.JSC$10668_wrapped.autoIncrement};
Xt.prototype.clear=function(){return ZO(this.JSC$10668_wrapped.clear()).then(function(){})};
var k_=function(R,A,Y){R.JSC$10668_wrapped.createIndex(A,Y,{unique:!1})};
Xt.prototype.count=function(R){return ZO(this.JSC$10668_wrapped.count(R))};
var gcD=function(R,A){return RB(R,{query:A},function(Y){return Y.delete().then(function(){return Y.continue()})}).then(function(){})};
Xt.prototype.delete=function(R){return R instanceof IDBKeyRange?gcD(this,R):ZO(this.JSC$10668_wrapped.delete(R))};
Xt.prototype.get=function(R){return ZO(this.JSC$10668_wrapped.get(R))};
Xt.prototype.getAll=function(R,A){return"getAll"in IDBObjectStore.prototype?ZO(this.JSC$10668_wrapped.getAll(R,A)):nc7(this,R,A)};
var nc7=function(R,A,Y){var P=[];return RB(R,{query:A},function(E){if(!(Y!==void 0&&P.length>=Y))return P.push(E.getValue()),E.continue()}).then(function(){return P})};
Xt.prototype.index=function(R){try{return new SY(this.JSC$10668_wrapped.index(R))}catch(A){if(A instanceof Error&&A.name==="NotFoundError")throw new Wc8(R,this.JSC$10668_wrapped.name);throw A;}};
Xt.prototype.getName=function(){return this.JSC$10668_wrapped.name};
Xt.prototype.keyPath=function(){return this.JSC$10668_wrapped.keyPath};
Xt.prototype.put=function(R,A){return ZO(this.JSC$10668_wrapped.put(R,A))};
var RB=function(R,A,Y){R=R.JSC$10668_wrapped.openCursor(A.query,A.direction);return HgS(R).then(function(P){return anb(P,Y)})},wr=function(R){var A=this;
this.JSC$10676_wrapped=R;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(Y,P){A.JSC$10676_wrapped.addEventListener("complete",function(){Y()});
A.JSC$10676_wrapped.addEventListener("error",function(E){E.currentTarget===E.target&&P(A.JSC$10676_wrapped.error)});
A.JSC$10676_wrapped.addEventListener("abort",function(){var E=A.JSC$10676_wrapped.error;if(E)P(E);else if(!A.aborted){E=Cw;for(var z=A.JSC$10676_wrapped.objectStoreNames,c=[],M=0;M<z.length;M++){var N=z.item(M);if(N===null)throw Error("Vc");c.push(N)}E=new E("UNKNOWN_ABORT",{objectStoreNames:c.join(),dbName:A.JSC$10676_wrapped.db.name,mode:A.JSC$10676_wrapped.mode});P(E)}})})},Tv8=function(R,A,Y){var P=new Promise(function(E,z){try{var c=A(R);
Y&&R.commit();c.then(function(M){E(M)}).catch(z)}catch(M){z(M),R.abort()}});
return Promise.all([P,R.done]).then(function(E){return _.x(E).next().value})};
wr.prototype.abort=function(){this.JSC$10676_wrapped.abort();this.aborted=!0;throw new Cw("EXPLICIT_ABORT");};
wr.prototype.commit=function(){if(!this.aborted){var R,A;(A=(R=this.JSC$10676_wrapped).commit)==null||A.call(R)}};
wr.prototype.objectStore=function(R){R=this.JSC$10676_wrapped.objectStore(R);var A=this.objectStoreCache.get(R);A||(A=new Xt(R),this.objectStoreCache.set(R,A));return A};
var SY=function(R){this.JSC$10678_wrapped=R};
SY.prototype.count=function(R){return ZO(this.JSC$10678_wrapped.count(R))};
SY.prototype.delete=function(R){return _.lB(this,{query:R},function(A){return A.delete().then(function(){return A.continue()})})};
SY.prototype.get=function(R){return ZO(this.JSC$10678_wrapped.get(R))};
SY.prototype.getAll=function(R,A){return"getAll"in IDBIndex.prototype?ZO(this.JSC$10678_wrapped.getAll(R,A)):rwA(this,R,A)};
var rwA=function(R,A,Y){var P=[];return _.lB(R,{query:A},function(E){if(!(Y!==void 0&&P.length>=Y))return P.push(E.getValue()),E.continue()}).then(function(){return P})};
SY.prototype.keyPath=function(){return this.JSC$10678_wrapped.keyPath};
SY.prototype.unique=function(){return this.JSC$10678_wrapped.unique};
_.lB=function(R,A,Y){R=R.JSC$10678_wrapped.openCursor(A.query===void 0?null:A.query,A.direction===void 0?"next":A.direction);return HgS(R).then(function(P){return anb(P,Y)})};
Ic=function(R,A){this.request=R;this.cursor=A};
HgS=function(R){return ZO(R).then(function(A){return A?new Ic(R,A):null})};
Ic.prototype.continue=function(R){this.cursor.continue(R);return HgS(this.request)};
Ic.prototype.delete=function(){return ZO(this.cursor.delete()).then(function(){})};
Ic.prototype.getValue=function(){return this.cursor.value};
Ic.prototype.update=function(R){return ZO(this.cursor.update(R))};var K9=function(R,A){this.name=R;this.options=A;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},DK7;
K9.prototype.openDb=function(R,A,Y){Y=Y===void 0?{}:Y;return h2l(R,A,Y)};
K9.prototype.delete=function(R){R=R===void 0?{}:R;return _.ex(this.name,R)};
DK7=function(R,A){return new Cw("INCOMPATIBLE_DB_VERSION",{dbName:R.name,oldVersion:R.options.version,newVersion:A})};
_.q1=function(R,A){if(!A)throw oW("openWithToken",BU(R.name));return R.open()};
K9.prototype.open=function(){var R=this;if(!this.isCompatible)throw DK7(this);if(this.connectionPromise)return this.connectionPromise;var A,Y=function(){R.connectionPromise===A&&(R.connectionPromise=void 0)},P={blocking:function(z){z.close()},
closed:Y,terminated:Y,upgrade:this.options.upgrade},E=function(){var z,c,M,N,y,m,T,Q,g,r;return _.O(function(I){switch(I.nextAddress){case 1:return c=(z=Error().stack)!=null?z:"",_.g2(I,2),I.yield(R.openDb(R.name,R.options.version,P),4);case 4:for(var b=M=I.yieldResult,p=R.options,h=[],L=_.x(Object.keys(p.objectStores)),Z=L.next();!Z.done;Z=L.next()){Z=Z.value;var w=p.objectStores[Z],t=w.removedAtVersion===void 0?Number.MAX_VALUE:w.removedAtVersion;!(b.JSC$10653_wrapped.version>=w.addedAtVersion)||
b.JSC$10653_wrapped.version>=t||b.JSC$10653_wrapped.objectStoreNames.contains(Z)||h.push(Z)}N=h;if(N.length===0){I.jumpTo(5);break}y=Object.keys(R.options.objectStores);m=M.objectStoreNames();if(R.timesReopenedToFixMissingObjectStore<_.cU("ytidb_reopen_db_retries",0))return R.timesReopenedToFixMissingObjectStore++,M.close(),_.fw(new Cw("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:R.name,expectedObjectStores:y,foundObjectStores:m})),I.return(E());if(!(R.timesDeletedToFixMissingObjectStore<_.cU("ytidb_remake_db_retries",
1))){I.jumpTo(6);break}R.timesDeletedToFixMissingObjectStore++;return I.yield(R.delete(),7);case 7:return _.fw(new Cw("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:R.name,expectedObjectStores:y,foundObjectStores:m})),I.return(E());case 6:throw new Nvz(m,y);case 5:return I.return(M);case 2:T=_.UT(I);if(T instanceof DOMException?T.name!=="VersionError":"DOMError"in self&&T instanceof DOMError?T.name!=="VersionError":!(T instanceof Object&&"message"in T)||T.message!=="An attempt was made to open a database using a lower version than the existing version."){I.jumpTo(8);
break}return I.yield(R.openDb(R.name,void 0,Object.assign({},P,{upgrade:void 0})),9);case 9:Q=I.yieldResult;g=Q.getVersion();if(R.options.version!==void 0&&g>R.options.version+1)throw Q.close(),R.isCompatible=!1,DK7(R,g);return I.return(Q);case 8:throw Y(),T instanceof Error&&!_.v("ytidb_async_stack_killswitch")&&(T.stack=T.stack+"\n"+c.substring(c.indexOf("\n")+1)),bxl(T,R.name,"",(r=R.options.version)!=null?r:-1);}})};
return this.connectionPromise=A=E()};var obJ=new K9("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(R,A){A(1)&&oB(R,"databases",{keyPath:"actualName"})}});var e2J,wKk=new function(){}(new function(){});new _.y2;var UK8=function(R,A){K9.call(this,R,A);this.options=A;FN(R)};
_.H(UK8,K9);var iok=function(R,A){var Y;return function(){Y||(Y=new UK8(R,A));return Y}};
UK8.prototype.openDb=function(R,A,Y){Y=Y===void 0?{}:Y;return(this.options.shared?Afl:RpP)(R,A,Object.assign({},Y))};
UK8.prototype.delete=function(R){R=R===void 0?{}:R;return(this.options.shared?zpk:Yd6)(this.name,R)};var $KZ={},lsu=z5("ytGcfConfig",{objectStores:($KZ.coldConfigStore={addedAtVersion:1},$KZ.hotConfigStore={addedAtVersion:1},$KZ),shared:!1,upgrade:function(R,A){A(1)&&(k_(oB(R,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),k_(oB(R,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Xu7=function(){_.KJ.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var R=_.Zr("yt.gcf.config.hotUpdateCallbacks");R?(this.localHotConfigJobQueue=[].concat(_.py(R)),this.sharedHotConfigJobQueue=R):(this.sharedHotConfigJobQueue=[],_.PG("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.H(Xu7,_.KJ);Xu7.prototype.disposeInternal=function(){for(var R=_.x(this.localHotConfigJobQueue),A=R.next();!A.done;A=R.next()){var Y=this.sharedHotConfigJobQueue;A=Y.indexOf(A.value);A>=0&&Y.splice(A,1)}this.localHotConfigJobQueue.length=0;_.KJ.prototype.disposeInternal.call(this)};var $a=function(){var R=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Xu7;this.TEST_ONLY={initializeConfigDb:function(){R.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return R.coldGlobalConfigGroup},
setHotConfigGroup:function(A){S_S(R,A)},
setHotHashData:function(A){R.setHotHashData(A)},
setColdConfigGroup:function(A){INS(R,A)},
getColdHashData:function(){return R.coldHashData},
getHotHashData:function(){return R.hotHashData},
getHotConfigGroup:function(){return R.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return KeA()},
getExportedHotConfigGroup:function(){return WP()},
getExportedColdHashData:function(){return _.Zr("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.Zr("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){Wez(R)},
resetInstance:function(){R.setHotHashData(void 0);j$8(R);delete $a.instance},
setDebounceTimer:function(A){R.debounceTimer=A},
getDebounceTimer:function(){return R.debounceTimer}}},bgG=function(){if(!$a.instance){var R=new $a;
$a.instance=R}return $a.instance},Fe8=function(R){var A;
_.O(function(Y){if(Y.nextAddress==1)return _.v("start_client_gcf")||_.v("delete_gcf_config_db")?_.v("start_client_gcf")?Y.yield(_.EF(),3):Y.jumpTo(2):Y.return();Y.nextAddress!=2&&((A=Y.yieldResult)&&_.$S()&&!_.v("delete_gcf_config_db")?(R.isConfigDbInitialized=!0,Wez(R)):(fNZ(R),pu7(R)));return _.v("delete_gcf_config_db")?Y.yield(NaS(),0):Y.jumpTo(0)})},X8=function(){var R;
return(R=WP())!=null?R:_.a1("RAW_HOT_CONFIG_GROUP")},BvD=function(R){var A,Y,P,E,z,c;
return _.O(function(M){switch(M.nextAddress){case 1:if(R.hotGlobalConfigGroup)return M.return(WP());if(!R.isConfigDbInitialized)return A=oW("getHotConfig IDB not initialized"),_.tv(A),M.return(Promise.reject(A));Y=Y_();P=_.a1("TIME_CREATED_MS");if(!Y){E=oW("getHotConfig token error");_.tv(E);M.jumpTo(2);break}return M.yield(s4u(Y),3);case 3:if((z=M.yieldResult)&&z.timestamp>P)return S_S(R,z.config),R.setHotHashData(z.hashData),M.return(WP());case 2:pu7(R);if(!(Y&&R.hotGlobalConfigGroup&&R.hotHashData)){M.jumpTo(4);
break}return M.yield(cfk(R.hotGlobalConfigGroup,R.hotHashData,Y,P),4);case 4:return R.hotGlobalConfigGroup?M.return(WP()):(c=new _.XN("Config not available in ytConfig"),_.tv(c),M.return(Promise.reject(c)))}})},CyS=function(R){var A,Y,P,E,z,c;
return _.O(function(M){switch(M.nextAddress){case 1:if(R.coldGlobalConfigGroup)return M.return(KeA());if(!R.isConfigDbInitialized)return A=oW("getColdConfig IDB not initialized"),_.tv(A),M.return(Promise.reject(A));Y=Y_();P=_.a1("TIME_CREATED_MS");if(!Y){E=oW("getColdConfig");_.tv(E);M.jumpTo(2);break}return M.yield(MIJ(Y),3);case 3:if((z=M.yieldResult)&&z.timestamp>P)return INS(R,z.config),aNS(R,z.configData),j$8(R,z.hashData),M.return(KeA());case 2:fNZ(R);if(!(Y&&R.coldGlobalConfigGroup&&R.coldHashData&&
R.configData)){M.jumpTo(4);break}return M.yield(Ook(R.coldGlobalConfigGroup,R.coldHashData,R.configData,Y,P),4);case 4:return R.coldGlobalConfigGroup?M.return(KeA()):(c=new _.XN("Config not available in ytConfig"),_.tv(c),M.return(Promise.reject(c)))}})},Wez=function(R){if(!R.hotGlobalConfigGroup||!R.coldGlobalConfigGroup){if(!Y_()){var A=oW("scheduleGetConfigs");
_.tv(A)}R.initJob||(R.initJob=_.fn.addLowPriorityJob(function(){return _.O(function(Y){switch(Y.nextAddress){case 1:return _.g2(Y,2),Y.yield(BvD(R),4);case 4:_.us(Y,3);break;case 2:_.UT(Y);case 3:return _.g2(Y,5),Y.yield(CyS(R),7);case 7:_.us(Y,6);break;case 5:_.UT(Y);case 6:R.initJob&&(R.initJob=0),_.XH(Y)}})},100))}},c4P=function(R,A,Y){var P,E,z;
return _.O(function(c){switch(c.nextAddress){case 1:if(!_.v("start_client_gcf")){c.jumpTo(0);break}Y&&S_S(R,Y);R.setHotHashData(A);P=Y_();if(!P){c.jumpTo(3);break}if(Y){c.jumpTo(4);break}return c.yield(s4u(P),5);case 5:E=c.yieldResult,Y=(z=E)==null?void 0:z.config;case 4:return c.yield(cfk(Y,A,P),3);case 3:if(Y)for(var M=Y,N=_.x(R.configUpdateService.sharedHotConfigJobQueue),y=N.next();!y.done;y=N.next())y=y.value,y(M);_.XH(c)}})},OiJ=function(R,A,Y){var P,E,z,c;
return _.O(function(M){if(M.nextAddress==1){if(!_.v("start_client_gcf"))return M.jumpTo(0);j$8(R,A);return(P=Y_())?Y?M.jumpTo(4):M.yield(MIJ(P),5):M.jumpTo(0)}M.nextAddress!=4&&(E=M.yieldResult,Y=(z=E)==null?void 0:z.config);if(!Y)return M.jumpTo(0);c=Y.configData;return M.yield(Ook(Y,A,c,P),0)})},Kb6=function(){var R=bgG(),A=(0,_.iB)()-R.debounceTimer;
if(!(R.debounceTimer!==0&&A<_.cU("send_config_hash_timer"))){A=_.Zr("yt.gcf.config.coldConfigData");var Y=_.Zr("yt.gcf.config.hotHashData"),P=_.Zr("yt.gcf.config.coldHashData");A&&Y&&P&&(R.debounceTimer=(0,_.iB)());return{coldConfigData:A,hotHashData:Y,coldHashData:P}}},fNZ=function(R){INS(R,_.a1("RAW_COLD_CONFIG_GROUP"));
j$8(R,_.a1("SERIALIZED_COLD_HASH_DATA"));var A;aNS(R,(A=R.coldGlobalConfigGroup)==null?void 0:A.configData)},pu7=function(R){S_S(R,_.a1("RAW_HOT_CONFIG_GROUP"));
R.setHotHashData(_.a1("SERIALIZED_HOT_HASH_DATA"))},S_S=function(R,A){R.hotGlobalConfigGroup=A;
_.PG("yt.gcf.config.hotConfigGroup",R.hotGlobalConfigGroup||null)},INS=function(R,A){R.coldGlobalConfigGroup=A;
_.PG("yt.gcf.config.coldConfigGroup",R.coldGlobalConfigGroup||null)};
$a.prototype.setHotHashData=function(R){this.hotHashData=R;_.PG("yt.gcf.config.hotHashData",this.hotHashData||null)};
var j$8=function(R,A){R.coldHashData=A;_.PG("yt.gcf.config.coldHashData",R.coldHashData||null)},aNS=function(R,A){R.configData=A;
_.PG("yt.gcf.config.coldConfigData",R.configData||null)},WP=function(){return _.Zr("yt.gcf.config.hotConfigGroup")},KeA=function(){return _.Zr("yt.gcf.config.coldConfigGroup")};var m3={},hOD=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";m3.assign=function(R){for(var A=Array.prototype.slice.call(arguments,1);A.length;){var Y=A.shift();if(Y){if(typeof Y!=="object")throw new TypeError("Yc`"+Y);for(var P in Y)Object.prototype.hasOwnProperty.call(Y,P)&&(R[P]=Y[P])}}return R};
m3.shrinkBuf=function(R,A){if(R.length===A)return R;if(R.subarray)return R.subarray(0,A);R.length=A;return R};
var ocH={arraySet:function(R,A,Y,P,E){if(A.subarray&&R.subarray)R.set(A.subarray(Y,Y+P),E);else for(var z=0;z<P;z++)R[E+z]=A[Y+z]},
flattenChunks:function(R){var A,Y;var P=Y=0;for(A=R.length;P<A;P++)Y+=R[P].length;var E=new Uint8Array(Y);P=Y=0;for(A=R.length;P<A;P++){var z=R[P];E.set(z,Y);Y+=z.length}return E}},kRS={arraySet:function(R,A,Y,P,E){for(var z=0;z<P;z++)R[E+z]=A[Y+z]},
flattenChunks:function(R){return[].concat.apply([],R)}};
m3.setTyped=function(){hOD?(m3.Buf8=Uint8Array,m3.Buf16=Uint16Array,m3.Buf32=Int32Array,m3.assign(m3,ocH)):(m3.Buf8=Array,m3.Buf16=Array,m3.Buf32=Array,m3.assign(m3,kRS))};
m3.setTyped();var GRA=!0;try{new Uint8Array(1)}catch(R){GRA=!1}
var s6q=function(R){var A,Y,P=R.length,E=0;for(A=0;A<P;A++){var z=R.charCodeAt(A);if((z&64512)===55296&&A+1<P){var c=R.charCodeAt(A+1);(c&64512)===56320&&(z=65536+(z-55296<<10)+(c-56320),A++)}E+=z<128?1:z<2048?2:z<65536?3:4}var M=new m3.Buf8(E);for(A=Y=0;Y<E;A++)z=R.charCodeAt(A),(z&64512)===55296&&A+1<P&&(c=R.charCodeAt(A+1),(c&64512)===56320&&(z=65536+(z-55296<<10)+(c-56320),A++)),z<128?M[Y++]=z:(z<2048?M[Y++]=192|z>>>6:(z<65536?M[Y++]=224|z>>>12:(M[Y++]=240|z>>>18,M[Y++]=128|z>>>12&63),M[Y++]=
128|z>>>6&63),M[Y++]=128|z&63);return M};var diP={};diP=function(R,A,Y,P){var E=R&65535|0;R=R>>>16&65535|0;for(var z;Y!==0;){z=Y>2E3?2E3:Y;Y-=z;do E=E+A[P++]|0,R=R+E|0;while(--z);E%=65521;R%=65521}return E|R<<16|0};for(var IB={},jY,Zgq=[],tyZ=0;tyZ<256;tyZ++){jY=tyZ;for(var wu8=0;wu8<8;wu8++)jY=jY&1?3988292384^jY>>>1:jY>>>1;Zgq[tyZ]=jY}IB=function(R,A,Y,P){Y=P+Y;for(R^=-1;P<Y;P++)R=R>>>8^Zgq[(R^A[P])&255];return R^-1};var gM={};gM={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 hpl=[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],k9k=[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],Mzk=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],qdk=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DF=Array(576);Nz(DF);var UF=Array(60);Nz(UF);var QA=Array(512);Nz(QA);var T5=Array(256);Nz(T5);var opP=Array(29);Nz(opP);var G96=Array(30);Nz(G96);var xol,chk,OGJ,lok=!1;var bB;
bB=[new jX(0,0,0,0,function(R,A){var Y=65535;for(Y>R.pending_buf_size-5&&(Y=R.pending_buf_size-5);;){if(R.lookahead<=1){Kn(R);if(R.lookahead===0&&A===0)return 1;if(R.lookahead===0)break}R.strstart+=R.lookahead;R.lookahead=0;var P=R.block_start+Y;if(R.strstart===0||R.strstart>=P)if(R.lookahead=R.strstart-P,R.strstart=P,$_(R,!1),R.strm.avail_out===0)return 1;if(R.strstart-R.block_start>=R.w_size-262&&($_(R,!1),R.strm.avail_out===0))return 1}R.insert=0;if(A===4)return $_(R,!0),R.strm.avail_out===0?3:
4;R.strstart>R.block_start&&$_(R,!1);return 1}),
new jX(4,4,8,4,Rxk),new jX(4,5,16,8,Rxk),new jX(4,6,32,32,Rxk),new jX(4,4,16,16,WG),new jX(8,16,32,32,WG),new jX(8,16,128,128,WG),new jX(8,32,128,256,WG),new jX(32,128,258,1024,WG),new jX(32,258,258,4096,WG)];var iGk={};iGk=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 Ng6=Object.prototype.toString;
zxl.prototype.push=function(R,A){var Y=this.strm,P=this.options.chunkSize;if(this.ended)return!1;var E=A===~~A?A:A===!0?4:0;typeof R==="string"?Y.input=s6q(R):Ng6.call(R)==="[object ArrayBuffer]"?Y.input=new Uint8Array(R):Y.input=R;Y.next_in=0;Y.avail_in=Y.input.length;do{Y.avail_out===0&&(Y.output=new m3.Buf8(P),Y.next_out=0,Y.avail_out=P);R=EwS(Y,E);if(R!==1&&R!==0)return u4N(this,R),this.ended=!0,!1;if(Y.avail_out===0||Y.avail_in===0&&(E===4||E===2))if(this.options.to==="string"){var z=m3.shrinkBuf(Y.output,
Y.next_out);A=z;z=z.length;if(z<65537&&(A.subarray&&GRA||!A.subarray))A=String.fromCharCode.apply(null,m3.shrinkBuf(A,z));else{for(var c="",M=0;M<z;M++)c+=String.fromCharCode(A[M]);A=c}this.chunks.push(A)}else A=m3.shrinkBuf(Y.output,Y.next_out),this.chunks.push(A)}while((Y.avail_in>0||Y.avail_out===0)&&R!==1);if(E===4)return(Y=this.strm)&&Y.state?(P=Y.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?R=nn(Y,-2):(Y.state=null,R=P===113?nn(Y,-3):0)):R=-2,u4N(this,R),this.ended=
!0,R===0;E===2&&(u4N(this,0),Y.avail_out=0);return!0};
var u4N=function(R,A){A===0&&(R.result=R.options.to==="string"?R.chunks.join(""):m3.flattenChunks(R.chunks));R.chunks=[];R.err=A;R.msg=R.strm.msg};var eOf=typeof TextEncoder!=="undefined"?new TextEncoder:null,owk=eOf?function(R){return eOf.encode(R)}:function(R){R=_.IX(R);
for(var A=new Uint8Array(R.length),Y=0;Y<A.length;Y++)A[Y]=R[Y];return A};var Hrk={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},DY8={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var bU=function(R,A){this.version=R;this.args=A};
bU.prototype.serialize=function(){return{version:this.version,args:this.args}};var Tgk=function(R,A){this.topic=R;this.dataClass=A};
Tgk.prototype.toString=function(){return this.topic};var q_Z=_.Zr("ytPubsub2Pubsub2Instance")||new _.gr;_.gr.prototype.subscribe=_.gr.prototype.subscribe;_.gr.prototype.unsubscribeByKey=_.gr.prototype.unsubscribeByKey;_.gr.prototype.publish=_.gr.prototype.publish;_.gr.prototype.clear=_.gr.prototype.clear;_.PG("ytPubsub2Pubsub2Instance",q_Z);var mok=_.Zr("ytPubsub2Pubsub2SubscribedKeys")||{};_.PG("ytPubsub2Pubsub2SubscribedKeys",mok);var vwk=_.Zr("ytPubsub2Pubsub2TopicToKeys")||{};_.PG("ytPubsub2Pubsub2TopicToKeys",vwk);
var Q6l=_.Zr("ytPubsub2Pubsub2IsAsync")||{};_.PG("ytPubsub2Pubsub2IsAsync",Q6l);_.PG("ytPubsub2Pubsub2SkipSubKey",null);var IoS=void 0,XZJ=void 0;var Bg8=_.cU("max_body_size_to_compress",5E5),aoP=_.cU("min_body_size_to_compress",500),FX=!0,ZG3=0,BG=0,G2I=_.cU("compression_performance_threshold_lr",250),tzu=_.cU("slow_compressions_before_abandon_count",4),j6J=!1,bGk=new Map,hx6=1,C58=!0;_.Pb(aB,exJ);aB.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 LeH=function(R,A,Y){Y||(Y=0);var P=R.W_;if(typeof A==="string")for(var E=0;E<16;E++)P[E]=A.charCodeAt(Y)<<24|A.charCodeAt(Y+1)<<16|A.charCodeAt(Y+2)<<8|A.charCodeAt(Y+3),Y+=4;else for(E=0;E<16;E++)P[E]=A[Y]<<24|A[Y+1]<<16|A[Y+2]<<8|A[Y+3],Y+=4;for(A=16;A<80;A++)Y=P[A-3]^P[A-8]^P[A-14]^P[A-16],P[A]=(Y<<1|Y>>>31)&4294967295;A=R.chain_[0];Y=R.chain_[1];E=R.chain_[2];for(var z=R.chain_[3],c=R.chain_[4],M,N,y=0;y<80;y++)y<40?y<20?(M=z^Y&(E^z),N=1518500249):(M=Y^E^z,N=1859775393):y<60?(M=Y&E|z&(Y|E),
N=2400959708):(M=Y^E^z,N=3395469782),M=(A<<5|A>>>27)+M+c+N+P[y]&4294967295,c=z,z=E,E=(Y<<30|Y>>>2)&4294967295,Y=A,A=M;R.chain_[0]=R.chain_[0]+A&4294967295;R.chain_[1]=R.chain_[1]+Y&4294967295;R.chain_[2]=R.chain_[2]+E&4294967295;R.chain_[3]=R.chain_[3]+z&4294967295;R.chain_[4]=R.chain_[4]+c&4294967295};
aB.prototype.update=function(R,A){if(R!=null){A===void 0&&(A=R.length);for(var Y=A-this.blockSize,P=0,E=this.buf_,z=this.inbuf_;P<A;){if(z==0)for(;P<=Y;)LeH(this,R,P),P+=this.blockSize;if(typeof R==="string")for(;P<A;){if(E[z]=R.charCodeAt(P),++z,++P,z==this.blockSize){LeH(this,E);z=0;break}}else for(;P<A;)if(E[z]=R[P],++z,++P,z==this.blockSize){LeH(this,E);z=0;break}}this.inbuf_=z;this.total_+=A}};
aB.prototype.digest=function(){var R=[],A=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var Y=this.blockSize-1;Y>=56;Y--)this.buf_[Y]=A&255,A/=256;LeH(this,this.buf_);for(Y=A=0;Y<5;Y++)for(var P=24;P>=0;P-=8)R[A]=this.chain_[Y]>>P&255,++A;return R};var doS;var p9=function(R){var A=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(m){A.databaseToken=m},
triggerThrottle:function(){A.throttledSend()},
cancelThrottle:function(){A.cancelThrottledSend()},
immediateSend:function(m){return _.O(function(T){return T.yield(A.immediateSend(m),0)})},
requestWithinAgeLimit:function(m,T){return A.requestWithinAgeLimit(m,T)},
retryQueuedRequests:function(){A.retryQueuedRequests()}};
var Y;this.throttleTimeout=(Y=R.throttleTimeout)!=null?Y:100;var P;this.retryMaxAttempts=(P=R.retryMaxAttempts)!=null?P:1;var E;this.requestAgeLimitMs=(E=R.requestAgeLimitMs)!=null?E:2592E6;var z;this.queuedRequestAgeLimitMs=(z=R.queuedRequestAgeLimitMs)!=null?z:12E4;var c;this.retryDelayMs=(c=R.retryDelayMs)!=null?c:5E3;var M;this.databaseToken=(M=R.databaseToken)!=null?M:void 0;this.enableCleaning=!!R.enableCleaning;var N;this.cleaningRate=(N=R.cleaningRate)!=null?N:.1;var y;this.potentialEsfErrorLimit=
(y=R.potentialEsfErrorLimit)!=null?y:10;R.handleError&&(this.handleError=R.handleError);R.handleWarning&&(this.handleWarning=R.handleWarning);R.disableYtIdbTransactions&&(this.disableYtIdbTransactions=R.disableYtIdbTransactions);R.bypassDbTokenDependency&&(this.bypassDbTokenDependency=R.bypassDbTokenDependency);this.getBooleanFlag=R.getBooleanFlag;this.jobManager=R.jobManager;this.logsStore=R.logsStore;this.networkManager=R.networkManager;this.sendFn=R.sendFn;this.onlineEvent=R.onlineEvent;this.offlineEvent=
R.offlineEvent;f9(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&dKN(this)},dKN=function(R){f9(R)&&!R.disableYtIdbTransactions&&(R.initialized=!0,R.enableCleaning&&Math.random()<=R.cleaningRate&&R.logsStore.cleanLogsStore(R.databaseToken),R.retryQueuedRequests(),R.networkManager.isNetworkAvailable()&&R.throttledSend(),R.networkManager.listen(R.onlineEvent,R.throttledSend.bind(R)),R.networkManager.listen(R.offlineEvent,R.cancelThrottledSend.bind(R)))};
_.l=p9.prototype;_.l.writeThenSend=function(R,A){var Y=this;A=A===void 0?{}:A;if(f9(this)&&this.initialized){var P={url:R,options:A,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(P,this.databaseToken).then(function(E){P.id=E;Y.networkManager.isNetworkAvailable()&&Y.immediateSend(P)}).catch(function(E){Y.immediateSend(P);
RPE(Y,E)})}else this.sendFn(R,A)};
_.l.sendThenWrite=function(R,A,Y){var P=this;A=A===void 0?{}:A;if(f9(this)&&this.initialized){var E={url:R,options:A,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(E.skipRetry=Y);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!E.skipRetry){if(!E.skipRetry){var z=A.onError?A.onError:function(){};
A.onError=function(c,M){return _.O(function(N){if(N.nextAddress==1)return N.yield(P.logsStore.set(E,P.databaseToken).catch(function(y){RPE(P,y)}),2);
z(c,M);_.XH(N)})}}this.sendFn(R,A,E.skipRetry)}else this.logsStore.set(E,this.databaseToken).catch(function(c){P.sendFn(R,A,E.skipRetry);
RPE(P,c)})}else this.sendFn(R,A,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&Y)};
_.l.sendAndWrite=function(R,A){var Y=this;A=A===void 0?{}:A;if(f9(this)&&this.initialized){var P={url:R,options:A,timestamp:this.now(),status:"NEW",sendCount:0},E=!1,z=A.onSuccess?A.onSuccess:function(){};
P.options.onSuccess=function(c,M){P.id!==void 0?Y.logsStore.deleteRequest(P.id,Y.databaseToken):E=!0;Y.networkManager.networkStatusHint&&Y.getBooleanFlag&&Y.getBooleanFlag("vss_network_hint")&&Y.networkManager.networkStatusHint(!0);z(c,M)};
this.sendFn(P.url,P.options,void 0,!0);this.logsStore.set(P,this.databaseToken).then(function(c){P.id=c;E&&Y.logsStore.deleteRequest(P.id,Y.databaseToken)}).catch(function(c){RPE(Y,c)})}else this.sendFn(R,A,void 0,!0)};
_.l.throttledSend=function(){var R=this;if(!f9(this))throw Error("ad");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.logsStore.getMostRecentByStatus("NEW",R.databaseToken),2);if(Y.nextAddress!=3)return A=Y.yieldResult,A?Y.yield(R.immediateSend(A),3):(R.cancelThrottledSend(),Y.return());R.intervalJob&&(R.intervalJob=0,R.throttledSend());_.XH(Y)})},this.throttleTimeout))};
_.l.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.l.immediateSend=function(R){var A=this,Y;return _.O(function(P){switch(P.nextAddress){case 1:if(!f9(A))throw Error("bd");if(R.id===void 0){P.jumpTo(2);break}return P.yield(A.logsStore.markAsQueued(R.id,A.databaseToken),3);case 3:(Y=P.yieldResult)||A.handleWarning(Error("cd"));case 2:if(A.requestWithinAgeLimit(R,A.requestAgeLimitMs)){P.jumpTo(4);break}A.handleWarning(Error("dd"));if(R.id===void 0){P.jumpTo(5);break}return P.yield(A.logsStore.deleteRequest(R.id,A.databaseToken),5);case 5:return P.return();
case 4:R.skipRetry||(R=A_f(A,R));if(!R){P.jumpTo(0);break}if(!R.skipRetry||R.id===void 0){P.jumpTo(8);break}return P.yield(A.logsStore.deleteRequest(R.id,A.databaseToken),8);case 8:A.sendFn(R.url,R.options,!!R.skipRetry),_.XH(P)}})};
var A_f=function(R,A){if(!f9(R))throw Error("ed");var Y=A.options.onError?A.options.onError:function(){};
A.options.onError=function(E,z){var c,M,N,y;return _.O(function(m){switch(m.nextAddress){case 1:c=E9S(z);(M=zwk(z))&&R.getBooleanFlag&&R.getBooleanFlag("web_enable_error_204")&&R.handleError(Error("fd"),A.url,z);if(!(R.getBooleanFlag&&R.getBooleanFlag("nwl_consider_error_code")&&c||R.getBooleanFlag&&!R.getBooleanFlag("nwl_consider_error_code")&&R.potentialEsfErrorCounter<=R.potentialEsfErrorLimit)){m.jumpTo(2);break}if(!R.networkManager.sendNetworkCheckRequest){m.jumpTo(3);break}return m.yield(R.networkManager.sendNetworkCheckRequest(),
3);case 3:if(R.networkManager.isNetworkAvailable()){m.jumpTo(2);break}Y(E,z);if(!R.getBooleanFlag||!R.getBooleanFlag("nwl_consider_error_code")||((N=A)==null?void 0:N.id)===void 0){m.jumpTo(6);break}return m.yield(R.logsStore.resetRequest(A.id,R.databaseToken,!1),6);case 6:return m.return();case 2:if(R.getBooleanFlag&&R.getBooleanFlag("nwl_consider_error_code")&&!c&&R.potentialEsfErrorCounter>R.potentialEsfErrorLimit)return m.return();R.potentialEsfErrorCounter++;if(((y=A)==null?void 0:y.id)===void 0){m.jumpTo(8);
break}return A.sendCount<R.retryMaxAttempts?m.yield(R.logsStore.resetRequest(A.id,R.databaseToken,!0,M?!1:void 0),12):m.yield(R.logsStore.deleteRequest(A.id,R.databaseToken),8);case 12:R.jobManager.addLowPriorityJob(function(){R.networkManager.isNetworkAvailable()&&R.throttledSend()},R.retryDelayMs);
case 8:Y(E,z),_.XH(m)}})};
var P=A.options.onSuccess?A.options.onSuccess:function(){};
A.options.onSuccess=function(E,z){var c;return _.O(function(M){if(M.nextAddress==1)return((c=A)==null?void 0:c.id)===void 0?M.jumpTo(2):M.yield(R.logsStore.deleteRequest(A.id,R.databaseToken),2);R.networkManager.networkStatusHint&&R.getBooleanFlag&&R.getBooleanFlag("vss_network_hint")&&R.networkManager.networkStatusHint(!0);P(E,z);_.XH(M)})};
return A};
p9.prototype.requestWithinAgeLimit=function(R,A){R=R.timestamp;return this.now()-R>=A?!1:!0};
p9.prototype.retryQueuedRequests=function(){var R=this;if(!f9(this))throw Error("gd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(A){A&&!R.requestWithinAgeLimit(A,R.queuedRequestAgeLimitMs)?R.jobManager.addLowPriorityJob(function(){return _.O(function(Y){if(Y.nextAddress==1)return A.id===void 0?Y.jumpTo(2):Y.yield(R.logsStore.resetRequest(A.id,R.databaseToken),2);R.retryQueuedRequests();_.XH(Y)})}):R.networkManager.isNetworkAvailable()&&R.throttledSend()})};
var RPE=function(R,A){R.writeError&&!R.networkManager.isNetworkAvailable()?R.writeError(A):R.handleError(A)},f9=function(R){return!!R.databaseToken||R.bypassDbTokenDependency};var iC8;var N0l={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,
startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,
keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529};var YPq={},y7k=z5("ServiceWorkerLogsDatabase",{objectStores:(YPq.SWHealthLog={addedAtVersion:1},YPq),shared:!0,upgrade:function(R,A){A(1)&&k_(oB(R,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var r7V={},HCq=0;var Xck;var Ft=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},uB=function(){if(!Ft.instance){var R=_.Zr("yt.networkRequestMonitor.instance")||new Ft;
_.PG("yt.networkRequestMonitor.instance",R);Ft.instance=R}return Ft.instance};
Ft.prototype.requestComplete=function(R,A){A&&(this.anyRequestHasSucceeded=!0);R=this.removeParams(R);this.requestMap.get(R)||this.requestMap.set(R,A)};
Ft.prototype.isEndpointCFR=function(R){R=this.removeParams(R);return(R=this.requestMap.get(R))?!1:R===!1&&this.anyRequestHasSucceeded?!0:null};
Ft.prototype.removeParams=function(R){return R.split("?")[0]};
Ft.prototype.removeParams=Ft.prototype.removeParams;Ft.prototype.isEndpointCFR=Ft.prototype.isEndpointCFR;Ft.prototype.requestComplete=Ft.prototype.requestComplete;Ft.getInstance=uB;var BP=function(R){_.SS.call(this);var A=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=R!=null?R:{addLowPriorityJob:function(E,z){return setTimeout(E,z)},
cancelJob:function(E){clearTimeout(E)}};
var Y,P;this.isOnline=(P=(Y=window.navigator)==null?void 0:Y.onLine)!=null?P:!0;this.onNavigatorChange=function(){return _.O(function(E){return E.yield(PPz(A),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||Ehq(this)};
_.H(BP,_.SS);BP.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete BP.instance};
BP.prototype.isNetworkAvailable=function(){return this.isOnline};
var Ehq=function(R){R.pollingJob=R.jobManager.addLowPriorityJob(function(){var A;return _.O(function(Y){if(Y.nextAddress==1)return R.isOnline?((A=window.navigator)==null?0:A.onLine)?Y.jumpTo(3):Y.yield(PPz(R),3):Y.yield(PPz(R),3);Ehq(R);_.XH(Y)})},3E4)},PPz=function(R,A){return R.networkRequestPromise?R.networkRequestPromise:R.networkRequestPromise=new Promise(function(Y){var P,E,z,c;
return _.O(function(M){switch(M.nextAddress){case 1:return P=window.AbortController?new window.AbortController:void 0,z=(E=P)==null?void 0:E.signal,c=!1,_.g2(M,2,3),P&&(R.abortTimeoutKey=R.jobManager.addLowPriorityJob(function(){P.abort()},A||2E4)),M.yield(fetch("/generate_204",{method:"HEAD",
signal:z}),5);case 5:c=!0;case 3:_.Ht(M);R.networkRequestPromise=void 0;R.abortTimeoutKey&&(R.jobManager.cancelJob(R.abortTimeoutKey),R.abortTimeoutKey=0);c!==R.isOnline&&(R.isOnline=c,R.isOnline?R.dispatchEvent("networkstatus-online"):R.dispatchEvent("networkstatus-offline"));Y(c);_.D4(M,0);break;case 2:_.UT(M),c=!1,M.jumpTo(3)}})})};var ac=function(){_.SS.call(this);var R=this;this.shouldFlushErrors=!1;BP.instance||(BP.instance=new BP(_.fn));this.sharedNetworkStatusManager=BP.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(R.shouldFlushErrors&&_.v("offline_error_handling")){var A=S5q().get("errors",!0);if(A){for(var Y in A)if(A[Y]){var P=new _.XN(Y,"sent via offline_errors");P.name=A[Y].name;P.stack=A[Y].stack;P.level=A[Y].level;_.hv(P)}S5q().set("errors",{},2592E3,!0)}}})};
_.H(ac,_.SS);var zPH=function(){if(!ac.instance){var R=_.Zr("yt.networkStatusManager.instance")||new ac;_.PG("yt.networkStatusManager.instance",R);ac.instance=R}return ac.instance};
_.l=ac.prototype;_.l.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.l.networkStatusHint=function(R){this.sharedNetworkStatusManager.isOnline=R};
_.l.getWindowStatus=function(){var R=window.navigator.onLine;return R===void 0?!0:R};
_.l.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.l.listen=function(R,A){return this.sharedNetworkStatusManager.listen(R,A)};
_.l.sendNetworkCheckRequest=function(R){R=PPz(this.sharedNetworkStatusManager,R);R.then(function(A){_.v("use_cfr_monitor")&&uB().requestComplete("generate_204",A)});
return R};
ac.prototype.sendNetworkCheckRequest=ac.prototype.sendNetworkCheckRequest;ac.prototype.listen=ac.prototype.listen;ac.prototype.enableErrorFlushing=ac.prototype.enableErrorFlushing;ac.prototype.getWindowStatus=ac.prototype.getWindowStatus;ac.prototype.networkStatusHint=ac.prototype.networkStatusHint;ac.prototype.isNetworkAvailable=ac.prototype.isNetworkAvailable;ac.getInstance=zPH;_.wM=function(R){R=R===void 0?{}:R;_.SS.call(this);var A=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=zPH();var Y=_.Zr("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);Y&&(R.rateLimit?(this.rateLimit=R.rateLimit,Y("networkstatus-online",function(){iOz(A,"publicytnetworkstatus-online")}),Y("networkstatus-offline",function(){iOz(A,"publicytnetworkstatus-offline")})):(Y("networkstatus-online",function(){A.dispatchEvent("publicytnetworkstatus-online")}),Y("networkstatus-offline",
function(){A.dispatchEvent("publicytnetworkstatus-offline")})))};
_.H(_.wM,_.SS);_.wM.prototype.isNetworkAvailable=function(){var R=_.Zr("yt.networkStatusManager.instance.isNetworkAvailable");return R?R.bind(this.nsmInstance)():!0};
_.wM.prototype.networkStatusHint=function(R){var A=_.Zr("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);A&&A(R)};
_.wM.prototype.sendNetworkCheckRequest=function(R){var A=this,Y;return _.O(function(P){Y=_.Zr("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(A.nsmInstance);return _.v("skip_network_check_if_cfr")&&uB().isEndpointCFR("generate_204")?P.return(new Promise(function(E){var z;A.networkStatusHint(((z=window.navigator)==null?void 0:z.onLine)||!0);E(A.isNetworkAvailable())})):Y?P.return(Y(R)):P.return(!0)})};
var iOz=function(R,A){R.rateLimit?R.lastJobTime?(_.fn.cancelJob(R.schedulerJob),R.schedulerJob=_.fn.addLowPriorityJob(function(){R.lastPublicSignalSent!==A&&(R.dispatchEvent(A),R.lastPublicSignalSent=A,R.lastJobTime=(0,_.iB)())},R.rateLimit-((0,_.iB)()-R.lastJobTime))):(R.dispatchEvent(A),R.lastPublicSignalSent=A,R.lastJobTime=(0,_.iB)()):R.dispatchEvent(A)};var bCb,C9=function(){p9.call(this,{logsStore:{cleanLogsStore:V5V,deleteRequest:NUP,getMostRecentByStatus:OCk,markAsQueued:M5b,resetRequest:sZJ,set:c78},networkManager:_.fcu(),handleError:function(R,A,Y){var P,E=Y==null?void 0:(P=Y.error)==null?void 0:P.code;if(E===400||E===415){var z;R=new _.XN(R.message,A,Y==null?void 0:(z=Y.error)==null?void 0:z.code);_.tv(R,void 0,void 0,void 0,!0)}else _.hv(R)},
handleWarning:_.tv,sendFn:W0I,now:_.iB,writeError:Ick,jobManager:_.n6(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.cU("potential_esf_error_limit",10),getBooleanFlag:_.v,disableYtIdbTransactions:!(_.$S()&&_.pc8())});this.initializationPromise=new _.y2;_.v("networkless_immediately_drop_all_requests")&&J7b();zpk("LogsDatabaseV2")};
_.H(C9,p9);_.x47=function(){var R=_.Zr("yt.networklessRequestController.instance");R||(R=new C9,_.PG("yt.networklessRequestController.instance",R),_.v("networkless_logging")&&_.EF().then(function(A){R.databaseToken=A;dKN(R);R.initializationPromise.resolve();R.enableCleaning&&Math.random()<=R.cleaningRate&&R.databaseToken&&TUP(R.databaseToken);_.v("networkless_immediately_drop_sw_health_store")&&lZE(R)}));
return R};
C9.prototype.writeThenSend=function(R,A){A||(A={});A=jZk(R,A);_.$S()||(this.initialized=!1);p9.prototype.writeThenSend.call(this,R,A)};
C9.prototype.sendThenWrite=function(R,A,Y){A||(A={});A=jZk(R,A);_.$S()||(this.initialized=!1);p9.prototype.sendThenWrite.call(this,R,A,Y)};
C9.prototype.sendAndWrite=function(R,A){A||(A={});A=jZk(R,A);_.$S()||(this.initialized=!1);p9.prototype.sendAndWrite.call(this,R,A)};
C9.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var lZE=function(R){var A;_.O(function(Y){if(!R.databaseToken)throw A=oW("clearSWHealthLogsDb"),A;return Y.return(QZV(R.databaseToken).catch(function(P){R.handleError(P)}))})};_.BU8=!1;_.F0k=_.P3.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.BU8};_.PG("ytNetworklessLoggingInitializationOptions",_.F0k);var KK=function(R){var A=this;this.config_=null;R?this.config_=R:VIk()&&(this.config_=_.x_());_.Ua(_.fn,function(){P4k(A)},5E3)};
KK.prototype.isReady=function(){!this.config_&&VIk()&&(this.config_=_.x_());return!!this.config_};
var Y53=function(R,A,Y,P){!_.a1("VISITOR_DATA")&&A!=="visitor_id"&&Math.random()<.01&&_.tv(new _.XN("Missing VISITOR_DATA when sending innertube request.",A,Y,P));if(!R.isReady()){var E=new _.XN("innertube xhrclient not ready",A,Y,P);_.hv(E);throw E;}var z={headers:P.headers||{},method:"POST",postParams:Y,postBody:P.postBody,postBodyFormat:P.postBodyFormat||"JSON",onTimeout:function(){P.onTimeout()},
onFetchTimeout:P.onTimeout,onSuccess:function(T,Q){if(P.onSuccess)P.onSuccess(Q)},
onFetchSuccess:function(T){if(P.onSuccess)P.onSuccess(T)},
onProgress:function(T){if(P.onProgress)P.onProgress(T)},
onError:function(T,Q){if(P.onError)P.onError(Q)},
onFetchError:function(T){if(P.onError)P.onError(T)},
timeout:P.timeout,withCredentials:!0,compress:P.compress};z.headers["Content-Type"]||(z.headers["Content-Type"]="application/json");var c="";(E=R.config_.innertubeHostOverride)&&(c=E);var M=R.config_.innertubeUseThirdPartyAuth||!1,N=_.Is8(M,c,P);Object.assign(z.headers,N);z.headers.Authorization&&!c&&M&&(z.headers["x-origin"]=window.location.origin);var y=_.LQ(c+("/youtubei/"+R.config_.innertubeApiVersion+"/"+A),{alt:"json"}),m=function(T){T=T===void 0?!1:T;var Q;if(P.retry&&c!="www.youtube-nocookie.com"&&
(T||_.v("skip_ls_gel_retry")||z.headers["Content-Type"]!=="application/json"||(Q=Rwb(A,Y,N,M)),Q)){var g=z.onSuccess,r=z.onFetchSuccess;z.onSuccess=function(p,h){A7J(Q);g(p,h)};
Y.onFetchSuccess=function(p,h){A7J(Q);r(p,h)}}try{if(T&&P.retry&&!P.networklessOptions.bypassNetworkless)z.method="POST",P.networklessOptions.writeThenSend?_.x47().writeThenSend(y,z):_.x47().sendAndWrite(y,z);
else if(P.compress){var I=!P.networklessOptions.writeThenSend;if(z.postBody){var b=z.postBody;typeof b!=="string"&&(b=JSON.stringify(z.postBody));k26(y,b,z,_.QQ,I)}else k26(y,JSON.stringify(z.postParams),z,eYb,I)}else _.v("web_all_payloads_via_jspb")?_.QQ(y,z):eYb(y,z)}catch(p){if(p.name==="InvalidAccessError")Q&&(A7J(Q),Q=0),_.tv(Error("hd"));else throw p;}Q&&_.Ua(_.fn,function(){P4k(R)},5E3)};
_.ack()?qQk().then(function(T){m(T)}):m(!1)};var LC6=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(LC6,_.lb);var c_S=0,hw6=_.cb?"webkit":_.xB?"moz":_.lu?"ms":mZS?"o":"";_.PG("ytDomDomGetNextId",_.Zr("ytDomDomGetNextId")||function(){return++c_S});var OOD={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},A$=function(R){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(R=
R||window.event){this.event=R;for(var A in R)A in OOD||(this[A]=R[A]);this.scale=R.scale;this.rotation=R.rotation;var Y=R.target||R.srcElement;Y&&Y.nodeType==3&&(Y=Y.parentNode);this.target=Y;var P=R.relatedTarget;if(P)try{P=P.nodeName?P:null}catch(E){P=null}else this.type=="mouseover"?P=R.fromElement:this.type=="mouseout"&&(P=R.toElement);this.relatedTarget=P;this.clientX=R.clientX!=void 0?R.clientX:R.pageX;this.clientY=R.clientY!=void 0?R.clientY:R.pageY;this.keyCode=R.keyCode?R.keyCode:R.which;
this.charCode=R.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=R.altKey;this.ctrlKey=R.ctrlKey;this.shiftKey=R.shiftKey;this.metaKey=R.metaKey;this.pageX_=R.pageX;this.pageY_=R.pageY}}catch(E){}},M0z=function(R){if(document.body&&document.documentElement){var A=document.body.scrollTop+document.documentElement.scrollTop;
R.pageX_=R.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);R.pageY_=R.clientY+A}};
A$.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
A$.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
A$.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Rn=_.P3.ytEventsEventsListeners||{};_.PG("ytEventsEventsListeners",Rn);var wck=_.P3.ytEventsEventsCounter||{count:0};_.PG("ytEventsEventsCounter",wck);var uSu=_.U3(function(){var R=!1;try{var A=Object.defineProperty({},"capture",{get:function(){R=!0}});
window.addEventListener("test",null,A)}catch(Y){}return R});_.Pb(Pj,_.KJ);Pj.prototype.onMouseMove_=function(R){R.pageX_===void 0&&M0z(R);var A=R.pageX_;R.pageY_===void 0&&M0z(R);this.position_=new _.Cs(A,R.pageY_)};
Pj.prototype.checkPosition_=function(){if(this.position_){var R=(0,_.iB)();if(this.previousTime_!=0){var A=this.previousPosition_,Y=this.position_,P=A.x-Y.x;A=A.y-Y.y;P=Math.sqrt(P*P+A*A)/(R-this.previousTime_);this.cycles_[this.index_]=Math.abs((P-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(Y=A=0;Y<4;Y++)A+=this.cycles_[Y]||0;A>=3&&this.callback_();this.previousVelocity_=P}this.previousTime_=R;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Pj.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.ewu(this.mouseListenerKey_)};var Rck={};var xVk=new _.lU("rawColdConfigGroup");var lkq=new _.lU("rawHotConfigGroup");var sKE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(sKE,_.lb);var quk=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(quk,_.lb);var DA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R,500)};
_.H(DA,_.lb);DA.prototype.getPayloadCase=function(){return _.gA(this,NqA)};
DA.prototype.getContext=function(){return _.cG(this,quk,33)};
var NqA=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353,
354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,527,528,529];var A4J=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(A4J,_.lb);var ILb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(ILb,_.lb);ILb.prototype.setVideoId=function(R){return mx(this,1,KBk,QN(R))};
ILb.prototype.getPlaylistId=function(){return _.rz(this,nK(this,KBk,2))};
var KBk=[1,2];var uW8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(uW8,_.lb);uW8.prototype.getContext=function(){return _.cG(this,T$,1)};
uW8.prototype.getTier=function(){return _.SR(this,7)};var V0H,xa,cj;V0H=_.P3.ytPubsubPubsubInstance||new _.gr;xa=_.P3.ytPubsubPubsubSubscribedKeys||{};cj=_.P3.ytPubsubPubsubTopicToKeys||{};_.AMJ=_.P3.ytPubsubPubsubIsSynchronous||{};_.gr.prototype.subscribe=_.gr.prototype.subscribe;_.gr.prototype.unsubscribeByKey=_.gr.prototype.unsubscribeByKey;_.gr.prototype.publish=_.gr.prototype.publish;_.gr.prototype.clear=_.gr.prototype.clear;_.PG("ytPubsubPubsubInstance",V0H);_.PG("ytPubsubPubsubTopicToKeys",cj);_.PG("ytPubsubPubsubIsSynchronous",_.AMJ);
_.PG("ytPubsubPubsubSubscribedKeys",xa);var Mj=window;var hH=_.v("web_enable_lifecycle_monitoring")&&iY3()!==0,J_Z=_.v("web_enable_lifecycle_monitoring");var y_f=function(R){var A=this;var Y=Y===void 0?0:Y;var P=P===void 0?_.n6():P;this.JSC$10875_defaultPriority=Y;this.scheduler=P;this.completedResolver=new _.y2;this.scheduledPayloads=R;for(R={i$jscomp$492:0};R.i$jscomp$492<this.scheduledPayloads.length;R={payload$jscomp$20:void 0,i$jscomp$492:R.i$jscomp$492},R.i$jscomp$492++)R.payload$jscomp$20=this.scheduledPayloads[R.i$jscomp$492],Y=function(E){return function(){E.payload$jscomp$20.job();A.scheduledPayloads[E.i$jscomp$492].processed=!0;A.scheduledPayloads.every(function(z){return z.processed===
!0})&&A.completedResolver.resolve()}}(R),P=this.getPriority(R.payload$jscomp$20),P=this.scheduler.addJob(Y,P),this.scheduledPayloads[R.i$jscomp$492]=Object.assign({},R.payload$jscomp$20,{job:Y,
jobId:P})};
y_f.prototype.flushJobs=function(){var R=this,A=Array.from(this.scheduledPayloads.keys()).sort(function(P,E){return R.getPriority(R.scheduledPayloads[E])-R.getPriority(R.scheduledPayloads[P])});
A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=this.scheduledPayloads[Y.value],Y.jobId===void 0||Y.processed||(this.scheduler.cancelJob(Y.jobId),this.scheduler.addJob(Y.job,10))};
y_f.prototype.cancel=function(){for(var R=_.x(this.scheduledPayloads),A=R.next();!A.done;A=R.next())A=A.value,A.jobId===void 0||A.processed||this.scheduler.cancelJob(A.jobId),A.processed=!0;this.completedResolver.resolve()};
y_f.prototype.getPriority=function(R){var A;return(A=R.priority)!=null?A:this.JSC$10875_defaultPriority};var oc=function(R){this.state=R;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};hH&&lLV(this.state)};
oc.prototype.install=function(R){this.plugins.push(R);return this};
oc.prototype.uninstall=function(){var R=this;_.Ge.apply(0,arguments).forEach(function(A){A=R.plugins.indexOf(A);A>-1&&R.plugins.splice(A,1)})};
oc.prototype.transition=function(R,A){var Y=this;hH&&xHk(this.state);var P=this.transitions.find(function(z){return Array.isArray(z.from)?z.from.find(function(c){return c===Y.state&&z.to===R}):z.from===Y.state&&z.to===R});
if(P){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);m4S(this,R,A);this.state=R;hH&&lLV(this.state);P=P.action.bind(this);var E=this.plugins.filter(function(z){return z[R]}).map(function(z){return z[R]});
P(TqS(this,E),A)}else throw Error("id`"+this.state+"`"+R);};
var TqS=function(R,A){var Y=A.filter(function(E){return QK8(R,E)===10}),P=A.filter(function(E){return QK8(R,E)!==10});
return R.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var E=_.Ge.apply(0,arguments);return _.O(function(z){if(z.nextAddress==1)return z.yield(R.runImmediateJobsAsync.apply(R,[Y].concat(_.py(E))),2);R.setJobSetWithScheduledJobs.apply(R,[P].concat(_.py(E)));_.XH(z)})}:function(){var E=_.Ge.apply(0,arguments);
R.runImmediateJobsSync.apply(R,[Y].concat(_.py(E)));R.setJobSetWithScheduledJobs.apply(R,[P].concat(_.py(E)))}};
oc.prototype.runImmediateJobsSync=function(R){var A=_.Ge.apply(1,arguments);_.n6();for(var Y=_.x(R),P=Y.next(),E={};!P.done;E={lifecycle$jscomp$2:void 0},P=Y.next())E.lifecycle$jscomp$2=P.value,Vi(function(z){return function(){vhN(z.lifecycle$jscomp$2.name);OYk(function(){return z.lifecycle$jscomp$2.callback.apply(z.lifecycle$jscomp$2,_.py(A))});
kk(z.lifecycle$jscomp$2.name)}}(E))};
oc.prototype.runImmediateJobsAsync=function(R){var A=_.Ge.apply(1,arguments),Y,P,E,z;return _.O(function(c){c.nextAddress==1&&(_.n6(),Y=_.x(R),P=Y.next(),E={});if(c.nextAddress!=3){if(P.done)return c.jumpTo(0);E.lifecycle$jscomp$3=P.value;E.asyncJobCompletion=void 0;z=function(M){return function(){vhN(M.lifecycle$jscomp$3.name);var N=OYk(function(){return M.lifecycle$jscomp$3.callback.apply(M.lifecycle$jscomp$3,_.py(A))});
uKk(N)?M.asyncJobCompletion=_.v("web_lifecycle_error_handling_killswitch")?N.then(function(){kk(M.lifecycle$jscomp$3.name)}):N.then(function(){kk(M.lifecycle$jscomp$3.name)},function(y){cMI(y);
kk(M.lifecycle$jscomp$3.name)}):kk(M.lifecycle$jscomp$3.name)}}(E);
Vi(z);return E.asyncJobCompletion?c.yield(E.asyncJobCompletion,3):c.jumpTo(3)}E={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};P=Y.next();return c.jumpTo(2)})};
oc.prototype.setJobSetWithScheduledJobs=function(R){var A=_.Ge.apply(1,arguments),Y=this,P=R.map(function(E){return{job:function(){vhN(E.name);OYk(function(){return E.callback.apply(E,_.py(A))});
kk(E.name)},
priority:QK8(Y,E)}});
P.length&&(this.jobSet=new y_f(P))};
var QK8=function(R,A){var Y,P;return(P=(Y=R.overridePriority)!=null?Y:A.priority)!=null?P:0},vhN=function(R){hH&&R&&lLV(R)},kk=function(R){hH&&R&&xHk(R)},m4S=function(R,A,Y){J_Z&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+R.constructor.name+"] '"+R.state+"' to '"+A+"'"),console.log("with message: ",Y),console.groupEnd())};
_.Yh.Object.defineProperties(oc.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var ghS=function(R){oc.call(this,R===void 0?"none":R);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(){}}]},nhH;
_.H(ghS,oc);ghS.prototype.runApplicationNavigationBegin=function(R,A){var Y=this;this.navigationTimer=_.Ua(_.fn,function(){Y.currentState==="application_navigating"&&Y.transition("none")},5E3);
R(A==null?void 0:A.event)};
ghS.prototype.runApplicationNavigationEnd=function(R,A){this.navigationTimer&&(_.fn.cancelJob(this.navigationTimer),this.navigationTimer=null);R(A==null?void 0:A.event)};
_.iiJ=function(){nhH||(nhH=new ghS);return nhH};var zHk=[];_.PG("yt.logging.transport.getScrapedGelPayloads",function(){return zHk});var sa=function(){var R=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return R.totalEntries}}};
sa.prototype.storePayload=function(R,A){R=Mib(R);this.store[R]?this.store[R].push(A):(this.memoizedKeySequences={},this.store[R]=[A]);this.totalEntries++;_.v("more_accurate_gel_parser")&&(A=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(A));return R};
sa.prototype.smartExtractMatchingEntries=function(R){if(!R.keys.length)return[];for(var A=HOf(this,R.keys.splice(0,1)[0]),Y=[],P=0;P<A.length;P++)this.store[A[P]]&&R.sizeLimit&&(this.store[A[P]].length<=R.sizeLimit?(Y.push.apply(Y,_.py(this.store[A[P]])),delete this.store[A[P]]):Y.push.apply(Y,_.py(this.store[A[P]].splice(0,R.sizeLimit))));this.totalEntries-=Y.length;(R==null?0:R.sizeLimit)&&Y.length<(R==null?void 0:R.sizeLimit)&&(R.sizeLimit-=Y.length,Y.push.apply(Y,_.py(this.smartExtractMatchingEntries(R))));
return Y};
sa.prototype.extractMatchingEntries=function(R){R=HOf(this,R);for(var A=[],Y=0;Y<R.length;Y++)this.store[R[Y]]&&(A.push.apply(A,_.py(this.store[R[Y]])),delete this.store[R[Y]]);this.totalEntries-=A.length;return A};
sa.prototype.getSequenceCount=function(R){R=HOf(this,R);for(var A=0,Y=0;Y<R.length;Y++){var P=void 0;A+=((P=this.store[R[Y]])==null?void 0:P.length)||0}return A};
var HOf=function(R,A){var Y=Mib(A);if(R.memoizedKeySequences[Y])return R.memoizedKeySequences[Y];var P=Object.keys(R.store)||[];if(P.length<=1&&Mib(A)===P[0])return P;for(var E=[],z=0;z<P.length;z++){var c=P[z].split("/");if(r_7(A.auth,c[0])){var M=A.isJspb;r_7(M===void 0?"undefined":M?"true":"false",c[1])&&r_7(A.cttAuthInfo,c[2])&&(M=A.tier,M=M===void 0?"undefined":JSON.stringify(M),r_7(M,c[3])&&E.push(P[z]))}}return R.memoizedKeySequences[Y]=E},r_7=function(R,A){return R===void 0||R==="undefined"?
!0:R===A};
sa.prototype.getSequenceCount=sa.prototype.getSequenceCount;sa.prototype.extractMatchingEntries=sa.prototype.extractMatchingEntries;sa.prototype.smartExtractMatchingEntries=sa.prototype.smartExtractMatchingEntries;sa.prototype.storePayload=sa.prototype.storePayload;var ChI,BlI,hcS,J$,D4E,sPq,Mdk,FBP,p1b,DHu,aLl,Pc8,jEu;ChI=_.cU("initial_gel_batch_timeout",2E3);BlI=_.cU("gel_queue_timeout_max_ms",6E4);hcS=_.cU("gel_min_batch_size",5);J$=void 0;D4E=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
sPq=new D4E;Mdk=new D4E;FBP=new D4E;p1b=new D4E;aLl=!0;Pc8=1;_.YJS=new Map;jEu=_.P3.ytLoggingTransportTokensToCttTargetIds_||{};_.PG("ytLoggingTransportTokensToCttTargetIds_",jEu);var WBk=_.P3.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.PG("ytLoggingTransportTokensToJspbCttTargetIds_",WBk);var VR={};var S_=_.P3.ytLoggingGelSequenceIdObj_||{};_.PG("ytLoggingGelSequenceIdObj_",S_);var J48=[];var $Vk=new Set,vHS=0,Kpk=0,Ikq=0,nHJ=[],gHu=[],WpJ=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var ZiJ=function(){};
ZiJ.prototype.getUrl=function(R,A){A=A===void 0?!1:A;return R.hasOwnProperty("shareEndpoint")?null:_.pTV(R,null,A)};
var fvk=function(R,A,Y){R={endpoint:A,actions:[]};Y=(Y.path?Y.path[0]:Y.target).icon||"";A=Y.indexOf(":");A>0&&(Y=Y.substr(A+1));Y&&R.actions.push(Y);return R};var oH3=/Command$/,hHl=/Endpoint$/,B0k=new Map;var U48,$4G;U48=1;_.ZA=function(){this.actionRoutingMap=new Map};
_.ZA.prototype.triggerAction=function(R){var A=new SuJ(R,!1,_.Ge.apply(1,arguments));this.handleAction(A);return A.returnValue};
_.ZA.prototype.triggerOptionalAction=function(R){var A=new SuJ(R,!0,_.Ge.apply(1,arguments));this.handleAction(A);return A.returnValue};
_.Gf=function(R,A,Y){A.forEach(function(P){var E=CcV(P);E&&R.triggerOptionalAction(E,P,Y,void 0)})};
_.ZA.prototype.handleAction=function(R){var A=this.actionRoutingMap.get(R.actionName);A&&$4G(R,A);R.optionalAction||R.returnValue.length!==0||(R=new _.XN("Unhandled action",R.actionName),_.tv(R))};
$4G=function(R,A){A.forEach(function(Y){var P=null;Y?P=Y.apply(null,R.args):(Y=Error("jd"),Y.params=R.actionName,_.hv(Y));R.returnValue.push(P)})};
_.t$=function(R,A,Y){Y||(Y=U48++);for(var P=_.x(Object.keys(A)),E=P.next();!E.done;E=P.next()){E=E.value;var z=R.actionRoutingMap.get(E);z||(z=new Map,R.actionRoutingMap.set(E,z));R.registerActionHandler(Y,E,A[E],z)}return Y};
_.ZA.prototype.registerActionHandler=function(R,A,Y,P){P.set(R,_.o1(Y))};
_.e_=function(R,A,Y){A=_.x(Object.keys(A));for(var P=A.next();!P.done;P=A.next())(P=R.actionRoutingMap.get(P.value))&&P.delete(Y)};
_.AR(_.ZA);var ukV=function(R,A){var Y=_.ZA.getInstance();_.jO(function(){var P={},E=_.t$(Y,(P[R]=A,P));_.bm(function(){var z={};_.e_(Y,(z[R]="",z),E)})})};var e9u=Symbol("ld");dKS=IZS;var MbP=new Set(["For","If","Match","Watch"]),Xe7={},SPq=(Xe7[k0.default]=function(){return GRk},Xe7.style=function(){return GRk},Xe7),IZN;
for(IZN in SPq)x0.attributes[IZN]=SPq[IZN](x0.attributes[IZN]);var E_=new _.cP("VISIBILITY_OBSERVER");var vsk={retrieve:function(R){return this.id.\u0275prov.token===R.\u0275prov.token?this.contextValue:this?_.z8(this,this.id):rZV}};var jrq=function(R,A,Y){if(R!==R$)return!1;R=z8q(document.createElement("div"),function(){var P=xW(!1);try{Y[0]()}finally{xW(P)}});
R=Array.from(R.childNodes);R.length===1&&(R=R[0]);return R};var KrN=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(R){}var Wrb=typeof WeakRef==="function";var jKz=function(R){this.value=R};
jKz.prototype.deref=function(){return this.value};
var bOA=Wrb?WeakRef:jKz,fZN=function(R){this.newKeyHandler=R;this.map=new WeakMap};
fZN.prototype.add=function(R,A){this.map.has(R)||(this.newKeyHandler(R),this.map.set(R,[]));this.map.get(R).push(new bOA(A))};
fZN.prototype.get=function(R){var A=this;return function P(){var E,z,c,M,N,y,m,T,Q,g,r;return _.ER(P,function(I){switch(I.nextAddress){case 1:_.r2(I,2);E=A.map.get(R);if(!E)return I.return();z=0;c=_.x(E);M=c.next();case 4:if(M.done){I.jumpTo(6);break}N=M.value;y=N.deref();if(!y){I.jumpTo(5);break}z++;m=_.zG;return I.yield(y,8);case 8:m(I.yieldResult);case 5:M=c.next();I.jumpTo(4);break;case 6:if(2*z<E.length){T=0;Q=_.x(E);for(g=Q.next();!g.done;g=Q.next())r=g.value,r.deref()&&(E[T++]=r);E.length=
T}case 2:_.Ht(I),_.D4(I,0)}})}()};var peH=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},$hV=new fZN(function(R){R.addEventListener("abort",Srl,{once:!0})}),Uhk=new WeakMap,Frq=function(R){R=R===void 0?ZG:R;
this.signal=new R};
Frq.prototype.abort=function(R){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=R,R=new Event("abort"),this.signal.dispatchEvent(R))};
var ZG=function(){this.target=peH();this.aborted=!1;this.onabort=null};
ZG.prototype.throwIfAborted=function(){DhJ.call(this)};
ZG.prototype.addEventListener=function(R,A,Y){this.target.addEventListener(R,A,Y)};
ZG.prototype.removeEventListener=function(R,A,Y){this.target.removeEventListener(R,A,Y)};
ZG.prototype.dispatchEvent=function(R){if(this.onabort&&R.type==="abort")this.onabort(R);return this.target.dispatchEvent(R)};
ZG.abort=rmk;ZG.timeout=I5q;ZG.any=XLl;var H0k=KrN?AbortController:Frq,tH=KrN?AbortSignal:ZG;typeof tH.abort!=="function"&&(tH.abort=rmk);typeof tH.prototype.throwIfAborted!=="function"&&(tH.prototype.throwIfAborted=DhJ);typeof tH.any!=="function"&&(tH.any=XLl);typeof tH.timeout!=="function"&&(tH.timeout=I5q);var Bqf=function(R){R=R.clone();z4A(R);IF(R,"dg",null);IF(R,"d","0");ANA(R,null);YK7(R,null);return R},aZ8=!0,CPA=function(R,A,Y){var P=Y===void 0?{}:Y;
Y=P.cssRowKey===void 0?void 0:P.cssRowKey;var E=P.combinedSignature===void 0?void 0:P.combinedSignature;var z=P.extraEdges===void 0?void 0:P.extraEdges;P=P.callback===void 0?void 0:P.callback;IF(R,"m",A.join(","));z&&ES7(R,z);Y&&(IF(R,"ck",Y),E?IF(R,"rs",E):aZ8&&(aZ8=!1));if(P){if(P!=null&&!x1H.test(P))throw Error("Xa`"+P);IF(R,"cb",P)}R=R.toString();_.iJ(R,"/")&&(R=pFE(document.location.href)+R);return _.IR(R)};var ohN=function(R){return hP7(R).then(function(A){return JSON.parse(A.responseText)})},hP7=function(R){var A={},Y=A.xmlHttpFactory?A.xmlHttpFactory.createInstance():n2A.createInstance();
return(new _.yR(function(P,E){var z;try{Y.open("GET",R,!0)}catch(N){E(new wx("Error opening XHR: "+N.message,R,Y))}Y.onreadystatechange=function(){if(Y.readyState==4){_.P3.clearTimeout(z);var N;!(N=g27(Y.status))&&(N=Y.status===0)&&(N=fjb(R),N=!(N=="http"||N=="https"||N==""));N?P(Y):E(new krS(Y.status,R,Y))}};
Y.onerror=function(){E(new wx("Network error",R,Y))};
if(A.headers)for(var c in A.headers){var M=A.headers[c];M!=null&&Y.setRequestHeader(c,M)}A.withCredentials&&(Y.withCredentials=A.withCredentials);A.responseType&&(Y.responseType=A.responseType);A.mimeType&&Y.overrideMimeType(A.mimeType);A.timeoutMs>0&&(z=_.P3.setTimeout(function(){Y.onreadystatechange=function(){};
Y.abort();E(new Grz(R,Y))},A.timeoutMs));
try{Y.send(null)}catch(N){Y.onreadystatechange=function(){},_.P3.clearTimeout(z),E(new wx("Error sending XHR: "+N.message,R,Y))}})).thenCatch(function(P){P instanceof _.Fn&&Y.abort();
throw P;})},wx=function(R,A,Y){_.Rk.call(this,R+", url="+A);
this.url=A;this.xhr=Y};
_.Pb(wx,_.Rk);wx.prototype.name="XhrError";var krS=function(R,A,Y){wx.call(this,"Request Failed, status="+R,A,Y);this.status=R};
_.Pb(krS,wx);krS.prototype.name="XhrHttpError";var Grz=function(R,A){wx.call(this,"Request timed out",R,A)};
_.Pb(Grz,wx);Grz.prototype.name="XhrTimeoutError";R2=R2||{};var uU=function(){_.KJ.call(this)};
_.Pb(uU,_.KJ);uU.prototype.initialize=function(){};var ZOz=function(R,A){this.fn_=R;this.handler_=A};
ZOz.prototype.execute=function(R){this.fn_&&(this.fn_.call(this.handler_||null,R),this.fn_=this.handler_=null)};
ZOz.prototype.abort=function(){this.handler_=this.fn_=null};var eY=function(R,A){_.KJ.call(this);this.deps_=R;this.JSC$11029_id_=A;this.onloadCallbacks_=[];this.JSC$11029_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Pb(eY,_.KJ);eY.prototype.moduleConstructor_=uU;eY.prototype.module_=null;eY.prototype.getId=function(){return this.JSC$11029_id_};
eY.prototype.registerCallback=function(R,A){return t0S(this.onloadCallbacks_,R,A)};
var weH=function(R,A){t0S(R.JSC$11029_onErrorCallbacks_,A)},t0S=function(R,A,Y){A=new ZOz(A,Y);
R.push(A);return A};
eY.prototype.isLoaded=function(){return!!this.module_};
eY.prototype.onLoad=function(R){var A=new this.moduleConstructor_;A.initialize(R());this.module_=A;A=(A=u9H(this.earlyOnloadCallbacks_,R()))||u9H(this.onloadCallbacks_,R());A||(this.JSC$11029_onErrorCallbacks_.length=0);return A};
eY.prototype.onError=function(R){(R=u9H(this.JSC$11029_onErrorCallbacks_,R))&&E6(Error("od`"+R));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var u9H=function(R,A){for(var Y=[],P=0;P<R.length;P++)try{R[P].execute(A)}catch(E){E6(E),Y.push(E)}R.length=0;return Y.length?Y:null};
eY.prototype.disposeInternal=function(){eY.superClass_.disposeInternal.call(this);_.lt(this.module_)};var ePG,YCA,RYA,AgA,Lrz,d4b,lMH,zYE,ijA;
_.ly=function(R,A,Y,P,E){P=P===void 0?!1:P;E=E===void 0?!1:E;var z=z===void 0?!0:z;this.scsReferenceUrl_=tXP(_.Kq(R).toString(),z);this.cssRowKey_=A;this.combinedSignature_=Y;this.useNegativeLoading_=P;this.requestedModuleMap_={};this.JSC$11032_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(R=SE(this.scsReferenceUrl_,"excm"))?R.split(","):[];this.shouldScanForCss_=E;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;wGI();_.q2(this,Psq(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
ePG=function(R,A){if(A.href||A.getAttribute("data-href"))if(A=A.href||A.getAttribute("data-href"),o_V(A)&&!tXP(A).urlPrefix_.endsWith("_/js/")){A=Psq(tXP(A));A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,R.loadedCssModuleList_.includes(Y)||R.loadedCssModuleList_.push(Y)}};
_.ly.prototype.JSC$11034_loadModules=function(R,A,Y){var P=Y===void 0?{}:Y;Y=P.extraEdges;var E=P.onError;var z=P.onSuccess;P=P.forceReload;this.JSC$11032_moduleInfoMap_=A;if(!R)throw Error("pd");if(this.shouldScanForCss_){A=_.x(document.getElementsByTagName("style"));for(var c=A.next();!c.done;c=A.next())ePG(this,c.value);A=_.x(document.getElementsByTagName("link"));for(c=A.next();!c.done;c=A.next())ePG(this,c.value)}qPG(this,Lrz(this,R),Y,E,z,P)};
var qPG=function(R,A,Y,P,E,z){P=P===void 0?function(){}:P;
E=E===void 0?function(){}:E;
z=z===void 0?!1:z;d4b(R,A,function(c,M,N){N=N===void 0?M:N;R.enableFallbackFetch&&z?R.loadWithFetch(c,M,P,E,N):R.load(c,M,P,E,N,Y)},Y)||P(-1)};
_.ly.prototype.loadWithFetch=function(){_.O(function(){throw Error("qd");})};
_.ly.prototype.maybeSetAdditionalFields=function(){};
YCA=function(R,A,Y){if(R.useNegativeLoading_){var P=R.scsReferenceUrl_;R={cssRowKey:R.cssRowKey_,combinedSignature:R.combinedSignature_,extraEdges:Y,requestedModuleIds:RYA(R),requestedCssModuleIds:AgA(R)};var E=R===void 0?{}:R;R=E.requestedModuleIds===void 0?[]:E.requestedModuleIds;Y=E.requestedCssModuleIds===void 0?[]:E.requestedCssModuleIds;var z=E.cssRowKey===void 0?void 0:E.cssRowKey;var c=E.combinedSignature===void 0?void 0:E.combinedSignature;var M=E.extraEdges===void 0?void 0:E.extraEdges;
E=E.callback===void 0?void 0:E.callback;P=Bqf(P);IF(P,"d","1");ANA(P,R);YK7(P,Y);A=CPA(P,A,{cssRowKey:z,combinedSignature:c,extraEdges:M,callback:E})}else P=R.scsReferenceUrl_,R={cssRowKey:R.cssRowKey_,combinedSignature:R.combinedSignature_,requestedModuleIds:RYA(R),requestedCssModuleIds:AgA(R)},M=R===void 0?{}:R,R=M.requestedCssModuleIds===void 0?[]:M.requestedCssModuleIds,Y=M.cssRowKey===void 0?void 0:M.cssRowKey,z=M.combinedSignature===void 0?void 0:M.combinedSignature,c=M.extraEdges===void 0?
void 0:M.extraEdges,M=M.callback===void 0?void 0:M.callback,P=Bqf(P),YK7(P,R),A=CPA(P,A,{cssRowKey:Y,combinedSignature:z,extraEdges:c,callback:M});return A};
_.q2=function(R,A){for(var Y=!1,P=[],E=0;E<A.length;++E){var z=A[E];R.requestedModuleMap_[z]||(R.requestedModuleMap_[z]=!0,R.requestedModuleList_.push(z),Y=!0,P.push(z))}Y&&(R.requestedModuleListSorted_=!1)};
_.L9=function(R,A){for(var Y=[],P=0;P<A.length;++P){var E=A[P];R.requestedModuleMap_[E]&&(delete R.requestedModuleMap_[E],_.ak(R.requestedModuleList_,E),Y.push(E))}};
_.ly.prototype.load=function(R,A,Y,P,E){E=E===void 0?A:E;_.Kq(R);var z=this.useCors_,c=this.corsMode_,M=this.fetchPriority,N=_.De("SCRIPT");_.ET(N,R);z&&(N.crossOrigin=c);N.async=!1;M&&N.setAttribute("fetchpriority",M);_.q2(this,A);_.PED(this,R,N,A,Y,P,E)};
_.PED=function(R,A,Y,P,E,z,c){c=c===void 0?P:c;R.lastScript_=Y;R.insertPos.insertBefore(Y,R.insertPos.firstChild);_.EoG(Y,P,function(){Y.parentElement.removeChild(Y);R.lastScript_==Y&&(R.lastScript_=null);var M=new Set;P.map(function(y){return M.add(y)});
for(var N in R.JSC$11032_moduleInfoMap_)R.JSC$11032_moduleInfoMap_[N].isLoaded()&&M.add(N);Array.from(M);z()},function(M){Y.parentElement.removeChild(Y);
R.lastScript_==Y&&(R.lastScript_=null);_.L9(R,M);R.pendingModuleGraphUpdate_?R.pendingModuleGraphUpdate_.then(function(){E(-1,A)}):E(-1,A)},c)};
_.EoG=function(R,A,Y,P,E){E=E===void 0?A:E;var z=A.length,c=function(){z=0;R.onload=null;R.onerror=null;M=function(){}},M=function(){c();
var y=E.filter(function(m){return!FL().getModuleInfo(m).isLoaded()});
y.length!==0?P(y,"Response was successful but was missing module(s) "+y+"."):Y()},N=function(){z--;
z==0&&M()};
A.forEach(function(y){y=FL().getModuleInfo(y);y.isLoaded()?N():(t0S(y.earlyOnloadCallbacks_,N),weH(y,N))});
R.onload=function(){return M()};
R.onerror=function(){c();P(A)}};
RYA=function(R){R.requestedModuleListSorted_||(R.requestedModuleListSorted_=!0,R.requestedModuleList_.sort());return R.requestedModuleList_};
AgA=function(R){R=R.loadedCssModuleList_;R.sort();return R};
Lrz=function(R,A){return A.filter(function(Y){return!R.requestedModuleMap_[Y]})};
d4b=function(R,A,Y,P){if(R.pendingModuleGraphUpdate_)return R.pendingModuleGraphUpdate_.then(function(){d4b(R,A,Y,P)}),!0;
if(!R.useNegativeLoading_){var E=[],z=Object.assign({},R.requestedModuleMap_);zYE(R,A,function(m){E.push(m.getId())},P,function(m){return!m.isLoaded()},z);
A=E}for(z=0;z<A.length;){for(var c=A.length-z,M=z==0?A:A.slice(z,A.length),N=YCA(R,M,P),y=_.Kq(N).toString();y.length>R.urlMaxLength;)if(c>1)c-=Math.ceil((y.length-R.urlMaxLength)/6),c=Math.max(c,1),M=A.slice(z,z+c),N=YCA(R,M,P),y=_.Kq(N).toString();else return R.useNegativeLoading_?(R.useNegativeLoading_=!1,R.pendingModuleGraphUpdate_=ijA(R).then(function(m){lMH(R,m,P)}),d4b(R,A.slice(z),Y,P)):!1;
z+=c;R.useNegativeLoading_?Y(N,M):Y(N,M,z===A.length?A:[])}return!0};
lMH=function(R,A,Y){FL().setAllModuleInfoString((A||{}).moduleGraph);zYE(R,RYA(R),function(P){_.q2(R,[P.getId()])},Y);
R.pendingModuleGraphUpdate_=null};
zYE=function(R,A,Y,P,E,z){z=z===void 0?{}:z;var c=FL();A=_.x(A);for(var M=A.next();!M.done;M=A.next()){M=M.value;var N=c.getModuleInfo(M);if(!(z[M]||E&&!E(N))){z[M]=!0;var y=N.deps_||[];if(P){var m=[];P[M]&&(m=Object.keys(P[M]));y=y.concat(m)}zYE(R,y,Y,P,E,z);Y(N)}}};
ijA=function(R){R=R.scsReferenceUrl_.clone();z4A(R);IF(R,"dg",null);IF(R,"md","1");return ohN(R.toString())};var KO3=new Uint8Array(123);var xTf=[];var cgb=function(){this.JSC$10046_loader_=null};
_.l=cgb.prototype;_.l.setBatchModeEnabled=function(){};
_.l.setAllModuleInfoString=function(){};
_.l.addExtraEdge=function(){throw Error("rd");};
_.l.removeExtraEdge=function(){throw Error("sd");};
_.l.getModuleContext=function(){return null};
_.l.isActive=function(){return!1};
_.l.isUserActive=function(){return!1};
_.l.registerCallback=function(){};var dx=function(R,A,Y,P,E){var z=Error.call(this);this.message=z.message;"stack"in z&&(this.stack=z.stack);this.name="ModuleLoadFailure";this.type=R;this.status=A;this.requestedModuleIds=Y;this.url=P;this.cause=E;this.message=this.toString()};
_.H(dx,Error);dx.prototype.toString=function(){return OjE(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var OjE=function(R){switch(R.type){case dx.Type.UNAUTHORIZED:return"Unauthorized";case dx.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case dx.Type.TIMEOUT:return"Timed out";case dx.Type.OLD_CODE_GONE:return"Out of date module id";case dx.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+R.type}};
R2.ModuleLoadFailure=dx;R2.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var Ry=function(){this.moduleIds_=this.JSC$10046_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11047_extraEdges_={};this.JSC$11047_callbackMap_={};this.JSC$11047_currentlyLoadingModule_=this.baseModuleInfo_=new eY([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new d4;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Pb(Ry,cgb);var MF8=function(R,A){_.Rk.call(this,"Error loading "+R+": "+A)};
_.Pb(MF8,_.Rk);Ry.prototype.setBatchModeEnabled=function(R){this.batchModeEnabled_=R};
Ry.prototype.setAllModuleInfoString=function(R,A){if(!(this instanceof Ry))this.setAllModuleInfoString(R,A);else if(typeof R==="string"){if(R.startsWith("d$")){R=R.substring(2);for(var Y=[],P=0,E=R.indexOf("/"),z=0,c=!1,M=0;;){var N=c?R.substring(z):R.substring(z,E);if(N.length===0)P++,z="sy"+P.toString(36),N=[];else{var y=N.indexOf(":");if(y<0)z=N,N=[];else if(y===N.length-1)z=N.substring(0,y),N=Array(Y[M-1]);else{z=N.substring(0,y);N=N.substring(y+1).split(",");y=M;for(var m=0;m<N.length;m++)y-=
N[m].length===0?1:Number(N[m]),N[m]=Y[y]}y=0;if(z.length===0)y=1;else if(z.charAt(0)==="+"||z.charAt(0)==="-")y=Number(z);y!==0&&(P+=y,z="sy"+P.toString(36))}Y.push(z);soN(this,z,N);if(c)break;z=E+1;E=R.indexOf("/",z);E===-1&&(c=!0);M++}this.moduleIds_=Y}else if(R.startsWith("p$"))NHA(this,R);else{R=R.split("/");Y=[];for(P=0;P<R.length;P++){M=R[P].split(":");E=M[0];c=[];if(M[1])for(c=M[1].split(","),M=0;M<c.length;M++)c[M]=Y[parseInt(c[M],36)];Y.push(E);soN(this,E,c)}this.moduleIds_=Y}A&&A.length?
(_.kq(this.loadingModuleIds_,A),this.lastInitialModuleId_=_.Ku(A)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11047_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11047_currentlyLoadingModule_=null,(A=this.baseModuleInfo_.onLoad((0,_.Wv)(this.getModuleContext,this)))&&A.length&&VFS(this,new R2.ModuleLoadFailure(R2.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,A[0])),AS(this))}};
var NHA=function(R,A){var Y=A.substring(2);for(A=0;A<64;A++)KO3["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(A)]=A;var P={buf:Y,pos:0};iy(P);var E=iy(P),z=iy(P)+1;A=Array(E);var c=Array(E),M=Array(E);z=Array(z);var N=0,y=0,m=P.pos,T=P.buf.indexOf("|",P.pos);P.pos=T+1;for(T=0;T<E;T++){var Q=iy(P),g=Q&2,r=Q&1;Q>>>=2;r?(N+=Q>>>1^-(Q&1),Q="sy"+N.toString(36)):(r=m,m+=Q,Q=Y.substring(r,m));A[T]=Q;g&&(z[y++]=Q)}z[y]="";P.pos++;y=E&-2;Y=E&1;for(N=0;N<y;N+=2)m=WOk(P),M[N]=
m&7,M[N+1]=m>>>3&7;Y&&(Y=WOk(P),M[y]=Y&7);P.pos++;for(y=0;y<E;y++)M[y]===7&&(M[y]=iy(P));P.pos++;for(Y=y=0;Y<E;Y++){N=M[Y];m=N===0?xTf:Array(N);c[Y]=m;T=y;for(g=0;g<N;g++)T-=iy(P),m[g]=z[T];z[y]===A[Y]&&y++}for(P=0;P<A.length;P++)soN(R,A[P],c[P]);R.moduleIds_=A};
_.l=Ry.prototype;_.l.getModuleInfo=function(R){return this.moduleInfoMap[R]};
_.l.addExtraEdge=function(R,A){var Y=this.getModuleInfo(R);Y&&Y.isLoaded()?this.load(A):(this.JSC$11047_extraEdges_[R]||(this.JSC$11047_extraEdges_[R]={}),this.JSC$11047_extraEdges_[R][A]=!0)};
_.l.removeExtraEdge=function(R,A){if(this.JSC$11047_extraEdges_[R]){delete this.JSC$11047_extraEdges_[R][A];for(var Y in this.JSC$11047_extraEdges_[R])return;delete this.JSC$11047_extraEdges_[R]}};
_.l.isActive=function(){return this.loadingModuleIds_.length>0};
_.l.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var AS=function(R){var A=R.lastActive_,Y=R.isActive();Y!=A&&(R.executeCallbacks_(Y?"active":"idle"),R.lastActive_=Y);A=R.isUserActive();A!=R.userLastActive_&&(R.executeCallbacks_(A?"userActive":"userIdle"),R.userLastActive_=A)},soN=function(R,A,Y){R.moduleInfoMap[A]?(R=R.moduleInfoMap[A].deps_,R!=Y&&R.splice.apply(R,[0,
R.length].concat(_.py(Y)))):R.moduleInfoMap[A]=new eY(Y,A)},ygA=function(R,A,Y){var P=[];
Ubl(A,P);A=[];for(var E={},z=0;z<P.length;z++){var c=P[z],M=R.getModuleInfo(c);if(!M)throw Error("td`"+c);var N=new d4;E[c]=N;M.isLoaded()?N.callback(null):(JgA(R,c,M,!!Y,N),R.isModuleLoading(c)||A.push(c))}A.length>0&&(R.loadingModuleIds_.length===0?R.loadModules_(A):(R.requestedModuleIdsQueue_.push(A),AS(R)));return E},JgA=function(R,A,Y,P,E){Y.registerCallback(E.callback,E);
weH(Y,function(z){E.errback(new MF8(A,z))});
R.isModuleLoading(A)?P&&(mTA(R,A),AS(R)):P&&mTA(R,A)};
Ry.prototype.loadModules_=function(R,A,Y){var P=this;A||(this.consecutiveFailures_=0);var E=THz(this,R);this.loadingModuleIds_=E;this.requestedLoadingModuleIds_=this.batchModeEnabled_?R:_.Cu(E);AS(this);if(E.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,E);if(Object.keys(this.JSC$11047_extraEdges_).length>0&&!this.JSC$10046_loader_.supportsExtraEdges)throw Error("ud");R=(0,_.Wv)(this.JSC$10046_loader_.JSC$11034_loadModules,this.JSC$10046_loader_,_.Cu(E),this.moduleInfoMap,
{extraEdges:this.JSC$11047_extraEdges_,forceReload:!!Y,onError:function(z,c){var M=P.requestedLoadingModuleIds_;z=z!=null?z:void 0;P.consecutiveFailures_++;var N=_.Cu(E);P.requestedLoadingModuleIds_=M;E.forEach(_.nj(_.ak,P.requestedModuleIds_),P);z==401?(VFS(P,new R2.ModuleLoadFailure(R2.ModuleLoadFailure.Type.UNAUTHORIZED,z)),P.requestedModuleIdsQueue_.length=0):z==410?(Qoq(P,new R2.ModuleLoadFailure(R2.ModuleLoadFailure.Type.OLD_CODE_GONE,z)),vo7(P)):P.consecutiveFailures_>=3?(Qoq(P,new R2.ModuleLoadFailure(R2.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
z,N,c)),vo7(P)):P.loadModules_(P.requestedLoadingModuleIds_,!0,z==8001||!1)},
onTimeout:(0,_.Wv)(this.handleLoadTimeout_,this)});(A=Math.pow(this.consecutiveFailures_,2)*5E3)?_.P3.setTimeout(R,A):R()}};
var THz=function(R,A){A=A.filter(function(E){return R.moduleInfoMap[E].isLoaded()?(_.P3.setTimeout(function(){return Error("vd`"+E)},0),!1):!0});
for(var Y=[],P=0;P<A.length;P++)Y=Y.concat(gob(R,A[P]));Ubl(Y);return!R.batchModeEnabled_&&Y.length>1?(A=Y.shift(),R.requestedModuleIdsQueue_=Y.map(function(E){return[E]}).concat(R.requestedModuleIdsQueue_),[A]):Y},gob=function(R,A){var Y=_.BO.createSet(R.requestedModuleIds_),P=[];
Y[A]||P.push(A);A=[A];for(var E=0;E<A.length;E++)for(var z=R.getModuleInfo(A[E]).deps_,c=z.length-1;c>=0;c--){var M=z[c];R.getModuleInfo(M).isLoaded()||Y[M]||(P.push(M),A.push(M))}P.reverse();Ubl(P);return P};
Ry.prototype.JSC$11042_setLoaded=function(){if(this.JSC$11047_currentlyLoadingModule_){var R=this.JSC$11047_currentlyLoadingModule_.getId(),A=[];if(this.JSC$11047_extraEdges_[R]){for(var Y=_.x(Object.keys(this.JSC$11047_extraEdges_[R])),P=Y.next();!P.done;P=Y.next()){P=P.value;var E=this.getModuleInfo(P);E&&!E.isLoaded()&&(this.removeExtraEdge(R,P),A.push(P))}this.loadMultiple(A)}this.isDisposed()||((A=this.moduleInfoMap[R].onLoad((0,_.Wv)(this.getModuleContext,this)))&&A.length&&VFS(this,new R2.ModuleLoadFailure(R2.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,A[0])),_.ak(this.userInitiatedLoadingModuleIds_,R),_.ak(this.loadingModuleIds_,R),this.loadingModuleIds_.length===0&&vo7(this),this.lastInitialModuleId_&&R==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),AS(this),this.JSC$11047_currentlyLoadingModule_=null)}};
Ry.prototype.isModuleLoading=function(R){if(_.B3(this.loadingModuleIds_,R))return!0;for(var A=0;A<this.requestedModuleIdsQueue_.length;A++)if(_.B3(this.requestedModuleIdsQueue_[A],R))return!0;return!1};
Ry.prototype.load=function(R,A){return ygA(this,[R],A)[R]};
Ry.prototype.loadMultiple=function(R){return ygA(this,R)};
var mTA=function(R,A){_.B3(R.userInitiatedLoadingModuleIds_,A)||R.userInitiatedLoadingModuleIds_.push(A)};
Ry.prototype.beforeLoadModuleCode=function(R){var A=this;this.JSC$11047_currentlyLoadingModule_&&this.JSC$11047_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11042_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[R]&&nof(this,this.moduleInfoMap[R].deps_||[],function(Y){Y.module_=new uU;_.ak(A.loadingModuleIds_,Y.getId())},function(Y){return!Y.isLoaded()});
this.JSC$11047_currentlyLoadingModule_=this.getModuleInfo(R)};
Ry.prototype.handleLoadTimeout_=function(){Qoq(this,new R2.ModuleLoadFailure(R2.ModuleLoadFailure.Type.TIMEOUT));vo7(this)};
var Qoq=function(R,A){R.requestedLoadingModuleIds_.length>1?R.requestedModuleIdsQueue_=R.requestedLoadingModuleIds_.map(function(Y){return[Y]}).concat(R.requestedModuleIdsQueue_):VFS(R,A)},VFS=function(R,A){var Y=R.requestedLoadingModuleIds_;
R.loadingModuleIds_.length=0;for(var P=[],E=0;E<R.requestedModuleIdsQueue_.length;E++){var z=R.requestedModuleIdsQueue_[E].filter(function(N){var y=gob(this,N);return eX(Y,function(m){return _.B3(y,m)})},R);
_.kq(P,z)}for(E=0;E<Y.length;E++)_.nqk(P,Y[E]);for(E=0;E<P.length;E++){for(z=0;z<R.requestedModuleIdsQueue_.length;z++)_.ak(R.requestedModuleIdsQueue_[z],P[E]);_.ak(R.userInitiatedLoadingModuleIds_,P[E])}if(E=R.JSC$11047_callbackMap_.error)for(z=0;z<E.length;z++)for(var c=E[z],M=0;M<P.length;M++)c("error",P[M],A);for(P=0;P<Y.length;P++)if(R.moduleInfoMap[Y[P]])R.moduleInfoMap[Y[P]].onError(A);R.requestedLoadingModuleIds_.length=0;AS(R)},vo7=function(R){for(;R.requestedModuleIdsQueue_.length;){var A=
R.requestedModuleIdsQueue_.shift().filter(function(Y){return!this.getModuleInfo(Y).isLoaded()},R);
if(A.length>0){R.loadModules_(A);return}}AS(R)};
Ry.prototype.registerCallback=function(R,A){Array.isArray(R)||(R=[R]);for(var Y=0;Y<R.length;Y++){var P=R[Y],E=A,z=this.JSC$11047_callbackMap_;z[P]||(z[P]=[]);z[P].push(E)}};
Ry.prototype.executeCallbacks_=function(R){for(var A=this.JSC$11047_callbackMap_[R],Y=0;A&&Y<A.length;Y++)A[Y](R)};
var nof=function(R,A,Y,P,E){P=P===void 0?function(){return!0}:P;
E=E===void 0?{}:E;A=_.x(A);for(var z=A.next();!z.done;z=A.next()){z=z.value;var c=R.getModuleInfo(z);!E[z]&&P(c)&&(E[z]=!0,nof(R,c.deps_||[],Y,P,E),Y(c))}};
Ry.prototype.dispose=function(){_.xt(_.BO.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11047_callbackMap_={};this.isDisposed_=!0};
Ry.prototype.isDisposed=function(){return this.isDisposed_};
_.pJ=function(){return new Ry};var HjE=[5E3,2E4],rgH=function(){this.JSC$10046_loader_=null;this.JSC$11055_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11055_queue_=[];this.JSC$11055_extraEdges_=Object.create(null);this.JSC$11055_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.H(rgH,cgb);_.l=rgH.prototype;_.l.setAllModuleInfoString=function(){this.JSC$11055_currentlyLoadingModule_&&this.JSC$11055_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11042_setLoaded()};
_.l.getModuleInfo=function(R){var A=this.JSC$11055_moduleInfoMap_[R];A||(A=new eY([],R),this.JSC$11055_moduleInfoMap_[R]=A);return A};
_.l.addExtraEdge=function(R,A){this.getModuleInfo(R).isLoaded()?this.load(A):(this.JSC$11055_extraEdges_[R]||(this.JSC$11055_extraEdges_[R]={}),this.JSC$11055_extraEdges_[R][A]=!0)};
_.l.removeExtraEdge=function(R,A){if(this.JSC$11055_extraEdges_[R]){delete this.JSC$11055_extraEdges_[R][A];for(var Y in this.JSC$11055_extraEdges_[R])return;delete this.JSC$11055_extraEdges_[R]}};
_.l.isModuleLoading=function(R){return!!this.loadingModules_[R]};
_.l.load=function(R){DTZ(this,[R]);return UTA(this,R)};
_.l.loadMultiple=function(R){var A=this,Y=Object.create(null),P=[];R.forEach(function(E){Y[E]||(Y[E]=UTA(A,E),P.push(E))});
DTZ(this,P);return Y};
_.l.beforeLoadModuleCode=function(R){var A;((A=this.JSC$11055_currentlyLoadingModule_)==null?void 0:A.getId())==="synthetic_module_overhead"&&this.JSC$11042_setLoaded();var Y,P;$TN(this,(P=(Y=this.JSC$11055_moduleInfoMap_[R])==null?void 0:Y.deps_)!=null?P:[],function(E){E.module_=new uU},function(E){return!E.isLoaded()});
this.JSC$11055_currentlyLoadingModule_=this.getModuleInfo(R)};
_.l.JSC$11042_setLoaded=function(){if(this.JSC$11055_currentlyLoadingModule_){var R=this.JSC$11055_currentlyLoadingModule_.getId(),A=[];if(this.JSC$11055_extraEdges_[R]){for(var Y=_.x(Object.keys(this.JSC$11055_extraEdges_[R])),P=Y.next();!P.done;P=Y.next())P=P.value,this.getModuleInfo(P).isLoaded()||(this.removeExtraEdge(R,P),A.push(P));this.loadMultiple(A)}this.JSC$11055_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11055_currentlyLoadingModule_=null;(!this.isModuleLoading(R)&&/^sy[0-9a-z]{0,4}$/.test(R)||R==="synthetic_module_overhead")&&delete this.JSC$11055_moduleInfoMap_[R];this.unsetModulesAsLoading(R)}};
_.l.setModulesAsLoading=function(){var R=this;_.Ge.apply(0,arguments).forEach(function(A){R.loadingModules_[A]=!0})};
_.l.unsetModulesAsLoading=function(){var R=this;_.Ge.apply(0,arguments).forEach(function(A){delete R.loadingModules_[A]})};
var UTA=function(R,A){return new _.yR(function(Y,P){var E=R.getModuleInfo(A);E.isLoaded()?Y(null):(E.registerCallback(function(){Y(null)}),weH(E,function(z){var c="Error loading "+A+": "+z;
z instanceof R2.ModuleLoadFailure&&z.url&&(c=c+", requested url: "+z.url.toString());P(Error(c))}))})},DTZ=function(R,A){A=A.filter(function(Y){return!R.isModuleLoading(Y)&&!R.getModuleInfo(Y).isLoaded()});
A.length>0&&(R.setModulesAsLoading.apply(R,_.py(A)),R.JSC$11055_queue_.push(A),XkN(R))},XkN=function(R){for(var A={};R.activeLoads_<Infinity&&R.JSC$11055_queue_.length>0;A={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})A.ids$jscomp$36=R.JSC$11055_queue_.shift().filter(function(Y){return!R.getModuleInfo(Y).isLoaded()}),A.ids$jscomp$36.length>0&&(R.activeLoads_++,A.finishLoad=function(Y){return function(){R.activeLoads_--;
XkN(R);Y.finishLoad=function(){}}}(A),_.W$(A.ids$jscomp$36.map(function(Y){return UTA(R,Y)})).then(function(Y){return function(){(0,Y.finishLoad)()}}(A)),A.attempt$jscomp$6=0,A.load$jscomp$1=function(Y){return function(){if(Object.keys(R.JSC$11055_extraEdges_).length>0&&!R.JSC$10046_loader_.supportsExtraEdges)throw Error("ud");
R.JSC$10046_loader_.JSC$11034_loadModules(Y.ids$jscomp$36,R.JSC$11055_moduleInfoMap_,{extraEdges:R.JSC$11055_extraEdges_,onError:function(P,E){var z=HjE[Y.attempt$jscomp$6++];z!==void 0?setTimeout(function(){(0,Y.load$jscomp$1)()},z):(R.unsetModulesAsLoading.apply(R,_.py(Y.ids$jscomp$36)),(0,Y.finishLoad)(),Y.ids$jscomp$36.forEach(function(c){c=R.getModuleInfo(c);
if(!c.isLoaded())c.onError(new R2.ModuleLoadFailure(R2.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,P,Y.ids$jscomp$36,E))}))}})}}(A),(0,A.load$jscomp$1)())},$TN=function(R,A,Y,P,E){P=P===void 0?function(){return!0}:P;
E=E===void 0?{}:E;A=_.x(A);for(var z=A.next();!z.done;z=A.next()){z=z.value;var c=R.getModuleInfo(z);!E[z]&&P(c)&&(E[z]=!0,$TN(R,c.deps_||[],Y,P,E),Y(c))}};var SCH=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var pLk=Symbol("xd");window.JSCompiler_renameProperty=function(R){return R};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var IMZ,KZA,WZq;IMZ=!SCH||HTMLElement.es5Shimmed||_.P3.Reflect===void 0||_.P3.customElements===void 0||_.P3.customElements.polyfillWrapFlushCallback||!1;_.xp6=function(){var R=HTMLElement;if(IMZ)return R;if(KZA!==void 0)return KZA;var A=_.P3.Reflect,Y=function(){return A.construct(R,[],this.constructor)};
Y.prototype=R.prototype;Y.prototype.constructor=Y;Y.es5Shimmed=!0;Object.setPrototypeOf(Y,R);return KZA=Y};
WZq=!1;IMZ||WZq||(WZq=!0,_.P3.HTMLElement=_.xp6());/*

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 h8k=/(url\()([^)]*)(\))/g,a58=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Cxk,xc;var o$=!window.ShadyDOM||!window.ShadyDOM.inUse,joE=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),bjf=!window.customElements.polyfillWrapFlushCallback,fMz;if(fMz=o$&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var pkb=new CSSStyleSheet;pkb.replaceSync("");var FZz=document.createElement("div");FZz.attachShadow({mode:"open"});FZz.shadowRoot.adoptedStyleSheets=[pkb];fMz=FZz.shadowRoot.adoptedStyleSheets[0]===pkb}catch(R){fMz=!1}
var BHb=fMz,aMH=window.Polymer&&window.Polymer.rootPath||ktP(document.baseURI||window.location.href),ng=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,L8q=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,tw=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,CEq=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,hw=window.Polymer&&window.Polymer.legacyOptimizations||!1,ZN=window.Polymer&&window.Polymer.legacyWarnings||!1,hYS=window.Polymer&&window.Polymer.syncInitialRender||
!1,rv=window.Polymer&&window.Polymer.legacyUndefined||!1,oo8=window.Polymer&&window.Polymer.orderedComputed||!1,YI=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Py=window.Polymer&&window.Polymer.fastDomIf||!1,Eu=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,kiA=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,Giq=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var zJ={},Zjb={},U_=function(){return HTMLElement.apply(this,arguments)||this};
_.H(U_,HTMLElement);U_.import=function(R,A){return R?(R=zJ[R]||Zjb[R.toLowerCase()])&&A?R.querySelector(A):R:null};
U_.prototype.attributeChangedCallback=function(R,A,Y){A!==Y&&this.register()};
U_.prototype.register=function(R){if(R=R||this.id){if(tw&&(zJ[R]||Zjb[R.toLowerCase()])!==void 0)throw zJ[R]=Zjb[R.toLowerCase()]=null,Error("yd`"+R);this.id=R;zJ[R]=Zjb[R.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Yh.Object.defineProperties(U_.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var R=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;R=_.cu(this.getAttribute("assetpath")||"",R.baseURI);this.__assetpath=ktP(R)}return this.__assetpath}}});
_.Yh.Object.defineProperties(U_,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
U_["import"]=U_.import;U_.prototype.modules=zJ;customElements.define("dom-module",U_);var tF8=0,Z06=0,O_=[],wkD=0,Gtb=!1,uhb=document.createTextNode(""),eYG,a$;(new window.MutationObserver(tb3)).observe(uhb,{characterData:!0});_.iX={after:function(R){return{run:function(A){return window.setTimeout(A,R)},
cancel:function(A){window.clearTimeout(A)}}},
run:function(R,A){return window.setTimeout(R,A)},
cancel:function(R){window.clearTimeout(R)}};
_.Wc={run:function(R){return window.requestAnimationFrame(R)},
cancel:function(R){window.cancelAnimationFrame(R)}};
eYG={run:function(R){return window.requestIdleCallback?window.requestIdleCallback(R):window.setTimeout(R,16)},
cancel:function(R){window.cancelIdleCallback?window.cancelIdleCallback(R):window.clearTimeout(R)}};
a$={run:function(R){Gtb||(Gtb=!0,uhb.textContent=wkD++);O_.push(R);return tF8++},
cancel:function(R){var A=R-Z06;if(A>=0){if(!O_[A])throw Error("zd`"+R);O_[A]=null}}};var qCf=0,lX=function(R){var A=R.__mixinApplications;A||(A=new WeakMap,R.__mixinApplications=A);var Y=qCf++;return function(P){var E=P.__mixinSet;if(E&&E[Y])return P;var z=A,c=z.get(P);c||(c=R(P),z.set(P,c),P=Object.create(c.__mixinSet||E||null),P[Y]=!0,c.__mixinSet=P);return c}};_.gv=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(R){return ShadyDOM.patch(R)}:function(R){return R};var LZN=lX(function(R){var A=function(){var Y=R.call(this)||this;Y.__dataEnabled=!1;Y.__dataReady=!1;Y.__dataInvalid=!1;Y.__data={};Y.__dataPending=null;Y.__dataOld=null;Y.__dataInstanceProps=null;Y.__dataCounter=0;Y.__serializing=!1;Y._initializeProperties();return Y};
_.H(A,R);A.createProperties=function(Y){var P=this.prototype,E;for(E in Y)E in P||P._createPropertyAccessor(E)};
A.attributeNameForProperty=function(Y){return Y.toLowerCase()};
A.typeForProperty=function(){};
A.prototype._createPropertyAccessor=function(Y,P){this._addPropertyToAttributeMap(Y);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[Y]||(this.__dataHasAccessor[Y]=!0,this._definePropertyAccessor(Y,P))};
A.prototype._addPropertyToAttributeMap=function(Y){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var P=this.__dataAttributes[Y];P||(P=this.constructor.attributeNameForProperty(Y),this.__dataAttributes[P]=Y);return P};
A.prototype._definePropertyAccessor=function(Y,P){Object.defineProperty(this,Y,{get:function(){return this.__data[Y]},
set:P?function(){}:function(E){this._setPendingProperty(Y,E,!0)&&this._invalidateProperties()}})};
A.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
A.prototype._initializeProperties=function(){for(var Y in this.__dataHasAccessor)this.hasOwnProperty(Y)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[Y]=this[Y],delete this[Y])};
A.prototype._initializeInstanceProperties=function(Y){Object.assign(this,Y)};
A.prototype._setProperty=function(Y,P){this._setPendingProperty(Y,P)&&this._invalidateProperties()};
A.prototype._getProperty=function(Y){return this.__data[Y]};
A.prototype._setPendingProperty=function(Y,P){var E=this.__data[Y],z=this._shouldPropertyChange(Y,P,E);z&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||Y in this.__dataOld||(this.__dataOld[Y]=E),this.__data[Y]=P,this.__dataPending[Y]=P);return z};
A.prototype._isPropertyPending=function(Y){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(Y))};
A.prototype._invalidateProperties=function(){var Y=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,a$.run(function(){Y.__dataInvalid&&(Y.__dataInvalid=!1,Y._flushProperties())}))};
A.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
A.prototype._flushProperties=function(){this.__dataCounter++;var Y=this.__data,P=this.__dataPending,E=this.__dataOld;this._shouldPropertiesChange(Y,P,E)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(Y,P,E));this.__dataCounter--};
A.prototype._shouldPropertiesChange=function(Y,P){return!!P};
A.prototype._propertiesChanged=function(){};
A.prototype._shouldPropertyChange=function(Y,P,E){return E!==P&&(E===E||P===P)};
A.prototype.attributeChangedCallback=function(Y,P,E,z){P!==E&&this._attributeToProperty(Y,E);R.prototype.attributeChangedCallback&&R.prototype.attributeChangedCallback.call(this,Y,P,E,z)};
A.prototype._attributeToProperty=function(Y,P,E){if(!this.__serializing){var z=this.__dataAttributes;Y=z&&z[Y]||Y;this[Y]=this._deserializeValue(P,E||this.constructor.typeForProperty(Y))}};
A.prototype._propertyToAttribute=function(Y,P,E){this.__serializing=!0;E=arguments.length<3?this[Y]:E;this._valueToNodeAttribute(this,E,P||this.constructor.attributeNameForProperty(Y));this.__serializing=!1};
A.prototype._valueToNodeAttribute=function(Y,P,E){P=this._serializeValue(P);if(E==="class"||E==="name"||E==="slot")Y=(0,_.gv)(Y);P===void 0?Y.removeAttribute(E):Y.setAttribute(E,P===""&&window.trustedTypes?window.trustedTypes.emptyScript:P)};
A.prototype._serializeValue=function(Y){switch(typeof Y){case "boolean":return Y?"":void 0;default:return Y!=null?Y.toString():void 0}};
A.prototype._deserializeValue=function(Y,P){switch(P){case Boolean:return Y!==null;case Number:return Number(Y);default:return Y}};
return A});var dT8=0,wLP=[];var R2A=lX(function(R){function A(z){z=Object.getPrototypeOf(z);return z.prototype instanceof E?z:null}
function Y(z){if(!z.hasOwnProperty("__ownProperties")){var c=null;if(z.hasOwnProperty("properties")){var M=z.properties;if(M){c={};for(var N in M){var y=M[N];c[N]=typeof y==="function"?{type:y}:y}}}z.__ownProperties=c}return z.__ownProperties}
var P=LZN(R),E=function(){return P.apply(this,arguments)||this};
_.H(E,P);E.finalize=function(){if(!this.hasOwnProperty("__finalized")){var z=A(this);z&&z.finalize();this.__finalized=!0;this._finalizeClass()}};
E._finalizeClass=function(){var z=Y(this);z&&this.createProperties(z)};
E.typeForProperty=function(z){return(z=this._properties[z])&&z.type};
E.prototype._initializeProperties=function(){dT8++;this.constructor.finalize();P.prototype._initializeProperties.call(this)};
E.prototype.connectedCallback=function(){P.prototype.connectedCallback&&P.prototype.connectedCallback.call(this);this._enableProperties()};
E.prototype.disconnectedCallback=function(){P.prototype.disconnectedCallback&&P.prototype.disconnectedCallback.call(this)};
_.Yh.Object.defineProperties(E,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var z=this;if(!this.hasOwnProperty("__observedAttributes")){unP(this.prototype);var c=this._properties;this.__observedAttributes=c?Object.keys(c).map(function(M){return z.prototype._addPropertyToAttributeMap(M)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var z=A(this);this.__properties=Object.assign({},z&&z._properties,Y(this))}return this.__properties}}});
return E});var e86={},qr6=/-[a-z]/g,LOP=/([A-Z])/g;for(var A07={},YQ7=HTMLElement.prototype;YQ7;){for(var Pw8=Object.getOwnPropertyNames(YQ7),EbZ=0;EbZ<Pw8.length;EbZ++)A07[Pw8[EbZ]]=!0;YQ7=Object.getPrototypeOf(YQ7)}var z2q=window.trustedTypes?function(R){return trustedTypes.isHTML(R)||trustedTypes.isScript(R)||trustedTypes.isScriptURL(R)}:function(){return!1},ixf=lX(function(R){var A=LZN(R);
R=function(){return A.apply(this,arguments)||this};
_.H(R,A);R.createPropertiesForAttributes=function(){for(var Y=this.observedAttributes,P=0;P<Y.length;P++)this.prototype._createPropertyAccessor(MK(Y[P]))};
R.attributeNameForProperty=function(Y){return s_(Y)};
R.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);A.prototype._initializeProperties.call(this)};
R.prototype._initializeProtoProperties=function(Y){for(var P in Y)this._setProperty(P,Y[P])};
R.prototype._ensureAttribute=function(Y,P){this.hasAttribute(Y)||this._valueToNodeAttribute(this,P,Y)};
R.prototype._serializeValue=function(Y){switch(typeof Y){case "object":if(Y instanceof Date)return Y.toString();if(Y){if(z2q(Y))return Y;try{return JSON.stringify(Y)}catch(P){return""}}default:return A.prototype._serializeValue.call(this,Y)}};
R.prototype._deserializeValue=function(Y,P){switch(P){case Object:try{var E=JSON.parse(Y)}catch(z){E=Y}break;case Array:try{E=JSON.parse(Y)}catch(z){E=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+Y)}break;case Date:E=isNaN(Y)?String(Y):Number(Y);E=new Date(E);break;default:E=A.prototype._deserializeValue.call(this,Y,P)}return E};
R.prototype._definePropertyAccessor=function(Y,P){if(!A07[Y]){var E=this[Y];E!==void 0&&(this.__data?this._setPendingProperty(Y,E):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[Y]=E))}A.prototype._definePropertyAccessor.call(this,Y,P)};
R.prototype._hasAccessor=function(Y){return this.__dataHasAccessor&&this.__dataHasAccessor[Y]};
R.prototype._isPropertyPending=function(Y){return!!(this.__dataPending&&Y in this.__dataPending)};
return R});var lnD={"dom-if":!0,"dom-repeat":!0},x6A=!1,c0N=!1,OxN=function(){var R=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(A){return A}});
return function(A,Y,P){Y=Y.getAttribute(P);R&&P.startsWith("on-")?A.setAttribute(P,R.createScript(Y,P)):A.setAttribute(P,Y)}}(),M9N=lX(function(R){var A=function(){return R.apply(this,arguments)||this};
_.H(A,R);A._parseTemplate=function(Y,P){if(!Y._templateInfo){var E=Y._templateInfo={};E.nodeInfoList=[];E.nestedTemplate=!!P;E.stripWhiteSpace=P&&P.stripWhiteSpace||Y.hasAttribute&&Y.hasAttribute("strip-whitespace");this._parseTemplateContent(Y,E,{parent:null})}return Y._templateInfo};
A._parseTemplateContent=function(Y,P,E){return this._parseTemplateNode(Y.content,P,E)};
A._parseTemplateNode=function(Y,P,E){var z=!1;Y.localName!="template"||Y.hasAttribute("preserve-content")?Y.localName==="slot"&&(P.hasInsertionPoint=!0):z=this._parseTemplateNestedTemplate(Y,P,E)||z;if(!x6A){x6A=!0;var c=document.createElement("textarea");c.placeholder="a";c0N=c.placeholder===c.textContent}c0N&&Y.localName==="textarea"&&Y.placeholder&&Y.placeholder===Y.textContent&&(Y.textContent=null);Y.firstChild&&this._parseTemplateChildNodes(Y,P,E);Y.hasAttributes&&Y.hasAttributes()&&(z=this._parseTemplateNodeAttributes(Y,
P,E)||z);return z||E.noted};
A._parseTemplateChildNodes=function(Y,P,E){if(Y.localName!=="script"&&Y.localName!=="style")for(var z=Y.firstChild,c=0,M;z;z=M){if(z.localName=="template"){var N=z.getAttribute("is");if(N&&lnD[N])for(M=z,M.removeAttribute("is"),z=M.ownerDocument.createElement(N),M.parentNode.replaceChild(z,M),z.appendChild(M);M.attributes.length;)N=M.attributes[0].name,OxN(z,M,N),M.removeAttribute(N)}M=z.nextSibling;if(z.nodeType===Node.TEXT_NODE){for(N=M;N&&N.nodeType===Node.TEXT_NODE;)z.textContent+=N.textContent,
M=N.nextSibling,Y.removeChild(N),N=M;if(P.stripWhiteSpace&&!z.textContent.trim()){Y.removeChild(z);continue}}N={parentIndex:c,parentInfo:E};this._parseTemplateNode(z,P,N)&&(N.infoIndex=P.nodeInfoList.push(N)-1);z.parentNode&&c++}};
A._parseTemplateNestedTemplate=function(Y,P,E){P=this._parseTemplate(Y,P);(P.content=Y.content.ownerDocument.createDocumentFragment()).appendChild(Y.content);E.templateInfo=P;return!0};
A._parseTemplateNodeAttributes=function(Y,P,E){for(var z=!1,c=Array.from(Y.attributes),M=c.length-1,N;N=c[M];M--)z=this._parseTemplateNodeAttribute(Y,P,E,N.name,N.value)||z;return z};
A._parseTemplateNodeAttribute=function(Y,P,E,z,c){return z.slice(0,3)==="on-"?(Y.removeAttribute(z),E.events=E.events||[],E.events.push({name:z.slice(3),value:c}),!0):z==="id"?(E.id=c,!0):!1};
A._contentForTemplate=function(Y){var P=Y._templateInfo;return P&&P.content||Y.content};
A.prototype._stampTemplate=function(Y,P){Y&&!Y.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(Y);P=P||this.constructor._parseTemplate(Y);var E=P.nodeInfoList;Y=document.importNode(P.content||Y.content,!0);Y.__noInsertionPoint=!P.hasInsertionPoint;var z=Y.nodeList=Array(E.length);Y.$={};for(var c=0,M=E.length,N=void 0;c<M&&(N=E[c]);c++){var y=z[c]=dh3(Y,N);N.id&&(Y.$[N.id]=y);var m=y,T=N,Q=P;T.templateInfo&&(m._templateInfo=T.templateInfo,m._parentTemplateInfo=
Q);if(N.events&&N.events.length)for(m=0,T=N.events,Q=void 0;m<T.length&&(Q=T[m]);m++)this._addMethodEventListenerToNode(y,Q.name,Q.value,this)}return Y};
A.prototype._addMethodEventListenerToNode=function(Y,P,E,z){E=R3S(z||Y,E);this._addEventListenerToNode(Y,P,E);return E};
A.prototype._addEventListenerToNode=function(Y,P,E){Y.addEventListener(P,E)};
A.prototype._removeEventListenerFromNode=function(Y,P,E){Y.removeEventListener(P,E)};
return A});var Qc=0,Hu=[],saE={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},NFH=/[A-Z]/,V9E=function(R,A,Y,P,E){var z=E?Vc(R):R;if(A=A[z])for(z=0;z<A.length;z++){var c=A[z];if(c.info.lastRun!==Qc&&(!E||i6V(R,c.trigger))){c.info.lastRun=Qc;c=c.info;for(var M=Y,N=P,y=0,m=M.length-1,T=-1;y<=m;){var Q=y+m>>1,g=N.get(M[Q].methodInfo)-N.get(c.methodInfo);if(g<0)y=Q+1;else if(g>0)m=Q-1;else{T=Q;break}}T<
0&&(T=m+1);M.splice(T,0,c)}}},gjI=[],J0A=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"),cy=lX(function(R){var A=M9N(ixf(R));
R=function(){var Y=A.call(this)||this;Y.__isPropertyEffectsClient=!0;return Y};
_.H(R,A);R.prototype._initializeProperties=function(){A.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};
R.prototype._registerHost=function(){if(xI.length){var Y=xI[xI.length-1];Y._enqueueClient(this);this.__dataHost=Y}};
R.prototype._initializeProtoProperties=function(Y){this.__data=Object.create(Y);this.__dataPending=Object.create(Y);this.__dataOld={}};
R.prototype._initializeInstanceProperties=function(Y){var P=this.__readOnly,E;for(E in Y)P&&P[E]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[E]=this.__dataPending[E]=Y[E])};
R.prototype._addPropertyEffect=function(Y,P,E){this._createPropertyAccessor(Y,P=="__readOnly");var z=z3u(this,P,!0)[Y];z||(z=this[P][Y]=[]);z.push(E)};
R.prototype._removePropertyEffect=function(Y,P,E){Y=z3u(this,P,!0)[Y];E=Y.indexOf(E);E>=0&&Y.splice(E,1)};
R.prototype._hasPropertyEffect=function(Y,P){P=this[P];return!(!P||!P[Y])};
R.prototype._hasReadOnlyEffect=function(Y){return this._hasPropertyEffect(Y,"__readOnly")};
R.prototype._hasNotifyEffect=function(Y){return this._hasPropertyEffect(Y,"__notifyEffects")};
R.prototype._hasReflectEffect=function(Y){return this._hasPropertyEffect(Y,"__reflectEffects")};
R.prototype._hasComputedEffect=function(Y){return this._hasPropertyEffect(Y,"__computeEffects")};
R.prototype._setPendingPropertyOrPath=function(Y,P,E,z){if(z||Vc(Array.isArray(Y)?Y[0]:Y)!==Y){if(!z&&(z=TR(this,Y),Y=Ej3(this,Y,P),!Y||!A.prototype._shouldPropertyChange.call(this,Y,P,z)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(Y,P,E)){if(E=this.__dataLinkedPaths)for(var c in E)z=E[c],Jw(c,Y)?(z=yc(c,z,Y),this._setPendingPropertyOrPath(z,P,!0,!0)):Jw(z,Y)&&(z=yc(z,c,Y),this._setPendingPropertyOrPath(z,P,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[Y])return this._setPendingProperty(Y,
P,E);this[Y]=P}return!1};
R.prototype._setUnmanagedPropertyToNode=function(Y,P,E){if(E!==Y[P]||typeof E=="object")P==="className"&&(Y=(0,_.gv)(Y)),Y[P]=E};
R.prototype._setPendingProperty=function(Y,P,E){var z=this.__dataHasPaths&&NK(Y);if(this._shouldPropertyChange(Y,P,(z?this.__dataTemp:this.__data)[Y])){this.__dataPending||(this.__dataPending={},this.__dataOld={});Y in this.__dataOld||(this.__dataOld[Y]=this.__data[Y]);z?this.__dataTemp[Y]=P:this.__data[Y]=P;this.__dataPending[Y]=P;if(z||this.__notifyEffects&&this.__notifyEffects[Y])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[Y]=E;return!0}return!1};
R.prototype._setProperty=function(Y,P){this._setPendingProperty(Y,P,!0)&&this._invalidateProperties()};
R.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
R.prototype._enqueueClient=function(Y){this.__dataPendingClients=this.__dataPendingClients||[];Y!==this&&this.__dataPendingClients.push(Y)};
R.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
R.prototype.__enableOrFlushClients=function(){var Y=this.__dataPendingClients;if(Y){this.__dataPendingClients=null;for(var P=0;P<Y.length;P++){var E=Y[P];E.__dataEnabled?E.__dataPending&&E._flushProperties():E._enableProperties()}}};
R.prototype._readyClients=function(){this.__enableOrFlushClients()};
R.prototype.setProperties=function(Y,P){for(var E in Y)!P&&this.__readOnly&&this.__readOnly[E]||this._setPendingPropertyOrPath(E,Y[E],!0);this._invalidateProperties()};
R.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
R.prototype._propertiesChanged=function(Y,P,E){Y=this.__dataHasPaths;this.__dataHasPaths=!1;var z;if(z=this.__computeEffects)if(oo8){Qc++;var c=sLS(this),M=[],N;for(N in P)V9E(N,z,M,c,Y);for(;N=M.shift();)Vvu(this,"",P,E,N)&&V9E(N.methodInfo,z,M,c,Y);Object.assign(E,this.__dataOld);Object.assign(P,this.__dataPending);this.__dataPending=null}else for(c=P;vu(this,z,c,E,Y);)Object.assign(E,this.__dataOld),Object.assign(P,this.__dataPending),c=this.__dataPending,this.__dataPending=null;z=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(P,E,Y);this._flushClients();vu(this,this.__reflectEffects,P,E,Y);vu(this,this.__observeEffects,P,E,Y);if(z){c=this.__notifyEffects;M=Qc++;for(var y in z)if(z[y]){if(N=c){var m=c;N=M;var T=y,Q=P,g=E,r=Y,I=!1,b=r?Vc(T):T;if(m=m[b]){b=0;for(var p=m.length,h=void 0;b<p&&(h=m[b]);b++)h.info&&h.info.lastRun===N||r&&!i6V(T,h.trigger)||(h.info&&(h.info.lastRun=N),h.fn(this,T,Q,g,h.info,r,void 0),I=!0)}N=I}if(N)var L=!0;else{if(N=Y)N=y,T=P,Q=Vc(N),Q!==
N?(Q=s_(Q)+"-changed",xmq(this,Q,T[N],N),N=!0):N=!1;N&&(L=!0)}}var Z;L&&(Z=this.__dataHost)&&Z._invalidateProperties&&Z._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
R.prototype._propagatePropertyChanges=function(Y,P,E){this.__propagateEffects&&vu(this,this.__propagateEffects,Y,P,E);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,Y,P,E)};
R.prototype._runEffectsForTemplate=function(Y,P,E,z){var c=this,M=function(N,y){vu(c,Y.propertyEffects,N,E,y,Y.nodeList);for(var m=Y.firstChild;m;m=m.nextSibling)c._runEffectsForTemplate(m,N,E,y)};
Y.runEffects?Y.runEffects(M,P,z):M(P,z)};
R.prototype.linkPaths=function(Y,P){Y=me(Y);P=me(P);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[Y]=P};
R.prototype.unlinkPaths=function(Y){Y=me(Y);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[Y]};
R.prototype.notifySplices=function(Y,P){var E={path:""};Y=TR(this,Y,E);Dmk(this,Y,E.path,P)};
R.prototype.get=function(Y,P){return TR(P||this,Y)};
R.prototype.set=function(Y,P,E){E?Ej3(E,Y,P):this.__readOnly&&this.__readOnly[Y]||this._setPendingPropertyOrPath(Y,P,!0)&&this._invalidateProperties()};
R.prototype.push=function(Y){var P=_.Ge.apply(1,arguments),E={path:""},z=TR(this,Y,E),c=z.length,M=z.push.apply(z,_.py(P));P.length&&DN(this,z,E.path,c,P.length,[]);return M};
R.prototype.pop=function(Y){var P={path:""};Y=TR(this,Y,P);var E=!!Y.length,z=Y.pop();E&&DN(this,Y,P.path,Y.length,0,[z]);return z};
R.prototype.splice=function(Y,P,E){var z=_.Ge.apply(3,arguments),c={path:""},M=TR(this,Y,c);P<0?P=M.length-Math.floor(-P):P&&(P=Math.floor(P));var N=arguments.length===2?M.splice(P):M.splice.apply(M,[P,E].concat(_.py(z)));(z.length||N.length)&&DN(this,M,c.path,P,z.length,N);return N};
R.prototype.shift=function(Y){var P={path:""};Y=TR(this,Y,P);var E=!!Y.length,z=Y.shift();E&&DN(this,Y,P.path,0,0,[z]);return z};
R.prototype.unshift=function(Y){var P=_.Ge.apply(1,arguments),E={path:""},z=TR(this,Y,E),c=z.unshift.apply(z,_.py(P));P.length&&DN(this,z,E.path,0,P.length,[]);return c};
R.prototype.notifyPath=function(Y,P){if(arguments.length==1){var E={path:""};P=TR(this,Y,E);E=E.path}else E=Array.isArray(Y)?me(Y):Y;this._setPendingPropertyOrPath(E,P,!0,!0)&&this._invalidateProperties()};
R.prototype._createReadOnlyProperty=function(Y,P){this._addPropertyEffect(Y,"__readOnly");P&&(this["_set"+(Y[0].toUpperCase()+Y.substring(1))]=function(E){this._setProperty(Y,E)})};
R.prototype._createPropertyObserver=function(Y,P,E){var z={property:Y,method:P,dynamicFn:!!E};this._addPropertyEffect(Y,"__observeEffects",{fn:l78,info:z,trigger:{name:Y}});E&&this._addPropertyEffect(P,"__observeEffects",{fn:l78,info:z,trigger:{name:P}})};
R.prototype._createMethodObserver=function(Y,P){var E=H6u(Y);if(!E)throw Error("Ad`"+Y);QLk(this,E,"__observeEffects",Neq,null,P)};
R.prototype._createNotifyingProperty=function(Y){this._addPropertyEffect(Y,"__notifyEffects",{fn:cV8,info:{eventName:s_(Y)+"-changed",property:Y}})};
R.prototype._createReflectedProperty=function(Y){var P=this.constructor.attributeNameForProperty(Y);P[0]==="-"?console.warn("Property "+Y+" cannot be reflected to attribute "+P+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(Y,"__reflectEffects",{fn:O6J,info:{attrName:P}})};
R.prototype._createComputedProperty=function(Y,P,E){var z=H6u(P);if(!z)throw Error("Bd`"+P);P=QLk(this,z,"__computeEffects",Vvu,Y,E);z3u(this,"__computeInfo")[Y]=P};
R.prototype._marshalArgs=function(Y,P,E){for(var z=this.__data,c=[],M=0,N=Y.length;M<N;M++){var y=Y[M],m=y.name,T=y.structured,Q=y.wildcard,g=y.value;y.literal||(Q?(y=Jw(m,P),T=rV6(z,E,y?P:m),g={path:y?P:m,value:T,base:y?TR(z,m):T}):g=T?rV6(z,E,m):z[m]);if(rv&&!this._overrideLegacyUndefined&&g===void 0&&Y.length>1)return Hu;c[M]=g}return c};
R.addPropertyEffect=function(Y,P,E){this.prototype._addPropertyEffect(Y,P,E)};
R.createPropertyObserver=function(Y,P,E){this.prototype._createPropertyObserver(Y,P,E)};
R.createMethodObserver=function(Y,P){this.prototype._createMethodObserver(Y,P)};
R.createNotifyingProperty=function(Y){this.prototype._createNotifyingProperty(Y)};
R.createReadOnlyProperty=function(Y,P){this.prototype._createReadOnlyProperty(Y,P)};
R.createReflectedProperty=function(Y){this.prototype._createReflectedProperty(Y)};
R.createComputedProperty=function(Y,P,E){this.prototype._createComputedProperty(Y,P,E)};
R.bindTemplate=function(Y){return this.prototype._bindTemplate(Y)};
R.prototype._bindTemplate=function(Y,P){var E=this.constructor._parseTemplate(Y),z=this.__preBoundTemplateInfo==E;if(!z)for(var c in E.propertyEffects)this._createPropertyAccessor(c);P?(E=Object.create(E),E.wasPreBound=z,this.__templateInfo?(Y=Y._parentTemplateInfo||this.__templateInfo,P=Y.lastChild,E.parent=Y,Y.lastChild=E,(E.previousSibling=P)?P.nextSibling=E:Y.firstChild=E):this.__templateInfo=E):this.__preBoundTemplateInfo=E;return E};
R._addTemplatePropertyEffect=function(Y,P,E){(Y.hostProps=Y.hostProps||{})[P]=!0;Y=Y.propertyEffects=Y.propertyEffects||{};(Y[P]=Y[P]||[]).push(E)};
R.prototype._stampTemplate=function(Y,P){P=P||this._bindTemplate(Y,!0);xI.push(this);Y=A.prototype._stampTemplate.call(this,Y,P);xI.pop();P.nodeList=Y.nodeList;if(!P.wasPreBound)for(var E=P.childNodes=[],z=Y.firstChild;z;z=z.nextSibling)E.push(z);Y.templateInfo=P;E=P.nodeList;z=P.nodeInfoList;if(z.length)for(var c=0;c<z.length;c++){var M=E[c],N=z[c].bindings;if(N)for(var y=0;y<N.length;y++){var m=N[y],T=M,Q=m;if(Q.isCompound){for(var g=T.__dataCompoundStorage||(T.__dataCompoundStorage={}),r=Q.parts,
I=Array(r.length),b=0;b<r.length;b++)I[b]=r[b].literal;r=Q.target;g[r]=I;Q.literal&&Q.kind=="property"&&(r==="className"&&(T=(0,_.gv)(T)),T[r]=Q.literal)}TeS(M,this,m)}M.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(P,this.__data,null,!1),this._flushClients());return Y};
R.prototype._removeBoundDom=function(Y){Y=Y.templateInfo;var P=Y.previousSibling,E=Y.nextSibling,z=Y.parent;P?P.nextSibling=E:z&&(z.firstChild=E);E?E.previousSibling=P:z&&(z.lastChild=P);Y.nextSibling=Y.previousSibling=null;Y=Y.childNodes;for(P=0;P<Y.length;P++)E=Y[P],(0,_.gv)((0,_.gv)(E).parentNode).removeChild(E)};
R._parseTemplateNode=function(Y,P,E){var z=A._parseTemplateNode.call(this,Y,P,E);if(Y.nodeType===Node.TEXT_NODE){var c=this._parseBindings(Y.textContent,P);c&&(Y.textContent=vj6(c)||" ",mmP(this,P,E,"text","textContent",c),z=!0)}return z};
R._parseTemplateNodeAttribute=function(Y,P,E,z,c){var M=this._parseBindings(c,P);if(M){c=z;var N="property";NFH.test(z)?N="attribute":z[z.length-1]=="$"&&(z=z.slice(0,-1),N="attribute");var y=vj6(M);y&&N=="attribute"&&(z=="class"&&Y.hasAttribute("class")&&(y+=" "+Y.getAttribute(z)),Y.setAttribute(z,y));N=="attribute"&&c=="disable-upgrade$"&&Y.setAttribute(z,"");Y.localName==="input"&&c==="value"&&Y.setAttribute(c,"");Y.removeAttribute(c);N==="property"&&(z=MK(z));mmP(this,P,E,N,z,M,y);return!0}return A._parseTemplateNodeAttribute.call(this,
Y,P,E,z,c)};
R._parseTemplateNestedTemplate=function(Y,P,E){var z=A._parseTemplateNestedTemplate.call(this,Y,P,E),c=Y.parentNode,M=E.templateInfo,N=c.localName==="dom-if",y=c.localName==="dom-repeat";YI&&(N||y)&&(c.removeChild(Y),E=E.parentInfo,E.templateInfo=M,E.noted=!0,z=!1);Y=M.hostProps;if(Py&&N)Y&&(P.hostProps=Object.assign(P.hostProps||{},Y),YI||(E.parentInfo.noted=!0));else for(var m in Y)mmP(this,P,E,"property","_host_"+m,[{mode:"{",source:m,dependencies:[m],hostProp:!0}]);return z};
R._parseBindings=function(Y,P){for(var E=[],z=0,c;(c=J0A.exec(Y))!==null;){c.index>z&&E.push({literal:Y.slice(z,c.index)});z=c[1][0];var M=!!c[2];c=c[3].trim();var N=!1,y="",m=-1;z=="{"&&(m=c.indexOf("::"))>0&&(y=c.substring(m+2),c=c.substring(0,m),N=!0);m=H6u(c);var T=[];if(m){var Q=m,g=Q.args;Q=Q.methodName;for(var r=0;r<g.length;r++){var I=g[r];I.literal||T.push(I)}if((g=P.dynamicFns)&&g[Q]||m.static)T.push(Q),m.dynamicFn=!0}else T.push(c);E.push({source:c,mode:z,negate:M,customEvent:N,signature:m,
dependencies:T,event:y});z=J0A.lastIndex}z&&z<Y.length&&(Y=Y.substring(z))&&E.push({literal:Y});return E.length?E:null};
R._evaluateBinding=function(Y,P,E,z,c,M){Y=P.signature?Neq(Y,E,z,c,P.signature):E!=P.source?TR(Y,P.source):M&&NK(E)?TR(Y,E):Y.__data[E];P.negate&&(Y=!Y);return Y};
_.Yh.Object.defineProperties(R.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return saE}}});
return R}),xI=[];var y0b=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ou=lX(function(R){function A(P,E,z,c){if(!y0b){for(var M=E.content.querySelectorAll("style"),N=SRu(E),y=I7q(z),m=E.content.firstElementChild,T=0;T<y.length;T++){var Q=y[T];Q.textContent=P._processStyleText(Q.textContent,c);E.content.insertBefore(Q,m)}for(m=y=0;m<N.length;m++)T=N[m],Q=M[y],Q!==T?(T=T.cloneNode(!0),Q.parentNode.insertBefore(T,Q)):y++,T.textContent=P._processStyleText(T.textContent,c)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(E,
z);if(Giq&&y0b&&BHb&&(E=E.content.querySelectorAll("style"))){var g="";Array.from(E).forEach(function(r){g+=r.textContent;r.parentNode.removeChild(r)});
P._styleSheet=new CSSStyleSheet;P._styleSheet.replaceSync(g)}}
var Y=R2A(cy(R));R=function(){return Y.call(this)||this};
_.H(R,Y);R._finalizeClass=function(){Y._finalizeClass.call(this);var P;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(P=this.__ownObservers)&&this.createObservers(P,this._properties);this._prepareTemplate()};
R._prepareTemplate=function(){var P=this.template;P&&(typeof P==="string"?(console.error("template getter must return HTMLTemplateElement"),P=null):hw||(P=P.cloneNode(!0)));this.prototype._template=P};
R.createProperties=function(P){for(var E in P){var z=this.prototype,c=E,M=P[E],N=P;M.computed&&(M.readOnly=!0);M.computed&&(z._hasReadOnlyEffect(c)?console.warn("Cannot redefine computed property '"+c+"'."):z._createComputedProperty(c,M.computed,N));M.readOnly&&!z._hasReadOnlyEffect(c)?z._createReadOnlyProperty(c,!M.computed):M.readOnly===!1&&z._hasReadOnlyEffect(c)&&console.warn("Cannot make readOnly property '"+c+"' non-readOnly.");M.reflectToAttribute&&!z._hasReflectEffect(c)?z._createReflectedProperty(c):
M.reflectToAttribute===!1&&z._hasReflectEffect(c)&&console.warn("Cannot make reflected property '"+c+"' non-reflected.");M.notify&&!z._hasNotifyEffect(c)?z._createNotifyingProperty(c):M.notify===!1&&z._hasNotifyEffect(c)&&console.warn("Cannot make notify property '"+c+"' non-notify.");M.observer&&z._createPropertyObserver(c,M.observer,N[M.observer]);z._addPropertyToAttributeMap(c)}};
R.createObservers=function(P,E){for(var z=this.prototype,c=0;c<P.length;c++)z._createMethodObserver(P[c],E)};
R.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);Y.prototype._initializeProperties.call(this);this.rootPath=aMH;this.importPath=this.constructor.importPath;var P=this.constructor;if(!P.hasOwnProperty("__propertyDefaults")){P.__propertyDefaults=null;var E=P._properties,z;for(z in E){var c=E[z];"value"in c&&(P.__propertyDefaults=P.__propertyDefaults||{},P.__propertyDefaults[z]=c)}}if(P=P.__propertyDefaults)for(var M in P)E=P[M],
this._canApplyPropertyDefault(M)&&(E=typeof E.value=="function"?E.value.call(this):E.value,this._hasAccessor(M)?this._setPendingProperty(M,E,!0):this[M]=E)};
R.prototype._canApplyPropertyDefault=function(P){return!this.hasOwnProperty(P)};
R._processStyleText=function(P,E){return osk(P,E)};
R._finalizeTemplate=function(P){var E=this.prototype._template;if(E&&!E.__polymerFinalized){E.__polymerFinalized=!0;var z=this.importPath;z=z?_.cu(z):"";A(this,E,P,z);this.prototype._bindTemplate(E)}};
R.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);Y.prototype.connectedCallback.call(this)};
R.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);Y.prototype.ready.call(this)};
R.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));Y.prototype._readyClients.call(this)};
R.prototype._attachDom=function(P){var E=(0,_.gv)(this);if(E.attachShadow)return P?(E.shadowRoot||(E.attachShadow({mode:"open",shadyUpgradeFragment:P}),E.shadowRoot.appendChild(P),this.constructor._styleSheet&&(E.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),hYS&&window.ShadyDOM&&window.ShadyDOM.flushInitial(E.shadowRoot),E.shadowRoot):null;throw Error("Dd");};
R.prototype.updateStyles=function(P){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,P)};
R.prototype.resolveUrl=function(P,E){!E&&this.importPath&&(E=_.cu(this.importPath));return _.cu(P,E)};
R._parseTemplateContent=function(P,E,z){E.dynamicFns=E.dynamicFns||this._properties;return Y._parseTemplateContent.call(this,P,E,z)};
R._addTemplatePropertyEffect=function(P,E,z){!ZN||E in this._properties||z.info.part.signature&&z.info.part.signature.static||z.info.part.hostProp||P.nestedTemplate||console.warn("Property '"+E+"' used in template but not declared in 'properties'; attribute will not be observed.");return Y._addTemplatePropertyEffect.call(this,P,E,z)};
_.Yh.Object.defineProperties(R,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var P=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof P==="function"&&(P=P());if(P===void 0){if(P=this.hasOwnProperty("is")){P=this.is;var E=null;if(P&&(!tw||CEq)&&(E=U_.import(P,"template"),tw&&!E))throw Error("Cd`"+P);P=E}P=P||Object.getPrototypeOf(this.prototype).constructor.template}this._template=P}return this._template},
set:function(P){this._template=P}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var P=this.importMeta;P?this._importPath=ktP(P.url):this._importPath=(P=U_.import(this.is))&&P.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return R});var m6A=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(R){return R}}),F8P=function(R,A){TFf(R,A);
this.value=A.reduce(function(Y,P,E){return Y+Bel(P)+R[E+1]},R[0]).toString()},TFf;
F8P.prototype.toString=function(){return this.value};
_.Qa8=function(R){var A=_.Ge.apply(1,arguments);TFf(R,A);var Y=document.createElement("template");A=A.reduce(function(P,E,z){if(E instanceof HTMLTemplateElement)E=E.innerHTML;else if(E instanceof F8P)E=Bel(E);else throw Error("Fd`"+E);return P+E+R[z+1]},R[0]);
m6A&&(A=m6A.createHTML(A));Y.innerHTML=A;return Y};
TFf=function(R,A){if(!Array.isArray(R)||!Array.isArray(R.raw)||A.length!==R.length-1)throw new TypeError("Gd");};var MB=Ou(HTMLElement);var vbE=lX(function(R){var A=Ou(R);R=function(){var Y=A.call(this)||this;Y.__lastItems=null;Y.__lastMulti=null;Y.__selectedMap=null;return Y};
_.H(R,A);R.prototype.__updateSelection=function(Y,P){var E=P.path;E=="items"?(P=P.base||[],E=this.__lastItems,Y!==this.__lastMulti&&this.clearSelection(),E&&(E=pCS(P,E),this.__applySplices(E)),this.__lastItems=P,this.__lastMulti=Y):P.path=="items.splices"?this.__applySplices(P.value.indexSplices):(Y=E.slice(6),P=parseInt(Y,10),Y.indexOf(".")<0&&Y==P&&this.__deselectChangedIdx(P))};
R.prototype.__applySplices=function(Y){for(var P=this,E=this.__selectedMap,z={},c=0;c<Y.length;z={s$jscomp$109:void 0},c++){z.s$jscomp$109=Y[c];E.forEach(function(m){return function(T,Q){T<m.s$jscomp$109.index||(T>=m.s$jscomp$109.index+m.s$jscomp$109.removed.length?E.set(Q,T+m.s$jscomp$109.addedCount-m.s$jscomp$109.removed.length):E.set(Q,-1))}}(z));
for(var M=0;M<z.s$jscomp$109.addedCount;M++){var N=z.s$jscomp$109.index+M;E.has(this.items[N])&&E.set(this.items[N],N)}}this.__updateLinks();var y=0;E.forEach(function(m,T){m<0?(P.multi?P.splice("selected",y,1):P.selected=P.selectedItem=null,E.delete(T)):y++})};
R.prototype.__updateLinks=function(){var Y=this;this.__dataLinkedPaths={};if(this.multi){var P=0;this.__selectedMap.forEach(function(E){E>=0&&Y.linkPaths("items."+E,"selected."+P++)})}else this.__selectedMap.forEach(function(E){Y.linkPaths("selected","items."+E);
Y.linkPaths("selectedItem","items."+E)})};
R.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
R.prototype.isSelected=function(Y){return this.__selectedMap.has(Y)};
R.prototype.isIndexSelected=function(Y){return this.isSelected(this.items[Y])};
R.prototype.__deselectChangedIdx=function(Y){var P=this,E=this.__selectedIndexForItemIndex(Y);if(E>=0){var z=0;this.__selectedMap.forEach(function(c,M){E==z++&&P.deselect(M)})}};
R.prototype.__selectedIndexForItemIndex=function(Y){if(Y=this.__dataLinkedPaths["items."+Y])return parseInt(Y.slice(9),10)};
R.prototype.deselect=function(Y){var P=this.__selectedMap.get(Y);if(P>=0){this.__selectedMap.delete(Y);var E;this.multi&&(E=this.__selectedIndexForItemIndex(P));this.__updateLinks();this.multi?this.splice("selected",E,1):this.selected=this.selectedItem=null}};
R.prototype.deselectIndex=function(Y){this.deselect(this.items[Y])};
R.prototype.select=function(Y){this.selectIndex(this.items.indexOf(Y))};
R.prototype.selectIndex=function(Y){var P=this.items[Y];this.isSelected(P)?this.toggle&&this.deselectIndex(Y):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(P,Y),this.__updateLinks(),this.multi?this.push("selected",P):this.selected=this.selectedItem=P)};
_.Yh.Object.defineProperties(R,{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 R}),gbH=vbE(MB),su=function(){return gbH.apply(this,arguments)||this};
_.H(su,gbH);_.Yh.Object.defineProperties(su,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(su.is,su);var nb8=window.Polymer;window.Polymer=function(R){return window.Polymer._polymerFn(R)};
nb8&&Object.assign(Polymer,nb8);Polymer._polymerFn=function(){throw Error("Hd");};/*

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:osk,resolveUrl:_.cu,pathFromUrl:ktP};Polymer.DomModule=U_;Polymer.Async={timeOut:_.iX,animationFrame:_.Wc,idlePeriod:eYG,microTask:a$};Polymer.dedupingMixin=lX;Polymer.wrap=_.gv;Polymer.PropertiesChanged=LZN;Polymer.telemetry={instanceCount:dT8,incrementInstanceCount:function(){dT8++},
registrations:wLP,register:unP,dumpRegistrations:function(){wLP.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=R2A;Polymer.CaseMap={dashToCamelCase:MK,camelToDashCase:s_};Polymer.PropertyAccessors=ixf;Polymer.TemplateStamp=M9N;Polymer.Path={isPath:NK,root:Vc,isAncestor:AVS,isDescendant:Jw,translate:yc,matches:YR6,normalize:me,split:PDb,get:TR,set:Ej3,isDeep:NK};Polymer.Settings={useShadow:o$,useNativeCSSProperties:joE,useNativeCustomElements:bjf,get rootPath(){return aMH},setRootPath:function(R){aMH=R},
get sanitizeDOMValue(){return ng},setSanitizeDOMValue:function(R){ng=R},
get passiveTouchGestures(){return L8q},setPassiveTouchGestures:function(R){L8q=R},
get strictTemplatePolicy(){return tw},setStrictTemplatePolicy:function(R){tw=R},
get allowTemplateFromDomModule(){return CEq},setAllowTemplateFromDomModule:function(R){CEq=R},
get legacyOptimizations(){return hw},setLegacyOptimizations:function(R){hw=R},
get syncInitialRender(){return hYS},setSyncInitialRender:function(R){hYS=R},
get legacyUndefined(){return rv},setLegacyUndefined:function(R){rv=R},
get legacyWarnings(){return ZN},setLegacyWarnings:function(R){ZN=R},
get orderedComputed(){return oo8},setOrderedComputed:function(R){oo8=R},
get fastDomIf(){return Py},setFastDomIf:function(R){Py=R},
get removeNestedTemplates(){return YI},setRemoveNestedTemplates:function(R){YI=R},
get suppressTemplateNotifications(){return Eu},setSuppressTemplateNotifications:Eu};Polymer.rootPath!==void 0&&(aMH=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(ng=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(L8q=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(tw=Polymer.strictTemplatePolicy);CEq=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(hw=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(hYS=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(rv=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(ZN=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(oo8=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Py=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(YI=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Eu=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return ng},
set:function(R){ng=R}});Polymer.PropertyEffects=cy;Polymer.StyleGather={stylesFromModules:XCl,stylesFromModule:$mI,stylesFromTemplate:SRu,stylesFromModuleImports:I7q,cssFromModules:W88,cssFromModule:K86,cssFromTemplate:jLk,cssFromModuleImports:function(R){return(R=U_.import(R))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(R):""}};Polymer.ElementMixin=Ou;Polymer.updateStyles=function(R){window.ShadyCSS&&window.ShadyCSS.styleDocument(R)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:pCS};Polymer.html=_.Qa8;Polymer.htmlLiteral=function(R){return new F8P(R,_.Ge.apply(1,arguments))};Polymer.Element=MB;Polymer.ArraySelectorMixin=vbE;Polymer.ArraySelector=su;var Hxf=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,r0Z=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,T$S=/@media\s(.*)/;var oj6=null,h3k=window.HTMLImports&&window.HTMLImports.whenReady||null,kGV;var D68=null,NB=null,VH=function(){this.customStyles=[];this.enqueued=!1;GGJ(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},U6A=function(R){!R.enqueued&&NB&&(R.enqueued=!0,GGJ(NB))};
VH.prototype.addCustomStyle=function(R){R.__seenByShadyCSS||(R.__seenByShadyCSS=!0,this.customStyles.push(R),U6A(this))};
VH.prototype.getStyleForCustomStyle=function(R){if(R.__shadyCSSCachedStyle)return R.__shadyCSSCachedStyle;var A;R.getStyle?A=R.getStyle():A=R;return A};
VH.prototype.processStyles=function(){for(var R=this.customStyles,A=0;A<R.length;A++){var Y=R[A];if(!Y.__shadyCSSCachedStyle){var P=this.getStyleForCustomStyle(Y);P&&(P=P.__appliedElement||P,D68&&D68(P),Y.__shadyCSSCachedStyle=P)}}return R};
VH.prototype.addCustomStyle=VH.prototype.addCustomStyle;VH.prototype.getStyleForCustomStyle=VH.prototype.getStyleForCustomStyle;VH.prototype.processStyles=VH.prototype.processStyles;Object.defineProperties(VH.prototype,{transformCallback:{get:function(){return D68},
set:function(R){D68=R}},
validateCallback:{get:function(){return NB},
set:function(R){var A=!1;NB||(A=!0);NB=R;A&&U6A(this)}}});var tvk=!(window.ShadyDOM&&window.ShadyDOM.inUse),Z6k,A_;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(A_=window.ShadyCSS.cssBuild);var $6b=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Z6k=window.ShadyCSS.nativeCss:window.ShadyCSS?(wCk(window.ShadyCSS),window.ShadyCSS=void 0):wCk(window.WebComponents&&window.WebComponents.flags);var J8k=Z6k;var XKZ=new VH;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(R,A){XKZ.processStyles();a7u(R,A)},
styleElement:function(){XKZ.processStyles()},
styleDocument:function(R){XKZ.processStyles();a7u(document.body,R)},
getComputedStyleValue:function(R,A){return CD8(R,A)},
flushCustomStyles:function(){},
nativeCss:J8k,nativeShadow:tvk,cssBuild:A_,disableRuntime:$6b});window.ShadyCSS.CustomStyleInterface=XKZ;var SQq=window.ShadyCSS.CustomStyleInterface,JS=function(){var R=HTMLElement.call(this)||this;R._style=null;SQq.addCustomStyle(R);return R};
_.H(JS,HTMLElement);JS.prototype.getStyle=function(){if(this._style)return this._style;var R=this.querySelector("style");if(!R)return null;this._style=R;var A=R.getAttribute("include");A&&(R.removeAttribute("include"),R.textContent=W88(A)+R.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
JS.prototype.getStyle=JS.prototype.getStyle;window.customElements.define("custom-style",JS);Polymer.CustomStyle=JS;var yH=function(){this._timer=this._callback=this._asyncModule=null},mC,Kcb;
yH.prototype.setConfig=function(R,A){var Y=this;this._asyncModule=R;this._callback=A;this._timer=this._asyncModule.run(function(){Y._timer=null;mC.delete(Y);Y._callback()})};
yH.prototype.cancel=function(){this.isActive()&&(InA(this),mC.delete(this))};
var InA=function(R){R.isActive()&&(R._asyncModule.cancel(R._timer),R._timer=null)};
yH.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
yH.prototype.isActive=function(){return this._timer!=null};
_.TJ=function(R,A,Y){R instanceof yH?InA(R):R=new yH;R.setConfig(A,Y);return R};
mC=new Set;_.QH=function(R){mC.add(R)};
Kcb=function(){var R=!!mC.size;mC.forEach(function(A){try{A.flush()}catch(Y){setTimeout(function(){throw Y;})}});
return R};var e38=typeof document.head.style.touchAction==="string",u23=["mousedown","mousemove","mouseup","click"],zzk=[0,1,4,2],Wcf;try{Wcf=(new MouseEvent("test",{buttons:1})).buttons===1}catch(R){Wcf=!1}var EBk=Wcf,qR8=!1;(function(){try{var R=Object.defineProperty({},"passive",{get:function(){qR8=!0}});
window.addEventListener("test",null,R);window.removeEventListener("test",null,R)}catch(A){}})();
var Rz6=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),ARk=[],jaz={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},mc8={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},Ykl=function(R){var A=R.sourceCapabilities;if(!A||A.firesTouchEvents)if(R.__polymerGesturesHandled={skip:!0},R.type==="click"){A=!1;for(var Y=cRS(R),P=0;P<Y.length;P++){if(Y[P].nodeType===Node.ELEMENT_NODE)if(Y[P].localName==="label")ARk.push(Y[P]);
else if(jaz[Y[P].localName]){var E=Y[P];var z=Array.prototype.slice.call(E.labels||[]);if(!z.length){z=[];try{var c=E.getRootNode();if(E.id){var M=c.querySelectorAll("label[for = '"+E.id+"']");for(E=0;E<M.length;E++)z.push(M[E])}}catch(N){}}for(E=0;E<z.length;E++)A=A||ARk.indexOf(z[E])>-1}if(Y[P]===bxS)return}A||(R.preventDefault(),R.stopPropagation())}},bxS=null,vy=null,MRu=0,s26=0,O7I=-1,NAq=!1;
document.addEventListener("touchend",function(R){vy||Puk(!0);bxS=cRS(R)[0];vy=_.TJ(vy,_.iX.after(2500),function(){Puk();vy=bxS=null})},qR8?{passive:!0}:!1);
var cRS=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(R){return R.composedPath&&R.composedPath()||[]},jy={},Kg=[];
VRk({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){I$(this.info)},
mousedown:function(R){if(Sy(R)){var A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),Y=this;l0V(this.info,function(P){Sy(P)||(Cg("up",A,P),I$(Y.info))},function(P){Sy(P)&&Cg("up",A,P);
I$(Y.info)});
Cg("down",A,R)}},
touchstart:function(R){Cg("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),R.changedTouches[0],R)},
touchend:function(R){Cg("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),R.changedTouches[0],R)}});
VRk({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(R){this.moves.length>2&&this.moves.shift();this.moves.push(R)},
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;I$(this.info)},
mousedown:function(R){if(Sy(R)){var A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R),Y=this,P=function(E){var z=E.clientX,c=E.clientY;JRI(Y.info,z,c)&&(Y.info.state=Y.info.started?E.type==="mouseup"?"end":"track":"start",Y.info.state==="start"&&Wu("tap"),Y.info.addMove({x:z,y:c}),Sy(E)||(Y.info.state="end",I$(Y.info)),A&&yRI(Y.info,A,E),Y.info.started=!0)};
l0V(this.info,P,function(E){Y.info.started&&P(E);I$(Y.info)});
this.info.x=R.clientX;this.info.y=R.clientY}},
touchstart:function(R){R=R.changedTouches[0];this.info.x=R.clientX;this.info.y=R.clientY},
touchmove:function(R){var A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R);R=R.changedTouches[0];var Y=R.clientX,P=R.clientY;JRI(this.info,Y,P)&&(this.info.state==="start"&&Wu("tap"),this.info.addMove({x:Y,y:P}),yRI(this.info,A,R),this.info.state="track",this.info.started=!0)},
touchend:function(R){var A=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R);R=R.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:R.clientX,y:R.clientY}),yRI(this.info,A,R))}});
VRk({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(R){Sy(R)&&(this.info.x=R.clientX,this.info.y=R.clientY)},
click:function(R){Sy(R)&&TAI(this.info,R)},
touchstart:function(R){R=R.changedTouches[0];this.info.x=R.clientX;this.info.y=R.clientY},
touchend:function(R){TAI(this.info,R.changedTouches[0],R)}});var fn7=lX(function(R){var A=function(){return R.apply(this,arguments)||this};
_.H(A,R);A.prototype._addEventListenerToNode=function(Y,P,E){by(Y,P,E)||R.prototype._addEventListenerToNode.call(this,Y,P,E)};
A.prototype._removeEventListenerFromNode=function(Y,P,E){fg(Y,P,E)||R.prototype._removeEventListenerFromNode.call(this,Y,P,E)};
return A});var gk=lX(function(R){var A=function(){return R.apply(this,arguments)||this};
_.H(A,R);A.prototype._shouldPropertyChange=function(Y,P,E){return Q2k(this,Y,P,E,!0)};
return A}),pKf=lX(function(R){var A=function(){return R.apply(this,arguments)||this};
_.H(A,R);A.prototype._shouldPropertyChange=function(Y,P,E){return Q2k(this,Y,P,E,this.mutableData)};
_.Yh.Object.defineProperties(A,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return A});
gk._mutablePropertyChange=Q2k;var vBq=!1;var FcN=fn7(pKf(cy(HTMLElement))),nU=function(){var R=FcN.call(this)||this;if(tw)throw Error("Id");R.root=null;R.$=null;R.__children=null;return R};
_.H(nU,FcN);_.l=nU.prototype;_.l.attributeChangedCallback=function(){this.mutableData=!0};
_.l.connectedCallback=function(){gB8()||(this.style.display="none");this.render()};
_.l.disconnectedCallback=function(){this.__removeChildren()};
_.l.__insertChildren=function(){(0,_.gv)((0,_.gv)(this).parentNode).insertBefore(this.root,this)};
_.l.__removeChildren=function(){if(this.__children)for(var R=0;R<this.__children.length;R++)this.root.appendChild(this.__children[R])};
_.l.render=function(){var R=this;if(!this.__children){var A=A||this.querySelector("template");if(!A){var Y=new MutationObserver(function(){if(A=R.querySelector("template"))Y.disconnect(),R.render();else throw Error("Jd");});
Y.observe(this,{childList:!0});return}this.root=this._stampTemplate(A);this.$=this.root.$;this.__children=[];for(var P=this.root.firstChild;P;P=P.nextSibling)this.__children[this.__children.length]=P;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Yh.Object.defineProperties(nU,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",nU);Polymer.Debouncer=yH;Polymer.Gestures={gestures:jy,recognizers:Kg,deepTargetFind:xcS,addListener:by,removeListener:fg,register:VRk,setTouchAction:_.Bu,prevent:Wu,resetMouseCanceller:function(){vy&&vy.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:by,remove:fg};Polymer.GestureEventListeners=fn7;Polymer.MutableData=gk;Polymer.OptionalMutableData=pKf;Polymer.DomBind=nU;_.Hy=function(){do{var R=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var A=Kcb()}while(R||A)};var nBk=null;H7k.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:H7k,writable:!0}});var Khq=cy(H7k),I0P=gk(Khq),BFD=cy(function(){}),kc=function(R){var A=BFD.call(this)||this;
A._configureProperties(R);A.root=A._stampTemplate(A.__dataHost);var Y=[];A.children=Y;for(var P=A.root.firstChild;P;P=P.nextSibling)Y.push(P),P.__templatizeInstance=A;A.__templatizeOwner&&A.__templatizeOwner.__hideTemplateChildren__&&A._showHideChildren(!0);Y=A.__templatizeOptions;(R&&Y.instanceProps||!Y.instanceProps)&&A._enableProperties();return A};
_.H(kc,BFD);_.l=kc.prototype;_.l._configureProperties=function(R){if(this.__templatizeOptions.forwardHostProp)for(var A in this.__hostProps)this._setPendingProperty(A,this.__dataHost["_host_"+A]);for(var Y in R)this._setPendingProperty(Y,R[Y])};
_.l.forwardHostProp=function(R,A){this._setPendingPropertyOrPath(R,A,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.l._addEventListenerToNode=function(R,A,Y){var P=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(R,A,function(z){z.model=P;Y(z)});
else{var E=this.__dataHost.__dataHost;E&&E._addEventListenerToNode(R,A,Y)}};
_.l._showHideChildren=function(R){DcI(R,this.children)};
_.l._setUnmanagedPropertyToNode=function(R,A,Y){R.__hideTemplateChildren__&&R.nodeType==Node.TEXT_NODE&&A=="textContent"?R.__polymerTextContent__=Y:BFD.prototype._setUnmanagedPropertyToNode.call(this,R,A,Y)};
_.l.dispatchEvent=function(){return!0};
_.Yh.Object.defineProperties(kc.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var R=this.__parentModel;if(!R){var A;R=this;do R=R.__dataHost.__dataHost;while((A=R.__templatizeOptions)&&!A.parentModel);this.__parentModel=R}return R}}});
var $cJ=gk(kc);var rk=function(){var R=MB.call(this)||this;R.__renderDebouncer=null;R._lastIf=!1;R.__hideTemplateChildren__=!1;return R};
_.H(rk,MB);_.l=rk.prototype;_.l.__debounceRender=function(){var R=this;this.__renderDebouncer=_.TJ(this.__renderDebouncer,a$,function(){return R.__render()});
_.QH(this.__renderDebouncer)};
_.l.disconnectedCallback=function(){MB.prototype.disconnectedCallback.call(this);var R=(0,_.gv)(this).parentNode;R&&(R.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.gv)(R).host)||this.__teardownInstance()};
_.l.connectedCallback=function(){MB.prototype.connectedCallback.call(this);gB8()||(this.style.display="none");this.if&&this.__debounceRender()};
_.l.__ensureTemplate=function(){var R=this;if(!this.__template){var A=this._templateInfo?this:(0,_.gv)(this).querySelector("template");if(!A){var Y=new MutationObserver(function(){if((0,_.gv)(R).querySelector("template"))Y.disconnect(),R.__render();else throw Error("Md");});
Y.observe(this,{childList:!0});return!1}this.__template=A}return!0};
_.l.__ensureInstance=function(){var R=(0,_.gv)(this).parentNode;if(this.__hasInstance()){var A=this.__getInstanceNodes();if(A&&A.length&&(0,_.gv)(this).previousSibling!==A[A.length-1])for(var Y=0,P=void 0;Y<A.length&&(P=A[Y]);Y++)(0,_.gv)(R).insertBefore(P,this)}else{if(!R||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(R)}return!0};
_.l.render=function(){_.Hy()};
_.l.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Eu&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.l.__hasInstance=function(){};
_.l.__getInstanceNodes=function(){};
_.l.__createAndInsertInstance=function(){};
_.l.__teardownInstance=function(){};
_.l._showHideChildren=function(){};
_.Yh.Object.defineProperties(rk,{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:rk.prototype.__debounceRender},restamp:{type:Boolean,observer:rk.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var anG=function(){var R=rk.call(this)||this;R.__instance=null;R.__syncInfo=null;return R};
_.H(anG,rk);_.l=anG.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.l.__createAndInsertInstance=function(R){var A=this,Y=this.__dataHost||this;if(tw&&!this.__dataHost)throw Error("Kd");var P=Y._bindTemplate(this.__template,!0);P.runEffects=function(E,z,c){var M=A.__syncInfo;if(A.if)M&&(A.__syncInfo=null,A._showHideChildren(),z=Object.assign(M.changedProps,z)),E(z,c);else if(A.__instance)if(M||(M=A.__syncInfo={runEffects:E,changedProps:{}}),c)for(var N in z)E=Vc(N),M.changedProps[E]=A.__dataHost[E];else Object.assign(M.changedProps,z)};
this.__instance=Y._stampTemplate(this.__template,P);(0,_.gv)(R).insertBefore(this.__instance,this)};
_.l.__syncHostProperties=function(){var R=this.__syncInfo;R&&(this.__syncInfo=null,R.runEffects(R.changedProps,!1))};
_.l.__teardownInstance=function(){var R=this.__dataHost||this;this.__instance&&(R._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.l._showHideChildren=function(){var R=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==R&&(this.__instance.__hidden=R,DcI(R,this.__instance.templateInfo.childNodes));R||this.__syncHostProperties()};
var CwH=function(){var R=rk.call(this)||this;R.__ctor=null;R.__instance=null;R.__invalidProps=null;return R};
_.H(CwH,rk);_.l=CwH.prototype;_.l.__hasInstance=function(){return!!this.__instance};
_.l.__getInstanceNodes=function(){return this.__instance.children};
_.l.__createAndInsertInstance=function(R){this.__ctor||(this.__ctor=GR(this.__template,this,{mutableData:!0,forwardHostProp:function(A,Y){this.__instance&&(this.if?this.__instance.forwardHostProp(A,Y):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Vc(A)]=!0))}}));
this.__instance=new this.__ctor;(0,_.gv)(R).insertBefore(this.__instance.root,this)};
_.l.__teardownInstance=function(){if(this.__instance){var R=this.__instance.children;if(R&&R.length){var A=(0,_.gv)(R[0]).parentNode;if(A){A=(0,_.gv)(A);for(var Y=0,P=void 0;Y<R.length&&(P=R[Y]);Y++)A.removeChild(P)}}this.__instance=this.__invalidProps=null}};
_.l.__syncHostProperties=function(){var R=this.__invalidProps;if(R){this.__invalidProps=null;for(var A in R)this.__instance._setPendingProperty(A,this.__dataHost[A]);this.__instance._flushProperties()}};
_.l._showHideChildren=function(){var R=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==R&&(this.__instance.__hidden=R,this.__instance._showHideChildren(R));R||this.__syncHostProperties()};
_.fG=Py?anG:CwH;customElements.define(_.fG.is,_.fG);Polymer.enqueueDebouncer=_.QH;Polymer.flush=_.Hy;Polymer.Templatize={templatize:GR,modelForElement:Fhb};Polymer.TemplateInstanceBase=kc;Polymer.DomIf=_.fG;var h2S=pKf(MB),b5=function(){var R=h2S.call(this)||this;R.__instances=[];R.__renderDebouncer=null;R.__itemsIdxToInstIdx={};R.__chunkCount=null;R.__renderStartTime=null;R.__itemsArrayChanged=!1;R.__shouldMeasureChunk=!1;R.__shouldContinueChunking=!1;R.__chunkingId=0;R.__sortFn=null;R.__filterFn=null;R.__observePaths=null;R.__ctor=null;R.__isDetached=!0;R.template=null;return R};
_.H(b5,h2S);_.l=b5.prototype;_.l.disconnectedCallback=function(){h2S.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var R=0;R<this.__instances.length;R++)this.__detachInstance(R);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.l.connectedCallback=function(){h2S.prototype.connectedCallback.call(this);gB8()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var R=(0,_.gv)((0,_.gv)(this).parentNode),A=0;A<this.__instances.length;A++)this.__attachInstance(A,R);this.__chunkingId&&this.__render()}};
_.l.__ensureTemplatized=function(){var R=this;if(!this.__ctor){var A=this.template=this._templateInfo?this:this.querySelector("template");if(!A){var Y=new MutationObserver(function(){if(R.querySelector("template"))Y.disconnect(),R.__render();else throw Error("Nd");});
Y.observe(this,{childList:!0});return!1}var P={};P[this.as]=!0;P[this.indexAs]=!0;P[this.itemsIndexAs]=!0;this.__ctor=GR(A,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:P,forwardHostProp:function(E,z){for(var c=this.__instances,M=0,N=void 0;M<c.length&&(N=c[M]);M++)N.forwardHostProp(E,z)},
notifyInstanceProp:function(E,z,c){YR6(this.as,z)&&(E=E[this.itemsIndexAs],z==this.as&&(this.items[E]=c),z=yc(this.as,"items."+E,z),this.notifyPath(z,c))}})}return!0};
_.l.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.l.__functionFromPropertyValue=function(R){if(typeof R==="string"){var A=this.__getMethodHost();return function(){return A[R].apply(A,arguments)}}return R};
_.l.__sortChanged=function(R){this.__sortFn=this.__functionFromPropertyValue(R);this.items&&this.__debounceRender(this.__render)};
_.l.__filterChanged=function(R){this.__filterFn=this.__functionFromPropertyValue(R);this.items&&this.__debounceRender(this.__render)};
_.l.__computeFrameTime=function(R){return Math.ceil(1E3/R)};
_.l.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.l.__handleObservedPaths=function(R){if(this.__sortFn||this.__filterFn)if(!R)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var A=this.__observePaths,Y=0;Y<A.length;Y++)R.indexOf(A[Y])===0&&this.__debounceRender(this.__render,this.delay)};
_.l.__itemsChanged=function(R){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(R.path,R.value)||(R.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.l.__debounceRender=function(R,A){A=A===void 0?0:A;this.__renderDebouncer=_.TJ(this.__renderDebouncer,A>0?_.iX.after(A):a$,R.bind(this));_.QH(this.__renderDebouncer)};
_.l.render=function(){this.__debounceRender(this.__render);_.Hy()};
_.l.__render=function(){var R=this;if(this.__ensureTemplatized()){var A=this.items||[],Y=this.__sortAndFilterItems(A),P=this.__calculateLimit(Y.length);this.__updateInstances(A,P,Y);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){R.__chunkingId=null;R.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Eu&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.l.__sortAndFilterItems=function(R){for(var A=this,Y=Array(R.length),P=0;P<R.length;P++)Y[P]=P;this.__filterFn&&(Y=Y.filter(function(E,z,c){return A.__filterFn(R[E],z,c)}));
this.__sortFn&&Y.sort(function(E,z){return A.__sortFn(R[E],R[z])});
return Y};
_.l.__calculateLimit=function(R){var A=R,Y=this.__instances.length;if(this.initialCount){var P;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(A=Math.min(R,this.initialCount),this.__chunkCount=(P=Math.max(A-Y,0))||1):(P=Math.min(Math.max(R-Y,0),this.__chunkCount),A=Math.min(Y+P,R));this.__shouldMeasureChunk=P===this.__chunkCount;this.__shouldContinueChunking=A<R;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return A};
_.l.__continueChunking=function(){if(this.__shouldMeasureChunk){var R=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/R*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.l.__updateInstances=function(R,A,Y){var P=this.__itemsIdxToInstIdx={},E;for(E=0;E<A;E++){var z=this.__instances[E],c=Y[E],M=R[c];P[c]=E;z?(z._setPendingProperty(this.as,M),z._setPendingProperty(this.indexAs,E),z._setPendingProperty(this.itemsIndexAs,c),z._flushProperties()):this.__insertInstance(M,E,c)}for(R=this.__instances.length-1;R>=E;R--)this.__detachAndRemoveInstance(R)};
_.l.__detachInstance=function(R){R=this.__instances[R];for(var A=(0,_.gv)(R.root),Y=0;Y<R.children.length;Y++)A.appendChild(R.children[Y]);return R};
_.l.__attachInstance=function(R,A){A.insertBefore(this.__instances[R].root,this)};
_.l.__detachAndRemoveInstance=function(R){this.__detachInstance(R);this.__instances.splice(R,1)};
_.l.__stampInstance=function(R,A,Y){var P={};P[this.as]=R;P[this.indexAs]=A;P[this.itemsIndexAs]=Y;return new this.__ctor(P)};
_.l.__insertInstance=function(R,A,Y){R=this.__stampInstance(R,A,Y);Y=(Y=this.__instances[A+1])?Y.children[0]:this;(0,_.gv)((0,_.gv)(this).parentNode).insertBefore(R.root,Y);return this.__instances[A]=R};
_.l._showHideChildren=function(R){for(var A=0;A<this.__instances.length;A++)this.__instances[A]._showHideChildren(R)};
_.l.__handleItemPath=function(R,A){var Y=R.slice(6),P=Y.indexOf(".");R=P<0?Y:Y.substring(0,P);if(R==parseInt(R,10)){Y=P<0?"":Y.substring(P+1);this.__handleObservedPaths(Y);if(R=this.__instances[this.__itemsIdxToInstIdx[R]])R._setPendingPropertyOrPath(this.as+(Y?"."+Y:""),A,!1,!0),R._flushProperties();return!0}};
_.l.itemForElement=function(R){return(R=this.modelForElement(R))&&R[this.as]};
_.l.indexForElement=function(R){return(R=this.modelForElement(R))&&R[this.indexAs]};
_.l.modelForElement=function(R){return Fhb(this.template,R)};
_.Yh.Object.defineProperties(b5,{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:b5.prototype.__sortChanged},filter:{type:Function,observer:b5.prototype.__filterChanged},observe:{type:String,observer:b5.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Eu,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.*)"]}}});
b5.prototype._setRenderedItemCount=function(){};
customElements.define(b5.is,b5);Polymer.DomRepeat=b5;var ob8=function(R,A){var Y=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=R;this.callback=A;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){Y._schedule()};
this.connect();this._schedule()},kXS=function(R){var A=(0,_.gv)(R);
if(wv(R))return A.assignedNodes({flatten:!0});R=[];for(var Y=0;Y<A.childNodes.length;Y++){var P=A.childNodes[Y];wv(P)?R.push.apply(R,_.py((0,_.gv)(P).assignedNodes({flatten:!0}))):R.push(P)}return R};
_.l=ob8.prototype;_.l.connect=function(){var R=this;wv(this._target)?this._listenSlots([this._target]):(0,_.gv)(this._target).children&&(this._listenSlots((0,_.gv)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(A){R._processMutations(A)}):(this._nativeChildrenObserver=new MutationObserver(function(A){R._processMutations(A)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.l.disconnect=function(){wv(this._target)?this._unlistenSlots([this._target]):(0,_.gv)(this._target).children&&(this._unlistenSlots((0,_.gv)(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};
_.l._schedule=function(){var R=this;this._scheduled||(this._scheduled=!0,a$.run(function(){return R.flush()}))};
_.l._processMutations=function(R){this._processSlotMutations(R);this.flush()};
_.l._processSlotMutations=function(R){if(R)for(var A=0;A<R.length;A++){var Y=R[A];Y.addedNodes&&this._listenSlots(Y.addedNodes);Y.removedNodes&&this._unlistenSlots(Y.removedNodes)}};
_.l.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 R={target:this._target,addedNodes:[],removedNodes:[]},A=kXS(this._target),Y=pCS(A,this._effectiveNodes),P=0,E=void 0;P<Y.length&&(E=Y[P]);P++)for(var z=0,c=void 0;z<E.removed.length&&(c=E.removed[z]);z++)R.removedNodes.push(c);
P=0;for(E=void 0;P<Y.length&&(E=Y[P]);P++)for(z=E.index;z<E.index+E.addedCount;z++)R.addedNodes.push(A[z]);this._effectiveNodes=A;A=!1;if(R.addedNodes.length||R.removedNodes.length)A=!0,this.callback.call(this._target,R);return A};
_.l._listenSlots=function(R){for(var A=0;A<R.length;A++){var Y=R[A];wv(Y)&&Y.addEventListener("slotchange",this._boundSchedule)}};
_.l._unlistenSlots=function(R){for(var A=0;A<R.length;A++){var Y=R[A];wv(Y)&&Y.removeEventListener("slotchange",this._boundSchedule)}};var DV=Element.prototype,GXH=DV.matches||DV.matchesSelector||DV.mozMatchesSelector||DV.msMatchesSelector||DV.oMatchesSelector||DV.webkitMatchesSelector,Zx7=function(R,A){return GXH.call(R,A)},uy=function(R){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(R);
this.node=R},e28;
_.l=uy.prototype;_.l.observeNodes=function(R){return new ob8(this.node,R)};
_.l.unobserveNodes=function(R){R.disconnect()};
_.l.notifyObserver=function(){};
_.l.deepContains=function(R){if((0,_.gv)(this.node).contains(R))return!0;var A=R;for(R=R.ownerDocument;A&&A!==R&&A!==this.node;)A=(0,_.gv)(A).parentNode||(0,_.gv)(A).host;return A===this.node};
_.l.getOwnerRoot=function(){return(0,_.gv)(this.node).getRootNode()};
_.l.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.gv)(this.node).assignedNodes({flatten:!0}):[]};
_.l.getDestinationInsertionPoints=function(){for(var R=[],A=(0,_.gv)(this.node).assignedSlot;A;)R.push(A),A=(0,_.gv)(A).assignedSlot;return R};
_.l.importNode=function(R,A){return(0,_.gv)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(R,A)};
_.l.getEffectiveChildNodes=function(){return kXS(this.node)};
_.l.queryDistributedElements=function(R){for(var A=this.getEffectiveChildNodes(),Y=[],P=0,E=A.length,z=void 0;P<E&&(z=A[P]);P++)z.nodeType===Node.ELEMENT_NODE&&Zx7(z,R)&&Y.push(z);return Y};
_.Yh.Object.defineProperties(uy.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var R=this.node;return R._activeElement!==void 0?R._activeElement:R.activeElement}}});
var Uu=function(R){this.event=R};
_.Yh.Object.defineProperties(Uu.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 t9b=uy;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var wK7=window.ShadyDOM.Wrapper,uEA=function(){return wK7.apply(this,arguments)||this};
_.H(uEA,wK7);Object.getOwnPropertyNames(uy.prototype).forEach(function(R){R!="activeElement"&&R!="constructor"&&(uEA.prototype[R]=uy.prototype[R])});
a06(uEA.prototype,["classList"]);t9b=uEA;Object.defineProperties(Uu.prototype,{localTarget:{get:function(){var R=this.event.currentTarget;R=R&&_.S0(R).getOwnerRoot();for(var A=this.path,Y=0;Y<A.length;Y++){var P=A[Y];if(_.S0(P).getOwnerRoot()===R)return P}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else BAP(),a06(uy.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),Cu6();e28=t9b;_.S0=function(R){R=R||document;if(R instanceof t9b)return R;if(R instanceof Uu)return R;var A=R.__domApi;A||(R instanceof Event?A=new Uu(R):A=new t9b(R),R.__domApi=A);return A};var qQ7=/:host\(:dir\((ltr|rtl)\)\)/g,LcD=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,d6f=/:dir\((?:ltr|rtl)\)/,RpH=!(!window.ShadyDOM||!window.ShadyDOM.inUse),qK=[],$I=null,ey="",AfS=lX(function(R){RpH||$I||(ey=document.documentElement.getAttribute("dir"),$I=new MutationObserver(hzk),$I.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var A=ixf(R);R=function(){var Y=A.call(this)||this;Y.__autoDirOptOut=!1;return Y};
_.H(R,A);R._processStyleText=function(Y,P){Y=A._processStyleText.call(this,Y,P);!RpH&&d6f.test(Y)&&(Y=this._replaceDirInCssText(Y),this.__activateDir=!0);return Y};
R._replaceDirInCssText=function(Y){Y=Y.replace(qQ7,':host([dir="$1"])');return Y=Y.replace(LcD,':host([dir="$2"]) $1')};
R.prototype.ready=function(){A.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
R.prototype.connectedCallback=function(){A.prototype.connectedCallback&&A.prototype.connectedCallback.call(this);this.constructor.__activateDir&&($I&&$I.takeRecords().length&&hzk(),qK.push(this),this.__autoDirOptOut||this.setAttribute("dir",ey))};
R.prototype.disconnectedCallback=function(){A.prototype.disconnectedCallback&&A.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var Y=qK.indexOf(this);Y>-1&&qK.splice(Y,1)}};
R.__activateDir=!1;return R});var YdA=function(R){for(;R;){var A=Object.getOwnPropertyDescriptor(R,"observedAttributes");if(A)return A.get;R=Object.getPrototypeOf(R.prototype).constructor}return function(){return[]}};
lX(function(R){var A=Ou(R),Y=YdA(A);R=function(){return A.call(this)||this};
_.H(R,A);R.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:A.prototype._initializeProperties.call(this)};
R.prototype._enableProperties=function(){this.__isUpgradeDisabled||A.prototype._enableProperties.call(this)};
R.prototype._canApplyPropertyDefault=function(P){return A.prototype._canApplyPropertyDefault.call(this,P)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(P))};
R.prototype.attributeChangedCallback=function(P,E,z,c){P=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(A.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.gv)(this).isConnected&&A.prototype.connectedCallback.call(this)):A.prototype.attributeChangedCallback.call(this,P,E,z,c)};
R.prototype.connectedCallback=function(){this.__isUpgradeDisabled||A.prototype.connectedCallback.call(this)};
R.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||A.prototype.disconnectedCallback.call(this)};
_.Yh.Object.defineProperties(R,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Y.call(this).concat("disable-upgrade")}}});
return R});var Lg=!1,kxV=[],dv=[];var wbl=window.ShadyDOM,u18=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",qk8):document.readyState==="interactive"||document.readyState==="complete"?qk8():window.addEventListener("DOMContentLoaded",qk8);var R5k=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=""},Lhu=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,dcu=/@import[^;]*;/gim,iFP=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,lxk=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,xAk=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,c8l=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Elk=/^@[^\s]*keyframes/,
PKq=/\s+/g;var OFk={};var N$6=Promise.resolve();var PkA=new Set;var Epq=/;\s*/m,zpE=/^\s*(initial)|(inherit)\s*$/,ioq=/\s*!important/,lsD=function(){this._map={}};
lsD.prototype.set=function(R,A){R=R.trim();this._map[R]={properties:A,dependants:{}}};
lsD.prototype.get=function(R){R=R.trim();return this._map[R]||null};
var xiq=null,Xi=function(){this._measureElement=this._currentElement=null;this._map=new lsD};
_.l=Xi.prototype;_.l.detectMixin=function(R){R=r0Z.test(R)||Hxf.test(R);r0Z.lastIndex=0;Hxf.lastIndex=0;return R};
_.l.transformTemplate=function(R,A){if(R._gatheredStyle===void 0){var Y=[];for(var P=R.content.querySelectorAll("style"),E=0;E<P.length;E++){var z=P[E];if(z.hasAttribute("shady-unscoped")){if(!tvk){var c=z.textContent;if(!PkA.has(c)){PkA.add(c);var M=document.createElement("style");M.setAttribute("shady-unscoped","");M.textContent=c;document.head.appendChild(M)}z.parentNode.removeChild(z)}}else Y.push(z.textContent),z.parentNode.removeChild(z)}(Y=Y.join("").trim())?(P=document.createElement("style"),
P.textContent=Y,R.content.insertBefore(P,R.content.firstChild),Y=P):Y=null;R._gatheredStyle=Y}return(R=R._gatheredStyle)?this.JSC$11258_transformStyle(R,A):null};
_.l.JSC$11258_transformStyle=function(R,A){A=A===void 0?"":A;var Y=mAl(R);this.transformRules(Y,A);R.textContent=y86(Y);return Y};
_.l.transformCustomStyle=function(R){var A=this,Y=mAl(R);Q7q(Y,function(P){P.selector===":root"&&(P.selector="html");A.transformRule(P)});
R.textContent=y86(Y);return Y};
_.l.transformRules=function(R,A){var Y=this;this._currentElement=A;Q7q(R,function(P){Y.transformRule(P)});
this._currentElement=null};
_.l.transformRule=function(R){R.cssText=cfA(this,R.parsedCssText,R);R.selector===":root"&&(R.selector=":host > *")};
var cfA=function(R,A,Y){A=A.replace(Hxf,function(P,E,z,c){return R._produceCssProperties(P,E,z,c,Y)});
return R._consumeCssProperties(A,Y)};
_.l=Xi.prototype;_.l._getInitialValueForProperty=function(R){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(R)};
_.l._fallbacksFromPreviousRules=function(R){for(var A=this,Y=R;Y.parent;)Y=Y.parent;var P={},E=!1;Q7q(Y,function(z){(E=E||z===R)||z.selector===R.selector&&Object.assign(P,A._cssTextToMap(z.parsedCssText))});
return P};
_.l._consumeCssProperties=function(R,A){for(var Y;Y=r0Z.exec(R);){var P=Y[0],E=Y[1];Y=Y.index;var z=Y+P.indexOf("@apply"),c=Y+P.length;P=R.slice(0,z);R=R.slice(c);z=A?this._fallbacksFromPreviousRules(A):{};Object.assign(z,this._cssTextToMap(P));E=this._atApplyToCssProperties(E,z);R=P+E+R;r0Z.lastIndex=Y+E.length}return R};
_.l._atApplyToCssProperties=function(R,A){R=R.replace(Epq,"");var Y=[],P=this._map.get(R);P||(this._map.set(R,{}),P=this._map.get(R));if(P){this._currentElement&&(P.dependants[this._currentElement]=!0);var E,z=P.properties;for(E in z){var c=A&&A[E];P=[E,": var(",R,"_-_",E];c&&P.push(",",c.replace(ioq,""));P.push(")");ioq.test(z[E])&&P.push(" !important");Y.push(P.join(""))}}return Y.join("; ")};
_.l._replaceInitialOrInherit=function(R,A){var Y=zpE.exec(A);Y&&(A=Y[1]?this._getInitialValueForProperty(R):"apply-shim-inherit");return A};
_.l._cssTextToMap=function(R,A){A=A===void 0?!1:A;R=R.split(";");for(var Y,P,E={},z=0;z<R.length;z++)if(Y=R[z])P=Y.split(":"),P.length>1&&(Y=P[0].trim(),P=P.slice(1).join(":"),A&&(P=this._replaceInitialOrInherit(Y,P)),E[Y]=P);return E};
_.l._invalidateMixinEntry=function(R){if(xiq)for(var A in R.dependants)A!==this._currentElement&&xiq(A)};
_.l._produceCssProperties=function(R,A,Y,P,E){var z=this;Y&&vl8(Y,function(r,I){I&&z._map.get(I)&&(P="@apply "+I+";")});
if(!P)return R;var c=this._consumeCssProperties(""+P,E);E=R.slice(0,R.indexOf("--"));var M=c=this._cssTextToMap(c,!0),N=this._map.get(A),y=N&&N.properties;y?M=Object.assign(Object.create(y),c):this._map.set(A,M);var m=[],T,Q=!1;for(T in M){var g=c[T];g===void 0&&(g="initial");!y||T in y||(Q=!0);m.push(A+"_-_"+T+": "+g)}Q&&this._invalidateMixinEntry(N);N&&(N.properties=M);Y&&(E=R+";"+E);return E+m.join("; ")+";"};
Xi.prototype.detectMixin=Xi.prototype.detectMixin;Xi.prototype.transformStyle=Xi.prototype.JSC$11258_transformStyle;Xi.prototype.transformCustomStyle=Xi.prototype.transformCustomStyle;Xi.prototype.transformRules=Xi.prototype.transformRules;Xi.prototype.transformRule=Xi.prototype.transformRule;Xi.prototype.transformTemplate=Xi.prototype.transformTemplate;Xi.prototype._separator="_-_";Object.defineProperty(Xi.prototype,"invalidCallback",{get:function(){return xiq},
set:function(R){xiq=R}});var SJ=new Xi,OoA=function(){this.customStyleInterface=null;SJ.invalidCallback=MNb},Iy=function(R){!R.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(R.customStyleInterface=window.ShadyCSS.CustomStyleInterface,R.customStyleInterface.transformCallback=function(A){SJ.transformCustomStyle(A)},R.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){R.customStyleInterface.enqueued&&R.flushCustomStyles()})})};
_.l=OoA.prototype;_.l.prepareTemplate=function(R,A){Iy(this);glV(R)===""&&(OFk[A]=R,A=SJ.transformTemplate(R,A),R._styleAst=A)};
_.l.flushCustomStyles=function(){Iy(this);if(this.customStyleInterface){var R=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var A=0;A<R.length;A++){var Y=this.customStyleInterface.getStyleForCustomStyle(R[A]);Y&&SJ.transformCustomStyle(Y)}this.customStyleInterface.enqueued=!1}}};
_.l.styleSubtree=function(R,A){Iy(this);A&&a7u(R,A);if(R.shadowRoot)for(this.styleElement(R),R=R.shadowRoot.children||R.shadowRoot.childNodes,A=0;A<R.length;A++)this.styleSubtree(R[A]);else for(R=R.children||R.childNodes,A=0;A<R.length;A++)this.styleSubtree(R[A])};
_.l.styleElement=function(R){Iy(this);var A=R.localName,Y;A?A.indexOf("-")>-1?Y=A:Y=R.getAttribute&&R.getAttribute("is")||"":Y=R.is;A=OFk[Y];if(!(A&&glV(A)!==""||!A||s78(A))){if(s78(A)||A._applyShimValidatingVersion!==A._applyShimNextVersion)this.prepareTemplate(A,Y),VN3(A);if(R=R.shadowRoot)if(R=R.querySelector("style"))R.__cssRules=A._styleAst,R.textContent=y86(A._styleAst)}};
_.l.styleDocument=function(R){Iy(this);this.styleSubtree(document.body,R)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var KU=new OoA,MI8=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(R,A){KU.flushCustomStyles();KU.prepareTemplate(R,A)},
prepareTemplateStyles:function(R,A,Y){window.ShadyCSS.prepareTemplate(R,A,Y)},
prepareTemplateDom:function(){},
styleSubtree:function(R,A){KU.flushCustomStyles();KU.styleSubtree(R,A)},
styleElement:function(R){KU.flushCustomStyles();KU.styleElement(R)},
styleDocument:function(R){KU.flushCustomStyles();KU.styleDocument(R)},
getComputedStyleValue:function(R,A){return CD8(R,A)},
flushCustomStyles:function(){KU.flushCustomStyles()},
nativeCss:J8k,nativeShadow:tvk,cssBuild:A_,disableRuntime:$6b};MI8&&(window.ShadyCSS.CustomStyleInterface=MI8)}window.ShadyCSS.ApplyShim=SJ;var s4D;s4D=window.ShadyCSS;_.Wy=lX(function(R){R=fn7(Ou(R));var A=y0b?R:AfS(R),Y=YdA(A),P={x:"pan-x",y:"pan-y",none:"none",all:"auto"};R=function(){return A.call(this)||this};
_.H(R,A);R.prototype.created=function(){};
R.prototype.__attributeReaction=function(E,z,c){(this.__dataAttributes&&this.__dataAttributes[E]||E==="disable-upgrade")&&this.attributeChangedCallback(E,z,c,null)};
R.prototype.setAttribute=function(E,z){if(kiA&&!this._legacyForceObservedAttributes){var c=this.getAttribute(E);A.prototype.setAttribute.call(this,E,z);this.__attributeReaction(E,c,String(z))}else A.prototype.setAttribute.call(this,E,z)};
R.prototype.removeAttribute=function(E){if(kiA&&!this._legacyForceObservedAttributes){var z=this.getAttribute(E);A.prototype.removeAttribute.call(this,E);this.__attributeReaction(E,z,null)}else A.prototype.removeAttribute.call(this,E)};
R.prototype._enableProperties=function(){this.__isUpgradeDisabled||A.prototype._enableProperties.call(this)};
R.prototype._canApplyPropertyDefault=function(E){return A.prototype._canApplyPropertyDefault.call(this,E)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(E))};
R.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(A.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
R.prototype.attached=function(){};
R.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(A.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
R.prototype.detached=function(){};
R.prototype.attributeChangedCallback=function(E,z,c,M){z!==c&&(E=="disable-upgrade"?this.__isUpgradeDisabled&&c==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.gv)(this).isConnected&&this.connectedCallback()):(A.prototype.attributeChangedCallback.call(this,E,z,c,M),this.attributeChanged(E,z,c)))};
R.prototype.attributeChanged=function(){};
R.prototype._initializeProperties=function(){if(hw&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var E=Object.getPrototypeOf(this);E.hasOwnProperty("__hasRegisterFinished")||(this._registered(),E.__hasRegisterFinished=!0);A.prototype._initializeProperties.call(this);this.root=this;this.created();kiA&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
R.prototype._takeAttributes=function(){for(var E=this.attributes,z=0,c=E.length;z<c;z++){var M=E[z];this.__attributeReaction(M.name,null,M.value)}};
R.prototype._registered=function(){};
R.prototype.ready=function(){this._ensureAttributes();A.prototype.ready.call(this)};
R.prototype._ensureAttributes=function(){};
R.prototype._applyListeners=function(){};
R.prototype.serialize=function(E){return this._serializeValue(E)};
R.prototype.deserialize=function(E,z){return this._deserializeValue(E,z)};
R.prototype.reflectPropertyToAttribute=function(E,z,c){this._propertyToAttribute(E,z,c)};
R.prototype.serializeValueToAttribute=function(E,z,c){this._valueToNodeAttribute(c||this,E,z)};
R.prototype.extend=function(E,z){if(!E||!z)return E||z;for(var c=Object.getOwnPropertyNames(z),M=0,N=void 0;M<c.length&&(N=c[M]);M++){var y=Object.getOwnPropertyDescriptor(z,N);y&&Object.defineProperty(E,N,y)}return E};
R.prototype.mixin=function(E,z){for(var c in z)E[c]=z[c];return E};
R.prototype.chainObject=function(E,z){E&&z&&E!==z&&(E.__proto__=z);return E};
R.prototype.instanceTemplate=function(E){E=this.constructor._contentForTemplate(E);return document.importNode(E,!0)};
R.prototype.fire=function(E,z,c){c=c||{};z=z===null||z===void 0?{}:z;E=new Event(E,{bubbles:c.bubbles===void 0?!0:c.bubbles,cancelable:!!c.cancelable,composed:c.composed===void 0?!0:c.composed});E.detail=z;(0,_.gv)(c.node||this).dispatchEvent(E);return E};
R.prototype.listen=function(E,z,c){E=E||this;var M=this.__boundListeners||(this.__boundListeners=new WeakMap),N=M.get(E);N||(N={},M.set(E,N));M=z+c;N[M]||(N[M]=this._addMethodEventListenerToNode(E,z,c,this))};
R.prototype.unlisten=function(E,z,c){E=E||this;var M=this.__boundListeners&&this.__boundListeners.get(E);c=z+c;var N=M&&M[c];N&&(this._removeEventListenerFromNode(E,z,N),M[c]=null)};
R.prototype.setScrollDirection=function(E,z){_.Bu(z||this,P[E]||"auto")};
R.prototype.$$=function(E){return this.root.querySelector(E)};
R.prototype.distributeContent=function(){var E=_.S0(this);window.ShadyDOM&&E.shadowRoot&&ShadyDOM.flush()};
R.prototype.getEffectiveChildNodes=function(){return _.S0(this).getEffectiveChildNodes()};
R.prototype.queryDistributedElements=function(E){return _.S0(this).queryDistributedElements(E)};
R.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
R.prototype.getEffectiveTextContent=function(){for(var E=this.getEffectiveChildNodes(),z=[],c=0,M;M=E[c];c++)M.nodeType!==Node.COMMENT_NODE&&z.push(M.textContent);return z.join("")};
R.prototype.queryEffectiveChildren=function(E){return(E=this.queryDistributedElements(E))&&E[0]};
R.prototype.queryAllEffectiveChildren=function(E){return this.queryDistributedElements(E)};
R.prototype.getContentChildNodes=function(E){return(E=this.root.querySelector(E||"slot"))?_.S0(E).getDistributedNodes():[]};
R.prototype.getContentChildren=function(E){return this.getContentChildNodes(E).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
R.prototype.isLightDescendant=function(E){return this!==E&&(0,_.gv)(this).contains(E)&&(0,_.gv)(this).getRootNode()===(0,_.gv)(E).getRootNode()};
R.prototype.isLocalDescendant=function(E){return this.root===(0,_.gv)(E).getRootNode()};
R.prototype.scopeSubtree=function(E,z){return ez6(E,z===void 0?!1:z)};
R.prototype.getComputedStyleValue=function(E){return s4D.getComputedStyleValue(this,E)};
R.prototype.debounce=function(E,z,c){this._debouncers=this._debouncers||{};return this._debouncers[E]=_.TJ(this._debouncers[E],c>0?_.iX.after(c):a$,z.bind(this))};
R.prototype.isDebouncerActive=function(E){this._debouncers=this._debouncers||{};E=this._debouncers[E];return!(!E||!E.isActive())};
R.prototype.flushDebouncer=function(E){this._debouncers=this._debouncers||{};(E=this._debouncers[E])&&E.flush()};
R.prototype.cancelDebouncer=function(E){this._debouncers=this._debouncers||{};(E=this._debouncers[E])&&E.cancel()};
R.prototype.async=function(E,z){return z>0?_.iX.run(E.bind(this),z):~a$.run(E.bind(this))};
R.prototype.cancelAsync=function(E){E<0?a$.cancel(~E):_.iX.cancel(E)};
R.prototype.create=function(E,z){E=document.createElement(E);if(z)if(E.setProperties)E.setProperties(z);else for(var c in z)E[c]=z[c];return E};
R.prototype.elementMatches=function(E,z){return Zx7(z||this,E)};
R.prototype.toggleAttribute=function(E,z){var c=this;arguments.length===3&&(c=arguments[2]);arguments.length==1&&(z=!c.hasAttribute(E));if(z)return(0,_.gv)(c).setAttribute(E,""),!0;(0,_.gv)(c).removeAttribute(E);return!1};
R.prototype.toggleClass=function(E,z,c){c=c||this;arguments.length==1&&(z=!c.classList.contains(E));z?c.classList.add(E):c.classList.remove(E)};
R.prototype.transform=function(E,z){z=z||this;z.style.webkitTransform=E;z.style.transform=E};
R.prototype.translate3d=function(E,z,c,M){this.transform("translate3d("+E+","+z+","+c+")",M||this)};
R.prototype.arrayDelete=function(E,z){if(Array.isArray(E)){if(z=E.indexOf(z),z>=0)return E.splice(z,1)}else if(z=TR(this,E).indexOf(z),z>=0)return this.splice(E,z,1);return null};
R.prototype._logger=function(E,z){Array.isArray(z)&&z.length===1&&Array.isArray(z[0])&&(z=z[0]);switch(E){case "log":case "warn":case "error":console[E].apply(console,_.py(z))}};
R.prototype._log=function(){this._logger("log",_.Ge.apply(0,arguments))};
R.prototype._warn=function(){this._logger("warn",_.Ge.apply(0,arguments))};
R.prototype._error=function(){this._logger("error",_.Ge.apply(0,arguments))};
R.prototype._logf=function(E){return["[%s::%s]",this.is,E].concat(_.py(_.Ge.apply(1,arguments)))};
_.Yh.Object.defineProperties(R.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var E=(0,_.gv)(this).getRootNode();return E instanceof DocumentFragment?E.host:E}}});
_.Yh.Object.defineProperties(R,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return kiA&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],unP(this.prototype)),this.__observedAttributes):Y.call(this).concat("disable-upgrade")}}});
R.prototype.is="";return R});Polymer.FlattenedNodesObserver=ob8;Polymer.DomApi=e28;Polymer.EventApi=Uu;Polymer.dom=_.S0;Polymer.dom.matchesSelector=Zx7;Polymer.dom.flush=_.Hy;Polymer.dom.addDebouncer=_.QH;Polymer.DirMixin=AfS;Polymer.RenderStatus={beforeNextRender:_.tRS,afterNextRender:_.RK,flush:function(){for(;kxV.length||dv.length;)oB8(kxV),oB8(dv);Lg=!1}};Polymer.LegacyElementMixin=_.Wy;var VI7;VI7=gk._mutablePropertyChange;var JfN={properties:{mutableData:Boolean},_shouldPropertyChange:function(R,A,Y){return VI7(this,R,A,Y,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(R,A,Y){return VI7(this,R,A,Y,!0)}};
Polymer.OptionalMutableDataBehavior=JfN;var nlI={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},$Au={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},UAV=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},$Au),yfD=(0,_.Wy)(HTMLElement),JcS=function(R,A){R||console.warn("Polymer.Class requires `info` argument");A=A?A(yfD):yfD;A=Xsb(R,A,R.behaviors);A.is=A.prototype.is=
R.is;return A};Polymer.Class=JcS;Polymer.mixinBehaviors=function(R,A){return Xsb({},(0,_.Wy)(A),R)};
Polymer.GenerateClassFromInfo=Xsb;_.jz=function(R){var A=typeof R==="function"?R:_.jz.Class(R);R._legacyForceObservedAttributes&&(A.prototype._legacyForceObservedAttributes=R._legacyForceObservedAttributes);customElements.define(A.is,A);return A};
_.jz.Class=JcS;Polymer._polymerFn=_.jz;var miz=window.onLegacyPolymerFunctionDefinedCallback;miz&&miz();var mrk={templatize:function(R,A){this._templatizerTemplate=R;this.ctor=GR(R,this,{mutableData:!!A,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(R){return new this.ctor(R)},
modelForElement:function(R){return Fhb(this._templatizerTemplate,R)}};Polymer.Templatizer=mrk;_.jJ=(0,_.Wy)(HTMLElement).prototype;Polymer.Base=_.jJ;var Ixq=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.Pe=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.H(_.Pe,PolymerFakeBaseClass);var EP=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.H(EP,PolymerFakeBaseClass);var K5P=Symbol("Od"),axk=[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 Ta8=Ta8||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Q4f;(function(R){function A(Z,w,t){var d=L.get(Z);if(!d){if(!t)return;d=new p;L.set(Z,d)}Z=d.get(w);if(!Z){if(!t)return;Z=new p;d.set(w,Z)}return Z}
function Y(Z,w,t){if(P(Z,w,t))return!0;w=Q(w);return w!==null?Y(Z,w,t):!1}
function P(Z,w,t){w=A(w,t,!1);return w===void 0?!1:!!w.has(Z)}
function E(Z,w,t){if(P(Z,w,t))return z(Z,w,t);w=Q(w);if(w!==null)return E(Z,w,t)}
function z(Z,w,t){w=A(w,t,!1);if(w!==void 0)return w.get(Z)}
function c(Z,w){var t=M(Z,w);Z=Q(Z);if(Z===null)return t;var d=c(Z,w);if(d.length<=0)return t;if(t.length<=0)return d;w=new h;Z=[];t=_.x(t);for(var Jk=t.next();!Jk.done;Jk=t.next())Jk=Jk.value,w.has(Jk)||(w.add(Jk),Z.push(Jk));t=_.x(d);for(d=t.next();!d.done;d=t.next())d=d.value,w.has(d)||(w.add(d),Z.push(d));return Z}
function M(Z,w){Z=A(Z,w,!1);var t=[];Z&&Z.forEach(function(d,Jk){return t.push(Jk)});
return t}
function N(Z){return Z===void 0}
function y(Z){return typeof Z==="object"?Z!==null:typeof Z==="function"}
function m(Z){return typeof Z==="function"}
function T(Z){return typeof Z==="symbol"?Z:String(Z)}
function Q(Z){var w=Object.getPrototypeOf(Z);if(typeof Z!=="function"||Z===b||w!==b)return w;var t=Object.getPrototypeOf(Z.prototype);if(t==null||t===Object.prototype)return w;t=t.constructor;return typeof t!=="function"||t===Z?w:t}
function g(){function Z(){this._keys=[];this._values=[];this._cache=w}
var w={};Z.prototype={get size(){return this._keys.length},has:function(t){return t===this._cache?!0:this._find(t)>=0?(this._cache=t,!0):!1},
get:function(t){var d=this._find(t);if(d>=0)return this._cache=t,this._values[d]},
set:function(t,d){this.delete(t);this._keys.push(t);this._values.push(d);this._cache=t;return this},
delete:function(t){t=this._find(t);return t>=0?(this._keys.splice(t,1),this._values.splice(t,1),this._cache=w,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=w},
forEach:function(t){for(var d=this.size,Jk=0;Jk<d;++Jk){var Nb=this._keys[Jk],Qk=this._values[Jk];this._cache=Nb;t.call(this,Qk,Nb,this)}},
_find:function(t){for(var d=this._keys,Jk=d.length,Nb=0;Nb<Jk;++Nb)if(d[Nb]===t)return Nb;return-1}};
return Z}
function r(){function Z(){this._map=new p}
Z.prototype={get size(){return this._map.length},has:function(w){return this._map.has(w)},
add:function(w){this._map.set(w,w);return this},
delete:function(w){return this._map.delete(w)},
clear:function(){this._map.clear()},
forEach:function(w,t){this._map.forEach(w,t)}};
return Z}
function I(){function Z(){this._key=t()}
function w(nu,hk){for(var FV=0;FV<hk;++FV)nu[FV]=Math.random()*255|0}
function t(){do{if(Jk)var nu=Jk.randomBytes(16);else typeof Uint8Array==="function"?(nu=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(nu):w(nu,16)):(nu=Array(16),w(nu,16));nu[6]=nu[6]&79|64;nu[8]=nu[8]&191|128;for(var hk="",FV=0;FV<16;++FV){var i8=nu[FV];if(FV===4||FV===6||FV===8)hk+="-";i8<16&&(hk+="0");hk+=i8.toString(16).toLowerCase()}nu="@@WeakMap@@"+hk}while(Nb.call(Qk,nu));Qk[nu]=!0;return nu}
function d(nu,hk){if(!Nb.call(nu,H3)){if(!hk)return;Object.defineProperty(nu,H3,{value:Object.create(null)})}return nu[H3]}
var Jk=typeof global!=="undefined"&&typeof Ta8==="object"&&typeof require==="function"&&require("crypto"),Nb=Object.prototype.hasOwnProperty,Qk={},H3=t();Z.prototype={has:function(nu){return(nu=d(nu,!1))?this._key in nu:!1},
get:function(nu){if(nu=d(nu,!1))return nu[this._key]},
set:function(nu,hk){d(nu,!0)[this._key]=hk;return this},
delete:function(nu){return(nu=d(nu,!1))&&this._key in nu?delete nu[this._key]:!1},
clear:function(){this._key=t()}};
return Z}
var b=Object.getPrototypeOf(Function),p=typeof Map==="function"?Map:g(),h=typeof Set==="function"?Set:r(),L=new (typeof WeakMap==="function"?WeakMap:I());R.decorate=function(Z,w,t,d){if(N(d)){if(N(t)){if(!Array.isArray(Z))throw new TypeError;if(!m(w))throw new TypeError;for(t=Z.length-1;t>=0;--t)if(d=(0,Z[t])(w),!N(d)){if(!m(d))throw new TypeError;w=d}return w}if(!Array.isArray(Z))throw new TypeError;if(!y(w))throw new TypeError;t=T(t);for(d=Z.length-1;d>=0;--d)(0,Z[d])(w,t)}else{if(Array.isArray(Z))if(y(w)){if(N(t))throw new TypeError;
if(!y(d))throw new TypeError;}else throw new TypeError;else throw new TypeError;t=T(t);for(var Jk=Z.length-1;Jk>=0;--Jk){var Nb=(0,Z[Jk])(w,t,d);if(!N(Nb)){if(!y(Nb))throw new TypeError;d=Nb}}return d}};
R.metadata=function(Z,w){return function(t,d){if(N(d)){if(!m(t))throw new TypeError;A(t,void 0,!0).set(Z,w)}else{if(!y(t))throw new TypeError;d=T(d);A(t,d,!0).set(Z,w)}}};
R.defineMetadata=function(Z,w){var t;if(y(w))N(t)||(t=T(t));else throw new TypeError;A(w,t,!0).set("parameters",Z)};
R.hasMetadata=function(Z,w,t){if(y(w))N(t)||(t=T(t));else throw new TypeError;return Y(Z,w,t)};
R.hasOwnMetadata=function(Z,w,t){if(y(w))N(t)||(t=T(t));else throw new TypeError;return P(Z,w,t)};
R.getMetadata=function(Z,w,t){if(y(w))N(t)||(t=T(t));else throw new TypeError;return E(Z,w,t)};
R.getOwnMetadata=function(Z,w,t){if(y(w))N(t)||(t=T(t));else throw new TypeError;return z(Z,w,t)};
R.getMetadataKeys=function(Z,w){if(y(Z))N(w)||(w=T(w));else throw new TypeError;return c(Z,w)};
R.getOwnMetadataKeys=function(Z,w){if(y(Z))N(w)||(w=T(w));else throw new TypeError;return M(Z,w)};
R.deleteMetadata=function(Z,w,t){if(y(w))N(t)||(t=T(t));else throw new TypeError;var d=A(w,t,!1);if(!N(d)){if(!d.delete(Z))return!1;if(d.size>0)return!0;Z=L.get(w);Z.delete(t);if(Z.size>0)return!0;L.delete(w);return!0}};
(function(Z){if(typeof Z.Reflect!=="undefined"){if(Z.Reflect!==R)for(var w in R)Z.Reflect[w]=R[w]}else Z.Reflect=R})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Q4f||(Q4f={}));var R_k=self;var vp7=[0,_.tR,_.eR,_.tR];var gpA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(gpA,_.lb);var npZ=_.Te(gpA,[0,_.Apk,_.dA,vp7,_.eR,_.A8]);_.Pb(_.zr,_.KJ);_.l=_.zr.prototype;_.l.start=function(){this.stop();this.usingListeners_=!1;var R=HoS(this),A=rf8(this);R&&!A&&this.JSC$11301_win_.mozRequestAnimationFrame?(this.JSC$11301_id_=_.KC(this.JSC$11301_win_,"MozBeforePaint",this.callback_),this.JSC$11301_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11301_id_=R&&A?R.call(this.JSC$11301_win_,this.callback_):this.JSC$11301_win_.setTimeout(VH8(this.callback_),20)};
_.l.stop=function(){if(this.isActive()){var R=HoS(this),A=rf8(this);R&&!A&&this.JSC$11301_win_.mozRequestAnimationFrame?XS(this.JSC$11301_id_):R&&A?A.call(this.JSC$11301_win_,this.JSC$11301_id_):this.JSC$11301_win_.clearTimeout(this.JSC$11301_id_)}this.JSC$11301_id_=null};
_.l.fire=function(){this.stop();this.JSC$11303_doAction_()};
_.l.isActive=function(){return this.JSC$11301_id_!=null};
_.l.JSC$11303_doAction_=function(){this.usingListeners_&&this.JSC$11301_id_&&XS(this.JSC$11301_id_);this.JSC$11301_id_=null;this.JSC$11301_listener_.call(this.handler_,_.YB())};
_.l.disposeInternal=function(){this.stop();_.zr.superClass_.disposeInternal.call(this)};
var HoS=function(R){R=R.JSC$11301_win_;return R.requestAnimationFrame||R.webkitRequestAnimationFrame||R.mozRequestAnimationFrame||R.oRequestAnimationFrame||R.msRequestAnimationFrame||null},rf8=function(R){R=R.JSC$11301_win_;
return R.cancelAnimationFrame||R.cancelRequestAnimationFrame||R.webkitCancelRequestAnimationFrame||R.mozCancelRequestAnimationFrame||R.oCancelRequestAnimationFrame||R.msCancelRequestAnimationFrame||null};_.kH=function(R,A,Y){_.KJ.call(this);this.JSC$11304_listener_=Y!=null?R.bind(Y):R;this.JSC$11304_interval_=A;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11304_timer_=null};
_.H(_.kH,_.KJ);_.l=_.kH.prototype;_.l.fire=function(R){this.args_=arguments;this.JSC$11304_timer_||this.pauseCount_?this.shouldFire_=!0:Di8(this)};
_.l.stop=function(){this.JSC$11304_timer_&&(_.P3.clearTimeout(this.JSC$11304_timer_),this.JSC$11304_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.l.pause=function(){this.pauseCount_++};
_.l.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11304_timer_||(this.shouldFire_=!1,Di8(this))};
_.l.disposeInternal=function(){_.KJ.prototype.disposeInternal.call(this);this.stop()};
var Di8=function(R){R.JSC$11304_timer_=b6(function(){R.JSC$11304_timer_=null;R.shouldFire_&&!R.pauseCount_&&(R.shouldFire_=!1,Di8(R))},R.JSC$11304_interval_);
var A=R.args_;R.args_=null;R.JSC$11304_listener_.apply(null,A)};var UiA=function(R,A){this.childIterator_=R[_.P3.Symbol.iterator]();this.mapFn_=A};
UiA.prototype[Symbol.iterator]=function(){return this};
UiA.prototype.next=function(){var R=this.childIterator_.next();return{value:R.done?void 0:this.mapFn_.call(void 0,R.value),done:R.done}};
var $i8=function(R,A){return new UiA(R,A)};var XrA={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 WNP=function(R){var A=Sdf(R);if(!A)throw Error("Sd`"+R);return A},Sdf=function(R){var A={};
R=String(R);var Y=R.charAt(0)=="#"?R:"#"+R;if(Isf.test(Y))return A.hex=UwS(Y),A.type="hex",A;Y=pak(R);return Y.length?(A.hex=mWk(Y[0],Y[1],Y[2]),A.type="rgb",A):XrA&&(R=XrA[R.toLowerCase()])?(A.hex=R,A.type="named",A):null},KbA=/#(.)(.)(.)/,UwS=function(R){if(!Isf.test(R))throw Error("Ud`"+R);
R.length==4&&(R=R.replace(KbA,"#$1$1$2$2$3$3"));return R.toLowerCase()},jf6=function(R){R=UwS(R);
R=parseInt(R.slice(1),16);return[R>>16,R>>8&255,R&255]},mWk=function(R,A,Y){R=Number(R);
A=Number(A);Y=Number(Y);if(R!=(R&255)||A!=(A&255)||Y!=(Y&255))throw Error("Vd`"+R+"`"+A+"`"+Y);A=R<<16|A<<8|Y;return R<16?"#"+(16777216|A).toString(16).slice(1):"#"+A.toString(16)},Isf=/^#(?:[0-9a-f]{3}){1,2}$/i,Wbq=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,pak=function(R){var A=R.match(Wbq);
if(A){R=Number(A[1]);var Y=Number(A[2]);A=Number(A[3]);if(R>=0&&R<=255&&Y>=0&&Y<=255&&A>=0&&A<=255)return[R,Y,A]}return[]};var j4S={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},Jm=j4S;Jm=j4S;var NG6,bob,fsA;NG6=function(R,A){switch(A){case 1:return R%4!=0||R%100==0&&R%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
bob=function(R,A,Y,P,E){R=new Date(R,A,Y);E=E||0;return R.valueOf()+(((P!==void 0?P:3)-E+7)%7-((R.getDay()+6)%7-E+7)%7)*864E5};
_.bX=function(R,A,Y){typeof R==="number"?(this.date=fsA(R,A||0,Y||1),prH(this,Y||1)):_.ZI(R)?(this.date=fsA(R.getFullYear(),R.getMonth(),R.getDate()),prH(this,R.getDate())):(this.date=new Date(_.YB()),R=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),prH(this,R))};
fsA=function(R,A,Y){A=new Date(R,A,Y);R>=0&&R<100&&A.setFullYear(A.getFullYear()-1900);return A};
_.l=_.bX.prototype;_.l.firstDayOfWeek_=Jm.FIRSTDAYOFWEEK;_.l.firstWeekCutOffDay_=Jm.FIRSTWEEKCUTOFFDAY;_.l.clone=function(){var R=new _.bX(this.date);R.firstDayOfWeek_=this.firstDayOfWeek_;R.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return R};
_.l.getFullYear=function(){return this.date.getFullYear()};
_.l.getYear=function(){return this.getFullYear()};
_.l.getMonth=function(){return this.date.getMonth()};
_.l.getDate=function(){return this.date.getDate()};
_.l.getTime=function(){return this.date.getTime()};
_.l.getDay=function(){return this.date.getDay()};
_.l.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.l.getUTCMonth=function(){return this.date.getUTCMonth()};
_.l.getUTCDate=function(){return this.date.getUTCDate()};
_.l.getUTCDay=function(){return this.date.getDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.l.set=function(R){this.date=new Date(R.getFullYear(),R.getMonth(),R.getDate())};
_.l.setFullYear=function(R){this.date.setFullYear(R)};
_.l.setYear=function(R){this.setFullYear(R)};
_.l.setMonth=function(R){this.date.setMonth(R)};
_.l.setDate=function(R){this.date.setDate(R)};
_.l.setTime=function(R){this.date.setTime(R)};
_.l.setUTCFullYear=function(R){this.date.setUTCFullYear(R)};
_.l.setUTCMonth=function(R){this.date.setUTCMonth(R)};
_.l.setUTCDate=function(R){this.date.setUTCDate(R)};
_.l.add=function(R){if(R.years||R.months){var A=this.getMonth()+R.months+R.years*12,Y=this.getYear()+Math.floor(A/12);A%=12;A<0&&(A+=12);var P=Math.min(NG6(Y,A),this.getDate());this.setDate(1);this.setFullYear(Y);this.setMonth(A);this.setDate(P)}R.days&&(Y=this.getYear(),A=Y>=0&&Y<=99?-1900:0,R=new Date((new Date(Y,this.getMonth(),this.getDate(),12)).getTime()+R.days*864E5),this.setDate(1),this.setFullYear(R.getFullYear()+A),this.setMonth(R.getMonth()),this.setDate(R.getDate()),prH(this,R.getDate()))};
_.l.JSC$11317_toIsoString=function(R){var A=this.getFullYear(),Y=A<0?"-":A>=1E4?"+":"";return[Y+_.cs(Math.abs(A),Y?6:4),_.cs(this.getMonth()+1,2),_.cs(this.getDate(),2)].join(R?"-":"")};
_.l.equals=function(R){return!(!R||this.getYear()!=R.getYear()||this.getMonth()!=R.getMonth()||this.getDate()!=R.getDate())};
_.l.toString=function(){return this.JSC$11317_toIsoString()};
var prH=function(R,A){R.getDate()!=A&&R.date.setUTCHours(R.date.getUTCHours()+(R.getDate()<A?1:-1))};
_.bX.prototype.valueOf=function(){return this.date.valueOf()};var pU=function(R,A,Y,P,E){this.reversed=!!A;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!Y;R&&fU(this,R,P);this.depth=E!=void 0?E:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Pb(pU,JH);var fU=function(R,A,Y,P){if(R.node=A)R.tagType=typeof Y==="number"?Y:R.node.nodeType!=1?0:R.reversed?-1:1;typeof P==="number"&&(R.depth=P)};
_.l=pU.prototype;_.l.JSC$11332_copyFrom=function(R){this.node=R.node;this.tagType=R.tagType;this.depth=R.depth;this.reversed=R.reversed;this.constrained=R.constrained};
_.l.clone=function(){return new pU(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.l.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return y3;var R=this.node;var A=this.reversed?-1:1;if(this.tagType==A){var Y=this.reversed?R.lastChild:R.firstChild;Y?fU(this,Y):fU(this,R,A*-1)}else(Y=this.reversed?R.previousSibling:R.nextSibling)?fU(this,Y):fU(this,R.parentNode,A*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(R=this.node)?mw(R):y3};
_.l.equals=function(R){return R.node==this.node&&(!this.node||R.tagType==this.tagType)};
_.l.splice=function(R){var A=this.node,Y=this.reversed?1:-1;this.tagType==Y&&(this.tagType=Y*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;pU.prototype.next.call(this);this.reversed=!this.reversed;Y=_.ok(arguments[0])?arguments[0]:arguments;for(var P=Y.length-1;P>=0;P--)_.Bs(Y[P],A);_.UU(A)};var FbN=function(){},Fi=function(R){for(var A=[],Y=R.getTextRangeCount(),P=0;P<Y;P++)A.push(R.getTextRange(P));
return A};
FbN.prototype.isReversed=function(){return!1};
FbN.prototype.getWindow=function(){return hr(_.oS(this.JSC$11334_getStartNode()))};
var BaG=function(R,A){pU.call(this,R,A,!0)};
_.Pb(BaG,pU);var By=function(R,A,Y,P,E){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!E;if(R){this.startNode_=R;this.startOffset_=A;this.endNode_=Y;this.endOffset_=P;if(R.nodeType==1&&R.tagName!="BR")if(R=R.childNodes,A=R[A])this.startNode_=A,this.startOffset_=0;else{R.length&&(this.startNode_=_.Ku(R));var z=!0}Y.nodeType==1&&((this.endNode_=Y.childNodes[P])?this.endOffset_=0:this.endNode_=Y)}pU.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);z&&this.next()};
_.Pb(By,BaG);_.l=By.prototype;_.l.JSC$11340_getStartNode=function(){return this.startNode_};
_.l.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)};
_.l.next=function(){return this.isLast()?y3:By.superClass_.next.call(this)};
_.l.JSC$11332_copyFrom=function(R){this.startNode_=R.startNode_;this.endNode_=R.endNode_;this.startOffset_=R.startOffset_;this.endOffset_=R.endOffset_;this.isReversed_=R.isReversed_;By.superClass_.JSC$11332_copyFrom.call(this,R)};
_.l.clone=function(){var R=new By(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);R.JSC$11332_copyFrom(this);return R};var asS=function(){};
asS.prototype.__iterator__=function(){return new By(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var ay=function(R){this.range_=R};
_.Pb(ay,asS);var Ck8=function(R){var A=_.oS(R).createRange();if(R.nodeType==3)A.setStart(R,0),A.setEnd(R,R.length);else if(fF(R)||R.nodeType==3){for(var Y,P=R;(Y=P.firstChild)&&(fF(Y)||Y.nodeType==3);)P=Y;A.setStart(P,0);for(P=R;(Y=P.lastChild)&&(fF(Y)||Y.nodeType==3);)P=Y;A.setEnd(P,P.nodeType==1?P.childNodes.length:P.length)}else Y=R.parentNode,R=Array.prototype.indexOf.call(Y.childNodes,R),A.setStart(Y,R),A.setEnd(Y,R+1);return A},hpS=function(R,A,Y,P){var E=_.oS(R).createRange();
E.setStart(R,A);E.setEnd(Y,P);return E};
_.l=ay.prototype;_.l.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.l.getContainer=function(){return this.range_.commonAncestorContainer};
_.l.compareBrowserRangeEndpoints=function(R,A,Y){return this.range_.compareBoundaryPoints(Y==1?A==1?_.P3.Range.START_TO_START:_.P3.Range.START_TO_END:A==1?_.P3.Range.END_TO_START:_.P3.Range.END_TO_END,R)};
_.l.isCollapsed=function(){return this.range_.collapsed};
_.l.select=function(R){this.selectInternal(hr(_.oS(this.range_.startContainer)).getSelection(),R)};
_.l.selectInternal=function(R){R.removeAllRanges();R.addRange(this.range_)};
_.l.insertNode=function(R,A){var Y=this.range_.cloneRange();Y.collapse(A);Y.insertNode(R);Y.detach();return R};
_.l.collapse=function(R){this.range_.collapse(R)};_.Pb(iP,ay);iP.prototype.selectInternal=function(R,A){!A||this.isCollapsed()?iP.superClass_.selectInternal.call(this,R,A):(R.collapse(this.range_.endContainer,this.range_.endOffset),R.extend(this.range_.startContainer,this.range_.startOffset))};_.Pb(lP,ay);lP.prototype.compareBrowserRangeEndpoints=function(R,A,Y){return lP.superClass_.compareBrowserRangeEndpoints.call(this,R,A,Y)};
lP.prototype.selectInternal=function(R,A){A?R.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):R.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var opH=function(R){return _.cb?new lP(R):_.xB?new iP(R):new ay(R)};var CU=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},k9E;
_.Pb(CU,FbN);k9E=function(R,A){var Y=new CU;Y.browserRangeWrapper_=R;Y.isReversed_=!!A;return Y};
_.G9A=function(R){R=_.cb?new lP(Ck8(R)):_.xB?new iP(Ck8(R)):new ay(Ck8(R));return k9E(R)};
_.hS=function(R,A,Y,P){var E=new CU;E.isReversed_=Zob(R,A,Y,P);if(_.dM(R)&&!fF(R)){var z=R.parentNode;A=Array.prototype.indexOf.call(z.childNodes,R);R=z}_.dM(Y)&&!fF(Y)&&(z=Y.parentNode,P=Array.prototype.indexOf.call(z.childNodes,Y),Y=z);E.isReversed_?(E.startNode_=Y,E.startOffset_=P,E.endNode_=R,E.endOffset_=A):(E.startNode_=R,E.startOffset_=A,E.endNode_=Y,E.endOffset_=P);return E};
_.l=CU.prototype;_.l.clone=function(){var R=new CU;R.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();R.startNode_=this.startNode_;R.startOffset_=this.startOffset_;R.endNode_=this.endNode_;R.endOffset_=this.endOffset_;R.isReversed_=this.isReversed_;return R};
_.l.JSC$11334_getType=function(){return"text"};
_.l.getBrowserRangeObject=function(){return oy(this).range_};
_.l.getTextRangeCount=function(){return 1};
_.l.getTextRange=function(){return this};
var oy=function(R){var A;if(!(A=R.browserRangeWrapper_)){A=R.JSC$11334_getStartNode();var Y=R.JSC$11334_getStartOffset(),P=R.JSC$11334_getEndNode(),E=R.JSC$11334_getEndOffset();A=_.cb?new lP(hpS(A,Y,P,E)):_.xB?new iP(hpS(A,Y,P,E)):new ay(hpS(A,Y,P,E));A=R.browserRangeWrapper_=A}return A};
_.l=CU.prototype;_.l.getContainer=function(){return oy(this).getContainer()};
_.l.JSC$11334_getStartNode=function(){return this.startNode_||(this.startNode_=oy(this).range_.startContainer)};
_.l.JSC$11334_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=oy(this).range_.startOffset};
_.l.JSC$11334_getEndNode=function(){return this.endNode_||(this.endNode_=oy(this).range_.endContainer)};
_.l.JSC$11334_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=oy(this).range_.endOffset};
_.l.isReversed=function(){return this.isReversed_};
_.l.JSC$11334_containsRange=function(R,A){if(R.JSC$11334_getType()=="text"){var Y=oy(this);R=oy(R);A=A&&!R.isCollapsed();R=R.range_;Y=A?Y.compareBrowserRangeEndpoints(R,0,1)>=0&&Y.compareBrowserRangeEndpoints(R,1,0)<=0:Y.compareBrowserRangeEndpoints(R,0,0)>=0&&Y.compareBrowserRangeEndpoints(R,1,1)<=0}else Y=!1;return Y};
_.l.isCollapsed=function(){return oy(this).isCollapsed()};
_.l.JSC$11334_getText=function(){return oy(this).range_.toString()};
_.l.__iterator__=function(){return new By(this.JSC$11334_getStartNode(),this.JSC$11334_getStartOffset(),this.JSC$11334_getEndNode(),this.JSC$11334_getEndOffset())};
_.l.select=function(){oy(this).select(this.isReversed_)};
_.l.JSC$11334_removeContents=function(){var R=oy(this).range_;R.extractContents();if(R.startContainer.hasChildNodes()&&(R=R.startContainer.childNodes[R.startOffset])){var A=R.previousSibling;sHb(R)==""&&_.UU(R);A&&sHb(A)==""&&_.UU(A)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.l.insertNode=function(R,A){R=oy(this).insertNode(R,A);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return R};
_.l.collapse=function(R){R=this.isReversed()?!R:R;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(R);R?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var tID=function(){};
_.Pb(tID,FbN);tID.prototype.JSC$11334_containsRange=function(R,A){var Y=Fi(this);R=Fi(R);return(A?eX:_.T7S)(R,function(P){return eX(Y,function(E){return E.JSC$11334_containsRange(P,A)})})};
tID.prototype.insertNode=function(R,A){A?_.Fw(R,this.JSC$11334_getStartNode()):_.Bs(R,this.JSC$11334_getEndNode());return R};var wrS,uIb=Sp().JSC$9319_document_.documentElement;wrS=uIb.requestFullscreen?"fullscreenchange":uIb.webkitRequestFullscreen?"webkitfullscreenchange":uIb.mozRequestFullScreen?"mozfullscreenchange":uIb.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var epS=function(){var R=Sp().JSC$9319_document_;return!!(R.webkitIsFullScreen||R.mozFullScreen||R.msFullscreenElement||R.fullscreenElement)};var kI=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Pb(kI,tID);_.l=kI.prototype;_.l.clone=function(){var R=new kI;R.browserRanges_=_.Cu(this.browserRanges_);return R};
_.l.JSC$11334_getType=function(){return"mutli"};
_.l.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.l.getTextRangeCount=function(){return this.browserRanges_.length};
_.l.getTextRange=function(R){this.ranges_[R]||(this.ranges_[R]=k9E(opH(this.browserRanges_[R])));return this.ranges_[R]};
_.l.getContainer=function(){if(!this.container_){for(var R=[],A=this.getTextRangeCount(),Y=0;Y<A;Y++)R.push(this.getTextRange(Y).getContainer());this.container_=zQS.apply(null,R)}return this.container_};
var GJ=function(R){R.sortedRanges_||(R.sortedRanges_=Fi(R),R.sortedRanges_.sort(function(A,Y){var P=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();var E=Y.JSC$11334_getStartNode();Y=Y.JSC$11334_getStartOffset();return P==E&&A==Y?0:Zob(P,A,E,Y)?1:-1}));
return R.sortedRanges_};
_.l=kI.prototype;_.l.JSC$11334_getStartNode=function(){return GJ(this)[0].JSC$11334_getStartNode()};
_.l.JSC$11334_getStartOffset=function(){return GJ(this)[0].JSC$11334_getStartOffset()};
_.l.JSC$11334_getEndNode=function(){return _.Ku(GJ(this)).JSC$11334_getEndNode()};
_.l.JSC$11334_getEndOffset=function(){return _.Ku(GJ(this)).JSC$11334_getEndOffset()};
_.l.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.l.JSC$11334_getText=function(){return Fi(this).map(function(R){return R.JSC$11334_getText()}).join("")};
_.l.__iterator__=function(){return new ZV(this)};
_.l.select=function(){var R=this.getWindow().getSelection();R.removeAllRanges();for(var A=this.getTextRangeCount(),Y=0;Y<A;Y++)R.addRange(this.getTextRange(Y).getBrowserRangeObject())};
_.l.JSC$11334_removeContents=function(){Fi(this).forEach(function(R){R.JSC$11334_removeContents()})};
_.l.collapse=function(R){if(!this.isCollapsed()){var A=R?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;A.collapse(R);this.ranges_=[A];this.sortedRanges_=[A];this.browserRanges_=[A.getBrowserRangeObject()]}};
var ZV=function(R){this.iterators_=null;this.currentIdx_=0;R&&(this.iterators_=GJ(R).map(function(A){return _.lN8(A)}));
pU.call(this,R?this.JSC$11340_getStartNode():null,!1,!0)};
_.Pb(ZV,BaG);_.l=ZV.prototype;_.l.JSC$11340_getStartNode=function(){return this.iterators_[0].JSC$11340_getStartNode()};
_.l.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.l.next=function(){for(;this.currentIdx_<this.iterators_.length;){var R=this.iterators_[this.currentIdx_],A=R.next();if(A.done)this.currentIdx_++;else return fU(this,R.node,R.tagType,R.depth),A}return y3};
_.l.JSC$11332_copyFrom=function(R){this.iterators_=_.Cu(R.iterators_);ZV.superClass_.JSC$11332_copyFrom.call(this,R)};
_.l.clone=function(){var R=new ZV(null);R.JSC$11332_copyFrom(this);return R};var qdA,Zob;_.Or=function(){var R=window.getSelection();return R&&qdA(R)};
qdA=function(R){var A=!1;if(R.createRange)try{var Y=R.createRange()}catch(E){return null}else if(R.rangeCount){if(R.rangeCount>1){Y=new kI;A=R.rangeCount;for(var P=0;P<A;P++)Y.browserRanges_.push(R.getRangeAt(P));return Y}Y=R.getRangeAt(0);A=Zob(R.anchorNode,R.anchorOffset,R.focusNode,R.focusOffset)}else return null;return k9E(opH(Y),A)};
_.tS=function(R,A){return _.hS(R,A,R,A)};
_.wk=function(R,A,Y,P){return _.hS(R,A,Y,P)};
Zob=function(R,A,Y,P){if(R==Y)return P<A;var E;if(R.nodeType==1&&A)if(E=R.childNodes[A])R=E,A=0;else if(_.tl(R,Y))return!0;if(Y.nodeType==1&&P)if(E=Y.childNodes[P])Y=E,P=0;else if(_.tl(Y,R))return!1;return(EnZ(R,Y)||A-P)>0};var uX=function(){_.SS.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Wv)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Wv)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Wv)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Wv)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Wv)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Wv)(this.dispatchProgressEvent_,this)};
_.Pb(uX,_.SS);uX.prototype.abort=function(){try{this.reader_.abort()}catch(R){throw new snA(R,"aborting read");}};
uX.prototype.getError=function(){return this.reader_.error&&new snA(this.reader_.error,"reading file")};
uX.prototype.dispatchProgressEvent_=function(R){this.dispatchEvent(new N5A(R,this))};
uX.prototype.disposeInternal=function(){uX.superClass_.disposeInternal.call(this);delete this.reader_};
var diH=function(R){var A=new uX,Y=LbA(A);A.reader_.readAsArrayBuffer(R);return Y},Rx7=function(R){var A=new uX,Y=LbA(A);
A.reader_.readAsDataURL(R);return Y},LbA=function(R){var A=new d4;
R.listen("loadend",_.nj(function(Y,P){var E=P.reader_.result,z=P.getError();E==null||z?Y.errback(z):Y.callback(E);P.dispose()},A,R));
return A};var eJ=function(){_.SS.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11374_eventHandler_=new _.ce(this);this.JSC$11374_isInitialized_=!1};
_.Pb(eJ,_.SS);var Ah7=new _.H$("d"),YlA=new _.H$("beforedragstart"),P58=new _.H$("dragstart"),EwN=new _.H$("beforedragmove"),zxS=new _.H$("dragmove"),iG7=new _.H$("beforedragend"),lo7=new _.H$("dragend"),xoS=new _.H$("e");eJ.prototype.isDragging=function(){return!!this.JSC$11374_dragger_};
var chE=function(R,A){A.dlgGrowthDirection_=0;A.dlgDragHoverClass_=void 0;A.dlgDragPermission=0;R.dragLists_.push(A)},OG8=function(R,A){R.getHandleForDragItem_=A};
eJ.prototype.init=function(){if(!this.JSC$11374_isInitialized_){for(var R=this.dragLists_.length,A=0;A<R;A++)for(var Y=_.a7(this.dragLists_[A]),P=Y.length,E=0;E<P;++E){var z=Y[E],c=this.getHandleForDragItem_(z),M=_.tk(c);this.dragItemForHandle_[M]=z;this.dragItemHoverClasses_&&(this.JSC$11374_eventHandler_.listen(z,"mouseover",this.handleDragItemMouseover_),this.JSC$11374_eventHandler_.listen(z,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11374_eventHandler_.listen(c,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11374_eventHandler_.listen(c,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(z);this.JSC$11374_eventHandler_.listen(c,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11374_isInitialized_=!0}};
eJ.prototype.disposeInternal=function(){this.JSC$11374_eventHandler_.dispose();for(var R=this.dragLists_.length,A=0;A<R;A++){var Y=this.dragLists_[A];Y.dlgGrowthDirection_=void 0;Y.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;MzE(this);eJ.superClass_.disposeInternal.call(this)};
var s6Z=function(R,A){for(var Y=R.dragLists_.length,P=0;P<Y;P++){var E=R.dragLists_[P];E.dlgBounds_=ZFu(E)}Y=R.dragItems_.length;for(P=0;P<Y;P++)E=R.dragItems_[P],E!=A&&(E.dlgBounds_=ZFu(E))};
_.l=eJ.prototype;
_.l.handlePotentialDragStart_=function(R){var A=_.tk(R.currentTarget);A=this.dragItemForHandle_[A];if(A.parentElement.dlgDragPermission!=2){this.currDragItem_=A;a:{A=this.currDragItem_;for(var Y=A.cloneNode(!0),P=$t("TEXTAREA",A),E=$t("TEXTAREA",Y),z=0;z<P.length;z++)E[z].value=P[z].value;switch(A.tagName){case "TR":A=_.jN("TABLE",null,_.jN("TBODY",null,Y));break a;case "TD":case "TH":A=_.jN("TABLE",null,_.jN("TBODY",null,_.jN("TR",null,Y)));break a;case "TEXTAREA":Y.value=A.value;default:A=Y;break a}A=
void 0}this.draggerEl_=A;this.draggerElClasses_&&ql(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.oS(this.currDragItem_).body.appendChild(this.draggerEl_);Y=_.k2(this.currDragItem_);A=this.draggerEl_;P=_.k2(A);if(Y instanceof _.Cs){var c=Y.y;Y=Y.x}Gs(A,A.offsetLeft+(Y-P.x),A.offsetTop+(Number(c)-P.y));this.JSC$11374_dragger_=new _.Zw(this.draggerEl_);_.MXS(this.JSC$11374_dragger_,this.hysteresisDistance_);
_.KC(this.JSC$11374_dragger_,"start",this.handleDragStart_,!1,this);_.KC(this.JSC$11374_dragger_,"end",this.handleDragEnd_,!1,this);_.KC(this.JSC$11374_dragger_,"earlycancel",this.JSC$11376_cleanup_,!1,this);this.dispatchEvent(new qB(Ah7,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11374_dragger_));this.JSC$11374_dragger_.startDrag(R)}};
_.l.handleDragStart_=function(R){if(this.dispatchEvent(new qB(YlA,this,R.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.A9S(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?ql(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var A=ToE(this.draggerEl_);this.draggerEl_.halfWidth=A.width/2;this.draggerEl_.halfHeight=A.height/2;A=this.draggerEl_.getBoundingClientRect();
var Y=R.clientY,P=sB8(this.JSC$11374_dragger_,R.clientX);if(P>A.right){var E=this.currDragItem_.getBoundingClientRect();this.JSC$11374_dragger_.deltaX=P-(P-E.left)/E.width*A.width}Y=NMH(this.JSC$11374_dragger_,Y);Y>A.bottom&&(this.JSC$11374_dragger_.deltaY+=Y-A.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";s6Z(this,this.currDragItem_);this.currDragItem_.style.display="";_.KC(this.JSC$11374_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new qB(P58,
this,R.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11374_dragger_))}else R.preventDefault(),this.JSC$11376_cleanup_()};
_.l.handleDragMove_=function(R){var A=_.k2(this.draggerEl_);A=new _.Cs(A.x+this.draggerEl_.halfWidth,A.y+this.draggerEl_.halfHeight);a:{var Y=null;if(this.currDragItem_.style.display!="none"){Y=this.currDragItem_.parentNode;var P=ZFu(Y);if(NgA(A,P))break a}P=this.dragLists_.length;for(var E=0;E<P;E++){var z=this.dragLists_[E];if(z!=Y&&NgA(A,z.dlgBounds_)){Y=z;break a}}Y=null}if(Y){if(Y==null)throw Error("Wd");P=0;E=!1;z=void 0;switch(Y.dlgGrowthDirection_){case 0:P=A.y;var c=VzS;var M=Jhf;break;case 4:E=
!0;case 2:P=A.x;c=yhE;M=Jhf;break;case 5:E=!0;case 3:P=A.x,c=moA,M=TgE}for(var N=null,y,m=_.a7(Y),T=m.length,Q=0;Q<T;Q++){var g=m[Q];if(g!=this.currDragItem_){var r=c(g.dlgBounds_);if(E){var I=Q6S(g,A);z===void 0&&(z=I);M(P,r)&&(y==void 0||I<z||I==z&&(M(r,y)||r==y))&&(N=g,y=r);I<z&&(z=I)}else M(P,r)&&(y==void 0||M(r,y))&&(N=g,y=r)}}c=N!==null&&Q6S(N,A)>z?null:N}else c=null;if(!this.dispatchEvent(new qB(EwN,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11374_dragger_,A,Y,c)))return!1;if(Y&&Y.dlgDragPermission!=
1)this.currDragItem_.parentNode==Y&&_.A9S(this.currDragItem_)==c||Y.insertBefore(this.currDragItem_,c),this.currDragItem_.style.display="",Y.dlgDragHoverClass_&&_.Ew(Y,Y.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",M=this.dragLists_.length,y=0;y<M;y++)P=this.dragLists_[y],P.dlgDragHoverClass_&&_.YL(P,P.dlgDragHoverClass_);Y!=this.currHoverList_&&(this.currHoverList_=Y,s6Z(this,this.currDragItem_));this.dispatchEvent(new qB(zxS,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11374_dragger_,
A,Y,c));return!1};
_.l.JSC$11376_cleanup_=function(){MzE(this);this.JSC$11374_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var R=this.dragLists_.length,A=0;A<R;A++)this.dragLists_[A].dlgBounds_=null;R=this.dragItems_.length;for(A=0;A<R;A++)this.dragItems_[A].dlgBounds_=null};
_.l.handleDragEnd_=function(R){if(!this.dispatchEvent(new qB(iG7,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11374_dragger_)))return!1;MzE(this);this.dispatchEvent(new qB(lo7,this,R,this.currDragItem_,this.draggerEl_,this.JSC$11374_dragger_));this.JSC$11376_cleanup_();return!0};
var MzE=function(R){_.lt(R.JSC$11374_dragger_);var A=R.draggerEl_&&R.draggerEl_.parentElement;R.draggerEl_&&_.UU(R.draggerEl_);R.currDragItem_&&R.currDragItem_.style.display=="none"&&(R.origList_.insertBefore(R.currDragItem_,R.origNextItem_),R.currDragItem_.style.display="");R.currDragItemClasses_&&R.currDragItem_?c6S(R.currDragItem_,R.currDragItemClasses_||[]):R.currDragItem_&&(R.currDragItem_.style.visibility="");for(var Y=R.dragLists_.length,P=0;P<Y;P++){var E=R.dragLists_[P];E.dlgDragHoverClass_&&
_.YL(E,E.dlgDragHoverClass_)}A&&R.dispatchEvent(new qB(xoS,R,null,R.currDragItem_,R.draggerEl_,R.JSC$11374_dragger_))};
_.l=eJ.prototype;_.l.getHandleForDragItem_=function(R){return R};
_.l.handleDragItemMouseover_=function(R){ql(R.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemMouseout_=function(R){c6S(R.currentTarget,this.dragItemHoverClasses_||[])};
_.l.handleDragItemHandleMouseover_=function(R){ql(R.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.l.handleDragItemHandleMouseout_=function(R){c6S(R.currentTarget,this.dragItemHandleHoverClasses_||[])};
var NgA=function(R,A){return R.x>A.left&&R.x<A.left+A.width&&R.y>A.top&&R.y<A.top+A.height},Q6S=function(R,A){R=R.dlgBounds_;
return Math.abs(A.y-(R.top+(R.height-1)/2))},VzS=function(R){return R.top+R.height-1},yhE=function(R){return R.left+R.width-1},moA=function(R){return R.left||0},Jhf=function(R,A){return R<A},TgE=function(R,A){return R>A},qB=function(R,A,Y,P,E,z){_.r4.call(this,R);
this.event=Y;this.currDragItem=P;this.draggerEl=E;this.JSC$11378_dragger=z};
_.Pb(qB,_.r4);_.Pb(OP,_.KJ);var vwq=new _.Cs(0,0);OP.prototype.JSC$11382_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
OP.prototype.JSC$11382_onMouseMove=function(R){var A=this.containerIsActuallyContent_?vwq:Xr(Sp(this.containerNode_)),Y=this.horizontalScrolling_?this.calculateScrollDelta(R.clientX+A.x,this.scrollBounds_.left,this.scrollBounds_.width):0,P=this.calculateScrollDelta(R.clientY+A.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=Y;this.scrollDelta_.y=P;!(Y=!Y&&!P)&&(Y=this.constrainScroll_)&&(Y=R.clientX+A.x,R=R.clientY+A.y,A=this.containerBounds_,Y=!(A.left<=Y&&A.left+A.width>=
Y&&A.top<=R&&A.top+A.height>=R));Y?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
OP.prototype.calculateScrollDelta=function(R,A,Y){var P=0;R<A?P=-8:R>A+Y&&(P=8);return P};
OP.prototype.disposeInternal=function(){OP.superClass_.disposeInternal.call(this);this.JSC$11380_eventHandler_.dispose();this.scrollTimer_.dispose()};var gwH={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"}}},LU=gwH;LU=gwH;var dk={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 nwf=function(){},e9=function(R){if(typeof R=="number"){var A=new nwf;
A.standardOffset_=R;var Y=R;if(Y==0)Y="Etc/GMT";else{var P=["Etc/GMT",Y<0?"-":"+"];Y=Math.abs(Y);P.push(Math.floor(Y/60)%100);Y%=60;Y!=0&&P.push(":",_.cs(Y,2));Y=P.join("")}A.timeZoneId_=Y;Y=R;Y==0?Y="UTC":(P=["UTC",Y<0?"+":"-"],Y=Math.abs(Y),P.push(Math.floor(Y/60)%100),Y%=60,Y!=0&&P.push(":",Y),Y=P.join(""));R=HGD(R);A.tzNames_=[Y,Y];A.tzNamesExt_={STD_LONG_NAME_GMT:R,STD_GENERIC_LOCATION:R};A.transitions_=[];return A}A=new nwf;A.timeZoneId_=R.id;A.standardOffset_=-R.std_offset;A.tzNames_=R.names;
A.tzNamesExt_=R.names_ext;A.transitions_=R.transitions;return A},HGD=function(R){var A=["GMT"];
A.push(R<=0?"+":"-");R=Math.abs(R);A.push(_.cs(Math.floor(R/60)%100,2),":",_.cs(R%60,2));return A.join("")},rhq=function(R,A){A=Date.UTC(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate(),A.getUTCHours(),A.getUTCMinutes())/36E5;
for(var Y=0;Y<R.transitions_.length&&A>=R.transitions_[Y];)Y+=2;return Y==0?0:R.transitions_[Y-1]},DoZ=function(R,A){R=R.standardOffset_-rhq(R,A);
return R===-1440?0:R};var q6=function(R,A){this.patternParts_=[];this.JSC$11393_dateTimeSymbols_=A||Jm;typeof R=="number"?UoG(this,R):$oD(this,R)},XZ8=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],Rj=function(R){return R.getHours?R.getHours():0},$oD=function(R,A){for(apJ&&(A=A.replace(/\u200f/g,""));A;){for(var Y=A,P=0;P<XZ8.length;++P){var E=A.match(XZ8[P]);
if(E){var z=E[0];A=A.substring(z.length);P==0&&(z=="''"?z="'":(z=z.substring(1,E[1]=="'"?z.length-1:z.length),z=z.replace(/''/g,"'")));R.patternParts_.push({text:z,type:P});break}}if(Y===A)throw Error("Xd`"+A);}};
q6.prototype.format=function(R,A){if(!R)throw Error("Yd");var Y=A?(R.getTimezoneOffset()-DoZ(A,R))*6E4:0,P=Y?new Date(R.getTime()+Y):R,E=P;A&&P.getTimezoneOffset()!=R.getTimezoneOffset()&&(P=new Date(P.getTime()+(P.getTimezoneOffset()-R.getTimezoneOffset())*6E4),E=new Date(R.getTime()+(Y+(Y>0?-864E5:864E5))));Y=[];for(var z=0;z<this.patternParts_.length;++z){var c=this.patternParts_[z].text;1==this.patternParts_[z].type?Y.push(Slq(this,c,R,P,E,A)):Y.push(c)}return Y.join("")};
var UoG=function(R,A){if(A<4)var Y=R.JSC$11393_dateTimeSymbols_.DATEFORMATS[A];else if(A<8)Y=R.JSC$11393_dateTimeSymbols_.TIMEFORMATS[A-4];else if(A<12)Y=R.JSC$11393_dateTimeSymbols_.DATETIMEFORMATS[A-8],Y=Y.replace("{1}",R.JSC$11393_dateTimeSymbols_.DATEFORMATS[A-8]),Y=Y.replace("{0}",R.JSC$11393_dateTimeSymbols_.TIMEFORMATS[A-8]);else if(A===12)Y=R.JSC$11393_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(A===13)Y=R.JSC$11393_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{UoG(R,10);return}$oD(R,Y)},AX=function(R,A){A=String(A);
R=R.JSC$11393_dateTimeSymbols_||Jm;if(R.ZERODIGIT!==void 0&&!BRb){for(var Y=[],P=0;P<A.length;P++){var E=A.charCodeAt(P);Y.push(48<=E&&E<=57?String.fromCharCode(R.ZERODIGIT+E-48):A.charAt(P))}A=Y.join("")}return A},BRb=!1,apJ=!1,Kyf=function(R,A,Y,P){Y=Y.getFullYear();
Y<=0&&P&&(Y=1-Y);return AX(R,IoN(Y,A))},IoN=function(R,A){A==2&&(R%=100);
R<0&&A++;return _.cs(R,A)},Yg=function(R){if(!(R.getHours&&R.getSeconds&&R.getMinutes))throw Error("Zd");
},Wy7=function(R,A){Yg(A);
A=Rj(A);return R.JSC$11393_dateTimeSymbols_.AMPMS[A>=12&&A<24?1:0]},Slq=function(R,A,Y,P,E,z){var c=A.length;
switch(A.charAt(0)){case "G":return Y=P.getFullYear()>0?1:0,c>=4?R.JSC$11393_dateTimeSymbols_.ERANAMES[Y]:R.JSC$11393_dateTimeSymbols_.ERAS[Y];case "y":return Kyf(R,c,P,!0);case "Y":return Y=(new Date(bob(P.getFullYear(),P.getMonth(),P.getDate(),R.JSC$11393_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,R.JSC$11393_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),c==2&&(Y%=100),AX(R,IoN(Y,c));case "u":return Kyf(R,c,P,!1);case "M":a:switch(Y=P.getMonth(),c){case 5:c=R.JSC$11393_dateTimeSymbols_.NARROWMONTHS[Y];
break a;case 4:c=R.JSC$11393_dateTimeSymbols_.MONTHS[Y];break a;case 3:c=R.JSC$11393_dateTimeSymbols_.SHORTMONTHS[Y];break a;default:c=AX(R,_.cs(Y+1,c))}return c;case "k":return Yg(E),AX(R,_.cs(Rj(E)||24,c));case "S":return AX(R,(E.getMilliseconds()/1E3).toFixed(Math.min(3,c)).slice(2)+(c>3?_.cs(0,c-3):""));case "E":return Y=P.getDay(),c>=4?R.JSC$11393_dateTimeSymbols_.WEEKDAYS[Y]:R.JSC$11393_dateTimeSymbols_.SHORTWEEKDAYS[Y];case "a":return Wy7(R,E);case "b":return Wy7(R,E);case "B":return Wy7(R,
E);case "h":return Yg(E),AX(R,_.cs(Rj(E)%12||12,c));case "K":return Yg(E),AX(R,_.cs(Rj(E)%12,c));case "H":return Yg(E),AX(R,_.cs(Rj(E),c));case "c":a:switch(Y=P.getDay(),c){case 5:c=R.JSC$11393_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[Y];break a;case 4:c=R.JSC$11393_dateTimeSymbols_.STANDALONEWEEKDAYS[Y];break a;case 3:c=R.JSC$11393_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[Y];break a;default:c=AX(R,_.cs(Y,1))}return c;case "L":a:switch(Y=P.getMonth(),c){case 5:c=R.JSC$11393_dateTimeSymbols_.STANDALONENARROWMONTHS[Y];
break a;case 4:c=R.JSC$11393_dateTimeSymbols_.STANDALONEMONTHS[Y];break a;case 3:c=R.JSC$11393_dateTimeSymbols_.STANDALONESHORTMONTHS[Y];break a;default:c=AX(R,_.cs(Y+1,c))}return c;case "Q":return Y=Math.floor(P.getMonth()/3),c<4?R.JSC$11393_dateTimeSymbols_.SHORTQUARTERS[Y]:R.JSC$11393_dateTimeSymbols_.QUARTERS[Y];case "d":return AX(R,_.cs(P.getDate(),c));case "m":return Yg(E),AX(R,_.cs(E.getMinutes?E.getMinutes():0,c));case "s":return Yg(E),AX(R,_.cs(E.getSeconds(),c));case "v":return(z||e9(Y.getTimezoneOffset())).timeZoneId_;
case "V":return R=z||e9(Y.getTimezoneOffset()),c<=2?R.timeZoneId_:rhq(R,Y)>0?R.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?R.tzNamesExt_.DST_GENERIC_LOCATION:R.tzNamesExt_.DST_GENERIC_LOCATION:R.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?R.tzNamesExt_.STD_GENERIC_LOCATION:R.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return Y=bob(E.getFullYear(),E.getMonth(),E.getDate(),R.JSC$11393_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,R.JSC$11393_dateTimeSymbols_.FIRSTDAYOFWEEK),AX(R,_.cs(Math.floor(Math.round((Y-(new Date((new Date(Y)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,c));case "z":return R=z||e9(Y.getTimezoneOffset()),c<4?R.tzNames_[rhq(R,Y)>0?2:0]:R.tzNames_[rhq(R,Y)>0?3:1];case "Z":return A=z||e9(Y.getTimezoneOffset()),c<4?(c=-DoZ(A,Y),R=[c<0?"-":"+"],c=Math.abs(c),R.push(_.cs(Math.floor(c/60)%100,2),_.cs(c%60,2)),c=R.join("")):c=AX(R,HGD(DoZ(A,Y))),c;default:return""}};var j68=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,bGA=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,BGk=function(R){this.patternParts_=[];this.JSC$11402_dateTimeSymbols_=Jm;if(typeof R=="number"){R>11&&(R=10);if(R<4)var A=this.JSC$11402_dateTimeSymbols_.DATEFORMATS[R];else R<8?A=this.JSC$11402_dateTimeSymbols_.TIMEFORMATS[R-4]:(A=this.JSC$11402_dateTimeSymbols_.DATETIMEFORMATS[R-8],A=A.replace("{1}",this.JSC$11402_dateTimeSymbols_.DATEFORMATS[R-8]),A=A.replace("{0}",this.JSC$11402_dateTimeSymbols_.TIMEFORMATS[R-
8]));foE(this,A)}else foE(this,R)},foE=function(R,A){for(var Y=!1,P="",E=0;E<A.length;E++){var z=A.charAt(E);
if(j68.test(z))for(P.length>0&&(R.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P=""),R.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});E<A.length-1&&A.charAt(E+1)==" ";)E++;else if(Y)z=="'"?E+1<A.length&&A.charAt(E+1)=="'"?(P+="'",E++):Y=!1:P+=z;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(z)>=0){P.length>0&&(R.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1}),P="");for(var c=A.charAt(E),M=E+1;M<A.length&&A.charAt(M)==c;)M++;c=M-E;c<=0?M=!1:(M="MydhHmsSDkK".indexOf(z),
M=M>0||M==0&&c<3);R.patternParts_.push({text:z,count:c,abutStart:!1,numeric:M});E+=c-1}else z=="'"?E+1<A.length&&A.charAt(E+1)=="'"?(P+="'",E++):Y=!0:P+=z}P.length>0&&R.patternParts_.push({text:P,count:0,abutStart:!1,numeric:!1});A=!1;for(Y=0;Y<R.patternParts_.length;Y++)R.patternParts_[Y].numeric?!A&&Y+1<R.patternParts_.length&&R.patternParts_[Y+1].numeric&&(A=!0,R.patternParts_[Y].abutStart=!0):A=!1};
BGk.prototype.parse=function(R,A,Y){var P=!1,E=!1;Y&&(P=Y.predictive||!1,E=Y.validate||!1);if(P)for(Y=0;Y<this.patternParts_.length;Y++){var z=this.patternParts_[Y];if(z.count>0&&("abBhHkKm".indexOf(z.text.charAt(0))<0||z.count>2||z.abutStart))throw Error("$d`"+z.text.charAt(0));}z=new pZA;Y=[0];z.dayPeriodIndex=-1;for(var c=0;c<this.patternParts_.length&&!(P&&Y[0]>=R.length);c++){if(this.patternParts_[c].count==0){a:{var M=R;var N=Y,y=this.patternParts_[c],m=P;if(y.text.match(j68)!=null){if(y=N[0],
Fyb(M,N),N[0]>y){M=!0;break a}}else{if(M.indexOf(y.text,N[0])==N[0]){N[0]+=y.text.length;M=!0;break a}if(m&&y.text.indexOf(M.substring(N[0]))==0){N[0]+=M.length-N[0];M=!0;break a}}M=!1}if(M)continue;return 0}if(this.patternParts_[c].abutStart){a:{N=R;y=Y;m=c;var T=y[0],Q=0;for(M=m;M<this.patternParts_.length;M++){var g=this.patternParts_[M],r=g.count;if(r===0)break;if(M==m&&(r-=Q,Q++,r==0)){M=0;break a}var I=M>m&&g.numeric,b=y[0];if(!Bgf(this,N,y,g,r,z,!1)||I&&y[0]-b<r)M=m-1,y[0]=T}M-=m}if(M<=0)return 0;
c+=M-1}else if(!Bgf(this,R,Y,this.patternParts_[c],0,z,P))return 0}a:{R=E;if(A==null)throw Error("ae");z.era!=void 0&&z.year!=void 0&&z.era==0&&z.year>0&&(z.year=-(z.year-1));z.year!=void 0&&A.setFullYear(z.year);P=A.getDate();A.setDate(1);z.month!=void 0&&A.setMonth(z.month);z.day!=void 0?A.setDate(z.day):(E=NG6(A.getFullYear(),A.getMonth()),A.setDate(P>E?E:P));typeof A.setHours==="function"&&(z.hours==void 0&&(z.hours=A.getHours()),z.hours<12&&(z.ampm!=void 0&&z.ampm>0?z.hours+=12:z.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(z.dayPeriodName)||["night1","night2"].includes(z.dayPeriodName)&&z.hours>=6)&&(z.hours+=12)),A.setHours(z.hours));typeof A.setMinutes==="function"&&z.minutes!=void 0&&A.setMinutes(z.minutes);typeof A.setSeconds==="function"&&z.seconds!=void 0&&A.setSeconds(z.seconds);typeof A.setMilliseconds==="function"&&z.milliseconds!=void 0&&A.setMilliseconds(z.milliseconds);if(R&&(z.year&&z.year!=A.getFullYear()||z.month&&z.month!=
A.getMonth()||z.day&&z.day!=A.getDate()||z.hours&&z.hours>=24||z.minutes&&z.minutes>=60||z.seconds&&z.seconds>=60||z.milliseconds&&z.milliseconds>=1E3))A=!1;else{z.tzOffset!=void 0&&A.setTime(A.getTime()+(z.tzOffset-A.getTimezoneOffset())*60*1E3);z.ambiguousYear&&(R=new Date,R.setFullYear(R.getFullYear()-80),A.getTime()<R.getTime()&&A.setFullYear(R.getFullYear()+100));if(z.dayOfWeek!=void 0)if(z.day==void 0)z=(7+z.dayOfWeek-A.getDay())%7,z>3&&(z-=7),R=A.getMonth(),A.setDate(A.getDate()+z),A.getMonth()!=
R&&A.setDate(A.getDate()+(z>0?-7:7));else if(z.dayOfWeek!=A.getDay()){A=!1;break a}A=!0}}return A?Y[0]:0};
var Bgf=function(R,A,Y,P,E,z,c){Fyb(A,Y);if(P.numeric&&E>0&&Y[0]+E>A.length)return!1;switch(P.text.charAt(0)){case "G":return P9(A,Y,[R.JSC$11402_dateTimeSymbols_.ERAS],function(M){return z.era=M}),!0;
case "M":case "L":return aoH(R,A,Y,E,P,z);case "E":return P9(A,Y,[R.JSC$11402_dateTimeSymbols_.WEEKDAYS,R.JSC$11402_dateTimeSymbols_.SHORTWEEKDAYS],function(M){return z.dayOfWeek=M});
case "B":case "b":return E=[],R=[[].concat(R.JSC$11402_dateTimeSymbols_.AMPMS)],E.push("isAm"),E.push("isPm"),A=P9(A,Y,R,function(M){return z.dayPeriodIndex=M},c),z.dayPeriodName=E[z.dayPeriodIndex],c?A:!0;
case "a":return A=P9(A,Y,[R.JSC$11402_dateTimeSymbols_.AMPMS],function(M){return z.ampm=M},c),c?A:!0;
case "y":return C5f(R,A,Y,P,E,z);case "Q":return P9(A,Y,[R.JSC$11402_dateTimeSymbols_.QUARTERS,R.JSC$11402_dateTimeSymbols_.SHORTQUARTERS],function(M){z.month=M*3;z.day=1});
case "d":return E8(R,A,Y,P,E,function(M){z.day=M}),!0;
case "S":return hxA(R,A,Y,E,z);case "h":case "K":case "H":case "k":return A=E8(R,A,Y,P,E,function(M){z.hours=P.text.charAt(0)==="h"&&M===12?0:M},c),c?A:!0;
case "m":return A=E8(R,A,Y,P,E,function(M){z.minutes=M},c),c?A:!0;
case "s":return E8(R,A,Y,P,E,function(M){z.seconds=M}),!0;
case "z":case "Z":case "v":return ow7(R,A,Y,z);default:return!1}},C5f=function(R,A,Y,P,E,z){var c=Y[0];
E=zL(R,A,Y,E);E===null&&(E=zL(R,A,Y,0,!0));if(E===null)return!1;E>=0&&Y[0]-c==2&&P.count==2?(R=E,A=(new Date).getFullYear()-80,Y=A%100,z.ambiguousYear=R==Y,R+=Math.floor(A/100)*100+(R<Y?100:0),z.year=R):z.year=E;return!0},aoH=function(R,A,Y,P,E,z){return E.numeric&&E8(R,A,Y,E,P,function(c){z.month=c-1})?!0:P9(A,Y,[R.JSC$11402_dateTimeSymbols_.MONTHS,
R.JSC$11402_dateTimeSymbols_.STANDALONEMONTHS,R.JSC$11402_dateTimeSymbols_.SHORTMONTHS,R.JSC$11402_dateTimeSymbols_.STANDALONESHORTMONTHS],function(c){z.month=c})},hxA=function(R,A,Y,P,E){var z=Y[0];
R=zL(R,A,Y,P);if(R===null)return!1;Y=Y[0]-z;E.milliseconds=Y<3?R*Math.pow(10,3-Y):Math.round(R/Math.pow(10,Y-3));return!0},ow7=function(R,A,Y,P){A.indexOf("GMT",Y[0])==Y[0]&&(Y[0]+=3);
if(Y[0]>=A.length)return P.tzOffset=0,!0;var E=Y[0],z=zL(R,A,Y,0,!0);if(z===null)return!1;if(Y[0]<A.length&&A.charAt(Y[0])==":"){var c=z*60;Y[0]++;z=zL(R,A,Y,0);if(z===null)return!1;c+=z}else c=z,c=c<24&&Y[0]-E<=3?c*60:c%100+c/100*60;P.tzOffset=-c;return!0},E8=function(R,A,Y,P,E,z,c){c=c||!1;
var M=Y[0];R=zL(R,A,Y,E);if(R===null)return!1;if(c&&Y[0]-M<P.count){if(Y[0]<A.length)return!1;R*=Math.pow(10,P.count-(Y[0]-M))}z(R);return!0},P9=function(R,A,Y,P,E){E=E||!1;
for(var z,c=0;c<Y.length;c++){z=A;for(var M=Y[c],N=E,y=0,m=null,T=R.substring(z[0]).toLowerCase(),Q=0;Q<M.length;Q++){var g=M[Q].toLowerCase();if(N&&g.indexOf(T)==0){y=T.length;m=Q;break}M[Q].length>y&&T.indexOf(g)==0&&(y=M[Q].length,m=Q)}m!==null&&(z[0]+=y);z=m;if(z!==null)return P(z),!0}return!1},Fyb=function(R,A){(R=R.substring(A[0]).match(bGA))&&(A[0]+=R[0].length)},zL=function(R,A,Y,P,E){A=P>0?A.substring(0,Y[0]+P):A;
E=E||!1;if(R.JSC$11402_dateTimeSymbols_.ZERODIGIT){P=[];for(var z=Y[0];z<A.length;z++){var c=A.charCodeAt(z)-R.JSC$11402_dateTimeSymbols_.ZERODIGIT;P.push(0<=c&&c<=9?String.fromCharCode(c+48):A.charAt(z))}A=P.join("")}else A=A.substring(Y[0]);R=A.match(new RegExp("^"+(E?"[+-]?":"")+"\\d+"));if(!R)return null;Y[0]+=R[0].length;return parseInt(R[0],10)},pZA=function(){};
pZA.prototype.ambiguousYear=!1;_.k2A={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 G2z={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"},ZGS=G2z,tzD=G2z;tzD=ZGS=G2z;var u7D,iV,xg,Edk,lV,wZA;
_.t0=function(R,A,Y,P){var E;if(E=A){a:if(A&&A.length===3){for(E=0;E<3;E++){var z=A[E];if(z<"A"||z>"Z"&&z<"a"||z>"z"){E=!1;break a}}E=!0}else E=!1;E=!E}if(E)throw new TypeError("be");this.intlCurrencyCode_=A?A.toUpperCase():null;this.currencyStyle_=Y||0;this.overrideNumberFormatSymbols_=P||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_=iV(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof R==="number")switch(R){case 1:lV(this,iV(this).DECIMAL_PATTERN);break;case 2:lV(this,iV(this).SCIENTIFIC_PATTERN);break;case 3:lV(this,iV(this).PERCENT_PATTERN);break;case 4:R=iV(this).CURRENCY_PATTERN;A=["0"];if(Y=
dk[xg(this)]){Y=Y[0]&7;if(Y>0)for(A.push("."),P=0;P<Y;P++)A.push("0");R=R.replace(/0.00/g,A.join(""))}lV(this,R);break;case 5:wZA(this,1);break;case 6:wZA(this,2);break;default:throw Error("ee");}else lV(this,R)};
u7D=!1;iV=function(R){return R.overrideNumberFormatSymbols_||(u7D?tzD:ZGS)};
xg=function(R){return R.intlCurrencyCode_||iV(R).DEF_CURRENCY_CODE};
Edk=function(R,A){if(A>308)throw Error("de`"+A);R.maximumFractionDigits_=A;return R};
lV=function(R,A){var Y=[0];R.positivePrefix_=ex8(R,A,Y);for(var P=Y[0],E=-1,z=0,c=0,M=0,N=-1,y=A.length,m=!0;Y[0]<y&&m;Y[0]++)switch(A.charAt(Y[0])){case "#":c>0?M++:z++;N>=0&&E<0&&N++;break;case "0":if(M>0)throw Error("ke`"+A);c++;N>=0&&E<0&&N++;break;case ",":N>0&&R.groupingArray_.push(N);N=0;break;case ".":if(E>=0)throw Error("le`"+A);E=z+c+M;break;case "E":if(R.useExponentialNotation_)throw Error("me`"+A);R.useExponentialNotation_=!0;R.minExponentDigits_=0;Y[0]+1<y&&A.charAt(Y[0]+1)=="+"&&(Y[0]++,
R.useSignForPositiveExponent_=!0);for(;Y[0]+1<y&&A.charAt(Y[0]+1)=="0";)Y[0]++,R.minExponentDigits_++;if(z+c<1||R.minExponentDigits_<1)throw Error("ne`"+A);m=!1;break;default:Y[0]--,m=!1}c==0&&z>0&&E>=0&&(c=E,c==0&&c++,M=z-c,z=c-1,c=1);if(E<0&&M>0||E>=0&&(E<z||E>z+c)||N==0)throw Error("oe`"+A);M=z+c+M;R.maximumFractionDigits_=E>=0?M-E:0;E>=0&&(R.minimumFractionDigits_=z+c-E,R.minimumFractionDigits_<0&&(R.minimumFractionDigits_=0));R.minimumIntegerDigits_=(E>=0?E:M)-z;R.useExponentialNotation_&&(R.maximumIntegerDigits_=
z+R.minimumIntegerDigits_,R.maximumFractionDigits_==0&&R.minimumIntegerDigits_==0&&(R.minimumIntegerDigits_=1));R.groupingArray_.push(Math.max(0,N));R.decimalSeparatorAlwaysShown_=E==0||E==M;P=Y[0]-P;R.positiveSuffix_=ex8(R,A,Y);Y[0]<A.length&&A.charAt(Y[0])==";"?(Y[0]++,R.multiplier_!=1&&(R.negativePercentSignExpected_=!0),R.negativePrefix_=ex8(R,A,Y),Y[0]+=P,R.negativeSuffix_=ex8(R,A,Y)):(R.negativePrefix_+=R.positivePrefix_,R.negativeSuffix_+=R.positiveSuffix_)};
wZA=function(R,A){R.compactStyle_=A;lV(R,iV(R).DECIMAL_PATTERN);R.minimumFractionDigits_=0;Edk(R,2);if(R.minimumFractionDigits_>0)throw Error("ce");R.significantDigits_=2};
_.t0.prototype.parse=function(R,A){A=A||[0];if(this.compactStyle_!==0)throw Error("fe");R=R.replace(/ |\u202f/g,"\u00a0");var Y=R.indexOf(this.positivePrefix_,A[0])==A[0],P=R.indexOf(this.negativePrefix_,A[0])==A[0];Y&&P&&(this.positivePrefix_.length>this.negativePrefix_.length?P=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(Y=!1));Y?A[0]+=this.positivePrefix_.length:P&&(A[0]+=this.negativePrefix_.length);if(R.indexOf(iV(this).INFINITY,A[0])==A[0]){A[0]+=iV(this).INFINITY.length;var E=
Infinity}else{E=R;var z=!1,c=!1,M=!1,N=-1,y=1,m=iV(this).DECIMAL_SEP,T=iV(this).GROUP_SEP,Q=iV(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ge");T=T.replace(/\u202f/g,"\u00a0");for(var g="";A[0]<E.length;A[0]++){var r=E.charAt(A[0]),I=qlb(this,r);if(I>=0&&I<=9)g+=I,M=!0;else if(r==m.charAt(0)){if(z||c)break;g+=".";z=!0}else if(r==T.charAt(0)&&("\u00a0"!=T.charAt(0)||A[0]+1<E.length&&qlb(this,E.charAt(A[0]+1))>=0)){if(z||c)break}else if(r==Q.charAt(0)){if(c)break;g+="E";c=!0;N=A[0]}else if(r==
"+"||r=="-"){if(M&&N!=A[0]-1)break;g+=r}else if(this.multiplier_==1&&r==iV(this).PERCENT.charAt(0)){if(y!=1)break;y=100;if(M){A[0]++;break}}else if(this.multiplier_==1&&r==iV(this).PERMILL.charAt(0)){if(y!=1)break;y=1E3;if(M){A[0]++;break}}else break}this.multiplier_!=1&&(y=this.multiplier_);E=parseFloat(g)/y}if(Y){if(R.indexOf(this.positiveSuffix_,A[0])!=A[0])return NaN;A[0]+=this.positiveSuffix_.length}else if(P){if(R.indexOf(this.negativeSuffix_,A[0])!=A[0])return NaN;A[0]+=this.negativeSuffix_.length}return P?
-E:E};
_.t0.prototype.format=function(R){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("he");if(isNaN(R))return iV(this).NAN;var A=[];var Y=R;if(this.compactStyle_==0)Y=c9;else{Y=Math.abs(Y);var P=LyE(this,Y<=1?0:doN(Y)).divisorBase;Y=LyE(this,P+doN(RwG(this,O8(Y,-P)).intValue))}R=O8(R,-Y.divisorBase);(P=R<0||R==0&&1/R<0)?Y.negative_prefix?A.push(Y.negative_prefix):(A.push(Y.prefix),A.push(this.negativePrefix_)):(A.push(Y.prefix),A.push(this.positivePrefix_));if(isFinite(R))if(R*=
P?-1:1,R*=this.multiplier_,this.useExponentialNotation_){var E=R;if(E==0)A78(this,E,this.minimumIntegerDigits_,A),Y5S(this,0,A);else{var z=Math.floor(Math.log(E)/Math.log(10)+2E-15);E=O8(E,-z);var c=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(c=z%this.maximumIntegerDigits_,c<0&&(c=this.maximumIntegerDigits_+c),E=O8(E,c),z-=c,c=1):this.minimumIntegerDigits_<1?(z++,E=O8(E,-1)):(z-=this.minimumIntegerDigits_-1,E=O8(E,this.minimumIntegerDigits_-
1));A78(this,E,c,A);Y5S(this,z,A)}}else A78(this,R,this.minimumIntegerDigits_,A);else A.push(iV(this).INFINITY);P?Y.negative_suffix?A.push(Y.negative_suffix):(isFinite(R)&&A.push(Y.suffix),A.push(this.negativeSuffix_)):(isFinite(R)&&A.push(Y.suffix),A.push(this.positiveSuffix_));return A.join("")};
var RwG=function(R,A){var Y=O8(A,R.maximumFractionDigits_);R.significantDigits_>0&&(Y=P4q(Y,R.significantDigits_,R.maximumFractionDigits_));Y=Math.round(Y);if(isFinite(Y)){var P=Math.floor(O8(Y,-R.maximumFractionDigits_));Y=Math.floor(Y-O8(P,R.maximumFractionDigits_));if(Y<0||Y>=O8(1,R.maximumFractionDigits_))P=Math.round(A),Y=0}else P=A,Y=0;return{intValue:P,fracValue:Y}},A78=function(R,A,Y,P){if(R.minimumFractionDigits_>R.maximumFractionDigits_)throw Error("he");
P||(P=[]);A=RwG(R,A);var E=A.intValue,z=A.fracValue,c=R.minimumFractionDigits_>0||z>0||!1;A=R.minimumFractionDigits_;c&&(A=R.minimumFractionDigits_);for(var M="",N=E;N>1E20;)M="0"+M,N=Math.round(O8(N,-1));M=N+M;var y=iV(R).DECIMAL_SEP;N=iV(R).ZERO_DIGIT.codePointAt(0);var m=M.length,T=0;if(E>0||Y>0){for(E=m;E<Y;E++)P.push(String.fromCodePoint(N));if(R.groupingArray_.length>=2)for(Y=1;Y<R.groupingArray_.length;Y++)T+=R.groupingArray_[Y];Y=m-T;if(Y>0){E=R.groupingArray_;T=m=0;for(var Q,g=iV(R).GROUP_SEP,
r=M.length,I=0;I<r;I++)if(P.push(String.fromCodePoint(N+Number(M.charAt(I)))),r-I>1)if(Q=E[T],I<Y){var b=Y-I;(Q===1||Q>0&&b%Q===1)&&P.push(g)}else T<E.length&&(I===Y?T+=1:Q===I-Y-m+1&&(P.push(g),m+=Q,T+=1))}else{Y=M;M=R.groupingArray_;E=iV(R).GROUP_SEP;Q=Y.length;g=[];for(m=M.length-1;m>=0&&Q>0;m--){T=M[m];for(r=0;r<T&&Q-r-1>=0;r++)g.push(String.fromCodePoint(N+Number(Y.charAt(Q-r-1))));Q-=T;Q>0&&g.push(E)}P.push.apply(P,g.reverse())}}else c||P.push(String.fromCodePoint(N));(R.decimalSeparatorAlwaysShown_||
c)&&P.push(y);z=String(z);c=z.split("e+");c.length==2&&(z=String(P4q(parseFloat(c[0]),R.significantDigits_,1)),z=z.replace(".",""),z+=(0,_.Fl8)("0",parseInt(c[1],10)-z.length+1));R.maximumFractionDigits_+1>z.length&&(z="1"+(0,_.Fl8)("0",R.maximumFractionDigits_-z.length)+z);for(R=z.length;z.charAt(R-1)=="0"&&R>A+1;)R--;for(A=1;A<R;A++)P.push(String.fromCodePoint(N+Number(z.charAt(A))))},Y5S=function(R,A,Y){Y.push(iV(R).EXP_SYMBOL);
A<0?(A=-A,Y.push(iV(R).MINUS_SIGN)):R.useSignForPositiveExponent_&&Y.push(iV(R).PLUS_SIGN);A=""+A;for(var P=iV(R).ZERO_DIGIT,E=A.length;E<R.minExponentDigits_;E++)Y.push(P);R=P.codePointAt(0)-E9N;for(P=0;P<A.length;P++)Y.push(String.fromCodePoint(R+A.codePointAt(P)))},qlb=function(R,A){A=A.codePointAt(0);
if(48<=A&&A<58)return A-48;R=iV(R).ZERO_DIGIT.codePointAt(0);return R<=A&&A<R+10?A-R:-1},E9N="0".codePointAt(0),ex8=function(R,A,Y){for(var P="",E=!1,z=A.length;Y[0]<z;Y[0]++){var c=A.charAt(Y[0]);
if(c=="'")Y[0]+1<z&&A.charAt(Y[0]+1)=="'"?(Y[0]++,P+="'"):E=!E;else if(E)P+=c;else switch(c){case "#":case "0":case ",":case ".":case ";":return P;case "\u00a4":if(Y[0]+1<z&&A.charAt(Y[0]+1)=="\u00a4")Y[0]++,P+=xg(R);else switch(R.currencyStyle_){case 0:c=xg(R);P+=c in dk?dk[c][1]:c;break;case 2:c=xg(R);var M=dk[c];P+=M?c==M[1]?c:c+" "+M[1]:c;break;case 1:c=xg(R),P+=c in dk?dk[c][2]:c}break;case "%":if(!R.negativePercentSignExpected_&&R.multiplier_!=1)throw Error("ie");if(R.negativePercentSignExpected_&&
R.multiplier_!=100)throw Error("je");R.multiplier_=100;R.negativePercentSignExpected_=!1;P+=iV(R).PERCENT;break;case "\u2030":if(!R.negativePercentSignExpected_&&R.multiplier_!=1)throw Error("ie");if(R.negativePercentSignExpected_&&R.multiplier_!=1E3)throw Error("je");R.multiplier_=1E3;R.negativePercentSignExpected_=!1;P+=iV(R).PERMILL;break;default:P+=c}}return P},c9={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},LyE=function(R,A){R=R.compactStyle_==1?LU.COMPACT_DECIMAL_SHORT_PATTERN:LU.COMPACT_DECIMAL_LONG_PATTERN;R==null&&(R=LU.COMPACT_DECIMAL_SHORT_PATTERN);if(A<3)return c9;A=Math.min(14,A);var Y=R[O8(1,A)];for(--A;!Y&&A>=3;)Y=R[O8(1,A)],A--;if(!Y)return c9;Y=Y.other;var P=R="",E=Y.indexOf(";");E>=0&&(Y=Y.substring(0,E),E=Y.substring(E+1))&&(P=/([^0]*)(0+)(.*)/.exec(E),R=P[1],P=P[3]);return Y&&Y!="0"?(Y=/([^0]*)(0+)(.*)/.exec(Y))?{divisorBase:A+
1-(Y[2].length-1),negative_prefix:R,negative_suffix:P,prefix:Y[1],suffix:Y[3]}:c9:c9},doN=function(R){if(!isFinite(R))return R>0?R:0;
for(var A=0;(R/=10)>=1;)A++;return A},O8=function(R,A){if(!R||!isFinite(R)||A==0)return R;
R=String(R).split("e");return parseFloat(R[0]+"e"+(parseInt(R[1]||0,10)+A))},zwq=function(R,A){return R&&isFinite(R)?O8(Math.round(O8(R,A)),-A):R},P4q=function(R,A,Y){if(!R)return R;
A=A-doN(R)-1;return A<-Y?zwq(R,-Y):zwq(R,A)};var iCf=function(R){return R%10==1&&R%100!=11?"one":R%10==2&&R%100!=12?"two":R%10==3&&R%100!=13?"few":"other"},lcf=iCf;
lcf=iCf;var xfS;xfS=function(R,A){var Y=R|0;if(void 0===A){A=Math;var P=A.min,E=R+"",z=E.indexOf(".");A=P.call(A,z===-1?0:E.length-z-1,3)}P=Math.pow(10,A);R={v:A,f:(R*P|0)%P};return Y==1&&R.v==0?"one":"other"};
_.Lx=xfS;_.Lx=xfS;var c7f,OCq,M5G,NUH,V5b;_.sZ8=function(R){this.JSC$11445_pattern_=R;this.parsedPattern_=this.literals_=this.initialLiterals_=null;R=ZGS;var A=LU;if(c7f!==R||OCq!==A)c7f=R,OCq=A,M5G=new _.t0(1);this.numberFormatter_=M5G};
c7f=null;OCq=null;M5G=null;NUH=RegExp("'([{}#].*?)'","g");V5b=RegExp("''","g");
_.sZ8.prototype.format=function(R){if(this.JSC$11445_pattern_){this.initialLiterals_=[];var A=J7G(this,this.JSC$11445_pattern_);this.parsedPattern_=y7E(this,A);this.JSC$11445_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Cu(this.initialLiterals_),A=[],mfS(this,this.parsedPattern_,R,!1,A),R=A.join("");this.literals_.length>0;)R=R.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else R="";return R};
var mfS=function(R,A,Y,P,E){for(var z=0;z<A.length;z++)switch(A[z].type){case 4:E.push(A[z].value);break;case 3:var c=A[z].value;var M=R,N=E,y=Y[c];y===void 0?N.push("Undefined parameter - "+c):(M.literals_.push(y),N.push(M.buildPlaceholder_(M.literals_)));break;case 2:c=A[z].value;M=R;N=Y;y=P;var m=E,T=c.argumentIndex;N[T]===void 0?m.push("Undefined parameter - "+T):(T=c[N[T]],T===void 0&&(T=c.other),mfS(M,T,N,y,m));break;case 0:c=A[z].value;TUH(R,c,Y,_.Lx,P,E);break;case 1:c=A[z].value,TUH(R,c,
Y,lcf,P,E)}},TUH=function(R,A,Y,P,E,z){var c=A.argumentIndex,M=A.argumentOffset,N=+Y[c];
isNaN(N)?z.push("Undefined or invalid parameter - "+c):(M=N-M,c=A[Y[c]],c===void 0&&(P=P(Math.abs(M)),c=A[P],c===void 0&&(c=A.other)),A=[],mfS(R,c,Y,E,A),Y=A.join(""),E?z.push(Y):(R=R.numberFormatter_.format(M),z.push(Y.replace(/#/g,R))))},J7G=function(R,A){var Y=R.initialLiterals_,P=R.buildPlaceholder_.bind(R);
A=A.replace(V5b,function(){Y.push("'");return P(Y)});
return A=A.replace(NUH,function(E,z){Y.push(z);return P(Y)})},QZb=function(R){var A=0,Y=[],P=[],E=/[{}]/g;
E.lastIndex=0;for(var z;z=E.exec(R);){var c=z.index;z[0]=="}"?(Y.pop(),Y.length==0&&(z={type:1},z.value=R.substring(A,c),P.push(z),A=c+1)):(Y.length==0&&(A=R.substring(A,c),A!=""&&P.push({type:0,value:A}),A=c+1),Y.push("{"))}R=R.substring(A);R!=""&&P.push({type:0,value:R});return P},v9Z=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,g9E=/^\s*(\w+)\s*,\s*selectordinal\s*,/,n9A=/^\s*(\w+)\s*,\s*select\s*,/,y7E=function(R,A){var Y=[];
A=QZb(A);for(var P=0;P<A.length;P++){var E={};if(0==A[P].type)E.type=4,E.value=A[P].value;else if(1==A[P].type){var z=A[P].value;switch(v9Z.test(z)?0:g9E.test(z)?1:n9A.test(z)?2:/^\s*\w+\s*/.test(z)?3:5){case 2:E.type=2;E.value=HCZ(R,A[P].value);break;case 0:E.type=0;E.value=r7b(R,A[P].value);break;case 1:E.type=1;E.value=DfS(R,A[P].value);break;case 3:E.type=3,E.value=A[P].value}}Y.push(E)}return Y},HCZ=function(R,A){var Y="";
A=A.replace(n9A,function(M,N){Y=N;return""});
var P={};P.argumentIndex=Y;A=QZb(A);for(var E=0;E<A.length;){var z=A[E].value;E++;var c=void 0;1==A[E].type&&(c=y7E(R,A[E].value));P[z.replace(/\s/g,"")]=c;E++}return P},r7b=function(R,A){var Y="",P=0;
A=A.replace(v9Z,function(N,y,m){Y=y;m&&(P=parseInt(m,10));return""});
var E={};E.argumentIndex=Y;E.argumentOffset=P;A=QZb(A);for(var z=0;z<A.length;){var c=A[z].value;z++;var M=void 0;1==A[z].type&&(M=y7E(R,A[z].value));E[c.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=M;z++}return E},DfS=function(R,A){var Y="";
A=A.replace(g9E,function(M,N){Y=N;return""});
var P={};P.argumentIndex=Y;P.argumentOffset=0;A=QZb(A);for(var E=0;E<A.length;){var z=A[E].value;E++;var c=void 0;1==A[E].type&&(c=y7E(R,A[E].value));P[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;E++}return P};
_.sZ8.prototype.buildPlaceholder_=function(R){return"\ufddf_"+(R.length-1).toString(10)+"_"};var UfS;
UfS={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 o7V=function(){this.rdtfSymbols_=$fE||UfS;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
o7V.prototype.format=function(R,A){a:{A=Xcq(this,A);switch(this.style_){case 2:if(A.NARROW!=void 0){A=A.NARROW;break a}case 1:if(A.SHORT!=void 0){A=A.SHORT;break a}default:A=A.LONG;break a}A=void 0}if(!this.alwaysNumeric_&&A&&A.R&&A.R[""+R])R=A.R[""+R];else if(A){var Y=Math.abs(R);R=(new _.sZ8("{N,plural,"+(R>0||R==0&&1/R==Infinity?A.F:A.P)+"}")).format({N:Y})}else R="";return R};
var Xcq=function(R,A){switch(A){default:case 0:return R.rdtfSymbols_.YEAR;case 1:return R.rdtfSymbols_.QUARTER;case 2:return R.rdtfSymbols_.MONTH;case 3:return R.rdtfSymbols_.WEEK;case 4:return R.rdtfSymbols_.DAY;case 5:return R.rdtfSymbols_.HOUR;case 6:return R.rdtfSymbols_.MINUTE;case 7:return R.rdtfSymbols_.SECOND}};var S5Z=function(R,A,Y,P,E,z,c,M){this.x0=R;this.y0=A;this.x1=Y;this.y1=P;this.x2=E;this.y2=z;this.x3=c;this.y3=M};
S5Z.prototype.clone=function(){return new S5Z(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
S5Z.prototype.equals=function(R){return this.x0==R.x0&&this.y0==R.y0&&this.x1==R.x1&&this.y1==R.y1&&this.x2==R.x2&&this.y2==R.y2&&this.x3==R.x3&&this.y3==R.y3};
var IcE=function(R,A){if(A==0)return R.x0;if(A==1)return R.x3;var Y=SN(R.x0,R.x1,A),P=SN(R.x1,R.x2,A);R=SN(R.x2,R.x3,A);Y=SN(Y,P,A);P=SN(P,R,A);return SN(Y,P,A)},K0f=function(R,A){var Y=(A-R.x0)/(R.x3-R.x0);
if(Y<=0)return 0;if(Y>=1)return 1;for(var P=0,E=1,z=0,c=0;c<8;c++){z=IcE(R,Y);var M=(IcE(R,Y+1E-6)-z)/1E-6;if(Math.abs(z-A)<1E-6)return Y;if(Math.abs(M)<1E-6)break;else z<A?P=Y:E=Y,Y-=(z-A)/M}for(c=0;Math.abs(z-A)>1E-6&&c<8;c++)z<A?(P=Y,Y=(Y+E)/2):(E=Y,Y=(Y+P)/2),z=IcE(R,Y);return Y};var MY=function(){_.SS.call(this);this.JSC$11466_name_="closure_frame"+W0z++;this.iframesForDisposal_=[];jZ7[this.JSC$11466_name_]=this},s8;
_.Pb(MY,_.SS);var jZ7={},W0z=0,bCG=function(R,A){var Y=Sp(R);k8G(A,function(P,E){Array.isArray(P)||(P=[P]);_.uI(P,function(z){z=Y.JSC$9321_createDom("INPUT",{type:"hidden",name:E,value:z});R.appendChild(z)})})};
_.l=MY.prototype;_.l.JSC$11468_form_=null;_.l.JSC$11468_iframe_=null;_.l.iframeName_=null;_.l.nextIframeId_=0;_.l.JSC$11468_active_=!1;_.l.complete_=!1;_.l.success_=!1;_.l.lastContent_=null;_.l.JSC$11468_lastErrorCode_=0;_.l.iframeDisposalTimer_=null;
_.l.send=function(R,A,Y,P){if(this.JSC$11468_active_)throw Error("pe");R=new _.dq(R);A=A?A.toUpperCase():"GET";Y&&_.Jn(R);s8||(s8=_.jN("FORM"),s8.acceptCharset="utf-8",Y=s8.style,Y.position="absolute",Y.visibility="hidden",Y.top=Y.left="-10px",Y.width=Y.height="10px",Y.overflow="hidden",document.body.appendChild(s8));this.JSC$11468_form_=s8;A=="GET"&&bCG(this.JSC$11468_form_,R.JSC$10024_queryData_);P&&bCG(this.JSC$11468_form_,P);Y=R.toString();Y=KTb(Y);P=this.JSC$11468_form_;Y=_.ZE(fq(Y));Y!==void 0&&
(P.action=Y);this.JSC$11468_form_.method=A;fcD(this);pcf(this)};
_.l.abort=function(R){if(this.JSC$11468_active_){var A=NY(this);if(A)if(UX(A))A.removeAllListeners(void 0);else if(A=$y(A)){var Y=0,P;for(P in A.listeners)for(var E=A.listeners[P].concat(),z=0;z<E.length;++z)XS(E[z])&&++Y}this.success_=this.JSC$11468_active_=this.complete_=!1;this.JSC$11468_lastErrorCode_=R||7;this.dispatchEvent("abort");F0q(this)}};
_.l.disposeInternal=function(){this.JSC$11468_active_&&this.abort();MY.superClass_.disposeInternal.call(this);this.JSC$11468_iframe_&&BUf(this);pcf(this);this.JSC$11468_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11468_form_=null;this.JSC$11468_lastErrorCode_=0;delete jZ7[this.JSC$11466_name_]};
_.l.isComplete=function(){return this.complete_};
_.l.isSuccess=function(){return this.success_};
_.l.isActive=function(){return this.JSC$11468_active_};
_.l.getResponseText=function(){return this.lastContent_};
_.l.getLastError=function(){return _.v2A(this.JSC$11468_lastErrorCode_)};
var fcD=function(R){R.JSC$11468_active_=!0;R.complete_=!1;R.JSC$11468_lastErrorCode_=0;R.iframeName_=R.JSC$11466_name_+"_"+(R.nextIframeId_++).toString(36);R.JSC$11468_iframe_=Sp(R.JSC$11468_form_).JSC$9321_createDom("IFRAME",{name:R.iframeName_,id:R.iframeName_});var A=R.JSC$11468_iframe_.style;A.visibility="hidden";A.width=A.height="10px";A.display="none";_.cb?A.marginTop=A.marginLeft="-10px":(A.position="absolute",A.top=A.left="-10px");Sp(R.JSC$11468_form_).JSC$9319_document_.body.appendChild(R.JSC$11468_iframe_);
A=R.iframeName_+"_inner";var Y=ifA(R.JSC$11468_iframe_);if(document.baseURI){var P=sJ(A);P='<head><base href="'+sJ(document.baseURI)+'"></head><body><iframe id="'+P+'" name="'+P+'"></iframe>';P=ec(P)}else P=sJ(A),P=ec('<body><iframe id="'+P+'" name="'+P+'"></iframe>');Y.write(qL(P));_.KC(Y.getElementById(A),"load",R.onIframeLoaded_,!1,R);P=$t("TEXTAREA",R.JSC$11468_form_);for(var E=0,z=P.length;E<z;E++){var c=P[E].value;sHb(P[E])!=c&&(_.CF(P[E],c),P[E].value=c)}P=Y.importNode(R.JSC$11468_form_,!0);
P.target=A;P.action=R.JSC$11468_form_.action;Y.body.appendChild(P);E=$t("SELECT",R.JSC$11468_form_);z=$t("SELECT",P);c=0;for(var M=E.length;c<M;c++)for(var N=$t("OPTION",E[c]),y=$t("OPTION",z[c]),m=0,T=N.length;m<T;m++)y[m].selected=N[m].selected;E=$t("INPUT",R.JSC$11468_form_);z=$t("INPUT",P);c=0;for(M=E.length;c<M;c++)if(E[c].type=="file"&&E[c].value!=z[c].value){R.JSC$11468_form_.target=A;P=R.JSC$11468_form_;break}try{R.errorHandled_=!1,P.submit(),Y.close(),_.xB&&setTimeout(R.testForFirefoxSilentError_.bind(R),
250)}catch(Q){_.XQ(Y.getElementById(A),"load",R.onIframeLoaded_,!1,R),Y.close(),Vo(R,2)}};
MY.prototype.onIframeLoaded_=function(){_.XQ(NY(this),"load",this.onIframeLoaded_,!1,this);try{var R=this.JSC$11468_iframe_?ifA(NY(this)):null;this.complete_=!0;this.JSC$11468_active_=!1;try{var A=R.body;this.lastContent_=A.textContent||A.innerText}catch(E){var Y=1}var P;Y||typeof this.errorChecker_!="function"||(P=this.errorChecker_(R))&&(Y=4);Y?Vo(this,Y):(this.success_=!0,this.JSC$11468_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),F0q(this))}catch(E){Vo(this,1)}};
var Vo=function(R,A){R.errorHandled_||(R.success_=!1,R.JSC$11468_active_=!1,R.complete_=!0,R.JSC$11468_lastErrorCode_=A,R.dispatchEvent("complete"),R.dispatchEvent("error"),F0q(R),R.errorHandled_=!0)},F0q=function(R){BUf(R);
pcf(R);R.JSC$11468_form_=null;R.dispatchEvent("ready")},BUf=function(R){var A=R.JSC$11468_iframe_;
A&&(A.onreadystatechange=null,A.onload=null,A.onerror=null,R.iframesForDisposal_.push(A));R.iframeDisposalTimer_&&(clearTimeout(R.iframeDisposalTimer_),R.iframeDisposalTimer_=null);_.xB?R.iframeDisposalTimer_=setTimeout(R.disposeIframes_.bind(R),2E3):R.disposeIframes_();R.JSC$11468_iframe_=null;R.iframeName_=null};
MY.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var R=this.iframesForDisposal_.pop();_.UU(R)}};
var pcf=function(R){R.JSC$11468_form_&&R.JSC$11468_form_==s8&&_.pF(R.JSC$11468_form_)},NY=function(R){return R.JSC$11468_iframe_?ifA(R.JSC$11468_iframe_).getElementById(R.iframeName_+"_inner"):null};
MY.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11468_active_){var R=this.JSC$11468_iframe_?ifA(NY(this)):null;R&&!UM6(R,"documentUri")?(_.XQ(NY(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Vo(this,3):Vo(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.JX=function(R){return R=="\r"||R=="\n"||R==" "||R=="\t"};var acA;_.yo=function(R){this.errorMessage_=null;this.result_=[];this.JSC$11470_buffer_="";this.stack_=[];this.JSC$11470_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!R||!R.deliverMessageAsRawString)};
acA={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};_.yo.prototype.isInputValid=function(){return this.streamState_!=3};
_.yo.prototype.done=function(){return this.streamState_===2};
var mv=function(R,A,Y){R.streamState_=3;R.errorMessage_="The stream is broken @"+R.JSC$11470_pos_+"/"+Y+". With input:\n"+A;throw Error(R.errorMessage_);};
_.yo.prototype.acceptsBinaryInput=function(){return!1};
_.yo.prototype.parse=function(R){function A(){for(;Q<R.length;)if(_.JX(R[Q]))Q++,z.JSC$11470_pos_++;else break;return Q<y}
function Y(){for(var r;;){r=R[Q++];if(!r)break;z.JSC$11470_pos_++;switch(z.state_){case N.INIT:r==="{"?z.state_=N.OBJECT_OPEN:r==="["?z.state_=N.ARRAY_OPEN:_.JX(r)||mv(z,R,Q);continue;case N.KEY_START:case N.OBJECT_OPEN:if(_.JX(r))continue;if(z.state_===N.KEY_START)c.push(N.KEY_END);else if(r==="}"){E("{}");z.state_=P();continue}else c.push(N.OBJECT_END);r==='"'?z.state_=N.STRING:mv(z,R,Q);continue;case N.KEY_END:case N.OBJECT_END:if(_.JX(r))continue;r===":"?(z.state_===N.OBJECT_END&&(c.push(N.OBJECT_END),
z.depth_++),z.state_=N.VALUE):r==="}"?(z.depth_--,E(),z.state_=P()):r===","?(z.state_===N.OBJECT_END&&c.push(N.OBJECT_END),z.state_=N.KEY_START):mv(z,R,Q);continue;case N.ARRAY_OPEN:case N.VALUE:if(_.JX(r))continue;if(z.state_===N.ARRAY_OPEN)if(z.depth_++,z.state_=N.VALUE,r==="]"){z.depth_--;if(z.depth_===0){z.state_=N.ARRAY_END;return}E("[]");z.state_=P();continue}else c.push(N.ARRAY_END);r==='"'?z.state_=N.STRING:r==="{"?z.state_=N.OBJECT_OPEN:r==="["?z.state_=N.ARRAY_OPEN:r==="t"?z.state_=N.TRUE1:
r==="f"?z.state_=N.FALSE1:r==="n"?z.state_=N.NULL1:r!=="-"&&("0123456789".indexOf(r)!==-1?z.state_=N.NUM_DIGIT:mv(z,R,Q));continue;case N.ARRAY_END:if(r===",")c.push(N.ARRAY_END),z.state_=N.VALUE,z.depth_===1&&(T=Q);else if(r==="]"){z.depth_--;if(z.depth_===0)return;E();z.state_=P()}else if(_.JX(r))continue;else mv(z,R,Q);continue;case N.STRING:var I=Q;a:for(;;){for(;z.unicodeCount_>0;)if(r=R[Q++],z.unicodeCount_===4?z.unicodeCount_=0:z.unicodeCount_++,!r)break a;if(r==='"'&&!z.slashed_){z.state_=
P();break}if(r==="\\"&&!z.slashed_&&(z.slashed_=!0,r=R[Q++],!r))break;if(z.slashed_)if(z.slashed_=!1,r==="u"&&(z.unicodeCount_=1),r=R[Q++])continue;else break;M.lastIndex=Q;r=M.exec(R);if(!r){Q=R.length+1;break}Q=r.index+1;r=R[r.index];if(!r)break}z.JSC$11470_pos_+=Q-I;continue;case N.TRUE1:if(!r)continue;r==="r"?z.state_=N.TRUE2:mv(z,R,Q);continue;case N.TRUE2:if(!r)continue;r==="u"?z.state_=N.TRUE3:mv(z,R,Q);continue;case N.TRUE3:if(!r)continue;r==="e"?z.state_=P():mv(z,R,Q);continue;case N.FALSE1:if(!r)continue;
r==="a"?z.state_=N.FALSE2:mv(z,R,Q);continue;case N.FALSE2:if(!r)continue;r==="l"?z.state_=N.FALSE3:mv(z,R,Q);continue;case N.FALSE3:if(!r)continue;r==="s"?z.state_=N.FALSE4:mv(z,R,Q);continue;case N.FALSE4:if(!r)continue;r==="e"?z.state_=P():mv(z,R,Q);continue;case N.NULL1:if(!r)continue;r==="u"?z.state_=N.NULL2:mv(z,R,Q);continue;case N.NULL2:if(!r)continue;r==="l"?z.state_=N.NULL3:mv(z,R,Q);continue;case N.NULL3:if(!r)continue;r==="l"?z.state_=P():mv(z,R,Q);continue;case N.NUM_DECIMAL_POINT:r===
"."?z.state_=N.NUM_DIGIT:mv(z,R,Q);continue;case N.NUM_DIGIT:if("0123456789.eE+-".indexOf(r)!==-1)continue;else Q--,z.JSC$11470_pos_--,z.state_=P();continue;default:mv(z,R,Q)}}}
function P(){var r=c.pop();return r!=null?r:N.VALUE}
function E(r){z.depth_>1||(r||(r=T===-1?z.JSC$11470_buffer_+R.substring(m,Q):R.substring(T,Q)),z.deliverMessageAsRawString_?z.result_.push(r):z.result_.push(JSON.parse(r)),T=Q)}
for(var z=this,c=z.stack_,M=z.stringInputPattern_,N=acA,y=R.length,m=0,T=-1,Q=0;Q<y;)switch(z.streamState_){case 3:return mv(z,R,Q),null;case 2:return A()&&mv(z,R,Q),null;case 0:if(A()){var g=R[Q++];z.JSC$11470_pos_++;if(g==="["){z.streamState_=1;m=Q;z.state_=N.ARRAY_OPEN;continue}else mv(z,R,Q)}return null;case 1:return Y(),z.depth_===0&&z.state_==N.ARRAY_END?(z.streamState_=2,z.JSC$11470_buffer_=R.substring(Q)):z.JSC$11470_buffer_=T===-1?z.JSC$11470_buffer_+R.substring(m):R.substring(T),z.result_.length>
0?(g=z.result_,z.result_=[],g):null}return null};_.Pb(_.M4,IW);sP.prototype.getValue=function(){return this.JSC$11478_value_};
sP.prototype.clone=function(){return new sP(this.JSC$11478_key_,this.JSC$11478_value_)};var TL=function(R){this.nodes_=[];if(R)a:{if(R instanceof TL){var A=R.getKeys();R=R.getValues();if(this.getCount()<=0){for(var Y=this.nodes_,P=0;P<A.length;P++)Y.push(new sP(A[P],R[P]));break a}}else A=_.BO.getKeys(R),R=_.BO.getValues(R);for(Y=0;Y<A.length;Y++)this.insert(A[Y],R[Y])}};
_.l=TL.prototype;_.l.insert=function(R,A){var Y=this.nodes_;Y.push(new sP(R,A));R=Y.length-1;A=this.nodes_;for(Y=A[R];R>0;){var P=R-1>>1;if(A[P].JSC$11478_key_>Y.JSC$11478_key_)A[R]=A[P],R=P;else break}A[R]=Y};
_.l.remove=function(){var R=this.nodes_,A=R.length,Y=R[0];if(!(A<=0)){if(A==1)R.length=0;else{R[0]=R.pop();R=0;A=this.nodes_;for(var P=A.length,E=A[R];R<P>>1;){var z=R*2+1,c=R*2+2;z=c<P&&A[c].JSC$11478_key_<A[z].JSC$11478_key_?c:z;if(A[z].JSC$11478_key_>E.JSC$11478_key_)break;A[R]=A[z];R=z}A[R]=E}return Y.getValue()}};
_.l.peek=function(){var R=this.nodes_;if(R.length!=0)return R[0].getValue()};
_.l.getValues=function(){for(var R=this.nodes_,A=[],Y=R.length,P=0;P<Y;P++)A.push(R[P].getValue());return A};
_.l.getKeys=function(){for(var R=this.nodes_,A=[],Y=R.length,P=0;P<Y;P++)A.push(R[P].JSC$11478_key_);return A};
_.l.containsValue=function(R){return this.nodes_.some(function(A){return A.getValue()==R})};
_.l.containsKey=function(R){return this.nodes_.some(function(A){return A.JSC$11478_key_==R})};
_.l.clone=function(){return new TL(this)};
_.l.getCount=function(){return this.nodes_.length};
_.l.isEmpty=function(){return this.nodes_.length===0};
_.l.clear=function(){this.nodes_.length=0};_.Qo=function(R,A){this.JSC$11484_map_={};this.JSC$11484_keys_=[];this.version_=this.size=0;var Y=arguments.length;if(Y>1){if(Y%2)throw Error("ka");for(var P=0;P<Y;P+=2)this.set(arguments[P],arguments[P+1])}else R&&this.addAll(R)};
_.l=_.Qo.prototype;_.l.getCount=function(){return this.size};
_.l.getValues=function(){v9(this);for(var R=[],A=0;A<this.JSC$11484_keys_.length;A++)R.push(this.JSC$11484_map_[this.JSC$11484_keys_[A]]);return R};
_.l.getKeys=function(){v9(this);return this.JSC$11484_keys_.concat()};
_.l.containsKey=function(R){return this.has(R)};
_.l.has=function(R){return gS(this.JSC$11484_map_,R)};
_.l.containsValue=function(R){for(var A=0;A<this.JSC$11484_keys_.length;A++){var Y=this.JSC$11484_keys_[A];if(gS(this.JSC$11484_map_,Y)&&this.JSC$11484_map_[Y]==R)return!0}return!1};
_.l.equals=function(R,A){if(this===R)return!0;if(this.size!=R.getCount())return!1;A=A||C4A;v9(this);for(var Y,P=0;Y=this.JSC$11484_keys_[P];P++)if(!A(this.get(Y),R.get(Y)))return!1;return!0};
var C4A=function(R,A){return R===A};
_.Qo.prototype.isEmpty=function(){return this.size==0};
_.Qo.prototype.clear=function(){this.JSC$11484_map_={};this.version_=this.size=this.JSC$11484_keys_.length=0};
_.Qo.prototype.remove=function(R){return this.delete(R)};
_.Qo.prototype.delete=function(R){return gS(this.JSC$11484_map_,R)?(delete this.JSC$11484_map_[R],--this.size,this.version_++,this.JSC$11484_keys_.length>2*this.size&&v9(this),!0):!1};
var v9=function(R){if(R.size!=R.JSC$11484_keys_.length){for(var A=0,Y=0;A<R.JSC$11484_keys_.length;){var P=R.JSC$11484_keys_[A];gS(R.JSC$11484_map_,P)&&(R.JSC$11484_keys_[Y++]=P);A++}R.JSC$11484_keys_.length=Y}if(R.size!=R.JSC$11484_keys_.length){A={};for(P=Y=0;Y<R.JSC$11484_keys_.length;){var E=R.JSC$11484_keys_[Y];gS(A,E)||(R.JSC$11484_keys_[P++]=E,A[E]=1);Y++}R.JSC$11484_keys_.length=P}};
_.l=_.Qo.prototype;_.l.get=function(R,A){return gS(this.JSC$11484_map_,R)?this.JSC$11484_map_[R]:A};
_.l.set=function(R,A){gS(this.JSC$11484_map_,R)||(this.size+=1,this.JSC$11484_keys_.push(R),this.version_++);this.JSC$11484_map_[R]=A};
_.l.addAll=function(R){if(R instanceof _.Qo)for(var A=R.getKeys(),Y=0;Y<A.length;Y++)this.set(A[Y],R.get(A[Y]));else for(A in R)this.set(A,R[A])};
_.l.forEach=function(R,A){for(var Y=this.getKeys(),P=0;P<Y.length;P++){var E=Y[P],z=this.get(E);R.call(A,z,E,this)}};
_.l.clone=function(){return new _.Qo(this)};
_.l.transpose=function(){for(var R=new _.Qo,A=0;A<this.JSC$11484_keys_.length;A++){var Y=this.JSC$11484_keys_[A];R.set(this.JSC$11484_map_[Y],Y)}return R};
_.l.keys=function(){return xKz(this.__iterator__(!0)).toEs6()};
_.l.values=function(){return xKz(this.__iterator__(!1)).toEs6()};
_.l.entries=function(){var R=this;return $i8(this.keys(),function(A){return[A,R.get(A)]})};
_.l.__iterator__=function(R){v9(this);var A=0,Y=this.version_,P=this,E=new JH;E.next=function(){if(Y!=P.version_)throw Error("qe");if(A>=P.JSC$11484_keys_.length)return y3;var z=P.JSC$11484_keys_[A++];return mw(R?z:P.JSC$11484_map_[z])};
return E};
var gS=function(R,A){return Object.prototype.hasOwnProperty.call(R,A)};var o97=function(){this.JSC$11487_map_=new _.Qo;this.JSC$11487_head_=new hwA("");this.JSC$11487_head_.next=this.JSC$11487_head_.prev=this.JSC$11487_head_},kjq=function(R,A){if(A=R.JSC$11487_map_.get(A))A.remove(),R.insert_(A);
return A};
_.l=o97.prototype;_.l.get=function(R,A){return(R=kjq(this,R))?R.value:A};
_.l.set=function(R,A){var Y=kjq(this,R);Y?Y.value=A:(Y=new hwA(R,A),this.JSC$11487_map_.set(R,Y),this.insert_(Y))};
_.l.peek=function(){return this.JSC$11487_head_.next.value};
_.l.shift=function(){return Gjz(this,this.JSC$11487_head_.next)};
_.l.pop=function(){return Gjz(this,this.JSC$11487_head_.prev)};
_.l.remove=function(R){return(R=this.JSC$11487_map_.get(R))?(this.removeNode(R),!0):!1};
_.l.removeNode=function(R){R.remove();this.JSC$11487_map_.remove(R.key)};
_.l.getCount=function(){return this.JSC$11487_map_.getCount()};
_.l.isEmpty=function(){return this.JSC$11487_map_.isEmpty()};
_.l.getKeys=function(){return this.map(function(R,A){return A})};
_.l.getValues=function(){return this.map(function(R){return R})};
_.l.contains=function(R){return this.some(function(A){return A==R})};
_.l.containsKey=function(R){return this.JSC$11487_map_.containsKey(R)};
_.l.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11487_head_.prev)};
_.l.forEach=function(R,A){for(var Y=this.JSC$11487_head_.next;Y!=this.JSC$11487_head_;Y=Y.next)R.call(A,Y.value,Y.key,this)};
_.l.map=function(R,A){for(var Y=[],P=this.JSC$11487_head_.next;P!=this.JSC$11487_head_;P=P.next)Y.push(R.call(A,P.value,P.key,this));return Y};
_.l.some=function(R,A){for(var Y=this.JSC$11487_head_.next;Y!=this.JSC$11487_head_;Y=Y.next)if(R.call(A,Y.value,Y.key,this))return!0;return!1};
_.l.every=function(R,A){for(var Y=this.JSC$11487_head_.next;Y!=this.JSC$11487_head_;Y=Y.next)if(!R.call(A,Y.value,Y.key,this))return!1;return!0};
_.l.insert_=function(R){R.next=this.JSC$11487_head_.next;R.prev=this.JSC$11487_head_;this.JSC$11487_head_.next=R;for(R.next.prev=R;this.getCount()>100;)this.removeNode(this.JSC$11487_head_.prev)};
var Gjz=function(R,A){R.JSC$11487_head_!=A&&R.removeNode(A);return A.value},hwA=function(R,A){this.key=R;
this.value=A};
hwA.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var ZCA=function(){TL.apply(this,arguments)};
_.H(ZCA,TL);ZCA.prototype.enqueue=function(R,A){this.insert(R,A)};var t5G=function(){var R=Error();R.name="SecurityError";throw R;},a1P=function(){return{get opener(){return null},
get closed(){return!0},get location(){t5G()},get document(){t5G()},postMessage:function(){},
close:function(){},
focus:function(){}}};var tNk={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 q33={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 wcA={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(q33).join("|");var uSD=function(){function R(M){M.substr(-1)!==";"&&(M+=";");return c(M)}
for(var A=Object.keys(wcA).sort(e5k),Y=Object.keys(q33).sort(e5k),P=0,E=0;P<Y.length;P++)A[E]===Y[P]?(Y[P]+=";?",E++):Y[P]+=";";var z=new RegExp("&(?:"+Y.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=L5l();return function(M){return String(M).replace(z,R)}}();/*

 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 ewD={};var q5z=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"),L0E=/[\\&]/,dfZ=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),RcE=RegExp('[&<>"]',"g"),AM8=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),YwG=function(R){return R.charCodeAt(0)===92?R.charAt(1):uSD(R)},Ph7=function(R){return L0E.test(R)?R.replace(dfZ,YwG):R},ELb=function(R){try{var A,Y="";
if(typeof E!=="string"){var P=E;var E=";/?:@&=+$,-_.!~*'()#"}typeof P==="undefined"&&(P=!0);var z,c=ewD[E];if(c)var M=c;else{c=ewD[E]=[];for(z=0;z<128;z++){var N=String.fromCharCode(z);/^[0-9a-z]$/i.test(N)?c.push(N):c.push("%"+("0"+z.toString(16).toUpperCase()).slice(-2))}for(z=0;z<E.length;z++)c[E.charCodeAt(z)]=E[z];M=c}var y=0;for(A=R.length;y<A;y++){var m=R.charCodeAt(y);if(P&&m===37&&y+2<A&&/^[0-9a-f]{2}$/i.test(R.slice(y+1,y+3)))Y+=R.slice(y,y+3),y+=2;else if(m<128)Y+=M[m];else if(m>=55296&&
m<=57343){if(m>=55296&&m<=56319&&y+1<A){var T=R.charCodeAt(y+1);if(T>=56320&&T<=57343){Y+=encodeURIComponent(R[y]+R[y+1]);y++;continue}}Y+="%EF%BF%BD"}else Y+=encodeURIComponent(R[y])}return Y}catch(Q){return R}},zcq=function(R){switch(R){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return R}},nr=function(R,A){return RcE.test(R)?A?R.replace(AM8,zcq):R.replace(RcE,zcq):R};/*

 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 H9;if(String.fromCodePoint)H9=function(R){try{return String.fromCodePoint(R)}catch(A){if(A instanceof RangeError)return String.fromCharCode(65533);throw A;}};
else{var iYS=String.fromCharCode,lLb=Math.floor;H9=function(){var R=[],A=-1,Y=arguments.length;if(!Y)return"";for(var P="";++A<Y;){var E=Number(arguments[A]);if(!isFinite(E)||E<0||E>1114111||lLb(E)!==E)return String.fromCharCode(65533);if(E<=65535)R.push(E);else{E-=65536;var z=(E>>10)+55296;E=E%1024+56320;R.push(z,E)}if(A+1===Y||R.length>16384)P+=iYS.apply(null,R),R.length=0}return P}};var xHq=function(R){this.root=this.current=R;this.entering=!0};
xHq.prototype.next=function(){var R=this.current,A=this.entering;if(R===null)return null;a:switch(R._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 Y=!0;break a;default:Y=!1}A&&Y?R._firstChild?(this.current=R._firstChild,this.entering=!0):this.entering=!1:R===this.root?this.current=null:R._next===null?(this.current=
R._parent,this.entering=!1):(this.current=R._next,this.entering=!0);return{entering:A,node:R}};
var yz=function(R,A){this._type=R;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=A;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};
yz.prototype.appendChild=function(R){R.unlink();R._parent=this;this._lastChild?(this._lastChild._next=R,R._prev=this._lastChild):this._firstChild=R;this._lastChild=R};
yz.prototype.unlink=function(){this._prev?this._prev._next=this._next:this._parent&&(this._parent._firstChild=this._next);this._next?this._next._prev=this._prev:this._parent&&(this._parent._lastChild=this._prev);this._prev=this._next=this._parent=null};
var cMz=function(R,A){A.unlink();A._next=R._next;A._next&&(A._next._prev=A);A._prev=R;R._next=A;A._parent=R._parent;A._next||(A._parent._lastChild=A)};
yz.prototype.insertBefore=function(R){R.unlink();R._prev=this._prev;R._prev&&(R._prev._next=R);R._next=this;this._prev=R;R._parent=this._parent;R._prev||(R._parent._firstChild=R)};
_.Yh.Object.defineProperties(yz.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(R){this._literal=R}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(R){this._destination=R}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(R){this._title=R}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(R){this._info=R}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(R){this._level=R}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(R){this._listData.type=R}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(R){this._listData.tight=R}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(R){this._listData.start=R}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(R){this._onEnter=R}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(R){this._onExit=R}}});var dAV=/[ \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,
RMS={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 OY7=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]/),
MiG=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),sES=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Nlb=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),ViN=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),JMZ=/`+/,yMS=/^`+/,mHz=/\.\.\./g,TlE=/--+/g,QEA=/^<([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])?)*)>/,
vLS=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,gLS=/^ *(?:\n *)?/,nLE=/^[ \t\n\x0b\x0c\x0d]/,HY8=/[ \t\n\x0b\x0c\x0d]+/g,rMz=/^\s/,DHD=/ *$/,UHq=/^ */,$HD=/^ *(?:\n|$)/,X1G=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Swb=/^[^\n`\[\]\\!<&*_'"]+/m,rS=function(R){var A=new yz("text");A._literal=R;return A},DR=function(R){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=R||{}};
DR.prototype.match=function(R){R=R.exec(this.subject.slice(this.pos));if(R===null)return null;this.pos+=R.index+R[0].length;return R[0]};
DR.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var U8=function(R){R.match(gLS);return!0},ILG=function(R,A,Y){var P=0;
var E=R.pos;if(A===39||A===34)P++,R.pos++;else for(;R.peek()===A;)P++,R.pos++;if(P===0)P=null;else{var z=E===0?"\n":R.subject.charAt(E-1);var c=R.peek();c=c===-1?"\n":H9(c);var M=rMz.test(c);c=OY7.test(c);var N=rMz.test(z);var y=OY7.test(z);z=!M&&!(c&&!N&&!y);M=!N&&!(y&&!M&&!c);A===95?(N=z&&(!M||y),c=M&&(!z||c)):(N=A===39||A===34?z&&!M:z,c=M);R.pos=E;P={numdelims:P,can_open:N,can_close:c}}if(!P)return!1;E=P.numdelims;c=R.pos;R.pos+=E;c=A===39?"\u2019":A===34?"\u201c":R.subject.slice(c,R.pos);c=rS(c);
Y.appendChild(c);R.delimiters={cc:A,numdelims:E,origdelims:E,node:c,previous:R.delimiters,next:null,can_open:P.can_open,can_close:P.can_close};R.delimiters.previous!==null&&(R.delimiters.previous.next=R.delimiters);return!0},KBq=function(R,A){A.previous!==null&&(A.previous.next=A.next);
A.next===null?R.delimiters=A.previous:A.next.previous=A.previous},WB7=function(R,A){var Y,P,E=[],z=!1;
E[95]=A;E[42]=A;E[39]=A;E[34]=A;for(Y=R.delimiters;Y!==null&&Y.previous!==A;)Y=Y.previous;for(;Y!==null;){var c=Y.cc;if(Y.can_close){var M=Y.previous;for(P=!1;M!==null&&M!==A&&M!==E[c];){z=(Y.can_open||M.can_close)&&(M.origdelims+Y.origdelims)%3===0;if(M.cc===Y.cc&&M.can_open&&!z){P=!0;break}M=M.previous}var N=Y;if(c===42||c===95)if(P){var y=Y.numdelims>=2&&M.numdelims>=2?2:1;var m=M.node;var T=Y.node;M.numdelims-=y;Y.numdelims-=y;m._literal=m._literal.slice(0,m._literal.length-y);T._literal=T._literal.slice(0,
T._literal.length-y);var Q=new yz(y===1?"emph":"strong");for(y=m._next;y&&y!==T;){var g=y._next;y.unlink();Q.appendChild(y);y=g}cMz(m,Q);y=M;g=Y;y.next!==g&&(y.next=g,g.previous=y);M.numdelims===0&&(m.unlink(),KBq(R,M));Y.numdelims===0&&(T.unlink(),M=Y.next,KBq(R,Y),Y=M)}else Y=Y.next;else c===39?(Y.node._literal="\u2019",P&&(M.node._literal="\u2018"),Y=Y.next):c===34&&(Y.node._literal="\u201d",P&&(M.node.literal="\u201c"),Y=Y.next);P||z||(E[c]=N.previous,N.can_open||KBq(R,N))}else Y=Y.next}for(;R.delimiters!==
null&&R.delimiters!==A;)KBq(R,R.delimiters)},jED=function(R){R=R.match(MiG);
return R===null?null:Ph7(R.substr(1,R.length-2))},bYf=function(R){var A=R.match(sES);
if(A===null){A=R.pos;for(var Y=0,P;(P=R.peek())!==-1;)if(P===92)R.pos+=1,R.peek()!==-1&&(R.pos+=1);else if(P===40)R.pos+=1,Y+=1;else if(P===41)if(Y<1)break;else R.pos+=1,--Y;else if(nLE.exec(H9(P))!==null)break;else R.pos+=1;A=R.subject.substr(A,R.pos-A);return ELb(Ph7(A))}return ELb(Ph7(A.substr(1,A.length-2)))},fLq=function(R){R=R.match(X1G);
return R===null||R.length>1001?0:R.length},p1G=function(R,A,Y,P){R.brackets!==null&&(R.brackets.bracketAfter=!0);
R.brackets={node:A,previous:R.brackets,previousDelimiter:R.delimiters,index:Y,image:P,active:!0}},FBH=function(R,A){var Y;
return(Y=R.match(Swb))?(R.options.smart?A.appendChild(rS(Y.replace(mHz,"\u2026").replace(TlE,function(P){var E=0,z=0;P.length%3===0?z=P.length/3:P.length%2===0?E=P.length/2:P.length%3===2?(E=1,z=(P.length-2)/3):(E=2,z=(P.length-4)/3);P="";var c;for(c=0;c<z;c++)P+="\u2014";for(c=0;c<E;c++)P+="\u2013";return P}))):A.appendChild(rS(Y)),!0):!1},Blz=function(R,A,Y){R.subject=A;
R.pos=0;A=R.pos;var P=fLq(R);if(P===0)return 0;var E=R.subject.substr(0,P);if(R.peek()===58)R.pos++;else return R.pos=A,0;U8(R);P=bYf(R);if(P===null||P.length===0)return R.pos=A,0;var z=R.pos;U8(R);var c=jED(R);c===null&&(c="",R.pos=z);var M=!0;R.match($HD)===null&&(c===""?M=!1:(c="",R.pos=z,M=R.match($HD)!==null));if(!M)return R.pos=A,0;E=AAl(E);if(E==="")return R.pos=A,0;Y[E]||(Y[E]={destination:P,title:c});return R.pos-A},aLS=function(R,A){var Y,P=R.peek();
if(P===-1)return!1;switch(P){case 10:R.pos+=1;if((Y=A._lastChild)&&Y.type==="text"&&Y._literal[Y._literal.length-1]===" "){var E=Y._literal[Y._literal.length-2]===" ";Y._literal=Y._literal.replace(DHD,"");A.appendChild(new yz(E?"linebreak":"softbreak"))}else A.appendChild(new yz("softbreak"));R.match(UHq);Y=!0;break;case 92:Y=R.subject;R.pos+=1;R.peek()===10?(R.pos+=1,Y=new yz("linebreak"),A.appendChild(Y)):Nlb.test(Y.charAt(R.pos))?(A.appendChild(rS(Y.charAt(R.pos))),R.pos+=1):A.appendChild(rS("\\"));
Y=!0;break;case 96:a:if(Y=R.match(yMS),Y===null)Y=!1;else{E=R.pos;for(var z;(z=R.match(JMZ))!==null;)if(z===Y){z=new yz("code");z._literal=R.subject.slice(E,R.pos-Y.length).trim().replace(HY8," ");A.appendChild(z);Y=!0;break a}R.pos=E;A.appendChild(rS(Y));Y=!0}break;case 42:case 95:Y=ILG(R,P,A);break;case 39:case 34:Y=R.options.smart&&ILG(R,P,A);break;case 91:Y=R.pos;R.pos+=1;E=rS("[");A.appendChild(E);p1G(R,E,Y,!1);Y=!0;break;case 33:Y=R.pos;R.pos+=1;R.peek()===91?(R.pos+=1,E=rS("!["),A.appendChild(E),
p1G(R,E,Y+1,!0)):A.appendChild(rS("!"));Y=!0;break;case 93:var c,M=!1,N;R.pos+=1;var y=R.pos;E=R.brackets;if(E===null)A.appendChild(rS("]"));else if(E.active){Y=E.image;var m=R.pos;R.peek()===40&&(R.pos++,U8(R)&&(z=bYf(R))!==null&&U8(R)&&(nLE.test(R.subject.charAt(R.pos-1))&&(c=jED(R)),1)&&U8(R)&&R.peek()===41?(R.pos+=1,M=!0):R.pos=m);if(!M){var T=R.pos,Q=fLq(R);Q>2?N=R.subject.slice(T,T+Q):E.bracketAfter||(N=R.subject.slice(E.index,y));Q===0&&(R.pos=m);N&&(N=R.refmap[AAl(N)])&&(z=N.destination,c=
N.title,M=!0)}if(M){y=new yz(Y?"image":"link");y._destination=z;y._title=c||"";for(z=E.node._next;z;)c=z._next,z.unlink(),y.appendChild(z),z=c;A.appendChild(y);WB7(R,E.previousDelimiter);R.brackets=R.brackets.previous;E.node.unlink();if(!Y)for(E=R.brackets;E!==null;)E.image||(E.active=!1),E=E.previous}else R.brackets=R.brackets.previous,R.pos=y,A.appendChild(rS("]"))}else A.appendChild(rS("]")),R.brackets=R.brackets.previous;Y=!0;break;case 60:(Y=R.match(QEA))?(Y=Y.slice(1,Y.length-1),E=new yz("link"),
E._destination=ELb("mailto:"+Y),E._title="",E.appendChild(rS(Y)),A.appendChild(E),Y=!0):(Y=R.match(vLS))?(Y=Y.slice(1,Y.length-1),E=new yz("link"),E._destination=ELb(Y),E._title="",E.appendChild(rS(Y)),A.appendChild(E),Y=!0):Y=!1;Y||(Y=R.match(q5z),Y===null?Y=!1:(E=new yz("html_inline"),E._literal=Y,A.appendChild(E),Y=!0));break;case 38:(Y=R.match(ViN))?(A.appendChild(rS(uSD(Y))),Y=!0):Y=!1;break;default:Y=FBH(R,A)}Y||(R.pos+=1,A.appendChild(rS(H9(P))));return!0};
DR.prototype.parseInlines=function(R){this.subject=R._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;aLS(this,R););R._string_content=null;WB7(this,null)};
DR.prototype.parse=DR.prototype.parseInlines;var Chz=[/./,/^<(?: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")],hcN=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],oLA=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,kof=/^[#`~*+_=<>0-9-\|]|\|/,Goq=/[^ \t\f\v\r\n]/,ZYA=/^[*+-]/,tiS=/^(\d{1,9})([.)])/,w1S=/^#{1,6}(?:[ \t]+|$)/,uWf=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,ec7=/^(?:`{3,}|~{3,})(?= *$)/,qwD=/^(?:=+|-+)[ \t]*$/,LBH=/\r\n|\n|\r/,P6l=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Eyq=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,dH7={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(R){return R!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(R,A){for(R=A._firstChild;R;){if(YXk(R)&&R._next){A._listData.tight=!1;break}for(var Y=R._firstChild;Y;){if(YXk(Y)&&(R._next||Y._next)){A._listData.tight=!1;break}Y=Y._next}R=R._next}},
canContain:function(R){return R==="item"},
acceptsLines:!1},block_quote:{continue:function(R){var A=R.currentLine;if(R.indented||Vz(A,R.nextNonspace)!==62)return 1;$g(R);Xv(R,1,!1);N4(Vz(A,R.offset))&&Xv(R,1,!0);return 0},
finalize:function(){},
canContain:function(R){return R!=="item"},
acceptsLines:!1},item:{continue:function(R,A){if(R.blank){if(A._firstChild==null)return 1;$g(R)}else if(R.indent>=A._listData.markerOffset+A._listData.padding)Xv(R,A._listData.markerOffset+A._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(R){return R!=="item"&&!zMq(R)},
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(R,A){var Y=R.currentLine,P=R.indent;if(A._isFenced){if((P=P<=3&&Y.charAt(R.nextNonspace)===A._fenceChar&&Y.slice(R.nextNonspace).match(ec7))&&P[0].length>=A._fenceLength)return R.finalize(A,R.lineNumber),2;for(A=A._fenceOffset;A>0&&N4(Vz(Y,R.offset));)Xv(R,1,!0),A--}else if(P>=4)Xv(R,4,!0);else if(R.blank)$g(R);else return 1;return 0},
finalize:function(R,A){if(A._isFenced){var Y=A._string_content,P=Y.indexOf("\n");R=Y.slice(0,P);Y=Y.slice(P+1);A.info=Ph7(R.trim());A._literal=Y}else A._literal=A._string_content.replace(/(\n *)+$/,"\n");A._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(R,A){return!R.blank||A._htmlBlockType!==6&&A._htmlBlockType!==7?0:1},
finalize:function(R,A){A._literal=A._string_content.replace(/(\n *)+$/,"");A._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(R){return R.blank?1:0},
finalize:function(R,A){for(var Y,P=!1;Vz(A._string_content,0)===91&&(Y=Blz(R.inlineParser,A._string_content,R.refmap));)A._string_content=A._string_content.slice(Y),P=!0;P&&!Goq.test(A._string_content)&&A.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(R){return J_(R.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(R){return R=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(R,A){if(!A._rowIsDelimiter){R=A._isHeader?"th":"td";for(var Y=A._parent._tableColumns,P=A._string_content,E=0,z="",c,M=A._sourcepos[0][0];E<P.length;){switch(P[E]){case "|":c&&(c._string_content=z.trim(),z="",c=null,Y--,Y<=0&&(E=P.length));break;default:if(!c){c=new yz(R,[[M,E],[M,E]]);var N=A._parent._columnAlignment,y=A._parent._tableColumns-Y;N&&y<=N.length&&y>=0&&(c._alignment=N[y]);A.appendChild(c)}z+=P[E];c._sourcepos[1][1]=E}E++}c&&(c._string_content=z.trim());A._string_content=
""}},
canContain:function(R){return R!=="row"},
acceptsLines:!1}},RHE=[function(R){if(R.indented||Vz(R.currentLine,R.nextNonspace)!==62)return 0;$g(R);Xv(R,1,!1);N4(Vz(R.currentLine,R.offset))&&Xv(R,1,!0);SQ(R);R.addChild("block_quote",R.nextNonspace);return 1},
function(R){var A;if(!R.indented&&(A=R.currentLine.slice(R.nextNonspace).match(w1S))){$g(R);Xv(R,A[0].length,!1);SQ(R);var Y=R.addChild("heading",R.nextNonspace);Y.level=A[0].trim().length;Y._string_content=R.currentLine.slice(R.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");Xv(R,R.currentLine.length-R.offset);return 2}return 0},
function(R){var A;if(!R.indented&&(A=R.currentLine.slice(R.nextNonspace).match(uWf))){var Y=A[0].length;SQ(R);var P=R.addChild("code_block",R.nextNonspace);P._isFenced=!0;P._fenceLength=Y;P._fenceChar=A[0][0];P._fenceOffset=R.indent;$g(R);Xv(R,Y,!1);return 2}return 0},
function(R,A){if(!R.indented&&Vz(R.currentLine,R.nextNonspace)===60){var Y=R.currentLine.slice(R.nextNonspace),P;for(P=1;P<=7;P++)if(Chz[P].test(Y)&&(P<7||A.type!=="paragraph"))return SQ(R),R.addChild("html_block",R.offset)._htmlBlockType=P,2}return 0},
function(R,A){var Y;if(!R.indented&&A.type==="paragraph"&&(Y=R.currentLine.slice(R.nextNonspace).match(qwD))){SQ(R);var P=new yz("heading",A.sourcepos);P.level=Y[0][0]==="="?1:2;P._string_content=A._string_content;cMz(A,P);A.unlink();R.tip=P;Xv(R,R.currentLine.length-R.offset,!1);return 2}return 0},
function(R){return!R.indented&&oLA.test(R.currentLine.slice(R.nextNonspace))?(SQ(R),R.addChild("thematic_break",R.nextNonspace),Xv(R,R.currentLine.length-R.offset,!1),2):0},
function(R,A){var Y,P;if(!(P=R.indented&&A.type!=="list")){a:{var E=A,z=R.currentLine.slice(R.nextNonspace);P={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:R.indent};if(Y=z.match(ZYA))P.type="bullet",P.bulletChar=Y[0][0];else{if(!(Y=z.match(tiS))||E.type==="paragraph"&&Y[1]!=="1"){Y=null;break a}P.type="ordered";P.start=parseInt(Y[1],10);P.delimiter=Y[2]}var c=Vz(R.currentLine,R.nextNonspace+Y[0].length);if(c!==-1&&c!==9&&c!==32||E.type==="paragraph"&&!R.currentLine.slice(R.nextNonspace+
Y[0].length).match(Goq))Y=null;else{$g(R);Xv(R,Y[0].length,!0);E=R.column;z=R.offset;do Xv(R,1,!0),c=Vz(R.currentLine,R.offset);while(R.column-E<5&&N4(c));c=Vz(R.currentLine,R.offset)===-1;var M=R.column-E;M>=5||M<1||c?(P.padding=Y[0].length+1,R.column=E,R.offset=z,N4(Vz(R.currentLine,R.offset))&&Xv(R,1,!0)):P.padding=Y[0].length+M;Y=P}}P=!Y}if(P)return 0;SQ(R);(P=R.tip.type!=="list")||(A=A._listData,P=!(A.type===Y.type&&A.delimiter===Y.delimiter&&A.bulletChar===Y.bulletChar));P&&(A=R.addChild("list",
R.nextNonspace),A._listData=Y);A=R.addChild("item",R.nextNonspace);A._listData=Y;return 1},
function(R){var A;return((A=R.options.shouldParseIndentAsCodeBlock)!=null?A:1)&&R.indented&&R.tip.type!=="paragraph"&&!R.blank?(Xv(R,4,!0),SQ(R),R.addChild("code_block",R.offset),2):0},
function(R,A){var Y=J_(R.currentLine),P=J_(R.lookahead);if(Y!==0&&P<0&&Math.abs(Y)==Math.abs(P)&&!zMq(A.type)){SQ(R);A=R.addChild("table",R.nextNonspace);A._tableRows=1;A._tableColumns=Math.abs(Y);Y=R.lookahead;if(Eyq.test(Y)){P=[];for(var E=0,z=!1,c=0,M=void 0;E<Y.length;){var N=c>=3;switch(Y[E]){case "-":c++;break;case "|":z&&(P.push(M),M=void 0,c=0);z=!0;break;case ":":M||N||(M="left"),!M&&N&&(M="right"),M==="left"&&N&&(M="center")}E++}Y=P}else Y=void 0;A._columnAlignment=Y;A=R.addChild("row",
R.nextNonspace);A._isHeader=!0;Xv(R,R.currentLine.length-R.offset,!1);A._string_content=R.currentLine;return 1}return 0},
function(R,A){if(A.type=="table"&&J_(R.currentLine)!==0){SQ(R);var Y=A;A=R.addChild("row",R.nextNonspace);J_(R.currentLine)<0?A._rowIsDelimiter=!0:Y._tableRows+=1;Xv(R,R.currentLine.length-R.offset,!1);A._string_content=R.currentLine;return 2}return 0}],nV8=function(){var R={shouldParseIndentAsCodeBlock:!1};
R=R===void 0?{}:R;this.lastMatchedContainer=this.doc=iA6();this.refmap={};this.lastLineLength=0;this.inlineParser=new DR(R);this.options=R;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=dH7;this.blockStarts=RHE},A48=function(R){R.partiallyConsumedTab&&(R.offset+=1,R.tip._string_content+=" ".repeat(4-R.column%
4));
R.tip._string_content+=R.currentLine.slice(R.offset)+"\n"};
nV8.prototype.addChild=function(R,A){for(;!this.blocks[this.tip.type].canContain(R);)this.finalize(this.tip,this.lineNumber-1);R=new yz(R,[[this.lineNumber,A+1],[0,0]]);R._string_content="";this.tip.appendChild(R);return this.tip=R};
var SQ=function(R){if(!R.allClosed){for(;R.oldtip!==R.lastMatchedContainer;){var A=R.oldtip._parent;R.finalize(R.oldtip,R.lineNumber-1);R.oldtip=A}R.allClosed=!0}},Xv=function(R,A,Y){for(var P=R.currentLine,E,z;A>0&&(z=P[R.offset]);)z==="\t"?(E=4-R.column%4,Y?(R.partiallyConsumedTab=E>A,E=E>A?A:E,R.column+=E,R.offset+=R.partiallyConsumedTab?0:1,A-=E):(R.partiallyConsumedTab=!1,R.column+=E,R.offset+=1,--A)):(R.partiallyConsumedTab=!1,R.offset+=1,R.column+=1,--A)},$g=function(R){R.offset=R.nextNonspace;
R.column=R.nextNonspaceColumn;R.partiallyConsumedTab=!1},YJN=function(R){for(var A=R.currentLine,Y=R.offset,P=R.column,E;(E=A.charAt(Y))!=="";)if(E===" ")Y++,P++;
else if(E==="\t")Y++,P+=4-P%4;else break;R.blank=E==="\n"||E==="\r"||E==="";R.nextNonspace=Y;R.nextNonspaceColumn=P;R.indent=R.nextNonspaceColumn-R.column;R.indented=R.indent>=4};
nV8.prototype.finalize=function(R,A){var Y=R._parent;R._open=!1;R.sourcepos[1]=[A,this.lastLineLength];this.blocks[R.type].finalize(this,R);this.tip=Y};
nV8.prototype.parse=function(R){this.tip=this.doc=iA6();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!R)return this.doc;this.options.time&&console.time("preparing input");var A=R.split(LBH),Y=A.length;R.charCodeAt(R.length-1)===10&&--Y;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(R=0;R<Y;R++)a:{var P=void 0,E=A[R],z=A[R+1],c=!0,M=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;E.indexOf("\x00")!==-1&&(E=E.replace(/\0/g,"\ufffd"));this.currentLine=E;for(this.lookahead=z;(P=M._lastChild)&&P._open;){M=P;YJN(this);switch(this.blocks[M.type].continue(this,M)){case 0:break;case 1:c=!1;break;case 2:this.lastLineLength=E.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!c){M=M._parent;break}}this.allClosed=M===this.oldtip;this.lastMatchedContainer=
M;P=M.type!=="paragraph"&&dH7[M.type].acceptsLines;z=this.blockStarts;for(c=z.length;!P;){YJN(this);if(!this.indented&&!kof.test(E.slice(this.nextNonspace))){$g(this);break}for(var N=0;N<c;){var y=z[N](this,M);if(y===1){M=this.tip;break}else if(y===2){M=this.tip;P=!0;break}else N++}if(N===c){$g(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){SQ(this);this.blank&&M.lastChild&&(M.lastChild._lastLineBlank=!0);P=M.type;z=this.blank&&!(P==="block_quote"||P==="code_block"&&M._isFenced||
P==="item"&&!M._firstChild&&M.sourcepos[0][0]===this.lineNumber);for(c=M;c;)c._lastLineBlank=z,c=c._parent;this.blocks[P].acceptsLines?(A48(this),P==="html_block"&&M._htmlBlockType>=1&&M._htmlBlockType<=5&&hcN[M._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(M,this.lineNumber)):this.offset<E.length&&!this.blank&&(this.addChild("paragraph",this.offset),$g(this),A48(this))}else A48(this);this.lastLineLength=E.length}for(;this.tip;)this.finalize(this.tip,Y);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");E=new xHq(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;Y=E.next();)A=Y.node,R=A.type,Y.entering||R!=="paragraph"&&R!=="heading"&&R!=="th"&&R!="td"||this.inlineParser.parse(A);this.options.time&&console.timeEnd("inline parsing");return this.doc};luI.prototype.render=function(R){R=new xHq(R);var A;this.buffer="";for(this.lastOut="\n";A=R.next();){var Y=A.node.type;if(this[Y])this[Y](A.node,A.entering)}return this.buffer};
luI.prototype.out=function(R){Ij(this,R)};
var Ij=function(R,A){R.buffer+=A;R.lastOut=A};
luI.prototype.cr=function(){this.lastOut!=="\n"&&Ij(this,"\n")};var Pcf=/^javascript:|vbscript:|file:|data:/i,EHb=/^data:image\/(?:png|gif|jpeg|webp)/i,zHE=function(R){return Pcf.test(R)&&!EHb.test(R)};
mr.prototype=Object.create(luI.prototype);_.l=mr.prototype;_.l.text=function(R){this.out(R.literal)};
_.l.html_inline=function(R){this.options.safe?Ij(this,"\x3c!-- raw HTML omitted --\x3e"):Ij(this,R.literal)};
_.l.html_block=function(R){this.cr();this.options.safe?Ij(this,"\x3c!-- raw HTML omitted --\x3e"):Ij(this,R.literal);this.cr()};
_.l.softbreak=function(){Ij(this,this.options.softbreak)};
_.l.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.l.link=function(R,A){var Y=this.attrs(R);A?(this.options.safe&&zHE(R.destination)||Y.push(["href",nr(R.destination,!0)]),R.title&&Y.push(["title",nr(R.title,!0)]),this.tag("a",Y)):this.tag("/a")};
_.l.image=function(R,A){A?(this.disableTags===0&&(this.options.safe&&zHE(R.destination)?Ij(this,'<img src="" alt="'):Ij(this,'<img src="'+nr(R.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(R.title&&Ij(this,'" title="'+nr(R.title,!0)),Ij(this,'" />')))};
_.l.emph=function(R,A){this.tag(A?"em":"/em")};
_.l.strong=function(R,A){this.tag(A?"strong":"/strong")};
_.l.paragraph=function(R,A){var Y=R.parent.parent;R=this.attrs(R);Y!==null&&Y.type==="list"&&Y.listTight||(A?(this.cr(),this.tag("p",R)):(this.tag("/p"),this.cr()))};
_.l.heading=function(R,A){var Y="h"+R.level;R=this.attrs(R);A?(this.cr(),this.tag(Y,R)):(this.tag("/"+Y),this.cr())};
_.l.code=function(R){this.tag("code");this.out(R.literal);this.tag("/code")};
_.l.code_block=function(R){var A=R.info?R.info.split(/\s+/):[],Y=this.attrs(R);A.length>0&&A[0].length>0&&Y.push(["class","language-"+nr(A[0],!0)]);this.cr();this.tag("pre");this.tag("code",Y);this.out(R.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.l.thematic_break=function(R){R=this.attrs(R);this.cr();this.tag("hr",R,!0);this.cr()};
_.l.block_quote=function(R,A){R=this.attrs(R);A?(this.cr(),this.tag("blockquote",R)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.l.list=function(R,A){var Y=R.listType==="bullet"?"ul":"ol",P=this.attrs(R);A?(R=R.listStart,R!==null&&R!==1&&P.push(["start",R.toString()]),this.cr(),this.tag(Y,P)):(this.cr(),this.tag("/"+Y));this.cr()};
_.l.item=function(R,A){R=this.attrs(R);A?this.tag("li",R):(this.tag("/li"),this.cr())};
_.l.custom_inline=function(R,A){A&&R.onEnter?Ij(this,R.onEnter):!A&&R.onExit&&Ij(this,R.onExit)};
_.l.custom_block=function(R,A){this.cr();A&&R.onEnter?Ij(this,R.onEnter):!A&&R.onExit&&Ij(this,R.onExit);this.cr()};
_.l.table=function(R,A){R=this.attrs(R);A?(this.cr(),this.tag("table",R)):(this.tag("/table"),this.cr())};
_.l.row=function(R,A){R._rowIsDelimiter||(R=this.attrs(R),A?this.tag("tr",R):this.tag("/tr"))};
_.l.td=function(R,A){var Y=this.attrs(R);R._alignment&&Y.push(["align",R._alignment]);A?this.tag("td",Y):this.tag("/td")};
_.l.th=function(R,A){var Y=this.attrs(R);R._alignment&&Y.push(["align",R._alignment]);A?this.tag("th",Y):this.tag("/th")};
_.l.out=function(R){Ij(this,nr(R,!1))};
_.l.tag=function(R,A,Y){if(!(this.disableTags>0)){this.buffer+="<"+R;if(A&&A.length>0){R=0;for(var P;(P=A[R])!==void 0;)this.buffer+=" "+P[0]+'="'+P[1]+'"',R++}Y&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.l.attrs=function(R){var A=[];this.options.sourcepos&&(R=R.sourcepos)&&A.push(["data-sourcepos",String(R[0][0])+":"+String(R[0][1])+"-"+String(R[1][0])+":"+String(R[1][1])]);return A};
mr.prototype.text=mr.prototype.text;mr.prototype.html_inline=mr.prototype.html_inline;mr.prototype.html_block=mr.prototype.html_block;mr.prototype.softbreak=mr.prototype.softbreak;mr.prototype.linebreak=mr.prototype.linebreak;mr.prototype.link=mr.prototype.link;mr.prototype.image=mr.prototype.image;mr.prototype.emph=mr.prototype.emph;mr.prototype.strong=mr.prototype.strong;mr.prototype.paragraph=mr.prototype.paragraph;mr.prototype.heading=mr.prototype.heading;mr.prototype.code=mr.prototype.code;
mr.prototype.code_block=mr.prototype.code_block;mr.prototype.thematic_break=mr.prototype.thematic_break;mr.prototype.block_quote=mr.prototype.block_quote;mr.prototype.list=mr.prototype.list;mr.prototype.item=mr.prototype.item;mr.prototype.custom_inline=mr.prototype.custom_inline;mr.prototype.custom_block=mr.prototype.custom_block;mr.prototype.table=mr.prototype.table;mr.prototype.row=mr.prototype.row;mr.prototype.td=mr.prototype.td;mr.prototype.th=mr.prototype.th;mr.prototype.out=mr.prototype.out;
mr.prototype.tag=mr.prototype.tag;mr.prototype.attrs=mr.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 ii8,lkZ,flk;(function(){function R(f,W){return f<W?-1:f>W?1:f>=W?0:NaN}
function A(f){return function(W,a){return R(f(W),a)}}
function Y(){for(var f=0,W=arguments.length,a={},Ak;f<W;++f){if(!(Ak=arguments[f]+"")||Ak in a)throw Error("se`"+Ak);a[Ak]=[]}return new P(a)}
function P(f){this._=f}
function E(f,W){return f.trim().split(/^|\s+/).map(function(a){var Ak="",xq=a.indexOf(".");xq>=0&&(Ak=a.slice(xq+1),a=a.slice(0,xq));if(a&&!W.hasOwnProperty(a))throw Error("te`"+a);return{type:a,name:Ak}})}
function z(f,W,a){for(var Ak=0,xq=f.length;Ak<xq;++Ak)if(f[Ak].name===W){f[Ak]=uvQ;f=f.slice(0,Ak).concat(f.slice(Ak+1));break}a!=null&&f.push({name:W,value:a});return f}
function c(f){var W=f,a=W.indexOf(":");a>=0&&(W=f.slice(0,a))!=="xmlns"&&(f=f.slice(a+1));return p6.hasOwnProperty(W)?{space:p6[W],local:f}:f}
function M(f){return function(){var W=this.ownerDocument,a=this.namespaceURI;return a==="http://www.w3.org/1999/xhtml"&&W.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?W.createElement(f):W.createElementNS(a,f)}}
function N(f){return function(){return this.ownerDocument.createElementNS(f.space,f.local)}}
function y(f){f=c(f);return(f.local?N:M)(f)}
function m(){}
function T(f){return f==null?m:function(){return this.querySelector(f)}}
function Q(f){return Array(f.length)}
function g(f,W){this.ownerDocument=f.ownerDocument;this.namespaceURI=f.namespaceURI;this._next=null;this._parent=f;this.__data__=W}
function r(f){return function(){return f}}
function I(f,W,a,Ak,xq,ml){for(var r8=0,W3,YZ=W.length,qb=ml.length;r8<qb;++r8)(W3=W[r8])?(W3.__data__=ml[r8],Ak[r8]=W3):a[r8]=new g(f,ml[r8]);for(;r8<YZ;++r8)if(W3=W[r8])xq[r8]=W3}
function b(f,W,a,Ak,xq,ml,r8){var W3,YZ,qb={},PS=W.length,JE=ml.length,u8=Array(PS),Dj;for(W3=0;W3<PS;++W3)if(YZ=W[W3])u8[W3]=Dj="$"+r8.call(YZ,YZ.__data__,W3,W),Dj in qb?xq[W3]=YZ:qb[Dj]=YZ;for(W3=0;W3<JE;++W3)Dj="$"+r8.call(f,ml[W3],W3,ml),(YZ=qb[Dj])?(Ak[W3]=YZ,YZ.__data__=ml[W3],qb[Dj]=null):a[W3]=new g(f,ml[W3]);for(W3=0;W3<PS;++W3)(YZ=W[W3])&&qb[u8[W3]]===YZ&&(xq[W3]=YZ)}
function p(f,W){return f<W?-1:f>W?1:f>=W?0:NaN}
function h(f){return function(){this.removeAttribute(f)}}
function L(f){return function(){this.removeAttributeNS(f.space,f.local)}}
function Z(f,W){return function(){this.setAttribute(f,W)}}
function w(f,W){return function(){this.setAttributeNS(f.space,f.local,W)}}
function t(f,W){return function(){var a=W.apply(this,arguments);a==null?this.removeAttribute(f):this.setAttribute(f,a)}}
function d(f,W){return function(){var a=W.apply(this,arguments);a==null?this.removeAttributeNS(f.space,f.local):this.setAttributeNS(f.space,f.local,a)}}
function Jk(f){return function(){this.style.removeProperty(f)}}
function Nb(f,W,a){return function(){this.style.setProperty(f,W,a)}}
function Qk(f,W,a){return function(){var Ak=W.apply(this,arguments);Ak==null?this.style.removeProperty(f):this.style.setProperty(f,Ak,a)}}
function H3(f,W){return f.style.getPropertyValue(W)||(f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView).getComputedStyle(f,null).getPropertyValue(W)}
function nu(f){return function(){delete this[f]}}
function hk(f,W){return function(){this[f]=W}}
function FV(f,W){return function(){var a=W.apply(this,arguments);a==null?delete this[f]:this[f]=a}}
function i8(){this.textContent=""}
function fD(f){return function(){this.textContent=f}}
function NG(f){return function(){var W=f.apply(this,arguments);this.textContent=W==null?"":W}}
function d8(){this.innerHTML=""}
function mS(f){return function(){this.innerHTML=f}}
function V7(f){return function(){var W=f.apply(this,arguments);this.innerHTML=W==null?"":W}}
function KD(){return null}
function UW(){var f=this.parentNode;f&&f.removeChild(this)}
function eH(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function zS(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function RA(f,W,a){f=vS(f,W,a);return function(Ak){var xq=Ak.relatedTarget;xq&&(xq===this||xq.compareDocumentPosition(this)&8)||f.call(this,Ak)}}
function vS(f,W,a){return function(){f.call(this,this.__data__,W,a)}}
function Mg(f){return f.trim().split(/^|\s+/).map(function(W){var a="",Ak=W.indexOf(".");Ak>=0&&(a=W.slice(Ak+1),W=W.slice(0,Ak));return{type:W,name:a}})}
function gf(f){return function(){var W=this.__on;if(W){for(var a=0,Ak=-1,xq=W.length,ml;a<xq;++a)(ml=W[a],f.type&&ml.type!==f.type||ml.name!==f.name)?W[++Ak]=ml:this.removeEventListener(ml.type,ml.listener,ml.capture);++Ak?W.length=Ak:delete this.__on}}}
function A9(f,W,a){var Ak=kAf.hasOwnProperty(f.type)?RA:vS;return function(xq,ml,r8){xq=this.__on;var W3;ml=Ak(W,ml,r8);if(xq){r8=0;for(var YZ=xq.length;r8<YZ;++r8)if((W3=xq[r8]).type===f.type&&W3.name===f.name){this.removeEventListener(W3.type,W3.listener,W3.capture);this.addEventListener(W3.type,W3.listener=ml,W3.capture=a);W3.value=W;return}}this.addEventListener(f.type,ml,a);W3={type:f.type,name:f.name,value:W,listener:ml,capture:a};xq?xq.push(W3):this.__on=[W3]}}
function le(f,W,a){var Ak=f.ownerDocument&&f.ownerDocument.defaultView||f.document&&f||f.defaultView,xq=Ak.CustomEvent;typeof xq==="function"?xq=new xq(W,a):(xq=Ak.document.createEvent("Event"),a?(xq.initEvent(W,a.bubbles,a.cancelable),xq.detail=a.detail):xq.initEvent(W,!1,!1));f.dispatchEvent(xq)}
function RH(f,W){return function(){return le(this,f,W)}}
function OA(f,W){return function(){return le(this,f,W.apply(this,arguments))}}
function wf(f,W){this._groups=f;this._parents=W}
function mm(){return new wf([[document.documentElement]],egj)}
function $Z(){this._="@"+(++q8H).toString(36)}
function Xb(f,W,a){f.prototype=W.prototype=a;a.constructor=f}
function go(f,W){f=Object.create(f.prototype);for(var a in W)f[a]=W[a];return f}
function JO(){}
function yN(f){var W;f=(f+"").trim().toLowerCase();return(W=LvQ.exec(f))?(W=parseInt(W[1],16),new G0(W>>8&15|W>>4&240,W>>4&15|W&240,(W&15)<<4|W&15,1)):(W=dYQ.exec(f))?Ks(parseInt(W[1],16)):(W=Rl9.exec(f))?new G0(W[1],W[2],W[3],1):(W=Aef.exec(f))?new G0(W[1]*255/100,W[2]*255/100,W[3]*255/100,1):(W=YOi.exec(f))?X4(W[1],W[2],W[3],W[4]):(W=PoY.exec(f))?X4(W[1]*255/100,W[2]*255/100,W[3]*255/100,W[4]):(W=ENi.exec(f))?sK(W[1],W[2]/100,W[3]/100,1):(W=zlo.exec(f))?sK(W[1],W[2]/100,W[3]/100,W[4]):GAS.hasOwnProperty(f)?
Ks(GAS[f]):f==="transparent"?new G0(NaN,NaN,NaN,0):null}
function Ks(f){return new G0(f>>16&255,f>>8&255,f&255,1)}
function X4(f,W,a,Ak){Ak<=0&&(f=W=a=NaN);return new G0(f,W,a,Ak)}
function hE(f){f instanceof JO||(f=yN(f));if(!f)return new G0;f=f.rgb();return new G0(f.r,f.g,f.b,f.opacity)}
function Ab(f,W,a,Ak){return arguments.length===1?hE(f):new G0(f,W,a,Ak==null?1:Ak)}
function G0(f,W,a,Ak){this.r=+f;this.g=+W;this.b=+a;this.opacity=+Ak}
function xD(f){f=Math.max(0,Math.min(255,Math.round(f)||0));return(f<16?"0":"")+f.toString(16)}
function sK(f,W,a,Ak){Ak<=0?f=W=a=NaN:a<=0||a>=1?f=W=NaN:W<=0&&(f=NaN);return new pQ(f,W,a,Ak)}
function sp(f){if(f instanceof pQ)return new pQ(f.h,f.s,f.l,f.opacity);f instanceof JO||(f=yN(f));if(!f)return new pQ;if(f instanceof pQ)return f;f=f.rgb();var W=f.r/255,a=f.g/255,Ak=f.b/255,xq=Math.min(W,a,Ak),ml=Math.max(W,a,Ak),r8=NaN,W3=ml-xq,YZ=(ml+xq)/2;W3?(r8=W===ml?(a-Ak)/W3+(a<Ak)*6:a===ml?(Ak-W)/W3+2:(W-a)/W3+4,W3/=YZ<.5?ml+xq:2-ml-xq,r8*=60):W3=YZ>0&&YZ<1?0:r8;return new pQ(r8,W3,YZ,f.opacity)}
function NI(f,W,a,Ak){return arguments.length===1?sp(f):new pQ(f,W,a,Ak==null?1:Ak)}
function pQ(f,W,a,Ak){this.h=+f;this.s=+W;this.l=+a;this.opacity=+Ak}
function oG(f,W,a){return(f<60?W+(a-W)*f/60:f<180?a:f<240?W+(a-W)*(240-f)/60:W)*255}
function EQ(f){if(f instanceof XV)return new XV(f.l,f.a,f.b,f.opacity);if(f instanceof HS){if(isNaN(f.h))return new XV(f.l,0,0,f.opacity);var W=f.h*Z_A;return new XV(f.l,Math.cos(W)*f.c,Math.sin(W)*f.c,f.opacity)}f instanceof G0||(f=hE(f));var a=sW(f.r),Ak=sW(f.g),xq=sW(f.b);W=pu(.2225045*a+.7168786*Ak+.0606169*xq);if(a===Ak&&Ak===xq)var ml=a=W;else ml=pu((.4360747*a+.3850649*Ak+.1430804*xq)/.96422),a=pu((.0139322*a+.0971045*Ak+.7141733*xq)/.82521);return new XV(116*W-16,500*(ml-W),200*(W-a),f.opacity)}
function XV(f,W,a,Ak){this.l=+f;this.a=+W;this.b=+a;this.opacity=+Ak}
function pu(f){return f>idf?Math.pow(f,1/3):f/tmq+wiZ}
function GS(f){return f>V_?f*f*f:tmq*(f-wiZ)}
function Q7(f){return 255*(f<=.0031308?12.92*f:1.055*Math.pow(f,1/2.4)-.055)}
function sW(f){return(f/=255)<=.04045?f/12.92:Math.pow((f+.055)/1.055,2.4)}
function jc(f){if(f instanceof HS)return new HS(f.h,f.c,f.l,f.opacity);f instanceof XV||(f=EQ(f));if(f.a===0&&f.b===0)return new HS(NaN,0,f.l,f.opacity);var W=Math.atan2(f.b,f.a)*uqD;return new HS(W<0?W+360:W,Math.sqrt(f.a*f.a+f.b*f.b),f.l,f.opacity)}
function ro(f,W,a,Ak){return arguments.length===1?jc(f):new HS(f,W,a,Ak==null?1:Ak)}
function HS(f,W,a,Ak){this.h=+f;this.c=+W;this.l=+a;this.opacity=+Ak}
function nD(f,W,a,Ak){if(arguments.length===1){var xq=f;if(xq instanceof bi)xq=new bi(xq.h,xq.s,xq.l,xq.opacity);else{xq instanceof G0||(xq=hE(xq));var ml=xq.g/255,r8=xq.b/255,W3=(eS7*r8+xq.r/255*-1.7884503806-3.5172982438*ml)/(eS7+-1.7884503806-3.5172982438);r8-=W3;var YZ=(1.97294*(ml-W3)- -.29227*r8)/-.90649;r8=(ml=Math.sqrt(YZ*YZ+r8*r8)/(1.97294*W3*(1-W3)))?Math.atan2(YZ,r8)*uqD-120:NaN;xq=new bi(r8<0?r8+360:r8,ml,W3,xq.opacity)}}else xq=new bi(f,W,a,Ak==null?1:Ak);return xq}
function bi(f,W,a,Ak){this.h=+f;this.s=+W;this.l=+a;this.opacity=+Ak}
function Q$(f,W,a,Ak,xq){var ml=f*f,r8=ml*f;return((1-3*f+3*ml-r8)*W+(4-6*ml+3*r8)*a+(1+3*f+3*ml-3*r8)*Ak+r8*xq)/6}
function y7(f){return function(){return f}}
function Up(f,W){return function(a){return f+a*W}}
function IN(f,W,a){return f=Math.pow(f,a),W=Math.pow(W,a)-f,a=1/a,function(Ak){return Math.pow(f+Ak*W,a)}}
function aR(f,W){var a=W-f;return a?Up(f,a>180||a<-180?a-360*Math.round(a/360):a):y7(isNaN(f)?W:f)}
function oN(f){return(f=+f)===1?ka:function(W,a){return a-W?IN(W,a,f):y7(isNaN(W)?a:W)}}
function ka(f,W){var a=W-f;return a?Up(f,a):y7(isNaN(f)?W:f)}
function lK(f){return function(W){var a=W.length,Ak=Array(a),xq=Array(a),ml=Array(a),r8;for(r8=0;r8<a;++r8){var W3=Ab(W[r8]);Ak[r8]=W3.r||0;xq[r8]=W3.g||0;ml[r8]=W3.b||0}Ak=f(Ak);xq=f(xq);ml=f(ml);W3.opacity=1;return function(YZ){W3.r=Ak(YZ);W3.g=xq(YZ);W3.b=ml(YZ);return W3+""}}}
function NM(f,W){return f=+f,W-=f,function(a){return f+W*a}}
function e5(f){return function(){return f}}
function Jz(f){return function(W){return f(W)+""}}
function w8(f,W){var a=iHk.lastIndex=lWu.lastIndex=0,Ak,xq,ml,r8=-1,W3=[],YZ=[];f+="";for(W+="";(Ak=iHk.exec(f))&&(xq=lWu.exec(W));)(ml=xq.index)>a&&(ml=W.slice(a,ml),W3[r8]?W3[r8]+=ml:W3[++r8]=ml),(Ak=Ak[0])===(xq=xq[0])?W3[r8]?W3[r8]+=xq:W3[++r8]=xq:(W3[++r8]=null,YZ.push({i:r8,x:NM(Ak,xq)})),a=lWu.lastIndex;a<W.length&&(ml=W.slice(a),W3[r8]?W3[r8]+=ml:W3[++r8]=ml);return W3.length<2?YZ[0]?Jz(YZ[0].x):e5(W):(W=YZ.length,function(qb){for(var PS=0,JE;PS<W;++PS)W3[(JE=YZ[PS]).i]=JE.x(qb);return W3.join("")})}
function T0(f,W,a,Ak,xq,ml){var r8,W3,YZ;if(r8=Math.sqrt(f*f+W*W))f/=r8,W/=r8;if(YZ=f*a+W*Ak)a-=f*YZ,Ak-=W*YZ;if(W3=Math.sqrt(a*a+Ak*Ak))a/=W3,Ak/=W3,YZ/=W3;f*Ak<W*a&&(f=-f,W=-W,YZ=-YZ,r8=-r8);return{translateX:xq,translateY:ml,rotate:Math.atan2(W,f)*q7N,skewX:Math.atan(YZ)*q7N,scaleX:r8,scaleY:W3}}
function SG(f,W,a,Ak){function xq(qb){return qb.length?qb.pop()+" ":""}
function ml(qb,PS,JE,u8,Dj,nq){qb!==JE||PS!==u8?(Dj=Dj.push("translate(",null,W,null,a),nq.push({i:Dj-4,x:NM(qb,JE)},{i:Dj-2,x:NM(PS,u8)})):(JE||u8)&&Dj.push("translate("+JE+W+u8+a)}
function r8(qb,PS,JE,u8){qb!==PS?(qb-PS>180?PS+=360:PS-qb>180&&(qb+=360),u8.push({i:JE.push(xq(JE)+"rotate(",null,Ak)-2,x:NM(qb,PS)})):PS&&JE.push(xq(JE)+"rotate("+PS+Ak)}
function W3(qb,PS,JE,u8){qb!==PS?u8.push({i:JE.push(xq(JE)+"skewX(",null,Ak)-2,x:NM(qb,PS)}):PS&&JE.push(xq(JE)+"skewX("+PS+Ak)}
function YZ(qb,PS,JE,u8,Dj,nq){qb!==JE||PS!==u8?(Dj=Dj.push(xq(Dj)+"scale(",null,",",null,")"),nq.push({i:Dj-4,x:NM(qb,JE)},{i:Dj-2,x:NM(PS,u8)})):JE===1&&u8===1||Dj.push(xq(Dj)+"scale("+JE+","+u8+")")}
return function(qb,PS){var JE=[],u8=[];qb=f(qb);PS=f(PS);ml(qb.translateX,qb.translateY,PS.translateX,PS.translateY,JE,u8);r8(qb.rotate,PS.rotate,JE,u8);W3(qb.skewX,PS.skewX,JE,u8);YZ(qb.scaleX,qb.scaleY,PS.scaleX,PS.scaleY,JE,u8);qb=PS=null;return function(Dj){for(var nq=-1,Z4=u8.length,$U;++nq<Z4;)JE[($U=u8[nq]).i]=$U.x(Dj);return JE.join("")}}}
function li(f){return function(W,a){var Ak=f((W=NI(W)).h,(a=NI(a)).h),xq=ka(W.s,a.s),ml=ka(W.l,a.l),r8=ka(W.opacity,a.opacity);return function(W3){W.h=Ak(W3);W.s=xq(W3);W.l=ml(W3);W.opacity=r8(W3);return W+""}}}
function VX(f){return function(W,a){var Ak=f((W=ro(W)).h,(a=ro(a)).h),xq=ka(W.c,a.c),ml=ka(W.l,a.l),r8=ka(W.opacity,a.opacity);return function(W3){W.h=Ak(W3);W.c=xq(W3);W.l=ml(W3);W.opacity=r8(W3);return W+""}}}
function uG(f){return function Ak(a){function xq(ml,r8){var W3=f((ml=nD(ml)).h,(r8=nD(r8)).h),YZ=ka(ml.s,r8.s),qb=ka(ml.l,r8.l),PS=ka(ml.opacity,r8.opacity);return function(JE){ml.h=W3(JE);ml.s=YZ(JE);ml.l=qb(Math.pow(JE,a));ml.opacity=PS(JE);return ml+""}}
a=+a;xq.gamma=Ak;return xq}(1)}
function hl(){return u0||(LAS(qf),u0=So.now()+bwk)}
function qf(){u0=0}
function UJ(){this._call=this._time=this._next=null}
function nz(f,W,a){var Ak=new UJ;Ak.restart(f,W,a);return Ak}
function HH(){u0=(fOq=So.now())+bwk;J2=IM=0;try{hl();++J2;for(var f=pUk,W;f;)(W=u0-f._time)>=0&&f._call.call(null,W),f=f._next;--J2}finally{J2=0;f=pUk;for(var a=Infinity;f;)if(f._call){a>f._time&&(a=f._time);var Ak=f;f=f._next}else W=f._next,f._next=null,f=Ak?Ak._next=W:pUk=W;Kc=Ak;rh(a);u0=0}}
function uwk(){var f=So.now(),W=f-fOq;W>1E3&&(bwk-=W,fOq=f)}
function rh(f){J2||(IM&&(IM=clearTimeout(IM)),f-u0>24?(f<Infinity&&(IM=setTimeout(HH,f-So.now()-bwk)),W6&&(W6=clearInterval(W6))):(W6||(fOq=So.now(),W6=setInterval(uwk,1E3)),J2=1,LAS(HH)))}
function dJH(f,W,a){var Ak=new UJ;W=W==null?0:+W;Ak.restart(function(xq){Ak.stop();f(xq+W)},W,a);
return Ak}
function xUk(f,W,a,Ak,xq,ml){var r8=f.__transition;if(!r8)f.__transition={};else if(a in r8)return;lXo(f,a,{name:W,index:Ak,group:xq,on:xNf,tween:ce0,time:ml.time,delay:ml.delay,duration:ml.duration,ease:ml.ease,timer:null,state:0})}
function cQV(f,W){f=U2(f,W);if(f.state>0)throw Error("ue");return f}
function ek(f,W){f=U2(f,W);if(f.state>2)throw Error("ve");return f}
function U2(f,W){f=f.__transition;if(!f||!(f=f[W]))throw Error("we");return f}
function lXo(f,W,a){function Ak(YZ){var qb,PS;if(a.state!==1)return ml();for(u8 in r8){var JE=r8[u8];if(JE.name===a.name){if(JE.state===3)return dJH(Ak);JE.state===4?(JE.state=6,JE.timer.stop(),JE.on.call("interrupt",f,f.__data__,JE.index,JE.group),delete r8[u8]):+u8<W&&(JE.state=6,JE.timer.stop(),delete r8[u8])}}dJH(function(){a.state===3&&(a.state=4,a.timer.restart(xq,a.delay,a.time),xq(YZ))});
a.state=2;a.on.call("start",f,f.__data__,a.index,a.group);if(a.state===2){a.state=3;W3=Array(PS=a.tween.length);var u8=0;for(qb=-1;u8<PS;++u8)if(JE=a.tween[u8].value.call(f,f.__data__,a.index,a.group))W3[++qb]=JE;W3.length=qb+1}}
function xq(YZ){YZ=YZ<a.duration?a.ease.call(null,YZ/a.duration):(a.timer.restart(ml),a.state=5,1);for(var qb=-1,PS=W3.length;++qb<PS;)W3[qb].call(null,YZ);a.state===5&&(a.on.call("end",f,f.__data__,a.index,a.group),ml())}
function ml(){a.state=6;a.timer.stop();delete r8[W];for(var YZ in r8)return;delete f.__transition}
var r8=f.__transition,W3;r8[W]=a;a.timer=nz(function(YZ){a.state=1;a.timer.restart(Ak,a.delay,a.time);a.delay<=YZ&&Ak(YZ-a.delay)},0,a.time)}
function Odj(f,W){var a,Ak;return function(){var xq=ek(this,f),ml=xq.tween;if(ml!==a){Ak=a=ml;ml=0;for(var r8=Ak.length;ml<r8;++ml)if(Ak[ml].name===W){Ak=Ak.slice();Ak.splice(ml,1);break}}xq.tween=Ak}}
function MMo(f,W,a){var Ak,xq;if(typeof a!=="function")throw Error();return function(){var ml=ek(this,f),r8=ml.tween;if(r8!==Ak){xq=(Ak=r8).slice();r8={name:W,value:a};for(var W3=0,YZ=xq.length;W3<YZ;++W3)if(xq[W3].name===W){xq[W3]=r8;break}W3===YZ&&xq.push(r8)}ml.tween=xq}}
function OH6(f,W,a){var Ak=f._id;f.each(function(){var xq=ek(this,Ak);(xq.value||(xq.value={}))[W]=a.apply(this,arguments)});
return function(xq){return U2(xq,Ak).value[W]}}
function RRf(f,W){var a;return(typeof W==="number"?NM:W instanceof yN?AdH:(a=yN(W))?(W=a,AdH):w8)(f,W)}
function sYG(f){return function(){this.removeAttribute(f)}}
function N3H(f){return function(){this.removeAttributeNS(f.space,f.local)}}
function VMi(f,W,a){var Ak,xq;return function(){var ml=this.getAttribute(f);return ml===a?null:ml===Ak?xq:xq=W(Ak=ml,a)}}
function Jej(f,W,a){var Ak,xq;return function(){var ml=this.getAttributeNS(f.space,f.local);return ml===a?null:ml===Ak?xq:xq=W(Ak=ml,a)}}
function ye9(f,W,a){var Ak,xq,ml;return function(){var r8=a(this);if(r8==null)return void this.removeAttribute(f);var W3=this.getAttribute(f);return W3===r8?null:W3===Ak&&r8===xq?ml:ml=W(Ak=W3,xq=r8)}}
function mNo(f,W,a){var Ak,xq,ml;return function(){var r8=a(this);if(r8==null)return void this.removeAttributeNS(f.space,f.local);var W3=this.getAttributeNS(f.space,f.local);return W3===r8?null:W3===Ak&&r8===xq?ml:ml=W(Ak=W3,xq=r8)}}
function T3Y(f,W){function a(){var Ak=this,xq=W.apply(Ak,arguments);return xq&&function(ml){Ak.setAttributeNS(f.space,f.local,xq(ml))}}
a._value=W;return a}
function QYQ(f,W){function a(){var Ak=this,xq=W.apply(Ak,arguments);return xq&&function(ml){Ak.setAttribute(f,xq(ml))}}
a._value=W;return a}
function vNf(f,W){return function(){cQV(this,f).delay=+W.apply(this,arguments)}}
function gNo(f,W){return W=+W,function(){cQV(this,f).delay=W}}
function nNn(f,W){return function(){ek(this,f).duration=+W.apply(this,arguments)}}
function Hdi(f,W){return W=+W,function(){ek(this,f).duration=W}}
function rem(f,W){if(typeof W!=="function")throw Error();return function(){ek(this,f).ease=W}}
function DNj(f){return(f+"").trim().split(/^|\s+/).every(function(W){var a=W.indexOf(".");a>=0&&(W=W.slice(0,a));return!W||W==="start"})}
function UNY(f,W,a){var Ak,xq,ml=DNj(W)?cQV:ek;return function(){var r8=ml(this,f),W3=r8.on;if(W3!==Ak)(xq=(Ak=W3).copy()).on(W,a);r8.on=xq}}
function $NN(f){return function(){var W=this.parentNode,a;for(a in this.__transition)if(+a!==f)return;W&&W.removeChild(this)}}
function XM9(f,W){var a,Ak,xq;return function(){var ml=H3(this,f),r8=(this.style.removeProperty(f),H3(this,f));return ml===r8?null:ml===a&&r8===Ak?xq:xq=W(a=ml,Ak=r8)}}
function SOn(f){return function(){this.style.removeProperty(f)}}
function IXj(f,W,a){var Ak,xq;return function(){var ml=H3(this,f);return ml===a?null:ml===Ak?xq:xq=W(Ak=ml,a)}}
function KUH(f,W,a){var Ak,xq,ml;return function(){var r8=H3(this,f),W3=a(this);W3==null&&(W3=(this.style.removeProperty(f),H3(this,f)));return r8===W3?null:r8===Ak&&W3===xq?ml:ml=W(Ak=r8,xq=W3)}}
function WUF(f,W,a){function Ak(){var xq=this,ml=W.apply(xq,arguments);return ml&&function(r8){xq.style.setProperty(f,ml(r8),a)}}
Ak._value=W;return Ak}
function jYj(f){return function(){this.textContent=f}}
function bdN(f){return function(){var W=f(this);this.textContent=W==null?"":W}}
function eV(f,W,a,Ak){this._groups=f;this._parents=W;this._name=a;this._id=Ak}
function MVV(f){return{type:f}}
function ssk(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function FTu(){}
function YVS(f,W){var a=new FTu;if(f instanceof FTu)f.each(function(r8,W3){a.set(W3,r8)});
else if(Array.isArray(f)){var Ak=-1,xq=f.length,ml;if(W==null)for(;++Ak<xq;)a.set(Ak,f[Ak]);else for(;++Ak<xq;)a.set(W(ml=f[Ak],Ak,f),ml)}else if(f)for(Ak in f)a.set(Ak,f[Ak]);return a}
function BrV(){}
function PrE(f){return function(W){for(var a={},Ak=0;Ak<f.length;Ak++)a[f[Ak]]=W[Ak]||"";return a}}
function fXn(f,W){var a=PrE(f);return function(Ak,xq){return W(a(Ak),xq,f)}}
function pMi(f){var W=Object.create(null),a=[];f.forEach(function(Ak){for(var xq in Ak)xq in W||a.push(W[xq]=xq)});
return a}
function E7A(f){function W(r8,W3){function YZ(){if(nq)return Ntk;if(Z4)return Z4=!1,zRZ;var w5,Zi=JE,VS;if(r8.charCodeAt(Zi)===34){for(;JE++<PS&&r8.charCodeAt(JE)!==34||r8.charCodeAt(++JE)===34;);(w5=JE)>=PS?nq=!0:(VS=r8.charCodeAt(JE++))===10?Z4=!0:VS===13&&(Z4=!0,r8.charCodeAt(JE)===10&&++JE);return r8.slice(Zi+1,w5-1).replace(/""/g,'"')}for(;JE<PS;){if((VS=r8.charCodeAt(w5=JE++))===10)Z4=!0;else if(VS===13)Z4=!0,r8.charCodeAt(JE)===10&&++JE;else if(VS!==ml)continue;return r8.slice(Zi,w5)}return nq=
!0,r8.slice(Zi,PS)}
var qb=[],PS=r8.length,JE=0,u8=0,Dj,nq=PS<=0,Z4=!1;r8.charCodeAt(PS-1)===10&&--PS;for(r8.charCodeAt(PS-1)===13&&--PS;(Dj=YZ())!==Ntk;){for(var $U=[];Dj!==zRZ&&Dj!==Ntk;)$U.push(Dj),Dj=YZ();W3&&($U=W3($U,u8++))==null||qb.push($U)}return qb}
function a(r8){return r8.map(Ak).join(f)}
function Ak(r8){return r8==null?"":xq.test(r8)?'"'+r8.replace(/"/g,'""')+'"':r8}
var xq=new RegExp('["'+f+"\n\r]"),ml=f.charCodeAt(0);return{parse:function(r8,W3){var YZ,qb;r8=W(r8,function(PS,JE){if(YZ)return YZ(PS,JE-1);qb=PS;YZ=W3?fXn(PS,W3):PrE(PS)});
r8.columns=qb||[];return r8},
parseRows:W,format:function(r8,W3){W3==null&&(W3=pMi(r8));return[W3.map(Ak).join(f)].concat(r8.map(function(YZ){return W3.map(function(qb){return Ak(YZ[qb])}).join(f)})).join("\n")},
formatRows:function(r8){return r8.map(a).join("\n")}}}
function FUN(f){if(!f.ok)throw Error("xe`"+f.status+"`"+f.statusText);return f.text()}
function i1E(f){return function(W,a,Ak){arguments.length===2&&typeof a==="function"&&(Ak=a,a=void 0);return fetch(W,a).then(FUN).then(function(xq){return f(xq,Ak)})}}
function lpZ(f,W,a,Ak){if(isNaN(W)||isNaN(a))return f;var xq,ml=f._root;Ak={data:Ak};var r8=f._x0,W3=f._y0,YZ=f._x1,qb=f._y1,PS,JE,u8,Dj,nq;if(!ml)return f._root=Ak,f;for(;ml.length;)if((u8=W>=(PS=(r8+YZ)/2))?r8=PS:YZ=PS,(Dj=a>=(JE=(W3+qb)/2))?W3=JE:qb=JE,xq=ml,!(ml=ml[nq=Dj<<1|u8]))return xq[nq]=Ak,f;var Z4=+f._x.call(null,ml.data);var $U=+f._y.call(null,ml.data);if(W===Z4&&a===$U)return Ak.next=ml,xq?xq[nq]=Ak:f._root=Ak,f;do xq=xq?xq[nq]=Array(4):f._root=Array(4),(u8=W>=(PS=(r8+YZ)/2))?r8=PS:YZ=
PS,(Dj=a>=(JE=(W3+qb)/2))?W3=JE:qb=JE;while((nq=Dj<<1|u8)===(u8=($U>=JE)<<1|Z4>=PS));return xq[u8]=ml,xq[nq]=Ak,f}
function F7(f,W,a,Ak,xq){this.node=f;this.x0=W;this.y0=a;this.x1=Ak;this.y1=xq}
function B3i(f){return f[0]}
function aXH(f){return f[1]}
function VVV(f,W,a,Ak,xq,ml){this._x=f;this._y=W;this._x0=a;this._y0=Ak;this._x1=xq;this._y1=ml;this._root=void 0}
function xaE(f){for(var W={data:f.data},a=W;f=f.next;)a=a.next={data:f.data};return W}
function aOI(f,W){if((W=(f=W?f.toExponential(W-1):f.toExponential()).indexOf("e"))<0)return null;var a=f.slice(0,W);return[a.length>1?a[0]+a.slice(2):a,+f.slice(W+1)]}
function Co9(f){return f=aOI(Math.abs(f)),f?f[1]:NaN}
function hl9(f,W){return function(a,Ak){for(var xq=a.length,ml=[],r8=0,W3=f[0],YZ=0;xq>0&&W3>0;){YZ+W3+1>Ak&&(W3=Math.max(1,Ak-YZ));ml.push(a.substring(xq-=W3,xq+W3));if((YZ+=W3+1)>Ak)break;W3=f[r8=(r8+1)%f.length]}return ml.reverse().join(W)}}
function oNg(f){return function(W){return W.replace(/[0-9]/g,function(a){return f[+a]})}}
function JQI(f){return new yQI(f)}
function yQI(f){if(!(W=kyG.exec(f)))throw Error("ye`"+f);var W;this.fill=W[1]||" ";this.align=W[2]||">";this.sign=W[3]||"-";this.symbol=W[4]||"";this.zero=!!W[5];this.width=W[6]&&+W[6];this.comma=!!W[7];this.precision=W[8]&&+W[8].slice(1);this.trim=!!W[9];this.type=W[10]||""}
function cd8(f,W){W=aOI(f,W);if(!W)return f+"";f=W[0];W=W[1];return W<0?"0."+Array(-W).join("0")+f:f.length>W+1?f.slice(0,W+1)+"."+f.slice(W+1):f+Array(W-f.length+2).join("0")}
function O1E(f){return f}
function Gyf(f){function W(W3){function YZ(tb){var ij=VS,aH=w0,vx,Og;if(Zi==="c")aH=t6(tb)+aH,tb="";else{tb=+tb;var Kf=tb<0;tb=t6(Math.abs(tb),$U);if(w5){var kW=tb.length,pg=1,uj=-1;a:for(;pg<kW;++pg)switch(tb[pg]){case ".":uj=vx=pg;break;case "0":uj===0&&(uj=pg);vx=pg;break;default:if(!+tb[pg])break a;uj>0&&(uj=0)}tb=uj>0?tb.slice(0,uj)+tb.slice(vx+1):tb}Kf&&+tb===0&&(Kf=!1);ij=(Kf?JE==="("?JE:"-":JE==="-"||JE==="("?"":JE)+ij;aH=(Zi==="s"?Mwb[8+sm8/3]:"")+aH+(Kf&&JE==="("?")":"");if(vv)for(Kf=-1,
vx=tb.length;++Kf<vx;)if(Og=tb.charCodeAt(Kf),48>Og||Og>57){aH=(Og===46?xq+tb.slice(Kf+1):tb.slice(Kf))+aH;tb=tb.slice(0,Kf);break}}Z4&&!Dj&&(tb=a(tb,Infinity));Og=ij.length+tb.length+aH.length;Kf=Og<nq?Array(nq-Og+1).join(qb):"";Z4&&Dj&&(tb=a(Kf+tb,Kf.length?nq-aH.length:Infinity),Kf="");switch(PS){case "<":tb=ij+tb+aH+Kf;break;case "=":tb=ij+Kf+tb+aH;break;case "^":tb=Kf.slice(0,Og=Kf.length>>1)+ij+tb+aH+Kf.slice(Og);break;default:tb=Kf+ij+tb+aH}return ml(tb)}
W3=JQI(W3);var qb=W3.fill,PS=W3.align,JE=W3.sign,u8=W3.symbol,Dj=W3.zero,nq=W3.width,Z4=W3.comma,$U=W3.precision,w5=W3.trim,Zi=W3.type;Zi==="n"?(Z4=!0,Zi="g"):NRz[Zi]||($U==null&&($U=12),w5=!0,Zi="g");if(Dj||qb==="0"&&PS==="=")Dj=!0,qb="0",PS="=";var VS=u8==="$"?Ak[0]:u8==="#"&&/[boxX]/.test(Zi)?"0"+Zi.toLowerCase():"",w0=u8==="$"?Ak[1]:/[%p]/.test(Zi)?r8:"",t6=NRz[Zi],vv=/[defgprs%]/.test(Zi);$U=$U==null?6:/[gprs]/.test(Zi)?Math.max(1,Math.min(21,$U)):Math.max(0,Math.min(20,$U));YZ.toString=function(){return W3+
""};
return YZ}
var a=f.grouping&&f.thousands?hl9(f.grouping,f.thousands):O1E,Ak=f.currency,xq=f.decimal,ml=f.numerals?oNg(f.numerals):O1E,r8=f.percent||"%";return{format:W,formatPrefix:function(W3,YZ){var qb=W((W3=JQI(W3),W3.type="f",W3));W3=Math.max(-8,Math.min(8,Math.floor(Co9(YZ)/3)))*3;var PS=Math.pow(10,-W3),JE=Mwb[8+W3/3];return function(u8){return qb(PS*u8)+JE}}}}
function Dx(){this.reset()}
function Vwq(f,W,a){var Ak=f.s=W+a,xq=Ak-W;f.t=W-(Ak-xq)+(a-xq)}
function Csk(f){return f>1?F2:f<-1?-F2:Math.asin(f)}
function Zdo(){}
function JdN(f){var W=f[0];f=f[1];var a=BC(f);return[a*BC(W),a*no(W),no(f)]}
function ydN(f,W){return[f[1]*W[2]-f[2]*W[1],f[2]*W[0]-f[0]*W[2],f[0]*W[1]-f[1]*W[0]]}
function maH(f){var W=h4k(f[0]*f[0]+f[1]*f[1]+f[2]*f[2]);f[0]/=W;f[1]/=W;f[2]/=W}
function tMY(){var f=[],W;return{point:function(a,Ak){W.push([a,Ak])},
lineStart:function(){f.push(W=[])},
lineEnd:Zdo,rejoin:function(){f.length>1&&f.push(f.pop().concat(f.shift()))},
result:function(){var a=f;f=[];W=null;return a}}}
function oSV(f,W,a,Ak){this.x=f;this.z=W;this.o=a;this.e=Ak;this.v=!1;this.n=this.p=null}
function wMm(f,W,a,Ak,xq){var ml=[],r8=[];f.forEach(function(JE){if(!((u8=JE.length-1)<=0)){var u8,Dj=JE[0],nq=JE[u8],Z4=Dj;if(qU(Z4[0]-nq[0])<1E-6&&qU(Z4[1]-nq[1])<1E-6){xq.lineStart();for(W3=0;W3<u8;++W3)xq.point((Dj=JE[W3])[0],Dj[1]);xq.lineEnd()}else ml.push(u8=new oSV(Dj,JE,null,!0)),r8.push(u8.o=new oSV(Dj,null,u8,!1)),ml.push(u8=new oSV(nq,JE,null,!1)),r8.push(u8.o=new oSV(nq,null,u8,!0))}});
if(ml.length){r8.sort(W);TRD(ml);TRD(r8);var W3=0;for(f=r8.length;W3<f;++W3)r8[W3].e=a=!a;a=ml[0];for(var YZ;;){for(var qb=a,PS=!0;qb.v;)if((qb=qb.n)===a)return;W=qb.z;xq.lineStart();do{qb.v=qb.o.v=!0;if(qb.e){if(PS)for(W3=0,f=W.length;W3<f;++W3)xq.point((YZ=W[W3])[0],YZ[1]);else Ak(qb.x,qb.n.x,1,xq);qb=qb.n}else{if(PS)for(W=qb.p.z,W3=W.length-1;W3>=0;--W3)xq.point((YZ=W[W3])[0],YZ[1]);else Ak(qb.x,qb.p.x,-1,xq);qb=qb.p}qb=qb.o;W=qb.z;PS=!PS}while(!qb.v);xq.lineEnd()}}}
function TRD(f){if(W=f.length){for(var W,a=0,Ak=f[0],xq;++a<W;)Ak.n=xq=f[a],xq.p=Ak,Ak=xq;Ak.n=xq=f[0];xq.p=Ak}}
function ueH(f){return f.length>1}
function elN(f,W){return((f=f.x)[0]<0?f[1]-F2-1E-6:F2-f[1])-((W=W.x)[0]<0?W[1]-F2-1E-6:F2-W[1])}
function mU6(){}
function Qmq(f){return function(W,a){var Ak=BC(W),xq=BC(a);Ak=f(Ak*xq);return[Ak*xq*no(W),Ak*no(a)]}}
function jo(f){return function(W,a){var Ak=h4k(W*W+a*a),xq=f(Ak),ml=no(xq);xq=BC(xq);return[v7H(W*ml,Ak*xq),Csk(Ak&&a*ml/Ak)]}}
function qOg(f){var W=0,a=f.children,Ak=a&&a.length;if(Ak)for(;--Ak>=0;)W+=a[Ak].value;else W=1;f.value=W}
function g78(f,W){var a=new bn(f);f=+f.value&&(a.value=f.value);var Ak,xq=[a],ml,r8,W3,YZ;for(W==null&&(W=LUo);Ak=xq.pop();)if(f&&(Ak.value=+Ak.data.value),(r8=W(Ak.data))&&(YZ=r8.length))for(Ak.children=Array(YZ),W3=YZ-1;W3>=0;--W3)xq.push(ml=Ak.children[W3]=new bn(r8[W3])),ml.parent=Ak,ml.depth=Ak.depth+1;return a.eachBefore(dNY)}
function LUo(f){return f.children}
function RSH(f){f.data=f.data.data}
function dNY(f){var W=0;do f.height=W;while((f=f.parent)&&f.height<++W)}
function bn(f){this.data=f;this.depth=this.height=0;this.parent=null}
function ck(f,W,a,Ak){function xq(ml){return f(ml=new Date(+ml)),ml}
xq.floor=xq;xq.ceil=function(ml){return f(ml=new Date(ml-1)),W(ml,1),f(ml),ml};
xq.round=function(ml){var r8=xq(ml),W3=xq.ceil(ml);return ml-r8<W3-ml?r8:W3};
xq.offset=function(ml,r8){return W(ml=new Date(+ml),r8==null?1:Math.floor(r8)),ml};
xq.range=function(ml,r8,W3){var YZ=[],qb;ml=xq.ceil(ml);W3=W3==null?1:Math.floor(W3);if(!(ml<r8&&W3>0))return YZ;do YZ.push(qb=new Date(+ml)),W(ml,W3),f(ml);while(qb<ml&&ml<r8);return YZ};
xq.filter=function(ml){return ck(function(r8){if(r8>=r8)for(;f(r8),!ml(r8);)r8.setTime(r8-1)},function(r8,W3){if(r8>=r8)if(W3<0)for(;++W3<=0;)for(;W(r8,-1),!ml(r8););
else for(;--W3>=0;)for(;W(r8,1),!ml(r8););})};
a&&(xq.count=function(ml,r8){Ttk.setTime(+ml);Qsl.setTime(+r8);f(Ttk);f(Qsl);return Math.floor(a(Ttk,Qsl))},xq.every=function(ml){ml=Math.floor(ml);
return isFinite(ml)&&ml>0?ml>1?xq.filter(Ak?function(r8){return Ak(r8)%ml===0}:function(r8){return xq.count(0,r8)%ml===0}):xq:null});
return xq}
function qr(f){return ck(function(W){W.setDate(W.getDate()-(W.getDay()+7-f)%7);W.setHours(0,0,0,0)},function(W,a){W.setDate(W.getDate()+a*7)},function(W,a){return(a-W-(a.getTimezoneOffset()-W.getTimezoneOffset())*6E4)/6048E5})}
function Lm(f){return ck(function(W){W.setUTCDate(W.getUTCDate()-(W.getUTCDay()+7-f)%7);W.setUTCHours(0,0,0,0)},function(W,a){W.setUTCDate(W.getUTCDate()+a*7)},function(W,a){return(a-W)/6048E5})}
function AsG(f){if(0<=f.y&&f.y<100){var W=new Date(-1,f.m,f.d,f.H,f.M,f.S,f.L);W.setFullYear(f.y);return W}return new Date(f.y,f.m,f.d,f.H,f.M,f.S,f.L)}
function k38(f){if(0<=f.y&&f.y<100){var W=new Date(Date.UTC(-1,f.m,f.d,f.H,f.M,f.S,f.L));W.setUTCFullYear(f.y);return W}return new Date(Date.UTC(f.y,f.m,f.d,f.H,f.M,f.S,f.L))}
function fc(f){return{y:f,m:0,d:1,H:0,M:0,S:0,L:0}}
function Y7g(f){function W(aH,vx){return function(Og){var Kf=[],kW=-1,pg=0,uj=aH.length,N1,zy;for(Og instanceof Date||(Og=new Date(+Og));++kW<uj;)if(aH.charCodeAt(kW)===37){Kf.push(aH.slice(pg,kW));(pg=n7S[N1=aH.charAt(++kW)])!=null?N1=aH.charAt(++kW):pg=N1==="e"?" ":"0";if(zy=vx[N1])N1=zy(Og,pg);Kf.push(N1);pg=kW+1}Kf.push(aH.slice(pg,kW));return Kf.join("")}}
function a(aH,vx){return function(Og){var Kf=fc(1900);if(Ak(Kf,aH,Og,0)!=Og.length)return null;if("Q"in Kf)return new Date(Kf.Q);"p"in Kf&&(Kf.H=Kf.H%12+Kf.p*12);if("V"in Kf){if(Kf.V<1||Kf.V>53)return null;"w"in Kf||(Kf.w=1);if("Z"in Kf){Og=k38(fc(Kf.y));var kW=Og.getUTCDay();Og=kW>4||kW===0?vuk.ceil(Og):vuk(Og);Og=H1A.offset(Og,(Kf.V-1)*7);Kf.y=Og.getUTCFullYear();Kf.m=Og.getUTCMonth();Kf.d=Og.getUTCDate()+(Kf.w+6)%7}else Og=vx(fc(Kf.y)),kW=Og.getDay(),Og=kW>4||kW===0?guk.ceil(Og):guk(Og),Og=rdf.offset(Og,
(Kf.V-1)*7),Kf.y=Og.getFullYear(),Kf.m=Og.getMonth(),Kf.d=Og.getDate()+(Kf.w+6)%7}else if("W"in Kf||"U"in Kf)"w"in Kf||(Kf.w="u"in Kf?Kf.u%7:"W"in Kf?1:0),kW="Z"in Kf?k38(fc(Kf.y)).getUTCDay():vx(fc(Kf.y)).getDay(),Kf.m=0,Kf.d="W"in Kf?(Kf.w+6)%7+Kf.W*7-(kW+5)%7:Kf.w+Kf.U*7-(kW+6)%7;return"Z"in Kf?(Kf.H+=Kf.Z/100|0,Kf.M+=Kf.Z%100,k38(Kf)):vx(Kf)}}
function Ak(aH,vx,Og,Kf){for(var kW=0,pg=vx.length,uj=Og.length,N1;kW<pg;){if(Kf>=uj)return-1;N1=vx.charCodeAt(kW++);if(N1===37){if(N1=vx.charAt(kW++),N1=ij[N1 in n7S?vx.charAt(kW++):N1],!N1||(Kf=N1(aH,Og,Kf))<0)return-1}else if(N1!=Og.charCodeAt(Kf++))return-1}return Kf}
var xq=f.dateTime,ml=f.date,r8=f.time,W3=f.periods,YZ=f.days,qb=f.shortDays,PS=f.months,JE=f.shortMonths,u8=pc(W3),Dj=Fp(W3),nq=pc(YZ),Z4=Fp(YZ),$U=pc(qb),w5=Fp(qb),Zi=pc(PS),VS=Fp(PS),w0=pc(JE),t6=Fp(JE),vv={a:function(aH){return qb[aH.getDay()]},
A:function(aH){return YZ[aH.getDay()]},
b:function(aH){return JE[aH.getMonth()]},
B:function(aH){return PS[aH.getMonth()]},
c:null,d:Daf,e:Daf,f:PSn,H:E5G,I:zSn,j:i_0,L:Uab,m:lYY,M:xJ0,p:function(aH){return W3[+(aH.getHours()>=12)]},
Q:$af,s:XdZ,S:cso,u:O_o,U:MmH,V:sCY,w:NYn,W:Vmf,x:null,X:null,y:JsN,Y:ysi,Z:mJ0,"%":SVz},tb={a:function(aH){return qb[aH.getUTCDay()]},
A:function(aH){return YZ[aH.getUTCDay()]},
b:function(aH){return JE[aH.getUTCMonth()]},
B:function(aH){return PS[aH.getUTCMonth()]},
c:null,d:IpA,e:IpA,f:TY9,H:QCg,I:v5g,j:g5Y,L:K$7,m:n5N,M:H_G,p:function(aH){return W3[+(aH.getUTCHours()>=12)]},
Q:$af,s:XdZ,S:rsW,u:DJW,U:UJg,V:$J9,w:Xi9,W:S7N,x:null,X:null,y:IY9,Y:KAg,Z:WA0,"%":SVz},ij={a:function(aH,vx,Og){return(vx=$U.exec(vx.slice(Og)))?(aH.w=w5[vx[0].toLowerCase()],Og+vx[0].length):-1},
A:function(aH,vx,Og){return(vx=nq.exec(vx.slice(Og)))?(aH.w=Z4[vx[0].toLowerCase()],Og+vx[0].length):-1},
b:function(aH,vx,Og){return(vx=w0.exec(vx.slice(Og)))?(aH.m=t6[vx[0].toLowerCase()],Og+vx[0].length):-1},
B:function(aH,vx,Og){return(vx=Zi.exec(vx.slice(Og)))?(aH.m=VS[vx[0].toLowerCase()],Og+vx[0].length):-1},
c:function(aH,vx,Og){return Ak(aH,xq,vx,Og)},
d:W$7,e:W$7,f:jCY,H:jmb,I:jmb,j:b_H,L:fYY,m:piF,M:FAW,p:function(aH,vx,Og){return(vx=u8.exec(vx.slice(Og)))?(aH.p=Dj[vx[0].toLowerCase()],Og+vx[0].length):-1},
Q:BYg,s:aYi,S:CSN,u:hSj,U:o5W,V:kAo,w:GAm,W:Z_H,x:function(aH,vx,Og){return Ak(aH,ml,vx,Og)},
X:function(aH,vx,Og){return Ak(aH,r8,vx,Og)},
y:tmQ,Y:win,Z:uqf,"%":eSN};vv.x=W(ml,vv);vv.X=W(r8,vv);vv.c=W(xq,vv);tb.x=W(ml,tb);tb.X=W(r8,tb);tb.c=W(xq,tb);return{format:function(aH){var vx=W(aH,vv);vx.toString=function(){return aH};
return vx},
parse:function(aH){var vx=a(aH,AsG);vx.toString=function(){return aH};
return vx},
utcFormat:function(aH){var vx=W(aH,tb);vx.toString=function(){return aH};
return vx},
utcParse:function(aH){var vx=a(aH,k38);vx.toString=function(){return aH};
return vx}}}
function TT(f,W,a){var Ak=f<0?"-":"";f=(Ak?-f:f)+"";var xq=f.length;return Ak+(xq<a?Array(a-xq+1).join(W)+f:f)}
function q70(f){return f.replace(LAF,"\\$&")}
function pc(f){return new RegExp("^(?:"+f.map(q70).join("|")+")","i")}
function Fp(f){for(var W={},a=-1,Ak=f.length;++a<Ak;)W[f[a].toLowerCase()]=a;return W}
function GAm(f,W,a){return(W=J0.exec(W.slice(a,a+1)))?(f.w=+W[0],a+W[0].length):-1}
function hSj(f,W,a){return(W=J0.exec(W.slice(a,a+1)))?(f.u=+W[0],a+W[0].length):-1}
function o5W(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.U=+W[0],a+W[0].length):-1}
function kAo(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.V=+W[0],a+W[0].length):-1}
function Z_H(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.W=+W[0],a+W[0].length):-1}
function win(f,W,a){return(W=J0.exec(W.slice(a,a+4)))?(f.y=+W[0],a+W[0].length):-1}
function tmQ(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.y=+W[0]+(+W[0]>68?1900:2E3),a+W[0].length):-1}
function uqf(f,W,a){return(W=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(W.slice(a,a+6)))?(f.Z=W[1]?0:-(W[2]+(W[3]||"00")),a+W[0].length):-1}
function piF(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.m=W[0]-1,a+W[0].length):-1}
function W$7(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.d=+W[0],a+W[0].length):-1}
function b_H(f,W,a){return(W=J0.exec(W.slice(a,a+3)))?(f.m=0,f.d=+W[0],a+W[0].length):-1}
function jmb(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.H=+W[0],a+W[0].length):-1}
function FAW(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.M=+W[0],a+W[0].length):-1}
function CSN(f,W,a){return(W=J0.exec(W.slice(a,a+2)))?(f.S=+W[0],a+W[0].length):-1}
function fYY(f,W,a){return(W=J0.exec(W.slice(a,a+3)))?(f.L=+W[0],a+W[0].length):-1}
function jCY(f,W,a){return(W=J0.exec(W.slice(a,a+6)))?(f.L=Math.floor(W[0]/1E3),a+W[0].length):-1}
function eSN(f,W,a){return(f=dJG.exec(W.slice(a,a+1)))?a+f[0].length:-1}
function BYg(f,W,a){return(W=J0.exec(W.slice(a)))?(f.Q=+W[0],a+W[0].length):-1}
function aYi(f,W,a){return(W=J0.exec(W.slice(a)))?(f.Q=+W[0]*1E3,a+W[0].length):-1}
function Daf(f,W){return TT(f.getDate(),W,2)}
function E5G(f,W){return TT(f.getHours(),W,2)}
function zSn(f,W){return TT(f.getHours()%12||12,W,2)}
function i_0(f,W){return TT(1+rdf.count(y_(f),f),W,3)}
function Uab(f,W){return TT(f.getMilliseconds(),W,3)}
function PSn(f,W){return Uab(f,W)+"000"}
function lYY(f,W){return TT(f.getMonth()+1,W,2)}
function xJ0(f,W){return TT(f.getMinutes(),W,2)}
function cso(f,W){return TT(f.getSeconds(),W,2)}
function O_o(f){f=f.getDay();return f===0?7:f}
function MmH(f,W){return TT(RRo.count(y_(f),f),W,2)}
function sCY(f,W){var a=f.getDay();f=a>=4||a===0?nuI(f):nuI.ceil(f);return TT(nuI.count(y_(f),f)+(y_(f).getDay()===4),W,2)}
function NYn(f){return f.getDay()}
function Vmf(f,W){return TT(guk.count(y_(f),f),W,2)}
function JsN(f,W){return TT(f.getFullYear()%100,W,2)}
function ysi(f,W){return TT(f.getFullYear()%1E4,W,4)}
function mJ0(f){f=f.getTimezoneOffset();return(f>0?"-":(f*=-1,"+"))+TT(f/60|0,"0",2)+TT(f%60,"0",2)}
function IpA(f,W){return TT(f.getUTCDate(),W,2)}
function QCg(f,W){return TT(f.getUTCHours(),W,2)}
function v5g(f,W){return TT(f.getUTCHours()%12||12,W,2)}
function g5Y(f,W){return TT(1+H1A.count(mi(f),f),W,3)}
function K$7(f,W){return TT(f.getUTCMilliseconds(),W,3)}
function TY9(f,W){return K$7(f,W)+"000"}
function n5N(f,W){return TT(f.getUTCMonth()+1,W,2)}
function H_G(f,W){return TT(f.getUTCMinutes(),W,2)}
function rsW(f,W){return TT(f.getUTCSeconds(),W,2)}
function DJW(f){f=f.getUTCDay();return f===0?7:f}
function UJg(f,W){return TT(AdG.count(mi(f),f),W,2)}
function $J9(f,W){var a=f.getUTCDay();f=a>=4||a===0?HHS(f):HHS.ceil(f);return TT(HHS.count(mi(f),f)+(mi(f).getUTCDay()===4),W,2)}
function Xi9(f){return f.getUTCDay()}
function S7N(f,W){return TT(vuk.count(mi(f),f),W,2)}
function IY9(f,W){return TT(f.getUTCFullYear()%100,W,2)}
function KAg(f,W){return TT(f.getUTCFullYear()%1E4,W,4)}
function WA0(){return"+0000"}
function SVz(){return"%"}
function $af(f){return+f}
function XdZ(f){return Math.floor(+f/1E3)}
function yX(f){for(var W=f.length/6|0,a=Array(W),Ak=0;Ak<W;)a[Ak]="#"+f.slice(Ak*6,++Ak*6);return a}
function GT(f){return YVm(f[f.length-1])}
function G3k(f){var W=f.length;return function(a){return f[Math.max(0,Math.min(W-1,Math.floor(a*W)))]}}
function b1N(f){this._context=f}
function fpE(f){this._curve=f}
function pdA(f,W,a){var Ak=f._x1-f._x0;W-=f._x1;var xq=(f._y1-f._y0)/(Ak||W<0&&-0);f=(a-f._y1)/(W||Ak<0&&-0);return((xq<0?-1:1)+(f<0?-1:1))*Math.min(Math.abs(xq),Math.abs(f),.5*Math.abs((xq*W+f*Ak)/(Ak+W)))||0}
function F$8(f,W){var a=f._x1-f._x0;return a?(3*(f._y1-f._y0)/a-W)/2:W}
function rQP(f,W,a){var Ak=f._x0,xq=f._x1,ml=f._y1,r8=(xq-Ak)/3;f._context.bezierCurveTo(Ak+r8,f._y0+r8*W,xq-r8,ml-r8*a,xq,ml)}
function DUk(f){this._context=f}
function BRG(f){this._context=f}
function B6(f,W,a){this.k=f;this.x=W;this.y=a}
(function(f){f.length===1&&(f=A(f));return{left:function(W,a,Ak,xq){Ak==null&&(Ak=0);xq==null&&(xq=W.length);for(;Ak<xq;){var ml=Ak+xq>>>1;f(W[ml],a)<0?Ak=ml+1:xq=ml}return Ak},
right:function(W,a,Ak,xq){Ak==null&&(Ak=0);xq==null&&(xq=W.length);for(;Ak<xq;){var ml=Ak+xq>>>1;f(W[ml],a)>0?xq=ml:Ak=ml+1}return Ak}}})(R);
var uvQ={value:function(){}};
P.prototype=Y.prototype={constructor:P,on:function(f,W){var a=this._,Ak=E(f+"",a),xq,ml=-1,r8=Ak.length;if(arguments.length<2)for(;++ml<r8;){var W3;if(W3=xq=(f=Ak[ml]).type){a:{W3=a[xq];for(var YZ=0,qb=W3.length;YZ<qb;++YZ)if((xq=W3[YZ]).name===f.name){xq=xq.value;break a}xq=void 0}W3=xq}if(W3)return xq}else{if(W!=null&&typeof W!=="function")throw Error("ze`"+W);for(;++ml<r8;)if(xq=(f=Ak[ml]).type)a[xq]=z(a[xq],f.name,W);else if(W==null)for(xq in a)a[xq]=z(a[xq],f.name,null);return this}},
copy:function(){var f={},W=this._,a;for(a in W)f[a]=W[a].slice();return new P(f)},
call:function(f,W){if((xq=arguments.length-2)>0)for(var a=Array(xq),Ak=0,xq,ml;Ak<xq;++Ak)a[Ak]=arguments[Ak+2];if(!this._.hasOwnProperty(f))throw Error("te`"+f);ml=this._[f];Ak=0;for(xq=ml.length;Ak<xq;++Ak)ml[Ak].value.apply(W,a)},
apply:function(f,W,a){if(!this._.hasOwnProperty(f))throw Error("te`"+f);f=this._[f];for(var Ak=0,xq=f.length;Ak<xq;++Ak)f[Ak].value.apply(W,a)}};
var p6={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/"},ap8=function(f){return function(){return this.matches(f)}};
if(typeof document!=="undefined"){var aM=document.documentElement;if(!aM.matches){var Pr9=aM.webkitMatchesSelector||aM.msMatchesSelector||aM.mozMatchesSelector||aM.oMatchesSelector;ap8=function(f){return function(){return Pr9.call(this,f)}}}}var CrN=ap8;
g.prototype={constructor:g,appendChild:function(f){return this._parent.insertBefore(f,this._next)},
insertBefore:function(f,W){return this._parent.insertBefore(f,W)},
querySelector:function(f){return this._parent.querySelector(f)},
querySelectorAll:function(f){return this._parent.querySelectorAll(f)}};
var kAf={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(kAf={mouseenter:"mouseover",mouseleave:"mouseout"}));var egj=[null];wf.prototype=mm.prototype={constructor:wf,select:function(f){typeof f!=="function"&&(f=T(f));for(var W=this._groups,a=W.length,Ak=Array(a),xq=0;xq<a;++xq)for(var ml=W[xq],r8=ml.length,W3=Ak[xq]=Array(r8),YZ,qb,PS=0;PS<r8;++PS)(YZ=ml[PS])&&(qb=f.call(YZ,YZ.__data__,PS,ml))&&("__data__"in YZ&&(qb.__data__=YZ.__data__),W3[PS]=qb);return new wf(Ak,
this._parents)},
filter:function(f){typeof f!=="function"&&(f=CrN(f));for(var W=this._groups,a=W.length,Ak=Array(a),xq=0;xq<a;++xq)for(var ml=W[xq],r8=ml.length,W3=Ak[xq]=[],YZ,qb=0;qb<r8;++qb)(YZ=ml[qb])&&f.call(YZ,YZ.__data__,qb,ml)&&W3.push(YZ);return new wf(Ak,this._parents)},
data:function(f,W){if(!f)return Dj=Array(this.size()),qb=-1,this.each(function(Zi){Dj[++qb]=Zi}),Dj;
var a=W?b:I,Ak=this._parents,xq=this._groups;typeof f!=="function"&&(f=r(f));for(var ml=xq.length,r8=Array(ml),W3=Array(ml),YZ=Array(ml),qb=0;qb<ml;++qb){var PS=Ak[qb],JE=xq[qb],u8=JE.length,Dj=f.call(PS,PS&&PS.__data__,qb,Ak),nq=Dj.length,Z4=W3[qb]=Array(nq),$U=r8[qb]=Array(nq);u8=YZ[qb]=Array(u8);a(PS,JE,Z4,$U,u8,Dj,W);JE=PS=0;for(var w5;PS<nq;++PS)if(u8=Z4[PS]){for(PS>=JE&&(JE=PS+1);!(w5=$U[JE])&&++JE<nq;);u8._next=w5||null}}r8=new wf(r8,Ak);r8._enter=W3;r8._exit=YZ;return r8},
enter:function(){return new wf(this._enter||this._groups.map(Q),this._parents)},
exit:function(){return new wf(this._exit||this._groups.map(Q),this._parents)},
merge:function(f){var W=this._groups;f=f._groups;for(var a=W.length,Ak=Math.min(a,f.length),xq=Array(a),ml=0;ml<Ak;++ml)for(var r8=W[ml],W3=f[ml],YZ=r8.length,qb=xq[ml]=Array(YZ),PS,JE=0;JE<YZ;++JE)if(PS=r8[JE]||W3[JE])qb[JE]=PS;for(;ml<a;++ml)xq[ml]=W[ml];return new wf(xq,this._parents)},
order:function(){for(var f=this._groups,W=-1,a=f.length;++W<a;)for(var Ak=f[W],xq=Ak.length-1,ml=Ak[xq],r8;--xq>=0;)if(r8=Ak[xq])ml&&ml!==r8.nextSibling&&ml.parentNode.insertBefore(r8,ml),ml=r8;return this},
sort:function(f){function W(JE,u8){return JE&&u8?f(JE.__data__,u8.__data__):!JE-!u8}
f||(f=p);for(var a=this._groups,Ak=a.length,xq=Array(Ak),ml=0;ml<Ak;++ml){for(var r8=a[ml],W3=r8.length,YZ=xq[ml]=Array(W3),qb,PS=0;PS<W3;++PS)if(qb=r8[PS])YZ[PS]=qb;YZ.sort(W)}return(new wf(xq,this._parents)).order()},
call:function(){var f=arguments[0];arguments[0]=this;f.apply(null,arguments);return this},
nodes:function(){var f=Array(this.size()),W=-1;this.each(function(){f[++W]=this});
return f},
node:function(){for(var f=this._groups,W=0,a=f.length;W<a;++W)for(var Ak=f[W],xq=0,ml=Ak.length;xq<ml;++xq){var r8=Ak[xq];if(r8)return r8}return null},
size:function(){var f=0;this.each(function(){++f});
return f},
empty:function(){return!this.node()},
each:function(f){for(var W=this._groups,a=0,Ak=W.length;a<Ak;++a)for(var xq=W[a],ml=0,r8=xq.length,W3;ml<r8;++ml)(W3=xq[ml])&&f.call(W3,W3.__data__,ml,xq);return this},
attr:function(f,W){var a=c(f);if(arguments.length<2){var Ak=this.node();return a.local?Ak.getAttributeNS(a.space,a.local):Ak.getAttribute(a)}return this.each((W==null?a.local?L:h:typeof W==="function"?a.local?d:t:a.local?w:Z)(a,W))},
style:function(f,W,a){return arguments.length>1?this.each((W==null?Jk:typeof W==="function"?Qk:Nb)(f,W,a==null?"":a)):H3(this.node(),f)},
property:function(f,W){return arguments.length>1?this.each((W==null?nu:typeof W==="function"?FV:hk)(f,W)):this.node()[f]},
text:function(f){return arguments.length?this.each(f==null?i8:(typeof f==="function"?NG:fD)(f)):this.node().textContent},
html:function(f){return arguments.length?this.each(f==null?d8:(typeof f==="function"?V7:mS)(f)):this.node().innerHTML},
append:function(f){var W=typeof f==="function"?f:y(f);return this.select(function(){return this.appendChild(W.apply(this,arguments))})},
insert:function(f,W){var a=typeof f==="function"?f:y(f),Ak=W==null?KD:typeof W==="function"?W:T(W);return this.select(function(){return this.insertBefore(a.apply(this,arguments),Ak.apply(this,arguments)||null)})},
remove:function(){return this.each(UW)},
clone:function(f){return this.select(f?zS:eH)},
datum:function(f){return arguments.length?this.property("__data__",f):this.node().__data__},
on:function(f,W,a){var Ak=Mg(f+""),xq=Ak.length,ml;if(arguments.length<2){var r8=this.node().__on;if(r8)for(var W3=0,YZ=r8.length,qb;W3<YZ;++W3){var PS=0;for(qb=r8[W3];PS<xq;++PS)if((ml=Ak[PS]).type===qb.type&&ml.name===qb.name)return qb.value}}else{r8=W?A9:gf;a==null&&(a=!1);for(PS=0;PS<xq;++PS)this.each(r8(Ak[PS],W,a));return this}},
dispatch:function(f,W){return this.each((typeof W==="function"?OA:RH)(f,W))}};
var q8H=0;$Z.prototype=function(){return new $Z}.prototype={constructor:$Z,
get:function(f){for(var W=this._;!(W in f);)if(!(f=f.parentNode))return;return f[W]},
set:function(f,W){return f[this._]=W},
remove:function(f){return this._ in f&&delete f[this._]},
toString:function(){return this._}};
var TC=1/.7,LvQ=/^#([0-9a-f]{3})$/,dYQ=/^#([0-9a-f]{6})$/,Rl9=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Aef=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),YOi=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),PoY=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*\\)$"),
ENi=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),zlo=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*\\)$"),GAS={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};
Xb(JO,yN,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
Xb(G0,Ab,go(JO,{brighter:function(f){f=f==null?TC:Math.pow(TC,f);return new G0(this.r*f,this.g*f,this.b*f,this.opacity)},
darker:function(f){f=f==null?.7:Math.pow(.7,f);return new G0(this.r*f,this.g*f,this.b*f,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"#"+xD(this.r)+xD(this.g)+xD(this.b)},
toString:function(){var f=this.opacity;f=isNaN(f)?1:Math.max(0,Math.min(1,f));return(f===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))+(f===1?")":", "+f+")")}}));
Xb(pQ,NI,go(JO,{brighter:function(f){f=f==null?TC:Math.pow(TC,f);return new pQ(this.h,this.s,this.l*f,this.opacity)},
darker:function(f){f=f==null?.7:Math.pow(.7,f);return new pQ(this.h,this.s,this.l*f,this.opacity)},
rgb:function(){var f=this.h%360+(this.h<0)*360,W=this.l,a=W+(W<.5?W:1-W)*(isNaN(f)||isNaN(this.s)?0:this.s);W=2*W-a;return new G0(oG(f>=240?f-240:f+120,W,a),oG(f,W,a),oG(f<120?f+240:f-120,W,a),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 Z_A=Math.PI/180,uqD=180/Math.PI,wiZ=4/29,V_=6/29,tmq=3*V_*V_,idf=V_*V_*V_;Xb(XV,function(f,W,a,Ak){return arguments.length===1?EQ(f):new XV(f,W,a,Ak==null?1:Ak)},go(JO,{brighter:function(f){return new XV(this.l+18*(f==null?1:f),this.a,this.b,this.opacity)},
darker:function(f){return new XV(this.l-18*(f==null?1:f),this.a,this.b,this.opacity)},
rgb:function(){var f=(this.l+16)/116,W=isNaN(this.a)?f:f+this.a/500,a=isNaN(this.b)?f:f-this.b/200;W=.96422*GS(W);f=1*GS(f);a=.82521*GS(a);return new G0(Q7(3.1338561*W-1.6168667*f-.4906146*a),Q7(-.9787684*W+1.9161415*f+.033454*a),Q7(.0719453*W-.2289914*f+1.4052427*a),this.opacity)}}));
Xb(HS,ro,go(JO,{brighter:function(f){return new HS(this.h,this.c,this.l+18*(f==null?1:f),this.opacity)},
darker:function(f){return new HS(this.h,this.c,this.l-18*(f==null?1:f),this.opacity)},
rgb:function(){return EQ(this).rgb()}}));
var eS7=1.78277*-.29227-.1347134789;Xb(bi,nD,go(JO,{brighter:function(f){f=f==null?TC:Math.pow(TC,f);return new bi(this.h,this.s,this.l*f,this.opacity)},
darker:function(f){f=f==null?.7:Math.pow(.7,f);return new bi(this.h,this.s,this.l*f,this.opacity)},
rgb:function(){var f=isNaN(this.h)?0:(this.h+120)*Z_A,W=+this.l,a=isNaN(this.s)?0:this.s*W*(1-W),Ak=Math.cos(f);f=Math.sin(f);return new G0(255*(W+a*(-.14861*Ak+1.78277*f)),255*(W+a*(-.29227*Ak+-.90649*f)),255*(W+1.97294*Ak*a),this.opacity)}}));
var AdH=function a(W){function Ak(ml,r8){var W3=xq((ml=Ab(ml)).r,(r8=Ab(r8)).r),YZ=xq(ml.g,r8.g),qb=xq(ml.b,r8.b),PS=ka(ml.opacity,r8.opacity);return function(JE){ml.r=W3(JE);ml.g=YZ(JE);ml.b=qb(JE);ml.opacity=PS(JE);return ml+""}}
var xq=oN(W);Ak.gamma=a;return Ak}(1),YVm=lK(function(W){var a=W.length-1;
return function(Ak){var xq=Ak<=0?Ak=0:Ak>=1?(Ak=1,a-1):Math.floor(Ak*a),ml=W[xq],r8=W[xq+1];return Q$((Ak-xq/a)*a,xq>0?W[xq-1]:2*ml-r8,ml,r8,xq<a-1?W[xq+2]:2*r8-ml)}});
lK(function(W){var a=W.length;return function(Ak){var xq=Math.floor(((Ak%=1)<0?++Ak:Ak)*a);return Q$((Ak-xq/a)*a,W[(xq+a-1)%a],W[xq%a],W[(xq+1)%a],W[(xq+2)%a])}});
var iHk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,lWu=new RegExp(iHk.source,"g"),q7N=180/Math.PI,UUS={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},Cc,$Uk,hR7,ZwS,E7H=SG(function(W){if(W==="none")return UUS;Cc||(Cc=document.createElement("DIV"),$Uk=document.documentElement,hR7=document.defaultView);Cc.style.transform=W;W=hR7.getComputedStyle($Uk.appendChild(Cc),null).getPropertyValue("transform");$Uk.removeChild(Cc);W=W.slice(7,-1).split(",");return T0(+W[0],+W[1],+W[2],+W[3],
+W[4],+W[5])},"px, ","px)","deg)"),zRn=SG(function(W){if(W==null)return UUS;
ZwS||(ZwS=document.createElementNS("http://www.w3.org/2000/svg","g"));ZwS.setAttribute("transform",W);if(!(W=ZwS.transform.baseVal.consolidate()))return UUS;W=W.matrix;return T0(W.a,W.b,W.c,W.d,W.e,W.f)},", ",")",")");
li(aR);li(ka);VX(aR);VX(ka);uG(aR);var XXV=uG(ka),J2=0,IM=0,W6=0,pUk,Kc,fOq=0,u0=0,bwk=0,So=typeof performance==="object"&&performance.now?performance:Date,LAS=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(W){setTimeout(W,17)};
UJ.prototype=nz.prototype={constructor:UJ,restart:function(W,a,Ak){if(typeof W!=="function")throw new TypeError("Ae");Ak=(Ak==null?hl():+Ak)+(a==null?0:+a);this._next||Kc===this||(Kc?Kc._next=this:pUk=this,Kc=this);this._call=W;this._time=Ak;rh()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,rh())}};
var xNf=Y("start","end","interrupt"),ce0=[],i19=mm.prototype.constructor,o7b=0,Q_=mm.prototype;eV.prototype=function(W){return mm().transition(W)}.prototype={constructor:eV,
select:function(W){var a=this._name,Ak=this._id;typeof W!=="function"&&(W=T(W));for(var xq=this._groups,ml=xq.length,r8=Array(ml),W3=0;W3<ml;++W3)for(var YZ=xq[W3],qb=YZ.length,PS=r8[W3]=Array(qb),JE,u8,Dj=0;Dj<qb;++Dj)(JE=YZ[Dj])&&(u8=W.call(JE,JE.__data__,Dj,YZ))&&("__data__"in JE&&(u8.__data__=JE.__data__),PS[Dj]=u8,xUk(PS[Dj],a,Ak,Dj,PS,U2(JE,Ak)));return new eV(r8,this._parents,a,Ak)},
filter:function(W){typeof W!=="function"&&(W=CrN(W));for(var a=this._groups,Ak=a.length,xq=Array(Ak),ml=0;ml<Ak;++ml)for(var r8=a[ml],W3=r8.length,YZ=xq[ml]=[],qb,PS=0;PS<W3;++PS)(qb=r8[PS])&&W.call(qb,qb.__data__,PS,r8)&&YZ.push(qb);return new eV(xq,this._parents,this._name,this._id)},
merge:function(W){if(W._id!==this._id)throw Error();var a=this._groups;W=W._groups;for(var Ak=a.length,xq=Math.min(Ak,W.length),ml=Array(Ak),r8=0;r8<xq;++r8)for(var W3=a[r8],YZ=W[r8],qb=W3.length,PS=ml[r8]=Array(qb),JE,u8=0;u8<qb;++u8)if(JE=W3[u8]||YZ[u8])PS[u8]=JE;for(;r8<Ak;++r8)ml[r8]=a[r8];return new eV(ml,this._parents,this._name,this._id)},
selection:function(){return new i19(this._groups,this._parents)},
transition:function(){for(var W=this._name,a=this._id,Ak=++o7b,xq=this._groups,ml=xq.length,r8=0;r8<ml;++r8)for(var W3=xq[r8],YZ=W3.length,qb,PS=0;PS<YZ;++PS)if(qb=W3[PS]){var JE=U2(qb,a);xUk(qb,W,Ak,PS,W3,{time:JE.time+JE.delay+JE.duration,delay:0,duration:JE.duration,ease:JE.ease})}return new eV(xq,this._parents,W,Ak)},
call:Q_.call,nodes:Q_.nodes,node:Q_.node,size:Q_.size,empty:Q_.empty,each:Q_.each,on:function(W,a){var Ak=this._id;return arguments.length<2?U2(this.node(),Ak).on.on(W):this.each(UNY(Ak,W,a))},
attr:function(W,a){var Ak=c(W),xq=Ak==="transform"?zRn:RRf;return this.attrTween(W,typeof a==="function"?(Ak.local?mNo:ye9)(Ak,xq,OH6(this,"attr."+W,a)):a==null?(Ak.local?N3H:sYG)(Ak):(Ak.local?Jej:VMi)(Ak,xq,a+""))},
attrTween:function(W,a){var Ak="attr."+W;if(arguments.length<2)return(Ak=this.tween(Ak))&&Ak._value;if(a==null)return this.tween(Ak,null);if(typeof a!=="function")throw Error();var xq=c(W);return this.tween(Ak,(xq.local?T3Y:QYQ)(xq,a))},
style:function(W,a,Ak){var xq=W==="transform"?E7H:RRf;return a==null?this.styleTween(W,XM9(W,xq)).on("end.style."+W,SOn(W)):this.styleTween(W,typeof a==="function"?KUH(W,xq,OH6(this,"style."+W,a)):IXj(W,xq,a+""),Ak)},
styleTween:function(W,a,Ak){var xq="style."+W;if(arguments.length<2)return(xq=this.tween(xq))&&xq._value;if(a==null)return this.tween(xq,null);if(typeof a!=="function")throw Error();return this.tween(xq,WUF(W,a,Ak==null?"":Ak))},
text:function(W){return this.tween("text",typeof W==="function"?bdN(OH6(this,"text",W)):jYj(W==null?"":W+""))},
remove:function(){return this.on("end.remove",$NN(this._id))},
tween:function(W,a){var Ak=this._id;if(arguments.length<2){Ak=U2(this.node(),Ak).tween;for(var xq=0,ml=Ak.length,r8;xq<ml;++xq)if((r8=Ak[xq]).name===W)return r8.value;return null}return this.each((a==null?Odj:MMo)(Ak,W,a))},
delay:function(W){var a=this._id;return arguments.length?this.each((typeof W==="function"?vNf:gNo)(a,W)):U2(this.node(),a).delay},
duration:function(W){var a=this._id;return arguments.length?this.each((typeof W==="function"?nNn:Hdi)(a,W)):U2(this.node(),a).duration},
ease:function(W){var a=this._id;return arguments.length?this.each(rem(a,W)):U2(this.node(),a).ease}};
var ShP={time:null,delay:0,duration:250,ease:function(W){return((W*=2)<=1?W*W*W:(W-=2)*W*W+2)/2}};
mm.prototype.transition=function(W){var a;if(W instanceof eV){var Ak=W._id;W=W._name}else Ak=++o7b,(a=ShP).time=hl(),W=W==null?null:W+"";for(var xq=this._groups,ml=xq.length,r8=0;r8<ml;++r8)for(var W3=xq[r8],YZ=W3.length,qb,PS=0;PS<YZ;++PS)if(qb=W3[PS]){var JE=qb,u8=W,Dj=Ak,nq=PS,Z4=W3,$U;if(!($U=a))a:{$U=void 0;for(var w5=Ak;!($U=qb.__transition)||!($U=$U[w5]);)if(!(qb=qb.parentNode)){$U=(ShP.time=hl(),ShP);break a}}xUk(JE,u8,Dj,nq,Z4,$U)}return new eV(xq,this._parents,W,Ak)};
["e","w"].map(MVV);["n","s"].map(MVV);"n e s w nw ne se sw".split(" ").map(MVV);ssk.prototype=function(){return new ssk}.prototype={constructor:ssk,
moveTo:function(W,a){this._+="M"+(this._x0=this._x1=+W)+","+(this._y0=this._y1=+a)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(W,a){this._+="L"+(this._x1=+W)+","+(this._y1=+a)},
bezierCurveTo:function(W,a,Ak,xq,ml,r8){this._+="C"+ +W+","+ +a+","+ +Ak+","+ +xq+","+(this._x1=+ml)+","+(this._y1=+r8)},
rect:function(W,a,Ak,xq){this._+="M"+(this._x0=this._x1=+W)+","+(this._y0=this._y1=+a)+"h"+ +Ak+"v"+ +xq+"h"+-Ak+"Z"},
toString:function(){return this._}};
FTu.prototype=YVS.prototype={constructor:FTu,has:function(W){return" "+W in this},
get:function(W){return this[" "+W]},
set:function(W,a){this[" "+W]=a;return this},
remove:function(W){W=" "+W;return W in this&&delete this[W]},
clear:function(){for(var W in this)W[0]===" "&&delete this[W]},
keys:function(){var W=[],a;for(a in this)a[0]===" "&&W.push(a.slice(1));return W},
values:function(){var W=[],a;for(a in this)a[0]===" "&&W.push(this[a]);return W},
entries:function(){var W=[],a;for(a in this)a[0]===" "&&W.push({key:a.slice(1),value:this[a]});return W},
size:function(){var W=0,a;for(a in this)a[0]===" "&&++W;return W},
empty:function(){for(var W in this)if(W[0]===" ")return!1;return!0},
each:function(W){for(var a in this)a[0]===" "&&W(this[a],a.slice(1),this)}};
var dB=YVS.prototype;BrV.prototype=function(W,a){var Ak=new BrV;if(W instanceof BrV)W.each(function(r8){Ak.add(r8)});
else if(W){var xq=-1,ml=W.length;if(a==null)for(;++xq<ml;)Ak.add(W[xq]);else for(;++xq<ml;)Ak.add(a(W[xq],xq,W))}return Ak}.prototype={constructor:BrV,
has:dB.has,add:function(W){this[" "+W]=W;return this},
remove:dB.remove,clear:dB.clear,values:dB.keys,size:dB.size,empty:dB.empty,each:dB.each};var zRZ={},Ntk={},lpn=E7A(",").parse,xa9=E7A("\t").parse;i1E(lpn);i1E(xa9);var BZ=function(W,a,Ak){a=new VVV(a==null?B3i:a,Ak==null?aXH:Ak,NaN,NaN,NaN,NaN);return W==null?a:a.addAll(W)}.prototype=VVV.prototype;
BZ.copy=function(){var W=new VVV(this._x,this._y,this._x0,this._y0,this._x1,this._y1),a=this._root,Ak,xq;if(!a)return W;if(!a.length)return W._root=xaE(a),W;for(Ak=[{source:a,target:W._root=Array(4)}];a=Ak.pop();)for(var ml=0;ml<4;++ml)if(xq=a.source[ml])xq.length?Ak.push({source:xq,target:a.target[ml]=Array(4)}):a.target[ml]=xaE(xq);return W};
BZ.add=function(W){var a=+this._x.call(null,W),Ak=+this._y.call(null,W);return lpZ(this.cover(a,Ak),a,Ak,W)};
BZ.addAll=function(W){var a,Ak,xq=W.length,ml,r8,W3=Array(xq),YZ=Array(xq),qb=Infinity,PS=Infinity,JE=-Infinity,u8=-Infinity;for(Ak=0;Ak<xq;++Ak)isNaN(ml=+this._x.call(null,a=W[Ak]))||isNaN(r8=+this._y.call(null,a))||(W3[Ak]=ml,YZ[Ak]=r8,ml<qb&&(qb=ml),ml>JE&&(JE=ml),r8<PS&&(PS=r8),r8>u8&&(u8=r8));JE<qb&&(qb=this._x0,JE=this._x1);u8<PS&&(PS=this._y0,u8=this._y1);this.cover(qb,PS).cover(JE,u8);for(Ak=0;Ak<xq;++Ak)lpZ(this,W3[Ak],YZ[Ak],W[Ak]);return this};
BZ.cover=function(W,a){if(isNaN(W=+W)||isNaN(a=+a))return this;var Ak=this._x0,xq=this._y0,ml=this._x1,r8=this._y1;if(isNaN(Ak))ml=(Ak=Math.floor(W))+1,r8=(xq=Math.floor(a))+1;else if(Ak>W||W>ml||xq>a||a>r8){var W3=ml-Ak,YZ=this._root,qb;switch(qb=(a<(xq+r8)/2)<<1|W<(Ak+ml)/2){case 0:do{var PS=Array(4);PS[qb]=YZ;YZ=PS}while(W3*=2,ml=Ak+W3,r8=xq+W3,W>ml||a>r8);break;case 1:do PS=Array(4),PS[qb]=YZ,YZ=PS;while(W3*=2,Ak=ml-W3,r8=xq+W3,Ak>W||a>r8);break;case 2:do PS=Array(4),PS[qb]=YZ,YZ=PS;while(W3*=
2,ml=Ak+W3,xq=r8-W3,W>ml||xq>a);break;case 3:do PS=Array(4),PS[qb]=YZ,YZ=PS;while(W3*=2,Ak=ml-W3,xq=r8-W3,Ak>W||xq>a)}this._root&&this._root.length&&(this._root=YZ)}else return this;this._x0=Ak;this._y0=xq;this._x1=ml;this._y1=r8;return this};
BZ.data=function(){var W=[];this.visit(function(a){if(!a.length){do W.push(a.data);while(a=a.next)}});
return W};
BZ.extent=function(W){return arguments.length?this.cover(+W[0][0],+W[0][1]).cover(+W[1][0],+W[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
BZ.find=function(W,a,Ak){var xq=this._x0,ml=this._y0,r8,W3,YZ,qb,PS=this._x1,JE=this._y1,u8=[],Dj=this._root,nq;Dj&&u8.push(new F7(Dj,xq,ml,PS,JE));Ak==null?Ak=Infinity:(xq=W-Ak,ml=a-Ak,PS=W+Ak,JE=a+Ak,Ak*=Ak);for(;nq=u8.pop();)if(!(!(Dj=nq.node)||(r8=nq.x0)>PS||(W3=nq.y0)>JE||(YZ=nq.x1)<xq||(qb=nq.y1)<ml))if(Dj.length){nq=(r8+YZ)/2;var Z4=(W3+qb)/2;u8.push(new F7(Dj[3],nq,Z4,YZ,qb),new F7(Dj[2],r8,Z4,nq,qb),new F7(Dj[1],nq,W3,YZ,Z4),new F7(Dj[0],r8,W3,nq,Z4));if(Dj=(a>=Z4)<<1|W>=nq)nq=u8[u8.length-
1],u8[u8.length-1]=u8[u8.length-1-Dj],u8[u8.length-1-Dj]=nq}else if(nq=W-+this._x.call(null,Dj.data),Z4=a-+this._y.call(null,Dj.data),nq=nq*nq+Z4*Z4,nq<Ak){var $U=Math.sqrt(Ak=nq);xq=W-$U;ml=a-$U;PS=W+$U;JE=a+$U;$U=Dj.data}return $U};
BZ.remove=function(W){if(isNaN(qb=+this._x.call(null,W))||isNaN(PS=+this._y.call(null,W)))return this;var a,Ak=this._root,xq,ml=this._x0,r8=this._y0,W3=this._x1,YZ=this._y1,qb,PS,JE,u8,Dj,nq,Z4;if(!Ak)return this;if(Ak.length)for(;;){(Dj=qb>=(JE=(ml+W3)/2))?ml=JE:W3=JE;(nq=PS>=(u8=(r8+YZ)/2))?r8=u8:YZ=u8;if(!(a=Ak,Ak=Ak[Z4=nq<<1|Dj]))return this;if(!Ak.length)break;if(a[Z4+1&3]||a[Z4+2&3]||a[Z4+3&3]){var $U=a;var w5=Z4}}for(;Ak.data!==W;)if(!(xq=Ak,Ak=Ak.next))return this;(W=Ak.next)&&delete Ak.next;
if(xq)return W?xq.next=W:delete xq.next,this;if(!a)return this._root=W,this;W?a[Z4]=W:delete a[Z4];(Ak=a[0]||a[1]||a[2]||a[3])&&Ak===(a[3]||a[2]||a[1]||a[0])&&!Ak.length&&($U?$U[w5]=Ak:this._root=Ak);return this};
BZ.removeAll=function(W){for(var a=0,Ak=W.length;a<Ak;++a)this.remove(W[a]);return this};
BZ.root=function(){return this._root};
BZ.size=function(){var W=0;this.visit(function(a){if(!a.length){do++W;while(a=a.next)}});
return W};
BZ.visit=function(W){var a=[],Ak,xq=this._root,ml,r8,W3,YZ,qb;for(xq&&a.push(new F7(xq,this._x0,this._y0,this._x1,this._y1));Ak=a.pop();)if(!W(xq=Ak.node,r8=Ak.x0,W3=Ak.y0,YZ=Ak.x1,qb=Ak.y1)&&xq.length){Ak=(r8+YZ)/2;var PS=(W3+qb)/2;(ml=xq[3])&&a.push(new F7(ml,Ak,PS,YZ,qb));(ml=xq[2])&&a.push(new F7(ml,r8,PS,Ak,qb));(ml=xq[1])&&a.push(new F7(ml,Ak,W3,YZ,PS));(ml=xq[0])&&a.push(new F7(ml,r8,W3,Ak,PS))}};
BZ.visitAfter=function(W){var a=[],Ak=[],xq;for(this._root&&a.push(new F7(this._root,this._x0,this._y0,this._x1,this._y1));xq=a.pop();){var ml=xq.node;if(ml.length){var r8,W3=xq.x0,YZ=xq.y0,qb=xq.x1,PS=xq.y1,JE=(W3+qb)/2,u8=(YZ+PS)/2;(r8=ml[0])&&a.push(new F7(r8,W3,YZ,JE,u8));(r8=ml[1])&&a.push(new F7(r8,JE,YZ,qb,u8));(r8=ml[2])&&a.push(new F7(r8,W3,u8,JE,PS));(r8=ml[3])&&a.push(new F7(r8,JE,u8,qb,PS))}Ak.push(xq)}for(;xq=Ak.pop();)W(xq.node,xq.x0,xq.y0,xq.x1,xq.y1);return this};
BZ.x=function(W){return arguments.length?(this._x=W,this):this._x};
BZ.y=function(W){return arguments.length?(this._y=W,this):this._y};
var kyG=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;JQI.prototype=yQI.prototype;yQI.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 sm8,NRz={"%":function(W,a){return(W*100).toFixed(a)},
b:function(W){return Math.round(W).toString(2)},
c:function(W){return W+""},
d:function(W){return Math.round(W).toString(10)},
e:function(W,a){return W.toExponential(a)},
f:function(W,a){return W.toFixed(a)},
g:function(W,a){return W.toPrecision(a)},
o:function(W){return Math.round(W).toString(8)},
p:function(W,a){return cd8(W*100,a)},
r:cd8,s:function(W,a){var Ak=aOI(W,a);if(!Ak)return W+"";var xq=Ak[0];Ak=Ak[1];Ak=Ak-(sm8=Math.max(-8,Math.min(8,Math.floor(Ak/3)))*3)+1;var ml=xq.length;return Ak===ml?xq:Ak>ml?xq+Array(Ak-ml+1).join("0"):Ak>0?xq.slice(0,Ak)+"."+xq.slice(Ak):"0."+Array(1-Ak).join("0")+aOI(W,Math.max(0,a+Ak-1))[0]},
X:function(W){return Math.round(W).toString(16).toUpperCase()},
x:function(W){return Math.round(W).toString(16)}},Mwb="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),cdi;
(function(W){return cdi=Gyf(W)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Dx.prototype={constructor:Dx,reset:function(){this.s=this.t=0},
add:function(W){Vwq(txk,W,this.t);Vwq(this,txk.s,this.s);this.s?this.t+=txk.t:this.s=txk.t},
valueOf:function(){return this.s}};
var txk=new Dx,F4=Math.PI,F2=F4/2,kDG=F4/4,O19=F4*2,IWI=F4/180,qU=Math.abs,K4k=Math.atan,v7H=Math.atan2,BC=Math.cos,no=Math.sin,h4k=Math.sqrt;new Dx;new Dx;new Dx;var W4P=new Dx;(function(W,a,Ak,xq){return function(ml){function r8(t6,vv){W(t6,vv)&&ml.point(t6,vv)}
function W3(t6,vv){Dj.point(t6,vv)}
function YZ(){w0.point=W3;Dj.lineStart()}
function qb(){w0.point=r8;Dj.lineEnd()}
function PS(t6,vv){VS.push([t6,vv]);Z4.point(t6,vv)}
function JE(){Z4.lineStart();VS=[]}
function u8(){PS(VS[0][0],VS[0][1]);Z4.lineEnd();var t6=Z4.clean(),vv=nq.result(),tb=vv.length,ij;VS.pop();w5.push(VS);VS=null;if(tb)if(t6&1){if(tb=vv[0],(vv=tb.length-1)>0){$U||(ml.polygonStart(),$U=!0);ml.lineStart();for(t6=0;t6<vv;++t6)ml.point((ij=tb[t6])[0],ij[1]);ml.lineEnd()}}else tb>1&&t6&2&&vv.push(vv.pop().concat(vv.shift())),Zi.push(vv.filter(ueH))}
var Dj=a(ml),nq=tMY(),Z4=a(nq),$U=!1,w5,Zi,VS,w0={point:r8,lineStart:YZ,lineEnd:qb,polygonStart:function(){w0.point=PS;w0.lineStart=JE;w0.lineEnd=u8;Zi=[];w5=[]},
polygonEnd:function(){w0.point=r8;w0.lineStart=YZ;w0.lineEnd=qb;var t6=Zi,vv=t6.length;var tb=-1;for(var ij=0,aH,vx;++tb<vv;)ij+=t6[tb].length;for(aH=Array(ij);--vv>=0;)for(vx=t6[vv],tb=vx.length;--tb>=0;)aH[--ij]=vx[tb];Zi=aH;t6=w5;vv=xq[0];ij=xq[1];var Og=no(ij);tb=[no(vv),-BC(vv),0];vx=aH=0;W4P.reset();Og===1?ij=F2+1E-6:Og===-1&&(ij=-F2-1E-6);Og=0;for(var Kf=t6.length;Og<Kf;++Og)if(pg=(kW=t6[Og]).length){var kW,pg,uj=kW[pg-1],N1=uj[0],zy=uj[1]/2+kDG,wUk=no(zy),GDN=BC(zy);for(zy=0;zy<pg;++zy,N1=
js3,wUk=Z17,GDN=hI,uj=uNS){var uNS=kW[zy],js3=uNS[0];hI=uNS[1]/2+kDG;var Z17=no(hI),hI=BC(hI),vE=js3-N1,bHk=vE>=0?1:-1,fWk=bHk*vE,e46=fWk>F4;wUk*=Z17;W4P.add(v7H(wUk*bHk*no(fWk),GDN*hI+wUk*BC(fWk)));aH+=e46?vE+bHk*O19:vE;e46^N1>=vv^js3>=vv&&(uj=ydN(JdN(uj),JdN(uNS)),maH(uj),N1=ydN(tb,uj),maH(N1),N1=(e46^vE>=0?-1:1)*Csk(N1[2]),ij>N1||ij===N1&&(uj[0]||uj[1]))&&(vx+=e46^vE>=0?1:-1)}}t6=(aH<-1E-6||aH<1E-6&&W4P<-1E-6)^vx&1;Zi.length?($U||(ml.polygonStart(),$U=!0),wMm(Zi,elN,t6,Ak,ml)):t6&&($U||(ml.polygonStart(),
$U=!0),ml.lineStart(),Ak(null,null,1,ml),ml.lineEnd());$U&&(ml.polygonEnd(),$U=!1);Zi=w5=null},
sphere:function(){ml.polygonStart();ml.lineStart();Ak(null,null,1,ml);ml.lineEnd();ml.polygonEnd()}};
return w0}})(function(){return!0},function(W){var a=NaN,Ak=NaN,xq=NaN,ml;
return{lineStart:function(){W.lineStart();ml=1},
point:function(r8,W3){var YZ=r8>0?F4:-F4,qb=qU(r8-a);if(qU(qb-F4)<1E-6)W.point(a,Ak=(Ak+W3)/2>0?F2:-F2),W.point(xq,Ak),W.lineEnd(),W.lineStart(),W.point(YZ,Ak),W.point(r8,Ak),ml=0;else if(xq!==YZ&&qb>=F4){qU(a-xq)<1E-6&&(a-=xq*1E-6);qU(r8-YZ)<1E-6&&(r8-=YZ*1E-6);qb=a;var PS=Ak,JE=r8,u8,Dj,nq=no(qb-JE);Ak=qU(nq)>1E-6?K4k((no(PS)*(Dj=BC(W3))*no(JE)-no(W3)*(u8=BC(PS))*no(qb))/(u8*Dj*nq)):(PS+W3)/2;W.point(xq,Ak);W.lineEnd();W.lineStart();W.point(YZ,Ak);ml=0}W.point(a=r8,Ak=W3);xq=YZ},
lineEnd:function(){W.lineEnd();a=Ak=NaN},
clean:function(){return 2-ml}}},function(W,a,Ak,xq){W==null?(Ak*=F2,xq.point(-F4,Ak),xq.point(0,Ak),xq.point(F4,Ak),xq.point(F4,0),xq.point(F4,-Ak),xq.point(0,-Ak),xq.point(-F4,-Ak),xq.point(-F4,0),xq.point(-F4,Ak)):qU(W[0]-a[0])>1E-6?(W=W[0]<a[0]?F4:-F4,Ak=Ak*W/2,xq.point(-W,Ak),xq.point(0,Ak),xq.point(W,Ak)):xq.point(a[0],a[1])},[-F4,
-F2]);new Dx;new Dx;new Dx;new Dx;mU6.prototype={constructor:mU6,point:function(W,a){this.stream.point(W,a)},
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()}};
BC(30*IWI);(function(W){return function(a){var Ak=new mU6,xq;for(xq in W)Ak[xq]=W[xq];Ak.stream=a;return Ak}})({point:function(W,a){this.stream.point(W*IWI,a*IWI)}});
Qmq(function(W){return h4k(2/(1+W))}).invert=jo(function(W){return 2*Csk(W/2)});
Qmq(function(W){return(W=W>1?0:W<-1?F4:Math.acos(W))&&W/no(W)}).invert=jo(function(W){return W});
h4k(3);jo(K4k);jo(Csk);jo(function(W){return 2*K4k(W)});
bn.prototype=g78.prototype={constructor:bn,count:function(){return this.eachAfter(qOg)},
each:function(W){var a,Ak=[this],xq;do{var ml=Ak.reverse();for(Ak=[];a=ml.pop();)if(W(a),a=a.children){var r8=0;for(xq=a.length;r8<xq;++r8)Ak.push(a[r8])}}while(Ak.length);return this},
eachAfter:function(W){for(var a,Ak=[this],xq=[],ml,r8;a=Ak.pop();)if(xq.push(a),a=a.children)for(ml=0,r8=a.length;ml<r8;++ml)Ak.push(a[ml]);for(;a=xq.pop();)W(a);return this},
eachBefore:function(W){for(var a,Ak=[this],xq;a=Ak.pop();)if(W(a),a=a.children)for(xq=a.length-1;xq>=0;--xq)Ak.push(a[xq]);return this},
sum:function(W){return this.eachAfter(function(a){for(var Ak=+W(a.data)||0,xq=a.children,ml=xq&&xq.length;--ml>=0;)Ak+=xq[ml].value;a.value=Ak})},
sort:function(W){return this.eachBefore(function(a){a.children&&a.children.sort(W)})},
path:function(W){var a=this;var Ak=a;var xq=W;if(Ak!==xq){var ml=Ak.ancestors(),r8=xq.ancestors(),W3=null;Ak=ml.pop();for(xq=r8.pop();Ak===xq;)W3=Ak,Ak=ml.pop(),xq=r8.pop();Ak=W3}for(xq=[a];a!==Ak;)a=a.parent,xq.push(a);for(a=xq.length;W!==Ak;)xq.splice(a,0,W),W=W.parent;return xq},
ancestors:function(){for(var W=this,a=[W];W=W.parent;)a.push(W);return a},
links:function(){var W=this,a=[];W.each(function(Ak){Ak!==W&&a.push({source:Ak.parent,target:Ak})});
return a},
copy:function(){return g78(this).eachBefore(RSH)}};
(function(W,a){this._=W;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=a}).prototype=Object.create(bn.prototype);
var Ttk=new Date,Qsl=new Date,twq=ck(function(){},function(W,a){W.setTime(+W+a)},function(W,a){return a-W});
twq.every=function(W){W=Math.floor(W);return isFinite(W)&&W>0?W>1?ck(function(a){a.setTime(Math.floor(a/W)*W)},function(a,Ak){a.setTime(+a+Ak*W)},function(a,Ak){return(Ak-a)/W}):twq:null};
ck(function(W){W.setTime(Math.floor(W/1E3)*1E3)},function(W,a){W.setTime(+W+a*1E3)},function(W,a){return(a-W)/1E3},function(W){return W.getUTCSeconds()});
ck(function(W){W.setTime(Math.floor(W/6E4)*6E4)},function(W,a){W.setTime(+W+a*6E4)},function(W,a){return(a-W)/6E4},function(W){return W.getMinutes()});
ck(function(W){var a=W.getTimezoneOffset()*6E4%36E5;a<0&&(a+=36E5);W.setTime(Math.floor((+W-a)/36E5)*36E5+a)},function(W,a){W.setTime(+W+a*36E5)},function(W,a){return(a-W)/36E5},function(W){return W.getHours()});
var rdf=ck(function(W){W.setHours(0,0,0,0)},function(W,a){W.setDate(W.getDate()+a)},function(W,a){return(a-W-(a.getTimezoneOffset()-W.getTimezoneOffset())*6E4)/864E5},function(W){return W.getDate()-1}),RRo=qr(0),guk=qr(1);
qr(2);qr(3);var nuI=qr(4);qr(5);qr(6);ck(function(W){W.setDate(1);W.setHours(0,0,0,0)},function(W,a){W.setMonth(W.getMonth()+a)},function(W,a){return a.getMonth()-W.getMonth()+(a.getFullYear()-W.getFullYear())*12},function(W){return W.getMonth()});
var y_=ck(function(W){W.setMonth(0,1);W.setHours(0,0,0,0)},function(W,a){W.setFullYear(W.getFullYear()+a)},function(W,a){return a.getFullYear()-W.getFullYear()},function(W){return W.getFullYear()});
y_.every=function(W){return isFinite(W=Math.floor(W))&&W>0?ck(function(a){a.setFullYear(Math.floor(a.getFullYear()/W)*W);a.setMonth(0,1);a.setHours(0,0,0,0)},function(a,Ak){a.setFullYear(a.getFullYear()+Ak*W)}):null};
ck(function(W){W.setUTCSeconds(0,0)},function(W,a){W.setTime(+W+a*6E4)},function(W,a){return(a-W)/6E4},function(W){return W.getUTCMinutes()});
ck(function(W){W.setUTCMinutes(0,0,0)},function(W,a){W.setTime(+W+a*36E5)},function(W,a){return(a-W)/36E5},function(W){return W.getUTCHours()});
var H1A=ck(function(W){W.setUTCHours(0,0,0,0)},function(W,a){W.setUTCDate(W.getUTCDate()+a)},function(W,a){return(a-W)/864E5},function(W){return W.getUTCDate()-1}),AdG=Lm(0),vuk=Lm(1);
Lm(2);Lm(3);var HHS=Lm(4);Lm(5);Lm(6);ck(function(W){W.setUTCDate(1);W.setUTCHours(0,0,0,0)},function(W,a){W.setUTCMonth(W.getUTCMonth()+a)},function(W,a){return a.getUTCMonth()-W.getUTCMonth()+(a.getUTCFullYear()-W.getUTCFullYear())*12},function(W){return W.getUTCMonth()});
var mi=ck(function(W){W.setUTCMonth(0,1);W.setUTCHours(0,0,0,0)},function(W,a){W.setUTCFullYear(W.getUTCFullYear()+a)},function(W,a){return a.getUTCFullYear()-W.getUTCFullYear()},function(W){return W.getUTCFullYear()});
mi.every=function(W){return isFinite(W=Math.floor(W))&&W>0?ck(function(a){a.setUTCFullYear(Math.floor(a.getUTCFullYear()/W)*W);a.setUTCMonth(0,1);a.setUTCHours(0,0,0,0)},function(a,Ak){a.setUTCFullYear(a.getUTCFullYear()+Ak*W)}):null};
var n7S={"-":"",_:" ",0:"0"},J0=/^\s*\d+/,dJG=/^%/,LAF=/[\\^$*+?|[\]().{}]/g,qK6;(function(W){qK6=Y7g(W);ii8=qK6.utcFormat;lkZ=qK6.utcParse;return qK6})({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||ii8("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||lkZ("%Y-%m-%dT%H:%M:%S.%LZ");yX("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
yX("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");yX("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");yX("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");yX("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");yX("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");yX("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
yX("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");yX("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");yX("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");yX("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");yX("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var MwY=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(yX);GT(MwY);var smi=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(yX);GT(smi);var NRj=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(yX);GT(NRj);var VwQ=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(yX);
GT(VwQ);var Jd0=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(yX);GT(Jd0);var yd0=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(yX);GT(yd0);var maG=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(yX);GT(maG);var TRf=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(yX);GT(TRf);var QmQ=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(yX);GT(QmQ);var v7G=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(yX);GT(v7G);var g7i=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(yX);GT(g7i);var n7m=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(yX);GT(n7m);var H1H=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(yX);GT(H1H);var rdo=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(yX);GT(rdo);var Dao=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(yX);GT(Dao);var UaY=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(yX);GT(UaY);var $ao=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(yX);GT($ao);var Xdn=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(yX);GT(Xdn);var SVj=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(yX);GT(SVj);var IpH=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(yX);GT(IpH);var K$N=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(yX);GT(K$N);var W$N=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(yX);GT(W$N);var jmY=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(yX);GT(jmY);var b10=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(yX);GT(b10);var fp9=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(yX);GT(fp9);var pdW=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(yX);GT(pdW);var F$i=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(yX);GT(F$i);XXV(nD(300,.5,0),nD(-240,.5,1));XXV(nD(-100,.75,.35),nD(80,1.5,.8));XXV(nD(260,.75,.35),nD(80,1.5,.8));nD();Ab();G3k(yX("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
G3k(yX("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
G3k(yX("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
G3k(yX("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
b1N.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(W,a){W=+W;a=+a;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(W,a):this._context.moveTo(W,a);break;case 1:this._point=2;default:this._context.lineTo(W,a)}}};
(function(W){function a(Ak){return new fpE(W(Ak))}
a._curve=W;return a})(function(W){return new b1N(W)});
fpE.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(W,a){this._curve.point(a*Math.sin(W),a*-Math.cos(W))}};
DUk.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:rQP(this,this._t0,F$8(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(W,a){var Ak=NaN;W=+W;a=+a;if(W!==this._x1||a!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(W,a):this._context.moveTo(W,a);break;case 1:this._point=2;break;case 2:this._point=3;rQP(this,F$8(this,Ak=pdA(this,W,a)),Ak);break;default:rQP(this,this._t0,Ak=pdA(this,W,a))}this._x0=this._x1;this._x1=W;this._y0=this._y1;this._y1=a;this._t0=Ak}}};
(function(W){this._context=new BRG(W)}.prototype=Object.create(DUk.prototype)).point=function(W,a){DUk.prototype.point.call(this,a,W)};
BRG.prototype={moveTo:function(W,a){this._context.moveTo(a,W)},
closePath:function(){this._context.closePath()},
lineTo:function(W,a){this._context.lineTo(a,W)},
bezierCurveTo:function(W,a,Ak,xq,ml,r8){this._context.bezierCurveTo(a,W,xq,Ak,r8,ml)}};
B6.prototype={constructor:B6,scale:function(W){return W===1?this:new B6(this.k*W,this.x,this.y)},
translate:function(W,a){return W===0&a===0?this:new B6(this.k,this.x+this.k*W,this.y+this.k*a)},
apply:function(W){return[W[0]*this.k+this.x,W[1]*this.k+this.y]},
invert:function(W){return[(W[0]-this.x)/this.k,(W[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new B6(1,0,0);flk=yN;p6.svg=p6.svg;p6.xhtml=p6.xhtml;p6.xlink=p6.xlink;p6.xml=p6.xml;p6.xmlns=p6.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 xVE="hammer_"+(Math.random()*1E6|0),c4H=function(){var R=document||document;if(!R[xVE]){var A=function(){(function(Y,P,E,z){function c(XV,pu,GS){return setTimeout(Q(XV,GS),pu)}
function M(XV,pu,GS){return Array.isArray(XV)?(N(XV,GS[pu],GS),!0):!1}
function N(XV,pu,GS){var Q7;if(XV)if(XV.forEach)XV.forEach(pu,GS);else if(XV.length!==z){var sW=0;for(Q7=XV.length;sW<Q7;sW++)pu.call(GS,XV[sW],sW,XV)}else for(sW in XV)XV.hasOwnProperty(sW)&&pu.call(GS,XV[sW],sW,XV)}
function y(XV,pu,GS){for(var Q7=Object.keys(pu),sW=0,jc=Q7.length;sW<jc;sW++)if(!GS||GS&&XV[Q7[sW]]===z)XV[Q7[sW]]=pu[Q7[sW]];return XV}
function m(XV,pu){return y(XV,pu,!0)}
function T(XV,pu,GS){pu=pu.prototype;var Q7=XV.prototype=Object.create(pu);Q7.constructor=XV;Q7._super=pu;GS&&y(Q7,GS)}
function Q(XV,pu){return function(){return XV.apply(pu,arguments)}}
function g(XV,pu){return typeof XV=="function"?XV.apply(pu?pu[0]||z:z,pu):XV}
function r(XV,pu,GS){N(b(pu),function(Q7){XV.addEventListener(Q7,GS,!1)})}
function I(XV,pu,GS){N(b(pu),function(Q7){XV.removeEventListener(Q7,GS,!1)})}
function b(XV){return XV.trim().split(/\s+/g)}
function p(XV,pu,GS){if(XV.indexOf&&!GS)return XV.indexOf(pu);for(var Q7=0,sW=XV.length;Q7<sW;Q7++)if(GS&&XV[Q7][GS]==pu||!GS&&XV[Q7]===pu)return Q7;return-1}
function h(XV,pu,GS){for(var Q7=[],sW=[],jc=0,ro=XV.length;jc<ro;jc++){var HS=pu?XV[jc][pu]:XV[jc];p(sW,HS)<0&&Q7.push(XV[jc]);sW[jc]=HS}GS&&(Q7=pu?Q7.sort(function(nD,bi){return nD[pu]>bi[pu]}):Q7.sort());
return Q7}
function L(XV,pu){for(var GS,Q7=pu[0].toUpperCase()+pu.slice(1),sW=0,jc=OA.length;sW<jc;sW++)if(GS=(GS=OA[sW])?GS+Q7:pu,GS in XV)return GS;return z}
function Z(XV,pu){var GS=this;this.manager=XV;this.callback=pu;this.element=XV.element;this.target=XV.options.inputTarget;this.domHandler=function(Q7){g(XV.options.enable,[XV])&&GS.handler(Q7)};
this.evEl&&r(this.element,this.evEl,this.domHandler);this.evTarget&&r(this.target,this.evTarget,this.domHandler);this.evWin&&r(Y,this.evWin,this.domHandler)}
function w(XV){var pu;Ks?pu=hk:X4?pu=FV:yN?pu=i8:pu=nu;return new pu(XV,t)}
function t(XV,pu,GS){var Q7=GS.pointers.length,sW=GS.changedPointers.length,jc=pu&1&&Q7-sW===0;GS.isFirst=!!jc;GS.isFinal=!!(pu&12&&Q7-sW===0);jc&&(XV.session={});GS.eventType=pu;pu=XV.session;Q7=GS.pointers;sW=Q7.length;pu.firstInput||(pu.firstInput=d(GS));sW>1&&!pu.firstMultiple?pu.firstMultiple=d(GS):sW===1&&(pu.firstMultiple=!1);jc=pu.firstInput;var ro=(sW=pu.firstMultiple)?sW.center:jc.center,HS=GS.center=Jk(Q7);GS.timeStamp=Xb();GS.deltaTime=GS.timeStamp-jc.timeStamp;GS.angle=H3(ro,HS);GS.distance=
Qk(ro,HS);jc=GS.center;ro=pu.offsetDelta||{};HS=pu.prevDelta||{};var nD=pu.prevInput||{};if(GS.eventType===1||nD.eventType===4)HS=pu.prevDelta={x:nD.deltaX||0,y:nD.deltaY||0},ro=pu.offsetDelta={x:jc.x,y:jc.y};GS.deltaX=HS.x+(jc.x-ro.x);GS.deltaY=HS.y+(jc.y-ro.y);GS.offsetDirection=Nb(GS.deltaX,GS.deltaY);sW?(jc=sW.pointers,jc=Qk(Q7[0],Q7[1],Ab)/Qk(jc[0],jc[1],Ab)):jc=1;GS.scale=jc;sW?(sW=sW.pointers,Q7=H3(Q7[1],Q7[0],Ab)-H3(sW[1],sW[0],Ab)):Q7=0;GS.rotation=Q7;ro=pu.lastInterval||GS;Q7=GS.timeStamp-
ro.timeStamp;GS.eventType!=8&&(Q7>25||ro.velocity===z)?(jc=ro.deltaX-GS.deltaX,ro=ro.deltaY-GS.deltaY,HS=jc/Q7||0,nD=ro/Q7||0,Q7=HS,sW=nD,HS=$Z(HS)>$Z(nD)?HS:nD,jc=Nb(jc,ro),pu.lastInterval=GS):(HS=ro.velocity,Q7=ro.velocityX,sW=ro.velocityY,jc=ro.direction);GS.velocity=HS;GS.velocityX=Q7;GS.velocityY=sW;GS.direction=jc;pu=XV.element;a:{for(Q7=GS.srcEvent.target;Q7;){if(Q7==pu){Q7=!0;break a}Q7=Q7.parentNode}Q7=!1}Q7&&(pu=GS.srcEvent.target);GS.target=pu;XV.emit("hammer.input",GS);XV.recognize(GS);
XV.session.prevInput=GS}
function d(XV){for(var pu=[],GS=0;GS<XV.pointers.length;GS++)pu[GS]={clientX:mm(XV.pointers[GS].clientX),clientY:mm(XV.pointers[GS].clientY)};return{timeStamp:Xb(),pointers:pu,center:Jk(pu),deltaX:XV.deltaX,deltaY:XV.deltaY}}
function Jk(XV){var pu=XV.length;if(pu===1)return{x:mm(XV[0].clientX),y:mm(XV[0].clientY)};for(var GS=0,Q7=0,sW=0;sW<pu;sW++)GS+=XV[sW].clientX,Q7+=XV[sW].clientY;return{x:mm(GS/pu),y:mm(Q7/pu)}}
function Nb(XV,pu){return XV===pu?1:$Z(XV)>=$Z(pu)?XV>0?2:4:pu>0?8:16}
function Qk(XV,pu,GS){GS||(GS=hE);var Q7=pu[GS[0]]-XV[GS[0]];XV=pu[GS[1]]-XV[GS[1]];return Math.sqrt(Q7*Q7+XV*XV)}
function H3(XV,pu,GS){GS||(GS=hE);return Math.atan2(pu[GS[1]]-XV[GS[1]],pu[GS[0]]-XV[GS[0]])*180/Math.PI}
function nu(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;Z.apply(this,arguments)}
function hk(){this.evEl=sp;this.evWin=NI;Z.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function FV(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};Z.apply(this,arguments)}
function i8(){Z.apply(this,arguments);var XV=Q(this.handler,this);this.touch=new FV(this.manager,XV);this.mouse=new nu(this.manager,XV)}
function fD(XV,pu){this.manager=XV;this.set(pu)}
function NG(XV){if(XV.indexOf("none")>-1)return"none";var pu=XV.indexOf("pan-x")>-1,GS=XV.indexOf("pan-y")>-1;return pu&&GS?"pan-x pan-y":pu||GS?pu?"pan-x":"pan-y":XV.indexOf("manipulation")>-1?"manipulation":"auto"}
function d8(XV){this.id=go++;this.manager=null;this.options=m(XV||{},this.defaults);XV=this.options.enable;this.options.enable=XV===z?!0:XV;this.state=1;this.simultaneous={};this.requireFail=[]}
function mS(XV){return XV==16?"down":XV==8?"up":XV==2?"left":XV==4?"right":""}
function V7(XV,pu){return(pu=pu.manager)?pu.get(XV):XV}
function KD(){d8.apply(this,arguments)}
function UW(){KD.apply(this,arguments);this.pY=this.pX=null}
function eH(){KD.apply(this,arguments)}
function zS(){d8.apply(this,arguments);this._input=this._timer=null}
function RA(){KD.apply(this,arguments)}
function vS(){KD.apply(this,arguments)}
function Mg(){d8.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function gf(XV,pu){pu=pu||{};var GS=pu.recognizers;pu.recognizers=GS===z?gf.defaults.preset:GS;return new A9(XV,pu)}
function A9(XV,pu){pu=pu||{};this.options=m(pu,gf.defaults);this.options.inputTarget=this.options.inputTarget||XV;this.handlers={};this.session={};this.recognizers=[];this.element=XV;this.input=w(this);this.touchAction=new fD(this,this.options.touchAction);le(this,!0);N(pu.recognizers,function(GS){var Q7=this.add(new GS[0](GS[1]));GS[2]&&Q7.recognizeWith(GS[2]);GS[3]&&Q7.requireFailure(GS[2])},this)}
function le(XV,pu){var GS=XV.element;N(XV.options.cssProps,function(Q7,sW){GS.style[L(GS.style,sW)]=pu?Q7:""})}
function RH(XV,pu){var GS=P.createEvent("Event");GS.initEvent(XV,!0,!0);GS.gesture=pu;pu.target.dispatchEvent(GS)}
var OA=" webkit moz MS ms o".split(" "),wf=P.createElement("div"),mm=Math.round,$Z=Math.abs,Xb=Date.now,go=1,JO=/mobile|tablet|ip(ad|hone|od)|android/i,yN="ontouchstart"in Y,Ks=L(Y,"PointerEvent")!==z,X4=yN&&JO.test(navigator.userAgent),hE=["x","y"],Ab=["clientX","clientY"];Z.prototype={handler:function(){},
destroy:function(){this.evEl&&I(this.element,this.evEl,this.domHandler);this.evTarget&&I(this.target,this.evTarget,this.domHandler);this.evWin&&I(Y,this.evWin,this.domHandler)}};
var G0={mousedown:1,mousemove:2,mouseup:4};T(nu,Z,{handler:function(XV){var pu=G0[XV.type];pu&1&&XV.button===0&&(this.pressed=!0);pu&2&&XV.which!==1&&(pu=4);this.pressed&&this.allow&&(pu&4&&(this.pressed=!1),this.callback(this.manager,pu,{pointers:[XV],changedPointers:[XV],pointerType:"mouse",srcEvent:XV}))}});
var xD={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},sK={2:"touch",3:"pen",4:"mouse",5:"kinect"},sp="pointerdown",NI="pointermove pointerup pointercancel";Y.MSPointerEvent&&(sp="MSPointerDown",NI="MSPointerMove MSPointerUp MSPointerCancel");T(hk,Z,{handler:function(XV){var pu=this.store,GS=!1,Q7=XV.type.toLowerCase().replace("ms","");Q7=xD[Q7];var sW=sK[XV.pointerType]||XV.pointerType;Q7&1&&(XV.button===0||sW=="touch")?pu.push(XV):Q7&12&&(GS=!0);var jc=p(pu,XV.pointerId,"pointerId");
jc<0||(pu[jc]=XV,this.callback(this.manager,Q7,{pointers:pu,changedPointers:[XV],pointerType:sW,srcEvent:XV}),GS&&pu.splice(jc,1))}});
var pQ={touchstart:1,touchmove:2,touchend:4,touchcancel:8};T(FV,Z,{handler:function(XV){var pu=pQ[XV.type];var GS=Array.prototype.slice.call(XV.touches,0);var Q7=this.targetIds;if(pu&3&&GS.length===1)Q7[GS[0].identifier]=!0,Q7=[GS,GS];else{var sW,jc=Array.prototype.slice.call(XV.targetTouches,0),ro=Array.prototype.slice.call(XV.changedTouches,0),HS=[];if(pu===1)for(GS=0,sW=jc.length;GS<sW;GS++)Q7[jc[GS].identifier]=!0;GS=0;for(sW=ro.length;GS<sW;GS++)Q7[ro[GS].identifier]&&HS.push(ro[GS]),pu&12&&
delete Q7[ro[GS].identifier];Q7=HS.length?[h(jc.concat(HS),"identifier",!0),HS]:void 0}Q7&&this.callback(this.manager,pu,{pointers:Q7[0],changedPointers:Q7[1],pointerType:"touch",srcEvent:XV})}});
T(i8,Z,{handler:function(XV,pu,GS){var Q7=GS.pointerType=="mouse";if(GS.pointerType=="touch")this.mouse.allow=!1;else if(Q7&&!this.mouse.allow)return;pu&12&&(this.mouse.allow=!0);this.callback(XV,pu,GS)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var oG=L(wf.style,"touchAction"),EQ=oG!==z;fD.prototype={set:function(XV){XV=="compute"&&(XV=this.compute());EQ&&(this.manager.element.style[oG]=XV);this.actions=XV.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var XV=[];N(this.manager.recognizers,function(pu){g(pu.options.enable,[pu])&&(XV=XV.concat(pu.getTouchAction()))});
return NG(XV.join(" "))},
preventDefaults:function(XV){if(!EQ){var pu=XV.srcEvent;XV=XV.offsetDirection;if(this.manager.session.prevented)pu.preventDefault();else{var GS=this.actions,Q7=GS.indexOf("none")>-1,sW=GS.indexOf("pan-y")>-1;GS=GS.indexOf("pan-x")>-1;if(Q7||sW&&GS||sW&&XV&6||GS&&XV&24)return this.preventSrc(pu)}}},
preventSrc:function(XV){this.manager.session.prevented=!0;XV.preventDefault()}};
d8.prototype={defaults:{},set:function(XV){y(this.options,XV);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(XV){if(M(XV,"recognizeWith",this))return this;var pu=this.simultaneous;XV=V7(XV,this);pu[XV.id]||(pu[XV.id]=XV,XV.recognizeWith(this));return this},
dropRecognizeWith:function(XV){if(M(XV,"dropRecognizeWith",this))return this;XV=V7(XV,this);delete this.simultaneous[XV.id];return this},
requireFailure:function(XV){if(M(XV,"requireFailure",this))return this;var pu=this.requireFail;XV=V7(XV,this);p(pu,XV)===-1&&(pu.push(XV),XV.requireFailure(this));return this},
dropRequireFailure:function(XV){if(M(XV,"dropRequireFailure",this))return this;XV=V7(XV,this);XV=p(this.requireFail,XV);XV>-1&&this.requireFail.splice(XV,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(XV){return!!this.simultaneous[XV.id]},
emit:function(XV){function pu(sW){GS.manager.emit(GS.options.event+(sW?Q7&16?"cancel":Q7&8?"end":Q7&4?"move":Q7&2?"start":"":""),XV)}
var GS=this,Q7=this.state;Q7<8&&pu(!0);pu();Q7>=8&&pu(!0)},
tryEmit:function(XV){if(this.canEmit())return this.emit(XV);this.state=32},
canEmit:function(){for(var XV=0;XV<this.requireFail.length;XV++)if(!(this.requireFail[XV].state&33))return!1;return!0},
recognize:function(XV){XV=y({},XV);g(this.options.enable,[this,XV])?(this.state&56&&(this.state=1),this.state=this.process(XV),this.state&30&&this.tryEmit(XV)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
T(KD,d8,{defaults:{pointers:1},attrTest:function(XV){var pu=this.options.pointers;return pu===0||XV.pointers.length===pu},
process:function(XV){var pu=this.state,GS=XV.eventType,Q7=pu&6;XV=this.attrTest(XV);return Q7&&(GS&8||!XV)?pu|16:Q7||XV?GS&4?pu|8:pu&2?pu|4:2:32}});
T(UW,KD,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var XV=this.options.direction;if(XV===30)return["none"];var pu=[];XV&6&&pu.push("pan-y");XV&24&&pu.push("pan-x");return pu},
directionTest:function(XV){var pu=this.options,GS=!0,Q7=XV.distance,sW=XV.direction,jc=XV.deltaX,ro=XV.deltaY;sW&pu.direction||(pu.direction&6?(sW=jc===0?1:jc<0?2:4,GS=jc!=this.pX,Q7=Math.abs(XV.deltaX)):(sW=ro===0?1:ro<0?8:16,GS=ro!=this.pY,Q7=Math.abs(XV.deltaY)));XV.direction=sW;return GS&&Q7>pu.threshold&&sW&pu.direction},
attrTest:function(XV){return KD.prototype.attrTest.call(this,XV)&&(this.state&2||!(this.state&2)&&this.directionTest(XV))},
emit:function(XV){this.pX=XV.deltaX;this.pY=XV.deltaY;var pu=mS(XV.direction);pu&&this.manager.emit(this.options.event+pu,XV);this._super.emit.call(this,XV)}});
T(eH,KD,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(XV){return this._super.attrTest.call(this,XV)&&(Math.abs(XV.scale-1)>this.options.threshold||this.state&2)},
emit:function(XV){this._super.emit.call(this,XV);XV.scale!==1&&this.manager.emit(this.options.event+(XV.scale<1?"in":"out"),XV)}});
T(zS,d8,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(XV){var pu=this.options,GS=XV.pointers.length===pu.pointers,Q7=XV.distance<pu.threshold,sW=XV.deltaTime>pu.time;this._input=XV;if(!Q7||!GS||XV.eventType&12&&!sW)this.reset();else if(XV.eventType&1)this.reset(),this._timer=c(function(){this.state=8;this.tryEmit()},pu.time,this);
else if(XV.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(XV){this.state===8&&(XV&&XV.eventType&4?this.manager.emit(this.options.event+"up",XV):(this._input.timeStamp=Xb(),this.manager.emit(this.options.event,this._input)))}});
T(RA,KD,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(XV){return this._super.attrTest.call(this,XV)&&(Math.abs(XV.rotation)>this.options.threshold||this.state&2)}});
T(vS,KD,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return UW.prototype.getTouchAction.call(this)},
attrTest:function(XV){var pu=this.options.direction;if(pu&30)var GS=XV.velocity;else pu&6?GS=XV.velocityX:pu&24&&(GS=XV.velocityY);return this._super.attrTest.call(this,XV)&&pu&XV.direction&&$Z(GS)>this.options.velocity&&XV.eventType&4},
emit:function(XV){var pu=mS(XV.direction);pu&&this.manager.emit(this.options.event+pu,XV);this.manager.emit(this.options.event,XV)}});
T(Mg,d8,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(XV){var pu=this.options,GS=XV.pointers.length===pu.pointers,Q7=XV.distance<pu.threshold,sW=XV.deltaTime<pu.time;this.reset();if(XV.eventType&1&&this.count===0)return this.failTimeout();if(Q7&&sW&&GS){if(XV.eventType!=4)return this.failTimeout();GS=this.pTime?XV.timeStamp-this.pTime<pu.interval:!0;Q7=!this.pCenter||Qk(this.pCenter,XV.center)<pu.posThreshold;this.pTime=XV.timeStamp;this.pCenter=XV.center;Q7&&GS?this.count+=1:this.count=1;this._input=XV;if(this.count%pu.taps===0)return this.hasRequireFailures()?
(this._timer=c(function(){this.state=8;this.tryEmit()},pu.interval,this),2):8}return 32},
failTimeout:function(){this._timer=c(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))}});
gf.VERSION="2.0.2";gf.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[RA,{enable:!1}],[eH,{enable:!1},["rotate"]],[vS,{direction:6}],[UW,{direction:6},["swipe"]],[Mg],[Mg,{event:"doubletap",taps:2},["tap"]],[zS]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};A9.prototype={set:function(XV){y(this.options,XV);return this},
stop:function(XV){this.session.stopped=XV?2:1},
recognize:function(XV){var pu=this.session;if(!pu.stopped){this.touchAction.preventDefaults(XV);var GS=this.recognizers,Q7=pu.curRecognizer;if(!Q7||Q7&&Q7.state&8)Q7=pu.curRecognizer=null;for(var sW=0,jc=GS.length;sW<jc;sW++){var ro=GS[sW];pu.stopped===2||Q7&&ro!=Q7&&!ro.canRecognizeWith(Q7)?ro.reset():ro.recognize(XV);!Q7&&ro.state&14&&(Q7=pu.curRecognizer=ro)}}},
get:function(XV){if(XV instanceof d8)return XV;for(var pu=this.recognizers,GS=0;GS<pu.length;GS++)if(pu[GS].options.event==XV)return pu[GS];return null},
add:function(XV){if(M(XV,"add",this))return this;var pu=this.get(XV.options.event);pu&&this.remove(pu);this.recognizers.push(XV);XV.manager=this;this.touchAction.update();return XV},
remove:function(XV){if(M(XV,"remove",this))return this;var pu=this.recognizers;XV=this.get(XV);pu.splice(p(pu,XV),1);this.touchAction.update();return this},
on:function(XV,pu){var GS=this.handlers;N(b(XV),function(Q7){GS[Q7]=GS[Q7]||[];GS[Q7].push(pu)});
return this},
off:function(XV,pu){var GS=this.handlers;N(b(XV),function(Q7){pu?GS[Q7].splice(p(GS[Q7],pu),1):delete GS[Q7]});
return this},
emit:function(XV,pu){this.options.domEvents&&RH(XV,pu);var GS=this.handlers[XV]&&this.handlers[XV].slice();if(GS&&GS.length){pu.type=XV;pu.preventDefault=function(){pu.srcEvent.preventDefault()};
XV=0;for(var Q7=GS.length;XV<Q7;XV++)GS[XV](pu)}},
destroy:function(){this.element&&le(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
y(gf,{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:A9,Input:Z,TouchAction:fD,Recognizer:d8,AttrRecognizer:KD,Tap:Mg,Pan:UW,Swipe:vS,Pinch:eH,Rotate:RA,Press:zS,on:r,off:I,each:N,merge:m,extend:y,inherit:T,bindFn:Q,prefixed:L});
Y[E]=gf})(window,document,"Hammer");
return window.Hammer}.call({});
A.DOCUMENT=R;R[xVE]=A}return R[xVE]};/*

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

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

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
*/
_.jz({_template:function(){if(j9A!==void 0)return j9A;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;WOq===void 0&&(WOq=document.createElement("template"));var P=WOq;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return j9A=R},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.B9,_.W9],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(R){this.$.textarea.selectionStart=R},set selectionEnd(R){this.$.textarea.selectionEnd=R},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var R=this.$.textarea.validity.valid;R&&(this.required&&this.value===""?R=!1:this.hasValidator()&&(R=_.B9.validate.call(this,this.value)));this.invalid=!R;this.fire("iron-input-validate");return R},
_bindValueChanged:function(R){this.value=R},
_valueChanged:function(R){var A=this.textarea;A&&(A.value!==R&&(A.value=R||R===0?R:""),this.bindValue=R,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(R){var A=_.S0(R).path;this.value=A?A[0].value:R.target.value},
_constrain:function(R){var A;R=R||[""];for(A=this.maxRows>0&&R.length>this.maxRows?R.slice(0,this.maxRows):R.slice(0);this.rows>0&&A.length<this.rows;)A.push("");return A.join("\n")+"\u00a0"},
_valueForMirror:function(){var R=this.textarea;if(R)return this.tokens=R&&R.value?R.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var b08;var f58;_.jz({_template:function(){if(f58!==void 0)return f58;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;b08===void 0&&(b08=document.createElement("template"));var P=b08;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return f58=R},
is:"tp-yt-iron-collapse",behaviors:[_.Cr],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(R,A){R=R==="auto"?"":R;A=A&&!this.noAnimation&&this.isAttached&&this._desiredSize!==R;this._desiredSize=R;this._updateTransition(!1);A&&(A=this._calcSize(),R===""&&(this.style[this._dimensionMax]="",R=this._calcSize()),this.style[this._dimensionMax]=A,this.scrollTop=this.scrollTop,this._updateTransition(!0),A=R!==A);this.style[this._dimensionMax]=R;A||this._transitionEnd()},
enableTransition:function(R){_.jJ._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!R},
_updateTransition:function(R){this.style.transitionDuration=R&&!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(R){_.S0(R).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var pL7;var FOD;var Bcz=void 0,a5f={properties:{sizingTarget:{type:Object,value:function(){var R;return(R=this.hostElement)!=null?R: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 R,A=_.S0((R=this.hostElement)!=null?R:
this).parentNode;A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(A=A.host);return A},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 R;this._memoizedIsRTL=window.getComputedStyle((R=this.hostElement)!=null?R:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var R;window.getComputedStyle((R=this.hostElement)!=null?R: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 R,A=window.getComputedStyle((R=this.hostElement)!=null?R:this);R=window.getComputedStyle(this.sizingTarget);var Y,P,E;this._fitInfo={inlineStyle:{top:((Y=this.hostElement)!=null?Y:this).style.top||"",left:((P=this.hostElement)!=null?P:this).style.left||"",position:((E=this.hostElement)!=null?E:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:A.top!=="auto"?"top":A.bottom!=="auto"?"bottom":null,horizontally:A.left!=="auto"?"left":A.right!=="auto"?"right":null},sizedBy:{height:R.maxHeight!=="none",width:R.maxWidth!=="none",minWidth:parseInt(R.minWidth,10)||0,minHeight:parseInt(R.minHeight,10)||0},margin:{top:parseInt(A.marginTop,10)||0,right:parseInt(A.marginRight,10)||0,bottom:parseInt(A.marginBottom,10)||0,left:parseInt(A.marginLeft,10)||0}}}},
resetFit:function(){var R=this._fitInfo||{},A;for(A in R.sizerInlineStyle)this.sizingTarget.style[A]=R.sizerInlineStyle[A];for(A in R.inlineStyle){var Y=void 0;((Y=this.hostElement)!=null?Y:this).style[A]=R.inlineStyle[A]}this._fitInfo=null},
refit:function(){var R=this.sizingTarget.scrollLeft,A=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=R;this.sizingTarget.scrollTop=A},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var R;((R=this.hostElement)!=null?R:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var A;((A=this.hostElement)!=null?A:this).style.left="0px";var Y;((Y=this.hostElement)!=null?Y:this).style.top="0px";var P,E=((P=this.hostElement)!=null?P:this).getBoundingClientRect();A=this.__getNormalizedRect(this.positionTarget);P=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(P={left:P.left+24,right:P.right-24,top:P.top+24,bottom:P.bottom-24});if(this.expandSizingTargetForScrollbars){var z=this.sizingTarget.offsetWidth;var c=this.sizingTarget.offsetHeight;var M=this.sizingTarget.clientWidth;var N=this.sizingTarget.clientHeight}R=this._fitInfo.margin;A=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:E.width+R.left+R.right,height:E.height+R.top+R.bottom},E,A,P);var y=A.left+R.left,m=A.top+R.top;Y=Math.min(P.right-R.right,y+E.width);var T=Math.min(P.bottom-
R.bottom,m+E.height);y=Math.max(P.left+R.left,Math.min(y,Y-this._fitInfo.sizedBy.minWidth));m=Math.max(P.top+R.top,Math.min(m,T-this._fitInfo.sizedBy.minHeight));Y=Math.max(Y-y,this._fitInfo.sizedBy.minWidth);T=Math.max(T-m,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=Y+"px";this.sizingTarget.style.maxHeight=T+"px";y-=E.left;E=m-E.top;var Q;((Q=this.hostElement)!=null?Q:this).style.left=y+"px";var g;((g=this.hostElement)!=null?g:this).style.top=E+"px";if(this.expandSizingTargetForScrollbars){Q=
this.sizingTarget.offsetHeight;c=Q-this.sizingTarget.clientHeight-(c-N);if(c>0){this.sizingTarget.style.maxHeight=Math.min(P.height-R.top-R.bottom,T+c)+"px";c=this.sizingTarget.offsetHeight;N=c-Q;var r;A.verticalAlign==="top"?r=E:A.verticalAlign==="middle"?r=E-N/2:A.verticalAlign==="bottom"&&(r=E-N);r=Math.max(P.top+R.top,Math.min(r,P.bottom-R.bottom-c));var I;((I=this.hostElement)!=null?I:this).style.top=r+"px"}r=this.sizingTarget.offsetWidth;z=r-this.sizingTarget.clientWidth-(z-M);if(z>0){Bcz!==
void 0?M=Bcz:(M=document.createElement("div"),Object.assign(M.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),I=document.createElement("div"),I.style.width="200px",I.style.height="200px",M.appendChild(I),document.body.appendChild(M),Bcz=Math.abs(M.offsetWidth-100)>1?M.offsetWidth-M.clientWidth:0,document.body.removeChild(M),M=Bcz);this.sizingTarget.style.maxWidth=Math.min(P.width-R.left-R.right,Y+z-M)+"px";z=this.sizingTarget.offsetWidth+M;M=z-r;var b;
A.horizontalAlign==="left"?b=y:A.horizontalAlign==="center"?b=y-M/2:A.horizontalAlign==="right"&&(b=y-M);b=Math.max(P.left+R.left,Math.min(b,P.right-R.right-z));var p;((p=this.hostElement)!=null?p:this).style.left=b+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var R=this._fitInfo;if(!R.positionedBy.vertically){var A;((A=this.hostElement)!=null?A:this).style.position="fixed";var Y;((Y=this.hostElement)!=null?Y:this).style.top="0px"}if(!R.positionedBy.horizontally){var P;((P=this.hostElement)!=null?P:this).style.position="fixed";var E;((E=this.hostElement)!=null?E:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var z;A=((z=this.hostElement)!=null?z:this).getBoundingClientRect();
R.sizedBy.height||this.__sizeDimension(A,R.positionedBy.vertically,"top","bottom","Height");R.sizedBy.width||this.__sizeDimension(A,R.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(R,A,Y,P,E){this.__sizeDimension(R,A,Y,P,E)},
__sizeDimension:function(R,A,Y,P,E){var z=this._fitInfo,c=this.__getNormalizedRect(this.fitInto);c=E==="Width"?c.width:c.height;R=(A=A===P)?c-R[P]:R[Y];Y=z.margin[A?Y:P];P="offset"+E;var M;z=((M=this.hostElement)!=null?M:this)[P]-this.sizingTarget[P];this.sizingTarget.style["max"+E]=c-Y-R-z+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var R=this._fitInfo.positionedBy;if(!R.vertically||!R.horizontally){var A;((A=this.hostElement)!=null?A:this).style.position="fixed";if(!R.vertically){var Y;((Y=this.hostElement)!=null?Y:this).style.top="0px"}if(!R.horizontally){var P;((P=this.hostElement)!=null?P:this).style.left="0px"}var E;A=((E=this.hostElement)!=null?E:this).getBoundingClientRect();E=this.__getNormalizedRect(this.fitInto);if(!R.vertically){Y=E.top-A.top+(E.height-
A.height)/2;var z;((z=this.hostElement)!=null?z:this).style.top=Y+"px"}if(!R.horizontally){R=E.left-A.left+(E.width-A.width)/2;var c;((c=this.hostElement)!=null?c:this).style.left=R+"px"}}}},
__getNormalizedRect:function(R){return R===document.documentElement||R===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:R.getBoundingClientRect()},
__getOffscreenArea:function(R,A,Y){return Math.abs(Math.min(0,R.top)+Math.min(0,Y.bottom-(R.top+A.height)))*A.width+Math.abs(Math.min(0,R.left)+Math.min(0,Y.right-(R.left+A.width)))*A.height},
__getPosition:function(R,A,Y,P,E,z){var c=[{verticalAlign:"top",horizontalAlign:"left",top:E.top+this.verticalOffset,left:E.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:E.top+this.verticalOffset,left:E.right-Y.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:E.bottom-Y.height-this.verticalOffset,left:E.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:E.bottom-Y.height-this.verticalOffset,left:E.right-Y.width-
this.horizontalOffset}];if(this.noOverlap){for(var M=0,N=c.length;M<N;M++){var y={},m;for(m in c[M])y[m]=c[M][m];c.push(y)}c[0].top=c[1].top+=E.height;c[2].top=c[3].top-=E.height;c[4].left=c[6].left+=E.width;c[5].left=c[7].left-=E.width}A=A==="auto"?null:A;R=R==="auto"?null:R;R&&R!=="center"||(c.push({verticalAlign:"top",horizontalAlign:"center",top:E.top+this.verticalOffset+(this.noOverlap?E.height:0),left:E.left-P.width/2+E.width/2+this.horizontalOffset}),c.push({verticalAlign:"bottom",horizontalAlign:"center",
top:E.bottom-Y.height-this.verticalOffset-(this.noOverlap?E.height:0),left:E.left-P.width/2+E.width/2+this.horizontalOffset}));A&&A!=="middle"||(c.push({verticalAlign:"middle",horizontalAlign:"left",top:E.top-P.height/2+E.height/2+this.verticalOffset,left:E.left+this.horizontalOffset+(this.noOverlap?E.width:0)}),c.push({verticalAlign:"middle",horizontalAlign:"right",top:E.top-P.height/2+E.height/2+this.verticalOffset,left:E.right-Y.width-this.horizontalOffset-(this.noOverlap?E.width:0)}));A==="middle"&&
R==="center"&&c.push({verticalAlign:"middle",horizontalAlign:"center",top:E.top-P.height/2+E.height/2+this.verticalOffset,left:E.left-P.width/2+E.width/2+this.horizontalOffset});for(M=0;M<c.length;M++){P=c[M];E=P.verticalAlign===A;N=P.horizontalAlign===R;if(!this.dynamicAlign&&!this.noOverlap&&E&&N){var T=P;break}y=(!A||E)&&(!R||N);if(this.dynamicAlign||y){P.offscreenArea=this.__getOffscreenArea(P,Y,z);if(P.offscreenArea===0&&y){T=P;break}P.alignsOk=E+N;T=T||P;E=P.offscreenArea-T.offscreenArea;if(E<
0||E===0&&P.alignsOk>T.alignsOk)T=P}}return T}};/*

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 qY,Cxq,h8q;qY=Element.prototype;Cxq=qY.matches||qY.matchesSelector||qY.mozMatchesSelector||qY.msMatchesSelector||qY.oMatchesSelector||qY.webkitMatchesSelector;h8q=function(){};
_.ktH=function(R){var A=osE,Y=[];return A._collectTabbableNodes(R,Y)?A._sortByTabIndex(Y):Y};
_.l=h8q.prototype;_.l._normalizedTabIndex=function(R){return(Cxq.call(R,"input, select, textarea, button, object")?Cxq.call(R,":not([disabled])"):Cxq.call(R,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(R=R.getAttribute("tabindex")||0,Number(R)):-1};
_.l._collectTabbableNodes=function(R,A){if(R.nodeType!==Node.ELEMENT_NODE||!this._isVisible(R))return!1;var Y=this._normalizedTabIndex(R),P=Y>0;Y>=0&&A.push(R);if(R.localName==="content"||R.localName==="slot")Y=_.S0(R).getDistributedNodes();else{var E;Y=((E=_.S0(R).shadowRoot)!=null?E:_.S0(R.root||R)).children}for(R=0;R<Y.length;R++)P=this._collectTabbableNodes(Y[R],A)||P;return P};
_.l._isVisible=function(R){var A=R.style;return A.visibility!=="hidden"&&A.display!=="none"?(A=window.getComputedStyle(R),A.visibility!=="hidden"&&A.display!=="none"):!1};
_.l._sortByTabIndex=function(R){var A=R.length;if(A<2)return R;var Y=Math.ceil(A/2);A=this._sortByTabIndex(R.slice(0,Y));R=this._sortByTabIndex(R.slice(Y));return this._mergeSortByTabIndex(A,R)};
_.l._mergeSortByTabIndex=function(R,A){for(var Y=[];R.length>0&&A.length>0;)this._hasLowerTabOrder(R[0],A[0])?Y.push(A.shift()):Y.push(R.shift());return Y.concat(R,A)};
_.l._hasLowerTabOrder=function(R,A){R=Math.max(R.tabIndex,0);A=Math.max(A.tabIndex,0);return R===0||A===0?A>R:R>A};
var osE=new h8q;var GtG;var Z0A;_.jz({_template:function(){if(Z0A!==void 0)return Z0A;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;GtG===void 0&&(GtG=document.createElement("template"));var P=GtG;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return Z0A=R},
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&&_.S0(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.S0(this.parentNode).removeChild(this)},
_onTransitionend:function(R){R&&R.target===this&&this.complete()},
_openedChanged:function(R){R?this.prepare():(R=window.getComputedStyle(this),R.transitionDuration!=="0s"&&R.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 Lr=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;by(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)};
Lr.prototype._bringOverlayAtIndexToFront=function(R){var A=this._overlays[R];if(A){var Y=this._overlays.length-1,P=this._overlays[Y];P&&this._shouldBeBehindOverlay(A,P)&&Y--;if(!(R>=Y)){P=Math.max(this._getZ(_.tbS(this)),this._minimumZ);for(this._getZ(A)<=P&&this._applyOverlayZ(A,P);R<Y;)this._overlays[R]=this._overlays[R+1],R++;this._overlays[Y]=A}}};
Lr.prototype.addOverlay=function(R){var A=this._overlays.indexOf(R);if(A>=0)this._bringOverlayAtIndexToFront(A);else{A=this._overlays.length;var Y=this._overlays[A-1],P=Math.max(this._getZ(Y),this._minimumZ),E=this._getZ(R);Y&&this._shouldBeBehindOverlay(R,Y)&&(this._applyOverlayZ(Y,P),A--,P=Math.max(this._getZ(this._overlays[A-1]),this._minimumZ));E<=P&&this._applyOverlayZ(R,P);this._overlays.splice(A,0,R)}this.trackBackdrop()};
Lr.prototype.removeOverlay=function(R){R=this._overlays.indexOf(R);R!==-1&&(this._overlays.splice(R,1),this.trackBackdrop())};
_.tbS=function(R){return R._overlays[R._overlays.length-1]};
_.l=Lr.prototype;_.l.trackBackdrop=function(){var R=this._overlayWithBackdrop();if(R||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(R)-1,this.backdropElement.opened=!!R,this.backdropElement.prepare()};
_.l._overlayWithBackdrop=function(){for(var R=this._overlays.length-1;R>=0;R--)if(this._overlays[R].withBackdrop)return this._overlays[R]};
_.l._getZ=function(R){var A=this._minimumZ;if(R){var Y,P,E=Number(((Y=R.hostElement)!=null?Y:R).style.zIndex||window.getComputedStyle((P=R.hostElement)!=null?P:R).zIndex);E===E&&(A=E)}return A};
_.l._setZ=function(R,A){var Y;((Y=R.hostElement)!=null?Y:R).style.zIndex=A};
_.l._applyOverlayZ=function(R,A){this._setZ(R,A+2)};
_.l._overlayInPath=function(R){R=R||[];for(var A=0;A<R.length;A++){var Y=void 0;if(((Y=R[A].polymerController)!=null?Y:R[A])._manager===this)return R[A]}};
_.l._onCaptureClick=function(R){var A=this._overlays.length-1;if(A!==-1)for(var Y=_.S0(R).path,P,E;(P=this._overlays[A])&&this._overlayInPath(Y)!==((E=P.hostElement)!=null?E:P);)if(P._onCaptureClick(R),P.allowClickThrough)A--;else break};
_.l._onCaptureFocus=function(R){var A=_.tbS(this);A&&A._onCaptureFocus(R)};
_.l._onCaptureKeyDown=function(R){var A=_.tbS(this);A&&(_.Kr.keyboardEventMatchesKeys(R,"esc")?A._onCaptureEsc(R):_.Kr.keyboardEventMatchesKeys(R,"tab")&&A._onCaptureTab(R))};
_.l._shouldBeBehindOverlay=function(R,A){return!R.alwaysOnTop&&A.alwaysOnTop&&!A.contains(R)};
_.Yh.Object.defineProperties(Lr.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 R=document.activeElement;R&&R instanceof Element!==!1||(R=document.body);for(;R.root&&_.S0(R.root).activeElement;)R=_.S0(R.root).activeElement;return R}}});
_.dS=new Lr;var GpS=0,Z$k=0,tEJ=null,wm8=[],IK=["wheel","mousewheel","DOMMouseScroll"],uOq;_.v("web_no_lock_on_touchstart_killswitch")&&(IK.push("touchstart"),IK.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;_.RY={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:_.dS},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var R;return this._focusedChild||_.S0((R=this.hostElement)!=null?R:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var R;return _.ktH((R=this.hostElement)!=null?R: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 R;this._observer=_.S0((R=this.hostElement)!=null?R:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var R;_.S0((R=this.hostElement)!=null?R:this).unobserveNodes(this._observer)}this._observer=null;for(var A in this.__rafs)this.__rafs[A]!==null&&cancelAnimationFrame(this.__rafs[A]);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(R){this.fire("iron-overlay-canceled",R,{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 R;((R=this.hostElement)!=null?R:this).style.outline="none";var A;((A=this.hostElement)!=null?A:this).style.display="none"}},
_openedChanged:function(R){if(R){var A;((A=this.hostElement)!=null?A:this).removeAttribute("aria-hidden")}else{var Y;((Y=this.hostElement)!=null?Y: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 R;if(this.withBackdrop&&!((R=this.hostElement)!=null?R:this).hasAttribute("tabindex")){var A;((A=this.hostElement)!=null?A:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var Y;((Y=this.hostElement)!=null?Y: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 R;((R=this.hostElement)!=null?R:this).style.display="none";var A;((A=this.hostElement)!=null?A:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var R,A;((R=this.hostElement)!=null?R:this).style.transition=((A=this.hostElement)!=null?A:this).style.webkitTransition="none";var Y,P;((Y=this.hostElement)!=null?Y:this).style.transform=((P=this.hostElement)!=null?P:this).style.webkitTransform="none";var E;((E=this.hostElement)!=null?E:this).style.display=""},
_finishPositioning:function(){var R;((R=this.hostElement)!=null?R:this).style.display="none";this.scrollTop=this.scrollTop;var A,Y;((A=this.hostElement)!=null?A:this).style.transition=((Y=this.hostElement)!=null?Y:this).style.webkitTransition="";var P,E;((P=this.hostElement)!=null?P:this).style.transform=((E=this.hostElement)!=null?E:this).style.webkitTransform="";var z;((z=this.hostElement)!=null?z:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var R=this._manager.deepActiveElement,A;if(!(A=R===document.body))a:{for(;R;R=R.assignedSlot||R.parentNode||R.host)if(R===this){A=!0;break a}A=!1}A&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(R){this.noCancelOnOutsideClick||this.cancel(R)},
_onCaptureFocus:function(R){if(this.withBackdrop){var A=_.S0(R).path;A.indexOf(this)===-1?(R.stopPropagation(),this._applyFocus()):this._focusedChild=A[0]}},
_onCaptureEsc:function(R){this.noCancelOnEscKey||this.cancel(R)},
_onCaptureTab:function(R){if(this.withBackdrop){this.__ensureFirstLastFocusables();var A=R.shiftKey,Y=A?this.__firstFocusableNode:this.__lastFocusableNode;A=A?this.__lastFocusableNode:this.__firstFocusableNode;if(Y===A)Y=!0;else{var P=this._manager.deepActiveElement;Y=P===Y||P===this}Y&&(R.preventDefault(),this._focusedChild=A,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 R=this._focusableNodes;this.__firstFocusableNode=R[0];this.__lastFocusableNode=R[R.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(R,A){var Y=this.__rafs;Y[R]!==null&&cancelAnimationFrame(Y[R]);Y[R]=requestAnimationFrame(function(){Y[R]=null;A.call(this)}.bind(this))},
__updateScrollObservers:function(R,A,Y){R&&A&&this.__isValidScrollAction(Y)?(Y==="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),uOq=_._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()):(R=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),R!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(R,1),uOq=_._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(o$)for(var R=this;R;)R.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&R.host&&this.__rootNodes.push(R),R=R.host||R.assignedSlot||R.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(A){A.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(R){R.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(R){return R==="lock"||R==="refit"||R==="cancel"},
__onCaptureScroll:function(R){if(!(this.__isAnimating||_.S0(R).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(R)}},
__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)}};
_.Ae=[a5f,_.Cr,_.RY];_.jz({_template:function(){if(FOD!==void 0)return FOD;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;pL7===void 0&&(pL7=document.createElement("template"));var P=pL7;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return FOD=R},
is:"tp-yt-iron-dropdown",behaviors:[_.W9,_.Kr,_.Ae,$Vq],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 R=_.S0(this.$.content).getDistributedNodes(),A=0,Y=R.length;A<Y;A++)if(R[A].nodeType===Node.ELEMENT_NODE)return R[A]},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(),_.RY._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.RY._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.RY._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var R=this.containedElement,A=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),Y=0;Y<A.length;Y++)A[Y].node=R;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(R){this._readied&&(R?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var R=this.focusTarget||this.containedElement;R&&this.opened&&!this.noAutoFocus?R.focus():_.RY._applyFocus.apply(this,arguments)}});var wLH;var unH;/*

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 e8A=new _.pr({type:"iconset"});
_.jz({_template:function(){if(unH!==void 0)return unH;var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;wLH===void 0&&(wLH=document.createElement("template"));
var P=wLH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return unH=R},
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(R){R=(R||"").split(":");this._iconName=R.pop();this._iconsetName=R.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&&_.S0(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=e8A.byKey(this._iconsetName)){var R=this._iconset.applyIcon(this,this._iconName,this.theme);R&&R.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,_.S0(this.root).appendChild(this._img)}});var qrA;var LOH;_.jz({_template:function(){if(LOH!==void 0)return LOH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;qrA===void 0&&(qrA=document.createElement("template"));var P=qrA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return LOH=R},
is:"tp-yt-iron-input",behaviors:[_.B9],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(){_.eQ.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.S0(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.S0(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 R=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":R=/[0-9.,e-]/}return R},_bindValueChanged:function(R,A){A&&(R===void 0?A.value=null:R!==A.value&&(this.inputElement.value=R),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:R}))},
_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(R){var A=R.keyCode==19||R.keyCode==20||R.keyCode==45||R.keyCode==46||R.keyCode==144||R.keyCode==145||R.keyCode>32&&R.keyCode<41||R.keyCode>111&&R.keyCode<124;return!(R.keyCode==8||R.keyCode==9||R.keyCode==13||R.keyCode==27)&&!(R.charCode==0&&A)},
_onKeypress:function(R){if(this.allowedPattern||this.inputElement.type==="number"){var A=this._patternRegExp;if(A&&!(R.metaKey||R.ctrlKey||R.altKey)){this._patternAlreadyChecked=!0;var Y=String.fromCharCode(R.charCode);this._isPrintable(R)&&!A.test(Y)&&(R.preventDefault(),this._announceInvalidCharacter("Invalid character "+Y+" not entered."))}}},
_checkPatternValidity:function(){var R=this._patternRegExp;if(!R)return!0;for(var A=0;A<this.inputElement.value.length;A++)if(!R.test(this.inputElement.value[A]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var R=this.inputElement.checkValidity();R&&(this.required&&this.bindValue===""?R=!1:this.hasValidator()&&(R=_.B9.validate.call(this,this.bindValue)));this.invalid=!R;this.fire("iron-input-validate");return R},
_announceInvalidCharacter:function(R){this.fire("iron-announce",{text:R})},
_computeValue:function(R){return R}});var dhS;var R3N;var AVN=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),YRA=AVN&&AVN[1]>=8;
_.jz({_template:function(){if(R3N!==void 0)return R3N;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;dhS===void 0&&(dhS=document.createElement("template"));var P=dhS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return R3N=R},
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:[mrk,_.Cr,_.UVA,JfN],_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 _.S0(_.S0(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var R=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,R-this._physicalCount)},set _virtualStart(R){R=this._clamp(R,0,this._maxVirtualStart);this.grid&&(R-=R%this._itemsPerRow);this._virtualStartVal=R},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(R){R%=this._physicalCount;R<0&&(R=this._physicalCount+R);this.grid&&(R-=R%this._itemsPerRow);this._physicalStartVal=R},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(R){this._physicalCountVal=R},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 R=this._firstVisibleIndexVal;if(R==null){var A=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
R=this._iterateItems(function(Y,P){A+=this._getPhysicalSizeIncrement(Y);if(A>this._scrollPosition)return this.grid?P-P%this._itemsPerRow:P;if(this.grid&&this._virtualCount-1===P)return P-P%this._itemsPerRow})||0}return R},
get lastVisibleIndex(){var R=this._lastVisibleIndexVal;if(R==null){if(this.grid)R=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var A=this._physicalTop+this._scrollOffset;this._iterateItems(function(Y,P){A<this._scrollBottom&&(R=P);A+=this._getPhysicalSizeIncrement(Y)})}this._lastVisibleIndexVal=R}return R},
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,_.Wc);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(R){this.style.webkitOverflowScrolling=R===this?"touch":"";this.style.overflowY=R===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Wc)},
updateViewportBoundaries:function(){var R=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(R["padding-top"],10);this._isRTL=R.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var R=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),A=R-this._scrollPosition,Y=A>=0;this._scrollPosition=R;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(A)>this._physicalSize&&this._physicalSize>0?(A-=this._scrollOffset,Y=Math.round(A/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=Y,this._physicalStart+=Y,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(R=this._getReusables(Y),Y?(this._physicalTop=R.physicalTop,this._virtualStart+=R.indexes.length,this._physicalStart+=R.indexes.length):(this._virtualStart=this._virtualStart-R.indexes.length,this._physicalStart=this._physicalStart-R.indexes.length),this._update(R.indexes,Y?null:R.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),a$))},
_getReusables:function(R){var A=[],Y=this._hiddenContentSize*this._ratio,P=this._virtualStart,E=this._virtualEnd,z=this._physicalCount,c=this._physicalTop+this._scrollOffset;var M=this._physicalBottom+this._scrollOffset;var N=this._scrollPosition,y=this._scrollBottom;if(R){var m=this._physicalStart;M=N-c}else m=this._physicalEnd,M-=y;for(;;){var T=this._getPhysicalSizeIncrement(m);M-=T;if(A.length>=z||M<=Y)break;if(R){if(E+A.length+1>=this._virtualCount)break;if(c+T>=N-this._scrollOffset)break;A.push(m);
c+=T;m=(m+1)%z}else{if(P-A.length<=0)break;if(c+this._physicalSize-T<=y)break;A.push(m);c-=T;m=m===0?z-1:m-1}}return{indexes:A,physicalTop:c-this._scrollOffset}},
_update:function(R,A){if(!(R&&R.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(R);this._updateMetrics(R);if(A)for(;A.length;)R=A.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(R);this._positionItems();this._updateScrollerSize()}},
_createPool:function(R){this._ensureTemplatized();var A,Y=Array(R);for(A=0;A<R;A++){var P=this.stamp(null);Y[A]=P.root.querySelector("*");this._itemsParent.appendChild(P.root)}return Y},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(R){R=this._clamp(this._physicalCount+R,3,this._virtualCount-this._virtualStart);R=this._convertIndexToCompleteRow(R);if(this.grid){var A=R%this._itemsPerRow;A&&R-A<=this._physicalCount&&(R+=this._itemsPerRow);R-=A}R-=this._physicalCount;A=Math.round(this._physicalCount*.5);if(!(R<0)){if(R>0){A=window.performance.now();[].push.apply(this._physicalItems,this._createPool(R));for(var Y=0;Y<R;Y++)this._physicalSizes.push(0);this._physicalCount+=R;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=R);this._update();this._templateCost=(window.performance.now()-A)/R;A=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||A===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,A)),eYG):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,A),a$))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var R=this._getReusables(!0);this._physicalTop=R.physicalTop;this._virtualStart+=R.indexes.length;this._physicalStart+=R.indexes.length;this._update(R.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 R={__key__:!0};R[this.as]=!0;R[this.indexAs]=!0;R[this.selectedAs]=!0;R.tabIndex=!0;this._instanceProps=R;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(R,A){typeof A!=="undefined"&&(this.notifyResize(),_.Hy(),R&&this._updateGridMetrics())},
_itemsChanged:function(R){if(R.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,
_.Wc);else if(R.path==="items.splices"){this._adjustVirtualIndex(R.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(R.value.indexSplices.some(function(Y){return Y.addedCount>0||Y.removed.length>0})){var A=this._getActiveElement();
this.contains(A)&&A.blur()}R=R.value.indexSplices.some(function(Y){return Y.index+Y.addedCount>=this._virtualStart&&Y.index<=this._virtualEnd},this);
this._isClientFull()&&!R||this._debounce("_render",this._render,_.Wc)}else R.path!=="items.length"&&this._forwardItemPath(R.path,R.value)},
_forwardItemPath:function(R,A){R=R.slice(6);var Y=R.indexOf(".");Y===-1&&(Y=R.length);var P,E=this.modelForElement(this._offscreenFocusedItem),z=parseInt(R.substring(0,Y),10);if(P=this._isIndexRendered(z)){var c=this._getPhysicalIndex(z);var M=this.modelForElement(this._physicalItems[c])}else E&&(M=E);M&&M[this.indexAs]===z&&(R=R.substring(Y+1),R=this.as+(R?"."+R:""),M._setPendingPropertyOrPath(R,A,!1,!0),M._flushProperties&&M._flushProperties(),P&&(this._updateMetrics([c]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(R){R.forEach(function(A){A.removed.forEach(this._removeItem,this);A.index<this._virtualStart&&(A=Math.max(A.addedCount-A.removed.length,A.index-this._virtualStart),this._virtualStart+=A,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=A))},this)},
_removeItem:function(R){this.$.selector.deselect(R);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===R&&this._removeFocusedItem()},
_iterateItems:function(R,A){var Y,P;if(arguments.length===2&&A)for(P=0;P<A.length;P++){var E=A[P];var z=this._computeVidx(E);if((Y=R.call(this,E,z))!=null)return Y}else{E=this._physicalStart;for(z=this._virtualStart;E<this._physicalCount;E++,z++)if((Y=R.call(this,E,z))!=null)return Y;for(E=0;E<this._physicalStart;E++,z++)if((Y=R.call(this,E,z))!=null)return Y}},
_computeVidx:function(R){return R>=this._physicalStart?this._virtualStart+(R-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+R},
_assignModels:function(R){this._iterateItems(function(A,Y){var P=this._physicalItems[A],E=this.items&&this.items[Y];if(E!=null){var z=this.modelForElement(P);z.__key__=null;this._forwardProperty(z,this.as,E);this._forwardProperty(z,this.selectedAs,this.$.selector.isSelected(E));this._forwardProperty(z,this.indexAs,Y);this._forwardProperty(z,"tabIndex",this._focusedVirtualIndex===Y?0:-1);this._physicalIndexForKey[z.__key__]=A;z._flushProperties&&z._flushProperties(!0);P.removeAttribute("hidden")}else P.setAttribute("hidden",
"")},R)},
_updateMetrics:function(R){_.Hy();var A=0,Y=0,P=this._physicalAverageCount,E=this._physicalAverage;this._iterateItems(function(z){Y+=this._physicalSizes[z];this._physicalSizes[z]=this._physicalItems[z].offsetHeight;A+=this._physicalSizes[z];this._physicalAverageCount+=this._physicalSizes[z]?1:0},R);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(Y=this._itemsPerRow===1?Y:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+A-Y,this._itemsPerRow=1);this._physicalAverageCount!==P&&(this._physicalAverage=Math.round((E*P+A)/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 R=this._physicalTop;if(this.grid){var A=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(Y,P){var E=Math.floor(P%this._itemsPerRow*this._itemWidth+A);this._isRTL&&(E*=-1);this.translate3d(E+"px",R+"px",0,this._physicalItems[Y]);this._shouldRenderNextRow(P)&&(R+=this._rowHeight)})}else this._iterateItems(function(Y){this.translate3d(0,R+"px",0,this._physicalItems[Y]);
R+=this._physicalSizes[Y]})},
_getPhysicalSizeIncrement:function(R){return this.grid?this._computeVidx(R)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[R]},
_shouldRenderNextRow:function(R){return R%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var R=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(R!==0){this._physicalTop=this._physicalTop-R;var A=this._scrollPosition;!YRA&&A>0&&this._resetScrollPosition(A-R)}},
_resetScrollPosition:function(R){this.scrollTarget&&R>=0&&(this._scrollPosition=this._scrollTop=R)},
_updateScrollerSize:function(R){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((R=(R=(R=R||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(R){return this.scrollToIndex(this.items.indexOf(R))},
scrollToIndex:function(R){if(!(typeof R!=="number"||R<0||R>this.items.length-1)&&(_.Hy(),this._physicalCount!==0)){R=this._clamp(R,0,this._virtualCount-1);if(!this._isIndexRendered(R)||R>=this._maxVirtualStart)this._virtualStart=this.grid?R-this._itemsPerRow*2:R-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var A=this._physicalStart,Y=this._virtualStart,P=0,E=this._hiddenContentSize;Y<R&&
P<=E;)P+=this._getPhysicalSizeIncrement(A),A=(A+1)%this._physicalCount,Y++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+P);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)},_.Wc)},
selectItem:function(R){return this.selectIndex(this.items.indexOf(R))},
selectIndex:function(R){if(!(R<0||R>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(R)){var A=this.modelForElement(this._physicalItems[this._getPhysicalIndex(R)]);A&&(A[this.selectedAs]=!0);this.updateSizeForIndex(R)}this.$.selector.selectIndex(R)}},
deselectItem:function(R){return this.deselectIndex(this.items.indexOf(R))},
deselectIndex:function(R){R<0||R>=this._virtualCount||(this._isIndexRendered(R)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(R)])[this.selectedAs]=!1,this.updateSizeForIndex(R)),this.$.selector.deselectIndex(R))},
toggleSelectionForItem:function(R){return this.toggleSelectionForIndex(this.items.indexOf(R))},
toggleSelectionForIndex:function(R){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(R):this.$.selector.isSelected(this.items[R]))?this.deselectIndex(R):this.selectIndex(R)},
clearSelection:function(){this._iterateItems(function(R){this.modelForElement(this._physicalItems[R])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(R){(R?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(R){var A=this.modelForElement(R.target);if(A){var Y=_.S0(R).path[0];R=this._getActiveElement();var P=this._physicalItems[this._getPhysicalIndex(A[this.indexAs])];if(Y.localName!=="input"&&Y.localName!=="button"&&Y.localName!=="select"){Y=A.tabIndex;A.tabIndex=-100;var E=R?R.tabIndex:-1;A.tabIndex=Y;R&&P!==R&&P.contains(R)&&E!==-100||this.toggleSelectionForItem(A[this.as])}}},
_multiSelectionChanged:function(R){this.clearSelection();this.$.selector.multi=R},
updateSizeForItem:function(R){return this.updateSizeForIndex(this.items.indexOf(R))},
updateSizeForIndex:function(R){if(!this._isIndexRendered(R))return null;this._updateMetrics([this._getPhysicalIndex(R)]);this._positionItems();return null},
_manageFocus:function(){var R=this._focusedVirtualIndex;R>=0&&R<this._virtualCount?this._isIndexRendered(R)?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(R){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(R/this._itemsPerRow)*this._itemsPerRow:R},
_isIndexRendered:function(R){return R>=this._virtualStart&&R<=this._virtualEnd},
_isIndexVisible:function(R){return R>=this.firstVisibleIndex&&R<=this.lastVisibleIndex},
_getPhysicalIndex:function(R){return(this._physicalStart+(R-this._virtualStart))%this._physicalCount},
focusItem:function(R){this._focusPhysicalItem(R)},
_focusPhysicalItem:function(R){if(!(R<0||R>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(R)||this.scrollToIndex(R);var A=this._physicalItems[this._getPhysicalIndex(R)],Y=this.modelForElement(A),P;Y.tabIndex=-100;A.tabIndex===-100&&(P=A);P||(P=_.S0(A).querySelector('[tabindex="-100"]'));Y.tabIndex=0;this._focusedVirtualIndex=R;P&&P.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 R=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var A=this.stamp(null);this._focusBackfillItem=A.root.querySelector("*");this._itemsParent.appendChild(A.root)}this._offscreenFocusedItem=this._physicalItems[R];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[R]=this._focusBackfillItem;this._focusedPhysicalIndex=R;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var R=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),A=this._physicalItems[R];if(A){var Y=this.modelForElement(A),P=this.modelForElement(this._offscreenFocusedItem);Y[this.as]===P[this.as]?(this._focusBackfillItem=A,Y.tabIndex=-1,this._physicalItems[R]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(R){R=this.modelForElement(R.target);var A=this.modelForElement(this._focusedItem),Y=this._offscreenFocusedItem!==null,P=this._focusedVirtualIndex;R&&(A===R?this._isIndexVisible(P)||this.scrollToIndex(P):(this._restoreFocusedItem(),A&&(A.tabIndex=-1),R.tabIndex=0,this._focusedVirtualIndex=P=R[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(P),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],Y&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(R){switch(R.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&R.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&&R.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(R)}},
_clamp:function(R,A,Y){return Math.min(Y,Math.max(A,R))},
_debounce:function(R,A,Y){this._debouncers=this._debouncers||{};this._debouncers[R]=_.TJ(this._debouncers[R],Y,A.bind(this));_.QH(this._debouncers[R])},
_forwardProperty:function(R,A,Y){R._setPendingProperty(A,Y)},
_forwardHostPropV2:function(R,A){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Y){Y&&this.modelForElement(Y).forwardHostProp(R,A)},this)},
_notifyInstancePropV2:function(R,A,Y){YR6(this.as,A)&&(R=R[this.indexAs],A==this.as&&(this.items[R]=Y),this.notifyPath(yc(this.as,"items."+R,A),Y))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(R,A,Y){A.indexOf(this.as+".")===0&&this.notifyPath("items."+R.__key__+"."+A.slice(this.as.length+1),Y)},
_forwardParentPath:function(R,A){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Y){Y&&this.modelForElement(Y).notifyPath(R,A)},this)},
_forwardParentProp:function(R,A){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Y){Y&&(this.modelForElement(Y)[R]=A)},this)},
_getActiveElement:function(){var R=this._itemsParent.node.domHost;return _.S0(R?R.root:document).activeElement},
_scrollTargetChanged:function(R,A){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(A)if(R==="document")this.scrollTarget=this._doc;else if(typeof R==="string"){var Y,P;this.scrollTarget=(A=(P=(Y=this.domHost)==null?void 0:Y.polymerController)!=null?P:this.domHost)&&A.$?A.$[R]:_.S0(this.ownerDocument).querySelector("#"+R)}else this._isValidScrollTarget()&&(this._oldScrollTarget=R,this._toggleScrollListener(this._shouldHaveListener,R))}});var PDG;var EjS;var z3D=function(R,A,Y,P){R-=Y;A-=P;return Math.sqrt(R*R+A*A)},i6b=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
euq.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var q2k=function(R){R.maxRadius=0;R.mouseDownStart=0;R.mouseUpStart=0;R.xStart=0;R.yStart=0;R.xEnd=0;R.yEnd=0;R.containerMetrics=new euq(R.element)};
LsV.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var R=i6b()-this.mouseDownStart;this.mouseUpStart&&(R-=this.mouseUpElapsed);return R},get mouseUpElapsed(){return this.mouseUpStart?i6b()-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 R=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(R*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-R/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity===0&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var R=this.radius/(this.containerMetrics.size/2);var A=this.xNow-this.containerMetrics.width/2;var Y=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+A+"px, "+Y+"px)";this.waveContainer.style.transform="translate3d("+A+"px, "+Y+"px, 0)";this.wave.style.webkitTransform="scale("+R+","+R+")";this.wave.style.transform="scale3d("+R+","+R+",1)"},
downAction:function(R){var A=this.containerMetrics.width/2,Y=this.containerMetrics.height/2;q2k(this);this.mouseDownStart=i6b();this.center?(this.xStart=A,this.yStart=Y):(this.xStart=R?R.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=R?R.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=A,this.yEnd=Y);R=this.containerMetrics;A=this.xStart;Y=this.yStart;this.maxRadius=Math.max(z3D(A,Y,0,0),z3D(A,Y,
R.width,0),z3D(A,Y,0,R.height),z3D(A,Y,R.width,R.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=i6b())},
remove:function(){_.S0(_.S0(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.jz({_template:function(){if(EjS!==void 0)return EjS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;PDG===void 0&&(PDG=document.createElement("template"));var P=PDG;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return EjS=R},
is:"tp-yt-paper-ripple",behaviors:[_.Kr],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(){_.S0(this).parentNode.nodeType==11?this.keyEventTarget=_.S0(this).getOwnerRoot().host:this.keyEventTarget=_.S0(this).parentNode;var R=this.keyEventTarget;this.listen(R,"up","uiUpAction");this.listen(R,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(R){R.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var R=0;R<this.ripples.length;++R)if(!this.ripples[R].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(R){this.noink||this.downAction(R)},
downAction:function(R){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(R),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(R){this.noink||this.upAction(R)},
upAction:function(R){this.holdDown||(this.ripples.forEach(function(A){A.upAction(R)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var R=0;R<this.ripples.length;++R){var A=this.ripples[R];A.isOpacityFullyDecayed&&!A.isRestingAtMaxRadius&&this.removeRipple(A)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var R=new LsV(this);_.S0(this.$.waves).appendChild(R.waveContainer);this.$.background.style.backgroundColor=R.color;this.ripples.push(R);this._setAnimating(!0);return R},
removeRipple:function(R){var A=this.ripples.indexOf(R);A<0||(this.ripples.splice(A,1),R.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var R;for(R=0;R<this.ripples.length;++R){var A=this.ripples[R];A.draw();this.$.background.style.opacity=A.outerOpacity;A.isOpacityFullyDecayed&&!A.isRestingAtMaxRadius&&this.removeRipple(A)}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(R,A){A!==void 0&&(R?this.downAction():this.upAction())}});var YN={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(R){jQ._downHandler.call(this,R);this.pressed&&this.ensureRipple(R)},
ensureRipple:function(R){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var A=this._rippleContainer||this.root;A&&_.S0(A).appendChild(this._ripple);if(R){A=_.S0(this._rippleContainer||this);var Y=_.S0(R).rootTarget;A.deepContains(Y)&&this._ripple.uiDownAction(R)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(R){this.hasRipple()&&(this._ripple.noink=R)}};var l7f={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 R=1;this.disabled?R=0:this.active||this.pressed?R=4:this.receivedFocusFromKeyboard&&(R=3);this._setElevation(R)},
_computeKeyboardClass:function(R){this.toggleClass("keyboard-focus",R)},
_spaceKeyDownHandler:function(R){jQ._spaceKeyDownHandler.call(this,R);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(R){jQ._spaceKeyUpHandler.call(this,R);this.hasRipple()&&this._ripple.uiUpAction()}},xmZ=[J4f,
_.W9,YN,l7f];_.cVf={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(R){R&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=R)},
_createRipple:function(){var R=YN._createRipple();R.id="ink";R.setAttribute("center","");R.classList.add("circle");return R}};
_.O68=[J4f,_.W9,YN,_.cVf];_.MvS=[_.O68,T0H,{_checkedChanged:function(){mVS._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){YN._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var sLN;var NeZ;var VvD=function(){};
_.l=VvD.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._createRipple=function(){};
_.l._noinkChanged=function(){};
_.l._computeKeyboardClass=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setElevation=function(){};
VvD=_.jz({_template:function(){if(NeZ!==void 0)return NeZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;sLN===void 0&&(sLN=document.createElement("template"));var P=sLN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return NeZ=R},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[xmZ],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?l7f._calculateElevation.apply(this):this._setElevation(0)}});var JVA;var yVD;var mmH={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},isAriaModal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)","isAriaModalChanged(isAriaModal)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(R){_.v("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(R)},
_onDialogClickWrapped:function(R){_.v("dialog_behavior_no_tap_killswitch")||this._onDialogClick(R)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(R,A){A&&(R?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
isAriaModalChanged:function(R){if(R){var A;((A=this.hostElement)!=null?A:this).setAttribute("aria-modal","true")}else{var Y;((Y=this.hostElement)!=null?Y:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(R){this.closingReason=this.closingReason||{};this.closingReason.confirmed=R},
_onDialogClick:function(R){for(var A=_.S0(R).path,Y=0,P,E=A.indexOf((P=this.hostElement)!=null?P:this);Y<E;Y++)if(P=A[Y],P.hasAttribute&&(P.hasAttribute("dialog-dismiss")||P.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(P.hasAttribute("dialog-confirm"));this.close();R.stopPropagation();break}}},TeN=[_.Ae,
mmH];var QLE=document.createElement("template");_.D(QLE,'<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(QLE.content);var vjA=document.createElement("template");_.D(vjA,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(vjA.content);_.jz({_template:function(){if(yVD!==void 0)return yVD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;JVA===void 0&&(JVA=document.createElement("template"));var P=JVA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return yVD=R},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[TeN,$Vq],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 gjz;var njz;_.jz({_template:function(){if(njz!==void 0)return njz;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;gjz===void 0&&(gjz=document.createElement("template"));var P=gjz;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return njz=R},
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 R,A,Y;if(((R=window.ShadyDOM)==null?void 0:R.noPatch)!==!0&&((A=window.ShadyDOM)==null?void 0:A.noPatch)!=="on-demand"||((Y=this.__shady_parentNode)==null?void 0:Y.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(mmH)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var H6D=_.Z7(['<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>']),rVA=_.Qa8(H6D);rVA.setAttribute("style","display: none;");document.head.appendChild(rVA.content);var DmA;var Um8;var $mz;var XCS;_.jz({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[hX],configure:function(R){var A=R.node,Y=A.getBoundingClientRect().height;return this._effect=new KeyframeEffect(A,[{height:Y/2+"px"},{height:Y+"px"}],this.timingFromConfig(R))}});
_.jz({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[hX],configure:function(R){var A=R.node,Y=A.getBoundingClientRect().width;return this._effect=new KeyframeEffect(A,[{width:Y/2+"px"},{width:Y+"px"}],this.timingFromConfig(R))}});
_.jz({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[hX],configure:function(R){var A=R.node,Y=A.getBoundingClientRect().width;return this._effect=new KeyframeEffect(A,[{width:Y+"px"},{width:Y-Y/20+"px"}],this.timingFromConfig(R))}});
_.jz({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[hX],configure:function(R){var A=R.node,Y=A.getBoundingClientRect().height;this.setPrefixedProperty(A,"transformOrigin","0 0");return this._effect=new KeyframeEffect(A,[{height:Y+"px",transform:"translateY(0)"},{height:Y/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(R))}});var PM={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},SRD=function(){};
_.l=SRD.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._focusBlurHandler=function(){};
_.l._changedControlState=function(){};
_.l._setFocused=function(){};
SRD=_.jz({_template:function(){if(XCS!==void 0)return XCS;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-menu-button--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_menu_button.tp.yt.paper.menu.button.css.js--\x3e<div id="trigger" on-tap="toggle" class="style-scope tp-yt-paper-menu-button">\n  <slot name="dropdown-trigger" class="style-scope tp-yt-paper-menu-button"></slot>\n</div>\n\n<tp-yt-iron-dropdown id="dropdown" opened="{{opened}}" horizontal-align="[[horizontalAlign]]" vertical-align="[[verticalAlign]]" dynamic-align="[[dynamicAlign]]" horizontal-offset="[[horizontalOffset]]" vertical-offset="[[verticalOffset]]" no-overlap="[[noOverlap]]" open-animation-config="[[openAnimationConfig]]" close-animation-config="[[closeAnimationConfig]]" no-animations="[[noAnimations]]" focus-target="[[_dropdownContent]]" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" on-iron-overlay-canceled="__onIronOverlayCanceled" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-menu-button">\n  <div slot="dropdown-content" class="dropdown-content style-scope tp-yt-paper-menu-button">\n    <slot id="content" name="dropdown-content" class="style-scope tp-yt-paper-menu-button"></slot>\n  </div>\n</tp-yt-iron-dropdown>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;$mz===void 0&&($mz=document.createElement("template"));var P=$mz;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return XCS=R},
is:"tp-yt-paper-menu-button",behaviors:[_.Kr,_.W9],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:PM.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:PM.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:PM.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-shrink-height-animation",timing:{duration:200,easing:"ease-in"}}]}},
allowOutsideScroll:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},_dropdownContent:{type:Object},fitInto:{type:Object}},hostAttributes:{role:"group","aria-haspopup":"true"},listeners:{"iron-activate":"_onIronActivate","iron-select":"_onIronSelect"},get contentElement(){for(var R=_.S0(this.$.content).getDistributedNodes(),A=0,Y=R.length;A<Y;A++)if(R[A].nodeType===Node.ELEMENT_NODE)return R[A]},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(R,A){R?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):A!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(R){_.W9._disabledChanged.apply(this,arguments);R&&this.opened&&this.close()},
__onIronOverlayCanceled:function(R){var A=this.$.trigger;_.S0(R.detail).path.indexOf(A)>-1&&R.preventDefault()}});
Object.keys(PM).forEach(function(R){SRD[R]=PM[R]});var I7Z=_.bV.IronButtonState,K8A=(0,_.Wy)(HTMLElement);
_.jz({_template:function(){if(Um8!==void 0)return Um8;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;DmA===void 0&&(DmA=document.createElement("template"));var P=DmA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return Um8=R},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[I7Z,_.W9,YN,_.fr,_.B9],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(R){var A=(0,_.gv)(this);A.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:R});A.shadowRoot.appendChild(R);return K8A.prototype._attachDom.call(this,R)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var R=this.contentElement;R&&R.selectedItem&&this._setSelectedItem(R.selectedItem)},
get contentElement(){for(var R=_.S0(this.$.content).getDistributedNodes(),A=0,Y=R.length;A<Y;A++)if(R[A].nodeType===Node.ELEMENT_NODE)return R[A]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(R){this._setSelectedItem(R.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(R){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R)===this&&this.open()},
_selectedItemChanged:function(R){var A="";R?A=R.label||R.getAttribute("label")||R.textContent.trim():A="";this.value=A;this._setSelectedItemLabel(A)},
_computeMenuVerticalOffset:function(R,A){return A?A:R?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var R=this.opened?"true":"false",A=this.contentElement;A&&A.setAttribute("aria-expanded",R)},
_computeLabelClass:function(R,A,Y){var P="label";if(R)Y&&(P+=" label-is-hidden");else if(Y||A)P+=" label-is-floating";return P},
_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 W8f;var jL7;_.jz({is:"tp-yt-paper-icon-button",_template:function(){if(jL7!==void 0)return jL7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;W8f===void 0&&(W8f=document.createElement("template"));var P=W8f;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return jL7=R},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.O68],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(R,A){var Y=this.getAttribute("aria-label");Y&&A!=Y||this.setAttribute("aria-label",R)}});var b6S;var f78;_.EO=[J4f,_.W9,{hostAttributes:{role:"option",tabindex:"0"}}];_.jz({_template:function(){if(f78!==void 0)return f78;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;b6S===void 0&&(b6S=document.createElement("template"));var P=b6S;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return f78=R},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.EO]});var pCN;var F8H;var BeS={attached:function(){this.fire("addon-attached")},
update:function(){}};var a7D=1,CDf=1,h37=1,ojA=[_.W9,_.Kr,{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();!MB&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(R,A){R?R=R+" "+A:R=A;return R},
_onAddonAttached:function(R){R=_.S0(R).rootTarget;if(R.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,R.id);else{var A="paper-input-add-on-"+CDf++;R.id=A;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,A)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(R){_.W9._focusBlurHandler.call(this,R);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var R=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",R);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(R){try{var A=this.inputElement.selectionStart;this.value=R;this.inputElement.selectionStart=A;this.inputElement.selectionEnd=A}catch(Y){this.value=R}},
_computeAlwaysFloatLabel:function(R,A){return A||R},
_updateAriaLabelledBy:function(){var R=_.S0(this.root).querySelector("label");if(R){if(R.id)var A=R.id;else A="paper-input-label-"+a7D++,R.id=A;this._ariaLabelledBy=A}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+h37++)},
_onChange:function(R){this.shadowRoot&&this.fire(R.type,{sourceEvent:R},{node:this,bubbles:R.bubbles,cancelable:R.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var R=document.activeElement;R instanceof HTMLElement&&R!==document.body&&R!==document.documentElement||this._focusableElement.focus()}}}];var kGb;var GG8;_.jz({_template:function(){if(GG8!==void 0)return GG8;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;kGb===void 0&&(kGb=document.createElement("template"));var P=kGb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return GG8=R},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[BeS],properties:{_charCounterStr:{type:String,value:"0"}},update:function(R){if(R.inputElement){R.value=R.value||"";var A=R.value.toString().length.toString();R.inputElement.hasAttribute("maxlength")&&(A+="/"+R.inputElement.getAttribute("maxlength"));this._charCounterStr=A}}});var Z67;var tvE;_.jz({_template:function(){if(tvE!==void 0)return tvE;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Z67===void 0&&(Z67=document.createElement("template"));var P=Z67;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return tvE=R},
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 MK(this.attrForValue)},get _inputElement(){return _.S0(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(R){this._addons||(this._addons=[]);R=R.target;this._addons.indexOf(R)===-1&&(this._addons.push(R),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(R){this._handleValueAndAutoValidate(R.target)},
_onValueChanged:function(R){var A=R.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,A.value===void 0||A.value===""))return;this._handleValueAndAutoValidate(R.target)},
_handleValue:function(R){var A=this._inputElementValue;A||A===0||R.type==="number"&&!R.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:R,value:A,invalid:this.invalid})},
_handleValueAndAutoValidate:function(R){this.autoValidate&&R&&(this.invalid=!(R.validate?R.validate(this._inputElementValue):R.checkValidity()));this._handleValue(R)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(R){if(this._addons)for(var A,Y=0;A=this._addons[Y];Y++)A.update(R)},
_computeInputContentClass:function(R,A,Y,P,E){var z="input-content";R?(E&&(z+=" label-is-hidden"),P&&!this.noUnfloatedLabelError&&(z+=" is-invalid")):(R=this.querySelector("label"),A||E?(z+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",P?z+=" is-invalid":Y&&(z+=" label-is-highlighted")):(R&&(this.$.labelAndInputContainer.style.position="relative"),P&&!this.noUnfloatedLabelError&&(z+=" is-invalid")));Y&&(z+=" focused");return z},
_computeUnderlineClass:function(R,A){var Y="underline";A?Y+=" is-invalid":R&&(Y+=" is-highlighted");return Y},
_computeAddOnContentClass:function(R,A){var Y="add-on-content";A?Y+=" is-invalid":R&&(Y+=" is-highlighted");return Y}});var wCE;var u2S;_.jz({_template:function(){if(u2S!==void 0)return u2S;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;wCE===void 0&&(wCE=document.createElement("template"));var P=wCE;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return u2S=R},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[BeS],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(R){this._setInvalid(R.invalid)}});_.jz({is:"tp-yt-paper-input",_template:function(){if(F8H!==void 0)return F8H;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;pCN===void 0&&(pCN=document.createElement("template"));var P=pCN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return F8H=R},
behaviors:[ojA,_.fr],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 e3f;var qRf;_.jz({_template:function(){if(qRf!==void 0)return qRf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=
R.content,Y=A.insertBefore;e3f===void 0&&(e3f=document.createElement("template"));var P=e3f;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return qRf=R},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.EO]});var L8Z;var dmb;_.jz({_template:function(){if(dmb!==void 0)return dmb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;L8Z===void 0&&(L8Z=document.createElement("template"));var P=L8Z;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return dmb=R},
is:"tp-yt-paper-item-body"});var RzA;var ARq;var YkS=function(){};
_.l=YkS.prototype;_.l.indexOf=function(){};
_.l.selectPrevious=function(){};
_.l.selectNext=function(){};
_.l.selectIndex=function(){};
_.l.forceSynchronousItemUpdate=function(){};
_.l._checkFallback=function(){};
_.l._addListener=function(){};
_.l._removeListener=function(){};
_.l._activateEventChanged=function(){};
_.l._updateItems=function(){};
_.l._selectSelected=function(){};
_.l._filterItem=function(){};
_.l._valueToItem=function(){};
_.l._valueToIndex=function(){};
_.l._indexToValue=function(){};
_.l._valueForItem=function(){};
_.l._observeItems=function(){};
_.l._itemActivate=function(){};
_.l.multiChanged=function(){};
_.l._updateAttrForSelected=function(){};
_.l._updateSelected=function(){};
_.l._selectMulti=function(){};
_.l._selectionChange=function(){};
_.l._toggleSelected=function(){};
_.l._valuesToItems=function(){};
_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l.select=function(){};
_.l._resetTabindices=function(){};
_.l._updateMultiselectable=function(){};
_.l._focusWithKeyboardEvent=function(){};
_.l._clearSearchText=function(){};
_.l._focusPrevious=function(){};
_.l._focusNext=function(){};
_.l._applySelection=function(){};
_.l._focusedItemChanged=function(){};
_.l._onIronItemsChanged=function(){};
_.l._onShiftTabDown=function(){};
_.l._onFocus=function(){};
_.l._onUpKey=function(){};
_.l._onDownKey=function(){};
_.l._onEscKey=function(){};
_.l._onKeydown=function(){};
_.l._activateHandler=function(){};
_.l._disabledChanged=function(){};
_.l._setSelectedItem=function(){};
_.l._setItems=function(){};
_.l._setSelectedItems=function(){};
_.l._setFocusedItem=function(){};
YkS=_.jz({_template:function(){if(ARq!==void 0)return ARq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;RzA===void 0&&(RzA=document.createElement("template"));var P=RzA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return ARq=R},
is:"tp-yt-paper-listbox",behaviors:[nH8],hostAttributes:{role:"listbox"}});var PuA;var EBA;var zzE={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(R,A){return[R||A?"active":"",A?"cooldown":""].join(" ")},
__activeChanged:function(R,A){this.__setAriaHidden(!R);this.__coolingDown=!R&&A},
__altChanged:function(R){this.setAttribute("aria-label",R||"loading")},
__setAriaHidden:function(R){R?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.jz({_template:function(){if(EBA!==void 0)return EBA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;PuA===void 0&&(PuA=document.createElement("template"));var P=PuA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return EBA=R},
is:"tp-yt-paper-spinner",behaviors:[zzE]});var i7A;var l0b;_.jz({_template:function(){if(l0b!==void 0)return l0b;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;i7A===void 0&&(i7A=document.createElement("template"));var P=i7A;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return l0b=R},
is:"tp-yt-paper-spinner-lite",behaviors:[zzE]});var xcN;var cRN;_.jz({_template:function(){if(cRN!==void 0)return cRN;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;xcN===void 0&&(xcN=document.createElement("template"));var P=xcN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return cRN=R},
is:"tp-yt-paper-tab",behaviors:[_.W9,_.bV.IronButtonState,YN],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 R=_.S0(this).parentNode;return!!R&&!!R.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(R){if(this.link){var A=this.queryEffectiveChildren("a");A&&R.target!==A&&A.click()}}});var O7z;var MRD;var s2A=_.Z7(['<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>']),NAZ=_.Qa8(s2A);document.head.appendChild(NAZ.content);_.jz({_template:function(){if(MRD!==void 0)return MRD;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;O7z===void 0&&(O7z=document.createElement("template"));var P=O7z;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return MRD=R},
is:"tp-yt-paper-tabs",behaviors:[_.Cr,_.r4Z],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(R){_.S0(this).querySelectorAll("tp-yt-paper-tab").forEach(R?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(R){R.setAttribute("noink","")},
_removeNoinkAttribute:function(R){R.removeAttribute("noink")},
_computeScrollButtonClass:function(R,A,Y,P){return!A||Y?"hidden":R?P?"hidden":"not-visible":""},
_computeTabsContentClass:function(R,A){var Y="tabs-content";R&&(Y+=" scrollable");if(!R||A)Y+=" fit-container";return Y},
_computeSelectionBarClass:function(R,A){var Y="selection-bar";R?Y+=" hidden":A&&(Y+=" align-bottom");return Y},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(R){return""+R},
_onIronSelect:function(R){this._tabChanged(R.detail.item,this._previousTab);this._previousTab=R.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();_.aj._activateHandler.apply(this,arguments)},
_scheduleActivation:function(R,A){this._pendingActivationItem=R;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,A)},
_delayedActivationHandler:function(){var R=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;R.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(R){R.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(R,A){this.scrollable&&this._affectScroll(A&&-A.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(R){this.$.tabsContainer.scrollLeft+=R;R=this.$.tabsContainer.scrollLeft;this._leftHidden=R===0||this.hideScrollButtons;this._rightHidden=R===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(R,A){if(R){var Y=this.$.tabsContent.getBoundingClientRect(),P=Y.width,E=R.getBoundingClientRect();Y=E.left-Y.left;this._pos={width:this._calcPercent(E.width,P),left:this._calcPercent(Y,P)};if(this.noSlide||A==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var z=A.getBoundingClientRect();A=this.items.indexOf(A);R=this.items.indexOf(R);this.$.selectionBar.classList.add("expand");
R=A<R;this._isRTL&&(R=!R);R?this._positionBar(this._calcPercent(E.left+E.width-z.left,P)-5,this._left):this._positionBar(this._calcPercent(z.left+z.width-E.left,P)-5,this._calcPercent(Y,P)+5);this.scrollable&&this._scrollToSelectedIfNeeded(E.width,Y)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(R,A){A-=this.$.tabsContainer.scrollLeft;A<0?this.$.tabsContainer.scrollLeft+=A:(A+=R-this.$.tabsContainer.offsetWidth,A>0&&(this.$.tabsContainer.scrollLeft+=A))},
_calcPercent:function(R,A){return 100*R/A},
_positionBar:function(R,A){R=R||0;A=A||0;this._width=R;this._left=A;this.transform("translateX("+A+"%) scaleX("+R/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var R=this.$.selectionBar.classList;R.contains("expand")?(R.remove("expand"),R.add("contract"),this._positionBar(this._pos.width,this._pos.left)):R.contains("contract")&&R.remove("contract")}});var VR7;var JRz;_.jz({_template:function(){if(JRz!==void 0)return JRz;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;VR7===void 0&&(VR7=document.createElement("template"));var P=VR7;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return JRz=R},
is:"tp-yt-paper-textarea",behaviors:[ojA,_.fr],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(R){this.$.input.textarea.selectionStart=R},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(R){this.$.input.textarea.selectionEnd=R},_ariaLabelledByChanged:function(R){this._focusableElement.setAttribute("aria-labelledby",R)},
_ariaDescribedByChanged:function(R){this._focusableElement.setAttribute("aria-describedby",R)},
get _focusableElement(){return this.inputElement.textarea}});var yRz;var mcf;/*

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 TAz=function(){};
_.l=TAz.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
TAz=_.jz({is:"tp-yt-paper-toggle-button",_template:function(){if(mcf!==void 0)return mcf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;yRz===void 0&&(yRz=document.createElement("template"));var P=yRz;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return mcf=R},
behaviors:[_.MvS],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");_.RK(this,function(){_.Bu(this,"pan-y")})},
_ontrack:function(R){R=R.detail;R.state==="start"?this._trackStart(R):R.state==="track"?this._trackMove(R):R.state==="end"&&this._trackEnd(R)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(R){R=R.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+R:R)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+R:R));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 R=YN._createRipple();R.id="ink";R.setAttribute("recenters","");R.classList.add("circle","toggle-ink");return R}});var Q2E;var vBZ;_.jz({_template:function(){if(vBZ!==void 0)return vBZ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Q2E===void 0&&(Q2E=document.createElement("template"));var P=Q2E;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return vBZ=R},
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 R=_.S0(this).parentNode,A=_.S0(this).getOwnerRoot(),Y;this.for?Y=_.S0(A).querySelector("#"+this.for):Y=R.nodeType==Node.DOCUMENT_FRAGMENT_NODE?A.host:R;return Y},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(R){R==="entry"?this.show():R==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.S0(this).textContent.trim()===""){for(var R=!0,A=_.S0(this).getEffectiveChildNodes(),Y=0;Y<A.length;Y++)if(A[Y].textContent.trim()!==""){R=!1;break}if(R)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 R=this.offset;this.marginTop!=14&&this.offset==14&&(R=this.marginTop);var A=this.offsetParent.getBoundingClientRect(),Y=this._target.getBoundingClientRect(),P=this.getBoundingClientRect(),E=(Y.width-P.width)/2,z=(Y.height-P.height)/2,c=Y.left-A.left,M=Y.top-A.top;switch(this.position){case "top":var N=c+E;var y=M-P.height-R;break;case "bottom":N=c+E;y=M+Y.height+R;break;case "left":N=c-P.width-R;y=M+z;break;case "right":N=c+Y.width+
R,y=M+z}this.fitToVisibleBounds?(A.left+N+P.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,N)+"px",this.style.right="auto"),A.top+y+P.height>window.innerHeight?(this.style.bottom=A.height+"px",this.style.top="auto"):(this.style.top=Math.max(-A.top,y)+"px",this.style.bottom="auto")):(this.style.left=N+"px",this.style.top=y+"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(R){R!==500&&this.updateStyles({"--paper-tooltip-delay-in":R+"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(R){if(R==="entry"&&this.animationEntry!=="")return this.animationEntry;if(R==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[R]&&typeof this.animationConfig[R][0].name==="string"){if(this.animationConfig[R][0].timing&&this.animationConfig[R][0].timing.delay&&this.animationConfig[R][0].timing.delay!==0){var A=this.animationConfig[R][0].timing.delay;R==="entry"?this.updateStyles({"--paper-tooltip-delay-in":A+"ms"}):R==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":A+
"ms"})}return this.animationConfig[R][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 gBf=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(gBf,_.lb);var nBA=_.Te(gBf,[0,_.A8]);var io=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(io,_.lb);var H77=[3,4],rRE=[5,6];var Dcz=[0,H77,rRE,_.i6,-1,_.R7,_.l6,-1,Yj3,EYI];var UcE=_.Te(io,Dcz),$c8=_.gZ(Dcz);var Xbb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Xbb,_.lb);var SkD=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(SkD,_.lb);var I0H=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(I0H,_.lb);var KhZ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(KhZ,_.lb);var WhS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(WhS,_.lb);var lo=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(lo,_.lb);lo.prototype.getSource=function(){return _.SR(this,1)};
lo.prototype.getMessage=function(){return _.X1(this,4)};
lo.prototype.getData=function(){return _.cG(this,WhS,8)};var j2S=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(j2S,_.lb);var xN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(xN,_.lb);var cM=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(cM,_.lb);var OO=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(OO,_.lb);OO.prototype.getUrl=function(){return _.X1(this,1)};
OO.prototype.setUrl=function(R){return _.IS(this,1,R)};
OO.prototype.hasUrl=function(){return _.vF(_.yT(this,1))!=null};var b7G=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(b7G,_.lb);var f0q=[3];var pbq=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(pbq,_.lb);var MN=function(R){var A=new pbq;return _.OF(A,2,R)};
pbq.prototype.getLanguage=function(){return K7(this,4,sO)};
var FhG=function(R){var A=MN(1);return _.Ug(A,6,sO,R)},sO=[3,
4,5,6];var BAH=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(BAH,_.lb);var NN=function(R){var A=new BAH;return _.OF(A,1,R)},VB=function(R,A){return _.Ug(R,2,a0A,A)},a0A=[2,
3,4,5];var CuA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(CuA,_.lb);var Je=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Je,_.lb);var hz7=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(hz7,_.lb);var oBf=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(oBf,_.lb);var kxb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(kxb,_.lb);var GxD=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(GxD,_.lb);var Z7H=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Z7H,_.lb);var yB=function(R){return _.cG(R,cM,5)};var tRN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(tRN,_.lb);tRN.prototype.getValue=function(){return Uk(this,1)};var wbS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(wbS,_.lb);var mU=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(mU,_.lb);mU.prototype.getMetadata=function(){return _.Wb(this,kxb,7,Ty)};
mU.prototype.hasMetadata=function(){return _.Tx(this,kxb,7,Ty)};
var u1f=_.Cbu(mU),Ty=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var QB=function(R){this.JSC$12009_name_=R;this.files_=[];this.directories_=[];this.directoryMap_={}};
QB.prototype.getName=function(){return this.JSC$12009_name_};var g3=function(R,A){this.callback_=A;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new QB("");ezA(this,R,this.rootDirectory_);vM(this)},ezA=function(R,A,Y){for(var P=0;P<A.length;P++){var E=A[P];
E.isFile?(R.fileOps_++,E.file((0,_.Wv)(R.handleFileSuccess_,R,Y),(0,_.Wv)(R.handleFileError_,R))):R.unscannedDirectories_.push(new qkf(E,Y))}},vM=function(R){if(R.unscannedDirectories_.length>0&&R.directoryOps_<5&&!R.hasError_){R.directoryOps_++;
var A=R.unscannedDirectories_.shift(),Y=A.entry,P=new QB(Y.name);A=A.parent;A.directoryMap_[P.getName()]=P;A.directories_.push(P);Y=Y.createReader();Y.readEntries((0,_.Wv)(R.handleDirectorySuccess_,R,Y,P),(0,_.Wv)(R.handleDirectoryError_,R))}R.directoryOps_!=0||R.fileOps_!=0||R.unscannedDirectories_.length!=0&&!R.hasError_||R.callback_(R.rootDirectory_.files_,R.rootDirectory_.directories_,R.hasError_)};
g3.prototype.handleDirectorySuccess_=function(R,A,Y){ezA(this,Y,A);Y.length==0?(this.directoryOps_--,vM(this)):R.readEntries((0,_.Wv)(this.handleDirectorySuccess_,this,R,A),(0,_.Wv)(this.handleDirectoryError_,this))};
g3.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;vM(this)};
g3.prototype.handleFileSuccess_=function(R,A){R.files_.push(A);this.fileOps_--;vM(this)};
g3.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;vM(this)};
var qkf=function(R,A){this.entry=R;this.parent=A};var nd=function(R){_.SS.call(this);_.KC(R,"drop",this.onObjectsDropped_,!1,this);_.KC(R,"dragenter",this.onFilesDragged_,!1,this);_.KC(R,"dragover",this.onFilesDragged_,!1,this);_.KC(R,"dragleave",this.onDragLeave_,!1,this);_.KC(R,"dragend",this.onDragLeave_,!1,this)};
_.Pb(nd,_.SS);var LhD=function(R,A){_.r4.call(this,"f");this.files=R;this.directories=A};
_.Pb(LhD,_.r4);var dcD=function(){_.r4.call(this,"h")};
_.Pb(dcD,_.r4);var R57=function(){_.r4.call(this,"i")};
_.Pb(R57,_.r4);var A8H=function(){_.r4.call(this,"g")};
_.Pb(A8H,_.r4);nd.prototype.onObjectsDropped_=function(R){var A=this;R.preventDefault();var Y=R.event_.dataTransfer;if((R=Y&&Y.items)&&R.length>0&&R[0].webkitGetAsEntry){Y=[];for(var P=[],E=0;E<R.length;E++){var z=R[E].webkitGetAsEntry();z?Y.push(z):P.push(R[E])}new g3(Y,function(c,M,N){N?A.dispatchEvent(new A8H("Error occurred while reading from the file system.")):A.dispatchEvent(new LhD(c,M,P))})}else(R=Y&&Y.files)&&this.dispatchEvent(new LhD(Array.from(R),[]))};
nd.prototype.onFilesDragged_=function(R){R.type==="dragenter"&&this.dispatchEvent(new dcD);R.preventDefault()};
nd.prototype.onDragLeave_=function(){this.dispatchEvent(new R57)};var Y3A=function(R,A){this.JSC$12032_name_=R;this.inputElement_=A};
Y3A.prototype.getName=function(){return this.JSC$12032_name_};
Y3A.prototype.getInputElement=function(){return this.inputElement_};var HM=function(R,A,Y){A=A===void 0?"single_file":A;Y=Y===void 0?[]:Y;_.SS.call(this);this.overlayTarget_=R;this.parentOverlay_=R!=null?R.parentNode:_.De("scotty-overlay-parent");this.selectorType_=A;this.acceptTypes_=Y;this.overlay_=PKZ(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.H(HM,_.SS);
var PKZ=function(R,A,Y,P){var E=document.createElement("input");E.setAttribute("type","file");E.setAttribute("name","Filedata");_.KC(E,"change",R.onFilesSelected_,!1,R);Y==="multiple_file"&&(E.multiple="true");Y==="single_directory"&&(E.webkitdirectory="true");P.length>0&&E.setAttribute("accept",P.join(","));E.style.position="absolute";E.style.overflow="hidden";E.style.height="0px";E.style.width="0px";E.style.opacity="0";E.setAttribute("aria-hidden","true");E.setAttribute("tabIndex",-1);if(R.overlayTarget_!=
null)return E.style.height=A.offsetHeight+"px",E.style.width=A.offsetWidth+"px",R.parentOverlay_&&(R.parentOverlay_.style.position="relative"),_.Bs(E,A),Gs(E,new _.Cs(A.offsetLeft,A.offsetTop)),E;R.parentOverlay_.appendChild(E);return E};
HM.prototype.click=function(){this.overlay_.click()};
HM.prototype.onFilesSelected_=function(R){a:{try{var A=(new XMLHttpRequest).upload!==void 0;break a}catch(y){}A=!1}if(A){var Y;R=Array.from((Y=R.target.files)!=null?Y:[]);Y=[];if(this.selectorType_==="single_directory"&&(_.cb||AZ||_.xB)){Y=new QB("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(A=0;A<R.length;A++)for(var P=R[A],E=P.webkitRelativePath.split("/"),z=Y,c=0;c<E.length;c++){var M=E[c];if(c==E.length-1){M!="."&&z.files_.push(P);break}var N=z.directoryMap_[M];N==void 0&&(M=
N=new QB(M),z.directoryMap_[M.getName()]=M,z.directories_.push(M));z=N}Y=Y.directories_}this.dispatchEvent(new ElE(R,Y,null))}else R=R.target.value,R.match(/^c:\\fakepath\\/i)&&(R=R.substring(12)),this.dispatchEvent(new ElE([],[],new Y3A(R,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=PKZ(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var ElE=function(R,A){_.r4.call(this,"j");this.files=R;this.directories=A};
_.H(ElE,_.r4);var z5Z=function(R){this.uploadUrl_=R};var iFH=function(){_.SS.call(this)};
_.Pb(iFH,_.SS);var r3=function(R){_.r4.call(this,R)};
_.Pb(r3,_.r4);var DX=function(R){_.r4.call(this,R)};
_.Pb(DX,_.r4);var lx7=function(R,A,Y,P,E){_.SS.call(this);Y=document.createElement("form");Y.setAttribute("method",A);Y.setAttribute("enctype","multipart/form-data");Y.setAttribute("encoding","multipart/form-data");A=document.createElement("input");A.setAttribute("type","hidden");A.setAttribute("name","metadata");A.setAttribute("value",E);Y.appendChild(A);Y.appendChild(P);this.JSC$12049_form_=Y;R=new _.dq(R);_.LJ(R,"upload_protocol","multipart");this.JSC$12049_url_=R.toString();this.JSC$12049_request_=new MY;this.state_=
"Ready";this.JSC$12049_errorDescription_=null;this.JSC$12049_eventHandler_=new _.ce(this);_.gz(this,this.JSC$12049_eventHandler_);this.JSC$12049_eventHandler_.listen(this.JSC$12049_request_,"success",this.onTransferSuccess_);this.JSC$12049_eventHandler_.listen(this.JSC$12049_request_,"error",this.onTransferError_)};
_.H(lx7,iFH);_.l=lx7.prototype;_.l.run=function(){this.state_="Transferring";var R=this.JSC$12049_request_,A=this.JSC$12049_form_;if(R.JSC$11468_active_)throw Error("pe");var Y=new _.dq(this.JSC$12049_url_||A.action);R.JSC$11468_form_=A;A=R.JSC$11468_form_;Y=_.ZE(Y.toString());Y!==void 0&&(A.action=Y);fcD(R)};
_.l.getResponseCode=function(){return null};
_.l.getResponseText=function(){return this.JSC$12049_request_&&this.JSC$12049_request_.getResponseText()||null};
_.l.JSC$29428_getErrorDescription=function(){return this.JSC$12049_errorDescription_};
_.l.cancel=function(){this.JSC$12049_request_&&this.JSC$12049_request_.abort();this.state_="Cancelled";this.dispatchEvent(new r3("o"))};
_.l.pause=function(){};
_.l.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new r3("l"))};
_.l.onTransferError_=function(){this.JSC$12049_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new r3("n"))};var UO=function(){_.FQ.call(this)};
_.H(UO,_.FQ);UO.prototype.createXhr=function(){var R=_.FQ.prototype.createXhr.call(this);R.upload&&(R.upload.onprogress=(0,_.Wv)(this.onProgress_,this));return R};
UO.prototype.onProgress_=function(R){this.dispatchEvent(R)};var xAE=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},OFA=function(R,A){var Y=R.attempt_+1;
if(R.maxAttempts_>0&&Y>R.maxAttempts_)return!1;Y==0?A():R.delayCallId_=b6(function(){R.delayCallId_=null;A()},c8S(R),R);
R.attempt_=Y;return!0};
xAE.prototype.reset=function(){this.delayCallId_&&_.P3.clearTimeout(this.delayCallId_);this.attempt_=-1};
var c8S=function(R){var A=250*Math.pow(2,R.attempt_);R.maxDelayMs_>=0&&(A=Math.min(A,R.maxDelayMs_));return A};var R$k=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var $N=function(){_.SS.call(this);this.JSC$12059_request_=this.state_=null;this.JSC$12059_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12059_bytesTransferred_=0;this.retryIterator_=new xAE;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12059_errorDescription_=null;this.JSC$12059_eventHandler_=new _.ce(this);_.gz(this,this.JSC$12059_eventHandler_);this.JSC$12059_url_=this.blob_=null;this.JSC$12059_method_=void 0;this.chunkSize_=this.JSC$12059_metadata_=
this.JSC$12059_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12059_responseText_=this.JSC$12059_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Pb($N,iFH);_.l=$N.prototype;_.l.run=function(){Xe(this)};
_.l.getResponseCode=function(){return this.JSC$12059_responseCode_};
_.l.getResponseText=function(){return this.JSC$12059_responseText_};
_.l.JSC$29428_getErrorDescription=function(){return this.JSC$12059_errorDescription_};
_.l.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12059_eventHandler_.removeAll();this.JSC$12059_request_&&this.JSC$12059_request_.abort();this.retryIterator_.reset();var R=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(R==="Upload"||R==="Query")R=new UO,R.JSC$9789_withCredentials_=this.JSC$12059_withCredentials_,R.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12059_bytesTransferred_=
0;this.dispatchEvent(new r3("o"))}};
_.l.pause=function(){this.pauseRequested_=!0};
var Xe=function(R){var A=R.state_;R.pauseRequested_?(R.pauseRequested_=!1,R.stateAfterUnpausing_=A,R.state_="Paused"):OFA(R.retryIterator_,function(){switch(R.state_){case "Start":R.JSC$12059_request_=new UO;var Y=_.BO.clone(R.JSC$12059_headers_);R.blob_.size!=null&&(Y["Content-Length"]=R.blob_.size);Y=AHl(Y);Y["X-Goog-Upload-Protocol"]="resumable";Y["X-Goog-Upload-Command"]="start";R.JSC$12059_eventHandler_.removeAll();R.JSC$12059_eventHandler_.listen(R.JSC$12059_request_,"complete",R.onStartComplete_);
R.JSC$12059_request_.JSC$9789_withCredentials_=R.JSC$12059_withCredentials_;R.JSC$12059_request_.send(R.JSC$12059_url_,R.JSC$12059_method_,R.JSC$12059_metadata_,Y);R.lastCommandResponseCode_=null;R.dispatchEvent(new DX("q"));break;case "Upload":Y=R.transferHandle_.uploadUrl_;var P=R.blob_.size;if(J$H()){var E=R.chunkSize_;var z=R.offset_+E>=P;P=V_Z(R.blob_,R.offset_,z?P:R.offset_+E)}else R.offset_=0,P=R.blob_,z=!0;R.JSC$12059_request_=new UO;R.JSC$12059_request_.JSC$9789_withCredentials_=R.JSC$12059_withCredentials_;
R.JSC$12059_eventHandler_.removeAll();R.JSC$12059_eventHandler_.listen(R.JSC$12059_request_,"progress",R.onUploadProgress_);E=(0,_.Wv)(R.JSC$12061_onUploadComplete_,R,R.offset_+P.size,z);R.JSC$12059_eventHandler_.listen(R.JSC$12059_request_,"complete",E);R.lastCommandResponseCode_=null;R.dispatchEvent(new DX("q"));z=Object.assign({},R.JSC$12059_headers_||{},{"X-Goog-Upload-Command":"upload"+(z?", finalize":""),"X-Goog-Upload-Offset":R.offset_});R.JSC$12059_request_.send(Y,"POST",P,z);break;case "Query":R.JSC$12059_request_=
new UO;R.JSC$12059_eventHandler_.removeAll();R.JSC$12059_eventHandler_.listen(R.JSC$12059_request_,"complete",R.onQueryComplete_);Y=Object.assign({},R.JSC$12059_headers_||{},{"X-Goog-Upload-Command":"query"});R.JSC$12059_request_.send(R.transferHandle_.uploadUrl_,"POST","",Y);R.lastCommandResponseCode_=null;R.dispatchEvent(new DX("q"));break;default:throw Error("ef");}})||SM(R,"Transfer encountered too many consecutive failures.")},SM=function(R,A){R.state_="Error";
R.JSC$12059_errorDescription_=A;R.dispatchEvent(new r3("n"))};
$N.prototype.onStartComplete_=function(R){var A=R.target;this.lastCommandResponseCode_=A.getStatus();this.dispatchEvent(new DX("r"));if(MNG(A))s7f(this,A);else if(N$A(A)){R=Y0(R.target.getAllResponseHeaders());for(var Y in R)_.iJ(Y.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new r3("m"));Y=KO(R,"X-Goog-Upload-URL");R=(R=KO(R,"X-Goog-Upload-Chunk-Granularity"))?parseInt(R,10):1;Y===void 0||isNaN(R)||R<=0?SM(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
R)*R,this.transferHandle_=new z5Z(Y),this.dispatchEvent(new r3("p")),this.state_="Upload",this.retryIterator_.reset(),Xe(this))}else Xe(this)};
$N.prototype.onUploadProgress_=function(R){this.JSC$12059_bytesTransferred_=this.offset_+R.loaded;this.dispatchEvent(new r3("k"))};
$N.prototype.JSC$12061_onUploadComplete_=function(R,A,Y){var P=this,E,z;return _.O(function(c){switch(c.nextAddress){case 1:E=Y.target;P.lastCommandResponseCode_=E.getStatus();P.dispatchEvent(new DX("r"));if(VNS(E)||E.getStatus()==404)return P.JSC$12059_bytesTransferred_=R,s7f(P,E),c.return();if(N$A(E)){c.jumpTo(2);break}if(!(z=P.detectCorruptedBlobEnabled_)){c.jumpTo(3);break}return c.yield(J87(P),4);case 4:z=c.yieldResult;case 3:if(z)return SM(P,"Blob has been modified or corrupted."),c.return();
P.requireUploadRequestModification_=E.getStatus()==400;P.state_="Query";Xe(P);return c.return();case 2:if(A)return SM(P,"Got a non-final success response after issuing a finalize command."),c.return();P.JSC$12059_bytesTransferred_=R;P.offset_=R;P.retryIterator_.reset();Xe(P);return c.return()}})};
$N.prototype.onQueryComplete_=function(R){var A=R.target;this.lastCommandResponseCode_=A.getStatus();this.dispatchEvent(new DX("r"));MNG(A)?(A.getStatus()===200&&(this.JSC$12059_bytesTransferred_=this.blob_.size),s7f(this,A)):N$A(A)?(R=Y0(R.target.getAllResponseHeaders()),R=parseInt(KO(R,"X-Goog-Upload-Size-Received"),10),isNaN(R)?SM(this,"Server did not respond with current offset."):R<this.offset_?SM(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
R+"."):this.requireUploadRequestModification_&&this.offset_===R?SM(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<R&&this.retryIterator_.reset(),this.offset_=this.JSC$12059_bytesTransferred_=R,this.state_="Upload",Xe(this))):Xe(this)};
var s7f=function(R,A){R.JSC$12059_responseCode_=A.getStatus();var Y=Y0(A.getAllResponseHeaders());Y0P(Y);R.JSC$12059_responseText_=A.getResponseText();R.state_="Response received";R.dispatchEvent(new r3("l"))},N$A=function(R){var A=R.getStatus();
R=Y0(R.getAllResponseHeaders());R=KO(R,"X-Goog-Upload-Status");return A===200&&R==="active"},VNS=function(R){R=Y0(R.getAllResponseHeaders());
return KO(R,"X-Goog-Upload-Status")==="final"},MNG=function(R){if(VNS(R))return!0;
R=R.getStatus();return R>=400&&R<500},J87=function(R){var A;
return _.O(function(Y){if(Y.nextAddress==1){if(!R.blob_||R.originalBlobSize_<=0)return Y.return(!1);if(R.blob_.size!==R.originalBlobSize_)return Y.return(!0);_.g2(Y,2);if(A=V_Z(R.blob_,0,1)){var P=Y.yield,E=new uX,z=LbA(E);E.reader_.readAsBinaryString(A);Y=P.call(Y,z,4)}else Y=Y.return(!0);return Y}if(Y.nextAddress!=2)return Y.return(R.blob_.size!==R.originalBlobSize_);_.UT(Y);return Y.return(!0)})};var y8A=function(R,A,Y,P,E,z){_.SS.call(this);this.payload_=P;this.JSC$12062_url_=R;this.JSC$12062_method_=A;this.JSC$12062_headers_=Y;this.JSC$12062_metadata_=E;this.encoding_=z||"binary";R=new _.bX;this.boundary_="uploader-"+ut()+"-"+R.JSC$11317_toIsoString();this.JSC$12062_responseText_=this.JSC$12062_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12062_errorDescription_=null;this.JSC$12062_eventHandler_=new _.ce(this);_.gz(this,this.JSC$12062_eventHandler_)};
_.H(y8A,iFH);_.l=y8A.prototype;
_.l.run=function(){var R=_.BO.clone(this.JSC$12062_headers_);this.payload_.length!=null&&(R["Content-Length"]=this.payload_.length);R=AHl(R);R["X-Goog-Upload-Protocol"]="multipart";R["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new UO;this.JSC$12062_eventHandler_.removeAll();this.JSC$12062_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12062_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12062_url_,this.JSC$12062_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12062_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",R)};
_.l.getResponseCode=function(){return this.JSC$12062_responseCode_};
_.l.getResponseText=function(){return this.JSC$12062_responseText_};
_.l.JSC$29428_getErrorDescription=function(){return this.JSC$12062_errorDescription_};
_.l.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12062_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new r3("o")))};
_.l.pause=function(){};
_.l.onTransferProgress_=function(){this.dispatchEvent(new r3("k"))};
_.l.onTransferComplete_=function(R){var A=R.target.getStatus();A===void 0||A===-1?(this.JSC$12062_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new r3("n"))):(this.JSC$12062_responseCode_=A,R=R.target,A=Y0(R.getAllResponseHeaders()),Y0P(A),this.JSC$12062_responseText_=R.getResponseText(),this.state_="Complete",this.dispatchEvent(new r3("l")))};_.mAS=function(R,A,Y,P){P=P===void 0?!1:P;if(Y instanceof Y3A)return new lx7(R,"POST",A,Y.getInputElement(),"");if(typeof Y==="string"||Y instanceof String)return new y8A(R,"POST",A,Y,"");var E=new $N(void 0);E.JSC$12059_url_=R;E.JSC$12059_method_="POST";E.JSC$12059_headers_=A;E.blob_=Y;E.originalBlobSize_=Y.size;E.JSC$12059_metadata_="";P&&(E.JSC$12059_withCredentials_=P);E.state_="Start";return E};var IY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(IY,_.lb);_.l=IY.prototype;_.l.getEnableSsEngine=function(){return _.D0(this,2)};
_.l.getEnableAwr=function(){return _.D0(this,3)};
_.l.getAlohaAutoGaRollout=function(){return _.D0(this,5)};
_.l.getEnableConfigurator=function(){return _.D0(this,6)};
_.l.getEnableMweb=function(){return _.D0(this,7)};
var Q7Z=function(){var R=T$N();return _.j0(R,7,!0)};
IY.prototype.getEnableCtlConsentCheckbox=function(){return _.D0(this,8)};
IY.prototype.getEnableIframe=function(){return _.D0(this,9)};
var T$N=function(){var R=new IY;R=_.j0(R,5,!0);R=_.j0(R,2,!0);R=_.j0(R,4,!1);R=_.j0(R,8,!0);return _.j0(R,9,!0)};
IY.prototype.getEnableScreenshotNudge=function(){return _.D0(this,10)};
var vlf=function(){var R=Q7Z();return _.j0(R,10,!0)};
IY.prototype.getEnableWebStartupConfigEndpoint=function(){return _.D0(this,11)};
IY.prototype.getEnableJunkNudge=function(){return _.D0(this,12)};
var gkk=function(){var R=vlf();return _.j0(R,12,!0)};
_.l=IY.prototype;_.l.getEnableConfiguratorLocale=function(){return _.D0(this,13)};
_.l.getEnableTinyNoPointer=function(){return _.D0(this,14)};
_.l.getEnableSupportSessionLogging=function(){return _.D0(this,15)};
_.l.getEnableFileUploadForScreenshot=function(){return _.D0(this,16)};
_.l.getEnableDirectDeflectionForSingleCategory=function(){return _.D0(this,17)};
_.l.getEnableImageSanitization=function(){return _.D0(this,18)};
_.l.getEnableAlohaBinarySplit=function(){return _.D0(this,19)};
_.l.getEnableDbFeedbackIntents=function(){return _.D0(this,20)};
_.l.getEnableMarkMandatoryFieldsWithRequired=function(){return _.D0(this,21)};
_.l.getEnableFeedbackCategoryCustomUi=function(){return _.D0(this,22)};
_.l.getEnableRealtimeCtl=function(){return _.D0(this,23)};var vk6=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(vk6,_.lb);var PUk=[/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 z$l="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 i9J=_.Z7(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),lG6=_.Z7(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var cHk,sck,O9k,NxJ;var glb,nlz;
glb=function(R,A,Y){R.timeOfStartCall=(new Date).getTime();var P=Y||_.P3,E=P.document,z=R.nonce||_.RG(P.document);z&&!R.nonce&&(R.nonce=z);if(R.flow=="help"){var c=_.Zr("document.location.href",P);!R.helpCenterContext&&c&&(R.helpCenterContext=c.substring(0,1200));c=!0;if(A&&JSON&&JSON.stringify){var M=JSON.stringify(A);(c=M.length<=1200)&&(R.psdJson=M)}c||(A={invalidPsd:!0})}A=[R,A,Y];P.GOOGLE_FEEDBACK_START_ARGUMENTS=A;Y=R.feedbackServerUri||"//www.google.com/tools/feedback";if(c=P.GOOGLE_FEEDBACK_START)c.apply(P,A);
else{P=Y+"/load.js?";for(var N in R)A=R[N],A==null||_.ZI(A)||(P+=encodeURIComponent(N)+"="+encodeURIComponent(A)+"&");R=Sp(E).createElement("SCRIPT");z&&R.setAttribute("nonce",z);_.ET(R,_.IR(P));E.body.appendChild(R)}};
nlz=function(R,A,Y,P){var E,z;_.O(function(c){E=Y||_.P3;var M=R.serverEnvironment==="DEV",N=Y||_.P3;N=R.nonce||_.RG(N.document);M={integrationKeys:{productId:R.productId,feedbackBucket:R.bucket,triggerId:R.triggerId},callbacks:{onClose:R.callback,onLoad:R.onLoadCallback},formContent:{locale:R.locale,disableScreenshot:R.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:R.abuseLink,additionalDataConsent:R.additionalDataConsent},initializationData:{isLocalServer:M,nonce:N,useNightlyRelease:M,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:R.feedbackServerUri,colorScheme:R.colorScheme},extraData:{productVersion:R.productVersion,authUser:R.authuser,configuratorId:R.configuratorId,customZIndex:R.customZIndex,tinyNoPointer:R.tinyNoPointer,
allowNonLoggedInFeedback:R.allowNonLoggedInFeedback,enableAnonymousFeedback:R.enableAnonymousFeedback}};A&&(N=new Map(Object.entries(A)),M.extraData.productSpecificData=N);z=M;return c.yield(m2b(z,P,E),0)})};
_.HFS=function(R,A,Y){try{if(R.flow==="help"){var P=R.helpCenterPath.replace(/^\//,"");_.dZ(Y||window,"https://support.google.com/"+P)}else R.flow==="submit"?glb(R,A,Y):nk8(R.productId,R.feedbackServerUri).then(function(E){E=_.cG(E,IY,1);var z=!Quk||(E==null?void 0:E.getEnableMweb()),c=!R.tinyNoPointer||(E==null?void 0:E.getEnableTinyNoPointer());!E||E.getAlohaAutoGaRollout()&&z&&c?nlz(R,A,Y,E):glb(R,A,Y)},function(E){E&&E.name!=="DuplicateFormError"&&glb(R,A,Y)})}catch(E){nlz(R,A,Y,null)}};
_.PG("userfeedback.api.startFeedback",_.HFS);var H9k=/https?:\/\/\S+\.\S+/,rHk=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],D23=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var bNP=function(R){var A=R.split(""),Y=[-263237435,15,A,function(P,E,z){var c=E.length;z.forEach(function(M,N,y){this.push(y[N]=E[(E.indexOf(M)-E.indexOf(this[N])+N+c--)%E.length])},P.split(""))},
function(P,E){P=(P%E.length+E.length)%E.length;E.splice(-P).reverse().forEach(function(z){E.unshift(z)})},
"response",function(){for(var P=64,E=[];++P-E.length-32;){switch(P){case 58:P-=14;case 91:case 92:case 93:continue;case 123:P=47;case 94:case 95:case 96:continue;case 46:P=95}E.push(String.fromCharCode(P))}return E},
null,12,1540023973,65941107,null,A,function(P,E){for(P=(P%E.length+E.length)%E.length;P--;)E.unshift(E.pop())},
695603893,function(P){for(var E=P.length;E;)P.push(P.splice(--E,1)[0])},
"'[;'[(",function(P,E){P.push(E)},
null,function(P,E,z,c,M){return E(z,c,M)},
"continuation",A,function(P,E){if(P.length!=0){E=(E%P.length+P.length)%P.length;var z=P[0];P[0]=P[E];P[E]=z}},
function(){for(var P=64,E=[];++P-E.length-32;){switch(P){case 91:P=44;continue;case 123:P=65;break;case 65:P-=18;continue;case 58:P=96;continue;case 46:P=95}E.push(String.fromCharCode(P))}return E},
'"),/]];'];Y[7]=Y;Y[11]=Y;Y[18]=Y;try{(((0,Y[15])(Y[21]),Y[22])(Y[11],Y[9]),Y[22])(Y[new Date("1970-01-01T04:30:12.000+04:30")/1E3],Y[1]),((0,Y[22])(Y[11],Y[23]),Y[4])(Y[10],Y[18]),(0,Y[20])(Y[21],Y[14])<<(0,Y[17])(Y[18],Y[1]),(0,Y[4])(Y[8],Y[21]),(0,Y[19])((0,Y[19])((0,Y[17])(Y[7],Y[9]),Y[3],Y[20],(0,Y[6])(),Y[2]),Y[3],Y[5],(0,Y[15])(),Y[2])}catch(P){return"aTlOUOubTO4AP____8P_"+R}return A.join("")};_.r8D=new _.lU("runAttestationCommand");var DAz=new _.lU("verifyCommand");_.Kd=new _.lU("accessibilityContext");var UAb=new _.lU("accessibilityData");var $AD=new _.lU("profileCardCommand");var kak=new _.lU("signInEndpoint");var oCq=new _.lU("signOutEndpoint");var S3z;_.XsG=new _.lU("accountItemSectionRenderer");S3z=new _.lU("accountItemRenderer");_.IxZ=new _.lU("saveCommandToSessionStorageAction");var K5H=new _.lU("crossAccountChannelTransferEndpoint");var BPl=new _.lU("getAccountMenuEndpoint");_.aaJ=new _.lU("getAccountSwitcherEndpoint");var Fik=new _.lU("getAccountsListEndpoint");var W5z=new _.lU("getAccountsListInnertubeEndpoint");_.WM=new _.lU("addToToastAction");var j77=new _.lU("hideEnclosingAction");_.jM=new _.lU("replaceEnclosingAction");var bF7=new _.lU("buttonRefreshAction");var fxb=new _.lU("adsControlFlowOpportunityReceivedCommand");var psf=new _.lU("openAdAllowlistInstructionCommand");var F5E=new _.lU("videoMastheadAdPrimaryVideoRenderer");var B$8=new _.lU("displayAdRenderer");var szl=new _.lU("instreamVideoAdRenderer");_.ax7=new _.lU("inFeedAdLayoutRenderer");var CKH=new _.lU("sequenceItemInPlayerAdLayoutRenderer");_.h57=new _.lU("adSlotRenderer");var olA=new _.lU("adAvatarViewModel");var ksG=new _.lU("adBadgeViewModel");var GsH=new _.lU("adButtonViewModel");var ZFD=new _.lU("adImageViewModel");var z7P=new _.lU("reelsAdCardButtonedViewModel");var tN7=new _.lU("reelsPlayerOverlayLayoutViewModel");var wsE=new _.lU("showSchedulingPanelCommand");var uwq=new _.lU("backstageCommentsRenderer");var e5A=new _.lU("backstageImageRenderer");var q3S=new _.lU("backstagePostRenderer");var L5S=new _.lU("backstageZeroStateRenderer");var dAb=new _.lU("postRenderer");var RMN=new _.lU("sharedPostRenderer");var AAS=new _.lU("createBackstagePostEndpoint");var YXq=new _.lU("getPostVideoPreviewEndpoint");var P6S=new _.lU("updateBackstagePostEndpoint");var EyZ=new _.lU("filterChipTransformCommand");var zMZ=new _.lU("insertRichSectionCommand");var eiu=new _.lU("talkToRecsDeselectCommand");var iAA=new _.lU("talkToRecsNextCommand");var u6l=new _.lU("talkToRecsSelectCommand");var luz=new _.lU("talkToRecsUpdateTextCommand");_.Ds=new _.lU("browseEndpoint");_.xlq=new _.lU("confirmDialogEndpoint");var cAH=new _.lU("expandOnHoverCardRenderer");var OA7=new _.lU("lumiereShelfDetailsRenderer");var MSq=new _.lU("revealBusinessEmailCommand");var s8f=new _.lU("validateChannelHandleCommand");var N4b=new _.lU("channelCreationFormEndpoint");var VSb=new _.lU("aboutChannelViewModel");var JAA=new _.lU("channelThumbnailWithLinkRenderer");var yAz=new _.lU("channelCreationServiceEndpoint");var mlG=new _.lU("updateChannelPageSettingsEndpoint");var bo=function(R){this.delegate=R},fd=function(){bo.apply(this,arguments)};
_.H(fd,bo);_.Yh.Object.defineProperties(fd.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(R){this.delegate.entityMetadata=R}}});var T4Z=function(){fd.apply(this,arguments)};
_.H(T4Z,fd);T4Z.prototype.getAssociations=function(){return[]};
T4Z.prototype.getTypeName=function(){return"channelHandle"};var whP=new _.lU("webThumbnailDetailsExtensionData");var x$3=new _.lU("commandContext");var Q88=new _.lU("addVideoLinkAction");var vyq=new _.lU("banAuthorAction");var gyz=new _.lU("createCommentAction");var nyA=new _.lU("createCommentReplyAction");var HAD=new _.lU("createPollAction");var rAN=new _.lU("hideIdentityChipAction");var DlH=new _.lU("openUpdateCommentDialogAction");var UlA=new _.lU("pinCommentAction");var $l7=new _.lU("removeCommentAction");var X$Z=new _.lU("unpinCommentAction");var pd=new _.lU("updateBackstagePollAction");var SXA=new _.lU("updateCommentVoteAction");var IuA=new _.lU("commentThreadRenderer");var KLS=function(){fd.apply(this,arguments)};
_.H(KLS,fd);KLS.prototype.getAssociations=function(){return[]};
KLS.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var WLf=function(){fd.apply(this,arguments)};
_.H(WLf,fd);WLf.prototype.getAssociations=function(){return[]};
WLf.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.j8Z=new _.lU("commentDialogRenderer");var bAA=new _.lU("reloadCommentsCommand");var fuZ=new _.lU("updateCommentsSettingsEndpoint");var p$H=new _.lU("commentViewModel");var FLH=new _.lU("triStateButtonViewModel");var B4H=new _.lU("voiceReplyContainerViewModel");_.Jg=new _.lU("commandExecutorCommand");var Bc=new _.lU("emoji");var auH=new _.lU("updateCreatorChannelInnertubeCommand");_.C6H=new _.lU("appendContinuationItemsAction");_.hMG=new _.lU("changeEngagementPanelVisibilityAction");_.oE=new _.lU("continuationCommand");var oyb=new _.lU("hideReportedCommentAction");var kbD=new _.lU("listMutationCommand");_.Fe=new _.lU("openPopupAction");var GbE=new _.lU("persistSubscriptionsDisplayPreferencesCommand");var dlS;_.ZAb=new _.lU("playlistRemoveVideosAction");_.tSZ=new _.lU("updatePlaylistAction");_.w$N=new _.lU("addToPlaylistCommand");_.uQb=new _.lU("endPlaylistCommand");_.eMf=new _.lU("recoverPlaylistCommand");_.qXS=new _.lU("refreshPlaylistCommand");_.LLZ=new _.lU("refreshFormCommand");dlS=new _.lU("openOnePickAddVideoModalCommand");_.ZVk=new _.lU("reloadContinuationItemsCommand");_.RuD=new _.lU("scrollToEngagementPanelCommand");var An7=new _.lU("selectCountryCommand");var Y2S=new _.lU("showReloadUiCommand");var PdS=new _.lU("undoFeedbackAction");var EPA=new _.lU("updateButtonAction");var zu8=new _.lU("updateSubscribeButtonAction");var i$S=new _.lU("updateToggleAction");var lwS=new _.lU("webNativeShareCommand");_.Ti=new _.lU("webCommandMetadata");_.BM=new _.lU("webHandleServiceEndpointExtension");var kvk=new _.lU("webNavigationEndpointData");var xdb=new _.lU("backgroundAudioPlaybackCommand");var cnZ=new _.lU("copyLinkCommand");var O$G=new _.lU("playlistVotingRefreshPopupCommand");var MEA=new _.lU("selectChipCommand");var sFq=new _.lU("setCookieCommand");var NbN=new _.lU("setLocalStorageCommand");var VEZ=new _.lU("setPrefStorageEntryCommand");var TbG;_.JnS=new _.lU("settingsUpdateCheckboxCommand");_.ynf=new _.lU("settingsUpdateTextCommand");_.mdA=new _.lU("settingsUpdateOptionsCommand");TbG=new _.lU("settingsUpdateSwitchCommand");_.QFA=new _.lU("settingsUpdateConnectedAppRendererCommand");var vP7=new _.lU("updateTextInputFormFieldRendererCommand");var gP8=new _.lU("updateToggleButtonStateCommand");var nPH=new _.lU("updateUrlParamCommand");var H$b=new _.lU("webSubmitFormCommand");var rnA=new _.lU("channelSwitcherPageRenderer"),DdS=new _.lU("updateChannelSwitcherPageAction");_.eb=new _.lU("continuationItemRenderer");_.aY=new _.lU("richItemRenderer");var UdA=new _.lU("richSectionRenderer");_.$dZ=new _.lU("richShelfRenderer");_.XmD=new _.lU("metadataBadgeRenderer");_.S2N=new _.lU("multiPageMenuNotificationSectionRenderer");_.Iw8=new _.lU("playlistLoopButtonStateRenderer");var KsN=new _.lU("claimLegacyYoutubeChannelEndpoint");var WsS=new _.lU("getNotificationMenuEndpoint");var jFq=new _.lU("getSearchInVideoCommand");_.b$A=new _.lU("getTranscriptEndpoint");_.mZ=new _.lU("signalServiceEndpoint");var fw7=new _.lU("verifyAgeEndpoint");var FQS=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(FQS,_.lb);FQS.prototype.getPath=function(){return _.X1(this,1)};
FQS.prototype.getValue=function(){return _.X1(this,2)};var pmb=[0,_.eR,-1];var Fsb=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Fsb,_.lb);var p4k=_.Te(Fsb,[0,_.dA,pmb]);var Bbb=new _.lU("dismissalEndpoint");var awS=new _.lU("elementsCommand");_.CC=new _.lU("innertubeCommand");var Cd7=new _.lU("multipleInlinePlaybackCommand");var $wk=new _.lU("loggingDirectives");var huA=new _.lU("acknowledgeChannelTouStrikeCommand");var oP7=function(){fd.apply(this,arguments)};
_.H(oP7,fd);oP7.prototype.getAssociations=function(){return[]};
oP7.prototype.getTypeName=function(){return"booleanEntity"};var kpG=function(){fd.apply(this,arguments)};
_.H(kpG,fd);kpG.prototype.getAssociations=function(){return[]};
kpG.prototype.getTypeName=function(){return"stringEntity"};var LY=new _.lU("entityBatchUpdate");_.GpN=new _.lU("entityUpdateCommand");var Z$E=function(){fd.apply(this,arguments)};
_.H(Z$E,fd);Z$E.prototype.getAssociations=function(){var R=[];this.delegate.alternateChannel&&R.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&R.push.apply(R,_.py(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&R.push(this.delegate.oneofChannelEntity);return[].concat(_.py(new Set(R)))};
Z$E.prototype.getTypeName=function(){return"fakeChannel"};var tE8=function(){fd.apply(this,arguments)};
_.H(tE8,fd);tE8.prototype.getAssociations=function(){var R=[];this.delegate.entryCollection&&R.push(this.delegate.entryCollection);return[].concat(_.py(new Set(R)))};
tE8.prototype.getTypeName=function(){return"fakePlaylist"};
var wmf=function(){fd.apply(this,arguments)};
_.H(wmf,fd);wmf.prototype.getAssociations=function(){var R=[];this.delegate.parentPlaylist&&R.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var A=_.x(this.delegate.entries),Y=A.next();!Y.done;Y=A.next())R.push.apply(R,_.py((new uOZ(Y.value)).getAssociations()));return[].concat(_.py(new Set(R)))};
wmf.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var uOZ=function(){bo.apply(this,arguments)};
_.H(uOZ,bo);uOZ.prototype.getAssociations=function(){var R=[];this.delegate.video&&R.push(this.delegate.video);return[].concat(_.py(new Set(R)))};var euZ=function(){fd.apply(this,arguments)};
_.H(euZ,fd);euZ.prototype.getAssociations=function(){var R=[];this.delegate.descriptionEntity&&R.push(this.delegate.descriptionEntity);this.delegate.creators&&R.push.apply(R,_.py(this.delegate.creators));this.delegate.theBiggestFan&&R.push(this.delegate.theBiggestFan);return[].concat(_.py(new Set(R)))};
euZ.prototype.getTypeName=function(){return"fakeVideo"};
var q2A=function(){fd.apply(this,arguments)};
_.H(q2A,fd);q2A.prototype.getAssociations=function(){return[]};
q2A.prototype.getTypeName=function(){return"fakeVideoDescription"};var Lsb=new _.lU("fantasyRosterViewModel");var ddS=new _.lU("addFollowUpSurveyCommand");var R$A=new _.lU("getSurveyCommand");var AHS=new _.lU("ratingSurveyOptionRenderer");_.UR=new _.lU("feedbackEndpoint");var Y0H=new _.lU("reportHistoryTableCellRenderer"),PUE=new _.lU("reportHistoryTableTextCellRenderer"),EkD=new _.lU("reportHistoryTableReasonCellRenderer");_.z$S=new _.lU("flagEndpoint");var i98=new _.lU("getFlowCommand");var lGA=new _.lU("submitFormWithValidationFlowCommand");var x2A=function(){fd.apply(this,arguments)};
_.H(x2A,fd);x2A.prototype.getAssociations=function(){return[]};
x2A.prototype.getTypeName=function(){return"flowStateEntity"};var cH7=new _.lU("flowFormState");var O97=new _.lU("gameCardRenderer");var MYq=new _.lU("accountLinkingStateChangedCommand");var sc7=function(){fd.apply(this,arguments)};
_.H(sc7,fd);sc7.prototype.getAssociations=function(){return[]};
sc7.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var Nx8=new _.lU("changeMiniAppPlayStateCommand");var VY8=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(VY8,_.lb);var Cd=[1,2,3];var JHf=[0,Cd,Lt6,_.L7,ZTP];var yHf=_.Te(VY8,JHf),m2G=_.gZ(JHf);var TxD=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(TxD,_.lb);var QcN=[0,_.kB,_.eR];var vkA=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(vkA,_.lb);var gkq=[0,_.eR,_.kB,-1];var he=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(he,_.lb);var nkf=_.gZ([0,1,QcN,_.A8,gkq]);var H9A=new _.lU("miniAppScoreChallengeViewModel");var rHE=new _.lU("miniGameCardViewModel");var D2S=new _.lU("teaserCardViewModel");var U2G=function(){fd.apply(this,arguments)};
_.H(U2G,fd);U2G.prototype.getAssociations=function(){return[]};
U2G.prototype.getTypeName=function(){return"logoEntity"};_.$2E=new _.lU("feedbackItemRenderer");var XPE=function(){fd.apply(this,arguments)};
_.H(XPE,fd);XPE.prototype.getAssociations=function(){return[]};
XPE.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.S0A=new _.lU("playerInterstitialRenderer");var IGA=new _.lU("getKidsBlocklistPickerCommand");_.KwA=new _.lU("updateKidsBlacklistEndpoint");_.p0=new _.lU("likeEndpoint");var Wwz,jcE,b9Z;Wwz=new _.lU("addChatItemAction");jcE=new _.lU("removeChatItemAction");b9Z=new _.lU("markChatItemAsDeletedAction");_.fGS=new _.lU("setLiveChatCollapsedStateAction");var pP7=function(){fd.apply(this,arguments)};
_.H(pP7,fd);pP7.prototype.getAssociations=function(){return[]};
pP7.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var FwH=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(FwH,_.lb);var BxH=[0,_.dA,[0,[1,2],_.L7,_.R7,[0,_.qc,1,_.qc]]];var aGz=[0,_.eR,-1];var CUZ=[0,[1],_.L7];var oY=[0,[1,2],_.L7,_.R7,[0,_.A8]];var kN=[0,_.eR];var h$S=[0,[0,_.wA,_.tR,[0,_.qc,_.Yl,_.qc]],1,[0,_.wA]];var okZ=[0,Gx];var kfA=[0,Gx];var GfH=[0,kfA,okZ];var Z9S=[0,_.dA,[0,[1,2],_.L7,-1],_.wA];var tYE=[0,[2],1,_.R7,[0,_.qc,-1,Z9S]];var wPz=[0,[1],_.R7,[0,_.qc,_.eR,_.Yl,1,Z9S]];var utZ=[0,_.tR,-1,GWS,_.A8];var e$8=[0,[0,o2,-3],-4];var Gy=[0,_.wA,-3,_.eR,_.wA,_.i6,_.wA,BxH,_.wA,-1];var ZX=[0,_.dA,[0,[1,2],_.L7,-1],_.wA,_.eR];var q0N=[0,[3],oY,[0,[2,3,4],zNS,_.L7,-2],_.R7,[0,_.eR],_.kB];var LwS=[0,[3,5],_.eR,Z0,_.R7,[0,1,_.kB,_.A8],_.A8,_.R7,[0,_.A8,_.kB]];var d2b=[0,2,Z0,_.eR,-1];var RVS=[0,eZu];var AS8=[0,[3,4],2,tgV,_.L7,_.eR];var Yub=[0,_.A8,-2,1,_.eR];var PXA=[0,_.eR,-1,_.A8];var EIA=[0,kN,function(){return te},
kN,_.eR],zVG=[0,_.A8,kN,oY,function(){return te},
_.eR],te=[-159,{},[101,103,104,105,106,107,108,109,114,115,116,117,118,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,141,142,144,146,147,148,149,150,151,152,153,154,155,156,157,158],kN,Z0,[0,_.wA,1,_.wA,1,_.wA,1,_.A8,-1,kN],[0,1,_.wA,2,_.wA,_.A8,_.wA],1,Z0,-1,_.eR,Z0,2,o2,[0,o2,Z0],_.eR,1,h$S,1,oY,_.i6,1,[0,[0,_.dA,[0,_.eR,_.wA,_.A8]]],[0,_.wA,[0,_.kB,[0,_.Yl]],_.kB,1,[0,wnq,-1]],_.eR,[0,1,_.eR],76,_.R7,[0,oY,ZX,h$S,1,[0,_.dA,ZX]],1,_.R7,[0,oY,_.eR,_.wA],_.R7,[0,
oY,CUZ],_.R7,[0,oY,CUZ,Z0],_.R7,[0,oY,CUZ],_.R7,[0,oY,_.dA,kN,oY,dOk],_.R7,[0,oY,kN,_.eR],_.R7,[0,oY,_.wA,Gy,-1,_.wA],4,_.R7,[0,oY,_.wA,Z0,Gy,_.wA],_.R7,[0,[4,9],oY,_.A8,Z0,_.L7,ZX,1,h$S,_.eR,_.L7,Yub],_.R7,[0,oY,kN,oY,_.A8,_.eR],_.R7,[0,_.wA,oY,Gy,_.wA,_.eR],_.R7,[0,oY,kN,oY,_.A8,_.eR],1,_.R7,[0,oY,_.A8,_.eR,Gy],_.R7,[0,oY,_.A8,[0,_.eR,Z0],_.eR,Z0,_.eR,Pvk,-2,3,PXA,_.dA,PXA,PXA,Yub],_.R7,[0,oY,_.A8,wPz,_.dA,[0,kfA,tYE],kN,_.dA,GfH,_.eR,1,_.A8,utZ,e$8,kWI,-1],_.R7,[0,oY,[0,_.Yl,-1,wPz,_.dA,[0,kfA,
tYE,okZ],[0,_.l6],1,_.qc],kN,_.eR],_.R7,[0,oY,ZX,_.eR,[0,_.tR]],_.R7,function(){return zVG},
_.R7,[0,oY,Z0,_.eR,-1,_.wA],_.R7,[0,[6,7],oY,_.dA,d2b,_.A8,ZX,1,_.R7,AS8,_.R7,RVS],_.R7,[0,_.dA,d2b,_.A8,_.wA],_.R7,[0,_.eR,Y9S,-1],_.R7,[0,kN,_.dA,GfH,_.eR],_.R7,[0,oY,kN,_.eR],_.R7,[0,Pvk,_.eR],_.R7,[0,aGz],_.R7,[0,aGz],_.R7,[0,ZX],_.R7,[0,kN,ZX],_.R7,function(){return EIA},
_.R7,[0,kN,_.eR],_.R7,[0,kN,_.eR],1,_.R7,[0,_.wA,oY,Gy,_.wA,Gy],_.R7,[0,_.l6],1,_.R7,[0],1,_.R7,[0,kN,_.A8,oY,_.A8],_.R7,[0,[1,2],_.R7,AS8,_.R7,RVS,Z0],_.R7,[0,_.l6,ZX,LwS,_.eR,Z0],_.R7,[0,LwS,_.eR,Z0],_.R7,[0,utZ,ZX,_.wA,e$8],_.R7,q0N,_.R7,[0],_.R7,[0,_.eR,-1,_.kB],_.R7,[0,kN,_.eR],_.R7,[0,q0N,_.kB,_.eR],_.R7,[0,oY,Gy,_.wA],_.R7,[0,oY,Gy,_.wA],_.R7,[0,utZ,e$8,ZX,_.i6,_.wA,kWI,-1]];var iUD=[0,_.dA,te];var lVA=_.Te(FwH,[0,1,_.kB,[0,[18,22,24],iUD,3,[0,iUD],1,_.kB,[0,_.dA,[0,Z0,o2],Z0],1,te,-1,[0,_.uu,-2,_.i6,_.uu,-1,_.i6,_.uu,BxH,_.uu,-2],hZ8,[!0,_.eR,[0,CUZ,2,_.eR,Z0,_.wA,2,_.eR,Pvk]],[0,[1,2,3],[5,6],_.R7,[0,_.qc],_.R7,[0,_.qc,-1],_.R7,[0,_.qc],1,_.R7,aGz,_.R7,[0,_.eR]],[0,te,-1],_.l6,te,_.R7,te,[0,iUD],_.kB,te,_.R7,te,_.eR,_.R7,te]]);var xBb=new _.lU("liveChatEndpoint");var cSZ=new _.lU("liveChatItemContextMenuEndpoint");var OUb=new _.lU("liveChatReplayEndpoint");_.MJG=new _.lU("emojiPickerRenderer");var syf=new _.lU("liveChatAuthorBadgeViewModel");var NkS=new _.lU("deleteLiveChatMessageCommand");var VJG=new _.lU("liveChatActionEndpoint");var JSf=new _.lU("createLiveChatPollEndpoint");var ySb=new _.lU("manageLiveChatUserEndpoint");var mBN=new _.lU("moderateLiveChatEndpoint");_.TkA=new _.lU("sendLiveChatMessageEndpoint");var QyH=new _.lU("sendLiveChatVoteEndpoint");var vIN=new _.lU("clearLocationCommand");var gIZ=new _.lU("resolveLocationCommand");var nIH=new _.lU("interactionLoggingCommandMetadata");var HUE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(HUE,_.lb);var rSb=function(R,A){return _.y6(R,1,A)};var DBG=[0,_.wA];var UBN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(UBN,_.lb);var $BE=function(R,A){return vj(R,1,HUE,A)};UBN.prototype.JSC$12156_serializeBinary=aE6([0,_.dA,DBG]);var wPI={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 XyH={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"},
Su8={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 w3b={GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNKNOWN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_FOR_TESTING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RESUME_TO_HOME_TTL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_START_TO_SHORTS_ANALYSIS_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DEVICE_LAYER_SLICE",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_UNIFIED_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_VISITOR_LAYER_SLICE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHOW_SHEET_COMMAND_HANDLER_BLOCK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_MIGRATED_COMPONENT",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATION_LOCK_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_PIN_SUGGESTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_LONG_PRESS_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_AMBIENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TIME_WATCHED_PANEL",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SEARCH_FROM_SEARCH_BAR_OVERLAY",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_SHOW_VOICE_SEARCH_EDU_TOAST",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SUGGESTED_LANGUAGE_SELECTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_TRIGGER_SHORTS_PIP",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IN_ZP_VOICE_CRASHY_SET",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_SUPPRESSED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_FAST_SWIPE_ALLOWED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_PULL_TO_REFRESH_ATTEMPT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WOULD_BLOCK_KABUKI",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_TALL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_REEL_NORMAL_SCREEN",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ACCESSIBILITY_MODE_DISABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_AUTOPLAY_ENABLED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_CAST_MATCH_OCCURRED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ENDSCREEN_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_TRIGGERED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_POSTPLAY_LACT_THRESHOLD_EXCEEDED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MATCHED_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHABLE_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_MISATTRIBUTED_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_TV_IS_SIGNED_IN_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TV_START_TYPE_NON_COLD_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ON_REMOTE_CONNECTION",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_VALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_INVALID",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_UNDEFINED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_COBALT_PERSISTENT_SETTINGS_TEST_DEFINED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LACT_THRESHOLD_EXCEEDED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROUND_TRIP_HANDLING_ON_REMOTE_CONNECTION",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_BEFORE_APP_RELOAD",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_IDENTITIES_STATE_SWITCHED_ON_REMOTE_CONNECTION_AFTER_APP_RELOAD",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_INELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_TVHTML5_MID_ROLL_THRESHOLD_REACHED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_PENDING",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_ACTIVATED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMC3DS_M2_ELIGIBLE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_LANDSCAPE",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ROTATE_DEVICE_TO_PORTRAIT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EMBEDS_FACEOFF_UI_EVENT",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_EXP_COBALT_HTTP3_CONFIG_RECEIVED",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_ELIGIBLE_TO_SUPPRESS_TRANSPORT_CONTROLS_BUTTONS",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO",
GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_PLAYER_IN_SQUEEZEBACK",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_LIVE_CREATOR_AR_GIFT_RECEIVED",GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_RETURNED_TO_VIDEO_AFTER_FAILED_ATTEMPT_TO_BACKGROUND"};_.V7l=new _.lU("logFlowLoggingEventCommand");_.Dc=new _.lU("loggingContext");var IVA=new _.lU("audioTrackSelectActionCommand");var KCz=new _.lU("captionLanguageSelectActionCommand");var WCz=new _.lU("showAudioTrackPickerActionCommand");var jyN=new _.lU("showCaptionLanguageSelectActionCommand");var bUH=new _.lU("dismissDialogEndpoint");var fVq=new _.lU("dismissPlayerOverlayCommand");var pyD=new _.lU("hideItemSectionVideosByIdCommand");var FCG=new _.lU("showMiniplayerCommand");var BkA=function(){fd.apply(this,arguments)};
_.H(BkA,fd);BkA.prototype.getAssociations=function(){return[]};
BkA.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var aVq=function(){fd.apply(this,arguments)};
_.H(aVq,fd);aVq.prototype.getAssociations=function(){return[]};
aVq.prototype.getTypeName=function(){return"downloadStatusEntity"};var CXb=function(){fd.apply(this,arguments)};
_.H(CXb,fd);CXb.prototype.getAssociations=function(){return[]};
CXb.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var hVA=function(){fd.apply(this,arguments)};
_.H(hVA,fd);hVA.prototype.getAssociations=function(){var R=[];this.delegate.downloadsList&&R.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&R.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&R.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&R.push(this.delegate.refresh);return[].concat(_.py(new Set(R)))};
hVA.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var oI8=function(){fd.apply(this,arguments)};
_.H(oI8,fd);oI8.prototype.getAssociations=function(){var R=[];this.delegate.refresh&&R.push(this.delegate.refresh);if(this.delegate.downloads)for(var A=_.x(this.delegate.downloads),Y=A.next();!Y.done;Y=A.next())R.push.apply(R,_.py((new kJG(Y.value)).getAssociations()));return[].concat(_.py(new Set(R)))};
oI8.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var kJG=function(){bo.apply(this,arguments)};
_.H(kJG,bo);kJG.prototype.getAssociations=function(){var R=[];this.delegate.video&&R.push(this.delegate.video);this.delegate.playlist&&R.push(this.delegate.playlist);this.delegate.videoItem&&R.push(this.delegate.videoItem);this.delegate.playlistItem&&R.push(this.delegate.playlistItem);return[].concat(_.py(new Set(R)))};var GJG=function(){fd.apply(this,arguments)};
_.H(GJG,fd);GJG.prototype.getAssociations=function(){var R=[];this.delegate.localImageEntities&&R.push.apply(R,_.py(this.delegate.localImageEntities));return[].concat(_.py(new Set(R)))};
GJG.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var ZUf=function(){fd.apply(this,arguments)};
_.H(ZUf,fd);ZUf.prototype.getAssociations=function(){var R=[];this.delegate.playbackData&&R.push(this.delegate.playbackData);this.delegate.localImageEntities&&R.push.apply(R,_.py(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&R.push(this.delegate.videoDownloadContextEntity);return[].concat(_.py(new Set(R)))};
ZUf.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var tJS=function(){fd.apply(this,arguments)};
_.H(tJS,fd);tJS.prototype.getAssociations=function(){return[]};
tJS.prototype.getTypeName=function(){return"offlineabilityEntity"};var wyb=function(){fd.apply(this,arguments)};
_.H(wyb,fd);wyb.prototype.getAssociations=function(){var R=[];this.delegate.fakeChildren&&R.push.apply(R,_.py(this.delegate.fakeChildren));return[].concat(_.py(new Set(R)))};
wyb.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var ui7=function(){fd.apply(this,arguments)};
_.H(ui7,fd);ui7.prototype.getAssociations=function(){var R=[];this.delegate.video&&R.push(this.delegate.video);this.delegate.playbackData&&R.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&R.push(this.delegate.offlineVideoPolicy);return[].concat(_.py(new Set(R)))};
ui7.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var eVH=function(){fd.apply(this,arguments)};
_.H(eVH,fd);eVH.prototype.getAssociations=function(){return[]};
eVH.prototype.getTypeName=function(){return"continuationTokenEntity"};var qu7=function(){fd.apply(this,arguments)};
_.H(qu7,fd);qu7.prototype.getAssociations=function(){var R=[];this.delegate.channelOwner&&R.push(this.delegate.channelOwner);this.delegate.videos&&R.push.apply(R,_.py(this.delegate.videos));this.delegate.collaboratorChannels&&R.push.apply(R,_.py(this.delegate.collaboratorChannels));this.delegate.downloadState&&R.push(this.delegate.downloadState);this.delegate.refresh&&R.push(this.delegate.refresh);return[].concat(_.py(new Set(R)))};
qu7.prototype.getTypeName=function(){return"mainPlaylistEntity"};var LCA=function(){fd.apply(this,arguments)};
_.H(LCA,fd);LCA.prototype.getAssociations=function(){var R=[];this.delegate.video&&R.push(this.delegate.video);this.delegate.channelContributor&&R.push(this.delegate.channelContributor);return[].concat(_.py(new Set(R)))};
LCA.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var dBb=function(){bo.apply(this,arguments)};
_.H(dBb,bo);dBb.prototype.getAssociations=function(){var R=[];this.delegate.recommendedVideoMetadata&&R.push.apply(R,_.py((new RgH(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.py(new Set(R)))};
var RgH=function(){bo.apply(this,arguments)};
_.H(RgH,bo);RgH.prototype.getAssociations=function(){var R=[];this.delegate.localImageEntities&&R.push.apply(R,_.py(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&R.push(this.delegate.videoDownloadContextEntity);return[].concat(_.py(new Set(R)))};var AX8=function(){bo.apply(this,arguments)};
_.H(AX8,bo);AX8.prototype.getAssociations=function(){var R=[];this.delegate.playbackPosition&&R.push(this.delegate.playbackPosition);return[].concat(_.py(new Set(R)))};var Y8Z=function(){fd.apply(this,arguments)};
_.H(Y8Z,fd);Y8Z.prototype.getAssociations=function(){var R=[];this.delegate.owner&&R.push(this.delegate.owner);this.delegate.downloadState&&R.push(this.delegate.downloadState);this.delegate.userState&&R.push.apply(R,_.py((new AX8(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&R.push.apply(R,_.py((new dBb(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.py(new Set(R)))};
Y8Z.prototype.getTypeName=function(){return"mainVideoEntity"};var PVA=function(){fd.apply(this,arguments)};
_.H(PVA,fd);PVA.prototype.getAssociations=function(){var R=[];this.delegate.userChannelDetails&&R.push(this.delegate.userChannelDetails);return[].concat(_.py(new Set(R)))};
PVA.prototype.getTypeName=function(){return"ytMainChannelEntity"};var EgN=function(){fd.apply(this,arguments)};
_.H(EgN,fd);EgN.prototype.getAssociations=function(){var R=[];this.delegate.channelOwner&&R.push(this.delegate.channelOwner);this.delegate.playbackPosition&&R.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&R.push.apply(R,_.py(this.delegate.localImageEntities));this.delegate.downloadStatus&&R.push(this.delegate.downloadStatus);return[].concat(_.py(new Set(R)))};
EgN.prototype.getTypeName=function(){return"ytMainVideoEntity"};var CSk=new _.lU("downloadsPageSmartDownloadsOptInBannerParams");var GAl=new _.lU("downloadsPageUpsellBannerParams");var zgZ=function(){fd.apply(this,arguments)};
_.H(zgZ,fd);zgZ.prototype.getAssociations=function(){return[]};
zgZ.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var irH=function(){fd.apply(this,arguments)};
_.H(irH,fd);irH.prototype.getAssociations=function(){return[]};
irH.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var lRA=function(){fd.apply(this,arguments)};
_.H(lRA,fd);lRA.prototype.getAssociations=function(){return[]};
lRA.prototype.getTypeName=function(){return"macroMarkerEntity"};var xYN=function(){fd.apply(this,arguments)};
_.H(xYN,fd);xYN.prototype.getAssociations=function(){return[]};
xYN.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var cXA=function(){fd.apply(this,arguments)};
_.H(cXA,fd);cXA.prototype.getAssociations=function(){return[]};
cXA.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var Or8=function(){fd.apply(this,arguments)};
_.H(Or8,fd);Or8.prototype.getAssociations=function(){return[]};
Or8.prototype.getTypeName=function(){return"playerStateEntity"};var MQA=function(){fd.apply(this,arguments)};
_.H(MQA,fd);MQA.prototype.getAssociations=function(){return[]};
MQA.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var sjS=function(){fd.apply(this,arguments)};
_.H(sjS,fd);sjS.prototype.getAssociations=function(){return[]};
sjS.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var NSq=function(){fd.apply(this,arguments)};
_.H(NSq,fd);NSq.prototype.getAssociations=function(){return[]};
NSq.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.w3=new _.lU("dislikeButtonViewModel");_.uo=new _.lU("likeButtonViewModel");var VQS=new _.lU("videoSummaryContentViewModel");var JXS=new _.lU("videoSummaryParagraphViewModel");var yXq=new _.lU("changeTimelyActionVisibilityCommand");var mYA=new _.lU("hideEngagementPanelEndpoint");var TSA=new _.lU("refreshPanelEndpoint");var QjS=new _.lU("scrollToSectionEndpoint");var vgA=new _.lU("seekToVideoTimestampCommand");_.D7=new _.lU("showEngagementPanelEndpoint");var ggz=new _.lU("showTransientPlayerScrimOverlayCommand");var ngb=new _.lU("toggleEngagementPanelCommand");_.Hr7=new _.lU("createBroadcastCommand");var rXA=new _.lU("metadataUpdateCommand");var DYf=function(){fd.apply(this,arguments)};
_.H(DYf,fd);DYf.prototype.getAssociations=function(){return[]};
DYf.prototype.getTypeName=function(){return"featuredProductsEntity"};var UYb=function(){fd.apply(this,arguments)};
_.H(UYb,fd);UYb.prototype.getAssociations=function(){return[]};
UYb.prototype.getTypeName=function(){return"pinnedProductEntity"};var $Y7=function(){fd.apply(this,arguments)};
_.H($Y7,fd);$Y7.prototype.getAssociations=function(){return[]};
$Y7.prototype.getTypeName=function(){return"trendingOfferEntity"};_.X9H=new _.lU("merchandiseShelfRenderer");var S8G=new _.lU("gridMovieRenderer");_.IRz=new _.lU("movieRenderer");var Kv8=function(){fd.apply(this,arguments)};
_.H(Kv8,fd);Kv8.prototype.getAssociations=function(){var R=[];this.delegate.trackDownloadMetadatas&&R.push.apply(R,_.py(this.delegate.trackDownloadMetadatas));return[].concat(_.py(new Set(R)))};
Kv8.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var Wvf=function(){fd.apply(this,arguments)};
_.H(Wvf,fd);
Wvf.prototype.getAssociations=function(){var R=[];this.delegate.downloadedTracks&&R.push.apply(R,_.py(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&R.push.apply(R,_.py(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&R.push.apply(R,_.py(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&R.push.apply(R,_.py(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&R.push.apply(R,_.py(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
R.push.apply(R,_.py(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&R.push.apply(R,_.py(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&R.push.apply(R,_.py(this.delegate.metadataOnlyTracks));return[].concat(_.py(new Set(R)))};
Wvf.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var jj8=function(){fd.apply(this,arguments)};
_.H(jj8,fd);jj8.prototype.getAssociations=function(){var R=[];this.delegate.trackDownloadMetadatas&&R.push.apply(R,_.py(this.delegate.trackDownloadMetadatas));return[].concat(_.py(new Set(R)))};
jj8.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var brq=function(){fd.apply(this,arguments)};
_.H(brq,fd);brq.prototype.getAssociations=function(){var R=[];this.delegate.playbackData&&R.push(this.delegate.playbackData);this.delegate.localImageEntities&&R.push.apply(R,_.py(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&R.push(this.delegate.videoDownloadContextEntity);return[].concat(_.py(new Set(R)))};
brq.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var fRZ=function(){fd.apply(this,arguments)};
_.H(fRZ,fd);
fRZ.prototype.getAssociations=function(){var R=[];this.delegate.musicLibraryStatusEntity&&R.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&R.push.apply(R,_.py(this.delegate.primaryArtists));this.delegate.details&&R.push(this.delegate.details);this.delegate.userDetails&&R.push(this.delegate.userDetails);this.delegate.tracks&&R.push.apply(R,_.py(this.delegate.tracks));this.delegate.share&&R.push(this.delegate.share);this.delegate.downloadMetadata&&R.push(this.delegate.downloadMetadata);this.delegate.refresh&&
R.push(this.delegate.refresh);return[].concat(_.py(new Set(R)))};
fRZ.prototype.getTypeName=function(){return"musicAlbumRelease"};
var p98=function(){fd.apply(this,arguments)};
_.H(p98,fd);p98.prototype.getAssociations=function(){var R=[];this.delegate.albumRelease&&R.push(this.delegate.albumRelease);this.delegate.tracks&&R.push.apply(R,_.py(this.delegate.tracks));return[].concat(_.py(new Set(R)))};
p98.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var Fv8=function(){fd.apply(this,arguments)};
_.H(Fv8,fd);Fv8.prototype.getAssociations=function(){var R=[];this.delegate.albumRelease&&R.push(this.delegate.albumRelease);return[].concat(_.py(new Set(R)))};
Fv8.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var BSz=function(){fd.apply(this,arguments)};
_.H(BSz,fd);BSz.prototype.getAssociations=function(){var R=[];this.delegate.details&&R.push(this.delegate.details);this.delegate.userDetails&&R.push(this.delegate.userDetails);return[].concat(_.py(new Set(R)))};
BSz.prototype.getTypeName=function(){return"musicArtist"};
var aRS=function(){fd.apply(this,arguments)};
_.H(aRS,fd);aRS.prototype.getAssociations=function(){var R=[];this.delegate.parentArtist&&R.push(this.delegate.parentArtist);return[].concat(_.py(new Set(R)))};
aRS.prototype.getTypeName=function(){return"musicArtistDetail"};
var CVS=function(){fd.apply(this,arguments)};
_.H(CVS,fd);CVS.prototype.getAssociations=function(){var R=[];this.delegate.parentArtist&&R.push(this.delegate.parentArtist);return[].concat(_.py(new Set(R)))};
CVS.prototype.getTypeName=function(){return"musicArtistUserDetail"};var hgS=function(){fd.apply(this,arguments)};
_.H(hgS,fd);hgS.prototype.getAssociations=function(){return[]};
hgS.prototype.getTypeName=function(){return"musicLibraryEdit"};var ogZ=function(){fd.apply(this,arguments)};
_.H(ogZ,fd);ogZ.prototype.getAssociations=function(){return[]};
ogZ.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var kLA=function(){fd.apply(this,arguments)};
_.H(kLA,fd);
kLA.prototype.getAssociations=function(){var R=[];this.delegate.tracks&&R.push.apply(R,_.py(this.delegate.tracks));this.delegate.refresh&&R.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&R.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&R.push(this.delegate.details);this.delegate.downloadMetadata&&R.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&R.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&R.push(this.delegate.userDetails);this.delegate.entryCollection&&
R.push(this.delegate.entryCollection);this.delegate.share&&R.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&R.push.apply(R,_.py((new GLD(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.py(new Set(R)))};
kLA.prototype.getTypeName=function(){return"musicPlaylist"};
var GLD=function(){bo.apply(this,arguments)};
_.H(GLD,bo);GLD.prototype.getAssociations=function(){var R=[];this.delegate.creatorEntity&&R.push(this.delegate.creatorEntity);return[].concat(_.py(new Set(R)))};var ZrS=function(){fd.apply(this,arguments)};
_.H(ZrS,fd);ZrS.prototype.getAssociations=function(){return[]};
ZrS.prototype.getTypeName=function(){return"musicShare"};var tQE=function(){fd.apply(this,arguments)};
_.H(tQE,fd);
tQE.prototype.getAssociations=function(){var R=[];this.delegate.musicLibraryStatusEntity&&R.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&R.push.apply(R,_.py(this.delegate.artists));this.delegate.audioModeVersion&&R.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&R.push(this.delegate.videoModeVersion);this.delegate.userDetails&&R.push(this.delegate.userDetails);this.delegate.details&&R.push(this.delegate.details);this.delegate.albumRelease&&R.push(this.delegate.albumRelease);this.delegate.share&&
R.push(this.delegate.share);this.delegate.libraryEdit&&R.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&R.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&R.push(this.delegate.playbackPosition);this.delegate.lyrics&&R.push(this.delegate.lyrics);return[].concat(_.py(new Set(R)))};
tQE.prototype.getTypeName=function(){return"musicTrack"};
var w97=function(){fd.apply(this,arguments)};
_.H(w97,fd);w97.prototype.getAssociations=function(){var R=[];this.delegate.parentTrack&&R.push(this.delegate.parentTrack);return[].concat(_.py(new Set(R)))};
w97.prototype.getTypeName=function(){return"musicTrackDetail"};
var uvq=function(){fd.apply(this,arguments)};
_.H(uvq,fd);uvq.prototype.getAssociations=function(){var R=[];this.delegate.parentTrack&&R.push(this.delegate.parentTrack);return[].concat(_.py(new Set(R)))};
uvq.prototype.getTypeName=function(){return"musicTrackUserDetail"};var tm=new _.lU("musicResponsiveListItemRenderer");var efk=new _.lU("addToPlaylistEndpoint");var egz=new _.lU("captionPickerEndpoint");var q8A=new _.lU("suggestStats");var Lvq=new _.lU("backstageImageUploadEndpoint");var dYq=new _.lU("createBackstagePostDialogEndpoint");_.RlE=new _.lU("createCommentReplyDialogEndpoint");_.AeD=new _.lU("updateCommentDialogEndpoint");_.YO8=new _.lU("updateCommentReplyDialogEndpoint");var Pob=new _.lU("menuEndpoint");var CNJ=new _.lU("modalEndpoint");var EN8=new _.lU("playlistEditorEndpoint");var zlf=new _.lU("copyTextEndpoint");var idD,lXf;idD=new _.lU("shareEndpoint");lXf=new _.lU("shareEntityEndpoint");_.xND=new _.lU("shareEntityServiceEndpoint");_.p56=new _.lU("userFeedbackEndpoint");_.LO=new _.lU("watchEndpoint");var Hpk=new _.lU("watchPlaylistEndpoint");var ceN=new _.lU("addUpcomingEventReminderEndpoint");_.eM=new _.lU("getCommentsFromInboxCommand");var Odz=new _.lU("notificationOptOutEndpoint");var MMf=new _.lU("recordNotificationInteractionsEndpoint");var sYH=new _.lU("removeUpcomingEventReminderEndpoint");var wEk=new _.lU("getDownloadActionCommand");_.N3A=new _.lU("offlineOrchestrationActionCommand");var VM8=function(){fd.apply(this,arguments)};
_.H(VM8,fd);VM8.prototype.getAssociations=function(){return[]};
VM8.prototype.getTypeName=function(){return"captionTrack"};var Jez=function(){fd.apply(this,arguments)};
_.H(Jez,fd);Jez.prototype.getAssociations=function(){return[]};
Jez.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var yeE=function(){fd.apply(this,arguments)};
_.H(yeE,fd);yeE.prototype.getAssociations=function(){return[]};
yeE.prototype.getTypeName=function(){return"offlineVideoPolicy"};var mNf=function(){fd.apply(this,arguments)};
_.H(mNf,fd);mNf.prototype.getAssociations=function(){return[]};
mNf.prototype.getTypeName=function(){return"offlineVideoStreams"};var T3b=function(){fd.apply(this,arguments)};
_.H(T3b,fd);T3b.prototype.getAssociations=function(){var R=[];this.delegate.transfer&&R.push(this.delegate.transfer);this.delegate.adsPlaybackData&&R.push.apply(R,_.py(this.delegate.adsPlaybackData));this.delegate.drmLicense&&R.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&R.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&R.push(this.delegate.videoDownloadContextEntity);return[].concat(_.py(new Set(R)))};
T3b.prototype.getTypeName=function(){return"playbackData"};var QYq=function(){fd.apply(this,arguments)};
_.H(QYq,fd);QYq.prototype.getAssociations=function(){return[]};
QYq.prototype.getTypeName=function(){return"refresh"};var vND=function(){fd.apply(this,arguments)};
_.H(vND,fd);vND.prototype.getAssociations=function(){var R=[];this.delegate.offlineVideoStreams&&R.push.apply(R,_.py(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&R.push.apply(R,_.py(this.delegate.captionTrack));return[].concat(_.py(new Set(R)))};
vND.prototype.getTypeName=function(){return"transfer"};var gNf=function(){fd.apply(this,arguments)};
_.H(gNf,fd);gNf.prototype.getAssociations=function(){return[]};
gNf.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var nNZ=new _.lU("showMoreDrawerCommand");var Hd8=new _.lU("updateEngagementPanelContentCommand");var reS=new _.lU("getPdgBuyFlowCommand");var DNz=new _.lU("liveChatPurchaseMessageEndpoint");var UNb=new _.lU("openSuperStickerBuyFlowCommand");var $N7=new _.lU("updatePdgFeatureEnablementCommand");var XME=function(){fd.apply(this,arguments)};
_.H(XME,fd);XME.prototype.getAssociations=function(){return[]};
XME.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var SOZ=function(){fd.apply(this,arguments)};
_.H(SOZ,fd);SOZ.prototype.getAssociations=function(){return[]};
SOZ.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.IXz=new _.lU("pdgCommentChipRenderer");_.KUA=new _.lU("permissionRoleBottomBarRenderer");_.WUS=new _.lU("updatePermissionRoleCommand");var jYz=new _.lU("prefetchWatchCommand");var bd7=new _.lU("updatePlayerErrorMessageCommand");var CRk=new _.lU("toggleCaptionsVisibilityCommand");_.fXZ=new _.lU("quickActionsViewModel");var pM8=new _.lU("playerResponse");var FU7=new _.lU("playlistRenderer");_.B38=new _.lU("playlistVideoListRenderer");_.qN=new _.lU("playlistEditEndpoint");var aXA=new _.lU("createImagePollCommand");var CoE=new _.lU("createQuizCommand");var hlE=new _.lU("quizRenderer");var oNG=new _.lU("uploadedVideoRenderer");var kyH=new _.lU("decorateMessageEndpoint");var GyD=new _.lU("lpOfferCardOptionViewModel");var Zdf=new _.lU("sfvAudioItemPlaybackCommand");var tMb=function(){fd.apply(this,arguments)};
_.H(tMb,fd);tMb.prototype.getAssociations=function(){return[]};
tMb.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.Ld=new _.lU("reelNonVideoContentEndpoint");_.SI=new _.lU("reelWatchEndpoint");_.d3=new _.lU("reelItemRenderer");_.wMS=new _.lU("reelMetapanelViewModel");_.ueA=new _.lU("reelNonVideoContentRenderer");_.el7=new _.lU("reelPlayerOverlayRenderer");var qOG=new _.lU("shortsLockupViewModel");var LUf=new _.lU("sponsorButtonViewModel");var dNb=new _.lU("reelItemWatchResponse");var RSA=new _.lU("textBadgeRenderer");_.RC=new _.lU("buttonRenderer");_.As=new _.lU("toggleButtonRenderer");var uzJ=new _.lU("switchButtonViewModel");_.AsH=new _.lU("confirmDialogRenderer");var Y7G;Y7G=new _.lU("menuRenderer");_.PSZ=new _.lU("menuFlexibleItemRenderer");var E5H=new _.lU("pollRenderer");_.zSZ=new _.lU("backgroundPromoRenderer");var lYb;_.i_N=new _.lU("chipCloudRenderer");lYb=new _.lU("chipCloudChipRenderer");var xJN=new _.lU("dropdownRenderer");var csf=new _.lU("gridVideoRenderer");_.O_f=new _.lU("itemSectionRenderer");_.MmA=new _.lU("messageRenderer");var sCb=new _.lU("sortFilterHeaderRenderer");_.Y5=new _.lU("videoRenderer");var NYZ=new _.lU("resolveUrlCommandMetadata");var VmD=function(){fd.apply(this,arguments)};
_.H(VmD,fd);VmD.prototype.getAssociations=function(){return[]};
VmD.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.Js7=new _.lU("getAnswerCommand");_.Ud=new _.lU("searchEndpoint");var ys8=new _.lU("genAiRichTextViewModel");var tak=new _.lU("overviewAnswerViewModel");var mJN=new _.lU("videoOverviewViewModel");var TYE=new _.lU("addToPlaylistServiceEndpoint");var QCG=new _.lU("clearSearchHistoryEndpoint");var v5G=new _.lU("clearWatchHistoryEndpoint");var g5b=new _.lU("webSerializedServiceEndpointExtension");_.n57=new _.lU("createCommentEndpoint");var H_H=new _.lU("createCommentReplyEndpoint");var rsA=new _.lU("performCommentActionEndpoint");var DJA=new _.lU("updateCommentEndpoint");var UJG=new _.lU("updateCommentReplyEndpoint");_.Pi=new _.lU("createPlaylistServiceEndpoint");var $JE=new _.lU("deletePlaylistEndpoint");var XiE=new _.lU("deleteVideoEndpoint");var uxk=new _.lU("getReportFormEndpoint");var S77=new _.lU("modifyChannelNotificationPreferenceEndpoint");var M1S;_.QJ=new _.lU("offlinePlaylistEndpoint");M1S={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 sg6;_.TI=new _.lU("offlineVideoEndpoint");sg6={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 IYE=new _.lU("pingingEndpoint");_.KAG=new _.lU("selectActiveIdentityEndpoint");var WAN=new _.lU("setSettingEndpoint");var qEJ=new _.lU("undoFeedbackEndpoint");var jCb=new _.lU("unsubscribeEndpoint");_.b_A=new _.lU("updatedMetadataEndpoint");var fYb=function(){fd.apply(this,arguments)};
_.H(fYb,fd);fYb.prototype.getAssociations=function(){return[]};
fYb.prototype.getTypeName=function(){return"settingEntity"};_.piS=new _.lU("updateLocalAppSettingCommand");var FAA=new _.lU("saveImageToDeviceEndpoint");var BYG=new _.lU("shareImageCommand");var aY8=new _.lU("sharingProviderDataCommand");var CS7=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(CS7,_.lb);var hSz=[0,_.eR,-1];CS7.prototype.JSC$12357_serializeBinary=aE6(hSz);var o5A=_.gZ(hSz);var wdz=new _.lU("userMentionSuggestionRenderer");var usS=new _.lU("liveChatTunnelCommand");var eRS=new _.lU("showSponsorshipsGiftOfferDialogCommand");var qVS=new _.lU("sponsorshipsScrollableShelfViewModel");var L$Z=new _.lU("updateUpcomingEventReminderButtonStateCommand");var daD=new _.lU("upcomingEventReminderButtonStateRenderer");var R1S=new _.lU("subscribeEndpoint");var AQE=new _.lU("registerTasksCommand");var YhG=new _.lU("hideSnackbarCommand");var PFb=new _.lU("showDialogCommand");_.r0=new _.lU("showSheetCommand");var EuD=new _.lU("showSnackbarCommand");var z1D=function(){fd.apply(this,arguments)};
_.H(z1D,fd);z1D.prototype.getAssociations=function(){return[]};
z1D.prototype.getTypeName=function(){return"chipEntity"};var iHE=function(){fd.apply(this,arguments)};
_.H(iHE,fd);iHE.prototype.getAssociations=function(){return[]};
iHE.prototype.getTypeName=function(){return"dismissState"};_.pi=new _.lU("avatarViewModel");var lWD=new _.lU("badgeViewModel");_.E7=new _.lU("buttonViewModel");_.zA=new _.lU("chipViewModel");var lCP=new _.lU("collectionThumbnailViewModel");var xU7=new _.lU("contentPreviewImageViewModel");var cQb=new _.lU("decoratedAvatarViewModel");_.dsk=new _.lU("engagementBarViewModel");_.OHA=new _.lU("imageBannerViewModel");var MVb=new _.lU("lockupContentMetadataRowExtension");_.ssA=new _.lU("lockupMetadataViewModel");_.Ntq=new _.lU("lockupViewModel");var VVb=new _.lU("avatarStackViewModel");_.JQz=new _.lU("contentMetadataViewModel");var yQz=function(){fd.apply(this,arguments)};
_.H(yQz,fd);yQz.prototype.getAssociations=function(){return[]};
yQz.prototype.getTypeName=function(){return"pageHeaderEntity"};_.mUA=new _.lU("pageHeaderViewModel");var TtE=new _.lU("snackbarViewModel");var QsS=new _.lU("thumbnailHoverOverlayToggleActionsViewModel");_.iS=new _.lU("toggleButtonViewModel");var vuq=function(){fd.apply(this,arguments)};
_.H(vuq,fd);vuq.prototype.getAssociations=function(){return[]};
vuq.prototype.getTypeName=function(){return"votingEntity"};_.RLu=new _.lU("votingViewModel");var guA=new _.lU("sectionHeaderViewModel");var nuz=new _.lU("notifyDropdownOptionSelectedCommand");var Hh6=new _.lU("listViewModel");_.Dk=new _.lU("listItemViewModel");var izl=new _.lU("toggleableListItemViewModel");var HHN=new _.lU("dialogHeaderViewModel");var rQH=function(){fd.apply(this,arguments)};
_.H(rQH,fd);rQH.prototype.getAssociations=function(){return[]};
rQH.prototype.getTypeName=function(){return"dataFreshnessEntity"};var jeJ=new _.lU("suspenseViewModel");var DUE=function(){fd.apply(this,arguments)};
_.H(DUE,fd);DUE.prototype.getAssociations=function(){return[]};
DUE.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var UUN=function(){fd.apply(this,arguments)};
_.H(UUN,fd);UUN.prototype.getAssociations=function(){return[]};
UUN.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var $Uq=function(){fd.apply(this,arguments)};
_.H($Uq,fd);$Uq.prototype.getAssociations=function(){return[]};
$Uq.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.XXb=new _.lU("transcriptSubmitCaptionCorrectionCommand");var ShH=function(){fd.apply(this,arguments)};
_.H(ShH,fd);ShH.prototype.getAssociations=function(){return[]};
ShH.prototype.getTypeName=function(){return"buttonEntity"};var XpV=new _.lU("unpluggedStringRunImage");var IWz=new _.lU("tabViewModel");var K4E=new _.lU("tabbedViewModel");var W4H=function(){fd.apply(this,arguments)};
_.H(W4H,fd);W4H.prototype.getAssociations=function(){return[]};
W4H.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.jsS=new _.lU("updateDescriptionAction");var bHE=new _.lU("updateToggleButtonTextAction");_.fWq=new _.lU("autoplaySwitchButtonRenderer");var IL;_.pXf=new _.lU("multiMarkersPlayerBarRenderer");IL=new _.lU("chapterRenderer");var F4N=new _.lU("heatMarkerRenderer");var xD3=new _.lU("heatmapRenderer");var BtG=new _.lU("smartSkipPlayerScrimOverlayRenderer");var aWf=new _.lU("timedMarkerDecorationRenderer");var aCk=new _.lU("postWebToNativeMessageCommand");var WL=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(WL,_.lb);WL.prototype.getMethodName=function(){return _.X1(this,1)};var CFS=[0,_.eR,-2];WL.prototype.JSC$12379_serializeBinary=aE6(CFS);var h18=_.Te(WL,CFS);var ouZ=new _.lU("whitelistEditEndpoint");var ku8=new _.lU("clearUrlParamCommand");var GuS=new _.lU("commerceActionCommand");_.ZHN=new _.lU("getPaymentInstrumentsParamsCommand");var tVq=new _.lU("getPaymentsClientTokenCommand");var wXq=new _.lU("googlePaymentBillingCommand");var umD=new _.lU("googlePaymentPurchaseManagerCommand");_.e1A=new _.lU("logGtmCommand");var qhS=new _.lU("updateCardItemOnClickCommand");_.L4S=new _.lU("ypcPauseSubscriptionCommand");_.dUf=new _.lU("ypcResumeSubscriptionCommand");var REE=function(){fd.apply(this,arguments)};
_.H(REE,fd);REE.prototype.getAssociations=function(){return[]};
REE.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var ABN=function(){fd.apply(this,arguments)};
_.H(ABN,fd);ABN.prototype.getAssociations=function(){return[]};
ABN.prototype.getTypeName=function(){return"commerceCartListEntity"};var YbZ=function(){fd.apply(this,arguments)};
_.H(YbZ,fd);YbZ.prototype.getAssociations=function(){return[]};
YbZ.prototype.getTypeName=function(){return"iconBadgeEntity"};var POD=function(){fd.apply(this,arguments)};
_.H(POD,fd);POD.prototype.getAssociations=function(){return[]};
POD.prototype.getTypeName=function(){return"pdpStateEntity"};var EMq=function(){fd.apply(this,arguments)};
_.H(EMq,fd);EMq.prototype.getAssociations=function(){return[]};
EMq.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var KDI=new _.lU("ypcOffersEndpoint");var zEN=new _.lU("cardItemRenderer"),ilE=new _.lU("cardItemTextRenderer");var lmH=new _.lU("commerceCartItemQuantityPickerRenderer");var xvH=new _.lU("linkCardRenderer");var jVI=new _.lU("quantityIncrementerButtonViewModel");var cBG=new _.lU("quantityIncrementerViewModel");var Olq=new _.lU("themedImageViewModel");_.Mtz=new _.lU("ypcCancelRecurrenceEndpoint");var sJb=new _.lU("ypcCompleteTransactionEndpoint");_.NI7=new _.lU("ypcGetCartEndpoint");_.ed=new _.lU("ypcGetOffersEndpoint");_.lS=new _.lU("ypcHandleTransactionEndpoint");var VtG=new _.lU("ypcLogWalletAnalyticDataEndpoint");_.JBD=new _.lU("ypcRedeemCodeEndpoint");var yB7=new _.lU("ypcUpdateFopEndpoint");VB(NN(1),MN(4));jhk((new MessageChannel).port2);var mv7=function(){this.register=new Map},e$J=function(R,A,Y){R=R+"_"+A;
x5.register.has(R)?Y=x5.register.get(R):(Y=Y(),x5.register.set(R,Y));return Y},TIb=function(R){R=_.x(R.register.values());
for(var A=R.next();!A.done;A=R.next())_.lD(A.value,"ABORTED")};
mv7.prototype.clear=function(){TIb(this);this.register.clear()};
var x5=new mv7;var S06=Date.now().toString();var WwI=Kw6();var CUq={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 QJA,fO;QJA=1;fO=function(R){this.veData=R};
_.S5=function(R){return new fO({trackingParams:R})};
_.NV=function(R,A,Y,P,E,z){var c=QJA++;return new fO({veType:R,veCounter:c,elementIndex:Y,dataElement:A,youtubeData:P,jspbYoutubeData:E,loggingDirectives:z})};
_.l=fO.prototype;
_.l.getAsJson=function(){var R={};this.veData.trackingParams!==void 0?R.trackingParams=this.veData.trackingParams:(R.veType=this.veData.veType,this.veData.veCounter!==void 0&&(R.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(R.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(R.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(R.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(R.isCounterfactual=!0);
return R};
_.l.getAsJspb=function(){var R=new LxG;this.veData.trackingParams!==void 0?R.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.jR(R,2,this.veData.veType),this.veData.veCounter!==void 0&&_.jR(R,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.jR(R,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.y6(R,5,!0));if(this.veData.dataElement!==void 0){var A=this.veData.dataElement.getAsJspb();_.DE(R,7,A)}this.veData.youtubeData!==void 0&&_.DE(R,8,this.veData.jspbYoutubeData);
return R};
_.l.toString=function(){return JSON.stringify(this.getAsJson())};
_.l.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.l.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.PG("yt_logging_screen.getRootVeType",FwP);_.PG("yt_logging_screen.getCurrentCsn",_.F9);_.PG("yt_logging_screen.getCttAuthInfo",Be);_.PG("yt_logging_screen.setCurrentScreen",_.aK);var vMS=function(){this.events=new Map},gM8=function(R){var A=[];
R=_.x(R.events.values());for(var Y=R.next();!Y.done;Y=R.next())A.push(Y.value);return A};
vMS.prototype.clear=function(){this.events.clear()};var HlA=function(){this.logTransport=new nMA;this.loggedEventRegister=new vMS;this.unloggedEventRegister=new vMS;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12416_flushTimer=new _.xh(this.flushInterval);this.JSC$12416_flushTimer.listen("tick",this.flush,!1,this)};
HlA.prototype.flush=function(){if(this.eventsCount){var R={loggedEvents:gM8(this.loggedEventRegister),unloggedEvents:gM8(this.unloggedEventRegister)};if(_.v("export_player_version_to_ytconfig")){var A;(A=_.a1("PLAYER_CLIENT_VERSION"))?(A=A.split("-")[0].replace(/\./g,""),A=isNaN(Number(A))?"0":A):A="";var Y=_.a1("PLAYER_CLIENT_VERSION");if(Y){Y=Y.split("-");var P="";Y.length>1&&(P=Y[Y.length-1]);Y=XPk(P.startsWith("canary_experiment")?"canary":P.startsWith("canary_control")?"control":"none")}else Y=
"CLIENT_CANARY_STATE_UNKNOWN";R.dimensions={playerClientVersion:A,playerCanaryState:Y}}this.logTransport.flush(R);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12416_flushTimer.enabled&&this.JSC$12416_flushTimer.stop()}};
var rBf=function(R){ci==null&&(ci=new HlA);var A=ci;var Y=A.loggedEventRegister;R.dimensions=R.dimensions||{};R.dimensions.csn=_.F9()||"";var P=kf6(R.dimensions).join(";");if(R.records!=null)if(Y.events.has(P)){var E;(E=Y.events.get(P).records)==null||E.push.apply(E,_.py(R.records))}else Y.events.set(P,R);A.JSC$12416_flushTimer.enabled||A.JSC$12416_flushTimer.start();A.eventsCount++;A.eventsCount>=100&&A.flush()};var nMA=function(){};
nMA.prototype.flush=function(R,A){_.v("enable_client_sli_logging")&&_.Wj("sliEventBatch",R,{sendIsolatedPayload:!!A})};var ci;var UvZ;UvZ=function(R){var A=DvE;R=R===void 0?{}:R;A=A.name;var Y=utq("SUCCESS");rBf({dimensions:R,records:[{name:A,state:"SLI_STATE_END",status:Y}]})};
_.q0S=function(R,A,Y,P){this.name=R;this.sliId=A;this.timeoutMs=Y;this.statusOnTimeout=P;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.q0S.prototype.getId=function(){return this.sliId};
_.iD=function(R,A){A=A===void 0?{}:A;R.ongoing||(R.ongoing=!0,R.dimensions=A,R.logSliId=jPA(),rBf({dimensions:R.dimensions,records:[{name:R.name,state:"SLI_STATE_START",sliId:R.logSliId}]}),R.timeoutMs>0&&(R.timeoutHandle=setTimeout(function(){_.lD(R,R.statusOnTimeout)},R.timeoutMs)))};
_.lD=function(R,A){R.ongoing&&(R.timeoutMs>0&&clearTimeout(R.timeoutHandle),R.ongoing=!1,A={dimensions:R.dimensions,records:[{name:R.name,status:utq(A),state:"SLI_STATE_END",sliId:R.logSliId}]},x5.register.delete(R.name+"_"+R.sliId),rBf(A))};var DvE=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var $vz=function(){fd.apply(this,arguments)};
_.H($vz,fd);$vz.prototype.getAssociations=function(){return[]};
$vz.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var M$3=new _.lU("highlightTextDecoratorColorMapExtension");var cy3=new _.lU("styleRunColorMapExtension");var EI6=_.Z7(["data-"]),lV6={};var cSq={};var O7=function(R){this.wrappedPromise_=R===void 0?null:R;this.state_=0;this.JSC$12448_value_=null};
O7.prototype.then=function(R,A,Y){return this.wrappedPromise_?this.wrappedPromise_.then(R,A,Y):this.state_===1&&R?(R=R.call(Y,this.JSC$12448_value_))&&typeof R.then==="function"?R:_.MJ(R):this.state_===2&&A?(R=A.call(Y,this.JSC$12448_value_))&&typeof R.then==="function"?R:_.XwH(R):this};
O7.prototype.getValue=function(){return this.JSC$12448_value_};
O7.prototype.isRejected=function(){return this.state_==2};
uHq(O7);_.XwH=function(R){var A=new O7;R=R===void 0?null:R;A.state_=2;A.JSC$12448_value_=R===void 0?null:R;return A};
_.MJ=function(R){var A=new O7;R=R===void 0?null:R;A.state_=1;A.JSC$12448_value_=R===void 0?null:R;return A};var rSV="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var Sbz=["load","abort","error"],s7=function(R,A,Y){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12468_maxAspectRatio_=R;this.disableAnimation_=A===void 0?!1:A;this.disableExifRotation_=Y===void 0?!1:Y;this.JSC$12468_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12468_reject_=this.resolve_=null};
s7.prototype.transform=function(R){var A=this;this.mime_=R.type;An(Rx7(R),this.dataUrlRead_,this.readError_,this);An(diH(R.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(Y,P){A.resolve_=Y;A.JSC$12468_reject_=P})};
s7.prototype.dataUrlRead_=function(R){this.dataUrl_=R;this.angle_!=null&&ImG(this)};
s7.prototype.exifRead_=function(R){if(this.disableExifRotation_)this.angle_=0;else{a:if(R=new DataView(R),R.byteLength<2||R.getUint16(0)!==65496)R=-2;else{for(var A=2,Y=R.byteLength;A<Y;){var P=R.getUint16(A),E=R.getUint16(A+2);if(P===65505){A+=4;P=R.getUint32(A);E=R.getUint16(A+4);if(P!==1165519206||E!==0)break;A+=6;P=R.getUint16(A)===18761;A+=R.getUint32(A+4,P);E=R.getUint16(A,P);A+=2;for(var z=0;z<E;z++){if(R.getUint16(A,P)===274){A+=8;R=R.getUint16(A,P);break a}A+=12}}else if(P>>8!==255)break;
else A+=E+2}R=-1}switch(R){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&&ImG(this)};
s7.prototype.readError_=function(){this.JSC$12468_reject_()};
var ImG=function(R){$9(R.JSC$12468_image_,Sbz,R.completeTransform_,!1,R);R.JSC$12468_image_.src=_.oR(R.dataUrl_).toString();R.JSC$12468_image_.src!=hb.toString()&&R.JSC$12468_image_.src.substr(0,11)==="data:image/"||R.JSC$12468_reject_()};
s7.prototype.completeTransform_=function(){if(this.JSC$12468_image_.src!=hb.toString()){var R=_.oR(this.dataUrl_),A=this.JSC$12468_image_.naturalHeight?this.JSC$12468_image_.naturalWidth/this.JSC$12468_image_.naturalHeight:null;this.invalidAspectRatio=A>this.JSC$12468_maxAspectRatio_||A<1/this.JSC$12468_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var Y=this.JSC$12468_image_.naturalWidth,P=this.JSC$12468_image_.naturalHeight,E=A=0,z=this.JSC$12468_image_.naturalHeight?this.JSC$12468_image_.naturalWidth/
this.JSC$12468_image_.naturalHeight:null;z>this.JSC$12468_maxAspectRatio_?(Y=this.JSC$12468_maxAspectRatio_*P,A=(Y-this.JSC$12468_image_.naturalWidth)/2,this.cropped=!0):z<1/this.JSC$12468_maxAspectRatio_?(P=this.JSC$12468_maxAspectRatio_*Y,E=(P-this.JSC$12468_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)z=Y,Y=P,P=z,z=A,A=E,E=z;switch(this.angle_){case 90:E-=Y;break;case 180:A-=Y;E-=P;break;case 270:A-=
P}this.cropped||this.angle_%360!==0?(R=document.createElement("canvas"),R.width=Y||1,R.height=P||1,this.JSC$12468_image_.naturalWidth&&this.JSC$12468_image_.naturalHeight&&(Y=R.getContext("2d"),Y.rotate(Math.PI/180*this.angle_),Y.drawImage(this.JSC$12468_image_,A,E,this.JSC$12468_image_.naturalWidth,this.JSC$12468_image_.naturalHeight)),this.transformedData=_.oR(R.toDataURL(this.mime_))):this.transformedData=R}else this.transformedData=R;this.resolve_(this)}};var NJ=function(R,A){_.r4.call(this,R);this.value=A};
_.H(NJ,_.r4);
var V0=function(R,A,Y,P,E,z,c){c=c===void 0?!1:c;_.SS.call(this);var M=this;this.JSC$12473_url_=R;this.channelId_=A;this.maxFileSizeMb_=Y;this.JSC$12473_maxAspectRatio_=P;this.dropZoneEl_=E;this.rejectInvalidAspectRatio_=c;this.selectButtonEl_=z;this.JSC$12473_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new nd(this.dropZoneEl_);this.selectOverlay_=new HM(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12473_image_=this.transfer_=null;this.handler_=new _.ce(this);_.gz(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(z,"click",function(){M.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.H(V0,_.SS);V0.prototype.disposeInternal=function(){for(var R=this.selectButtonEl_.nextSibling;R&&R.parentNode&&R.tagName=="INPUT";)R.parentNode.removeChild(R),R=this.selectButtonEl_.nextSibling;this.cancel();_.SS.prototype.disposeInternal.call(this)};
V0.prototype.uploadPromise=function(){if(this.JSC$12473_image_==null)return null;this.uploadPromise_||KXS(this);return this.uploadPromise_};
V0.prototype.cancel=function(){WXb(this);this.JSC$12473_image_=null};
var WXb=function(R){R.transfer_&&R.transfer_.cancel();R.transfer_=null;R.uploadPromise_=null;R.resolve_=null;R.JSC$12473_reject_=null},KXS=function(R){WXb(R);
R.transfer_=_.mAS(R.JSC$12473_url_,{"X-YouTube-ChannelId":R.channelId_},R.JSC$12473_image_);R.handler_.listenOnce(R.transfer_,"l",R.JSC$12475_onUploadComplete_);R.handler_.listenOnce(R.transfer_,"n",R.onUploadError_);R.transfer_.run();R.uploadPromise_=new Promise(function(A,Y){R.resolve_=A;R.JSC$12473_reject_=Y})};
_.l=V0.prototype;_.l.onChange_=function(R){R.files.length&&(this.JSC$12473_image_=R.files[0],this.JSC$12473_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12473_image_=null,this.dispatchEvent(new NJ("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(KXS(this),(new s7(this.JSC$12473_maxAspectRatio_)).transform(this.JSC$12473_image_).then((0,_.Wv)(this.onPreview_,this),(0,_.Wv)(this.onPreviewError_,this))))};
_.l.onPreview_=function(R){if(R.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12473_image_=null),this.dispatchEvent(new NJ("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;R.cropped&&this.dispatchEvent(new NJ("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new NJ("yt.comments.ImageUploadOverlay.CHANGE_EVENT",R.transformedData))};
_.l.onPreviewError_=function(){this.JSC$12473_image_=null;this.dispatchEvent(new NJ("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.l.onHover_=function(R){R.stopPropagation();R.preventDefault();if(R.type==="dragover")R=!0;else if(R.type==="dragleave")R=!1;else return;this.dispatchEvent(new NJ("yt.comments.ImageUploadOverlay.HOVER_EVENT",R))};
_.l.JSC$12475_onUploadComplete_=function(){var R=(0,_.QS8)(this.transfer_.getResponseText());this.resolve_(R.encryptedBlobId)};
_.l.onUploadError_=function(){this.JSC$12473_reject_();WXb(this)};var jJS=function(R){R=R||{};var A={},Y={};this.url=R.url||"";this.args=R.args||_.BO.clone(A);this.assets=R.assets||{};this.attrs=R.attrs||_.BO.clone(Y);this.fallback=R.fallback||null;this.fallbackMessage=R.fallbackMessage||null;this.html5=!!R.html5;this.disable=R.disable||{};this.loaded=!!R.loaded;this.messages=R.messages||{}};
jJS.prototype.clone=function(){var R=new jJS,A;for(A in this)if(this.hasOwnProperty(A)){var Y=this[A];_.tE(Y)=="object"?R[A]=_.BO.clone(Y):R[A]=Y}return R};var blS,fm8,pwA,Z5,BI7,amf,CO7,hES,oMb,kVb,GVG,ZlE,ttA,wwS,uPf,eEG,qbA,LXf,dvG,RvS,ACH,YHG,Pg8,EXb,zvZ,ipf,lPA,xuG,cCS,ulk,OpG,MLN,szS,Nyz,VLq,JCb,yCb,muA,TyA,Qzz,w48,vX7,gXH,nXA,HpE,rCS,Dub,Uub,$ub,XfS,SHG,IPZ,Ku7,WuS,jzS,bpq,Js,fPq,pfA,Fuq,ByE,aPE,CgD,hvf,oXb,kFA,GFA,ZpD,tL8,wfZ,uyG,evD,qHz,Luz,du8,R_q,ZNP,Aif,YDS,PM7,Em8,z_D,iPS,l_S,xWG,ciH,OPZ,Mnb,s_Z,N7S,VnG,JiS,yiD,mW7,T7N,Q_z,vmE,gmZ,nmb,HPN,riN,DWN;blS=["account/accounts_list"];fm8=["acknowledge_channel_tou_strike"];pwA=["notification/add_upcoming_event_reminder"];
_.FXZ=["att/get"];Z5=["browse","music/browse","unplugged/browse"];BI7=["channel/claim_legacy_youtube_channel"];amf=["history/clear_search_history"];CO7=["history/clear_watch_history"];hES=["comment/perform_comment_action"];oMb=["comment/get_comment_replies"];kVb=["ypc/commerce_action"];GVG=["backstage/create_post"];ZlE=["live/create_broadcast"];ttA=["channel/create_channel"];wwS=["comment/create_comment_reply"];uPf=["comment/create_comment"];eEG=["live_chat/create_poll"];qbA=["playlist/create"];
LXf=["decorate_message"];dvG=["live_chat/delete_message"];RvS=["playlist/delete"];ACH=["video/delete"];YHG=["like/dislike"];Pg8=["dismissal/dismiss"];EXb=["flag/flag"];zvZ=["flow"];ipf=["account/account_menu"];lPA=["playlist/get_add_to_playlist"];xuG=["get_answer"];cCS=["channel/get_channel_creation_form"];ulk=["offline/get_download_action"];OpG=["kids/get_kids_blocklist_picker"];MLN=["live_chat/get_item_context_menu"];szS=["live_chat/get_live_chat_message_buy_flow"];Nyz=["live_chat/get_live_chat_replay"];
VLq=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];JCb=["live_chat/get_live_chat_super_sticker_buy_flow"];yCb=["notification/get_notification_menu"];muA=["playlist/get_settings_editor"];TyA=["backstage/get_post_video_preview"];Qzz=["account/get_profile_card"];w48=["share/get_share_panel"];vX7=["share/get_sharing_provider_data"];gXH=["get_survey"];nXA=["notification/get_unseen_count"];HpE=["get_user_mention_suggestions"];rCS=["get_watch"];Dub=["guide"];
Uub=["feedback"];$ub=["kids/update_blacklist"];XfS=["like/like"];SHG=["live_chat/live_chat_action"];IPZ=["live_chat/manage_user"];Ku7=["video_manager/metadata_update"];WuS=["live_chat/moderate"];jzS=["notification/modify_channel_preference"];bpq=["notification/opt_out"];Js=["get_panel","get_posts_by_host_panel"];fPq=["player"];pfA=["browse/edit_playlist"];Fuq=["notification/record_interactions"];ByE=["reel/reel_item_watch"];aPE=["reel/reel_watch_sequence"];CgD=["like/removelike"];hvf=["notification/remove_upcoming_event_reminder"];
oXb=["flag/get_form"];kFA=["miniapp/report_value"];GFA=["navigation/resolve_url"];ZpD=["channel/reveal_business_email"];tL8=["in_video/search"];wfZ=["search","sfv/search","unplugged/search"];uyG=["live_chat/send_message"];evD=["live_chat/send_live_chat_vote"];qHz=["account/set_setting"];Luz=["submit_caption_correction"];du8=["submit_form"];R_q=["subscription/subscribe"];ZNP=["get_transcript"];Aif=["resolve_location","unplugged/resolve_location"];YDS=["subscription/unsubscribe"];PM7=["backstage/update_post"];
Em8=["channel_edit/update_channel_page_settings"];z_D=["comment/update_comment_reply"];iPS=["comment/update_comment"];l_S=["comment/update_comments_settings"];xWG=["creator/update_creator_channel"];ciH=["pdg/update_enablement"];OPZ=["updated_metadata"];Mnb=["channel_edit/validate_channel_handle"];s_Z=["verify_age"];N7S=["next","unplugged/watch_next"];VnG=["whitelist/edit"];JiS=["ypc/cancel_recurrence"];yiD=["ypc/complete_transaction"];mW7=["ypc/get_cart"];T7N=["ypc/get_fix_instrument_params"];
Q_z=["ypc/get_offers"];vmE=["ypc/get_payment_instruments_params"];gmZ=["ypc/handle_transaction"];nmb=["ypc/log_payment_server_analytics"];HPN=["ypc/pause_subscription"];riN=["ypc/redeem_code"];DWN=["ypc/resume_subscription"];var UWb=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,272018,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,
21759,160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,273766,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,
166591,89711,74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,
168413,72733,107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,
211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,
64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,
221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,264349,264351,264350,264352,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,
149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,263843,196075,194768,252201,194769,191885,233634,265810,194770,
195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,
27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,
247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,
203649,47896,122629,186204,222824,271673,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,
134841,96368,67374,48992,146176,176105,233035,49956,267645,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,268574,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,269990,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,
234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,267692,267851,267577,267693,267694,267578,262801,271218,266131,266132,267977,267579,262800,262799,262802,267580,262798,267695,267581,273232,82039];var Qn=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.PG("yt.msgs_",Qn);var y0=new _.cP("ACTION_ROUTER_TOKEN");_.mA=function(){this.autonavState_=_.v("kevlar_is_pupi_enabled")?2:pyu()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.mA.prototype.getState=function(){return this.autonavState_};
_.mA.prototype.pause=function(R){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=R):this.autonavState_==1&&(this.disabledAutonavPauseReason_=R)};
_.mA.prototype.setState=function(R,A,Y){A&&(this.autoplayChangedByUser=!0);A=this.autonavState_===3||R===3;this.autonavState_!=R&&(this.autonavState_=R,R!=3&&_.FCb(R==2),R=_.v("kevlar_is_pupi_enabled")?Y||A:!0,_.ZA.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,R,Y))};
_.mA.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.AR(_.mA);var TA=function(){this.hasRun=!1};var Q0={},uik=(Q0.auto_search="LATENCY_ACTION_AUTO_SEARCH",Q0.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Q0.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Q0.app_startup="LATENCY_ACTION_APP_STARTUP",Q0.browse="LATENCY_ACTION_BROWSE",Q0.cast_splash="LATENCY_ACTION_CAST_SPLASH",Q0.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Q0.channels="LATENCY_ACTION_CHANNELS",Q0.chips="LATENCY_ACTION_CHIPS",Q0.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Q0.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Q0.editor="LATENCY_ACTION_EDITOR",Q0.embed="LATENCY_ACTION_EMBED",Q0.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Q0.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Q0.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Q0.explore="LATENCY_ACTION_EXPLORE",Q0.favorites="LATENCY_ACTION_FAVORITES",Q0.home="LATENCY_ACTION_HOME",Q0.inboarding="LATENCY_ACTION_INBOARDING",Q0.landing="LATENCY_ACTION_LANDING",Q0.learning="LATENCY_ACTION_LEARNING",
Q0.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",Q0.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",Q0.library="LATENCY_ACTION_LIBRARY",Q0.live="LATENCY_ACTION_LIVE",Q0.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Q0.management="LATENCY_ACTION_MANAGEMENT",Q0.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Q0.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Q0.onboarding="LATENCY_ACTION_ONBOARDING",Q0.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
Q0.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Q0.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Q0.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Q0.prebuffer="LATENCY_ACTION_PREBUFFER",Q0.prefetch="LATENCY_ACTION_PREFETCH",Q0.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Q0.profile_switcher="LATENCY_ACTION_LOGIN",Q0.projects="LATENCY_ACTION_PROJECTS",Q0.reel_watch="LATENCY_ACTION_REEL_WATCH",Q0.results="LATENCY_ACTION_RESULTS",Q0.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
Q0.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Q0.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Q0.review="LATENCY_ACTION_REVIEW",Q0.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Q0.search_ui="LATENCY_ACTION_SEARCH_UI",Q0.search_suggest="LATENCY_ACTION_SUGGEST",Q0.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Q0.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Q0.seek="LATENCY_ACTION_PLAYER_SEEK",Q0.settings="LATENCY_ACTION_SETTINGS",Q0.store="LATENCY_ACTION_STORE",
Q0.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Q0.tenx="LATENCY_ACTION_TENX",Q0.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Q0.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Q0.watch="LATENCY_ACTION_WATCH",Q0.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Q0["watch,watch7"]="LATENCY_ACTION_WATCH",Q0["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Q0["watch,watch7ad"]="LATENCY_ACTION_WATCH",Q0["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Q0.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
Q0.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Q0.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Q0.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Q0.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Q0.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Q0.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Q0.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Q0),OrJ=0;var yXk=function(R,A){bU.call(this,1,arguments);this.timer=A};
_.H(yXk,bU);var JXl=new Tgk("aft-recorded",yXk);var dBV=_.P3.ytLoggingGelSequenceIdObj_||{};_.PG("ytLoggingGelSequenceIdObj_",dBV);var vi=_.P3.ytLoggingLatencyUsageStats_||{};_.PG("ytLoggingLatencyUsageStats_",vi);var gY=function(){this.cleanupJob=0},Y8q=function(){gY.instance||(gY.instance=new gY);
return gY.instance};
_.l=gY.prototype;_.l.baseline=function(R,A,Y){n_(this,"baseline_"+R)||_.Wj("latencyActionBaselined",{clientActionNonce:R},{timestamp:A,cttAuthInfo:Y})};
_.l.tick=function(R,A,Y,P){n_(this,"tick_"+R+"_"+A)||_.Wj("latencyActionTicked",{tickName:R,clientActionNonce:A},{timestamp:Y,cttAuthInfo:P})};
_.l.info=function(R,A,Y){var P=Object.keys(R).join("");n_(this,"info_"+P+"_"+A)||(R=Object.assign({},R),R.clientActionNonce=A,_.Wj("latencyActionInfo",R,{cttAuthInfo:Y}))};
_.l.jspbInfo=function(R,A,Y){for(var P="",E=0;E<ff(R).length;E++)ff(R)[E]!==void 0&&(P=E===0?P.concat(""+E):P.concat("_"+E));n_(this,"info_"+P+"_"+A)||(_.IS(R,2,A),A={cttAuthInfo:Y},Y=_.v("jspb_sparse_encoded_pivot")?new DA([{}]):new DA,_.Ug(Y,7,NqA,R),RgP("latencyActionInfo",Y,A))};
_.l.span=function(R,A,Y){var P=Object.keys(R).join("");n_(this,"span_"+P+"_"+A)||(R.clientActionNonce=A,_.Wj("latencyActionSpan",R,{cttAuthInfo:Y}))};
var n_=function(R,A){vi[A]=vi[A]||{count:0};var Y=vi[A];Y.count++;Y.time=(0,_.iB)();R.cleanupJob||(R.cleanupJob=_.Ua(_.fn,function(){var P=(0,_.iB)(),E;for(E in vi)vi[E]&&P-vi[E].time>6E4&&delete vi[E];R&&(R.cleanupJob=0)},5E3));
return Y.count>5?(Y.count===6&&Math.random()*1E5<1&&(Y=new _.XN("CSI data exceeded logging limit with key",A.split("_")),A.indexOf("plev")>=0||_.pK(Y)),!0):!1};var $Wz,XlA;$Wz=window;XlA=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Xh=$Wz.performance||$Wz.mozPerformance||$Wz.msPerformance||$Wz.webkitPerformance||new XlA;var VQ3=!1,EgS=!1,mY6=(0,_.Wv)(_.Xh.clearResourceTimings||_.Xh.webkitClearResourceTimings||_.Xh.mozClearResourceTimings||_.Xh.msClearResourceTimings||_.Xh.oClearResourceTimings||_.r$,_.Xh);var SDS=window;SDS.ytcsi&&(SDS.ytcsi.infoGel=_.bE,SDS.ytcsi.tick=_.Fh);var X9P=function(R){bU.call(this,1,arguments);this.csn=R};
_.H(X9P,bU);var HGu=new Tgk("screen-created",X9P),GLu=[],$Yk=kLk,Zrl=0,oo=new Map,S8b=new Map,IRI=new Map;var XzV=Symbol("wf"),Ra=new WeakMap;var Hi=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},U5=function(){Hi.instance||(Hi.instance=new Hi);
return Hi.instance};
_.l=Hi.prototype;_.l.setClient=function(R){this.client=R};
_.l.JSC$12554_newScreen=function(){this.clear();this.csn=_.F9()};
_.l.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.l.reportShown=function(R,A,Y){var P=this.JSC$12554_getTrackingParams(R),E=R.visualElement?R.visualElement:P;A=this.shownElements.has(E);var z=this.visibleState.get(E);this.shownElements.add(E);this.visibleState.set(E,!0);R.impressionLog&&!A&&R.impressionLog();if(P||R.visualElement)if(Y=I_A(this,R,Y))if(E=KKD(this,R),rY(this,R)||E){P=R.visualElement?R.visualElement:_.S5(P);var c=R.interactionLoggingClientData;E||A?rY(this,R)&4?z||BSI(this.client,Y,P,c):rY(this,R)&1&&!A&&fRq(this.client,Y,P,c):fRq(this.client,
Y,P,c)}};
_.l.reportHidden=function(R,A,Y){var P=this.JSC$12554_getTrackingParams(R),E=R.visualElement?R.visualElement:P;A=this.hiddenElements.has(E);var z=this.visibleState.get(E);this.hiddenElements.add(E);this.visibleState.set(E,!1);if(z===!1)return!0;if(!P&&!R.visualElement)return!1;Y=I_A(this,R,Y);if(!Y||!rY(this,R)&&KKD(this,R))return!1;P=R.visualElement?R.visualElement:_.S5(P);rY(this,R)&8?aRl(this.client,Y,P):rY(this,R)&2&&!A&&(R=this.client,A=hg({cttAuthInfo:Be(Y)||void 0},Y),P={csn:Y,ve:P.getAsJson(),
eventType:2},Y==="UNDEFINED_CSN"?Gi("visualElementHidden",A,P):R?In("visualElementHidden",P,R,A):_.Wj("visualElementHidden",P,A));return!0};
_.l.JSC$12554_getTrackingParams=function(R){var A=this.getData(R),Y,P;if(_.v("il_use_view_model_logging_context")&&(A==null?0:(Y=A.context)==null?0:(P=Y.loggingContext)==null?0:P.loggingDirectives))return A.context.loggingContext.loggingDirectives.trackingParams||"";var E,z;if(A==null?0:(E=A.rendererContext)==null?0:(z=E.loggingContext)==null?0:z.loggingDirectives)return A.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(A==null?0:A.loggingDirectives)return A.loggingDirectives.trackingParams||
"";var c;return((c=R.veContainer)==null?0:c.trackingParams)?R.veContainer.trackingParams:(A==null?void 0:A.trackingParams)||""};
_.l.JSC$12554_elementShouldLogGesture=function(R,A){R=this.getData(R);return!!((Math.floor(Number(R&&R.loggingDirectives&&R.loggingDirectives.gestures&&R.loggingDirectives.gestures.types||""))||0)&A)};
_.l.JSC$12554_getNearestParentVe=function(R){var A=this.JSC$12554_getTrackingParams(R);return R.visualElement?R.visualElement:A?_.S5(A):R.parentElement?this.JSC$12554_getNearestParentVe(R.parentElement):null};
var I_A=function(R,A,Y){var P=_.F9(Y);return R.csn===null||P===R.csn||Y?P:(R=new _.XN("VisibilityLogger called before newScreen",{caller:A.tagName,previous_csn:R.csn,current_csn:P}),_.pK(R),null)};
Hi.prototype.getData=function(R){var A,Y=R.data||((A=R.props)==null?void 0:A.data);if(!Y||R.isWebComponentWrapper){var P;Y=(P=Ra.get(R))==null?void 0:P[XzV]}return Y};
var KKD=function(R,A){var Y;return!((Y=R.getData(A))==null||!Y.loggingDirectives)},rY=function(R,A){R=R.getData(A);
return Math.floor(Number(R&&R.loggingDirectives&&R.loggingDirectives.visibility&&R.loggingDirectives.visibility.types||""))||1};var DY;DY=function(){};
_.nC=function(){DY.instance||(DY.instance=new DY);return DY.instance};
DY.prototype.setClient=function(R){_.o1(U5().setClient).bind(U5())(R)};
_.WKA=function(){_.nC();_.o1(U5().JSC$12554_newScreen).bind(U5())()};
DY.prototype.clear=function(){_.o1(U5().clear).bind(U5())()};
DY.prototype.reportShown=function(R,A,Y){_.o1(U5().reportShown).bind(U5())(R,A,Y)};
DY.prototype.reportHidden=function(R,A,Y){return _.o1(U5().reportHidden).bind(U5())(R,A,Y)};
var Oau=function(R,A){return _.o1(U5().JSC$12554_getTrackingParams).bind(U5())(A)},SE6=function(R,A){return _.o1(U5().JSC$12554_getNearestParentVe).bind(U5())(A)};var U7,j_H;U7=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};
_.rU=function(){U7.instance||(U7.instance=new U7);return U7.instance};
U7.prototype.setClient=function(R){this.client=R};
j_H=function(R,A,Y){Y=Y===void 0?{}:Y;_.o1(function(){var P,E,z,c=((P=_.n(A==null?void 0:A.commandMetadata,_.Ti))==null?void 0:P.rootVe)||((E=_.n(A==null?void 0:A.commandMetadata,nIH))==null?void 0:(z=E.screenVisualElement)==null?void 0:z.uiType);if(c){P=_.n(A==null?void 0:A.commandMetadata,NYZ);if(P==null?0:P.parentTrackingParams){var M=_.S5(P.parentTrackingParams);if(P.parentCsn)var N=P.parentCsn}else Y.clickedVisualElement?M=Y.clickedVisualElement:A.clickTrackingParams&&(M=_.S5(A.clickTrackingParams));
a:{P=_.n(A,_.LO);E=_.n(A,Hpk);if(P){if(E=Bk6(P,"VIDEO")){P={token:E,videoId:P.videoId};break a}}else if(E&&(P=Bk6(E,"PLAYLIST"))){P={token:P,playlistId:E.playlistId};break a}P=void 0}Y=Object.assign({},{cttAuthInfo:P,parentCsn:N},Y);if(_.v("expectation_logging")){var y;Y.loggingExpectations=((y=_.n(A==null?void 0:A.commandMetadata,nIH))==null?void 0:y.loggingExpectations)||void 0}_.$5(R,c,M,Y)}else _.pK(new _.XN("Error: Trying to create a new screen without a rootVeType",A))})()};
_.$5=function(R,A,Y,P){P=P===void 0?{}:P;_.o1(function(){UWb.includes(A)||(_.pK(new _.XN("createClientScreen() called with a non-page VE",A)),A=83769);P.isHistoryNavigation||(R.forwardHistoryStack=[],R.backHistoryStack.push({rootVe:A,key:P.key||""}));R.graftQueue=[];R.stateChangedQueue=[];P.dataPromises?bPS(R,A,Y,P):f_8(R,A,Y,P)})()};
_.plG=function(R,A,Y){Y=Y===void 0?0:Y;_.o1(function(){A.then(function(P){R.pendingScreenCreation.has(Y)&&R.pendingScreenFn&&R.pendingScreenFn();var E=_.F9(Y),z=_.pO(Y);if(E&&z){var c={automatedLogEventSource:3},M;(P==null?0:(M=P.response)==null?0:M.trackingParams)&&ko(R.client,E,z,_.S5(P.response.trackingParams),!1,c);var N;(P==null?0:(N=P.playerResponse)==null?0:N.trackingParams)&&ko(R.client,E,z,_.S5(P.playerResponse.trackingParams),!1,c)}})})()};
U7.prototype.graftServerVe=function(R,A,Y){var P=this;return _.o1(function(){var E=_.S5(R);_.Xq(P,E,A,Y);return E})()};
_.Idq=function(R,A,Y,P){return _.v("enable_client_ve_spec")&&A.clientVeSpec?(A=_.NV(A.clientVeSpec.uiType,void 0,A.clientVeSpec.elementIndex,A.clientVeSpec.clientYoutubeData,void 0,A),_.Xq(R,A,Y,P)?A:null):A.trackingParams?R.graftServerVe(A.trackingParams,Y,P):null};
_.Hc=function(R,A,Y,P){return _.o1(function(){if(!A.veType)return _.fK(new _.XN("Error: Trying to graft a client VE without a veType.")),null;if(A.visibilityTypes){var E=A.visibilityTypes.reduce(function(z,c){return z|c});
E={visibility:{types:String(E)}}}E=_.NV(A.veType,A.visualElement,A.elementIndex,A.clientYouTubeData,void 0,E);return _.Xq(R,E,Y,P)?E:null})()};
_.Xq=function(R,A,Y,P){P=P===void 0?0:P;return _.o1(function(){if(R.pendingScreenCreation.has(P))return R.graftQueue.push([A,Y]),!0;var E=_.F9(P),z=Y||_.pO(P);if(E&&z){if(_.v("combine_ve_grafts")){var c=R.cachedVisualElements.get(z.toString());c?c.push(A):(R.cachedRootVisualElements.set(z.toString(),z),R.cachedVisualElements.set(z.toString(),[A]));R.attachTimeout||(R.attachTimeout=_.Ua(_.fn,function(){FKA(R,E)},1200))}else ko(R.client,E,z,A);
return!0}return!1})()};
_.Sm=function(R,A,Y){Y=Y===void 0?0:Y;var P=R.recurringGrafts.get(Y)||new Map;if(_.v("smarter_ve_dedupping"))for(var E=Array.from(P.keys()),z=0;z<E.length;z++){var c=void 0,M=void 0;var N=A;var y=E[z];y.isClientVe()&&N.isClientVe()?(c=N.getAsJson(),M=y.getAsJson(),N=c.veType!==M.veType||c.elementIndex!==M.elementIndex||c.dataElement!==M.dataElement||N.getLoggingDirectives()!==y.getLoggingDirectives()?!1:!0):N=y.veData.trackingParams!==void 0&&N.veData.trackingParams!==void 0?((M=N.veData)==null?void 0:
M.trackingParams)===((c=y.veData)==null?void 0:c.trackingParams):!1;if(N)return}else if(P.has(A))return;P.set(A,void 0);R.recurringGrafts.set(Y,P);_.F9(Y)==="UNDEFINED_CSN"||R.pendingScreenCreation.has(Y)||_.Xq(R,A,void 0,Y)};
_.IC=function(R,A,Y,P){P=_.F9(P===void 0?0:P);if(!P)return!1;hgl(R.client,P,A,Y);return!0};
_.K_=function(R,A,Y,P){if(!A)return!1;P=_.F9(P===void 0?0:P);if(!P)return!1;hgl(R.client,P,_.S5(A),Y);return!0};
_.ZL=function(R,A){var Y=A.getScreenLayer&&A.getScreenLayer();if(A.visualElement)return _.IC(R,A.visualElement,void 0,Y);A=Oau(_.nC(),A);return _.K_(R,A,void 0,Y)};
U7.prototype.clickCommand=function(R,A,Y){return _.K_(this,R.clickTrackingParams,A,Y===void 0?0:Y)};
U7.prototype.stateChanged=function(R,A,Y){this.visualElementStateChanged(_.S5(R),A,Y===void 0?0:Y)};
U7.prototype.visualElementStateChanged=function(R,A,Y){Y=Y===void 0?0:Y;Y===0&&this.pendingScreenCreation.has(Y)?this.stateChangedQueue.push([R,A]):this.logStateChanged(R,A,Y)};
U7.prototype.logStateChanged=function(R,A,Y){Y=Y===void 0?0:Y;var P=_.F9(Y);R=R||_.pO(Y);return P&&R?(ogq(this.client,P,R,A),!0):!1};
var bPS=function(R,A,Y,P){P=P===void 0?{}:P;R.pendingScreenCreation.add(P.layer||0);R.pendingScreenFn=function(){f_8(R,A,Y,P);var c=_.pO(P.layer);if(c){for(var M=_.x(R.graftQueue),N=M.next();!N.done;N=M.next())N=N.value,_.Xq(R,N[0],N[1]||c,P.layer);c=_.x(R.stateChangedQueue);for(M=c.next();!M.done;M=c.next())M=M.value,R.logStateChanged(M[0],M[1])}};
Y||_.F9(P.layer)||R.pendingScreenFn();if(P.dataPromises)for(var E=_.x(P.dataPromises),z=E.next();!z.done;z=E.next())_.plG(R,z.value,P.layer);else _.bj(Error("xf"))},f_8=function(R,A,Y,P){P=P===void 0?{}:P;
var E=void 0;P.layer||(P.layer=0);E=P.parentLayer!==void 0?P.parentLayer:P.layer;var z=_.F9(E);E=_.pO(E);var c=Y||E,M;c&&(P.parentCsn!==void 0?M={clientScreenNonce:P.parentCsn,visualElement:c}:z&&z!=="UNDEFINED_CSN"&&(M={clientScreenNonce:z,visualElement:c}));var N,y=_.a1("EVENT_ID");z==="UNDEFINED_CSN"&&y&&(N={servletData:{serializedServletEventId:y}});_.v("combine_ve_grafts")&&z&&FKA(R,z);_.v("no_client_ve_attach_unless_shown")&&c&&z&&brk(c,z);try{var m=_.KvJ(R.client,A,M,P.csnToClone,P.cttAuthInfo,
N,P.implicitGestureType,void 0,P.loggingExpectations)}catch(g){_.F8(g,{rootVeType:A,rootVe:E,parentVisualElement:Y,currentCsn:z,parentEl:M,csnToClone:P.csnToClone});_.bj(g);return}_.aK(m,A,P.layer,P.cttAuthInfo);z&&z!=="UNDEFINED_CSN"&&E&&!h$l(z)&&aRl(R.client,z,E,!0);R.backHistoryStack[R.backHistoryStack.length-1]&&!R.backHistoryStack[R.backHistoryStack.length-1].csn&&(R.backHistoryStack[R.backHistoryStack.length-1].csn=m||"");_.bE({clientScreenNonce:m});_.WKA();var T=_.pO(P.layer);z&&z!=="UNDEFINED_CSN"&&
T&&(_.v("web_mark_root_visible")||_.v("music_web_mark_root_visible"))&&_.wH(m,T);R.pendingScreenCreation.delete(P.layer||0);R.pendingScreenFn=void 0;var Q;(Q=R.recurringGrafts.get(P.layer))==null||Q.forEach(function(g,r){g?_.Xq(R,r,g,P.layer):T&&_.Xq(R,r,T,P.layer)});
B7N(R)},B7N=function(R){for(var A=0;A<R.afterNewScreenOneOffJobs.length;A++){var Y=R.afterNewScreenOneOffJobs[A];
try{Y()}catch(P){_.bj(P)}}for(A=R.afterNewScreenOneOffJobs.length=0;A<R.afterNewScreenRecurringJobs.length;A++){Y=R.afterNewScreenRecurringJobs[A];try{Y()}catch(P){_.bj(P)}}},FKA=function(R,A){if(A===void 0)for(var Y=aGI(),P=0;P<Y.length;P++)Y[P]!==void 0&&FKA(R,Y[P]);
else R.cachedVisualElements.forEach(function(E,z){(z=R.cachedRootVisualElements.get(z))&&Wv8(R.client,A,z,E)}),R.cachedVisualElements.clear(),R.cachedRootVisualElements.clear(),R.attachTimeout=void 0};var Wi=function(R){R=R===void 0?{layer:0}:R;this.hasRun=!1;this.createScreenConfig=R;R={};this.fqn=(R.response=!1,R.playerResponse=!1,R)};
_.H(Wi,TA);Wi.prototype.validate=function(R){return!(!R.data||!R.data.response&&!R.data.playerResponse)};
Wi.prototype.handle=function(R){var A=_.rU(),Y=this.createScreenConfig.layer;R.data.response&&R.data.response.trackingParams&&!this.fqn.response&&(A.graftServerVe(R.data.response.trackingParams,void 0,Y),this.fqn.response=!0);R.data.playerResponse&&R.data.playerResponse.trackingParams&&!this.fqn.playerResponse&&(A.graftServerVe(R.data.playerResponse.trackingParams,void 0,Y),this.fqn.playerResponse=!0)};var jm=function(){this.pk=_.ei();this.x9=[];this.dex=0};
jm.prototype.processChunk=function(R){if(R){for(var A=_.x(this.x9),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.validate(R)&&(Y.handle(R),Y.hasRun=!0);_.Fh("np"+this.dex);this.dex++}};var A0={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[]};var CM8=function(){var R=a_7;this.observers=[];this.value=R};
_.l=CM8.prototype;_.l.subscribe=function(R){var A=this;if(R.idx!=null)throw Error("zf");R.idx=this.observers.length;this.observers.push(R);return function(){var Y=A.observers[A.observers.length-1];A.observers[R.idx]=Y;Y.idx=R.idx;A.observers.pop()}};
_.l.update=function(R){this.value=R(this.value);this.notify()};
_.l.mutate=function(R){R(this.value);this.notify()};
_.l.set=function(R){this.value=R;this.notify()};
_.l.notify=function(){for(var R=_.x(this.observers),A=R.next();!A.done;A=R.next()){A=A.value;try{A(this.value)}catch(Y){}}};var L7k,h_8,GPq;_.Qp=function(R,A,Y,P,E,z,c){c=c===void 0?[]:c;this.buildCommandPayload=R;this.navigate=A;this.handleServiceRequest=Y;this.sendAction=P;this.JSC$12600_screenManager=E;this.commandResolverMap=z;this.autoLogResolverAllowlist=c;this.pendingCommands=new Set;this.isTracingEnabled=!1;h_8(this)};
L7k=function(R,A,Y){var P=F7b,E=Bi8,z=_.rU(),c=omq;Y=Y===void 0?[]:Y;_.Qp.instance=new _.Qp(R,A,P,E,z,c,Y)};
h_8=function(R){if(!R.isTracingEnabled&&w9k("command")){var A=R.resolveCommand;R.resolveCommand=function(Y,P){a:{for(E in Y)if(Object.prototype.hasOwnProperty.call(Y,E)){var E={commandType:E};break a}E={}}return egI("command",E,A.bind(this,Y,P))};
R.isTracingEnabled=!0}};
GPq=function(R,A,Y){if(!R.commandResolverMap)return!1;var P=Aeu(A,R.commandResolverMap);return P?((R.autoLogResolverAllowlist.some(function(E){return!!_.n(A,E)})||(Y==null?0:Y.forceClickLogging))&&kPf(R,A,Y),P instanceof Promise?P.then(function(E){E.resolve(A,Y)}):P.resolve(A,Y),!0):!1};
_.Qp.prototype.resolveCommand=function(R,A){var Y=this,P=ZP7(R);if(GPq(this,R,A))return!0;if(P)return tnf(this,R,A);if(!this.buildCommandPayload)return Lvk(R,"Unhandled command by buildCommandPayload"),!1;var E=this.buildCommandPayload(R,A);if(A==null?0:A.commandController)E.commandController=A.commandController;if(E.type===0){if(!this.navigate)return dYk(R,"navigate"),!1;if(!wlq(E.command))return Lvk(R,"Page requests need to specify a url"),!1;_.v("logging_avoid_blocking_during_navigation")&&_.iiJ().transition("application_navigating");
R=this.navigate(E)||[];YpA(R).then(function(){Y.pendingCommands.delete(E.command)});
return!0}if(E.type===1){if(!this.handleServiceRequest)return dYk(R,"handleServiceRequest"),!1;(A==null?0:A.forceClickLogging)&&kPf(this,E.command,A);R=this.handleServiceRequest(E);YpA(R).then(function(){Y.pendingCommands.delete(E.command)});
return!0}if(E.type===2){if(!this.sendAction)return dYk(R,"sendAction"),!1;kPf(this,E.command,A);this.sendAction(E);return!0}return!1};
var kPf=function(R,A,Y){if((Y==null||!Y.disableClickTracking)&&R.JSC$12600_screenManager)if(A.clickTrackingParams&&_.v("log_click_with_layer_from_element_in_command_handler")){var P;Y=Y==null?void 0:(P=Y.form)==null?void 0:P.element;R.JSC$12600_screenManager.clickCommand(A,null,Y&&Y.getScreenLayer&&Y.getScreenLayer())}else A.clickTrackingParams?R.JSC$12600_screenManager.clickCommand(A):!_.v("disable_clicked_visual_element_in_command_handler")&&(Y==null?0:Y.clickedVisualElement)&&_.IC(R.JSC$12600_screenManager,
Y.clickedVisualElement)},ZP7=function(R){var A=!!_.n(R,_.Jg),Y;
R=((Y=_.n(R,_.mZ))==null?void 0:Y.signal)==="CLIENT_SIGNAL";return A||R},tnf=function(R,A,Y){var P=_.n(A,_.Jg);
if(P)var E=(P==null?void 0:P.commands)||[];else{var z;if(((z=_.n(A,_.mZ))==null?void 0:z.signal)==="CLIENT_SIGNAL"){var c;E=((c=_.n(A,_.mZ))==null?void 0:c.actions)||[]}}if(E){A=_.x(E);for(E=A.next();!E.done;E=A.next()){E=E.value;try{R.resolveCommand(E,Y)}catch(M){M instanceof Error&&_.bj(M)}}return!0}Lvk(A,"Could not handle the meta command");return!1},wlq=function(R){var A;
return!((A=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null||!A.url)};var bS=function(){TA.apply(this,arguments)};
_.H(bS,TA);bS.prototype.validate=function(R){var A,Y;return!this.hasRun&&!!((A=R.data.response)==null?0:(Y=A.onResponseReceivedEndpoints)==null?0:Y.length)};
bS.prototype.handle=function(R){var A=_.Qp.instance;R=_.x(R.data.response.onResponseReceivedEndpoints);for(var Y=R.next();!Y.done;Y=R.next())A.resolveCommand(Y.value)};var u38,e_A,qDS;
u38=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=_.Vn();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.f_=function(){e_A||(e_A=new u38);return e_A};
qDS=function(){var R=_.f_();R.miniplayerButtonActivation=!1;R.userActivation=!1;R.playlistWatchPageActivation=!1;R.productDetailsPageActivation=!1;R.miniAppPageActivation=!1;R.playablesDestPageActivation=!1;R.lockupActivation=!1;R.showMiniplayerCommandActivation=!1;R.playlistSuggestionsShelfActivation=!1;R.mediaSessionPipActivation=!1;R.watchPipActivation=!1;R.watchWhileActivation=!1;R.shortsPipActivation=!1};
_.LKH=function(){var R=_.f_(),A=R.mediaSessionPipActivation,Y=R.watchPipActivation,P=R.watchWhileActivation,E=R.playlistWatchPageActivation,z=R.lockupActivation,c=R.showMiniplayerCommandActivation,M=R.navigatingAwayFromWatchDeletedVideo,N=R.shortsPipActivation,y=R.playlistSuggestionsShelfActivation,m=R.productDetailsPageActivation,T=R.miniAppPageActivation,Q=R.playablesDestPageActivation;return!R.miniplayerButtonActivation&&!E&&!y&&!m&&!T&&!Q&&!z&&!c&&!A&&!Y&&!P&&!N||M};var RIk;_.p_=_.PK("FEwhat_to_watch","/",3854);_.AqI=_.PK("FEdownloads","/feed/downloads",42352);RIk=_.PK("FEmusic_offline","browse/FEmusic_offline",42352);var Af=function(R,A){A=A===void 0?[]:A;var Y=Y===void 0?[]:Y;A=gyI.apply(null,[ny6.apply(null,_.py(A))].concat(_.py(Y)));this.store=Ulk(R,void 0,A)};
Af.prototype.getState=function(){return this.store.getState()};
Af.prototype.dispatch=function(R){return this.store.dispatch(R)};
Af.prototype.subscribe=function(R){return this.store.subscribe(R)};
Af.prototype.replaceReducer=function(R){return this.store.replaceReducer(R)};
Af.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Fq=function(R,A,Y){var P=A(R.getState());return R.subscribe(function(){var E=A(R.getState());if(E!==P){var z=P;P=E;Y(E,z)}})};var Zd8;_.HT=function(R,A,Y){return _.cK({type:"REPLACE_ENTITY",payload:{entityPayload:Y,entityType:R,key:A}})};
Zd8=function(R){return _.cK({type:"REPLACE_ENTITIES",payload:R})};
_.I9=function(R,A,Y,P){return _.cK({type:"UPDATE_ENTITY",payload:{entityPayload:Y,entityType:R,key:A,mergeOption:P}})};var VMJ=function(R){var A=this;R=R===void 0?[]:R;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;R.forEach(function(Y){A.append(Y)})};
_.l=VMJ.prototype;_.l.getLength=function(){return this.totalLength};
_.l.append=function(R){var A=this.arrays.length===0?!1:(A=this.arrays[this.arrays.length-1])&&A.buffer===R.buffer&&A.byteOffset+A.length===R.byteOffset;A?(A=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(A.buffer,A.byteOffset,A.length+R.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(R);this.totalLength+=R.length};
_.l.split=function(R){for(var A=new VMJ,Y=new VMJ,P=_.x(this.arrays),E=P.next();!E.done;E=P.next())E=E.value,R>=E.length?(A.append(E),R-=E.length):R?(A.append(new Uint8Array(E.buffer,E.byteOffset,R)),Y.append(new Uint8Array(E.buffer,E.byteOffset+R,E.length-R)),R=0):Y.append(E);return{headView:A,tailView:Y}};
_.l.extract=function(R,A){return this.split(R).tailView.split(A).headView};
_.l.isFocused=function(R){return R>=this.arrayPos&&R<this.arrayPos+this.arrays[this.arrayIdx].length};
_.l.focus=function(R){if(!this.isFocused(R))for(R<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=R&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var dWq=function(R,A){R.focus(A);return R.arrays[R.arrayIdx][A-R.arrayPos]};(function(){var R=function(P){return new Uint8Array(P)},A=function(P){for(var E=new Uint8Array(P.length),z=0;z<P.length;z++)E[z]=P[z];
return E},Y=new Uint8Array([1]);
return Y.length===1&&Y[0]===1?R:A})();
var xNu=Array(1024),lX8=window.TextDecoder?new TextDecoder:void 0,OdI=window.TextEncoder?new TextEncoder:void 0;var N3k=function(R){this.arrayView=R;this.pos=0;this.pendingTagAndType=-1},OQ=function(R){var A=dWq(R.arrayView,R.pos);
++R.pos;if(A<128)return A;for(var Y=A&127,P=1;A>=128;)A=dWq(R.arrayView,R.pos),++R.pos,P*=128,Y+=(A&127)*P;return Y},JeI=function(R,A){var Y=R.pendingTagAndType;
for(R.pendingTagAndType=-1;R.pos+1<=R.arrayView.totalLength;){Y<0&&(Y=OQ(R));var P=Y>>3,E=Y&7;if(P===A)return!0;if(P>A){R.pendingTagAndType=Y;break}Y=-1;switch(E){case 0:OQ(R);break;case 1:R.pos+=8;break;case 2:P=OQ(R);R.pos+=P;break;case 5:R.pos+=4}}return!1};var mN8=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=sYP(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},N6=function(R,A){A=R.pos+A;
if(!(R.buf.length>=A)){for(var Y=R.buf.length*2;Y<A;)Y*=2;R.buf=sYP(Y,R.wasm,R.buf.subarray(0,R.pos));R.view=new DataView(R.buf.buffer,R.buf.byteOffset,R.buf.byteLength)}},sQ=function(R,A){if(A>268435455){N6(R,4);
for(var Y=A&1073741823,P=0;P<4;P++)R.view.setUint8(R.pos,Y&127|128),Y>>=7,R.pos+=1;A=Math.floor(A/268435456)}for(N6(R,4);A>127;)R.view.setUint8(R.pos,A&127|128),A>>=7,R.pos+=1;R.view.setUint8(R.pos,A);R.pos+=1};for(var T3V={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,chipEntity:498,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,contextNoteUserRatingEntityPayload:576,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,
emojiCustomizationSetEntity:496,fakeChannel:2,fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,
mainPlaylistDownloadStateEntity:373,mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,
musicShare:100,musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,selectedChipIndexEntityPayload:479,settingEntity:297,stringEntity:382,
suggestedFeedbackChipStateEntity:485,transfer:120,trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},yek={},RGH=_.x(Object.entries(T3V)),Ajq=RGH.next();!Ajq.done;Ajq=RGH.next()){var YmA=_.x(Ajq.value),PfZ=YmA.next().value,EES=YmA.next().value,zGS=PfZ,iSE=EES;iSE&&(yek[iSE]=zGS)};var vNu=function(R,A){R=R===void 0?{}:R;switch(A.type){case "ENTITY_LOADED":return A.payload.reduce(function(P,E){var z,c=(z=E.options)==null?void 0:z.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!E.entityKey)return _.bj(Error("Bf")),P;if(E.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!E.payload)return E=new _.XN("REPLACE entity mutation is missing a payload",{entityKey:E.entityKey}),_.bj(E),P;var M=(0,_.BO.getAnyKey)(E.payload);
return nNq(P,M,E.entityKey,E.payload[M])}if(E.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{E=E.entityKey;try{var N=_.M6(E).entityType;M=nNq(P,N,E);break a}catch(T){if(T instanceof Error){E=new _.XN("Failed to deserialize entity key",{entityKey:E,originalMessage:T.message});_.bj(E);M=P;break a}throw T;}M=void 0}return M}if(E.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!E.payload)return E=new _.XN("UPDATE entity mutation is missing a payload",{entityKey:E.entityKey}),_.bj(E),P;M=(0,_.BO.getAnyKey)(E.payload);
var y,m;return HdJ(P,M,E.entityKey,E.payload[M],(y=E.fieldMask)==null?void 0:(m=y.mergeOptions)==null?void 0:m.repeatedFieldsMergeOption)}return P},R);
case "REPLACE_ENTITY":var Y=A.payload;return nNq(R,Y.entityType,Y.key,Y.entityPayload);case "REPLACE_ENTITIES":return Object.keys(A.payload).reduce(function(P,E){var z=A.payload[E];return Object.keys(z).reduce(function(c,M){return nNq(c,E,M,z[M])},P)},R);
case "UPDATE_ENTITY":return Y=A.payload,HdJ(R,Y.entityType,Y.key,Y.entityPayload,Y.mergeOption);default:return R}};var rel;var lqD=!1,Bi,aC,C_,hs,oC,xqE=function(R){_.KJ.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!lqD){var A,Y=new Uint8Array(256),P=new Uint8Array(256);var E=1;for(A=0;A<256;A++)Y[E]=A,P[A]=E,E^=E<<1^(E>>7&&283);Bi=new Uint8Array(256);aC=TX(256);C_=TX(256);hs=TX(256);oC=TX(256);for(var z=0;z<256;z++){E=z?P[255^Y[z]]:0;E^=E<<1^E<<2^E<<3^E<<4;E=E&255^E>>>8^99;Bi[z]=E;A=E<<1^(E>>7&&283);var c=A^E;aC[z]=A<<24|E<<16|E<<8|c;C_[z]=c<<24|aC[z]>>>8;hs[z]=E<<24|C_[z]>>>
8;oC[z]=E<<24|hs[z]>>>8}lqD=!0}E=TX(44);for(Y=0;Y<4;Y++)E[Y]=R[4*Y]<<24|R[4*Y+1]<<16|R[4*Y+2]<<8|R[4*Y+3];for(P=1;Y<44;Y++)R=E[Y-1],Y%4||(R=(Bi[R>>16&255]^P)<<24|Bi[R>>8&255]<<16|Bi[R&255]<<8|Bi[R>>>24],P=P<<1^(P>>7&&283)),E[Y]=E[Y-4]^R;this.key=E};
_.H(xqE,_.KJ);
xqE.prototype.encrypt=function(R){var A=R.length;R=new Uint8Array(R.buffer.slice(R.byteOffset,R.byteOffset+A));for(var Y=this.cipherBlock,P=0;P<A&&this.blockOffset<16;)R[P++]^=Y[this.blockOffset++];for(var E=A-(A-P)%16;P<E;)cj8(this),R[P++]^=Y[0],R[P++]^=Y[1],R[P++]^=Y[2],R[P++]^=Y[3],R[P++]^=Y[4],R[P++]^=Y[5],R[P++]^=Y[6],R[P++]^=Y[7],R[P++]^=Y[8],R[P++]^=Y[9],R[P++]^=Y[10],R[P++]^=Y[11],R[P++]^=Y[12],R[P++]^=Y[13],R[P++]^=Y[14],R[P++]^=Y[15];if(P<A)for(cj8(this),this.blockOffset=0;P<A;)R[P++]^=
Y[this.blockOffset++];return R};
var cj8=function(R){for(var A=R.key,Y=R.counter[0]^A[0],P=R.counter[1]^A[1],E=R.counter[2]^A[2],z=R.counter[3]^A[3],c=3;c>=0&&!(R.counter[c]=-~R.counter[c]);c--);for(var M,N,y=4;y<40;)c=aC[Y>>>24]^C_[P>>16&255]^hs[E>>8&255]^oC[z&255]^A[y++],M=aC[P>>>24]^C_[E>>16&255]^hs[z>>8&255]^oC[Y&255]^A[y++],N=aC[E>>>24]^C_[z>>16&255]^hs[Y>>8&255]^oC[P&255]^A[y++],z=aC[z>>>24]^C_[Y>>16&255]^hs[P>>8&255]^oC[E&255]^A[y++],Y=c,P=M,E=N;R=R.cipherBlock;c=A[40];R[0]=Bi[Y>>>24]^c>>>24;R[1]=Bi[P>>16&255]^c>>16&255;R[2]=
Bi[E>>8&255]^c>>8&255;R[3]=Bi[z&255]^c&255;c=A[41];R[4]=Bi[P>>>24]^c>>>24;R[5]=Bi[E>>16&255]^c>>16&255;R[6]=Bi[z>>8&255]^c>>8&255;R[7]=Bi[Y&255]^c&255;c=A[42];R[8]=Bi[E>>>24]^c>>>24;R[9]=Bi[z>>16&255]^c>>16&255;R[10]=Bi[Y>>8&255]^c>>8&255;R[11]=Bi[P&255]^c&255;c=A[43];R[12]=Bi[z>>>24]^c>>>24;R[13]=Bi[Y>>16&255]^c>>16&255;R[14]=Bi[P>>8&255]^c>>8&255;R[15]=Bi[E&255]^c&255};var OSA=!1;(function(){var R=function(P){return new Uint8Array(P)},A=function(P){for(var E=new Uint8Array(P.length),z=0;z<P.length;z++)E[z]=P[z];
return E},Y=new Uint8Array([1]);
return Y.length===1&&Y[0]===1?R:A})();
var k5;var Nw7=function(R){a:{if(!OSA&&!AZ){if(k5){var A=k5;break a}k5=(A=window.crypto)==null?void 0:A.subtle;var Y,P,E;if(((Y=k5)==null?0:Y.importKey)&&((P=k5)==null?0:P.sign)&&((E=k5)==null?0:E.encrypt)){A=k5;break a}k5=void 0}A=void 0}A&&(this.nativeEncryptor=new MWA(R,A));this.encryptorPolyfill=new sUS(R)};
Nw7.prototype.encrypt=function(R,A){var Y=this,P;return _.O(function(E){switch(E.nextAddress){case 1:if(!Y.nativeEncryptor){E.jumpTo(2);break}_.g2(E,3);return E.yield(Y.nativeEncryptor.encrypt(R,A),5);case 5:return E.return(E.yieldResult);case 3:P=_.UT(E),_.pK(P),OSA=!0,Y.nativeEncryptor=void 0;case 2:return E.return(Y.encryptorPolyfill.encrypt(R,A))}})};
Nw7.prototype.decrypt=function(R,A){return this.encrypt(R,A)};
var MWA=function(R,A){this.JSC$12673_aesKey=R;this.subtleCrypto=A};
MWA.prototype.encrypt=function(R,A){var Y=this,P;return _.O(function(E){if(E.nextAddress==1)return _.g2(E,2),E.yield(VW8(Y,R,A),4);if(E.nextAddress!=2)return E.return(E.yieldResult);P=_.UT(E);_.pK(P);OSA=!0;throw P;})};
var VW8=function(R,A,Y){var P,E;return _.O(function(z){switch(z.nextAddress){case 1:if(R.cryptoKey){z.jumpTo(2);break}return z.yield(R.subtleCrypto.importKey("raw",R.JSC$12673_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:R.cryptoKey=z.yieldResult;case 2:return P={name:"AES-CTR",counter:Y,length:128},z.yield(R.subtleCrypto.encrypt(P,R.cryptoKey,A),4);case 4:return E=z.yieldResult,z.return(new Uint8Array(E))}})},sUS=function(R){this.JSC$12676_aesKey=R};
sUS.prototype.encrypt=function(R,A){this.encryptor||(this.encryptor=new xqE(this.JSC$12676_aesKey));for(var Y=this.encryptor,P=0;P<4;P++)Y.counter[P]=A[P*4]<<24|A[P*4+1]<<16|A[P*4+2]<<8|A[P*4+3];Y.blockOffset=16;return this.encryptor.encrypt(R)};
sUS.prototype.decrypt=function(R,A){return this.encrypt(R,A)};var JjZ={},$Nk=z5("yt-idb-pref-storage",{objectStores:(JjZ.prefs={addedAtVersion:1},JjZ),shared:!1,upgrade:function(R,A){A(1)&&k_(oB(R,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.GA=function(R){this.token=R};
_.GA.getInstance=function(){return _.O(function(R){return R.return(new Promise(function(A){_.EF().then(function(Y){Y?(_.GA.instance||(_.GA.instance=new _.GA(Y)),A(_.GA.instance)):A(void 0)})}))})};
_.GA.prototype.get=function(R){var A=this,Y,P,E;return _.O(function(z){if(z.nextAddress==1)return z.yield(XMk(A.token),2);if(z.nextAddress!=3)return Y=z.yieldResult,z.yield(Y.get("prefs",R),3);P=z.yieldResult;if(!P)return z.return();E=(0,_.iB)();return P.expirationTimestampMs<=E?z.return():z.return(P.value)})};
_.GA.prototype.set=function(R,A,Y){Y=Y===void 0?31536E3:Y;var P=this,E,z,c;return _.O(function(M){if(M.nextAddress==1)return E=(0,_.iB)(),z={key:R,value:A,expirationTimestampMs:E+Y*1E3},M.yield(XMk(P.token),2);c=M.yieldResult;return M.yield(c.put("prefs",z),0)})};
_.GA.prototype.remove=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(XMk(A.token),2);Y=P.yieldResult;return P.yield(Y.delete("prefs",R),0)})};var ZY={},yj7=(ZY.INVALID_ENCODER_VERSION="Invalid encoder version",ZY.KEY_CREATION_FAILED="Failed to create encoder key",ZY.UNKNOWN_DECODE_ERROR="Failed to decode PES data",ZY.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",ZY.WRONG_DATA_TYPE="Encoder cannot process the data type",ZY),QS=function(R,A){A=A===void 0?{}:A;_.XN.call(this,yj7[R],Object.assign({},{name:"PESEncoderError",type:R},A));this.type=R;this.level="WARNING";Object.setPrototypeOf(this,QS.prototype)};
_.H(QS,_.XN);var ts=function(){};
ts.prototype.encode=function(R,A){try{return this.encodeImpl(R,A)}catch(Y){WU3(Y,IXI)}};
ts.prototype.decode=function(R,A){try{return this.decodeImpl(R,A)}catch(Y){WU3(Y,KUk)}};
var mqZ=function(R,A,Y){var P;return _.O(function(E){if(E.nextAddress==1)return _.g2(E,2),E.yield(R.decodeAsyncImpl(A,Y),4);if(E.nextAddress!=2)return E.return(E.yieldResult);P=_.UT(E);WU3(P,KUk);_.XH(E)})};
ts.prototype.decodeAsyncImpl=function(R,A){return Promise.resolve(this.decodeImpl(R,A))};var wY=function(R,A){this.aesEncryptor=R;this.aesEncryptorAsync=A};
_.H(wY,ts);wY.prototype.encodeImpl=function(R,A){A=jYI(A);R=(new TextEncoder).encode(JSON.stringify(R));return this.aesEncryptor.encrypt(R,A)};
wY.prototype.decodeImpl=function(R,A){if(!(R instanceof Uint8Array))throw SOq(1);var Y=new TextDecoder;A=jYI(A);R=this.aesEncryptor.decrypt(R,A);return JSON.parse(Y.decode(R))};
wY.prototype.decodeAsyncImpl=function(R,A){var Y=this,P,E,z;return _.O(function(c){if(c.nextAddress==1){if(!(R instanceof Uint8Array))throw SOq(1);P=new TextDecoder;E=jYI(A);return c.yield(Y.aesEncryptorAsync.decrypt(R,E),2)}z=c.yieldResult;return c.return(JSON.parse(P.decode(z)))})};var bdk={accountLinkStatusEntity:sc7,booleanEntity:oP7,buttonEntity:ShH,captionTrack:VM8,channelHandle:T4Z,chipEntity:z1D,commerceAcquisitionClientPayloadEntity:REE,commerceCartListEntity:ABN,contextNoteFeedEntityPayload:KLS,contextNoteUserRatingEntityPayload:WLf,continuationTokenEntity:eVH,downloadQualityPickerEntity:BkA,downloadsPageRefreshTokenEntity:CXb,downloadsPageViewConfigurationEntity:zgZ,downloadStatusEntity:aVq,dismissState:iHE,sfvAudioItemCurrentlyPlayingEntity:tMb,emojiFountainDataEntity:UUN,
emojiCustomizationSetEntity:DUE,fakeChannel:Z$E,fakePlaylist:tE8,fakePlaylistEntryCollection:wmf,fakeVideo:euZ,fakeVideoDescription:q2A,featuredProductsEntity:DYf,flowStateEntity:x2A,iconBadgeEntity:YbZ,interstitialInteractionStateEntity:XPE,likeButtonAnimationEntity:irH,liveChatPollStateEntity:pP7,dataFreshnessEntity:rQH,liveViewerLeaderboardChatEntryPointStateEntity:XME,liveViewerLeaderboardPointsEntity:SOZ,liveReactionsDataEntity:$Uq,logoEntity:U2G,macroMarkerEntity:lRA,mainDownloadsLibraryEntity:hVA,
mainDownloadsListEntity:oI8,mainPlaylistDownloadStateEntity:GJG,mainPlaylistEntity:qu7,mainPlaylistVideoEntity:LCA,mainVideoDownloadStateEntity:ZUf,mainVideoEntity:Y8Z,markersEngagementPanelSyncEntity:xYN,markersVisibilityOverrideEntity:cXA,musicAlbumReleaseDetail:p98,musicAlbumReleaseDownloadMetadataEntity:Kv8,musicAlbumRelease:fRZ,musicAlbumReleaseUserDetail:Fv8,musicArtistDetail:aRS,musicArtist:BSz,musicArtistUserDetail:CVS,musicDownloadsLibraryEntity:Wvf,musicLibraryEdit:hgS,musicLibraryStatusEntity:ogZ,
musicPlaylist:kLA,musicPlaylistDownloadMetadataEntity:jj8,musicShare:ZrS,musicTrackDetail:w97,musicTrackDownloadMetadataEntity:brq,musicTrack:tQE,musicTrackUserDetail:uvq,offlineOrchestrationActionWrapperEntity:Jez,offlineVideoPolicy:yeE,offlineVideoStreams:mNf,offlineabilityEntity:tJS,orchestrationWebSamplingEntity:wyb,pageHeaderEntity:yQz,pdpStateEntity:POD,pinnedProductEntity:UYb,playbackData:T3b,playerStateEntity:Or8,quantityIncrementerEntity:EMq,refresh:QYq,saveToPlaylistListEntity:VmD,selectedChipIndexEntityPayload:MQA,
settingEntity:fYb,stringEntity:kpG,suggestedFeedbackChipStateEntity:sjS,transfer:vND,trendingOfferEntity:$Y7,videoDownloadContextEntity:gNf,videoOverviewAsyncDataEntity:$vz,videoPlaybackPositionEntity:W4H,votingEntity:vuq,ytMainChannelEntity:PVA,youchatPendingResponseEntity:NSq,ytMainDownloadedVideoEntity:ui7,ytMainVideoEntity:EgN};var TwG,vEb,rF,oNb,kyP,HSA,DqA,rj7,nEA;TwG=function(R,A){this.JSC$12695_wrapped=R;this.JSC$12695_encoderRegistry=A;this.changedKeys={}};
vEb=function(R,A){return QUS(R.JSC$12695_encoderRegistry,A.version).decode(A.data,A.key)};
_.gEA=function(R,A,Y){return R.JSC$12695_wrapped.objectStore("EntityStore").get(A).then(function(P){if(P){if(Y&&P.entityType!==Y)throw Error("Cf");return vEb(R,P)}})};
rF=function(R,A,Y){return Y?(Y=Y.map(function(P){return _.gEA(R,P,A)}),kS.all(Y)):R.JSC$12695_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(A)).then(function(P){return P.map(function(E){return vEb(R,E)})})};
_.hlk=function(R,A,Y){var P=QYk(A),E=QUS(R.JSC$12695_encoderRegistry,1),z=Object.assign({},A);return R.JSC$12695_wrapped.objectStore("EntityStore").get(P).then(function(c){if(c){if(c.entityType!==Y)throw Error("Cf");z.entityMetadata||(c=vEb(R,c),z.entityMetadata=c.entityMetadata)}}).then(function(){var c={key:P,
entityType:Y,data:E.encode(z,P),version:1};return kS.all([R.JSC$12695_wrapped.objectStore("EntityStore").put(c),nEA(R,z,Y)])}).then(function(){HSA(R,P,Y);
return P})};
oNb=function(R,A){var Y=_.M6(A).entityType;return kS.all([R.JSC$12695_wrapped.objectStore("EntityStore").delete(A),rj7(R,A)]).then(function(){HSA(R,A,Y)})};
kyP=function(R,A,Y,P){var E=QUS(R.JSC$12695_encoderRegistry,1);return _.gEA(R,A,P).then(function(z){if(z){z=idu(z,Y);var c={key:A,entityType:P,data:E.encode(z,A),version:1};return kS.all([R.JSC$12695_wrapped.objectStore("EntityStore").put(c),nEA(R,z,P)])}}).then(function(){HSA(R,A,P);
return A})};
HSA=function(R,A,Y){var P=R.changedKeys[Y];P||(P=new Set,R.changedKeys[Y]=P);P.add(A)};
DqA=function(R,A,Y){var P=QYk(A);Y=fXq(Y);if(!Y)return kS.resolve([]);Y=new Y(A);R=R.JSC$12695_wrapped.objectStore("EntityAssociationStore");A=[];Y=_.x(Y.getAssociations());for(var E=Y.next();!E.done;E=Y.next())A.push(R.put({parentEntityKey:P,childEntityKey:E.value}));return kS.all(A).then(function(z){return z.map(function(c){return c[1]})})};
rj7=function(R,A){return R.JSC$12695_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(A))};
nEA=function(R,A,Y){var P=QYk(A);return rj7(R,P).then(function(){return DqA(R,A,Y)})};var UqE=function(){};
_.H(UqE,ts);UqE.prototype.encodeImpl=function(R){return R};
UqE.prototype.decodeImpl=function(R){if(R instanceof Uint8Array)throw SOq(0);return R};var B3J=function(){this.cacheMap={};this.cacheMap[0]=new UqE;if(!_.v("aes_pes_encoder_killswitch")){var R=this.cacheMap;try{var A=_.UK();var Y=jYI(A);var P=new wY(new sUS(Y),new Nw7(Y))}catch(E){throw R=E instanceof Error?new QS("KEY_CREATION_FAILED",{originalMessage:E.message}):new QS("KEY_CREATION_FAILED"),_.bj(R),R;}R[1]=P}},QUS=function(R,A){A=A===void 0?0:A;
R=R.cacheMap[A];if(!R)throw A=new QS("INVALID_ENCODER_VERSION",{encoderVersion:A}),_.bj(A),A;return R};var gF=function(R,A){_.KJ.call(this);this.token=R;this.JSC$12709_encoderRegistry=A;this.observers=[];R=new _.P3.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.UK());R.onmessage=this.handleMessage.bind(this);this.channel=R};
_.H(gF,_.KJ);_.HK=function(R,A,Y){var P,E,z,c;return _.O(function(M){if(M.nextAddress==1)return M.yield(UNV(R.token),2);if(M.nextAddress!=3)return P=M.yieldResult,M.yield(_.Lw(P,["EntityStore","EntityAssociationStore"],A,function(N){E=new TwG(N,R.JSC$12709_encoderRegistry);return Y(E)}),3);
z=M.yieldResult;E&&(c=E.changedKeys,Object.keys(c).length>0&&(R.channel.postMessage(c),$qH(R,c)));return M.return(z)})};
gF.prototype.observe=function(R){var A=this;this.observers.push(R);return function(){var Y=A.observers.indexOf(R);Y>=0&&A.observers.splice(Y,1)}};
var cIk=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(_.HK(R,{mode:"readonly",enableRetries:!0},function(P){return P.JSC$12695_wrapped.objectStore("EntityStore").getAll()}),2);
A=Y.yieldResult;return Y.return(Promise.all(A.filter(function(P){return!!P}).map(function(P){var E,z;
return _.O(function(c){if(c.nextAddress==1){E=P.key;z=P.entityType;var M=c.yield;var N=mqZ(QUS(R.JSC$12709_encoderRegistry,P.version),P.data,P.key);return M.call(c,N,2)}return c.return({key:E,entityType:z,data:c.yieldResult})})})))})};
gF.prototype.handleMessage=function(R){$qH(this,R.data)};
var $qH=function(R,A){R=_.x(R.observers);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,Y(A)};
gF.prototype.disposeInternal=function(){this.channel.close()};
var pMJ;var uS,Smq,cs8;uS={};_.XoN=(uS.mainVideoEntity="mainVideoEntityActionMetadata",uS.mainPlaylistEntity="mainPlaylistEntityActionMetadata",uS.musicTrack="musicTrackEntityActionMetadata",uS.musicPlaylist="musicPlaylistEntityActionMetadata",uS);Smq=new _.cP("DOWNLOADS_ENTITY_TYPE_MAP");_.WK=_.yS("","downloadsPageViewConfigurationEntity");cs8=_.yS("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.o56=_.yS("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.yS("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.yS("SMART_DOWNLOADS_ENABLED","settingEntity");_.yS("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var uek=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var Y7b=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var IYk={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var em,Ipk,$fE,zjI;em=window;_.Zn=em.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.hRk=em.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Lx;Ipk=em.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Jm;$fE=em.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||UfS;_.Iq7=em.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.k2A;zjI=em.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||tzD;e9({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 GDS=K$k(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(R){return R}}}),hBl=K$k(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(R){return R}}}),fpk=new Map;var twk=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],CrS;var KaZ=function(R){return _.cK({type:"SET_EPHEMERAL_ACTION",payload:R})};var WaA={ephemeralAction:null};var jUH={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var wXk={sharedUi:function(R,A){R=R===void 0?jUH:R;switch(A.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},R,{animatedThumbnailEnabled:A.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},R,{inlinePreviewEnabled:A.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},R,{currentPageType:A.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},R,{currentPageSubType:A.payload});default:return R}},
a11y:Qz({ephemeralAction:function(R,A){R=R===void 0?WaA.ephemeralAction:R;switch(A.type){case "SET_EPHEMERAL_ACTION":return A.payload;default:return R}}}),
entities:gN8};var dau={playlistId:"",inviteLinkURL:""};var bSS={continuationCommand:{}};var aW8=Qz({continuationCommand:function(R,A){R=R===void 0?bSS.continuationCommand:R;switch(A.type){case "SET_CONTINUATION_COMMAND":return A.payload.continuationCommand;default:return R}}});var AQk={currentFormId:"",commandsMap:{}};var CF3=Qz({isLeaderTab:function(R,A){R=R===void 0?!0:R;switch(A.type){case "SET_IS_LEADER_TAB":var Y,P;return(P=A==null?void 0:(Y=A.payload)==null?void 0:Y.isLeaderTab)!=null?P:R;default:return R}}});var poG;_.fqA=function(R){return _.cK({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:R}})};
poG=function(R){return _.cK({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:R}})};var tVk=Qz({isDesktopSmallWidth:function(R,A){switch(A.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return A.payload.isDesktopSmallWidth;default:return R===void 0?!1:R}},
isShortsActive:function(R,A){switch(A.type){case "SET_IS_SHORTS_ACTIVE":return A.payload.isShortsActive;default:return R===void 0?!1:R}},
isWatchWhileMode:function(R,A){switch(A.type){case "SET_IS_WATCH_WHILE_MODE":return A.payload.isWatchWhileMode;default:return R===void 0?!1:R}},
playerState:function(R,A){switch(A.type){case "SET_PLAYER_STATE":return A.payload.playerState;default:return R===void 0?-1:R}},
isFullscreen:function(R,A){switch(A.type){case "SET_IS_FULLSCREEN":return A.payload.isFullscreen;default:return R===void 0?!1:R}},
isSmallScreenSqueezeback:function(R,A){switch(A.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return A.payload.isSmallScreenSqueezeback;default:return R===void 0?!1:R}},
isShortsPipActive:function(R,A){switch(A.type){case "SET_IS_SHORTS_PIP_ACTIVE":return A.payload.isShortsPipActive;default:return R===void 0?!1:R}},
isPlaybackStarted:function(R,A){switch(A.type){case "SET_IS_PLAYBACK_STARTED":return A.payload.isPlaybackStarted;default:return R===void 0?!1:R}}});var PFV={currentMode:"canvas-hidden"};var e1k=function(){return function(R){return function(A){var Y=R(A);_.OC(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[A],!0);return Y}}};var Faq,P1J;Faq=new _.y2;_.cT=new _.cP("WATCH_PLAYER_PROMISE_TOKEN");_.BwA=new _.y2;_.aqZ=new _.cP("SHORTS_PLAYER_PROMISE_TOKEN");P1J=new _.cP("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var qhl=function(){return function(R){return function(A){A.type==="ENTITY_LOADED"&&_.is().resolve(_.cT).then(function(Y){var P;(P=Y.dispatchReduxAction)==null||P.call(Y,A)});
return R(A)}}};var Cfz={};var h1J=Qz({additionalContext:function(R,A){switch(A.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var Y;return(Y=A.payload)!=null?Y:"";default:return R===void 0?"":R}},
impersonatedChannelUrl:function(R,A){switch(A.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var Y;return(Y=A.payload)!=null?Y:"";default:return R===void 0?"":R}},
selectedVideoIds:function(R,A){R=R===void 0?Cfz:R;switch(A.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var Y={};return Object.assign({},R,(Y[A.payload]=!0,Y));case "VIDEO_UNSELECTED":return A=A.payload,R=Object.assign({},R),delete R[A],R;default:return R}}});var ouq=Qz({parentClickTrackingParams:function(R,A){switch(A.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return A.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return R===void 0?"":R}}});var hGA=function(R){return _.cK({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:R})};var oEE={};var kuJ=Qz({stepStates:function(R,A){R=R===void 0?oEE:R;switch(A.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var Y=R,P=A.payload,E,z,c;R={};A={selectionStates:Object.assign({},(c=(E=Y[P.stepId])==null?void 0:E.selectionStates)!=null?c:{},(R[P.token]={isSelected:P.isSelected},R)),userQuery:(z=Y[P.stepId])==null?void 0:z.userQuery};E={};return Object.assign({},Y,(E[P.stepId]=A,E));case "TALK_TO_RECS_UPDATE_USER_QUERY":return E=R,z=A.payload,c={selectionStates:Object.assign({},
(P=(Y=E[z.stepId])==null?void 0:Y.selectionStates)!=null?P:{}),userQuery:{userQuery:z.userQuery,token:z.userQueryToken}},Y={},Object.assign({},E,(Y[z.stepId]=c,Y));default:return R}}});var k1E,G1S,tWA;k1E=function(R){return _.cK({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:R})};
G1S=function(R){return _.cK({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:R})};
_.HC=function(R){return _.cK({type:"SET_CURRENT_PAGE_TYPE",payload:R})};
_.ZSN=function(R){return _.cK({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:R})};
tWA=function(R){return _.cK({type:"SET_CHIP_BAR_IS_STICKY",payload:R})};var z1u={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"};_.wof=function(R){return _.cK({type:"SET_PLAYER_STATE",payload:{playerState:R}})};var u0D=[],eG8={width:0,height:0};var Gu3=Qz({isTheaterMode:function(R,A){R=R===void 0?_.v("kevlar_disable_theater_mode_persistence")?!1:_.CQ("START_IN_THEATER_MODE"):R;switch(A.type){case "SET_IS_THEATER_MODE":return A.payload.isTheaterMode;default:return R}},
isWatchActive:function(R,A){switch(A.type){case "SET_IS_WATCH_ACTIVE":return A.payload.isWatchActive;default:return R===void 0?!1:R}},
isLearningJourneyActive:function(R,A){switch(A.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return A.payload.isLearningJourneyActive;default:return R===void 0?!1:R}},
isWatchFullscreen:function(R,A){switch(A.type){case "SET_IS_WATCH_FULLSCREEN":return A.payload.isWatchFullscreen;default:return R===void 0?!1:R}},
isWatchNarrowWidth:function(R,A){switch(A.type){case "SET_IS_WATCH_NARROW_WIDTH":return A.payload.isWatchNarrowWidth;default:return R===void 0?!1:R}},
isWatchRetroMode:function(R,A){switch(A.type){case "SET_IS_WATCH_RETRO_MODE":return A.payload.isWatchRetroMode;default:return R===void 0?!1:R}},
isLiveChatCollapsed:function(R,A){switch(A.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return A.payload.isLiveChatCollapsed;default:return R===void 0?!1:R}},
openEngagementPanels:function(R,A){R=R===void 0?u0D:R;var Y=[].concat(_.py(R));switch(A.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return Y.push(A.payload.panelToAdd),Y;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return Y.splice(Y.indexOf(A.payload.panelToRemove),1),Y;default:return R}},
playerState:function(R,A){switch(A.type){case "SET_PLAYER_STATE":return A.payload.playerState;default:return R===void 0?-1:R}},
watchScrollTop:function(R,A){switch(A.type){case "SET_WATCH_SCROLL_TOP":return A.payload.watchScrollTop;default:return R===void 0?0:R}},
watchWindowSize:function(R,A){R=R===void 0?eG8:R;switch(A.type){case "SET_WATCH_WINDOW_SIZE":return A.payload.watchWindowSize;default:return R}}});var qm7={feedbackTokens:[]};var ZHS=Qz({surveyFeedbackData:function(R,A){R=R===void 0?qm7:R;switch(A.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return A.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},R,A.payload);default:return R}}});var F4S={};var dU8=void 0;_.v("web_enable_redux_store_on_demand")||(dU8=L43());var La8=function(R,A,Y){var P=this;this.listId=R;this.JSC$12846_updateCallback=A;this.isOfflineVideoCallback=Y;_.Yp().subscribe(function(){P.handleUpdate()})};
La8.prototype.getPlaylistData=function(){var R=_.Yp().getState().entities;if(this.listId&&this.listId!=="PPSV"){var A=QCb(R,this.listId,!0),Y=_.yS(this.listId,"mainPlaylistEntity"),P,E;R=R==null?void 0:(P=R.mainPlaylistEntity)==null?void 0:(E=P[Y])==null?void 0:E.title;return REk(A,R,this.listId)}A=_.PSq(uqu(R));R=_.PSq(_.j9(R));R=A.concat(R);return REk(R)};
La8.prototype.getPlaylistId=function(){return this.listId};
La8.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$12846_updateCallback(this.listId,this.getPlaylistData(),{})};var qJ=function(R,A,Y,P){P=P===void 0?[]:P;this.JSC$12849_playlistNetworkManager=R;this.listId=A;this.JSC$12849_updateCallback=Y;this.videoIds=P;this.pendingUpdates=[];this.currentIndex=0};
qJ.prototype.JSC$12849_setCurrentIndex=function(R){this.currentIndex=R};
qJ.prototype.setListId=function(R){this.listId=R};
var dqD=function(R,A){R.currentCreateRequest&&R.currentCreateRequest.cancel(A);R.currentUpdateRequest&&R.currentUpdateRequest.cancel(A);R.currentRefreshRequest&&R.currentRefreshRequest.cancel(A)};
qJ.prototype.delete=function(){dqD(this,"PROXY DELETED")};
qJ.prototype.addVideos=function(R,A,Y){var P=this;Y!==void 0?this.videoIds.splice.apply(this.videoIds,[Y,0].concat(_.py(R))):this.videoIds.push.apply(this.videoIds,_.py(R));this.listId||this.currentCreateRequest?(R.forEach(function(E,z){E={addedVideoId:E,action:"ACTION_ADD_VIDEO"};Y&&(E.addedVideoPosition=Y+z);P.pendingUpdates.push(E)}),L_(this)):Reb(this,A.onCreateListCommand)};
var AcS=function(R,A,Y,P,E){IIS(R.videoIds,A,Y);A>R.currentIndex&&Y<=R.currentIndex?R.JSC$12849_setCurrentIndex(R.currentIndex+1):A===R.currentIndex?R.JSC$12849_setCurrentIndex(Y):A<R.currentIndex&&Y>=R.currentIndex&&R.JSC$12849_setCurrentIndex(R.currentIndex-1);R.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:P,movedSetVideoIdPredecessor:E});L_(R)},Reb=function(R,A){dqD(R,"OBSOLETE");
R.currentCreateRequest=YoA(R.JSC$12849_playlistNetworkManager,A,R.videoIds);_.jS(R.currentCreateRequest,function(){R.currentCreateRequest=void 0}).then(function(Y){R.setListId(Y.playlistId);
R.pendingUpdates.length>0?L_(R):P0D(R)})},L_=function(R){if(R.pendingUpdates.length!==0&&(R.currentRefreshRequest&&R.currentRefreshRequest.cancel("OBSOLETE"),!R.currentUpdateRequest&&!R.currentCreateRequest)){var A=R.pendingUpdates.splice(0,R.pendingUpdates.length);
R.currentUpdateRequest=R.JSC$12849_playlistNetworkManager.updatePlaylist(R.listId,A);_.jS(R.currentUpdateRequest,function(){R.currentUpdateRequest=void 0}).then(function(){R.pendingUpdates.length>0?L_(R):P0D(R)}).thenCatch(function(){R.pendingUpdates.unshift.apply(R.pendingUpdates,_.py(A))})}},P0D=function(R){R.currentRefreshRequest=_.E4N(R.JSC$12849_playlistNetworkManager,R.listId,R.currentIndex,R.videoIds[R.currentIndex]);
_.jS(R.currentRefreshRequest,function(){R.currentRefreshRequest=void 0}).then(function(A){R.JSC$12849_updateCallback(A.playlistId,A.playlistPanelRenderer,A.autoplayRenderer)})};
qJ.prototype.size=function(){return this.videoIds.length};var ze8=function(R,A,Y,P){P=P===void 0?[]:P;qJ.call(this,R,A,Y,P);this.JSC$12849_playlistNetworkManager=R;this.listId=A;this.JSC$12849_updateCallback=Y;this.videoIds=P};
_.H(ze8,qJ);_.dY=function(R,A,Y,P,E,z,c){E=E===void 0?[]:E;c=c===void 0?Nl:c;qJ.call(this,R,A,Y,E);this.JSC$12849_playlistNetworkManager=R;this.listId=A;this.JSC$12849_updateCallback=Y;this.onAuthChange=P;this.videoIds=E;this.storage=z;this.cookieReader=c;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.JM(_.fn,this.checkLoggedInStatusChange.bind(this),1E3)};
_.H(_.dY,qJ);_.l=_.dY.prototype;_.l.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.JM(_.fn,this.checkLoggedInStatusChange.bind(this),1E3)};
_.l.JSC$12849_setCurrentIndex=function(R){qJ.prototype.JSC$12849_setCurrentIndex.call(this,R);this.store()};
_.l.delete=function(){_.fn.cancelJob(this.queueSapisIdJob);qJ.prototype.delete.call(this)};
_.l.setListId=function(R){qJ.prototype.setListId.call(this,R);this.store()};
_.l.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var imf=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],l$H=["playerResponse","videoDetails"],xrD=["response","currentVideoEndpoint","watchEndpoint","videoId"],ccS=["response","currentVideoEndpoint","watchEndpoint","playlistId"],OmZ=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Mkq=["response","contents","twoColumnWatchNextResults","playlist","playlist"],sbf=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
NBb=["response","contents","twoColumnWatchNextResults"];var Rm={},zES=(Rm.WEB_UNPLUGGED="^unplugged/",Rm.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Rm.WEB_UNPLUGGED_OPS="^unplugged/",Rm.WEB_UNPLUGGED_PUBLIC="^unplugged/",Rm.WEB_CREATOR="^creator/",Rm.WEB_KIDS="^kids/",Rm.WEB_EXPERIMENTS="^experiments/",Rm.WEB_MUSIC="^music/",Rm.WEB_REMIX="^music/",Rm.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Rm.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Rm);var hv8,YoA;hv8=function(R,A){this.networkManager=R;this.innertubeTransportService=A};
YoA=function(R,A,Y){if(!_.n(A,_.Pi))return _.j5(Error("Gf"));_.n(A,_.Pi).videoIds=Y;Y={create_playlist_title:_.vk("QUEUE",void 0,"Queue")};return POu(_.uh(R.innertubeTransportService,A,Y),ABS)};
_.E4N=function(R,A,Y,P){A={videoId:P,playlistId:A,playlistIndex:Y};Y=_.Pr(N7S);return POu(_.Ad(R.innertubeTransportService,A,Y),EMk)};
hv8.prototype.updatePlaylist=function(R,A){return POu(_.uh(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:R,actions:A}}),Ybq)};var VkA=function(R){this.storage=R},JcN;
VkA.prototype.store=function(R,A){A=A===void 0?0:A;if(this.storage&&R.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",R),this.storage.set("TLPQindex",String(A)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(Y){}};
VkA.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
VkA.prototype.getPlaylistId=function(){if(!this.storage)return null;var R=null;try{R=this.storage.get("TLPQplaylist")}catch(A){}return R};var cBb=["navigationEndpoint","watchEndpoint","videoId"],xvP=["nextButtonVideo","watchEndpoint","videoId"];_.a4=new _.cP("NETWORK_TOKEN");_.YH=new _.cP("PAGE_TOKEN");_.Y7=new _.cP("PLAYLIST_TOKEN");var ycZ;ycZ=new _.cP("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Co=new _.cP("INNERTUBE_TRANSPORT_TOKEN");var mr7,Pd,QbA,v48,n4D,HmS;mr7=new Set(["ci","cr","carml"]);Pd=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$12896_parkedJobs=new Map;this.parkedProcessors=new Map};
_.EV=function(){Pd.instance||(Pd.instance=new Pd);return Pd.instance};
Pd.prototype.onAny=function(R){return _.TB8(this,R,2)};
Pd.prototype.parkOrScheduleJob=function(R,A,Y,P,E){_.zD(this,Y)?_.n6().addJob(R,A,P):(E&&(R=QbA(R),v48(this,R,A,Y,E)),E=this.JSC$12896_parkedJobs.get(Y),E||(this.JSC$12896_parkedJobs.set(Y,[]),E=this.JSC$12896_parkedJobs.get(Y)),E.push({job:R,priority:A,delay:P}))};
Pd.prototype.addListener=function(R,A,Y){Y&&(A=QbA(A),v48(this,A,0,R,Y));Y=this.parkedProcessors.get(R);Y||(this.parkedProcessors.set(R,[]),Y=this.parkedProcessors.get(R));Y.push(A)};
Pd.prototype.processSignal=function(R){if(!_.zD(this,R)){this.inProgressSignals.add(R);var A=this.JSC$12896_parkedJobs.get(R);if(A){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,_.n6().addJob(Y.job,Y.priority,Y.delay);this.JSC$12896_parkedJobs.delete(R)}if(A=this.parkedProcessors.get(R)){A=_.x(A);for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y();this.parkedProcessors.delete(R)}this.signals.push(R);this.inProgressSignals.delete(R)}};
_.zD=function(R,A){return mr7.has(A)||_.CQ("IS_HOMEPAGE_COLD")||_.CQ("IS_RESULTS_PAGE_COLD")||_.CQ("IS_WATCH_PAGE_COLD")?R.signals.indexOf(A)>=0:!0};
QbA=function(R){var A=!1;return function(){A||(A=!0,R())}};
v48=function(R,A,Y,P,E){if(g47.has(P))_.n6().addJob(A,Y,E);else{var z=R.compoundSignals.get(P);z&&_.n6().addJob(function(){_.zD(R,P)||(z.isTimeoutConditionSatisfied?_.n6().addJob(A,Y):z.timeoutConditionObservers.push(function(){_.n6().addJob(A,Y)}))},Y,E)}};
_.TB8=function(R,A,Y){if(A.length>1){var P=[],E=Object.create(null);A=_.x(A);for(var z=A.next();!z.done;z=A.next())z=z.value,E[z]||(P.push(z),E[z]=!0);A=P}if(A.length===1)return A[0];z=A;P="";E=Y===2?"|":"&";z.sort();z=_.x(z);for(var c=z.next();!c.done;c=z.next())P+=c.value+E;if(!R.compoundSignals.get(P)){E=0;z=[];c=_.x(A);for(var M=c.next();!M.done;M=c.next())M=M.value,E++,_.zD(R,M)||z.push(M);(Y=Y===2)&&E>z.length||!Y&&!z.length?R.signals.push(P):n4D(R,P,Y,A,z)}return P};
n4D=function(R,A,Y,P,E){var z=E.length,c=function(){Y||--z===0?R.processSignal(A):HmS(R,A)};
E=_.x(E);for(var M=E.next();!M.done;M=E.next())R.addListener(M.value,c);R.compoundSignals.set(A,{signals:P,isOnAny:Y,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});HmS(R,A)};
HmS=function(R,A){if(!_.zD(R,A)){var Y=R.compoundSignals.get(A);if(Y&&!Y.isTimeoutConditionSatisfied){for(var P=!1,E=0,z=0,c=_.x(Y.signals),M=c.next();!M.done;M=c.next()){var N=M.value;M=!_.zD(R,N);g47.has(N)?P=!0:(N=R.compoundSignals.get(N))?M&&!N.isTimeoutConditionSatisfied&&(z++,Y.isInitialized||N.timeoutConditionObservers.push(function(){HmS(R,A)})):M&&E++}Y.isInitialized=!0;
Y.isOnAny?P&&(Y.isTimeoutConditionSatisfied=!0):E===0&&z===0&&(Y.isTimeoutConditionSatisfied=!0);if(Y.isTimeoutConditionSatisfied)for(Y=_.x(Y.timeoutConditionObservers),P=Y.next();!P.done;P=Y.next())P=P.value,P()}}};
Pd.prototype.processSignal=Pd.prototype.processSignal;Pd.prototype.parkOrScheduleJob=Pd.prototype.parkOrScheduleJob;Pd.prototype.onAny=Pd.prototype.onAny;_.PG("ytsignals.getInstance",_.EV);Pd.prototype.onAny=Pd.prototype.onAny;Pd.prototype.parkOrScheduleJob=Pd.prototype.parkOrScheduleJob;Pd.prototype.processSignal=Pd.prototype.processSignal;var g47=new Set(["eop","eocs","dl","pcl"]);_.jv=new _.cP("MINIPLAYER_SERVICE");var ir,rcZ,DrS;ir=function(R,A,Y){var P=_.ZA.getInstance();if(!JcN){var E=new nbJ;var z=void 0,c=_.a1("ID_TOKEN");c&&E.isAvailable()&&(z=new WU(E,"yt-queue"+c));JcN=new VkA(z)}E=JcN;z=_.EV();this.JSC$12903_actionRouter=P;this.pageManager=R;this.playlistManager=A;this.JSC$12903_playlistNetworkManager=Y;this.storage=E;this.signals=z;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.lr=function(){if(!rcZ){var R=_.is(),A=R.resolve(_.z3(_.YH)),Y=R.resolve(_.z3(_.a4)),P=R.resolve(_.z3(_.Y7));R=R.resolve(_.Co);rcZ=new ir(A,P,new hv8(Y,R))}return rcZ};
DrS=function(R,A,Y){if(Y){var P;if(((P=R.responsePlaylistData)==null?void 0:P.playlistId)!==Y)return}R.responsePlaylistData&&(Y=JBu(A,R.responsePlaylistData),R.responsePlaylistData=(0,_.BO.unsafeClone)(R.responsePlaylistData),mvk(R.responsePlaylistData,Y));Y=R.temporaryItems.findIndex(function(E){return E.videoId===A});
Y>-1&&R.temporaryItems.splice(Y,1);_.x7(R,_.cd(R,R.response?R.response.autoplayRenderer:void 0))};
_.UrA=function(R,A){if(R.responsePlaylistData){var Y=yBk(A,R.responsePlaylistData);mvk(R.responsePlaylistData,Y);if(R.queueProxy){var P=R.queueProxy;Y<0||(P.videoIds.splice(Y,1),Y<P.currentIndex&&P.JSC$12849_setCurrentIndex(P.currentIndex-1),P.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:A}),L_(P))}}_.x7(R,_.cd(R,R.response?R.response.autoplayRenderer:void 0))};
ir.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.x7(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
ir.prototype.setPlaylistData=function(R,A,Y){this.temporaryItems=[];this.listId=R;this.responsePlaylistData=A;_.x7(this,_.cd(this,Y))};
var $rq=function(R){return(R==null?0:R.playlistId)?R.playlistId:"PPSV"},XAq=function(R){return R&&R.playlistId?R.playlistId==="PPSV"?!0:mJS(_.Yp().getState().entities,R.playlistId):!1};
ir.prototype.isPlayingOfflineVideo=function(){return this.response?XAq(this.response):!1};
ir.prototype.closeMiniplayer=function(R){var A=this.queueProxy&&this.queueProxy.size()<=1,Y=_.is().resolve(_.jv);if(!this.queueProxy||A)this.queueProxy&&this.clearQueue(),Y.close(!0);else{Y.pipController.getWindow()&&window.focus();A=this.responsePlaylistData;var P=this.temporaryItems.length+(A&&A.contents?A.contents.length:0);A=_.vk("QUEUE_CLEARED_UNPLURALIZED")||_.gH("QUEUE_CLEARED",P);A=_.z9(A);Y=_.vk("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");P=_.vk("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.gH("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",P);var E=_.vk("MINIPLAYER_CLOSE",void 0,"Close"),z=_.vk("CANCEL",void 0,"Cancel");_.Gf(this.JSC$12903_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.dF(Y),dialogMessages:[_.dF(P)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.dF(E),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
A]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.dF(z)}}}}}}],R)}};
_.cd=function(R,A){var Y={},P=R.response;Y.autoplayRenderer=A;if(!R.responsePlaylistData&&!R.temporaryItems.length)return!P||!P.hasRelatedVideoData&&_.v("kevlar_prefetch_data_augments_network_data")||(Y.playerData={rvs:P.relatedVideoArgs,endScreenRenderer:P.endScreenRenderer}),Y;Y.playerData={};if(R.index===void 0)return _.bj(Error("If")),Y;Y.panel=R.responsePlaylistData?(0,_.BO.unsafeClone)(R.responsePlaylistData):{titleText:_.dF(_.vk("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
A=Y.panel;if(A.contents)for(var E=_.x(R.temporaryItems),z=E.next();!z.done;z=E.next())A.contents.push({playlistPanelVideoRenderer:z.value});R.queueProxy&&P&&P.playingVideo&&P.playingVideoId&&!Vtb(P.playingVideoId,Y.panel)&&(A=P.playingVideo,E=Y.panel,z=R.index,E.contents&&E.contents.splice(z===void 0?0:z,0,{playlistPanelVideoRenderer:A}));P&&P.playingVideoId&&(A=R.index,E=Y.panel,A=!E.contents||A>=E.contents.length?void 0:E.contents[A].playlistPanelVideoRenderer,A&&A.videoId===P.playingVideoId||(A=
JBu(P.playingVideoId,Y.panel),R.index=A!==-1?A:R.index?R.index-1:0));A=NIk(R.index+1,Y.panel);E=void 0;R.index>0&&(E=NIk(R.index-1,Y.panel));if(E||A)Y.autoplayRenderer=Olk(A,E,Y.autoplayRenderer);!A&&(P==null?0:P.relatedVideoArgs)&&(Y.playerData.rvs=P.relatedVideoArgs);P=P?P.playlistIndexOffset:0;R.queueProxy?vMl(Y.panel,R.index,P,sJV,!0,!0,!0):vMl(Y.panel,R.index,P);Y.playerData.playlistPanelRenderer=Y.panel;return Y};
ir.prototype.openToast=function(R){_.is().resolve(_.jv).openToast(R,_.vk("ADDED_TO_QUEUE",void 0,"Added to queue"))};
ir.prototype.isMiniplayerActive=function(){return _.is().resolve(_.jv).isMiniplayerActive()};
_.x7=function(R,A){R.playlistManager.setAutoplayRenderer(A.autoplayRenderer||null);R.playlistManager.setPlaylistData(A.panel||null);A.playerData&&R.playlistManager.setPlayerPlaybackControlData(A.playerData)};var nM6="#";var SoS={},I$A={},KIz={},WIq={},jbZ={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:(SoS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",SoS),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:(I$A.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",I$A),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:(KIz.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",KIz),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:(WIq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",WIq),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 EXV=[{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:jbZ},{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:jbZ}}];var wwl;_.Jf=[[["aHhyOTJyNmpqbHdraW5kIzg=","Y2l0c21kc3BrbXZhbHVlI3M0"],"TUVOVF9LSU5EX1NUQVJUI2U4ZTdhaDE5dzFsZ0FEX1BMQUNF"]];
wwl=[[["djQ4eGs1aDRwcmltYXJ5I3ozcXg=",null,null],[null,["ZXN1bHRzLXJlbmRlcmVyIzQ1OXl2OGRvM2YzN3l0ZC10d28tY29sdW1uLWJyb3dzZS1y","NjJ3c3N0eWxlLXNjb3BlI21jNGY1bXZz"],null],["NHRvYm1hc3RoZWFkLWFkIzZuamF4Yngw",["aC1ncmlkLXJlbmRlcmVyI2theDkyczNxdTlvOXl0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyI2xzOW41ZHhmcnBtNHl0ZC1yaWM=","bDRxY3N0eWxlLXNjb3BlI3J5dThjaDM1"],null],[null,["LXByb21vLXJlbmRlcmVyI3cweDVjdDU5dDRuZ3l0ZC1iYW5uZXI=","ZXV5eDVzdHlsZS1zY29wZSNyc28weGc="],null],[null,["YWQtc2xvdC1yZW5kZXJlciNhd254aTEyZG1hdXl0ZC0="],
null]],[["b2J2MGtwbGF5ZXItYWRzI2R3cWpmcTM=",null,null]]];_.V2=["Z2xvYmFsQ2FsbGJhY2tzI29ub3BvN3JmdTl2Yw==","cm1hbGl0eURldGVjdGVkIzhkbjZsb2RuaHI5am9uQWJubw==","aDVoYzhtZ29uQWRTa2lwIzhxdnJw","X3BsYXllcl9yZXNwb25zZSNiYmh4YTNmcDVubHJhdw==","MXVubnRwZXVhZFNsb3RzI29wNWo="];_.OV="Z2xvYmFsQ2FsbGJhY2tzI29ub3BvN3JmdTl2Yw== cm1hbGl0eURldGVjdGVkIzhkbjZsb2RuaHI5am9uQWJubw== aDVoYzhtZ29uQWRTa2lwIzhxdnJw X3BsYXllcl9yZXNwb25zZSNiYmh4YTNmcDVubHJhdw== bHRpcGxlX3NraXBzX2tzI2JuZWhwcDhmMzhhM3dlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== ejRpYjl0eWFiX3NhX2VmIzlocjF2 MXVubnRwZXVhZFNsb3RzI29wNWo=".split(" ");var Ma;Ma=function(R,A,Y){this.nen=R;this.isAsync=A;this.tPz=Y};
_.yCV=[new Ma("b.f_",!1,0),new Ma("j.s_",!1,2),new Ma("r.s_",!1,4),new Ma("e.h_",!1,6),new Ma("i.s_",!0,8),new Ma("s.t_",!1,10),new Ma("p.h_",!1,12),new Ma("s.i_",!1,14),new Ma("f.i_",!1,16),new Ma("a.b_",!1,18),new Ma("a.o_",!1),new Ma("g.o_",!1,22),new Ma("p.i_",!1,24),new Ma("p.m_",!1),new Ma("n.k_",!0,20),new Ma("i.f_",!1),new Ma("a.s_",!0),new Ma("m.c_",!1),new Ma("n.h_",!1,26),new Ma("o.p_",!1),new Ma("m.p_",!0,28),new Ma("o.a_",!1),new Ma("d.p_",!1),new Ma("e.i_",!1)].reduce(function(R,A){R[A.nen]=
A;return R},{});var bmb=function(){};
bmb.prototype.flush=function(R,A){R=R===void 0?[]:R;A=A===void 0?!1:A;if(_.v("enable_client_streamz_web")){R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=ZqS(Y.value),this.rootSpec&&_.DE(Y,2,this.rootSpec),Y={serializedIncrementBatch:_.WF(Y.JSC$9600_serializeBinary())},_.Wj("streamzIncremented",Y,{sendIsolatedPayload:A})}};
var Uvq=function(){};
_.H(Uvq,bmb);var f$f=function(R){var A=new BZb;var Y=new fES;Y=_.IS(Y,1,"botguard");R=_.IS(Y,2,R);this.rootSpec=_.Ug(A,1,aEA,R)};
_.H(f$f,bmb);var Mi,pAD=new Map;var LX8,XwP,FXq,KX3,bl3,Zlk,Rv3,kVV;LX8=2;XwP=2;FXq=2;KX3=2;bl3=2;Zlk=2;Rv3=2;kVV=new aeb;var BBD,a$G,C08;BBD=function(){this.ongoingFlowNonces=new Map};
_.Q2=function(){a$G||(a$G=new BBD);return a$G};
_.mb=function(R,A,Y){return{eventType:{flowEventNamespace:R,flowEventType:A},metadata:Y,statusCode:void 0,csn:void 0,can:void 0}};
_.Ty6=function(R,A){var Y=_.Q2(),P=C08(Y,A,!0);_.T9(Y,R,A,P)};
_.T9=function(R,A,Y,P){R={flowNonce:P||C08(R,Y),flowType:Y,flowEventType:A.eventType};A.metadata&&(R.flowMetadata=A.metadata);A.statusCode!==void 0&&(R.flowEventStatus=A.statusCode);A.csn&&(R.csn=A.csn);A.can&&(R.can=A.can);_.Wj("flowEvent",R,void 0)};
C08=function(R,A,Y){Y=Y===void 0?!1:Y;var P=R.ongoingFlowNonces.get(A);if(!P||Y)P=bP(16),R.ongoingFlowNonces.set(A,P);return P};_.heA=new BzE;var nXk={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app",LEARNING:"learning",LEARNING_JOURNEY_WATCH:"learning_journey_watch",COMPANION_SURFACE:"companion_surface"};var sV=function(R,A,Y,P,E,z,c){Y=Y===void 0?!1:Y;P=P===void 0?!1:P;z=z===void 0?_.lr():z;this.hasRun=!1;this.krl=R;this.gTp=A;this.vwq=Y;this.fromHistory=P;this.previousVideoId=E;this.qWD=z;this.tempData=c;this.y41=new _.Ct7};
_.H(sV,TA);sV.prototype.validate=function(R){return!(!R.data.playerResponse||R.data.page!=="watch"&&R.data.page!=="learning_journey_watch"&&R.data.page!=="shorts"||this.hasRun)};
sV.prototype.handle=function(R){var A=this,Y=_.n(R.endpoint,_.LO),P=_.n(R.endpoint,_.SI);if(_.v("kevlar_continue_playback_without_player_response")&&(Y==null?0:Y.videoId)&&this.previousVideoId&&(Y==null?void 0:Y.videoId)===this.previousVideoId&&(Y==null?0:Y.continuePlayback)&&!this.fromHistory)this.krl.resolve();else{var E={};Y?E.watch_endpoint=Y:P&&(E.watch_endpoint=P,P.endTimeSeconds&&(E.end=P.endTimeSeconds));R.data.page==="watch"?(R.data.filler||this.vwq||(_.Bk("cfg"),_.ZA.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(E,o4S(this,R.endpoint)),_.v("enable_masthead_quartile_ping_fix")&&Object.assign(E,kgN(this)),Object.assign(E,void 0),R.data.forceExternalPlaylist&&(E.external_list=!0)):R.data.page==="shorts"?_.ZA.getInstance().triggerAction("yt-start-loading-shorts"):R.data.page==="learning_journey_watch"&&_.ZA.getInstance().triggerAction("yt-start-loading-learning-journey");if(Y=this.gTp()){try{Y.loadVideoWithPlayerResponse(R.data.playerResponse,E),Y.getPlayerPromise().then(this.krl.resolve)}catch(z){_.bj(z),
this.krl.resolve()}this.hasRun=!0;Y.getPlayerPromise().then(function(z){z.addEventListener("onAbnormalityDetected",function(){var c=R.data.playerResponse,M=z.getVideoData().cpn;Rv3=0;_.FIz=M;if(M=JCV(c))A.y41.increment("IN_PLAYER"),_.vr(5),_.v("ab_st_vid_ks")?z.pauseVideo(!0):z.stopVideo(),c.playabilityStatus=Object.assign({},c.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:M}}),c.videoDetails=void 0,_.ZA.getInstance().triggerOptionalAction("yt-updated-playability-status",
c.playabilityStatus)})})}else _.pK(Error("Lf"))}};
var o4S=function(R,A){var Y=_.n(A,_.LO);if(A&&Y&&Y.playlistId&&Y.videoId&&(R=R.qWD,R.queueProxy?(R=R.queueProxy,Y=R.listId===Y.playlistId?R.attributionData.get(Y.videoId):void 0):Y=void 0,Y))return{queue_info:Y}},kgN=function(R){var A;
if((A=R.tempData)==null?0:A.adpings)return{adpings:R.tempData.adpings}};var Na=function(R,A,Y){this.hasRun=!1;this.xov=R;this.sZ3=A;this.nwW=Y};
_.H(Na,TA);Na.prototype.validate=function(R){return!!_.BO.getValueByKeys.apply(null,[R.data].concat(_.py(NBb)))};
Na.prototype.handle=function(R){var A=this;this.xov.promise.then(function(){var Y=R.data;var P=_.BO.getValueByKeys.apply(null,[Y].concat(_.py(imf))),E=_.BO.getValueByKeys.apply(null,[Y].concat(_.py(Mkq))),z=_.BO.getValueByKeys.apply(null,[Y].concat(_.py(xrD)));var c=(c=_.BO.getValueByKeys.apply(null,[Y].concat(_.py(l$H))))?{videoId:c.videoId,thumbnail:c.thumbnail,title:c.title?_.dF(c.title):void 0,shortBylineText:c.author?_.dF(c.author):void 0}:void 0;var M=void 0;_.v("web_get_playlist_id_from_current_endpoint_ks")||
(M=_.BO.getValueByKeys.apply(null,[Y].concat(_.py(ccS))));var N=_.BO.getValueByKeys.apply(null,[Y].concat(_.py(sbf))),y=_.BO.getValueByKeys.apply(null,[Y].concat(_.py(OmZ))),m=!!N||!!y&&!!y.results&&y.results.length>0,T=0;E&&E.currentIndex&&E.localCurrentIndex&&(T=E.currentIndex-E.localCurrentIndex);E&&E.playlistId&&(M=E.playlistId);Y={rawResponse:Y,autoplayRenderer:P,hasRelatedVideoData:m,playingVideo:c,playingVideoId:z,playlistPanelRenderer:E,playlistId:M,playlistIndex:E&&E.currentIndex,relatedVideoArgs:N,
endScreenRenderer:y,playlistIndexOffset:T};a:{P=A.nwW;E=A.sZ3;P.response=Y;if(XAq(Y))P.downloadPlaylistProxy&&P.downloadPlaylistProxy.getPlaylistId()===$rq(Y)||(P.downloadPlaylistProxy=new La8($rq(Y),P.setPlaylistData.bind(P),P.isPlayingOfflineVideo.bind(P))),P.responsePlaylistData=P.downloadPlaylistProxy.getPlaylistData(),P.listId=$rq(Y),P.index=0;else if(Y.playlistPanelRenderer&&Y.playlistId&&Y.autoplayRenderer)Y.playlistId.startsWith("TLPQ")?P.queueProxy?P.listId===Y.playlistId?(P.index=Y.playlistIndex,
P.responsePlaylistData=Y.playlistPanelRenderer,P.queueProxy.JSC$12849_setCurrentIndex(P.index)):Y.playingVideoId&&P.index!==void 0&&E.clientParams.autoSaveToQueue&&(P.index+=1,P.queueProxy.JSC$12849_setCurrentIndex(P.index),P.queueProxy.addVideos([Y.playingVideoId],{},P.index)):(P.queueProxy=new _.dY(P.JSC$12903_playlistNetworkManager,Y.playlistId,P.setPlaylistData.bind(P),P.clearQueue.bind(P),_.TIV(Y.playlistPanelRenderer),P.storage),P.responsePlaylistData=Y.playlistPanelRenderer,P.listId=Y.playlistId,
P.index=Y.playlistIndex):(P.index=Y.playlistIndex,P.listId!==Y.playlistId&&P.clearQueue(),P.responsePlaylistData=Y.playlistPanelRenderer,P.listId=Y.playlistId,P.playlistProxy=new ze8(P.JSC$12903_playlistNetworkManager,Y.playlistId,P.setPlaylistData.bind(P),_.TIV(Y.playlistPanelRenderer)));else if(!P.queueProxy)P.responsePlaylistData=void 0;else if(Y.playingVideoId&&E.clientParams.autoSaveToQueue){if(P.index===void 0){_.bj(Error("Hf"));P.clearQueue();break a}P.queueProxy.videoIds.includes(Y.playingVideoId)||
(P.index+=1,P.queueProxy.JSC$12849_setCurrentIndex(P.index),P.queueProxy.addVideos([Y.playingVideoId],{},P.index))}_.x7(P,_.cd(P,P.response.autoplayRenderer))}})};var Ggq=function(R,A){A=A===void 0?_.lr():A;jm.call(this);this.x9.push(new Na(this.pk,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},A));this.x9.push(new sV(this.pk,R,!1,!1));_.v("web_response_commands_chunk_processor")&&this.x9.push(new bS)};
_.H(Ggq,jm);Ggq.prototype.processChunk=function(R){R&&R.data.player===void 0&&this.pk.resolve();jm.prototype.processChunk.call(this,R)};var VU=function(R,A){R=R===void 0?{layer:0}:R;this.hasRun=!1;this.createScreenConfig=R;this.uF1=A};
_.H(VU,TA);VU.prototype.validate=function(R){return!(this.hasRun||!R.endpoint)};
VU.prototype.handle=function(R){var A=_.rU(),Y,P,E=(P=_.n((Y=R.endpoint)==null?void 0:Y.commandMetadata,_.Ti))==null?void 0:P.rootVe;this.uF1&&E?_.$5(A,E,this.uF1,this.createScreenConfig):j_H(A,R.endpoint,this.createScreenConfig);this.hasRun=!0};var Jd=function(R,A){this.hasRun=!1;this.tQ8=R;this.previousVideoId=A};
_.H(Jd,TA);Jd.prototype.validate=function(R){return _.v("kevlar_continue_playback_without_player_response")&&(R=_.n(R.endpoint,_.LO),(R==null?0:R.videoId)&&this.previousVideoId&&(R==null?void 0:R.videoId)===this.previousVideoId&&(R==null?0:R.continuePlayback))?!1:this.tQ8.dex===0};
Jd.prototype.handle=function(R){_.ZA.getInstance().triggerAction("yt-stop-old-player",R.data,!0)};var Zmb=function(R){R=R===void 0?{layer:0}:R;jm.call(this);this.x9.push(new Jd(this));this.x9.push(new VU(R));this.x9.push(new Wi(R))};
_.H(Zmb,jm);var yU=function(){TA.apply(this,arguments)};
_.H(yU,TA);yU.prototype.validate=function(R){return!!R.data.preconnect};
yU.prototype.handle=function(R){_.Fh("bc");R=_.x(R.data.preconnect);for(var A=R.next();!A.done;A=R.next())A=A.value,(new Image).src=A};var tkz=function(R,A,Y,P,E,z,c){Y=Y===void 0?{layer:0}:Y;z=z===void 0?_.lr():z;jm.call(this);if(P)if(E){E=z;this.x9.push(new Na(this.pk,A,E));this.x9.push(new yU);var M,N;this.x9.push(new sV(this.pk,R,!1,!((M=A.clientParams)==null||!M.fromHistory),(N=A.clientParams)==null?void 0:N.previousVideoId,E,A.tempData));var y;this.x9.push(new Jd(this,(y=A.clientParams)==null?void 0:y.previousVideoId));var m;(m=A.clientParams)!=null&&m.fromHistory||(Y.layer||(Y=Object.assign({},Y,{layer:0})),this.x9.push(new VU(Y,
c)),this.x9.push(new Wi(Y)))}else this.x9.push(new Na(this.pk,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},z)),this.x9.push(new sV(this.pk,R,!1,!1));else this.x9.push(new Jd(this)),this.x9.push(new VU(Y)),this.x9.push(new Wi(Y));_.v("web_response_commands_chunk_processor")&&P&&this.x9.push(new bS)};
_.H(tkz,jm);tkz.prototype.processChunk=function(R){R&&R.data.player===void 0&&this.pk.resolve();jm.prototype.processChunk.call(this,R)};var wAG=function(){this.hasRun=this.hasRun=!1};
_.H(wAG,TA);wAG.prototype.validate=function(R){return!this.hasRun&&!(!R.data.csn||!R.data.rootVe)};
wAG.prototype.handle=function(R){this.hasRun=!0;_.aK(R.data.csn,R.data.rootVe,3)};var uj8=function(R,A,Y){Y=Y===void 0?{layer:0}:Y;jm.call(this);this.x9.push(new sV(this.pk,R));this.x9.push(new VU(Y));this.x9.push(new Wi(Y))};
_.H(uj8,jm);var eeA=function(R,A,Y,P,E){Y=Y===void 0?{layer:0}:Y;P=P===void 0?_.lr():P;jm.call(this);var z=!!A&&!!A.clientParams&&!!A.clientParams.miniplayer;z&&this.x9.push(new wAG);this.x9.push(new Na(this.pk,A,P));this.x9.push(new yU);var c,M;this.x9.push(new sV(this.pk,R,z,!((c=A.clientParams)==null||!c.fromHistory),(M=A.clientParams)==null?void 0:M.previousVideoId,P,A.tempData));var N;this.x9.push(new Jd(this,(N=A.clientParams)==null?void 0:N.previousVideoId));var y;(y=A.clientParams)!=null&&y.fromHistory||
(Y.layer||(Y=Object.assign({},Y,{layer:z?3:0})),this.x9.push(new VU(Y,E)),this.x9.push(new Wi(Y)));_.v("web_response_commands_chunk_processor")&&this.x9.push(new bS)};
_.H(eeA,jm);var m$,drq;m$={};
_.qoZ=(m$["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},m$["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},m$["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},m$["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},m$["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},m$["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},m$["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},m$);_.TD=new _.Cn("yt-edu");_.LIA=function(){this.JSC$13007_eduDisplayedThisLoad_={}};
drq=function(R){var A=_.LIA.getInstance();var Y=_.cU("kevlar_tooltip_impression_cap");A=Y&&parseInt(_.TD.get(R+"-impression")||0,10)>=Y||_.TD.get(R+"-dismissed")?!1:(Y=_.qoZ[R])&&!A.JSC$13007_eduDisplayedThisLoad_[Y.setKey||R]&&(Y.titleText&&_.vk(Y.titleText)||Y.bodyText&&_.vk(Y.bodyText))?!0:!1;if(!A)return null;A=_.qoZ[R];if(!A)return null;Y=A.bodyText?_.vk(A.bodyText):void 0;var P=A.titleText?_.vk(A.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:A.position,popup:{bubbleHintRenderer:{text:P?
_.dF(P):void 0,detailsText:Y?_.dF(Y):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.dF(_.vk("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:R}}]}}}}}}}},{eduImpressionAction:{key:R}}]};
_.AR(_.LIA);var QzI=!1;for(var R68="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),ADA=[],QU=6;QU>=1;QU--)ADA.push({columnCount:QU,query:QU==1?0:QU*2*107-4+32,className:"grid-"+QU+"-columns",width:QU*2*107+"px"});_.PWz=function(R){this.actionRouter_=R=R===void 0?_.ZA.getInstance():R;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.Y$A(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.Y$A=function(R){var A=R.miniGuideVisible_?72:0,Y=R.documentWidth_-(R.guidePersistentAndVisible_?240:A);return ADA.find(function(P){return Y>P.query})};
_.AR(_.PWz);var EzE=function(){var R=this;this.JSC$13019_keyboardInUse=!1;document.addEventListener("keydown",function(){R.onKeydown()});
document.addEventListener("mousedown",function(){R.JSC$13019_keyboardInUse=!1})},z6A;
EzE.prototype.isKeyBoardInUse=function(){return this.JSC$13019_keyboardInUse};
EzE.prototype.onKeydown=function(){this.JSC$13019_keyboardInUse=!0};var i5b,n1;_.vd=new _.Cn("yt-mentions");_.gR=function(){};
i5b=function(R,A){return n1(A,"drag-to-reorder-edu-displayed")};
n1=function(R,A,Y,P,E,z){Y=Y===void 0?"OPEN_POPUP_POSITION_TOP":Y;if(A){if(_.vd.get(A))return;_.vd.set(A,!0,P)}if(E&&z!==void 0){A=Number(_.vd.get(E)||0);if(A>=z)return;_.vd.set(E,A+1)}return[{openPopupAction:{popupType:"HINT",position:Y,popup:{bubbleHintRenderer:{detailsText:R,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.AR(_.gR);var lBf,x87,cDA;lBf=function(R,A,Y,P){this.JSC$13029_taskManager_=R;this.onFulfilled_=typeof A==="function"?A:null;this.onRejected_=typeof Y==="function"?Y:null;this.JSC$13029_context_=P};
x87=function(R,A){R.onFulfilled_&&_.$H(R.JSC$13029_taskManager_,function(){R.onFulfilled_.call(R.JSC$13029_context_,A)})};
cDA=function(R,A){R.onRejected_&&_.$H(R.JSC$13029_taskManager_,function(){R.onRejected_.call(R.JSC$13029_context_,A)})};
_.Hd=function(R){this.JSC$13032_taskManager_=R;this.callbacks_=[]};
_.Hd.prototype.then=function(R,A,Y){this.callbacks_.push(new lBf(this.JSC$13032_taskManager_,R,A,Y));return this};
_.Hd.prototype.onSuccess=function(R){this.callbacks_.forEach(function(A){x87(A,R)})};
_.Hd.prototype.onFailure=function(R){this.callbacks_.forEach(function(A){cDA(A,R)})};
_.Hd.prototype.cancel=function(){this.callbacks_.length=0};
uHq(_.Hd);_.rCl=null;_.XW=new _.cP("ACTIVITY_TOKEN");var rR=function(R,A){this.serviceId=new ucA(R,A)};
rR.prototype.toString=function(){return this.serviceId.toString()};var O5D=function(){this.internalMap={}};
_.l=O5D.prototype;_.l.contains=function(R){return Object.prototype.hasOwnProperty.call(this.internalMap,R)};
_.l.get=function(R){if(this.contains(R))return this.internalMap[R]};
_.l.set=function(R,A){this.internalMap[R]=A};
_.l.getKeys=function(){return Object.keys(this.internalMap)};
_.l.remove=function(R){delete this.internalMap[R]};var Dp=function(){this.mappings=new O5D;this.errorCallbacks=new Set};
Dp.prototype.getModuleId=function(R){return R.serviceId.getModuleId()};
Dp.prototype.get=function(R){var A=this.mappings.get(R.toString());return MsA(this,A,R)};
Dp.prototype.getMultipleAsync=function(){var R=_.Ge.apply(0,arguments),A=this,Y=R.map(function(N){return A.getModuleId(N)}),P=R.map(function(N){return A.mappings.get(N.toString())}).filter(function(N){return N});
if(P.length===R.length)return _.Vn(P.map(function(N,y){return MsA(A,N,R[y])}));
var E=FL().loadMultiple(Y);P=_.W$(Y.map(function(N){return E[N]}));
var z=document.hidden,c=-1,M=_.cU("get_async_timeout_ms",-1);M>-1&&(c=setTimeout(function(){_.pK(new _.XN("Module timeout.",Y,z,document.hidden))},M));
return _.jS(P.then(function(){return R.map(function(N){return MsA(A,A.mappings.get(N.toString()),N)})}).thenCatch(function(N){for(var y=_.x(A.errorCallbacks),m=y.next();!m.done;m=y.next())m=m.value,m(N);
throw N;}),function(){clearTimeout(c)})};
Dp.prototype.registerService=function(R,A){this.mappings.set(R.toString(),{type:"mapping",value:A});return R};
var MsA=function(R,A,Y){switch(A.type){case "mapping":return A.value;case "factory":return A=A.value(),R.mappings.set(Y.toString(),{type:"mapping",value:A}),A;default:return _.kZ(A)}};
Dp.prototype.onLoadError=function(R){var A=this;this.errorCallbacks.add(R);return function(){A.errorCallbacks.delete(R)}};
_.UV=new Dp;var SHb=/^[a-zA-Z0-9_\-]{11}$/;var IPq=_.U3(function(){var R,A;return(A=(R=window).matchMedia)==null?void 0:A.call(R,"(prefers-reduced-motion: reduce)").matches});var swG=_.U3(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 R=_.Zr("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");R||(R=_.De("VIDEO"),_.PG("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
R));return!!(R&&R.canPlayType&&R.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var pfk=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var $7;$7=function(){this.tokenJars={};if(this.cookiesEnabled=_.DO()){var R=_.HU.get("CONSISTENCY",void 0);R&&NCD(this,{encryptedTokenJarContents:R})}};
_.Byk=function(){$7.instance||($7.instance=new $7);return $7.instance};
$7.prototype.handleResponse=function(R,A){if(!A)throw Error("Rf");var Y,P;A=((Y=A.innerTubeRequest.context)==null?void 0:(P=Y.request)==null?void 0:P.consistencyTokenJars)||[];var E;(R=(E=R.responseContext)==null?void 0:E.consistencyTokenJar)&&this.replace(A,R)};
$7.prototype.replace=function(R,A){R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())delete this.tokenJars[Y.value.encryptedTokenJarContents];NCD(this,A)};
var NCD=function(R,A){if(A.encryptedTokenJarContents&&(R.tokenJars[A.encryptedTokenJarContents]=A,typeof A.expirationSeconds==="string")){var Y=Number(A.expirationSeconds);setTimeout(function(){delete R.tokenJars[A.encryptedTokenJarContents]},Y*1E3);
R.cookiesEnabled&&_.rr("CONSISTENCY",A.encryptedTokenJarContents,Y,void 0,!0)}};var VsA,Xs;VsA=window.location.hostname.split(".").slice(-2).join(".");_.FI=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var R=_.a1("LOCATION_PLAYABILITY_TOKEN");_.a1("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=JDH(this))&&(R=this.localStorage.get("yt-location-playability-token"));R&&(this.locationPlayabilityToken=R,this.mostRecentPosition=void 0)};
_.FI.getInstance=function(){Xs=_.Zr("yt.clientLocationService.instance");Xs||(Xs=new _.FI,_.PG("yt.clientLocationService.instance",Xs));return Xs};
_.FI.prototype.setLocationOnInnerTubeContext=function(R){R.client||(R.client={});if(this.mostRecentPosition)R.client.locationInfo||(R.client.locationInfo={}),R.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),R.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),R.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),R.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)R.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.FI.prototype.handleResponse=function(R){var A;R=(A=R.responseContext)==null?void 0:A.locationPlayabilityToken;R!==void 0&&(this.locationPlayabilityToken=R,this.mostRecentPosition=void 0,_.a1("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=JDH(this))&&this.localStorage.set("yt-location-playability-token",R,15552E3):_.rr("YT_CL",JSON.stringify({loctok:R}),15552E3,VsA,!0))};
var JDH=function(R){return R.localStorage===void 0?new _.Cn("yt-client-location"):R.localStorage};
_.FI.prototype.clearLocationPlayabilityToken=function(R){R==="TVHTML5"?(this.localStorage=JDH(this))&&this.localStorage.remove("yt-location-playability-token"):_.V9k("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.FI.prototype.getCurrentPositionFromGeolocation=function(){var R=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Sf"));var A=!1,Y=1E4;_.a1("INNERTUBE_CLIENT_NAME")==="MWEB"&&(A=!0,Y=15E3);return new Promise(function(P,E){navigator.geolocation.getCurrentPosition(function(z){R.mostRecentPosition=z;P(z)},function(z){E(z)},{enableHighAccuracy:A,
maximumAge:0,timeout:Y})})};
_.FI.prototype.createUnpluggedLocationInfo=function(R){var A={};R=R.coords;if(R==null?0:R.latitude)A.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)A.longitudeE7=Math.floor(R.longitude*1E7);if(R==null?0:R.accuracy)A.locationRadiusMeters=Math.round(R.accuracy);return A};
_.FI.prototype.createLocationInfo=function(R){var A={};R=R.coords;if(R==null?0:R.latitude)A.latitudeE7=Math.floor(R.latitude*1E7);if(R==null?0:R.longitude)A.longitudeE7=Math.floor(R.longitude*1E7);return A};var yDD=function(){};
_.l=yDD.prototype;
_.l.JSC$13099_getRequest=function(R,A,Y){A=A===void 0?{}:A;Y=Y===void 0?djf:Y;var P=A;if(this.isNavigationCommand()){var E,z=(E=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:E.url;P=_.aPk(R.clickTrackingParams,!0,!1,z,this.JSC$13099_getClientScreen(P))}else P=_.aPk(R.clickTrackingParams,!1,this.includeCsn);P={context:P};if(E=this.getExtension(R))return this.JSC$13099_buildRequest(P,E,A),E=this.getApiUrl(R),z=Object.assign({},{command:R},this.getRequestConfig(R,A)),P={input:E,requestShell:e0(E),
innerTubeRequest:P,config:z},P.config.authStrategy?P.config.authStrategy.identity=Y:P.config.authStrategy={identity:Y},(R=this.JSC$13099_getRequestKey(R,A))&&!P.config.requestKey&&(P.config.requestKey=R),P;R=new _.XN("Error: Failed to create Request from Command.",R);_.bj(R)};
_.l.getApiUrl=function(R){var A=_.Pr(this.getApiPaths(R)),Y;(R=(Y=_.n(R.commandMetadata,_.Ti))==null?void 0:Y.apiUrl)&&(A=R);return VJb(Nkl(A))};
_.l.isNavigationCommand=function(){return!1};
_.l.JSC$13099_getClientScreen=function(){};
_.l.JSC$13099_getRequestKey=function(){};
_.l.getRequestConfig=function(){};
_.Yh.Object.defineProperties(yDD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Sw=function(){};
_.H(Sw,yDD);Sw.prototype.JSC$13106_getStoreKey=function(){};
Sw.prototype.JSC$13099_getRequestKey=function(R,A){A=A===void 0?{}:A;return this.JSC$13106_getStoreKey(R,A)};var TCf;_.Im=function(R,A,Y){var P=Y&&Y>0?Y:0;Y=P?Date.now()+P*1E3:0;if((P=P?(0,_.m8D)():TCf())&&window.JSON){typeof A!=="string"&&(A=JSON.stringify(A,void 0));try{P.set(R,A,Y)}catch(E){P.remove(R)}}};
_.K1=function(R){var A=TCf(),Y=(0,_.m8D)();if(!A&&!Y||!window.JSON)return null;try{var P=A.get(R)}catch(E){}if(typeof P!=="string")try{P=Y.get(R)}catch(E){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(E){}return P};
_.Wd=function(R){try{var A=TCf(),Y=(0,_.m8D)();A&&A.remove(R);Y&&Y.remove(R)}catch(P){}};
_.m8D=_.U3(function(){try{var R=new gbP;var A=R.isAvailable()?R:null}catch(Y){return null}return A?new _.M4(A):null});
TCf=_.U3(function(){var R=new nbJ;return R.isAvailable()?new _.M4(R):null});var AV=new _.cP("ENTITY_STATE_TOKEN"),jw=new _.cP("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var QwG=XMLHttpRequest.prototype.fetch,vz8=QwG&&QwG.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!AZ?!0:!1;var br=function(R){this.JSC$13111_storeWithEntities=R};
_.H(br,Sw);_.l=br.prototype;_.l.getApiPaths=function(){return fPq};
_.l.getExtension=function(R){return _.n(R,_.LO)||_.n(R,_.SI)||_.n(R,jYz)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13106_getStoreKey=function(R){if((_.v("kevlar_cache_on_ttl_player")||_.v("mweb_enable_shorts_innertube_player_prefetch")||_.v("mweb_use_new_history_manager")||_.v("web_shorts_prefetch_service_enabled"))&&(R=this.getExtension(R))&&R.videoId){var A={videoId:R.videoId};R.playlistId&&(A.playlistId=R.playlistId);R.playerParams&&(A.params=R.playerParams);return _.q4("player",A)}};
_.l.JSC$13099_getClientScreen=function(R){var A;return((A=R.contentPlaybackContext)==null?void 0:A.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$13099_buildRequest=function(R,A,Y){if(_.v("enable_interstitial_entity_check")){var P=this.JSC$13111_storeWithEntities;if(A.videoId)for(var E=_.x(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),z=E.next();!z.done;z=E.next()){z=z.value;var c;var M=void 0,N=void 0,y=A.videoId,m=z;(c=P)?(y=_.yS(y+m,"interstitialInteractionStateEntity"),c=(M=(N=_.mc(c.getState().entities,"interstitialInteractionStateEntity",y))==null?void 0:N.primaryButtonClicked)!=null?M:!1):c=!1;if(c)switch(z){case "CONTENT_CHECK_REQUIRED":A.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":A.racyCheckOk=!0}}}A.videoId&&(R.videoId=A.videoId);A.playlistId&&(R.playlistId=A.playlistId);A.index!==void 0&&(R.playlistIndex=A.index+1);A.playerParams&&(R.params=A.playerParams);"startTimeSeconds"in A&&A.startTimeSeconds&&(_.v("enable_player_request_builder_start_time_floor")?R.startTimeSecs=Math.floor(A.startTimeSeconds):R.startTimeSecs=A.startTimeSeconds);Y.contentPlaybackContext&&(R.playbackContext={contentPlaybackContext:Y.contentPlaybackContext});Y.prefetchPlaybackContext&&
(R.playbackContext=Object.assign({},R.playbackContext,{prefetchPlaybackContext:Y.prefetchPlaybackContext}),R.context.request||(R.context.request={}),R.context.request.isPrefetch=!0);R.playbackContext||(R.playbackContext={});P=swG();R.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!P,supportXhr:vz8};Y.overrideMutedAtStart&&(R.overrideMutedAtStart=Y.overrideMutedAtStart);R.racyCheckOk=!!A.racyCheckOk;R.contentCheckOk=!!A.contentCheckOk;!_.v("captions_prefs_killswitch")&&(Y=(Y=_.K1("yt-player-caption-language-preferences"))?
Y:[],Y==null?0:Y.length)&&(R.captionParams={viewerSelectedCaptionLangs:Y})};
_.l.getRequestConfig=function(R){R=this.JSC$13106_getStoreKey(R);var A;R&&(A={storeStrategy:{storeKey:R}});_.v("web_log_player_watch_next_ticks")&&(A=A||{},A.requestTick="ps_s",A.responseTick="ps_r");return A};
br[xk]=[AV];var f1=function(){};
_.H(f1,Sw);_.l=f1.prototype;_.l.getApiPaths=function(){return N7S};
_.l.getExtension=function(R){return _.n(R,_.LO)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13106_getStoreKey=function(R){if((R=this.getExtension(R))&&R.videoId){var A={videoId:R.videoId};R.playlistId&&(A.playlistId=R.playlistId);R.index&&(A.index=R.index);R.params&&(A.params=R.params);return _.q4("next",A)}};
_.l.JSC$13099_getClientScreen=function(R){var A;return((A=R.contentPlaybackContext)==null?void 0:A.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.l.JSC$13099_buildRequest=function(R,A,Y){A.videoId&&(R.videoId=A.videoId);A.playlistId&&(R.playlistId=A.playlistId);A.params&&(R.params=A.params);A.index!==void 0&&(R.playlistIndex=A.index);R.racyCheckOk=!(!Y.racyCheckOk&&!A.racyCheckOk);R.contentCheckOk=!!A.contentCheckOk;Y.contentPlaybackContext&&(R.autonavState=Y.contentPlaybackContext.autonavState,R.playbackContext={vis:Y.contentPlaybackContext.vis,lactMilliseconds:Y.contentPlaybackContext.lactMilliseconds});Y.prefetchPlaybackContext&&(R.context.request||
(R.context.request={}),R.context.request.isPrefetch=!0);_.v("captions_hats_killswitch")||(A=_.Hk().getFlag(65),A=A!=null?!A:!1,Y=!!_.K1("yt-player-sticky-caption"),R.captionsRequested=A&&Y)};
_.l.getRequestConfig=function(R){R=this.JSC$13106_getStoreKey(R);var A;R&&(A={storeStrategy:{storeKey:R}});_.v("web_log_player_watch_next_ticks")&&(A=A||{},A.requestTick="wn_s",A.responseTick="wn_r");return A};
var p1=function(){};
_.H(p1,Sw);p1.prototype.getApiPaths=function(){return N7S};
p1.prototype.getExtension=function(R){return _.n(R,_.oE)};
p1.prototype.JSC$13099_buildRequest=function(R,A){A.token&&(R.continuation=A.token)};var Fs=function(R,A){this.playerRequestBuilder=R;this.watchNextRequestBuilder=A};
_.H(Fs,Sw);Fs.prototype.getApiPaths=function(){return rCS};
Fs.prototype.getExtension=function(R){return _.n(R,_.LO)};
Fs.prototype.isNavigationCommand=function(){return!0};
Fs.prototype.JSC$13099_buildRequest=function(R,A,Y){R.playerRequest={};this.playerRequestBuilder.JSC$13099_buildRequest(R.playerRequest,A,Y);_.v("web_streaming_watch")&&(R.watchNextRequest={},this.watchNextRequestBuilder.JSC$13099_buildRequest(R.watchNextRequest,A,Y))};
Fs[xk]=[br,f1];var gzq;_.Bd=new _.cP("SHORTS_CONTROLLER_TOKEN");gzq=new _.cP("SHORTS_STATE_STORE_TOKEN");var am=function(R,A){var Y=_.Ge.apply(2,arguments);R=R===void 0?0:R;_.XN.call(this,A,Y);this.errorType=R;Object.setPrototypeOf(this,this.constructor.prototype)};
_.H(am,_.XN);var nzN,H58,D8Z,hi8,aL,itJ,S$b,XRS,fBH,WgZ,Kg8;nzN=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(R){return R+"="}).join("|"));
H58=RegExp(".*\\?.*playnext=1.*");_.C1=function(R,A,Y,P){this.watchEndpointMap=R;this.reelWatchEndpointMap=A;this.innerTubeTransportService=Y;this.fetchPbj=P};
D8Z=function(R,A,Y){var P=_.is().resolve(_.z3(rDS));_.C1.instance=new _.C1(R,A,Y,P)};
_.U8S=function(R,A){var Y=_.cU("web_pbj_log_warning_rate",0);Y=Y>0&&Math.random()<Y;var P;if((P=_.n(A.commandMetadata,_.Ti))==null||!P.rootVe)return Y&&_.pK(Error("Uf")),!1;var E;P=(E=_.n(A.commandMetadata,_.Ti))==null?void 0:E.url;if(!P)return Y&&_.pK(Error("Vf")),!1;if(H58.test(P))return!0;if(nzN.test(P))return Y&&_.pK(Error("Wf`"+P)),!1;if(_.n(A,_.LO)){if(!(R.watchEndpointMap.watchNext&&R.watchEndpointMap.player||_.v("kevlar_fetch_initial_data_op_watch_client")))return Y&&_.pK(Error("Nf")),!1;
R=_.cU("web_pbj_log_warning_rate",0);R=R>0&&Math.random()<R;_.n(A,_.LO)?$uV(A)?A=!0:(R&&_.pK(Error("Of")),A=!1):(R&&_.pK(Error("Nf")),A=!1);return A}if(_.n(A,_.SI))return Xfl(A);if(_.n(A,_.Ld))return!0;R=_.wl(R.innerTubeTransportService,A);!R&&Y&&_.bj(Error("Xf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(A)});return R};
hi8=function(R,A,Y,P,E,z){A={url:A};if(Y==null?0:Y.itct)A.parentTrackingParams=Y.itct;var c=_.Pr(GFA);return _.Ad(R.innerTubeTransportService,A,c).then(function(M){(M=M.endpoint)||(M=_.p_);(Y==null?0:Y.itct)&&M&&!M.trackingParams&&(M.trackingParams=Y.itct);var N=$p(M);return aL(R,M,Y,P,N,E,z)})};
aL=function(R,A,Y,P,E,z,c,M){M=M===void 0?{}:M;if(R.fetchPbj&&!_.U8S(R,A)&&!_.v("force_one_platform")){M=R.fetchPbj(A);var N=_.Vn(M.then(function(Z){if(!Z)throw Error("Yf");c(N)||z(A,Z);return Z}));
return N}var y,m,T={rootVe:(y=_.n(A.commandMetadata,_.Ti))==null?void 0:y.rootVe,url:(m=_.n(A.commandMetadata,_.Ti))==null?void 0:m.url,endpoint:A,page:E};if(_.n(A,_.LO)){var Q,g={contentPlaybackContext:_.Wr(Y,(Q=_.n(A.commandMetadata,_.Ti))==null?void 0:Q.url,P)},r=_.ei();_.v("web_streaming_watch")&&window.TextDecoderStream?(M=$88(R.innerTubeTransportService,A,g,function(Z){!T.response&&Z.content&&(T.response=Z.content);!T.playerResponse&&Z.player&&(T.playerResponse=Z.player);z(A,T)}),y=JS8(A),y.length&&
(T.preconnect=y,z(A,T)),XRS(M,r,T).catch(function(Z){Z instanceof am&&Z.errorType===2&&_.v("web_streaming_watch_fallback")&&S$b(R,A,g,T,z,c,r)})):S$b(R,A,g,T,z,c,r);
return r.promise}if(_.n(A,_.SI)){var I;if(((I=_.n(A,_.SI))==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var b=_.ei();_.IBG(_.is().resolve(_.Bd),A).then(function(Z){Kg8(R,Y,P,E,z,b,Z)});
return b.promise}M=_.Vn();var p;y={contentPlaybackContext:_.Wr(Y,(p=_.n(A.commandMetadata,_.Ti))==null?void 0:p.url,P)};(p=R.reelWatchEndpointMap.player)&&(p=p().JSC$13099_getRequest(A,y))&&(M=_.Ad(R.innerTubeTransportService,p.innerTubeRequest,p.input,A.clickTrackingParams,p.config));p=_.Vn();(m=R.reelWatchEndpointMap.reelItemWatch)&&(m=m().JSC$13099_getRequest(A))&&(p=_.Ad(R.innerTubeTransportService,m.innerTubeRequest,m.input,A.clickTrackingParams,m.config));m=_.Vn();_.v("web_enable_delay_shorts_sequence_call_new")||
(Q=R.reelWatchEndpointMap.reelWatchSequence)&&_.n(A,_.SI).sequenceParams&&(y=Q().JSC$13099_getRequest(A,y))&&(m=_.Ad(R.innerTubeTransportService,y.innerTubeRequest,y.input,A.clickTrackingParams,y.config));y=_.Vn(T);Q=_.ei();WgZ(A,y,M,p,m,z,c,Q);return Q.promise}var h;if(_.n(A,Hpk)&&((h=_.n(A.commandMetadata,_.Ti))==null?0:h.url))return M=Fuk(_.eK(hr().location.href),_.eK(_.n(A.commandMetadata,_.Ti).url)).toString(),hi8(R,M,Y,P,z,function(){return!1});
if(_.n(A,_.Ld))return z(A,T),_.Vn(T);if(_.wl(R.innerTubeTransportService,A)){M=Object.assign({},{tempData:Y,disableCache:Y.disableCache},M);var L=_.uh(R.innerTubeTransportService,A,M).then(function(Z){T.response=Z;c(L)||z(A,T);return T});
return L}return _.Vn(T)};
_.b5D=function(R,A,Y,P){if(_.n(A,_.LO)||_.n(A,_.SI)&&(_.v("mweb_enable_shorts_innertube_player_prefetch")||_.v("kevlar_enable_shorts_prefetch_in_sequence"))||_.n(A,jYz)&&_.v("web_enable_prefetching_videos_on_home")){var E,z={contentPlaybackContext:_.Wr(Y,(E=_.n(A.commandMetadata,_.Ti))==null?void 0:E.url,P),prefetchPlaybackContext:Wu3(Y)},c,M,N;if(((c=_.n(A,_.LO))==null?void 0:(M=c.watchEndpointSupportedPrefetchConfig)==null?void 0:(N=M.prefetchHintConfig)==null?void 0:N.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(Y=
R.watchEndpointMap.watchNext)if(z=Y().JSC$13099_getRequest(A,z))return Promise.resolve(_.Ad(R.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(T){return T}))}else if(Y=R.watchEndpointMap.player)if(z=Y().JSC$13099_getRequest(A,z))return Promise.resolve(_.Ad(R.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(T){return T}))}else if(_.wl(R.innerTubeTransportService,A)){var y={tempData:Y},m=jw7(R.innerTubeTransportService,A);
return m?new Promise(function(T,Q){var g,r;return _.O(function(I){if(I.nextAddress==1)return I.yield(m,2);if(I.nextAddress!=4)return g=I.yieldResult,g.JSC$13106_getStoreKey(A,y)?I.yield(_.uh(R.innerTubeTransportService,A,y),4):(Q(new _.XN("Prefetching request builder with no store key.",A)),I.jumpTo(0));r=I.yieldResult;T(r);_.XH(I)})}):Promise.reject(new _.XN("Prefetching unregistered request builder.",A))}return Promise.reject(new _.XN("No request builder available to prefetch endpoint.",A))};
itJ=function(R,A){var Y,P,E;if(_.n(A,_.LO)){var z=R.watchEndpointMap.watchNext;z&&(Y=z());(R=R.watchEndpointMap.player)&&(P=R())}else if(_.n(A,_.SI))(z=R.reelWatchEndpointMap.reelItemWatch)&&(Y=z()),(z=R.reelWatchEndpointMap.player)&&(P=z()),(R=R.reelWatchEndpointMap.reelWatchSequence)&&(E=R());else{a:{R=U7l(A,R.innerTubeTransportService.endpointMap);if(R!==void 0)if(typeof R.then==="function")_.bj(new _.XN("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",A));else break a;
R=void 0}R&&(Y=R)}var c,M,N;return{content:(c=Y)==null?void 0:c.JSC$13106_getStoreKey(A),player:(M=P)==null?void 0:M.JSC$13106_getStoreKey(A),reelSequence:(N=E)==null?void 0:N.JSC$13106_getStoreKey(A)}};
S$b=function(R,A,Y,P,E,z,c){var M=_.Vn(),N=R.watchEndpointMap.player;_.v("web_streaming_player")&&(N=Ko(Fs));N&&(N=N().JSC$13099_getRequest(A,Y))&&(M=_.Ad(R.innerTubeTransportService,N.innerTubeRequest,N.input,A.clickTrackingParams,N.config));N=_.Vn();var y=R.watchEndpointMap.watchNext;y&&(Y=y().JSC$13099_getRequest(A,Y))&&(N=_.Ad(R.innerTubeTransportService,Y.innerTubeRequest,Y.input,A.clickTrackingParams,Y.config));R=_.Vn(P);fBH(A,R,M,N,E,z,c)};
XRS=function(R,A,Y){return _.O(function(P){if(P.nextAddress==1)return P.yield(R,2);A.resolve(Y);_.XH(P)})};
fBH=function(R,A,Y,P,E,z,c){var M,N,y,m,T;_.O(function(Q){switch(Q.nextAddress){case 1:return Q.yield(A,2);case 2:M=Q.yieldResult;if(z(c.promise))return c.resolve(M),Q.return();E(R,M);N=JS8(R);if(!N.length){Q.jumpTo(3);break}return Q.yield(A,4);case 4:M.preconnect=N,E(R,M);case 3:return _.g2(Q,5),Q.yield(Y,7);case 7:y=Q.yieldResult;_.us(Q,6);break;case 5:return m=_.UT(Q),c.reject(m),Q.return();case 6:if(y===void 0)return M.reload=!0,E(R,M),c.resolve(M),Q.return();if(z(c.promise))return c.resolve(M),
Q.return();M.playerResponse=y;E(R,M);_.g2(Q,8);return Q.yield(P,10);case 10:T=Q.yieldResult;_.us(Q,9);break;case 8:_.UT(Q);case 9:if(T===void 0)return M.response={responseContext:{}},c.resolve(M),Q.return();if(z(c.promise))return c.resolve(M),Q.return();M.response=T;E(R,M);c.resolve(M);_.XH(Q)}})};
WgZ=function(R,A,Y,P,E,z,c,M){var N,y,m,T,Q,g;_.O(function(r){switch(r.nextAddress){case 1:return r.yield(A,2);case 2:N=r.yieldResult;if(c(M.promise))return M.resolve(N),r.return();z(R,N);y=JS8(R);if(!y.length){r.jumpTo(3);break}return r.yield(A,4);case 4:N.preconnect=y,z(R,N);case 3:return _.g2(r,5),r.yield(Y,7);case 7:m=r.yieldResult;_.us(r,6);break;case 5:return T=_.UT(r),M.reject(T),r.return();case 6:if(m===void 0)return N.reload=!0,z(R,N),M.resolve(N),r.return();if(c(M.promise))return M.resolve(N),
r.return();N.playerResponse=m;z(R,N);_.g2(r,8);return r.yield(P,10);case 10:Q=r.yieldResult;_.us(r,9);break;case 8:_.UT(r);case 9:if(Q===void 0)return N.response={responseContext:{}},M.resolve(N),r.return();if(c(M.promise))return M.resolve(N),r.return();N.response=Q;z(R,N);_.g2(r,11);return r.yield(E,13);case 13:g=r.yieldResult;_.us(r,12);break;case 11:_.UT(r);case 12:if(c(M.promise))return M.resolve(N),r.return();g&&(N.reelWatchSequenceResponse=g);z(R,N);M.resolve(N);_.XH(r)}})};
Kg8=function(R,A,Y,P,E,z,c){var M,N,y,m,T,Q;_.O(function(g){if((M=c)==null||!M.replacementEndpoint)return z.reject(),g.return();N=c.replacementEndpoint;(y=_.n(N,_.SI))?(c.sequenceContinuation&&(y.sequenceParams=c.sequenceContinuation),m=_.is().resolve(_.Bd),T=y.sequenceParams,pRD(m,N)&&delete y.sequenceParams,Q=aL(R,N,A,Y,P,E,function(){return!1}),Q.then(function(r){return _.O(function(I){if(I.nextAddress==1)return FgN(m,{reelWatchEndpoint:{sequenceParams:T}},r),I.yield(0,2);
z.resolve(r);_.XH(I)})})):z.reject();
_.XH(g)})};_.BCz=function(R){if(R.validatedFragments_.length==0)return null;if(!R.mergedPrefetchedData_){for(var A=[],Y=_.x(R.validatedFragments_),P=Y.next();!P.done;P=Y.next()){P=_.x(R.fragmentConfiguration_[P.value].graftedKeys);for(var E=P.next();!E.done;E=P.next())(E=R.prefetchedData_[E.value].trackingParams)&&A.push(E)}R.mergedPrefetchedData_={};Object.assign(R.mergedPrefetchedData_,R.prefetchedData_,{clientSideGrafts:A})}return R.mergedPrefetchedData_};var aBS;_.hd=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
aBS=function(R,A,Y){if(_.DuV(A))return R.prefetchCache_.get(_.UuV(A,Y))};_.om=new _.cP("NAVIGATION_TOKEN");var CWE=function(R){var A=this;var Y=Y===void 0?oXV():Y;var P=P===void 0?_.is().resolve(_.om):P;this.onePickCommand=R;this.JSC$13209_playlistNetworkManager=Y;this.navigationManager=P;this.videoPickerBuilder=_.Cgu("yt-addtoplaylist");_.JN8(xj7(c$D(lAD(this.videoPickerBuilder.setTitle(R.modalTitle).setSize(1E3).addView(MxS()).addView(Owf())).addView("youtube"),R.selectButtonLabel)),function(E){A.handleAction(E)})};
CWE.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
CWE.prototype.handleAction=function(R){var A=this;if(R&&this.onePickCommand.listId&&R.action==="picked"&&R.docs){var Y=[];R.docs.forEach(function(P){Y.push({addedVideoId:P.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13209_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,Y).then(function(){_.v("playlist_add_video_hard_reload_killswitch")?A.navigationManager.reload():h68(A.navigationManager)})}};var ozq=function(){if(this.constructor===ozq)throw new TypeError("Zf");};
_.l=ozq.prototype;_.l.dispose=function(){};
_.l.disconnect=function(){};
_.l.reconnect=function(){};
_.l.observe=function(R,A,Y){return{element:R,option:Y}};
_.l.unobserveByKey=function(){};var kF6=function(R,A){A=A===void 0?0:A;ozq.call(this);this.viewroot=R;this.defaultPrescanHeight=A;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),R?{root:R,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.H(kF6,ozq);_.l=kF6.prototype;_.l.dispose=function(){this.disconnect();this.handlers.clear()};
_.l.disconnect=function(R){this.isConnected=!1;this.pauseObservingUntilReconnect=R===void 0?!1:R;this.observer.disconnect();R=_.x(this.prescanObservers.values());for(var A=R.next();!A.done;A=R.next())A.value.disconnect()};
_.l.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var R=_.x(this.handlers),A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;var P=Y.next().value;Y=!1;P=_.x(P.keys());for(var E=P.next();!E.done;E=P.next())if((E=E.value)&&E.state==="prescan"){Y=!0;break}Y&&klN(this,A).observe(A);this.observer.observe(A)}}};
_.l.handleObserveEvent=function(R){R=_.x(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;var Y=this.handlers.get(A.target);if(Y){var P=A.isIntersecting;Y=_.x(Y);for(var E=Y.next();!E.done;E=Y.next()){var z=_.x(E.value);E=z.next().value;z=z.next().value;E&&(E.state==="visible"&&P||E.state==="hidden"&&!P)&&(z(A.target,E.state),E.calledOnce&&this.unobserveByKey({element:A.target,option:E}))}}}};
_.l.handlePrescanEvent=function(R){R=_.x(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;var Y=this.handlers.get(A.target);if(Y&&A.isIntersecting){Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;P&&P.state==="prescan"&&(E(A.target,P.state),P.calledOnce&&this.unobserveByKey({element:A.target,option:P}))}}}};
_.l.observe=function(R,A,Y){var P=(P=this.handlers.get(R))&&P.has(Y)?{element:R,option:Y}:void 0;if(P)return P;P={element:R,option:Y};this.handlers.has(R)||this.handlers.set(R,new Map);var E=this.handlers.get(R);E&&!E.has(Y)&&E.set(Y,A);this.pauseObservingUntilReconnect||(Y.state==="prescan"&&klN(this,R).observe(R),this.observer.observe(R));return P};
_.l.unobserveByKey=function(R){var A=this.handlers.get(R.element);if(A&&A.has(R.option)){A.delete(R.option);if(R&&R.option.state==="prescan")for(var Y=_.x(this.prescanObservers.values()),P=Y.next();!P.done;P=Y.next())P.value.unobserve(R.element);A.size===0&&(this.handlers.delete(R.element),this.observer.unobserve(R.element))}};
var klN=function(R,A){var Y=R.defaultPrescanHeight;A.hasAttribute("prescan-height")&&(A=Number(A.getAttribute("prescan-height")),isNaN(A)||(Y=A));if(R.prescanObservers.has(Y))return R.prescanObservers.get(Y);A="-0.1px -0.1px "+Y+"px -0.1px";A=new IntersectionObserver(R.handlePrescanEvent.bind(R),R.viewroot?{root:R.viewroot,rootMargin:A}:{rootMargin:A});R.prescanObservers.set(Y,A);return A};var GlD=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],Z5A=function(){var R,A=this;this.JSC$13226_actionRouter=R=R===void 0?_.ZA.getInstance():R;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return A.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return A.visibilityObservedElementHandlerKeys}}},tsq,uoS,LgA;
Z5A.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.v("kevlar_use_vimio_behavior")&&_.a1("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=GFk())};
Z5A.prototype.dispose=function(){this.visibilityMonitor&&_.XQ(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
Z5A.prototype.handleVisibilityRefreshed=function(){for(var R=_.x(this.targetMap.entries()),A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;Y=Y.next().value;_.wRq(this,A,Y)}};
_.q$Z=function(R,A,Y){uoS(R,Y);var P=_.e6G(R,A);P.element=Y;R.targetedElements.set(Y,A);_.wRq(R,A,P)};
uoS=function(R,A){var Y=R.targetedElements.get(A);if(Y){var P=R.targetMap.get(Y);P&&(delete P.element,R.targetMap.set(Y,P));R.targetedElements.delete(A);R.visibilityObserver&&R.visibilityObservedElementHandlerKeys&&(Y=R.visibilityObservedElementHandlerKeys.get(A))&&(R.visibilityObserver.unobserveByKey(Y),R.visibilityObservedElementHandlerKeys.delete(A))}};
_.wRq=function(R,A,Y){var P=Y.action,E=Y.element;E&&P&&(GlD.includes(A)||_.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||R.visibilityMonitor&&R.visibilityMonitor.isNodeVisible(E)?LgA(R,A,Y):R.visibilityObserver&&(R.visibilityObservedElementHandlerKeys||(R.visibilityObservedElementHandlerKeys=new WeakMap),P=R.visibilityObserver.observe(E,function(){LgA(R,A,Y);R.visibilityObservedElementHandlerKeys.delete(E)},{calledOnce:!0,
state:"visible"}),R.visibilityObservedElementHandlerKeys.set(E,P)))};
LgA=function(R,A,Y){var P=Y.action;(Y=Y.element)&&P&&(_.Gf(R.JSC$13226_actionRouter,[P],Y),R.targetMap.delete(A),R.targetedElements.delete(Y),R.triggeredTargets.add(A))};
_.e6G=function(R,A){var Y=R.targetMap.get(A);Y||(Y={},R.targetMap.set(A,Y));return Y};
_.k7=function(){tsq||(tsq=new Z5A);return tsq};var d8E=document.createElement("div");d8E.style.touchAction="pan-down";var Zpu=d8E.style.touchAction==="pan-down";var Rtb,AKf;Rtb=function(){this.hammerFn=c4H();this.JSC$13234_screenManager=_.rU();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.NV(83615);_.Sm(this.JSC$13234_screenManager,this.ve);tLJ()};
_.GD=function(){AKf||(AKf=new Rtb);return AKf};
Rtb.prototype.registerTouchEvents=function(R,A,Y){var P=_.Ge.apply(3,arguments),E=this.hammerFn(R,{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}]]});Y&&E.set({touchAction:Y});this.nodeManagerMapping.set(R,E);var z=
wfq(A);P=_.x(P);for(var c=P.next();!c.done;c=P.next()){c=c.value;if(c.includes("swipe")||c.includes("pinch")||c.includes("pan"))c.includes("swipe")?E.get("swipe").set({enable:!0,direction:z,velocity:.2}):c.includes("pinch")?E.get("pinch").set({enable:!0}):c.includes("pan")&&(E.get("pan").set({enable:!0,direction:z}),E.get("swipe").set({enable:!0,direction:z,velocity:.2}),E.get("swipe").recognizeWith("pan"));YYf(this,R,E,c)}};
var YYf=function(R,A,Y,P){Y.on(P,function(E){if(P.includes("pinch"))R.lastPinchTime=Date.now();else if(P.includes("swipe")&&Date.now()-R.lastPinchTime<400)return;E.pointerType!=="mouse"&&(E=P==="doubletap"?{coordinates:E.center}:P.includes("pan")?E:P.includes("swipe")?{target:E.target}:{},A.dispatchEvent(new CustomEvent(P,{bubbles:!0,composed:!0,detail:E})))})};
Rtb.prototype.unregisterTouchEvents=function(R){var A=_.Ge.apply(1,arguments),Y=this.nodeManagerMapping.get(R);if(Y){A=_.x(A);for(var P=A.next();!P.done;P=A.next())Y.off(P.value);this.nodeManagerMapping.delete(R);R.style.touchAction="unset"}};var P2D=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var uyb=null;var E8N=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},N7l=function(){E8N.instance||(E8N.instance=new E8N);
return E8N.instance},Vnb=function(R){var A=R.networkEvents;
R.networkEvents=[];return _.v("enable_network_monitoring")?A:[]};var zt8;zt8={};_.iID=z5("yt-serviceworker-metadata",{objectStores:(zt8.auth={addedAtVersion:1},zt8["resource-manifest-assets"]={addedAtVersion:2},zt8),shared:!0,upgrade:function(R,A){A(1)&&oB(R,"resource-manifest-assets");A(2)&&oB(R,"auth")},
version:2});var Ai8=self.location.origin+"/";YD3([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//,/\/music_integrations\/_\/js\//,/\/music_integrations\/_\/ss\//]);YD3([/purge_shell=1/]);var lJZ=void 0;lJZ=lJZ===void 0?[]:lJZ;for(var xtq=[],cKq=_.x(ZKS),OI7=cKq.next();!OI7.done;OI7=cKq.next())xtq.push({key:OI7.value});for(var MuA=_.x(lJZ),sif=MuA.next();!sif.done;sif=MuA.next())xtq.push(sif.value);var N9A,hf=_.P3==null?void 0:(N9A=_.P3.performance)==null?void 0:N9A.memory,z_u=!1,Ji3={},xWb={},o4={},kp=navigator;var Zp=function(R){this.JSC$13278_expiringStorage=new IW(R)};
Zp.prototype.set=function(R,A,Y){Y=Y!==void 0?Date.now()+Y:void 0;this.JSC$13278_expiringStorage.set(R,A,Y)};
Zp.prototype.get=function(R){return this.JSC$13278_expiringStorage.get(R)};
Zp.prototype.remove=function(R){this.JSC$13278_expiringStorage.remove(R)};var HPS=_.Z7(["https://www.youtube.com/",""]),riS=_.Z7(["https://studio.youtube.com/",""]),SDl="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",UWV=null,bPl;var VuN=_.Z7(["https://www.youtube.com/iframe_api"]),td=function(){this.playerResolver_=_.ei();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.r$;this.playbackDurationSeconds_=0},JK7=function(R){var A=function(){return window.YT&&typeof window.YT.ready==="function"};
if(A())return _.Vn(window.YT);var Y=_.ei(),P=_.De("SCRIPT");P.onload=P.onreadystatechange=function(){P.readyState&&P.readyState!="loaded"&&P.readyState!="complete"||(P.onload=_.r$,P.onreadystatechange=_.r$,P.onerror=_.r$,A()?Y.resolve(window.YT):Y.reject(new _.XN("Failed to load the iframe player library","script.onload",P.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
P.onerror=function(E){P.onload=_.r$;P.onreadystatechange=_.r$;P.onerror=_.r$;Y.reject(new _.XN("Failed to load the iframe player library","script.onerror",E&&E.target&&E.target.src))};
_.ET(P,_.Jr(VuN));R.insertBefore(P,R.firstChild);return Y.promise},yKA=function(R,A,Y){var P,E;
_.O(function(z){switch(z.nextAddress){case 1:return R.playbackEndedCallback_=Y,_.g2(z,2),z.yield(JK7(A.parentElement||null),4);case 4:P=z.yieldResult;_.us(z,3);break;case 2:return E=_.UT(z),E instanceof _.XN&&E.args&&E.args[0]=="script.onerror"?_.pK(E):_.bj(E),z.return();case 3:P.ready(function(){return new P.Player(A,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:R.onPlayerReady_.bind(R),onStateChange:R.onPlayerStateChange_.bind(R),
onCueRangeExit:R.onCueRangeExit_.bind(R)}})}),_.XH(z)}})};
_.l=td.prototype;_.l.getPlayerPromise=function(){return this.playerPromise_};
_.l.onPlayerReady_=function(R){this.playerResolver_.resolve(R.target)};
_.l.onPlayerStateChange_=function(R){if(R.data==YT.PlayerState.PLAYING){R=R.target;var A=R.getCurrentTime();R.addCueRange("playback",A,A+this.playbackDurationSeconds_)}};
_.l.onCueRangeExit_=function(R){R.data=="playback"&&(R.target.stopVideo(),this.playbackEndedCallback_())};
_.l.stopVideo=function(){this.playerPromise_.then(function(R){R.stopVideo()})};
var mt8=function(R){R.playerVars_&&R.playerPromise_.then(function(A){typeof A.cueVideoByPlayerVars!="function"?_.pK(new _.XN("vmh: player API not ready","cueVideoByPlayerVars",typeof A.cueVideoByPlayerVars)):A.cueVideoByPlayerVars(R.playerVars_)})};
td.prototype.playVideo=function(){var R=this;this.playerVars_&&this.playerPromise_.then(function(A){typeof A.loadVideoByPlayerVars!="function"?(A=new _.XN("vmh: player API not ready","loadVideoByPlayerVars",typeof A.loadVideoByPlayerVars),_.bj(A)):A.loadVideoByPlayerVars(R.playerVars_)})};
var T9A=function(R,A,Y,P,E){A&&(Y===void 0&&(Y=0),P===void 0&&(P=0),R.playbackDurationSeconds_=P/1E3,R.playerVars_={adformat:"17_8",videoId:A,suggestedQuality:"hd720",startSeconds:Y/1E3,player_params:E})};
td.prototype.mute=function(){this.playerPromise_.then(function(R){R.mute()})};
td.prototype.unMute=function(){this.playerPromise_.then(function(R){R.unMute()})};var QiZ=function(R,A){var Y=kh();R||(R="unknown");A||(A="unknown");R="MAIN_APP_WEB_PAGE_TYPE_"+R.toUpperCase();R in XyH||(R="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");A="MAIN_APP_WEB_REQUEST_TYPE_"+A.toUpperCase();A in Su8||(A="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.iD(Y,{mainAppWeb:{pageType:R,requestType:A,isShellLoad:_.CQ("IS_SHELL_LOAD",!1)}})},v8S={start:function(){_.iD(d2V(),{mainAppWeb:_.qi()})},
success:function(){_.lD(d2V(),"SUCCESS")},
failure:function(){_.lD(d2V(),"FAILURE")},
cancelled:function(){_.lD(d2V(),"CANCELLED")}};var g8H,n8Z,omk;g8H=_.Z7(["/sw.js"]);n8Z=_.Z7(["/sw.js?0"]);_.HIS=_.Jr(g8H);omk=_.Jr(n8Z);var rKf=function(){var R=Error.apply(this,arguments);this.message=R.message;"stack"in R&&(this.stack=R.stack)};
_.H(rKf,Error);_.R6.prototype.load=function(R){this.megabloxUrl_=_.a1("YPC_MB_URL");_.Gr(this.megabloxUrl_,(0,_.Wv)(function(){R&&R()},this))};
_.F9P=function(R,A,Y,P,E,z,c,M,N,y,m){_.GPk(N);R.load((0,_.Wv)(function(){try{var T=z?z:_.a1("HL"),Q=_.a1("SESSION_INDEX");_.KCI("client",function(){d_q("59",{helpCenterPath:"/youtube",locale:T,window:window}).JSC$9968_loadChatSupport({authuser:String(Q)})})}catch(g){throw Lo(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),E&&E(g),_.bj(g),g;
}DtA(this,A,Y,P,E,z,c,M,N,y,m)},R))};
_.R6.prototype.openFixFlowDialog=function(R,A,Y,P){this.load((0,_.Wv)(function(){try{Utq(this,_.Zr("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(R).withIntegratorCallback(A).load(Y,P)}catch(E){throw _.bj(E),E;}},this))};
var Utq=function(R,A,Y,P){var E=A.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.v("enable_window_constrained_buy_flow_dialog")&&(E=E.usingPopupStyle(_.Zr("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));P&&(E=E.usingCloseCallback(P));A.bootstrap.fromPaymentsUrl(R.megabloxUrl_);R=A.bootstrap.asMashupMode(E);Y=Y?Y:_.a1("HL");R.usingGaiaIndex(_.a1("SESSION_INDEX")).usingLocale(Y).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.v("enable_google_payments_buyflow_material2_style_web")?
R.usingStyle(":m2;pc=#444;ac=#065fd4"):R.usingStyle(":md;pc=#444;ac=#065fd4");return R},DtA=function(R,A,Y,P,E,z,c,M,N,y,m){try{var T=_.Zr("payments.business.integration");
if(!T)throw new rKf("payments.business.integration is undefined");var Q=T.standaloneContextAuthId.forUserId(),g=Utq(R,T,z,function(){tn8(!1);M&&M()});
c&&g.usingServerAnalyticsEventHandler(c);var r=g.inStandaloneContext(Q).buyFlow(function(I){if(I&&(!I.integratorData||I.integratorData===""||I.error))if(I.error!=null)if(String(I.error)==="-1")_.ZPk(N);else{var b=String(I.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Lo(10,m,b,I.debugCode);_.da(b,N,I.debugCode);b=new _.XN("PAYMENT_ERROR_MESSAGE::"+I.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+I.internalErrorDetails);
_.bj(b)}else Lo(10,m,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.da("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",N,"EMPTY_INTEGRATOR_DATA"),_.bj(Error("dg"));Y&&(tn8(!1),Y(I))}).withEncryptedParameters(A);
y&&r.withClientParameters(qBk(_.fQV(y)));r.load(function(){Lo(24,m);_.ao("ttc",void 0,"commerce_transaction");fj("commerce_transaction");P&&(P(),tn8(!0))},function(I){if(I==null?0:I.debugCode)var b=I==null?void 0:I.debugCode;
else if(!I||(I==null?0:I.debugCode))b="EMPTY_LOAD_FAILURE_ERROR",_.bj(Error(b));else{b="EMPTY_LOAD_FAILURE_DEBUG_CODE";var p=new _.XN("LOAD_FAILURE:"+I.message," DEBUG_CODE:"+b);_.bj(p)}Lo(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",b);_.da("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",N,b);_.bj(I);E&&E(I)})}catch(I){throw I instanceof rKf&&(Lo(10,m,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),E&&E(I)),_.bj(I),I;
}};var $tq;$tq=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.bkk=function(R,A){A=A===void 0?!1:A;R=$tq.test(R)?_.IR(R):null;!A&&window.payments||!R?(R=_.ei(),A=R.promise,R.resolve()):A=_.aOz(R,{attributes:{"data-payments-main":"",id:"payment-lib"}});return A};var X8Z;X8Z=_.Z7(["//www.googletagmanager.com/gtm.js?id=",""]);_.wR=function(R,A){_.ic(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:A}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.a1("GL")}),A=_.De("SCRIPT"),A.async=!0,_.ET(A,_.Jr(X8Z,R)),A.id="gtm",R=document.getElementsByTagName("script"),R.length==0?document.head.appendChild(A):(R=R[0],R.parentNode.insertBefore(A,R)))};
_.ur=function(R){if(R=JSON.parse(R))window.dataLayer=window.dataLayer||[],window.dataLayer.push(R)};var SYA,IJH;SYA=_.Z7(["https://clients2.google.com/gr/gr_sync.js"]);_.W93=function(){};
_.W93.prototype.init=function(){if(IJH()){var R=_.ei();R.resolve();return R.promise}return _.aOz(_.Jr(SYA)).then(function(){if(!IJH())throw Error("eg");},function(){throw Error("fg");
})};
_.j0J=function(){if(!IJH())return"";var R=window.google.gr;R.init({async:{schedule:"sync"},merchantId:"youtube"});R.start();R=R.finish();return R==null?"":R};
IJH=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.K=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.H(_.K,PolymerFakeBaseClassWithoutHtml);_.rg=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.H(_.rg,PolymerFakeBaseClassWithoutHtml);var wlk=window.ShadyDOM;var XoS,Uqk,Iqk,Kaq,jUP,bSl,ew,Ol;XoS=_.v("enable_shadydom_free_scoped_query_methods");Uqk=_.v("enable_shadydom_free_scoped_node_methods");Iqk=_.v("enable_shadydom_free_scoped_readonly_properties_batch_one");Kaq=_.v("enable_shadydom_free_parent_node");jUP=_.v("enable_shadydom_free_children");bSl=_.v("enable_shadydom_free_last_child");ew=window.ShadyDOM;_.Jh=ew&&ew.noPatch&&ew.wrap?ew.wrap:ew?function(R){return ew.patch(R)}:function(R){return R};
Ol=function(R){if(R instanceof ShadowRoot)this.host=(0,_.Jh)(R.host),this.root=R;else if(R.$$){this.host=(0,_.Jh)(R);var A;this.root=(A=R.root)!=null?A:this.host}else if(R.polymerController){this.host=(0,_.Jh)(R);var Y;this.root=(Y=this.host.shadowRoot)!=null?Y:this.host}else this.root=this.host=(0,_.Jh)(R)};
$qP();Smk();fq6();pob();Wa6();var KjG={querySelector:function(R,A){A=e_6(A,El(R));R=_.z2(R);return i5(R).prototype.querySelector.call(R,A)},
querySelectorAll:function(R,A){A=e_6(A,El(R));R=_.z2(R);return i5(R).prototype.querySelectorAll.call(R,A)}},WjS={appendChild:function(R,A){var Y=El(R),P=_.PZ(A);
return _.rjk(_.z2(R),Y?_.xw(A,Y,P):A)},
cloneNode:function(R,A){var Y=_.PZ(R);R=_.z2(R);A=i5(R).prototype.cloneNode.call(R,A);return Y?cZ(A,Y):A},
contains:function(R,A){var Y=El(R),P=_.PZ(A);return Y!==P?!1:Dqk(R,A)},
insertBefore:function(R,A,Y){var P=El(R),E=_.PZ(A);R=_.z2(R);A=P?_.xw(A,P,E):A;return i5(R).prototype.insertBefore.call(R,A,Y)},
removeChild:function(R,A){var Y=El(R);R=_.z2(R);A=Y?cZ(A,Y):A;return i5(R).prototype.removeChild.call(R,A)},
replaceChild:function(R,A,Y){var P=El(R),E=_.PZ(A);A=P?_.xw(A,P,E):E?cZ(A,E):A;Y=P?cZ(Y,P):Y;R=_.z2(R);return i5(R).prototype.replaceChild.call(R,A,Y)},
getRootNode:function(R,A){A=A===void 0?{composed:!0}:A;var Y;if(((Y=A)!=null?Y:{}).composed)R=lqu(R);else{A=R;for(R=LKP(R);R;)A=R,R=RGP(R);R=A}return R}},Bwk=Iqk?{firstChild:Twb,
nextSibling:Jjq,previousSibling:mqq,firstElementChild:QU3,lastElementChild:gE6,nextElementSibling:VWJ,previousElementSibling:yjk,childNodes:nE6}:{};Kaq&&(Bwk.parentNode=Nwk);jUP&&(Bwk.children=HSk);bSl&&(Bwk.lastChild=vEV);XoS&&Fak(KjG);Uqk&&Fak(WjS);aqq();var CfI=function(R){this.node=R instanceof ShadowRoot?R.host:R};
hG6();oEk();var ZSS=new WeakMap;var wo8=Symbol("xd");var dqu=new Set(["tap","track","down","up"]),ReV=_.v("pbcm_fi_query_decorators");var qa=function(){return _.rg.apply(this,arguments)||this};
_.H(qa,_.rg);_.l=qa.prototype;_.l.getState=function(){return this.store.getState()};
_.l.dispatch=function(R){this.store.dispatch(R)};
_.l.beforeRegister=function(){if(this&&typeof this==="object"){var R;var A=!!this.useSignals||!((R=this.polymerController)==null||!R.useSignals)}else A=!1;if(!A&&this.properties)for(A=_.x(Object.keys(this.properties)),R=A.next();!R.done;R=A.next()){var Y=R.value;R=this.properties[Y];if(R.selector){if(R.computed)throw Error("lg");Y=["reduxPropertiesRecomputeTrigger",'"'+Y+'"'].concat(_.py(R.selectorArgs||[])).join(",");R.computed="recomputeReduxSelector("+Y+")"}}};
_.l.attached=function(){var R=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){R.reduxPropertiesRecomputeTrigger++}));
_.v("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.l.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.l.recomputeReduxSelector=function(R,A){var Y=_.Ge.apply(2,arguments),P=this.properties[A].selector;if(!P)throw Error("jg`"+A);return P.apply(null,[this.store.getState()].concat(_.py(Y)))};
_.l.select=function(R){var A=_.Ge.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return R.apply(null,[this.store.getState()].concat(_.py(A)))};
_.Yh.Object.defineProperties(qa.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
qa.prototype.recomputeReduxSelector=qa.prototype.recomputeReduxSelector;_.C([_.S(),_.k("design:type",Number)],qa.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.C([_.Do()],qa);var L1=[],E4S={},a6=function(){return EP.apply(this,arguments)||this};
_.H(a6,EP);a6.prototype._addPropertyEffect=function(R,A,Y){if(A==="__observeEffects"&&Y){var P,E=(P=Y.info.method)!=null?P:Y.info.methodName;if(E){var z=this[E];this[E]=function(){L1.push(E);try{z==null||z.apply(this,arguments)}finally{L1.pop()}}}}_.jJ._addPropertyEffect.apply(this,[R,
A,Y])};
a6.prototype._setPendingProperty=function(R,A,Y){if(L1.length){var P=L1[L1.length-1],E;(E=E4S[this.is])!=null&&E.has(P)||(zeJ(this.is,P),_.Wj("polymerPropertyChangedInObserver",{componentName:this.is,observerName:P}))}return _.jJ._setPendingProperty.apply(this,[R,A,Y])};
_.C([j7k()],a6);var im8=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),xru,X7={};_.v("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=X7);var KG=function(){return _.rg.apply(this,arguments)||this};
_.H(KG,_.rg);KG.prototype._setUnmanagedPropertyToNode=function(R,A,Y){R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!0);if(Y!==R[A]||typeof Y==="object")R[A]=Y;R.is&&R.polymerController&&R.polymerController!==R&&Sz(R.is,A,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");R.loggingStatus&&(R.loggingStatus.isDeclarativeExternal=!1)};
_.C([_.Do()],KG);l$P()&&(kc.prototype._setUnmanagedPropertyToNode=(new KG)._setUnmanagedPropertyToNode);_.n4u={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(R){},set polymerController(R){}}]};var pG=function(){var R=EP.apply(this,arguments)||this;R.json=function(){};
return R};
_.H(pG,EP);pG.prototype.equals=function(R,A){return R===A};
pG.prototype.isEmpty=function(R){var A;(A=!R)||(A=_.ok(R)&&R.length===0);return A};
_.C([j7k()],pG);var jiH=function(R){R=IwJ(R);wS.call(this,R)};
_.H(jiH,wS);jiH.prototype.addProvider=function(R){R=R.key?R:IwJ([R])[0];var A=this.keyIdToIndex.get(R.key.id);if(A){if(NBV(R,this.providers[A]))throw Error("mg`"+R.key.displayName);}else wS.prototype.addProvider.call(this,R)};
var bIH=new jiH([]);var fJH=!1;var Qb6={};fJH||(TBJ(),fJH=!0);
Qb6.InjectBehavior={initializeInjection:function(){var R=this.provide;try{if((R=R!=null?R:[])&&R.length>0)for(var A=IwJ(R),Y=_.x(A),P=Y.next();!P.done;P=Y.next())bIH.addProvider(P.value);var E=new Set;Vk6(this.behaviors||[],E);A={};for(var z=_.x(E),c=z.next();!c.done;c=z.next()){var M=c.value;M.inject&&Object.assign(A,M.inject)}this.inject&&Object.assign(A,this.inject);for(var N=_.x(Object.keys(A)),y=N.next();!y.done;y=N.next()){var m=y.value,T=A[m];try{this[m]=bIH.resolve(T)}catch(Q){throw Q;}}}catch(Q){throw Error(Q.message);
}}};var g4k;var Hml=/\bclass\b/.test(function(){}.toString()),Ur6=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var p8A=function(R){this.wasDefined=!0;Array.isArray(R)||R instanceof Array?(this.JSC$13407_getImpl=R[0],this.JSC$13407_setImpl=R[1]):this.JSC$13407_getImpl=R};
_.l=p8A.prototype;_.l.getWithPath=function(R){return Sol(this.JSC$13407_getImpl(),R)};
_.l.setWithPath=function(R,A){var Y=this;if(R.length)throw Error("ng");if(!this.JSC$13407_setImpl)throw Error("og");nX(function(){Y.JSC$13407_setImpl(A)})};
_.l.notifyPath=function(){throw Error("pg");};
_.l.notifySplices=function(){throw Error("qg");};
_.l.getChangeRecordSignal=function(R,A){var Y=this;if(R.length)throw Error("rg");return function(){var P=Y.getWithPath(R);return{path:A!=null?A:"",base:P,value:P}}};
_.l.getSplicesSignal=function(){throw Error("sg");};
_.l.getPathMutationSignal=function(){throw Error("tg");};
_.l.pop=function(){throw Error("ug");};
_.l.push=function(){throw Error("vg");};
_.l.splice=function(){throw Error("wg");};
_.l.unshift=function(){throw Error("xg");};var dR=function(R){var A=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(R)||R instanceof Array?(this.JSC$13412_getImpl=R[0],this.JSC$13412_setImpl=R[1]):this.JSC$13412_getImpl=R;this.wasDefined=!1;J6(function(){A.wasDefined=A.JSC$13412_getImpl()!==void 0})};
dR.prototype.getWithPath=function(R){return Sol(this.JSC$13412_getImpl(),R)};
dR.prototype.setWithPath=function(R,A){var Y=this;if(R[R.length-1]!=="*"&&R[R.length-1]!=="splices"){var P=J6(function(){return Y.getWithPath([])});
if(R.length===0){if(!this.JSC$13412_setImpl)throw Error("yg");if(P===A)return;this.wasDefined||(this.wasDefined=A!==void 0);nX(function(){Y.JSC$13412_setImpl(A)})}else{for(var E=0;E<R.length-1;E++){if(!P)return;
P=P[R[E]]}E=R[R.length-1];P&&(P[E]=A);this.wasDefined||(this.wasDefined=R.length>1||A!==void 0)}Fj7(this,R,{pathComponents:R,value:A})}};
dR.prototype.notifyPath=function(R,A){R.length===0?A&&this.setWithPath(R,A.value):Fj7(this,R,{pathComponents:R,value:A==null?void 0:A.value,fallbackWhenUndefined:A==null?void 0:A.value})};
var Fj7=function(R,A,Y,P){if(R.setMutationSignal){var E=++R.mutationIndex,z=[R.observedPath],c=R.observedPath,M;A.length===0&&(M=c);for(var N=0;N<A.length;N++){var y=c.subPaths[A[N]];if(!y)break;z.push(y);c=y;N===A.length-1&&(M=y)}for(A=!1;z.length;)c=z.shift(),c.data={index:E,mutation:Y,spliceMutationIndex:P},A||(A=c===M),A&&z.push.apply(z,_.py(Object.values(c.subPaths)));nX(function(){R.setMutationSignal(E)})}};
dR.prototype.notifySplices=function(R,A){var Y=this,P=J6(function(){return Y.getWithPath(R)}),E=[].concat(_.py(R),["splices"]);
Fj7(this,E,{pathComponents:E,value:{indexSplices:A}});if(P==null?0:P.length)A=this.mutationIndex,E=[].concat(_.py(R),["length"]),Fj7(this,E,{pathComponents:E,value:P.length},A)};
var B9N=function(R,A,Y,P,E,z){R.notifySplices(Y,[{index:P,addedCount:E,removed:z,object:A,type:"splice"}])},aJA=function(R,A){R=R.observedPath;
for(var Y=0;Y<A.length;Y++){var P=A[Y],E=R.subPaths[P];E||(E={pathComponents:A.slice(0,Y+1),subPaths:{}},R.subPaths[P]=E);R=E}},htE=function(R,A,Y){aJA(R,A);
if(!R.getMutationSignal){var P=_.x(_.yy(R.mutationIndex,void 0,"sNBMCd"));R.getMutationSignal=P.next().value;R.setMutationSignal=P.next().value}var E=R.getMutationSignal;return _.gE(function(){E();return Y(C2z(R,A))},void 0,"zvsXEd")};
dR.prototype.getChangeRecordSignal=function(R,A){var Y=this,P=this.mutationIndex,E;return htE(this,R,function(z){if(z&&z.index>P){var c=z.mutation;P=z.index;E=void 0}z=J6(function(){return Y.getWithPath(R)});
if(c){var M=c.pathComponents[c.pathComponents.length-1],N=[].concat(_.py(c.pathComponents));if(M==="splices"||M==="length")return{base:z,path:(A?[A].concat(_.py(N)):N).join("."),value:c.value};var y=R.length>N.length?R:N,m;return{base:z!=null?z:c.fallbackWhenUndefined,path:(A?[A].concat(_.py(y)):y).join("."),value:(m=J6(function(){return Y.getWithPath(y)}))!=null?m:c.fallbackWhenUndefined}}E||(E={base:z,
path:(A?[A].concat(_.py(R)):R).join("."),value:z});return E})};
dR.prototype.getSplicesSignal=function(R){var A=this.mutationIndex,Y;return htE(this,R,function(P){if(P&&P.index>A&&P.spliceMutationIndex!==A){var E=P.mutation;A=P.index;Y=void 0}return E&&E.pathComponents[E.pathComponents.length-1]==="splices"?Y=P=E.value:Y})};
dR.prototype.getPathMutationSignal=function(R){var A=this;aJA(this,R);if(!this.getMutationSignal){var Y=_.x(_.yy(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=Y.next().value;this.setMutationSignal=Y.next().value}var P=this.getMutationSignal,E=this.mutationIndex,z;return _.gE(function(){P();var c=C2z(A,R);if(c&&c.index>E&&c.mutation&&I$6(c.mutation.pathComponents,R)){var M=c.mutation;E=c.index}if(!z||E!==z.index){var N,y;c=(y=J6(function(){return A.getWithPath(R)}))!=null?y:(N=M)==null?
void 0:N.fallbackWhenUndefined;
z={index:E,value:c}}return z},void 0,"RXYC9b")};
var C2z=function(R,A){R=R.observedPath;A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())R=R.subPaths[Y.value];return R.data};
dR.prototype.pop=function(R){var A=this,Y=J6(function(){return A.getWithPath(R)});
if(!(Y instanceof Array))throw Error("zg");var P=Y.length>0,E=Y.pop();P&&B9N(this,Y,R,Y.length,0,[E]);return E};
dR.prototype.push=function(R){var A=_.Ge.apply(1,arguments),Y=this,P=J6(function(){return Y.getWithPath(R)});
if(!(P instanceof Array))throw Error("Ag");var E=P.length,z=P.push.apply(P,_.py(A));A.length&&B9N(this,P,R,E,A.length,[]);return z};
dR.prototype.splice=function(R,A,Y){var P=_.Ge.apply(3,arguments),E=this,z=J6(function(){return E.getWithPath(R)});
if(!(z instanceof Array))throw Error("Bg");A<0?A=z.length-Math.floor(-A):A&&(A=Math.floor(A));var c=z.splice.apply(z,[A,Y].concat(_.py(P)));(P.length||c.length)&&B9N(this,z,R,A,P.length,c);return c};
dR.prototype.unshift=function(R){var A=_.Ge.apply(1,arguments),Y=this,P=J6(function(){return Y.getWithPath(R)});
if(!(P instanceof Array))throw Error("Cg");var E=P.unshift.apply(P,_.py(A));A.length&&B9N(this,P,R,0,A.length,[]);return E};var Rs=function(R,A,Y){this.model=R;this.unknownSignalResolver=A;this.options=Y;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];A=_.x(a$b());R=A.next().value;A=A.next().value;this.owner=R;this.disposeImpl=A};
Rs.prototype.dispose=function(){if(!this.isDisposed){for(var R=_.x(this.childSignalProxies),A=R.next();!A.done;A=R.next())A.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var o88=function(R,A){R=_.E9(R.owner);try{A()}finally{_.E9(R)}};
Rs.prototype.effect=function(R){o88(this,function(){_.FF(R)})};
var kK8=function(R,A){R.options!=null||(R.options={});var Y;(Y=R.options).immutableProps!=null||(Y.immutableProps=new Set);R.options.immutableProps.add(A)},Msk=function(R,A){A=""+A;
GKD(R,A);var Y,P;if((Y=R.options)==null?0:(P=Y.immutableProps)==null?0:P.has(A))return!0;var E;if((E=R.model.__signalCache)==null?0:E.has(A))Y=R.model.__signalCache.get(A),Array.isArray(Y)&&kK8(R,A);var z,c,M;return(M=(z=R.options)==null?void 0:(c=z.immutableProps)==null?void 0:c.has(A))!=null?M:!1},ZIS=function(R,A){var Y;
R.unknownSignalResolver&&(Y=R.unknownSignalResolver(A));var P,E;((P=R.options)==null?0:(E=P.immutableProps)==null?0:E.has(A))?Y!=null||(Y=new p8A(_.yy(R.model[A],void 0,"By5iP"))):Y!=null||(Y=new dR(_.yy(R.model[A],void 0,"CXghNc")));var z=R.model.hostElement;Object.defineProperty(R.model,A,{get:function(){Omq(z,A);return Y.getWithPath([])},
set:function(c){I6(z,A);R.setWithPath([A],c)},
configurable:!0});return Y},GKD=function(R,A){var Y,P,E;
((Y=R.model.__signalCache)==null||!Y.has(A))&&((P=R.options)==null?0:(E=P.externalSignalProps)==null?0:E.has(A))&&R.model[A]},kw=function(R,A){A=""+A;
var Y=R.signalCache[A];if(Y!==void 0)return Y;Y=!1;GKD(R,A);var P;if((P=R.model.__signalCache)==null?0:P.has(A))if(Y=R.model.__signalCache.get(A),Array.isArray(Y))Y=!0,kK8(R,A);else return R.signalCache[A]=R.model.__signalCache.get(A).signal,R.signalCache[A];var E,z;P=(z=(E=R.options)==null?void 0:E.reactivityMode)!=null?z:0;var c,M;if(!((c=R.options)==null?0:(M=c.reactiveProps)==null?0:M.has(A))&&!Y&&P===1)throw Error("Dg`"+A);E=Y?tuz(R,A):ZIS(R,A);return R.signalCache[A]=E},tuz=function(R,A){var Y=
Object.getOwnPropertyDescriptor(R.model.constructor.prototype,A),P=function(){return R.model[A]};
return new p8A(Y&&Y.get&&!Y.set?P:[P,function(E){R.model[A]=E}])};
Rs.prototype.getWithPath=function(R){var A=_.x(R);R=A.next().value;A=A6(A);Omq(this.model.hostElement,""+R);return kw(this,R).getWithPath(A)};
Rs.prototype.setWithPath=function(R,A){if(R.length){I6(this.model.hostElement,R.join("."));var Y=_.x(R);R=Y.next().value;Y=A6(Y);kw(this,R).setWithPath(Y,A)}};
Rs.prototype.getPathMutationSignal=function(R){var A=_.x(R);R=A.next().value;A=A6(A);return kw(this,R).getPathMutationSignal(A)};
Rs.prototype.notifyPath=function(R,A){var Y=_.x(R);R=Y.next().value;Y=A6(Y);kw(this,R).notifyPath(Y,A)};
var w8A=function(R,A){if(A.type==="literal")return function(){return{rootWasDefined:!0,value:A.value}};
var Y=hh(A.path),P=_.x(Y),E=P.next().value;P=A6(P);var z,c;if(A.type==="path"&&(Y.length===1||((z=R.options)==null?0:(c=z.immutableProps)==null?0:c.has(E))))return function(){var T=R.getWithPath(Y.slice(0,1));T=Sol(T,Y.slice(1));return{rootWasDefined:kw(R,Y[0]).wasDefined,value:T}};
var M=kw(R,E);if(A.type==="path"){var N=M.getPathMutationSignal(P);return function(){var T,Q=(T=N())==null?void 0:T.value;return{rootWasDefined:M.wasDefined,value:Q}}}if(A.type==="splices"){var y=M.getSplicesSignal(P);
return function(){var T=y();return{rootWasDefined:M.wasDefined,value:T}}}var m=M.getChangeRecordSignal(P,""+E);
return function(){var T=m();return{rootWasDefined:M.wasDefined,value:T}}},pAu=function(R,A,Y){var P=Y.map(function(M){return w8A(R,M)}),E=Y.length===0,z=[],c=Y.length!==1||Y[0].type!=="path"?!1:!0;
R.effect(function(){for(var M=P.length,N=[],y=!!z.length,m=0;m<M;m++){var T=P[m](),Q=T.rootWasDefined;T=T.value;E||(E=Q);N[m]=T;c&&(N[m+M]=y?z[m]:N[m],z[m]=T)}E&&BV(R.owner,function(){return void A.apply(null,_.py(N))})})},KII=function(R,A,Y,P,E){var z=kw(R,A);
E!==void 0&&z.setWithPath([],E);pAu(R,function(){var c=_.Ge.apply(0,arguments);I6(R.model.hostElement,A,!0);z.setWithPath([],Y.apply(null,_.py(c)))},P)};
Rs.prototype.arrayPush=function(R){var A=_.Ge.apply(1,arguments),Y=_.x(R),P=Y.next().value;Y=A6(Y);P=kw(this,P);return P.push.apply(P,[Y].concat(_.py(A)))};
Rs.prototype.arraySplice=function(R,A,Y){var P=_.Ge.apply(3,arguments),E=_.x(R),z=E.next().value;E=A6(E);z=kw(this,z);return z.splice.apply(z,[E,A,Y].concat(_.py(P)))};
Rs.prototype.arrayUnshift=function(R){var A=_.Ge.apply(1,arguments),Y=_.x(R),P=Y.next().value;Y=A6(Y);P=kw(this,P);return P.unshift.apply(P,[Y].concat(_.py(A)))};
Rs.prototype.notifySplices=function(R,A){var Y=_.x(R);R=Y.next().value;Y=A6(Y);kw(this,R).notifySplices(Y,A)};var uD8=!0,etZ=!1,si8=!1,qYS=!1,LjH=0;qYS=!1;LjH=0;uD8=!0;etZ=si8=!1;var ZmV=/([^\s]+?)\(([\s\S]*)\)/,o4l=/\.([^.]+)$/,wAb=/\\,/g,C0J=/&comma;/g,hek=/\\(.)/g,tkI=[],kgS={"*":"wildcard",splices:"splices"};var Ezk=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"),R6J=/[A-Z]/,dtz=["class","hidden","id","on-dom-change"],i5V=new Set([].concat(_.py(dtz),
["if","notify-dom-change","restamp"])),lB8=new Set([].concat(_.py(dtz),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),x8k=new Set(["restamp"]);var xe8=new Set(["className","id"]);var NCu=Symbol(),vzJ=window;var XRl=window;var fBP=0,KgJ=0,G2=[],b5u=0,IBb=!1,jwk=document.createTextNode("");(new window.MutationObserver(Wgq)).observe(jwk,{characterData:!0});var th=new Map,Zo=0,RXf=function(R){this.mappedHandleId=R},FgS=function(R,A,Y,P){this.mappedHandleId=R;
var E=this;this.mappedHandleId=R;this.callback=A;this.waitTime=Y;this.schedulerPriority=P;this.handleId=_.fn.addJob(function(){E.callback();th.delete(E.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.H(FgS,RXf);FgS.prototype.cancel=function(){_.fn.cancelJob(this.handleId);th.delete(this.mappedHandleId)};
var BCI=function(R,A){this.mappedHandleId=R;var Y=this;this.mappedHandleId=R;this.callback=A;this.handleId=pRu(function(){Y.callback();th.delete(Y.mappedHandleId)})};
_.H(BCI,RXf);BCI.prototype.cancel=function(){var R=this.handleId-KgJ;R<0||G2.length<=R||(G2[R]=null);th.delete(this.mappedHandleId)};var ozk=function(){};
ozk.prototype.cancel=function(){this.jobHandle!==void 0&&(aBl(this.jobHandle),this.jobHandle=void 0)};
ozk.prototype.run=function(R,A,Y){var P=this;this.cancel();this.callback=R;this.jobHandle=_.wg(function(){R();P.callback=void 0},A,Y)};
ozk.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var CWk=new WeakMap;var AoD=lX(function(R){for(var A=R,Y=0;Y<3;Y++)A=Object.getPrototypeOf(A);delete A.prototype.connectedCallback;var P=function(){return R.apply(this,arguments)||this};
_.H(P,R);P.prototype._attachDom=function(E){if(!E)return null;var z=(0,_.Jh)(this.hostElement);z.attachShadow({mode:"open",shadyUpgradeFragment:E});z.shadowRoot.appendChild(E);return z.shadowRoot};
P.prototype._takeAttributes=function(){for(var E=this.hostElement.attributes,z=0;z<E.length;z++){var c=E[z],M=void 0,N=void 0;(N=(M=this).__attributeReaction)==null||N.call(M,c.name,null,c.value)}};
P.prototype._readyClients=function(){R.prototype._readyClients.call(this);this.root=this};
P.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);R.prototype.connectedCallback.call(this)};
_.Yh.Object.defineProperties(P,{template:{configurable:!0,enumerable:!0,get:function(){return P.prototype._template}}});
return P}),YZz=lX(function(R){var A=function(){return R.apply(this,arguments)||this};
_.H(A,R);A.prototype.created=function(){if(this.__notifyEffects)for(var Y=_.x(Object.values(this.__notifyEffects)),P=Y.next();!P.done;P=Y.next()){P=_.x(P.value);for(var E=P.next();!E.done;E=P.next())E.value.fn=tsk}if(this.__reflectEffects)for(Y=_.x(Object.values(this.__reflectEffects)),P=Y.next();!P.done;P=Y.next())for(P=_.x(P.value),E=P.next();!E.done;E=P.next())E.value.fn=wRk};
A.prototype._addEventListenerToNode=function(Y,P,E){Y=ez(Y);by(Y,P,E)||R.prototype._addEventListenerToNode.call(this,Y,P,E)};
A.prototype._removeEventListenerFromNode=function(Y,P,E){Y=ez(Y);fg(Y,P,E)||R.prototype._removeEventListenerFromNode.call(this,Y,P,E)};
A.prototype._propertiesChanged=function(Y,P,E){if(this.__dataToNotify&&this.__notifyEffects)for(var z=_.x(Object.keys(this.__dataToNotify)),c=z.next();!c.done;c=z.next()){c=c.value;var M=Z5k(c);this.__notifyEffects[M]||delete this.__dataToNotify[c]}else this.__dataToNotify=null;R.prototype._propertiesChanged.call(this,Y,P,E)};
A.prototype.fire=function(Y,P,E){P=P===void 0?{}:P;var z;return _.xo(ez((z=E==null?void 0:E.node)!=null?z:this),Y,P,E)};
A.prototype._ensureAttribute=function(Y,P){var E=ez(this);E.hasAttribute(Y)||o6(E,P,Y)};
A.prototype.isLightDescendant=function(Y){var P=ez(this);return ez(P)!==Y&&_.Mo(P).contains(Y)&&_.Mo(P).getRootNode()===_.Mo(Y).getRootNode()};
return A});
_.W9.ready=function(){var R;((R=this.hostElement)!=null?R:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var A;((A=this.hostElement)!=null?A:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Cr._subscribeIronResize=function(R){var A;((A=R.hostElement)!=null?A:R).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Cr._unsubscribeIronResize=function(R){var A;((A=R.hostElement)!=null?A:R).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var q$q=[Array,Boolean,Date,Number,Object,String],LG=function(R,A,Y,P){this.polySiInfo=R;this.polySiParams=A;this.polySiContext=Y;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;P||this instanceof HTMLElement&&(P=this);if(!P)throw Error("Kg");this.allowedProps=A.allowedProps;this.hostElement=P;this.is=R.is;this.upgradeDisabled=!!A.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");R=new Set(A.reactiveSchemas.filter(function(E){return E.type!==
"observe"}).map(function(E){return E.propertyKey}));
this.signalProxy=new Rs(this,void 0,{reactiveProps:R,reactivityMode:A.reactivityMode});this.__dataHasAccessor={};A=_.x(A.reactiveSchemas);for(R=A.next();!R.done;R=A.next())R=R.value,R.type==="signal"&&(this.__dataHasAccessor[R.propertyKey]=!0);this.upgradeDisabled||P9H(this)};
LG.prototype.getExtraMethodsToForward=function(){return[]};
var P9H=function(R){R.polySiContext.didRegister||(R.registered(),R.polySiContext.didRegister=!0);R.polySiContext.finalizedTemplate||(R.polySiContext.finalizedTemplate={},R.polySiParams.templateGetter&&(R.polySiContext.finalizedTemplate.processedTemplate=S$V(R.polySiParams.templateGetter,R.polySiParams.is)));EeE(R);var A=R.hostElement;A.loggingStatus!=null||(A.loggingStatus={});A.loggingStatus.isInitializing=!0;J6(function(){return void R.created()});
A.loggingStatus.isInitializing=!1;R.isPolySiElementConnected&&zXb(R)},zXb=function(R){R.didCallReady||(J6(function(){return void R.ready()}),R.didCallReady=!0);
R.isAttached=!0;R.attached()};
_.l=LG.prototype;_.l.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||zXb(this)};
_.l.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.l.attributeChangedCallback=function(R,A,Y){if(this.upgradeDisabled)R==="disable-upgrade"&&Y===null&&(this.upgradeDisabled=!1,P9H(this));else if(A!==Y){var P=_.nO(R),E=this.polySiContext.typesForSignals[P];if(E&&(!this.reflecting||_.v("polysi_attribute_changed_serializing_killswitch"))){switch(E){case Object:try{var z=JSON.parse(Y)}catch(M){z=Y}break;case Array:try{z=JSON.parse(Y)}catch(M){z=null}break;case Date:z=isNaN(Y)?String(Y):Number(Y);z=new Date(z);break;case Boolean:z=Y!==null;break;case Number:z=
Number(Y);break;default:z=Y}this[P]=z}P=_.x(this.polySiParams.behaviors);for(E=P.next();!E.done;E=P.next())z=void 0,(z=E.value.attributeChanged)==null||z.call(this,R,A,Y);var c;(c=this.attributeChanged)==null||c.call(this,R,A,Y)}};
_.l.attributeChangedCallbackWrapper=function(R,A,Y){this.attributeChangedCallback(R,A,Y)};
_.l.setPropertiesFromInitialAttributeValues=function(){for(var R=0;R<this.hostElement.attributes.length;R++){var A=this.hostElement.attributes[R];(A.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(A.name))&&this.attributeChangedCallback(A.name,null,A.value)}};
_.l.created=function(){this.provide=this.polySiParams.provide;var R;(R=this.initializeInjection)==null||R.call(this);R=_.x(this.polySiParams.reactiveSchemas);for(var A=R.next();!A.done;A=R.next())A=A.value,A.type==="signal"&&(this.mutablePropNames.add(A.propertyKey),kw(this.signalProxy,A.propertyKey));e6b(this,this.polySiInfo,this.polySiParams.behaviors);R=_.x(this.polySiParams.reactiveSchemas);for(A=R.next();!A.done;A=R.next())A=A.value,A.type==="signal"&&A.value!==void 0&&(this.signalProxy.model[A.propertyKey]=
typeof A.value==="function"?A.value.call(this):A.value);if(this.polySiParams.signalProperties)for(R=_.x(this.polySiParams.signalProperties),A=R.next();!A.done;A=R.next()){A=A.value;var Y=void 0;((Y=this.__signalCache)==null?0:Y.has(A))||(this.signalProxy.model[A]=void 0)}qYS||ivz(this);uo3(this);R=_.x(this.polySiParams.behaviors);for(A=R.next();!A.done;A=R.next())Y=void 0,(Y=A.value.created)==null||Y.call(this);var P;(P=this.polySiInfo.created)==null||P.call(this)};
_.l.registered=function(){var R=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var A=Object.getPrototypeOf(this);A.addReactiveSchema=function(M){R.polySiParams.reactiveSchemas.push(M)};
for(var Y=_.x(this.polySiParams.behaviors),P=Y.next();!P.done;P=Y.next()){var E=void 0;(E=P.value.beforeRegister)==null||E.call(A)}var z;(z=this.polySiInfo.beforeRegister)==null||z.call(A);A.addReactiveSchema=d8k;Y=_.x(this.polySiParams.behaviors);for(P=Y.next();!P.done;P=Y.next())E=void 0,(E=P.value.registered)==null||E.call(A);var c;(c=this.polySiInfo.registered)==null||c.call(A)};
_.l.ready=function(){var R;(R=this.beforeReady)==null||R.call(this);qYS&&ivz(this);var A;if(R=(A=this.polySiContext.finalizedTemplate)==null?void 0:A.processedTemplate){R=$8J(R.template,R.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:R.hasInsertionPoint,thisCtx:this});A=R.nodesById;R=R.root;var Y=this.hostElement;var P=P===void 0?!1:P;Y=(0,_.Jh)(Y);if(!Y.attachShadow)throw Error("Dd");if(!Y.shadowRoot||P)Y.attachShadow({mode:"open",shadyUpgradeFragment:R}),Y.shadowRoot.appendChild(R);
this.root=Y.shadowRoot;this.$=A}llf(this);P=_.x(this.polySiParams.behaviors);for(A=P.next();!A.done;A=P.next())R=void 0,(R=A.value.ready)==null||R.call(this);var E;(E=this.polySiInfo.ready)==null||E.call(this)};
_.l.attached=function(){for(var R=_.x(this.polySiParams.behaviors),A=R.next();!A.done;A=R.next()){var Y=void 0;(Y=A.value.attached)==null||Y.call(this)}var P;(P=this.polySiInfo.attached)==null||P.call(this)};
_.l.detached=function(){for(var R=_.x(this.polySiParams.behaviors),A=R.next();!A.done;A=R.next()){var Y=void 0;(Y=A.value.detached)==null||Y.call(this)}var P;(P=this.polySiInfo.detached)==null||P.call(this)};
var EeE=function(R){for(var A=_.x(R.polySiParams.behaviors),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,Y.listeners)for(var P in Y.listeners)U83(R,R.hostElement,P,Y.listeners[P]);if(R.polySiInfo.listeners)for(var E in R.polySiInfo.listeners)U83(R,R.hostElement,E,R.polySiInfo.listeners[E])},U83=function(R,A,Y,P,E){R=XAk(R,P,E);
by(A,Y,R)||A.addEventListener(Y,R);return R},ivz=function(R){for(var A=_.x(R.polySiParams.reactiveSchemas),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.type==="compute"||Y.type==="computeWithMethod"?WIk(R.signalProxy,Y,R):Y.type==="redux"?f$8(R.signalProxy,Y,R.store):Y.type==="signal"&&Y.readOnly&&bmV(R.signalProxy,Y)},llf=function(R){for(var A=_.x(R.polySiParams.reactiveSchemas),Y=A.next(),P={};!Y.done;P={schema$jscomp$12:void 0},Y=A.next())P.schema$jscomp$12=Y.value,P.schema$jscomp$12.type==="notify"?
FII(R.signalProxy,P.schema$jscomp$12,R.hostElement):P.schema$jscomp$12.type==="observe"?BBu(R.signalProxy,P.schema$jscomp$12,R):P.schema$jscomp$12.type==="reflect"&&R.signalProxy.effect(function(z){return function(){var c=R.signalProxy.getWithPath([z.schema$jscomp$12.propertyKey]);
R.reflecting=!0;eek(R.hostElement,z.schema$jscomp$12.propertyKey,c,!0);R.reflecting=!1}}(P));
if(R.reflectedAttributes)for(A=_.x(Object.entries(R.reflectedAttributes)),P=A.next(),Y={};!P.done;Y={key$jscomp$934:void 0,value$jscomp$9709:void 0},P=A.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;Y.key$jscomp$934=P;Y.value$jscomp$9709=E;R.signalProxy.effect(function(z){return function(){R.reflecting=!0;eek(R.hostElement,z.key$jscomp$934,(0,z.value$jscomp$9709)(),!0);R.reflecting=!1}}(Y))}};
_.l=LG.prototype;_.l._setPendingProperty=function(R,A){this.set(R,A);return!1};
_.l._enableProperties=function(){};
_.l._setPendingPropertyOrPath=function(R,A){this.notifyPath(R,A);return!1};
_.l._addPropertyEffect=function(){};
_.l._stampTemplate=function(){throw Error("Lg");};
_.l.fire=function(R,A,Y){A=A===void 0?{}:A;Y=Y===void 0?{}:Y;var P,E,z={bubbles:(P=Y.bubbles)!=null?P:!0,cancelable:!!Y.cancelable,composed:(E=Y.composed)!=null?E:!0},c;return _.xo(RtV((c=Y.node)!=null?c:this.hostElement),R,A,z)};
_.l.get=function(R,A){var Y=hh(R);return A?Sol(A,Y):R==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(Y)};
_.l.linkPaths=function(){};
_.l.listen=function(R,A,Y){R=RtV(R);this.boundListeners!=null||(this.boundListeners=new WeakMap);var P=this.boundListeners.get(R);P||(P={},this.boundListeners.set(R,P));var E=A+Y;P[E]||(P[E]=U83(this,R,A,Y))};
_.l.notifyPath=function(R,A){this.signalProxy.notifyPath(hh(R),arguments.length===2?{value:A}:void 0)};
_.l.canNotifyPath=function(R){return this.mutablePropNames.has(R)&&!Msk(this.signalProxy,R)};
_.l.notifySplices=function(R,A){this.signalProxy.notifySplices(hh(R),A)};
_.l.pop=function(R){var A=this.signalProxy;R=hh(R);var Y=_.x(R);R=Y.next().value;Y=A6(Y);return kw(A,R).pop(Y)};
_.l.push=function(R){var A=_.Ge.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[hh(R)].concat(_.py(A)))};
_.l.set=function(R,A,Y){if(Y)throw Error("Mg");R==="hidden"?this.hostElement.hidden=!!A:this.signalProxy.setWithPath(hh(R),A)};
_.l.setProperties=function(R){R=_.x(Object.entries(R));for(var A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;Y=Y.next().value;this[A]=Y}};
_.l.splice=function(R,A,Y){var P=_.Ge.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[hh(R),A,Y].concat(_.py(P)))};
_.l.unlinkPaths=function(){};
_.l.unlisten=function(R,A,Y){R=RtV(R);if(this.boundListeners){var P=this.boundListeners.get(R);if(P){Y=A+Y;var E=P[Y];E&&(fg(R,A,E)||R.removeEventListener(A,E),delete P[Y])}}};
_.l.unshift=function(R){var A=_.Ge.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[hh(R)].concat(_.py(A)))};
_.Yh.Object.defineProperties(LG.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 Muk=[Array,Boolean,Date,Number,Object,String];var VuS=!1;var AQ=function(){var R=HTMLElement.apply(this,arguments)||this;R.restamp=!1;R.notifyDomChange=!1;R.JSC$13520_didCallConnected=!1;R.JSC$13520_renderDebouncer=null;R.disableTemplateUpdateSignalImpl=dg()?void 0:_.yy(!1,void 0,"Ofhkwb");var A;R.getDisableTemplateUpdate=(A=R.disableTemplateUpdateSignalImpl)==null?void 0:A[0];var Y;R.setDisableTemplateUpdate=(Y=R.disableTemplateUpdateSignalImpl)==null?void 0:Y[1];return R};
_.H(AQ,HTMLElement);var xef=function(R){R.conditionSignalImpl!=null||(R.conditionSignalImpl=new dR(_.yy(!1,void 0,"gE52Fb")));return R.conditionSignalImpl};
_.l=AQ.prototype;_.l.showHideChildren=function(R){coS(this,R,this.if)};
_.l.attributeChangedCallback=function(R,A,Y){if(this.JSC$13520_didCallConnected)throw Error("Qg`"+R);R==="notify-dom-change"?this.notifyDomChange=Y!==null:R==="restamp"&&(this.restamp=Y!==null)};
_.l.debounceRender=function(){this.JSC$13520_renderDebouncer=_.TJ(this.JSC$13520_renderDebouncer,a$,this.JSC$13520_renderImpl.bind(this));_.QH(this.JSC$13520_renderDebouncer)};
_.l.disconnectedCallback=function(){var R=(0,_.Jh)(this).parentNode;(!R||R.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in R&&!R.host)&&Ov7(this)};
_.l.connectedCallback=function(){var R=this;this.JSC$13520_didCallConnected=!0;uD8?JKk():this.style.display="none";this.parentSignalProxy.effect(function(){xef(R).getWithPath([]);R.debounceRender()})};
_.l.render=function(){_.Hy()};
_.l.JSC$13520_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var R=this.if,A=!1;if(R){this.hasInstance()||(M4S(this),A=!0);a:{var Y=(0,_.Jh)(this).parentNode;if(this.hasInstance()){var P=this.instance.children;if((P==null?0:P.length)&&(0,_.Jh)(this).previousSibling!==P[P.length-1])for(var E=0;E<P.length;E++)(0,_.Jh)(Y).insertBefore(P[E],this)}else{if(!Y){Y=!1;break a}sfZ(this,Y)}Y=!0}if(!Y)return}else this.restamp&&Ov7(this);coS(this,!1,R);R&&!A&&M4S(this);etZ&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.l.hasInstance=function(){return!!this.instance};
var sfZ=function(R,A){var Y=R.parentSignalProxy;if(dg()){var P=_.x(_.yy(!0,void 0,"yf4Yhf"));var E=P.next().value;P=P.next().value;Y=R.parentSignalProxy}else{var z;var c=new Rs((z=NjD(R))!=null?z:{},function(N){var y=kw(R.parentSignalProxy,N).getChangeRecordSignal([]);N=_.yy(void 0,void 0,"oT9mkc");var m=new dR(N);c.effect(function(){if(R.getDisableTemplateUpdate&&!R.getDisableTemplateUpdate()){var T=y();m.notifyPath(hh(T.path),{value:T.value})}});
return m});
R.parentSignalProxy.childSignalProxies.push(c);var M=Y=c}Y=$8J(R.templateInfo,R.templateInfo.nodeInfoList,Y,{eventListenerHost:R.eventListenerHost,hasInsertionPoint:R.templateInfo.hasInsertionPoint,thisCtx:R.eventListenerHost,enabledSignal:dg()?E:void 0,getModel:function(){return NjD(R)}}).root;
R.instance={root:Y,children:[],hidden:!1,signalProxy:M,getTemplateUpdatesEnabled:E,setTemplateUpdatesEnabled:P};M=_.x(Y.childNodes);for(E=M.next();!E.done;E=M.next())R.instance.children.push(E.value);(0,_.Jh)(A).insertBefore(R.instance.root,R)},NjD=function(R){if((R=R.parentSignalProxy.model)&&!R.hostElement){var A={},Y;
for(Y in R)R.hasOwnProperty(Y)&&(A[Y]=R[Y]);return A}},Ov7=function(R){if(R.instance){var A=R.instance.children;
if(A.length){var Y=(0,_.Jh)(A[0]).parentNode;if(Y){Y=(0,_.Jh)(Y);for(var P=0;P<A.length;P++)Y.removeChild(A[P])}}dg()?R.instance.setTemplateUpdatesEnabled(!1):R.instance.signalProxy.dispose();R.instance=void 0}},coS=function(R,A,Y){A=A||!Y;
R.instance&&R.instance.hidden!==A&&(R.instance.hidden=A,N9k(A,R.instance.children))},M4S=function(R){if(dg()){var A=R.instance;
A&&BV(R.parentSignalProxy.owner,function(){return!A.getTemplateUpdatesEnabled()})&&A.setTemplateUpdatesEnabled(!0)}else R.setDisableTemplateUpdate(!1)};
_.Yh.Object.defineProperties(AQ.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var R=this;return BV(this.parentSignalProxy.owner,function(){return xef(R).getWithPath([])})},
set:function(R){R||(dg()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));xef(this).setWithPath([],!!R)}}});
_.Yh.Object.defineProperties(AQ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",AQ);var V4G=[],Yu=function(){var R=HTMLElement.apply(this,arguments)||this;R.as="item";R.indexAs="index";R.itemsIndexAs="itemsIndex";R.targetFramerate=20;R.notifyDomChange=!1;R.isDetached=!1;R.JSC$13527_renderDebouncer=null;R.instances=[];R.chunkingId=null;R.chunkCount=null;R.shouldMeasureChunk=!1;R.shouldContinueChunking=!1;R.renderStartTime=null;R.JSC$13527_didCallConnected=!1;return R};
_.H(Yu,HTMLElement);var Joz=function(R){R.itemSignalImpl!=null||(R.itemSignalImpl=new dR(_.yy(V4G,void 0,"YBrqgf")));return R.itemSignalImpl},yoD=function(R,A){Array.isArray(A)||(A=V4G);
Joz(R).setWithPath([],A)};
_.l=Yu.prototype;_.l.showHideChildren=function(R){for(var A=_.x(this.instances),Y=A.next();!Y.done;Y=A.next())N9k(R,Y.value.children)};
_.l.notifyPath=function(R,A){R=hh(R);R[0]==="items"&&(R.length===1?yoD(this,A):Joz(this).setWithPath(R.slice(1),A))};
_.l.canNotifyPath=function(R){return R==="items"};
_.l.attributeChangedCallback=function(R,A,Y){if(this.JSC$13527_didCallConnected)throw Error("Rg`"+R);R==="as"?this.as=Y:R==="index-as"?this.indexAs=Y:R==="items-index-as"?this.itemsIndexAs=Y:R==="initial-count"?this.initialCount=Number(Y):R==="notify-dom-change"?this.notifyDomChange=Y!==null:R==="target-framerate"&&(this.targetFramerate=Number(Y))};
_.l.disconnectedCallback=function(){this.isDetached=!0;for(var R=0;R<this.instances.length;R++)meH(this,R);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.l.connectedCallback=function(){var R=this,A=Joz(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var E=A(),z=hh(E.path);if(z[0]===void 0||z[0]==="splices"||z[0]==="length")R.debounceRender();else{var c=z[0];if(c=R.instances[typeof c==="string"?Math.floor(Number(c)):c])z=[R.as].concat(_.py(z.slice(1))),c.signalProxy.notifyPath(z,E)}});
this.JSC$13527_didCallConnected=!0;uD8?JKk():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var Y=(0,_.Jh)((0,_.Jh)(this).parentNode),P=0;P<this.instances.length;P++)Y.insertBefore(this.instances[P].root,this);this.chunkingId&&this.render()}};
_.l.debounceRender=function(){this.JSC$13527_renderDebouncer=_.TJ(this.JSC$13527_renderDebouncer,a$,this.JSC$13527_renderImpl.bind(this));_.QH(this.JSC$13527_renderDebouncer)};
_.l.render=function(){this.debounceRender();_.Hy()};
_.l.JSC$13527_renderImpl=function(){var R=this;if(!this.parentSignalProxy.isDisposed){var A=this.items,Y=TjA(this,A.length);Qfz(this,A,Y);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){R.chunkingId=null;if(R.shouldMeasureChunk){var P=performance.now()-R.renderStartTime;R.chunkCount=Math.round(Math.ceil(1E3/R.targetFramerate)/P*R.chunkCount)||1}R.shouldContinueChunking&&R.debounceRender()}));
etZ&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var TjA=function(R,A){var Y=A,P=R.instances.length;if(R.initialCount){if(R.chunkCount){var E=Math.min(Math.max(A-P,0),R.chunkCount);Y=Math.min(P+E,A)}else Y=Math.min(A,R.initialCount),E=Math.max(Y-P,0),R.chunkCount=E||1;R.shouldMeasureChunk=E===R.chunkCount;R.shouldContinueChunking=Y<A;R.renderStartTime=performance.now()}return Y},Qfz=function(R,A,Y){for(var P=0;P<Y;P++){var E=R.instances[P],z=A[P];
E?(E.signalProxy.setWithPath([R.as],z),E.signalProxy.setWithPath([R.indexAs],P)):veG(R,z,P)}for(A=R.instances.length-1;A>=P;A--)Y=R,E=A,meH(Y,E),_.x(Y.instances.splice(E,1)).next().value.signalProxy.dispose()},meH=function(R,A){R=R.instances[A];
A=(0,_.Jh)(R.root);for(var Y=0;Y<R.children.length;Y++)A.appendChild(R.children[Y])},veG=function(R,A,Y){var P={};
A=Object.assign({},geb(R),(P[R.as]=A,P[R.indexAs]=Y,P[R.itemsIndexAs]=Y,P));var E=new Rs(A,function(c){if(c!==R.as&&c!==R.indexAs){if(c===R.itemsIndexAs)return kw(E,R.indexAs);var M=kw(R.parentSignalProxy,c).getChangeRecordSignal([]);c=_.yy(void 0,void 0,"T21Pqc");var N=new dR(c);E.effect(function(){var y=M();N.notifyPath(hh(y.path),{value:y.value})});
return N}});
R.parentSignalProxy.childSignalProxies.push(E);P=$8J(R.templateInfo,R.templateInfo.nodeInfoList,E,{eventListenerHost:R.eventListenerHost,getModel:function(){var c={};return Object.assign({},geb(R),(c[R.as]=E.model[R.as],c[R.indexAs]=E.model[R.indexAs],c[R.itemsIndexAs]=E.model[R.indexAs],c))},
hasInsertionPoint:R.templateInfo.hasInsertionPoint,thisCtx:R.eventListenerHost,methodInvocationRequirement:LjH,enabledSignal:R.stampingEnabled}).root;A={root:P,children:[],signalProxy:E};P=_.x(P.childNodes);for(var z=P.next();!z.done;z=P.next())A.children.push(z.value);P=(P=R.instances[Y+1])?P.children[0]:R;(0,_.Jh)((0,_.Jh)(R).parentNode).insertBefore(A.root,P);R.instances[Y]=A},geb=function(R){if((R=R.parentSignalProxy.model)&&!R.hostElement){var A={},Y;
for(Y in R)R.hasOwnProperty(Y)&&(A[Y]=R[Y]);return A}};
Yu.prototype.itemForElement=function(R){var A=this,Y=this.instances.find(function(P){return P.children.includes(R)});
if(Y)return BV(this.parentSignalProxy.owner,function(){return Y.signalProxy.getWithPath([A.as])})};
Yu.prototype.indexForElement=function(R){var A=this.instances.findIndex(function(Y){return Y.children.includes(R)});
return A>=0?A:void 0};
_.Yh.Object.defineProperties(Yu.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var R=this;return BV(this.parentSignalProxy.owner,function(){return Joz(R).getWithPath([])})},
set:function(R){yoD(this,R)}},
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}}});
_.Yh.Object.defineProperties(Yu,{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",Yu);var neS,Hvz;_.PX=new _.cP("STATE_STORE_TOKEN");neS=new _.cP("SELECT_TOKEN");Hvz=new _.cP("DISPATCH_TOKEN");var g8P={getSelectFn:function(){var R;return(R=_.is().resolve(_.z3(neS)))!=null?R:yKk},
getDispatchFn:function(){var R;return(R=_.is().resolve(_.z3(Hvz)))!=null?R:_.RZ().dispatch.bind(_.RZ())},
getAppStore:function(){return _.is().resolve(_.PX)}},mtJ,v83=!1;var Dtk,a_7={traceAllComponents:_.v("web_tracing_all_components"),exportToCsi:_.v("web_tracing_export_to_csi"),exportBreadcrumbs:_.v("web_enable_tracing"),bufferSize:_.cU("web_max_tracing_events"),enabledSpansArray:_.M1("web_tracing_enabled_spans"),exportToDevTools:_.v("web_tracing_export_to_devtools")};Dtk=new CM8;var IJP=function(){};var $tk=void 0;var rof=function(){};
rof.prototype.hasAttribute=function(R){if(R==="dir")return!1;if(R==="disable-upgrade"){var A,Y;return(Y=(A=this.hostElement)==null?void 0:A.hasAttribute("disable-upgrade"))!=null?Y:!1}throw Error("Sg`"+R);};
rof.prototype.attributeChangedCallbackWrapper=function(R,A,Y){if(R==="disable-upgrade"&&this.__isUpgradeDisabled&&Y===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var P;((P=this.hostElement)!=null?P:this).isConnected&&this.connectedCallback()}else A===Y||this.__isReflecting||this.attributeChangedCallback(R,A,Y)};
rof.prototype.getExtraMethodsToForward=function(){for(var R=this,A=[],Y=_.x(DeN),P=Y.next(),E={};!P.done;E={tagName$jscomp$54:void 0,name$jscomp$598:void 0},P=Y.next())E.name$jscomp$598=P.value,P=void 0,E.name$jscomp$598==="_setPendingProperty"?(E.tagName$jscomp$54=this.hostElement.tagName.toLowerCase(),P=function(z){return function(c,M,N){Sz(z.tagName$jscomp$54,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return R._setPendingProperty(c,M,N)}}(E)):P=function(z){return function(){return R[z.name$jscomp$598].apply(R,
_.py(_.Ge.apply(0,arguments)))}}(E),A.push([E.name$jscomp$598,
P]);return A};
for(var jiP=YZz(AoD((0,_.Wy)(rof))),Fjk=["disabled","disable-upgrade"],Ue7=(0,_.Wy)(function(){}),$eH=new Set(Object.getOwnPropertyNames(Ue7.prototype)),o8J=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.py($eH))),aJ6=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),DeN=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),XaS=new Set([].concat(_.py(aJ6),_.py(DeN),_.py($eH))),SZA=_.x(XaS),Il7=SZA.next();!Il7.done;Il7=SZA.next())im8.add(Il7.value);var htk={created:function(){uo3(this);this.initializeInjection()}};var LjP=!1,x9=window.ShadyDOM,ivI=["appendChild","insertBefore","removeChild","replaceChild"],zXV=[Node];x9&&zXV.push(x9.Wrapper);var sfq,Nju,you={};_.O5=new Set;_.c1="";_.Tjk="";var cc,Mf=new Set;var DeS=new Set("context didCallReady is info params signalProxy".split(" ")),$eP="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Xal="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var KND=Qz({entities:gN8}),WNH=new Af(KND);var jfA=function(){return _.rg.apply(this,arguments)||this};
_.H(jfA,_.rg);_.Yh.Object.defineProperties(jfA.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return WNH}}});
_.C([_.Do()],jfA);_.Eh=[qa.prototype,jfA.prototype];_.zu={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var R=this,A={};setTimeout(function(){var Y;return _.xo((Y=R.hostElement)!=null?Y:R,"yt-live-chat-add-tooltip-target",A)},0);
this.handler_=A.handler},
detached:function(){if(this.handler_){var R;this.handler_.removeElementFromSupportingTooltips((R=this.hostElement)!=null?R:this)}this.handler_=null}}};_.Tj=new _.cP("ICON_MANAGER_TOKEN");var bv7=[48,20,18,16,15,13,12],qZu=new Map,GHu=new Set,hX6=new Set,kH8=new Set,C9J=new Set,oeu=new Set,t4k=new Promise(function(R){var A=!1,Y=!1,P=!1,E=[],z=function(c){if("detail"in c)if(c=c.detail,c.name==="yt-icons")ZvV(c),A=!0;else if(c.name==="yt-sys-icons")ZvV(c),Y=!0;else{var M;((M=c.name)==null?0:M.includes("yt-sys-icons"))&&c.size!==24&&(ZvV(c,!0),E.push(c.size),E.length===bv7.length&&(P=!0))}A&&Y&&P&&(window.removeEventListener("iron-iconset-added",z),R())};
window.addEventListener("iron-iconset-added",z)}),uGS=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"]]);_.iF={};_.iF.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.R4,computeHref_:function(R,A){A=A===void 0?!1:A;if(!R||R.commandExecutorCommand)return null;var Y=tdk(R,A);return A||Y!==null?Y?_.v("enable_polymer_resin")?_.oR(Y).toString():Y:null:(_.pK(new _.XN("computeHref was null",this.is,R)),null)},
computeOptionalHref_:function(R){return this.computeHref_(R,!0)},
computeNofollow_:function(R){return R?FpV(R)?"nofollow":null:null},
computeIcon_:function(R){return R&&R.iconType?_.m0(R.iconType):""},
resolveCommand:function(R,A,Y){A=A===void 0?{}:A;return _.vc(R,this.hostElement,A,Y===void 0?!1:Y)}};var paq,lF;_.fl7={};paq=null;
lF={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_=GFk(this.viewroot));_.wg(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var R=this;this.unobserve_();if(_.v("kevlar_vimio_use_shared_monitor"))YSS(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 A=[];this.visibilityOptionVisible_&&A.push(this.visibilityObserver.observe(this.hostElement,function(){return R.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&A.push(this.visibilityObserver.observe(this.hostElement,function(){return R.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&A.push(this.visibilityObserver.observe(this.hostElement,function(){return R.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=A}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){LNk(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 R=_.GE(this.parentNode,function(Y){var P,E=(P=Y.polymerController)!=null?P:Y;return!!E.getVisibilityObserverForChild&&E.getVisibilityObserverForChild()},!0);
if(R){var A;this.localVisibilityObserver_=((A=R.polymerController)!=null?A:R).getVisibilityObserverForChild()}else paq||(paq=GFk()),this.localVisibilityObserver_=paq;return this.localVisibilityObserver_},visibilityCallback:function(R){R?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.v("kevlar_use_vimio_behavior")||(lF={});lF&&!_.v("kevlar_use_vimio_behavior")&&(delete lF.attached,delete lF.detached);_.fl7.YtVisibilityObserverBehavior=[lF];var FN8={};FN8.YtVisualElementBehavior=[_.fl7.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.v("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.v("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var R=this.getScreenLayer&&this.getScreenLayer(),A=this.getVisibilityLogger();A&&A.reportShown(this,void 0,R)}},
onHidden:function(){if(_.v("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.v("kevlar_vimio_use_shared_monitor")){var R=this.getScreenLayer&&this.getScreenLayer(),A=this.getVisibilityLogger();A&&A.reportHidden(this,void 0,R)}},
getVisibilityLogger:function(){return _.v("kevlar_use_vimio_behavior")?_.nC():null},
shouldSkipLogging:function(){if(_.a1("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var R=this.getParentRenderer&&this.getParentRenderer();if(!R)return!1;var A,Y=(A=R.polymerController)!=null?A:R;if(!Y.data)return!1;R=this.data.trackingParams;R=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:R;var P;A=(P=Y.data)==null?void 0:P.trackingParams;var E,z;A=((E=Y.data)==null?0:E.loggingDirectives)?(z=Y.data)==null?void 0:z.loggingDirectives.trackingParams:A;return R&&A&&R===
A}}];var zC6=new Map,IZ;var $P8=function(R){this.layer=R},xj=function(R){return R.layer!==void 0?R.layer:R.parent?xj(R.parent):R.layer=0};var M7u;_.u={};M7u=0;_.u.YtRendererBehavior=[_.iF.YtComponentBehavior,FN8.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_:_.v("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var R,A;(A=(R=this.monitorScrollElement)!=null?R:this.hostElement)==null||A.removeEventListener("scroll",_.T2(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();PNP(this.hostElement);uoS(_.k7(),this.hostElement);Ra.delete(this.hostElement)},
registerRenderer:function(R){var A;((A=R.polymerController)!=null?A:R).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(R),this.markDirty())},
unregisterRenderer_:function(R){this.useVimio_||(this.childCache_.delete(R),this.markDirty())},
attached:function(){var R=this,A=this.getParentRenderer();if(A){var Y,P,E;(P=(Y=(E=A.polymerController)!=null?E:A).registerRenderer)==null||P.call(Y,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var z,c;(c=(z=this.monitorScrollElement)!=null?z:this.hostElement)==null||c.addEventListener("scroll",_.T2(this,this.onScroll))}_.fn.addJob(function(){ia8(R.hostElement)},8);
Y=new $P8(this.screenLayer||void 0);(A=Ra.get(A))&&A.layerNode&&(Y.parent=A.layerNode);A={};tQk(this.hostElement,(A.isRenderer=!0,A.layerNode=Y,A[XzV]=this.data,A))},
getParentRenderer:function(){for(var R=this.hostElement.parentNode,A,Y;R&&((A=Ra.get(R))==null||!A.isRenderer)&&!((Y=R.polymerController)!=null?Y:R).isRenderer_;)R=R.parentNode||R.host;return R},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.v("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.CQ("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.v("debug_web_ve_data")&&this.data.trackingParams){var R="";try{R=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(Y){_.bj(Y)}if(R){var A=OxS(R,1);A!==void 0&&(this.hostElement.dataset.veIndex=String(A));R=OxS(R,2);
R!==void 0&&(this.hostElement.dataset.ve=String(R))}}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,_.v("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.S5(this.data.loggingDirectives.trackingParams)),this.visualElement=_.Hc(_.rU(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var R=this.data.targetId;_.q$Z(_.k7(),R,this.hostElement)}else uoS(_.k7(),this.hostElement)},
onScroll:function(){var R=Date.now();R-this.lastHandledScroll_<50||(this.lastHandledScroll_=R,this.markDirty())},
markDirty:function(){_.v("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():sQk(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var R=this.getParentRenderer();if(R&&(R=Ra.get(R))&&R.layerNode)return xj(R.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.py(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var R=0;R<this.data.impressionEndpoints.length;R++)this.sendImpression(this.data.impressionEndpoints[R]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(R){R.clickTrackingParams&&delete R.clickTrackingParams;var A,Y;(R==null?0:(A=R.commandMetadata)==null?0:(Y=A.webCommandMetadata)==null?0:Y.sendPost)?_.sC(this.hostElement,[R,{impression:!0}]):_.NT(this.hostElement,[R],this.hostElement)},
logExplicitClick:function(R){var A=_.F9(this.getScreenLayer());if(A){var Y,P=(Y=R.polymerController)!=null?Y:R;R=P.visualElement;P=P.trackingParams||P.clickTrackingParams;!R&&P&&(R=_.S5(P));R&&_.qT(A,R)}}}];var BjH={},xu=function(){return _.rg.apply(this,arguments)||this};
_.H(xu,_.rg);xu.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
xu.prototype.onPdgItemBehaviorClick=xu.prototype.onPdgItemBehaviorClick;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xu.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xu.prototype,"data",void 0);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],xu.prototype,"onPdgItemBehaviorClick",null);_.C([_.Do()],xu);BjH.YtPdgLiveChatItemBehavior=[xu.prototype,_.u.YtRendererBehavior];var al8;var C98;_.cX={};_.cX.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Oh=function(){var R=EP.apply(this,arguments)||this;R.switchTemplateAtRegistration=!1;return R};
_.H(Oh,EP);Oh.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||ytV(this),_.klS(this,"doRender"),this.doRender())};
Oh.prototype.debounceRender=function(){this.templatingFn&&_.u5(this,"doRender",this.doRender)};
Oh.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.bj(Error("bh"))};
Oh.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.C([j7k()],Oh);var hXA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,MU={},vrl=(MU[1]={filterString:null,isUnwrappable:null,unwrap:null},MU[2]={filterString:function(R,A,Y){return sJ(Y)},
isUnwrappable:function(R){return R instanceof ub},
unwrap:function(R){return qL(R)}},MU[3]={filterString:function(R,A,Y){return hXA.test(Y)?Y:hb.toString()},
isUnwrappable:function(R){return pq(R)},
unwrap:function(R){return _.Ff(R)}},MU[4]={filterString:function(){return hb.toString()},
isUnwrappable:function(R){return R instanceof Sc},
unwrap:function(R){return _.Kq(R).toString()}},MU[5]={filterString:function(R,A,Y){return Y},
isUnwrappable:function(R){return typeof R==="string"},
unwrap:function(R){return R.toString()}},MU[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(R){return R instanceof _.AO},
unwrap:function(R){return xRl(R)}},MU[8]={filterString:function(R,A,Y){Y=String(Y).toLowerCase();
return cw3(R,A,Y)?Y:"zClosurez"},
isUnwrappable:null,unwrap:null},MU[10]={filterString:null,isUnwrappable:null,unwrap:null},MU);Yc[k0["default"]]=nrk;var HaJ=[];(function(){var R=YW;YW=function(A){R==null||R(A);b4(function(){for(var Y=0;Y<A.length;Y++)rtP(A[Y])})}})();var oeD=function(){var R=_.rg.apply(this,arguments)||this;R.hasUnmounted=!1;return R};
_.H(oeD,_.rg);_.l=oeD.prototype;_.l.beforeRegister=function(){var R=this.doIdomRender;this.templatingFn?_.bj(Error("ah")):(this.templatingFn=R,this.switchTemplateAtRegistration=!0,QQk(this))};
_.l.attached=function(){};
_.l.detached=function(){rtP(this.hostElement)};
_.l.renderIdom=function(){throw Error("dh");};
_.l.doIdomRender=function(){var R=this;z8q(this.hostElement,function(){R.renderIdom()})};
_.C([_.Do()],oeD);var kHf=[Oh.prototype,oeD.prototype];var GHD,Zvb=function(){return GHD!==void 0?GHD:GHD=document.createElement("template")};
document.head.appendChild(Zvb().content);var t4q;var waS,uGN=function(){return waS!==void 0?waS:waS=document.createElement("template")};
document.head.appendChild(uGN().content);var eXS;var qZD=document.head,LNA=qZD.appendChild,de8;if(eXS===void 0){var RCH=document.createElement("template");_.D(RCH,"\x3c!--css-build:shady--\x3e");RCH.content.insertBefore(uGN().content.cloneNode(!0),RCH.content.firstChild);eXS=RCH}de8=eXS;LNA.call(qZD,de8.content);var Atq,YSN=function(){return Atq!==void 0?Atq:Atq=document.createElement("template")};
document.head.appendChild(YSN().content);var PNH;var ErE=document.head,zCA=ErE.appendChild,iaf;if(PNH===void 0){var lhf=document.createElement("template");_.D(lhf,"\x3c!--css-build:shady--\x3e");lhf.content.insertBefore(YSN().content.cloneNode(!0),lhf.content.firstChild);PNH=lhf}iaf=PNH;zCA.call(ErE,iaf.content);var xwZ=document.head,ctS=xwZ.appendChild,OaD;if(t4q===void 0){var M7D=document.createElement("template");_.D(M7D,"\x3c!--css-build:shady--\x3e");M7D.content.insertBefore(Zvb().content.cloneNode(!0),M7D.content.firstChild);t4q=M7D}OaD=t4q;ctS.call(xwZ,OaD.content);var sQq,N_b=function(){return sQq!==void 0?sQq:sQq=document.createElement("template")};
document.head.appendChild(N_b().content);var V7S;_.dU=new _.cP("DARK_THEME_TOKEN");var NWV=new _.lU("accessibilityProperties");var sqP=new _.lU("layoutProperties");var V$k=new _.lU("imageType");var Jt7={};if("ytAttributedStringLinkHoverColor"in Jt7)throw Error("gh`ytAttributedStringLinkHoverColor");(function(R,A){Jt7[R]="value"in A&&"unit"in A?Ihl(R,A):function(Y){try{return A(Y)}catch(P){throw Error("eh`"+R+"`"+P.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var ytb=function(R){var A=this;this.holdTime=R===void 0?500:R;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(Y){var P=new CustomEvent("LONG_PRESS"),E;(E=Y.changedTouches[0].target)==null||E.dispatchEvent(P)};
this.ontouchstart=function(Y){A.longPressTimeout=_.cC(_.fn,function(){A.onlongpress(Y);A.longPressOccurred=!0},A.holdTime)};
this.ontouchmove=function(){_.fn.cancelJob(A.longPressTimeout);A.longPressTimeout=NaN;A.longPressOccurred=!1;A.moveOccurred=!0};
this.ontouchend=function(Y){if(A.longPressTimeout&&!A.longPressOccurred&&!A.moveOccurred){var P;(P=Y.changedTouches[0].target)==null||P.dispatchEvent(new Event("click"))}_.fn.cancelJob(A.longPressTimeout);A.longPressTimeout=NaN;A.longPressOccurred=!1;A.moveOccurred=!1}};var ugk=function(R,A){ytb.call(this,A);var Y=this;this.callback=R;this.onlongpress=function(P){var E;(E=Y.callback)==null||E.call(Y,P)}};
_.H(ugk,ytb);var eCP=function(R,A){var Y=Object.assign({},A);R=_.x(new Map([["ontouchstart",R.ontouchstart],["ontouchend",R.ontouchend],["ontouchmove",R.ontouchmove]]));for(var P=R.next(),E={};!P.done;E={eventName$jscomp$101:void 0,eventHandler$jscomp$1:void 0},P=R.next()){var z=_.x(P.value);P=z.next().value;z=z.next().value;E.eventName$jscomp$101=P;E.eventHandler$jscomp$1=z;A[E.eventName$jscomp$101]=function(c){return function(M){var N;(N=Y[c.eventName$jscomp$101])==null||N.call(Y,M);(0,c.eventHandler$jscomp$1)(M)}}(E)}};_.ls=new _.cP("COMMAND_HANDLER_TOKEN");var Wku=new _.lU("parallelCommand");var fh3=new _.lU("performOnceCommand");var bal=new _.lU("serialCommand");var ppl=void 0;var mwf=function(){this.data=[];this.consumer=null};
mwf.prototype.push=function(R){this.consumer?this.consumer(R):this.data.push(R)};var uc={};_.yy(uc,void 0,"sgPmTd");_.yy(null,void 0,"jypsq");_.yy(null,void 0,"mWiOof");var pH8=new mwf;var GvP=[nqq,HuN,rk7,UbS,Db7,gqS,$bS,X3S];var OLu=new _.lU("bracketTextDecorator");var u4=new _.lU("highlightTextDecorator");_.AM=new _.cP("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var z9V=function(){},T_A;
(T_A=window.requestIdleCallback)==null||T_A.bind(window);var lK8={calledOnce:!1,state:"visible"},iLJ={calledOnce:!1,state:"hidden"};var QQE=new _.cP("ICON_WIZ_COMPONENT_TOKEN");_.H1=_.E5(function(R){var A=R.icon;var Y=R.active;var P=R.className;var E=R.style;var z=R.dataSelected;var c=R.dataDisabled;var M=R.role;var N=R.animateIcon;var y=R.themeOverride;var m=R.ariaHidden;var T=R.ariaExpanded;var Q=R.ariaLabel;var g=R.tabindex;var r=R.id;var I=R.size;var b=R.iconFilter;var p=R.onKeydown;return _.V(_.J,{cond:A,then:function(){var h=_.is().resolve(QQE);return _.V(h,{icon:A,dataSelected:z,dataDisabled:c,animateIcon:N,themeOverride:y,ariaExpanded:T,tabindex:g,id:r,active:Y,
size:I,role:M,className:P,ariaHidden:m,ariaLabel:Q,style:function(){return E!=null&&E()||I==null||!I()?E==null?void 0:E():"width: "+(I==null?void 0:I())+"px;height: "+((I==null?void 0:I())+"px;")},
iconFilter:b,onKeydown:p})}})},"b");
_.H1.idomCompat={callbacks:{onKeydown:!0}};var IKq=window.devicePixelRatio||1;var bLl=new Map([["yt_outline_bag_black_24","bag"]]);var sh=function(R){var A=this;this.margin=.1;this.whenInViewportWithMargin=R;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){A.requestScan()});
window.addEventListener("touchend",function(){A.requestScan()});
window.addEventListener("updateui",function(){A.requestScan()});
var Y=new _.kH((0,_.Wv)(this.requestScan,this),100);window.addEventListener("scroll",function(){Y.fire()},!0);
window.addEventListener("resize",(0,_.Wv)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){A.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Wv)(this.requestScan,this))};
sh.prototype.observe=function(R){this.observationTargets.includes(R)||this.observationTargets.push(R)};
sh.prototype.unobserve=function(R){this.observationTargets=this.observationTargets.filter(function(A){return A!==R})};
sh.prototype.requestScan=function(){var R=this;this.scanRequested||(b4(function(){vrS(R)}),this.scanRequested=!0)};
var vrS=function(R){var A=(1+R.margin)*(document.documentElement.clientHeight||window.innerHeight);R.observationTargets=R.observationTargets.filter(function(Y){var P=Y.getBoundingClientRect();(P=A>P.top&&!!P.height)&&R.whenInViewportWithMargin(Y);return!P&&Y.parentNode});
R.scanRequested=!1};
sh.prototype.disconnect=function(){this.observationTargets=[]};var grA,Ha8;grA=_.x(_.yy(aKP(),void 0,"O3X2wd"));_.nrA=grA.next().value;Ha8=grA.next().value;window.addEventListener("resize",function(){Ha8(aKP())});var rtH={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},DwH=void 0,UwN=window.innerWidth,$w7=window.innerHeight;window.addEventListener("resize",function(){DwH=void 0});var Xpb;if("IntersectionObserver"in window)Xpb=ovu();else{if(DwH===void 0){var SSb;SSb="matchMedia"in window?window.matchMedia(rtH.landscape+","+rtH.portrait).matches:void 0;DwH=SSb!==void 0?SSb:UwN>=930&&$w7>=550||UwN>=550&&$w7>=930}Xpb=DwH?{observe:function(R){b4(function(){var A;(A=R.onViewportEntered)==null||A.call(R)})},
unobserve:function(){}}:new sh(function(R){b4(function(){var A;
(A=R.onViewportEntered)==null||A.call(R)})})}var CqV=Xpb;var IhS=_.E5(function(R){var A=!1,Y=_.LK("img",function(P){_.bm(function(){A=!0;P.onload=null})});
_.jq(function(){var P,E=(P=R.data)==null?void 0:P.call(R),z,c=(z=R.getSrc)==null?void 0:z.call(R).cb,M;P=(M=R.config)==null?void 0:M.call(R);if(M=Y.value)if(z=function(y,m){if(!A)return c?c(y,m):y},ZL8(M,P),_.v("web_image_dont_reload_same_src")&&GzV(M,E,z))_.v("web_image_dont_reload_same_src_simulate_load")&&M.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var N;kzk(M,E||null,z,P,(N=R.lazy)==null?void 0:N.call(R))}},"zS0jKb");
return _.V("img",{el:Y})},"c");
IhS.idomCompat=!0;_.P1=_.E5(function(R){var A=function(){var Y,P=R.data(),E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t,d,Jk,Nb,Qk,H3,nu,hk,FV,i8,fD;var NG={contentMode:(E=R.contentMode)==null?void 0:E.call(R),loadedClass:(z=R.loadedClass)==null?void 0:z.call(R),isPreloaded:(c=R.isPreloaded)==null?void 0:c.call(R),notifyOnLoaded:(M=R.notifyOnLoaded)==null?void 0:M.call(R),notifyOnUnloaded:(N=R.notifyOnUnloaded)==null?void 0:N.call(R),preferredThumbnail:(y=R.preferredThumbnail)==null?void 0:y.call(R),preserveHeight:(m=R.preserveHeight)==
null?void 0:m.call(R),preserveWidth:(T=R.preserveWidth)==null?void 0:T.call(R),objectPosition:(Q=R.objectPosition)==null?void 0:Q.call(R),targetWidth:(g=R.targetWidth)==null?void 0:g.call(R),targetHeight:(r=R.targetHeight)==null?void 0:r.call(R),shouldShowPlaceholder:(I=R.shouldShowPlaceholder)==null?void 0:I.call(R),useWidth:(b=R.useWidth)==null?void 0:b.call(R),isToggled:(p=R.isToggled)==null?void 0:p.call(R),alt:(h=R.alt)==null?void 0:h.call(R),className:(L=R.className)==null?void 0:L.call(R),
onerror:R.onerror,onload:R.onload,style$:((Z=R.style$)==null?void 0:Z.call(R))||((w=R.style)==null?void 0:w.call(R)),color:(t=R.color)==null?void 0:t.call(R),width:(d=R.width)==null?void 0:d.call(R),height:(Jk=R.height)==null?void 0:Jk.call(R),"aria-hidden$":(i8=(Nb=R["aria-hidden$"])==null?void 0:Nb.call(R))!=null?i8:(Qk=R.ariaHidden)==null?void 0:Qk.call(R),draggable:(H3=R.draggable)==null?void 0:H3.call(R),"data-disabled$":(fD=(nu=R["data-disabled$"])==null?void 0:nu.call(R))!=null?fD:(hk=R.dataDisabled)==
null?void 0:hk.call(R),size:(FV=R.size)==null?void 0:FV.call(R)};return u5u(P,NG,(Y=R.hideOn404)==null?void 0:Y.call(R))};
return _.V(_.SO,null,_.V(_.$W,{when:function(){var Y;return((Y=A())==null?void 0:Y.type)==="image"}},function(){return _.V(IhS,{data:function(){return A().image},
getSrc:{cb:function(Y,P){var E=A().image.sources,z=A().config.isPreloaded,c=A().config.useWidth,M=A().config.targetWidth,N=A().config.targetHeight,y=A().config.preferredThumbnail;return _.Knu(P,E,z,c,M,N,y)||""}},
config:function(){var Y=A().config,P;for(P in Y)Y[P]===void 0&&delete Y[P];return Y},
lazy:R.renderLazy})}),_.V(_.$W,{when:function(){var Y;
return((Y=A())==null?void 0:Y.type)==="icon"}},function(){return _.V(_.H1,{icon:function(){return A().iconName},
role:function(){return A().config.role},
className:function(){return A().config.className},
style:function(){return A().config.style$+";width: "+(A().config.width+"px;height: ")+(A().config.height+"px;color: ")+(A().config.color+";")},
ariaLabel:function(){return A().config["aria-label$"]},
ariaHidden:function(){return A().config["aria-hidden$"]},
dataDisabled:function(){return A().config["data-disabled$"]},
active:function(){return A().config.isToggled},
size:function(){return A().config.size}})}))},"d");
_.P1.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var KkE=function(R){return function(A){return _.V(gsl,null,function(){var Y=A.data(),P=_.pX(A.config);return _.V(R$,null,function(){return void R(Y,P)})})}}(Rmk),Lnb=_.E5(function(R){var A=function(P){var E,z=_.zo(function(Q){E=fX(function(){for(var g=_.x(m()),r=g.next();!r.done;r=g.next()){r=Azl(r.value);
r=typeof r==="string"?document.createTextNode(r):r;if(!(r instanceof Node)){g=new _.XN("Part is not a node",r,typeof r);_.bj(g);break}Q.appendChild(r)}})}),c=ih(function(){return yyJ(P())},{isEqual:qq3}),M=_.Y9(R.config),N=function(){var Q,g=c();
return!((Q=M())==null||!Q.ariaLabel)||!(g.commandRuns&&g.commandRuns.length!==0||g.paragraphStyleRuns&&g.paragraphStyleRuns.length!==0)},y=ih(M,{isEqual:PCq}),m=function(){var Q=Jyb(c(),y());
TWq(Q,y());return c().content?ryk(c().content,Q).parts:[]},T=!0;
_.jq(function(){c();y();if(T)T=!1;else{var Q=m();Promise.resolve().then(function(){var g=z.value;if(g){g.innerText="";var r;(r=E)==null||r();E=_.KQ(g,function(){return _.V(YMJ,{parts:Q})},"e")}})}},"YlhjWd");
return _.V("span",{el:z,class:function(){return c()&&Ay3(c(),M())},
dir:function(){var Q;return((Q=M())==null?0:Q.userInput)?"auto":void 0},
"aria-label":function(){var Q;return N()?(Q=M())==null?void 0:Q.ariaLabel:void 0},
role:function(){return N()?"text":void 0}})},Y;
return((Y=R.config)==null?0:Y.renderedFromFormattedString)?A(R.text):_.V(_.J,{cond:R.text,then:A})},"f");
Lnb.idomCompat=!0;_.NU=_.E5(function(R){var A=_.Y9(R.text),Y=EOV(R);R.renderedFromFormattedString!==void 0&&(Y.renderedFromFormattedString=!0);return _.v("attr_string_reactive")?_.V(Lnb,{text:A,config:Y}):_.V(_.J,{cond:function(){var P;return A()&&((P=yyJ(A()))==null?void 0:P.content)},
then:function(){return _.V(KkE,{data:R.text,config:Y})},
debugInstance:"Apcuac"})},"g");
_.NU.idomCompat=!0;var iZJ=function(R,A,Y){A=A===void 0?"unknown":A;Y=Y===void 0?{}:Y;_.XN.call(this,R+" ("+A+")",Object.assign({},{name:"YtWcwError",tagName:A},Y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.H(iZJ,_.XN);_.spP=new WeakMap;_.MlV=!1;var OZk,NsS,czJ;_.VY=Symbol("ih");_.xL=Symbol("jh");OZk=Symbol("kh");NsS=new Set(Object.getOwnPropertyNames(Element.prototype));czJ=Symbol("lh");var WkD=_.E5(function(R){return _.V("yt-attributed-string",{"aria-label":R.ariaLabel,hidden:R.hidden,id:R.id,class:R.className,"force-default-style":R.forceDefaultStyle},_.V(_.NU,{text:R.data,ariaLabel:R.ariaLabel,ellipsisTruncate:R.ellipsisTruncate,isOverlay:R.isOverlay,linkInheritColor:R.linkInheritColor,noPreWrap:R.noPreWrap,noWrap:R.noWrap,userInput:R.userInput,noEndpoints:R.noEndpoints,headerRuns:R.headerRuns,isHeadline:R.isHeadline}))},"h");
_.v("web_wiz_attributed_string")&&_.Ow(WkD,"yt-attributed-string",{props:{ariaHidden:_.VY,ariaLabel:_.VY,className:_.VY,ellipsisTruncate:_.VY,isOverlay:_.VY,linkInheritColor:_.VY,noEndpoints:_.VY,noStyleRuns:_.VY,noLinkColor:_.VY,noPreWrap:_.VY,noWrap:_.VY,skipOnClick:_.VY,userInput:_.VY,headerRuns:_.VY,isHeadline:_.VY,id:_.VY,data:_.VY,hidden:_.VY,forceDefaultStyle:_.VY,text:_.xL,disableUpgrade:_.xL,disable:_.xL,slot:_.xL}});var JQ=function(){return _.K.apply(this,arguments)||this};
_.H(JQ,_.K);JQ.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},Rmk(this.data,this.config))};
_.C([_.U(kHf),_.k("design:type",Object)],JQ.prototype,"ytIdomTemplatingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],JQ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],JQ.prototype,"ariaLabel",void 0);_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"disable",void 0);_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"ellipsisTruncate",void 0);_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"isOverlay",void 0);
_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"linkInheritColor",void 0);_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"noPreWrap",void 0);_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"noWrap",void 0);_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"userInput",void 0);_.C([_.S(),_.k("design:type",Boolean)],JQ.prototype,"noEndpoints",void 0);_.C([_.S(),_.k("design:type",Array)],JQ.prototype,"headerRuns",void 0);
_.C([_.CG({is:"yt-attributed-string",disableElementRegistration:!0})],JQ);
_.v("web_wiz_attributed_string")||_.B(JQ,"yt-attributed-string",function(){if(V7S===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
R.content.insertBefore(N_b().content.cloneNode(!0),R.content.firstChild);V7S=R}R=V7S;return R},{mode:2});var jQN,baS,vOq;jQN=function(){this.firstThumbnailLoaded=!1};
_.fhS=function(){baS||(baS=new jQN);return baS};
vOq=function(R){var A=_.fhS();A.firstThumbnailLoaded||(A.firstThumbnailLoaded=!0,_.Fh("ftl",R))};
jQN.prototype.reset=function(){this.firstThumbnailLoaded=!1};var Jzk=0,QpP=new WeakMap,mpk=0,NH=new Set;var ppS,Fk7=function(){return ppS!==void 0?ppS:ppS=document.createElement("template")};
document.head.appendChild(Fk7().content);var B_A;var rz6,Up3,yY;_.yi=_.P3.caches;yY=function(){};
yY.prototype.open=function(R){return _.yi.open(ahZ(R))};
yY.prototype.has=function(R){return _.yi.has(ahZ(R))};
yY.prototype.delete=function(R){return _.yi.delete(ahZ(R))};
yY.prototype.match=function(R,A){var Y=this,P,E,z,c,M,N;return _.O(function(y){switch(y.nextAddress){case 1:return y.yield(Y.keys(),2);case 2:P=y.yieldResult,E=_.x(P),z=E.next();case 3:if(z.done){y.jumpTo(5);break}c=z.value;return y.yield(Y.open(c),6);case 6:return M=y.yieldResult,y.yield(M.match(R,A),7);case 7:if(N=y.yieldResult)return y.return(N);z=E.next();y.jumpTo(3);break;case 5:return y.return()}})};
var $pJ=function(){};
_.H($pJ,yY);var ahZ=function(R){if(R.includes(":"))throw Error("oh`"+R);return R+":"+_.UK("CacheStorage get")};
$pJ.prototype.keys=function(){var R,A,Y,P,E,z,c,M,N;return _.O(function(y){if(y.nextAddress==1)return R=[],A=_.UK("CacheStorage keys"),y.yield(_.yi.keys(),2);Y=y.yieldResult;P=_.x(Y);for(E=P.next();!E.done;E=P.next())z=E.value,c=_.HZV(z),M=c.originalName,N=c.datasyncId,N===A&&R.push(M);return y.return(R)})};var m4=function(){var R=_.K.apply(this,arguments)||this;R.objectURL=null;R.loadTime=Infinity;return R};
_.H(m4,_.K);_.l=m4.prototype;_.l.renderIdom=function(){nOk(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&t$S(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.l.objectFitToContentMode=function(R){switch(R){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.l.logThumbnailFailureVe=function(){var R=_.NV(197497);_.Xq(_.rU(),R);var A=_.F9();A&&R&&A&&_.uE(A,[R])};
_.l.loadImageFromCacheIfExists=function(R){var A=this,Y=R.target;(Y==null?0:Y.src)&&SMl(Y.src).then(function(P){A.objectURL=_.kD(P).toString();A.setSrc(Y,A.objectURL)}).catch(function(){})};
_.l.onError=function(R){var A=this;if(_.v("web_use_cache_for_image_fallback")){var Y=R.target;Y&&SMl(Y.src).then(function(P){A.objectURL=_.kD(P).toString();A.setSrc(Y,A.objectURL)}).catch(function(){_.v("kevlar_woffle_log_thumbnail_failure_ve")&&A.logThumbnailFailureVe();
_.v("kevlar_woffle_fallback_image")&&A.setSrc(Y,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.l.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.l.setConfig=function(){var R=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(A){R.loadImageFromCacheIfExists(A);R.revokeObjectURL();gOk(R.hostElement)},
onerror:function(A){R.onError(A)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.v("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.l.setSrc=function(R,A){A&&(R.src=A)};
_.C([_.U(kHf),_.k("design:type",Object)],m4.prototype,"ytIdomTemplatingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],m4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],m4.prototype,"alt",void 0);_.C([_.S(),_.k("design:type",Boolean)],m4.prototype,"ftlEligible",void 0);_.C([_.S(),_.k("design:type",Number)],m4.prototype,"height",void 0);_.C([_.S(),_.k("design:type",Boolean)],m4.prototype,"notifyOnLoaded",void 0);
_.C([_.S(),_.k("design:type",Boolean)],m4.prototype,"notifyOnUnloaded",void 0);_.C([_.S(),_.k("design:type",String)],m4.prototype,"objectFit",void 0);_.C([_.S(),_.k("design:type",String)],m4.prototype,"objectPosition",void 0);_.C([_.S(),_.k("design:type",String)],m4.prototype,"preferredThumbnail",void 0);_.C([_.S(),_.k("design:type",Boolean)],m4.prototype,"preserveHeight",void 0);_.C([_.S(),_.k("design:type",Boolean)],m4.prototype,"preserveWidth",void 0);
_.C([_.S({value:!0}),_.k("design:type",Boolean)],m4.prototype,"useWidth",void 0);_.C([_.S({value:function(){return!_.CQ("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.k("design:type",Boolean)],m4.prototype,"shouldRenderLazy",void 0);_.C([_.S(),_.k("design:type",Number)],m4.prototype,"width",void 0);_.C([_.CG({is:"yt-image",disableElementRegistration:!0})],m4);
_.B(m4,"yt-image",function(){if(B_A===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);R.content.insertBefore(Fk7().content.cloneNode(!0),R.content.firstChild);
B_A=R}R=B_A;return R},{mode:2});var Tu=function(){return _.K.apply(this,arguments)||this};
_.H(Tu,_.K);Tu.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var R=_.h7(this.data.onVisibleCommand);R&&this.ytComponentBehavior.resolveCommand(R)}};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Tu.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Tu.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.cX.YtVisibilityBehavior),_.k("design:type",Object)],Tu.prototype,"ytVisibilityBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Tu.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Tu);
_.B(Tu,"yt-bumper-user-edu-content-view-model",function(){if(C98===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;al8===void 0&&(al8=document.createElement("template"));var P=al8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);C98=R}R=C98;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var CN8;var hC8,orf=function(){if(hC8!==void 0)return hC8;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;CN8===void 0&&(CN8=document.createElement("template"));var P=CN8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return hC8=R};var kvq;_.QY={};kvq=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"]);_.QY.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var R=this.getContext_();return R?R.getTaskManager():_.fn},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var R=_.xo(this.hostElement,"yt-get-context-provider",{});R.detail&&R.detail.contextProvider?this.cachedProviderNode_=R.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return kvq.has(this.hostElement.localName)},
getNetworkManager:function(){var R=this.getContext_();if(R)return R.getNetworkManager()}};var f8k,GvH,t7S,Zaf;_.vX=function(R){var A=GvH.get(R);if(A&&(A=A.pop()))return Zaf++,A;t7S++;try{var Y=document.createElement(R)}catch(P){throw new _.XN("ElementPool failed to create element",R,P.message);}return Y};
f8k=function(R){var A=R.is;if(A){var Y=GvH.get(A);Y||(Y=[],GvH.set(A,Y));var P=_.a1("ELEMENT_POOL_CONFIG")||{};Y.length>=(P[A]!==void 0?P[A]:_.a1("ELEMENT_POOL_DEFAULT_CAP",0))||Y.push(R)}else _.pK(new _.XN("Element pool should only handle custom elements:",R.nodeName))};
GvH=new Map;t7S=0;Zaf=0;var mB=new WeakMap,bZ6=new WeakMap;var ugq;_.gt=function(R,A,Y){Y=Y===void 0?_.n6():Y;this.JSC$13793_defaultPriority=R;this.signal=A;this.scheduler=Y;this.nextJobDescriptor=0;this.JSC$13793_parkedJobs=[];this.scheduledJobs=new Map};
_.nH=function(R,A){if(A){var Y=_.EV();R.signal&&!_.zD(Y,R.signal)?(Y.addListener(R.signal,function(){R.processSignal()}),R.JSC$13793_parkedJobs.push({job:A,
priority:void 0})):wpz(R,A)}};
ugq=function(R,A){if(A!==R.JSC$13793_defaultPriority){R.JSC$13793_defaultPriority=A;for(var Y=_.x(R.scheduledJobs.values()),P=Y.next();!P.done;P=Y.next())P=P.value,R.scheduler.cancelJob(P.jobId),P.jobId=R.scheduler.addJob(P.jobWrapper,A)}};
_.gt.prototype.flushJobs=function(){ugq(this,10);this.processSignal()};
_.gt.prototype.cancel=function(){for(var R=_.x(this.scheduledJobs),A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;Y=Y.next().value;this.scheduler.cancelJob(Y.jobId);this.scheduledJobs.delete(A)}this.JSC$13793_parkedJobs=[]};
_.gt.prototype.processSignal=function(){for(var R=_.x(this.JSC$13793_parkedJobs),A=R.next();!A.done;A=R.next())A=A.value,wpz(this,A.job,A.priority);this.JSC$13793_parkedJobs=[]};
var wpz=function(R,A,Y){Y=Y||R.JSC$13793_defaultPriority;if(Y===10)Vi(A);else{var P=R.nextJobDescriptor++,E=function(){A();R.scheduledJobs.delete(P)},z=R.scheduler.addJob(E,Y);
R.scheduledJobs.set(P,{jobWrapper:E,jobId:z,priority:Y})}};gh3({beforeVisit:function(R){if(_.O5.has(R.type)){var A;(A=R.props).idomKey!=null||(A.idomKey=R.type)}else R.type.TAG_NAME&&(_.c1=R.type.TAG_NAME)},
afterRender:function(R,A){var Y;_.c1=(Y=A==null?void 0:A.type)!=null?Y:""},
didPatch:function(){_.c1=""}});var eCH;_.HX={};eCH={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.HX.YtRendererstamperBehavior=[_.QY.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 R in this.stampDom){var A=this.stampDom[R];A&&A.id&&this.addReactiveSchema({type:"observe",method:{methodName:Kzk(A.id),args:[{type:"wildcard",path:R}]}})}else{(R=(this.constructor.generatedFrom||this).observers)||(R=[]);for(A in this.stampDom){var Y=this.stampDom[A];Y&&Y.id&&R.push(Kzk(Y.id)+"("+A+".*)")}this.constructor.generatedFrom.observers=R}},
addStampDomObserverFns_:function(){for(var R in this.stampDom){var A=this.stampDom[R];A.id?(this[Kzk(A.id)]=this.rendererStamperObserver_.bind(this,R,A.id),this.hasDataPath_[R]=!1):(A=new _.XN("Bad rendererstamper config",this.is+":"+R),_.bj(A))}},
rendererStamperObserver_:function(R,A,Y){if(Y.path==R){if(Y.value===void 0&&!this.hasDataPath_[R])return;this.hasDataPath_[R]=Y.value!==void 0}this.rendererStamperApplyChangeRecord_(R,A,Y)},
rendererStamperApplyChangeRecord_:function(R,A,Y){var P=this.renderJobsMap_[A],E=null;R==Y.path?(Y=Y.value,_.ok(Y)||(Y=Y===void 0||Y===null?[]:[Y]),R=this.stampDom[R],R.mapping&&(E=this.stampDomArray_.bind(this,Y,A,R.mapping,R.reuseComponents,R.events,R.stamperStableList)),P&&P.cancel(),Y=R.usePageScheduler?this.getTaskManager():void 0,P||R.initialRenderPriority==void 0)?R.renderPriority==void 0||P||(P=new _.gt(R.renderPriority,R.waitForSignal,Y),this.renderJobsMap_[A]=P):(P=new _.gt(R.initialRenderPriority,
R.waitForSignal,Y),this.renderJobsMap_[A]=P,E=function(z,c){z();ugq(c,10)}.bind(this,E,P)):E=R+".splices"==Y.path?this.stampDomArraySplices_.bind(this,R,A,Y.value):this.forwardRendererStamperChanges_.bind(this,R,A,Y);
P?_.nH(P,E):E()},
forwardRendererStamperChanges_:function(R,A,Y){var P=Y.path.slice(R.length+1),E=this.getStampContainer_(A),z=P.indexOf("."),c=P.substring(0,z),M=!1,N=0,y=parseInt(c,0);if(c[0]=="#"){M=parseInt(c.substring(1),0);y=this.get(R);var m=this.get([R,c]);y[M]==m?N=M:N=y.indexOf(m);M=!0}else isNaN(y)||(N=y,M=!0);M&&(P=P.substring(c.length+1),z=P.indexOf("."));c=_.S0(E).children[N];var T;if(E=(T=c==null?void 0:c.polymerController)!=null?T:c)P="data"+P.slice(z),typeof E.notifyPath!=="function"?_.pK(new _.XN("notifyPath missing",
this.is+": "+R+", "+A)):Y.value?E.notifyPath(P,Y.value):E.notifyPath(P)},
stampDomArraySplices_:function(R,A,Y){if(Y&&Y.indexSplices){var P=this.getStampContainer_(A);if(P){for(var E=_.S0(P),z=jpk(this.stampDom[R].reuseComponents),c=Y.indexSplices.length,M=0;M<c;M++){for(var N=Y.indexSplices[M],y=E.children[N.index],m=N.removed.length;m>0;m--)y&&y.parentElement&&(_.S0(y.parentElement).removeChild(y),z&&f8k(y),y=E.children[N.index]);m=this.stampDom[R].mapping;for(var T=N.index+N.addedCount,Q=document.createDocumentFragment(),g=z,r=N.index;r<T;r++){var I=N.object[r],b=I8k(m,
I);if(b){var p=m[b];I=I[b];b=this.getComponentName_(p,I);var h=y?mB.has(y):!1;g&&y&&y.is==b&&h?(b=y,this.telemetry_.reuse++,y=y.nextElementSibling):g&&y&&h?(b=this.createComponent_(p,I,z),h=_.S0(y).nextElementSibling,E.insertBefore(b,h),Fz8(this.is,E,y,z),y=h):(g=!1,b=this.createComponent_(p,I,z),Q.appendChild(b));this.deferRenderStamperBinding_(b,p,I)}else p=new _.XN("Unimplemented type",R,A,P.tagName,Object.keys(I)[0]),_.bj(p)}E.insertBefore(Q,y)}this.flushRenderStamperComponentBindings_();this.stampDom[R].events&&
_.xo(this.hostElement,"yt-rendererstamper-finished",{container:P})}else R=new _.XN("Container object not found",A,this.hostElement?this.hostElement.is:""),_.bj(R)}},
stampDomArray_:function(R,A,Y,P,E,z){var c=this.getStampContainer_(A);if(c)if(A=_.S0(c),P=jpk(P),R){var M=0,N=0,y;if(z=z===void 0?_.CQ("STAMPER_STABLE_LIST",!1):z||!1)for(y=A.firstElementChild;y&&!mB.has(y)&&R.length>N;){z=R[N];var m=I8k(Y,z);if(m){if(this.getComponentName_(Y[m],z[m])!=y.is){var T=this.createComponent_(Y[m],z[m],P),Q=_.S0(y).nextElementSibling;Q?A.insertBefore(T,Q):A.appendChild(T);Fz8(this.is,A,y,P);y=T}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(y,Y[m],z[m]);M++;
N++;y=_.S0(y).nextElementSibling}else N++}Bsu(this.is,A,M,P);M=y;if(R.length>N){z=document.createDocumentFragment();for(m=R.length;N<m;N++)if(T=R[N],Q=I8k(Y,T))y=this.createComponent_(Y[Q],T[Q],P),this.deferRenderStamperBinding_(y,Y[Q],T[Q]),z.appendChild(y);M&&_.S0(M).parentNode&&y&&!mB.has(y)?A.insertBefore(z,M):A.appendChild(z)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();E&&_.xo(this.hostElement,"yt-rendererstamper-finished",{container:c})}else Bsu(this.is,A,0,
P);else R=new _.XN("Container object not found",A,this.hostElement?this.hostElement.is:""),_.bj(R)},
getStampContainer_:function(R){return this.$&&this.$[R]||_.Mo(this.hostElement).querySelector("#"+R)},
getComponentName_:function(R,A){return typeof R==="string"?R:R.matcher?R.matcher.call(this,A):R.component},
createComponent_:function(R,A,Y){R=this.getComponentName_(R,A);try{var P=Mf.has(R)||_.O5.has(R);if(Y&&!P){var E=_.vX(R);try{_.ya(E)}catch(z){Y="Failed to clear styles for "+R+".",z.message&&(Y+=" Original error: "+z.message),_.pK(new _.XN(Y))}}else E=document.createElement(R)}catch(z){return E="YtRendererStamperBehavior failed to create "+R+".",z.message&&(E+=" Original description: "+z.message),z.message="YtRendererStamperBehavior failed to create element",_.F8(z,E),eCH.hasOwnProperty(R)?_.pK(z):
_.bj(z),document.createElement("SPAN")}this.telemetry_.create++;return E},
deferRenderStamperBinding_:function(R,A,Y){this.deferredBindingTasks_.push({component:R,typeOrConfig:A,data:Y})},
flushRenderStamperComponentBindings_:function(){for(var R=0,A=this.deferredBindingTasks_.length;R<A;R++){var Y=this.deferredBindingTasks_[R];if(!Y)break;var P=void 0,E=void 0,z=void 0,c=void 0,M=Y.component,N=Y.typeOrConfig;Y=Y.data;var y=(c=M.polymerController)!=null?c:M;c=M.loggingStatus;try{c&&(c.isRendererStamper=!0);if(typeof N!=="string"){for(z in N.attributes)N.attributes[z]===!0?M.setAttribute(z,""):N.attributes[z]===!1?M.removeAttribute(z):M.setAttribute(z,N.attributes[z]);for(E in N.params)y[E]=
N.params[E],M!==y&&Sz(M.localName,E,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(P in N.properties){var m=N.properties[P];if(m){var T=WzS(m);y[P]=this.get(T);M!==y&&Sz(M.localName,P,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(P==="on-tap"||P==="on-click"){var Q=this.get(T);M.addEventListener("click",Q);bZ6.set(M,{property:P,listener:{type:"element",eventName:"click",handler:Q}})}}else{var g=new _.XN("Undefined property binding",P);_.bj(g)}}}if(N.classListBinding){var r=WzS(N.classListBinding),
I=r?this[r]:null;if(I)for(P=0;P<I.length;P++)_.No(M,I[P],!0)}y.data=Y}finally{c&&(c.isRendererStamper=!1)}if(P=mB.get(M))M.hidden=!1,mB.delete(M),_.fn.cancelJob(P)}this.deferredBindingTasks_.length=0}}];_.Ow(_.E5(function(R){function A(){Y().seconds&&z(Da8({seconds:Number(Y().seconds)-Date.now()/1E3}))}
var Y=R.targetTimestamp;R=R.className;var P=_.x(_.yy("",void 0,"TM9kjd")),E=P.next().value,z=P.next().value;_.WD(function(){A();var c=setInterval(function(){A()},1E3);
_.bm(function(){clearInterval(c)})});
return _.V("yt-countdown",{class:_.To("ytCountDownHost",R)},_.V("div",null,E))},"i"),"yt-countdown",{props:{targetTimestamp:_.VY,
className:_.xL}});_.rt=new _.cP("KEY_MANAGER_TOKEN");var a8q={click:"EVENT_SPAN_TYPE_CLICK",dblclick:"EVENT_SPAN_TYPE_DBLCLICK",mousedown:"EVENT_SPAN_TYPE_MOUSEDOWN",mouseup:"EVENT_SPAN_TYPE_MOUSEUP",mouseover:"EVENT_SPAN_TYPE_MOUSEOVER",mouseout:"EVENT_SPAN_TYPE_MOUSEOUT",mouseenter:"EVENT_SPAN_TYPE_MOUSEENTER",mouseleave:"EVENT_SPAN_TYPE_MOUSELEAVE",mousemove:"EVENT_SPAN_TYPE_MOUSEMOVE",contextmenu:"EVENT_SPAN_TYPE_CONTEXTMENU",keydown:"EVENT_SPAN_TYPE_KEYDOWN",keyup:"EVENT_SPAN_TYPE_KEYUP",keypress:"EVENT_SPAN_TYPE_KEYPRESS",touchstart:"EVENT_SPAN_TYPE_TOUCHSTART",
touchend:"EVENT_SPAN_TYPE_TOUCHEND",touchmove:"EVENT_SPAN_TYPE_TOUCHMOVE",touchcancel:"EVENT_SPAN_TYPE_TOUCHCANCEL",pointerdown:"EVENT_SPAN_TYPE_POINTERDOWN",pointerup:"EVENT_SPAN_TYPE_POINTERUP",pointermove:"EVENT_SPAN_TYPE_POINTERMOVE",pointerover:"EVENT_SPAN_TYPE_POINTEROVER",pointerout:"EVENT_SPAN_TYPE_POINTEROUT",pointerenter:"EVENT_SPAN_TYPE_POINTERENTER",pointerleave:"EVENT_SPAN_TYPE_POINTERLEAVE",pointercancel:"EVENT_SPAN_TYPE_POINTERCANCEL",gotpointercapture:"EVENT_SPAN_TYPE_GOTPOINTERCAPTURE",
lostpointercapture:"EVENT_SPAN_TYPE_LOSTPOINTERCAPTURE",submit:"EVENT_SPAN_TYPE_SUBMIT",change:"EVENT_SPAN_TYPE_CHANGE",input:"EVENT_SPAN_TYPE_INPUT",focus:"EVENT_SPAN_TYPE_FOCUS",blur:"EVENT_SPAN_TYPE_BLUR",reset:"EVENT_SPAN_TYPE_RESET",select:"EVENT_SPAN_TYPE_SELECT",invalid:"EVENT_SPAN_TYPE_INVALID",load:"EVENT_SPAN_TYPE_LOAD",unload:"EVENT_SPAN_TYPE_UNLOAD",beforeunload:"EVENT_SPAN_TYPE_BEFOREUNLOAD",domcontentloaded:"EVENT_SPAN_TYPE_DOMCONTENTLOADED",resize:"EVENT_SPAN_TYPE_RESIZE",scroll:"EVENT_SPAN_TYPE_SCROLL",
pageshow:"EVENT_SPAN_TYPE_PAGESHOW",pagehide:"EVENT_SPAN_TYPE_PAGEHIDE",play:"EVENT_SPAN_TYPE_PLAY",pause:"EVENT_SPAN_TYPE_PAUSE",playing:"EVENT_SPAN_TYPE_PLAYING",waiting:"EVENT_SPAN_TYPE_WAITING",seeking:"EVENT_SPAN_TYPE_SEEKING",seeked:"EVENT_SPAN_TYPE_SEEKED",ended:"EVENT_SPAN_TYPE_ENDED",volumechange:"EVENT_SPAN_TYPE_VOLUMECHANGE",timeupdate:"EVENT_SPAN_TYPE_TIMEUPDATE",ratechange:"EVENT_SPAN_TYPE_RATECHANGE",dragstart:"EVENT_SPAN_TYPE_DRAGSTART",drag:"EVENT_SPAN_TYPE_DRAG",dragend:"EVENT_SPAN_TYPE_DRAGEND",
dragenter:"EVENT_SPAN_TYPE_DRAGENTER",dragleave:"EVENT_SPAN_TYPE_DRAGLEAVE",dragover:"EVENT_SPAN_TYPE_DRAGOVER",drop:"EVENT_SPAN_TYPE_DROP",animationstart:"EVENT_SPAN_TYPE_ANIMATIONSTART",animationend:"EVENT_SPAN_TYPE_ANIMATIONEND",animationiteration:"EVENT_SPAN_TYPE_ANIMATIONITERATION",transitionrun:"EVENT_SPAN_TYPE_TRANSITIONRUN",transitionstart:"EVENT_SPAN_TYPE_TRANSITIONSTART",transitionend:"EVENT_SPAN_TYPE_TRANSITIONEND",transitioncancel:"EVENT_SPAN_TYPE_TRANSITIONCANCEL"};_.DW=_.E5(function(R){var A=_.LK("a",R.ref),Y=R.aTagConfig?R.aTagConfig:_.gE(function(){var P,E,z,c,M;var N=(M=_.h7((z=R.command)==null?void 0:z.call(R)))!=null?M:(c=R.command)==null?void 0:c.call(R);return _.k9({innertubeCommand:N,skipOnClick:(P=R.skipOnClick)==null?void 0:P.call(R),defaultTarget:(E=R.target)==null?void 0:E.call(R)})||{}},void 0,"gnrRge");
_.jq(function(){A.value._data=Y()._data;A.value.params=Y().params},"t2c7fe");
return _.V("a",{el:A,href:function(){return Y().href$},
rel:function(){return Y().rel$},
class:function(){var P,E;return(E=Y().className)!=null?E:(P=R.className)==null?void 0:P.call(R)},
style:function(){var P;if((P=R.style)==null?0:P.call(R))return R.style();var E;return((E=R.disabled)==null?0:E.call(R))?"pointer-events:none":""},
"aria-haspopup":function(){return!!Y()["aria-haspopup$"]},
"force-new-state":v1(function(){return Y()["force-new-state$"]}),
title:v1(function(){var P,E;return(E=Y().title$)!=null?E:(P=R.title)==null?void 0:P.call(R)}),
role:v1(function(){var P;return((P=R.role)==null?void 0:P.call(R))||Y().role$}),
target:v1(function(){return Y().target$}),
dir:v1(function(){var P;return((P=R.dir)==null?void 0:P.call(R))||Y().dir}),
tabindex:function(){var P;return Y().tabindex$?Number(Y().tabindex$):(P=R.tabIndex)==null?void 0:P.call(R)},
"aria-hidden":function(){var P,E;return(E=Y()["aria-hidden$"])!=null?E:(P=R.ariaHidden)==null?void 0:P.call(R)},
"aria-label":function(){var P,E;return(E=Y()["aria-label$"])!=null?E:(P=R.ariaLabel)==null?void 0:P.call(R)},
"aria-current":R.ariaCurrent,"aria-disabled":R.disabled,"aria-labelledby":R.ariaLabelledby,"aria-describedby":R.ariaDescribedby,"aria-selected":R.ariaSelected,"tab-identifier":R.tabIdentifier,"on:pointerdown":_.Qi(function(P){var E,z;return void((z=(E=Y()).onpointerdown)==null?void 0:z.call(E,P))}),
"on:click":_.Qi(function(P){var E,z;(z=(E=Y()).onclick)==null||z.call(E,P);var c;(c=R.onClick)==null||c.call(R,P)}),
"on:focusin":_.Qi(function(P){var E;(E=R.onFocusin)==null||E.call(R,P)}),
"on:focusout":_.Qi(function(P){var E;(E=R.onFocusout)==null||E.call(R,P)})},R.children)},"j");var wII={duration:1E3,easing:"ease",fill:"forwards"};tlI.componentType=_.XF;var qMk={duration:1E3,easing:"ease",fill:"forwards"},dwD=_.E5(function(R){var A=_.LK("animated-rolling-character"),Y=void 0,P=function(){var E,z;return Ro((E=R.character)==null?void 0:E.call(R))||Ro((z=R.previousCharacter)==null?void 0:z.call(R))};
_.jq(function(){if(R.marginMultiplier()){var E;(E=Y)==null||E.cancel();if(P()){var z;E=((z=R.previousCharacter)==null?0:z.call(R))?Number(R.previousCharacter())+10:R.rollUp()?0:30;var c;if((c=R.shouldAnimate)==null||!c.call(R)){var M,N;E-=eml((M=R.character)==null?void 0:M.call(R),(N=R.previousCharacter)==null?void 0:N.call(R),R.rollUp(),E)}}else{E=R.rollUp()?0:2;var y;(y=R.shouldAnimate)!=null&&y.call(R)||(z=E,c=R.rollUp()?-1:1,E=z-c)}A.value.style.marginTop="-"+E*R.marginMultiplier()+"px";var m;
if((m=R.shouldAnimate)==null?0:m.call(R)){var T,Q;Y=Lzb(A.value,(T=R.character)==null?void 0:T.call(R),(Q=R.previousCharacter)==null?void 0:Q.call(R),R.rollUp(),E,P(),R.marginMultiplier())}else{var g;A.value.style.display=((g=R.character)==null?0:g.call(R))?"":"none"}}},"EgLkAe");
return _.V("animated-rolling-character",{el:A,class:"animatedRollingCharacterHost"},_.V(_.J,{cond:P,then:function(){return _.V(qSA,null)},
else:function(){return _.V(LkA,{character:R.character})}}))},"k");
dwD.idomCompat=!0;var dpk=_.v("web_enable_sink_animated_rolling_character_and_number")?dwD:tlI,R9D=_.v("web_enable_sink_animated_rolling_character_and_number")?dwD:u_u(tlI),qSA=_.E5(function(){for(var R=[],A=1;A<30;A++)R.push(_.V("div",null,A%10));return _.V(_.lI,null,_.V("div",null,"\u00a0"),R,_.V("div",null,"\u00a0"))},"l"),LkA=_.E5(function(R){var A=R.character;
return _.V(_.lI,null,_.V("div",null,"\u00a0"),_.V(_.J,{cond:function(){return!(A==null?0:A())||_.c3(A==null?void 0:A())},
then:function(){return _.V("div",null,"\u00a0")},
else:function(){return _.V("div",null,A)}}),_.V("div",null,"\u00a0"))},"m");Rnk.componentType=_.XF;var AyS=_.E5(function(R){var A=void 0,Y=void 0,P=function(){var z;return((z=R.fontSizeMultiplier)==null?0:z.call(R))?R.heightPx()*R.fontSizeMultiplier():R.heightPx()},E=_.gE(function(){if(!R.numberText())return[];
var z,c,M=((z=R.forceRollUp)==null?void 0:z.call(R))||!Y||!((c=R.numberValue)==null?0:c.call(R))||Y<R.numberValue(),N,y=R.numberText();z=P();c=!((N=R.shouldAnimate)==null||!N.call(R));N=[];var m=0,T=0,Q=(A?A.replace(/\D/g,"").length:0)-(y?y.replace(/\D/g,"").length:0),g=A?A.split(/(\d)/).filter(Boolean):[];for(y=y.split(/(\d)/).filter(Boolean);Q<0;){var r=y[T];N.push({character:r,rollUp:M,marginMultiplier:z,shouldAnimate:c});T++;Ro(r)&&Q++}for(;m<Q;)r=g[m],N.push({previousCharacter:r,rollUp:M,marginMultiplier:z,
shouldAnimate:c}),m++,Ro(r)||Q++;for(;T<y.length;)Q=y[T],r=g[m],Ro(Q)===Ro(r)?(T++,m++):Ro(Q)?(m++,Q=void 0):Ro(r)&&(T++,r=void 0),N.push({character:Q,previousCharacter:r,rollUp:M,marginMultiplier:z,shouldAnimate:c});A=R.numberText();var I;Y=(I=R.numberValue)==null?void 0:I.call(R);return N},void 0,"kWiBv");
return _.V("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return R.numberText()?["height: "+P()+"px;","line-height: "+R.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.V(_.Ue,{each:E,keyBy:"INDEX"},function(z){return _.V(R9D,{character:function(){return z().character},
previousCharacter:function(){return z().previousCharacter},
marginMultiplier:function(){return z().marginMultiplier},
rollUp:function(){return z().rollUp},
shouldAnimate:function(){return z().shouldAnimate}})}))},"n");
AyS.idomCompat=!0;_.Yq7=_.v("web_enable_sink_animated_rolling_character_and_number")?AyS:Rnk;_.Pqb=_.v("web_enable_sink_animated_rolling_character_and_number")?AyS:u_u(Rnk);var EvA=function(R,A){this.fillAnimation=new Animation(Aul(R),document.timeline);this.strokeAnimation=new Animation(YN3(A),document.timeline)};
EvA.prototype.play=function(){var R,A;(A=(R=this.fillAnimation).play)==null||A.call(R);var Y,P;(P=(Y=this.strokeAnimation).play)==null||P.call(Y)};
EvA.prototype.cancel=function(){var R,A;(A=(R=this.fillAnimation).cancel)==null||A.call(R);var Y,P;(P=(Y=this.strokeAnimation).cancel)==null||P.call(Y)};_.Uh=_.E5(function(R){var A=R.model;var Y=R.pointerDownEvent;var P=R.pointerUpEvent;var E=R.pointerLeaveEvent;R=_.LK("div");var z=_.nY({"border-radius":function(){return A().borderRadius}}),c=_.LK("div"),M=_.LK("div"),N=_.x(_.gl(function(){return(P==null?0:P())||(E==null?0:E())?!1:!(Y==null||!Y())||!1})),y=N.next().value,m=N.next().value,T=void 0,Q=function(){!T&&M.value&&c.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(T=new EvA(M.value,c.value));
var h;(h=T)==null||h.play()},g=function(){var h;
(h=T)==null||h.cancel()},r=function(){var h;
(h=T)==null||h.cancel()};
_.jq(function(){(P==null?0:P())&&Q()},"T3bfE");
_.jq(function(){(Y==null?0:Y())&&g()},"C4C6ld");
_.jq(function(){(E==null?0:E())&&r()},"xSCnVb");
N=_.Qi(function(){Q();m(!1)});
var I=_.Qi(function(){g();m(!0)}),b=_.Qi(function(){r();
m(!1)});
_.bm(function(){if(T){var h;(h=T)==null||h.cancel();T=void 0}});
var p={};y=_.To("yt-spec-touch-feedback-shape",function(){return PlS(A().color)},(p["yt-spec-touch-feedback-shape--focused"]=function(){return!!A().focused&&!A().disabled},p["yt-spec-touch-feedback-shape--circular"]=function(){return!!A().circular},p["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!A().isExtended},p["yt-spec-touch-feedback-shape--down"]=y,p["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!A().triggerEvents},p));
return _.V("yt-touch-feedback-shape",{style:_.nY({"border-radius":"inherit"})},_.V("div",{el:R,class:y,style:_.nY({"margin-top":function(){return A().customTopExtend?"-"+A().customTopExtend+"px":void 0}}),
"on:mousedown":I,"on:mouseup":N,"on:pointerleave":b,"on:touchstart":I,"on:touchend":N,"aria-hidden":!0},_.V("div",{class:"yt-spec-touch-feedback-shape__stroke",style:z,el:c}),_.V("div",{class:"yt-spec-touch-feedback-shape__fill",style:z,el:M})))},"o");
_.Uh.idomCompat=!0;var z9b={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 $u=_.yk();$u=$u.toLowerCase();if(_.O6($u,"android")){var iL8=$u.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);iL8&&parseFloat(iL8[1])<100||$u.match("("+Object.keys(z9b).join("|")+")")};var lKf=_.E5(function(R){return _.V(_.J,{cond:R.aTagConfig,then:function(A){return _.V(_.DW,{aTagConfig:A,disabled:R.disabled,className:R.className,style:R.style,title:R.title,ariaLabel:R.ariaLabel,ariaCurrent:function(){var Y,P;return((Y=R.toggleable)==null?void 0:Y.call(R))&&((P=R.toggled)==null?void 0:P.call(R))},
ref:R.ref},R.children)},
else:function(){return _.V("button",{el:_.zo(R.ref),"on:click":_.Qi(function(A){var Y;return(Y=R.onClick)==null?void 0:Y.call(R,A)}),
class:R.className,title:R.title,style:R.style,disabled:R.disabled,"aria-pressed":function(){var A,Y;return((A=R.toggleable)==null?0:A.call(R))?!((Y=R.toggled)==null||!Y.call(R)):void 0},
"aria-label":R.ariaLabel,"aria-disabled":R.visiblyDisabled,"aria-hidden":R.ariaHidden,tabindex:R.tabIndex},R.children)}})},"p"),cyS=_.E5(function(R){var A=R.data;
var Y=R.hasIconLeading;var P=R.hasIconLeadingTrailing;var E=R.hasIconTrailing;var z=R.iconButton;var c=R.iconClassName;var M=R.secondaryIconClassName;var N=R.icon;var y=R.secondaryIcon;var m=R.textContentClassName;return _.V(Xm,{className:"",style:"display: inherit; justify-content: center"},_.V(_.J,{debugInstance:"V4z1Uc",cond:function(){return N&&(Y()||P()||(z==null?void 0:z()))},
then:function(){return _.V(Xm,null,_.V("div",{class:c,"aria-hidden":"true"},N==null?void 0:N()))}}),_.V(_.J,{debugInstance:"ok3btb",
cond:function(){return(A().buttonText||A().animatedTextProps||A().formattedButtonText)&&!(z==null?0:z())},
then:function(){return _.V(Xm,null,_.V(xkD,{className:m,iconPosition:function(){return A().iconPosition},
text:function(){return A().buttonText},
oneOffCustomTextWrap:function(){return A().oneOffCustomTextWrap},
formattedButtonText:function(){return A().formattedButtonText},
animatedTextProps:function(){return A().animatedTextProps}}))}}),_.V(_.J,{debugInstance:"DO5Rz",
cond:E,then:function(){return _.V(Xm,null,_.V("div",{class:c},N==null?void 0:N()))}}),_.V(_.J,{debugInstance:"bnojSc",
cond:P,then:function(){return _.V(Xm,null,_.V("div",{class:M},y==null?void 0:y()))}}),_.V(_.J,{debugInstance:"HN3kad",
cond:function(){return!A().disabled&&!0},
then:function(){return _.V(_.Uh,{model:function(){var T=A();return{color:T.style==="overlay-dark"?4:T.style==="overlay"?T.type==="filled"?4:3:T.type==="filled"||T.style==="call-to-action-inverse"||T.style==="mono-inverse"?2:1}}})}}))},"q"),xkD=_.E5(function(R){var A=function(){var Y,P;
return((Y=R.iconPosition)==null?void 0:Y.call(R))==="icon-with-label"||((P=R.oneOffCustomTextWrap)==null?void 0:P.call(R))};
return _.V("div",{class:R.className,"aria-hidden":function(){var Y,P,E;return((Y=R.ariaHidden)==null?void 0:Y.call(R))&&(!((P=R.animatedTextProps)==null||!P.call(R))||!((E=R.formattedButtonText)==null||!E.call(R)))}},_.V(_.SO,null,_.V(_.$W,{when:function(){var Y;
return(Y=R.animatedTextProps)==null?void 0:Y.call(R)}},function(){return _.V(_.Pqb,{numberText:function(){return R.animatedTextProps().numberText},
numberValue:function(){return R.animatedTextProps().numberValue},
heightPx:function(){return R.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return R.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return R.animatedTextProps().shouldAnimate},
forceRollUp:function(){return R.animatedTextProps().forceRollUp}})}),_.V(_.$W,{when:function(){var Y;
return(Y=R.formattedButtonText)==null?void 0:Y.call(R)}},function(){return _.V(_.NU,{text:function(){return Object.assign({},R.formattedButtonText(),{lineBreakMode:A()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":R.formattedButtonText().lineBreakMode,
alignment:A()?"TEXT_ALIGNMENT_CENTER":R.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!A()}})}),_.V(_.$W,{when:function(){var Y,P;
return((Y=R.iconPosition)==null?void 0:Y.call(R))==="icon-with-label"&&((P=R.text)==null?void 0:P.call(R))}},function(){return _.V(_.NU,{text:function(){return{content:R.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.V(_.Xc,null,function(){return R.text})))},"r"),OLD=_.E5(function(R){return _.V(_.J,{debugInstance:"kM7Sgc",
cond:R.hasLabel,then:function(){var A;return _.V("label",{class:R.className},R.children,(A=R.textContent)==null?void 0:A.call(R))},
else:function(){return R.children}})},"s"),Xm=_.E5(function(R){return R.children},"t");var M$S=_.E5(function(R){var A=_.zo(),Y=_.x(_.yy(void 0,void 0,"Ug77pc")),P=Y.next().value,E=Y.next().value;Y=_.x(_.yy(void 0,void 0,"XGf7Zb"));var z=Y.next().value,c=Y.next().value;Y=_.x(_.yy(0,void 0,"Ygnx7b"));var M=Y.next().value,N=Y.next().value;Y=_.Qi(function(){switch(M()){case 1:N(2);break;case 3:var m,T;(T=(m=A.value).hidePopover)==null||T.call(m);N(0);E(void 0);c(void 0)}});
_.jq(function(){if(R.show()){var m;E((m=R.children)==null?void 0:m.call(R));var T;c((T=R.location)==null?void 0:T.call(R));switch(M()){case 0:var Q,g;(g=(Q=A.value).showPopover)==null||g.call(Q);N(1);break;case 3:N(1);var r,I;(I=(r=A.value).hidePopover)==null||I.call(r);var b,p;(p=(b=A.value).showPopover)==null||p.call(b)}}else switch(M()){case 2:N(3);break;case 1:var h,L;(L=(h=A.value).hidePopover)==null||L.call(h);E(void 0);c(void 0);N(0)}},"lOyibf");
_.jO(function(){});
var y={};return _.V("yt-popover",{popover:"manual",el:A,style:_.nY({left:function(){var m;return(m=z())==null?void 0:m.left},
top:function(){var m;return(m=z())==null?void 0:m.top},
bottom:function(){var m;return(m=z())==null?void 0:m.bottom},
right:function(){var m;return(m=z())==null?void 0:m.right}}),
class:_.To("ytPopoverComponentHost",R.classNames,(y.ytPopoverComponentHostClosing=function(){return M()===3},y.ytPopoverComponentHostSeeThrough=function(){var m;
return((m=R.seeThrough)==null?void 0:m.call(R))===!0},y)),
"on:animationend":Y},P)},"u");var sqH={left:"0px",right:"auto",top:"0px",bottom:"auto"},NWb=function(){var R=this;this.registerTooltipElement=function(Y){var P;R.tooltipElement=(P=Y.querySelector("yt-popover"))!=null?P:void 0};
var A=_.x(_.yy(void 0,void 0,"z4iHWd"));this.state=A.next().value;this.setState=A.next().value;A=_.x(_.yy(void 0,void 0,"uKDcaf"));this.schedulerJobID=A.next().value;this.setSchedulerJobID=A.next().value},sdk=function(R,A){var Y=DL,P=_.fn.addJob(function(){var E=V$7(Y,R,A);
Y.setState({text:A.text,location:E,anchor:R,offset:A.offset})},4,A.delay);
Y.setSchedulerJobID(P)},NDl=function(){var R=DL,A=R.schedulerJobID();
A&&(_.fn.cancelJob(A),R.setSchedulerJobID(void 0));R.setState(void 0)};
NWb.prototype.notify=function(R,A){var Y;((Y=this.state())==null?void 0:Y.anchor)===R&&(Y=V$7(this,R,A),this.setState({text:A.text,location:Y,anchor:R,offset:A.offset}))};
var V$7=function(R,A,Y){var P=A.getBoundingClientRect();A=window.innerWidth;var E=window.innerHeight,z=Y.location,c=Y.offset;Y=Y.text;if(R=R.tooltipElement){var M=getComputedStyle(R);R=M.font;var N=rl(M.lineHeight),y=rl(M.paddingLeft),m=rl(M.paddingRight),T=rl(M.paddingTop);M=rl(M.paddingBottom);var Q=document.createElement("canvas").getContext("2d");Q.font=R;Y={width:Q.measureText(Y).width+y+m,height:N+T+M}}else Y=void 0;R=Y;if(!R)return sqH;Y=R.width;R=R.height;y=c+R;T=c+Y;N=P.top>=y;y=E-P.bottom>=
y;m=P.left>=T;T=A-P.right>=T;M=z;switch(z){case "top":!N&&y&&(M="bottom");break;case "bottom":!y&&N&&(M="top");break;case "left":!m&&T&&(M="right");break;case "right":!T&&m&&(M="left")}switch(M){case "top":z=P.left+P.width/2-Y/2;P=P.top-R-c;break;case "bottom":z=P.left+P.width/2-Y/2;P=P.bottom+c;break;case "left":z=P.left-Y-c;P=P.top+P.height/2-R/2;break;case "right":z=P.right+c;P=P.top+P.height/2-R/2;break;default:z=P.left+P.width/2-Y/2,P=P.bottom+c}c=Object.assign({},sqH);z+Y>A?(c.right="0px",c.left=
"auto"):(c.left=Math.round(Math.max(0,z)+window.scrollX)+"px",c.right="auto");P+R>E?(c.bottom="0px",c.top="auto"):(c.top=Math.round(Math.max(0,P)+window.scrollY)+"px",c.bottom="auto");return c};var DL;DL=new NWb;_.JyG=_.E5(function(){var R=_.gE(function(){var Y;return(Y=DL.state())==null?void 0:Y.text},void 0,"jgLmfd"),A=_.gE(function(){var Y;
return(Y=DL.state())==null?void 0:Y.location},void 0,"zV1Udb");
return _.V("yt-tooltip",{class:"ytTooltipContainerHost",el:_.zo(DL.registerTooltipElement),"aria-hidden":"true"},_.V(M$S,{classNames:"ytTooltipContainerContent",location:A,show:function(){return!!R()},
seeThrough:!0},R))},"v");var ymb=im("stamper-context");_.SV=_.E5(function(R){var A=R.data;var Y=R.icon;var P=R.iconName;var E=R.animateIcon;var z=R.secondaryIcon;var c=R.secondaryIconName;var M=R.focusedOverride;var N=R.clientOnlyWizTooltipsEnabled;JuJ();var y=ETk(A),m=y.size,T=y.style;R=y.disabled;var Q=y.onTap,g=y.alignByText,r=y.aTagConfig,I=y.customColors,b=y.segmentedPosition,p=y.toggled,h=y.toggleable,L=y.accessibilityLabel,Z=y.onToggle,w=y.iconPosition,t=y.oneOffCustomTextWrap,d=y.disableTextEllipsis,Jk=y.disableBackdropFilter,Nb=y.tooltipText,
Qk=y.ariaHidden,H3=y.tabIndex,nu=y.buttonText,hk=y.formattedButtonText,FV=y.animatedTextProps,i8=xQ6(A,Y,z,P,c,M,E),fD=i8.type;Y=i8.shouldFocus;P=i8.hasIconLeading;E=i8.hasIconTrailing;var NG=i8.hasIconLeadingTrailing,d8=i8.hasIconOnly;z=i8.hasIconOnly40;var mS=i8.hasIconWithLabel;c=i8.iconButton;var V7=i8.visiblyDisabled;M=i8.overrideSmallSizeIcon;y=i8.iconToRender;i8=i8.secondaryIconToRender;var KD=_.x(VTk(Nb)).next().value,UW={},eH={};return _.V(OLD,{className:_.To("yt-spec-button-shape-with-label",
(UW["yt-spec-button-shape-with-label--is-overlay"]=function(){return T()==="overlay"||T()==="overlay-dark"},UW)),
hasLabel:mS,textContent:function(){return _.V(xkD,{text:nu,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:t,iconPosition:w,formattedButtonText:hk,animatedTextProps:FV})}},_.V(lKf,{aTagConfig:r,
className:_.To("yt-spec-button-shape-next",function(){return cuJ(fD())},function(){return V7()?void 0:ORP(T())},function(){return MTJ(m())},(eH["yt-spec-button-shape-next--disabled"]=V7,eH["yt-spec-button-shape-next--focused"]=Y,eH["yt-spec-button-shape-next--icon-trailing"]=E,eH["yt-spec-button-shape-next--icon-leading"]=P,eH["yt-spec-button-shape-next--icon-leading-trailing"]=NG,eH["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return NG()&&!(nu()||hk())},eH["yt-spec-button-shape-next--icon-button"]=
function(){return d8()||mS()},eH["yt-spec-button-shape-next--icon-only-default"]=z,eH["yt-spec-button-shape-next--align-by-text"]=g,eH["yt-spec-button-shape-next--segmented-start"]=function(){return b()==="start"},eH["yt-spec-button-shape-next--segmented-end"]=function(){return b()==="end"},eH["yt-spec-button-shape-next--override-small-size-icon"]=M,eH["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=t,eH["yt-spec-button-shape-next--disable-text-ellipsis"]=d,eH["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!Jk()&&!_.v("web_disable_backdrop_filter")},eH)),
style:function(){var zS=I();if(zS){var RA=zS.color;var vS=zS.backgroundColor;zS=zS.borderColor;var Mg="";RA&&(Mg+="color: "+RA+";");vS&&(Mg+="background-color: "+vS+";");zS&&(Mg+="border-color: "+zS+";");RA={style:Mg}}else RA={};return RA.style},
onClick:function(zS){Q==null||Q(zS);h()&&(Z==null||Z(zS))},
disabled:R,ariaLabel:L,toggleable:h,toggled:p,title:function(){return(N==null?0:N())||!Nb()?"":Nb()},
visiblyDisabled:V7,ariaHidden:Qk,tabIndex:H3,ref:function(zS){(N==null?0:N())&&KD(zS)}},_.V(cyS,{data:A,
hasIconLeading:P,hasIconLeadingTrailing:NG,hasIconTrailing:E,iconButton:c,icon:y,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:i8})))},"w");
_.SV.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Is=_.E5(function(R){var A=R.data;var Y=R.className;var P=R.style;var E=R.useOutlinedIcon;var z=R.buttonOverrides;var c=R.animatedTextProps;var M=R.onClick;var N=R.target;var y=_.LK("button-view-model",function(h){h.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var L=A().targetId;L&&_.q$Z(_.k7(),L,h);return function(){uoS(_.k7(),h)}}),m=function(){return A().iconName},T,Q=(T=_.is().resolve(_.z3(_.dU)))==null?void 0:T(),g=function(){var h=A();
var L=z==null?void 0:z(),Z=c==null?void 0:c(),w=N==null?void 0:N();if(h){var t=nT6(h.type);var d=!!h.title||!!h.titleFormatted;var Jk=!(!h.iconName&&!h.iconImage);d=Jk&&!d?"icon-only":Jk?h.iconTrailing||h.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;d==="icon-only-40"&&(t="text");var Nb,Qk=(Nb=L==null?void 0:L.disabled)!=null?Nb:h.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||h.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";Z=Z&&Z.numberText&&!isNaN(Number(Z.numberValue))?
Z:void 0;Nb=Object;Jk=Nb.assign;var H3=h.title,nu=h.titleFormatted,hk=h.accessibilityText,FV=gTk(h.style),i8=HR8(h.state),fD=rub(h.buttonSize);w=vT3(h,y,Qk,M,w);Qk=Qk&&!h.onDisabledTap;var NG=TDI(h,y),d8=h.customFontColor,mS=h.customBackgroundColor;var V7=h.customBorderColor;var KD=h.customDarkThemeFontColor,UW=h.customDarkThemeBackgroundColor,eH=h.customDarkThemeBorderColor;d8=Q&&KD?KD:d8;mS=Q&&UW?UW:mS;V7=Q&&eH?eH:V7;V7={color:d8?_.Zs(d8):void 0,backgroundColor:mS?_.Zs(mS):void 0,borderColor:V7?
_.Zs(V7):void 0};h=Jk.call(Nb,{},{buttonText:H3,formattedButtonText:nu,animatedTextProps:Z,accessibilityLabel:hk,style:FV,type:t,state:i8,size:fD,iconPosition:d,onTap:w,disabled:Qk,aTagConfig:NG,customColors:V7,tooltipText:h.tooltip},L)}else h={style:"mono",type:"text",state:"active",size:"M"};h.focused=b();return h},r=function(){return iR3(g(),!!A().iconName)};
R=_.x(_.yy(!1,void 0,"WVXhrd"));T=R.next().value;var I=R.next().value,b=T;R=_.Qi(function(){var h=_.is().resolve(_.z3(_.rt));h&&I(h.isKeyBoardInUse());return!1});
T=_.Qi(function(){I(!1);return!1});
_.jq(function(){var h,L=_.n(A==null?void 0:(h=A())==null?void 0:h.onVisible,_.CC);L&&_.oZ(L,{disableClickTracking:!0})},"w0lGYc");
var p=_.v("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");return _.V("button-view-model",{el:y,class:_.To("ytSpecButtonViewModelHost",Y),"on:focusin":R,"on:focusout":T},_.V(_.J,{cond:function(){var h;return(A==null?0:(h=A())==null?0:h.iconImage)?{sources:[A().iconImage]}:void 0},
then:function(h){return _.V(_.SV,{data:g,icon:function(){return _.V(_.P1,{data:h,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:p})},
else:function(){return _.V(_.SV,{data:g,icon:function(){return _.V(_.H1,{icon:m,active:function(){return(E==null?0:E())?!1:g().toggled},
animateIcon:function(){var h;return!!(P==null?0:(h=P())==null?0:h.animateIcon)},
size:r})},
clientOnlyWizTooltipsEnabled:p})}}))},"x");
_.Is.idomCompat={callbacks:{onClick:!0}};_.Ow(_.E5(function(R){return _.V("yt-button-view-model",{id:R.id,class:_.To(R.scopingClassName,R.classes),icon:function(){var A;return(A=R.icon)==null?void 0:A.call(R)},
"dialog-dismiss":function(){var A;return((A=R.dialogDismiss)==null?0:A.call(R))?"":void 0}},_.V(_.Is,{data:function(){var A;
return(A=R.data)==null?void 0:A.call(R)},
className:function(){var A;return(A=R.className)==null?void 0:A.call(R)},
style:function(){var A;return(A=R.style)==null?void 0:A.call(R)},
useOutlinedIcon:function(){var A;return(A=R.useOutlinedIcon)==null?void 0:A.call(R)},
buttonOverrides:function(){var A;return(A=R.buttonOverrides)==null?void 0:A.call(R)},
animatedTextProps:function(){var A;return(A=R.animatedTextProps)==null?void 0:A.call(R)},
onClick:function(A){var Y;return(Y=R.onClick)==null?void 0:Y.call(R,A)}}))},"y"),"yt-button-view-model",{props:{data:_.VY,
className:_.VY,style:_.VY,useOutlinedIcon:_.VY,buttonOverrides:_.VY,animatedTextProps:_.VY,onClick:_.xL,scopingClassName:_.VY,id:_.VY,icon:_.VY,dialogDismiss:_.VY,classes:_.VY,target:_.xL}});_.Ow(_.E5(function(R){var A=R.data;var Y=R.id;var P=R.className;var E=R.iconName;var z=R.animateIcon;var c=R.secondaryIconName;R=_.x(_.yy(!1,void 0,"TtJl8"));var M=R.next().value,N=R.next().value,y=function(){var T=_.is().resolve(_.z3(_.rt));T&&N(T.isKeyBoardInUse())},m=function(){N(!1)};
R=_.LK("yt-button-shape",function(T){if(_.is().resolve(_.z3(_.rt)))return T.addEventListener("focusin",y),T.addEventListener("focusout",m),function(){T.removeEventListener("focusin",y);T.removeEventListener("focusout",m)}});
return _.V("yt-button-shape",{el:R,id:Y,class:P},_.V(_.J,{cond:A,then:function(){return _.V(_.SV,{data:A,iconName:E,secondaryIconName:c,focusedOverride:M,animateIcon:z})}}))},"z"),"yt-button-shape",{props:{data:_.VY,
id:_.VY,className:_.VY,iconName:_.VY,animateIcon:_.VY,secondaryIconName:_.VY,clientOnlyWizTooltipsEnabled:_.VY,disableUpgrade:_.VY},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var KH=function(){var R=_.K.apply(this,arguments)||this;R.isGoalActive=!0;return R};
_.H(KH,_.K);KH.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
KH.prototype.progressBarChanged=function(){var R=_.Mo(this.hostElement).querySelector("#progress-bar-progress"),A,Y,P,E=(P=Number((A=this.creatorGoalState)==null?void 0:A.currentGoalCount)/Number((Y=this.creatorGoalState)==null?void 0:Y.totalGoalCount)*100)!=null?P:0,z;R.style.width=((z=Math.min(E,100))!=null?z:0)+"%"};
KH.prototype.goalStateChanged=function(){var R;this.isGoalActive=((R=this.creatorGoalState)==null?void 0:R.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var A;R={"--yt-progress-bar-color":N_V((A=this.creatorGoalState)==null?void 0:A.progressBarColor)};_.ya(this.hostElement,R)};
KH.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Yh.Object.defineProperties(KH.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var R;return this.isGoalActive&&!((R=this.creatorGoalState)==null||!R.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.creatorGoalState)==null?0:R.endTimestampMs){var A;R=Number((A=this.creatorGoalState)==null?void 0:A.endTimestampMs)/1E3;return{seconds:String(R)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.creatorGoalState)==null?0:R.themedTargetImage){var A;R=_.n((A=this.creatorGoalState)==null?void 0:A.themedTargetImage,Olq);return this.isAppDarkTheme()?R==null?void 0:R.imageDark:R==null?void 0:R.imageLight}}}});
_.Yh.Object.defineProperties(KH,{template:{configurable:!0,enumerable:!0,get:function(){return orf()}}});
KH.prototype.goalStateChanged=KH.prototype.goalStateChanged;KH.prototype.progressBarChanged=KH.prototype.progressBarChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],KH.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);
_.C([_.S({selectorArgs:["data.creatorGoalEntityKey"],selector:function(R,A){return _.mc(R.entities,"creatorGoalEntity",A)}}),
_.k("design:type",Object)],KH.prototype,"creatorGoalState",void 0);_.C([_.S(),_.k("design:type",Object)],KH.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],KH.prototype,"isGoalActive",void 0);_.C([_.X("creatorGoalState","isGoalActive"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KH.prototype,"shouldShowCountdown",null);_.C([_.X("creatorGoalState"),_.k("design:type",Object),_.k("design:paramtypes",[])],KH.prototype,"endTimestamp",null);
_.C([_.X("creatorGoalState"),_.k("design:type",Object),_.k("design:paramtypes",[])],KH.prototype,"targetIconThemedImage",null);_.C([_.vZ("creatorGoalState.currentGoalCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KH.prototype,"progressBarChanged",null);_.C([_.vZ("creatorGoalState.creatorGoalState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KH.prototype,"goalStateChanged",null);
_.C([_.CG({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],KH);_.B(KH,"yt-creator-goal-progress-flow-view-model",function(){return orf()},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var yy8;var mkb;var WX=function(){return _.K.apply(this,arguments)||this};
_.H(WX,_.K);WX.prototype.attached=function(){var R,A,Y;if(this==null?0:(R=this.data)==null?0:(A=R.pdgPurchasedBumperLoggingDirectives)==null?0:(Y=A.loggingDirectives)==null?0:Y.trackingParams){var P,E,z;$QJ(this==null?void 0:(P=this.data)==null?void 0:(E=P.pdgPurchasedBumperLoggingDirectives)==null?void 0:(z=E.loggingDirectives)==null?void 0:z.trackingParams)}};
WX.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],WX.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],WX.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],WX);
_.B(WX,"yt-live-chat-item-bumper-view-model",function(){if(mkb===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;yy8===void 0&&(yy8=document.createElement("template"));var P=yy8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);mkb=R}R=mkb;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var TWZ;var Qqq;_.dl=function(R,A){this.data=R;this.actions=A;this.data=R;this.actions=A};
_.Go=function(){};_.jV={};_.jV.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(R,A){X5V(this.hostElement,R,A)},
getNavigationEndpointPopupAction:function(R){return SNJ(R,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(R,A){IvV(this.hostElement,R,A,this.openPopupConfig)}};var ClI=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.bF={};
_.bF.YtEndpointBehavior=[_.jV.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.a1("openPopupConfig");(this.useClickHandler=_.CQ("useClickHandler",!1))?this.hostElement.addEventListener("click",my(this,this.onEndpointClick_)):(by(this.hostElement,"tap",my(this,this.onEndpointTap_)),by(this.hostElement,"touchend",my(this,this.onEndpointTouchEnd_)));by(this.hostElement,"touchstart",my(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
my(this,this.onEndpointTapStart_))},
onEndpointClick_:function(R){jdJ(this.hostElement,R,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(R){var A=this.hostElement,Y=this.openPopupConfig,P=this.disableCommandHandlerOverride;P=P===void 0?!1:P;var E=KRk(R);if(E){E.href&&uk(E.href);var z=R.detail;var c=z.sourceEvent;z=z.preventer;c=c.button!==void 0?c.button===0&&!$L(c):z?!$L(z):!0;E.data&&c&&WRJ(A,E,R,Y,P)}},
onEndpointTouchEnd_:function(R){$L(R)||KRk(R)&&R.preventDefault()},
onEndpointTapStart_:function(R){BDk(R)}}];_.fH={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(R){for(var A=_.ZA.getInstance(),Y=_.x(Object.keys(R)),P=Y.next();!P.done;P=Y.next()){var E=P.value;P=R[E];if(this&&this[P]){var z=A.actionRoutingMap.get(E);z||(z=new Map,A.actionRoutingMap.set(E,z));A.registerActionHandler(this,E,this[P].bind(this),z)}else E=Error("kd"),E.params=P,_.hv(E)}},
unregisterActionMap:function(R){_.e_(_.ZA.getInstance(),R,this)}}]};var IE=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_"+(_.v("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.v("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.v("enable_web_delhi_icons")?120:60,lazyLoad:!0}],["LIKE_DELHI_PLAYER",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v5.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_DELHI_PLAYER",totalFrames:120,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:_.v("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light_v4.json":
"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",pathDarkTheme:_.v("enable_web_delhi_icons")?"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark_v4.json":"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:_.v("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Si;var KY=new Map;var Rfk=window.matchMedia("(forced-colors: active)").matches;var vvE;var gvA;var nvZ=new _.cP("LOTTIE_LOADER_TOKEN");_.pH=_.E5(function(R){var A=R.data;var Y=R.className;var P=R.animationName;var E=R.animationRef;var z=R.elRefForInterop;var c=_.d5("lottie-component"),M;_.bm(function(){var y;return void((y=M)==null?void 0:y.destroy())});
var N;_.jq(function(){var y=_.pX(P);if(y!==N){N=y;var m=Object.assign({},{animationName:y,animationRef:_.pX(E)},_.pX(A));try{_.is().resolve(nvZ)().then(function(g){var r;(r=M)==null||r.destroy();var I,b;r=(b=z==null?void 0:(I=z())==null?void 0:I.value)!=null?b:c.value;I=m.animationRef;b=m.listeners;g=g.loadAnimation(Object.assign({},{container:r},m.animationConfig));I&&(I.lottieEl=g);if(b)for(r=_.x(Object.entries(b)),I=r.next();!I.done;I=r.next())b=_.x(I.value),I=b.next().value,(b=b.next().value)&&
g.addEventListener(I,b);M=g})}catch(g){y=g;
var T="LottieComponent error.";y.message&&(T+=" Original description: "+y.message);_.F8(y,T);_.pK(y);var Q;((Q=m.listeners)==null?0:Q.error)&&m.listeners.error(y)}}},"nrJISd");
return _.V(ohS,{cond:function(){return!(z==null?0:z())},
then:function(){return _.V("lottie-component",{class:_.To("ytLottieComponentHost",Y),el:c})}})},"A");_.Ow(_.E5(function(R){return _.V("ytd-lottie-player",{id:R.id,hidden:R.hidden,class:R.className,"aria-label":R.ariaLabel,style:"display: block;"},_.V(_.pH,{data:R.data,animationName:function(){var A;return((A=R.data().animationConfig)==null?void 0:A.name)||""},
animationRef:function(){return R.data().animationRef}}))},"B"),"ytd-lottie-player",{props:{data:_.VY,
id:_.VY,hidden:_.VY,className:_.VY,ariaLabel:_.VY}});var Fm=function(){var R=_.K.apply(this,arguments)||this;R.animationRef={};R.delhiIconsEnabled=_.v("enable_web_delhi_icons");return R};
_.H(Fm,_.K);_.l=Fm.prototype;
_.l.handlePropertyChange=function(){var R=this.animatedIcon,A=this.active,Y=this.isDarkTheme;if(R){var P=this.previousActive!==A;this.previousActive=A;this.animationRef.lottieEl?P&&this.toggleAnimation(A,R.totalFrames):A?this.initializeAnimationAsToggled(R.lottiePlayerProps,R.totalFrames):this.initializeAnimationAsUntoggled(R.lottiePlayerProps);R.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=R.type;this.lottiePlayerProps=this.computeLottiePlayerProps(R,Y)}};
_.l.computeLottiePlayerProps=function(R,A){var Y=this.deepCloneLottiePlayerProps(R);A?(A=R.nameDarkTheme,R=R.pathDarkTheme):(A=R.name,R=R.path);Y.animationConfig.name=A;(A=KY.get(R))?Y.animationConfig.animationData=A:Y.animationConfig.path=R;return Y};
_.l.initializeAnimationAsToggled=function(R,A){R.animationConfig.initialSegment=[A-1,A]};
_.l.initializeAnimationAsUntoggled=function(R){R.animationConfig.initialSegment=void 0};
_.l.toggleAnimation=function(R,A){if(R){var Y;(Y=this.animationRef.lottieEl)==null||Y.playSegments([0,A],!0)}else{var P;(P=this.animationRef.lottieEl)==null||P.playSegments([0,1],!0)}};
_.l.deepCloneLottiePlayerProps=function(R){var A=Object.assign({},R.lottiePlayerProps.animationConfig);R=Object.assign({},R.lottiePlayerProps);R.animationConfig=A;return R};
Fm.prototype.handlePropertyChange=Fm.prototype.handlePropertyChange;_.C([_.S(),_.k("design:type",Object)],Fm.prototype,"animatedIcon",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Fm.prototype,"active",void 0);_.C([_.S(),_.k("design:type",Boolean)],Fm.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],Fm.prototype,"animatedIconType",void 0);_.C([_.S(),_.k("design:type",Boolean)],Fm.prototype,"previousActive",void 0);
_.C([_.S(),_.k("design:type",Object)],Fm.prototype,"lottiePlayerProps",void 0);_.C([_.S(),_.k("design:type",Object)],Fm.prototype,"animationRef",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Fm.prototype,"delhiIconsEnabled",void 0);_.C([_.vZ("animatedIcon","active","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fm.prototype,"handlePropertyChange",null);_.C([_.CG({is:"yt-animated-icon",disableElementRegistration:!0})],Fm);
_.B(Fm,"yt-animated-icon",function(){if(gvA===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;vvE===void 0&&(vvE=document.createElement("template"));var P=vvE;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);gvA=R}R=gvA;return R},{mode:2});var HLA;var ryA;var iVq=_.E5(function(R){var A=_.d5("span"),Y=bI(function(){return{value:null}});
_.bm(function(){var E;(E=Y.value)==null||E.cancel()});
var P=_.gE(R.data,{equals:function(E,z){return E.iconName===z.iconName&&E.iconStyle===z.iconStyle&&E.iconSize===z.iconSize&&E.iconSetName===z.iconSetName&&E.iconSelected===z.iconSelected}},"AoOoyf");
_.jq(function(){var E,z=(E=R.options)==null?void 0:E.call(R);zfk(A,Y,P(),z)},"Tie9e");
return _.V("span",{class:"yt-icon-shape",el:A})},"C");
iVq.idomCompat=!0;var PpI=["youtube_fill","youtube_outline"];var DkS=new _.pr({type:"iconset",value:void 0}),BX=function(){var R=_.K.apply(this,arguments)||this;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.iconName="";R.iconsetName="yt-icons";R.iconset=null;R.missingIconSet=!1;R.iconType=null;R.iconShapeDataSignal=_.yy(void 0,void 0,"b0v7Ac");R.renderingOptionsSignal=_.yy({iconWidth:"100%",iconHeight:"100%",iconFilter:R.iconFilter},void 0,"Ls6l3e");R.wizHasRendered=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(BX,_.K);BX.prototype.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R)};
BX.prototype.handlePropertyChange=function(){var R=this,A,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p;return _.O(function(h){switch(h.nextAddress){case 1:if(A=!R.icon&&!R.iconName||!R.isAttached)return h.return();Y=R;P=Y.icon;E=Y.size;z=Y.defaultToFilled;c=Y.active;M=Y.targetContainer;R.toggleContainerClass(M);_.v("kevlar_use_wil_icons")&&P&&(N=alJ(P),R.iconType=N.length?N[1]:null);if(P){h.jumpTo(2);break}R.iconsetName="";R.iconName="";return h.yield(R.renderIcon(M,P),3);case 3:return h.return();case 2:y=Ukf(P);
m=alJ(y);m.length&&(R.iconsetName=m[0],R.iconName=m[1]);if(!_.v("kevlar_use_wil_icons")){h.jumpTo(4);break}T=BX;Q=$kN;g=R.iconType;r=R.active;I=R.defaultToFilled;b=R.size;p=R.iconsetName;return h.yield(XhS(),6);case 6:return h.yield(Q.call(T,g,r,I,b,p,h.yieldResult),5);case 5:R.iconShapeData=h.yieldResult;case 4:if(R.shouldRenderIconShape(M)){h.jumpTo(7);break}return h.yield(R.determineIconSet(y,c,z,E,M),7);case 7:return h.yield(R.renderIcon(M,P),0)}})};
BX.prototype.toggleContainerClass=function(R){R?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var Ukf=function(R){return!_.v("default_to_innertube_icon")||R.indexOf(":")>0?R:_.m0(R)};
_.l=BX.prototype;_.l.determineIconSet=function(R,A,Y,P){var E=this;return _.O(function(z){return z.nextAddress==1?_.v("kevlar_system_icons")||_.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.a1("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?z.yield(E.switchToYtSysIconset(R,A,Y,P),3):z.jumpTo(2):z.nextAddress!=2?z.return():z.yield(E.useYtSysIconsetForMissingIcons(R,A,Y,P),0)})};
_.l.switchToYtSysIconset=function(R,A,Y,P){var E=this,z,c,M,N,y,m,T;return _.O(function(Q){switch(Q.nextAddress){case 1:if(!R||E.iconsetName!=="yt-icons"&&E.iconsetName!=="yt-sys-icons"){Q.jumpTo(0);break}z=alJ(R);c=z[1];c=_.eX3(c);_.v("enable_polymer_icons_replace_underscores_dash")&&c.includes("_filled")&&(c=c.replace(/_filled/g,"-filled"));return Q.yield(yp(c,!0),3);case 3:return M=Q.yieldResult,Q.yield(yp(c,!1),4);case 4:if((N=Q.yieldResult)||A&&M)E.iconsetName="yt-sys-icons";E.iconName=E.getIconName(c,
A,Y,N,M);if(P===24){Q.jumpTo(0);break}y="yt-sys-icons"+P+":"+E.iconName;return Q.yield(yp(y,!1,!0),6);case 6:return m=Q.yieldResult,Q.yield(yp(y,!0,!0),7);case 7:T=Q.yieldResult;E.iconName=E.getIconName(c,A,Y,m,T);if(!A&&m||A&&T)E.iconsetName="yt-sys-icons"+P;_.XH(Q)}})};
_.l.getIconName=function(R,A,Y,P,E){R.includes("-filled")&&(R=R.replace("-filled",""));return E&&(A||Y)?R+"-filled":R};
_.l.useYtSysIconsetForMissingIcons=function(R,A,Y,P){var E=this,z,c;return _.O(function(M){if(M.nextAddress==1)return E.iconsetName!=="yt-icons"?M.jumpTo(0):M.yield(yp(E.iconName,!1,!1,!0),3);if(M.nextAddress!=4)return z=M.yieldResult,M.yield(yp(E.iconName,!1),4);c=M.yieldResult;if(z||!c)return M.jumpTo(0);E.iconsetName="yt-sys-icons";return M.yield(E.switchToYtSysIconset(R,A,Y,P),0)})};
_.l.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var XhS=function(){return _.O(function(R){try{return R.return(_.is().resolve(_.Tj))}catch(A){return R.return(new Promise(function(Y){_.EV().parkOrScheduleJob(function(){Y(_.is().resolve(_.Tj))},2,"ci")}))}})},$kN=function(R,A,Y,P,E,z){P=P===void 0?24:P;
if(R){R=R.toLowerCase();var c=R.endsWith("_filled")||R.endsWith("-filled");A={iconName:R,iconStyle:(A===void 0?0:A)||(Y===void 0?0:Y)||c?"youtube_fill":"youtube_outline",iconSize:P,iconSetName:E===void 0?"yt-icons":E};Y=!!z.resolveIcon(A);Y||(A.iconSize=void 0,Y=!!z.resolveIcon(A));!Y&&c&&(A.iconName=R.substring(0,R.length-7),A.iconSize=P,Y=!!z.resolveIcon(A),Y||(A.iconSize=void 0,Y=!!z.resolveIcon(A)));Y||(A.iconStyle=void 0,Y=!!z.resolveIcon(A));Y||_.pK(new _.XN("Icon not supported",{iconName:A.iconName,
iconStyle:A.iconStyle,iconSize:A.iconSize,iconType:R}));return Y?A:void 0}};
_.l=BX.prototype;_.l.shouldRenderIconShape=function(R){if(!_.v("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;R=this.getContainer(R);return!A28(R,this.icon)};
_.l.renderIcon=function(R,A){var Y=this,P,E,z,c,M,N,y,m;return _.O(function(T){switch(T.nextAddress){case 1:if(A&&Y.icon!==A)return T.return();P=Y.getContainer(R);E=A28(P,Y.icon);if(Y.shouldRenderIconShape(R)&&Y.iconType)return Y.applyIconShape(E,P),T.return();Y.removeIconShape();if(!P)return T.return();Y.iconName===""&&Y.iconset&&P&&(Y.removeStaticIcon(Y.iconset,P),E&&Y.removeAnimatedIcon(P));if(Y.iconName===""&&Y.iconset||!Y.iconsetName||!DkS)return T.return();Y.iconset=DkS.byKey(Y.iconsetName);
if(!Y.iconset)return Y.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.T2(Y,Y.onIconsetAdded)),T.return();Y.missingIconSet&&(Y.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.T2(Y,Y.onIconsetAdded)));c=(z=E||Y.isAnimatedIcon?LRq(Y.icon):void 0)&&!z.lazyLoad;N=z&&((M=z)==null?void 0:M.lazyLoad)&&(z.lottiePlayerProps.animationConfig.animationData?!0:KY.get(Y.isDarkTheme?z.pathDarkTheme:z.path)?!0:!1);if(c||N)return Y.applyAnimatedIcon(P,z,Y.iconset),T.return();if(N||
(y=z)==null||!y.lazyLoad){T.jumpTo(2);break}m=PRS(z,Y.isDarkTheme);Y.applyStaticIcon(Y.iconset,P,Y.iconName,R,E);return T.yield(m,3);case 3:return T.yield(Y.renderIcon(Y.targetContainer,Y.icon),4);case 4:return T.return();case 2:Y.applyStaticIcon(Y.iconset,P,Y.iconName,R,E),_.XH(T)}})};
_.l.getContainer=function(R){var A,Y=(A=lqu(this.hostElement))==null?void 0:A.host;A=!!Y&&!!Y.polymerController;if(!R||A)return R?this.getTargetContainer(R,Y):this.hostElement};
_.l.getTargetContainer=function(R,A){var Y=_.Mo(A).querySelector("#"+R);Y||(R=new _.XN("yt-icon container missing",A.is,R),_.bj(R));return Y};
_.l.applyStaticIcon=function(R,A,Y,P,E){E&&this.removeAnimatedIcon(A);this.removeIconShape();E=E&&!!this.iconType&&!!this.iconShapeData&&_.v("kevlar_use_wil_icons");try{E?this.applyIconShape(!1,A):R.applyIcon(A,Y)}catch(z){this.handleError(z,P,A)}};
_.l.applyIconShape=function(R,A){this.iconset&&A&&(this.removeStaticIcon(this.iconset,A),R&&this.removeAnimatedIcon(A));R={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var Y=_.x(this.iconShapeDataSignal);A=Y.next().value;Y=Y.next().value;var P=_.x(this.renderingOptionsSignal),E=P.next().value;P=P.next().value;Y(this.iconShapeData);P(R);if(!this.wizHasRendered)for(this.wizHasRendered=!0,R=_.x(lal(A,E)).next().value;R.firstChild;)_.Mo(this.hostElement).appendChild(R.firstChild)};
_.l.removeIconShape=function(){if(_.v("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.l.removeStaticIcon=function(R,A){R.removeIcon(A)};
_.l.applyAnimatedIcon=function(R,A,Y){this.removeStaticIcon(Y,R);this.removeIconShape();var P;Y=this.animatedIconElement&&((P=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:P.type)===A.type;if(this.animatedIconElement&&Y){this.animatedIconElement.polymerController.animatedIcon=A;var E;((E=this.animatedIconElement)==null?void 0:E.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(R),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=A,this.animatedIconElement.polymerController.active=this.active,_.v("delhi_modern_web_player_icons")?(A=dQ3(R,this.icon)&&R.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=A?A.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.v("kevlar_use_wil_icons")?
R.insertBefore(this.animatedIconElement,R.childNodes[0]):(R=_.Mo(R),R.insertBefore(this.animatedIconElement,R.childNodes[0]))};
_.l.removeAnimatedIcon=function(R){_.v("kevlar_use_wil_icons")?this.animatedIconElement&&R.contains(this.animatedIconElement)&&R.removeChild(this.animatedIconElement):(R=_.Mo(R),this.animatedIconElement&&R.contains(this.animatedIconElement)&&R.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.l.handleError=function(R,A,Y){_.F8(R,this.iconName,A,Y);A=A28(Y,this.icon);var P=!1;window.location.href.includes("JpymaW6Lh2w")?P=!0:Y._svgIcon&&(Y=(Y=Y._svgIcon.parentNode)?Y.tagName:"unknown",_.F8(R,Y),Y==="YT-ICON"&&R.name==="NotFoundError"?P=!0:R.name==="NotFoundError"&&A&&(P=!0));P?_.pK(R):_.bj(R)};
_.Yh.Object.defineProperties(BX,{template:{configurable:!0,enumerable:!0,get:function(){if(ryA===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;
HLA===void 0&&(HLA=document.createElement("template"));var P=HLA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ryA=R}R=ryA;return R}}});
BX.prototype.handlePropertyChange=BX.prototype.handlePropertyChange;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],BX.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",String)],BX.prototype,"icon",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],BX.prototype,"active",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],BX.prototype,"defaultToFilled",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],BX.prototype,"isAnimatedIcon",void 0);
_.C([_.S({value:24}),_.k("design:type",Number)],BX.prototype,"size",void 0);_.C([_.S({value:""}),_.k("design:type",String)],BX.prototype,"targetContainer",void 0);_.C([_.S(),_.k("design:type",Object)],BX.prototype,"animatedIconElement",void 0);_.C([_.S(),_.k("design:type",Object)],BX.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],BX.prototype,"ariaHidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],BX.prototype,"ariaLabel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],BX.prototype,"role",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],BX.prototype,"tabindex",void 0);_.C([_.S(),_.k("design:type",String)],BX.prototype,"style",void 0);_.C([_.S(),_.k("design:type",String)],BX.prototype,"iconFilter",void 0);
_.C([_.vZ("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],BX.prototype,"handlePropertyChange",null);_.C([_.CG({is:"yt-icon",noInjection:!0})],BX);var x7u="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),OVJ=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var Sqq={};Sqq.YtPlaintextBehavior=[_.Kr,{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(R){R.preventDefault();R=R.clipboardData.getData("text/plain");document.execCommand("insertText",!1,R)},
preventRichTextFormatting_:function(R){_.sk&&(R=R.detail.keyboardEvent,R.stopImmediatePropagation(),R.preventDefault())}}];var IKZ;var KnD;var as=function(){var R=_.K.apply(this,arguments)||this;R.ignoreShadyDom=!1;R.hasChange_=!1;R.hasSetTitle_=!1;R.useIOObserverForVisibilityLogging_=_.v("kevlar_use_vimio_behavior")&&_.a1("INNERTUBE_CLIENT_NAME")==="WEB";R.ytFormattedStringObserverHandlerKeys_=void 0;return R};
_.H(as,_.K);_.l=as.prototype;_.l.created=function(){this.useIOObserverForVisibilityLogging_=_.v("kevlar_use_vimio_behavior")&&_.a1("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.l.ready=function(){_.a1("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_()};
_.l.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.l.detached=function(){this.unobserveIOObservers_()};
_.l.clearContents_=function(){for(var R=this.getRoot(),A=R.lastChild;A&&A.tagName!=="STYLE";){try{R.removeChild(A)}catch(Y){break}A=R.lastChild}};
_.l.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var R=_.x(this.ytFormattedStringObserverHandlerKeys_),A=R.next();!A.done;A=R.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(A.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.l.resetForAttributedString=function(){var R=this.getRoot();!R.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),R.appendChild(this.ytAttributedStringElementRef))};
_.l.resetForFormattedString=function(){var R=this.getRoot(),A=R.querySelector("yt-attributed-string");A&&(this.ytAttributedStringElementRef=R.removeChild(A))};
_.l.textChanged=function(){this.textChanged_(this.text)};
_.l.textChanged_=function(R){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!R||!R.runs&&!R.simpleText;if(_.v("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var A=this.hostElement.firstChild;A&&A.nodeName==="FONT";){var Y=A;A=A.nextSibling;this.hostElement.removeChild(Y)}A=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
Y=R.simpleText;var P;!Y&&((P=R.runs)==null?void 0:P.length)===1&&this.isSimpleString_(R.runs[0])&&(Y=R.runs[0].text);Y!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.a1("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(Y!==void 0){try{A.textContent=Y}catch(E){}A.textContent||(this.isEmpty=!0)}else R=R.runs,Y!==void 0&&(R=[{text:Y}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),R&&this.updateText_(R),
A.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.l.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)};
_.l.computeAriaLabel_=function(R){return R};
_.l.computeEllipsisTruncateStyling=function(R,A){return R&&!A};
_.l.computeUseAttributedString=function(R){return _.v("web_replace_formatted_with_attributed_string")&&SSV(R)&&!this.disableAttributedString&&!this.enableContentEditable};
_.l.setNodeStyle_=function(R,A){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.v("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?A.removeAttribute("dir"):A.setAttribute("dir","auto");A.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");A.style.color="";var Y=null;this.noStyles||(R.bold&&(A.classList.add("bold"),Y="bold"),R.deemphasize&&(A.classList.add("deemphasize"),Y="deemphasize"),R.italics&&A.classList.add("italic"),
R.strikethrough&&A.classList.add("strikethrough"),R.errorUnderline&&(A.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),R.bracket&&A.classList.add("bracket"),R.textColor&&(A.style.color=_.G9(R.textColor)));Y!==A.getAttribute("style-target")&&(Y?A.setAttribute("style-target",Y):A.removeAttribute("style-target"))};
_.l.setUpVisibilityLogging_=function(R,A){var Y=this;this.setNodeTrackingParams_(R,A);var P;((P=A.data)==null?0:P.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(R=this.ytRendererBehavior.visibilityObserver.observe(A,function(E){var z=Y.ytRendererBehavior.getVisibilityLogger();z&&z.reportShown(E)},this.ytRendererBehavior.visibilityOptionVisible_),A=this.ytRendererBehavior.visibilityObserver.observe(A,function(E){var z=Y.ytRendererBehavior.getVisibilityLogger();
z&&z.reportHidden(E)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(R),this.ytFormattedStringObserverHandlerKeys_.push(A))};
_.l.setNodeTrackingParams_=function(R,A){A.data||(A.data={});if((R=R.loggingDirectives?R.loggingDirectives.trackingParams:null)||A.data.trackingParams)A.data.trackingParams=R};
_.l.computeHasLinkOnly_=function(R){return!(!R||R.length!==1||this.noEndpoints||!R[0].navigationEndpoint)};
_.l.getRoot=function(){var R=this.buildScopeDomOptions();return this.enableContentEditable?_.Mo(_.Mo(this.hostElement,R).querySelector("[contenteditable]")):_.Mo(this.hostElement,R)};
_.l.fixContenteditableScope=function(){var R=function(A){A&&(A.nodeType===1&&A.classList&&(A.classList.add("style-scope"),A.classList.add("yt-formatted-string")),A.childNodes&&A.childNodes.forEach(function(Y){R(Y)}))};
R(this.getRoot())};
_.l.updateText_=function(R){for(var A=R.length,Y=this.getRoot(),P=Y.firstChild;P&&P.nodeName==="STYLE";)P=P.nextSibling;for(var E=0;E<A&&P;){var z=R[E],c=_.v("remove_cr_char")&&z.text?z.text.replace("\r",""):z.text;if(this.isSimpleString_(z)&&!this.useMixedDirectionFormattedStrings)if(P.nodeName==="#text"){P.textContent!=c&&(P.textContent=c);E++;P=P.nextSibling;continue}else break;if(_.n(z,Bc))break;else if(!this.noEndpoints&&z.navigationEndpoint){if(P.nodeName!=="A")break;this.setDataOnAnchor_(P,
z.navigationEndpoint)}else if(P.nodeName!=="SPAN")break;this.setNodeStyle_(z,P);this.setUpVisibilityLogging_(z,P);P.textContent!=c&&(P.textContent=c);E++;P=P.nextSibling}if(P)for(z=Y.lastChild,P=E?P.previousSibling:null;z&&z!=P;){try{Y.removeChild(z)}catch(M){break}z=Y.lastChild}E!==A&&this.addTextNodes_(R,E)};
_.l.addTextNodes_=function(R,A){for(var Y=document.createDocumentFragment(),P=R.length;A<P;A++){var E=R[A],z=_.v("remove_cr_char")&&E.text?E.text.replace("\r",""):E.text;if(this.isSimpleString_(E)&&!this.useMixedDirectionFormattedStrings)Y.appendChild(document.createTextNode(z));else{var c=_.n(E,Bc);if(c){if(c.image){var M=document.createElement("img");c.isCustomEmoji||M.classList.add("small-emoji");M.classList.add("emoji");c.isCustomEmoji&&(M.dataset.emojiId=c.emojiId);M.src=_.MH(c.image.thumbnails,
this.emojiSize);(E=this.get("image.accessibility.accessibilityData.label",c))?M.alt=E:c.shortcuts&&c.shortcuts.length>0?M.alt=c.shortcuts[0]:c.emojiId&&(M.alt=c.emojiId);Y.appendChild(M);this.hasEmoji=!0}}else!this.noEndpoints&&E.navigationEndpoint?(M=document.createElement("a"),M.classList.add("yt-simple-endpoint"),M.setAttribute("spellcheck","false"),this.setDataOnAnchor_(M,E.navigationEndpoint)):M=document.createElement("span"),this.setNodeStyle_(E,M),this.setUpVisibilityLogging_(E,M),M.appendChild(document.createTextNode(z)),
Y.appendChild(M)}}this.getRoot().appendChild(Y)};
_.l.isSimpleString_=function(R){return(this.noEndpoints||!R.navigationEndpoint)&&!_.n(R,Bc)&&(this.noStyles||!(R.bold||R.deemphasize||R.italics||R.strikethrough||R.errorUnderline||R.bracket||R.textColor))&&!R.loggingDirectives};
_.l.getRawText=function(){return _.R4(this.text)};
_.l.getFirstRunText=function(){var R;if(((R=this.text)==null?0:R.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.l.setFirstRunText=function(R){var A;((A=this.text)==null?0:A.runs)&&this.text.runs[0]&&(this.text.runs[0].text=R,this.textChanged_(this.text))};
_.l.setDataOnAnchor_=function(R,A){var Y=this;!_.v("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(A)||this.isSignalServiceEndpoint_(A)?(R.onclick=this.serviceEndpointHandler_(A),wZ(R,"#")):fk6({text:this.text,command:A},function(){wTJ(R,A,Y.target)})};
_.l.isServiceEndpoint_=function(R){var A;return!((A=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null||!A.sendPost)};
_.l.isSignalServiceEndpoint_=function(R){return!!_.n(R,_.mZ)};
_.l.serviceEndpointHandler_=function(R){var A=this;return function(Y){_.sC(A.hostElement,[R]);Y.preventDefault()}};
_.l.overrideAriaLabelChanged_=function(){var R=this.getRoot();this.enableContentEditable&&R&&R.setAttribute("aria-label",this.overrideAriaLabel)};
_.l.enableContentEditableChanged_=function(){var R=this,A=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),A=_.Mo(this.hostElement,A),!A.lastChild||A.lastChild instanceof HTMLElement&&A.lastChild.id!=="contenteditable-root"){var Y=document.createElement("div");Y.id="contenteditable-root";Y.setAttribute("contenteditable","true");Y.setAttribute("dir","auto");Y.onfocus=function(){R.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
A.appendChild(Y);this.overrideAriaLabel&&Y.setAttribute("aria-label",this.overrideAriaLabel)}}else Y=_.sl(this.hostElement).firstChild,Y instanceof HTMLElement&&Y.id==="contenteditable-root"&&_.Mo(this.hostElement,A).removeChild(Y)};
_.l.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.l.getNodesForVisibilityLogging_=function(){return _.zx(this.getRoot().childNodes,function(R){var A;return!((A=R.data)==null||!A.trackingParams)})};
_.l.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.l.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var R=this.ytRendererBehavior.getVisibilityLogger();R&&this.getNodesForVisibilityLogging_().forEach(function(A){R.reportShown(A)})}};
_.l.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var R=this.ytRendererBehavior.getVisibilityLogger();R&&this.getNodesForVisibilityLogging_().forEach(function(A){R.reportHidden(A)})}};
_.Yh.Object.defineProperties(as.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.v("enable_mixed_direction_formatted_strings")}}});
as.prototype.enableContentEditableChanged_=as.prototype.enableContentEditableChanged_;as.prototype.overrideAriaLabelChanged_=as.prototype.overrideAriaLabelChanged_;as.prototype.ellipsisTruncateChanged_=as.prototype.ellipsisTruncateChanged_;as.prototype.textChanged=as.prototype.textChanged;_.C([_.U(Sqq.YtPlaintextBehavior),_.k("design:type",Object)],as.prototype,"ytPlaintextBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],as.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],as.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],as.prototype,"text",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"noEndpoints",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"noStyles",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],as.prototype,"isDarkTheme",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],as.prototype,"splitLines",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],as.prototype,"forceDefaultStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],as.prototype,"ellipsisTruncate",void 0);_.C([_.S(),_.k("design:type",Object)],as.prototype,"ignoreShadyDom",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.k("design:type",Boolean)],as.prototype,"ellipsisTruncateStyling",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.k("design:type",String)],as.prototype,"ariaLabel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],as.prototype,"isEmpty",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.k("design:type",Boolean)],as.prototype,"hasLinkOnly_",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"hasEmoji",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"disableAttributedString",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"isOverlay",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"linkInheritColor",void 0);
_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"noPreWrap",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"userInput",void 0);_.C([_.S({value:16}),_.k("design:type",Number)],as.prototype,"emojiSize",void 0);_.C([_.S(),_.k("design:type",String)],as.prototype,"target",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"enableContentEditable",void 0);_.C([_.S(),_.k("design:type",String)],as.prototype,"overrideAriaLabel",void 0);
_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"respectHtmlDir",void 0);_.C([_.S(),_.k("design:type",Boolean)],as.prototype,"respectLangDir",void 0);_.C([_.X("plaintextOnly"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],as.prototype,"useMixedDirectionFormattedStrings",null);_.C([_.S({computed:"computeUseAttributedString(text)"}),_.k("design:type",Boolean)],as.prototype,"useYtAttributedString",void 0);
_.C([_.vZ("text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],as.prototype,"textChanged",null);_.C([_.vZ("ellipsisTruncate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],as.prototype,"ellipsisTruncateChanged_",null);_.C([_.vZ("overrideAriaLabel"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],as.prototype,"overrideAriaLabelChanged_",null);
_.C([_.vZ("enableContentEditable"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],as.prototype,"enableContentEditableChanged_",null);_.C([_.CG({is:"yt-formatted-string",disableElementRegistration:!0})],as);
_.B(as,"yt-formatted-string",function(){if(KnD===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;IKZ===void 0&&(IKZ=document.createElement("template"));var P=IKZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);KnD=R}R=KnD;return R});var WnA;var jqS;var bLS;var fKG;var CH=function(){var R=_.K.apply(this,arguments)||this;R.focused=!1;R.disabled=!1;R.isOverlay=!1;return R};
_.H(CH,_.K);CH.prototype.triggerDown=function(){if(!this.disabled){_.No(this.hostElement,"down",!0);var R;(R=this.currentAnimation)==null||R.cancel()}};
CH.prototype.triggerUp=function(){if(!this.disabled){_.No(this.hostElement,"down",!1);var R=this.fillElement;var A=this.strokeElement;typeof GroupEffect==="function"?(R=new GroupEffect([Aul(R),YN3(A)]),R=new Animation(R,document.timeline)):R=new EvA(R,A);this.currentAnimation=R;var Y;(Y=this.currentAnimation)==null||Y.play()}};
_.C([_.nG(".stroke"),_.k("design:type",HTMLElement)],CH.prototype,"strokeElement",void 0);_.C([_.nG(".fill"),_.k("design:type",HTMLElement)],CH.prototype,"fillElement",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],CH.prototype,"focused",void 0);_.C([_.S(),_.k("design:type",Object)],CH.prototype,"disabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],CH.prototype,"isOverlay",void 0);_.C([_.CG({is:"yt-interaction",disableElementRegistration:!0})],CH);
_.B(CH,"yt-interaction",function(){if(fKG===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;bLS===void 0&&(bLS=document.createElement("template"));var P=bLS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);fKG=R}R=fKG;return R},{mode:2});var hQ=function(){return _.K.apply(this,arguments)||this};
_.H(hQ,_.K);_.l=hQ.prototype;_.l.ready=function(){var R=this,A=_.Mo(this.hostElement).querySelector("#button");A.addEventListener("focus",function(){z6A||(z6A=new EzE);R.keyboardFocused=z6A.isKeyBoardInUse()});
A.addEventListener("blur",function(){R.keyboardFocused=!1;R.rippleUp_()})};
_.l.computeTabIndex_=function(R){return R?-1:0};
_.l.computeButtonAriaPressed_=function(R){if(this.toggleable)return R?"true":"false"};
_.l.rippleDown_=function(){_.Mo(this.hostElement).querySelector("#interaction").triggerDown()};
_.l.rippleUp_=function(){_.Mo(this.hostElement).querySelector("#interaction").triggerUp()};
_.l.onPressedChanged_=function(){var R=_.sl(_.Mo(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.sl(_.Mo(this.hostElement).querySelector("#button")).children[0];R&&(R.active=this.pressed)};
hQ.prototype.onPressedChanged_=hQ.prototype.onPressedChanged_;hQ.prototype.rippleUp_=hQ.prototype.rippleUp_;hQ.prototype.rippleDown_=hQ.prototype.rippleDown_;_.C([_.S(),_.k("design:type",String)],hQ.prototype,"label",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],hQ.prototype,"disabled",void 0);_.C([_.S(),_.k("design:type",Boolean)],hQ.prototype,"pressed",void 0);_.C([_.S(),_.k("design:type",Object)],hQ.prototype,"toggleable",void 0);
_.C([_.S(),_.k("design:type",Boolean)],hQ.prototype,"untabbable",void 0);_.C([_.S(),_.k("design:type",Boolean)],hQ.prototype,"keyboardFocused",void 0);_.C([_.Qa("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hQ.prototype,"rippleDown_",null);_.C([_.Qa("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hQ.prototype,"rippleUp_",null);
_.C([_.vZ("pressed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hQ.prototype,"onPressedChanged_",null);_.C([_.CG({is:"yt-icon-button",disableElementRegistration:!0})],hQ);
_.B(hQ,"yt-icon-button",function(){if(jqS===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;WnA===void 0&&(WnA=document.createElement("template"));var P=WnA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);jqS=R}R=jqS;return R},{mode:2});var phD;var FnS=function(){var R=document.body,A=R.appendChild;if(phD===void 0){var Y=document.createElement("template");_.D(Y,'\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>');
phD=Y}Y=phD;A.call(R,Y.content)};
document.body?FnS():window.addEventListener("DOMContentLoaded",FnS);var BW7=_.Z7(["aria-"]),ku={};ku.YtRenderButtonBehavior=[_.u.YtRendererBehavior,_.bF.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!!_.is().resolve(_.z3(_.rt))&&_.v("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 R=this.computeHref_(this.endpoint,!0);R?wZ(this.elements_.endpoint,R):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){R=this.buttonClass.split(" ");R=_.x(R);for(var A=R.next();!A.done;A=R.next())A=A.value,_.No(this.hostElement,A,!0),this.elements_.button&&_.No(this.elements_.button,A,!0),this.elements_.text&&_.No(this.elements_.text,A,!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&&(R=null,this.buttonAccessibility&&(R=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=R:R?_.ie([_.Op(BW7)],this.elements_.button,"aria-label",R):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var R=_.is().resolve(_.z3(_.rt));R&&(this.keyboardFocused=R.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.vX("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,_.S0(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.S0(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(R,A){if(A)for(R=A.split(" "),R=_.x(R),A=R.next();!A.done;A=R.next())A=A.value,_.No(this.hostElement,A,!1),this.elements_.button&&_.No(this.elements_.button,A,!1),this.elements_.text&&_.No(this.elements_.text,A,!1)},
buttonIconChanged_:function(R){this.elements_.icon?R?(this.elements_.icon.icon=R,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.S0(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Va(this.hostElement,"is-paper-button-with-icon",!1)):R&&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"&&_.S0(this.elements_.button).appendChild(this.elements_.icon):_.S0(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Va(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(R){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,R){var A=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(R){case "yt_icon_button_with_label":A=!0;_.No(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();R=_.S0(this.elements_.button).firstElementChild;
this.elements_.icon=R;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.S0(this.elements_.endpoint).appendChild(this.elements_.button);_.S0(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.vX("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;_.S0(this.elements_.button).appendChild(this.elements_.text);_.S0(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":A=!0,this.elements_.button=this.getYtIconButton_(),R=_.S0(this.elements_.button).firstElementChild,this.elements_.icon=R,this.setIconActive_(this.elements_.icon),
_.S0(this.elements_.endpoint).appendChild(this.elements_.button)}_.Va(this.hostElement,"is-icon-button",A);_.Va(this.hostElement,"is-paper-button",!A);_.Va(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 Y;_.Mo((Y=this.container.hostElement)!=null?Y:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.S0(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(R){if(R!=void 0||this.disabled)this.disabled=R,this.elements_.button&&(this.elements_.button.disabled=R)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(R){_.v("kevlar_system_icons")&&R&&this.data&&(this.data.isSelected!==void 0?R.active=this.data.isSelected:this.data.isToggled!==void 0&&(R.active=this.data.isToggled))},
observeBasicPalette_:function(R){_.W1(this.hostElement,R)},
disabledChanged_:function(R){this.data&&this.set("data.isDisabled",R)},
onYtButtonTap_:function(R){if(this.disabled)R.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.sC(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(R=this.disableCommandHandlerOverride,!this.data||!this.data.command||R||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.v("handle_service_request_actions")||_.sC(this.hostElement,[this.serviceEndpoint]),
_.xo(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.v("handle_service_request_actions")?(R=[],this.serviceEndpoint&&R.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&R.push(this.data.command),R.length&&_.NT(this.hostElement,R,this.hostElement)):this.data&&this.data.command&&(R=this.data.command,R.accountUnlinkCommand||R.accountLinkCommand||R.insertAdCommand||R.insertHighlightMarkerCommand||
R.createLivestreamHighlightClipCommand||R.getVideoUploadFeedbackCommand||R.musicDeletePrivatelyOwnedEntityCommand||R.ypcCancelRecurrenceEndpoint||R.getMultiSelectCommandEndpoint?_.sC(this.hostElement,[R]):_.NT(this.hostElement,[R],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 R,A=_.Mo((R=this.container.hostElement)!=null?R:this.container);A.lastChild&&A.lastChild.tagName!="STYLE";)try{A.removeChild(A.lastChild)}catch(Y){break}},
getYtIconButton_:function(){var R=this.reuseEnabled_()?_.vX("yt-icon-button"):document.createElement("yt-icon-button"),A=_.S0(R).firstElementChild;if(A&&A.is!="yt-icon"){for(A=_.S0(R);A.lastChild;)A.removeChild(A.lastChild);A=null}A||(A=this.getIcon_(),this.setIconActive_(A),_.S0(R).appendChild(A));return R},
reuseEnabled_:function(){return _.v("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.vX("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.vX("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.aKH={};
_.aKH.YtButtonBehavior=[ku.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var R=this.data;R&&(this._setEndpoint(this.computeEndpoint_(R)),this._setServiceEndpoint(this.computeServiceEndpoint_(R)),this._setCommand(this.computeCommand_(R)),this._setButtonIcon(this.computeButtonIcon_(R)),this._setButtonText(this.computeButtonText_(R,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(R)),this._setButtonTooltip(this.computeTooltip_(R)),this._setButtonClass(this.computeButtonClass_(R)),this._setIconPositionType(this.computeIconPositionType_(R)),this.updateRenderedElements())},
setPressedState:function(R){var A;if((A=this.elements_)==null?0:A.button)this.elements_.button.pressed=!!R},
computeIconPositionType_:function(R){return R&&R.iconPosition||null},
computeEndpoint_:function(R){var A=R&&R.navigationEndpoint,Y=this.get("data.command.commandMetadata.webCommandMetadata.url"),P=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return A?A:R&&R.command&&R.command.modalEndpoint?R.command:Y&&!P&&R.command?R.command:null},
computeServiceEndpoint_:function(R){var A=R&&R.serviceEndpoint,Y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return A?A:Y&&R.command?R.command:null},
computeCommand_:function(R){return R&&R.command||null},
computeButtonIcon_:function(R){return R&&R.icon&&R.icon.iconType?_.m0(R.icon.iconType):null},
computeButtonText_:function(R,A){return!A&&R&&R.text||null},
computeAccessibility_:function(R){return this.get("accessibilityData.accessibilityData",R)||R&&R.accessibility||(R&&R.text?{label:this.getSimpleString(R.text)}:null)},
computeTooltip_:function(R){return R?R.isDisabled&&R.disabledTooltip||R.tooltip||null:null},
computeButtonClass_:function(R){var A=R&&R.style?R.style.toLowerCase().replace(/_/g,"-")+" ":"";A+=R&&R.size?R.size.toLowerCase().replace(/_/g,"-")+" ":"";R.colorData&&R.colorData.basicColorPaletteData&&R.colorData.basicColorPaletteData.borderColor&&(A+="palette-with-border");return A.trim()}}];var ji={};var Cqb;var h9Z;var ovD,kzE=function(){return ovD!==void 0?ovD:ovD=document.createElement("template")};
document.head.appendChild(kzE().content);var Gzb;var ZLf,t$N=function(){return ZLf!==void 0?ZLf:ZLf=document.createElement("template")};
document.head.appendChild(t$N().content);var whH;var u5D,e9D=function(){return u5D!==void 0?u5D:u5D=document.createElement("template")};
document.head.appendChild(e9D().content);var qqS;var LnG=document.head,dkD=LnG.appendChild,Rm7;if(qqS===void 0){var AzS=document.createElement("template");_.D(AzS,"\x3c!--css-build:shady--\x3e");AzS.content.insertBefore(e9D().content.cloneNode(!0),AzS.content.firstChild);qqS=AzS}Rm7=qqS;dkD.call(LnG,Rm7.content);var YM8=document.head,PCZ=YM8.appendChild,EOb;if(whH===void 0){var zmf=document.createElement("template");_.D(zmf,"\x3c!--css-build:shady--\x3e");zmf.content.insertBefore(t$N().content.cloneNode(!0),zmf.content.firstChild);whH=zmf}EOb=whH;PCZ.call(YM8,EOb.content);var iZ8=document.head,l8D=iZ8.appendChild,xpA;if(Gzb===void 0){var cz8=document.createElement("template");_.D(cz8,"\x3c!--css-build:shady--\x3e");cz8.content.insertBefore(kzE().content.cloneNode(!0),cz8.content.firstChild);Gzb=cz8}xpA=Gzb;l8D.call(iZ8,xpA.content);var OZ7;_.bh("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");OZ7=_.v("web_button_rework")&&_.CQ("BUTTON_REWORK")||_.v("web_button_rework_with_live");_.Gu=function(){return _.K.apply(this,arguments)||this};
_.H(_.Gu,_.K);_.Gu.prototype.created=function(){this.openPopupConfig=_.a1("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.Gu.prototype.onYtNavigate_=function(R){var A=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);A&&(this.ytOpenPopupBehavior.openPopup(A),R.stopPropagation(),R.preventDefault())};
_.Yh.Object.defineProperties(_.Gu,{template:{configurable:!0,enumerable:!0,get:function(){if(h9Z===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;Cqb===void 0&&(Cqb=document.createElement("template"));var P=Cqb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);h9Z=R}R=h9Z;return R}}});
_.Gu.prototype.onYtNavigate_=_.Gu.prototype.onYtNavigate_;_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],_.Gu.prototype,"ytOpenPopupBehavior",void 0);_.C([_.U(_.aKH.YtButtonBehavior),_.k("design:type",Object)],_.Gu.prototype,"ytButtonBehavior",void 0);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],_.Gu.prototype,"onYtNavigate_",null);
_.C([_.CG({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:OZ7})],_.Gu);var Mlb;var spH=_.v("web_button_rework")&&_.CQ("BUTTON_REWORK")||_.v("web_button_rework_with_live"),ZW=function(){var R=_.K.apply(this,arguments)||this;R.isPressed=!1;R.forceIconButton=!1;R.forceIconOnly=!1;R.forceModernIconButton=!1;R.skipCommandHandling=!1;R.alignByText=!1;R.fitToVisibleBounds=!0;R.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};R.onTap=function(A){_.xo(R.hostElement,"yt-service-request-sent-button-renderer",A)};
return R};
_.H(ZW,_.K);_.l=ZW.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.l.onClick=function(R){var A,Y=this.disabled||((A=this.data)==null?void 0:A.isDisabled);A=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");Y&&A&&R.stopPropagation()};
_.l.computeIcon=function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.icon)==null?void 0:A.iconType;if(Y)return _.m0(Y)};
_.l.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.l.handleUpdateButtonAction=function(R){R=_.n(R,EPA);var A=_.n(R==null?void 0:R.updatedButton,_.RC);if(this.data&&R&&A){var Y=this.data;Y.targetId&&R.targetId&&Y.targetId===R.targetId&&(this.data=A)}};
_.Yh.Object.defineProperties(ZW.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var R=this;if(this.data){var A=y2S({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.xo(R.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.xo(R.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});A.alignByText=this.alignByText;return A}}}});
_.Yh.Object.defineProperties(ZW,{template:{configurable:!0,enumerable:!0,get:function(){if(Mlb===void 0){var R=document.createElement("template");_.D(R,'\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>');Mlb=R}R=Mlb;return R}}});
ZW.prototype.onClick=ZW.prototype.onClick;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ZW.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"isPressed",void 0);
_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"forceIconButton",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"forceIconOnly",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"forceModernIconButton",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"skipCommandHandling",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"alignByText",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"buttonTooltipPosition",void 0);
_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"fitToVisibleBounds",void 0);_.C([_.S({computed:"computeTooltip(data)"}),_.k("design:type",Object)],ZW.prototype,"tooltip",void 0);_.C([_.S(),_.k("design:type",Object)],ZW.prototype,"overrides",void 0);_.C([_.S(),_.k("design:type",Boolean)],ZW.prototype,"disabled",void 0);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ZW.prototype,"onClick",null);
_.C([_.X("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.k("design:type",Object),_.k("design:paramtypes",[])],ZW.prototype,"computedButtonShape",null);_.C([_.CG({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!spH,cssBuildOptOut:!0}),_.CG({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!spH,cssBuildOptOut:!0})],ZW);var NsN;var VlH;var tQ=function(){var R=_.K.apply(this,arguments)||this;R.empty_=!0;R.loadTime=Infinity;R.pendingPaint=!1;R.hasChange_=!1;R.oldThumbnail_=null;R.oldDelayedSrc_="";R.objectURL_=null;return R};
_.H(tQ,_.K);_.l=tQ.prototype;_.l.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.l.ready=function(){var R=this.shouldShowPlaceholder_();_.No(this.hostElement,"no-transition",!0);R&&this.hostElement.classList.add("with-placeholder")};
_.l.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.l.isThumbPreloaded_=function(R){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",R)};
_.l.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||JzA};
_.l.computeThumbnailSrc_=function(R){return R&&R.thumbnails?_.MH(R.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.l.computeAlt_=function(){var R=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&R||""};
_.l.thumbnailChanged_=function(){var R=_.x([this.thumbnail,this.oldThumbnail_]),A=R.next().value;R=R.next().value;this.oldThumbnail_=A;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(R=this.computeThumbnailSrc_(R),this.computeThumbnailSrc_(A)===R))return;_.v("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(A)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):A&&_.CQ("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.RK(this,this.onReload_):_.RK(this,this.onShow_):this.resetImage_();A&&(this.hostElement.style.opacity=""+A.opacity)}};
_.l.delayedSrcChanged_=function(){var R=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===R||this.resetImage_()};
_.l.setSrc_=function(R){R?(_.Mo(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Mo(this.hostElement).querySelector("#img").src=R):(_.Mo(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.l.resetImage_=function(){nOk(this.hostElement);this.empty_=!0;this.setSrc_(JzA);this.ytRendererBehavior.invalidate(!1)};
_.l.observePlaceholderColor_=function(){var R=this.thumbnail&&this.thumbnail.placeholderColor;R?this.hostElement.style.backgroundColor=_.G9(R):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.l.onLoad_=function(){_.Mo(this.hostElement).querySelector("#img").src&&_.Mo(this.hostElement).querySelector("#img").src!==JzA&&(gOk(this.hostElement),this.notifyOnLoaded&&_.xo(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.l.onError_=function(){var R=this;if(_.v("web_use_cache_for_image_fallback"))SMl(_.Mo(this.hostElement).querySelector("#img").src).then(function(A){R.objectURL_=_.kD(A).toString();R.setSrc_(R.objectURL_)}).catch(function(){_.v("kevlar_woffle_fallback_image")&&R.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.l.onPrescanVisible=function(){this.onShow_()};
_.l.onVisible=function(){if(_.v("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.l.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var R=this.computeSrc_();R!==_.Mo(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(R))}};
_.l.onReload_=function(){this.empty_=!1;var R=this.computeSrc_();R!==_.Mo(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(R))};
_.l.shouldShowPlaceholder_=function(){return _.v("kevlar_thumbnail_bg")};
tQ.prototype.observePlaceholderColor_=tQ.prototype.observePlaceholderColor_;tQ.prototype.delayedSrcChanged_=tQ.prototype.delayedSrcChanged_;tQ.prototype.thumbnailChanged_=tQ.prototype.thumbnailChanged_;_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tQ.prototype,"alt",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],tQ.prototype,"ariaHidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tQ.prototype,"ariaLabel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tQ.prototype,"hidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tQ.prototype,"id",void 0);_.C([_.U(_.cX.YtVisibilityBehavior),_.k("design:type",Object)],tQ.prototype,"ytVisibilityBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",String)],tQ.prototype,"delayedSrc",void 0);
_.C([_.S(),_.k("design:type",Object)],tQ.prototype,"thumbnail",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],tQ.prototype,"loaded",void 0);_.C([_.S(),_.k("design:type",Boolean)],tQ.prototype,"notifyOnLoaded",void 0);_.C([_.S(),_.k("design:type",Number)],tQ.prototype,"height",void 0);_.C([_.S(),_.k("design:type",Number)],tQ.prototype,"width",void 0);_.C([_.S({value:function(){return"width"}}),
_.k("design:type",String)],tQ.prototype,"dimension",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tQ.prototype,"fit",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tQ.prototype,"fitHeight",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tQ.prototype,"fitWidth",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tQ.prototype,"objectFit",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tQ.prototype,"objectPosition",void 0);_.C([_.S(),_.k("design:type",String)],tQ.prototype,"preferredThumbnail",void 0);_.C([_.S({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.k("design:type",String)],tQ.prototype,"alt_",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tQ.prototype,"sharedTooltipText",void 0);
_.C([_.S(),_.k("design:type",Boolean)],tQ.prototype,"ftlEligible",void 0);_.C([_.S({value:void 0}),_.k("design:type",String)],tQ.prototype,"observeHiddenOption",void 0);_.C([_.S({value:"observe_once"}),_.k("design:type",String)],tQ.prototype,"observePrescanOption",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tQ.prototype,"roundedContainer",void 0);
_.C([_.Ul("thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tQ.prototype,"thumbnailChanged_",null);_.C([_.Ul("delayedSrc"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tQ.prototype,"delayedSrcChanged_",null);_.C([_.vZ("thumbnail.placeholderColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tQ.prototype,"observePlaceholderColor_",null);
_.C([_.CG({is:"yt-img-shadow",disableElementRegistration:!0})],tQ);var JzA=_.CQ("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.s5()(tQ,"yt-img-shadow",function(){if(VlH===void 0){var R=document.createElement("template");_.D(R,'\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">');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;NsN===void 0&&(NsN=document.createElement("template"));var P=NsN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);VlH=R}R=VlH;return R},{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 kQ6;_.wt=new _.cP("SCREEN_MANAGER_TOKEN");kQ6=new _.cP("LOG_INITIAL_SCREEN_TOKEN");var yzN=TPP({entities:{}});var mp7=vfu(yzN)(yzN.entities,{selectSfvAudioItemPlaybackState:function(R,A){var Y,P;R=(P=_.mc(R,"sfvAudioItemCurrentlyPlayingEntity",A))!=null?P:void 0;return(Y=R==null?void 0:R.sfvAudioItemPlaybackState)!=null?Y:void 0},
playlistLoopStateEntitySelector:function(R,A){var Y;return(Y=_.mc(R,"playlistLoopStateEntity",A))!=null?Y:void 0}});_.uF=_.E5(function(R){function A(d){return _.n(d,_.E7)}
function Y(){var d=P().isTogglingDisabled||I()&&P().toggledIsTogglingDisabled,Jk=d||Q()?I():!I();b(Jk);h(!1);if(!d){var Nb;(Nb=c)==null||Nb(!!Jk)}var Qk;((Qk=z)==null?0:Qk())||_.K_(_.is().resolve(_.wt),P().trackingParams);var H3;if(!Jk||!A(P().defaultButtonViewModel)||(H3=z)!=null&&H3()){var nu;!A(P().toggledButtonViewModel)||((nu=z)==null?0:nu())||_.K_(_.is().resolve(_.wt),A(P().toggledButtonViewModel).trackingParams)}else _.K_(_.is().resolve(_.wt),A(P().defaultButtonViewModel).trackingParams)}
var P=R.data,E=R.buttonShapeOverrides,z=R.disableExplicitClickLogging,c=R.onToggle,M=R.style,N=R.useOutlinedIcon,y=R.className,m=function(){var d,Jk;return I()?(d=R.animatedTextPropsToggled)==null?void 0:d.call(R):(Jk=R.animatedTextPropsDefault)==null?void 0:Jk.call(R)},T=_.gE(function(){return m()?Object.assign({},m(),{shouldAnimate:p()}):void 0},void 0,"Zp4uoe"),Q=function(){var d;
return((d=w())==null?void 0:d.isToggled)!==void 0},g=_.x(_.gl(function(){var d,Jk,Nb;
return Q()?(d=w())==null?void 0:d.isToggled:(Nb=E==null?void 0:(Jk=E())==null?void 0:Jk.toggled)!=null?Nb:P().isToggled})),r=g.next().value;
g=g.next().value;var I=r,b=g;g=_.x(_.gl(function(){var d,Jk;return(d=R.animatedTextPropsToggled)==null?void 0:(Jk=d.call(R))==null?void 0:Jk.shouldAnimate}));
r=g.next().value;g=g.next().value;var p=r,h=g;r=_.x(_.yy(!1,void 0,"mq3Zfe"));var L=r.next().value,Z=r.next().value,w=_.aE(function(d){a:{var Jk=P().entityKey,Nb=P().toggledStateEntitySelectorType;if(Nb)switch(Nb){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!Jk)break;d=mp7.selectSfvAudioItemPlaybackState(d,Jk);if(d==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){d={isToggled:!0};break a}if(d){d={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":d={isToggled:_.nfJ(d).includes("engagement-panel-comments-section")};
break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":d={isToggled:_.nfJ(d).includes("engagement-panel-live-chat-item-section")};break a;default:_.pK(new _.XN("Error: entitySelectorType defined but not matched in selector.",d,Nb))}d=void 0}return d}),t=function(){return Object.assign({},E==null?void 0:E(),{onToggle:Y,
toggleable:!0,toggled:I(),focused:L()})};
return _.V("toggle-button-view-model",{"on:focusin":_.Qi(function(){var d=_.is().resolve(_.z3(_.rt));d&&Z(d.isKeyBoardInUse());return!1}),
"on:focusout":_.Qi(function(){Z(!1);return!1})},_.V(_.J,{cond:function(){return I()?A(P().toggledButtonViewModel):A(P().defaultButtonViewModel)},
then:function(d){return _.V(_.Is,{data:d,className:y,style:M,useOutlinedIcon:N,buttonOverrides:t,animatedTextProps:T})}}))},"E");
_.uF.idomCompat={callbacks:{onToggle:!0}};_.Ow(_.E5(function(R){return _.V("yt-toggle-button-view-model",{class:function(){var A;return(A=R.scopingClassName)==null?void 0:A.call(R)}},_.V(_.uF,{data:function(){var A;
return(A=R.data)==null?void 0:A.call(R)},
buttonShapeOverrides:function(){var A;return(A=R.overrides)==null?void 0:A.call(R)},
animatedTextPropsDefault:function(){var A;return(A=R.animatedTextPropsDefault)==null?void 0:A.call(R)},
animatedTextPropsToggled:function(){var A;return(A=R.animatedTextPropsToggled)==null?void 0:A.call(R)},
disableExplicitClickLogging:function(){var A;return(A=R.disableExplicitClickLogging)==null?void 0:A.call(R)},
onToggle:function(A){var Y;return(Y=R.onToggle)==null?void 0:Y.call(R,A)},
style:function(){var A;return(A=R.style)==null?void 0:A.call(R)},
useOutlinedIcon:function(){var A;return(A=R.useOutlinedIcon)==null?void 0:A.call(R)},
className:function(){var A;return(A=R.className)==null?void 0:A.call(R)}}))},"F"),"yt-toggle-button-view-model",{props:{data:_.VY,
buttonShapeOverrides:_.VY,overrides:_.VY,animatedTextPropsDefault:_.VY,animatedTextPropsToggled:_.VY,disableExplicitClickLogging:_.VY,onToggle:_.xL,style:_.VY,useOutlinedIcon:_.VY,className:_.VY,scopingClassName:_.VY}});var LH=function(){return _.K.apply(this,arguments)||this};
_.H(LH,_.K);LH.prototype.onTap=function(R){R.stopPropagation();R=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.I9("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:R})):this.ytLiveChatReduxBehavior.dispatch(_.HT("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:R}))};
_.Yh.Object.defineProperties(LH.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.engagementState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=_.n(this.data.toggleButton,_.iS),A;if(Number(((A=this.likeCountState)==null?void 0:A.likeCountIfIndifferentNumber)||"0")===0){var Y;A=((Y=this.data.likeCountPlaceholder)==null?void 0:Y.content)||""}else{var P,E,z;A=((P=this.likeCountState)==null?void 0:(E=P.likeCountIfIndifferent)==null?void 0:E.content)||((z=this.data.likeCountPlaceholder)==null?void 0:z.content)||""}var c,M;Y=((c=this.likeCountState)==null?void 0:(M=
c.likeCountIfLiked)==null?void 0:M.content)||"1";c=_.n(R.toggledButtonViewModel,_.E7);return Object.assign({},R,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.n(R.defaultButtonViewModel,_.E7),{title:A})},toggledButtonViewModel:{buttonViewModel:Object.assign({},c,{title:Y})}})}}}});
LH.prototype.onTap=LH.prototype.onTap;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],LH.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],LH.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],LH.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],LH.prototype,"data",void 0);
_.C([_.S({selectorArgs:["data.likeCountEntityKey"],selector:HVJ}),_.k("design:type",Object)],LH.prototype,"likeCountState",void 0);_.C([_.S({selectorArgs:["data.engagementStateKey"],selector:DQk}),_.k("design:type",Object)],LH.prototype,"engagementState",void 0);_.C([_.X("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],LH.prototype,"isLiked",null);
_.C([_.X("data","likeCountState","isLiked"),_.k("design:type",Object),_.k("design:paramtypes",[])],LH.prototype,"toggleButton",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],LH.prototype,"onTap",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],LH);
_.B(LH,"yt-live-chat-like-button-view-model",function(){if(Qqq===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;TWZ===void 0&&(TWZ=document.createElement("template"));var P=TWZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Qqq=R}R=Qqq;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var TsD;var QpH;var dt=function(){return _.K.apply(this,arguments)||this};
_.H(dt,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dt.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],dt);
_.B(dt,"yt-live-chat-paid-message-footer-renderer",function(){if(QpH===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;TsD===void 0&&(TsD=document.createElement("template"));var P=TsD;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);QpH=R}R=QpH;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var vOZ;var gOA;var nOq;var HZb,rzA=function(){if(HZb!==void 0)return HZb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;nOq===void 0&&(nOq=document.createElement("template"));var P=nOq;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return HZb=R};var RJ=function(){return _.K.apply(this,arguments)||this};
_.H(RJ,_.K);RJ.prototype.onTap=function(R){R.stopPropagation()};
_.Yh.Object.defineProperties(RJ.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=_.n(this.data.replyButton,_.E7),A,Y,P,E,z,c,M,N=Number(((A=this.replyCountState)==null?void 0:A.replyCountNumber)||"0")===0?(Y=this.data)==null?void 0:(P=Y.replyCountPlaceholder)==null?void 0:P.content:((E=this.replyCountState)==null?void 0:(z=E.replyCount)==null?void 0:z.content)||((c=this.data)==null?void 0:(M=c.replyCountPlaceholder)==null?void 0:M.content)||"",y;return Object.assign({},
R,{title:N,accessibilityText:(y=this.replyCountState)==null?void 0:y.replyButtonAccessibilityText})}}}});
_.Yh.Object.defineProperties(RJ,{template:{configurable:!0,enumerable:!0,get:function(){return rzA()}}});
RJ.prototype.onTap=RJ.prototype.onTap;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],RJ.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],RJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],RJ.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],RJ.prototype,"data",void 0);
_.C([_.S({selectorArgs:["data.replyCountEntityKey"],selector:function(R,A){return _.mc(R.entities,"replyCountEntity",A)}}),
_.k("design:type",Object)],RJ.prototype,"replyCountState",void 0);_.C([_.X("data","replyCountState"),_.k("design:type",Object),_.k("design:paramtypes",[])],RJ.prototype,"buttonViewModel",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],RJ.prototype,"onTap",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],RJ);
_.B(RJ,"yt-live-chat-reply-button-view-model",function(){return rzA()},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var DpN;var UpS;var AB=function(){var R=_.K.apply(this,arguments)||this;R.ariaLabel="";return R};
_.H(AB,_.K);
AB.prototype.dataChanged=function(){for(var R=(0,_.Jh)(_.Mo(this.hostElement).querySelector("#image"));R.firstChild;)R.removeChild(R.firstChild);if(this.data)if(this.data.icon){var A=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(A.polymerController.icon="yt-sys-icons:shield-filled",A.polymerController.defaultToFilled=!0):A.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();R.appendChild(A)}else if(this.data.customThumbnail){A=document.createElement("img");
var Y=_.VlP(this.data.customThumbnail.thumbnails,16);Y?(A.src=Y,R.appendChild(A),A.setAttribute("alt",this.hostElement.ariaLabel||"")):_.pK(new _.XN("Could not compute URL for thumbnail",this.data.customThumbnail))}};
AB.prototype.identity=function(R){return R};
AB.prototype.computeType=function(R){return Vp(R||void 0)};
AB.prototype.dataChanged=AB.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],AB.prototype,"data",void 0);_.C([_.S({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.k("design:type",Object)],AB.prototype,"ariaLabel",void 0);_.C([_.S({computed:"computeType(data)",reflectToAttribute:!0}),_.k("design:type",String)],AB.prototype,"type",void 0);
_.C([_.S({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.k("design:type",String)],AB.prototype,"sharedTooltipText",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("live_chat_enable_new_moderator_badge")}}),
_.k("design:type",Boolean)],AB.prototype,"enableNewModeratorBadge",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AB.prototype,"dataChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],AB);
_.B(AB,"yt-live-chat-author-badge-renderer",function(){if(UpS===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;DpN===void 0&&(DpN=document.createElement("template"));var P=DpN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);UpS=R}R=UpS;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var $p8;var XIS;var YM=function(){return _.K.apply(this,arguments)||this};
_.H(YM,_.K);_.l=YM.prototype;_.l.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"}}}}};
_.l.computeBadgesInsideChip=function(R){return R?R.filter(function(A){return Vp(A.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.l.computeBadgesOutsideChip=function(R){return this.prependChatBadges||!R?[]:R.filter(function(A){A=Vp(A.liveChatAuthorBadgeRenderer);return A!=="verified"&&A!=="owner"})};
_.l.computeBadgesBeforeChip=function(R){return this.prependChatBadges&&R?R.filter(function(A){A=Vp(A.liveChatAuthorBadgeRenderer);return A!=="verified"&&A!=="owner"}):[]};
_.l.computeIsHighlighted=function(R,A){var Y=!!KNu(R,"owner"),P=!!KNu(R,"verified");R=!!KNu(R,"moderator");return(Y||P&&!R)&&!A};
_.l.computeAuthorType=function(R){return Ilk(R)};
_.l.computeAuthorClass=function(R,A){return A?(R?R+" ":"")+"single-line":R};
_.l.onSeedColorChanged=function(){_.v("live_chat_author_name_color_usernames")||_.v("live_chat_seed_color_usernames")||_.v("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):_.v("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
YM.prototype.onSeedColorChanged=YM.prototype.onSeedColorChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],YM.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],YM.prototype,"authorName",void 0);_.C([_.S(),_.k("design:type",Array)],YM.prototype,"authorBadges",void 0);
_.C([_.S({computed:"computeAuthorType(authorBadges)"}),_.k("design:type",String)],YM.prototype,"authorType",void 0);_.C([_.S({computed:"computeAuthorClass(authorType, singleLine)"}),_.k("design:type",String)],YM.prototype,"authorClass",void 0);_.C([_.S({computed:"computeBadgesInsideChip(authorBadges)"}),_.k("design:type",Array)],YM.prototype,"badgesInsideChip",void 0);_.C([_.S({computed:"computeBadgesOutsideChip(authorBadges)"}),_.k("design:type",Array)],YM.prototype,"badgesOutsideChip",void 0);
_.C([_.S({computed:"computeBadgesBeforeChip(authorBadges)"}),_.k("design:type",Array)],YM.prototype,"badgesBeforeChip",void 0);_.C([_.S({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.k("design:type",Boolean)],YM.prototype,"isHighlighted",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],YM.prototype,"singleLine",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],YM.prototype,"disableHighlighting",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],YM.prototype,"dashboardMoneyFeed",void 0);_.C([_.S({value:_.v("live_chat_prepend_badges"),reflectToAttribute:!0}),_.k("design:type",Boolean)],YM.prototype,"prependChatBadges",void 0);_.C([_.S(),_.k("design:type",String)],YM.prototype,"authorNameColor",void 0);_.C([_.nG("#author-name"),_.k("design:type",HTMLDivElement)],YM.prototype,"username",void 0);
_.C([_.vZ("authorNameColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YM.prototype,"onSeedColorChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],YM);
_.B(YM,"yt-live-chat-author-chip",function(){if(XIS===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;$p8===void 0&&($p8=document.createElement("template"));var P=$p8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);XIS=R}R=XIS;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var SMS;var I87;var Pw=function(){var R=_.K.apply(this,arguments)||this;R.debounceCommand=_.$l(function(A){R.ytComponentBehavior.resolveCommand(A)},1500);
return R};
_.H(Pw,_.K);Pw.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var R=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",A,Y,P=this.isHearted?(A=this.data)==null?void 0:A.unheartCommand:(Y=this.data)==null?void 0:Y.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.I9("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:R}));(R=_.h7(P))&&this.debounceCommand(R)}};
_.Yh.Object.defineProperties(Pw.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var R,A;if(!((R=this.data)==null?0:(A=R.creatorThumbnail)==null?0:A.sources))return{};R={thumbnails:[]};A={};A.url=this.data.creatorThumbnail.sources[0].url;R.thumbnails.push(A);return R}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.engagementState)==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((A=this.engagementState)==null?void 0:A.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((Y=this.engagementState)==null?void 0:Y.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}}});
Pw.prototype.onTap=Pw.prototype.onTap;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Pw.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],Pw.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Pw.prototype,"data",void 0);
_.C([_.S({selectorArgs:["data.engagementStateKey"],selector:DQk}),_.k("design:type",Object)],Pw.prototype,"engagementState",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pw.prototype,"thumbnailDetails",null);_.C([_.X("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pw.prototype,"isHearted",null);_.C([_.X("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pw.prototype,"isEditable",null);
_.C([_.X("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pw.prototype,"showCreatorView",null);_.C([_.X("data","engagementState"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pw.prototype,"showButton",null);_.C([_.X("data","isHearted"),_.k("design:type",String),_.k("design:paramtypes",[])],Pw.prototype,"label",null);_.C([_.X("data","isHearted"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pw.prototype,"heartHoverText",null);
_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pw.prototype,"onTap",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],Pw);
_.B(Pw,"yt-live-chat-creator-heart-view-model",function(){if(I87===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;SMS===void 0&&(SMS=document.createElement("template"));var P=SMS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);I87=R}R=I87;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var Eb=function(){};
_.H(Eb,Sw);Eb.prototype.JSC$13099_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:e0("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Eb.prototype.getApiPaths=function(){return[]};
Eb.prototype.getExtension=function(){};
Eb.prototype.JSC$13099_buildRequest=function(){};var KzA={},WzN=(KzA.GET_DATASYNC_IDS=I4(Eb),KzA);var jpE,bZA,f8A,$88,zV,BsD,jw7,Fzf,pIZ;jpE="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");bZA=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.tM=function(R,A,Y,P,E,z,c,M,N){this.endpointMap=R;this.networkManager=A;this.authService=Y;this.responseProcessorMap=P;this.innertubeResponseStore=E;this.contextProcessors=z;this.asyncContextProcessors=c;this.localInnertubeRouter=M;this.requestSequencer=N;this.inflightRequests=new Map;R.signalEndpointMap||(R.signalEndpointMap={});R.signalEndpointMap=Object.assign({},WzN,R.signalEndpointMap)};
f8A=function(R,A,Y,P,E,z,c,M,N){if(_.tM.instance!==void 0){if(P=_.tM.instance,R=[R!==P.endpointMap,A!==P.networkManager,Y!==P.authService,E!==P.innertubeResponseStore,z!==P.contextProcessors,c!==P.asyncContextProcessors,M!==P.localInnertubeRouter],R.some(function(y){return y}))throw new _.XN("InnerTubeTransportService is already initialized",R);
}else _.tM.instance=new _.tM(R,A,Y,P,E,z,c,M,N)};
_.uh=function(R,A,Y){var P=P===void 0?djf:P;var E=jw7(R,A);return E?new _.yR(function(z,c){var M,N,y,m,T;return _.O(function(Q){switch(Q.nextAddress){case 1:return Q.yield(E,2);case 2:M=Q.yieldResult;N=M.JSC$13099_getRequest(A,Y,P);if(!N){c(new _.XN("Error: Failed to build request for command.",A));Q.jumpTo(0);break}uk(N.input);m=((y=N.requestShell)==null?void 0:y.mode)==="cors"?"cors":void 0;if(R.authService.syncHeaders){T=pIZ(N.config,m);Q.jumpTo(4);break}return Q.yield(Fzf(N.config,m),5);case 5:T=
Q.yieldResult;case 4:z(BsD(R,N,T)),_.XH(Q)}})}):_.j5(new _.XN("Error: No request builder found for command.",A))};
$88=function(R,A,Y,P){var E=E===void 0?djf:E;var z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t;return _.O(function(d){switch(d.nextAddress){case 1:z=D7b(A,R.endpointMap);if(!z)throw new _.XN("Error: No streaming request builder found for command",A);c=z.JSC$13099_getRequest(A,Y,E);if(!c)throw new _.XN("Failed to build YtRequest for streaming Command",A);if((M=R.localInnertubeRouter)==null||!M.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){d.jumpTo(2);break}return d.yield(R.localInnertubeRouter.localInnertubeResponse(c.input,
c.innerTubeRequest),3);case 3:return N=d.yieldResult,y={},N.playerResponse&&(zV(R,N.playerResponse,c),y.player=N.playerResponse,(m=P)==null||m(y,N)),N.watchNextResponse&&(zV(R,N.watchNextResponse,c),y.content=N.watchNextResponse,(T=P)==null||T(y,N)),d.return(y);case 2:g=((Q=c.requestShell)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(R.authService.syncHeaders){r=pIZ(c.config,g);d.jumpTo(4);break}return d.yield(Fzf(c.config,g),5);case 5:r=d.yieldResult;case 4:return p=(b=(I=c.requestShell)==null?
void 0:I.headers)!=null?b:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},p,r)}),h=Object.assign({},c.requestShell),L=JSON.stringify(c.innerTubeRequest),c.requestShell.method==="POST"&&(h=Object.assign({},h,{body:L})),Z=function(Jk,Nb){zV(R,Nb.playerResponse||Nb.watchNextResponse||Nb.reelItemWatchResponse||Nb.reelWatchSequenceResponse,c);P==null||P(Jk,Nb)},w={},d.yield(a8Z(R.networkManager,c.input,h,Z),6);
case 6:return w=d.yieldResult,((t=c.config)==null?0:t.responseTick)&&_.Fh(c.config.responseTick),d.return(w)}})};
_.Ad=function(R,A,Y,P,E){E=E===void 0?{authStrategy:{identity:djf}}:E;var z=z===void 0?!0:z;var c=function(){};
c=UYV(rXk(Y));A.context||(A.context=_.aPk(P,z));return new _.yR(function(M){var N,y,m,T,Q;return _.O(function(g){if(g.nextAddress==1)return N=Nkl(Y),y=_.uP(N),R.authService.syncHeaders?(m=pIZ(E,y),g.jumpTo(2)):g.yield(Fzf(E,y),3);g.nextAddress!=2&&(m=g.yieldResult);T=VJb(Nkl(Y));Q={input:T,requestShell:e0(T),innerTubeRequest:A,config:E};M(BsD(R,Q,m,c));_.XH(g)})})};
zV=function(R,A,Y){var P;if(A&&!(A==null?0:(P=A.sequenceMetaData)==null?0:P.skipProcessing)&&R.responseProcessorMap){P=_.x(jpE);for(var E=P.next();!E.done;E=P.next())E=E.value,R.responseProcessorMap[E]&&R.responseProcessorMap[E].handleResponse(A,Y)}};
BsD=function(R,A,Y,P){P=P===void 0?function(){}:P;
var E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t,d,Jk,Nb,Qk,H3,nu,hk,FV,i8,fD,NG,d8,mS,V7,KD,UW,eH,zS,RA,vS,Mg;return _.O(function(gf){switch(gf.nextAddress){case 1:c=(E=A.config)==null?void 0:(z=E.storeStrategy)==null?void 0:z.storeKey;if(!(c&&R.innertubeResponseStore&&R.innertubeResponseStore.has(c))||((M=A.config)==null?0:(N=M.storeStrategy)==null?0:N.disableCache)){gf.jumpTo(2);break}return gf.yield(R.innertubeResponseStore.get(c),3);case 3:if((y=gf.yieldResult)&&!y.isExpired())return gf.return(Promise.resolve(_.dc(y)));
case 2:if(!((m=A)==null?0:(T=m.innerTubeRequest)==null?0:T.context)){gf.jumpTo(4);break}Q=A.innerTubeRequest.context;if(!(R.asyncContextProcessors&&R.asyncContextProcessors.length>0)){gf.jumpTo(5);break}g=[];r=_.x(R.asyncContextProcessors);for(I=r.next();!I.done;I=r.next())b=I.value,p=b.processContext(A),p.wrappedPromise_&&g.push(p.wrappedPromise_);if(!(g.length>0)){gf.jumpTo(5);break}return gf.yield(Promise.all(g),5);case 5:h=_.x(R.contextProcessors||[]),L=h.next();case 8:if(L.done){gf.jumpTo(4);
break}Z=L.value;return gf.yield(Z.processContext(Q),9);case 9:L=h.next();gf.jumpTo(8);break;case 4:if((w=R.localInnertubeRouter)==null||!w.shouldPreferLocalResponse(A.input,A.innerTubeRequest)){gf.jumpTo(12);break}return gf.yield(R.localInnertubeRouter.localInnertubeResponse(A.input,A.innerTubeRequest),13);case 13:return t=gf.yieldResult,zV(R,t,A),gf.return(t);case 12:return(Nb=(Jk=A.config)==null?void 0:Jk.requestKey)&&R.inflightRequests.has(Nb)?d=R.inflightRequests.get(Nb):(Qk=JSON.stringify(A.innerTubeRequest),
hk=(nu=(H3=A.requestShell)==null?void 0:H3.headers)!=null?nu:{},A.requestShell=Object.assign({},A.requestShell,{headers:Object.assign({},hk,Y)}),FV=Object.assign({},A.requestShell),A.requestShell.method==="POST"&&(FV=Object.assign({},FV,{body:Qk})),((i8=A.config)==null?0:i8.requestTick)&&_.Fh(A.config.requestTick),fD=function(){return R.networkManager.fetch(A.input,FV,A.config)},d=R.requestSequencer?CCq(R.requestSequencer,A,fD):fD(),Nb&&R.inflightRequests.set(Nb,d)),gf.yield(d,14);
case 14:(NG=gf.yieldResult)&&_.v("web_streaming_player")&&Array.isArray(NG)&&(NG=NG[0].playerResponse);if(NG&&"error"in NG&&((d8=NG)==null?0:(mS=d8.error)==null?0:mS.details))for(V7=NG.error.details,KD=_.x(V7),UW=KD.next();!UW.done;UW=KD.next())eH=UW.value,(zS=eH["@type"])&&bZA.indexOf(zS)>-1&&(delete eH["@type"],NG=eH);Nb&&R.inflightRequests.has(Nb)&&R.inflightRequests.delete(Nb);((RA=A.config)==null?0:RA.responseTick)&&_.Fh(A.config.responseTick);if(NG||(vS=R.localInnertubeRouter)==null||!vS.canProvideFallbackResponse(A.input,
A.innerTubeRequest)){gf.jumpTo(15);break}return gf.yield(R.localInnertubeRouter.localFallbackInnertubeResponse(A.input,A.innerTubeRequest),16);case 16:NG=gf.yieldResult;case 15:return zV(R,NG,A),((Mg=A.config)==null?0:Mg.processorTick)&&_.Fh(A.config.processorTick),P(),gf.return(NG||void 0)}})};
_.wl=function(R,A){return r2J(A,R.endpointMap)};
jw7=function(R,A){R=U7l(A,R.endpointMap);if(R!==void 0)return Promise.resolve(R)};
Fzf=function(R,A){var Y,P,E,z;return _.O(function(c){if(c.nextAddress==1){E=(Y=R)==null?void 0:(P=Y.authStrategy)==null?void 0:P.sessionIndex;var M=c.yield;var N=_.Vn(Sd8({sessionIndex:E}));return M.call(c,N,2)}z=c.yieldResult;return c.return(Promise.resolve(Object.assign({},$7b(A),z)))})};
pIZ=function(R,A){var Y;R=R==null?void 0:(Y=R.authStrategy)==null?void 0:Y.sessionIndex;Y=Sd8({sessionIndex:R});return Object.assign({},$7b(A),Y)};var hmS,oO8,km7,Gm7,ZZf,tlz,emS,qMq,xM,LzG,dp7,u_D,RnE;hmS=0;oO8=/tone[1-5]/;km7=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");Gm7="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
ZZf=Number.MAX_SAFE_INTEGER;tlz=RegExp("\ufe0f","g");_.iO=function(R){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;R&&_.wIz(this,R)};
_.wIz=function(R,A){try{_.QQ(A,{context:R,onSuccess:function(P,E){Array.isArray(E)?R.load(E):(P=new _.XN("Emoji manager JSON response was not an array!",{response:E}),_.bj(P))},
onError:function(P){P=new _.XN("Failed to retrieve emoji manager initial JSON data!",{url:A,statusCode:_.VQ(P).toString()});_.pK(P)}})}catch(P){var Y=new _.XN("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:A});
_.pK(Y)}};
_.iO.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.iO.prototype.load=function(R,A){if(A)if(R.length)R=R.concat(A.emojis);else{this.emojis=A.emojis;this.emojiMap=A.emojiMap;this.emojiShortcutMap=A.emojiShortcutMap;this.emojiShortcutCharMap=u_D(A);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=A.emojiRegex;return}this.emojis=[].concat(_.py(new Set(this.emojis.concat(R))));this.hasInitializedShortcutCharMap=!1;R=Array(this.emojis.length);for(A=0;A<this.emojis.length;A++){var Y=this.emojis[A];if(Y.emojiId){this.emojiMap[Y.emojiId]=Y;this.emojiMap[Y.emojiId].index=
A;for(var P=0;Y.shortcuts&&P<Y.shortcuts.length;P++)this.emojiShortcutMap[Y.shortcuts[P].toLocaleLowerCase()]=Y;R[A]=Y.isCustomEmoji&&Y.shortcuts?Y.shortcuts[0]:Y.emojiId}}R.sort(function(E,z){return z.length-E.length});
if(R.length)try{this.emojiRegex=new RegExp(R.join("|").replace("*","\\*"),"gi")}catch(E){this.emojiRegex=/$./}else this.emojiRegex=/$./};
emS=function(R,A){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){var P=Y.value;if(P.emojiId&&R.emojiMap[P.emojiId]){Y=Object.assign({},R.emojiMap[P.emojiId],P);R.emojiMap[P.emojiId]=Y;var E=void 0;Y.index&&((E=R.emojis[Y.index])==null?void 0:E.emojiId)===P.emojiId&&(R.emojis[Y.index]=Y);P=void 0;if((P=Y.shortcuts)==null?0:P.length)for(R.hasInitializedShortcutCharMap=!1,P=_.x(Y.shortcuts),E=P.next();!E.done;E=P.next())R.emojiShortcutMap[E.value.toLocaleLowerCase()]=Y}}};
qMq=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(_.GA.getInstance(),2);if(P.nextAddress!=3)return(A=P.yieldResult)?P.yield(A.get("ytlc-emoji-pref"),3):P.return();(Y=P.yieldResult)&&emS(R,Object.keys(Y).map(function(E){return{emojiId:E,stickyPrefId:Y[E]}}).filter(function(E){return!!E.emojiId&&!!E.stickyPrefId}));
_.XH(P)})};
_.lO=function(R,A,Y){return(R=R.emojiMap[A])&&(!R.isLocked||Y!==void 0&&Y)?R:void 0};
xM=function(R,A,Y){Y=_.lO(R,A,Y===void 0?!1:Y);var P=A.match("\u200d");Y&&R.skinTone!==0&&(R=(P==null?void 0:P.length)===1?_.lO(R,A.replace("\u200d",km7[R.skinTone]+"\u200d")):_.lO(R,A+km7[R.skinTone]))&&(Y=R);return Y};
LzG=function(R,A){var Y=R.emojiMap[A];return(Y==null?0:Y.stickyPrefId)?R.emojiMap[Y.stickyPrefId]:xM(R,A)};
_.xs=function(R,A){R=R.emojiShortcutMap[A.toLocaleLowerCase()];return!R||R.isLocked?null:R};
dp7=function(R,A,Y){return u_D(R,Y===void 0?!1:Y)[A]||{}};
u_D=function(R,A){A=A===void 0?!1:A;if(!R.hasInitializedShortcutCharMap){R.hasInitializedShortcutCharMap=!0;for(var Y=0;Y<R.emojis.length;Y++){var P=R.emojis[Y];if(!(P.isLocked||A&&P.isCustomEmoji&&P.emojiId&&!R.pickerCustomEmojiIds.includes(P.emojiId)))for(var E=0;P.shortcuts&&E<P.shortcuts.length;E++){var z=P.shortcuts[E];z.startsWith(":_")&&P.isCustomEmoji&&(R.emojiShortcutCharMap[":_"]==null&&(R.emojiShortcutCharMap[":_"]=Object.create(null)),R.emojiShortcutCharMap[":_"][z]=P);if(!(z.length<3||
!P.isCustomEmoji&&oO8.test(z))){var c=z.substr(0,3).toLocaleLowerCase();R.emojiShortcutCharMap[c]==null&&(R.emojiShortcutCharMap[c]=Object.create(null));R.emojiShortcutCharMap[c][z]=P}}}}return R.emojiShortcutCharMap};
_.iO.prototype.createEmoji=function(R,A){A=A===void 0?!0:A;var Y=document.createElement("img");R.isCustomEmoji||Y.classList.add("small-emoji");Y.classList.add("emoji");Y.classList.add("yt-formatted-string");Y.src=R.image?_.MH(R.image.thumbnails,this.emojiSize)||"":"";var P=void 0;R.image&&R.image.accessibility&&R.image.accessibility.accessibilityData&&(P=R.image.accessibility.accessibilityData.label);Y.alt=P?P:(R.isCustomEmoji&&R.shortcuts?R.shortcuts[0]:R.emojiId)||"";R.isCustomEmoji&&(Y.dataset.emojiId=
R.emojiId);_.lu&&(Y.setAttribute("contenteditable","false"),Y.setAttribute("unselectable","on"));A&&(R.shortcuts&&R.shortcuts.length&&Y.setAttribute("shared-tooltip-text",R.shortcuts[0]),Y.id="emoji-"+hmS++);return Y};
_.iO.prototype.createDocumentFragment=function(R,A,Y,P){A=A===void 0?!1:A;Y=Y===void 0?!0:Y;P=P===void 0?!1:P;R=R.replace(tlz,"");for(var E=document.createDocumentFragment(),z=0,c,M=0;(c=this.emojiRegex.exec(R))!=null;){var N=_.lO(this,c[0])||_.xs(this,c[0]);!N||N.isCustomEmoji&&!A||(N=this.createEmoji(N,Y),z!==c.index&&E.appendChild(document.createTextNode(R.substring(z,c.index))),E.appendChild(N),z=c.index+c[0].length,M++)}if(!P||M)return E.appendChild(document.createTextNode(R.substr(z))),E};
RnE=function(R,A,Y){var P,E,z,c,M,N,y,m,T;return _.O(function(Q){if(Q.nextAddress==1){if(!A.emojiId||!R.emojiMap[A.emojiId])return Q.return();P=Object.assign({},R.emojiMap[A.emojiId],{stickyPrefId:Y});R.emojiMap[A.emojiId]=P;A.index&&((E=R.emojis[A.index])==null?void 0:E.emojiId)===A.emojiId&&(R.emojis[A.index]=P);if((z=A.shortcuts)==null?0:z.length)for(R.hasInitializedShortcutCharMap=!1,c=_.x(A.shortcuts),M=c.next();!M.done;M=c.next())N=M.value,R.emojiShortcutMap[N.toLocaleLowerCase()]=P;return Q.yield(_.GA.getInstance(),
2)}if(Q.nextAddress!=4)return(y=Q.yieldResult)?Q.yield(y.get("ytlc-emoji-pref"),4):Q.jumpTo(0);T=(m=Q.yieldResult)!=null?m:{};T[A.emojiId]=Y;return Q.yield(y.set("ytlc-emoji-pref",T,ZZf),0)})};
_.cw=new _.iO;var PlN;_.Ob={};
PlN={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.v("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:_.v("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 q6(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 R=_.Mo(this.hostElement||this).querySelector("#inline-action-button-container");R&&R.setAttribute("aria-hidden","true");this.menuButton=_.Mo(this.hostElement).querySelector("#menu-button")},
attached:function(){var R=this.menuButton;R&&(R.addEventListener("focusin",_.T2(this,this.onMenuButtonFocus_)),R.addEventListener("focusout",_.T2(this,this.onMenuButtonBlur_)))},
detached:function(){var R=this.menuButton;R&&(R.removeEventListener("focusin",_.T2(this,this.onMenuButtonFocus_)),R.removeEventListener("focusout",_.T2(this,this.onMenuButtonBlur_)))},
identity:_.bJ,truthy:function(R){return!!R},
computeTimestampString:function(R){return R?R.timestampText?this.getSimpleString(R.timestampText):this.TIME_FORMATTER.format(new Date(R.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(R){return R},
computeMenuVisible_:function(R,A){return R||A},
computeHasInlineActionButtons:function(R){if(!R)return!1;var A,Y;return!((A=R.inlineActionButtons)==null||!A.length)||!((Y=R.additionalInlineActionButtons)==null||!Y.length)},
createDocumentFragmentFromString:function(R){var A=_.cw.createDocumentFragment.bind(_.cw),Y;if((Y=this.participantsManager)==null||!Y.viewerRegex)return A(R);Y=document.createDocumentFragment();for(var P=0,E;(E=this.participantsManager.viewerRegex.exec(R))!=null;){if(E.index>0){var z=":"+E[0]+":";if((_.lO(_.cw,z)||_.xs(_.cw,z))&&R.indexOf(z)===E.index-1)continue}Y.appendChild(A(R.substring(P,E.index)));P=document.createElement("span");P.appendChild(A(E[0]));P.classList.add("mention");Y.appendChild(P);
P=E.index+E[0].length}Y.appendChild(A(R.substring(P)));return Y},
createDocumentFragment:function(R){var A=document.createDocumentFragment();if(R.simpleText)return A.appendChild(this.createDocumentFragmentFromString(R.simpleText)),A;if(!R.runs)return A;for(var Y=0;Y<R.runs.length;Y++){var P=R.runs[Y];if(P.emoji)A.appendChild(_.cw.createEmoji(P.emoji));else if(P.text)if(P.navigationEndpoint){var E=document.createElement("a");E.classList.add("yt-simple-endpoint");wTJ(E,P.navigationEndpoint);_.Mo(E).appendChild(this.createDocumentFragmentFromString(P.text));A.appendChild(E)}else A.appendChild(this.createDocumentFragmentFromString(P.text))}return A},
hasModerationOverlayVisible:function(){var R;return((R=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:R.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(R){R.composedPath().some(function(A){return(A=A instanceof Element?A:null)?A.tagName&&(A.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||A.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.v("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(R)},
colorFromDecimal:function(R){return N_V(R)},
markAsDeleted:function(R,A){this.set("data.deletedStateMessage",R);this.set("data.showOriginalContentMessage",A)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(R){if(this.data.contextMenuEndpoint){var A=_.is().resolve(_.a4),Y=this.data.contextMenuEndpoint,P;(P=_.tM.instance)&&_.wl(P,Y)?(A=AuS(A,Y),P=_.Ad(P,{},A)):P=_.YNS(A,Y);P.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);R&&R.stopPropagation()}},
handleGetContextMenuResponse_:function(R){var A=_.tM.instance;A&&_.wl(A,{liveChatEndpoint:{}})||(R=R.response);R.liveChatItemContextMenuSupportedRenderers&&R.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(R.liveChatItemContextMenuSupportedRenderers.menuRenderer);R.actions&&_.OC(this.hostElement,"yt-live-chat-actions",[R.actions])},
handleGetContextMenuError:function(R){if(R instanceof Error||R instanceof Object||R instanceof String)var A=R;_.bj(new _.XN("Error encountered calling GetLiveChatItemContextMenu",A))},
showContextMenu_:function(R){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:R}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.xo(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.xo(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Ob.YtLiveChatItemBehavior=[PlN,_.iF.YtComponentBehavior,_.jV.YtOpenPopupBehavior];_.Mv=function(){};var ET7;var znD;var iRS;var lvA;var sb=function(){var R=_.K.apply(this,arguments)||this;R.active=!1;R.identity=_.bJ;return R};
_.H(sb,_.K);sb.prototype.dataChanged=function(){this.active=!1};
sb.prototype.onClick=function(){_.xo(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
sb.prototype.dataChanged=sb.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],sb.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],sb.prototype,"active",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sb.prototype,"dataChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],sb);
_.B(sb,"yt-live-chat-text-input-field-suggestion",function(){if(lvA===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;iRS===void 0&&(iRS=document.createElement("template"));var P=iRS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);lvA=R}R=lvA;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});_.Nv=function(R,A,Y){return CustomEvent.call(this,R,{detail:{value:A,path:Y}})||this};
_.H(_.Nv,CustomEvent);_.Vg=function(){var R=_.K.apply(this,arguments)||this;R.viewerName=null;R.actionMap={"yt-live-chat-actions":"onChatMessage_"};R.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];R.PARTICIPANT_TIME_USEC_=3E8;return R};
_.H(_.Vg,_.K);_.l=_.Vg.prototype;_.l.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.l.addParticipant=function(R){var A=_.X3l(this.participants,R,function(P,E){P=P[Object.keys(P)[0]];E=E[Object.keys(E)[0]];P=String(_.R4(P.authorName)).toLowerCase();E=String(_.R4(E.authorName)).toLowerCase();return P<E?-1:P==E?0:1}.bind(this));
if(A>=0){var Y=this.participants[A];Y[Object.keys(Y)[0]].timestampUsec&&this.splice("participants",A,1,R)}else this.splice("participants",-A-1,0,R);R=R[Object.keys(R)[0]];A=_.R4(R.authorName).toLocaleLowerCase();Y=A.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(Y)||(this.allParticipantsCharMap_[Y]={});this.allParticipantsCharMap_[Y][A]=R};
_.l.getAuthorsFromPrefix=function(R){return this.allParticipantsCharMap_.hasOwnProperty(R)?this.allParticipantsCharMap_[R]:null};
_.l.computeViewerRegex_=function(R){if(!R)return null;R=R.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var A=R.indexOf("@")===0&&_.v("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(A+R.replace(/ /g,"\\s*")+"|^"+R.replace(/ /g,"\\s*")+"$|^"+R.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+R.replace(/ /g,"\\s*")+"$|(?<=\\s)"+R.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.l.checkForStaleParticipants_=function(){var R=this;this.trimOldParticipants_();this.asyncHandle_&&aBl(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.wg(function(){R.checkForStaleParticipants_()},3E4))};
_.l.onChatMessage_=function(R){var A=this,Y=Date.now()*1E3;R.forEach(function(P){if(P=_.n(P,Wwz)){P=P.item;var E=Object.keys(P)[0];A.SUPPORTED_ITEM_TYPES_.indexOf(E)!=-1&&P[E].timestampUsec>=Y-A.PARTICIPANT_TIME_USEC_&&A.addParticipant(P)}},this);
this.checkForStaleParticipants_()};
_.l.trimOldParticipants_=function(){for(var R=Date.now()*1E3,A=this.participants.length-1;A>=0;A--){var Y=this.participants[A];Y=Y[Object.keys(Y)[0]];Y.timestampUsec&&Y.timestampUsec<R-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",A,1)}};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],_.Vg.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],_.Vg.prototype,"viewerName",void 0);_.C([_.S({computed:"computeViewerRegex_(viewerName)"}),_.k("design:type",Object)],_.Vg.prototype,"viewerRegex",void 0);_.C([_.S({value:function(){return[]},
notify:!0}),_.k("design:type",Array)],_.Vg.prototype,"participants",void 0);_.C([_.CG({is:"yt-live-chat-participants-manager",noInjection:!0})],_.Vg);var xQA=/.*([:@#].*?)$/,JB=/\u00a0/g,cu8=String.fromCharCode(160),ORH={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"},yg=function(){var R=_.K.apply(this,arguments)||this;R.disabled=!1;R.liveChatRichMessageInput=null;R.messageInput=null;R.isValidWithNoInputText=!1;R.suggestions=[];R.emojiManager=_.cw;R.inputMethodEditorActive=
!1;R.suggestionIndex=-1;R.JSC$14104_lastSuggestionRange=null;return R};
_.H(yg,_.K);_.l=yg.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.l.attached=function(){_.xB&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.l.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.l.dataChanged=function(){if(!this.ignoreColorMapping){var R=!1,A={},Y;for(Y in ORH)this.data&&this.data.hasOwnProperty(Y)&&(A[ORH[Y]]=this.colorFromDecimal(this.data[Y]),R=!0);R&&_.ya(this.hostElement,A)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.l.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.l.colorFromDecimal=function(R){R=Math.floor(Number(R));return"rgba("+[R>>16&255,R>>8&255,R&255,(R>>24&255)/255].join()+")"};
_.l.preventDrag=function(R){R.dataTransfer&&(R.dataTransfer.dropEffect="none");R.preventDefault()};
_.l.preventResize=function(R){R.returnValue=!1};
_.l.onInputChange=function(){var R=this.characterCount,A=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&A&&A.remove();if(!A&&this.characterCount>this.maxCharacterLimit){var Y=window.getSelection();if(Y){var P=Y.getRangeAt(0);Y.removeAllRanges();Y.addRange(P)}}if(Y=this.getCurrentRange())P=this.calculateTextBeforeRange(Y),this.completeEmojisInRange(Y,P,!0)||this.updateSuggestions(Y,P);P=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(P);
_.xo(this.hostElement,"yt-live-chat-message-input-change",P);A&&this.characterCount===0&&A.remove();Y&&Y.commonAncestorContainer.parentElement.id==="input"&&Y.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>R):Y&&!Y.collapsed&&Y.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(R=this.input.childNodes.length-1;R>=0;R--)this.input.childNodes[R].nodeName==="BR"&&this.input.childNodes[R].remove()};
_.l.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.l.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var R=this.getCurrentRange();R&&R.commonAncestorContainer.parentElement.id==="input"&&R.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.mergeOverflowText=function(R){if(R){var A=document.createRange();A.selectNodeContents(R);A=A.extractContents();this.input.insertBefore(A,R)}};
_.l.checkRangeAtEndOfInput=function(){var R=this.getCurrentRange();if(R){var A=_.Mo(this.hostElement).querySelector("#overflow-text"),Y=document.createRange();A&&A.previousSibling?A.previousSibling instanceof HTMLImageElement?Y.selectNode(A.previousSibling):Y.selectNodeContents(A.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?Y.selectNode(this.input.lastChild):Y.selectNodeContents(this.input.lastChild));Y.collapse(!1);return Y.isPointInRange(R.startContainer,
R.startOffset)}return!1};
_.l.handleOverflowText=function(R){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var A=_.Mo(this.hostElement).querySelector("#overflow-text"),Y=this.getCurrentRange();this.input.normalize();R=this.checkRangeAtEndOfInput()&&R;this.mergeOverflowText(A);for(var P,E=0,z=0,c,M=this.input.childNodes,N=0;N<M.length;N++){var y=M[N];y instanceof Text?(z+=y.textContent.length,z>this.maxCharacterLimit&&(P=y,E=this.maxCharacterLimit+y.textContent.length-z)):y instanceof HTMLImageElement&&
(P=void 0,z=y.dataset.emojiId&&((P=this.data)==null?0:P.emojiCharacterCount)?z+this.data.emojiCharacterCount:z+y.alt.length,P=this.input,E=N);if(z>this.maxCharacterLimit&&P){c=document.createRange();c.collapse(!1);A?(z=this.input.lastChild.previousSibling,z instanceof Text?c.setEnd(this.input.lastChild.previousSibling,z.textContent.length):z instanceof HTMLImageElement&&c.setEnd(this.input,this.input.childNodes.length-1)):c.selectNodeContents(this.input);c.setStart(P,E);break}}c&&(P=!1,Y&&(R=c.isPointInRange(Y.startContainer,
Y.startOffset-1)),A||(A=document.createElement("span"),A.id="overflow-text",A.textContent="",A.setAttribute("contenteditable","true"),_.Mo(_.Mo(this.hostElement).querySelector("#input")).appendChild(A),P=!0),A&&(Y=c.extractContents(),A.insertBefore(Y,A.firstChild),R&&A.firstChild&&(Y=document.createRange(),P?Y.setStartAfter(A.lastChild):Y.setStartAfter(A.firstChild),Y.collapse(!0),A=window.getSelection(),A.removeAllRanges(),A.addRange(Y))))}};
_.l.checkForDuplicateSpans=function(){for(var R=0;R<this.input.childNodes.length;R++){var A=this.input.childNodes[R];if(A.nodeName==="SPAN"){var Y=document.createRange();Y.selectNodeContents(A);Y=Y.extractContents();this.input.insertBefore(Y,A);A.remove()}}this.handleOverflowText(!0)};
_.l.getCurrentRange=function(){var R=window.getSelection();return R&&R.rangeCount?R.getRangeAt(0).cloneRange():null};
_.l.getInputRange=function(){var R=this.getCurrentRange();if(R){for(var A=R.commonAncestorContainer,Y=!1,P=_.Mo(this.hostElement).querySelector("#input");A;){if(A===P){Y=!0;break}A=A.parentNode}Y||(R=null)}R||(R=this.getRangeAtEnd());return R};
_.l.getRangeAtEnd=function(){var R=document.createRange(),A=_.Mo(this.hostElement).querySelector("#input").lastChild;!A||A.nodeName!=="#text"&&A.nodeName!=="SPAN"?(R.selectNodeContents(_.Mo(this.hostElement).querySelector("#input")),R.collapse(!1)):A.nodeName==="#text"?R.setStart(A,A.textContent.length):R.setStart(A,A.childNodes.length);return R};
_.l.getChatParticipantSuggestions=function(R,A,Y,P){var E=_.v("live_chat_enable_handles_web_text_input_update");if(A)for(var z in A)if(z.indexOf(R)===0||E&&z.indexOf(Y+R)===0){var c=A[z],M=_.R4(c.authorName);P.push({suggestion:{author:!0,authorType:Y,image:c.authorPhoto,alt:M,text:M}});if(P.length>=64)break}};
_.l.getSuggestions=function(R){var A=[],Y=R.substring(0,3),P=dp7(_.cw,Y,!0);if(P)for(var E in P)if(E.toLocaleLowerCase().indexOf(R)===0){var z=P[E];if(z&&z.emojiId){if(z=LzG(_.cw,z.emojiId)){var c=void 0,M=void 0,N=void 0,y=void 0,m=((c=z.image)==null?0:(M=c.accessibility)==null?0:(N=M.accessibilityData)==null?0:N.label)||z.isCustomEmoji?(y=z.shortcuts)==null?void 0:y[0]:z.emojiId;A.push({suggestion:{emoji:!0,image:z.image,alt:m,text:E,textToInsertWhenSelected:z.isCustomEmoji?E:m}})}if(A.length>=
64)break}}if(!this.participantsManager)return null;if(Y.indexOf("@")===0||Y.indexOf("#")===0)P=Y.charAt(0),R=R.substring(1),E=_.v("live_chat_enable_handles_web_text_input_update"),Y.indexOf("@")===0&&E&&(E=this.participantsManager.getAuthorsFromPrefix(Y.substring(0,2)),this.getChatParticipantSuggestions(R,E,P,A)),Y=Y.substring(1),Y=this.participantsManager.getAuthorsFromPrefix(Y),this.getChatParticipantSuggestions(R,Y,P,A);return A?A.sort(function(T,Q){return Q.suggestion.text<T.suggestion.text?-1:
Q.suggestion.text===T.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(R){var A=_.v("live_chat_enable_handles_web_text_input_update"),Y=R.authorType;A=R.text.indexOf(Y)===0&&A?R.text+cu8:Y+R.text+cu8;R.emoji?this.insertTextAtRange(this.JSC$14104_lastSuggestionRange,R.textToInsertWhenSelected||""):R.author&&this.insertTextAtRange(this.JSC$14104_lastSuggestionRange,A)};
_.l.updateSuggestionsAtCaret=function(){var R=this.getCurrentRange();R&&this.updateSuggestions(R,this.calculateTextBeforeRange(R))};
_.l.offsetStartOfRangeBy=function(R,A){for(;A>0;)if(R.startOffset-A>=0){R.setStart(R.startContainer,R.startOffset-A);break}else{A=R.startContainer instanceof HTMLImageElement?A-R.startContainer.alt.length:A-R.startOffset;var Y=R.startContainer.previousSibling;if(!Y){R.setStart(R.startContainer,0);break}if(_.v("live_chat_require_space_for_autocomplete_emoji")){var P=void 0,E=void 0;R.setStart(Y,((P=Y)==null?void 0:(E=P.textContent)==null?void 0:E.length)||0)}else R.setStart(Y,Y.childNodes.length||
0)}};
_.l.updateSuggestions=function(R,A){var Y=this;this.JSC$14104_lastSuggestionRange&&(this.JSC$14104_lastSuggestionRange.detach(),this.JSC$14104_lastSuggestionRange=null);if((A=xQA.exec(A))&&A.length&&(A=A[A.length-1].toLocaleLowerCase(),A.length>2&&(this.offsetStartOfRangeBy(R,A.length),this.JSC$14104_lastSuggestionRange=R,(R=this.getSuggestions(A))&&R.length))){this.suggestions=R;_.RK(this,function(){_.Mo(Y.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(R.length-1);return}this.dropdown.opened=!1};
_.l.completeEmojisInRange=function(R,A,Y){var P=A.replace(/[\s\xa0]+$/,"");A=A.length-P.length;P=P.split(" ");P=P[P.length-1].trim().toLocaleLowerCase();var E=P.lastIndexOf(":");if(Y&&!A&&E!==P.length-1)return!1;E!==-1&&(Y=P.lastIndexOf(":",E-1),Y!==-1&&(P=P.substring(Y)));if((Y=_.xs(_.cw,P))&&Y.emojiId){Y=LzG(_.cw,Y.emojiId)||null;this.offsetStartOfRangeBy(R,P.length+A);var z,c,M,N;P=(((z=Y)==null?0:z.isCustomEmoji)?(c=Y)==null?void 0:(M=c.shortcuts)==null?void 0:M[0]:(N=Y)==null?void 0:N.emojiId)||
"";A&&(P+=cu8);this.insertTextAtRange(R,P);this.dropdown.opened=!1;return!0}return!1};
_.l.onSuggestion=function(R){this.insertSuggestion(R.detail);this.dropdown.opened=!1};
_.l.onKeyPress=function(R){R.keyCode===13&&(R.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.xo(this.hostElement,"yt-live-chat-send-message"))};
_.l.completeEmojis=function(){var R=document.createRange(),A=_.Mo(this.hostElement).querySelector("#input").lastChild;A?R.setStart(A,A.childNodes.length):(R.selectNodeContents(_.Mo(this.hostElement).querySelector("#input")),R.collapse(!1));this.completeEmojisInRange(R,this.calculateTextBeforeRange(R),_.v("live_chat_require_space_for_autocomplete_emoji"))};
_.l.maybePreventTextFormatting=function(R){!_.sk||!R.ctrlKey&&!R.metaKey||R.keyCode!==66&&R.keyCode!==73||(R.stopImmediatePropagation(),R.preventDefault())};
_.l.onKeyDown=function(R){this.maybePreventTextFormatting(R);if(this.dropdown.opened)switch(R.keyCode){case 27:this.dropdown.opened=!1;R.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;R.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);R.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),R.preventDefault()}};
_.l.onKeyUp=function(R){switch(R.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.lu)this.onInputChange()};
_.l.changeSuggestionIndex=function(R){if(this.dropdown.opened){var A=_.Mo(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<A.children.length&&(A.children[this.suggestionIndex].active=!1);var Y=this.suggestions.length;this.suggestionIndex=(R+Y)%Y;R=A.children[this.suggestionIndex];R.active=!0;A.scrollTop=R.offsetTop}};
_.l.onInputPaste=function(R){R.preventDefault();(R=R.clipboardData)&&R.types&&(R=R.getData("text/plain")||"",R=R.replace(/\n/g,""),this.insertText(R));(R=this.getCurrentRange())&&R.commonAncestorContainer.parentElement.id==="input"&&R.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.l.onFocus=function(){this._setFocused(!0)};
_.l.onBlur=function(){this._setFocused(!1)};
_.l.insertText=function(R){this.insertTextAtRange(this.getInputRange(),R)};
_.l.insertTextAtRange=function(R,A){if(R&&(R.collapsed||R.deleteContents(),A=_.cw.createDocumentFragment(A,!0,!1))){for(var Y=_.x((A==null?void 0:A.childNodes)||[]),P=Y.next();!P.done;P=Y.next()){P=P.value;var E=void 0,z=void 0,c=void 0,M=void 0,N=void 0;(c=(E=window)==null?void 0:(z=E.ShadyCSS)==null?void 0:z.ScopingShim)==null||(N=(M=c).scopeNode)==null||N.call(M,P,this.hostElement.localName)}Y=A.lastChild;R.insertNode(A);this.focused||this.input.focus();if(this.focused){R=R.cloneRange();R.selectNodeContents(Y);
R.collapse(!1);if(A=window.getSelection())A.removeAllRanges(),A.addRange(R);R.commonAncestorContainer.parentElement.id==="input"&&R.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}R=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(R);_.xo(this.hostElement,"yt-live-chat-message-input-change",R)}};
_.l.setLiveChatRichMessageInput=function(R){_.Mo(_.Mo(this.hostElement).querySelector("#input")).textContent="";if(R&&R.textSegments){for(var A=0;A<R.textSegments.length;A++){var Y=R.textSegments[A];Y.text?_.Mo(_.Mo(this.hostElement).querySelector("#input")).appendChild(_.cw.createDocumentFragment(Y.text,!0,!1)):Y.emojiId&&(Y=_.lO(_.cw,Y.emojiId))&&_.Mo(_.Mo(this.hostElement).querySelector("#input")).appendChild(_.cw.createEmoji(Y,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.l.setText=function(R){this.setLiveChatRichMessageInput(R?{textSegments:[{text:R}]}:null)};
_.l.calculateTextBeforeRange=function(R){var A="",Y=R.startContainer;if(Y&&Y instanceof Text){var P;A=((P=Y.textContent)==null?void 0:P.substring(0,R.startOffset))||"";Y=Y.previousSibling}for(;Y&&Y instanceof Text;)A=Y.textContent+A,Y=Y.previousSibling;return A.replace(JB," ")};
_.l.calculateLiveChatRichMessageInput=function(){for(var R=[],A="",Y=_.Mo(_.Mo(this.hostElement).querySelector("#input")).childNodes,P=0;P<Y.length;P++){var E=Y[P];E instanceof Text?A+=E.textContent:E instanceof HTMLImageElement&&(E.dataset.emojiId?(A&&(R.push({text:A.replace(JB," ")}),A=""),R.push({emojiId:E.dataset.emojiId})):A+=E.alt)}A&&R.push({text:A.replace(JB," ")});if(Y=_.Mo(this.hostElement).querySelector("#overflow-text")){A="";Y=Y.childNodes;for(P=0;P<Y.length;P++)E=Y[P],E instanceof Text?
A+=E.textContent:E instanceof HTMLImageElement&&(E.dataset.emojiId?(A&&(R.push({text:A.replace(JB," ")}),A=""),R.push({emojiId:E.dataset.emojiId})):A+=E.alt);A&&R.push({text:A.replace(JB," ")})}return{textSegments:R}};
_.l.computeCharacterCount=function(R){if(!R||!R.textSegments)return 0;for(var A=0,Y=0;Y<R.textSegments.length;Y++){var P=R.textSegments[Y];if(P.text)A+=P.text.length;else if(P.emojiId){var E=void 0;if((E=this.data)==null?0:E.emojiCharacterCount)A+=this.data.emojiCharacterCount;else{var z=E=void 0,c=void 0;A+=((z=_.lO(_.cw,(E=P)==null?void 0:E.emojiId))==null?void 0:(c=z.shortcuts)==null?void 0:c[0].length)||0}}}return A};
_.l.characterCountChanged=function(){_.xo(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.l.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Nv("focused-changed",this.focused))};
_.l.focus=function(){this.setFocus(!1)};
_.l.focusAtEnd=function(){this.setFocus(!0)};
_.l.setFocus=function(R){R=R?this.getRangeAtEnd():this.getInputRange();_.Mo(this.hostElement).querySelector("#input").focus();var A=window.getSelection();A&&(A.removeAllRanges(),A.addRange(R))};
_.l.insertEmoji=function(R){var A,Y=((R==null?0:R.isCustomEmoji)?(A=R.shortcuts)==null?void 0:A[0]:R==null?void 0:R.emojiId)||"";this.insertText(Y)};
_.l.computeText=function(R){if(!R||!R.textSegments)return"";for(var A="",Y=0;Y<R.textSegments.length;Y++){var P=R.textSegments[Y];if(P.text)A+=P.text;else if(P.emojiId){var E=void 0,z=void 0,c=void 0;A+=((z=_.lO(_.cw,(E=P)==null?void 0:E.emojiId))==null?void 0:(c=z.shortcuts)==null?void 0:c[0])||""}}return A};
_.l.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Yh.Object.defineProperties(yg.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.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}}});
yg.prototype.focusedChanged=yg.prototype.focusedChanged;yg.prototype.characterCountChanged=yg.prototype.characterCountChanged;yg.prototype.onSuggestion=yg.prototype.onSuggestion;yg.prototype.onMessageSet=yg.prototype.onMessageSet;yg.prototype.dataChanged=yg.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],yg.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],yg.prototype,"disabled",void 0);_.C([_.X("disabled"),_.k("design:type",Number),_.k("design:paramtypes",[])],yg.prototype,"inputTabIndex",null);_.C([_.X("data.maxCharacterLimit"),_.S({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],yg.prototype,"maxCharacterLimit",null);
_.C([_.X("liveChatRichMessageInput"),_.S({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],yg.prototype,"characterCount",null);_.C([_.X("maxCharacterLimit, characterCount"),_.S({readOnly:!0,notify:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],yg.prototype,"remainingCharacterCount",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],yg.prototype,"isChatMessageInput",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],yg.prototype,"inputExpanded",void 0);_.C([_.S({readOnly:!0,notify:!0}),_.k("design:type",Object)],yg.prototype,"liveChatRichMessageInput",void 0);_.C([_.S(),_.k("design:type",Object)],yg.prototype,"messageInput",void 0);_.C([_.S(),_.k("design:type",Boolean)],yg.prototype,"ignoreColorMapping",void 0);_.C([_.X("characterCount"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yg.prototype,"hasText",null);
_.C([_.S(),_.k("design:type",Object)],yg.prototype,"isValidWithNoInputText",void 0);_.C([_.X("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.S(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yg.prototype,"isInputValid",null);_.C([_.S({readOnly:!0,value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],yg.prototype,"focused",void 0);_.C([_.S(),_.k("design:type",Array)],yg.prototype,"suggestions",void 0);
_.C([_.S(),_.k("design:type",_.iO)],yg.prototype,"emojiManager",void 0);_.C([_.S(),_.k("design:type",_.Vg)],yg.prototype,"participantsManager",void 0);_.C([_.S(),_.k("design:type",Boolean)],yg.prototype,"noUnderline",void 0);_.C([_.S(),_.k("design:type",Object)],yg.prototype,"inputMethodEditorActive",void 0);_.C([_.nG("#dropdown"),_.k("design:type",Object)],yg.prototype,"dropdown",void 0);_.C([_.nG("#input"),_.k("design:type",HTMLElement)],yg.prototype,"input",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yg.prototype,"dataChanged",null);_.C([_.vZ("messageInput"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yg.prototype,"onMessageSet",null);_.C([_.Qa("yt-live-chat-select-suggestion"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],yg.prototype,"onSuggestion",null);
_.C([_.vZ("characterCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yg.prototype,"characterCountChanged",null);_.C([_.vZ("focused"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yg.prototype,"focusedChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],yg);
_.MT8=_.B(yg,"yt-live-chat-text-input-field-renderer",function(){if(znD===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;ET7===void 0&&(ET7=document.createElement("template"));var P=ET7;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);znD=R}R=znD;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var mX=function(){var R=_.K.apply(this,arguments)||this;R.buttonOverrides={style:"overlay",type:"filled"};R.allowAnimations=!1;R.modern=_.v("web_button_rework_with_live");R.noPadding=!1;return R};
_.H(mX,_.K);_.l=mX.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.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"}}}}};
_.l.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.attached=function(){this.allowAnimations=!1};
_.l.dataChanged=function(){if(this.data){var R={"--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)};_.ya(this.hostElement,R);this.allowAnimations=!0}};
_.l.messageChanged=function(){var R,A=(R=this.data)==null?void 0:R.message;R=_.Mo(_.Mo(this.hostElement).querySelector("#message"));R.textContent="";A&&R.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(A))};
_.l.computeShowOnlyHeader=function(R,A){return!R||R.pdgLikeButton||R.replyButton||R.buyFlowButton?!1:this.isEmpty(R,A)&&!R.footer};
_.l.computeShowFooterDivider=function(R,A,Y){return R?!!R.footer&&!this.isEmpty(R,A)&&!Y:!1};
_.l.computeIsUserEditable=function(R){return!!R.inputField};
_.l.computeHasHeartButton=function(R){return(R==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(R==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(R==null?void 0:R.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.l.computeNoveltyImage=function(R){if(R.headerOverlayImage&&R.headerOverlayImage.thumbnails.length){var A=R.headerOverlayImage.thumbnails[0],Y,P;if((Y=R.pdgPurchasedNoveltyLoggingDirectives)==null?0:(P=Y.loggingDirectives)==null?0:P.trackingParams){var E,z;$QJ((E=R.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=E.loggingDirectives)==null?void 0:z.trackingParams)}return A.width||0}return 0};
_.l.computeAuthorPhotoSize=function(R){return(R==null?0:R.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.l.inputFocus=function(){var R=_.Mo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");R&&R.focus()};
_.l.inputInsertEmoji=function(R){var A=_.Mo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");A&&A.insertEmoji(R)};
_.l.inputMessage=function(){var R=_.Mo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),A;return R&&((A=this.data)==null?0:A.inputField)?(R.completeEmojis(),_.kL(R.liveChatRichMessageInput)):null};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.l.isEmpty=function(R,A){return R?R.empty||!(R.message||R.inputField||A):!0};
_.l.onLowerBuyButtonClick=function(){var R,A=_.n((R=this.data)==null?void 0:R.buyButton,_.RC);A&&A.trackingParams&&!Jtk(A.command)&&(R=_.S5(A.trackingParams))&&(A=_.F9())&&_.qT(A,R)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.Yh.Object.defineProperties(mX.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
mX.prototype.isDeletedChanged=mX.prototype.isDeletedChanged;mX.prototype.messageChanged=mX.prototype.messageChanged;mX.prototype.dataChanged=mX.prototype.dataChanged;_.C([_.U(BjH.YtPdgLiveChatItemBehavior),_.k("design:type",Object)],mX.prototype,"ytPdgLiveChatItemBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],mX.prototype,"ytLiveChatReduxBehavior",void 0);
_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],mX.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mX.prototype,"data",void 0);_.C([_.S({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:DQk}),_.k("design:type",Object)],mX.prototype,"engagementState",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.k("design:type",Boolean)],mX.prototype,"isUserEditable",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.k("design:type",Boolean)],mX.prototype,"hasHeartButton",void 0);_.C([_.S({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.k("design:type",Boolean)],mX.prototype,"showOnlyHeader",void 0);
_.C([_.S({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.k("design:type",Boolean)],mX.prototype,"showFooterDivider",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],mX.prototype,"allowAnimations",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mX.prototype,"dashboardMoneyFeed",void 0);_.C([_.S({computed:"computeNoveltyImage(data)"}),_.k("design:type",Number)],mX.prototype,"noveltyWidth",void 0);
_.C([_.S({computed:"computeAuthorPhotoSize(data)"}),_.k("design:type",Number)],mX.prototype,"authorPhotoSize",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mX.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mX.prototype,"noPadding",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mX.prototype,"dataChanged",null);
_.C([_.vZ("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mX.prototype,"messageChanged",null);_.C([_.X("data","dashboardMoneyFeed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mX.prototype,"hideLowerBumper",null);_.C([_.vZ("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mX.prototype,"isDeletedChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],mX);
_.B(mX,"yt-live-chat-paid-message-renderer",function(){if(gOA===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;vOZ===void 0&&(vOZ=document.createElement("template"));var P=vOZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);gOA=R}R=gOA;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var sdE;var NDS;var TV=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;return R};
_.H(TV,_.rg);TV.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.a1("openPopupConfig")};
_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],TV.prototype,"ytOpenPopupBehavior",void 0);_.C([_.Do()],TV);_.Qg=[_.jV.YtOpenPopupBehavior,TV.prototype];var VTA;var qH=[_.Ds,N4b,_.qN,_.Ud,_.LO,_.b$A,_.SI,_.Js7,_.UR,wEk];_.v("web_watch_get_updated_metadata_response_processing")&&qH.push(_.b_A);_.v("web_continuation_response_processing")&&qH.push(_.oE);var sTS=new _.cP("RESPONSE_RECEIVED_COMMANDS"),kCJ=new _.cP("RESPONSE_RECEIVED_COMMANDS");var pEk="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),fak=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],bVb=["GET_UNSEEN_NOTIFICATION_COUNT"];var vw=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;R.serviceEndpointHandlers=[];return R};
_.H(vw,_.rg);vw.prototype.created=function(){var R=this;this.endpointHandlerActionMap={"yt-service-request":function(A,Y,P,E){var z;return jtb(R.hostElement,A,Y,P,E,R.serviceEndpointHandlers,(z=R.onEntitiesUpdated)==null?void 0:z.bind(R))}}};
vw.prototype.attached=function(){_.t$(_.ZA.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
vw.prototype.detached=function(){_.e_(_.ZA.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.C([_.Do()],vw);_.Ju8=[vw.prototype];var yuE,mQS=function(){return yuE!==void 0?yuE:yuE=document.createElement("template")};
document.head.appendChild(mQS().content);var TDz;var QdS=document.head,vTS=QdS.appendChild,gTA;if(TDz===void 0){var nTA=document.createElement("template");_.D(nTA,"\x3c!--css-build:shady--\x3e");nTA.content.insertBefore(mQS().content.cloneNode(!0),nTA.content.firstChild);TDz=nTA}gTA=TDz;vTS.call(QdS,gTA.content);var HRf,ruG=function(){return HRf!==void 0?HRf:HRf=document.createElement("template")};
document.head.appendChild(ruG().content);var DQq;var UQG=document.head,$Q8=UQG.appendChild,X5b;if(DQq===void 0){var SN8=document.createElement("template");_.D(SN8,"\x3c!--css-build:shady--\x3e");SN8.content.insertBefore(ruG().content.cloneNode(!0),SN8.content.firstChild);DQq=SN8}X5b=DQq;$Q8.call(UQG,X5b.content);var Ivb;_.bh("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.bh("sharingRendererButtons","buttonRenderer","ytd-button-renderer");Ivb=_.v("web_button_rework")&&_.CQ("BUTTON_REWORK")||_.v("web_button_rework_with_live");_.gI=function(){var R=_.K.apply(this,arguments)||this;R.isPressed=!1;R.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return R};
_.H(_.gI,_.K);_.l=_.gI.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.onHintIdChanged=function(){var R=this,A,Y,P=(A=this.ytButtonBehavior.data)==null?void 0:(Y=A.hint)==null?void 0:Y.hintRenderer;if(P&&P.hintId){A=_.MT(this.hostElement,"yt-get-opened-popups-action");A=(A&&A.length===1?A[0]:[]).length>0;var E=null;P.hintId!=="sponsor-pre-purchase"||A?P.hintId.startsWith("sponsor-post-purchase")&&!A?E=drq("membership-manage"):P.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!A&&(E=drq("membership-freebie-join")):E=drq("membership-join");E&&_.fn.addLowPriorityJob(function(){for(var z=
_.x(E),c=z.next();!c.done;c=z.next())R.ytComponentBehavior.resolveCommand(c.value)})}};
_.l.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.l.onYtNavigate=function(R){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);A&&(R.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(A))};
_.l.onYtServiceRequestSent=function(R,A){this.handleServiceRequestActions(A);_.xo(this.hostElement,"yt-service-request-sent-button-renderer")};
_.l.onServiceRequestCompleted=function(R,A){this.handleServiceRequestActions(A);_.xo(this.hostElement,"yt-service-request-completed-button-renderer")};
_.l.updateButton=function(R){var A;if(R=(A=_.n(R,EPA))==null?void 0:A.updatedButton)this.ytButtonBehavior.data=_.n(R,_.RC)};
_.l.handleUpdateButtonAction=function(R){var A=this.ytButtonBehavior.data;A.targetId&&R.updateButtonAction.targetId&&A.targetId===R.updateButtonAction.targetId&&this.updateButton(R)};
_.l.handleServiceRequestActions=function(R){if(R=R.actions)for(var A=0;A<R.length;A++)this.updateButton(R[A])};
_.Yh.Object.defineProperties(_.gI,{template:{configurable:!0,enumerable:!0,get:function(){if(VTA===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);VTA=R}R=VTA;return R}}});
_.gI.prototype.onServiceRequestCompleted=_.gI.prototype.onServiceRequestCompleted;_.gI.prototype.onYtServiceRequestSent=_.gI.prototype.onYtServiceRequestSent;_.gI.prototype.onYtNavigate=_.gI.prototype.onYtNavigate;_.gI.prototype.onPressedStateChanged=_.gI.prototype.onPressedStateChanged;_.gI.prototype.onHintIdChanged=_.gI.prototype.onHintIdChanged;_.C([_.S(),_.k("design:type",Object)],_.gI.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],_.gI.prototype,"isPressed",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],_.gI.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.aKH.YtButtonBehavior),_.k("design:type",Object)],_.gI.prototype,"ytButtonBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],_.gI.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],_.gI.prototype,"ytComponentBehavior",void 0);
_.C([_.U(ku.YtRenderButtonBehavior),_.k("design:type",Object)],_.gI.prototype,"ytRenderButtonBehavior",void 0);_.C([_.vZ("data.hint.hintRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],_.gI.prototype,"onHintIdChanged",null);_.C([_.vZ("isPressed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],_.gI.prototype,"onPressedStateChanged",null);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],_.gI.prototype,"onYtNavigate",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],_.gI.prototype,"onYtServiceRequestSent",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],_.gI.prototype,"onServiceRequestCompleted",null);_.C([_.F({is:"ytd-button-renderer",disableElementRegistration:Ivb})],_.gI);var nl=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_button_rework_with_live");R.buttonOverrides={style:"overlay",type:"filled"};return R};
_.H(nl,_.K);_.l=nl.prototype;_.l.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"}}}}};
_.l.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.l.dataChanged=function(){if(this.data&&this.data.sticker){var R=_.MH(this.data.sticker.thumbnails,this.stickerWidth);R||_.qvk(R).thenCatch(function(){_.pK(new _.XN("Failed to load Super Sticker with url",R))})}};
_.l.computeAuthorPhotoSize=function(R){return(R==null?0:R.isV2Style)?32:40};
_.l.computeIsV2Style=function(R){return(R==null?0:R.isV2Style)?!0:!1};
_.l.onStickerLoaded=function(R){var A,Y,P;(A=_.Yw(R))==null||(Y=A.parentNode)==null||(P=Y.classList)==null||P.add("sticker-loaded")};
_.l.computeNoveltyImageWidth=function(R){var A,Y;if(R==null?0:(A=R.headerOverlayImage)==null?0:(Y=A.thumbnails)==null?0:Y.length){A=R.headerOverlayImage.thumbnails[0];var P,E;if((P=R.pdgPurchasedNoveltyLoggingDirectives)==null?0:(E=P.loggingDirectives)==null?0:E.trackingParams){var z,c;$QJ((z=R.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(c=z.loggingDirectives)==null?void 0:c.trackingParams)}return A.width||0}return 0};
_.l.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.l.updateStickerStyles=function(){var R=this.data;R&&(R={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(R.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(R.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(R.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(R.authorNameTextColor)},
_.ya(this.hostElement,R))};
_.l.onBuyButtonClick=function(){var R,A=_.n((R=this.data)==null?void 0:R.buyButton,_.RC);A&&!Jtk(A.command)&&this.ytRendererBehavior.logExplicitClick(A)};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.Yh.Object.defineProperties(nl.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 R;return((R=this.data)==null?0:R.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
nl.prototype.updateStickerStyles=nl.prototype.updateStickerStyles;nl.prototype.isDeletedChanged=nl.prototype.isDeletedChanged;nl.prototype.onStickerLoaded=nl.prototype.onStickerLoaded;nl.prototype.dataChanged=nl.prototype.dataChanged;_.C([_.U(BjH.YtPdgLiveChatItemBehavior),_.k("design:type",Object)],nl.prototype,"ytPdgLiveChatItemBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],nl.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],nl.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nl.prototype,"data",void 0);
_.C([_.S({computed:"computeAuthorPhotoSize(data)"}),_.k("design:type",Number)],nl.prototype,"authorPhotoSize",void 0);_.C([_.S(),_.k("design:type",Boolean)],nl.prototype,"isDeleted",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],nl.prototype,"dashboardMoneyFeed",void 0);_.C([_.S({computed:"computeNoveltyImageWidth(data)"}),_.k("design:type",Number)],nl.prototype,"noveltyWidth",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],nl.prototype,"modern",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.k("design:type",Boolean)],nl.prototype,"isV2Style",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nl.prototype,"dataChanged",null);_.C([_.Qa("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],nl.prototype,"onStickerLoaded",null);
_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],nl.prototype,"stickerWidth",null);_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],nl.prototype,"stickerHeight",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nl.prototype,"hasHeartButton",null);_.C([_.X("data","dashboardMoneyFeed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nl.prototype,"hideLowerBumper",null);
_.C([_.vZ("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nl.prototype,"isDeletedChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nl.prototype,"updateStickerStyles",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],nl);
_.B(nl,"yt-live-chat-paid-sticker-renderer",function(){if(NDS===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;sdE===void 0&&(sdE=document.createElement("template"));var P=sdE;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);NDS=R}R=NDS;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var KRA;var WR8;var jd8,bRA=function(){return jd8!==void 0?jd8:jd8=document.createElement("template")};
document.head.appendChild(bRA().content);var fvE,p5A=function(){return fvE!==void 0?fvE:fvE=document.createElement("template")};
document.head.appendChild(p5A().content);var FRG;var BD7,avS=function(){return BD7!==void 0?BD7:BD7=document.createElement("template")};
document.head.appendChild(avS().content);var Clz;var hnH=document.head,oT7=hnH.appendChild,kUE;if(Clz===void 0){var GUz=document.createElement("template");_.D(GUz,"\x3c!--css-build:shady--\x3e");GUz.content.insertBefore(avS().content.cloneNode(!0),GUz.content.firstChild);Clz=GUz}kUE=Clz;oT7.call(hnH,kUE.content);var ZR8=document.head,tTA=ZR8.appendChild,w5S;if(FRG===void 0){var Hw=document.createElement("template");_.D(Hw,"\x3c!--css-build:shady--\x3e");Hw.content.insertBefore(p5A().content.cloneNode(!0),Hw.content.firstChild);Hw.content.insertBefore(bRA().content.cloneNode(!0),Hw.content.firstChild);FRG=Hw}w5S=FRG;tTA.call(ZR8,w5S.content);var rI=function(){var R=_.rg.apply(this,arguments)||this;R.focusedIndex=0;R.verticalOffset=0;R.verticalAlign="top";R.dynamicAlign=!0;return R};
_.H(rI,_.rg);rI.prototype.emojiUrl=function(R){R=_.lO(this.emojiManager,R);if(!R)return"";var A;R=(A=R.image)==null?void 0:A.thumbnails;return _.MH(R,24)||""};
var uMS=function(R){var A;R.emojiVariants&&(A=R.data)!=null&&A.target&&_.RK(R,function(){R.set("verticalOffset",-1*R.hostElement.clientHeight);var Y=_.Mo(R.hostElement).querySelector("img");Y&&Y.focus()})};
_.l=rI.prototype;_.l.onKeyboardEnter=function(){};
_.l.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.l.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.l.onKeyDown=function(R){switch(R.keyCode){case 13:this.onKeyboardEnter();R.preventDefault();break;case 40:this.changeFocus(1);R.preventDefault();break;case 38:this.changeFocus(-1);R.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.l.onYtEmojiSelect=function(R){var A=this,Y,P,E,z,c,M,N,y;return _.O(function(m){if(m.nextAddress==1)return P=(Y=A.data)==null?void 0:Y.emoji,c=((E=P)==null?void 0:E.stickyPrefId)||((z=P)==null?void 0:z.emojiId),N=(M=R.detail)==null?void 0:M.emojiId,c&&N&&c!==N?m.yield((y=A.emojiManager)==null?void 0:RnE(y,P,N),2):m.return();_.OC(A.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[P,N]);_.XH(m)})};
_.l.changeFocus=function(R){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+R+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(R=_.Mo(this.hostElement).querySelector("#variants"))&&R.children[this.focusedIndex].focus())};
_.Yh.Object.defineProperties(rI.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
rI.prototype.onYtEmojiSelect=rI.prototype.onYtEmojiSelect;rI.prototype.onKeyDown=rI.prototype.onKeyDown;rI.prototype.onEmojiVariantsChanged=rI.prototype.onEmojiVariantsChanged;rI.prototype.onVerticalOffsetOrPositionTargetChanged=rI.prototype.onVerticalOffsetOrPositionTargetChanged;_.C([_.U(_.Ae),_.k("design:type",Object)],rI.prototype,"ironOverlayBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rI.prototype,"data",void 0);_.C([_.S(),_.k("design:type",_.iO)],rI.prototype,"emojiManager",void 0);
_.C([_.S(),_.k("design:type",Object)],rI.prototype,"emojiVariants",void 0);_.C([_.S(),_.k("design:type",Object)],rI.prototype,"focusedIndex",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],rI.prototype,"positionTarget",null);_.C([_.S({reflectToAttribute:!0}),_.X("verticalOffset","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],rI.prototype,"isPositioned",null);_.C([_.S(),_.k("design:type",Object)],rI.prototype,"verticalOffset",void 0);
_.C([_.S(),_.k("design:type",Object)],rI.prototype,"verticalAlign",void 0);_.C([_.S(),_.k("design:type",Object)],rI.prototype,"dynamicAlign",void 0);_.C([_.vZ("verticalOffset","positionTarget"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rI.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.C([_.vZ("emojiVariants"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rI.prototype,"onEmojiVariantsChanged",null);
_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],rI.prototype,"onKeyDown",null);_.C([_.Qa("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype",Promise)],rI.prototype,"onYtEmojiSelect",null);_.C([_.Do()],rI);var enE=[rI.prototype];var qNS;var LRZ;var dQS=/medium-light|medium-dark|light|medium|dark/,RfA=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,A2f=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Dm=function(){var R=_.K.apply(this,arguments)||this;R.userSelection={left:null,right:null};R.scrollAction="lock";R.isEmojiDraftInProgress=!1;return R};
_.H(Dm,_.K);_.l=Dm.prototype;_.l.onClick=function(R){R=_.Yw(R);R instanceof HTMLImageElement&&this.selectOrUpdateEmoji(R)};
_.l.selectOrUpdateEmoji=function(R){var A=R.getAttribute("selection");A&&(A==="default"?_.xo(this.hostElement,"yt-emoji-select",_.lO(this.emojiManager,R.id)):A==="left"?this.userSelection=Object.assign({},this.userSelection,{left:R.src}):A==="right"?this.userSelection=Object.assign({},this.userSelection,{right:R.src}):A==="user"&&this.userSelection.left&&this.userSelection.right&&_.xo(this.hostElement,"yt-emoji-select",_.lO(this.emojiManager,R.id)))};
_.l.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.l.onMultiSelectorThumbnailRowChanged=function(){var R,A,Y;((R=this.data)==null?0:(A=R.emoji)==null?0:(Y=A.multiSelectorThumbnailRow)==null?0:Y.length)&&this.openSelector()};
_.l.getThumbnailFromEmojiRow=function(R){var A,Y;return(R==null?void 0:(A=R.thumbnails)==null?void 0:(Y=A[0])==null?void 0:Y.url)||""};
_.l.getEmojiAltTextForPartialSelector=function(R){var A;return((A=this.getThumbnailFromEmojiRow(R).match(RfA))==null?void 0:A[0])||""};
_.l.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.l.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.l.getRowSelection=function(R){return["left","right"][R]};
_.l.getIdFromComposedEmoji=function(R){return(R==null?void 0:R.emojiId)||""};
_.l.getEmojiFromPartialSelections=function(R,A){if(!R&&!A)return null;var Y,P,E=(Y=this.data)==null?void 0:(P=Y.emoji)==null?void 0:P.variantIds;if(!E||!E.length)return null;var z;R=(z=R.match(dQS))==null?void 0:z[0];var c;A=(c=A.match(dQS))==null?void 0:c[0];if(!R||!A)return null;var M=A2f.get(R);c=A2f.get(A);if(M===c){c=Array.from(A2f.values()).filter(function(y){return y!==M}).join("|");
var N=new RegExp("^((?!("+c+")).)*"+M+"$")}else N=new RegExp(M+".*"+c);return(E=E.find(function(y){return N.test(y)}))&&_.lO(this.emojiManager,E)||null};
_.l.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var R,A=this.ytEmojiSelectorBehavior.emojiUrl(((R=this.data.emoji)==null?void 0:R.emojiId)||"");_.Mo(this.hostElement).querySelector('[selection="user"]').src.includes(A)||(this.isEmojiDraftInProgress=!0)}};
_.l.onDomChange=function(){uMS(this.ytEmojiSelectorBehavior)};
_.l.getFocusableElements=function(){return _.Mo(this.hostElement).querySelectorAll("img").filter(function(R){return R.getAttribute("role")==="option"})};
_.l.changeFocus=function(R){var A=this.getFocusableElements();A!=null&&A.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+R+A.length)%A.length,this.ytEmojiSelectorBehavior.focusedIndex<A.length&&(R=A[this.ytEmojiSelectorBehavior.focusedIndex])&&R.focus())};
_.l.onKeyboardEnter=function(){var R=this.getFocusableElements();R!=null&&R.length&&(R=R[this.ytEmojiSelectorBehavior.focusedIndex])&&R instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(R),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Yh.Object.defineProperties(Dm.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var R=this,A,Y,P;return this.emojiManager&&((A=this.data)==null?0:(Y=A.emoji)==null?0:(P=Y.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(E){return!!E&&_.lO(R.emojiManager,E)}).filter(function(E){return!!E}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var R,A=(R=this.userSelection)==null?void 0:R.left,Y;R=(Y=this.userSelection)==null?void 0:Y.right;return A&&R?this.getEmojiFromPartialSelections(A,R):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.composedEmojiSelection)==null?0:R.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var A;R=(A=this.userSelection)==null?void 0:A.left;var Y;A=(Y=this.userSelection)==null?void 0:Y.right;if(!R&&!A){var P;return this.ytEmojiSelectorBehavior.emojiUrl(((P=this.data.emoji)==null?void 0:P.emojiId)||"")}return R&&!A?R:!R&&A?A:""}}});
Dm.prototype.onMultiSelectorThumbnailRowChanged=Dm.prototype.onMultiSelectorThumbnailRowChanged;Dm.prototype.onClick=Dm.prototype.onClick;_.C([_.U(_.Ae),_.k("design:type",Object)],Dm.prototype,"ironOverlayBehavior",void 0);_.C([_.U(enE),_.k("design:type",Object)],Dm.prototype,"ytEmojiSelectorBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Dm.prototype,"data",void 0);_.C([_.S(),_.k("design:type",_.iO)],Dm.prototype,"emojiManager",void 0);
_.C([_.S(),_.k("design:type",Object)],Dm.prototype,"userSelection",void 0);_.C([_.S(),_.k("design:type",Object)],Dm.prototype,"scrollAction",void 0);_.C([_.S(),_.k("design:type",Object)],Dm.prototype,"isEmojiDraftInProgress",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dm.prototype,"emojiVariants",null);_.C([_.X("data","userSelection"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dm.prototype,"composedEmojiSelection",null);
_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],Dm.prototype,"onClick",null);_.C([_.vZ("data.emoji.multiSelectorThumbnailRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dm.prototype,"onMultiSelectorThumbnailRowChanged",null);_.C([_.X("data","userSelection","composedEmojiSelection"),_.k("design:type",String),_.k("design:paramtypes",[])],Dm.prototype,"draftEmojiUrl",null);
_.C([_.CG({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Dm);
_.B(Dm,"yt-emoji-multi-person-selector",function(){if(LRZ===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;qNS===void 0&&(qNS=document.createElement("template"));var P=qNS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);LRZ=R}R=LRZ;return R},{mode:2});var YvD;var PRN;var Ub=function(){var R=_.K.apply(this,arguments)||this;R.tooltip_=null;return R};
_.H(Ub,_.K);_.l=Ub.prototype;_.l.dataChanged_=function(){var R;if((R=this.data)==null?0:R.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Mo(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.Jh)(this.tooltip_).textContent=this.data.tooltip};
_.l.computeTargetId=function(){var R;return((R=this.data)==null?void 0:R.targetId)||""};
_.l.computeId_=function(R){return R};
_.l.computeIcon_=function(R){return _.m0(R)};
_.l.onTap_=function(){this.active=!this.active;_.xo(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.l.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("active-changed",this.active))};
_.Yh.Object.defineProperties(Ub.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var R,A;if((R=this.data)==null?0:(A=R.icon)==null?0:A.iconType)return this.data.icon.iconType==="SUPER_STICKER";var Y,P;return((Y=this.data)==null?void 0:(P=Y.icon)==null?void 0:P.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Ub.prototype.activeChangedForBinding=Ub.prototype.activeChangedForBinding;Ub.prototype.dataChanged_=Ub.prototype.dataChanged_;_.C([_.U(_.zu.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],Ub.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ub.prototype,"data",void 0);_.C([_.S({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.k("design:type",String)],Ub.prototype,"id",void 0);
_.C([_.S({computed:"computeTargetId(data.targetId)"}),_.k("design:type",String)],Ub.prototype,"targetId",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ub.prototype,"active",void 0);_.C([_.S({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.k("design:type",String)],Ub.prototype,"icon",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ub.prototype,"dataChanged_",null);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ub.prototype,"iconFilled",null);_.C([_.vZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ub.prototype,"activeChangedForBinding",null);_.C([_.CG({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Ub);
_.B(Ub,"yt-emoji-picker-category-button-renderer",function(){if(PRN===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;YvD===void 0&&(YvD=document.createElement("template"));var P=YvD;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);PRN=R}R=PRN;return R},{mode:2});var EfA;var zfE;var $M=function(){var R=_.K.apply(this,arguments)||this;R.ariaLabel=null;R.ariaActivedescendant=null;R.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};R.JSC$14169_ignoreNextFocus_=!1;R.longPressTimeoutId=-1;return R};
_.H($M,_.K);_.l=$M.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var R=_.rU(),A=0;A<this.emoji.length;A++){var Y={veType:88013,elementIndex:A},P=this.emoji[A];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(Y=_.Hc(R,Y))&&(P.visualElement=Y)}};
_.l.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.l.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.l.emojiSkinToneChanged_=function(R){this.skinTone=R};
_.l.dataChanged=function(){this.data&&this.data.emojiData&&emS(this.emojiManager,this.data.emojiData)};
_.l.emojiUrl=function(R){R=this.getEmoji(R);if(!R)return"";var A;R=(A=R.image)==null?void 0:A.thumbnails;return _.MH(R,24)||""};
_.l.emojiAlt=function(R){var A=this.get("image.accessibility.accessibilityData.label",R);return A?A:R.isCustomEmoji?R.shortcuts[0]:R.emojiId};
_.l.emojiAriaLabel=function(R){return R.shortcuts?R.shortcuts[0]:""};
_.l.emojiAriaSelected=function(R,A,Y){return R&&Y==A?"true":"false"};
_.l.getEmoji=function(R){if(this.emojiManager)return this.shouldUseStickyPreferences?LzG(this.emojiManager,R):xM(this.emojiManager,R)};
_.l.computeId_=function(R){return R.categoryId||""};
_.l.computeEmoji=function(R){var A=this;return this.emojiManager?R.emojiIds?R.emojiIds.map(function(Y){return Y?_.lO(A.emojiManager,Y):null}).filter(LiP):R.emojiData?R.emojiData.map(function(Y){var P=!!Y.emojiId&&_.lO(A.emojiManager,Y.emojiId);
return P?Object.assign({},P,Y):null}).filter(LiP):[]:[]};
_.l.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.l.computeAriaLabel_=function(R){return _.R4(R)};
_.l.computeAriaActivedescendant_=function(R,A){return R&&R[A]?R[A].emojiId||"":""};
_.l.handleLongPressEmojiWithVariants=function(R,A){this.changeFocusToEmoji(R.emojiId,!1);this.openVariantSelector(R,A)};
_.l.onMouseDown=function(R){var A=this;this.hostElement!==document.activeElement&&(this.JSC$14169_ignoreNextFocus_=!0);if(R.button===0){var Y=_.Yw(R);if(Y instanceof HTMLImageElement){var P=_.Mo(this.hostElement).querySelector("#repeat").itemForElement(Y);this.emojiContainsVariants(P)&&(this.longPressTimeoutId=setTimeout(function(){A.handleLongPressEmojiWithVariants(P,Y)},500))}}};
_.l.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.l.onFocus=function(){this.JSC$14169_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14169_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.emojiContainsVariants=function(R){return!!(R&&R.variantIds&&R.variantIds.length)};
_.l.onClick=function(R){clearTimeout(this.longPressTimeoutId);R=_.Yw(R);if(R instanceof HTMLImageElement){var A=R.id;this.changeFocusToEmoji(A,!1);var Y=this.getEmoji(A),P;if(P=this.shouldUseStickyPreferences&&this.emojiContainsVariants(Y)){var E;P=!((E=this.emojiManager.emojiMap[A])!=null&&E.stickyPrefId)}P?(E=_.Mo(this.hostElement).querySelector("#repeat").itemForElement(R),this.openVariantSelector(E,R)):_.xo(this.hostElement,"yt-emoji-select",Y)}};
_.l.isActiveEmojiWithVariants=function(R,A){return R&&A?A.stickyPrefId?R===A.stickyPrefId:R===A.emojiId:!1};
_.l.onCloseEmojiVariantSelector=function(R){this.activeEmojiWithVariantsId===R&&(this.activeEmojiWithVariantsId="")};
_.l.onMouseOver_=function(R){R=_.Yw(R);R instanceof HTMLImageElement&&_.xo(this.hostElement,"yt-emoji-hover",_.lO(this.emojiManager,R.id))};
_.l.changeFocus_=function(R,A){this.focusedIndex=(this.focusedIndex+R+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(R=this.emoji[this.focusedIndex],A&&(this.showFocus=!0,_.Mo(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.xo(this.hostElement,"yt-emoji-hover",R)))};
_.l.changeFocusToEmoji=function(R,A){if(R){var Y=this.emoji.findIndex(function(P){return P.emojiId===R});
Y!==-1&&this.changeFocus_(Y-this.focusedIndex,A)}};
_.l.onKeyDown_=function(R){switch(R.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var A=this.emoji[this.focusedIndex];if(A&&A.emojiId){if(this.emojiContainsVariants(A)){var Y=_.Mo(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(A,Y)}else _.xo(this.hostElement,"yt-emoji-select",xM(this.emojiManager,A.emojiId)),this.hostElement.focus();R.preventDefault()}}break;case 40:this.changeFocus_(1,!0);R.preventDefault();break;case 38:this.changeFocus_(-1,!0),
R.preventDefault()}};
_.l.onEmojiStickyPreferenceChanged=function(R,A){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&R.emojiId&&R.variantIds&&R.variantIds.includes(A)&&this.activeEmojiWithVariantsId!==A&&this.setStickyEmojiPreference(R.emojiId,A)};
_.l.openVariantSelector=function(R,A){this.activeEmojiWithVariantsId=R.stickyPrefId||R.emojiId||"";_.xo(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:R,target:A})};
_.l.setStickyEmojiPreference=function(R,A){if(this.data){var Y=this.emoji.findIndex(function(E){return E.emojiId===R});
if(Y!==-1){var P=this.emoji[Y];P.stickyPrefId=A;this.set("emoji."+Y,Object.assign({},P));this.activeEmojiWithVariantsId=A}}};
$M.prototype.onKeyDown_=$M.prototype.onKeyDown_;$M.prototype.onMouseOver_=$M.prototype.onMouseOver_;$M.prototype.onClick=$M.prototype.onClick;$M.prototype.onBlur_=$M.prototype.onBlur_;$M.prototype.onFocus=$M.prototype.onFocus;$M.prototype.onMouseUp=$M.prototype.onMouseUp;$M.prototype.onMouseDown=$M.prototype.onMouseDown;$M.prototype.dataChanged=$M.prototype.dataChanged;$M.prototype.disableIncrementalLoadingChanged_=$M.prototype.disableIncrementalLoadingChanged_;$M.prototype.emojiManagerChanged_=$M.prototype.emojiManagerChanged_;
$M.prototype.emojiChanged_=$M.prototype.emojiChanged_;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$M.prototype,"data",void 0);_.C([_.S({computed:"computeId_(data)"}),_.k("design:type",String)],$M.prototype,"id",void 0);_.C([_.S({computed:"computeEmoji(data)"}),_.k("design:type",Array)],$M.prototype,"emoji",void 0);_.C([_.S(),_.k("design:type",Number)],$M.prototype,"skinTone",void 0);
_.C([_.S(),_.k("design:type",_.iO)],$M.prototype,"emojiManager",void 0);_.C([_.S(),_.k("design:type",Boolean)],$M.prototype,"disableIncrementalLoading",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],$M.prototype,"focusedIndex",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],$M.prototype,"showFocus",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.k("design:type",Object)],$M.prototype,"ariaLabel",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.k("design:type",Object)],$M.prototype,"ariaActivedescendant",void 0);_.C([_.S({value:60}),_.k("design:type",Number)],$M.prototype,"domRepeatTargetFramerate",void 0);_.C([_.S({value:1}),_.k("design:type",Number)],$M.prototype,"domRepeatInitialCount",void 0);_.C([_.S({value:""}),_.k("design:type",String)],$M.prototype,"activeEmojiWithVariantsId",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],$M.prototype,"shouldUseStickyPreferences",void 0);_.C([_.vZ("emoji"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$M.prototype,"emojiChanged_",null);_.C([_.vZ("emojiManager"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$M.prototype,"emojiManagerChanged_",null);
_.C([_.vZ("disableIncrementalLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$M.prototype,"disableIncrementalLoadingChanged_",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$M.prototype,"dataChanged",null);_.C([_.Qa("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],$M.prototype,"onMouseDown",null);
_.C([_.Qa("mouseup"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$M.prototype,"onMouseUp",null);_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$M.prototype,"onFocus",null);_.C([_.Qa("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$M.prototype,"onBlur_",null);
_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],$M.prototype,"onClick",null);_.C([_.Qa("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],$M.prototype,"onMouseOver_",null);_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],$M.prototype,"onKeyDown_",null);
_.C([_.CG({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],$M);
_.B($M,"yt-emoji-picker-category-renderer",function(){if(zfE===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;EfA===void 0&&(EfA=document.createElement("template"));var P=EfA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);zfE=R}R=zfE;return R},{mode:2});var iVZ;var laS;var x7D;var c2H;var XP=function(){var R=_.K.apply(this,arguments)||this;R.ariaLabel=null;R.ariaActivedescendant=null;R.getFormattedStringRawText=_.R4;R.JSC$14175_ignoreNextFocus_=!1;return R};
_.H(XP,_.K);_.l=XP.prototype;_.l.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")};
_.l.emojiUrl=function(R){var A,Y;R=(A=xM(this.emojiManager,R,!0))==null?void 0:(Y=A.image)==null?void 0:Y.thumbnails;return _.MH(R,24)||""};
_.l.emojiAlt=function(R){var A=this.get("image.accessibility.accessibilityData.label",R);return A?A:R.isCustomEmoji?R.shortcuts[0]:R.emojiId};
_.l.emojiId=function(R){return"emoji"+R};
_.l.computeId_=function(R){return R.categoryId||""};
_.l.computeAriaActivedescendant_=function(R){return this.emoji&&R<this.emoji.length?this.emojiId(R):""};
_.l.emojiChanged_=function(){this.changeFocus_(0,!1);for(var R=_.rU(),A=0;A<this.emoji.length;A++){var Y={veType:88013,elementIndex:A},P=this.emoji[A];P.isCustomEmoji&&(P=document.querySelector(("#"+P.emojiId).replace("/","\\/")))&&(Y=_.Hc(R,Y))&&(P.visualElement=Y)}};
_.l.computeEmoji_=function(R){var A=this;return this.emojiManager?R.emojiIds.map(function(Y){return _.lO(A.emojiManager,Y,!0)}).filter(d7J):[]};
_.l.titleOffsetChanged_=function(){var R=this.hostElement.getBoundingClientRect(),A=_.Mo(this.hostElement).querySelector("#title").getBoundingClientRect();R=Math.max(0,Math.min(this.titleOffset,R.height-A.height));_.Mo(this.hostElement).querySelector("#title").style.top=R+"px"};
_.l.onEmojiMouseOver_=function(R){_.xo(this.hostElement,"yt-emoji-hover",R.model.item)};
_.l.onEmojiTap_=function(R){this.data.command&&(R=fvk(_.is().resolve(_.z3(on)),this.data.command,R),_.xo(this.hostElement,"yt-navigate",R))};
_.l.emojiAriaLabel=function(R){return R.shortcuts[0]};
_.l.emojiAriaSelected=function(R,A,Y){return R&&Y==A?"true":"false"};
_.l.changeFocus_=function(R,A){var Y=this.emoji.length;this.focusedIndex=(this.focusedIndex+R+Y)%Y;R=this.emoji[this.focusedIndex];if(A){var P;(P=_.Mo(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||P.scrollIntoView(!1);_.xo(this.hostElement,"yt-emoji-hover",R)}};
_.l.onMouseDown_=function(){this.JSC$14175_ignoreNextFocus_=!0};
_.l.onFocus_=function(){this.JSC$14175_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14175_ignoreNextFocus_=!1};
_.l.onBlur_=function(){this.showFocus=!1};
_.l.onKeyDown_=function(R){switch(R.keyCode){case 13:this.onEmojiTap_(R);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);R.preventDefault();break;case 38:this.changeFocus_(-1,!0),R.preventDefault()}};
XP.prototype.onKeyDown_=XP.prototype.onKeyDown_;XP.prototype.onBlur_=XP.prototype.onBlur_;XP.prototype.onFocus_=XP.prototype.onFocus_;XP.prototype.onMouseDown_=XP.prototype.onMouseDown_;XP.prototype.onEmojiTap_=XP.prototype.onEmojiTap_;XP.prototype.titleOffsetChanged_=XP.prototype.titleOffsetChanged_;XP.prototype.emojiChanged_=XP.prototype.emojiChanged_;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],XP.prototype,"ytComponentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],XP.prototype,"data",void 0);_.C([_.S({computed:"computeId_(data)"}),_.k("design:type",String)],XP.prototype,"id",void 0);_.C([_.S({computed:"computeEmoji_(data)"}),_.k("design:type",Array)],XP.prototype,"emoji",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],XP.prototype,"titleOffset",void 0);_.C([_.S({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.k("design:type",Object)],XP.prototype,"ariaLabel",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.k("design:type",Object)],XP.prototype,"ariaActivedescendant",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],XP.prototype,"showFocus",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],XP.prototype,"focusedIndex",void 0);_.C([_.S(),_.k("design:type",_.iO)],XP.prototype,"emojiManager",void 0);
_.C([_.vZ("emoji"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XP.prototype,"emojiChanged_",null);_.C([_.vZ("titleOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XP.prototype,"titleOffsetChanged_",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],XP.prototype,"onEmojiTap_",null);
_.C([_.Qa("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XP.prototype,"onMouseDown_",null);_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XP.prototype,"onFocus_",null);_.C([_.Qa("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XP.prototype,"onBlur_",null);
_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],XP.prototype,"onKeyDown_",null);_.C([_.CG({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],XP);
_.B(XP,"yt-emoji-picker-upsell-category-renderer",function(){if(c2H===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;x7D===void 0&&(x7D=document.createElement("template"));var P=x7D;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);c2H=R}R=c2H;return R},{mode:2});var OV8;var MaA;var St=function(){var R=_.K.apply(this,arguments)||this;R.scrollAction="lock";R.verticalAlign="top";return R};
_.H(St,_.K);_.l=St.prototype;_.l.onClick=function(R){R=_.Yw(R);R instanceof HTMLImageElement&&_.xo(this.hostElement,"yt-emoji-select",_.lO(this.emojiManager,R.id))};
_.l.openSelector=function(){this.ironOverlayBehavior.open()};
_.l.onDomChange=function(){uMS(this.ytEmojiSelectorBehavior)};
_.l.computeIsFamilySelector=function(R){var A;return(R==null?void 0:(A=R.emoji)==null?void 0:A.emojiId)==="\ud83d\udc6a"};
_.l.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var R=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];R&&R.emojiId&&(_.xo(this.hostElement,"yt-emoji-select",_.lO(this.emojiManager,R.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Yh.Object.defineProperties(St.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var R=this,A,Y,P;return this.emojiManager&&((A=this.data)==null?0:(Y=A.emoji)==null?0:(P=Y.variantIds)==null?0:P.length)?this.data.emoji.variantIds.map(function(E){return!!E&&_.lO(R.emojiManager,E)}).filter(function(E){return!!E}):[]}}});
St.prototype.onClick=St.prototype.onClick;_.C([_.U(_.Ae),_.k("design:type",Object)],St.prototype,"ironOverlayBehavior",void 0);_.C([_.U(enE),_.k("design:type",Object)],St.prototype,"ytEmojiSelectorBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],St.prototype,"data",void 0);_.C([_.S(),_.k("design:type",_.iO)],St.prototype,"emojiManager",void 0);_.C([_.S(),_.k("design:type",Object)],St.prototype,"scrollAction",void 0);_.C([_.S(),_.k("design:type",Object)],St.prototype,"verticalAlign",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.k("design:type",Boolean)],St.prototype,"isFamilySelector",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],St.prototype,"emojiVariants",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],St.prototype,"onClick",null);_.C([_.CG({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],St);
_.B(St,"yt-emoji-variant-selector",function(){if(MaA===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;OV8===void 0&&(OV8=document.createElement("template"));var P=OV8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);MaA=R}R=MaA;return R},{mode:2});var st8=/:/g,NPZ=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],IJ=function(){var R=_.K.apply(this,arguments)||this;R.emojiVariantSelector=null;R.emojiMultiPersonSelector=null;R.identity=_.bJ;R.lastAnimationTime_=0;R.animationStart_=null;R.animationEnd_=null;return R};
_.H(IJ,_.K);_.l=IJ.prototype;
_.l.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}}};
_.l.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.cw)};
_.l.attached=function(){_.lu&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&qMq(this.emojiManager)};
_.l.dataChanged=function(){var R;if((R=this.data)==null?0:R.categories){R=this.emojiManager;var A=this.getCustomEmojiIds();R.pickerCustomEmojiIds=[].concat(_.py(Gm7),_.py(A))}};
_.l.getCustomEmojiIds=function(){var R,A=(R=this.data.categories)==null?void 0:R.find(function(z){var c;return((c=z.emojiPickerCategoryRenderer)==null?void 0:c.categoryId)&&NPZ.includes(z.emojiPickerCategoryRenderer.categoryId)}),Y;
R=(Y=this.data.categories)==null?void 0:Y.find(function(z){return z.emojiPickerUpsellCategoryRenderer});
var P,E;return[A==null?void 0:(P=A.emojiPickerCategoryRenderer)==null?void 0:P.emojiIds,R==null?void 0:(E=R.emojiPickerUpsellCategoryRenderer)==null?void 0:E.emojiIds].flat().filter(function(z){return!!z})};
_.l.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.l.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.l.updateCategoriesAndPlaceholderInternal=function(R,A){var Y=this;R&&A&&(this.categories=R.categories||[],this.categoryButtons=R.categoryButtons||[],this.resetPlaceholder(),this.search="",_.wg(function(){Y.updateButtons_()}))};
_.l.computeId_=function(R){return R.id||""};
_.l.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(R){return R.emojiPickerCategoryRenderer&&R.emojiPickerCategoryRenderer.emojiData}):!1};
_.l.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.l.onShowEmojiVariantSelector=function(R){var A=R.detail.emojiData;A.variantIds&&A.variantIds.length&&(A.multiSelectorThumbnailRow&&A.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:A,target:R.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:A,target:R.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onIronOverlayClosed=function(R){var A=LzG(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");A&&R.composedPath&&(R.composedPath().includes(_.Mo(this.hostElement).querySelector("#emoji-variant-selector"))||R.composedPath().includes(_.Mo(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.OC(this.hostElement,"yt-close-emoji-variant-selector",[A.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.l.onEmojiVariantSelectorMouseup=function(R){var A=R.target.firstChild;this.variantSelectorOpened&&A&&_.wg(function(){A.noCancelOnOutsideClick=!1},100)};
_.l.onEmojiVariantSelectorMousedown=function(R){R=R.target.firstChild;this.variantSelectorOpened&&R&&(R.noCancelOnOutsideClick=!1)};
_.l.onSelectCategory_=function(R){var A=this.search!="";this.search="";for(var Y=_.Mo(this.hostElement).querySelector("#categories").children,P=0;P<Y.length;P++){var E=Y[P];if(E.id==R.detail.categoryId){A?(_.Mo(this.hostElement).querySelector("#categories").scrollTop=E.offsetTop,this.updateButtons_()):(this.animationStart_=_.Mo(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=E.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.l.onEmojiHover_=function(R){this.placeholder=R.detail.shortcuts?R.detail.shortcuts[0]:""};
_.l.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.l.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.l.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.l.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.l.computeSearchCategory_=function(R){R=R.replace(st8,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();R=R.split(" ");for(var A=[],Y=this.emojiManager.emojis,P=0;P<Y.length;P++){var E=Y[P];if(E.searchTerms)for(var z=0;z<E.searchTerms.length;z++){for(var c=E.searchTerms[z].toLocaleLowerCase(),M=!1,N=0;N<R.length;N++)if(c.indexOf(R[N])!=-1){M=!0;break}if(M&&(!E.isCustomEmoji||!E.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(E.emojiId))){A.push(E.emojiId);
break}}}return{categoryId:-1,emojiIds:A}};
_.l.computeSearchEmptyMessage_=function(R,A){return R&&A&&A.emojiIds&&A.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.l.computeSearching_=function(R){return this.emojiManager&&R.replace(st8,"").length>1};
_.l.computeSkinToneHidden=function(){var R;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((R=this.data)==null||!R.hideSkinTonePicker)};
_.l.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.l.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.l.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.l.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.l.selectSkinTone_=function(R){R=Number(R.target.getAttribute("tone"));this.set("emojiManager.skinTone",R);_.OC(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[R]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.l.skinToneChanged_=function(){_.Mo(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var R=_.Mo(this.hostElement).querySelector("#dropdown-content").children,A=0;A<R.length;A++)A===this.skinTone?R[A].setAttribute("selected",""):R[A].removeAttribute("selected")};
_.l.animateScroll_=function(R){this.lastAnimationTime_||(this.lastAnimationTime_=R);R-=this.lastAnimationTime_;R<200?(_.Mo(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*R/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Mo(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.l.searchChanged_=function(){this.updateButtons_()};
_.l.updateButtons_=function(){var R=null;if(!this.search)for(var A=_.Mo(this.hostElement).querySelector("#categories").scrollTop,Y=_.Mo(this.hostElement).querySelector("#categories").children,P=0;P<Y.length;P++){var E=Y[P];E.offsetTop<=A&&(R=E.id)}A=_.Mo(this.hostElement).querySelector("#category-buttons").children;for(Y=0;Y<A.length;Y++)P=A[Y],P.active=P.id===R};
IJ.prototype.searchChanged_=IJ.prototype.searchChanged_;IJ.prototype.skinToneChanged_=IJ.prototype.skinToneChanged_;IJ.prototype.onEmojiHover_=IJ.prototype.onEmojiHover_;IJ.prototype.onSelectCategory_=IJ.prototype.onSelectCategory_;IJ.prototype.onShowEmojiVariantSelector=IJ.prototype.onShowEmojiVariantSelector;IJ.prototype.updateCategoriesAndPlaceholder_=IJ.prototype.updateCategoriesAndPlaceholder_;IJ.prototype.dataChanged=IJ.prototype.dataChanged;
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],IJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],IJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],IJ.prototype,"data",void 0);_.C([_.S({value:function(){return[]}}),
_.k("design:type",Array)],IJ.prototype,"categories",void 0);_.C([_.S({value:function(){return[]}}),
_.k("design:type",Array)],IJ.prototype,"categoryButtons",void 0);_.C([_.S({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.k("design:type",Boolean)],IJ.prototype,"disableScroll",void 0);_.C([_.S({computed:"computeId_(data)",reflectToAttribute:!0}),_.k("design:type",String)],IJ.prototype,"id",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],IJ.prototype,"selected",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],IJ.prototype,"disableIncrementalLoading",void 0);_.C([_.S(),_.k("design:type",String)],IJ.prototype,"placeholder",void 0);_.C([_.S({value:""}),_.k("design:type",String)],IJ.prototype,"search",void 0);_.C([_.S({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.k("design:type",Boolean)],IJ.prototype,"searching",void 0);_.C([_.S({computed:"computeSearchCategory_(search)"}),_.k("design:type",Object)],IJ.prototype,"searchCategory",void 0);
_.C([_.S({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.k("design:type",Object)],IJ.prototype,"searchEmptyMessage",void 0);_.C([_.S({computed:"identity(emojiManager.skinTone)"}),_.k("design:type",Number)],IJ.prototype,"skinTone",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],IJ.prototype,"skinToneOpened",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],IJ.prototype,"variantSelectorOpened",void 0);
_.C([_.S({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.k("design:type",Boolean)],IJ.prototype,"skinToneHidden",void 0);_.C([_.S(),_.k("design:type",_.iO)],IJ.prototype,"emojiManager",void 0);_.C([_.S(),_.k("design:type",Object)],IJ.prototype,"emojiVariantSelector",void 0);_.C([_.S(),_.k("design:type",Object)],IJ.prototype,"emojiMultiPersonSelector",void 0);
_.C([_.S({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.k("design:type",Boolean)],IJ.prototype,"shouldUseStickyPreferences",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IJ.prototype,"dataChanged",null);_.C([_.vZ("data","selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IJ.prototype,"updateCategoriesAndPlaceholder_",null);
_.C([_.Qa("yt-show-emoji-variant-selector"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],IJ.prototype,"onShowEmojiVariantSelector",null);_.C([_.Qa("yt-emoji-picker-select-category"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],IJ.prototype,"onSelectCategory_",null);_.C([_.Qa("yt-emoji-hover"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],IJ.prototype,"onEmojiHover_",null);
_.C([_.vZ("skinTone"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IJ.prototype,"skinToneChanged_",null);_.C([_.vZ("search"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IJ.prototype,"searchChanged_",null);_.C([_.CG({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],IJ);
_.B(IJ,"yt-emoji-picker-renderer",function(){if(laS===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;iVZ===void 0&&(iVZ=document.createElement("template"));var P=iVZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);laS=R}R=laS;return R},{mode:2});var Kl=function(){var R=_.K.apply(this,arguments)||this;R.emojiManager=_.cw;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.selectedIndex=1;R.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return R};
_.H(Kl,_.K);_.l=Kl.prototype;_.l.handleEmojiCustomizationVisible=function(R){this.emojiPickerRenderer.selected=R;this.selectedIndex=1;R?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.l.emojiCustomizationSetChanged=function(){var R;(R=this.data)!=null&&R.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.uJ(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.l.updateSaveButtonState=function(R){var A;(A=this.data)!=null&&A.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.HT("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:R}))};
_.l.emojiUrl=function(R){R=_.lO(this.emojiManager,R);if(!R)return"";var A;R=(A=R.image)==null?void 0:A.thumbnails;return _.MH(R,24)||""};
_.l.emojiAlt=function(R){var A=_.lO(this.emojiManager,R);if(!A)return R;var Y,P,E,z=(A==null?void 0:(Y=A.image)==null?void 0:(P=Y.accessibility)==null?void 0:(E=P.accessibilityData)==null?void 0:E.label)||"";return z?z:A.isCustomEmoji?A.shortcuts[0]:A.emojiId||R};
_.l.emojiAriaLabel=function(R){var A,Y;return((A=_.lO(this.emojiManager,R))==null?void 0:(Y=A.shortcuts)==null?void 0:Y[0])||R};
_.l.onEmojiClick=function(R){R.model.index!==0&&(this.selectedIndex=R.model.index)};
_.l.onEmojiSelect=function(R){R=R.detail;var A,Y;((A=this.data)==null?0:A.emojiCustomizationSetEntityKey)&&((Y=this.emojiCustomizationSet)==null?0:Y.emojiId)&&R.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,R.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.HT("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,R.emojiId,this.selectedIndex)}))};
_.l.canEditEmoji=function(R,A,Y){R=R.indexOf(A);return R===Y||R===0||Y===0?!1:!0};
_.l.getUpdatedEmojiIdList=function(R,A,Y){var P=R.indexOf(A);R=[].concat(_.py(R));P>=0&&(R[P]=R[Y]);R[Y]=A;return R};
_.Yh.Object.defineProperties(Kl,{template:{configurable:!0,enumerable:!0,get:function(){if(WR8===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;KRA===void 0&&(KRA=document.createElement("template"));var P=KRA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);WR8=R}R=WR8;return R}}});
Kl.prototype.onEmojiSelect=Kl.prototype.onEmojiSelect;_.C([_.U(_.Eh),_.k("design:type",Object)],Kl.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Kl.prototype,"ytActionHandlerBehavior",void 0);_.C([_.nG("yt-emoji-picker-renderer"),_.k("design:type",Object)],Kl.prototype,"emojiPickerRenderer",void 0);
_.C([_.S({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(R,A){return _.mc(R.entities,"emojiCustomizationSetEntity",A)},
observer:"emojiCustomizationSetChanged"}),_.k("design:type",Object)],Kl.prototype,"emojiCustomizationSet",void 0);_.C([_.S(),_.k("design:type",Object)],Kl.prototype,"originalEmojiSet",void 0);_.C([_.S(),_.k("design:type",_.iO)],Kl.prototype,"emojiManager",void 0);_.C([_.S(),_.k("design:type",Object)],Kl.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Kl.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],Kl.prototype,"selectedIndex",void 0);
_.C([_.Qa("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Kl.prototype,"onEmojiSelect",null);_.C([_.CG({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Kl);var Va8;var J2A;var y2N;var m7A;var Ww=function(){var R=_.K.apply(this,arguments)||this;R.authorBadges=[];return R};
_.H(Ww,_.K);_.l=Ww.prototype;_.l.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.l.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]]"}}}}}};
_.l.dataChanged=function(){var R=Ilk(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",R)};
_.l.updateMessage=function(){var R=this.data.message,A=_.Mo(_.Mo(this.hostElement).querySelector("#message"));A.textContent="";R&&A.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R))};
_.l.shouldSupportWholeItemClick=function(){return!0};
_.l.onShowOriginalClick=function(R){R.preventDefault();this.showOriginal=!0};
_.l.computeShowBar=function(R,A,Y){return R&&A||Y};
_.l.computeAuthorBadges=function(R){return R.authorBadges||[]};
_.l.computeAuthorIsOwner=function(R){return!!KNu(R.authorBadges,"owner")};
_.l.computeAuthorNameColor=function(R){var A;if(_.v("live_chat_author_name_color_usernames")&&(R==null?0:(A=R.authorName)==null?0:A.simpleText))return _.FNJ(_.BjP(R.authorName.simpleText));if(_.v("live_chat_seed_color_usernames")&&(R==null?0:R.authorSeedColorArgb))return _.FNJ(_.J7(R.authorSeedColorArgb));if(_.v("live_chat_colored_usernames"))return"#cc0000";var Y;return _.v("live_chat_simple_color_usernames")&&(R==null?0:(Y=R.authorName)==null?0:Y.simpleText)&&(R==null?0:R.authorUsernameColorLight)&&
(R==null?0:R.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.J7(R.authorUsernameColorDark):_.J7(R.authorUsernameColorLight):""};
Ww.prototype.updateMessage=Ww.prototype.updateMessage;Ww.prototype.dataChanged=Ww.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],Ww.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ww.prototype,"data",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ww.prototype,"showOriginal",void 0);_.C([_.S({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ww.prototype,"isDimmed",void 0);_.C([_.S({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ww.prototype,"showBar",void 0);
_.C([_.S({computed:"computeAuthorBadges(data)"}),_.k("design:type",Array)],Ww.prototype,"authorBadges",void 0);_.C([_.S({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ww.prototype,"authorIsOwner",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ww.prototype,"inCollapsedBanner",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ww.prototype,"inBanner",void 0);
_.C([_.S({value:_.v("live_chat_hide_avatars"),reflectToAttribute:!0}),_.k("design:type",Boolean)],Ww.prototype,"avatarHidden",void 0);_.C([_.S({computed:"computeAuthorNameColor(data)"}),_.k("design:type",String)],Ww.prototype,"authorNameColor",void 0);_.C([_.S(),_.k("design:type",_.Vg)],Ww.prototype,"participantsManager",void 0);_.C([_.S({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.k("design:type",Object)],Ww.prototype,"filledButtonOverrides",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ww.prototype,"dataChanged",null);_.C([_.vZ("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ww.prototype,"updateMessage",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Ww);
_.B(Ww,"yt-live-chat-text-message-renderer",function(){if(m7A===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;y2N===void 0&&(y2N=document.createElement("template"));var P=y2N;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);m7A=R}R=m7A;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var jt=function(){var R=_.K.apply(this,arguments)||this;R.tonalButtonOverrides={type:"tonal",style:"overlay"};return R};
_.H(jt,_.K);
jt.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]]"}}}}}};
jt.prototype.shouldSupportInlineActionButtons=function(){return!0};
jt.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Yh.Object.defineProperties(jt.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],jt.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],jt.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],jt.prototype,"data",void 0);_.C([_.S(),_.k("design:type",_.Vg)],jt.prototype,"participantsManager",void 0);
_.C([_.S(),_.k("design:type",Object)],jt.prototype,"tonalButtonOverrides",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.infoDialogButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],jt.prototype,"hasInfoDialogButton",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],jt);
_.B(jt,"yt-live-chat-auto-mod-message-renderer",function(){if(J2A===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Va8===void 0&&(Va8=document.createElement("template"));var P=Va8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);J2A=R}R=J2A;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var TPH;var QtN;var vfD;var gfS=function(){return _.K.apply(this,arguments)||this};
_.H(gfS,_.K);_.C([_.S(),_.k("design:type",Object)],gfS.prototype,"data",void 0);_.C([_.F({is:"ytd-factoid-renderer",disableElementRegistration:!0})],gfS);
_.B(gfS,"ytd-factoid-renderer",function(){if(vfD!==void 0)return vfD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return vfD=R},{mode:1});var bO=function(){return _.K.apply(this,arguments)||this};
_.H(bO,_.K);bO.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.C([_.S(),_.k("design:type",Object)],bO.prototype,"data",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],bO);
_.B(bO,"yt-live-chat-channel-activity-reputation-renderer",function(){if(QtN===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;TPH===void 0&&(TPH=document.createElement("template"));var P=TPH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);QtN=R}R=QtN;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var nf8;var HV8;var fl=function(){return _.K.apply(this,arguments)||this};
_.H(fl,_.K);fl.prototype.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Boolean)],fl.prototype,"menuFocused",void 0);_.C([_.S(),_.k("design:type",Object)],fl.prototype,"data",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],fl.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],fl);
_.B(fl,"yt-live-chat-donation-announcement-renderer",function(){if(HV8===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;nf8===void 0&&(nf8=document.createElement("template"));var P=nf8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);HV8=R}R=HV8;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var r28;var D7G,U7S=function(){if(D7G!==void 0)return D7G;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;r28===void 0&&(r28=document.createElement("template"));var P=r28;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return D7G=R};var pl=function(){return _.K.apply(this,arguments)||this};
_.H(pl,_.K);_.Yh.Object.defineProperties(pl,{template:{configurable:!0,enumerable:!0,get:function(){return U7S()}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pl.prototype,"data",void 0);_.C([_.CG({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],pl);_.B(pl,"yt-live-chat-empty-feed-view-model",function(){return U7S()},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var $7G;var XEN;var FP=function(){return _.K.apply(this,arguments)||this};
_.H(FP,_.K);FP.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"}}}}}};
_.Yh.Object.defineProperties(FP.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var R,A;return{runs:[{text:(R=this.data)==null?void 0:(A=R.channelName)==null?void 0:A.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var R=[],A;if((A=this.data)==null||!A.channelBadges)return R;var Y;A=_.x((Y=this.data)==null?void 0:Y.channelBadges);for(Y=A.next();!Y.done;Y=A.next()){Y=_.n(Y.value,syf);var P=void 0,E=void 0;if((P=Y)==null?0:(E=P.badgeImage)==null?0:E.sources)P=void 0,E={liveChatAuthorBadgeRenderer:{tooltip:Y.tooltip,accessibility:{accessibilityData:{label:(P=_.n(Y.rendererContext,_.Kd))==null?void 0:P.label}}}},Y.badgeImage.sources[0].clientResource?E.liveChatAuthorBadgeRenderer.icon=
{iconType:Y.badgeImage.sources[0].clientResource.imageName}:E.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:Y.badgeImage.sources},R.push(E)}return R}}});
_.C([_.S(),_.k("design:type",Object)],FP.prototype,"data",void 0);_.C([_.X("data.channelName"),_.k("design:type",Object),_.k("design:paramtypes",[])],FP.prototype,"channelName",null);_.C([_.X("data.channelBadges"),_.k("design:type",Array),_.k("design:paramtypes",[])],FP.prototype,"channelBadges",null);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],FP);
_.B(FP,"yt-live-chat-identity-view-model",function(){if(XEN===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;$7G===void 0&&($7G=document.createElement("template"));var P=$7G;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);XEN=R}R=XEN;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var SvS;var IaZ;var Ki7;var WiS;var Bw=function(){var R=_.K.apply(this,arguments)||this;R.hidden=!1;R.supportsInlineActionButtons=!0;return R};
_.H(Bw,_.K);Bw.prototype.ready=function(){var R;((R=document.querySelector("yt-live-chat-app"))==null?0:R.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Bw.prototype.dataChanged=function(R){var A=(0,_.Jh)(_.Mo(this.hostElement).querySelector("#detail-text"));A.textContent="";(R==null?0:R.detailText)&&A.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R.detailText))};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],Bw.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({observer:"dataChanged"}),_.k("design:type",Object)],Bw.prototype,"data",void 0);
_.C([_.S({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.k("design:type",Object)],Bw.prototype,"hidden",void 0);_.C([_.F({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Bw);
_.B(Bw,"yt-live-chat-legacy-paid-message-renderer",function(){if(WiS===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Ki7===void 0&&(Ki7=document.createElement("template"));var P=Ki7;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);WiS=R}R=WiS;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var jtG;var bVG;var faE={},aJ=function(){return _.rg.apply(this,arguments)||this};
_.H(aJ,_.rg);aJ.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
aJ.prototype.onLiveChatMembershipItemBehaviorClick=aJ.prototype.onLiveChatMembershipItemBehaviorClick;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],aJ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],aJ.prototype,"data",void 0);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],aJ.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.C([_.Do()],aJ);
faE.YtLiveChatMembershipItemBehavior=[aJ.prototype,_.u.YtRendererBehavior];var Cl=function(){var R=_.K.apply(this,arguments)||this;R.supportsInlineActionButtons=!0;R.hasPrimaryHeaderText=!1;R.showOnlyHeader=!1;R.authorBadges=[];R.modern=_.v("web_button_rework_with_live");R.buttonOverrides={style:"overlay",type:"filled"};return R};
_.H(Cl,_.K);_.l=Cl.prototype;_.l.shouldSupportInlineActionButtons=function(){return!0};
_.l.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.l.ready=function(){var R=document.querySelector("yt-live-chat-app");R&&R.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.l.messageChanged=function(){var R=this.data.message,A=(0,_.Jh)(_.Mo(this.hostElement).querySelector("#message"));A.textContent="";R&&A.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(R))};
_.l.computeHasPrimaryHeaderText=function(R){return!(!R||!R.headerPrimaryText)};
_.l.computeShowOnlyHeader=function(R,A){return this.isMessageEmpty(R,A)};
_.l.computeAuthorBadges=function(R){return R.authorBadges||[]};
_.l.isMessageEmpty=function(R,A){return!R||R.empty?!0:!R.message&&!R.inputField&&!A};
_.l.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.l.getInputElement=function(){return _.Mo(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.l.inputFocus=function(){var R=this.getInputElement();R&&R.focus()};
_.l.inputInsertEmoji=function(R){var A=this.getInputElement();A&&A.insertEmoji(R)};
_.l.inputMessage=function(){var R=this.getInputElement();return R&&this.data.inputField?(R.completeEmojis(),_.kL(R.liveChatRichMessageInput)):null};
_.l.onFooterButtonClick=function(){this.data.footerButton&&_.xo(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.l.shouldSupportWholeItemClick=function(){return!0};
Cl.prototype.isDeletedChanged=Cl.prototype.isDeletedChanged;Cl.prototype.messageChanged=Cl.prototype.messageChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Cl.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],Cl.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(faE.YtLiveChatMembershipItemBehavior),_.k("design:type",Object)],Cl.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Cl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Cl.prototype,"data",void 0);_.C([_.S({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.k("design:type",Object)],Cl.prototype,"hasPrimaryHeaderText",void 0);_.C([_.S({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.k("design:type",Object)],Cl.prototype,"showOnlyHeader",void 0);
_.C([_.S({computed:"computeAuthorBadges(data)"}),_.k("design:type",Array)],Cl.prototype,"authorBadges",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Cl.prototype,"modern",void 0);_.C([_.vZ("data.message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cl.prototype,"messageChanged",null);_.C([_.vZ("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cl.prototype,"isDeletedChanged",null);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],Cl);
_.B(Cl,"yt-live-chat-membership-item-renderer",function(){if(bVG===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;jtG===void 0&&(jtG=document.createElement("template"));var P=jtG;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);bVG=R}R=bVG;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var pEA;var Fi7;var hB=function(){return _.K.apply(this,arguments)||this};
_.H(hB,_.K);hB.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hB.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],hB);
_.B(hB,"yt-live-chat-mode-change-message-renderer",function(){if(Fi7===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;pEA===void 0&&(pEA=document.createElement("template"));var P=pEA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Fi7=R}R=Fi7;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var BPS;var aa8;var oJ=function(){return _.K.apply(this,arguments)||this};
_.H(oJ,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],oJ.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],oJ.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],oJ);
_.B(oJ,"yt-live-chat-moderation-message-renderer",function(){if(aa8===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;BPS===void 0&&(BPS=document.createElement("template"));var P=BPS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);aa8=R}R=aa8;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var CRE;var hfA;var kM=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_button_rework");return R};
_.H(kM,_.K);kM.prototype.onClick=function(){var R;if((R=this.data)!=null&&R.onClickCommand){var A;_.Qp.instance.resolveCommand((A=this.data)==null?void 0:A.onClickCommand)}};
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],kM.prototype,"modern",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],kM.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],kM.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],kM.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],kM);
_.B(kM,"yt-live-chat-offer-click-count-message-renderer",function(){if(hfA===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;CRE===void 0&&(CRE=document.createElement("template"));var P=CRE;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);hfA=R}R=hfA;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var ofS;var kC8=function(){return _.K.apply(this,arguments)||this};
_.H(kC8,_.K);_.C([_.S(),_.k("design:type",Object)],kC8.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],kC8);
_.B(kC8,"yt-live-chat-placeholder-item-renderer",function(){if(ofS===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);ofS=R}R=ofS;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var GCZ;var ZVE;var taA=new q6(7),GV=function(){var R=_.K.apply(this,arguments)||this;R.data={};return R};
_.H(GV,_.K);GV.prototype.dataChanged=function(){var R;((R=this.data)==null?0:R.class)&&_.No(this.hostElement,this.data.class,!0);var A;((A=this.oldData)==null?0:A.class)&&_.No(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
GV.prototype.computeTimestampString=function(R){return taA.format(new Date(R/1E3))};
GV.prototype.dataChanged=GV.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],GV.prototype,"data",void 0);_.C([_.S({computed:"computeTimestampString(data.timestampUsec)"}),_.k("design:type",String)],GV.prototype,"timestampString",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GV.prototype,"dataChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],GV);
_.B(GV,"yt-live-chat-server-error-message",function(){if(ZVE===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;GCZ===void 0&&(GCZ=document.createElement("template"));var P=GCZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ZVE=R}R=ZVE;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var wEq;var uxA;var Zm=function(){var R=_.K.apply(this,arguments)||this;R.defaultToFilledIcon=!1;return R};
_.H(Zm,_.K);Zm.prototype.computeHasPrimaryColorIcon=function(R){return R==="SPARK"||R==="SPONSORSHIP_STAR"};
Zm.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Zm.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],Zm.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Zm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Zm.prototype,"defaultToFilledIcon",void 0);_.C([_.S(),_.k("design:type",Object)],Zm.prototype,"data",void 0);
_.C([_.S({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Zm.prototype,"hasPrimaryColorIcon",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],Zm);
_.B(Zm,"yt-live-chat-viewer-engagement-message-renderer",function(){if(uxA===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;wEq===void 0&&(wEq=document.createElement("template"));var P=wEq;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);uxA=R}R=uxA;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var efE;var tB=function(){var R=_.K.apply(this,arguments)||this;R.modernUpdate=!1;R.buttonStyle="overlay";R.buttonType="filled";return R};
_.H(tB,_.K);tB.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
tB.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tB.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],tB.prototype,"modernUpdate",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tB.prototype,"buttonStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],tB.prototype,"buttonType",void 0);
_.C([_.F({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],tB);
_.B(tB,"ytd-ad-hover-text-button-renderer",function(){if(efE!==void 0)return efE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return efE=R},{mode:1});var qvA;var wI=function(){var R=_.K.apply(this,arguments)||this;R.buttonOverrides={size:"XS"};R.modern=_.v("web_button_rework");return R};
_.H(wI,_.K);wI.prototype.onHelpTap=function(R){this.data&&this.data.informationDialog&&(_.xo(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),R.preventDefault(),R.stopPropagation())};
_.C([_.S(),_.k("design:type",Object)],wI.prototype,"buttonOverrides",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wI.prototype,"modern",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wI.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wI.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],wI);
_.B(wI,"ytd-live-chat-purchased-product-message-renderer",function(){if(qvA!==void 0)return qvA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return qvA=R},{mode:1});var LiH;var d78;var uO=function(){var R=_.K.apply(this,arguments)||this;R.isContainerDeleted=!1;return R};
_.H(uO,_.K);uO.prototype.onContextMenuClick=function(R){this.ytLiveChatItemBehavior.showContextMenu(R)};
uO.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))};
uO.prototype.isContainerDeletedChanged=uO.prototype.isContainerDeletedChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uO.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],uO.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uO.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],uO.prototype,"isContainerDeleted",void 0);
_.C([_.S(),_.k("design:type",String)],uO.prototype,"deletedStateMessage",void 0);_.C([_.vZ("isContainerDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uO.prototype,"isContainerDeletedChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],uO);
_.B(uO,"ytd-sponsorships-live-chat-header-renderer",function(){if(d78!==void 0)return d78;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return d78=R},{mode:1});var et=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_button_rework_with_live");R.buttonOverrides={style:"overlay",type:"filled"};return R};
_.H(et,_.K);et.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]]"}}}}}};
et.prototype.onCtaButtonClick=function(){var R,A=_.n((R=this.data)==null?void 0:R.optInPrompt,_.RC);if(R=this.maybeGetButtonCommand(A)){var Y;(Y=_.rU())==null||Y.clickCommand(R)}};
et.prototype.maybeGetButtonCommand=function(R){return!R||!R.command||_.n(R.command,eRS)===void 0&&_.n(R.command,usS)===void 0?null:R.command};
et.prototype.shouldHideOptinPrompt=function(R,A){return!R||A};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],et.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],et.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],et.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],et.prototype,"modern",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],et);
_.B(et,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(LiH!==void 0)return LiH;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return LiH=R},{mode:1});var R0G;var qv=function(){return _.K.apply(this,arguments)||this};
_.H(qv,_.K);qv.prototype.onContextMenuClick=function(R){this.ytLiveChatItemBehavior.showContextMenu(R)};
qv.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))};
qv.prototype.isDeletedChanged=qv.prototype.isDeletedChanged;_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],qv.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],qv.prototype,"data",void 0);_.C([_.vZ("isDeleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qv.prototype,"isDeletedChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],qv);
_.B(qv,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(R0G!==void 0)return R0G;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return R0G=R},{mode:1});var Ll=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return R};
_.H(Ll,_.K);_.l=Ll.prototype;
_.l.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"}}}};
_.l.handleLiveChatAction=function(R){_.n(R,b9Z)?this.handleMarkChatItemAsDeletedAction(_.n(R,b9Z)):_.n(R,jcE)&&this.handleRemoveChatItemAction(_.n(R,jcE))};
_.l.handleLiveChatActions=function(R){R.forEach(this.handleLiveChatAction,this)};
_.l.handleMarkChatItemAsDeletedAction=function(R){var A=this,Y;((Y=this.data)==null?0:Y.items)&&this.data.items.forEach(function(P,E){var z=Object.keys(P)[0];Object.values(P)[0].id===R.targetItemId&&A.markAsDeleted("data.items",E,z,R.deletedStateMessage,R.showOriginalContentMessage)})};
_.l.handleRemoveChatItemAction=function(R){var A=this,Y;((Y=this.data)==null?0:Y.items)&&this.data.items.forEach(function(P,E){Object.values(P)[0].id===R.targetItemId&&A.splice("data.items",E,1)})};
_.l.markAsDeleted=function(R,A,Y,P,E){R=[R,A,Y].join(".");this.set(R+".deletedStateMessage",P);this.set(R+".showOriginalContentMessage",E)};
_.C([_.S(),_.k("design:type",Object)],Ll.prototype,"data",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ll.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ll.prototype,"ytActionHandlerBehavior",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],Ll);
_.B(Ll,"yt-live-chat-item-display-list-renderer",function(){if(IaZ===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;SvS===void 0&&(SvS=document.createElement("template"));var P=SvS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);IaZ=R}R=IaZ;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var AY8;var Y1H,P3z=function(){if(Y1H!==void 0)return Y1H;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;AY8===void 0&&(AY8=document.createElement("template"));var P=AY8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return Y1H=R};var dI=function(){var R=_.K.apply(this,arguments)||this;R.isHeader=!1;return R};
_.H(dI,_.K);dI.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Yh.Object.defineProperties(dI,{template:{configurable:!0,enumerable:!0,get:function(){return P3z()}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],dI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dI.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dI.prototype,"isHeader",void 0);_.C([_.CG({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],dI);_.B(dI,"yt-live-chat-item-display-renderer",function(){return P3z()},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var EC8,z0G,OM7,cYG;
EC8={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}};z0G={home:"eohps",search:"eosps",watch:"eowps"};_.iM8=["watch","search","home"];
_.Rz=function(){this.JSC$14286_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14286_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.a1("PRECONSTRUCTION_DELAY",0);this.signals_=_.EV();this.targetPage_=""};
_.Rz.prototype.init=function(R,A){R=R===void 0?"":R;A=A===void 0?null:A;if(this.JSC$14286_isInitialized_)this.abort();else if(this.JSC$14286_isInitialized_=!0,R&&_.l1Z(this,R),A){var Y=_.zD(this.signals_,"pcl")?0:10,P=function(){for(var E=0,z;z=_.iM8[E++];)z!=R&&z!=A&&this.pendingPages_.push(z);_.xn7(this)}.bind(this);
this.signals_.parkOrScheduleJob(P,Y,"pcl")}};
_.Rz.prototype.abort=function(){this.fragmentJobId_&&(_.fn.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);cYG(this)};
_.l1Z=function(R,A){R.JSC$14286_isInitialized_&&!R.targetPage_&&(R.targetPage_=A,OM7(R,A),R.isInitialPass_=!1,OM7(R,A),R.signals_.processSignal(z0G[R.targetPage_]),cYG(R),_.xn7(R))};
_.xn7=function(R){R.pendingPages_.length&&!R.pagePreparerJobId_&&(R.pagePreparerJobId_=_.Ua(_.fn,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.l1Z(this,this.pendingPages_.shift())}.bind(R),R.DEFAULT_DELAY_))};
OM7=function(R,A){if(A=EC8[A])for(var Y in A){var P=!1,E=Y;Y.charAt(0)=="~"&&(P=!0,E=Y.substring(1));var z=A[Y];z=typeof z=="object"?z:{count:z};A[Y]=z;z.componentName=E;z.count>0&&(R.isInitialPass_?P||R.isSeenDuringInitialPass_[E]||(R.JSC$14286_queue_.push({componentName:E,count:1,signals:z.signals}),R.isSeenDuringInitialPass_[E]=!0,z.count--):R.JSC$14286_queue_.push(z))}};
cYG=function(R){R.JSC$14286_queue_.length=0;R.targetPage_="";R.isInitialPass_=!0;R.signals_.processSignal("eop")};
_.Rz.getInstance=function(){return _.qh(_.Rz)};var M8A=function(){this.signals=_.EV();this.init()};
M8A.prototype.startPreconstruction=function(){_.Rz.getInstance().init(_.CQ("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
M8A.prototype.init=function(){sDE(this);window.Polymer&&Fxz&&vXk();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var R=_.P3.ytcsi;if(R&&R.gt&&(R=R.gt())&&R.tick&&(R.tick.aft>0||R.tick.pbs>0)&&(_.CQ("IS_HOMEPAGE_COLD")||_.CQ("IS_RESULTS_PAGE_COLD")||_.CQ("IS_WATCH_PAGE_COLD"))){NmD(this);break a}gwP(JXl,this.onNotifications,this)}};
var sDE=function(R){var A=function(){R.signals.processSignal("dl")};
document.readyState==="complete"?(_.tv(Error("uh"),"WARNING"),A()):_.q5I(window,"load",A)};
M8A.prototype.onNotifications=function(R){R.timer||(_.CQ("IS_HOMEPAGE_COLD")||_.CQ("IS_RESULTS_PAGE_COLD")||_.CQ("IS_WATCH_PAGE_COLD"))&&NmD(this)};
var NmD=function(R){R.signals.parkOrScheduleJob(function(){R.signals.processSignal("eocs")},10,"eor")};
new M8A;var AC,V8S=function(){return _.rg.apply(this,arguments)||this};
_.H(V8S,_.rg);_.l=V8S.prototype;_.l.enableActiveViewMeasurement=function(R){if(this.isActiveViewEnabled(R)){var A=this.getUrlPrefixesFromCommand(R.viewableCommands);R=this.getUrlPrefixesFromCommand(R.endOfSessionCommands);if(!AC){var Y=_.cU("custom_active_view_tos_timeout_ms");AC=Y>0&&Y!==36E5?new uJ8(this.getVersion(),Y):new uJ8(this.getVersion())}qzV(AC,this.hostElement);LD3(AC,this.hostElement,A,R)}};
_.l.stopActiveViewMeasurement=function(){AC&&qzV(AC,this.hostElement)};
_.l.isActiveViewEnabled=function(R){return!!R&&(this.hasAtLeastOneUrl(R.viewableCommands)||this.hasAtLeastOneUrl(R.endOfSessionCommands))};
_.l.hasAtLeastOneUrl=function(R){return!!R&&R.length>0&&R[0].loggingUrls!=null&&R[0].loggingUrls.length>0};
_.l.getVersion=function(){var R=_.a1("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(R==null?void 0:R.length)===2?R[1]:null};
_.l.getUrlPrefixesFromCommand=function(R){if(!R)return[];var A=[];R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,Y.loggingUrls){Y=_.x(Y.loggingUrls);for(var P=Y.next();!P.done;P=Y.next())P=P.value,P.baseUrl&&A.push(P.baseUrl)}return A};
_.C([_.Do()],V8S);var YX=[V8S.prototype];var JYN=function(){return _.rg.apply(this,arguments)||this};
_.H(JYN,_.rg);_.Yh.Object.defineProperties(JYN.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_entity_store_from_dependency_injection")?_.RZ():_.Yp()}}});
_.C([_.Do()],JYN);_.Pf=[qa.prototype,JYN.prototype];var yYz=["ytd-rich-shelf-renderer"],EH=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;R.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";R.followUpDialogPromise=null;R.followUpDialogPromiseResolve=null;R.followUpDialogPromiseReject=null;return R};
_.H(EH,_.rg);_.l=EH.prototype;_.l.dismissibleItemIsDismissedChanged_=function(R){_.v("kevlar_fluid_dismiss")&&(R?_.xo(this.hostElement,"yt-dismissible-item-dismissed"):_.xo(this.hostElement,"yt-dismissible-item-undismissed"))};
_.l.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.l.dismissibleItemReset_=function(){var R=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 _.yR(function(A,Y){R.followUpDialogPromiseResolve=A;R.followUpDialogPromiseReject=Y});
_.xo(this.hostElement,"yt-enable-lockup-interaction")};
_.l.dismissibleItemOnYtServiceRequestSent_=function(R,A){A.actions&&this.dismissibleItemProcessActions(A.actions,R)};
_.l.dismissibleItemOnRequestSent=function(R){if(_.v("web_button_rework"))for(var A=_.x(R.detail),Y=A.next();!Y.done;Y=A.next()){var P=void 0;(Y=(P=_.n(Y.value,_.mZ))==null?void 0:P.actions)&&this.dismissibleItemProcessActions(Y,R)}};
_.l.dismissibleItemOnCommandSent=function(R,A){A&&this.dismissibleItemProcessActions(A,R)};
_.l.setAndGetDismissedContentId=function(R){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+R};
_.l.replayDismissAction=function(R){this.dismissibleItemProcessActions([R])};
_.l.dismissibleItemProcessActions=function(R,A){for(var Y=0;Y<R.length;Y++){var P=R[Y],E=void 0;((E=_.n(P,_.Jg))==null?0:E.commands)&&this.dismissibleItemProcessActions(_.n(P,_.Jg).commands,A);if(_.n(P,_.jM)){if(E=_.n(P,_.jM),!E.replaceParentSection||yYz.includes(this.hostElement.nodeName.toLowerCase()))E.groupDismissal&&R0b(this,E.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(E),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.HT("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:P})),P=void 0,(P=A)==null||P.stopPropagation()}else if(_.n(P,j77))this.dismissibleItemHandleHideEnclosingAction_(),P=void 0,(P=A)==null||P.stopPropagation();else if(_.n(P,PdS))P=_.n(P,PdS),E=void 0,((E=P)==null?0:E.targetGroupId)&&R0b(this,{targetGroupId:P.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.HT("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
P=void 0,(P=A)==null||P.stopPropagation();else if(_.n(P,_.mZ))(P=_.n(P,_.mZ).actions)&&_.NT(this.hostElement,P,this.hostElement),P=void 0,(P=A)==null||P.stopPropagation();else{var z=E=void 0;((E=_.n(P,_.h$))==null?void 0:E.signal)!=="TELL_US_WHY"||((z=_.n(P,_.h$))==null?0:z.targetId)&&_.v("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),P=void 0,(P=A)==null||P.stopPropagation())}}};
_.l.dismissibleItemOnYtServiceRequestCompleted_=function(R,A){var Y=this.get("feedbackResponses.0.followUpDialog",A.data);Y?this.followUpDialogPromiseResolve(Y):A.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(A.actions,R)};
_.l.dismissibleItemHandleReplaceEnclosingAction_=function(R){this.dismissedRenderer=R.item;this.isDismissed=!0;var A=null;(A=_.Mo(this.hostElement).querySelector("#dismissed"))&&_.RK(this,function(){_.Ln(A)});
_.xo(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.l.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.l.dismissibleItemHandleUndoFeedbackAction_=function(){_.xo(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.l.dismissibleItemHandleTellUsWhySignalAction_=function(){var R=this;this.followUpDialogPromise.then(function(A){R.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:A}})})};
EH.prototype.dismissibleItemOnYtServiceRequestCompleted_=EH.prototype.dismissibleItemOnYtServiceRequestCompleted_;EH.prototype.dismissibleItemOnCommandSent=EH.prototype.dismissibleItemOnCommandSent;EH.prototype.dismissibleItemOnRequestSent=EH.prototype.dismissibleItemOnRequestSent;EH.prototype.dismissibleItemOnYtServiceRequestSent_=EH.prototype.dismissibleItemOnYtServiceRequestSent_;EH.prototype.dismissibleItemDataChanged_=EH.prototype.dismissibleItemDataChanged_;
EH.prototype.dismissibleItemIsDismissedChanged_=EH.prototype.dismissibleItemIsDismissedChanged_;_.C([_.U(_.Qg),_.k("design:type",Object)],EH.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],EH.prototype,"ytdReduxBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],EH.prototype,"isDismissed",void 0);_.C([_.S(),_.k("design:type",Object)],EH.prototype,"dismissedRenderer",void 0);
_.C([_.vZ("isDismissed"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],EH.prototype,"dismissibleItemIsDismissedChanged_",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EH.prototype,"dismissibleItemDataChanged_",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],EH.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.C([_.Qa("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EH.prototype,"dismissibleItemOnRequestSent",null);
_.C([_.Qa("yt-dismissible-item-action"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Array]),_.k("design:returntype")],EH.prototype,"dismissibleItemOnCommandSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],EH.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.C([_.Do()],EH);_.zF=[_.Qg,_.Pf,EH.prototype];var ig=function(){var R=_.rg.apply(this,arguments)||this;R.disableGridStateAware=!1;R.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};R.currentGridClass="";return R};
_.H(ig,_.rg);ig.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.RK(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var R=this.gridStateAwareGetElement();_.No(R,"grid",!0)}};
ig.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
ig.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Mo(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
ig.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var R="grid-disabled";else{R=_.PWz.getInstance();var A=this.get("pageSubtype");R=A&&R68.includes(A)?"grid-disabled":R.currentSnapState_?R.currentSnapState_.className:null}(A=this.gridStateAwareGetElement())&&R!==this.currentGridClass&&(R&&_.No(A,R,!0),this.currentGridClass&&_.No(A,this.currentGridClass,!1),this.currentGridClass=R)};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ig.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",String)],ig.prototype,"gridStateAwareSizingElementSelector",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ig.prototype,"disableGridStateAware",void 0);_.C([_.Do()],ig);_.lg=[ig.prototype,_.fH.YtActionHandlerBehavior];_.xX=new _.cP("GUIDE_TOKEN");var OH;_.cf={};OH=function(){var R=_.rg.apply(this,arguments)||this;R.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 R};
_.H(OH,_.rg);_.l=OH.prototype;_.l.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var R=_.is().resolve(_.z3(_.xX));R&&(this.guidePersistentAndVisible=R.getGuidePersistentAndVisible(),this.activeEndpoint=R.getActiveEndpoint(),this.guideOpened=R.getGuideOpened(),this.miniGuideVisible=R.getMiniGuideVisible())};
_.l.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.l.handleGuideStateAction=function(R){this.guidePersistentAndVisible=R};
_.l.handleMiniGuideStateAction=function(R){this.miniGuideVisible=R};
_.l.handleGuideOpenedAction=function(R){this.guideOpened=R};
_.l.handleActiveEndpointAction=function(R){this.activeEndpoint=R};
OH.prototype.onActiveEndpointChange=OH.prototype.onActiveEndpointChange;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],OH.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],OH.prototype,"guidePersistentAndVisible",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],OH.prototype,"miniGuideVisible",void 0);_.C([_.S(),_.k("design:type",Object)],OH.prototype,"activeEndpoint",void 0);
_.C([_.vZ("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OH.prototype,"onActiveEndpointChange",null);_.C([_.S(),_.k("design:type",Boolean)],OH.prototype,"guideOpened",void 0);_.C([_.Do()],OH);_.cf.YtdGuideStateAwareBehavior=[];_.cf.YtdGuideStateAwareBehavior.push(OH.prototype,_.fH.YtActionHandlerBehavior);var mnb=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],Mu=function(){var R=_.rg.apply(this,arguments)||this;R.hoverJobId=0;R.JSC$14317_touched=!1;return R};
_.H(Mu,_.rg);_.l=Mu.prototype;_.l.created=function(){this.useExpandableTooltip=!mnb.includes(this.is)};
_.l.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.l.detached=function(){this.useExpandableTooltip=!1};
_.l.lockupOnDown=function(R){this.interactionElement&&!_.RP(_.Ah(R),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.l.lockupOnUp=function(R){this.interactionElement&&!_.RP(_.Ah(R),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.l.onTouchStart=function(){this.JSC$14317_touched=!0};
_.l.lockupOnMouseEnter=function(){var R=this,A=_.cU("kevlar_lockup_hover_delay",-1);this.JSC$14317_touched&&A>=0?(_.fn.cancelJob(this.hoverJobId),this.hoverJobId=_.fn.addJob(function(){R.lockupIsHovered=!0},8,A),this.JSC$14317_touched=!1):this.lockupIsHovered=!0};
_.l.lockupOnMouseLeave=function(){this.hoverJobId&&(_.fn.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.l.lockupOnPopupClosed=function(R,A){var Y;((Y=A.popupRenderer)==null?void 0:Y.is)==="ytd-menu-popup-renderer"&&(R=A.popupRenderer.veData,A=_.F9(),R&&A&&_.eF(A,[R]))};
_.l.lockupOnLockupRequested=function(R){var A=R.detail.videoIds[0],Y;R.detail&&A===((Y=this.data)==null?void 0:Y.videoId)&&(R.detail.returnValue=[this.data])};
_.l.lockupOnYtServiceRequestSent=function(R,A){if(R=A.actions)for(var Y=0;Y<R.length;Y++){var P=R[Y];if(P.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&A.ajaxPromise){var E=void 0,z=(E=_.n(A.endpoint,_.qN))==null?void 0:E.playlistId;E=void 0;P=(E=P.removedVideoId)!=null?E:"";DrS(_.lr(),P,z)}else P.action==="ACTION_REMOVE_VIDEO"&&A.ajaxPromise&&(z=void 0,P=(z=P.setVideoId)!=null?z:"",_.UrA(_.lr(),P))}};
_.l.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.l.lockupOnLockupEnabled=function(){if(!this.$){var R=_.is().resolve(_.YH).getCurrentPage(),A=this.getParentRenderer?this.getParentRenderer():void 0;_.pK(new _.XN("component not ready",this.is,this.isAttached,R==null?void 0:R.is,A==null?void 0:A.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
Mu.prototype.lockupOnLockupEnabled=Mu.prototype.lockupOnLockupEnabled;Mu.prototype.lockupOnLockupDisabled=Mu.prototype.lockupOnLockupDisabled;Mu.prototype.lockupOnYtServiceRequestSent=Mu.prototype.lockupOnYtServiceRequestSent;Mu.prototype.lockupOnLockupRequested=Mu.prototype.lockupOnLockupRequested;Mu.prototype.lockupOnPopupClosed=Mu.prototype.lockupOnPopupClosed;Mu.prototype.lockupOnMouseLeave=Mu.prototype.lockupOnMouseLeave;Mu.prototype.lockupOnMouseEnter=Mu.prototype.lockupOnMouseEnter;
Mu.prototype.onTouchStart=Mu.prototype.onTouchStart;Mu.prototype.lockupOnUp=Mu.prototype.lockupOnUp;Mu.prototype.lockupOnDown=Mu.prototype.lockupOnDown;_.C([_.S(),_.k("design:type",Object)],Mu.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],Mu.prototype,"lockupIsHovered",void 0);_.C([_.S(),_.k("design:type",Boolean)],Mu.prototype,"lockupTouchTriggered",void 0);_.C([_.S(),_.k("design:type",Boolean)],Mu.prototype,"useExpandableTooltip",void 0);
_.C([_.nG("#interaction"),_.k("design:type",Object)],Mu.prototype,"interactionElement",void 0);_.C([_.Qa("down"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Mu.prototype,"lockupOnDown",null);_.C([_.Qa("up"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Mu.prototype,"lockupOnUp",null);
_.C([_.Qa("touchstart"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mu.prototype,"onTouchStart",null);_.C([_.Qa("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mu.prototype,"lockupOnMouseEnter",null);_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mu.prototype,"lockupOnMouseLeave",null);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Mu.prototype,"lockupOnPopupClosed",null);_.C([_.Qa("yt-lockup-requested"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Mu.prototype,"lockupOnLockupRequested",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],Mu.prototype,"lockupOnYtServiceRequestSent",null);_.C([_.Qa("yt-disable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mu.prototype,"lockupOnLockupDisabled",null);
_.C([_.Qa("yt-enable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mu.prototype,"lockupOnLockupEnabled",null);_.C([_.Do()],Mu);_.sH=[Mu.prototype];_.Tmf={YtdReduxBehavior:[]};_.Tmf.YtdReduxBehavior.push.apply(_.Tmf.YtdReduxBehavior,_.Pf);var Nu=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;R.disableNowPlaying=!1;R.disableTooltips=!1;R.useHoveredProperty=!1;R.hovered=!1;R.isThumbnailHovered_=!1;R.addBackground=_.v("kevlar_thumbnail_bg");R.nowPlaying=!1;R.disableRounding=!1;R.size="small";return R};
_.H(Nu,_.rg);_.l=Nu.prototype;_.l.computeThumbnailOverlaySidePanelWidth_=function(R,A){return R-A};
_.l.computeSize=function(R,A){if(!this.disableRounding){if(!R&&!A)return"small";R=Math.max(R||0,A||0);return R>=256?"large":R>=96?"medium":"small"}};
_.l.computeFinalHoveredState_=function(R,A,Y){return this.nowPlaying?!1:_.v("kevlar_thumbnail_fluid")&&R?A:Y};
_.l.computeHoverOverlays_=function(R,A){return R&&A?A:void 0};
_.l.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.l.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.l.checkMiniplayer_=function(){var R;if(((R=this.data)==null?0:R.playlistSetVideoId)&&_.v("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{R=_.f_();var A=R.currentEndpoint;!this.disableNowPlaying&&A&&_.n(A,_.LO)&&this.data?(A=_.n(A,_.LO),this.nowPlaying=this.data.playlistId?A.playlistId===this.data.playlistId:A.videoId===this.data.videoId,this.isVideoPlaying=R==null?void 0:R.isVideoPlaying):this.nowPlaying=!1}};
Nu.prototype.checkMiniplayer_=Nu.prototype.checkMiniplayer_;Nu.prototype.onMouseLeave_=Nu.prototype.onMouseLeave_;Nu.prototype.onMouseEnter_=Nu.prototype.onMouseEnter_;Nu.prototype.computeHoverOverlays_=Nu.prototype.computeHoverOverlays_;Nu.prototype.computeFinalHoveredState_=Nu.prototype.computeFinalHoveredState_;Nu.prototype.computeSize=Nu.prototype.computeSize;Nu.prototype.computeThumbnailOverlaySidePanelWidth_=Nu.prototype.computeThumbnailOverlaySidePanelWidth_;
_.C([_.U(_.Pf),_.k("design:type",Object)],Nu.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Nu.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],Nu.prototype,"height",void 0);_.C([_.S(),_.k("design:type",Boolean)],Nu.prototype,"bottomSidePanel",void 0);_.C([_.S(),_.k("design:type",Number)],Nu.prototype,"width",void 0);_.C([_.S(),_.k("design:type",Object)],Nu.prototype,"disableNowPlaying",void 0);
_.C([_.S({selector:_.BK}),_.k("design:type",Boolean)],Nu.prototype,"miniplayerIsActive",void 0);_.C([_.S(),_.k("design:type",Object)],Nu.prototype,"disableTooltips",void 0);_.C([_.S(),_.k("design:type",Object)],Nu.prototype,"useHoveredProperty",void 0);_.C([_.S(),_.k("design:type",Object)],Nu.prototype,"hovered",void 0);_.C([_.S(),_.k("design:type",Object)],Nu.prototype,"isThumbnailHovered_",void 0);
_.C([_.S({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.k("design:type",Boolean)],Nu.prototype,"finalHoveredState_",void 0);_.C([_.S({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.k("design:type",Number)],Nu.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Nu.prototype,"addBackground",void 0);
_.C([_.S({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.k("design:type",Object)],Nu.prototype,"hoverOverlays_",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Nu.prototype,"nowPlaying",void 0);_.C([_.S(),_.k("design:type",Boolean)],Nu.prototype,"isVideoPlaying",void 0);_.C([_.S(),_.k("design:type",Object)],Nu.prototype,"disableRounding",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.k("design:type",Object)],Nu.prototype,"size",void 0);_.C([_.Qa("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nu.prototype,"onMouseEnter_",null);_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nu.prototype,"onMouseLeave_",null);
_.C([_.vZ("data","disableNowPlaying","miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nu.prototype,"checkMiniplayer_",null);_.C([_.Do()],Nu);var QDS=[Nu.prototype];_.VC={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(R,A){return R+":"+_.tk(A)},
getPlayerListener_:function(R,A,Y){R=this.getPlayerListenerKey_(R,A);A=this.playerListeners_.get(R);Y&&this.playerListeners_.delete(R);return A},
savePlayerListener_:function(R,A){var Y=A.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(R,A),Y);return Y},
listenToPlayerEvent:function(R,A,Y){Y=this.savePlayerListener_(A,Y);R.addEventListener(A,Y)},
listenToPlayerEvents:function(R,A){A.forEach(function(Y,P){this.listenToPlayerEvent(R,P,Y)}.bind(this))},
unlistenFromPlayerEvent:function(R,A,Y){Y=this.getPlayerListener_(A,Y,!0);R.removeEventListener(A,Y)},
unlistenFromPlayerEvents:function(R,A){A.forEach(function(Y,P){this.unlistenFromPlayerEvent(R,P,Y)}.bind(this))}}};
_.JC=function(){};_.vCS=new _.cP("PLAYER_API_TOKEN");var l1q=!1,M86,cYb=!1,Nmu;var lc=function(R,A,Y,P,E){_.KJ.call(this);var z=this;this.playerId=A;this.webPlayerContextConfig=P;this.sVb=E;this.dGo=!1;this.api={};this.jyt=this.zqn=null;this.jxs=new _.gr;this.uF={};this.xbs=this.zrV=this.elementId=this.t7n=this.config=null;this.j9c=!1;this.pN=this.xMz=null;this.u0M={};this.ypa=["onReady"];this.lastError=null;this.rEv=NaN;this.i7c={};this.e1c=0;this.qz=this.targetElement=R;_.gz(this,this.jxs);gCE(this);Y?this.e1c=setTimeout(function(){z.loadNewVideoConfig(Y)},0):P&&(nCA(this),
HMD(this))};
_.H(lc,_.KJ);lc.prototype.getId=function(){return this.playerId};
lc.prototype.loadNewVideoConfig=function(R){if(!this.isDisposed()){this.e1c&&(clearTimeout(this.e1c),this.e1c=0);var A=R||{};A instanceof jJS||(A=new jJS(A));this.config=A;this.setConfig(R);HMD(this);this.isReady()&&rYf(this)}};
var nCA=function(R){var A;R.webPlayerContextConfig?A=R.webPlayerContextConfig.rootElementId:A=R.config.attrs.id;R.elementId=A||R.elementId;R.elementId==="video-player"&&(R.elementId=R.playerId,R.webPlayerContextConfig?R.webPlayerContextConfig.rootElementId=R.playerId:R.config.attrs.id=R.playerId);var Y;((Y=R.qz)==null?void 0:Y.id)===R.elementId&&(R.elementId+="-player",R.webPlayerContextConfig?R.webPlayerContextConfig.rootElementId=R.elementId:R.config.attrs.id=R.elementId)};
lc.prototype.setConfig=function(R){this.t7n=R;this.config=Dnq(R);nCA(this);if(!this.zrV){var A;this.zrV=Unb(this,((A=this.config.args)==null?void 0:A.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var Y;if((Y=this.config)==null?0:Y.attrs)R=this.config.attrs,(A=R.width)&&this.qz&&(this.qz.style.width=kl(Number(A)||A,!0)),(R=R.height)&&this.qz&&(this.qz.style.height=kl(Number(R)||R,!0))};
var rYf=function(R){if(R.config&&R.config.loaded!==!0)if(R.config.loaded=!0,!R.config.args||R.config.args.autoplay!=="0"&&R.config.args.autoplay!==0&&R.config.args.autoplay!==!1){var A;R.api.loadVideoByPlayerVars((A=R.config.args)!=null?A:null)}else R.api.cueVideoByPlayerVars(R.config.args)},XNE=function(R){var A=!0,Y=R.getPlayerElement();
Y&&R.config&&(A=Y.dataset.version===$nN(R));return A&&!!_.Zr("yt.player.Application.create")},HMD=function(R){if(!R.isDisposed()&&!R.j9c){var A=XNE(R);
if(A&&(R.getPlayerElement()?"html5":null)==="html5")R.xbs="html5",R.isReady()||S1q(R);else if(I1E(R),R.xbs="html5",A&&R.pN&&R.targetElement)R.targetElement.appendChild(R.pN),S1q(R);else{R.config&&(R.config.loaded=!0);var Y=!1;R.xMz=function(){Y=!0;var P=K2H(R,"player_bootstrap_method")?_.Zr("yt.player.Application.createAlternate")||_.Zr("yt.player.Application.create"):_.Zr("yt.player.Application.create");var E=R.config?Dnq(R.config):void 0;P&&P(R.targetElement,E,R.webPlayerContextConfig,R.sVb);S1q(R)};
R.j9c=!0;A?R.xMz():(_.Gr($nN(R),R.xMz),(A=W2A(R))&&fVk(A||""),jDZ(R)&&!Y&&_.PG("yt.player.Application.create",null))}}};
lc.prototype.getPlayerElement=function(){var R=_.ic(document,this.elementId);!R&&this.qz&&this.qz.querySelector&&(R=this.qz.querySelector("#"+this.elementId));return R};
var S1q=function(R){if(!R.isDisposed()){var A=R.getPlayerElement(),Y=!1;A&&A.getApiInterface&&A.getApiInterface()&&(Y=!0);if(Y){R.j9c=!1;if(!K2H(R,"html5_remove_not_servable_check_killswitch")){var P;if((A==null?0:A.isNotServable)&&R.config&&(A==null?0:A.isNotServable((P=R.config.args)==null?void 0:P.video_id)))return}bMf(R)}else R.rEv=setTimeout(function(){S1q(R)},50)}},bMf=function(R){gCE(R);
R.dGo=!0;var A=R.getPlayerElement();if(A){R.zqn=f1S(R,A,"addEventListener");R.jyt=f1S(R,A,"removeEventListener");var Y=A.getApiInterface();Y=Y.concat(A.getInternalApiInterface());for(var P=R.api,E=0;E<Y.length;E++){var z=Y[E];P[z]||(P[z]=f1S(R,A,z))}}for(var c in R.uF)R.uF.hasOwnProperty(c)&&R.zqn&&R.zqn(c,R.uF[c]);rYf(R);R.zrV&&R.zrV(R.api);R.jxs.publish("onReady",R.api)},f1S=function(R,A,Y){var P=A[Y];
return function(){var E=_.Ge.apply(0,arguments);try{return R.lastError=null,P.apply(A,E)}catch(z){if(Y!=="sendAbandonmentPing")throw z.params=Y,R.lastError=z,E=new _.XN("PlayerProxy error in method call",{error:z,method:Y,playerId:R.playerId}),E.level="WARNING",E;}}},gCE=function(R){R.dGo=!1;
if(R.jyt)for(var A in R.uF)R.uF.hasOwnProperty(A)&&R.jyt(A,R.uF[A]);for(var Y in R.i7c)R.i7c.hasOwnProperty(Y)&&clearTimeout(Number(Y));R.i7c={};R.zqn=null;R.jyt=null;A=R.api;for(var P in A)A.hasOwnProperty(P)&&(A[P]=null);A.addEventListener=function(E,z){R.addEventListener(E,z)};
A.removeEventListener=function(E,z){R.removeEventListener(E,z)};
A.destroy=function(){R.dispose()};
A.getLastError=function(){return R.getLastError()};
A.getPlayerType=function(){return R.getPlayerType()};
A.getCurrentVideoConfig=function(){return R.t7n};
A.loadNewVideoConfig=function(E){R.loadNewVideoConfig(E)};
A.isReady=function(){return R.isReady()}};
lc.prototype.isReady=function(){return this.dGo};
lc.prototype.addEventListener=function(R,A){var Y=this;this.isDisposed();var P=Unb(this,A);P&&(_.B3(this.ypa,R)||this.uF[R]||(A=pND(this,R),this.zqn&&this.zqn(R,A)),this.jxs.subscribe(R,P),R==="onReady"&&this.isReady()&&setTimeout(function(){P(Y.api)},0))};
lc.prototype.removeEventListener=function(R,A){this.isDisposed()||(A=Unb(this,A))&&this.jxs.unsubscribe(R,A)};
var Unb=function(R,A){var Y=A;if(typeof A==="string"){if(R.u0M[A])return R.u0M[A];Y=function(){var P=_.Ge.apply(0,arguments),E=_.Zr(A);if(E)try{E.apply(_.P3,P)}catch(z){throw P=new _.XN("PlayerProxy error when executing callback",{error:z}),P.level="ERROR",P;}};
R.u0M[A]=Y}return Y?Y:null},pND=function(R,A){var Y=function(P){var E=function(){R.isDisposed();
if(!R.isDisposed())try{R.jxs.publish(A,P!=null?P:void 0)}catch(M){var c=new _.XN("PlayerProxy error when creating global callback",{error:M.message,event:A,playerId:R.playerId,data:P,originalStack:M.stack,componentStack:M.componentStack});c.level="WARNING";throw c;}};
if(K2H(R,"web_player_publish_events_immediately"))E();else{var z=setTimeout(function(){E();_.BO.remove(R.i7c,String(z))},0);
_.BO.add(R.i7c,String(z),!0)}};
return R.uF[A]=Y};
lc.prototype.getPlayerType=function(){return this.xbs||(this.getPlayerElement()?"html5":null)};
lc.prototype.getLastError=function(){return this.lastError};
var I1E=function(R){R.cancel();gCE(R);R.xbs=null;R.config&&(R.config.loaded=!1);var A=R.getPlayerElement();A&&(XNE(R)||!jDZ(R)?R.pN=A:(A&&A.destroy&&A.destroy(),R.pN=null));R.targetElement&&_.pF(R.targetElement)};
lc.prototype.cancel=function(){this.xMz&&_.OUV($nN(this),this.xMz);clearTimeout(this.rEv);this.j9c=!1};
lc.prototype.disposeInternal=function(){I1E(this);if(this.pN&&this.config&&this.pN.destroy)try{this.pN.destroy()}catch(A){var R=new _.XN("PlayerProxy error during disposal",{error:A});R.level="ERROR";throw R;}this.u0M=null;for(R in this.uF)this.uF.hasOwnProperty(R)&&delete this.uF[R];this.t7n=this.config=this.api=null;delete this.targetElement;delete this.qz;_.KJ.prototype.disposeInternal.call(this)};
var jDZ=function(R){var A,Y;R=(A=R.config)==null?void 0:(Y=A.args)==null?void 0:Y.fflags;return!!R&&R.indexOf("player_destroy_old_version=true")!==-1},$nN=function(R){return R.webPlayerContextConfig?R.webPlayerContextConfig.jsUrl:(R=R.config.assets)?R.js:""},W2A=function(R){return R.webPlayerContextConfig?R.webPlayerContextConfig.cssUrl:(R=R.config.assets)?R.css:""},K2H=function(R,A){if(R.webPlayerContextConfig)var Y=R.webPlayerContextConfig.serializedExperimentFlags;
else{var P;if((P=R.config)==null?0:P.args)Y=R.config.args.fflags}return(Y||"").split("&").includes(A+"=true")},Dnq=function(R){for(var A={},Y=_.x(Object.keys(R)),P=Y.next();!P.done;P=Y.next()){P=P.value;
var E=R[P];A[P]=typeof E==="object"?_.BO.clone(E):E}return A};var Tm8={},mnV="player_uid_"+(Math.random()*1E9>>>0);var yC=function(R,A,Y,P,E,z){A=A===void 0?document.createElement("div"):A;this.webPlayerContextConfig=R;this.container=A;this.commandResolver=Y;this.apiResolver=gCk();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.y2;P||z?F2S(this):Bm7(this);this.pendingPlayerResponse=P;this.pendingWatchNextResponse=E;this.pendingPlayerVars=z;a1H(this)};
yC.prototype.loadVideoWithPlayerResponse=function(R,A,Y){this.loadVideo(R,A,Y)};
yC.prototype.loadVideoWithPlayerVars=function(R){return this.loadVideo(void 0,void 0,R)};
yC.prototype.destroy=function(R){if(R=_.ic(document,R))R=mnV+"_"+_.tk(R),(R=Tm8[R])&&R.dispose()};
var h0S=function(R,A){var Y;_.O(function(P){if(P.nextAddress==1)return R.pendingWatchNextResponse=A,R.synchronousApi?(Y=R.synchronousApi,P.jumpTo(2)):P.yield(R.api,3);P.nextAddress!=2&&(Y=P.yieldResult);if(!C3f(R,Y))return P.return();R.pendingWatchNextResponse&&(Y.updateVideoData({raw_watch_next_response:R.pendingWatchNextResponse}),R.pendingWatchNextResponse=void 0);_.XH(P)})},C3f=function(R,A){var Y;
if(!(A==null?0:(Y=A.isReady)==null?0:Y.call(A))){var P;_.pK(new _.XN("playerApi is falsey",{synchronousApi:R.synchronousApi,apiResolved:R.apiResolver.resolved,playerApiUndefined:A===void 0,playerApiNull:A===null,playerApiReady:(A==null?void 0:(P=A.isReady)==null?void 0:P.call(A))===!0,playerApiMethods:A?Object.keys(A):[]}));return!1}return!0},oCZ=function(R,A){if(typeof R[A]==="function")return R[A]()},kaE=function(R){var A=window,Y,P=(Y=A.ytplayer)==null?void 0:Y.bootstrapPlayerContainer;
if((Y=P==null?void 0:P.firstElementChild)&&_.eS(Y,"html5-video-player")){var E,z,c=(E=A.ytplayer)==null?void 0:(z=E.bootstrapWebPlayerContextConfig)==null?void 0:z.contextId;E=R.webPlayerContextConfig.contextId;if(c&&c===E){P!==R.container&&(P=!1,oCZ(Y,"getPlayerState")===2&&(P=!0),R.container.appendChild(Y),P||oCZ(Y,"playVideo"));var M;if((M=A.ytplayer)==null?0:M.bootstrapPlayerResponse)R.bootstrapPlayerResponse=A.ytplayer.bootstrapPlayerResponse}}},a1H=function(R){var A,Y,P,E,z;
_.O(function(c){if(c.nextAddress==1)return R.pageReadyOrDataAvailable?c.jumpTo(2):c.yield(R.pageReadyOrDataAvailableResolver.promise,2);if(c.nextAddress!=4)return!_.v("kevlar_player_unified_player_loading")||xnk()&&OMk()?c.jumpTo(4):c.yield(JYS(),4);kaE(R);if(R.pendingPlayerResponse||R.pendingPlayerVars)A=yYI(R.pendingPlayerResponse,R.pendingWatchNextResponse,R.pendingPlayerVars),R.pendingPlayerResponse&&R.pendingPlayerResponse===R.bootstrapPlayerResponse&&(A.loaded=!0),R.bootstrapPlayerResponse=
void 0;Y=vCl(R.container,A,R.webPlayerContextConfig);((P=A)==null?0:P.loaded)&&R.pendingWatchNextResponse?(h0S(R,R.pendingWatchNextResponse),R.pendingPlayerResponse=void 0,R.pendingPlayerVars=void 0):GaH(R);E=function(M){Y.removeEventListener("onReady",E);R.synchronousApi=M;R.apiResolver.resolve(M)};
Y.addEventListener("onReady",E);R.commandResolver!==void 0&&(z=R.commandResolver,Y.addEventListener("innertubeCommand",function(M){z(M)}));
_.XH(c)})};
yC.prototype.loadVideo=function(R,A,Y){var P=this,E,z,c,M,N,y,m,T,Q;return _.O(function(g){if(g.nextAddress==1)return P.pendingPlayerResponse=R,P.pendingWatchNextResponse=A,P.pendingPlayerVars=Y,F2S(P),P.synchronousApi?(E=P.synchronousApi,g.jumpTo(2)):g.yield(P.api,3);g.nextAddress!=2&&(E=g.yieldResult);if(!C3f(P,E))return g.return(new Promise(function(){}));
c=new Promise(function(r){z=r});
M=function(){var r=E.getPlayerResponse();r&&(E.removeEventListener("onVideoDataChange",M),z(r))};
E.addEventListener("onVideoDataChange",M);if(P.pendingPlayerResponse||P.pendingPlayerVars)P.pendingPlayerResponse&&P.pendingPlayerResponse===P.bootstrapPlayerResponse?(z(P.pendingPlayerResponse),P.pendingWatchNextResponse&&h0S(P,P.pendingWatchNextResponse)):(N=yYI(P.pendingPlayerResponse,P.pendingWatchNextResponse,P.pendingPlayerVars),(Q=(y=P.pendingPlayerResponse)==null?void 0:(m=y.playerConfig)==null?void 0:(T=m.playbackStartConfig)==null?void 0:T.startPaused)?E.cueVideoByPlayerVars(N.args):E.loadVideoByPlayerVars(N.args)),
GaH(P),P.bootstrapPlayerResponse=void 0;return g.return(c)})};
var Bm7=function(R){if(document.readyState==="complete"||document.readyState==="interactive")F2S(R);else{var A=function(){document.removeEventListener("DOMContentLoaded",A);F2S(R)};
document.addEventListener("DOMContentLoaded",A)}},F2S=function(R){R.pageReadyOrDataAvailable=!0;
R.pageReadyOrDataAvailableResolver.resolve()},GaH=function(R){R.pendingPlayerResponse=void 0;
R.pendingWatchNextResponse=void 0;R.pendingPlayerVars=void 0};
_.Yh.Object.defineProperties(yC.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var mu=function(R){oc.call(this,R===void 0?"document_active":R);var A=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(Y){A.transition("document_disposed",{event:Y})});
window.addEventListener("beforeunload",function(Y){A.transition("document_disposed_preventable",{event:Y})});
window.addEventListener("unload",function(Y){A.transition("document_disposed",{event:Y});A.hasRun=new Map})};
_.H(mu,oc);
mu.prototype.runPreventableDispose=function(R,A){if(!this.hasRun.get("document_disposed_preventable")){R(A==null?void 0:A.event);var Y,P;if((A==null?0:(Y=A.event)==null?0:Y.defaultPrevented)||(A==null?0:(P=A.event)==null?0:P.returnValue)){A.event.returnValue||(A.event.returnValue=!0);A.event.defaultPrevented||A.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")};
mu.prototype.runDispose=function(R,A){this.hasRun.get("document_disposed")?this.transition("document_active"):(R(A==null?void 0:A.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
mu.prototype.runFlush=function(R,A){R(A==null?void 0:A.event);this.transition("document_active")};
mu.prototype.runActive=function(){};var TF=function(R){oc.call(this,R===void 0?"document_visibility_unknown":R);var A=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(Y){document.visibilityState==="visible"?A.transition("document_visible",{event:Y}):A.transition("document_hidden",
{event:Y})});
_.v("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(Y){A.transition("document_backgrounded",{event:Y})}),window.addEventListener("focus",function(Y){A.transition("document_foregrounded",{event:Y})}))};
_.H(TF,oc);TF.prototype.runVisible=function(R,A){R(A==null?void 0:A.event);_.v("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
TF.prototype.runHidden=function(R,A){R(A==null?void 0:A.event);_.v("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
TF.prototype.runBackgrounded=function(R,A){R(A==null?void 0:A.event)};
TF.prototype.runForegrounded=function(R,A){R(A==null?void 0:A.event)};var QC=function(){this.teardownLifecycle=new mu;this.visibilityLifecycle=new TF};
QC.prototype.install=function(){var R=_.Ge.apply(0,arguments),A=this;R.forEach(function(Y){A.teardownLifecycle.install(Y)});
R.forEach(function(Y){A.visibilityLifecycle.install(Y)})};var vf=function(){QC.call(this);var R={};this.install((R.document_disposed={callback:this.abortSlisAndFlush},R));_.v("combine_ve_grafts")&&(R={},this.install((R.document_disposed={callback:this.flushInteractionLoggingAttachVes},R)));R={};this.install((R.flush_logs={callback:this.logFinalPayload},R));_.v("web_log_cfg_cee_ks")||_.Ua(_.fn,ZM7)};
_.H(vf,QC);var nC6=function(){vf.loggingInstance||(vf.loggingInstance=new vf);return vf.loggingInstance};
vf.prototype.logFinalPayload=function(){if(_.v("web_fp_via_jspb")){var R=new sKE,A=_.F9();A&&_.IS(R,1,A);A=_.v("jspb_sparse_encoded_pivot")?new DA([{}]):new DA;_.Ug(A,380,NqA,R);RgP("finalPayload",A);_.v("web_fp_via_jspb_and_json")&&_.Wj("finalPayload",{csn:_.F9()})}else _.Wj("finalPayload",{csn:_.F9()})};
vf.prototype.abortSlisAndFlush=function(){TIb(x5);ci!=null&&ci.flush()};
vf.prototype.flushInteractionLoggingAttachVes=function(){FKA(_.rU())};
var ZM7=function(){var R=_.a1("CLIENT_EXPERIMENT_EVENTS");if(R){var A=uV8();R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,A(Y)&&_.Wj("genericClientExperimentEvent",{eventType:Y});delete _.Fc.CLIENT_EXPERIMENT_EVENTS}};var t8b={};
t8b.YtPlayerBehavior=[_.VC.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 R=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.y2;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;HMu(function(){R.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Bu(this,"pan-down"),_.v("kevlar_pinch_fullscreen")&&_.GD().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.v("kevlar_pinch_fullscreen")&&_.GD().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(R,A,Y){var P=this;xH(this.useUnifiedPlayer_());if(this.mainAppPlayer_)xH(!1,"MainAppPlayer already created.");else{var E=_.v("kevlar_player_container_query_killswitch")?this.$.container:_.Mo(this.hostElement).querySelector("#container");this.mainAppPlayer_=new yC(this.getWebPlayerContextConfig_(),E,function(z){return _.vc(z,P.hostElement)},R,A,Y);
this.mainAppPlayer_.api.then(function(z){P.player_=z;P.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Faq.resolve(z)})}},
loadVideoWithPlayerResponse:function(R,A){var Y=this;if(this.useUnifiedPlayer_()){var P=this.watchNextData,E,z=(E=R.videoDetails)==null?void 0:E.videoId,c,M,N;(E=(c=this.watchNextData)==null?void 0:(M=c.currentVideoEndpoint)==null?void 0:(N=M.watchEndpoint)==null?void 0:N.videoId)&&z!=E&&(P=void 0,_.v("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(R,P,A):this.createMainAppPlayer_(R,P,A);this.mainAppPlayer_.api.then(function(){_.xo(Y.hostElement,
"yt-player-updated")})}else this.update(ECJ(R,A))},
loadVideoWithPlayerVars:function(R){var A=this;this.useUnifiedPlayer_()?(_.v("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(R):this.createMainAppPlayer_(void 0,void 0,R),this.mainAppPlayer_.api.then(function(){_.xo(A.hostElement,"yt-player-updated")})):this.update({args:R})},
update:function(R){var A=this;if(this.useUnifiedPlayer_())xH(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(R);var Y=QyP(R.args);Y&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==Y&&Object.assign(R.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(R).then(function(P){_.xo(A.hostElement,"yt-player-updated",_.v("kevlar_player_updated_obsolete_player_killswitch")?
P:void 0)})}_.fK(new _.XN("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.getPlayerPromise(),2);Y=P.yieldResult;if(!Y)throw Error("wh");R&&A.updatePlayerPlaylist_(R);_.XH(P)})},
acquireApi_:function(R){var A=this;if(this.useUnifiedPlayer_())xH(!1,"Invalid method call in kevlar_unified_player.");else return _.fn.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(xH(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(Y){A.shouldAutoplay_(R)?Y.loadVideoByPlayerVars(R.args):Y.cueVideoByPlayerVars(R.args)})):this.initPlayerPromise_=this.initPlayerContainer_(R),this.initPlayerPromise_},
initPlayerContainer_:function(R){var A=this;if(this.useUnifiedPlayer_())xH(!1,"Invalid method call in kevlar_unified_player.");else return xH(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.pK(Error("xh")),xH(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.v("kevlar_player_container_query_killswitch")?this.$.container:_.Mo(this.hostElement).querySelector("#container"),JYS().then(function(){var Y=A.initPlayer_(R);A.playerResolver_.resolve(Y);
return Y})},
onPlayerReady_:function(R,A){this.useUnifiedPlayer_()?xH(!1,"Invalid method call in kevlar_unified_player."):(R.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&Faq.resolve(R),A(R))},
maybeCallApiMethodOnElement_:function(R,A){if(typeof R[A]==="function")return R[A]()},
maybeAdoptBootstrapPlayer_:function(){var R=window,A,Y=(A=R.ytplayer)==null?void 0:A.bootstrapPlayerContainer;if((A=Y==null?void 0:Y.firstElementChild)&&A.classList.contains("html5-video-player")){var P,E,z=(P=R.ytplayer)==null?void 0:(E=P.bootstrapWebPlayerContextConfig)==null?void 0:E.contextId;P=this.getWebPlayerContextConfig_().contextId;if(z&&z===P){Y!==this.playerContainer_&&(Y=!1,this.maybeCallApiMethodOnElement_(A,"getPlayerState")===2&&(Y=!0),this.playerContainer_.appendChild(A),Y||this.maybeCallApiMethodOnElement_(A,
"playVideo"));var c;if((c=R.ytplayer)==null?0:c.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=R.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(R){var A=this;if(this.useUnifiedPlayer_())xH(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(Y){A.maybeAdoptBootstrapPlayer_();var P=R?z0b(R):void 0;P&&P==A.bootstrapPlayerResponse_&&(R.loaded=!0);P=A.playerContainer_;var E=A.getWebPlayerContextConfig_();P=vCl(P,R,E);A.player_=P;A.onPlayerReadyEvent_=A.onPlayerReady_.bind(A,A.player_,Y);A.player_.addEventListener("onReady",A.onPlayerReadyEvent_);A.player_.addEventListener("innertubeCommand",
A.onPlayerInnerTubeCommand_.bind(A))})},
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(R){R.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(R){R.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var R=_.is().resolve(_.YH).getCurrentPage();R&&R.getScrollTop()<=0?_.Bu(this,"pan-down"):_.Bu(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(R){R.isFullscreen()||R.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(R){R.isFullscreen()&&R.toggleFullscreen()})},
updatePlayerPlaylist_:function(R){var A=this,Y,P,E;return _.O(function(z){if(z.nextAddress==1)return Y=_.is().resolve(_.z3(_.Y7)),P=!!(Y&&Y.playlistComponent&&Y.playlistComponent.loopOn),z.yield(A.getPlayerPromise(),2);var c=E=z.yieldResult,M=c.updatePlaylist,N=[];if(_.v("kevlar_player_playlist_use_local_index")){var y,m;var T=(m=(y=R.localCurrentIndex)!=null?y:R.currentIndex)!=null?m:0}else{var Q;T=(Q=R.currentIndex)!=null?Q:0}if(R.contents)for(y=0;y<R.contents.length;y++)if((m=R.contents[y])&&m.playlistPanelVideoRenderer)if(MtI(m)){m=
m.playlistPanelVideoRenderer;Q="";m.shortBylineText&&(Q=_.R4(m.shortBylineText));var g="";m.title?g=_.R4(m.title):m.unplayableText&&(g=_.R4(m.unplayableText));N.push({author:Q,title:g,encrypted_id:m.videoId})}else y<T&&--T;M.call(c,{index:T,list:R.playlistId?R.playlistId:"",loop:P,playlist_title:R.title,playlist_length:N.length,video:N,fetch:0,external_list:"1",title:R.title?R.title:"",playlist_author:R.ownerName?_.R4(R.ownerName):void 0});_.XH(z)})},
focusOnPlayer:function(){_.RK(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var R=this.playerContainer_.querySelector(".html5-video-player");R&&(_.gy(_.is().resolve(_.XW)),R.focus())}})},
preparePlayer:function(){var R=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(A){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")A();else{var Y=function(){document.removeEventListener("DOMContentLoaded",Y);A()};
document.addEventListener("DOMContentLoaded",Y)}})).then(function(){return JYS()}).then(function(){R.initPlayerPromise_||R.preparePlayerJobId_||(R.preparePlayerJobId_=_.Ua(_.fn,function(){R.initPlayerPromise_||(R.initPlayerPromise_=R.initPlayerContainer_())}))}):_.fK(new _.XN("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(R){this.useUnifiedPlayer_()?xH(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(R)||(R.args.autoplay="0")},
shouldAutoplay_:function(R){if(this.useUnifiedPlayer_())xH(!1,"Invalid method call in kevlar_unified_player.");else{var A=this.get("args.el",R);return A&&A!="detailpage"&&this.isMiniplayerActive_()||A&&(A=="sponsorshipsoffer"||A=="handlesclaiming")&&this.get("args.autoplay",R)=="0"?!1:(R=z0b(R))&&this.get("playerConfig.playbackStartConfig.startPaused",R)?!1:!0}},
isMiniplayerActive_:function(){return _.is().resolve(_.jv).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var R=this.getPlayer();if(R){var A=R.getPlayerState();_.v("kevlar_player_check_ad_state_on_stop")&&(A=R.getPlayerState(R.getPresentingPlayerType()));A!=5&&R.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(R,A,Y){Y=Y===void 0?!1:Y;var P=this,E,z,c,M;return _.O(function(N){if(N.nextAddress==1)return A||(A=P.hostElement),E=P.useUnifiedPlayer_()?!!P.mainAppPlayer_:!!P.initPlayerPromise_,E?N.yield(P.getPlayerPromise(),2):(Y?R.insertBefore(A,R.firstChild):R.appendChild(A),N.return());z=N.yieldResult;c=z.getPlayerState(z.getPresentingPlayerType());M=!1;if(c==-1||c==1||c==3)M=!0;Y?R.insertBefore(A,R.firstChild):R.appendChild(A);M&&z.playVideo();z.setSize(NaN,NaN);_.XH(N)})},
watchNextDataChanged_:function(R){var A=this;R&&(this.useUnifiedPlayer_()&&_.v("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&h0S(this.mainAppPlayer_,R):this.getPlayerPromise().then(function(Y){Y.updateVideoData(A.computeWatchNextPlayerVars_(R))}))},
computeWatchNextPlayerVars_:function(R){if(this.useUnifiedPlayer_()&&_.v("kevlar_unified_player_update_watch_next_killswitch"))xH(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:R}},
maybeSendAbandonmentPing_:function(){var R=this.getPlayer();R&&R.getPlayerState()!=5&&R.getPlayerState()!=0&&R.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var R=_.a1("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(R=Object.assign({},R),R.rootElementId=this.playerId);R.serializedExperimentIds&&R.serializedExperimentFlags||_.pK(Error("yh"));return R},
hasWebPlayerContextConfig_:function(){return!!_.a1("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(R){this.useUnifiedPlayer_()?xH(!1,"Invalid method call in kevlar_unified_player."):_.vc(R,this.hostElement)},
useUnifiedPlayer_:function(){var R=_.v("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.v("kevlar_unified_player")||R}}];var wNZ={};wNZ.YtPlaylistPanelBehavior=[_.u.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(R){R=R.detail;if(R.actions.loop!=void 0||R.actions["yt-icons:loop"]!=void 0)this.loopOn=R.actions.loop||R.actions["yt-icons:loop"];if(R.actions.shuffle!=void 0||R.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=R.actions.shuffle||R.actions["yt-icons:shuffle"]},
setMenuData_:function(R){if(!R||!R.playlistButtons||R.isInfinite)return null;for(var A=R.playlistButtons.menuRenderer.topLevelButtons,Y=A.length,P=0;P<Y;P++)if(A[P].toggleButtonRenderer){var E=A[P].toggleButtonRenderer;E.defaultIcon.iconType=="LOOP"&&this.loopOn?E.isToggled=this.loopOn:E.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(E.isToggled=this.shuffleOn)}return R.playlistButtons}}];var uBE=function(R){OP.call(this,R,132);this.isDocument=R===document.documentElement};
_.H(uBE,OP);uBE.prototype.calculateScrollDelta=function(R,A,Y){var P=0;R<A?P=R<A-100?-48:-8:R>A+Y&&(P=R>A+Y+100?48:8);return P};
uBE.prototype.JSC$11382_onMouseMove=function(R){this.isDocument||(R.clientX=R.event_.pageX,R.clientY=R.event_.pageY);OP.prototype.JSC$11382_onMouseMove.call(this,R)};var np=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;R.scrollElement=document.documentElement;R.JSC$14376_dragListGroup=null;R.dragScrollSupport=null;R.onDraggerCreated=function(A){var Y=A.JSC$11378_dragger;Y.scrollTarget_=R.scrollElement;A=A.draggerEl;Y&&A.menuOpened&&Y.setEnabled(!1)};
R.onDragStart=function(A){var Y=A.draggerEl;A=A.currDragItem;var P=Object.assign({},A==null?void 0:A.data);P.trackingParams=void 0;Y.data=P;Y.style.position="absolute";Y.style.width=(A==null?void 0:A.clientWidth)+"px";Y.style.zIndex="2030";Y.onDrag&&Y.onDrag();_.v("web_owner_document_fallback_killswitch")?(A=document.querySelector("ytd-app"))&&_.Mo(A).appendChild(Y):(A=_.oS(Y),(P=A.querySelector("ytd-app"))?_.Mo(P).appendChild(Y):A.body.appendChild(Y));R.dragScrollSupport=new uBE(R.scrollElement);
R.dragScrollSupport.horizontalScrolling_=!1;Y=R.dragScrollSupport;Y.constrainScroll_=!!Y.margin_&&!1};
R.onDrop=function(A){R.handleDrop(A);R.dragScrollSupport&&(_.lt(R.dragScrollSupport),R.dragScrollSupport=null)};
R.onReorderableScroll=function(){if(R.JSC$14376_dragListGroup){var A=R.JSC$14376_dragListGroup;s6Z(A,A.currDragItem_)}};
return R};
_.H(np,_.rg);np.prototype.detached=function(){_.e0A(this)};
_.e0A=function(R){R.JSC$14376_dragListGroup&&(_.XQ(R.JSC$14376_dragListGroup,P58,R.onDragStart),_.XQ(R.JSC$14376_dragListGroup,lo7,R.onDragStart),R.JSC$14376_dragListGroup.dispose(),R.JSC$14376_dragListGroup=null);R.dragScrollSupport&&(_.lt(R.dragScrollSupport),R.dragScrollSupport=null);R.scrollElement.removeEventListener("scroll",R.onReorderableScroll)};
_.q1H=function(R,A,Y,P){P=P===void 0?"":P;_.e0A(R);Y&&(R.scrollElement=Y);R.JSC$14376_dragListGroup=new eJ;R.JSC$14376_dragListGroup.hysteresisDistance_=2;chE(R.JSC$14376_dragListGroup,A);R.JSC$14376_dragListGroup.draggerElClasses_=s6("dragging").split(" ");P&&OG8(R.JSC$14376_dragListGroup,function(E){var z=E||document,c=null;z.getElementsByClassName?c=z.getElementsByClassName(P)[0]:c=oZb("*",P,E);return c||E});
_.KC(R.JSC$14376_dragListGroup,Ah7,R.onDraggerCreated);_.KC(R.JSC$14376_dragListGroup,P58,R.onDragStart);_.KC(R.JSC$14376_dragListGroup,lo7,R.onDrop);R.JSC$14376_dragListGroup.init();R.scrollElement.addEventListener("scroll",R.onReorderableScroll,{passive:!0})};
np.prototype.handleDrop=function(){};
_.Yh.Object.defineProperties(np.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.C([_.S({value:100}),_.k("design:type",Number)],np.prototype,"scrollMargin",void 0);_.C([_.Do()],np);_.L2q=[np.prototype];_.Hf={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(R,A,Y){var P=this.getClickTarget_(A);if(P&&this.isClickAllowed_(P)){A.preventDefault();R=(0,_.BO.unsafeClone)(R);var E=this.getContainerBoundingRect();A=this.getRelativeClickXy_(A,E);this.expandEndpointUrlMacros_(R,{NX:A[0],NY:A[1],NB:P.code});Y&&this.truncateWebCommendMetadataUrl_(R);_.xo(this.hostElement,"yt-navigate",{endpoint:R})}},
getClickTarget_:function(R){if(!this.clickTargetMap)return null;R=_.Ah(R)||[];R=_.x(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;if(A===_.Mo(this.hostElement).querySelector("#menu"))break;if(A=this.clickTargetMap.get(A.id))return A}return null},
getRelativeClickXy_:function(R,A){var Y=R.detail.x,P=R.detail.y;_.v("use_on_click_for_desktop_display_ad")&&R.clientX!=null&&R.clientY!=null&&(Y=R.clientX,P=R.clientY);R=Math.round(Y-A.left);A=Math.round(P-A.top);return R<0||A<0?[null,null]:[R,A]},
getContainerBoundingRect:function(){return _.Mo(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(R,A){for(var Y=_.x(R.loggingUrls||[]),P=Y.next();!P.done;P=Y.next())P=P.value,P.baseUrl&&(P.baseUrl=A6k(P.baseUrl,A));R.urlEndpoint&&R.urlEndpoint.url&&(R.urlEndpoint.url=A6k(R.urlEndpoint.url,A));R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.url&&(R.commandMetadata.webCommandMetadata.url=A6k(R.commandMetadata.webCommandMetadata.url,A))},
truncateWebCommendMetadataUrl_:function(R){if(R.commandMetadata&&R.commandMetadata.webCommandMetadata&&R.commandMetadata.webCommandMetadata.url){var A=R.commandMetadata.webCommandMetadata.url,Y=A.indexOf("&pp=");if(Y>0){var P=A.indexOf("&",Y+1);R.commandMetadata.webCommandMetadata.url=P>Y&&P<A.length?A.slice(0,Y)+A.slice(P):A.slice(0,Y)}}},
configureClickTargets:function(R,A,Y){this.containerId=R;this.clickTargetMap=new Map;R=_.x(A);for(A=R.next();!A.done;A=R.next())if(A=A.value,A.location){var P=Y.get(A.location);P&&(_.No(_.Mo(this.hostElement).querySelector("#"+P),"yt-simple-endpoint",this.isClickAllowed_(A)),this.clickTargetMap.set(P,A))}},
isClickAllowed_:function(R){return R.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||R.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||R.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||R.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.ry={};
_.ry.YtLazyListBehavior=[_.QY.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 R=(this.constructor.generatedFrom||this).observers;R||(R=[]);R.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
R}},
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 R=this.renderElementsOutsideVisibleArea_;R&&(ugq(R,4),R.processSignal())},
deepLazyListObserver_:function(R){var A=this;if(R){var Y=R.value||[];if(this.itemsPath==R.path){var P=this.nonDeferredItemCount;R=0;P>-1&&Y.length>P&&(R=_.a1("REMAINING_DOVA_DEFERRED_CHUNKS",-1));R>0?(P>0&&(P=Y.slice(0,P),this.setInitialItemsOnDataChanged(P)),(P=this.renderElementsOutsideVisibleArea_)?P.cancel():(P=this.renderElementsOutsideVisibleArea_=new _.gt(2,"eocs"),_.q5I(window,"scroll",function(){return A.renderDeferredElements()})),_.nH(P,function(){A.setInitialItemsOnDataChanged(Y)}),_.BD("REMAINING_DOVA_DEFERRED_CHUNKS",
R-1)):this.setInitialItemsOnDataChanged(Y)}else if(this.itemsPath+".splices"==R.path)this.onItemsUpdated_(Y);
else P="shownItems"+R.path.substr(this.itemsPath.length),this.useSignals&&P==="shownItems.length"||this.notifyPath(P,R.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(R){R&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(R),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(R){R=R.indexSplices;for(var A=0,Y=R.length;A<Y;A++){var P=R[A];if(P.index<this.shownCount&&(P.removed&&this.splice("shownItems",P.index,P.removed.length),P.addedCount)){var E=P.object.slice(P.index,P.index+P.addedCount);P=["shownItems",P.index,0];P.push.apply(P,E);this.splice.apply(this,P)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(R){this.cancelPendingTasks_();R||(R=[]);this.items_=R;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&&(_.CQ("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.RK(this,this.tryRenderChunk_)))},
fillRange_:function(R,A){this.canShowMore&&this.items_&&(R=this.items_.slice(R,A),R.unshift("shownItems"),this.push.apply(this,R),this.shownCount=A,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var R=this;this.canShowMore&&_.u5(this,"renderChunk",function(){R.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.CQ("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.$H(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var R=this.renderElementsOutsideVisibleArea_;R&&(R.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var R=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(R-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=R;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(R){return Math.ceil(1E3/R)},
onCanShowMoreUpdated_:function(R){this.data&&this.items_!==null&&(R?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(R){!this.shouldUseTaskManager()&&this.data&&(!R&&this.canShowMore?(_.klS(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):R&&this.partiallyRenderedItems_.has(this.items_)&&(_.v("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var $X;_.DP={};
$X=function(){var R=_.rg.apply(this,arguments)||this;R.atStart=!0;R.atEnd=!0;R.startIndex=0;R.endIndex=0;R.scrollCount=0;R.initialStartIndex=0;R.disableScrollEventListener=!1;R.useFloorScrolling=!1;R.isSearch=!1;R.dragging=!1;R.dragMouseStart=0;R.dragOffsetStart=0;R.disableWheelScroll=!1;R.centerListItems=!1;R.offset=0;R.minComponentWidth=0;R.marginWidthRight=0;R.marginWidthLeft=0;R.setButtonsStateRequested=!1;R.itemsVisibilityObserver=null;R.fullyVisibleItemsIndices=[];R.JSC$14387_onWheelScroll=function(A){if(R.isSearch&&
!R.disableWheelScroll&&_.v("desktop_enable_dmpanel_wheel_scroll")){var Y=A.shiftKey?Math.abs(A.deltaY)>Math.abs(A.deltaX)?A.deltaY:A.deltaX:A.deltaX;Y!==0&&(A.preventDefault(),R.ytLazyListBehavior.fillRemainingListItems(),R.offset+=Y,UH(R),R.reposition_())}};
R.onPointerDown=function(A){dnS(R)&&(R.dragMouseStart=A.clientX,R.dragOffsetStart=R.offset,R.dragging=!0)};
R.onPointerMove=function(A){dnS(R)&&R.dragging&&(R.ytLazyListBehavior.fillRemainingListItems(),R.offset=R.dragOffsetStart-(A.clientX-R.dragMouseStart),UH(R),R.reposition_())};
R.onPointerUp=function(){dnS(R)&&(R.dragging=!1)};
return R};
_.H($X,_.rg);var Rhq=function(R){var A=_.Mo(R.hostElement).querySelector("#items").children;if(!A)return 0;var Y=0;R=_.x(R.fullyVisibleItemsIndices);for(var P=R.next();!P.done;P=R.next())Y+=A[P.value].clientWidth;return Y},dnS=function(R){return R.isSearch&&_.v("desktop_enable_dmpanel_click_drag_scroll")};
$X.prototype.created=function(){this.cachedViewportWidth=_.a1("initialInnerWidth")||window.innerWidth;this.JSC$14387_cachedViewportHeight=_.a1("initialInnerHeight")||window.innerHeight;_.a1("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.BD("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
$X.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.v("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();A1z(this)};
$X.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.v("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var R;(R=this.itemsVisibilityObserver)==null||R.disconnect();this.itemsVisibilityObserver=null;var A;(A=this.itemsObserver)==null||A.disconnect()};
var A1z=function(R){var A=_.Mo(R.hostElement).querySelector("#scroll-container");if(A){if(!R.itemsVisibilityObserver){var Y=window.getComputedStyle(A).marginRight;R.itemsVisibilityObserver=new IntersectionObserver(function(P){Y4A(R,P)},{root:A,
rootMargin:Y,threshold:.98})}if(A=_.Mo(R.hostElement).querySelector("#items"))R.itemsObserver=new ob8(A,function(P){P18(R,P)})}},P18=function(R,A){ERS(R)&&(Array.from(A.addedNodes).filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE}).forEach(function(Y){R.itemsVisibilityObserver&&R.itemsVisibilityObserver.observe(Y)}),Array.from(A.removedNodes).filter(function(Y){return Y.nodeType===Node.ELEMENT_NODE}).forEach(function(Y){R.itemsVisibilityObserver&&R.itemsVisibilityObserver.unobserve(Y)}))},
Y4A=function(R,A){var Y=new Set(R.fullyVisibleItemsIndices);
A=_.x(A);for(var P=A.next();!P.done;P=A.next()){P=P.value;var E=P.target.parentElement;E?(E=Array.from(E.children).indexOf(P.target),P.isIntersecting?Y.add(E):Y.has(E)&&Y.delete(E)):_.pK(new _.XN("Parent element not found",P.target.nodeName))}R.fullyVisibleItemsIndices=Array.from(Y).sort(function(z,c){return z-c});
Y.size===0?_.pK(new _.XN("No visible entries in horizontal list")):(R.startIndex=R.fullyVisibleItemsIndices[0],R.endIndex=R.fullyVisibleItemsIndices[R.fullyVisibleItemsIndices.length-1])},ERS=function(R){R.data?R=(R=R.data)&&R.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===R.itemSizeConstraint:!1:R=!1;
return R};
_.l=$X.prototype;_.l.addScrollEventListeners=function(){var R=_.Mo(this.hostElement).querySelector("#scroll-container");R.style.touchAction="pan-y";R.addEventListener("wheel",this.JSC$14387_onWheelScroll);R.addEventListener("pointerdown",this.onPointerDown);R.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.l.removeScrollEventListeners=function(){var R=_.Mo(this.hostElement).querySelector("#scroll-container");R.removeEventListener("wheel",this.JSC$14387_onWheelScroll);R.removeEventListener("pointerdown",this.onPointerDown);R.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.l.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.RK(this,this.setStartIndex,[this.initialStartIndex])};
_.l.reposition_=function(){var R=_.a1("HTML_DIR")=="rtl"?"":"-",A=_.Mo(this.hostElement).querySelector("#items");A&&(A.style.transform="translateX("+R+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.l.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.RK(this,this.setButtonsState_))};
_.l.setButtonsState_=function(){this.setButtonsStateRequested=!1;var R=_.Mo(this.hostElement).querySelector("#items").firstElementChild;if(R){this.minComponentWidth||(this.minComponentWidth=zhE(this,R));R=_.Mo(this.hostElement).querySelector("#scroll-container").clientWidth;var A=_.Mo(this.hostElement).querySelector("#items");A=_.v("kevlar_horizontal_list_scroll_width_killswitch")?A.clientWidth:A.scrollWidth;var Y=this.get(this.ytLazyListBehavior.itemsPath,this);if(Y){var P=Math.round(R/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+P,Y.length)-1)}this.ytLazyListBehavior.canShowMore?A+this.minComponentWidth>=this.offset+R&&(this.atEnd=!1):this.atEnd=this.offset+R>=A-20?!0:!1;this.atStart=this.offset<=20}};
_.l.setStartIndex=function(R){if(!this.minComponentWidth){var A=_.Mo(this.hostElement).querySelector("#items").firstElementChild;if(!A)return;this.minComponentWidth=zhE(this,A)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*R;UH(this);this.reposition_()};
_.l.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Hy();var R=_.Mo(this.hostElement).querySelector("#scroll-container").clientWidth;_.v("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=zhE(this,_.Mo(this.hostElement).querySelector("#items").firstElementChild));R=this.useFloorScrolling?Math.floor(R/this.minComponentWidth)||1:Math.round(R/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&ibH(this);this.offset+=ERS(this)?
Rhq(this):R*this.minComponentWidth;UH(this);this.reposition_();this.scrollCount++};
_.l.prevClick_=function(){var R=_.Mo(this.hostElement).querySelector("#scroll-container").clientWidth;R=this.useFloorScrolling?Math.floor(R/this.minComponentWidth)||1:Math.round(R/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=ERS(this)?Rhq(this):this.minComponentWidth*this.scrollCount-1):this.offset-=ERS(this)?Rhq(this):R*this.minComponentWidth;this.centerListItems&&ibH(this);UH(this);this.reposition_()};
_.l.onIronResize_=function(){this.resizeSupportEnabled&&_.RK(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.l.onItemsTransitionEnd_=function(R){_.Yw(R)===_.Mo(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.l.onChildElementFocus_=function(R){R=R.target.closest("#items > *");var A=_.Mo(this.hostElement).querySelector("#scroll-container");if(A.contains(R)){if(_.v("web_horizontal_list_behavior_focus_killswitch"))if(R.offsetLeft<this.offset)this.offset=Math.abs(R.offsetLeft)<R.clientWidth?0:R.offsetLeft;else if(R.offsetLeft+R.clientWidth>this.offset+A.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Hy(),this.offset=R.offsetLeft+R.clientWidth-A.clientWidth;else return;else{var Y=_.Mo(this.hostElement).querySelector("#items"),
P=_.a1("HTML_DIR")==="rtl",E=P?Y.clientWidth-R.offsetLeft:R.offsetLeft;Y=P?Y.clientWidth-(R.offsetLeft+R.clientWidth):R.offsetLeft+R.clientWidth;var z=P?E>this.offset+A.clientWidth:E<this.offset,c=P?Y<this.offset:Y>this.offset+A.clientWidth,M=P?z:c;if(P?c:z)A=P?Y:E,this.offset=Math.abs(A)<R.clientWidth?0:A;else if(M)this.ytLazyListBehavior.fillRemainingListItems(),_.Hy(),this.offset=(P?E:Y)-A.clientWidth;else return}UH(this);this.reposition_()}};
_.l.observeShownItems_=function(){this.reset()};
_.l.checkComponentWidthResize=function(){var R=_.Mo(this.hostElement).querySelector("#items").firstElementChild;R&&(R=zhE(this,R),this.centerListItems||R!==this.minComponentWidth)&&(this.minComponentWidth=R,this.offset=R*this.scrollCount,this.centerListItems&&ibH(this),UH(this),this.reposition_())};
var zhE=function(R,A){var Y=window.getComputedStyle(A).marginRight;Y=Math.floor(Number(Y.replace("px","")));var P=window.getComputedStyle(A).marginLeft;P=Math.floor(Number(P.replace("px","")));R.centerListItems&&!R.marginWidthRight&&(R.marginWidthRight=Y,R.marginWidthLeft=P);return R.resizeSupportEnabled?A.getBoundingClientRect().width+Y:A.offsetWidth+Y},UH=function(R){var A=_.Mo(R.hostElement).querySelector("#scroll-container").clientWidth,Y=_.Mo(R.hostElement).querySelector("#items").clientWidth;
R.offset<0?R.offset=0:R.offset+A>=Y&&(R.offset=Y-A)},ibH=function(R){R.offset-=(_.Mo(R.hostElement).querySelector("#scroll-container").clientWidth+R.marginWidthRight-R.minComponentWidth)/2-R.marginWidthLeft};
_.Yh.Object.defineProperties($X.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var R=_.a1("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(R==-1)R=this.JSC$14387_cachedViewportHeight,R=R>1320?5:R>1020?4:R>730?3:R>430?2:1;else if(R==0)return 0;_.BD("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",R-1);R=_.a1("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(R>-1)return R;R=this.cachedViewportWidth;R=R>1600?6:R>1400?5:R>1300?4:R>1090?5:R>870?4:R>660?3:2;_.BD("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
R);return R},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.v("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
$X.prototype.observeShownItems_=$X.prototype.observeShownItems_;$X.prototype.onChildElementFocus_=$X.prototype.onChildElementFocus_;$X.prototype.onItemsTransitionEnd_=$X.prototype.onItemsTransitionEnd_;$X.prototype.onIronResize_=$X.prototype.onIronResize_;$X.prototype.prevClick_=$X.prototype.prevClick_;$X.prototype.nextClick_=$X.prototype.nextClick_;$X.prototype.setButtonsState_=$X.prototype.setButtonsState_;$X.prototype.requestButtonsStateUpdate_=$X.prototype.requestButtonsStateUpdate_;
$X.prototype.reposition_=$X.prototype.reposition_;$X.prototype.reset=$X.prototype.reset;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$X.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],$X.prototype,"ytLazyListBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$X.prototype,"atStart",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$X.prototype,"atEnd",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"startIndex",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"endIndex",void 0);_.C([_.S({value:6}),_.k("design:type",Number)],$X.prototype,"initialCount",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"scrollCount",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"initialStartIndex",void 0);
_.C([_.S(),_.k("design:type",Object)],$X.prototype,"disableScrollEventListener",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"supportComponentResize",void 0);_.C([_.S({value:function(){var R=this;return function(){return R.prevClick_()}}}),
_.k("design:type",Function)],$X.prototype,"boundPrevClick",void 0);_.C([_.S({value:function(){var R=this;return function(){return R.nextClick_()}}}),
_.k("design:type",Function)],$X.prototype,"boundNextClick",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"useFloorScrolling",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"isSearch",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"dragging",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"dragMouseStart",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"dragOffsetStart",void 0);
_.C([_.S(),_.k("design:type",Object)],$X.prototype,"disableWheelScroll",void 0);_.C([_.S(),_.k("design:type",Object)],$X.prototype,"centerListItems",void 0);_.C([_.Qa("iron-resize"),_.vZ("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$X.prototype,"onIronResize_",null);_.C([_.Qa("transitionend"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],$X.prototype,"onItemsTransitionEnd_",null);
_.C([_.Qa("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],$X.prototype,"onChildElementFocus_",null);_.C([_.vZ("shownItems"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$X.prototype,"observeShownItems_",null);_.C([_.Do()],$X);_.DP.YtdHorizontalListBehavior=[];_.DP.YtdHorizontalListBehavior.push(_.Cr,_.u.YtRendererBehavior,_.ry.YtLazyListBehavior,_.cf.YtdGuideStateAwareBehavior,$X.prototype);var Dnk=["APP_STATE","PI"];var lSE=_.Z7(["about:blank"]),xF8={pushState:window.history.pushState,replaceState:window.history.replaceState};var Xy=function(R){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=R;this.internalPushState=R.pushState.bind(R);this.internalReplaceState=R.replaceState.bind(R)};
Xy.prototype.init=function(){this.initialized=!0};
Xy.prototype.pushState=function(R,A){this.initialized||this.init();this.internalPushState&&this.internalPushState(R,"",A)};
Xy.prototype.replaceState=function(R,A){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(R,"",A)};
Xy.prototype.getState=function(){return this.history&&this.history.state};var c1A=function(R){var A=function(){var Y=R.apply(this,arguments)||this;Y.boundHistoryPushState=!1;Y.boundHistoryReplaceState=!1;Y.debugInfo={};return Y};
_.H(A,R);A.prototype.init=function(){var Y=_.De("IFRAME");_.Lq(Y,_.Jr(lSE));Y.sandbox="allow-same-origin";Y.style.display="none";this.iframe=Y;document.body.appendChild(Y);this.bindHistoryStateFunctions();R.prototype.init.call(this)};
A.prototype.bindHistoryStateFunctions=function(){var Y=this,P=[],E;this.iframe&&((E=this.iframe.contentWindow)==null?0:E.history)&&(E=this.iframe.contentWindow.history)&&(P.push(E),Object.getPrototypeOf(E)&&P.push(Object.getPrototypeOf(E)));window.history&&P.push(window.history);E=window.history;Object.getPrototypeOf(E)&&P.push(Object.getPrototypeOf(E));P.push(xF8);E=function(c){for(var M=null,N=0;N<P.length;N++){var y=P[N][c];if(typeof y==="function"){M=y.bind(window.history);Y.debugInfo[c]=N;break}}return M};
if(!this.boundHistoryReplaceState){var z=E("replaceState");z&&(this.internalReplaceState=z,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(E=E("pushState"))&&(this.internalPushState=E,this.boundHistoryPushState=!0)};
return A}(Xy),Obz=function(){return c1A.call(this,window.history)||this};
_.H(Obz,c1A);Obz.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var SL=function(R){this.browserHistory=R;this.initialized=!1};
SL.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
SL.prototype.pushState=function(R,A){this.initialized||this.init();this.browserHistory.pushState(R,A)};
SL.prototype.replaceState=function(R,A){this.initialized||this.init();this.browserHistory.replaceState(R,A)};
SL.prototype.handlePopstate=function(R){return R.state};_.M1N=function(R,A,Y,P,E){this.endpoint=R;this.forward=A;this.historyEntry=Y;this.JSC$30136_savedComponentState=P;this.legacyBorder=E===void 0?!1:E};var sgA=function(R,A){this.rootData=R;this.scrollTop=A};var Q5=new _.cP("PAGE_REQUEST_TOKEN"),rDS=new _.cP("FETCH_PBJ_TOKEN");_.Iz=new _.cP("EPHEMERAL_STORE_TOKEN");_.Kp=function(R){this.data=Object.assign({},R);var A;(A=this.data.innertubeResponse)==null||delete A.frameworkUpdates};
_.Kp.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.iB)()};
_.dc=function(R){return Object.assign({},R.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var NnE=function(){this.maxSize=100;this.timeToDataCache=new Map};
NnE.prototype.get=function(R){var A=this.timeToDataCache.get(R);A&&(this.timeToDataCache.delete(R),this.timeToDataCache.set(R,A));if(A&&A.rootData&&(_.v("web_use_response_store_for_history_cache")||_.v("mweb_use_new_history_manager"))){var Y=_.is().resolve(_.Iz),P=V1H(A),E=!!P;if(P){if(P.content){var z=Wf(Y,P.content);E&&z?A.rootData.response=_.dc(z):E=!1}P.player&&(z=Wf(Y,P.player),E&&z?A.rootData.playerResponse=_.dc(z):E=!1);P.reelSequence&&(Y=Wf(Y,P.reelSequence),E&&Y?A.rootData.reelWatchSequenceResponse=
_.dc(Y):E=!1)}E||(this.timeToDataCache.delete(R),A=void 0)}return A};
NnE.prototype.set=function(R,A){if(A.rootData&&(_.v("web_use_response_store_for_history_cache")||_.v("mweb_use_new_history_manager"))){var Y=V1H(A),P=Object.assign({},A.rootData);Y&&(Y.content&&A.rootData.response&&(J1S(this,Y.content,A.rootData.response),P.response=null),Y.player&&A.rootData.playerResponse&&(J1S(this,Y.player,A.rootData.playerResponse),P.playerResponse=null),Y.reelSequence&&A.rootData.reelWatchSequenceResponse&&(J1S(this,Y.reelSequence,A.rootData.reelWatchSequenceResponse),P.reelWatchSequenceResponse=
null));A=new sgA(P,A.scrollTop)}this.timeToDataCache.has(R)?this.timeToDataCache.delete(R):this.timeToDataCache.size>=this.maxSize&&(Y=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(Y.value));this.maxSize!==0&&this.timeToDataCache.set(R,A)};
NnE.prototype.clear=function(){this.timeToDataCache.clear()};
var V1H=function(R){var A=_.is().resolve(_.z3(Q5)),Y;if((Y=R.rootData)==null?0:Y.endpoint)return A==null?void 0:itJ(A,R.rootData.endpoint);var P;_.pK(new _.XN("History snapshot response data does not contain endpoint",(P=R.rootData)==null?void 0:P.url));return null},J1S=function(R,A,Y){if(R.maxSize>0){var P;
(R=(P=Y.responseContext)==null?void 0:P.maxAgeSeconds)&&Number(R)>0&&(P=_.is().resolve(_.Iz),Y=MV(Y,R),P.put(A,new _.Kp(Y)))}};var y1b=function(R,A,Y){this.endpoint=A;this.JSC$30141_savedComponentState=Y===void 0?null:Y;this.entryTime=R};var K2P=1;var jL=function(R){var A=function(){var Y=R.apply(this,[].concat(_.py(_.Ge.apply(0,arguments))))||this;Y.historyEntryTime=0;Y.historySnapshotCache=Y.createHistoryCache();return Y};
_.H(A,R);A.prototype.createHistoryCache=function(){return new NnE};
A.prototype.saveAndReplace=function(Y,P,E){var z=window.location.href;var c=c===void 0?{}:c;var M=(M=this.browserHistory.getState())&&M.entryTime?M.entryTime:W26();Y=this.createNewHistoryEntry(Y,c,M);this.saveSnapshot(M,P,E);this.replaceState(Y,z||window.location.href)};
A.prototype.saveAndPush=function(Y,P,E,z,c){c=c===void 0?{}:c;this.saveSnapshot(this.historyEntryTime,E,z);E=this.historySnapshotCache;z=this.historyEntryTime;var M=E.timeToDataCache.keys();M=_.x(M);for(var N=M.next();!N.done;N=M.next())N=N.value,N>z&&E.timeToDataCache.delete(N);P=this.createNewHistoryEntry(P,c);this.pushState(P,Y)};
A.prototype.saveSnapshot=function(Y,P,E){this.historySnapshotCache.set(Y,new sgA(P,E))};
A.prototype.createNewHistoryEntry=function(Y,P,E){E=E===void 0?W26():E;return new y1b(E,Y,P)};
A.prototype.handlePopstate=function(Y){var P=R.prototype.handlePopstate.call(this,Y),E=null,z=null,c=!1,M=null;P&&P.entryTime&&(M=this.historySnapshotCache.get(P.entryTime)||null,c=P.entryTime>this.historyEntryTime,this.historyEntryTime=P.entryTime,E=P.endpoint,z=P.JSC$30141_savedComponentState);this.handleHistoryCacheLoad(new _.M1N(E,c,M,z),Y);return P};
A.prototype.pushState=function(Y,P){Number(Y==null?void 0:Y.entryTime)>=0&&(this.historyEntryTime=Y.entryTime);R.prototype.pushState.call(this,Y,P)};
A.prototype.replaceState=function(Y,P){Number(Y==null?void 0:Y.entryTime)>=0&&(this.historyEntryTime=Y.entryTime);R.prototype.replaceState.call(this,Y,P)};
A.prototype.handleHistoryCacheLoad=function(){};
return A}(SL),mFf=function(){var R=jL.call(this,new Obz)||this;
R.dispatchElement=null;R.entryIndex=0;return R};
_.H(mFf,jL);_.l=mFf.prototype;_.l.init=function(R){R=R===void 0?!0:R;jL.prototype.init.call(this);this.initialized||(R||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.l.handlePopstate=function(R){var A=null;R.state||(A="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return jL.prototype.handlePopstate.call(this,R);var Y=new CustomEvent("yt-history-pop",{cancelable:!0});_.OC(this.dispatchElement,"yt-history-pop",[Y,{errorMsg:A}]);_.MT(this.dispatchElement,"yt-close-all-popups-action");if(!Y.defaultPrevented){Y=_.is().resolve(_.YH);A=Y.getCurrentData();var P=Y.getCurrentPage();Y=0;P?(P=_.OC(this.dispatchElement,"yt-get-page-offset",
[P]),P.length>0&&(Y=P[0])):_.pK(new _.XN("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:A?A.page:"undefined"}));A&&(A.csn=_.F9());this.saveSnapshot(this.historyEntryTime,A,Y)}return jL.prototype.handlePopstate.call(this,R)};
_.l.handleHistoryCacheLoad=function(R,A){R.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.x(_.MT(this.dispatchElement,"yt-history-will-navigate",[A])).next().value||_.OC(this.dispatchElement,"yt-history-load",[A,R]))};
_.l.pushState=function(R,A){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var Y=new _.XN("history.pushState is not a function",this.getDebugString());_.bj(Y)}jL.prototype.pushState.call(this,R,A)};
_.l.replaceState=function(R,A){if(!this.browserHistory.boundHistoryReplaceState){var Y=new _.XN("history.replaceState is not a function",this.getDebugString());_.bj(Y)}jL.prototype.replaceState.call(this,R,A)};
_.l.saveAndPush=function(R,A,Y,P,E){E=E===void 0?{}:E;Y&&(Y.csn=_.F9());jL.prototype.saveAndPush.call(this,R,A,Y,P,E)};
_.l.getDebugString=function(){var R=[];this.initialized&&R.push("i");this.browserHistory.boundHistoryReplaceState&&R.push("bhr");this.browserHistory.boundHistoryPushState&&R.push("bhs");"replaceState"in this.browserHistory.debugInfo&&R.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&R.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&R.push("ei:"+String(this.entryIndex));return R.join(",")};
_.bg=function(R,A){R.init(!0);var Y=R.browserHistory.getState();R.replaceState(Y,OJ(A))};
mFf.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.fp=new _.cP("DESKTOP_HISTORY_MANAGER_TOKEN");var TnG=[10,20,30,40,50,60],pp=function(){this.currentPartitionIndex=0},QgG=function(R){UvZ({mainAppWeb:_.qi(),
survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},vRA=function(R){UvZ({mainAppWeb:_.qi(),
survivalSli:{partitionMinute:R,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},gRN=function(R){return R.currentPartitionIndex>=0&&R.currentPartitionIndex<TnG.length?TnG[R.currentPartitionIndex]:-1},nRD=function(R){return R.currentPartitionIndex>0&&R.currentPartitionIndex-1<TnG.length?TnG[R.currentPartitionIndex-1]:-1};
pp.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var R=nRD(this);R>0&&vRA(R);R=gRN(this);R>0&&QgG(R);HbS(this)}};
var HbS=function(R){var A=gRN(R);if(A>0){var Y=nRD(R);Y<0&&(Y=0);R.intervalId=_.fn.addJob(function(){var P=nRD(R);P>0&&vRA(P);P=gRN(R);P>0&&QgG(P);HbS(R)},3,(A-Y)*6E4);
R.currentPartitionIndex+=1}else R.currentPartitionIndex=-1};var r1f=function(){this.skipNextNavigation=!1},DF8=function(R,A,Y){if(!A)return!1;
if(R.skipNextNavigation)return R.skipNextNavigation=!1;if(_.n(Y,_.G$))return!1;var P,E,z;if((P=_.n(Y,_.Ds))==null?0:(E=P.browseEndpointContextSupportedConfigs)==null?0:(z=E.browseEndpointContextMainConfig)==null?0:z.skipConfirmation)return!1;var c;return((c=_.n(A.commandMetadata,_.Ti))==null?void 0:c.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
r1f.prototype.showConfirmationDialog=function(R,A){this.navigateParams=A;this.customConfirmationCommand?_.is().resolve(_.ls).resolveCommand(this.customConfirmationCommand):(A={openPopupAction:{popup:{confirmDialogRenderer:{title:_.dF(_.vk("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.dF(_.vk("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.dF(_.vk("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.dF(_.vk("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.ZA.getInstance().triggerAction("yt-open-popup-action",A,R))};
r1f.prototype.cancelPendingNavigation=function(){var R;((R=this.navigateParams)==null?void 0:R.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var UFb=function(){},XYb=function(R,A,Y,P,E,z,c){Y=Y===void 0?{}:Y;
c=c===void 0?{}:c;var M=_.C1.instance,N,y=(N=_.n(A,_.G$))==null?void 0:N.url;return y?hi8(M,y,Y,window.location.href,function(m,T){$FZ(R,m,T,!1,!0,Y,z,P)},function(){return!1}):aL(M,A,Y,window.location.href,$p(A),function(m,T){$FZ(R,m,T,!1,!0,Y,z,P)},E,c)},$FZ=function(R,A,Y,P,E,z,c,M){if(!R.JSC$14445_chunkHandler)if(Y.page==="learning_journey_watch"&&_.v("web_enable_canvas_on_learning_journey")){var N=!_.n(M,_.Ds);
E=E||P;if(N)if(E){if(_.v("kevlar_continue_playback_without_player_response")){var y;var m=(y=_.n(M,_.LO))==null?void 0:y.videoId}P={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:P,previousVideoId:m},tempData:z}}else P={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else P={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};R.JSC$14445_chunkHandler=new tkz(_.EJ,P,c,N,E)}else if(Y.page==="watch"||Y.page==="learning_journey_watch")if(E||P){if(_.v("kevlar_continue_playback_without_player_response")){var T;
N=(T=_.n(M,_.LO))==null?void 0:T.videoId}R.JSC$14445_chunkHandler=new eeA(_.EJ,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:P,previousVideoId:N},tempData:z},c)}else R.JSC$14445_chunkHandler=new Ggq(_.EJ);else Y.page==="shorts"&&E&&!P?R.JSC$14445_chunkHandler=new uj8(_.EJ,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:z},c):R.JSC$14445_chunkHandler=new Zmb(c);R.JSC$14445_chunkHandler.processChunk({endpoint:A,data:Y});return R.JSC$14445_chunkHandler.pk.promise},
S4A=function(R,A,Y,P,E){(Y=_.BCz(Y))&&$FZ(R,A,Y,!1,!0,P,void 0,E)};var ISZ=function(){this.pendingNavigationPromise=null};
_.l=ISZ.prototype;_.l.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.l.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.l.addEventListener=function(){throw Error("zh");};
_.l.dispatchEvent=function(){throw Error("zh");};
_.l.removeEventListener=function(){throw Error("zh");};var KY8=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Fy=function(){_.SS.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];WYb(this)};
_.H(Fy,_.SS);Fy.prototype.verifyUser=function(){var R=WYb(this),A=R.logout;if(!R.sessionChange)return!0;this.dispatchEvent("ytsessionchange");A&&this.dispatchEvent("ytuserinvalid");return!1};
var WYb=function(R){var A=KY8.map(function(E){var z;return(z=_.HU.get(E))!=null?z:""}),Y=A.some(function(E,z){return R.sessionCookies&&R.sessionCookies[z]!==""&&E===""}),P=A.some(function(E,z){return R.sessionCookies&&R.sessionCookies[z]!==E});
R.sessionCookies=A;return{logout:Y,sessionChange:P}};
Fy.prototype.clearTimeout=function(){this.scheduledJobId&&(_.fn.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var F23=new _.cP("POSTMESSAGE_TUNNEL_TOKEN");var bM8=["/parent_tools","/file_download","/artist_roster"],C38=[nqq,HuN,rk7,UbS,Db7,gqS,$bS,X3S];var jgb=new _.cP("APP_ROOT");var Bf=new _.cP("NAVIGATION_CONFIRMATION_SERVICE");var bbS="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /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(" "),fSz=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],az=function(R,A){this.pendingNavigationPromise=null;this.JSC$14463_clientRoot=R;this.historyManager=A;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 UFb;this.debugString=R.is;R={"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};_.t$(_.ZA.getInstance(),R,this.JSC$14463_clientRoot)},C1S,hhN,oRD,kcb,aSq;
_.H(az,ISZ);az.prototype.reload=function(){_.eI(window.location.href)};
var h68=function(R){R.currentEndpoint&&_.n(R.currentEndpoint,_.SI)?R.reload():R.currentEndpoint&&R.navigate(R.currentEndpoint,!0,void 0,{disableCache:!0})};
az.prototype.navigate=function(R,A,Y,P,E,z,c,M){A=A===void 0?!1:A;Y=Y===void 0?{}:Y;P=P===void 0?{}:P;var N=_.is().resolve(Bf),y;if(!c&&DF8(N,(y=this.currentEndpoint)!=null?y:void 0,R))return N.showConfirmationDialog(this.JSC$14463_clientRoot.parentElement,{endpoint:R,reload:A,params:Y,tempData:P,requestType:E,createScreenConfig:z}),!1;var m=_.EV();_.zD(m,"eocs")||m.parkOrScheduleJob(function(){m.processSignal("eocs")},10,"eor");
c=$p(R);N=P.autonav==="1";y=_.F9();Fy.instance||(Fy.instance=new Fy);var T=Fy.instance.verifyUser(),Q;if(_.v("enable_dark_theme_only_on_shorts")){var g=document.documentElement.hasAttribute("dark"),r=_.bk(!0)==="USER_INTERFACE_THEME_DARK";if(c==="shorts"){if(!g)if(_.v("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var I;_.eI((I=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:I.url,void 0,void 0,window.top)}}else{var b;_.eI(_.LQ((b=_.n(R==null?
void 0:R.commandMetadata,_.Ti))==null?void 0:b.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.v("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!g){var p;_.eI(_.LQ((p=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:p.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(r!==g){var h;_.eI(_.LQ((h=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:h.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(c==="watch"){if(pYS(_.is().resolve(_.jv),
R)&&(T||_.v("fix_miniplayer_navigation_killswitch")))return!1;_.v("block_all_player_prefetch_requests")||(Q=aBS(_.qh(_.hd),R,N))}else{var L,Z=(L=_.n(this.currentEndpoint,_.LO))==null?void 0:L.videoId;Z&&_.GA.getInstance().then(function(H3){H3&&H3.set("yt-miniplayer-shown-video-id",Z)})}Q&&(Y.frags=Q.missingFragments_.join(","));
I=null;var w;b=(w=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:w.ignoreNavigation;if(!b)if(_.v("kevlar_command_url")){var t;I=(t=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?void 0:t.url}else I=_.pTV(R,Y);if(I&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&I==this.lastNavigationUrl)return _.bE({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.lD(kh(),"CANCELLED")}I&&(this.lastNavigationUrl=I);muk();_.BD("IS_HOMEPAGE_COLD",
!1);_.BD("IS_RESULTS_PAGE_COLD",!1);_.BD("IS_WATCH_PAGE_COLD",!1);R.loggingUrls&&R.loggingUrls.forEach(function(H3){H3.baseUrl&&_.ZF(H3.baseUrl)});
_.GaP(R,z?z.layer:0)&&_.v("kevlar_flush_logs_on_away_navigation")&&_.j_();if(h03(R))return!1;QiZ(c,E);if(!I)return b||_.pK(new _.XN("Can't construct url for endpoint",R)),_.lD(kh(),"FAILURE"),!1;_.jDq();w=R&&_.n(R,_.Ds)&&_.n(R,_.Ds).browseId.startsWith("UC");Y=(t=_.v("enable_dark_theme_only_on_shorts")&&c==="shorts"?!1:_.fo()&&document.documentElement.hasAttribute("dark")!==_.jI())?{themeRefresh:1}:{};t&&!_.DO()&&_.bk()==="USER_INTERFACE_THEME_DARK"&&(Y.theme="dark");w=t||FYA(I)&&!w&&!_.v("kevlar_disable_url_allowlist");
T||(w=!0);if(w||_.a1("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var d;var Jk=(d=window.top)==null?void 0:d.location.href}catch(H3){var Nb;Jk=(Nb=H3)==null?void 0:Nb.message}_.pK(new _.XN("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:Jk}))}R=_.v("kevlar_redirect_on_window_killswitch")?window.top:window;uk(I);_.eI(_.LQ(I,Y),void 0,void 0,R);_.lD(kh(),"ABORTED");return!1}_.v("kevlar_early_popup_close")&&_.OC(this.JSC$14463_clientRoot,"yt-close-all-popups-action",
[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14445_chunkHandler=void 0;var Qk;Jk=$p((Qk=this.currentEndpoint)!=null?Qk:void 0);(Qk=c==="shorts"&&Jk==="shorts")||_.Qj3();_.o1(zgq)("nr",void 0);N&&_.bE({webInfo:{navigationReason:"an"}});R.clickTrackingParams&&(P.itct=R.clickTrackingParams,P.csn=y);Xl6(P);P.endpoint=JSON.stringify(R);_.v("enable_unknown_lact_fix_on_html5")&&(_.is().resolve(_.XW),P.lact=_.z$());_.BO.isEmpty(P)||_.Yo(I,P);!_.v("disable_miniplayer_expansion_log")&&this.isMiniplayerExpansion&&
(z=Object.assign({},{layer:0},z,{parentLayer:3}));this.pendingNavigationPromise=z=XYb(this.pageFetcher,R,P,this.currentEndpoint,this.JSC$14463_isNetworkPromiseStale.bind(this),z,M);z=z.then(this.handleNavigateSuccess.bind(this,z,R,Q,P),this.handleNavigateFail.bind(this,z,R));_.f_().navigationFinishPromise=z;A={endpoint:R,pageType:c,url:OJ(I),reload:!!A,noProgressBar:Qk};E&&(A.type=E);this.fireEvent("yt-navigate-start",A);Q&&S4A(this.pageFetcher,R,Q,P,this.currentEndpoint);return!0};
az.prototype.JSC$14463_isNetworkPromiseStale=function(R){return R!=this.pendingNavigationPromise};
var BnZ=function(R,A,Y,P,E){var z=$p(A);A={endpoint:A,pageType:z};E&&(A.errorMessage=E);_.pK(Y);A.navigationDoneMs=_.Fh("nd");A.navigationErrorReason=P;R.fireEvent("yt-navigate-error",A)};
az.prototype.handleNavigateFail=function(R,A,Y){var P=void 0;Y instanceof _.Fn&&(P=Y,biP(Y));if(this.JSC$14463_isNetworkPromiseStale(R))return _.j5(P);_.lD(kh(),"FAILURE");BnZ(this,A,Y,"101");return _.j5(Y)};
az.prototype.handleNavigateSuccess=function(R,A,Y,P,E){if(this.JSC$14463_isNetworkPromiseStale(R))return _.Vn();this.pendingNavigationPromise=null;if(!E)return A=new _.XN("Missing data in response for navigation endpoint",A),_.j5(A);if(E.reload)return window.location.reload(!0),_.Vn();Y&&(R={},_.BO.extend(R,_.BCz(Y),E),E=R);var z,c;Y=(z=E)==null?void 0:(c=z.timing)==null?void 0:c.responseStart;Y!=null&&_.Fh("srt",Y);_.Fh("pdc");var M,N;z=(M=E)==null?void 0:(N=M.timing)==null?void 0:N.info;z!=null&&
(M=_.o1(_.cXk)(z),_.bE(M));_.lD(kh(),"SUCCESS");aSq(this,A,E,1,P);return _.Vn()};
var FYA=function(R){var A=R;_.v("kevlar_no_redirect_to_classic_2_ks")||(A=(new _.dq(R)).getPath());if(A==="/"||A==="/red")return!1;var Y=!0;bbS.forEach(function(P){R.indexOf(P)===0&&(Y=!1)});
fSz.forEach(function(P){var E=P.url;_.v(P.expFlag)&&R.indexOf(E)===0&&(Y=!1)});
return Y};
az.prototype.publishPageData=function(R){this.fireEvent("yt-page-data-fetched",{pageData:R})};
C1S=function(R,A,Y,P,E,z){var c=null;A.page!=="watch"&&A.page!=="learning_journey_watch"||P?A.filler||_.OC(R.JSC$14463_clientRoot,"yt-stop-old-player",[A]):c=$FZ(R.pageFetcher,E,A,Y,!1,z,void 0,R.currentEndpoint);if(c)return c.then(R.publishPageData.bind(R,A));R.publishPageData(A);return _.Vn()};
hhN=function(R,A,Y){var P=null;if(!Y)return P=new _.XN("Empty data",R.debugString,A);var E=Y.response;if(!E)return P;var z={endpointType:$p(A)||"unknown"};E.responseContext?(E=E.responseContext.errors)&&(P=new _.XN("Errors in response context",R.debugString,A,E,z)):P=E.error||E.errorMetadata?new _.XN("Errors in response",R.debugString,A,E.error,E.errorMetadata,z):new _.XN("responseContext missing",R.debugString,A,Object.keys(E).sort().join(","),z);var c,M,N,y;if(R=Y==null?void 0:(c=Y.response)==null?
void 0:(M=c.responseContext)==null?void 0:(N=M.webResponseContextExtensionData)==null?void 0:(y=N.webResponseContextDebugData)==null?void 0:y.debugErrorMessages)for(c=0;c<R.length;c++);return P};
oRD=function(R){var A,Y,P,E;return R==null?void 0:(A=R.response)==null?void 0:(Y=A.responseContext)==null?void 0:(P=Y.errors)==null?void 0:(E=P.error)==null?void 0:E["0"]};
kcb=function(R,A){var Y;if(Y=A.url&&!A.url.startsWith("/clip"))Y=A.url,Y=!_.v("webfe_parse_debug_param_in_resolveurl_service")&&R.searchDebugUrlMatcher.test(Y)||ooJ(Y)?!0:!1;if(Y)ooJ(A.url)&&_.qI(window.location.href).themeRefresh?(A=_.Pk(A.url,"themeRefresh"),_.bg(R.historyManager,A)):A.url&&!S1k(A.url)&&_.bg(R.historyManager,A.url);else if(A.endpoint){var P,E,z;(Y=(P=A.endpoint)==null?void 0:(E=P.commandMetadata)==null?void 0:(z=E.webCommandMetadata)==null?void 0:z.url)&&!S1k(Y)&&_.bg(R.historyManager,
Y);Y&&A.url&&Y!=A.url&&!A.url.match("playnext=1")&&new _.XN("Response url mismatch in response data",R.debugString,Y,A.url)}};
_.GcA=function(R,A,Y,P,E,z,c,M){z=z===void 0?!1:z;var N=_.is().resolve(Bf),y;if(!M&&DF8(N,(y=R.currentEndpoint)!=null?y:void 0,A))return N.showConfirmationDialog(R.JSC$14463_clientRoot.parentElement,{endpoint:A,data:Y,navigationType:P,tempData:E,isMiniplayer:z,isForwardHistoryNavigation:c==null?void 0:c.forward}),_.Vn();R.pageFetcher.JSC$14445_chunkHandler=void 0;return aSq(R,A,Y,P,E,z)};
aSq=function(R,A,Y,P,E,z){z=z===void 0?!1:z;R.isMiniplayerExpansion=z;var c=P===2;R.currentEndpoint=A;R.numNavigations++;R.numNavigations&&(Ji3.navigationCount=R.numNavigations);_.BD("NUM_NAV",R.numNavigations);var M=hhN(R,A,Y);if(M)return BnZ(R,A,M,"102",oRD(Y)),_.j5(M);var N,y,m,T;M=Y.rootVe||(Y==null?void 0:(N=Y.response)==null?void 0:(y=N.responseContext)==null?void 0:(m=y.webResponseContextExtensionData)==null?void 0:(T=m.ytConfigData)==null?void 0:T.rootVisualElementType);!c&&Y&&kcb(R,Y);var Q,
g;N=Y==null?void 0:(Q=Y.response)==null?void 0:(g=Q.responseContext)==null?void 0:g.maxAgeSeconds;if(!c&&!isNaN(N)){var r;_.v("kevlar_use_response_ttl_to_invalidate_cache")?r=(0,_.iB)()+1E3*N:_.v("kevlar_always_invalidate_cache")&&(r=0);isNaN(r)||(Y.expirationTime=r)}_.qh(_.hd).prefetchCache_.clear();c||Y.page!=="watch"||Y.type!=="reduced"&&P!==1?P=C1S(R,Y,c,!!z,A,E):(R.publishPageData(Y),P=_.Vn());E=P.then(function(){var I=$p(A);I={endpoint:A,pageType:I,fromHistory:c,response:Y};I.navigationDoneMs=
_.Fh("nd");R.fireEvent("yt-navigate-finish",I)});
Y.csn&&M&&Y.clientSideGrafts&&P.then(R.attachClientSideGrafts.bind(R,Y,_.pO()));return E};
_.l=az.prototype;_.l.attachClientSideGrafts=function(R,A){R.clientSideGrafts&&A&&R.clientSideGrafts.forEach(function(Y){if(A&&Y){var P=_.S5(Y);_.v("combine_ve_grafts")?_.rU().graftServerVe(Y,A):_.ZM(R.csn,A,P)}})};
_.l.handleSignalActionHistoryBack=function(){window.history.back()};
_.l.handleSignalActionCloseWindow=function(){window.close()};
_.l.handleSignalActionReloadPage=function(){this.reload()};
_.l.handleSignalActionSoftReloadPage=function(){h68(this)};
_.l.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.l.fireEvent=function(R,A){R=new CustomEvent(R,{bubbles:!0,cancelable:!1,composed:!0,detail:A});this.dispatchEvent(R)};
_.l.addEventListener=function(R,A){this.JSC$14463_clientRoot.addEventListener(R,A)};
_.l.dispatchEvent=function(R){return this.JSC$14463_clientRoot.dispatchEvent(R)};
_.l.removeEventListener=function(R,A){this.JSC$14463_clientRoot.removeEventListener(R,A)};
az[xk]=[jgb,_.fp];_.Gd3=new rR("browse","h8y2qb");_.Z4J=new rR("search","JzFVk");_.te3=new rR("shorts","xwEKAe");_.wgk=new rR("watchFixie","nmfa2d");_.uuS=new rR("watchFlexy","CF909");_.eDS=new rR("watchGrid","Tm0L3c");_.qsP=new rR("watchLearningJourney","L3n37");var Zbb;var t1H=function(){return _.K.apply(this,arguments)||this};
_.H(t1H,_.K);_.Yh.Object.defineProperties(t1H,{template:{configurable:!0,enumerable:!0,get:function(){if(Zbb===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);Zbb=R}R=Zbb;return R}}});
_.C([_.U(t8b.YtPlayerBehavior),_.k("design:type",Object)],t1H.prototype,"ytPlayerBehavior",void 0);_.C([_.F({is:"ytd-player"})],t1H);var wYS;var u$f;var ehG;var Cp=function(){var R=_.K.apply(this,arguments)||this;R.forceModernIconButton=!1;R.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return R};
_.H(Cp,_.K);Cp.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]]"}}}}}};
Cp.prototype.handleAccountLinkingStateChangedCommand=function(R){if(R=_.n(R,MYq)){var A,Y=(A=this.data)==null?void 0:A.providerKey;A=R.providerKey;Y&&A&&Y.id===A.id&&Y.subject===A.subject&&(R=R.linked,R!==void 0&&(this.set("data.linked",R),this.notifyPath("data.linked"),_.v("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(R)))}};
Cp.prototype.setPlayerAccountLinkState=function(R){var A=new UBN;$BE(A,rSb(new HUE,R));var Y=_.EJ();Y&&Y.getPlayerPromise().then(function(P){P.setAccountLinkState(_.WF(A.JSC$12156_serializeBinary(),4));P.updateAccountLinkingConfig(R)})};
Cp.prototype.handleShowAccountLinkDialog=function(){var R=this.get("button.buttonRenderer.command");R&&_.yn([R],this.hostElement)};
_.Yh.Object.defineProperties(Cp.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}}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Cp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Cp.prototype,"ytRendererBehavior",void 0);_.C([_.U([_.fH.YtActionHandlerBehavior]),_.k("design:type",Object)],Cp.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Cp.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Cp.prototype,"overrides",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Cp.prototype,"forceModernIconButton",void 0);_.C([_.S({value:"bottom"}),_.k("design:type",String)],Cp.prototype,"buttonTooltipPosition",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Cp.prototype,"forceIconButton",void 0);_.C([_.S(),_.k("design:type",Boolean)],Cp.prototype,"disableTextTransform",void 0);
_.C([_.X("data","data.linked","data.isWarning"),_.k("design:type",Object),_.k("design:paramtypes",[])],Cp.prototype,"button",null);_.C([_.F({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],Cp);
_.B(Cp,"ytd-account-link-button-renderer",function(){if(ehG!==void 0)return ehG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ehG=R},{mode:1});var q4f;var LYZ=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],hC=function(){return _.K.apply(this,arguments)||this};
_.H(hC,_.K);hC.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
hC.prototype.updateButtonActiveState=function(){var R=this,A=!!LYZ.find(function(Y){return R.currentState===Y});
this.button&&(this.button.isPressed=A)};
_.Yh.Object.defineProperties(hC.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.playlistLoopStateEntity)==null?void 0:R.state)||((A=this.data)==null?void 0:A.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var R=void 0,A;if(this.currentState&&((A=this.data)==null?0:A.states)){A=_.x(this.data.states);for(var Y=A.next();!Y.done;Y=A.next()){Y=_.n(Y.value,_.Iw8);var P=void 0;if(((P=Y)==null?void 0:P.state)===this.currentState){R=Y;break}}}return R}}});
hC.prototype.updateButtonActiveState=hC.prototype.updateButtonActiveState;_.C([_.U(_.Pf),_.k("design:type",Object)],hC.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.L2k}),_.k("design:type",Object)],hC.prototype,"playlistLoopStateEntity",void 0);_.C([_.S(),_.k("design:type",Object)],hC.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],hC.prototype,"forceIconOnly",void 0);_.C([_.nG("ytd-button-renderer"),_.k("design:type",_.gI)],hC.prototype,"button",void 0);
_.C([_.X("data","playlistLoopStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],hC.prototype,"currentState",null);_.C([_.vZ("currentButtonStateRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hC.prototype,"updateButtonActiveState",null);_.C([_.X("currentState"),_.k("design:type",Object),_.k("design:paramtypes",[])],hC.prototype,"currentButtonStateRenderer",null);
_.C([_.F({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],hC);
_.B(hC,"ytd-playlist-loop-button-renderer",function(){if(q4f!==void 0)return q4f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return q4f=R},
{mode:1});var dF7;var RBN=_.vk("DOWNLOAD",{},"Download"),AJE=_.vk("DOWNLOADING",{},"Downloading"),YyG=_.vk("DOWNLOADED",{},"Downloaded"),PZb=_.vk("RETRY",{},"Retry"),oz=function(){var R=_.K.apply(this,arguments)||this;R.forceIconButton=!1;R.forceIconOnly=!1;R.overrides=!1;R.buttonTooltipPosition=!1;R.styleActionButton=!1;R.disableTextTransform=!1;R.downloadProgress=0;R.isDownloadComplete=!1;R.isHidden=!0;R.transferState="TRANSFER_STATE_UNKNOWN";R.isVideoDeletedByUser=!1;R.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return R};
_.H(oz,_.K);_.l=oz.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var R;(R=this.data)!=null&&R.text||(R=_.h0(_.Yp().getState(),this.videoId),this.updateButtonState(R))};
_.l.computeVideoId=function(R){return R};
_.l.showHideButton=function(){this.updateButtonVisibility()};
_.l.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};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(R){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==AJE||!_.UQ(R))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(R){case "TRANSFER_STATE_UNKNOWN":R=RBN;var A="OFFLINE_DOWNLOAD";var Y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":R=PZb;A="OFFLINE_DOWNLOAD";Y="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":R=YyG;A="OFFLINE_PIN";Y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":R=
AJE;A="OFFLINE_DOWNLOADING_ZERO";Y="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":R=PZb;A="OFFLINE_DOWNLOAD";Y="ACTION_RETRY";break;default:R=RBN,A="OFFLINE_DOWNLOAD",Y="ACTION_ADD"}this.isVideoDeletedByUser&&(R=RBN,A="OFFLINE_DOWNLOAD",Y="ACTION_ADD");var P=Object.assign({},this.data);P.text=_.dF(R);P.tooltip=R;P.icon={iconType:A};P.size="SIZE_DEFAULT";P.style="STYLE_DEFAULT";_.n(P.command,_.TI)&&(_.n(P.command,_.TI).action=Y);this.set("data",P)}};
_.l.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var R="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?R="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?R="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?R="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?R="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?R="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(R="OFFLINE_PIN",this.isDownloadComplete=!0);var A;R!==((A=this.data.icon)==null?void 0:A.iconType)&&(A=Object.assign({},this.data),A.text=_.dF(AJE),A.tooltip=AJE,A.icon={iconType:R},_.n(A.command,_.TI)&&(_.n(A.command,_.TI).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",A))}};
oz.prototype.updateProgress=oz.prototype.updateProgress;oz.prototype.onTransferStateChanged=oz.prototype.onTransferStateChanged;oz.prototype.showHideButton=oz.prototype.showHideButton;oz.prototype.dataChanged=oz.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],oz.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],oz.prototype,"forceIconButton",void 0);
_.C([_.S(),_.k("design:type",Object)],oz.prototype,"forceIconOnly",void 0);_.C([_.S(),_.k("design:type",Object)],oz.prototype,"overrides",void 0);_.C([_.S(),_.k("design:type",Object)],oz.prototype,"buttonTooltipPosition",void 0);_.C([_.S(),_.k("design:type",Object)],oz.prototype,"styleActionButton",void 0);_.C([_.S(),_.k("design:type",Object)],oz.prototype,"disableTextTransform",void 0);
_.C([_.S({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.k("design:type",String)],oz.prototype,"videoId",void 0);_.C([_.S(),_.k("design:type",Object)],oz.prototype,"data",void 0);_.C([_.S({selector:kb,selectorArgs:["videoId"]}),_.k("design:type",Object)],oz.prototype,"downloadProgress",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],oz.prototype,"isDownloadComplete",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],oz.prototype,"isHidden",void 0);_.C([_.S({selector:_.h0,selectorArgs:["videoId"]}),_.k("design:type",String)],oz.prototype,"transferState",void 0);_.C([_.S({selector:_.v7P,selectorArgs:["videoId"]}),_.k("design:type",Object)],oz.prototype,"isVideoDeletedByUser",void 0);_.C([_.S({selector:Vwk,selectorArgs:["videoId"]}),_.k("design:type",Object)],oz.prototype,"offlineabilityState",void 0);
_.C([_.S({value:!0}),_.k("design:type",Boolean)],oz.prototype,"showTooltips",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],oz.prototype,"sendCommandWhenDisabled",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],oz.prototype,"disabled",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oz.prototype,"dataChanged",null);
_.C([_.Ul("offlineabilityState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oz.prototype,"showHideButton",null);_.C([_.Ul("transferState","isVideoDeletedByUser"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oz.prototype,"onTransferStateChanged",null);_.C([_.Ul("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oz.prototype,"updateProgress",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],oz);
_.B(oz,"ytd-download-button-renderer",function(){if(dF7!==void 0)return dF7;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return dF7=R},{mode:2});var EiS;var zBD,ihA=function(){if(zBD!==void 0)return zBD;var R=document.createElement("template");_.D(R,'\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 zBD=R};var lUf=_.v("web_button_rework")&&_.CQ("BUTTON_REWORK")||_.v("web_button_rework_with_live"),xC8=_.cU("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,kX=function(){var R=_.K.apply(this,arguments)||this;R.isPressed=!1;R.forceIconButton=!1;R.forceIconOnly=!1;R.forceModernIconButton=!1;R.alignByText=!1;R.isShorts=!1;R.animatedText=!1;R.shouldAnimate=!1;R.JSC$14500_browserSupportsAnimation=_.v("web_supports_animations_api");R.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};R.onTap=function(){var A;if((A=R.data)==null||!A.defaultNavigationEndpoint){var Y;A=!((Y=R.data)==null?0:Y.isToggled);var P;if((P=R.data)==null||!P.preventAutoToggle){R.shouldAnimate=!1;R.disableTextUpdateJobId&&_.fn.cancelJob(R.disableTextUpdateJobId);R.disableTextUpdateJobId=_.fn.addLowPriorityJob(function(){R.disableTextUpdateJobId=void 0},xC8);
var E;R.set("data.isToggled",!((E=R.data)==null?0:E.isToggled));Y=R.getInnertubeIcon();P={toggled:A,actions:{}};Y&&(P.actions[Y.toLowerCase()]=A);_.xo(R.hostElement,"yt-toggle-button",P)}}};
return R};
_.H(kX,_.K);_.l=kX.prototype;_.l.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.fn.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.toggle=function(R){var A;this.set("data.isToggled",R!==void 0?R:!((A=this.data)==null?0:A.isToggled))};
_.l.handleUpdateToggleButtonStateCommand=function(R){if(this.data){R=_.n(R,gP8);var A,Y,P,E=(A=this.data)==null?void 0:(Y=A.toggleButtonSupportedData)==null?void 0:(P=Y.toggleButtonIdData)==null?void 0:P.id;E&&R&&E===(R==null?void 0:R.buttonId)&&this.set("data.isToggled",R.toggled)}};
_.l.handleUpdateToggleButtonTextAction=function(R){if(this.data){R=_.n(R,bHE);var A,Y,P,E=(A=this.data)==null?void 0:(Y=A.toggleButtonSupportedData)==null?void 0:(P=Y.toggleButtonIdData)==null?void 0:P.id;E&&R&&E===(R==null?void 0:R.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=R.defaultNumericalValue,this.set("data.defaultText",R.defaultText),this.set("data.toggledText",R.toggledText),this.shouldAnimate=!1)}};
_.l.getInnertubeIcon=function(){var R=this.data;if(R){var A,Y,P=((A=R.defaultIcon)==null?0:A.iconType)?(Y=R.defaultIcon)==null?void 0:Y.iconType:null,E,z;A=((E=R.toggledIcon)==null?0:E.iconType)?(z=R.toggledIcon)==null?void 0:z.iconType:P;return R.isToggled?A:P}};
_.l.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Yh.Object.defineProperties(kX.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R={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$14500_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var A=R.renderer;var Y=R.element;var P=R.toggled;var E=R.onTapCallback;var z=R.commandClientArgs;var c=R.overrides;var M=R.forceIcon;var N=R.forceModernIconButton;var y=R.forceDisabled;var m=R.useAnimatedText;var T=R.animatedTextProps;R=Y4k(A,P);M=!A.defaultIcon||!M&&A.defaultText?A.defaultIcon?"leading":void 0:N?"icon-only":"icon-only-40";M==="icon-only-40"&&(R.type="text");var Q;N=Object;var g=N.assign,r;a:switch((r=
A.style)==null?void 0:r.styleType){case "STYLE_COMPACT_GRAY":r={size:"S"};break a;default:r={size:"M"}}var I=!!P;var b=(b=P&&A.toggledText||A.defaultText)?_.FS(b):void 0;m?(m=_.R4(P&&A.toggledText||A.defaultText))&&T&&!isNaN(Number(T.numberValue))?(T.numberText=m,P&&(T.numberValue+=1),m=T):m=void 0:m=void 0;var p,h,L,Z;var w=(T=((h=P?A.toggledAccessibilityData||((w=A.toggledText)==null?void 0:w.accessibility):A.accessibilityData||((p=A.defaultText)==null?void 0:p.accessibility))==null?void 0:(L=h.accessibilityData)==
null?void 0:L.label)||((Z=A.accessibility)==null?void 0:Z.label))?T:_.R4(P&&A.toggledText||A.defaultText);y=y===void 0?A.isDisabled:y;Y=A1I(A,P,E,Y,z);P=Rhk(A,P);P!=null&&P.length?(P=_.k9({innertubeCommand:or8(P),forceNewState:!0}),P=Gj(P)?P:void 0):P=void 0;A=g.call(N,{},R,r,{iconPosition:M},c,{focused:!1,toggled:I,toggleable:!0,formattedButtonText:b,animatedTextProps:m,accessibilityLabel:w,disabled:y,onTap:Y,aTagConfig:P},Ma6((Q=A.colorData)==null?void 0:Q.basicColorPaletteData));A.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(A.type="filled");return A}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var R=this.getInnertubeIcon();if(R)return _.m0(R)}}});
kX.prototype.resetAnimation=kX.prototype.resetAnimation;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],kX.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kX.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],kX.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],kX.prototype,"isPressed",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"forceIconButton",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"forceIconOnly",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"forceModernIconButton",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"alignByText",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"overrides",void 0);
_.C([_.S(),_.k("design:type",Boolean)],kX.prototype,"disabled",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"isShorts",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"buttonTooltipPosition",void 0);_.C([_.S(),_.k("design:type",Object)],kX.prototype,"animatedText",void 0);_.C([_.S(),_.k("design:type",String)],kX.prototype,"textNumberValue",void 0);_.C([_.S({computed:"computeTooltip(data, data.isToggled)"}),_.k("design:type",Object)],kX.prototype,"tooltip",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kX.prototype,"resetAnimation",null);_.C([_.X("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.k("design:type",Object),_.k("design:paramtypes",[])],kX.prototype,"computedButtonShape",null);_.C([_.X("data.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],kX.prototype,"computedIcon",null);
_.C([_.F({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],kX);lUf&&_.B(kX,"ytd-toggle-button-renderer",ihA,{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var cJS=_.E5(function(R){function A(y){var m;return _.O(function(T){if(T.nextAddress==1)return(m=!ERl(y,M())||!M().enabled)?T.jumpTo(2):T.yield(c1k(),3);T.nextAddress!=2&&(m=T.yieldResult);if(m)return T.return();Y();setTimeout(function(){c(!1)},1500);
_.XH(T)})}
function Y(){setTimeout(function(){c(!0);var y;(y=P.lottieEl)==null||y.goToAndPlay(0)},150)}
var P=_.yJ(),E=_.x(_.yy(!1,void 0,"UfUosc")),z=E.next().value,c=E.next().value,M=_.Y9(R.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.jO(function(){var y,m;((y=R.settings)==null?void 0:(m=y.call(R))==null?void 0:m.uniqueId)==="this is not intended behavior"&&_.pK(new _.XN("Smartimation Settings is undefined"))});
_.jq(function(){M().experimentEnabled&&(M().enabled?zhk(A):(c(!1),ibP(A)),_.bm(function(){ibP(A)}))},"IHhVmc");
_.jq(function(){M().timings.join("");M().experimentEnabled&&(lSk(M()),_.bm(function(){xFJ(M())}))},"fsfhOe");
var N=_.gE(function(){var y=P,m=M().uniqueId+"-border",T,Q;var g="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((Q=(T=_.is().resolve(_.z3(_.dU)))==null?void 0:T())!=null&&Q?"dark":"light")+"_v2.json";return{animationRef:y,animationConfig:{name:m,autoplay:!1,loop:!1,path:g}}},void 0,"UWvUGe");
E={};return _.V("yt-smartimation",{class:_.To(R.className,"smartimation",(E["smartimation--experiment-enabled"]=function(){return M().experimentEnabled},E["smartimation--active-border"]=z,E["smartimation--enable-masking"]=ObI(),E))},_.V(_.J,{cond:function(){return M().experimentEnabled},
then:function(){return _.V("div",{class:"smartimation__border"},_.V(_.pH,{className:"smartimation__border-gradient",data:N,animationName:function(){return N().animationConfig.name}}))}}),_.V("div",{class:"smartimation__content"},R.children))},"G");
cJS.idomCompat=!0;_.Ow(cJS,"yt-smartimation",{props:{className:_.VY,settings:_.VY}});var GF=function(){var R=_.K.apply(this,arguments)||this;R.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};R.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};R.shouldEnableSmartimation=!1;return R};
_.H(GF,_.K);GF.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
GF.prototype.onDataChanged=function(){var R,A;this.shouldEnableSmartimation=(((R=this.data)==null?void 0:(A=R.timedAnimationData)==null?void 0:A.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
GF.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var R=_.n(this.data.likeButton,_.As),A=_.n(this.data.dislikeButton,_.As);return!!((R==null?0:R.isToggled)||(A==null?0:A.isToggled))};
GF.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]]"}}}}}};
_.Yh.Object.defineProperties(GF.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=((R=this.data)==null?void 0:(A=R.timedAnimationData)==null?void 0:A.animationTiming)||[];return{uniqueId:"like-dislike",timings:Y,enabled:this.shouldEnableSmartimation,experimentEnabled:Y.length>0}}}});
GF.prototype.onDataChanged=GF.prototype.onDataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],GF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],GF.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],GF.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],GF.prototype,"likeButtonOverride",void 0);_.C([_.S(),_.k("design:type",Object)],GF.prototype,"dislikeButtonOverride",void 0);
_.C([_.X("shouldEnableSmartimation"),_.k("design:type",Object),_.k("design:paramtypes",[])],GF.prototype,"smartimationSettings",null);_.C([_.vZ("data"),_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GF.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],GF);
_.B(GF,"ytd-segmented-like-dislike-button-renderer",function(){if(EiS!==void 0)return EiS;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return EiS=R},{mode:1});var Ohf;var MZz;(MZz=document.body)==null||MZz.setAttribute("rounded-container","");var sIq={};sIq.YtToggleButtonBehavior=[_.fH.YtActionHandlerBehavior,ku.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 R=this.data.isToggled;if(!this.isModal_(R)){if(!this.data.preventAutoToggle){this.toggle();var A={toggled:this.data.isToggled,actions:{}};A.actions[this.buttonIcon]=this.data.isToggled;_.xo(this.hostElement,"yt-toggle-button",A)}A=this.data.defaultServiceEndpoint||null;var Y=this.data.toggledServiceEndpoint||null;if(A&&Y||A&&this.data.preventAutoToggle)R=R?Y:A,A=this.disableCommandHandlerOverride,_.v("killswitch_toggle_button_behavior_resolve_command")||A?_.sC(this.hostElement,
[R]):_.vc(R,this.hostElement),_.xo(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:R})}},
stateChanged_:function(){var R=this.data;if(R){var A=R.isToggled;this._setEndpoint(this.computeEndpoint_(R));this._setServiceEndpoint(this.computeServiceEndpoint_(R));this._setButtonIcon(this.computeButtonIcon_(R,A));this._setButtonText(this.computeButtonText_(R,A));this._setButtonAccessibility(this.computeAccessibility_(R,A));this._setButtonTooltip(this.computeTooltip_(R,A));this._setButtonClass(this.computeButtonClass_(R,A));this._setIconPositionType(this.computeIconPositionType_(R));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=A):this.elements_.button.setAttribute("aria-pressed",A));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=A)}},
shouldSetIconActiveState_:function(){return _.v("kevlar_system_icons")},
toggle:function(R){this.set("data.isToggled",R!==void 0?R:!this.data.isToggled);_.v("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(R){if(R){var A,Y;return!!((A=this.data)==null?0:(Y=A.toggledServiceEndpoint)==null?0:Y.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(R){return R&&R.defaultNavigationEndpoint||null},
computeButtonIcon_:function(R,A){var Y=R&&R.defaultIcon?_.m0(R.defaultIcon.iconType):null;R=R&&R.toggledIcon?_.m0(R.toggledIcon.iconType):Y;return A?R:Y},
handleUpdateToggleButtonStateCommand_:function(R){R=R.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==R.buttonId&&this.toggle(R.toggled)},
computeButtonText_:function(R,A){return R?A&&R.toggledText||R.defaultText||null:null},
computeAccessibility_:function(R,A){return R?(A?this.get("toggledAccessibilityData.accessibilityData",R):this.get("accessibilityData.accessibilityData",R))||R.accessibility||null:null},
computeTooltip_:function(R,A){return R?A&&R.toggledTooltip||R.defaultTooltip||null:null},
computeButtonClass_:function(R,A){if(!R)return"";var Y="",P=R.toggledStyle||R.style;if(A=A?P:R.style){A.styleType&&(A=A.styleType);try{Y+=A.toLowerCase().replace(/_/g,"-")+" "}catch(E){_.F8(E,A,typeof A),_.pK(E)}}if(R=R.size){R.sizeType&&(R=R.sizeType);try{Y+=R.toLowerCase().replace(/_/g,"-")+" "}catch(E){_.F8(E,R,typeof R),_.pK(E)}}return Y.trim()},
computeIconPositionType_:function(R){return R&&R.iconPosition||null},
computeServiceEndpoint_:function(R){var A=R&&R.serviceEndpoint,Y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return A?A:Y&&R.command?R.command:null},
handleUpdateToggleButtonTextAction_:function(R){R=R.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==R.buttonId&&(this.set("data.defaultText",R.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",R.toggledText),this.notifyPath("data.toggledText"))}}];_.bh("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var Np7=_.v("web_button_rework")&&_.CQ("BUTTON_REWORK")||_.v("web_button_rework_with_live"),ZP=function(){var R=_.K.apply(this,arguments)||this;R.systemIcons=_.v("kevlar_system_icons");R.roundedContainer=!0;return R};
_.H(ZP,_.K);ZP.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
ZP.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var R=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var A={toggled:!!this.data.isToggled,actions:{}};A.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var Y,P;A.actions.playlistId=(Y=this.data.defaultServiceEndpoint)==null?void 0:(P=Y.playlistEditEndpoint)==null?void 0:P.playlistId;_.xo(this.hostElement,"yt-toggle-button",A)}(R=R?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(R)}};
ZP.prototype.onYtNavigate=function(R){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);A&&(R.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(A))};
_.Yh.Object.defineProperties(ZP,{template:{configurable:!0,enumerable:!0,get:function(){if(Ohf===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);Ohf=R}R=Ohf;return R}}});
ZP.prototype.onYtNavigate=ZP.prototype.onYtNavigate;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ZP.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZP.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],ZP.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(sIq.YtToggleButtonBehavior),_.k("design:type",Object)],ZP.prototype,"ytToggleButtonBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],ZP.prototype,"data",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],ZP.prototype,"showTooltips",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ZP.prototype,"systemIcons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ZP.prototype,"roundedContainer",void 0);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ZP.prototype,"onYtNavigate",null);
_.C([_.F({is:"ytd-toggle-button-renderer",disableElementRegistration:Np7})],ZP);var VZE;_.tC=new _.cP("PANEL_CONTROLLER_TOKEN");_.wy=new _.cP("SHEET_CONTROLLER_TOKEN");_.ug=new _.cP("DIALOG_CONTROLLER_TOKEN");VZE=new _.cP("DIALOG_CONTAINER_TOKEN");var Qgb=_.vk("DOWNLOAD",{},"Download"),vR6=_.vk("DOWNLOADING",{},"Downloading"),gRS=_.vk("DOWNLOADED",{},"Downloaded"),nRu=_.vk("RETRY",{},"Retry");var JJz=_.E5(function(R){var A=$Fq,Y=function(){return""},P=Hbl(R.data),E=r18(R.data),z=DFJ(R.data),c=UFV(R.data);
A=function(){var M=R.data(),N=mF8(M,P(),E(),z(),c()),y=!!M.videoId,m=N.text;return{title:y?m:void 0,tooltip:y?void 0:m,accessibilityText:m,onTap:N.onTap,iconName:N.iconType,style:M.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:N.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:M.buttonSize}};
Y={};Y=_.To("ytDownloadButtonViewModelHost",(Y.ytDownloadButtonViewModelIsHidden=function(){var M=R.data(),N=c();return M.playlistId||N()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||N()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},Y));
return _.V("download-button-view-model",{class:Y},_.V(_.Is,{data:A}))},"H");
JJz.idomCompat=!0;var FYk=new _.cP("SUBMIT_API_SERVICE_TOKEN");var jgV,bb3,Bnq={submitAction:"SUBMIT_ACTION_SUBMISSION"};var RBS=new _.cP("RENDERER_LOGGER_TOKEN");var ehb=new _.cP("RENDERER_STAMPER_OPTIONS_TOKEN");var aSk;_.g0=new o97;aSk=new Map;var q48="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),dFk=["notificationTextRenderer","notificationMultiActionRenderer"],
LYq="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),u$8=C13(function(R){return _.pX(R==null?void 0:R.targetId)}).useUpdatableData;var wY3=0;_.ni.debugName="EjJbCe";var yJS=_.E5(function(R){var A=R.data;R=R.className;_.WD(function(){A().formId||_.bj(Error("Bh"))});
var Y=_.WYV(function(){return A().formId},function(){return A().beforeSubmitCommand},function(){return A().afterSubmitCommand}),P=Y.submitForm,E=Y.isValid,z=Y.isSubmitting,c=function(){return{state:A().isDisabled||!E()||z()?"disabled":"active"}};
return _.V("yt-submit-button-view-model",{class:_.To("ytSubmitButtonViewModelHost",R)},_.V(_.ni,{data:function(){return A().button}},{buttonViewModel:function(M){return _.V(_.Is,{data:M.data,
buttonOverrides:c,onClick:P})}}))},"I");var TpN=_.E5(function(R){var A=R.backgroundLottieRef;var Y=R.foregroundLottieRef;var P=R.children;var E=R.wrapperClass;var z=R.disableAnimation;R=function(){return(_.v("web_animated_actions")||_.v("web_animated_actions_v2"))&&!(z==null?0:z())};
return _.V("yt-animated-action",{class:_.To("ytAnimatedActionHost",E)},_.V("div",{class:"ytAnimatedActionContentWithBackground"},_.V(_.J,{cond:R,then:function(){return _.V(mCG,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:A==null?void 0:A(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(AJk()?"dark":"light")+"_v5.json"}}}})}}),P),_.V(_.J,{cond:R,
then:function(){return _.V(mCG,{lottiePlayerProps:function(){return{animationRef:Y==null?void 0:Y(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(AJk()?"dark":"light")+"_v4.json"}}}})}}))},"J");
TpN.idomCompat=!0;var mCG=_.E5(function(R){var A=R.wrapperClass;var Y=R.lottieClass;var P=R.lottiePlayerProps;return _.V("div",{class:_.To("ytAnimatedActionLottie",A),"aria-hidden":"true"},_.V(_.pH,{className:Y,data:P,animationName:function(){return P().animationConfig.name}}))},"K");var Yyb={isOpen:!1};var Ei3={isAllowed:!1};var ihk={errorMessage:"",title:"",privacy:"",isDisabled:!0};var xCJ={isOpen:!1};var Oh8={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var QIS={response:void 0};var sIk=function(R,A){R=R===void 0?QIS:R;switch(A.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},R,{response:A.payload});default:return R}};var vif={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Npk=function(R,A){R=R===void 0?vif:R;switch(A.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},R,{nextDisabled:A.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},R,{nextCommand:A.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},R,{footerSubmissionData:A.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},R,{isImpersonationValid:A.payload});default:return R}};var giD={reportFormData:void 0,reportDetailsFormData:void 0};var VZk=function(R,A){R=R===void 0?giD:R;switch(A.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},R,{reportFormData:A.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},R,{reportDetailsFormData:A.payload});default:return R}};var niD=void 0;_.v("mweb_enable_redux_store_on_demand")||(niD=new Af(JJI()));var eL=_.v("enable_web_delhi_icons");var HhA=_.E5(function(R){R=_.Pc(R,{themeOverride:void 0,animationRef:{}});var A=R.animatedIconType,Y=R.active,P=R.themeOverride,E=R.animationRef;R=R.staticIconFn;var z=_.x(_.yy(void 0,void 0,"l48agc")),c=z.next().value,M=z.next().value,N=function(){a:{var b=A();var p=P==null?void 0:P();var h;p=(p==null?void 0:p.useDarkTheme)||((h=_.is().resolve(_.z3(_.dU)))==null?void 0:h());switch(b){case "LIKE":niD||(niD=new Af(JJI()));b=(b=w5l(niD.getState()))&&b.animationLightUrl&&b.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:p?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:p?b.animationDarkUrl:b.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(b){p=b;break a}p="animated_like_icon_"+(p?"dark":"light")+"_"+(eL?"v5":"v4");p={lottiePlayerProps:{animationConfig:{name:p,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+p+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(eL?" animated-like-icon-delhi":"")}}},totalFrames:eL?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":p={lottiePlayerProps:{animationConfig:{name:p?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(p?"dark":"light")+(eL?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(eL?" animated-subscribe-icon-delhi":"")}}},totalFrames:eL?120:79,lazyLoad:!1};break a}p=
void 0}return p},y=function(){var b,p;
return(p=(b=N())==null?void 0:b.lottiePlayerProps.animationConfig.name)!=null?p:""},m=function(){if(N()){var b=N().lottiePlayerProps.animationConfig.path;
return KY.get(b)||c()}};
z=_.x(_.yy(!1,void 0,"sDrGId"));var T=z.next().value;z=z.next().value;var Q=mCb(z),g=function(){var b=N(),p,h,L;return(L=b==null?void 0:(p=b.lottiePlayerProps.animationConfig)==null?void 0:(h=p.rendererSettings)==null?void 0:h.className)!=null?L:""},r=void 0,I=void 0;
_.jq(function(){var b=N(),p=y(),h=m(),L=T(),Z=Y();if(b&&(I!==p&&(I=p,r=Z,p=E(),Q.animationConfig=b.lottiePlayerProps.animationConfig,Q.animationRef=p,h&&(Q.animationConfig.animationData=h,Q.animationConfig.path=void 0),p=b.lottiePlayerProps.animationConfig.path,!KY.get(p)&&b.lazyLoad&&p&&yJl(p,M)),!(L||b.lazyLoad&&!h))){if(h=!E().lottieEl)Z?(L=b.totalFrames,Q.animationConfig.initialSegment=[L-1,L]):Q.animationConfig.initialSegment=void 0;if(r!==Z&&!h)if(h=E(),Z){var w;(w=h.lottieEl)==null||w.playSegments([0,
b.totalFrames],!0)}else{var t;(t=h.lottieEl)==null||t.playSegments([0,1],!0)}r=Z}},"RQVZ1d");
return _.V("animated-icon",{class:"ytAnimatedIconHost"},_.V(_.J,{cond:function(){var b,p;return!((b=N())==null||!b.lottiePlayerProps.animationConfig.path||((p=N())==null?0:p.lazyLoad)&&!m()||T())},
then:function(){return _.V(_.pH,{data:Q,animationName:y,className:g,animationRef:E})},
else:R}))},"L");_.qu=_.E5(function(R){var A=_.LK("yt-subscribe-button-view-model"),Y=_.LK("div"),P=_.LK("div"),E=_.yJ(),z=_.yJ(),c=_.yJ(),M=_.vT(ZMk,function(){return R.data().stateEntityStoreKey}),N=_.vT(t8V,function(){var d8,mS;
return(mS=(d8=R.data().notificationStateEntityStoreKeys)==null?void 0:d8.subsNotificationStateKey)!=null?mS:""}),y=function(){return!R.data().enableSubscribeButtonPostClickAnimation},m=_.x(_.yy(0,void 0,"YtsSKb")),T=m.next().value,Q=m.next().value;
m=_.x(_.yy(0,void 0,"V6JxRe"));var g=m.next().value,r=m.next().value;m=_.x(_.yy(!1,void 0,"JUCSZ"));var I=m.next().value,b=m.next().value;m=_.x(_.yy(!1,void 0,"oV6jwf"));var p=m.next().value,h=m.next().value;m=_.x(_.yy(!1,void 0,"hK1Whe"));var L=m.next().value,Z=m.next().value,w;m=_.x(_.yy(!1,void 0,"Asaolf"));var t=m.next().value,d=m.next().value,Jk=function(){h(!0);_.$H(_.fn,function(){h(!1)},1500)};
_.jq(function(){var d8=p();J6(function(){d8&&!y()&&M()&&$Ck(E,z,c)})},"Qq6Hsf");
_.jq(function(){var d8=M();J6(function(){if(!y()&&d8){var mS;((mS=R.animateWidth)==null?0:mS.call(R))&&UCu(A.value,!!d8.subscribed,T(),g());var V7,KD;((V7=w)==null?0:V7.subscribed)||!d8.subscribed||d8.key!==((KD=w)==null?void 0:KD.key)||Jk();w=d8}})},"hog8te");
m=_.gE(function(){var d8,mS,V7,KD=R.data(),UW=!((d8=M())==null||!d8.subscribed);d8=!((mS=R.isOverlay)==null||!mS.call(R));mS=I()?A:void 0;var eH=(V7=N())==null?void 0:V7.state;V7=t();DCV(KD,eH);return vi8({model:KD,subscribed:UW,isOverlay:d8,element:mS,notificationState:eH,disableTextEllipsis:!0,focused:V7})},void 0,"hc1PRd");
var Nb=function(){var d8;if(!y()&&((d8=R.animateWidth)==null?0:d8.call(R))&&(Y==null?0:Y.value)&&(P==null?0:P.value)&&!L()){d8=M();var mS=_.x((d8==null?0:d8.subscribed)?[Y,P]:[P,Y]),V7=mS.next().value;mS=mS.next().value;V7=Math.ceil(V7.value.getBoundingClientRect().width);mS=Math.ceil(mS.value.getBoundingClientRect().width);Q(V7);r(mS);UCu(A.value,!(d8==null||!d8.subscribed),V7,mS);Z(!0)}},Qk=_.Qi(function(d8){Nb();
var mS=M();mS&&(d8.detail.endpoint.subscribeEndpoint||d8.detail.endpoint.unsubscribeEndpoint)&&niu(A.value,!mS.subscribed,mS)}),H3=function(){var d8=_.is().resolve(_.z3(_.rt));
d8&&d(d8.isKeyBoardInUse())},nu=function(){d(!1)};
_.qj("yt-player-subscribe",function(d8){var mS=M();mS&&d8===R.data().channelId&&niu(A.value,!0,mS)});
_.qj("yt-player-unsubscribe",function(d8){var mS=M();mS&&d8===R.data().channelId&&niu(A.value,!1,mS)});
_.qj("yt-update-subscribe-button-action",function(d8){d8=_.n(d8,zu8);var mS=M();mS&&d8&&d8.channelId===R.data().channelId&&niu(A.value,!!d8.subscribed,mS)});
_.jO(function(){A.value&&(A.value.addEventListener("focusin",H3),A.value.addEventListener("focusout",nu));var d8=_.Ua(_.fn,function(){Nb()});
b(!0);_.bm(function(){_.fn.cancelJob(d8);A.value&&(A.value.removeEventListener("focusin",H3),A.value.removeEventListener("focusout",nu))})});
var hk=function(){var d8,mS,V7;if(V7=!((d8=M())==null||!d8.subscribed))d8=!!R.data().disableNotificationBell,V7=(mS=N())==null?void 0:mS.state,V7=!d8&&!!V7;return V7},FV=function(){var d8;
return!((d8=M())==null?0:d8.subscribed)},i8=function(){var d8,mS;
if(mS=FV()){mS=!!R.data().disableNotificationBell;var V7=(d8=N())==null?void 0:d8.state;mS=!mS&&!!V7}return mS},fD={},NG={};
return _.V("yt-subscribe-button-view-model",{class:_.To(R.className,"ytSubscribeButtonViewModelHost",(fD.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var d8,mS;return!((d8=M())==null||!d8.subscribed)&&((mS=R.animateWidth)==null?void 0:mS.call(R))&&p()},fD.ytSubscribeButtonViewModelHostHidden=function(){var d8;
return!((d8=M())==null?0:d8.subscribed)&&R.data().hideWhenUnsubscribed},fD)),
el:A,"on:yt-service-request-sent":Qk},_.V(TpN,{backgroundLottieRef:E,foregroundLottieRef:z,wrapperClass:_.To("ytSubscribeButtonViewModelAnimatedActionWrapper",(NG.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var d8;return((d8=R.animateWidth)==null?void 0:d8.call(R))&&p()},NG.ytSubscribeButtonViewModelStaticWidth=function(){var d8;
return!((d8=R.animateWidth)==null?0:d8.call(R))},NG)),
disableAnimation:y},_.V("div",{el:Y,class:"ytSubscribeButtonViewModelContainer"},_.V(_.SV,{data:m,icon:function(){return _.V(_.J,{cond:hk,then:function(){var d8=function(){var mS;return giu((mS=N())==null?void 0:mS.state)};
return _.V(_.J,{cond:function(){return y()||d8()!=="NOTIFICATIONS_NONE"},
then:function(){return _.V(_.H1,{icon:d8})},
else:function(){return _.V(HhA,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:c})}})}})},
secondaryIconName:function(){return hk()?"EXPAND":void 0}}))),_.V("div",{el:P,
class:"ytSubscribeButtonViewModelInvisible"},_.V(_.J,{cond:function(){var d8;return((d8=R.animateWidth)==null?void 0:d8.call(R))&&!y()&&!L()},
then:function(){return _.V(_.SV,{data:_.gE(function(){var d8;return vi8({model:R.data(),subscribed:FV(),isOverlay:!((d8=R.isOverlay)==null||!d8.call(R)),element:A,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var d8;return i8()?giu((d8=N())==null?void 0:d8.state):void 0},
secondaryIconName:function(){return i8()?"EXPAND":void 0}})}})))},"M");
_.qu.idomCompat=!0;var rJN=_.E5(function(R){var A=R.data;var Y=_.vT(ZMk,function(){return A().subscriptionStateEntityKey});
return _.V(_.J,{cond:function(){var P=A(),E=Y();return!P.hideWhenUnsubscribed||(E==null?0:E.subscribed)?_.n(A().button,_.E7):void 0},
then:function(P){return _.V("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.V(_.Is,{data:P,buttonOverrides:function(){return{toggled:!0}}}))}})},"N");
rJN.idomCompat=!0;var DCb,Lp;DCb=_.E5(function(R){return _.V(_.ni,{data:function(){return R.actionRow().actions}},{buttonViewModel:function(A){var Y=A.data;
return _.V(Lp,{isRow:R.isRow,isIconOnlyButton:function(){return XJk(Y())},
useIntrinsicWidth:R.useIntrinsicWidth},_.V(_.Is,{data:Y}))},
subscribeButtonViewModel:function(A){return _.V(Lp,{isRow:R.isRow},_.V(_.qu,{data:A.data,isOverlay:!1,animateWidth:function(){return!R.isRow()}}))},
downloadButtonViewModel:function(A){var Y=A.data;return _.V(Lp,{isRow:R.isRow,isIconOnlyButton:function(){return!!Y().playlistId}},_.V(JJz,{data:Y}))},
submitButtonViewModel:function(A){var Y=A.data;return _.V(Lp,{isRow:R.isRow,isIconOnlyButton:function(){var P=Y();return XJk(_.n(P==null?void 0:P.button,_.E7))}},_.V(yJS,{data:Y}))},
toggleButtonViewModel:function(A){var Y=A.data;return _.V(Lp,{isRow:R.isRow,isIconOnlyButton:function(){var P=Y();return XJk(_.n(P.isToggled?P.toggledButtonViewModel:P.defaultButtonViewModel,_.E7))}},_.V(_.uF,{data:Y}))},
subscribePlusButtonViewModel:function(A){return _.V(Lp,{isRow:R.isRow},_.V(rJN,{data:A.data}))}})},"O");
Lp=_.E5(function(R){var A={};return _.V("div",{class:_.To("yt-flexible-actions-view-model-wiz__action",(A["yt-flexible-actions-view-model-wiz__action--row-action"]=R.isRow,A["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=R.useIntrinsicWidth,A["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,A["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=R.isIconOnlyButton,A))},R.children)},"P");
_.dy=_.E5(function(R){var A=function(){var P;return((P=R.layout)==null?void 0:P.call(R))===1},Y={};
return _.V("yt-flexible-actions-view-model",{class:_.To("yt-flexible-actions-view-model-wiz",R.className,(Y["yt-flexible-actions-view-model-wiz--inline"]=function(){return!A()},Y["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return R.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},Y))},_.V(_.Ue,{each:function(){return R.data().actionsRows||[]}},function(P){return _.V(_.J,{cond:A,
then:function(){return _.V("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.V(DCb,{actionRow:P,isRow:A,useIntrinsicWidth:function(){return!!R.data().respectActionIntrinsicWidth}}))},
else:function(){return _.V(DCb,{actionRow:P,isRow:A})}})}))},"Q");_.Ow(_.dy,"yt-flexible-actions-view-model",{props:{data:_.VY,layout:_.VY,justifyContentOverride:_.VY,className:_.VY}});_.R_=_.E5(function(R){var A=_.vT(CY,function(){var E;return(E=R.data().dislikeEntityKey)!=null?E:""}),Y=_.gE(function(){var E=A();
return E?E.likeStatus==="DISLIKE":_.n(R.data().toggleButtonViewModel,_.iS).isToggled},void 0,"fNr9he"),P=_.gE(function(){return Object.assign({},_.n(R.data().toggleButtonViewModel,_.iS),{isToggled:Y()})},void 0,"AezoCc");
return _.V("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.V(_.uF,{data:P,buttonShapeOverrides:R.buttonShapeOverrideables,onToggle:function(E){var z=A();z&&E!==(z.likeStatus==="DISLIKE")&&z.key&&_.A7(_.I9("likeStatusEntity",z.key,{likeStatus:E?"DISLIKE":"INDIFFERENT",hadUserInteraction:E}))}}))},"R");
_.R_.idomCompat=!0;_.Ai=_.E5(function(R){var A=_.v("web_supports_animations_api"),Y=ih(function(Q){var g=y();if(!Q){var r,I;return{numberText:(I=g==null?void 0:(r=g.likeCountIfIndifferent)==null?void 0:r.content)!=null?I:"",numberValue:Number(g==null?void 0:g.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var b;r=(g==null?void 0:(b=g.likeCountIfIndifferent)==null?void 0:b.content)!==Q.numberText;if(M()||!r)return Q;var p;return{numberText:(g==null?void 0:(p=g.likeCountIfIndifferent)==null?void 0:p.content)||
"",numberValue:Number(g==null?void 0:g.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!g}}),P=ih(function(Q){var g=y();
if(!Q){var r,I;return{numberText:(I=g==null?void 0:(r=g.likeCountIfLiked)==null?void 0:r.content)!=null?I:"",numberValue:Number(g==null?void 0:g.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var b;r=(g==null?void 0:(b=g.likeCountIfIndifferent)==null?void 0:b.content)!==Q.numberText;if(M()||!r)return Q;var p;return{numberText:(g==null?void 0:(p=g.likeCountIfLiked)==null?void 0:p.content)||"",numberValue:Number(g==null?void 0:g.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!g}}),E=_.x(_.yy(void 0,
void 0,"xldjge")),z=E.next().value,c=E.next().value,M=z,N=_.vT(CY,function(){var Q,g;
return(g=(Q=R.data())==null?void 0:Q.likeStatusEntityKey)!=null?g:""}),y=_.vT(HVJ,function(){var Q,g;
return((Q=R.likeCountEntity)==null?void 0:(g=Q.call(R))==null?void 0:g.key)||""}),m=_.gE(function(){var Q;
return((Q=N())==null?void 0:Q.likeStatus)==="LIKE"},void 0,"B3od5e"),T=function(){var Q;
return A&&!((Q=R.likeCountEntity)==null||!Q.call(R))};
return _.V("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.V(_.uF,{data:function(){var Q=Object,g=Q.assign,r;var I=_.n((r=R.data())==null?void 0:r.toggleButtonViewModel,_.iS);return g.call(Q,{},I||{},{isToggled:m()})},
buttonShapeOverrides:R.buttonShapeOverrideables,animatedTextPropsDefault:function(){return T()?Y():void 0},
animatedTextPropsToggled:function(){return T()?P():void 0},
onToggle:function(Q){Sy8(Q,N(),M(),c)},
style:function(){var Q;return((Q=R.disableIconAnimation)==null?0:Q.call(R))?void 0:{animateIcon:"true"}}}))},"S");
_.Ai.idomCompat=!0;var UCD=_.E5(function(R){var A=function(){return _.n(R.data().likeButtonViewModel,_.uo)},Y=function(){var E;
return((E=A())==null?void 0:E.likeStatusEntityKey)||""},P=_.gE(function(){var E,z;
var c=(z=_.vT(CY,Y)())!=null?z:(E=A())==null?void 0:E.likeStatusEntity;E=R.data();var M;E=(E==null?void 0:(M=E.timedAnimationData)==null?void 0:M.animationTiming)||[];return{uniqueId:"like-dislike",timings:E,enabled:(c==null?void 0:c.likeStatus)==="INDIFFERENT"&&E.length>0,experimentEnabled:E.length>0}},void 0,"wEl1fe");
return _.V("segmented-like-dislike-button-view-model",{class:_.To("ytSegmentedLikeDislikeButtonViewModelHost",R.className),"button-renderer":!0},_.V(cJS,{settings:P},_.V("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.V(_.J,{cond:A,then:function(E){return _.V(_.Ai,{data:E,likeCountEntity:function(){return R.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.V(_.J,{cond:function(){return _.n(R.data().dislikeButtonViewModel,_.w3)},
then:function(E){return _.V(_.R_,{data:E,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"T");
UCD.idomCompat=!0;_.Ow(UCD,"segmented-like-dislike-button-view-model",{props:{data:_.VY,className:_.VY}});var $CE=_.E5(function(R){var A=R.data;var Y=R.className;var P=R.setMinWidth;var E=R.forceIconOnly;var z=_.LK("account-link-button-view-model"),c=_.vT(_.IU6,function(){var Q;return(Q=A().accountLinkStatusEntityKey)!=null?Q:""}),M=_.vT(_.IU6,function(){var Q;
return(Q=A().accountLinkStatusSecondaryEntityKey)!=null?Q:""}),N=function(){if(!_.v("web_account_link_secondary_killswitch")){var Q,g;
return((Q=c())==null?void 0:Q.linked)||((g=M())==null?void 0:g.linked)}var r;return(r=c())==null?void 0:r.linked};
_.jq(function(){var Q=c();if(Q){var g=$BE(new UBN,rSb(new HUE,!!Q.linked));_.VJ().then(function(r){r&&(r.setAccountLinkState(_.WF(g.JSC$12156_serializeBinary(),4)),r.updateAccountLinkingConfig(!!Q.linked))})}},"IvZF7");
var y=function(){return _.n(A().toggleButtonViewModel,_.iS)};
_.qj("yt-signal-action-show-account-link-dialog",function(){if(y()){var Q=N()?y().toggledButtonViewModel:y().defaultButtonViewModel;Q=_.n(Q,_.E7);var g;if((g=c())==null?0:g.isWarning){g=_.n(A().warningButtonViewModel,_.E7);if(!g){_.tv(Error("Ch"));return}Q=g}var r;(g=_.h7((r=Q)==null?void 0:r.onTap))&&_.yn([g],z.value)}else _.tv(Error("Dh"))});
var m=function(){var Q=y();return Object.assign({},Q,{isToggled:N()})},T=function(){return(E==null?0:E())?{iconPosition:"icon-only"}:{}};
return _.V("account-link-button-view-model",{class:_.To("ytwAccountLinkButtonViewModelHost",Y,function(){return(P==null?0:P())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:z,"button-renderer":!0},_.V("div",null,_.V(_.J,{cond:function(){var Q;if((Q=c())==null?0:Q.isWarning)return(Q=_.n(A().warningButtonViewModel,_.E7))||_.tv(Error("Ch")),Q},
then:function(Q){return _.V(_.Is,{data:Q,buttonOverrides:T})},
else:function(){return _.V(_.uF,{data:m,buttonShapeOverrides:T})}})))},"U");_.Ow($CE,"account-link-button-view-model",{props:{data:_.VY,className:_.xL,setMinWidth:_.xL,forceIconOnly:_.xL}});_.bh("menuRenderer","menuRenderer","ytd-menu-renderer");
var XJE={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"}},
Syf=_.v("web_fix_missing_action_buttons")?100:200,Ym=function(){var R=_.K.apply(this,arguments)||this;R.safeArea=!_.v("kevlar_flex_menu_safe_area_killswitch");R.tonalOverride=!1;R.threeDotSize="M";R.isOverlay=!1;R.useOverlayDark=!1;R.topLevelIconsOnly=!1;R.JSC$14631_lastWidth=0;R.maybeUpdateFlexibleMenu=function(){_.v("web_fix_missing_action_buttons")?requestAnimationFrame(R.maybeUpdateFlexibleMenuImpl):R.maybeUpdateFlexibleMenuImpl()};
R.maybeUpdateFlexibleMenuImpl=function(){var A;if((A=R.data)!=null&&A.flexibleItems){R.maybeFlushDebouncer();A=R.hostElement.clientWidth;var Y=A>R.JSC$14631_lastWidth,P,E=((P=R.topLevelButtonsContainer)==null?void 0:P.scrollHeight)||0,z;P=((z=R.flexibleItemButtonsContainer)==null?void 0:z.scrollHeight)||0;z=R.hostElement.scrollHeight>Math.max(E,P)+8;Y?(R.resetFlexibleItems(),R.JSC$14631_lastWidth=R.hostElement.clientWidth,R.maybeUpdateFlexibleMenu()):z&&(R.shrinkFlexibleMenu(),R.JSC$14631_lastWidth=
A)}};
R.computeThreeDotButtonShape=function(){if(R.tonalOverride)return Object.assign({},{onTap:function(){R.onOverflowTap()},
iconPosition:"icon-only",style:R.isOverlay?R.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:R.threeDotSize,state:"active",accessibilityLabel:R.computeAccessibilityLabel(R.data)},R.threeDotButtonOverride)};
R.onOverflowTap=function(){if(R.data.fetchMenuCommand)_.is().resolve(_.ls).resolveCommand(R.data.fetchMenuCommand,{form:{element:R.hostElement}});else if(R.data.isDisabled&&R.data.disabledCommand)_.vc(R.data.disabledCommand,R.hostElement);else{var A=R.createMenuRendererVe(),Y={items:R.items};R.data.menuPopupAccessibility&&(Y.menuPopupAccessibility=R.data.menuPopupAccessibility);R.data.footer&&(Y.footer=R.data.footer);A={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:Y},veData:A}};
_.is().resolve(_.wy).openSheet({openPopupActionCommand:A},R.hostElement)}};
return R};
_.H(Ym,_.K);_.l=Ym.prototype;_.l.updateButtonOverrides=function(){if(!_.v("menu_renderer_label_update_upkillswitch")){var R=_.Mo(this.hostElement).querySelector("yt-button-view-model");R&&(R.buttonOverrides=this.buttonOverrides)}};
_.l.computeHasItems=function(){var R;return((R=this.topLevelButtonData)==null?void 0:R.length)||this.hasFlexibleItems};
_.l.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.l.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.ya(this.hostElement,{"--ytd-menu-renderer-button-color":_.G9(this.data.iconColor)}))};
_.l.onStamperFinished=function(){this.JSC$14631_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.l.setupFlexibleMenu=function(){var R=this,A;(A=this.data)!=null&&A.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.kH(this.maybeUpdateFlexibleMenu,Syf,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){R.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))};
_.l.maybeFlushDebouncer=function(){if(_.v("web_replace_formatted_with_attributed_string")){var R;(R=this.topLevelButtons)==null||R.forEach(function(Y){var P;(Y=(P=Y.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&Glu(Y)});
var A;(A=this.flexibleItemButtons)==null||A.forEach(function(Y){var P;(Y=(P=Y.getElementsByTagName("yt-attributed-string"))==null?void 0:P[0])&&Glu(Y)})}};
_.l.resetFlexibleItems=function(){var R;if((R=this.data)!=null&&R.flexibleItems){_.v("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var A;this.flexAsTopLevelButtons=(A=this.data.flexibleItems)==null?void 0:A.map(function(Y){return _.n(Y,_.PSZ).topLevelButton});
_.v("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.l.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.l.shrinkFlexibleMenu=function(){var R;(R=this.flexAsTopLevelButtons)!=null&&R.length&&(this.flexAsTopLevelButtons=[].concat(_.py(this.flexAsTopLevelButtons.slice(0,-1))))};
_.l.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:XJE,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:XJE,events:!0}}};
_.l.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.l.detached=function(){this.icon="MORE_VERT"};
_.l.computeTopLevelButtonData=function(R){if(!R)return[];var A;R=(A=R==null?void 0:R.topLevelButtons)!=null?A:[];return _.BO.unsafeClone([].concat(_.py(R)))};
_.l.computeItems=function(R,A){if(!R)return[];var Y=[];if(A){var P=(R.flexibleItems||[]).map(function(c){return _.n(c,_.PSZ)});
P=_.x(P);for(var E=P.next();!E.done;E=P.next())E=E.value,A.includes(E.topLevelButton)||(E=E.menuItem)&&Y.push(E)}var z;R=(z=R==null?void 0:R.items)!=null?z:[];return[].concat(_.py(Y),_.py(R))};
_.l.computeMenuActive=function(R,A){return R||A};
_.l.onPopupOpened=function(){this.overlayOpen=!0;_.xo(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.l.onPopupClosed=function(){this.overlayOpen=!1;_.xo(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.onPopupCanceled=function(){this.overlayOpen=!1;_.xo(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.l.computeAccessibilityLabel=function(R){return this.get("accessibility.accessibilityData.label",R)};
_.l.isHidden=function(R,A){return this.tonalOverride||!R?!0:R.fetchMenuCommand||R.isDisabled&&R.disabledCommand?!1:!(A==null?0:A.length)};
_.l.isModernOverflowHidden=function(R,A){return this.tonalOverride&&R?R.fetchMenuCommand?!1:!(A==null?0:A.length):!0};
_.l.createMenuRendererVe=function(){var R=this.data.trackingParams,A=_.F9(),Y=_.pO();return R&&A&&Y?(R=_.S5(R),Y=_.NV(7591),_.v("combine_ve_grafts")?_.Xq(_.rU(),Y,R):_.ZM(A,R,Y),Y):null};
_.Yh.Object.defineProperties(Ym.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.flexAsTopLevelButtons)==null||!R.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
Ym.prototype.onPopupCanceled=Ym.prototype.onPopupCanceled;Ym.prototype.onPopupClosed=Ym.prototype.onPopupClosed;Ym.prototype.onPopupOpened=Ym.prototype.onPopupOpened;Ym.prototype.tonalOverrideChanged=Ym.prototype.tonalOverrideChanged;Ym.prototype.resetFlexibleItems=Ym.prototype.resetFlexibleItems;Ym.prototype.setupFlexibleMenu=Ym.prototype.setupFlexibleMenu;Ym.prototype.iconButtonColorChanged=Ym.prototype.iconButtonColorChanged;Ym.prototype.updateButtonOverrides=Ym.prototype.updateButtonOverrides;
_.C([_.U(_.Qg),_.k("design:type",Object)],Ym.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ym.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ym.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("#button-shape"),_.k("design:type",HTMLElement)],Ym.prototype,"buttonShape",void 0);_.C([_.nG("#button"),_.k("design:type",Object)],Ym.prototype,"button",void 0);
_.C([_.S(),_.k("design:type",Object)],Ym.prototype,"data",void 0);_.C([_.S({computed:"computeTopLevelButtonData(data)"}),_.k("design:type",Array)],Ym.prototype,"topLevelButtonData",void 0);_.C([_.S(),_.k("design:type",Array)],Ym.prototype,"flexAsTopLevelButtons",void 0);_.C([_.S({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.k("design:type",Array)],Ym.prototype,"items",void 0);_.C([_.S({value:"MORE_VERT"}),_.k("design:type",String)],Ym.prototype,"icon",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ym.prototype,"safeArea",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.k("design:type",Boolean)],Ym.prototype,"menuActive",void 0);_.C([_.S(),_.k("design:type",Boolean)],Ym.prototype,"menuFocused",void 0);_.C([_.S({value:"bottom"}),_.k("design:type",String)],Ym.prototype,"buttonTooltipPosition",void 0);_.C([_.S(),_.k("design:type",Boolean)],Ym.prototype,"overlayOpen",void 0);
_.C([_.S({value:!0}),_.k("design:type",Boolean)],Ym.prototype,"forceIconButton",void 0);_.C([_.S(),_.k("design:type",Boolean)],Ym.prototype,"styleActionButton",void 0);_.C([_.S(),_.k("design:type",Boolean)],Ym.prototype,"disableTextTransformOnButtons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ym.prototype,"tonalOverride",void 0);_.C([_.S(),_.k("design:type",Object)],Ym.prototype,"threeDotSize",void 0);
_.C([_.S(),_.k("design:type",Object)],Ym.prototype,"threeDotButtonOverride",void 0);_.C([_.S(),_.k("design:type",Object)],Ym.prototype,"isOverlay",void 0);_.C([_.S(),_.k("design:type",Object)],Ym.prototype,"useOverlayDark",void 0);_.C([_.S({computed:"computeButtonOverride(tonalOverride)"}),_.k("design:type",Object)],Ym.prototype,"buttonOverride",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ym.prototype,"hasCustomIconColor",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("flexAsTopLevelButtons"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ym.prototype,"hasFlexibleItems",null);_.C([_.S({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.k("design:type",Boolean)],Ym.prototype,"hasItems",void 0);_.C([_.S(),_.k("design:type",Object)],Ym.prototype,"topLevelIconsOnly",void 0);
_.C([_.vZ("topLevelIconsOnly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"updateButtonOverrides",null);_.C([_.X("topLevelIconsOnly"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ym.prototype,"buttonOverrides",null);_.C([_.nG("#top-level-buttons-computed"),_.k("design:type",HTMLElement)],Ym.prototype,"topLevelButtonsContainer",void 0);_.C([_.HZ(".top-level-buttons > *"),_.k("design:type",Array)],Ym.prototype,"topLevelButtons",void 0);
_.C([_.nG("#flexible-item-buttons"),_.k("design:type",HTMLElement)],Ym.prototype,"flexibleItemButtonsContainer",void 0);_.C([_.HZ("#flexible-item-buttons > *"),_.k("design:type",Array)],Ym.prototype,"flexibleItemButtons",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"iconButtonColorChanged",null);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"setupFlexibleMenu",null);_.C([_.Ul("topLevelIconsOnly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"resetFlexibleItems",null);_.C([_.vZ("tonalOverride"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"tonalOverrideChanged",null);
_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"onPopupOpened",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"onPopupClosed",null);_.C([_.Qa("yt-popup-canceled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ym.prototype,"onPopupCanceled",null);
_.B(Ym,"ytd-menu-renderer",function(){if(u$f===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);u$f=R}R=u$f;return R},{mode:2});var IUA;var KHS;_.Pl=_.E5(function(R){var A=R.data;var Y=function(){if(A().icon)a:{var P={iconName:A().icon};for(var E=_.is().resolve(_.Tj),z=_.x([12,24]),c=z.next();!c.done;c=z.next()){var M=c.value;c=Object.assign({},P,{iconStyle:"youtube_fill",iconSize:M});M=Object.assign({},P,{iconStyle:"youtube_outline",iconSize:M});if(E.resolveIcon(c)){P=c;break a}if(E.resolveIcon(M)){P=M;break a}}P=void 0}else P=void 0;return P};
R={};return _.V("badge-shape",{class:_.To("badge-shape-wiz",function(){return pJS(A().type)},(R["badge-shape-wiz--overlay"]=function(){return A().isOverlay},R["badge-shape-wiz--ads-include-dot"]=function(){return A().adsIncludeDot},R["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(A().type){case 17:case 18:case 19:var P=!0;
break a;default:P=!1}return P},R["badge-shape-wiz--status-badge"]=function(){a:switch(A().type){case 12:case 13:case 14:case 15:case 16:var P=!0;
break a;default:P=!1}return P},R["badge-shape-wiz--no-text"]=function(){return!A().text},R["badge-shape-wiz--modern"]=function(){return A().modern||_.v("web_modern_badge_shape")},R)),
style:_.nY({"background-color":function(){var P;return(P=A().customColors)==null?void 0:P.backgroundColor}}),
role:function(){return A().accessibilityText?"img":void 0},
"aria-label":function(){return A().accessibilityText}},_.V(_.J,{cond:function(){return A().animation},
then:function(P){return _.V(_.pH,{className:"badge-shape-wiz__icon",data:P,animationName:function(){return P().animationConfig.name||""}})}}),_.V(_.J,{cond:function(){var P;
return Y()&&!((P=A())==null?0:P.animation)},
then:function(){return _.V("div",{class:"badge-shape-wiz__icon"},_.V(iVq,{data:function(){return Y()}}))}}),_.V("div",{class:"badge-shape-wiz__text"},function(){var P;
return(P=A())==null?void 0:P.text}))},"V");
_.Pl.idomCompat=!0;_.Ow(_.Pl,"badge-shape",{props:{data:_.VY}});var ED=function(){var R=_.K.apply(this,arguments)||this;R.systemIcons=_.v("kevlar_system_icons");R.animated=_.v("animated_live_badge_icon");R.useBadgeShape=_.v("web_badge_shape_defrag");return R};
_.H(ED,_.K);_.l=ED.prototype;_.l.addTooltips=function(){for(var R=_.Mo(this.hostElement).querySelectorAll(".badge"),A=0,Y;Y=R[A++];){var P=this.repeatElement.itemForElement(Y);Y=_.Mo(Y);Y.lastChild&&Y.lastChild.is==="tp-yt-paper-tooltip"&&Y.removeChild(Y.lastChild);if(P=P.metadataBadgeRenderer&&P.metadataBadgeRenderer.tooltip){var E=_.vX("tp-yt-paper-tooltip");(0,_.Jh)(E).textContent=P;E.setAttribute("position","top");E.setAttribute("aria-hidden","true");Y.appendChild(E)}}};
_.l.badgesChanged=function(){var R=this;_.EV().parkOrScheduleJob(function(){R.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.l.standaloneRoundedBadgeChanged=function(){var R=this.useRoundedBadge?this.useRoundedBadge:void 0;R&&(this.useRoundedBadge=R)};
_.l.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.l.computeStyle=function(R){_.v("enable_html5_teal_ad_badge")&&R==="BADGE_STYLE_TYPE_AD"&&(R="badge-style-type-ad-alternate");_.v("kevlar_ytb_live_badges")&&R==="BADGE_STYLE_TYPE_LIVE_NOW"&&(R="badge-style-type-live-now-alternate");return R?R.toLowerCase().replace(/_/g,"-"):""};
_.l.computeRole=function(R){return this.computeAriaLabel(R)?"img":"status"};
_.l.computeAriaLabel=function(R){var A;return(R==null?void 0:(A=R.accessibilityData)==null?void 0:A.label)||(R==null?void 0:R.label)};
_.l.computeBadgeShape=function(R){if(R){var A,Y;var P=bhI(R.style);var E=fUS(R.style),z=R.label,c=((A=R.accessibilityData)==null?void 0:A.label)||R.label;a:switch(R.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":A=!0;break a;default:A=!1}var M=(Y=R.icon)==null?void 0:Y.iconType;a:switch(R.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":R=!0;break a;default:R=!1}P={type:P,brNzRatingBadgeType:E,text:z,accessibilityText:c,
isOverlay:A,icon:M!=="PREMIUM"?M:void 0,modern:_.v("web_modern_badge_view_model"),adsIncludeDot:R}}else P={};return P};
_.l.updateComputedBadges=function(R,A,Y){var P=this;(A=A?[A]:Y?[Y]:void 0)?this.computedBadges=A:this.computedBadges=R==null?void 0:R.filter(function(E){var z;if((z=E.metadataBadgeRenderer)==null?0:z.groups){z=!1;E=_.x(E.metadataBadgeRenderer.groups);for(var c=E.next();!c.done;c=E.next()){c=c.value;var M=void 0;z=z||((M=P.hiddenBadgeGroups)==null?void 0:M.includes(c))}return!z}return!0})};
_.l.useFilledIcons=function(R){return _.v("kevlar_system_icons")&&(R==="AUDIO_BADGE"||R==="CHECK_CIRCLE_THICK"||R==="OFFICIAL_ARTIST_BADGE"||R==="SPONSORSHIP_STAR"||R==="PERSON_RADAR_FILLED"||R==="PERSON_RADAR")};
_.l.computeBadgeShapeStyle=function(R){return this.useBadgeShape?R==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||R==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":"":""};
_.l.computeIcon=function(R){var A,Y;R=R==null?void 0:(A=R.metadataBadgeRenderer)==null?void 0:(Y=A.icon)==null?void 0:Y.iconType;if(R!=="PREMIUM"&&R)return _.m0(R)};
_.l.computeStandaloneBadge=function(R){var A;R=R==null?void 0:(A=R.icon)==null?void 0:A.iconType;return R==="PREMIUM_STANDALONE"||R==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
ED.prototype.hiddenBadgeGroupsChanged=ED.prototype.hiddenBadgeGroupsChanged;ED.prototype.standaloneBadgeChanged=ED.prototype.standaloneBadgeChanged;ED.prototype.standaloneRoundedBadgeChanged=ED.prototype.standaloneRoundedBadgeChanged;ED.prototype.badgesChanged=ED.prototype.badgesChanged;_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"hidden",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ED.prototype,"componentBehavior",void 0);
_.C([_.S(),_.k("design:type",Array)],ED.prototype,"badges",void 0);_.C([_.S(),_.k("design:type",Object)],ED.prototype,"topStandaloneBadge",void 0);_.C([_.S(),_.k("design:type",Object)],ED.prototype,"bottomStandaloneBadge",void 0);_.C([_.S(),_.k("design:type",Object)],ED.prototype,"computedBadges",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"mediumFontAdBadge",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"useRoundedBadge",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"largeFontAdBadge",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"overlayAd",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"overlayPremium",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"noDotAdBadge",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"collectionTruncate",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"isThumbnailBadge",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ED.prototype,"wrapBadges",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ED.prototype,"systemIcons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ED.prototype,"animated",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ED.prototype,"useBadgeShape",void 0);_.C([_.S({value:[]}),_.k("design:type",Array)],ED.prototype,"hiddenBadgeGroups",void 0);_.C([_.nG("#repeat"),_.k("design:type",b5)],ED.prototype,"repeatElement",void 0);_.C([_.Ul("badges"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ED.prototype,"badgesChanged",null);
_.C([_.Ul("useRoundedBadge"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ED.prototype,"standaloneRoundedBadgeChanged",null);_.C([_.Ul("topStandaloneBadge","bottomStandaloneBadge"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ED.prototype,"standaloneBadgeChanged",null);_.C([_.Ul("hiddenBadgeGroups"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ED.prototype,"hiddenBadgeGroupsChanged",null);
_.C([_.F({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],ED);
var WHS=_.s5()(ED,"ytd-badge-supported-renderer",function(){if(KHS===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge-shape [[computeBadgeShapeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></div></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);KHS=R}R=KHS;return R},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Nf("kevlar_poly_si_batch_j053")?1:2});var zP=function(){var R=_.K.apply(this,arguments)||this;R.iconType="STAR";R.standardizeIconSize=_.v("kevlar_system_icons");R.mediaHoverOverlayInitialVisibility=_.v("enable_top_landscape_image_button_command_web");R.noBottomMargin=!1;R.thumbnailObjectFit="CONTAIN";R.thumbnailFitHeight=!0;R.actionMap={"yt-mute-ad-action":"handleMuteAd"};return R};
_.H(zP,_.K);_.l=zP.prototype;
_.l.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"}}}};
_.l.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",zP.JSC$14643_DEFAULT_CLICK_LOCATION_BEHAVIOR,zP.JSC$14643_CLICK_LOCATION_ID_MAP))};
_.l.onTap=function(R){if(!_.v("use_on_click_for_desktop_display_ad"))this.onTapOrClick(R)};
_.l.onClick=function(R){if(_.v("use_on_click_for_desktop_display_ad"))this.onTapOrClick(R)};
_.l.onTapOrClick=function(R){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,R,!1)};
_.l.updateMediaBackgroundImage=function(){var R=this.get("data.image.thumbnail.thumbnails");R&&(R=_.MH(R,0))&&_.ya(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+R+")"})};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var R=0;R<this.data.impressionEndpoints.length;R++){var A=this.data.impressionEndpoints[R];A.clickTrackingParams&&delete A.clickTrackingParams;_.is().resolve(_.ls).resolveCommand(A,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var Y;((Y=this.data)==null?0:Y.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.l.handleMuteAd=function(){};
_.l.attached=function(){var R=this;_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.v("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Yh.Object.defineProperties(zP.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.titleText)return"";var A;return _.vk("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((A=this.data)==null?void 0:A.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.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 R;return!((R=this.data)==null||!R.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"}}});
zP.prototype.onClick=zP.prototype.onClick;zP.prototype.onTap=zP.prototype.onTap;zP.prototype.dataChanged=zP.prototype.dataChanged;
zP.JSC$14643_CLICK_LOCATION_ID_MAP=_.v("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"]]);
zP.JSC$14643_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.v("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"}];_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],zP.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.zF),_.k("design:type",Object)],zP.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],zP.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],zP.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.U(YX),_.k("design:type",Object)],zP.prototype,"ytdActiveViewBehavior",void 0);_.C([_.U([_.fH.YtActionHandlerBehavior]),_.k("design:type",Object)],zP.prototype,"actionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],zP.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],zP.prototype,"clickCommand",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],zP.prototype,"miniMode",void 0);_.C([_.S(),_.k("design:type",String)],zP.prototype,"iconType",void 0);_.C([_.X("data.titleText"),_.k("design:type",String),_.k("design:paramtypes",[])],zP.prototype,"titleAriaLabel",null);
_.C([_.X("data.rating"),_.k("design:type",Object),_.k("design:paramtypes",[])],zP.prototype,"getRating",null);_.C([_.X("data.price"),_.k("design:type",Object),_.k("design:paramtypes",[])],zP.prototype,"getPrice",null);_.C([_.X("data.thirdLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],zP.prototype,"getThirdLine",null);_.C([_.X("data.fourthLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],zP.prototype,"getFourthLine",null);
_.C([_.X("data.fifthLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],zP.prototype,"getFifthLine",null);_.C([_.X("getRating"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"computeRatingHidden",null);_.C([_.X("getPrice"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"computePriceHidden",null);_.C([_.X("getThirdLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"computeThirdLineHidden",null);
_.C([_.X("getFourthLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"computeFourthLineHidden",null);_.C([_.X("getFifthLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"computeFifthLineHidden",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.energyIcon"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"hasEnergyIcon",null);
_.C([_.X("computePriceHidden","computeRatingHidden"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"computeSecondaryTextHidden",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zP.prototype,"standardizeIconSize",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zP.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zP.prototype,"noBottomMargin",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.layout"),_.k("design:type",String),_.k("design:paramtypes",[])],zP.prototype,"layout",null);_.C([_.X("data.layout"),_.k("design:type",Object),_.k("design:paramtypes",[])],zP.prototype,"mediaThumbnailWidth",null);_.C([_.X("layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zP.prototype,"useRoundedBadge",null);_.C([_.S(),_.k("design:type",String)],zP.prototype,"thumbnailObjectFit",void 0);
_.C([_.S(),_.k("design:type",Object)],zP.prototype,"thumbnailFitHeight",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zP.prototype,"dataChanged",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zP.prototype,"onTap",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zP.prototype,"onClick",null);
_.C([_.F({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],zP);
_.B(zP,"ytd-display-ad-renderer",function(){if(IUA!==void 0)return IUA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return IUA=R},{mode:1});var jI7;var bhz;var fUN;var FH6=new Map;var pJN=!1;var iM=function(){var R=_.K.apply(this,arguments)||this;R.DEFAULT_TOOLTIP_OFFSET="10";R.TOOLTIP_OFFSET_NO_BANNER="-8";R.badges=null;R.noEndpoints=!1;R.wrapText=!1;R.forceVerified=!1;R.tooltipPosition="top";R.compactStyle=!1;R.height=0;R.lineHeight=0;return R};
_.H(iM,_.K);_.l=iM.prototype;_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.l.attached=function(){var R=this;this.observer=new MutationObserver(function(A,Y){R.handleResized();Y.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.l.detached=function(){this.observer&&this.observer.disconnect()};
_.l.logTooltipEvent=function(){_.v("kevlar_wiz_tooltip_event_killswitch")||pJN||(_.Bpu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),pJN=!0)};
_.l.handleWindowResized=function(){this.handleResized()};
_.l.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")))};
_.l.onHeightChanged=function(){if(this.verified){var R=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.a1("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=R:this.textContainerEl.style.marginRight=R}};
_.l.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.a1("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.l.handleResized=function(){var R=this;this.verified&&_.fn.addLowPriorityJob(function(){R.fitBackgroundToText();var A=getComputedStyle(R.hostElement).lineHeight;A&&(A=A.match(/\d+/))&&A.length&&(R.lineHeight=Number(A[0]));R.height=R.lineHeight&&!R.wrapText?R.lineHeight:R.textEl.offsetHeight})};
_.l.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var R=document.createRange(),A=_.Mo(this.textEl).children;A.length>0?R.selectNodeContents(A[0]):R.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(R.getBoundingClientRect().width)+"px"}};
_.l.computeChannelBadgeStyle=function(R){var A;if((R==null?0:(A=R.runs)==null?0:A.length)&&R.runs[0].textColor)return"--ytd-badge-icon-color:"+_.G9(R.runs[0].textColor)+";"};
_.Yh.Object.defineProperties(iM.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"?_.dF(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var R=this.get("badges.0.metadataBadgeRenderer.tooltip");if(R)return R}return _.R4(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
iM.prototype.onLineHeightChanged=iM.prototype.onLineHeightChanged;iM.prototype.onHeightChanged=iM.prototype.onHeightChanged;iM.prototype.onChannelNameChanged=iM.prototype.onChannelNameChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],iM.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iM.prototype,"badges",void 0);_.C([_.S(),_.k("design:type",Object)],iM.prototype,"channelName",void 0);
_.C([_.S(),_.k("design:type",Object)],iM.prototype,"noEndpoints",void 0);_.C([_.S(),_.k("design:type",Object)],iM.prototype,"wrapText",void 0);_.C([_.S(),_.k("design:type",Object)],iM.prototype,"forceVerified",void 0);_.C([_.S(),_.k("design:type",Object)],iM.prototype,"tooltipPosition",void 0);_.C([_.S(),_.k("design:type",String)],iM.prototype,"tooltip",void 0);_.C([_.S(),_.k("design:type",Boolean)],iM.prototype,"hasChannelArt",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],iM.prototype,"compactStyle",void 0);_.C([_.nG("#text-container"),_.k("design:type",HTMLElement)],iM.prototype,"textContainerEl",void 0);_.C([_.nG("#text"),_.k("design:type",Object)],iM.prototype,"textEl",void 0);_.C([_.nG("#verified-tooltip"),_.k("design:type",HTMLElement)],iM.prototype,"verifiedTooltip",void 0);_.C([_.S(),_.k("design:type",Object)],iM.prototype,"height",void 0);
_.C([_.S(),_.k("design:type",Object)],iM.prototype,"lineHeight",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("badges","forceVerified"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],iM.prototype,"verified",null);_.C([_.X("badges","verified"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],iM.prototype,"hideBadges",null);_.C([_.X("channelName"),_.k("design:type",Object),_.k("design:paramtypes",[])],iM.prototype,"formattedName",null);
_.C([_.X("badges","verified","formattedName"),_.k("design:type",String),_.k("design:paramtypes",[])],iM.prototype,"tooltipText",null);_.C([_.X("hasChannelArt"),_.k("design:type",String),_.k("design:paramtypes",[])],iM.prototype,"tooltipOffset",null);_.C([_.vZ("channelName"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iM.prototype,"onChannelNameChanged",null);
_.C([_.vZ("height"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iM.prototype,"onHeightChanged",null);_.C([_.vZ("lineHeight","height"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iM.prototype,"onLineHeightChanged",null);_.C([_.F({is:"ytd-channel-name",disableElementRegistration:!0})],iM);
_.B(iM,"ytd-channel-name",function(){if(fUN!==void 0)return fUN;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip aria-hidden="true" fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fUN=R},{mode:_.Nf("kevlar_poly_si_batch_j036")?1:2});var lM=function(){var R=_.K.apply(this,arguments)||this;R.standardizeIconSize=_.v("kevlar_system_icons");return R};
_.H(lM,_.K);lM.prototype.basicPaletteChanged=function(){var R;(R=this.data.color)!=null&&R.basicColorPaletteData&&_.W1(this.hostElement,this.data.color.basicColorPaletteData)};
lM.prototype.useFilledIcons=function(R){return _.v("kevlar_system_icons")&&(R==="CHECK_CIRCLE_THICK"||R==="OFFICIAL_ARTIST_BADGE")};
_.Yh.Object.defineProperties(lM.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return this.data.authorCreator||((R=this.data)==null?void 0:(A=R.color)==null?void 0:(Y=A.basicColorPaletteData)==null?void 0:Y.backgroundColor)}}});
lM.prototype.basicPaletteChanged=lM.prototype.basicPaletteChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lM.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],lM.prototype,"standardizeIconSize",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.authorUnifiedVerified"),_.k("design:type",Object),_.k("design:paramtypes",[])],lM.prototype,"verified",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],lM.prototype,"creator",null);_.C([_.vZ("data.color.basicColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lM.prototype,"basicPaletteChanged",null);_.C([_.F({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],lM);
_.B(lM,"ytd-author-comment-badge-renderer",function(){if(bhz!==void 0)return bhz;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return bhz=R},{mode:1});var FHA;var xm=function(){return _.K.apply(this,arguments)||this};
_.H(xm,_.K);xm.prototype.computeThumbnailWidth=function(R){if(R==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xm.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xm.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],xm.prototype,"icon",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],xm.prototype,"surface",void 0);
_.C([_.S({reflectToAttribute:!0,value:_.v("enable_shrink_image_size_on_web_posts_singleton")}),_.k("design:type",Boolean)],xm.prototype,"searchSxsUx",void 0);_.C([_.F({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],xm);
_.B(xm,"ytd-backstage-image-renderer",function(){if(FHA!==void 0)return FHA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return FHA=R},{mode:1});var BpD;var cl=function(){var R=_.K.apply(this,arguments)||this;R.isLoading=!1;R.selectedItemIndex=-1;return R};
_.H(cl,_.K);_.l=cl.prototype;_.l.computeIsChannelOwner=function(R){if(!R)return!0;R=R[0];return!(R&&(R.signinEndpoint||R.selectServiceEndpoint))};
_.l.computeIsImagePoll=function(R){return(R==null?void 0:R.type)==="POLL_TYPE_IMAGE"};
_.l.computeIsTotalVotesDisabled=function(R){return!(R==null?0:R.totalVotes)};
_.l.thumbnailSrc=function(R){var A,Y,P,E;return(R==null?0:(A=R.thumbnails)==null?0:(Y=A[0])==null?0:Y.url)?_.oR((P=R.thumbnails)==null?void 0:(E=P[0])==null?void 0:E.url):void 0};
_.l.progressWidth=function(R){return"width:"+(R?R*100:0)+"%;"};
_.l.textAreaWidth=function(R){return this.isImagePoll?null:"width:"+(R?R*100:0)+"%;"};
_.l.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.l.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var R=this.data.choices,A=0;A<R.length;A++)if(R[A].selected){this.selectedItemIndex=A;break}};
_.l.onPopupClosed=function(R,A){R=Number(this.pollVotes.selected);A.confirmed&&(this.selectChoice(R,!1),_.OC(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.l.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.l.onYtCommentPollRevert=function(R,A){A&&(this.selectChoice(A.selectedChoiceIndex,!0),this.set("data.totalVotes",A.totalVotes))};
_.l.onYtServiceRequestSent=function(R,A){if(A.actions)for(R=0;R<A.actions.length;R++){var Y=A.actions[R];_.n(Y,pd)&&this.set("data.totalVotes",_.n(Y,pd).totalVotes)}};
_.l.onYtServiceRequestCompleted=function(R){var A=this.get("detail.data.actionResults.0.feedback",R);R=this.get("detail.data.actionResults.0.status",R);if(A==="FEEDBACK_DESELECT"||A==="FEEDBACK_SELECT")this.isLoading=!1,R==="STATUS_FAILED"?_.xo(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.l.getEndpoint=function(R,A){return A===R?this.data.choices[A].deselectServiceEndpoint||null:this.data.choices[R].selectServiceEndpoint||null};
_.l.selectChoice=function(R,A){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Y=0;Y<this.data.choices.length;Y++){var P;if(R===this.selectedItemIndex){var E=!1;var z=P=null}else P=(E=Y===R)?this.data.choices[Y].voteRatioIfSelected:this.data.choices[Y].voteRatioIfNotSelected,z=E?this.data.choices[Y].votePercentageIfSelected:this.data.choices[Y].votePercentageIfNotSelected;this.set("data.choices."+Y+".voteRatio",P);
this.set("data.choices."+Y+".votePercentage",z);this.set("data.choices."+Y+".selected",E)}A||(this.isLoading=!0,(A=this.getEndpoint(R,this.selectedItemIndex))&&_.is().resolve(_.ls).resolveCommand(A,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===R?-1:R};
_.Yh.Object.defineProperties(cl.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
cl.prototype.onYtServiceRequestCompleted=cl.prototype.onYtServiceRequestCompleted;cl.prototype.onYtServiceRequestSent=cl.prototype.onYtServiceRequestSent;cl.prototype.onYtCommentPollRevert=cl.prototype.onYtCommentPollRevert;cl.prototype.onPopupClosed=cl.prototype.onPopupClosed;cl.prototype.dataChanged=cl.prototype.dataChanged;_.C([_.U(_.EO),_.k("design:type",Object)],cl.prototype,"paperItemBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cl.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],cl.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cl.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],cl.prototype,"isLoading",void 0);_.C([_.S({computed:"computeIsChannelOwner(data.choices)"}),_.k("design:type",Boolean)],cl.prototype,"isChannelOwner",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.k("design:type",Boolean)],cl.prototype,"isImagePoll",void 0);_.C([_.S({computed:"computeIsTotalVotesDisabled(data)"}),_.k("design:type",Boolean)],cl.prototype,"isTotalVotesDisabled",void 0);_.C([_.S(),_.k("design:type",Object)],cl.prototype,"previousPollInfo",void 0);_.C([_.S(),_.k("design:type",Object)],cl.prototype,"selectedItemIndex",void 0);_.C([_.nG("#poll-votes"),_.k("design:type",Object)],cl.prototype,"pollVotes",void 0);
_.C([_.X("isChannelOwner"),_.k("design:type",Object),_.k("design:paramtypes",[])],cl.prototype,"endpointStyle",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cl.prototype,"dataChanged",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],cl.prototype,"onPopupClosed",null);
_.C([_.Qa("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],cl.prototype,"onYtCommentPollRevert",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],cl.prototype,"onYtServiceRequestSent",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cl.prototype,"onYtServiceRequestCompleted",null);_.C([_.F({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],cl);
_.B(cl,"ytd-backstage-poll-renderer",function(){if(BpD!==void 0)return BpD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return BpD=R},{mode:2});var aUq;var CZb={autoplay:!1,loop:!1},hBS={simpleText:""},OD=function(){var R=_.K.apply(this,arguments)||this;R.isLoading=!1;R.usesPanelLockup=!1;R.selectedItemIndex=-1;R.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},CZb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});R.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},CZb,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});R.correctnessAnimationProps=[];R.correctnessAnimationRefs=[];return R};
_.H(OD,_.K);_.l=OD.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.l.computeIsChannelOwner=function(R){if(!R)return!0;R=R[0];return!(R&&(R.signinEndpoint||R.selectServiceEndpoint))};
_.l.computeIsTotalVotesDisabled=function(R){return!(R==null?0:R.totalVotes)};
_.l.computeIsImageQuiz=function(R){return(R==null?void 0:R.type)==="POLL_TYPE_IMAGE"};
_.l.onExplanationChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var R=this.data.choices;if(R){this.maybeInitializeQuizLotties(R);for(var A=0;A<R.length;A++)if(R[A].isSelected||this.isChannelOwner&&R[A].isCorrect){this.selectedItemIndex=A;return}this.selectedItemIndex=-1}}};
_.l.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var R=this.selectedItemIndex,A=Number(this.quizVotes.selected);this.selectChoice(A);this.sendVoteAction(A,R);this.quizVotes.selected=-1;var Y;R=!((Y=this.data)==null?0:Y.enableAnimation);this.maybePlayAnswerAnimations(R)}};
_.l.onYtCommentPollRevert=function(R,A){A&&(this.selectChoice(A.selectedChoiceIndex),this.set("data.totalVotes",A.totalVotes))};
_.l.onYtServiceRequestSent=function(R,A){if(A.actions)for(R=_.x(A.actions),A=R.next();!A.done;A=R.next())(A=_.n(A.value,pd))&&this.set("data.totalVotes",A.totalVotes)};
_.l.onYtServiceRequestCompleted=function(R){var A=this.get("detail.data.actionResults.0.feedback",R);R=this.get("detail.data.actionResults.0.status",R);if(A==="FEEDBACK_DESELECT"||A==="FEEDBACK_SELECT")this.isLoading=!1,R==="STATUS_FAILED"?_.xo(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.l.getAnimationPropsForChoiceIndex=function(R,A){return A[R]};
_.l.maybePlayAnswerAnimations=function(R){R=R===void 0?!1:R;var A;if((A=this.data)!=null&&A.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){A=_.x(this.correctnessAnimationRefs);for(var Y=A.next();!Y.done;Y=A.next()){var P=void 0,E=void 0;(P=Y.value)==null||(E=P.lottieEl)==null||E.stop()}if(!(this.selectedItemIndex<0)){A=0;R&&(A=this.isCorrect?37:25);var z,c;(z=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(c=z.lottieEl)==null||c.goToAndPlay(R?A:0,!0);if(!(this.isCorrect||
(z=this.data.choices.findIndex(function(m){return m.isCorrect}),z<0))){var M,N;
(N=(M=this.correctnessAnimationRefs[z])==null?void 0:M.lottieEl)==null||N.goToAndPlay(37,!0);var y;M=(y=this.fadeContainers)==null?void 0:y.item(z);!R&&M&&this.fadeIn(M)}}}};
_.l.thumbnailSrc=function(R){var A,Y,P,E;return(R==null?0:(A=R.thumbnails)==null?0:(Y=A[0])==null?0:Y.url)?_.oR((P=R.thumbnails)==null?void 0:(E=P[0])==null?void 0:E.url):void 0};
_.l.a11yVotedText=function(R,A){var Y,P,E=((Y=this.data)==null?void 0:(P=Y.correctVotedText)==null?void 0:P.simpleText)||"",z,c;Y=((z=this.data)==null?void 0:(c=z.votedText)==null?void 0:c.simpleText)||"";if(!A)return"";var M,N;if((M=this.data)==null?0:(N=M.choices)==null?0:N[R].isCorrect)return E;var y,m;return((y=this.data)==null?0:(m=y.choices)==null?0:m[R].isSelected)?Y:""};
_.l.getEndpoint=function(R,A){return A===R?this.data.choices[R].deselectServiceEndpoint||null:this.data.choices[R].selectServiceEndpoint||null};
_.l.sendVoteAction=function(R,A){if(R=this.getEndpoint(R,A))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(R)};
_.l.selectChoice=function(R){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var A=0;A<this.data.choices.length;A++)this.set("data.choices."+A+".isSelected",R===this.selectedItemIndex?!1:A===R);this.selectedItemIndex=this.selectedItemIndex===R?-1:R};
_.l.maybeInitializeQuizLotties=function(R){var A=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=R.map(function(Y){return{animationConfig:Y.isCorrect?A.baseCorrectLottiePlayerAnimationConfig:A.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){A.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(Y){return Y.animationRef||{}})};
_.l.fadeIn=function(R){R.classList.add("fade-in");_.JM(_.fn,function(){R.classList.remove("fade-in")},900)};
_.Yh.Object.defineProperties(OD.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.R4(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 R,A;return((R=this.data)==null?void 0:(A=R.choices)==null?void 0:A.some(function(Y){return Y.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null||!R.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?hBS:this.data.choices[this.selectedItemIndex].explanation||hBS}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null||!R.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
OD.prototype.onYtServiceRequestCompleted=OD.prototype.onYtServiceRequestCompleted;OD.prototype.onYtServiceRequestSent=OD.prototype.onYtServiceRequestSent;OD.prototype.onYtCommentPollRevert=OD.prototype.onYtCommentPollRevert;OD.prototype.dataChanged=OD.prototype.dataChanged;OD.prototype.onExplanationChanged=OD.prototype.onExplanationChanged;_.C([_.U(_.EO),_.k("design:type",Object)],OD.prototype,"paperItemBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],OD.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.QY.YtTaskEmitterBehavior),_.k("design:type",Object)],OD.prototype,"ytTaskEmitterBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],OD.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],OD.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],OD.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Object)],OD.prototype,"usesPanelLockup",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.k("design:type",Boolean)],OD.prototype,"isChannelOwner",void 0);_.C([_.S({computed:"computeIsTotalVotesDisabled(data)"}),_.k("design:type",Boolean)],OD.prototype,"isTotalVotesDisabled",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.k("design:type",Boolean)],OD.prototype,"isImageQuiz",void 0);_.C([_.S(),_.k("design:type",Object)],OD.prototype,"previousQuizInfo",void 0);_.C([_.S(),_.k("design:type",Object)],OD.prototype,"selectedItemIndex",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data","usesPanelLockup"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OD.prototype,"shouldUseModernUi",null);
_.C([_.HZ(".fade-container"),_.k("design:type",Object)],OD.prototype,"fadeContainers",void 0);_.C([_.S(),_.k("design:type",Array)],OD.prototype,"correctnessAnimationProps",void 0);_.C([_.X("explanation","showCorrectAnswer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OD.prototype,"showExplanation",null);_.C([_.X("isChannelOwner","isAttempted"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OD.prototype,"showCorrectAnswer",null);
_.C([_.X("isChannelOwner","isAttempted","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OD.prototype,"isQuizAnsweringDisabled",null);_.C([_.X("isQuizAnsweringDisabled"),_.k("design:type",Object),_.k("design:paramtypes",[])],OD.prototype,"endpointStyle",null);_.C([_.X("data","selectedItemIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OD.prototype,"isAttempted",null);
_.C([_.X("data","selectedItemIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],OD.prototype,"explanation",null);_.C([_.X("data","selectedItemIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],OD.prototype,"isCorrect",null);_.C([_.nG("ytd-expander"),_.k("design:type",Object)],OD.prototype,"expander",void 0);_.C([_.nG("#quiz-votes"),_.k("design:type",Object)],OD.prototype,"quizVotes",void 0);
_.C([_.vZ("explanation"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OD.prototype,"onExplanationChanged",null);_.C([_.vZ("data","isChannelOwner"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OD.prototype,"dataChanged",null);_.C([_.Qa("yt-comment-quiz-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],OD.prototype,"onYtCommentPollRevert",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],OD.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],OD.prototype,"onYtServiceRequestCompleted",null);_.C([_.F({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],OD);
_.B(OD,"ytd-backstage-quiz-renderer",function(){if(aUq!==void 0)return aUq;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return aUq=R},{mode:1});var oi8;var MW=function(){return _.K.apply(this,arguments)||this};
_.H(MW,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],MW.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],MW.prototype,"data",void 0);_.C([_.F({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],MW);
_.B(MW,"ytd-post-uploaded-video-renderer",function(){if(oi8!==void 0)return oi8;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return oi8=R},{mode:1});var kY7;var sD=function(){return _.K.apply(this,arguments)||this};
_.H(sD,_.K);sD.prototype.useFilledIcons=function(R){return R==="SPONSORSHIP_STAR"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sD.prototype,"data",void 0);_.C([_.F({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],sD);
var GYz=_.s5()(sD,"ytd-sponsors-only-badge-renderer",function(){if(kY7===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);kY7=R}R=kY7;return R},{allowedProps:["data"],
mode:1});var ZhD;var NW=function(){return _.K.apply(this,arguments)||this};
_.H(NW,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],NW.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],NW.prototype,"data",void 0);_.C([_.F({is:"ytd-child-video-renderer",disableElementRegistration:!0})],NW);
_.B(NW,"ytd-child-video-renderer",function(){if(ZhD!==void 0)return ZhD;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ZhD=R},{mode:1});var tZq;var wJ8;var V4=function(){var R=_.K.apply(this,arguments)||this;R.size=0;R.enableWebModernCollectionsV2=_.v("web_modern_collections_v2");R.fallbackImageSize={height:void 0,width:9999};R.webModernCollections=!1;return R};
_.H(V4,_.K);_.l=V4.prototype;_.l.computeBlurredImageSize=function(R){return R?{height:R*2,width:R*2}:this.fallbackImageSize};
_.l.computeImageSize=function(R){return R?{height:R,width:R}:this.fallbackImageSize};
_.l.computeObjectFit=function(R){return R?"FILL":"CONTAIN"};
_.l.computePreserve=function(R){return R?!0:!1};
_.l.setBackground=function(){var R,A;_.v("web_modern_collections_v2")&&((R=this.data)==null?0:(A=R.thumbnail)==null?0:A.sampledThumbnailColor)&&(R=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+R.red+","+R.green+","+R.blue+",1)")};
V4.prototype.setBackground=V4.prototype.setBackground;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],V4.prototype,"ytRendererBehavior",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],V4.prototype,"watchFeedThumbnail",void 0);_.C([_.S(),_.k("design:type",Object)],V4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],V4.prototype,"size",void 0);
_.C([_.S({computed:"computeBlurredImageSize(size)"}),_.k("design:type",Object)],V4.prototype,"blurredImageSize",void 0);_.C([_.S({computed:"computeImageSize(size)"}),_.k("design:type",Object)],V4.prototype,"imageSize",void 0);_.C([_.S({computed:"computePreserve(size)"}),_.k("design:type",String)],V4.prototype,"preserve",void 0);_.C([_.S({computed:"computeObjectFit(size)"}),_.k("design:type",String)],V4.prototype,"objectFit",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],V4.prototype,"enableWebModernCollectionsV2",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],V4.prototype,"webModernCollections",void 0);_.C([_.vZ("data.thumbnail.sampledThumbnailColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],V4.prototype,"setBackground",null);_.C([_.F({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],V4);
_.B(V4,"ytd-playlist-custom-thumbnail-renderer",function(){if(wJ8!==void 0)return wJ8;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return wJ8=R},{mode:1});var uAD;var Ji=function(){return _.K.apply(this,arguments)||this};
_.H(Ji,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ji.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ji.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],Ji.prototype,"width",void 0);_.C([_.F({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],Ji);
_.B(Ji,"ytd-playlist-video-thumbnail-renderer",function(){if(uAD!==void 0)return uAD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return uAD=R},{mode:1});var eBD;var y4=function(){return _.K.apply(this,arguments)||this};
_.H(y4,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],y4.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],y4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],y4.prototype,"width",void 0);_.C([_.F({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],y4);
_.B(y4,"ytd-show-custom-thumbnail-renderer",function(){if(eBD!==void 0)return eBD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return eBD=R},{mode:1});var qy7;var mK=function(){return _.K.apply(this,arguments)||this};
_.H(mK,_.K);mK.prototype.useFilledIcons=function(R){return R==="MUSIC"||R==="COURSE"};
mK.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=tf(this.overlayColor,"0.8");else if(this.overlayColor){var R=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+R.red+","+R.green+","+R.blue+",0.8)"}};
_.Yh.Object.defineProperties(mK.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)}}});
mK.prototype.overlayColorChanged=mK.prototype.overlayColorChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mK.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mK.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],mK.prototype,"overlayColor",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.icon","data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],mK.prototype,"overlayStyle",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data.icon","data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],mK.prototype,"overlayTextStyle",null);_.C([_.vZ("overlayColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mK.prototype,"overlayColorChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],mK);
_.B(mK,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(qy7!==void 0)return qy7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return qy7=R},{mode:1});var LHf;var TP=function(){var R=_.K.apply(this,arguments)||this;R.active=!1;return R};
_.H(TP,_.K);TP.prototype.computeIsSpinnerHidden=function(R){return(R==null?void 0:R.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
TP.prototype.computeOverlayIcon=function(R){return(R==null?void 0:R.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(R==null?void 0:R.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],TP.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],TP.prototype,"active",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],TP);
_.B(TP,"ytd-thumbnail-overlay-downloading-renderer",function(){if(LHf!==void 0)return LHf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return LHf=R},{mode:1});var dCA;var Q4=function(){return _.K.apply(this,arguments)||this};
_.H(Q4,_.K);_.Yh.Object.defineProperties(Q4.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Q4.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Q4.prototype,"data",void 0);_.C([_.X("data.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],Q4.prototype,"text",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],Q4);
_.B(Q4,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(dCA!==void 0)return dCA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return dCA=R},{mode:1});var RJA,APZ=function(){if(RJA!==void 0)return RJA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return RJA=R};var vl=function(){return _.K.apply(this,arguments)||this};
_.H(vl,_.K);_.Yh.Object.defineProperties(vl,{template:{configurable:!0,enumerable:!0,get:function(){return APZ()}}});
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],vl.prototype,"animateEqualizer",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],vl);_.s5()(vl,"ytd-thumbnail-overlay-equalizer",function(){return APZ()},{allowedProps:["animateEqualizer"],
mode:1});var YGZ;var g7=function(){var R=_.K.apply(this,arguments)||this;R.nowPlayingBadge=_.v("web_now_playing_badge");R.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return R};
_.H(g7,_.K);g7.prototype.activeChanged=function(){var R=this;_.v("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.RK(this,function(){_.xo(R.hostElement,"yt-playlist-lockup-now-playing-active",R)})};
g7.prototype.onMiniplayerPlayStateChanged=function(R){var A,Y=(A=_.n(_.f_().currentEndpoint,_.LO))==null?void 0:A.videoId;this.isVideoPlaying=R&&(_.v("web_limit_now_playing_animation_killswitch")||this.videoId===Y)};
g7.prototype.activeChanged=g7.prototype.activeChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],g7.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],g7.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],g7.prototype,"isVideoPlaying",void 0);_.C([_.S(),_.k("design:type",String)],g7.prototype,"videoId",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],g7.prototype,"equalizerOnly",void 0);_.C([_.S(),_.k("design:type",Boolean)],g7.prototype,"isActive",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],g7.prototype,"nowPlayingBadge",void 0);_.C([_.vZ("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],g7.prototype,"activeChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],g7);
_.B(g7,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(YGZ!==void 0)return YGZ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return YGZ=R},{mode:1});var PzS;var nP=function(){return _.K.apply(this,arguments)||this};
_.H(nP,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nP.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nP.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],nP);
_.B(nP,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(PzS!==void 0)return PzS;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return PzS=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var E17;var Hl=function(){return _.K.apply(this,arguments)||this};
_.H(Hl,_.K);Hl.prototype.onDurationChanged=function(){var R,A;_.Mo(this.hostElement).querySelector("#progress").style.width=((A=(R=this.data)==null?void 0:R.percentDurationWatched)!=null?A:0)+"%"};
Hl.prototype.onDurationChanged=Hl.prototype.onDurationChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Hl.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Hl.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Hl.prototype,"isLive",void 0);_.C([_.vZ("data.percentDurationWatched"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hl.prototype,"onDurationChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Hl);
_.B(Hl,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(E17!==void 0)return E17;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return E17=R},{mode:1});var zJN;var r7=function(){var R=_.K.apply(this,arguments)||this;R.bottomPanel=!1;R.richGridOverlay=!1;R.watchFeedOverlay=!1;R.isCompact=!1;return R};
_.H(r7,_.K);r7.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Yh.Object.defineProperties(r7.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:(A=R.icon)==null?void 0:A.iconType)==="PLAY_ALL"&&_.v("kevlar_system_icons")}}});
r7.prototype.widthChanged=r7.prototype.widthChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],r7.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],r7.prototype,"width",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],r7.prototype,"bottomPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],r7.prototype,"richGridOverlay",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],r7.prototype,"watchFeedOverlay",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],r7.prototype,"isCompact",void 0);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],r7.prototype,"isIconFilled",null);_.C([_.vZ("width","watchFeedOverlay"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],r7.prototype,"widthChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],r7);
_.B(r7,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(zJN!==void 0)return zJN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return zJN=R},{mode:1});var iEA;var l6A=["CLIP","SHORTS"],D_=function(){var R=_.K.apply(this,arguments)||this;R.animated=_.v("animated_live_badge_icon");R.hasIcon=!1;R.updateTimerIntervalId=0;R.timeSinceLive=0;return R};
_.H(D_,_.K);_.l=D_.prototype;_.l.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.l.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.l.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.l.hasIconOrText=function(){var R,A;return!!(((R=this.data)==null?0:R.icon)||((A=this.data)==null?0:A.text))};
_.l.initializeLiveBadgeTimer=function(){var R=this,A,Y=(A=this.liveBadgeData)==null?void 0:A.startTimestampSec;if(Y&&this.canShowLiveBadgeTimer()){var P;A=Number((P=this.liveBadgeData)==null?void 0:P.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(Y);this.updateTimerIntervalId=_.yQ(function(){R.canShowLiveBadgeTimer()?R.timeSinceLive++:(R.timeSinceLive=0,window.clearInterval(R.updateTimerIntervalId))},A)}else this.timeSinceLive=0};
_.l.canShowLiveBadgeTimer=function(){var R=Date.now(),A,Y;return R<(Number((A=this.liveBadgeData)==null?void 0:A.endTimestampSec)-1)*1E3&&R>Number((Y=this.liveBadgeData)==null?void 0:Y.startTimestampSec)*1E3};
_.Yh.Object.defineProperties(D_.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=this.data;var A=this.timeSinceLive;var Y,P,E,z;a:{var c=R.style;if(c===void 0)c=17;else switch(c){case "LIVE":c=18;break a;default:c=17}}A={type:c,text:A?Da8({seconds:A}):_.R4(R.text),accessibilityText:(Y=R.text)==null?void 0:(P=Y.accessibility)==null?void 0:(E=P.accessibilityData)==null?void 0:E.label,icon:(z=R.icon)==null?void 0:z.iconType}}else A={};return A}},
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 R;return(R=this.data)==null?void 0:R.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 l6A.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
D_.prototype.initializeLiveBadgeTimer=D_.prototype.initializeLiveBadgeTimer;D_.prototype.dataChanged=D_.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],D_.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],D_.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],D_.prototype,"icon",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],D_.prototype,"animated",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.k("design:type",Boolean)],D_.prototype,"hideTimeStatus",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],D_.prototype,"hasIcon",void 0);_.C([_.S(),_.k("design:type",Object)],D_.prototype,"timeSinceLive",void 0);_.C([_.X("data","timeSinceLive"),_.k("design:type",Object),_.k("design:paramtypes",[])],D_.prototype,"badgeShapeData",null);
_.C([_.X("data","overlayType"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],D_.prototype,"hideBadgeShape",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D_.prototype,"dataChanged",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],D_.prototype,"overlayStyle",null);
_.C([_.X("data.liveBadgeData"),_.k("design:type",Object),_.k("design:paramtypes",[])],D_.prototype,"liveBadgeData",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.type"),_.k("design:type",Object),_.k("design:paramtypes",[])],D_.prototype,"overlayType",null);_.C([_.X("overlayType","overlayStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],D_.prototype,"useFilledIcon",null);
_.C([_.Ul("liveBadgeData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D_.prototype,"initializeLiveBadgeTimer",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],D_);
_.B(D_,"ytd-thumbnail-overlay-time-status-renderer",function(){if(iEA!==void 0)return iEA;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return iEA=R},{mode:_.Nf("kevlar_poly_si_batch_j035")?1:2});var x$S;var UD=function(){return _.K.apply(this,arguments)||this};
_.H(UD,_.K);UD.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"}}}}};
UD.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(R){if(this.hasPlaybackProgressBar)return{percentDurationWatched:R.percentDurationWatched}};
UD.prototype.computeHasPlaybackProgressBar=function(R){return!!R.percentDurationWatched&&R.percentDurationWatched>0};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],UD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],UD.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.k("design:type",Boolean)],UD.prototype,"hasPlaybackProgressBar",void 0);
_.C([_.F({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],UD);
_.B(UD,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(x$S!==void 0)return x$S;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return x$S=R},{mode:1});var cPN;var OEf=_.E5(function(R){var A=R.data;var Y=R.children;var P=function(){return!!A().doubleStack},E=function(){return!!A().includeStackHeight};
return _.V("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!A().experimentEnabled}},_.V(_.J,{cond:A,
then:function(){var z={};return _.V(_.lI,null,_.V(_.J,{cond:E,then:function(){var c={};return _.V("div",{class:_.To("collections-stack-wiz__spacer",(c["collections-stack-wiz__spacer--double-stack"]=P,c))})}}),_.V("div",{class:_.To((z["collections-stack-wiz__relative-stack"]=E,z))},_.V(_.J,{cond:P,
then:function(){var c={};return _.V("div",{class:_.To("collections-stack-wiz__collection-stack2",function(){return A().customClassName2ndStack},(c["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return A().enableResponsiveMode},c)),
style:_.nY({"background-color":function(){return CZV(A())}})})}}),_.V("div",{class:_.To("collections-stack-wiz__collection-stack1",function(){return A().customClassName1stStack},function(){return aUk(A().thumbnailSize?A().thumbnailSize:"medium")}),
style:_.nY({"background-color":function(){return CZV(A())}})}),Y))}}))},"W");_.Ow(OEf,"yt-collections-stack",{props:{data:_.VY}});var $m=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};R.webModernCollections=!1;R.isSearch=!1;R.isDoubleStack=!1;R.thumbnailSize="medium";R.enableWebModernCollectionsV2=_.v("web_modern_collections_v2");return R};
_.H($m,_.K);_.l=$m.prototype;
_.l.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]]"}}}}}};
_.l.getThumbnailDetails=function(R){if(R!=null&&R.thumbnailRenderer){var A=R.thumbnailRenderer,Y;if((Y=A.playlistVideoThumbnailRenderer)==null?0:Y.thumbnail)return A.playlistVideoThumbnailRenderer.thumbnail;var P;if((P=A.playlistCustomThumbnailRenderer)==null?0:P.thumbnail)return A.playlistCustomThumbnailRenderer.thumbnail;R=R.thumbnailRenderer;var E;if((E=R.showCustomThumbnailRenderer)==null?0:E.thumbnail)return R.showCustomThumbnailRenderer.thumbnail}};
_.l.computeOverlayColor=function(R){var A,Y;if((A=this.getThumbnailDetails(R))==null?0:(Y=A.darkColorPalette)==null?0:Y.section2Color)return this.getThumbnailDetails(R).darkColorPalette.section2Color;var P;return(P=this.getThumbnailDetails(R))==null?void 0:P.sampledThumbnailColor};
_.l.computeWebModernCollections=function(R){if(R==null||!R.thumbnailOverlays)return!1;R=_.x(R.thumbnailOverlays);for(var A=R.next();!A.done;A=R.next()){var Y=void 0;if((Y=A.value)==null?0:Y.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.l.computeNavigationEndpoint=function(R){return ENJ(R==null?void 0:R.navigationEndpoint)};
_.Yh.Object.defineProperties($m.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var R=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:R==null?void 0:R.sampledThumbnailColor,vibrantColorPalette:R==null?void 0:R.vibrantColorPalette,darkColorPalette:R==null?void 0:R.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],$m.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],$m.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(QDS),_.k("design:type",Object)],$m.prototype,"ytdThumbnailBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],$m.prototype,"componentBehavior",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],$m.prototype,"watchFeedThumbnail",void 0);_.C([_.S(),_.k("design:type",Number)],$m.prototype,"customThumbnailSize",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],$m.prototype,"hideAria",void 0);_.C([_.S(),_.k("design:type",Object)],$m.prototype,"data",void 0);_.C([_.S({computed:"computeOverlayColor(data)"}),_.k("design:type",Object)],$m.prototype,"overlayColor",void 0);
_.C([_.S({computed:"computeWebModernCollections(data)"}),_.k("design:type",Object)],$m.prototype,"webModernCollections",void 0);_.C([_.S({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],$m.prototype,"computedNavigationEndpoint",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$m.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$m.prototype,"isDoubleStack",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],$m.prototype,"thumbnailSize",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],$m.prototype,"enableWebModernCollectionsV2",void 0);_.C([_.X("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],$m.prototype,"collectionStack",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],$m);
_.B($m,"ytd-playlist-thumbnail",function(){if(cPN!==void 0)return cPN;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return cPN=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var MfG;var X3=function(){var R=_.K.apply(this,arguments)||this;R.noEndpoints=!1;R.amsterdamPostMvp=_.v("web_amsterdam_post_mvp_playlists");R.badges=[];R.transferState="TRANSFER_STATE_UNKNOWN";return R};
_.H(X3,_.K);_.l=X3.prototype;_.l.getMetadata=function(R){if(!R)return[];var A=[],Y=R.shortViewCountText||R.viewCountText;Y&&A.push(_.R4(Y));R.publishedTimeText&&A.push(_.R4(R.publishedTimeText));R.upcomingEventData&&R.upcomingEventData.upcomingEventText&&A.push(_.Xk(_.R4(R.upcomingEventData.upcomingEventText),Number(R.upcomingEventData.startTime)));return A};
_.l.observeDataForBylineSeparator=function(){this.data&&_.No(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.l.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.G9(this.metadataColor)};
_.l.getSimpleString=function(R){return _.R4(R)};
_.l.isBylineHidden=function(R){return this.noByline||!((R==null?0:R.longBylineText)||(R==null?0:R.shortBylineText))};
_.l.isMetadataHidden=function(R){var A;return((A=this.getMetadata(R))==null?void 0:A.length)===0};
_.l.isBylineMetadataSeparatorHidden=function(R){return this.isMetadataHidden(R)||!this.shouldShowVideoInfo};
_.l.isLongByline=function(R,A){return A&&!(R==null||!R.longBylineText)};
_.Yh.Object.defineProperties(X3.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var R;return this.amsterdamPostMvp&&!((R=this.data)==null||!R.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 _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
X3.prototype.metadataColorChanged=X3.prototype.metadataColorChanged;X3.prototype.observeDataForBylineSeparator=X3.prototype.observeDataForBylineSeparator;_.C([_.U(_.Pf),_.k("design:type",Object)],X3.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],X3.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],X3.prototype,"noEndpoints",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],X3.prototype,"isSlimShort",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],X3.prototype,"radioMeta",void 0);_.C([_.S({selector:_.B1}),_.k("design:type",Object)],X3.prototype,"isGridViewEnabled",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],X3.prototype,"richMeta",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],X3.prototype,"amsterdamPostMvp",void 0);_.C([_.S(),_.k("design:type",Boolean)],X3.prototype,"noByline",void 0);
_.C([_.S({computed:"isLongByline(data, radioMeta)"}),_.k("design:type",Boolean)],X3.prototype,"longByline",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],X3.prototype,"truncateMetadataLine",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],X3.prototype,"miniMode",void 0);_.C([_.S(),_.k("design:type",Number)],X3.prototype,"metadataColor",void 0);_.C([_.S(),_.k("design:type",Array)],X3.prototype,"badges",void 0);
_.C([_.S({selector:_.h0,selectorArgs:["data.videoId"]}),_.k("design:type",String)],X3.prototype,"transferState",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],X3.prototype,"isDownloading",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],X3.prototype,"typographyBump",void 0);_.C([_.nG("#metadata-line"),_.k("design:type",HTMLElement)],X3.prototype,"metadataLine",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],X3.prototype,"observeDataForBylineSeparator",null);_.C([_.vZ("metadataColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],X3.prototype,"metadataColorChanged",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],X3.prototype,"shouldShowVideoInfo",null);
_.C([_.X("badges"),_.k("design:type",String),_.k("design:paramtypes",[])],X3.prototype,"inlineBadgeClass",null);_.C([_.X("longByline"),_.k("design:type",String),_.k("design:paramtypes",[])],X3.prototype,"longBylineClass",null);_.C([_.X("data","longByline"),_.k("design:type",Object),_.k("design:paramtypes",[])],X3.prototype,"bylineText",null);_.C([_.X("isGridViewEnabled","data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],X3.prototype,"watchFeedBigThumbs",null);
_.C([_.F({is:"ytd-video-meta-block",disableElementRegistration:!0})],X3);
_.B(X3,"ytd-video-meta-block",function(){if(MfG!==void 0)return MfG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return MfG=R},{mode:_.Nf("kevlar_poly_si_batch_j080")?1:2});_.bh("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var Sn=function(){var R=_.K.apply(this,arguments)||this;R.displayItemCount=2;R.isBackstagePlaylist=!1;R.isPostCompactPlaylist=!1;R.shouldShowChannelThumbnail=!1;R.useModernCollectionsV2=_.v("web_modern_collections_v2");return R};
_.H(Sn,_.K);_.l=Sn.prototype;_.l.computeFirstVideos=function(R,A){return R===void 0||A===void 0?[]:R.slice(0,A)};
_.l.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var R=this.data.thumbnailRenderer;R.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",R.playlistVideoThumbnailRenderer.thumbnail);R.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",R.playlistCustomThumbnailRenderer.thumbnail)}};
_.l.computeThumbnailHeight=function(R,A,Y,P,E){return P?E==="BIG"?280:E==="MASSIVE"?337:234:Y?240:A?72:R?118:138};
_.l.computeThumbnailWidth=function(R,A,Y,P,E){return P?E==="MEDIUM"?450:E==="BIG"?500:E==="MASSIVE"?600:420:Y?360:A?128:R?210:246};
_.l.computeUseBiggerThumbs=function(R){return R&&_.v("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelThumbnail=function(R,A){return R&&!(A==null||!A.channelThumbnail)};
_.Yh.Object.defineProperties(Sn.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
Sn.prototype.dataChanged=Sn.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Sn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],Sn.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Sn.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Sn.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Sn.prototype,"displayItemCount",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sn.prototype,"isBackstagePlaylist",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sn.prototype,"isPostCompactPlaylist",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Sn.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.k("design:type",Boolean)],Sn.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],Sn.prototype,"biggerThumbsStyle",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Sn.prototype,"isDownloads",void 0);_.C([_.S({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.k("design:type",Object)],Sn.prototype,"shouldShowChannelThumbnail",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sn.prototype,"useModernCollectionsV2",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sn.prototype,"dataChanged",null);_.C([_.X("isSearch"),_.k("design:type",String),_.k("design:paramtypes",[])],Sn.prototype,"stackThumbnailSize",null);_.C([_.F({is:"ytd-playlist-renderer",disableElementRegistration:!0})],Sn);
_.B(Sn,"ytd-playlist-renderer",function(){if(tZq===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);tZq=R}R=tZq;return R},{mode:1});var s5H;var NOZ;var I_=function(){var R=_.K.apply(this,arguments)||this;R.collections=!!_.v("web_modern_collections_v2");R.startX=0;return R};
_.H(I_,_.K);I_.prototype.onEndpointMouseDown=function(R){this.startX=R.clientX};
I_.prototype.onEndpointClick=function(R){this.startX!==R.clientX&&(R.preventDefault(),R.stopPropagation())};
I_.prototype.computeObjectFit=function(R){return R==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||R==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||R==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
I_.prototype.computeCardStyle=function(R){return R?R.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Yh.Object.defineProperties(I_.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var R,A;return this.collections&&((R=this.data)==null?void 0:(A=R.searchRefinementCardRendererStyle)==null?void 0:A.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}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],I_.prototype,"data",void 0);_.C([_.S({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.k("design:type",Number)],I_.prototype,"objectFit",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.k("design:type",String)],I_.prototype,"cardStyle",void 0);
_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],I_.prototype,"roundContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],I_.prototype,"collections",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],I_.prototype,"isAlbumCard",null);_.C([_.X("data","collections","isAlbumCard"),_.k("design:type",Object),_.k("design:paramtypes",[])],I_.prototype,"collectionStack",null);
_.C([_.F({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],I_);
_.B(I_,"ytd-search-refinement-card-renderer",function(){if(NOZ!==void 0)return NOZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return NOZ=R},{mode:1});var VfE;var KP=function(){var R=_.K.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.H(KP,_.K);_.C([_.S(),_.k("design:type",Object)],KP.prototype,"data",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],KP.prototype,"componentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],KP.prototype,"ytdReduxBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],KP.prototype,"isRichGrid",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],KP.prototype,"miniMode",void 0);
_.C([_.F({is:"ytd-game-details-renderer",disableElementRegistration:!0})],KP);
_.B(KP,"ytd-game-details-renderer",function(){if(VfE!==void 0)return VfE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return VfE=R},{mode:1});var JPq;var yP7;var Wl=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return R};
_.H(Wl,_.K);_.l=Wl.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(R){var A=R||this.data;return A&&A.states&&A.currentStateId!=null?A.states.find(function(Y){return Y.stateId===A.currentStateId})||null:null};
_.l.currentStateRendererData=function(R){return(R=this.currentStateData(R))&&R.state&&R.state.buttonRenderer?R.state.buttonRenderer:null};
_.l.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())};
_.l.computeButtonIcon=function(R){R=this.currentStateRendererData(R);var A;return(R==null?0:(A=R.icon)==null?0:A.iconType)?R.icon.iconType.toLowerCase():null};
_.l.computeAccessibility=function(R){return(R=this.currentStateRendererData(R))&&R.accessibilityData?R.accessibilityData.accessibilityData||null:null};
_.l.computeButtonClass=function(R){var A=this.currentStateRendererData(R);if(!A)return"";R="";var Y=A.style;Y&&(R+=Y.toLowerCase().replace(/_/g,"-")+" ");(A=A.size)&&(R+=A.toLowerCase().replace(/_/g,"-")+" ");return R.trim()};
_.l.computeServiceEndpoint=function(R){if(!R)return null;var A=R&&R.serviceEndpoint,Y=this.get("command.commandMetadata.webCommandMetadata.sendPost",R);return A?A:Y&&R.command?R.command:null};
_.l.computeBellMenuItemParams=function(R){var A;R=(A=_.n(R==null?void 0:R.command,_.Jg))==null?void 0:A.commands;if(!R||R.length===0)return null;A=_.n(R[0],_.Fe);var Y,P;return(A==null?0:(Y=A.popup)==null?0:(P=Y.menuPopupRenderer)==null?0:P.items)?A.popup.menuPopupRenderer.items.map(function(E){return E.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(R){var A=R.trackingParams,Y=this.computeBellMenuItemParams(this.data);this.data&&A&&Y&&Y.includes(A)&&this.ytRenderButtonBehavior._setButtonIcon(R.icon.iconType.toLowerCase())};
_.l.onYtServiceRequestCompleted=function(R,A){(R=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",A))&&this.set("data",R)};
_.l.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.l.resetState=function(){this.set("data.currentStateId",3)};
_.l.onYtButtonTapHandler=function(){if(this.data){var R=this.currentStateRendererData(this.data);R&&this.ytRendererBehavior.logExplicitClick(R)}};
Wl.prototype.onYtServiceRequestError=Wl.prototype.onYtServiceRequestError;Wl.prototype.onYtServiceRequestCompleted=Wl.prototype.onYtServiceRequestCompleted;Wl.prototype.stateChanged=Wl.prototype.stateChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Wl.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Wl.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(ku.YtRenderButtonBehavior),_.k("design:type",Object)],Wl.prototype,"ytRenderButtonBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Wl.prototype,"data",void 0);_.C([_.Ul("data","data.currentStateId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wl.prototype,"stateChanged",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],Wl.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Wl.prototype,"onYtServiceRequestError",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Wl);
_.B(Wl,"ytd-subscription-notification-toggle-button-renderer",function(){if(yP7!==void 0)return yP7;var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return yP7=R},{mode:1});var m$S;var jn=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};R.tapHandler=function(){if(R.data){var A=R.currentStateRendererData();A&&R.ytRendererBehavior.logExplicitClick(A)}};
return R};
_.H(jn,_.K);_.l=jn.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.currentStateData=function(){var R=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(A){return A.stateId===R.data.currentStateId})||null:null};
_.l.currentStateRendererData=function(){var R=this.currentStateData();return R&&R.state&&R.state.buttonRenderer?R.state.buttonRenderer:null};
_.l.computeAccessibilityLabel=function(){var R,A,Y;return(R=this.currentStateRendererData())==null?void 0:(A=R.accessibilityData)==null?void 0:(Y=A.accessibilityData)==null?void 0:Y.label};
_.l.computeBellMenuItemParams=function(){var R,A,Y=(A=_.n((R=this.data)==null?void 0:R.command,_.Jg))==null?void 0:A.commands;if(!Y||Y.length===0)return null;R=_.n(Y[0],_.Fe);var P,E;return(R==null?0:(P=R.popup)==null?0:(E=P.menuPopupRenderer)==null?0:E.items)?R.popup.menuPopupRenderer.items.map(function(z){return z.menuServiceItemRenderer.trackingParams}):null};
_.l.handleBellMenuOpenSelectedAction=function(R){var A=R.trackingParams,Y=this.computeBellMenuItemParams();if(this.data&&A&&Y&&Y.includes(A)&&(R==null||!R.isDisabled)){var P;((P=_.n(R.serviceEndpoint,_.mZ))==null?void 0:P.signal)!=="CLIENT_SIGNAL"&&(this.icon=R.icon.iconType)}};
_.l.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.l.onYtServiceRequestCompleted=function(R,A){if(R=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",A))this.icon=void 0,this.set("data",R)};
_.l.onYtServiceRequestError=function(){this.icon=void 0};
_.Yh.Object.defineProperties(jn.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=this.data,A=this.textLabel,Y=this.hostElement,P=this.computeAccessibilityLabel(),E=this.tapHandler,z=this.isOverlay?"overlay":"mono",c=(R==null?0:R.disableButton)?"disabled":"active";A=A?_.FS(A):void 0;return{style:z,type:"tonal",state:c,size:"M",focused:!1,formattedButtonText:A,iconPosition:"leading-trailing",onTap:oiJ(R,E,Y),accessibilityLabel:P}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var R=this.currentStateRendererData(),A,Y,P=(Y=this.icon)!=null?Y:R==null?void 0:(A=R.icon)==null?void 0:A.iconType;if(P)return _.m0(P)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.secondaryIcon)==null?void 0:A.iconType;if(Y)return _.m0(Y)}}});
jn.prototype.onYtServiceRequestError=jn.prototype.onYtServiceRequestError;jn.prototype.onYtServiceRequestCompleted=jn.prototype.onYtServiceRequestCompleted;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],jn.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],jn.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],jn.prototype,"textLabel",void 0);
_.C([_.S(),_.k("design:type",String)],jn.prototype,"icon",void 0);_.C([_.S(),_.k("design:type",Boolean)],jn.prototype,"isOverlay",void 0);_.C([_.X("data.*","textLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],jn.prototype,"computedButtonShape",null);_.C([_.X("data.*","icon"),_.k("design:type",Object),_.k("design:paramtypes",[])],jn.prototype,"computedIcon",null);_.C([_.X("computedIcon"),_.k("design:type",Object),_.k("design:paramtypes",[])],jn.prototype,"computedAnimateIcon",null);
_.C([_.X("data.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],jn.prototype,"computedSecondaryIcon",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],jn.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],jn.prototype,"onYtServiceRequestError",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],jn);
_.B(jn,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(m$S!==void 0)return m$S;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e<yt-button-shape animate-icon="[[computedAnimateIcon]]" data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return m$S=R},{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var TOA;_.Ow(TpN,"yt-animated-action",{props:{backgroundLottieRef:_.VY,foregroundLottieRef:_.VY,wrapperClass:_.VY,disableAnimation:_.VY},unsafeExternallySettableAttributes:new Set(["key"])});var bM=function(){var R=_.K.apply(this,arguments)||this;R.animatedActionEnabled=_.v("web_animated_actions");R.foregroundLottieRef={};R.backgroundLottieRef={};R.forceIconOnly=!1;R.showTextWhileAnimating=!1;R.keyboardFocused=!1;R.isAnimating=!1;R.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return R};
_.H(bM,_.K);_.l=bM.prototype;_.l.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.l.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]]"}}}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onYtServiceRequestSent=function(R,A){(this.get("endpoint.subscribeEndpoint",A)||this.get("endpoint.unsubscribeEndpoint",A))&&this.updateSubscriptionState(!this.subscribed)};
_.l.onYtServiceRequestCompleted=function(R,A){(R=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",A.data))&&this.bellButton&&(this.bellButton.data=R)};
_.l.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.ya(this.hostElement)};
_.l.onPlayerSubscribe=function(R){this.isCompactRed()||R!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.l.onPlayerUnsubscribe=function(R){this.isCompactRed()||R!==this.data.channelId||this.updateSubscriptionState(!1)};
_.l.handleUpdateSubscribeButtonAction=function(R){R=_.n(R,zu8);var A;R&&R.channelId===((A=this.data)==null?void 0:A.channelId)&&this.updateSubscriptionState(!!R.subscribed)};
_.l.computeButtonStyle=function(R){return this.get("style.styleType",R)||null};
_.l.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.l.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.l.updateSubscriptionState=function(R){if(R!==this.subscribed){this.set("data.subscribed",R);var A,Y=(A=this.data)==null?void 0:A.subscribedEntityKey;Y&&this.ytdReduxBehavior.dispatch(_.HT("subscriptionStateEntity",Y,{key:Y,subscribed:R}));this.isCompactRed()||_.xo(this.hostElement,"yt-subscription-changed",R);R||(_.OC(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!R),R&&this.hasBellButton&&this.startAnimation())}};
_.l.startAnimation=function(){var R=this;if(!this.isAnimating){var A=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var Y;(Y=this.backgroundLottieRef.lottieEl)==null||Y.goToAndPlay(0);var P;(P=this.foregroundLottieRef.lottieEl)==null||P.goToAndPlay(0);_.fn.addJob(function(){R.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.fn.addJob(function(){R.updateContainerToFitContent(!!R.subscribed,!0)},2,1500);
_.fn.addJob(function(){R.isAnimating=!1},2,A)}};
_.l.maybeAnimateBellIcon=function(){var R=_.sl(this.hostElement).querySelector("yt-animated-icon");if(R){var A;(A=R.animationRef.lottieEl)==null||A.goToAndPlay(0)}};
_.l.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.l.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.l.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var R;this.unsubscribedWidth=(R=this.subscribeButtonShape)==null?void 0:R.getBoundingClientRect().width}var A;this.subscribedWidth=(A=this.bellButton)==null?void 0:A.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.l.updateContainerToFitContent=function(R,A){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(R?(R=this.subscribedWidth,A=this.isAnimating&&!A,this.subscribedIconOnlyWidth===void 0||A||(R=this.subscribedIconOnlyWidth),this.hostElement.style.width=R+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.l.clearContainerSize=function(){this.hostElement.style.width=""};
_.l.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.l.maybeSetSubscribedButtonIconOnlyWidth=function(){var R=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 A;R.subscribedIconOnlyWidth=(A=R.bellButton)==null?void 0:A.getBoundingClientRect().width;requestAnimationFrame(function(){if(R.bellButton){var Y;R.bellButton.textLabel=
(Y=R.data)==null?void 0:Y.subscribedButtonText}})})))};
_.Yh.Object.defineProperties(bM.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 R;return(R=this.data)==null?void 0:R.subscribedButtonText}var A;return this.forceIconOnly?void 0:(A=this.data)==null?void 0:A.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=((R=this.data)==null?void 0:(A=R.timedAnimationData)==null?void 0:A.animationTiming)||[];return{uniqueId:"subscribe",timings:Y,enabled:Y.length>0&&!this.subscribed,experimentEnabled:Y.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var R;return!this.subscribed&&((R=this.data)==null?void 0:R.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 R={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var A=R.renderer;var Y=R.element;var P=R.subscribed;var E=R.commandController;var z=R.isOverlay;R=R.stopPropagation;var c=tZk(A,P);z&&(c.style="overlay");z=Object;var M=z.assign,N;a:switch((N=A.style)==null?void 0:N.styleType){case "COMPACT_GRAY":case "COMPACT_RED":N={size:"S"};break a;default:N={size:"M"}}var y=Zhu(A,
P);var m=(m=P?A.subscribedButtonText:A.unsubscribedButtonText)?_.FS(m):void 0;return M.call(z,{},c,N,{focused:!1,toggled:P,accessibilityLabel:y,formattedButtonText:m,onTap:GYI(A,P,Y,E,R)})}}}});
bM.prototype.onMouseDown=bM.prototype.onMouseDown;bM.prototype.onDataChanged=bM.prototype.onDataChanged;bM.prototype.observedSubscribed=bM.prototype.observedSubscribed;bM.prototype.onYtServiceRequestCompleted=bM.prototype.onYtServiceRequestCompleted;bM.prototype.onYtServiceRequestSent=bM.prototype.onYtServiceRequestSent;bM.prototype.maybeUpdateBellButtonText=bM.prototype.maybeUpdateBellButtonText;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],bM.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bM.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],bM.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],bM.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bM.prototype,"data",void 0);
_.C([_.S({selectorArgs:["data.subscribedEntityKey"],selector:ZMk}),_.k("design:type",Object)],bM.prototype,"subscriptionStateEntity",void 0);_.C([_.S({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.k("design:type",Boolean)],bM.prototype,"subscribed",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],bM.prototype,"branded",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bM.prototype,"animatedActionEnabled",void 0);
_.C([_.S(),_.k("design:type",Object)],bM.prototype,"foregroundLottieRef",void 0);_.C([_.S(),_.k("design:type",Object)],bM.prototype,"backgroundLottieRef",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],bM.prototype,"overlayButton",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.k("design:type",Object)],bM.prototype,"buttonStyle",void 0);_.C([_.S(),_.k("design:type",Object)],bM.prototype,"forceIconOnly",void 0);
_.C([_.S(),_.k("design:type",Object)],bM.prototype,"showTextWhileAnimating",void 0);_.C([_.S({value:function(){return!!_.is().resolve(_.z3(_.rt))&&_.v("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.k("design:type",Boolean)],bM.prototype,"useKeyboardFocused",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bM.prototype,"keyboardFocused",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bM.prototype,"isAnimating",void 0);_.C([_.X("data.notificationPreferenceButton.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],bM.prototype,"hasBellButton",null);
_.C([_.vZ("subscribedButtonText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bM.prototype,"maybeUpdateBellButtonText",null);_.C([_.X("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],bM.prototype,"subscribedButtonText",null);_.C([_.X("data.timedAnimationData.animationTiming","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],bM.prototype,"smartimationSettings",null);
_.C([_.S({reflectToAttribute:!0}),_.X("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],bM.prototype,"subscribeButtonHidden",null);_.C([_.S({reflectToAttribute:!0}),_.X("subscribed","hasBellButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],bM.prototype,"subscribeButtonInvisible",null);
_.C([_.S({reflectToAttribute:!0}),_.X("subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],bM.prototype,"unsubscribeButtonHidden",null);_.C([_.nG("ytd-subscription-notification-toggle-button-renderer-next"),_.k("design:type",Object)],bM.prototype,"bellButton",void 0);_.C([_.nG("#subscribe-button-shape"),_.k("design:type",HTMLElement)],bM.prototype,"subscribeButtonShape",void 0);
_.C([_.X("overlayButton","subscribed","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],bM.prototype,"buttonShape",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],bM.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],bM.prototype,"onYtServiceRequestCompleted",null);
_.C([_.vZ("subscribed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bM.prototype,"observedSubscribed",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bM.prototype,"onDataChanged",null);_.C([_.Qa("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bM.prototype,"onMouseDown",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],bM);
_.B(bM,"ytd-subscribe-button-renderer",function(){if(TOA!==void 0)return TOA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return TOA=R},{mode:1});var fP=function(){var R=_.K.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.H(fP,_.K);fP.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fP.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fP.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fP.prototype,"isRichGrid",void 0);_.C([_.F({is:"ytd-game-card-renderer",disableElementRegistration:!0})],fP);
_.B(fP,"ytd-game-card-renderer",function(){if(JPq!==void 0)return JPq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return JPq=R},{mode:1});var pP={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.v("defer_menus")&&!P2D?0:void 0,waitForSignal:"eocs"};var Q5f;var v1S;var F3=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return R};
_.H(F3,_.K);_.l=F3.prototype;_.l.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.l.onSeriesReminderStateEntityChange=function(){var R,A,Y;((R=this.eventReminderStateEntity)==null?0:R.key)&&((A=this.seriesReminderStateEntity)==null?void 0:A.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((Y=this.eventReminderStateEntity)==null?void 0:Y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.HT("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.l.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.l.onYtServiceRequestError=function(){var R;this.updateReminderStateEntitiesFromButtonState((R=this.data)==null?void 0:R.currentState)};
_.l.handleUpdateUpcomingEventReminderButtonStateCommand=function(R){if(R=_.n(R,L$Z)){var A,Y=(A=this.data)==null?void 0:A.targetId;Y&&R.targetId===Y&&_.wg(this.updateReminderStateEntitiesFromButtonState.bind(this,R.state))}};
_.l.getButtonStateFromReminderState=function(){var R;if(((R=this.seriesReminderStateEntity)==null?void 0:R.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var A;if(((A=this.eventReminderStateEntity)==null?void 0:A.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var Y,P;if(((Y=this.seriesReminderStateEntity)==null?void 0:Y.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((P=this.eventReminderStateEntity)==
null?void 0:P.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var E;return(E=this.data)==null?void 0:E.currentState};
_.l.updateReminderStateEntitiesFromButtonState=function(R){if(R){switch(R){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":R="UPCOMING_EVENT_REMINDER_STATE_NONE";var A="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":R="UPCOMING_EVENT_REMINDER_STATE_SINGLE";A="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":R="UPCOMING_EVENT_REMINDER_STATE_NONE";A="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var Y;
((Y=this.eventReminderStateEntity)==null?0:Y.key)&&this.ytdReduxBehavior.dispatch(_.HT("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:R})));var P;((P=this.seriesReminderStateEntity)==null?0:P.key)&&this.ytdReduxBehavior.dispatch(_.HT("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:A})))}};
_.Yh.Object.defineProperties(F3.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var R=this.getButtonStateFromReminderState(),A,Y;if(R&&((A=this.data)==null?0:(Y=A.states)==null?0:Y.length))for(A=_.x(this.data.states),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0;if(((P=_.n(Y,daD))==null?void 0:P.state)===R)return _.n(Y,daD)}}}});
F3.prototype.onYtServiceRequestError=F3.prototype.onYtServiceRequestError;F3.prototype.onYtServiceRequestCompleted=F3.prototype.onYtServiceRequestCompleted;F3.prototype.onSeriesReminderStateEntityChange=F3.prototype.onSeriesReminderStateEntityChange;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],F3.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],F3.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],F3.prototype,"data",void 0);_.C([_.S({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:wNq}),_.k("design:type",Object)],F3.prototype,"eventReminderStateEntity",void 0);
_.C([_.S({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(R,A){return _.mc(R.entities,"sportsSeriesReminderStateEntity",A)}}),
_.k("design:type",Object)],F3.prototype,"seriesReminderStateEntity",void 0);_.C([_.X("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],F3.prototype,"currentButtonStateRenderer",null);_.C([_.vZ("seriesReminderStateEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],F3.prototype,"onSeriesReminderStateEntityChange",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],F3.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],F3.prototype,"onYtServiceRequestError",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],F3);
_.B(F3,"ytd-upcoming-event-reminder-button-renderer",function(){if(v1S!==void 0)return v1S;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return v1S=R},{mode:1});var g1z;var Bl=function(){return _.K.apply(this,arguments)||this};
_.H(Bl,_.K);Bl.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Yh.Object.defineProperties(Bl.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(_.v("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Bl.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Bl.prototype,"shelfDismissal",void 0);_.C([_.X("data.responseText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Bl.prototype,"text",null);
_.C([_.X("data.responseText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Bl.prototype,"textAriaLabel",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Bl);
_.B(Bl,"ytd-notification-multi-action-renderer",function(){if(g1z!==void 0)return g1z;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return g1z=R},{mode:1});var n1S;var a_=function(){return _.K.apply(this,arguments)||this};
_.H(a_,_.K);a_.prototype.ready=function(){var R=this;_.Mo(this.hostElement).querySelector("#undo").addEventListener("tap",function(){R.onUndoTap()})};
a_.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],a_.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],a_);
_.B(a_,"ytd-notification-text-renderer",function(){if(n1S!==void 0)return n1S;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return n1S=R},{mode:1});var HE7;var CP=function(){var R=_.K.apply(this,arguments)||this;R.mouseOverDelayJobId=0;R.fadeInImageDelayJobId=0;R.startTimeMs=-1;R.loadingStartTimeMs=-1;R.loadingEndTimeMs=-1;R.hasVideoPreview=!1;return R};
_.H(CP,_.K);_.l=CP.prototype;_.l.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.l.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.l.showThumbnail=function(){var R=this;this.csn=_.F9();_.Bk("fmth");_.fn.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.JM(_.fn,function(){R.loadingStartTimeMs=(0,_.iB)();var A=_.Mo(R.hostElement).querySelector("#thumbnail");A.complete?R.displayMouseOverImage():A.addEventListener("load",_.T2(R,R.displayMouseOverImage))},150):_.No(_.Mo(this.hostElement).querySelector("#play"),"show",!0)};
_.l.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.l.onTap=function(){this.removeVideoPreview()};
_.l.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var R=this.videoId,A=this.csn,Y=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,P=this.startTimeMs,E=this.hasVideoPreview,z=_.S5(this.trackingParams),c={isMovingThumbnail:E};E&&P>0&&(Y>0&&(c.movingThumbnailLoadingDurationMs=Math.round(Y)),c.durationHoveredMs=Math.round((0,_.iB)()-P));R&&(c.videoId=R);_.Lj(A,z,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:c});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.l.removeVideoPreview=function(){_.fn.cancelJob(this.mouseOverDelayJobId);_.fn.cancelJob(this.fadeInImageDelayJobId);var R=_.Mo(this.hostElement).querySelector("#thumbnail");_.No(R,"fade-in",!1);R.removeEventListener("load",_.T2(this,this.displayMouseOverImage));R=_.Mo(this.hostElement).querySelector("#play");_.No(R,"fade-in",!1);_.No(R,"show",!1)};
_.l.displayMouseOverImage=function(){var R=_.Mo(this.hostElement).querySelector("#thumbnail"),A=_.Mo(this.hostElement).querySelector("#play");this.isImageAvailable(R)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.iB)(),this.startTimeMs=(0,_.iB)(),this.fadeInImageDelayJobId=_.JM(_.fn,function(){_.No(R,"fade-in",!0)},50)):_.No(A,"fade-in",!0)};
_.l.computeThumbnail=function(R,A){var Y;R&&R.movingThumbnailDetails&&R.movingThumbnailDetails.thumbnails&&A?Y=_.MH(R.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):Y=A?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(Y)return _.oR(Y)};
_.l.isImageAvailable=function(R){return!(!R.src||R.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||R.naturalWidth===120)};
CP.prototype.onTap=CP.prototype.onTap;CP.prototype.dataChanged=CP.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],CP.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],CP.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],CP.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],CP.prototype,"csn",void 0);_.C([_.S(),_.k("design:type",Object)],CP.prototype,"trackingParams",void 0);
_.C([_.S(),_.k("design:type",String)],CP.prototype,"videoId",void 0);_.C([_.S(),_.k("design:type",Boolean)],CP.prototype,"isAttachedAndDataSet",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CP.prototype,"dataChanged",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CP.prototype,"onTap",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],CP);
_.B(CP,"ytd-moving-thumbnail-renderer",function(){if(HE7!==void 0)return HE7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return HE7=R},{mode:1});var rPb;_.PC=function(R){this.hostElement=R;this.eventSink=null;this.eventList=[]};
_.PC.prototype.shouldForward=function(){var R,A;return(A=(R=this.eventSink)==null?void 0:R.isConnected)!=null?A:document.body.contains(this.eventSink)};
_.PC.prototype.start=function(R,A){this.eventSink&&this.stop();for(var Y=0;Y<R.length;Y++)this.hostElement.addEventListener(R[Y],_.T2(this,this.forwardEvent));var P;this.eventSink=(P=A.hostElement)!=null?P:A;this.eventList=R};
_.PC.prototype.stop=function(){for(var R=0;R<this.eventList.length;R++)this.hostElement.removeEventListener(this.eventList[R],_.T2(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.PC.prototype.forwardEvent=function(R,A){this.shouldForward()&&(R.stopPropagation(),this.eventSink instanceof Element?_.xo(this.eventSink,R.type,A):_.pK(new _.XN("eventSink is not an element")))};_.hi={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.PC(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(R,A){this.forwarder_.start(R,A)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var o_=function(){return _.K.apply(this,arguments)||this};
_.H(o_,_.K);_.l=o_.prototype;_.l.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=_.a1("HTML_DIR")==="rtl"?"right":"left"};
_.l.dataChanged=function(){this.popupOpen=!1};
_.l.computeAriaLabel=function(R){return _.n(R,UAb).label};
_.l.onTap=function(R){R.stopPropagation();R.preventDefault();this.data.command&&_.is().resolve(_.ls).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
o_.prototype.onPopupClosed=o_.prototype.onPopupClosed;o_.prototype.onPopupOpened=o_.prototype.onPopupOpened;o_.prototype.onTap=o_.prototype.onTap;o_.prototype.dataChanged=o_.prototype.dataChanged;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],o_.prototype,"eventForwardingBehavior",void 0);_.C([_.U(_.oj),_.k("design:type",Object)],o_.prototype,"ironButtonState",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],o_.prototype,"componentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],o_.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:-1}),_.k("design:type",Number)],o_.prototype,"tabindex",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.k("design:type",Object)],o_.prototype,"ariaLabel",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],o_.prototype,"disableTooltips",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],o_.prototype,"popupOpen",void 0);
_.C([_.S(),_.k("design:type",Element)],o_.prototype,"eventSink",void 0);_.C([_.nG("#tooltip"),_.k("design:type",Object)],o_.prototype,"tooltip",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o_.prototype,"dataChanged",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],o_.prototype,"onTap",null);
_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o_.prototype,"onPopupOpened",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o_.prototype,"onPopupClosed",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],o_);
_.B(o_,"ytd-thumbnail-overlay-button-renderer",function(){if(rPb!==void 0)return rPb;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-thumbnail-overlay-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon icon="[[data.icon.iconType]]" on-click="onTap" class="style-scope ytd-thumbnail-overlay-button-renderer"></yt-icon><tp-yt-paper-tooltip id="tooltip" animation-delay="0" hidden="[[disableTooltips]]" offset="0" class="style-scope ytd-thumbnail-overlay-button-renderer">\n  [[data.tooltip]]\n</tp-yt-paper-tooltip>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return rPb=R},{mode:1});var D$f;var km=function(){return _.K.apply(this,arguments)||this};
_.H(km,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],km.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],km.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],km.prototype,"disableAnimation",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],km.prototype,"rounded",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],km.prototype,"transparentBackground",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],km.prototype,"noPadding",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],km);
_.B(km,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(D$f!==void 0)return D$f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return D$f=R},{mode:1});var U$H;var GP=function(){return _.K.apply(this,arguments)||this};
_.H(GP,_.K);GP.prototype.computeIconPosition=function(R){return this.get("iconPosition",R)||null};
GP.prototype.computeIconStyle=function(R){return this.get("iconStyle",R)||null};
GP.prototype.computeIsIconStyleFilled=function(R){if(!R)return!1;var A;return R.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((A=R.icon)==null?void 0:A.iconType)==="ERROR_BLACK"};
_.C([_.S(),_.k("design:type",Object)],GP.prototype,"data",void 0);_.C([_.S({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.k("design:type",Object)],GP.prototype,"iconPosition",void 0);_.C([_.S({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.k("design:type",Object)],GP.prototype,"iconStyle",void 0);_.C([_.S({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],GP.prototype,"iconStyleFilled",void 0);
_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],GP);
_.B(GP,"ytd-thumbnail-overlay-icon-renderer",function(){if(U$H!==void 0)return U$H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return U$H=R},{mode:1});var $$Z;var Z_=function(){return _.K.apply(this,arguments)||this};
_.H(Z_,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Z_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Z_.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],Z_);
_.B(Z_,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if($$Z!==void 0)return $$Z;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $$Z=R},{mode:1});var XQ8;var ti=function(){var R=_.K.apply(this,arguments)||this;R.isPreviewLoading=!1;return R};
_.H(ti,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ti.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ti.prototype,"isPreviewLoading",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],ti);
_.B(ti,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(XQ8!==void 0)return XQ8;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return XQ8=R},{mode:1});var SGz;var w7=function(){return _.K.apply(this,arguments)||this};
_.H(w7,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],w7.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],w7);
_.B(w7,"ytd-thumbnail-overlay-pinking-renderer",function(){if(SGz!==void 0)return SGz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return SGz=R},{mode:1});var I6S;var uM=function(){var R=_.K.apply(this,arguments)||this;R.disableTooltips=!1;R.isLoading=!1;R.useExpandableTooltip=!1;R.toggled=!1;R.hovered=!1;R.mouseoverDelayJobId=0;R.toggleDelayJobId=0;R.expandAnimationDelayJobId=0;return R};
_.H(uM,_.K);_.l=uM.prototype;_.l.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");_.Mo(this.hostElement).querySelector("#tooltip").position=_.a1("HTML_DIR")==="rtl"?"right":"left"};
_.l.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.fn.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.fn.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.fn.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.l.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.fn.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.fn.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.fn.cancelJob(this.expandAnimationDelayJobId)};
_.l.computeIcon=function(R,A,Y){return(R=Y?A:R)&&R.iconType?_.m0(R.iconType):void 0};
_.l.computeAriaLabel=function(R,A,Y){return _.n(Y?A:R,UAb).label};
_.l.computeTooltip=function(R,A,Y){return Y?A:R};
_.l.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.l.computeIconOnHover=function(R,A){if((R==null?0:R.iconType)&&!A)return _.m0(R.iconType)};
_.l.onTap=function(R){var A=this;R.stopPropagation();R.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(R=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(R),this.useExpandableTooltip&&(this.toggleDelayJobId=_.JM(_.fn,function(){A.hovered=!1;A.data&&!A.data.toggledServiceEndpoint&&(A.expandAnimationDelayJobId=_.JM(_.fn,function(){A.set("data.isToggled",
!1)},200))},2E3))};
_.l.onMouseenter=function(){var R=this;this.mouseoverDelayJobId=_.JM(_.fn,function(){R.hovered=!0},300)};
_.l.onMouseleave=function(){_.fn.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.l.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.l.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.l.onServiceRequestCompleted=function(R,A){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(A)||this.set("data.isToggled",!this.data.isToggled)};
_.l.serviceRequestWasSuccessful=function(R){return _.n(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.qN)?R.data.status==="STATUS_SUCCEEDED":!0};
uM.prototype.onServiceRequestCompleted=uM.prototype.onServiceRequestCompleted;uM.prototype.onPopupClosed=uM.prototype.onPopupClosed;uM.prototype.onPopupOpened=uM.prototype.onPopupOpened;uM.prototype.onMouseleave=uM.prototype.onMouseleave;uM.prototype.dataChanged=uM.prototype.dataChanged;_.C([_.U(_.oj),_.k("design:type",Object)],uM.prototype,"ironButtonState",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],uM.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],uM.prototype,"ytEventForwardingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uM.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.k("design:type",Object)],uM.prototype,"ariaLabel",void 0);_.C([_.S(),_.k("design:type",Object)],uM.prototype,"disableTooltips",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],uM.prototype,"popupOpen",void 0);_.C([_.S(),_.k("design:type",Object)],uM.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Element)],uM.prototype,"eventSink",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uM.prototype,"useExpandableTooltip",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.k("design:type",Object)],uM.prototype,"toggled",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uM.prototype,"hovered",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.k("design:type",Object)],uM.prototype,"iconOnHover",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uM.prototype,"dataChanged",null);
_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uM.prototype,"onMouseleave",null);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uM.prototype,"onPopupOpened",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uM.prototype,"onPopupClosed",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],uM.prototype,"onServiceRequestCompleted",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],uM);
_.B(uM,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(I6S!==void 0)return I6S;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return I6S=R},{mode:_.Nf("kevlar_poly_si_batch_j053")?1:2});var KWH;var WWf=_.E5(function(R){var A=R.data;var Y=R.thumbnailSize;var P=function(){return A().enableSegmentView};
return _.V("yt-thumbnail-overlay-progress-bar-view-model",{class:_.To("ytThumbnailOverlayProgressBarHost",function(){return wJJ(Y==null?void 0:Y())})},_.V(_.J,{cond:P,
then:function(){return _.V("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.V("div",{class:_.IP("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+A().startPercent+"%"}}),_.V("div",{class:_.IP("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+A().segmentDurationPercent+"%"}},_.V("div",{class:_.IP("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.V("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.V("div",null," ",function(){return A().segmentLabel})),_.V("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.V("div",{class:_.IP("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.V(_.J,{cond:function(){return!P()&&A().startPercent},
then:function(){var E={};return _.V("div",{class:_.IP("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(E.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.v("web_enable_modern_progress_bar_overlay"),E))},_.V("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+A().startPercent+"%"}}))}}))},"X");
WWf.idomCompat=!0;var j5G=_.E5(function(R){var A=_.yJ(),Y=_.aE(function(E){var z,c,M;a:{var N=(z=R.data())==null?void 0:z.animationActivationTargetId;z=((c=R.data())==null?void 0:c.animationActivationEntityKey)||"";c=(M=R.data())==null?void 0:M.animationActivationEntitySelectorType;if(z&&N)switch(c){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":E=_.mc(E.entities,"playerStateEntity",z);M=_.is().resolve(_.z3(_.jv));N=!!(E&&E.videoId===N&&(M==null?0:M.isMiniplayerActive()));N={activated:N,playAnimation:N&&
E.playerState==="PLAYER_STATE_PLAYING"};break a}N=void 0}return N});
_.jq(function(){var E;if((E=Y())==null?0:E.activated){var z;if((z=Y())==null?0:z.playAnimation){var c;(c=A.lottieEl)==null||c.goToAndPlay(0)}else{var M;(M=A.lottieEl)==null||M.goToAndStop(0)}}},"DbQiXd");
var P=function(){var E,z=!((E=Y())==null||!E.activated);if(R.data()){E=R.data();var c=void 0;E.icon&&(c=_.Xhl(E.icon),c=fKb(c));var M=void 0,N;if((N=E.backgroundColor)==null?0:N.lightTheme){var y;M={backgroundColor:tf((y=E.backgroundColor)==null?void 0:y.lightTheme,"0.8")}}if(E.text||c||z){if(z&&E.lottieData&&A){y=E.lottieData;var m,T,Q;N={animationConfig:{name:y.url,path:y.url,autoplay:(m=y.settings)==null?void 0:m.autoplay,loop:(Q=(T=y.settings)==null?void 0:T.loop)!=null?Q:!0},animationRef:A}}else N=
void 0;if(z)m=17;else b:switch(E.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":m=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":m=19;break b;default:m=17}z={type:m,text:z&&E.animatedText?E.animatedText:E.text,icon:c,customColors:M,animation:N}}else z=void 0}else z=void 0;return z};
return _.V("yt-thumbnail-badge-view-model",{class:_.To("ytThumbnailBadgeViewModelHost",R.class)},_.V(_.J,{cond:P,then:function(){return _.V(_.Pl,{data:function(){return P()}})}}))},"Y");var bEz=_.E5(function(R){var A={},Y={};return _.V("yt-thumbnail-bottom-overlay-view-model",{class:_.To("ytThumbnailBottomOverlayViewModelHost",(A.ytThumbnailBottomOverlayViewModelHostBackground=function(){return R.data().enableGradientBackground},A))},_.V(_.ni,{data:function(){return R.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(P){return _.V(WWf,{data:P.data,
thumbnailSize:R.thumbnailSize})}}),_.V("div",{class:_.To("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var P;
return uAu((P=R.thumbnailSize)==null?void 0:P.call(R))},(Y.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var P;
return(P=R.isClip)==null?void 0:P.call(R)},Y.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var P;
return!_.v("web_enable_modern_progress_bar_overlay")&&((P=R.thumbnailSize)==null?void 0:P.call(R))==="small"},Y))},_.V(_.ni,{data:function(){return R.data().badge}},{thumbnailBadgeViewModel:function(P){return _.V(j5G,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.V(_.ni,{data:function(){return R.data().badges}},{thumbnailBadgeViewModel:function(P){return _.V(j5G,{data:P.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Z");
bEz.idomCompat=!0;_.Ow(bEz,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.xL,thumbnailSize:_.xL,isClip:_.xL}});var zJS={calledOnce:!1,state:"visible"},iEk={calledOnce:!1,state:"hidden"};var en=_.E5(function(R){var A=R.data;var Y=R.className;R=R.alwaysShow;var P=_.LH8(),E={};return _.V("thumbnail-hover-overlay-view-model",{el:_.zo(_.fi(function(){return A().rendererContext})),
class:_.To("ytThumbnailHoverOverlayViewModelHost",Y,(E.ytThumbnailHoverOverlayViewModelHostForceHover=R,E)),"aria-label":function(){var z;return(z=_.n(A().rendererContext,_.Kd))==null?void 0:z.label},
role:function(){return _.jd(A().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.jd(A().rendererContext)!==void 0?0:void 0},
"on:keypress":P},_.V("div",{class:_.To("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(A().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var z="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:z="ytThumbnailHoverOverlayViewModelStyleCover"}return z})},_.V(_.J,{cond:function(){return A().icon},
then:function(z){return _.V(_.P1,{data:z,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.V(_.J,{cond:function(){return A().text},
then:function(z){return _.V(_.NU,{text:z,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"$");
en.idomCompat=!0;var f6b=_.E5(function(R){var A=R.data;return _.V(_.ni,{data:function(){return A==null?void 0:A().overlays}},{thumbnailHoverOverlayViewModel:en})},"aa");
f6b.idomCompat=!0;var pQ7={};var FWS=_.E5(function(R){var A=R.data;var Y=R.image;var P=R.state;var E=R.iconType;var z=R.overlays;var c=R.isOverlay;var M=_.d5("div");R=_.x(_.yy(!0,void 0,"AA4e7b"));var N=R.next().value,y=R.next().value,m=function(){return!!A().onTap},T=_.Y9(E,"LIVE");
_.jq(function(){var g=A();requestAnimationFrame(function(){if(M.value===null)var r=!0;else{var I=M.value;r=g.badgeText;var b=cPS(g.size);r in pQ7?I=pQ7[r]:(I=I.clientWidth,pQ7[r]=I);(r=I>b)?M.value.style.display="none":M.value.style.visibility="visible"}y(r)})},"vNdN8b");
var Q=function(){var g={};return g["yt-spec-avatar-shape__image"]=!0,g["yt-spec-avatar-shape__image--ads-app"]=A().type===1,g["yt-spec-avatar-shape__image--square"]=A().type===2,g};
return _.V("yt-avatar-shape",null,_.V("div",{el:_.zo(Mfb(m,{keydown:function(g){if(g.key==="Enter"){var r;(r=g.currentTarget)==null||r.click()}},
click:function(g){var r,I;return void((I=(r=A()).onTap)==null?void 0:I.call(r,g))}})),
class:function(){var g={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},r=A();g=(g[r.clusterLayoutConfig?Vfk(r.clusterLayoutConfig):JPk(r.size)]=!0,g["yt-spec-avatar-shape__button--tappable"]=m(),g);(r=A().avatarButtonCustomClassName)&&(g[r]=!0);return _.IP(g)},
"aria-label":function(){return m()?A().accessibilityText:""},
role:function(){return m()?"button":void 0},
tabindex:function(){return m()?0:void 0}},_.V("div",{class:function(){var g,r=A(),I=P==null?void 0:P(),b=c==null?void 0:c(),p=!((g=r.decorations)==null||!g.includes(2)||r.size!=="medium"&&r.size!=="large"),h=r.size==="tiny"||r.size==="extra-small",L,Z,w,t,d={};
g=(d["yt-spec-avatar-shape--live-ring"]=!!(((L=r.decorations)==null?0:L.includes(0))&&m$l(r.size)),d["yt-spec-avatar-shape--stories-watched"]=p&&!(I==null||!I.storiesWatched),d["yt-spec-avatar-shape--stories-unwatched"]=p&&!(I==null?0:I.storiesWatched),d["yt-spec-avatar-shape--background-border"]=TO6(r.decorations)&&!h,d["yt-spec-avatar-shape--background-border-thin"]=TO6(r.decorations)&&h,d["yt-spec-avatar-shape__on-select-border"]=!((Z=r.decorations)==null||!Z.includes(4)),d["yt-spec-avatar-shape__white-border"]=
!((w=r.decorations)==null||!w.includes(5)),d["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((t=r.decorations)==null?0:t.includes(5))&&h),d["yt-spec-avatar-shape--is-overlay"]=!!b,d);return _.IP(g)},
style:function(){a:{var g=A().clusterLayoutConfig;if(g){b:{var r=g.numAvatarsInCluster;var I=g.avatarIndex;if(I!==r-1){switch(g.clusterSize){case "small":g="32";break;case "medium":g="36";break;case "40":g="40";break;default:r=void 0;break b}r="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+g+"x"+g+"_avatars_"+r+"_index_"+I+".svg"}else r=void 0}if(r){r=_.nY({"-webkit-mask-image":"url("+r+")","mask-image":"url("+r+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}r=void 0}return r}},_.V("div",{class:function(){var g={};
var r=A();g=(g[r.clusterLayoutConfig?s5P(r.clusterLayoutConfig):NOq(r.size)]=!0,g["yt-spec-avatar-shape--no-margin"]=TO6(A().decorations),g);return _.IP(g)}},_.V(_.P1,{data:Y,
alt:function(){return!m()&&A().accessibilityText?A().accessibilityText:""},
targetWidth:function(){return yPk(A().size)},
targetHeight:function(){return yPk(A().size)},
className:function(){return _.IP(Q())}}),_.V(_.J,{cond:function(){var g;
return((g=A().decorations)==null?void 0:g.includes(0))&&m$l(A().size)},
then:function(){return _.V("div",{class:function(){var g={};g=(g["yt-spec-avatar-shape__live-badge"]=!0,g["yt-spec-avatar-shape__live-badge--badge-small"]=A().size==="small",g["yt-spec-avatar-shape__live-badge--badge-medium"]=A().size==="medium"||A().size==="48",g["yt-spec-avatar-shape__live-badge--badge-large"]=A().size==="large",g["yt-spec-avatar-shape__live-badge--badge-extra-large"]=A().size==="extra-large"||A().size==="extra-extra-large"||A().size==="giant",g);return _.IP(g)}},_.V(_.J,{cond:function(){return A().badgeText},
then:function(g){return _.V("div",{class:"yt-spec-avatar-shape__badge-text",el:M},g)}}),_.V(_.J,{cond:N,
then:function(){return _.V("div",{class:"yt-spec-avatar-shape__badge-icon"},_.V(_.H1,{icon:T,size:function(){a:switch(A().size){case "extra-large":var g=16;break a;default:g=13}return g}}))}}))}}),_.V(_.J,{cond:function(){var g,r;
return((g=A().decorations)==null?void 0:g.includes(1))||((r=A().decorations)==null?void 0:r.includes(0))&&!m$l(A().size)},
then:function(){return _.V("div",{class:function(){var g=A(),r,I,b={};var p=(b["yt-spec-avatar-shape__live-dot"]=!((r=g.decorations)==null||!r.includes(0)||m$l(g.size)),b["yt-spec-avatar-shape__new-content"]=!((I=g.decorations)==null||!I.includes(1)),b);return _.IP(p)}})}}),_.V(_.J,{cond:function(){return!!z},
then:function(){return _.V("div",{class:function(){var g={};g=Object.assign((g["yt-spec-avatar-shape__image-overlays"]=!0,g),Q());return _.IP(g)}},z==null?void 0:z())}})))))},"ba");
FWS.idomCompat={callbacks:{overlays:!0}};_.qW=_.E5(function(R){function A(){Y().endpoint&&_.Zc(Y().endpoint)}
var Y=R.data;var P=R.decorations;var E=R.avatarButtonCustomClassName;var z=R.isOverlay;var c=R.clusterLayoutConfig;return _.V("avatar-view-model",null,_.V(_.J,{cond:function(){return Y().image},
then:function(M){return _.V(FWS,{data:function(){return v1l({data:Y(),onTap:Y().endpoint?A:void 0,decorations:P==null?void 0:P(),badgeText:void 0,accessibilityText:Y().accessibilityText,avatarButtonCustomClassName:E==null?void 0:E(),clusterLayoutConfig:c==null?void 0:c()})},
image:M,iconType:"RADAR_LIVE",overlays:function(){return _.V(f6b,{data:Y})},
isOverlay:z})}}))},"ca");
_.qW.idomCompat=!0;_.LP=_.E5(function(R){var A=R.data;R=R.className;var Y=_.d5("yt-decorated-avatar-view-model"),P=function(){return _.n(A().avatar,_.pi)},E=_.gE(function(){var z,c=A(),M=P(),N=_.jd(A().rendererContext),y=(z=Y.value)!=null?z:void 0,m;
if(M){y={data:c,avatar:M,onTap:N,element:y};z=y.data;c=y.avatar;M=y.onTap;N=y.element;y=y.commandController;M=M?rPV(M,N,y):void 0;N=[];z.liveData&&N.push(0);var T;y=(T=z.liveData)==null?void 0:T.liveBadgeText;T=(m=_.n(z.rendererContext,_.Kd))==null?void 0:m.label;m=v1l({data:c,onTap:M,decorations:N,badgeText:y,accessibilityText:T?T:z.a11yLabel})}else m={size:"medium"};return m},void 0,"c00kWd");
return _.V("yt-decorated-avatar-view-model",{class:_.To("ytDecoratedAvatarViewModelHost",R),el:Y},_.V(_.J,{cond:function(){var z;return(z=P())==null?void 0:z.image},
then:function(z){return _.V(FWS,{data:E,image:z,iconType:"RADAR_LIVE",overlays:function(){return _.V(f6b,{data:P})}})}}))},"da");
_.LP.idomCompat=!0;_.d7=_.E5(function(R){var A=function(){var M;return Object.assign({},R.data(),(M=R.overrides)==null?void 0:M.call(R))},Y=function(){return _.bc(A().rendererContext)},P=function(){var M=A().avatars,N,y;
return(y=(N=(M==null?0:M[0])?_.n(M[0],_.pi):void 0)==null?void 0:N.avatarImageSize)!=null?y:"AVATAR_SIZE_UNKNOWN"},E=function(){return HEk(A())},z=function(){if(A().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var M=void 0;
else if((M=R.decorations)==null?0:M.call(R))M=R.decorations();else{M=A();var N=0;M.avatars&&(N+=M.avatars.length);M.decoratedText&&(N+=1);M=N>1?[3]:[]}return M},c={};
return _.V("yt-avatar-stack-view-model",{el:_.zo(_.fi(function(){return A().rendererContext})),
class:_.To("yt-avatar-stack-view-model-wiz",R.className,(c["yt-avatar-stack-view-model-wiz--tappable"]=Y,c["yt-avatar-stack-view-model-wiz--is-overlay"]=R.isOverlay,c["yt-avatar-stack-view-model-wiz--medium-text"]=R.useMediumText,c)),tabindex:function(){return Y()?0:void 0},
role:function(){return Y()?"link":void 0},
"aria-label":function(){var M,N;return(N=(M=_.n(A().rendererContext,_.Kd))==null?void 0:M.label)!=null?N:""}},_.V(_.J,{cond:function(){var M;
return A().avatars&&!((M=R.hideAvatar)==null?0:M.call(R))},
then:function(){return _.V("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.V(_.J,{cond:function(){return A().decoratedText},
then:function(M){var N={};return _.V("div",{class:_.To("yt-avatar-stack-view-model-wiz__text-container",(N["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return P()==="AVATAR_SIZE_XXS"||P()==="AVATAR_SIZE_XS"},N["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var y;
return((y=R.isOverlay)==null?void 0:y.call(R))&&(P()==="AVATAR_SIZE_XXS"||P()==="AVATAR_SIZE_XS")},N)),
style:_.nY({width:function(){return E().avatarSizeInPx+"px"},
height:function(){return E().avatarSizeInPx+"px"}})},_.V(_.NU,{text:M,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.V("div",{style:function(){return _.nY(E().avatarStackStyle)()},
class:function(){return E().avatarStackClass}},_.V(_.ni,{data:function(){return E().avatars.reverse()}},{avatarViewModel:function(M,N){return _.V("div",{style:function(){var y,m;
return _.nY((m=(y=E()).avatarStyle)==null?void 0:m.call(y,N()))()},
class:function(){return E().avatarClass}},_.V(_.qW,{data:M.data,
decorations:z,avatarButtonCustomClassName:function(){return E().avatarButtonCustomClassName},
isOverlay:R.isOverlay,clusterLayoutConfig:function(){var y,m;return(m=(y=E()).clusterLayoutConfig)==null?void 0:m.call(y,N())}}))},
decoratedAvatarViewModel:function(M,N){return _.V("div",{style:function(){var y,m;return _.nY((m=(y=E()).avatarStyle)==null?void 0:m.call(y,N()))()},
class:function(){return E().avatarClass}},_.V(_.LP,{data:M.data}))}})))}}),_.V(_.J,{cond:function(){return A().text},
then:function(M){return _.V(_.NU,{text:M,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"ea");
_.d7.idomCompat=!0;_.Ow(_.E5(function(R){var A=R.data;var Y=R.thumbnailSize;return _.V("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.V("div",{class:_.To("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return D$8(Y==null?void 0:Y())})},_.V(_.ni,{data:function(){return A().avatarStack}},{avatarStackViewModel:function(P){return _.V(_.d7,{data:P.data,
decorations:[5]})}})))},"fa"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.VY,
thumbnailSize:_.VY}});var BOf=_.E5(function(R){R=_.Pc(R,{hidden:!1});var A=R.data;return _.V("yt-thumbnail-overlay-title-view-model",{class:"ytThumbnailOverlayTitleViewModelHost",hidden:R.hidden},_.V(_.NU,{text:function(){return A().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.V(_.J,{cond:function(){return A().subtitle},
then:function(){return _.V(_.NU,{text:function(){return A().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}}))},"ga");
BOf.idomCompat=!0;_.Ow(BOf,"yt-thumbnail-overlay-title-view-model",{props:{data:_.VY,hidden:_.VY}});var a6A=_.E5(function(R){R=_.Pc(R,{isClip:!1});var A=R.data,Y=R.thumbnailSize,P={};return _.V("yt-thumbnail-overlay-badge-view-model",{class:_.To("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(A().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var E="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:E="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return E},function(){return U$P(Y==null?void 0:Y())},(P["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
R.isClip,P))},_.V(_.ni,{data:function(){return A().thumbnailBadges}},{thumbnailBadgeViewModel:function(E){return _.V(j5G,{data:E.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"ha");
a6A.idomCompat=!0;_.Ow(a6A,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.VY,thumbnailSize:_.VY,isClip:_.VY}});var CzS=_.E5(function(R){var A=R.data;R=R.hidden;var Y=_.gE(function(){return A().indicatorCount||0},void 0,"AbKnMc"),P={};
return _.V("yt-page-indicator-view-model",{class:_.To("ytPageIndicatorViewModelHost",(P.ytPageIndicatorViewModelIndicatorHidden=function(){return!A().indicatorCount},P)),
hidden:R},_.V(_.Ue,{each:function(){return Array(Y())}},function(E,z){var c={};
return _.V("div",{class:_.To("ytPageIndicatorViewModelIndicator",(c.ytPageIndicatorViewModelIndicatorSelected=function(){return A().selectedIndex===z()},c))})}))},"ia");
CzS.idomCompat=!0;_.Ow(CzS,"yt-page-indicator-view-model",{props:{data:_.VY,hidden:_.VY}});var RU=function(){var R=_.K.apply(this,arguments)||this;R.eventSink=function(){return R};
R.disableInteraction=!1;R.noRoundedCorners=!1;R.isPreviewLoading=!1;R.isOriginalAspectRatio=!1;R.computedObjectFit=!1;R.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return R};
_.H(RU,_.K);_.l=RU.prototype;
_.l.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:_.v("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"}}};
_.l.onImageLoaded=function(){this.loaded=!0};
_.l.onImageUnloaded=function(){this.loaded=!1};
_.l.computeRichThumbnail=function(R,A,Y,P){if(R&&A&&!P&&!_.v("disable_moving_thumbs_handling")&&!Y)return A};
_.l.computeImageWidth=function(R,A){return A||9999};
_.l.computeIsOriginalAspectRatio=function(R){return R};
_.l.computeIsLive=function(R){if(R==null?0:R.badges)for(var A=0;A<R.badges.length;A++){var Y=R.badges[A];if(Y.metadataBadgeRenderer&&Y.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(R==null?0:R.thumbnailOverlays)for(A=0;A<R.thumbnailOverlays.length;A++)if(Y=R.thumbnailOverlays[A],Y.thumbnailOverlayTimeStatusRenderer&&Y.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.l.computeObjectFit=function(R,A){return A||(R?"CONTAIN":"")};
_.l.computeNavigationEndpoint=function(R,A,Y){return R?A:Y};
_.l.computeHasClip=function(R){R=_.x(R||[]);for(var A=R.next();!A.done;A=R.next())if(A.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.l.computeOverlayColor=function(R){var A;return(R==null?0:(A=R.darkColorPalette)==null?0:A.section2Color)?R.darkColorPalette.section2Color:R==null?void 0:R.sampledThumbnailColor};
_.Yh.Object.defineProperties(RU.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Y1P(this.width)}}});
RU.prototype.onImageUnloaded=RU.prototype.onImageUnloaded;RU.prototype.onImageLoaded=RU.prototype.onImageLoaded;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],RU.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],RU.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(QDS),_.k("design:type",Object)],RU.prototype,"ytdThumbnailBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],RU.prototype,"componentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],RU.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],RU.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],RU.prototype,"circular",void 0);
_.C([_.S({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.k("design:type",Object)],RU.prototype,"richThumbnail",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.k("design:type",Boolean)],RU.prototype,"hasClip",void 0);_.C([_.S(),_.k("design:type",Object)],RU.prototype,"eventSink",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],RU.prototype,"queued",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],RU.prototype,"richGridThumbnail",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],RU.prototype,"useExpandableTooltip",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],RU.prototype,"useUntranslatedNavigationEndpoint",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],RU.prototype,"disableInteraction",void 0);
_.C([_.S({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.k("design:type",Object)],RU.prototype,"computedNavigationEndpoint",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],RU.prototype,"nowPlayingEqualizerOnly",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],RU.prototype,"hidePlaybackStatus",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],RU.prototype,"objectFit",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],RU.prototype,"noRoundedCorners",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],RU.prototype,"watchFeedThumbnail",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],RU.prototype,"isPreviewLoading",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.k("design:type",Object)],RU.prototype,"isOriginalAspectRatio",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.k("design:type",Object)],RU.prototype,"computedObjectFit",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.k("design:type",Boolean)],RU.prototype,"isLiveVideo",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],RU.prototype,"loaded",void 0);_.C([_.S({computed:"computeOverlayColor(data.thumbnail)"}),_.k("design:type",Object)],RU.prototype,"overlayColor",void 0);_.C([_.S({selector:_.Prk}),_.k("design:type",Boolean)],RU.prototype,"inlinePreviewIsEnabled",void 0);_.C([_.S(),_.k("design:type",Number)],RU.prototype,"width",void 0);
_.C([_.X("inlinePreviewIsEnabled"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],RU.prototype,"isPreviewDisabled",null);_.C([_.X("width"),_.k("design:type",String),_.k("design:paramtypes",[])],RU.prototype,"thumbnailSize",null);_.C([_.Qa("image-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RU.prototype,"onImageLoaded",null);
_.C([_.Qa("image-unloaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RU.prototype,"onImageUnloaded",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-thumbnail"})],RU);
var hJD=_.s5()(RU,"ytd-thumbnail",function(){if(KWH===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);KWH=R}R=KWH;return R},{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 SGI=function(R){var A=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$14904_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$14904_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(Y){o17(A,Y)};
this.onLockupMouseLeaveFn=function(Y){Y=Y.relatedTarget;var P,E;((P=document.getElementsByTagName("ytd-video-preview"))==null?0:(E=P.item(0))==null?0:E.contains(Y))||(A.terminateVideoPreview(),Aj(A))};
this.onThumbnailMouseDownFn=function(){A.terminateVideoPreview();Aj(A)};
this.onTouchStart=function(){A.JSC$14904_touched=!0};
this.mediaRenderer=R.mediaRenderer;this.thumbnailElement=R.thumbnailElement;this.lockupElement=R.lockupElement;this.videoPreviewOptsInput=R.videoPreviewOpts;kBb(this);YE(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)):
_.pK(Error("Eh")):_.pK(Error("Fh")):GBN(this)},ux=function(R){GBN(R);
var A;(A=R.lockupElement)==null||A.removeEventListener("mouseenter",R.onMouseMoveFn);var Y;(Y=R.lockupElement)==null||Y.removeEventListener("mouseleave",R.onLockupMouseLeaveFn);var P;(P=R.lockupElement)==null||P.removeEventListener("touchstart",R.onTouchStart);var E;(E=R.thumbnailElement)==null||E.removeEventListener("mousedown",R.onThumbnailMouseDownFn);Aj(R)},kBb=function(R){R.inlinePreviewIsEnabledForUser=_.Yp().getState().ui.inlinePreviewIsEnabled;
R.unsubscribeFromInlinePreviewIsEnabled=_.Fq(_.Yp(),_.Prk,function(A){(R.inlinePreviewIsEnabledForUser=A)||Aj(R)});
R.JSC$14904_unsubscribeFromInlinePreviewIsActive=_.Fq(_.Yp(),_.YVl,function(A){(R.inlinePreviewIsActive=A)||Aj(R)})},GBN=function(R){R.unsubscribeFromInlinePreviewIsEnabled();
R.unsubscribeFromInlinePreviewIsEnabled=function(){};
R.JSC$14904_unsubscribeFromInlinePreviewIsActive();R.JSC$14904_unsubscribeFromInlinePreviewIsActive=function(){}},o17=function(R,A){A.buttons>0||(A=_.cU("kevlar_lockup_hover_delay",-1),R.JSC$14904_touched&&A>=0?(_.fn.cancelJob(R.videoPreviewJobId),R.videoPreviewJobId=_.JM(_.fn,function(){ZEz(R)},A),R.JSC$14904_touched=!1):ZEz(R))},OkP=function(R){R.videoPreviewJobId=_.JM(_.fn,function(){return _.O(function(A){return A.yield(tfG(R,{isAutoplay:!0}),0)})})},ZEz=function(R){!R.previewTriggered&&YE(R)&&
(R.inlinePreviewIsActive&&R.terminateVideoPreview(),R.previewTriggered=!0,R.mediaRenderer.isInlinePreviewTriggered=!0,_.fn.cancelJob(R.videoPreviewJobId),R.videoPreviewJobId=_.JM(_.fn,function(){return _.O(function(A){return A.yield(tfG(R),0)})}))},tfG=function(R,A){A=A===void 0?{}:A;
var Y=A.isAutoplay===void 0?!1:A.isAutoplay;var P,E,z,c;return _.O(function(M){if(M.nextAddress==1){if(!YE(R))return M.return();P=R.getVideoPreviewOpts();if(!P)return M.return();Y&&(P.isAutoplay=!0);return(z=(E=_.MT(R.mediaRenderer.hostElement,"yt-open-video-preview-action",[P]))&&E[0])?M.yield(E[0],3):M.jumpTo(2)}M.nextAddress!=2&&(z=M.yieldResult===1);if(z){var N=(c=R.mediaRenderer)==null?void 0:c.data;N&&(XQJ(N)?delete N.inlinePlayerData:"inlinePlaybackEndpoint"in N&&delete N.inlinePlaybackEndpoint)}_.XH(M)})};
SGI.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var R,A;if((A=(R=this.videoPreviewOptsInput)==null?void 0:R.videoPreviewData)!=null)R=A;else if(R=this.mediaRenderer.data)if(XQJ(R))R={inlinePlaybackEndpoint:_.h7(R.inlinePlayerData.onVisible),navigationEndpoint:_.h7(R.onTap),thumbnail:"image"in R?R.image:R.thumbnail,thumbnailOverlays:void 0,accessibilityText:$$q(R)};else if("multipleInlinePlaybackEndpoint"in R){var Y=_.n(_.n(R.multipleInlinePlaybackEndpoint,awS),Cd7);if(Y!=
null&&Y.playerDescriptors){A=[];Y=_.x(Y.playerDescriptors);for(var P=Y.next();!P.done;P=Y.next())P=P.value,A.push({inlinePlaybackEndpoint:P.inlinePlaybackEndpoint,navigationEndpoint:P.navigationEndpoint,thumbnail:P.thumbnail,thumbnailOverlays:P.thumbnailOverlays,accessibilityText:$$q(R)});R=A}else R=void 0}else R={inlinePlaybackEndpoint:R.inlinePlaybackEndpoint,navigationEndpoint:R.navigationEndpoint,thumbnail:R.thumbnail,thumbnailOverlays:R.thumbnailOverlays,accessibilityText:$$q(R)};else R=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:R,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var YE=function(R){var A;if(A=R.inlinePreviewIsEnabledForUser)A=(R=R.mediaRenderer.data)?"inlinePlaybackEndpoint"in R&&R.inlinePlaybackEndpoint||XQJ(R)&&R.inlinePlayerData||"multipleInlinePlaybackEndpoint"in R&&R.multipleInlinePlaybackEndpoint?!0:!1:!1;return A};
SGI.prototype.terminateVideoPreview=function(){_.OC(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Aj=function(R){_.fn.cancelJob(R.videoPreviewJobId);R.inlinePreviewIsActive=!1;R.previewTriggered=!1;R.mediaRenderer.isInlinePreviewTriggered=!1};var wQf=_.Z7(["#"]),Po=function(){var R=_.K.apply(this,arguments)||this;R.isDisabled=!1;return R};
_.H(Po,_.K);_.l=Po.prototype;_.l.configureRendererStamper=function(){return{"data.menu":pP,"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"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.getMetadata=function(R){var A=[];if(R.metadataText&&Object.keys(R.metadataText).length>0){var Y=this.ytRendererBehavior.getSimpleString(R.metadataText);R.upcomingEventData&&R.upcomingEventData.upcomingEventText&&(Y=_.Xk(Y,Number(R.upcomingEventData.startTime)));A.push(Y)}else R.shortViewCountText&&A.push(this.ytRendererBehavior.getSimpleString(R.shortViewCountText)),R.publishedTimeText&&A.push(this.ytRendererBehavior.getSimpleString(R.publishedTimeText)),R.upcomingEventData&&R.upcomingEventData.upcomingEventText&&
(Y=this.ytRendererBehavior.getSimpleString(R.upcomingEventData.upcomingEventText),A.push(_.Xk(Y,Number(R.upcomingEventData.startTime))));return A};
_.l.calculateBylineText=function(R){return R.shortBylineText?R.shortBylineText:R.bylineText?R.bylineText:null};
_.l.calculateIsDisabled=function(R){return!!R.isDisabled};
_.l.computeHrefWithDefault=function(R){return this.ytComponentBehavior.computeHref_(R)||_.AOk(wQf)};
_.l.onDetailsTap=function(R){var A=this.data&&this.data.navigationEndpoint;A&&!_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.v("kevlar_grid_video_renderer_killswitch")?_.xo(this.hostElement,"yt-navigate",{endpoint:A}):this.ytComponentBehavior.resolveCommand(A))};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14911_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:_.Mo(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Mo(this.hostElement).querySelector("ytd-thumbnail")})};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$14911_inlinePreviewHoverListener)==null||ux(R)};
_.l.computeThumbnailWidth=function(R,A){return A&&A>0?A:R?360:210};
_.l.computeShowChannelThumbnail=function(R,A){var Y;return A&&!!(R==null?0:(Y=R.channelThumbnailSupportedRenderers)==null?0:Y.channelThumbnailWithLinkRenderer)};
_.Yh.Object.defineProperties(Po.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$14911_inlinePreviewHoverListener)==null?0:YE(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Po.prototype.dataChanged=Po.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Po.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Po.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.sH),_.k("design:type",Object)],Po.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Po.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Po.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],Po.prototype,"noEndpoints",void 0);_.C([_.S({computed:"calculateBylineText(data)"}),_.k("design:type",Object)],Po.prototype,"bylineText",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Po.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Po.prototype,"isDownloading",void 0);_.C([_.S({reflectToAttribute:!0,value:0}),_.k("design:type",Number)],Po.prototype,"width",void 0);_.C([_.S({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.k("design:type",Object)],Po.prototype,"isDisabled",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Po.prototype,"dataChanged",null);_.C([_.X("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Po.prototype,"isHovered",null);_.C([_.F({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Po);
_.B(Po,"ytd-grid-video-renderer",function(){if(Q5f!==void 0)return Q5f;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Q5f=R},{mode:_.Nf("kevlar_poly_si_batch_j047")?1:2});var uUG;var Em=function(){var R=_.K.apply(this,arguments)||this;R.roundedContainer=!0;R.skipRoundingTop=!1;R.disableTopPadding=!1;R.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");return R};
_.H(Em,_.K);Em.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Em.prototype.onClick=function(R){var A,Y=(A=this.data)==null?void 0:A.sourceEndpoint;!_.RP(_.Ah(R),this.hostElement,["A".toString()])&&Y&&_.xo(this.hostElement,"yt-navigate",{endpoint:Y})};
_.Yh.Object.defineProperties(Em.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 R;return!((R=this.data)==null||!R.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=(R=this.data)==null?void 0:R.paragraphMaxLines)!=null?A:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Em.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Em.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Em.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Em.prototype,"showVerticalDividers",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Em.prototype,"roundedContainer",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Em.prototype,"skipRoundingTop",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Em.prototype,"disableTopPadding",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Em.prototype,"amsterdamEnabled",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Em.prototype,"showMetadataAtTop",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Em.prototype,"showMetadataBelowTitle",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],Em.prototype,"hasMenu",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.truncateParagraphs"),_.k("design:type",Object),_.k("design:paramtypes",[])],Em.prototype,"truncateParagraphs",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data.paragraphMaxLines"),_.k("design:type",Number),_.k("design:paramtypes",[])],Em.prototype,"paragraphMaxLines",null);_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.X("data.background"),_.k("design:type",Object),_.k("design:paramtypes",[])],Em.prototype,"background",null);_.C([_.F({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Em);
_.B(Em,"ytd-info-panel-content-renderer",function(){if(uUG!==void 0)return uUG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return uUG=R},{mode:_.Nf("kevlar_poly_si_batch_j076")?1:2});var eJb;var qGH;var LWZ;var d$S;var z1=function(){return _.K.apply(this,arguments)||this};
_.H(z1,_.K);z1.prototype.computeStyle=function(R){return R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],z1.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],z1.prototype,"style_",void 0);_.C([_.CG({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],z1);
_.B(z1,"yt-channel-thumbnail-with-link-renderer",function(){if(d$S===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;LWZ===void 0&&(LWZ=document.createElement("template"));var P=LWZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);d$S=R}R=d$S;return R},{mode:2});var lf=function(){var R=_.K.apply(this,arguments)||this;R.modernTypography=_.v("web_modern_typography");return R};
_.H(lf,_.K);lf.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"}}}};
lf.prototype.computeTitleStyle=function(R){return R||null};
lf.prototype.computeAvatarStyle=function(R){return R||null};
lf.prototype.computeShowNavigationButton=function(R,A){return!(R==null||!R.navigationButton||A)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lf.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.k("design:type",String)],lf.prototype,"titleStyle",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.k("design:type",String)],lf.prototype,"avatarStyle",void 0);_.C([_.S(),_.k("design:type",Boolean)],lf.prototype,"hideNavigationButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],lf.prototype,"isModernSd",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],lf.prototype,"modernTypography",void 0);
_.C([_.F({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],lf);
_.B(lf,"ytd-rich-list-header-renderer",function(){if(qGH!==void 0)return qGH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qGH=R},{mode:_.Nf("kevlar_poly_si_batch_j058")?1:2});var xE=function(){return _.K.apply(this,arguments)||this};
_.H(xE,_.K);xE.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]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],xE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xE.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],xE.prototype,"isSearch",void 0);_.C([_.F({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],xE);
_.B(xE,"ytd-preview-card-renderer",function(){if(eJb!==void 0)return eJb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return eJb=R},{mode:1});var RFq;var co=function(){return _.K.apply(this,arguments)||this};
_.H(co,_.K);co.prototype.configureRendererStamper=function(){return{"data.menu":pP}};
co.prototype.dataChanged=function(){var R=this.get("colorExtractionPalette.section1Color",this.data);R=_.G9(R);_.ya(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":R})};
co.prototype.computeCardStyle=function(R){return this.get("style.value",R)||null};
co.prototype.dataChanged=co.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],co.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],co.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.k("design:type",String)],co.prototype,"cardStyle",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],co.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],co);
_.B(co,"ytd-compact-channel-recommendation-card-renderer",function(){if(RFq!==void 0)return RFq;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return RFq=R},{mode:1});var AFS;var YzG;var Om=function(){var R=_.K.apply(this,arguments)||this;R.alignAuto=!1;R.collapsed=!0;R.isToggled=!1;R.alwaysCollapsed=!1;R.canToggle=!0;R.collapsedHeight=80;R.disableToggle=!1;R.alwaysToggleable=!1;R.reversed=!1;R.shouldUseNumberOfLines=!1;R.recomputeOnResize=!1;R.canToggleJobId=0;R.lastReversed=!1;return R};
_.H(Om,_.K);_.l=Om.prototype;_.l.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.l.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.l.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var R=_.Mo(this.hostElement),A=R.childNodes,Y=document.createDocumentFragment(),P=R.childNodes.length-1;P>=0;P--)_.Mo(Y).appendChild(A[P]);_.v("enable_shadydom_free_scoped_node_methods")?_.sl(this.hostElement).appendChild(Y):R.appendChild(Y)}};
_.l.ready=function(){var R=this;_.wg(function(){R.initChildrenObserver()},1)};
_.l.attached=function(){var R;(R=this.resizeObserver)==null||R.observe(this.content)};
_.l.detached=function(){this.detachObserver()};
_.l.toggle=function(R,A){this.canToggle&&(this.isToggled=A,_.xo(this.hostElement,"yt-refit"),R&&R.stopPropagation())};
_.l.reset=function(){this.childrenChanged()};
_.l.onIronResize=function(){this.recomputeOnResize&&!_.v("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.l.computeIsMoreVisible=function(R,A){return R&&!A};
_.l.computeShouldUseNumberOfLines=function(R){try{return!!R&&window.CSS.supports("-webkit-line-clamp","1")}catch(A){}return!1};
_.l.computeIsLessVisible=function(R,A){return R&&A};
_.l.observeCollapsedHeightAndMaxLines=function(){var R=this.collapsedHeight,A=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.ya(this.hostElement,{"--ytd-expander-max-lines":""+A,"--ytd-expander-collapsed-height":""}):_.ya(this.hostElement,{"--ytd-expander-collapsed-height":R+"px","--ytd-expander-max-lines":""})};
_.l.handleMoreTap=function(R){this.disableToggle||(_.xo(this.hostElement,"yt-expander-more-tapped"),this.toggle(R,!0))};
_.l.handleLessTap=function(R){_.xo(this.hostElement,"yt-expander-less-tapped");this.toggle(R,!1)};
_.l.initChildrenObserver=function(){var R=this;this.observer=new MutationObserver(function(){R.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.v("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.kH(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var A;(A=R.resizeThrottle)==null||A.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.l.childrenChanged=function(){var R=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Vi(function(){R.canToggleJobId=0;R.calculateCanCollapse()})}))};
_.l.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};
_.l.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.l.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("collapsed-changed",this.collapsed))};
_.l.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("is-toggled-changed",this.isToggled))};
_.l.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("can-toggle-changed",this.canToggle))};
_.Yh.Object.defineProperties(Om.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Om.prototype.canToggleChangedForBinding=Om.prototype.canToggleChangedForBinding;Om.prototype.isToggledChangedForBinding=Om.prototype.isToggledChangedForBinding;Om.prototype.collapsedChangedForBinding=Om.prototype.collapsedChangedForBinding;Om.prototype.observeCollapsedHeightAndMaxLines=Om.prototype.observeCollapsedHeightAndMaxLines;Om.prototype.onIronResize=Om.prototype.onIronResize;Om.prototype.reversedChanged=Om.prototype.reversedChanged;Om.prototype.toggledChanged=Om.prototype.toggledChanged;
Om.prototype.alwaysToggleableChanged=Om.prototype.alwaysToggleableChanged;_.C([_.U(_.Cr),_.k("design:type",Object)],Om.prototype,"ironResizableBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Om.prototype,"alignAuto",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Om.prototype,"collapsed",void 0);_.C([_.S(),_.k("design:type",Object)],Om.prototype,"isToggled",void 0);_.C([_.S(),_.k("design:type",Object)],Om.prototype,"alwaysCollapsed",void 0);
_.C([_.S(),_.k("design:type",Object)],Om.prototype,"canToggle",void 0);_.C([_.S(),_.k("design:type",Object)],Om.prototype,"collapsedHeight",void 0);_.C([_.S(),_.k("design:type",Object)],Om.prototype,"disableToggle",void 0);_.C([_.S(),_.k("design:type",Object)],Om.prototype,"alwaysToggleable",void 0);_.C([_.S(),_.k("design:type",Object)],Om.prototype,"reversed",void 0);_.C([_.S(),_.k("design:type",Number)],Om.prototype,"maxNumberOfLines",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.k("design:type",Object)],Om.prototype,"shouldUseNumberOfLines",void 0);_.C([_.S(),_.k("design:type",Object)],Om.prototype,"recomputeOnResize",void 0);_.C([_.nG("#content"),_.k("design:type",HTMLDivElement)],Om.prototype,"content",void 0);_.C([_.Ul("alwaysToggleable"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"alwaysToggleableChanged",null);
_.C([_.Ul("isToggled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"toggledChanged",null);_.C([_.X("canToggleJobId"),_.k("design:type",Object),_.k("design:paramtypes",[])],Om.prototype,"isResetting",null);_.C([_.vZ("reversed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"reversedChanged",null);
_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"onIronResize",null);_.C([_.vZ("maxNumberOfLines","collapsedHeight"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"observeCollapsedHeightAndMaxLines",null);_.C([_.vZ("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"collapsedChangedForBinding",null);
_.C([_.vZ("isToggled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"isToggledChangedForBinding",null);_.C([_.vZ("canToggle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Om.prototype,"canToggleChangedForBinding",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-expander"})],Om);
_.B(Om,"ytd-expander",function(){if(YzG!==void 0)return YzG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return YzG=R},{mode:1});var Mq=function(){return _.K.apply(this,arguments)||this};
_.H(Mq,_.K);Mq.prototype.computeIsCarousel=function(R){return!!R.isCarousel};
Mq.prototype.observeLightsourcePalette=function(){var R,A=(R=this.data)==null?void 0:R.vibrantsourceColorPaletteData;A&&_.W1(this.hostElement,A)};
Mq.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Mq.prototype.observeLightsourcePalette=Mq.prototype.observeLightsourcePalette;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Mq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Mq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Mq.prototype,"data",void 0);_.C([_.S({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Mq.prototype,"isCarousel",void 0);
_.C([_.vZ("data.vibrantsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mq.prototype,"observeLightsourcePalette",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],Mq);
_.B(Mq,"ytd-media-upsell-renderer",function(){if(AFS!==void 0)return AFS;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="EXPAND" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="COLLAPSE" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return AFS=R},{mode:2});var Pa8;var sm=function(){var R=_.K.apply(this,arguments)||this;R.JSC$14939_playerEvents=new Map;R.listeningToPlayer=!1;R.startX=0;R.active=!1;R.shouldShowButtons=_.v("web_buttons_hidden_killswitch");R.isHighlighted=!1;R.useHighlightStyling=_.v("web_enable_deeper_metadata_highlight_styling");R.modern=_.v("kevlar_modern_sd");R.enableProblemWalkthrough=_.v("problem_walkthrough_sd");return R};
_.H(sm,_.K);_.l=sm.prototype;
_.l.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}}}}}};
_.l.created=function(){this.JSC$14939_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.T2(this,this.onRepeatButtonToggle));_.v("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.T2(this,this.onActiveUpdate))};
_.l.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.T2(this,this.onRepeatButtonToggle));_.v("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.T2(this,this.onActiveUpdate))};
_.l.onDataChanged=function(){this.removePlayerListeners()};
_.l.onColorPaletteChange=function(){var R={},A;if(_.bk()==="USER_INTERFACE_THEME_DARK"&&((A=this.data)==null?0:A.darkColorPalette)){var Y=this.data.darkColorPalette;R["--ytd-macro-markers-list-item-background-color"]=_.Zs(this.get("section2Color",Y))}else{var P;_.bk()==="USER_INTERFACE_THEME_LIGHT"&&((P=this.data)==null?0:P.lightColorPalette)&&(Y=this.data.lightColorPalette,R["--ytd-macro-markers-list-item-background-color"]=_.Zs(this.get("section3Color",Y)))}Y?(R["--ytd-macro-markers-list-item-title-color"]=
_.Zs(this.get("primaryTitleColor",Y)),R["--ytd-macro-markers-list-item-secondary-color"]=_.Zs(this.get("secondaryTitleColor",Y)),R["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Zs(this.get("section1Color",Y)),this.customButtonProperties={customColors:{color:_.Zs(this.get("primaryTitleColor",Y))}},this.useColorSampling=!0):(R["--ytd-macro-markers-list-item-background-color"]="initial",R["--ytd-macro-markers-list-item-title-color"]="initial",R["--ytd-macro-markers-list-item-secondary-color"]=
"initial",R["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.ya(this.hostElement,R)};
_.l.onEndpointMouseDown=function(R){this.startX=R.clientX};
_.l.onEndpointClick=function(R){var A=this,Y,P,E;return _.O(function(z){if(z.nextAddress==1){if(A.startX!==R.clientX)return R.preventDefault(),z.return();A.data&&A.ytRendererBehavior.logExplicitClick(A.data);if(!A.seekWithAnimationOnClick)return z.jumpTo(0);if(R.button!==0||R.shiftKey||R.altKey||R.metaKey||R.ctrlKey||_.RP(_.Ah(R),A.hostElement,["BUTTON".toString()]))return z.return();R.stopPropagation();R.preventDefault();return A.data?z.yield(_.zI().getPlayerPromise(),3):z.return()}Y=z.yieldResult;
E=(P=_.n(A.data.onTap,_.LO))==null?void 0:P.startTimeSeconds;E!==void 0&&Y.seekToTimeWithAnimation(E*1E3,_.R4(A.data.title));_.XH(z)})};
_.l.computeLayout=function(R){return R};
_.l.computeIsHighlighted=function(R){return!!R};
_.l.computeCarouselType=function(R){return R};
_.l.hideModernCarousel=function(R){return this.modern&&this.hideThumbnail(R)};
_.l.hideThumbnail=function(R){return this.enableProblemWalkthrough&&R!==null&&R==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.l.onRepeatButtonToggle=function(R){var A=this;R.detail.toggled&&_.zI().getPlayerPromise().then(function(Y){A.ytPlayerListenerBehavior.listenToPlayerEvents(Y,A.JSC$14939_playerEvents);A.listeningToPlayer=!0})};
_.l.onLoopRangeChange=function(R){var A=_.Mo(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(A){var Y=A.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",A.polymerController.data);if(Y){var P=Number(Y.endTimeMs);if(Number(Y.startTimeMs)!==(R==null?void 0:R.startTimeMs)||P!==(R==null?void 0:R.endTimeMs))A.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.l.removePlayerListeners=function(){var R=this;this.listeningToPlayer&&_.zI().getPlayerPromise().then(function(A){R.ytPlayerListenerBehavior.unlistenFromPlayerEvents(A,R.JSC$14939_playerEvents);R.listeningToPlayer=!1})};
_.l.onActiveUpdate=function(R){this.active=R.detail.active};
sm.prototype.onColorPaletteChange=sm.prototype.onColorPaletteChange;sm.prototype.onDataChanged=sm.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sm.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],sm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],sm.prototype,"ytPlayerListenerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],sm.prototype,"data",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],sm.prototype,"useCustomColors",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],sm.prototype,"active",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],sm.prototype,"shouldShowButtons",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.k("design:type",String)],sm.prototype,"layout",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.k("design:type",Object)],sm.prototype,"isHighlighted",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],sm.prototype,"useHighlightStyling",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],sm.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],sm.prototype,"enableProblemWalkthrough",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.k("design:type",String)],sm.prototype,"carouselType",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],sm.prototype,"useColorSampling",void 0);_.C([_.S(),_.k("design:type",Boolean)],sm.prototype,"seekWithAnimationOnClick",void 0);_.C([_.S(),_.k("design:type",Object)],sm.prototype,"customButtonProperties",void 0);
_.C([_.nG("#repeat-button"),_.k("design:type",HTMLElement)],sm.prototype,"repeatButton",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sm.prototype,"onDataChanged",null);_.C([_.vZ("data.lightColorPalette","data.darkColorPalette"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sm.prototype,"onColorPaletteChange",null);_.C([_.F({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],sm);
_.B(sm,"ytd-macro-markers-list-item-renderer",function(){if(Pa8!==void 0)return Pa8;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Pa8=R},{mode:1});var EJq;var zFE;var Nq=function(){var R=_.K.apply(this,arguments)||this;R.modernTypography=_.v("web_modern_typography");return R};
_.H(Nq,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Nq.prototype,"ytRendererBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Nq.prototype,"modernTypography",void 0);_.C([_.S(),_.k("design:type",Object)],Nq.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],Nq);
_.B(Nq,"ytd-title-and-button-list-header-renderer",function(){if(zFE!==void 0)return zFE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return zFE=R},{mode:1});var iBS;var l27=new _.cP("BUTTON_RENDERER_WIZ_TOKEN"),xEA=new _.cP("BUTTON_RENDERER_TOKEN");_.VO=_.E5(function(R){var A=_.is().resolve(_.z3(l27));if(A)return _.V(A,Object.assign({},R));var Y=_.is().resolve(xEA);return Y?_.V(gsl,null,function(){return _.V(R$,null,function(){var P,E,z,c,M,N,y,m,T,Q,g,r;return void Y(R.data(),{onButtonClickCallback:R.onButtonClickCallback,shouldShowIcons:(P=R.shouldShowIcons)==null?void 0:P.call(R),icon:(E=R.icon)==null?void 0:E.call(R),processAllEndpoints:(z=R.processAllEndpoints)==null?void 0:z.call(R),preventDefault:(c=R.preventDefault)==null?void 0:c.call(R),
stopPropagation:(M=R.stopPropagation)==null?void 0:M.call(R),disableButtonRendererClickHandling:(N=R.disableButtonRendererClickHandling)==null?void 0:N.call(R),className:(y=R.className)==null?void 0:y.call(R),buttonOverrides:(m=R.buttonOverrides)==null?void 0:m.call(R),forceModernIconButton:(T=R.forceModernIconButton)==null?void 0:T.call(R),isSubscribe:(Q=R.isSubscribe)==null?void 0:Q.call(R),alignByText:(g=R.alignByText)==null?void 0:g.call(R),forceDisabled:(r=R.forceDisabled)==null?void 0:r.call(R)})})}):
_.V(_.lI,null)},"ja");
_.VO.idomCompat=!0;var cFS=_.E5(function(R){var A=R.data,Y=_.Y9(R.useSquareAspectRatio,!1);return _.V("dismissed-mini-game-card-view-model",null,_.V(_.J,{cond:function(){var P,E;return(P=A().responseText)==null?void 0:(E=P.runs)==null?void 0:E.length},
then:function(){var P={};return _.V("div",{class:_.To("yt-mini-game-card-view-model__dismissed-card",(P["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!Y()},P["yt-mini-game-card-view-model--dismissed-square-card"]=Y,P))},_.V("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.V(_.J,{cond:function(){return A().responseText.runs[0].text},
then:function(E){return _.V("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:E},E)}}),_.V(_.ni,{data:function(){return A().buttons}},{buttonRenderer:_.VO,
buttonViewModel:_.Is})))}}))},"ka");var yFS=_.E5(function(R){R=_.Pc(R,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var A=R.data,Y=R.useFullWidth,P=R.isDesktopWeb,E=R.addSearchResultTopMargin,z=function(){return A().layout},c=function(){return A().title},M=function(){return A().metadataText?A().metadataText:A().genre},N=function(){return A().channelName},y=function(){return A().image},m=function(){return A().colorPalette},T=function(){return A().actionButton},Q=function(){return A().overflowButton},
g=function(){return A().avatar},r=function(){var h={};
h=_.To("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(h["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return P()},h));
return _.V("div",{class:h},_.V(OBq,{imageData:y,colorPalette:m}),_.V(MD7,{onTap:function(){return A().onTap},
imageData:y,accessibilityText:function(){return A().accessibilityText},
overlayBadgeText:function(){return A().overlayBadgeText},
iconName:function(){return A().iconName},
unplayableInlinePlaybackIconName:function(){return A().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.V(_.J,{cond:function(){return!P()},
then:function(){return _.V(_.lI,null,_.V(sez,{layout:z,colorPalette:m,isDesktopWeb:P,overflowButton:Q,avatar:g,onTap:function(){return A().onTap},
genre:M,title:c,channelName:N}),_.V(NJE,{actionButton:T}))}}))},I=function(){var h={};
h=_.To((h["yt-mini-game-card-view-model--search-result-desktop"]=function(){return P()},h["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!P()},h["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return E()},h));
return _.V("div",{class:h},r(),_.V(VDq,{description:function(){return A().description},
isDesktopWeb:P,title:c,genre:M,onTap:function(){return A().onTap},
actionButton:T,overflowButton:Q,avatar:g,channelName:N}))},b=function(){var h={};
h=_.To("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(h["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return P()},h["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return P()&&A().width===135},h["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return P()},h["yt-mini-game-card-view-model--big-metadata-font"]=function(){return A().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},h["yt-mini-game-card-view-model--use-full-width"]=
function(){return Y()},h["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!T()},h));
return _.V("div",{class:h},_.V(JFS,{colorPalette:m,isDesktopWeb:P,onTap:function(){return A().onTap},
accessibilityText:function(){return A().accessibilityText},
overlayBadgeText:function(){return A().overlayBadgeText},
iconName:function(){return A().iconName},
unplayableInlinePlaybackIconName:function(){return A().unplayableInlinePlaybackIconName},
actionButton:T,imageData:y}),_.V(sez,{layout:z,colorPalette:m,isDesktopWeb:P,overflowButton:Q,avatar:g,onTap:function(){return A().onTap},
genre:M,title:c,channelName:N}))},p=function(){var h={};
h=_.To("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(h["yt-mini-game-card-view-model--square-card-desktop"]=function(){return P()},h["yt-mini-game-card-view-model--use-full-width"]=function(){return Y()},h));
return _.V("div",{class:h},_.V(MD7,{onTap:function(){return A().onTap},
imageData:y,accessibilityText:function(){return A().accessibilityText},
overlayBadgeText:function(){return A().overlayBadgeText},
iconName:function(){return A().iconName},
unplayableInlinePlaybackIconName:function(){return A().unplayableInlinePlaybackIconName},
isDesktopWeb:P}),_.V(sez,{layout:z,colorPalette:m,isDesktopWeb:P,overflowButton:Q,avatar:g,onTap:function(){return A().onTap},
genre:M,title:c,channelName:N}))};
return _.V("mini-game-card-view-model",{class:R.className},_.V(_.SO,null,_.V(_.$W,{when:function(){return z()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return b()}),_.V(_.$W,{when:function(){return z()==="MINI_APP_LAYOUT_SQUARE"}},function(){return p()}),_.V(_.$W,{when:function(){return z()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return I()})))},"la");
yFS.idomCompat=!0;var NJE=_.E5(function(R){var A=_.Y9(R.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.V(_.ni,{data:R.actionButton},{buttonViewModel:function(Y){return _.V("div",{class:A},_.V(_.Is,{data:Y.data}))}})},"ma"),MD7=_.E5(function(R){var A=R.onTap;
var Y=R.imageData;var P=R.accessibilityText;var E=R.overlayBadgeText;var z=R.iconName;var c=R.unplayableInlinePlaybackIconName;R=R.isDesktopWeb;return _.V(_.DW,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:A},_.V(_.P1,{data:Y,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(P==null?void 0:P())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.V(mEA,{overlayBadgeText:E,iconName:z,unplayableInlinePlaybackIconName:c,isDesktopWeb:R}))},"na"),mEA=_.E5(function(R){var A=R.overlayBadgeText;
var Y=R.iconName;var P=R.unplayableInlinePlaybackIconName;var E=R.isDesktopWeb;return _.V("div",{class:"yt-mini-game-card-view-model__badge-container"},_.V(_.J,{cond:Y,then:function(z){return _.V("div",{class:"yt-mini-game-card-view-model__badge"},_.V("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.V(_.H1,{icon:z,className:"yt-mini-game-card-view-model__icon",size:12}),_.V("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},A)))}}),_.V(_.J,{cond:function(){return!Y()&&
A()},
then:function(){return _.V("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},A)}}),_.V(_.J,{cond:function(){return P()&&E()},
then:function(){return _.V("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.V(_.H1,{icon:P,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"oa"),OBq=_.E5(function(R){var A=R.colorPalette;
var Y=R.imageData;var P=function(){return A().vibrantColorPalette?A().vibrantColorPalette.section2Color:A().sectionTwoColor};
return _.V(_.lI,null,_.V("div",{class:"yt-mini-game-card-view-model__background-base",style:_.nY({"background-color":function(){return tf(P(),"1")}})}),_.V("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.nY({"background-image":function(){return"url("+Y().sources[0].url+")"}})}),_.V("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.nY({background:function(){return"linear-gradient(180deg,\n    "+tf(P(),".8")+" 0%,\n    "+tf(P(),".4")+" 25%,\n    "+tf(A().vibrantColorPalette?A().vibrantColorPalette.section4Color:A().sectionFourColor,".8")+" 100%)"}})}))},"pa"),sez=_.E5(function(R){var A=R.layout;
var Y=R.colorPalette;var P=R.overflowButton;var E=R.avatar;var z=R.onTap;var c=R.title;var M=R.channelName;var N=R.genre;var y=function(){var m;return A()!=="MINI_APP_LAYOUT_SQUARE"&&((m=Y())==null?0:m.textPrimaryColor)?"color: "+tf(Y().textPrimaryColor,".7"):""};
return _.V("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.V(_.J,{cond:E,then:function(){return _.V("div",{class:"yt-mini-game-card-view-model__avatar"},_.V(_.ni,{data:E},{avatarViewModel:_.qW}))}}),_.V(_.DW,{command:z,
className:"yt-mini-game-card-view-model__metadata-details"},_.V("h3",{class:"yt-mini-game-card-view-model__title",title:c},c),_.V(_.J,{cond:E,then:function(){return _.V("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.V("span",{class:"yt-mini-game-card-view-model__genre",title:M,style:y},M),_.V("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:y},N))},
else:function(){return _.V("span",{class:"yt-mini-game-card-view-model__genre",title:N},N)}})),_.V("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.V(_.ni,{data:P},{buttonViewModel:function(m){var T=m.data;
return _.V(_.Is,{data:function(){return Object.assign({},T(),{customFontColor:A()==="MINI_APP_LAYOUT_SINGLETON"?T().customFontColor:void 0})}})}})))},"qa"),JFS=_.E5(function(R){var A=R.colorPalette;
var Y=R.isDesktopWeb;var P=R.onTap;var E=R.accessibilityText;var z=R.overlayBadgeText;var c=R.iconName;var M=R.unplayableInlinePlaybackIconName;var N=R.actionButton;R=R.imageData;return _.V("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.V(OBq,{imageData:R,colorPalette:A}),_.V(MD7,{onTap:P,imageData:R,accessibilityText:E,overlayBadgeText:z,iconName:c,unplayableInlinePlaybackIconName:M,isDesktopWeb:Y}),_.V(_.J,{cond:function(){return N==null?void 0:N()},
then:function(){return _.V(NJE,{actionButton:N})}}))},"ra"),VDq=_.E5(function(R){var A=R.description;
var Y=R.isDesktopWeb;var P=R.title;var E=R.genre;var z=R.onTap;var c=R.actionButton;var M=R.overflowButton;var N=R.avatar;R=R.channelName;var y={};y=_.To("yt-mini-game-card-view-model--search-result-metadata-wrapper",(y["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=Y,y["yt-mini-game-card-view-model--show-unplayable-on-hover"]=Y,y["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!Y()},y));
var m={};m=_.To("yt-mini-game-card-view-model__search-result-info-row",(m["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!Y()},m));
return _.V("div",{class:y},_.V("div",{class:m},_.V(_.DW,{command:z,className:"yt-mini-game-card-view-model__metadata-details"},_.V("h3",{class:"yt-mini-game-card-view-model__title",title:P},P),_.V("span",{class:"yt-mini-game-card-view-model__genre",title:E},E)),_.V(NJE,{actionButton:c,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.V("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.V(_.ni,{data:M},{buttonViewModel:_.Is}))),_.V("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.V("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.V("div",{class:"yt-mini-game-card-view-model__avatar"},_.V(_.ni,{data:N},{avatarViewModel:function(T){var Q=T.data;return _.V(_.qW,{data:function(){return Object.assign({},Q(),{avatarImageSize:Y()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.V(_.DW,{command:z,
className:"yt-mini-game-card-view-model__description"},_.V("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},R)),_.V(_.DW,{command:z,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.V("div",null)))),_.V(_.J,{cond:Y,then:function(){return _.V(_.DW,{command:z,className:"yt-mini-game-card-view-model__description"},A)}}))},"sa");_.Ow(yFS,"mini-game-card-view-model",{props:{data:_.VY,className:_.VY,useFullWidth:_.VY,isDesktopWeb:_.VY,addSearchResultTopMargin:_.VY}});_.Ow(cFS,"dismissed-mini-game-card-view-model",{props:{data:_.VY,useSquareAspectRatio:_.VY}});var Jj=function(){var R=_.K.apply(this,arguments)||this;R.isSearch=!1;R.isRichGrid=!1;return R};
_.H(Jj,_.K);_.l=Jj.prototype;_.l.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.l.dismissibleItemOnYtServiceRequestSent=function(R,A){A.actions&&this.dismissibleItemProcessActions(R,A.actions)};
_.l.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.l.dataChanged=function(){this.dismissibleItemReset()};
_.l.dismissibleItemProcessActions=function(R,A){for(var Y=0;Y<A.length;Y++){var P=A[Y];_.n(P,_.jM)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.n(P,_.jM)),R.stopPropagation())}};
_.l.dismissibleItemHandleReplaceEnclosingAction=function(R){this.dismissedRenderer=R.item;this.isDismissed=!0};
_.Yh.Object.defineProperties(Jj.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var R;return!!this.data&&!((R=this.dismissedRenderer)==null?0:R.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.dismissedRenderer)==null||!R.notificationMultiActionRenderer)}}});
Jj.prototype.dataChanged=Jj.prototype.dataChanged;Jj.prototype.dismissibleItemOnRequestSent=Jj.prototype.dismissibleItemOnRequestSent;Jj.prototype.dismissibleItemOnYtServiceRequestSent=Jj.prototype.dismissibleItemOnYtServiceRequestSent;_.C([_.S(),_.k("design:type",Object)],Jj.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Jj.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jj.prototype,"isDismissed",void 0);
_.C([_.S(),_.k("design:type",Object)],Jj.prototype,"dismissedRenderer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Jj.prototype,"isRichGrid",void 0);_.C([_.X("data.layout"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jj.prototype,"useSquareAspectRatio",null);_.C([_.X("data","dismissedRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jj.prototype,"showCard",null);
_.C([_.X("data","dismissedRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jj.prototype,"showDismissed",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],Jj.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.C([_.Qa("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Jj.prototype,"dismissibleItemOnRequestSent",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jj.prototype,"dataChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],Jj);
_.B(Jj,"ytd-mini-game-card-view-model",function(){if(iBS!==void 0)return iBS;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-game-card-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" restamp="" if="[[showCard]]" class="style-scope ytd-mini-game-card-view-model"><mini-game-card-view-model add-search-result-top-margin="[[isSearch]]" data="[[data]]" is-desktop-web="" use-full-width="[[isRichGrid]]" class="style-scope ytd-mini-game-card-view-model"></mini-game-card-view-model></template><template is="dom-if" restamp="" if="[[showDismissed]]" class="style-scope ytd-mini-game-card-view-model"><dismissed-mini-game-card-view-model data="[[dismissedRenderer.notificationMultiActionRenderer]]" use-square-aspect-ratio="[[useSquareAspectRatio]]" class="style-scope ytd-mini-game-card-view-model"></dismissed-mini-game-card-view-model></template>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return iBS=R},{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var TJN;var QeG;var yO=function(){return _.Pe.apply(this,arguments)||this};
_.H(yO,_.Pe);yO.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
yO.prototype.getContinuationUrl=function(R){var A={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(A.itct=this.data.clickTrackingParams);return _.du(R,A)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yO.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yO.prototype,"data",void 0);_.C([_.CG({is:"yt-reload-continuation",noInjection:!0})],yO);var vJA;var gJz;var ma=function(){var R=_.K.apply(this,arguments)||this;R.notificationData={};return R};
_.H(ma,_.K);_.l=ma.prototype;_.l.isMenuExpanded=function(R){return R&&R.length<=1?"undefined":"false"};
_.l.dataChanged_=function(){this.selected=void 0;var R=this.computeSelectedIndex_(this.data);R>=0&&(this.selected=R);R=this.data&&this.data.length>1;_.No(this.hostElement,"has-items",R);_.Mo(this.hostElement).querySelector("#label").tabIndex=R?0:-1};
_.l.onDropdownOpen=function(){var R=_.F9();if(this.parentTrackingParams&&this.data){var A=_.S5(this.parentTrackingParams);this.data.forEach(function(Y){R&&A&&Y.trackingParams&&(Y=_.S5(Y.trackingParams),_.ZM(R,A,Y),_.uE(R,[Y]))})}else this.parentTrackingParams||_.pK(new _.XN("No parent tracking params passed in for yt-dropdown-menu."))};
_.l.hasNotification=function(R){var A;if(R.targetId&&((A=this.notificationData)==null?0:A.targetId)){var Y;return R.targetId===((Y=this.notificationData)==null?void 0:Y.targetId)}};
_.l.computeSelectedIndex_=function(R){if(R)for(var A=0,Y=R.length;A<Y;A++)if(R[A].selected)return A;return-1};
_.l.computeLabel_=function(R){return this.data&&R!=void 0?this.data[R].title:""};
_.l.computeShowIcon_=function(R,A){return!A&&!!R};
_.l.computeVerticalOffset_=function(R){return R?36:0};
_.l.computeEndpoint_=function(R){return R.endpoint||R.navigationEndpoint};
_.l.onLabelClick_=function(R){this.data&&this.data.length<=1?R.stopPropagation():this.menuExpanded="true"};
_.l.onIronActivate_=function(R){R=R.detail.item;var A=_.Mo(this.hostElement).querySelector("#repeat").itemForElement(R);if(A&&A.trackingParams){var Y=_.F9(),P=_.S5(A.trackingParams);Y&&_.qT(Y,P)}if(A&&A.serviceEndpoint)_.v("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(A.serviceEndpoint):_.sC(this.hostElement,[A.serviceEndpoint]),_.xo(this.hostElement,"yt-playlist-reloading");else a:{if((A=R.querySelector("yt-supported-renderers"))&&
(A=A.rendererElement)&&A.is=="yt-reload-continuation"){A.trigger();break a}(R=R.querySelector("yt-reload-continuation"))&&R.trigger()}};
_.l.onTap_=function(R){R.preventDefault()};
_.l.onItemTap_=function(R){this.ytEndpointBehavior.onEndpointTap_(R)};
_.l.onLinkFocus_=function(R){try{var A=R.target}catch(P){}if(A){var Y=A.querySelector("tp-yt-paper-item");Y&&_.u5(this,"focus",function(){Y.focus()})}};
_.l.onMenuClose_=function(){this.menuExpanded="false"};
_.l.isLabelIconActive_=function(R){return R==="true"};
_.l.computeHasSubtitle_=function(R){return!!R};
_.l.computeHrefForItem_=function(R){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(R))};
_.l.updateSelectedFromBinding=function(R){this.selected=R.detail.value};
_.Yh.Object.defineProperties(ma.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
ma.prototype.onMenuClose_=ma.prototype.onMenuClose_;ma.prototype.onTap_=ma.prototype.onTap_;ma.prototype.onIronActivate_=ma.prototype.onIronActivate_;ma.prototype.onDropdownOpen=ma.prototype.onDropdownOpen;ma.prototype.dataChanged_=ma.prototype.dataChanged_;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ma.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.bF.YtEndpointBehavior),_.k("design:type",Object)],ma.prototype,"ytEndpointBehavior",void 0);
_.C([_.S(),_.k("design:type",Array)],ma.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],ma.prototype,"parentTrackingParams",void 0);_.C([_.S(),_.k("design:type",Object)],ma.prototype,"selected",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],ma.prototype,"useLabel",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],ma.prototype,"useComputedAriaLabel",void 0);_.C([_.S(),_.k("design:type",String)],ma.prototype,"icon",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],ma.prototype,"iconLabel",void 0);_.C([_.S(),_.k("design:type",String)],ma.prototype,"ariaLabel",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ma.prototype,"disabled",void 0);_.C([_.S({computed:"isMenuExpanded(data)"}),_.k("design:type",String)],ma.prototype,"menuExpanded",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],ma.prototype,"closeOnActivate",void 0);
_.C([_.S({reflectToAttribute:!0,value:_.v("web_modern_buttons")}),_.k("design:type",Boolean)],ma.prototype,"modernButtons",void 0);_.C([_.S(),_.k("design:type",Object)],ma.prototype,"notificationData",void 0);_.C([_.X("ariaLabel, selected"),_.S(),_.k("design:type",String),_.k("design:paramtypes",[])],ma.prototype,"computedAriaLabel",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ma.prototype,"dataChanged_",null);
_.C([_.Qa("paper-dropdown-open"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ma.prototype,"onDropdownOpen",null);_.C([_.Qa("iron-activate"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ma.prototype,"onIronActivate_",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ma.prototype,"onTap_",null);
_.C([_.Qa("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ma.prototype,"onMenuClose_",null);_.C([_.CG({is:"yt-dropdown-menu",disableElementRegistration:!0})],ma);
_.B(ma,"yt-dropdown-menu",function(){if(gJz===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[computedAriaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;vJA===void 0&&(vJA=document.createElement("template"));var P=vJA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);gJz=R}R=gJz;return R},{mode:2});var T1=function(){var R=_.K.apply(this,arguments)||this;R.hasNotification=!1;return R};
_.H(T1,_.K);T1.prototype.computeId=function(R){return R};
T1.prototype.computeHorizontalAlign=function(R){return R?"right":"left"};
T1.prototype.computeAccessibilityLabel=function(R){var A,Y;return((A=R.accessibility)==null?void 0:(Y=A.accessibilityData)==null?void 0:Y.label)||null};
T1.prototype.notificationDataChanged=function(){var R;this.hasNotification=!!this.notificationData&&!((R=this.data)==null?0:R.icon)};
T1.prototype.notificationDataChanged=T1.prototype.notificationDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.zu.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],T1.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],T1.prototype,"data",void 0);_.C([_.S({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",String)],T1.prototype,"id",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],T1.prototype,"isRightAligned",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],T1.prototype,"disabled",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],T1.prototype,"closeOnActivate",void 0);_.C([_.S(),_.k("design:type",Object)],T1.prototype,"notificationData",void 0);_.C([_.S(),_.k("design:type",Object)],T1.prototype,"hasNotification",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],T1.prototype,"useComputedAriaLabel",void 0);_.C([_.vZ("notificationData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T1.prototype,"notificationDataChanged",null);_.C([_.CG({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],T1);
_.B(T1,"yt-sort-filter-sub-menu-renderer",function(){if(QeG===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-computed-aria-label="[[useComputedAriaLabel]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;TJN===void 0&&(TJN=document.createElement("template"));var P=TJN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);QeG=R}R=QeG;return R},{mode:2});var nJE=_.E5(function(R){var A=R.data;var Y=_.Qi(function(){var z=A().onTap;(z=_.n(z,_.CC))&&_.is().resolve(_.ls).resolveCommand(z);return!1}),P=function(){return{sources:[{url:A().thumbnailUrl,
width:120,height:90}]}},E=function(){return A().rating&&A().ratingA11yLabel&&A().reviewsCount&&A().reviewsCountA11yLabel};
return _.V("place-data-view-model",null,_.V(_.J,{cond:function(){return A().placeName&&A().placeCategory},
then:function(){return _.V("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":Y},_.V(_.P1,{data:P,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.V(_.DW,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return A().onTap}},_.V("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return A().placeName}},function(){return A().placeName})),_.V("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.V(_.J,{cond:E,
then:function(){return _.V("div",{class:_.To("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.V("span",{class:"score",title:function(){return A().ratingA11yLabel}},function(){return A().rating}),_.V("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.V(_.H1,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.V("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return A().reviewsCountA11yLabel}},function(){return A().reviewsCount}))},
else:function(){return _.V("div",{class:_.To("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.V("div",{class:_.To("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.V("span",{class:"category",
title:function(){return A().placeCategory}},function(){return A().placeCategory}))))}}))},"ta");
nJE.idomCompat=!0;_.Ow(nJE,"place-data-view-model",{props:{data:_.VY}});var HBA=new _.cP("INLINE_PLAYBACK_HOOK_TOKEN");var rFD=TPP({sharedUi:jUH});_.oP=vfu(rFD)(rFD.sharedUi,{animatedThumbnailEnabledSelector:function(R){return R.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(R){return R.inlinePreviewEnabled},
currentPageTypeSelector:function(R){return R.currentPageType},
currentPageSubTypeSelector:function(R){return R.currentPageSubType}});var DE8=function(R){this.setActiveSlideIndex=R;this.jobIds=[];this.isSlideshowPlaying=!1},X2f=function(R,A){R.isSlideshowPlaying||(R.isSlideshowPlaying=!0,UEA(R),$ED(R,A,0))},UEA=function(R){_.JM(_.fn,function(){R.setActiveSlideIndex(0)},1)},$ED=function(R,A,Y){R.jobIds.push(_.JM(_.fn,function(){var P=Y<A-1?Y+1:0;
R.setActiveSlideIndex(P);$ED(R,A,P)},1800))};var Szq=new _.cP("IMAGE_ON_LOAD_HANDLER_TOKEN");var I2S=_.E5(function(R){return _.V("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.V(_.J,{cond:function(){var A;return(A=R.data())==null?void 0:A.thumbnail},
then:function(A){return _.V(_.P1,{data:A,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ua");_.KDz=_.E5(function(R){var A=R.data;var Y=R.lockupExperiments;R={};return _.V("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.V("div",{class:_.To("ytThumbnailOverlayButtonViewModelButton",(R.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var P;return Y&&((P=Y())==null?void 0:P.useLegacySizedIconButton)},R))},_.V(_.ni,{data:function(){return A().overlayButton}},{buttonViewModel:function(P){return _.V(_.Is,{data:P.data,
buttonOverrides:function(){var E;return Y&&((E=Y())==null?0:E.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"va");
_.KDz.idomCompat=!0;var WDA=_.E5(function(R){return _.V("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.Qi(function(A){A.preventDefault();return!1})},_.V(_.ni,{data:function(){return R.data().buttons}},{toggleButtonViewModel:function(A){return _.V("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.V(_.uF,{data:A.data}))}}))},"wa");
WDA.idomCompat=!0;var je8=_.E5(function(R){var A=function(){var Y;return((Y=_.n(R.data().rendererContext,_.Kd))==null?void 0:Y.label)||""};
return _.V("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.V(_.J,{cond:function(){return R.data().image},
then:function(){return _.V("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.V(_.P1,{data:function(){return R.data().image},
alt:A}))}}),_.V(_.J,{cond:function(){return R.data().text},
then:function(){return _.V("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return R.data().text})}}))},"xa");var bB8;bB8=_.oP.animatedThumbnailEnabledSelector;_.QO=_.E5(function(R){var A=[],Y=function(){var Q,g;return Y1P((Q=R.width)==null?void 0:Q.call(R),(g=R.height)==null?void 0:g.call(R))},P=_.is().resolve(_.z3(Szq)),E=_.LK("yt-thumbnail-view-model",function(){A.push("elRef.value set");
var Q;(Q=R.playbackRef)==null||Q.call(R,{thumbnailElRef:E,thumbnail:R.data().image,thumbnailOverlays:R.data().overlays,thumbnailSize:Y()})});
_.jO(function(){A.push("onInit");_.bm(function(){A.push("onCleanup")})});
var z=_.aE(bB8),c=function(){var Q,g;return(g=(Q=R.aspectRatio)==null?void 0:Q.call(R))!=null?g:0},M=function(){return(R.data().image?_.$kS(R.data().image):c())<=1&&c()===0},N=function(){return M()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},y=function(){E.value||_.pK(new _.XN("Thumbnail elRef.value is null",A.join("\n")));
P&&E.value&&P(E.value)},m=function(){var Q,g;
return((Q=R.hovered)==null?void 0:Q.call(R))&&Y()!=="large"&&((g=R.data().overlays)==null?void 0:g.some(function(r){return _.n(r,QsS)}))},T={};
return _.V("yt-thumbnail-view-model",{class:_.To("ytThumbnailViewModelHost",R.className,function(){return KWP(c())},function(){var Q,g;
a:{var r=Y(),I=(Q=R.disableRounding)==null?void 0:Q.call(R);Q=(g=R.isClip)==null?void 0:g.call(R);if(!I&&!Q)switch(r){case "large":g="ytThumbnailViewModelLarge";break a;case "small":g="ytThumbnailViewModelSmall";break a;default:g="ytThumbnailViewModelMedium";break a}g=void 0}return g},(T.ytThumbnailViewModelCinematic=M,T)),
style:_.nY({"background-color":function(){var Q,g=M()?(Q=R.data().backgroundColor)==null?void 0:Q.lightTheme:void 0;return g?tf(g,"1"):void 0}}),
el:E},_.V(_.J,{cond:M,then:function(){return _.V("div",{class:"ytThumbnailViewModelBlurredImage"},_.V(_.P1,{data:function(){return R.data().image},
alt:"",contentMode:N,targetWidth:R.width,onload:y}))}}),_.V("div",{class:"ytThumbnailViewModelImage"},_.V(_.P1,{data:function(){return R.data().image},
alt:"",contentMode:N,targetWidth:R.width,onload:y}),null),_.V(_.ni,{data:function(){return m()?void 0:R.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:BOf,thumbnailOverlayBadgeViewModel:function(Q){return _.V(a6A,{data:Q.data,thumbnailSize:Y,isClip:R.isClip})},
thumbnailBottomOverlayViewModel:function(Q){return _.V(bEz,{data:Q.data,thumbnailSize:Y,isClip:R.isClip})},
thumbnailOverlayFullViewModel:je8,thumbnailOverlayButtonViewModel:function(Q){return _.V(_.KDz,{data:Q.data,lockupExperiments:R.lockupExperiments})}}),_.V(_.ni,{data:function(){var Q;
return((Q=R.hovered)==null?0:Q.call(R))?R.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Q){return _.V(en,{data:Q.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:WDA}),_.V(_.ni,{data:function(){var Q;return((Q=R.hovered)==null?0:Q.call(R))&&z()?R.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:I2S}),_.V(_.J,{cond:R.isClip,then:function(){return _.V("div",{class:"ytPinkingNsHost"},_.V("svg",{class:"ytPinkingNsPinkingLeft"},_.V("defs",null,_.V("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.V("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.V("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.V("svg",{class:"ytPinkingNsPinkingRight"},_.V("defs",null,_.V("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.V("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.V("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"ya");
_.QO.idomCompat={callbacks:{playbackRef:!0}};var f27=_.E5(function(R){var A=_.x(_.yy(-1,void 0,"RW2Ole")),Y=A.next().value,P=A.next().value;_.jO(function(){var E=new DE8(P);X2f(E,R.data().thumbnails.length);_.bm(function(){if(E.isSlideshowPlaying){E.isSlideshowPlaying=!1;for(var z=E.jobIds,c=0,M=z.length;c<M;c++)_.fn.cancelJob(z[c]);E.jobIds.length=0}})});
return _.V("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.V(_.ni,{data:function(){return R.data().thumbnails}},{thumbnailViewModel:function(E,z){return _.V("div",{class:function(){var c=!R.data().primaryThumbnail,M=z(),N=Y(),y=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
c&&M===0&&y.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");M<=N&&y.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return y.join(" ")}},_.V(_.QO,{data:E.data,
disableRounding:R.disableRounding}))}}))},"za");
f27.idomCompat=!0;var WW8=new _.cP("DWELL_DETECTOR_REGISTRY_TOKEN");var FDN=_.E5(function(R){var A=j5b(R.triggeringElement),Y=function(){return!!R.data().primaryThumbnail},P=function(){var z,c=(z=R.data())==null?void 0:z.maxHeight,M;
z=(M=R.maxHeight)==null?void 0:M.call(R);return c!=null&&z!=null?Math.min(c,z):z!=null?z:c},E=function(){var z=P();
if(z){var c;if(Y()&&(c=R.includeStackHeight)!=null&&c.call(R)){var M;c=((M=R.doubleStack)==null?0:M.call(R))?8:4}else c=0;z=z-c-1;if(!(z<0)){M=Math;c=M.ceil;var N,y;var m=AYJ((y=(N=R.aspectRatio)==null?void 0:N.call(R))!=null?y:0);return c.call(M,z*m)}}};
return _.V("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.nY({height:function(){return P()?P()+"px":void 0},
width:function(){return E()?E()+"px":void 0}})},_.V(p27,{stackEnabled:Y,
thumbnailSize:function(){var z,c;return Y1P((z=R.width)==null?void 0:z.call(R),(c=R.height)==null?void 0:c.call(R))},
doubleStack:R.doubleStack,stackColor:function(){return R.data().stackColor},
includeStackHeight:R.includeStackHeight},_.V(_.ni,{data:function(){return R.data().primaryThumbnail}},{thumbnailViewModel:function(z){var c={};
return _.V(_.QO,{data:z.data,width:R.width,height:R.height,aspectRatio:R.aspectRatio,disableRounding:R.disableRounding,className:_.To((c.ytCollectionThumbnailViewModelHostHasStacks=Y,c)),hovered:R.hovered,playbackRef:R.playbackRef})}}),_.V(_.J,{cond:function(){var z;
return A()&&((z=R.data().thumbnails)==null?void 0:z.length)},
then:function(){return _.V("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.V(f27,{data:R.data,disableRounding:function(){return!Y()}}))}})))},"Aa");
FDN.idomCompat={callbacks:{playbackRef:!0}};
var p27=_.E5(function(R){var A=R.children;var Y=R.stackEnabled;var P=R.thumbnailSize;var E=R.doubleStack;var z=R.stackColor;var c=R.includeStackHeight;var M,N=(M=_.is().resolve(_.z3(_.dU)))==null?void 0:M();return _.V(_.J,{cond:Y,then:function(){return _.V(OEf,{data:function(){var y,m;return{experimentEnabled:!0,thumbnailSize:P(),doubleStack:E==null?void 0:E(),color:N?z==null?void 0:(y=z())==null?void 0:y.darkTheme:z==null?void 0:(m=z())==null?void 0:m.lightTheme,enableResponsiveMode:!1,includeStackHeight:c==
null?void 0:c()}}},A)},
else:function(){return A}})},"Ba");var BJD=new _.cP("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var gw;_.vo={calledOnce:!0,state:"visible"};gw={calledOnce:!0,state:"hidden"};_.nS=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;var P=R.className;var E=R.delayedClassName;var z=R.animationEntityKey;var c=R.isCompactWidth;R=_.x(_.yy(!1,void 0,"Mp955c"));var M=R.next().value,N=R.next().value,y=_.Y9(z,""),m=_.vT(ZRJ,y),T=function(){var Qk,H3;return(H3=(Qk=m())==null?void 0:Qk.value)!=null?H3:!1},Q=function(){_.A7(_.HT("booleanEntity",y(),{key:y(),
value:!0}));Z=void 0};
z=_.x(_.gl(T));var g=z.next().value,r=z.next().value;z=_.x(_.gl(T));var I=z.next().value,b=z.next().value;z=_.x(_.gl(function(){var Qk;return T()?(Qk=A().styleTransitionConfig)==null?void 0:Qk.destinationStyle:void 0}));
var p=z.next().value,h=z.next().value,L=function(){var Qk=Object.assign({},A(),p()&&{style:p()});var H3,nu,hk=Qk.label,FV=(H3=Qk.interaction)==null?void 0:(nu=H3.accessibility)==null?void 0:nu.label;H3=Qk.iconImage?Qk.label&&Qk.label.content?Qk.iconLeading?"leading":"trailing":"icon-only":void 0;Qk={formattedButtonText:hk,accessibilityLabel:FV,style:FW3(Qk.style),type:BO8(Qk.style),state:"active",size:pQk(Qk.size),iconPosition:H3,disabled:!1,aTagConfig:f6V(Qk,Y)};_.v("enable_desktop_vdcbg_components")&&
(Qk.focused=M());return Qk},Z;
z=_.zR({visibilityCallback:function(Qk){var H3,nu=(H3=A().interaction)==null?void 0:H3.onFirstVisible;Qk&&nu&&_.Zc(nu)},
showOption:_.vo});var w=function(){return iR3(L(),!!A().iconImage)};
R={};P=_.To(function(){return"ytwAdButtonViewModelHost"},function(){return A().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var Qk=!!A().delayedAppearanceConfig,H3=g();
return Qk?H3?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var Qk=!!A().delayedAppearanceConfig,H3=I();
return Qk?H3?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!A().delayedAppearanceConfig||g()?E==null?void 0:E():""},(R.ytwAdButtonViewModelHostCompactWidth=function(){return c==null?void 0:c()},R),P!=null?P:"");
var t=function(){var Qk,H3=(Qk=A().delayedAppearanceConfig)==null?void 0:Qk.delayedInvisibleSeconds;H3&&(Z=_.$H(_.fn,function(){r(!0);d()},H3*1E3))},d=function(){var Qk,H3=(Qk=A().delayedAppearanceConfig)==null?void 0:Qk.delayedVisibleSeconds;
H3&&(Z=_.$H(_.fn,function(){b(!0);Jk()},H3*1E3))},Jk=function(){var Qk,H3=(Qk=A().styleTransitionConfig)==null?void 0:Qk.styleTransitionSeconds,nu,hk=(nu=A().styleTransitionConfig)==null?void 0:nu.destinationStyle;
H3&&hk?Z=_.$H(_.fn,function(){h(hk);Q()},H3*1E3):Q()},Nb=function(){var Qk;
return(Qk=A().delayedAppearanceConfig)==null?void 0:Qk.transitionDurationSeconds};
_.jO(function(){t()});
_.bm(function(){Z&&_.fn.cancelJob(Z)});
return _.V("ad-button-view-model",{"on:focusin":_.Qi(_.v("enable_desktop_vdcbg_components")?function(){var Qk=_.is().resolve(_.z3(_.rt));Qk&&N(Qk.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.Qi(_.v("enable_desktop_vdcbg_components")?function(){N(!1);return!1}:void 0),
class:P,el:_.zo(z),style:_.nY({"transition-duration":function(){return Nb()?Nb()+"s":void 0}})},_.V(_.J,{cond:L,
then:function(){return _.V(_.SV,{data:L,icon:function(){return _.V(_.J,{cond:function(){return A().iconImage},
then:function(Qk){return _.V(_.P1,{data:Qk,alt:"",targetWidth:w,targetHeight:w,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"Ca");var a2Z=_.E5(function(R){var A=R.data;R=function(){return A().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var Y=_.zR({visibilityCallback:function(z){var c,M=(c=A().interaction)==null?void 0:c.onFirstVisible;z&&M&&_.Zc(M)},
showOption:_.vo}),P={},E={};return _.V("ad-button-group-view-model",{class:_.To("ytwAdButtonGroupViewModelHost",(P.ytwAdButtonGroupViewModelHostCompactWidth=R,P)),el:_.zo(Y)},_.V("div",{class:_.To("ytwAdButtonGroupViewModelHostSecondaryButton",(E.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=R,E))},_.V(_.ni,{data:function(){return A().secondaryAdButton}},{adButtonViewModel:function(z){return _.V(_.nS,{data:z.data})}})),_.V("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.V(_.ni,
{data:function(){return A().primaryAdButton}},{adButtonViewModel:function(z){return _.V(_.nS,{data:z.data})}})))},"Da");var CaH=_.E5(function(R){var A=function(){var Y;return((Y=R.data())==null?void 0:Y.answers)||[]};
return _.V("yt-survey-icons",{class:"ytSurveyIconsHost"},_.V("div",{class:"ytSurveyIconsHeader"},_.V("div",{class:"ytSurveyIconsTitle"},function(){var Y;return(Y=R.data())==null?void 0:Y.text}),_.V("div",null,_.V(_.SV,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var Y;(Y=R.onDismiss)==null||Y.call(R)}}},
iconName:"DISMISSAL"}))),_.V("div",null,_.V("div",{class:"ytSurveyIconsAnswers"},_.V(_.Ue,{each:function(){return A()},
keyBy:"INDEX"},function(Y,P){return _.V("div",null,_.V(_.SV,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var E;(E=R.onSelect)==null||E.call(R,Y(),P)}}},
icon:function(){return _.V(_.H1,{icon:function(){var E,z;return(E=Y())==null?void 0:(z=E.icon)==null?void 0:z.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.V("div",{class:"ytSurveyIconsAnswersText"},_.V("div",null,function(){return A().length?A()[0].text:""}),_.V("div",null,function(){return A().length?A()[A().length-1].text:""}))))},"Ea");var hF7=_.E5(function(R){var A=_.zo(_.fi(function(){var N;return(N=R.data())==null?void 0:N.rendererContext},void 0,void 0,void 0,!0)),Y=_.x(_.yy(!1,void 0,"GW0yjf")),P=Y.next().value,E=Y.next().value,z=_.vT(KHl,function(){var N;
return(N=R.data().keys)==null?void 0:N.surveyEntityKey}),c=_.vT(WHl,function(){var N;
return(N=R.data().keys)==null?void 0:N.surveyStateEntityKey});
_.qj("ytd-slimline-survey-show-action",function(){E(!1)});
var M=function(){var N,y;var m=(N=c())==null?void 0:(y=N.questionStack)==null?void 0:y[0];if(m!==void 0){var T,Q;return(T=z())==null?void 0:(Q=T.questions)==null?void 0:Q[m]}};
Y={};return _.V("yt-slimline-survey-view-model",{el:A,class:_.To("ytSlimlineSurveyViewModelHost",(Y.ytSlimlineSurveyViewModelCollapsed=function(){return P()},Y))},_.V("div",{class:"ytSlimlineSurveyViewModelContainer"},_.V(_.J,{cond:function(){var N;
return((N=M())==null?void 0:N.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.V(CaH,{data:function(){return M()},
onSelect:function(N,y){var m,T;return _.O(function(Q){E(!0);if(T=(m=R.data())==null?void 0:m.onSelectRating)_.Zc(T),_.A7(k1E(y));_.XH(Q)})},
onDismiss:function(){E(!0);var N;var y=(N=z())==null?void 0:N.dismissalFeedbackToken;N=y?{feedbackEndpoint:{feedbackToken:y}}:void 0;N&&_.oZ(N,{form:{element:A.value}})}})}})))},"Fa");var oJH=_.E5(function(R){return _.V("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.V(_.ni,{data:function(){var A;return(A=R.data())==null?void 0:A.attachments}},{flexibleActionsViewModel:function(A){return _.V("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.V(_.dy,{data:A.data,
layout:function(){var Y;return((Y=R.lockupStyle())==null?void 0:Y.arrangement)===1?0:1},
justifyContentOverride:function(){var Y;return((Y=R.lockupStyle())==null?void 0:Y.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(A){return _.V("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.V(hF7,{data:A.data}))},
expandableMetadataViewModel:function(A){A=A.data;var Y;return _.V("div",{class:_.To("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(Y=_.is().resolve(_.z3(BJD)))==null?void 0:Y({data:A}))},
adButtonGroupViewModel:function(A){return _.V("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.V(a2Z,{data:A.data}))},
adButtonViewModel:function(A){return _.V("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.V(_.nS,{data:A.data,isCompactWidth:!0}))}}))},"Ga");var GBS=_.cU("rich_grid_min_item_width",310),o1k=_.cU("rich_grid_max_item_width",500);var knf=_.E5(function(R){var A=R.data;return _.V("br-nz-badge-shape",{class:_.To(function(){return d$l(A().brNzRatingBadgeType)}),
role:function(){return A().accessibilityText?"img":void 0},
"aria-label":function(){return A().accessibilityText}},function(){var Y;
return(Y=A())==null?void 0:Y.text})},"Ha");_.Ho=_.E5(function(R){var A=function(){var Y=R.data(),P,E;if(Y){var z=!((P=R.workaroundShortsIsThumbnailBadge)==null||!P.call(R));P=(E=R.modern)==null?void 0:E.call(R);var c;a:switch(Y.badgeStyle){case "BADGE_OVERLAY":E=!0;break a;default:E=!1}Y={type:z?17:RFk(Y.badgeStyle),brNzRatingBadgeType:AF3(Y.badgeStyle),text:Y.badgeText,icon:Y.iconName,isOverlay:E,modern:P||_.v("web_modern_badge_view_model"),accessibilityText:Y.accessibilityLabel||((c=_.n(Y.rendererContext,_.Kd))==null?void 0:c.label)}}else Y=
void 0;return Y};
return _.V("yt-badge-view-model",{class:_.To("ytBadgeViewModelHost",R.class)},_.V(_.SO,null,_.V(_.$W,{when:function(){var Y;return!((Y=A())==null||!Y.brNzRatingBadgeType)}},function(){return _.V(knf,{data:function(){return A()}})}),_.V(_.$W,{when:function(){return!!A()&&!A().brNzRatingBadgeType}},function(){return _.V(_.Pl,{data:function(){return A()}})})))},"Ia");
_.Ho.idomCompat=!0;var PaJ,Yzb;PaJ=16/9;Yzb=2/3;_.rw=_.E5(function(R){var A=R.data;var Y=R.className;var P=R.imageSizeConfig;var E=R.notifyOnLoaded;var z=function(){return A().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},c=function(){var Q;
return _.bc((Q=A())==null?void 0:Q.rendererContext)};
R={};R=(R.ytContentPreviewImageViewModelHost=!0,R.ytContentPreviewImageViewModelCircleImage=function(){return z()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},R.ytContentPreviewImageViewModelTappable=function(){return c()},R);
var M=function(){var Q,g;return(g=(Q=_.n(A().rendererContext,_.Kd))==null?void 0:Q.label)!=null?g:""},N=function(){return zFk(A())},y=function(){var Q=EJk(z(),A().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",P==null?void 0:P(),iBl(N()),A().layoutWidth,A().layoutHeight),g=Object.assign({},Q);
Q.width&&(g.width=Math.round(Q.width));Q.height&&(g.height=Math.round(Q.height));Q.maxWidth&&(g.maxWidth=Math.round(Q.maxWidth));Q.maxHeight&&(g.maxHeight=Math.round(Q.maxHeight));return g},m=_.gE(function(){return y().height},void 0,"CxFlJb"),T=_.gE(function(){return y().width},void 0,"lb8Jhd");
return _.V("yt-content-preview-image-view-model",{el:_.zo(_.fi(function(){var Q;return(Q=A())==null?void 0:Q.rendererContext})),
role:function(){return c()?"link":void 0},
tabindex:function(){return c()?0:void 0},
class:_.To(Y,R,function(){var Q=z();var g=P==null?void 0:P();Q=Q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||Q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(g==null?void 0:g.size)!=null&&g.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(g==null?void 0:g.size)!=null&&g.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return Q}),
style:function(){var Q=y(),g=[];Q.width&&g.push("width: "+Q.width+"px");Q.height&&g.push("height: "+Q.height+"px");Q.maxWidth&&g.push("max-width: "+Q.maxWidth+"px");Q.maxHeight&&g.push("max-height: "+Q.maxHeight+"px");Q.fullWidth&&g.push("width: 100%");return g.join(";")}},_.V(_.J,{cond:N,
then:function(Q){return _.V(_.P1,{data:Q,alt:M,"data-disabled$":function(){return!M()},
notifyOnLoaded:E,targetWidth:T,targetHeight:m,preserveWidth:function(){return!!T()},
preserveHeight:function(){return!!m()}})}}),_.V(_.ni,{data:function(){var Q;
return(Q=A())==null?void 0:Q.overlays}},{thumbnailHoverOverlayViewModel:en,
thumbnailOverlayButtonViewModel:_.KDz}))},"Ja");
_.rw.idomCompat=!0;var ZB7=_.E5(function(R){var A=R.data;var Y=R.className;var P=R.useSmallLayout;R=R.useMediumText;var E={};R=(E["yt-attribution-view-model-wiz"]=!0,E["yt-attribution-view-model-wiz--medium-text"]=R,E);return _.V("yt-attribution-view-model",{el:_.zo(_.fi(function(){var z;return(z=A())==null?void 0:z.rendererContext})),
class:_.To(Y,R)},_.V(_.J,{cond:function(){return _.bc(A().rendererContext)},
then:function(){return _.V("button",{class:"yt-attribution-view-model-wiz--tappable"},_.V(GnA,{data:A,useSmallLayout:P}))},
else:function(){return _.V(GnA,{data:A,useSmallLayout:P})}}))},"Ka"),GnA=_.E5(function(R){var A=R.data;
var Y=R.useSmallLayout;var P=function(){return{size:(Y==null?0:Y())?16:24}};
return _.V(_.lI,null,_.V(_.ni,{data:function(){return A().contentPreviewImage}},{contentPreviewImageViewModel:function(E){return _.V(_.rw,{data:E.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:P})}}),_.V(_.ni,{data:function(){return A().badge}},{badgeViewModel:function(E){return _.V(_.Ho,{data:E.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.V(_.J,{cond:function(){return A().text},
then:function(){return _.V(_.NU,{text:function(){return A().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.V(_.J,{cond:function(){return A().suffix},
then:function(){return _.V(_.NU,{text:function(){return A().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"La");
ZB7.idomCompat=!0;var tDq,w2Z,uJf,eFH,qzb;tDq=_.E5(function(R){var A=R.delimiter;var Y=R.max;var P=R.index;var E=R.isStandalone;return _.V(_.J,{cond:function(){return Y()-1>P()},
then:function(){var z={};return _.V("span",{class:_.To("yt-content-metadata-view-model-wiz__delimiter",(z["yt-content-metadata-view-model-wiz__delimiter--standalone"]=E,z)),"aria-hidden":!0},A)}})},"Ma");
w2Z=_.E5(function(R){var A=R.metadataPart;var Y=R.maxLines;return _.V(_.NU,{text:function(){return A().text},
linkInheritColor:!0,className:function(){return l2k(Y())},
userInput:!0})},"Na");
uJf=_.E5(function(R){var A=R.metadataPart;var Y=R.maxLines;return _.V(_.J,{cond:function(){return A().tooltip},
then:function(P){return _.V("span",{title:P,role:"tooltip"},_.V(w2Z,{metadataPart:A,maxLines:Y}))},
else:function(){return _.V(w2Z,{metadataPart:A,maxLines:Y})}})},"Oa");
eFH=_.E5(function(R){var A=R.metadataPart;var Y=R.isOverlay;var P=R.useMediumText;var E=R.hideAvatar;var z=function(){return A().maxLines!==void 0?A().maxLines:1};
return _.V(_.lI,null,_.V(_.ni,{data:function(){return A().avatarStack}},{avatarStackViewModel:function(c){return _.V(_.d7,{data:c.data,
isOverlay:Y,useMediumText:P,hideAvatar:E})},
badgeViewModel:_.Ho}),_.V(_.J,{cond:function(){return A().leadingIcon},
then:function(c){return _.V(_.H1,{className:"yt-content-metadata-view-model-wiz__leading-icon",icon:function(){return c().name},
size:function(){return c().width}})}}),_.V(_.J,{cond:function(){return A().text},
then:function(){return _.V(uJf,{metadataPart:A,maxLines:z})}}),_.V(_.J,{cond:function(){return A().icon},
then:function(c){return _.V(_.H1,{className:"yt-content-metadata-view-model-wiz__icon",icon:function(){return c().name},
size:function(){return c().width}})}}))},"Pa");
qzb=_.E5(function(R){var A=R.metadataRow;var Y=R.isInline;var P=R.delimiter;var E=R.isOverlay;var z=R.useMediumText;var c=R.extensions;var M=function(){var y,m=c==null?void 0:(y=c())==null?void 0:y.lockupMetadata;y=A();var T,Q;return!!((m==null?0:(T=m.byline)==null?0:T.hideAvatar)&&((Q=_.n(y,MVb))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},N=function(){return A().metadataParts||[]};
R={};return _.V("div",{class:_.To("yt-content-metadata-view-model-wiz__metadata-row",(R["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=Y,R["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var y,m=c==null?void 0:(y=c())==null?void 0:y.lockupMetadata;y=A();var T,Q;return!!((m==null?0:(T=m.byline)==null?0:T.addPadding)&&((Q=_.n(y,MVb))==null?void 0:Q.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},R["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
function(){var y;
return!!(c==null?0:(y=c())==null?0:y.lockupMetadata)&&A().badges&&!A().metadataParts},R))},_.V(_.ni,{data:function(){return A().badges}},{badgeViewModel:function(y){return _.V("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.V(_.Ho,{data:y.data}))}}),_.V(_.Ue,{each:N},function(y,m){return _.V(_.lI,null,_.V(eFH,{metadataPart:y,
isOverlay:E,useMediumText:z,hideAvatar:M}),_.V(tDq,{delimiter:P,max:function(){return N().length},
index:m,isStandalone:!1}))}),_.V(_.J,{cond:function(){return A().isSpacerRow&&!Y()},
then:function(){return _.V("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Qa");
_.Dq=_.E5(function(R){R=_.Pc(R,{layout:0,isOverlay:!1});var A=R.data,Y=R.layout,P=R.isOverlay,E=R.useMediumText,z=R.extensions,c=function(){return Y()===0},M=function(){var y;
return((y=A().metadataRows)==null?void 0:y.filter(function(m){var T,Q=z==null?void 0:(T=z())==null?void 0:T.lockupMetadata,g,r;T=!!((Q==null?0:(g=Q.description)==null?0:g.hideDescription)&&((r=_.n(m,MVb))==null?void 0:r.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var I,b;return!((Q==null?0:(I=Q.spacer)==null?0:I.hideSpacer)&&((b=_.n(m,MVb))==null?void 0:b.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||T)}))||[]},N={};
return _.V("yt-content-metadata-view-model",{class:_.To(R.className,"yt-content-metadata-view-model-wiz",(N["yt-content-metadata-view-model-wiz--inline"]=c,N["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.bc(A().rendererContext)},N["yt-content-metadata-view-model-wiz--medium-text"]=E,N)),
el:_.zo(_.fi(function(){return A().rendererContext}))},_.V(_.Ue,{each:M},function(y,m){return _.V(_.lI,null,_.V(qzb,{metadataRow:y,
isInline:c,delimiter:function(){return A().delimiter},
isOverlay:P,useMediumText:E,extensions:z}),_.V(_.J,{cond:function(){return c()&&!y.isSpacerRow},
then:function(){return _.V(tDq,{delimiter:function(){return A().delimiter},
max:function(){return M().length},
index:m,isStandalone:!0})}}))}))},"Ra");
_.Dq.idomCompat=!0;var LDS=_.E5(function(R){var A={};return _.V("yt-lockup-metadata-view-model",{class:_.To("yt-lockup-metadata-view-model-wiz",function(){a:{var Y=R.lockupStyle();if(Y==null?0:Y.isOverlay)Y="yt-lockup-metadata-view-model-wiz--overlay";else switch(Y==null?void 0:Y.arrangement){case 1:Y="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:Y="yt-lockup-metadata-view-model-wiz--vertical"}}return Y},function(){a:{var Y=R.lockupStyle();
if(Y==null?0:Y.isTiny)Y="yt-lockup-metadata-view-model-wiz--tiny";else switch(Y==null?void 0:Y.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":Y="yt-lockup-metadata-view-model-wiz--compact";break a;default:Y="yt-lockup-metadata-view-model-wiz--standard"}}return Y},(A["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var Y;
return(Y=R.lockupStyle())==null?void 0:Y.isOverlay},A["yt-lockup-metadata-view-model-wiz--card"]=function(){var Y;
return(Y=R.lockupStyle())==null?void 0:Y.isCard},A["yt-lockup-metadata-view-model-wiz--centered"]=function(){var Y;
return(Y=R.lockupStyle())==null?void 0:Y.isCentered},A["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var Y;
return(Y=R.lockupStyle())==null?void 0:Y.typographyBump},A["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var Y;
return(Y=R.lockupStyle())==null?void 0:Y.useLegacyTypography},A["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var Y;
return(Y=R.lockupStyle())==null?void 0:Y.useRichGridLegacyTypography},A))},_.V(_.ni,{data:function(){return R.data().image}},{avatarStackViewModel:function(Y){return _.V("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.V(_.d7,{data:Y.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(Y){return _.V("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.V(_.qW,{data:Y.data}))},
decoratedAvatarViewModel:function(Y){return _.V("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.V(_.LP,{data:Y.data}))}}),_.V("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.V("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var Y;return(Y=R.data().title)==null?void 0:Y.content}},_.V(_.J,{cond:function(){return R.data().title},
then:function(Y){return _.V(_.DW,{command:R.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:R.lockupAccessibilityLabel},_.V(_.NU,{text:Y,userInput:!0}))}})),_.V("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.V(_.ni,{data:function(){return R.data().metadata}},{contentMetadataViewModel:function(Y){return _.V(_.Dq,{data:Y.data,
layout:1,useMediumText:function(){var P,E;return((P=R.lockupStyle())==null?void 0:P.typographyBump)||((E=R.lockupStyle())==null?void 0:E.useRichGridLegacyTypography)},
extensions:function(){var P,E,z,c;return{lockupMetadata:{byline:{hideAvatar:((P=R.lockupStyle())==null?void 0:P.arrangement)===0,addPadding:((E=R.lockupStyle())==null?void 0:E.arrangement)===1},description:{hideDescription:!((z=R.lockupStyle())==null||!z.compactMetadata)},spacer:{hideSpacer:!((c=R.lockupStyle())==null||!c.compactMetadata)}}}}})}})),_.V(_.ni,{data:function(){return R.data().attribution}},{attributionViewModel:function(Y){return _.V("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},
_.V(ZB7,{data:Y.data,
useSmallLayout:!0}))}})),_.V("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.V(_.ni,{data:function(){return R.data().menuButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
buttonOverrides:function(){var P;return((P=R.lockupStyle())==null?0:P.isOverlay)?{style:"overlay"}:void 0}})}})))},"Sa");
LDS.idomCompat=!0;var dEZ=_.E5(function(R){var A=_.LK("notification-multi-action-renderer");_.WD(function(){requestAnimationFrame(function(){_.Ln(A.value)})});
var Y={},P={},E={};return _.V("notification-multi-action-renderer",{class:_.To("ytNotificationMultiActionRendererHost",(Y.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var z;return(z=R.useLegacyShelfStyle)==null?void 0:z.call(R)},Y)),
el:A},_.V("span",{"aria-live":"polite",class:_.To("ytNotificationMultiActionRendererTextContainer",(P.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var z;return(z=R.useLegacyShelfStyle)==null?void 0:z.call(R)},P))},_.V(_.NU,{text:function(){return R.data().responseText}})),_.V("div",{class:_.To("ytNotificationMultiActionRendererButtonContainer",(E.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var z;
return(z=R.useLegacyShelfStyle)==null?void 0:z.call(R)},E))},_.V(_.ni,{data:function(){var z;
return(z=R.data().buttons)==null?void 0:z.map(function(c){if(c=c.buttonRenderer){var M,N=Object,y=N.assign,m=(M=c.icon)==null?void 0:M.iconType;M=(M=c.command||c.serviceEndpoint||c.navigationEndpoint)?{innertubeCommand:M}:void 0;c={buttonViewModel:y.call(N,{},{iconName:m,onTap:M,trackingParams:c.trackingParams,titleFormatted:c.text?_.FS(c.text):void 0},cF3(c))}}else c=void 0;return c}).filter(function(c){return!!c})}},{buttonViewModel:function(z,c){return _.V("div",null,_.V(_.Is,{data:z.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var M;return((M=R.useModernStyles)==null?0:M.call(R))?{type:c()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Ta");var R7H=_.E5(function(R){var A=_.LK("notification-text-renderer");_.WD(function(){requestAnimationFrame(function(){_.Ln(A.value)})});
return _.V("notification-text-renderer",{el:A,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.V(_.NU,{text:function(){return R.data().successResponseText}}))},"Ua");_.Um=_.E5(function(R){var A=_.vT(dnl,function(){var P;return OBk((P=R.contentId)==null?void 0:P.call(R))}),Y=function(){var P;
return _.n((P=A())==null?void 0:P.command,_.jM)};
return _.V(_.J,{cond:function(){var P;if(!(P=Y())){var E;P=_.n((E=A())==null?void 0:E.command,j77)}return P},
then:function(){return _.V(_.J,{cond:Y,then:function(){var P={};return _.V("div",{class:_.To("ytDismissibleItemReplacedContent",function(){var E;return MDk((E=R.aspectRatio)==null?void 0:E.call(R))})},_.V("div",{class:_.To((P.ytDismissibleItemAspectRatioContainer=function(){var E;
return((E=R.aspectRatio)==null?void 0:E.call(R))!==void 0},P))},_.V(_.ni,{data:function(){var E;
return(E=Y())==null?void 0:E.item}},{notificationMultiActionRenderer:function(E){return _.V(dEZ,{data:E.data,
useModernStyles:R.useModernStyle,useLegacyShelfStyle:R.useLegacyShelfStyle})},
notificationTextRenderer:R7H})))}})},
else:R.children})},"Va");_.A37=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;R=_.zo(_.zR({visibilityCallback:function(z){var c,M=(c=A().interaction)==null?void 0:c.onFirstVisible;z&&M&&_.Zc(M)},
showOption:_.vo}));var P=function(){var z;return((z=A().interaction)==null?0:z.onTap)?function(c){var M;bEI(c,(M=A().interaction)==null?void 0:M.onTap,Y)}:void 0},E=function(){var z,c=A(),M=P(),N=(z=_.n(A().rendererContext,_.Kd))==null?void 0:z.label;
a:switch(c.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":z=1;break a;default:z=0}return{size:VDk(c.size),type:z,onTap:M,accessibilityText:N}};
return _.V("ad-avatar-view-model",{class:function(){var z;return((z=A().interaction)==null?0:z.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:R},_.V(_.J,{cond:function(){return A().image},
then:function(z){return _.V(FWS,{data:E,image:z})}}))},"Wa");_.$E=_.E5(function(R){var A=_.Pc(R,{hasDot:!1});R=Object.assign({},A);var Y=A.data,P=A.hasDot;A=A.customCommandResolver;var E=(delete R.data,delete R.hasDot,delete R.customCommandResolver,R);R=function(){return Y().style};
R!==void 0&&R!==null||_.tv(Error("Gh"));R=_.aP(function(){return Y().interaction},A);
return _.V("ad-badge-view-model",{class:_.To(function(){var z;return((z=Y().interaction)==null?0:z.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var z=E.adRenderingContextType();
Y();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:_.zo(R)},_.V(_.Pl,{data:function(){var z;Y();return{type:2,text:(z=Y().label)==null?void 0:z.content,adsIncludeDot:P(),isOverlay:Y().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Xa");var Yi7;_.X0=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;var P=R.adRenderingContextType;return _.V("ad-details-line-view-model",{class:function(){var E;return((E=A().interaction)==null?0:E.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(E){var z,c=(z=A().interaction)==null?void 0:z.onFirstVisible;E&&c&&_.Zc(c)},
showOption:_.vo}),_.aP(function(){return A().interaction},Y))},_.V(_.J,{cond:function(){return A().style},
then:function(E){return _.V(_.Ue,{each:function(){var z;return((z=A())==null?void 0:z.attributes)||[]},
keyBy:"INDEX"},function(z){return _.V(Yi7,{attribute:z,style:E,adRenderingContextType:function(){return P()}})})}}))},"Ya");
Yi7=_.E5(function(R){var A=R.attribute;var Y=R.style;var P=R.adRenderingContextType;return _.V(_.J,{cond:function(){return A().text},
then:function(E){return _.V(_.NU,{text:E,className:function(){var z=P();Y();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Za");var P7A=_.E5(function(R){var A=R.data;var Y=R.typographyBump;var P=function(){return A().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
R={};return _.V(_.lI,null,_.V("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.V(_.NU,{text:function(){return A().headline},
className:_.To("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(R.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return P==null?void 0:P()},R.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(Y==null?void 0:Y())&&!(P==null?0:P())},R)),
linkInheritColor:!0}),_.V(_.J,{cond:function(){return A().description},
then:function(E){var z={};return _.V(_.NU,{text:E,className:_.To("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return P==null?void 0:P()},z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(Y==null?void 0:Y())&&!(P==null?0:P())},z)),
linkInheritColor:!0})}}),_.V(_.J,{cond:function(){return A().secondaryDescription},
then:function(E){var z={};return _.V(_.NU,{text:E,className:_.To("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return Y==null?void 0:Y()},z)),
linkInheritColor:!0})}}),_.V("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.V(_.J,{cond:function(){return A().adAvatar},
then:function(){return _.V("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.V(_.ni,{data:function(){return A().adAvatar}},{adAvatarViewModel:_.A37}))}}),_.V(_.ni,{data:function(){return A().adBadge}},{adBadgeViewModel:function(E){return _.V(_.$E,{data:E.data,
hasDot:function(){return!!A().adDetailsLine},
adRenderingContextType:function(){return A().adRenderingContextType}})}}),_.V(_.ni,{data:function(){return A().adDetailsLine}},{adDetailsLineViewModel:function(E){return _.V(_.X0,{data:E.data,
adRenderingContextType:function(){return A().adRenderingContextType}})}}))),_.V("div",{class:function(){return P()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.V(_.ni,{data:function(){return A().menu}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
buttonOverrides:function(){a:switch(A().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var z="S";break a;default:z="M"}return{size:z}}})}})))},"$a"),E$q=_.E5(function(R){var A=R.data;
var Y=R.noBottomMargin;var P=R.useVideoLockupTopPadding;var E=R.typographyBump;R={};R=_.To("ytwFeedAdMetadataViewModelHostMetadata",(R.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return Y==null?void 0:Y()},R.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},R));
var z=function(){return A().adBadge};
z!==void 0&&z!==null||_.tv(Error("Hh"));z={};var c={};return _.V(_.lI,null,_.V(_.J,{cond:function(){return A().adAvatar},
then:function(){return _.V("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.V(_.ni,{data:function(){return A().adAvatar}},{adAvatarViewModel:function(M){return _.V(_.A37,{data:M.data})}}))}}),_.V("div",{class:R},_.V("div",{class:_.To("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return E==null?void 0:E()},z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(E==
null?void 0:E())&&_.v("web_enable_typography_bump_v2")},z))},_.V(_.NU,{text:function(){return A().headline},
linkInheritColor:!0})),_.V(_.J,{cond:function(){return A().description},
then:function(M){return _.V(_.NU,{text:M,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.V("div",{class:function(){return A().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.v("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.V(_.ni,{data:function(){return A().adBadge}},
{adBadgeViewModel:function(M){return _.V(_.$E,{data:M.data,
hasDot:function(){return!!A().adDetailsLine},
adRenderingContextType:function(){return A().adRenderingContextType}})}}),_.V(_.ni,{data:function(){return A().adDetailsLine}},{adDetailsLineViewModel:function(M){return _.V(_.X0,{data:M.data,
adRenderingContextType:function(){return A().adRenderingContextType}})}})),_.V(_.J,{cond:function(){return A().secondaryDescription},
then:function(M){return _.V(_.NU,{text:M,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.V("div",{class:_.To("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(c.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return P==null?void 0:P()},c))},_.V(_.ni,{data:function(){return A().menu}},{buttonViewModel:_.Is})))},"ab"),z7H=_.E5(function(R){var A=R.data;
var Y=R.noBottomMargin;var P=R.listenToTapEvent;var E=R.setTouchEndHandler;var z=R.useVideoLockupTopPadding;var c=R.typographyBump;R=_.zR({visibilityCallback:function(T){var Q,g=(Q=A().interaction)==null?void 0:Q.onFirstVisible;T&&g&&_.Zc(g)},
showOption:_.vo});var M=_.aP(function(){return A().interaction},void 0,function(){return P==null?void 0:P()}),N=_.x(_.yy(!1,void 0,"a2FSrb")),y=N.next().value,m=N.next().value;
N=_.Qi(function(T){(E==null?0:E())&&!y()&&(T.currentTarget.click(),m(!0),setTimeout(function(){m(!1)},100));
return!1});
return _.V("feed-ad-metadata-view-model",{class:function(){var T;return((T=A().interaction)==null?0:T.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.zo(R,M),"on:touchend":N},_.V(_.SO,null,_.V(_.$W,{when:function(){return A().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.V(P7A,{data:A,
typographyBump:c})}),_.V(_.$W,{when:function(){return A().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.V(E$q,{data:A,
noBottomMargin:Y,useVideoLockupTopPadding:z,typographyBump:c})})))},"bb");var i3S,lyZ;i3S=_.oP.inlinePreviewEnabledSelector;_.SW=_.E5(function(R){return _.V("yt-lockup-view-model",{class:_.To(R.className)},_.V(_.Um,{contentId:function(){return R.data().contentId},
useModernStyle:!0,aspectRatio:function(){var A,Y;return((A=R.containerType)==null?void 0:A.call(R))!==3?qGP(R.data().contentType,(Y=R.force16By9ThumbnailAspectRatio)==null?void 0:Y.call(R)):void 0}},function(){return _.V(lyZ,Object.assign({},R))}))},"cb");
lyZ=_.E5(function(R){R=_.Pc(R,{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 A=R.data,Y=R.containerLayoutConfig,P=R.containerType,E=R.sizing,z=R.protectBackground,c=R.typographyBump,M=R.force16By9ThumbnailAspectRatio,N=R.thumbnailFixedWidth,y=R.thumbnailTargetWidth,m=R.lockupExperiments,T=R.elementsPerRow;
R=_.zo(_.fi(function(){var nu;return(nu=A())==null?void 0:nu.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var Q=_.aE(i3S),g=_.is().resolve(_.z3(HBA)),r=g?{}:void 0,I=function(){var nu,hk,FV;return(FV=(hk=_.n((nu=A())==null?void 0:nu.rendererContext,_.Kd))==null?void 0:hk.label)!=null?FV:void 0},b=function(){var nu=Y==null?void 0:Y(),hk;
if(nu==null?0:nu.containerType){var FV=(hk=A())==null?void 0:hk.contentType;hk=m();var i8=c(),fD=y(),NG=z();nu=Object.assign({},LWq(wQ8(nu),ZEI(nu.responsiveSize),i8,FV,nu.force16By9ThumbnailAspectRatio,fD,NG,hk),{thumbnailFixedWidth:nu.contentPreviewWidth})}else nu=LWq(P(),E(),c(),(FV=A())==null?void 0:FV.contentType,M(),y(),z(),m());return nu};
g&&r&&g({enabled:function(){return Q()},
itemPlaybackModel:function(){return A().itemPlayback},
thumbnailElRef:function(){return r.thumbnailElRef},
containerElRef:R,options:function(){var nu,hk=(nu=_.n(A().metadata,_.ssA))==null?void 0:nu.endorsement;nu=r.thumbnailOverlays||[];hk&&nu.push(hk);var FV,i8;return{thumbnail:r.thumbnail,thumbnailOverlays:nu,accessibilityText:I(),thumbnailSize:r.thumbnailSize,enableRounding:b().isCollection,containPlayerWithinThumbnail:b().isCollection,trackingParams:(FV=_.n(A().rendererContext,_.Dc))==null?void 0:(i8=FV.loggingDirectives)==null?void 0:i8.trackingParams}}});
var p=0;g=_.x(_.yy(!1,void 0,"GH4i8d"));var h=g.next().value,L=g.next().value;g=_.x(_.yy(!1,void 0,"hS52Ob"));var Z=g.next().value,w=g.next().value;g=_.Qi(function(){var nu=Q()&&A().itemPlayback;Z()?(_.fn.cancelJob(p),p=_.fn.addJob(function(){L(!nu)},8,32)):L(!nu);
return!0});
var t=_.Qi(function(){p&&(_.fn.cancelJob(p),p=0);L(!1)});
_.bm(function(){p&&(_.fn.cancelJob(p),p=0)});
var d=NJk(function(){w(!0)}),Jk=d.touchFeedbackEvents,Nb=d.touchFeedbackOnPointerUp,Qk=d.touchFeedbackOnPointerDown;
d=d.touchFeedbackOnPointerLeave;var H3={};return _.V("div",{el:R,class:_.To("yt-lockup-view-model-wiz",function(){a:{var nu=b();if(nu.isOverlay)nu="yt-lockup-view-model-wiz--overlay";else switch(nu.arrangement){case 1:nu="yt-lockup-view-model-wiz--horizontal";break a;default:nu="yt-lockup-view-model-wiz--vertical"}}return nu},function(){a:{var nu=b();
if(nu.isOverlay)nu="yt-lockup-view-model-wiz--overlay";else{switch(nu.collectionStackNumber){case 1:nu="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:nu="yt-lockup-view-model-wiz--collection-stack-2";break a}nu=void 0}}return nu},function(){var nu;
return _.xE6((nu=A())==null?void 0:nu.contentId)},(H3["yt-lockup-view-model-wiz--card"]=function(){return b().isCard},H3["yt-lockup-view-model-wiz--compact"]=function(){return b().isTiny||b().sizing!=="STANDARD"},H3["yt-lockup-view-model-wiz--protect-background"]=z,H3["yt-lockup-view-model-wiz--add-margins"]=function(){return b().addMarginForFullbleed},H3["yt-lockup-view-model-wiz--centered"]=function(){return b().isCentered},H3["yt-lockup-view-model-wiz--fullbleed"]=function(){return b().fullbleed},
H3["yt-lockup-view-model-wiz--single-column-grid"]=function(){return T()===1&&P()===2},H3["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var nu;
return(nu=m())==null?void 0:nu.useRichGridLegacyMargin},H3)),
"on:mousedown":Qk,"on:mouseleave":t,"on:mouseup":Nb,"on:mouseover":g,"on:touchstart":Qk,"on:touchend":Nb,"on:pointerleave":d},_.V(_.DW,{command:function(){var nu;return _.jd((nu=A())==null?void 0:nu.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return N()&&b().arrangement===1?"width: "+N():""}},_.V(_.ni,{data:function(){var nu;
return(nu=A())==null?void 0:nu.contentImage}},{thumbnailViewModel:function(nu){return _.V(_.QO,{data:nu.data,
aspectRatio:function(){return b().aspectRatio},
disableRounding:function(){return b().disableRounding},
width:y,hovered:h,isClip:function(){var hk;return((hk=A())==null?void 0:hk.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:I63(r),lockupExperiments:function(){return m()}})},
collectionThumbnailViewModel:function(nu){return _.V(FDN,{data:nu.data,aspectRatio:function(){return b().aspectRatio},
disableRounding:function(){return b().disableRounding},
width:y,doubleStack:function(){return b().collectionStackNumber===2},
hovered:h,playbackRef:I63(r)})},
decoratedAvatarViewModel:_.LP})),_.V("div",{class:"yt-lockup-view-model-wiz__metadata"},_.V(_.ni,{data:function(){var nu;return(nu=A())==null?void 0:nu.metadata}},{lockupMetadataViewModel:function(nu){return _.V(LDS,{data:nu.data,
lockupStyle:b,lockupCommand:function(){var hk;return _.jd((hk=A())==null?void 0:hk.rendererContext)},
lockupAccessibilityLabel:function(){return I()}})},
feedAdMetadataViewModel:function(nu){return _.V(z7H,{data:nu.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:c})}}),_.V(_.ni,{data:function(){var nu;
return(nu=A())==null?void 0:nu.attachmentSlot}},{lockupAttachmentsViewModel:function(nu){return _.V(oJH,{data:nu.data,
lockupStyle:b})}})),_.V(_.Uh,{model:function(){a:{switch(b().collectionStackNumber){case 1:var nu=8;
break a;case 2:nu=12;break a}nu=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:nu}},
pointerDownEvent:Jk.pointerDownEvent,pointerUpEvent:Jk.pointerUpEvent,pointerLeaveEvent:Jk.pointerLeaveEvent}))},"db");
_.SW.idomCompat=!0;_.Ow(_.SW,"yt-lockup-view-model",{props:{data:_.VY,containerLayoutConfig:_.VY,containerType:_.VY,sizing:_.VY,protectBackground:_.VY,typographyBump:_.VY,thumbnailFixedWidth:_.VY,thumbnailTargetWidth:_.VY,force16By9ThumbnailAspectRatio:_.VY,className:_.VY,lockupExperiments:_.VY,elementsPerRow:_.VY}});var TJS,x3N=_.E5(function(R){var A=_.Pc(R,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),Y=A.text,P=A.alwaysShowTruncationText;R=A.truncationText;var E=A.onTextClick,z=A.maxLines,c=A.disableTextMask,M=A.textStyle,N=A.accessibilityLabel,y=A.textSize,m=A.alwaysTruncateAtMaxLines,T=A.expandOnClick;A=_.x(_.yy(!1,void 0,"EzA1q"));var Q=A.next().value,g=A.next().value;A=_.Qi(function(){T()&&g(!Q());E==null||E()});
var r=function(){a:switch(y()){case "medium":var t=2;break a;case "large":t=2.2;break a;default:t=1.8}return t},I=gJI(Y,function(){return Q()?Infinity:z()},r,c,m,Q),b=I.isTruncated;
Y=I.displayText;m=I.contentRef;var p=I.hiddenRef,h=I.placeholderTruncationTextRef,L=I.hiddenTruncationTextRef;I=I.truncationTextRef;var Z={},w={};return _.V("truncated-text",{class:_.To((Z["truncated-text-wiz"]=!0,Z["truncated-text-wiz--overlay"]=function(){return M()==="overlay"},Z["truncated-text-wiz--medium-text"]=function(){return y()==="medium"},Z["truncated-text-wiz--large-text"]=function(){return y()==="large"},Z["truncated-text-wiz--primary-text"]=function(){return M()==="primary-text"},Z)),
"on:click":A,style:function(){return"line-height: "+r()+"rem;"}},_.V("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:m,style:function(){return Q()?"":"max-height: "+z()*r()+"rem;"}},_.V(_.NU,{text:Y}),_.V("button",{"aria-disabled":!0,
disabled:!0,class:"truncated-text-wiz__inline-button",el:h,style:function(){return"line-height: "+r()+"rem;"}},_.V(_.NU,{text:R}))),_.V("truncated-text-content",{class:_.To("truncated-text-wiz__truncated-text-content","truncated-text-wiz__truncated-text-content--hidden-text-content"),
el:p,style:function(){return Q()?"":"max-height: "+z()*r()+"rem;"},
"aria-hidden":"true"},_.V(_.NU,{text:Y}),_.V("button",{"aria-disabled":!0,disabled:!0,class:"truncated-text-wiz__inline-button",el:L,style:function(){return"line-height: "+r()+"rem;"}},_.V(_.NU,{text:R}))),_.V("button",{"aria-label":N,
class:_.To((w["truncated-text-wiz__absolute-button"]=function(){return!c()},w["truncated-text-wiz__bottom-button"]=function(){return c()},w["truncated-text-wiz--hidden"]=function(){return!(!Q()&&(P!=null&&P()||b()))},w)),
el:I,style:function(){return"line-height: "+r()+"rem;"}},_.V(_.NU,{text:R})))},"eb");
x3N.idomCompat={callbacks:{onTextClick:!0}};var MCN=_.E5(function(R){var A=R.data;R=R.className;var Y=_.gE(function(){return HB6(A())},void 0,"APjhDb");
return _.V("yt-video-attribute-view-model",{class:R},_.V("div",{class:function(){var P=A();a:switch(P.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var E="yt-video-attribute-view-model--vertical";break a;default:E="yt-video-attribute-view-model--horizontal"}a:switch(P.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var z="yt-video-attribute-view-model--image-small";break a;default:z="yt-video-attribute-view-model--image-large"}a:switch(P.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(P.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var M="yt-video-attribute-view-model--metadata-header";break a;default:M=""}a:switch(P.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var N="yt-video-attribute-view-model--container-card";break a;default:N=""}return["yt-video-attribute-view-model",E,z,
c,M,N,HB6(P)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.nY({"background-color":function(){var P=A();if(P.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var E="";else{E=P.lightColorPalette;P=P.darkColorPalette;var z,c=((z=_.is().resolve(_.z3(_.dU)))==null?0:z())&&P?P:E;E=(E=c==null?void 0:c.section2Color)?_.Zs(E):""}return E}})},_.V(_.J,{cond:function(){return Y()||!_.v("web_video_attribute_view_model_a11y_fix")},
then:function(){return _.V(_.DW,{className:"yt-video-attribute-view-model__content-container",command:Y,role:"group",ariaLabel:function(){return A().title}},_.V(_.J,{cond:function(){return A().heroText||A().image},
then:function(){return _.V(c3b,{data:A})}}),_.V(O3q,{data:A,
sizeSmall:function(){return A().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))},
else:function(){return _.V("div",{class:"yt-video-attribute-view-model__content-container"},_.V(_.J,{cond:function(){return A().heroText||A().image},
then:function(){return _.V(c3b,{data:A})}}),_.V(O3q,{data:A,
sizeSmall:function(){return A().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}))}})))},"fb");
MCN.idomCompat=!0;var c3b=_.E5(function(R){var A=R.data;var Y,P=(Y=_.is().resolve(_.z3(_.dU)))==null?void 0:Y(),E=function(){return P&&A().darkThemeImage?A().darkThemeImage:A().image},z=_.gE(function(){return rFu(A())},void 0,"w5yahc");
return _.V("div",{class:"yt-video-attribute-view-model__hero-section"},_.V(_.SO,null,_.V(_.$W,{when:E},function(){return _.V(_.P1,{data:function(){return E()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.V(_.$W,{when:function(){return A().heroText}},function(){return _.V("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.V("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return A().heroText}))})),_.V(_.J,{cond:function(){return A().overflowMenuOnTap},
then:function(){return _.V("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.V(_.SV,{data:z,iconName:"MORE_VERT"}))}}))},"gb");
c3b.idomCompat=!0;var O3q=_.E5(function(R){var A=R.data;R=R.sizeSmall;var Y=function(){return A().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},P=_.gE(function(){return Gj(_.k9({innertubeCommand:HB6(A())}))?"link":"group"},void 0,"SgcHod"),E={};
return _.V("div",{class:_.To("yt-video-attribute-view-model__metadata",(E["yt-video-attribute-view-model--small-font"]=R,E)),role:P},_.V("h1",{class:"yt-video-attribute-view-model__title"},function(){return A().title}),_.V(_.J,{cond:function(){return A().subtitle},
then:function(){return _.V("h4",{class:"yt-video-attribute-view-model__subtitle"},_.V(_.J,{cond:Y,then:function(){return _.V(x3N,{text:function(){return nJk(A().subtitle)},
truncationText:function(){return nJk(A().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.V("span",null,function(){return A().subtitle})}}))}}),_.V(_.J,{cond:function(){return A().secondarySubtitle},
then:function(z){return _.V("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.V(_.NU,{text:function(){var c=z();if(c!=null&&c.attachmentRuns){for(var M=[],N=_.x(c.attachmentRuns),y=N.next();!y.done;y=N.next())y=y.value,y.element&&M.push(Object.assign({},y,{element:Object.assign({},y.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));c=Object.assign({},c,{attachmentRuns:M})}return c}}))}}),_.V(_.ni,
{data:function(){return A().buttonViewModel}},{buttonViewModel:function(z){return _.V(_.Is,{data:z.data,
className:"yt-video-attribute-view-model__button"})}}))},"hb");
O3q.idomCompat=!0;_.Ow(MCN,"yt-video-attribute-view-model",{props:{data:_.VY,className:_.VY}});var IU=function(){var R=_.K.apply(this,arguments)||this;R.useHighlightStyling=_.v("web_enable_deeper_metadata_highlight_styling");R.isSearch=!1;R.JSC$15141_lastScrollContainerWidth=NaN;R.pageLoadingFromNavigation=!1;R.currentIndex=0;R.supportComponentResize=!1;return R};
_.H(IU,_.K);_.l=IU.prototype;
_.l.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}}}}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.T2(this,this.onPageChange))};
_.l.detached=function(){document.removeEventListener("yt-page-type-changed",_.T2(this,this.onPageChange))};
_.l.getItemsPath=function(){return"data.cards"};
_.l.onIronResize=function(){this.updateListStyles()};
_.l.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var R;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(R=this.data)==null?void 0:R.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.v("problem_walkthrough_sd")&&!!this.centerItems};
_.l.computeCardListStyle=function(R){return R||null};
_.l.computeEmpty=function(R){return!this.get("cards.length",R)};
_.l.computeThumbnailStyle=function(R){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",R)||null};
_.l.computeHasSubtitle=function(R){return!!this.get("header.richListHeaderRenderer.subtitle",R)};
_.l.computeInitialCountNumber=function(R){return this.hasSquareMiniApp&&R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.l.computeUseFloorScrolling=function(R){return R==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.l.computeHasGameCard=function(R){return(R=this.get("cards",R))?R.some(function(A){return A.gameCardRenderer}):!1};
_.l.computeCenterHeaderTitle=function(R){return!(R==null||!R.centerHeaderTitle)};
_.l.computeHasPortraitMiniApp=function(R){return(R=R==null?void 0:R.cards)?R.some(function(A){return A.miniGameCardViewModel&&A.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.l.computeHasSquareMiniApp=function(R){return(R=R==null?void 0:R.cards)?R.some(function(A){return A.miniGameCardViewModel&&A.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.l.computeHasSkinnyWidthPortraitMiniApp=function(R){return(R=R==null?void 0:R.cards)?R.some(function(A){return A.miniGameCardViewModel&&A.miniGameCardViewModel.width===135}):!1};
_.l.computeCenterItems=function(R){return!!R};
_.l.computeHasInfoPanel=function(R){var A;return R==null?void 0:(A=R.cards)==null?void 0:A.some(function(Y){return Y.infoPanelContentRenderer})};
_.l.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.l.getItemByIndex=function(R){var A=this.items.children;return A&&A.length>R?A[R]:void 0};
_.l.onPageChange=function(){var R=this;this.pageLoadingFromNavigation=!0;_.fn.addJob(function(){R.pageLoadingFromNavigation=!1;_.MT(R.hostElement,"yt-terminate-video-preview-action")},8)};
_.l.updateListStyles=function(){if(_.v("problem_walkthrough_sd")&&this.JSC$15141_scrollContainer!==void 0){var R=this.JSC$15141_scrollContainer.clientWidth;R!==this.JSC$15141_lastScrollContainerWidth&&(this.JSC$15141_lastScrollContainerWidth=R,_.ya(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(R*.8,415)+"px"}),_.xo(this.hostElement,"iron-resize"))}};
_.Yh.Object.defineProperties(IU.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.v("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!((R=this.data)==null?0:(A=R.cards)==null?0:(Y=A[0])==null?0:Y.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!((R=this.data)==null?0:(A=R.cards)==null?0:(Y=A[0])==null?0:Y.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return _.v("enable_desktop_amsterdam_info_panels")&&!!((R=this.data)==null?0:(A=R.cards)==null?0:(Y=A[0])==null?0:Y.infoPanelContentRenderer)}}});
IU.prototype.dataChanged=IU.prototype.dataChanged;IU.prototype.onIronResize=IU.prototype.onIronResize;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],IU.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],IU.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.DP.YtdHorizontalListBehavior),_.k("design:type",Object)],IU.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.U(_.zF),_.k("design:type",Object)],IU.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],IU.prototype,"data",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],IU.prototype,"useCustomColors",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],IU.prototype,"useHighlightStyling",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.k("design:type",Object)],IU.prototype,"cardListStyle",void 0);_.C([_.S({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.k("design:type",Boolean)],IU.prototype,"empty",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.k("design:type",Boolean)],IU.prototype,"hasSubtitle",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.k("design:type",Boolean)],IU.prototype,"thumbnailStyle",void 0);_.C([_.S({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.k("design:type",Boolean)],IU.prototype,"hasGameCard",void 0);_.C([_.S({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.k("design:type",Boolean)],IU.prototype,"centerHeaderTitle",void 0);
_.C([_.S({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.k("design:type",Boolean)],IU.prototype,"hasPortraitMiniApp",void 0);_.C([_.S({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.k("design:type",Boolean)],IU.prototype,"hasSquareMiniApp",void 0);_.C([_.S({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.k("design:type",Boolean)],IU.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.C([_.S({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.k("design:type",Boolean)],IU.prototype,"hasInfoPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],IU.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],IU.prototype,"inlineStructuredDescription",void 0);_.C([_.nG("#scroll-container"),_.k("design:type",HTMLDivElement)],IU.prototype,"JSC$15141_scrollContainer",void 0);
_.C([_.S({computed:"computeInitialCountNumber(data.style.type)"}),_.k("design:type",Number)],IU.prototype,"initialCount",void 0);_.C([_.S({computed:"computeUseFloorScrolling(data.style.type)"}),_.k("design:type",Boolean)],IU.prototype,"useFloorScrolling",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.k("design:type",Boolean)],IU.prototype,"centerItems",void 0);_.C([_.S(),_.k("design:type",Object)],IU.prototype,"pageLoadingFromNavigation",void 0);
_.C([_.S(),_.k("design:type",Object)],IU.prototype,"currentIndex",void 0);_.C([_.S(),_.k("design:type",Number)],IU.prototype,"scrollCount",void 0);_.C([_.S(),_.k("design:type",Object)],IU.prototype,"supportComponentResize",void 0);_.C([_.nG("#items"),_.k("design:type",HTMLDivElement)],IU.prototype,"items",void 0);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IU.prototype,"onIronResize",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IU.prototype,"dataChanged",null);_.C([_.S({reflectToAttribute:!0}),_.X("inlineStructuredDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IU.prototype,"hideNavigationButton",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IU.prototype,"modernChapters",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IU.prototype,"hasVideoAttributeViewModels",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IU.prototype,"modernInfoPanels",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],IU);
_.B(IU,"ytd-horizontal-card-list-renderer",function(){if(EJq!==void 0)return EJq;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return EJq=R},{mode:_.Nf("kevlar_poly_si_batch_j072")?1:2});var slZ=_.E5(function(R){var A=R.data;var Y={};return _.V("video-summary-content-view-model",{class:_.To("videoSummaryContentViewModelHost",R.className,(Y.videoSummaryContentViewModelHostIsSearch=R.isSearch,Y))},_.V(_.Ue,{each:function(){var P=[],E=A().paragraphs;if(E==null||!E.length)return[];for(var z=0;z<E.length;z++){var c=_.n(E[z],JXS),M=void 0;z>0&&(M=_.n(E[z-1],JXS));M&&!!M.marker===!!c.marker?P[P.length-1].paragraphs.push(c):P.push({isList:!!c.marker,paragraphs:[c]})}return P},
keyBy:"INDEX"},function(P){return _.V(_.J,{cond:function(){return P().isList},
then:function(){return _.V("ul",{class:"videoSummaryContentViewModelList"},_.V(_.Ue,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(E){return _.V("li",{class:"videoSummaryContentViewModelListItem"},_.V(_.NU,{text:function(){return E().text}}))}))},
else:function(){return _.V(_.Ue,{each:function(){return P().paragraphs},
keyBy:"INDEX"},function(E){return _.V("p",{class:"videoSummaryContentViewModelParagraph"},_.V(_.NU,{text:function(){return E().text}}))})}})}),_.V(_.J,{cond:function(){return!!_.n(A().likeButtonViewModel,_.uo)&&!!_.n(A().dislikeButtonViewModel,_.w3)},
then:function(){return _.V("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.V("div",{class:"videoSummaryContentViewModelLikeButton"},_.V(_.Ai,{data:function(){return _.n(A().likeButtonViewModel,_.uo)},
disableIconAnimation:!0})),_.V(_.R_,{data:function(){return _.n(A().dislikeButtonViewModel,_.w3)}}))}}))},"ib");
slZ.idomCompat=!0;_.Ow(slZ,"video-summary-content-view-model",{props:{data:_.VY,isSearch:_.VY,className:_.VY}});var KS=function(){var R=_.K.apply(this,arguments)||this;var A,Y;R.isExpanded=(Y=(A=R.data)==null?void 0:A.isExpanded)!=null?Y:!1;R.disableExpand=!1;R.showProminentLabel=!1;R.showRightSideLabel=!0;R.toggleExpandableContent=function(P){R.disableExpand||(P.stopPropagation(),_.A4(_.Ah(P),R.hostElement,["info","expanded-subtitle"])||(R.isExpanded=!R.isExpanded,R.ytRendererBehavior.logExplicitClick(R.data),R.JSC$15152_cardList&&!_.v("expandable_metadata_a11y_fix_ks")&&_.RK(R,function(){_.qz(R.hostElement)})))};
R.useSquareThumbnail=!1;R.contentHiddenWithDisplayNone=_.v("web_expandable_metadata_content_hidden_with_display_none");R.startX=0;return R};
_.H(KS,_.K);_.l=KS.prototype;_.l.computeUseSquareThumbnail=function(){var R;return(R=this.data)==null?void 0:R.useSquareThumbnail};
_.l.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"}}}}};
_.l.dataChanged=function(){if(this.data){var R,A;this.isExpanded=(A=(R=this.data)==null?void 0:R.isExpanded)!=null?A:!1;var Y,P,E,z;if(R=this.isDarkTheme()?(Y=this.data)==null?void 0:(P=Y.colorData)==null?void 0:P.darkColorPalette:(E=this.data)==null?void 0:(z=E.colorData)==null?void 0:z.lightColorPalette){var c,M;if((c=this.data)==null?0:(M=c.colorData)==null?0:M.vibrantColorPalette)R.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.W1(this.hostElement,R)}}};
_.l.isExpandedChanged=function(){this.isExpanded&&this.JSC$15152_cardList&&_.xo(this.JSC$15152_cardList,"iron-resize")};
_.l.computeIsExpanded=function(R){return!!R.isExpanded};
_.l.computeShowProminentLabel=function(R,A){var Y;return!!(R==null?0:(Y=R.header)==null?0:Y.showLeadingCollapsedLabel)&&!A};
_.l.computeShowRightSideLabel=function(R,A){var Y;return!(R==null?0:(Y=R.header)==null?0:Y.showLeadingCollapsedLabel)&&!A};
_.l.captureContentClick=function(R){if(!this.disableExpand)if(_.v("expandable_metadata_fix_killswitch")){var A=R.target;_.NoA(A,"ytd-macro-markers-list-item-renderer")||R.stopPropagation();(A==null?void 0:A.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.A4(_.Ah(R),this.hostElement,["items"])||_.RP(_.Ah(R),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.l.timestampClick=function(R){R.stopPropagation();var A,Y;(R=(A=this.data)==null?void 0:(Y=A.header)==null?void 0:Y.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(R)};
_.l.onDown=function(R){R.stopPropagation();this.startX=R.detail?R.detail.x:0};
_.l.onUp=function(R){this.skipKeyInteraction(R)&&R.stopPropagation()};
_.l.skipKeyInteraction=function(R){var A=R.target;if((A==null?void 0:A.id)==="scroll-container"||(A==null?void 0:A.id)==="items"||R.detail&&R.detail.x!==this.startX)return!0;R=_.Ah(R);R=_.x(R);for(A=R.next();!A.done;A=R.next()){A=A.value;if(A===this.hostElement)break;if(A.hasAttribute&&A.hasAttribute("skip-key-interaction"))return!0}return!1};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Yh.Object.defineProperties(KS.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.n((R=this.data)==null?void 0:R.expandedContent,VQS)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.n((R=this.data)==null?void 0:R.expandedContent,_.Ntq)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.useCustomColors)&&!((A=this.data)==null||!A.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var R,A;return!!((R=this.data)==null?0:(A=R.header)==null?0:A.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var R,A;return!!((R=this.data)==null?0:(A=R.header)==null?0:A.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var R,A;return!!((R=this.data)==null?0:(A=R.header)==null?0:A.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}},
contentHidden:{configurable:!0,enumerable:!0,get:function(){return _.v("web_expandable_metadata_content_hidden_with_display_none")&&!this.isExpanded}}});
KS.prototype.onUp=KS.prototype.onUp;KS.prototype.onDown=KS.prototype.onDown;KS.prototype.isExpandedChanged=KS.prototype.isExpandedChanged;KS.prototype.dataChanged=KS.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],KS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],KS.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],KS.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],KS.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],KS.prototype,"isExpanded",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],KS.prototype,"disableExpand",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],KS.prototype,"isSearch",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],KS.prototype,"isWatch",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.k("design:type",Object)],KS.prototype,"showProminentLabel",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.k("design:type",Object)],KS.prototype,"showRightSideLabel",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"hasVideoSummary",null);_.C([_.S({value:!1,reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"hasLockupViewModel",null);_.C([_.S({reflectToAttribute:!0}),_.X("data","isWatch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"useCustomColors",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"showInfoButton",null);_.C([_.X("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"showTimestamp",null);_.C([_.X("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"showExpandedSubtitle",null);
_.C([_.X("data","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"showThumbnail",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],KS.prototype,"useVppShoppingDestinationStyle",null);_.C([_.S(),_.k("design:type",Object)],KS.prototype,"toggleExpandableContent",void 0);_.C([_.nG("ytd-horizontal-card-list-renderer"),_.k("design:type",Object)],KS.prototype,"JSC$15152_cardList",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.k("design:type",Object)],KS.prototype,"useSquareThumbnail",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],KS.prototype,"contentHiddenWithDisplayNone",void 0);_.C([_.X("isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KS.prototype,"contentHidden",null);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KS.prototype,"dataChanged",null);_.C([_.vZ("isExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KS.prototype,"isExpandedChanged",null);_.C([_.Qa("down"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],KS.prototype,"onDown",null);
_.C([_.Qa("up"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],KS.prototype,"onUp",null);_.C([_.F({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],KS);
_.B(KS,"ytd-expandable-metadata-renderer",function(){if(s5H!==void 0)return s5H;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[contentHidden]]" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return s5H=R},{mode:1});var NGA,VCZ=function(){if(NGA!==void 0)return NGA;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!shouldShowChannelThumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-video-renderer"></div>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return NGA=R};_.Ow(_.d7,"yt-avatar-stack-view-model",{props:{className:_.VY,data:_.VY,overrides:_.VY,isOverlay:_.VY,useMediumText:_.VY,decorations:_.VY,hideAvatar:_.VY}});_.bh("itemSectionRenderer","videoRenderer","ytd-video-renderer");var Wo=function(){var R=_.K.apply(this,arguments)||this;R.disableExpand=!1;R.shouldShowChannelInfo=!1;R.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return R};
_.H(Wo,_.K);_.l=Wo.prototype;_.l.computeUseSearchUi=function(){var R,A;return this.isSearch||((R=this.data)==null?void 0:(A=R.style)==null?void 0:A.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.computeUseThreeLineTitle=function(){var R;return((R=this.data)==null?void 0:R.maxTitleLines)===3};
_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.v("polymer_video_renderer_defer_menu")&&!P2D?0:void 0},"data.buttons":{id:"buttons",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",
notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.expandableMetadata":{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",properties:{isSearch:"[[useSearchUi]]",disableExpand:"[[disableExpand]]"}}}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:"yt-avatar-stack-view-model"}}}};
_.l.attached=function(){_.No(this.hostElement,"blue-links",_.v("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Va(_.Mo(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var R=this.get("data.buttons.buttonRenderer.serviceEndpoint"),A;R&&((A=_.n(R.commandMetadata,_.BM))==null?0:A.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(R);this.updateInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15157_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:this.JSC$15157_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15157_inlinePreviewHoverListener)==null||ux(R)};
_.l.onTextWrapperClick=function(R){var A,Y,P=this.hideTranslation?(A=this.data)==null?void 0:A.untranslatedNavigationEndpoint:(Y=this.data)==null?void 0:Y.navigationEndpoint;A=_.A4(_.Ah(R),this.hostElement,["expandable-metadata"]);!P||A&&!_.v("expandable_metadata_fix_killswitch")||_.RP(_.Ah(R),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.xo(this.hostElement,"yt-navigate",{endpoint:P})};
_.l.computeThumbnailWidth=function(R,A,Y,P,E){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:P?E==="MASSIVE"?600:E==="BIG"?500:E==="MEDIUM"?450:420:Y?360:A?128:R?210:246};
_.l.computeUseBiggerThumbs=function(R){return R&&_.v("enable_desktop_search_bigger_thumbs")};
_.l.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.l.computeVideoStyle=function(){if(_.v("enable_video_style")){var R,A;return(R=this.data)==null?void 0:(A=R.style)==null?void 0:A.value}};
_.l.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.l.handleHideItemSectionVideosByIdCommand=function(R){var A;R=(A=_.n(R,pyD))==null?void 0:A.videoId;this.data&&this.data.videoId===R&&(this.isHidden=!0)};
_.l.getMetadataSnippetContainerClass=function(R){return R?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.l.computeTitleText=function(R,A,Y){return R?Y:A};
_.l.computeDescriptionSnippet=function(R,A,Y){return R?Y:A};
_.l.computeSnippetText=function(R,A,Y){return R?Y:A};
_.l.computeNavigationEndpoint=function(R,A){return R?A==null?void 0:A.untranslatedNavigationEndpoint:A==null?void 0:A.navigationEndpoint};
_.l.hideInlineTitleIcon=function(R,A){return R||!A};
_.Yh.Object.defineProperties(Wo.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 R;return(R=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?R:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!(this==null?0:(R=this.data)==null?0:(A=R.channelThumbnailSupportedRenderers)==null?0:(Y=A.channelThumbnailWithLinkRenderer)==null?0:Y.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.n((R=this.data)==null?void 0:R.avatar,VVb)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$15157_inlinePreviewHoverListener)==null?0:YE(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Yh.Object.defineProperties(Wo,{template:{configurable:!0,enumerable:!0,get:function(){return VCZ()}}});
Wo.prototype.dataChanged=Wo.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Wo.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Wo.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.sH),_.k("design:type",Object)],Wo.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Wo.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Wo.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Wo.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Wo.prototype,"isBackstageVideo",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Wo.prototype,"isPostCompactVideo",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Wo.prototype,"isHistory",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Wo.prototype,"isRichGridVideoPost",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Wo.prototype,"isHidden",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Wo.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.k("design:type",Boolean)],Wo.prototype,"useSearchUi",void 0);_.C([_.S({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.k("design:type",Boolean)],Wo.prototype,"useThreeLineTitle",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.k("design:type",Boolean)],Wo.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.k("design:type",Object)],Wo.prototype,"videoStyle",void 0);_.C([_.S({computed:"computeDisableExpand(videoStyle)"}),_.k("design:type",Object)],Wo.prototype,"disableExpand",void 0);
_.C([_.S({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.k("design:type",Object)],Wo.prototype,"shouldShowChannelInfo",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],Wo.prototype,"biggerThumbsStyle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.k("design:type",String)],Wo.prototype,"inlineTitleIcon",void 0);_.C([_.S({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.k("design:type",Object)],Wo.prototype,"computedNavigationEndpoint",void 0);_.C([_.S({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(R,A){return _.mc(R.entities,"searchVideoResultEntity",A)}}),
_.k("design:type",Object)],Wo.prototype,"searchVideoResultEntity",void 0);_.C([_.nG("ytd-thumbnail"),_.k("design:type",HTMLElement)],Wo.prototype,"thumbnail",void 0);_.C([_.nG("#dismissible"),_.k("design:type",HTMLElement)],Wo.prototype,"JSC$15157_dismissibleMedia",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wo.prototype,"dataChanged",null);
_.C([_.X("searchVideoResultEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wo.prototype,"hideTranslation",null);_.C([_.X("searchVideoResultEntity"),_.k("design:type",Array),_.k("design:paramtypes",[])],Wo.prototype,"hiddenBadgeGroups",null);_.C([_.X("data","useAvatar"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wo.prototype,"shouldShowChannelThumbnail",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wo.prototype,"useAvatar",null);
_.C([_.X("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Wo.prototype,"isHovered",null);_.C([_.F({is:"ytd-video-renderer",disableElementRegistration:!0})],Wo);_.B(Wo,"ytd-video-renderer",function(){return VCZ()},{mode:_.Nf("kevlar_poly_si_batch_j047")?1:2});var jW=function(){var R=_.K.apply(this,arguments)||this;R.editDialog=null;R.roundedContainer=!0;R.isLoading=!1;R.isRichGrid=!1;R.isRichGridRepost=!1;R.reduceSidePaddings=_.v("reduce_side_paddings_in_shelf");R.JSC$15164_spinnerEl=null;return R};
_.H(jW,_.K);_.l=jW.prototype;
_.l.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"}}}};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){var R=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var A=0,Y=this.data.actions&&this.data.actions.length;A<Y;A++)this.openEditDialog(_.n(this.data.actions[A],DlH));if((A=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(A=this.get("buttonRenderer.hint.hintRenderer.hintId",A))&&A.startsWith("share-post-hint")){var P=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(P){_.gR.getInstance();var E=n1(_.dF(_.vk("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.fn.addLowPriorityJob(function(){_.NT(R.hostElement,E,P)})}}}};
_.l.updatePoll=function(R){R>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15164_spinnerEl||(this.JSC$15164_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Mo(this.hostElement).appendChild(this.JSC$15164_spinnerEl));this.JSC$15164_spinnerEl&&(this.JSC$15164_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(R){var A=this.get("updateCommentDialogEndpoint",R.detail.endpoint);A&&(this.openEditDialog(A),R.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(R,A){A&&this.updatePoll(A.selectedChoiceIndex)};
_.l.onYtServiceRequestSent=function(R,A){var Y;A.endpoint&&(_.n(A.endpoint,DJA)||_.n(A.endpoint,rsA)&&((Y=_.n(A.endpoint,rsA))==null||!Y.clientActions))&&(this.isLoading=!0);if(A.actions)for(R=0;R<A.actions.length;R++)Y=A.actions[R],_.n(Y,pd)&&(Y=this.get("updateBackstagePollAction.selectedChoiceIndex",Y),Y==void 0&&(Y=-1),this.updatePoll(Y))};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(R){R&&R.dialog&&(this.editDialog=R.dialog,R=this.editDialogEl.firstElementChild)&&(R.focus(),R.openDialog&&R.openDialog())};
_.l.computeIsPostHidden=function(R,A){return!!R||A};
_.l.computeSurfaceType=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.l.computeUsesCompactLockup=function(R){return R==="BACKSTAGE_SURFACE_TYPE_HOME"||R==="BACKSTAGE_SURFACE_TYPE_SEARCH"||R==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||R==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||R==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||R==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeShowWithoutToolbar=function(R){return!R.actionButtons&&!R.actionMenu};
_.l.computePostAttachment=function(R){if(R.backstageAttachment){if(_.n(R.backstageAttachment,E5H))return"poll";if(_.n(R.backstageAttachment,hlE))return"quiz";if(_.n(R.backstageAttachment,_.Y5))return"video";if(_.n(R.backstageAttachment,oNG))return"uploaded-videos";if(_.n(R.backstageAttachment,e5A))return R.contentText?"image":"image-only";if(_.n(R.backstageAttachment,FU7))return"playlist"}return"none"};
_.l.computePostTabIndex=function(R){return R?0:-1};
_.l.computeButtonTooltipPosition=function(R){return this.computeUsesCompactLockup(R)?"top":"bottom"};
_.l.computeHasText=function(R){return!(R==null||!R.contentText)};
_.l.onTap=function(R){var A,Y;if(((A=this.data)==null?0:A.navigationEndpoint)&&((Y=this.data)==null?void 0:Y.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var P;((P=this.data)==null?0:P.navigationEndpoint)&&!_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Yh.Object.defineProperties(jW.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.voteCount)||_.dF("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,E5H))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,oNG))}}});
jW.prototype.onYtServiceRequestCompleted=jW.prototype.onYtServiceRequestCompleted;jW.prototype.onYtServiceRequestSent=jW.prototype.onYtServiceRequestSent;jW.prototype.onYtCommentPollRevert=jW.prototype.onYtCommentPollRevert;jW.prototype.onYtCommentboxDismiss=jW.prototype.onYtCommentboxDismiss;jW.prototype.onYtNavigate=jW.prototype.onYtNavigate;jW.prototype.isLoadingChanged=jW.prototype.isLoadingChanged;jW.prototype.dataChanged=jW.prototype.dataChanged;jW.prototype.contentTextChanged=jW.prototype.contentTextChanged;
_.C([_.U(_.zF),_.k("design:type",Object)],jW.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],jW.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],jW.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],jW.prototype,"editDialog",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],jW.prototype,"roundedContainer",void 0);_.C([_.S(),_.k("design:type",Object)],jW.prototype,"isLoading",void 0);_.C([_.S({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.k("design:type",String)],jW.prototype,"surface",void 0);
_.C([_.S({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.k("design:type",Boolean)],jW.prototype,"usesCompactLockup",void 0);_.C([_.S({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],jW.prototype,"showWithoutToolbar",void 0);_.C([_.S({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.k("design:type",String)],jW.prototype,"attachment",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],jW.prototype,"isRichGrid",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],jW.prototype,"isRichGridRepost",void 0);_.C([_.S({reflectToAttribute:!0,value:_.v("use_better_post_dismissals")}),_.k("design:type",Boolean)],jW.prototype,"useBetterPostDismissals",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],jW.prototype,"reduceSidePaddings",void 0);
_.C([_.S({computed:"computeHasText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],jW.prototype,"hasText",void 0);_.C([_.nG("#expander"),_.k("design:type",Object)],jW.prototype,"expander",void 0);_.C([_.nG("#action-buttons"),_.k("design:type",Object)],jW.prototype,"actionButtons",void 0);_.C([_.nG("#edit-dialog"),_.k("design:type",HTMLElement)],jW.prototype,"editDialogEl",void 0);
_.C([_.vZ("data.contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jW.prototype,"contentTextChanged",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jW.prototype,"dataChanged",null);_.C([_.vZ("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jW.prototype,"isLoadingChanged",null);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],jW.prototype,"onYtNavigate",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jW.prototype,"onYtCommentboxDismiss",null);_.C([_.Qa("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],jW.prototype,"onYtCommentPollRevert",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],jW.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],jW.prototype,"onYtServiceRequestCompleted",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],jW.prototype,"voteCount",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],jW.prototype,"commentCount",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jW.prototype,"hasPoll",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jW.prototype,"hasUploadedVideo",null);_.C([_.F({is:"ytd-post-renderer",disableElementRegistration:!0})],jW);
_.B(jW,"ytd-post-renderer",function(){if(jI7!==void 0)return jI7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return jI7=R},{mode:1});var J3E;var y3f;var bf=function(){return _.K.apply(this,arguments)||this};
_.H(bf,_.K);bf.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.DP.YtdHorizontalListBehavior),_.k("design:type",Object)],bf.prototype,"ytdHorizontalListBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],bf.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bf.prototype,"data",void 0);
_.C([_.S({value:"$.items.children"}),_.k("design:type",String)],bf.prototype,"itemsPath",void 0);_.C([_.S({value:1}),_.k("design:type",Number)],bf.prototype,"initialCount",void 0);_.C([_.S(),_.k("design:type",String)],bf.prototype,"surface",void 0);_.C([_.F({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],bf);
_.B(bf,"ytd-post-multi-image-renderer",function(){if(y3f!==void 0)return y3f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return y3f=R},{mode:_.Nf("kevlar_poly_si_batch_j079")?1:2});var m3A={"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"}}},fS=function(){var R=_.K.apply(this,arguments)||this;R.hasInlineCommentSection=!1;R.editDialog=null;R.isLoading=!1;R.shouldHideAuthor=!1;R.shouldShowVideoTime=!1;
R.isInEngagementPanel=!1;R.hideBorder=!1;R.usesFullLockup=!1;R.shouldShowMenuInCompactView=!1;R.JSC$15180_spinnerEl=null;R.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return R};
_.H(fS,_.K);_.l=fS.prototype;_.l.configureRendererStamper=function(){return m3A};
_.l.computeIsPollHeaderEnabled=function(R){return(R==null?void 0:R.pollMetadataIcon)!=null};
_.l.getPublishTimeStampString=function(R,A){A=new Date((Number(A)-60*((new Date).getTimezoneOffset()-(new Date(Number(A)*1E3)).getTimezoneOffset()))*1E3);A=(new q6(10)).format(A);if(R&&R.runs&&R.runs.length)for(var Y=0;Y<R.runs.length;Y++)R.runs[Y].text&&(R.runs[Y].text=R.runs[Y].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",A));return R};
_.l.created=function(){this.JSC$15180_spinnerEl=null};
_.l.contentTextChanged=function(){this.expander.reset()};
_.l.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var R;if((R=this.data)==null?0:R.actions){R=_.x(this.data.actions);for(var A=R.next();!A.done;A=R.next())this.openEditDialog(_.n(A.value,DlH))}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){_.Mo(this.hostElement).querySelector("#action-buttons").reply()};
_.l.updatePoll=function(R,A){A&&this.set("data.pollMetadataVoteCountText",A);this.hasInlineCommentSection&&(R=R>=0,A=_.Mo(this.hostElement).querySelector("#action-buttons"),R?A.reply():A.hideReplyDialog())};
_.l.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15180_spinnerEl||(this.JSC$15180_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Mo(this.hostElement).appendChild(this.JSC$15180_spinnerEl));this.JSC$15180_spinnerEl&&(this.JSC$15180_spinnerEl.active=this.isLoading)};
_.l.onYtNavigate=function(R){var A=this.get("updateCommentDialogEndpoint",R.detail.endpoint);A&&(this.openEditDialog(A),R.stopPropagation())};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.onYtCommentPollRevert=function(R,A){A&&this.updatePoll(A.selectedChoiceIndex,A.totalVotes)};
_.l.onYtServiceRequestSent=function(R,A){R.stopPropagation();R=_.n(A.endpoint,rsA);if(_.n(A.endpoint,DJA)||R&&!R.clientActions)this.isLoading=!0;if(A.actions)for(R=0;R<A.actions.length;R++){var Y=A.actions[R],P=_.n(Y,pd);P&&(Y=this.get("updateBackstagePollAction.selectedChoiceIndex",Y),Y===void 0&&(Y=-1),this.updatePoll(Y,P.totalVotes))}};
_.l.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.l.openEditDialog=function(R){R&&R.dialog&&(this.editDialog=R.dialog,R=this.editDialogElement.firstElementChild)&&(R.focus(),R.openDialog&&R.openDialog())};
_.l.computeIsBodyHidden=function(R,A){return!!R||A};
_.Yh.Object.defineProperties(fS.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var R,A;if((R=this.data)==null?0:(A=R.pollMetadataIcon)==null?0:A.iconType)return _.m0(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.voteCount)||_.dF("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,E5H))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,hlE))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.n(this.data.backstageAttachment,oNG))}}});
fS.prototype.onYtServiceRequestCompleted=fS.prototype.onYtServiceRequestCompleted;fS.prototype.onYtServiceRequestSent=fS.prototype.onYtServiceRequestSent;fS.prototype.onYtCommentPollRevert=fS.prototype.onYtCommentPollRevert;fS.prototype.onYtCommentboxDismiss=fS.prototype.onYtCommentboxDismiss;fS.prototype.onYtNavigate=fS.prototype.onYtNavigate;fS.prototype.isLoadingChanged=fS.prototype.isLoadingChanged;fS.prototype.dataChanged=fS.prototype.dataChanged;fS.prototype.contentTextChanged=fS.prototype.contentTextChanged;
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],fS.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fS.prototype,"rendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fS.prototype,"rendererstamperBehavior",void 0);_.C([_.nG("#contentTextExpander"),_.k("design:type",Object)],fS.prototype,"expander",void 0);
_.C([_.nG("#edit-dialog"),_.k("design:type",Element)],fS.prototype,"editDialogElement",void 0);_.C([_.S(),_.k("design:type",Object)],fS.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],fS.prototype,"hasInlineCommentSection",void 0);_.C([_.S(),_.k("design:type",Object)],fS.prototype,"editDialog",void 0);_.C([_.S(),_.k("design:type",Object)],fS.prototype,"isLoading",void 0);
_.C([_.S({computed:"computeIsPollHeaderEnabled(data)"}),_.k("design:type",Boolean)],fS.prototype,"isPollHeaderEnabled",void 0);_.C([_.S(),_.k("design:type",Object)],fS.prototype,"shouldHideAuthor",void 0);_.C([_.S(),_.k("design:type",Object)],fS.prototype,"shouldShowVideoTime",void 0);_.C([_.S(),_.k("design:type",Object)],fS.prototype,"isInEngagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fS.prototype,"hideBorder",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fS.prototype,"usesFullLockup",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fS.prototype,"shouldShowMenuInCompactView",void 0);_.C([_.X("isInEngagementPanel"),_.k("design:type",Number),_.k("design:paramtypes",[])],fS.prototype,"postTextMaxLines",null);_.C([_.X("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],fS.prototype,"pollIcon",null);
_.C([_.vZ("data.contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fS.prototype,"contentTextChanged",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fS.prototype,"dataChanged",null);_.C([_.vZ("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fS.prototype,"isLoadingChanged",null);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],fS.prototype,"onYtNavigate",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fS.prototype,"onYtCommentboxDismiss",null);_.C([_.Qa("yt-comment-poll-revert"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],fS.prototype,"onYtCommentPollRevert",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],fS.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],fS.prototype,"onYtServiceRequestCompleted",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fS.prototype,"voteCount",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fS.prototype,"commentCount",null);_.C([_.X("data.backstageAttachment"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fS.prototype,"hasPoll",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fS.prototype,"hasQuiz",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fS.prototype,"hasUploadedVideo",null);
_.C([_.F({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],fS);
_.B(fS,"ytd-backstage-post-renderer",function(){if(J3E!==void 0)return J3E;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return J3E=R},{mode:1});var TGb;var pS=function(){var R=_.K.apply(this,arguments)||this;R.editDialog=null;R.showExpandButton=!1;R.isRichGrid=!1;R.usesFullLockup=!1;return R};
_.H(pS,_.K);_.l=pS.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.l.computeShowExpandButton=function(R){return this.usesCompactLockup||R&&R.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.l.computeUsesCompactLockup=function(R){return!!R.condensedContent};
_.l.computeShowFullContentText=function(R){return!R};
_.l.onYtNavigate=function(R){R=this.get("updateCommentDialogEndpoint",R.detail.endpoint);this.openEditDialog(R)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null};
_.l.openEditDialog=function(R){R&&R.dialog&&(this.editDialog=R.dialog,R=this.repostEditDialogEl.firstElementChild)&&(R.focus(),R.openDialog&&R.openDialog())};
_.l.onTap=function(R){if(this.data){var A=null;this.usesCompactLockup&&!_.RP(_.Ah(R)||[],this.hostElement,["YT-IMG-SHADOW"])?A=this.get("navigationEndpoint",this.data):R.target===this.moreButtonEl&&(A=this.get("navigationEndpoint",R.target.data));A&&_.xo(this.hostElement,"yt-navigate",{endpoint:A})}};
pS.prototype.onYtCommentboxDismiss=pS.prototype.onYtCommentboxDismiss;pS.prototype.onYtNavigate=pS.prototype.onYtNavigate;pS.prototype.dataChanged=pS.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pS.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],pS.prototype,"editDialog",void 0);_.C([_.S({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],pS.prototype,"usesCompactLockup",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],pS.prototype,"showExpandButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],pS.prototype,"isRichGrid",void 0);
_.C([_.S({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.k("design:type",Boolean)],pS.prototype,"showFullContentText",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],pS.prototype,"usesFullLockup",void 0);_.C([_.nG("#more"),_.k("design:type",Object)],pS.prototype,"moreButtonEl",void 0);_.C([_.nG("#repost-content-text"),_.k("design:type",HTMLElement)],pS.prototype,"repostContentTextEl",void 0);
_.C([_.nG("#repost-edit-dialog"),_.k("design:type",HTMLElement)],pS.prototype,"repostEditDialogEl",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pS.prototype,"dataChanged",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pS.prototype,"onYtNavigate",null);
_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pS.prototype,"onYtCommentboxDismiss",null);_.C([_.F({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],pS);
_.B(pS,"ytd-shared-post-renderer",function(){if(TGb!==void 0)return TGb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return TGb=R},{mode:1});var QlA;var v$b;var F0=function(){return _.K.apply(this,arguments)||this};
_.H(F0,_.K);F0.prototype.attached=function(){var R=this;this.networkStatusManager||(this.networkStatusManager=new _.wM,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){R.onlineHandler()}))};
F0.prototype.detached=function(){var R=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){R.onlineHandler()}),delete this.networkStatusManager)};
F0.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],F0.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],F0.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],F0.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],F0);
_.B(F0,"ytd-reload-page-button-renderer",function(){if(v$b!==void 0)return v$b;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return v$b=R},{mode:1});var g$S={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"},Bo=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(Bo,_.K);_.l=Bo.prototype;_.l.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.l.computeHasBodyText=function(R){return!!R.bodyText};
_.l.computeButtons=function(R){var A=[];R.ctaButton&&A.push(R.ctaButton);R.secondaryButton&&A.push(R.secondaryButton);return A};
_.l.computeRendererStyle=function(R){return R.style?R.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():R.icon?"":"no-icon"};
_.l.getIconName=function(R,A){A=A===void 0?!1:A;if(R===void 0)return"";R=this.get("icon.iconType",R);var Y;_.v("enable_hlp_client_icon_pick")?Y=this.getThemedIcon(R,A):Y=R;(A=g$S[Y])||(A="yt-icons");return[A,Y].join(":")};
_.l.getThemedIcon=function(R,A){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(R)?A?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(R)?A?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":R};
_.l.isThumbnail=function(R){return!!R.thumbnail};
_.l.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Bo.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Bo.prototype,"data",void 0);
_.C([_.S({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],Bo.prototype,"rendererStyle",void 0);_.C([_.S({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.k("design:type",String)],Bo.prototype,"iconName",void 0);_.C([_.S({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Bo.prototype,"thumbnail",void 0);_.C([_.S({computed:"computeButtons(data)"}),_.k("design:type",Array)],Bo.prototype,"buttons",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Bo.prototype,"isDarkTheme",void 0);_.C([_.S({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Bo.prototype,"hasBodyText",void 0);_.C([_.F({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],Bo);
_.B(Bo,"ytd-background-promo-renderer",function(){if(QlA!==void 0)return QlA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QlA=R},{mode:1});var n$q;var aU=function(){var R=_.K.apply(this,arguments)||this;R.collections=_.v("web_modern_collections_v2");return R};
_.H(aU,_.K);_.Yh.Object.defineProperties(aU.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E,z;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(R=this.data)==null?void 0:(A=R.thumbnail)==null?void 0:A.sampledThumbnailColor,vibrantColorPalette:(Y=this.data)==null?void 0:(P=Y.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(E=this.data)==null?void 0:(z=E.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],aU.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],aU.prototype,"collections",void 0);_.C([_.X("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],aU.prototype,"collectionStack",null);_.C([_.F({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],aU);
_.B(aU,"ytd-compact-station-renderer",function(){if(n$q!==void 0)return n$q;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return n$q=R},{mode:1});var H3A;var CS=function(){var R=_.K.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.H(CS,_.K);CS.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]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],CS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],CS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],CS.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],CS.prototype,"isRichGrid",void 0);_.C([_.F({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],CS);
_.B(CS,"ytd-grid-channel-renderer",function(){if(H3A!==void 0)return H3A;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return H3A=R},{mode:1});var r3S;var hj=function(){return _.K.apply(this,arguments)||this};
_.H(hj,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hj.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hj.prototype,"data",void 0);_.C([_.F({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],hj);
_.B(hj,"ytd-grid-movie-playlist-renderer",function(){if(r3S!==void 0)return r3S;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return r3S=R},{mode:1});var D3z;var oU=function(){var R=_.K.apply(this,arguments)||this;R.downloadProgress=0;R.transferState="TRANSFER_STATE_UNKNOWN";R.modernButtons=_.v("web_modern_buttons");R.useModernCollectionsV2=_.v("web_modern_collections_v2");return R};
_.H(oU,_.K);oU.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
oU.prototype.configureRendererStamper=function(){return{"data.menu":pP}};
oU.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
oU.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.v("woffle_playlist_renderer_killswitch")){var R,A=qV3(this.entityInfo,this.transferState,this.downloadProgress,(R=this.data)==null?void 0:R.playlistId,this.isOnline);R=A.viewPlaylistText;var Y=A.badges;A=A.thumbnailOverlays;this.isDownloads=!!R||!!Y;this.set("data.viewPlaylistText",R);Y&&Y.length>0&&this.set("data.badges",Y);A&&A.length>0&&this.set("data.thumbnailOverlays",
A)}};
_.Yh.Object.defineProperties(oU.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 R;return!((R=this.data)==null?0:R.menu)}}});
oU.prototype.transferStateChanged=oU.prototype.transferStateChanged;oU.prototype.dataChanged=oU.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oU.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],oU.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],oU.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],oU.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S({selector:_.MwV,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],oU.prototype,"downloadProgress",void 0);_.C([_.S({selector:_.oa,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],oU.prototype,"transferState",void 0);_.C([_.S({selector:O1k,selectorArgs:["data.playlistId"]}),_.k("design:type",Object)],oU.prototype,"entityInfo",void 0);_.C([_.S({selector:_.Cx}),_.k("design:type",Boolean)],oU.prototype,"isOnline",void 0);
_.C([_.S(),_.k("design:type",Object)],oU.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],oU.prototype,"downloadRenderData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],oU.prototype,"modernButtons",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],oU.prototype,"isDownloads",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],oU.prototype,"useModernCollectionsV2",void 0);
_.C([_.X("transferState"),_.S({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],oU.prototype,"downloadState",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],oU.prototype,"menuHidden",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oU.prototype,"dataChanged",null);
_.C([_.Ul("transferState","downloadProgress","isOnline"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oU.prototype,"transferStateChanged",null);_.C([_.F({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],oU);
_.B(oU,"ytd-grid-playlist-renderer",function(){if(D3z!==void 0)return D3z;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return D3z=R},{mode:1});var U3D;var kE=function(){var R=_.K.apply(this,arguments)||this;R.collections=_.v("web_modern_collections_v2");return R};
_.H(kE,_.K);kE.prototype.configureRendererStamper=function(){return{"data.menu":pP,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Yh.Object.defineProperties(kE.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(R=this.data)==null?void 0:(A=R.thumbnail)==null?void 0:A.sampledThumbnailColor,vibrantColorPalette:(Y=this.data)==null?void 0:(P=Y.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(E=this.data)==null?void 0:(z=E.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],kE.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],kE.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],kE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kE.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],kE.prototype,"collections",void 0);_.C([_.X("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],kE.prototype,"collectionStack",null);_.C([_.F({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],kE);
_.B(kE,"ytd-grid-radio-renderer",function(){if(U3D!==void 0)return U3D;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return U3D=R},{mode:1});var $38;var G1=function(){var R=_.K.apply(this,arguments)||this;R.useModernCollectionsV2=_.v("web_modern_collections_v2");return R};
_.H(G1,_.K);G1.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
G1.prototype.computeNavigationEndpoint=function(R){return ENJ(R==null?void 0:R.navigationEndpoint)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],G1.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],G1.prototype,"ytdLockupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],G1.prototype,"data",void 0);_.C([_.S({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],G1.prototype,"computedNavigationEndpoint",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],G1.prototype,"useModernCollectionsV2",void 0);_.C([_.F({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],G1);
_.B(G1,"ytd-grid-show-renderer",function(){if($38!==void 0)return $38;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $38=R},{mode:1});var XBA;_.Zq=function(R){this.playerClient=R};
_.Sib=function(R,A,Y){Y=Y===void 0?{}:Y;return R.playerClient.setOption("ad",A,Y)};
_.Zq.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Zq.prototype.executeCommand=function(R,A){this.getOptions().includes("executeCommand")?_.Sib(this,"executeCommand",{command:R,layoutId:A}):_.GI("Calling executeCommand when adModule is not loaded")};var tj=function(){return _.K.apply(this,arguments)||this};
_.H(tj,_.K);tj.prototype.getLayoutId=function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
tj.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var R=_.EJ(),A=this.getLayoutId(),Y=this.data.clickthroughEndpoint;R&&A&&_.v("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?R.getPlayerPromise().then(function(P){(new _.Zq(P)).executeCommand(Y,A)}):_.xo(this.hostElement,"yt-navigate",{endpoint:Y})}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tj.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tj.prototype,"data",void 0);_.C([_.F({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],tj);
_.B(tj,"ytd-shopping-companion-item-renderer",function(){if(XBA!==void 0)return XBA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return XBA=R},{mode:1});var IyA;var ww=function(){var R=_.K.apply(this,arguments)||this;R.isExpandableContent=!1;return R};
_.H(ww,_.K);_.Yh.Object.defineProperties(ww.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?void 0:R.price)||((A=this.data)==null?void 0:(Y=A.dealsData)==null?void 0:Y.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var R,A;if((R=this.data)!=null&&R.dealsData&&((A=this.data)==null||!A.priceReplacementText)){R=this.data.dealsData;var Y,P,E;return((Y=R.salesData)==null?void 0:Y.originalPrice)||((P=R.priceDropData)==null?void 0:P.referencePrice)||((E=R.promotionData)==null?void 0:E.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var R,A;return(R=this.data)==null?void 0:(A=R.dealsData)==null?void 0:A.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ww.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ww.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ww.prototype,"isExpandableContent",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"showCta",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"ctaText",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"hasPriceTopPosition",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"hasPriceBottomPosition",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"useNewStyle",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"showPriceReplacementText",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"priceValue",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"showDeal",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"showAffiliateDisclaimer",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"useSaleStyle",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"useFromBrandCtaStyle",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"useFromVendorCtaStyle",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],ww.prototype,"useShoppingCollectionCtaStyle",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],ww);
_.B(ww,"ytd-vertical-product-card-renderer",function(){if(IyA!==void 0)return IyA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return IyA=R},{mode:1});var KV7;var uf=function(){return _.K.apply(this,arguments)||this};
_.H(uf,_.K);uf.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uf.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],uf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],uf.prototype,"ytdLockupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uf.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],uf);
_.B(uf,"ytd-grid-movie-renderer",function(){if(KV7!==void 0)return KV7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return KV7=R},{mode:1});var WVf;var eW=function(){var R=_.K.apply(this,arguments)||this;R.roundedFix=_.v("web_enable_merch_item_rounding_fix");R.itemStyle="small-item";return R};
_.H(eW,_.K);eW.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var R,A,Y,P,E=(A=_.n((R=this.data)==null?void 0:R.buttonCommand,_.WM))==null?void 0:(Y=A.item)==null?void 0:(P=Y.notificationTextRenderer)==null?void 0:P.successResponseText;E&&_.DEJ(this.hostElement,E)}};
_.Yh.Object.defineProperties(eW.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:R.isProductPlaceholder)!==void 0&&((A=this.data)==null?void 0:A.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.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}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],eW.prototype,"roundedFix",void 0);_.C([_.S(),_.k("design:type",Object)],eW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],eW.prototype,"itemStyle",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eW.prototype,"hasPrice",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eW.prototype,"hasPriceReplacementText",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eW.prototype,"hasAdditionalFeesText",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eW.prototype,"hasAffiliateDisclaimer",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eW.prototype,"isProductPlaceholder",null);
_.C([_.S(),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eW.prototype,"hideOpenInNewIcon",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eW.prototype,"ariaLabel",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],eW);
_.B(eW,"ytd-merch-shelf-item-renderer",function(){if(WVf!==void 0)return WVf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return WVf=R},{mode:1});var jlD=_.E5(function(R){return _.V("button-card-view-model",{el:_.zo(_.fi(function(){return R.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return R.data().title},
role:"button"},_.V(_.Uh,{model:{}}),_.V("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.V("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.V(_.J,{cond:function(){return R.data().image},
then:function(A){return _.V(_.P1,{data:A,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.V("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return R.data().title})))},"jb");_.v("web_button_view_model_wcw_registration_killswitch")||_.Ow(jlD,"button-card-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){R=_.Pc(R,{className:void 0});var A=R.data;R=R.className;var Y=_.gE(function(){return A().onTapCommand},void 0,"NprDr");
return _.V("ytd-shopping-item-card",{class:_.To("ytdShoppingItemCardHost",R)},_.V(_.DW,{command:Y,className:"ytdShoppingItemCardHostLink"},_.V("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.V(_.ni,{data:function(){return A().thumbnailViewModel}},{thumbnailViewModel:function(P){return _.V(_.QO,{data:P.data,
aspectRatio:3})}})),_.V("div",null,_.V("p",{class:"ytdShoppingItemCardHostItemTitle"},_.V(_.NU,{text:function(){return A().itemTitle}})),_.V("p",{class:"ytdShoppingItemCardHostPrice"},_.V(_.NU,{text:function(){return A().priceOrStatus}})))))},"kb"),"ytd-shopping-item-card",{props:{data:_.VY,
className:_.VY}});var b3q={isAdsVideo:!0},fyH={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},pB8={showPlayerControls:!1,videoPreviewDurationMs:15E3},FVH={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var t4=null,UE6={};var Szk="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(" "),qq={},I23=(qq.FEwhat_to_watch="home",qq.FEhashtag="hashtag",qq.FEtrending="trending",qq.FEhistory="history",qq.SPunlimited="premium",qq.FEmemberships_and_purchases="paid_memberships",qq.SPredeem_code="redeem",qq.SPverify_location="locate",qq.SPminor_moment="minor_moment",
qq.FEmini_app_container="mini_app",qq.FEnews_destination="news",qq.SPopen_in_app="open_in_app",qq.FEexplore="explore",qq.FEsubscriptions="subscriptions",qq.FEsfv_audio_pivot="sfv_audio_pivot",qq.FEplaylist_aggregation="playlist_aggregation",qq);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");_.Vn("init");var BGq=function(){},o$H=_.E5(function(R){var A=R.data;
var Y=R.inlineMetadata;var P=R.aspectRatio;var E=R.scrimStyle;var z=R.className;var c=R.useDefaultStyle;var M=new BGq,N=_.v("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",y=_.gE(function(){return(c==null?0:c())?N==="SHORTS_LOCKUP_STYLE_SLIM":A().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ibyPNe"),m=_.gE(function(){return _.pX(Y)||y()||!1},void 0,"F6KaVc"),T=function(){return(E==null?void 0:E())!==void 0?E==null?void 0:E():1},Q=_.gE(function(){return A().belowThumbnailMetadata||
!m()},void 0,"t2xwLe");
R=_.zR({visibilityCallback:function(d){var Jk=A().onFirstVisible;d&&Jk&&_.Zc(Jk)},
showOption:{calledOnce:!0,state:"visible"}});var g=_.zo(),r={},I=_.To(function(){return y(),"shortsLockupViewModelHostThumbnailContainer"},(r.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.pX(P)===1},r.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.pX(P)===2},r.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.v("web_shorts_2_by_3_lockups_study")&&!_.v("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
r)),b=_.gE(function(){if(_.pX(P)===1)return 1;
_.pX(P);return 2},void 0,"LG7swb"),p,h=function(){if(M){var d;
(d=p)==null||ux(d);var Jk;if(M.hostElement&&((Jk=M.data)==null?0:Jk.inlinePlayerData)){d=Object.assign({},FVH);var Nb,Qk;((Nb=M.data)==null?void 0:(Qk=Nb.inlinePlayerData)==null?void 0:Qk.maxPlaybackLengthSec)!==void 0&&(d.videoPreviewDurationMs=M.data.inlinePlayerData.maxPlaybackLengthSec*1E3);p=Fk({mediaRenderer:M,lockupElement:M.hostElement,thumbnailElement:g.value,videoPreviewOpts:d})}}};
_.jq(function(){M&&(M.data=A(),h())},"adXpp");
var L=_.gE(function(){return A().thumbnail},void 0,"cFasFe");
r=_.gE(function(){return A().badge},void 0,"a2oavc");
var Z=_.gE(function(){return A().onTap},void 0,"jb0oIf"),w={},t={};
return _.V("ytm-shorts-lockup-view-model",{el:_.zo(function(d){M&&(M.hostElement=d)},h,R),
class:_.To("shortsLockupViewModelHost",z)},_.V(_.lI,null,_.V(_.DW,{command:Z,className:_.To("shortsLockupViewModelHostEndpoint",(w.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!Q()},w),"reel-item-endpoint",""),
ariaHidden:function(){return!m()},
tabIndex:function(){return m()?0:-1}},_.V("div",{el:g,
class:_.To("shortsLockupViewModelHostThumbnailParentContainer",(t.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!y()},t))},_.V(_.J,{cond:L,
then:function(){return _.V("div",{class:I},_.V(_.P1,{data:function(){var d;return(d=L==null?void 0:L())!=null?d:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.V(_.ni,{data:function(){return A().thumbnailViewModel}},{thumbnailViewModel:function(d){return _.V(_.QO,{data:d.data,
aspectRatio:function(){return b()},
disableRounding:function(){return y()}})}}),null),_.V(_.J,{cond:m,
then:function(){return _.V(ayS,{data:A,scrimStyle:T,useDefaultStyle:c})}}),_.V(_.ni,{data:r},{badgeViewModel:function(d){return _.V(_.Ho,{data:d.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.V(_.J,{cond:function(){return m()&&A().menuOnTap},
then:function(){return _.V(C7q,{data:A,inlineMetadata:!0})}}),_.V(_.J,{cond:Q,
then:function(){return _.V(h7Z,{data:A,useDefaultStyle:c,inlineMetadata:m})}})))},"lb"),ayS=_.E5(function(R){var A=R.data;
var Y=R.scrimStyle;var P=R.useDefaultStyle;var E=_.v("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=P&&_.v("web_hide_primary_text_for_pivot_panel"),c=_.gE(function(){return(P==null?0:P())?E==="SHORTS_LOCKUP_STYLE_SLIM":A().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"o1uIvc");
R={};R=_.To("shortsLockupViewModelHostInlineMetadata",(R.shortsLockupViewModelHostMetadataRounded=function(){return!c()},R.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(Y==null?void 0:Y())===3&&!_.v("enable_shorts_lockup_new_scrim")},R.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(Y==null?void 0:Y())===3&&_.v("enable_shorts_lockup_new_scrim")},R.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(Y==null?void 0:Y())===2||(Y==null?void 0:
Y())===4},R.shortsLockupViewModelHostShowOverPlayer=function(){return!0},R),"image-overlay-text");
var M={};return _.V("div",{class:R},_.V("h3",{class:_.To("shortsLockupViewModelHostMetadataTitle",(M.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(Y==null?void 0:Y())===4},M.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return A().belowThumbnailMetadata},M)),
"aria-label":function(){return A().accessibilityText}},_.V(_.J,{cond:function(){var N;
return!((N=A().overlayMetadata)==null||!N.primaryText)&&!z},
then:function(){return _.V(_.NU,{text:function(){var N;return(N=A().overlayMetadata)==null?void 0:N.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.V(_.J,{cond:function(){var N;
return(N=A().overlayMetadata)==null?void 0:N.secondaryText},
then:function(){return _.V(khS,{data:A,scrimStyle:Y,className:void 0})}}))},"mb"),h7Z=_.E5(function(R){var A=R.data;
var Y=R.useDefaultStyle;var P=R.inlineMetadata;var E=_.v("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=_.gE(function(){return(Y==null?0:Y())?E==="SHORTS_LOCKUP_STYLE_SLIM":A().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"c4LgDb"),c=_.zo(),M;
R=_.Qi(function(g){if(_.WT(_.Ki(g),c.value,["AVATAR-VIEW-MODEL"]))return!1;var r;(r=M)==null||r.click();return!1});
var N=_.gE(function(){return A().belowThumbnailMetadata||A().overlayMetadata},void 0,"YLe6Mc"),y=function(){return A().menuOnTap&&!P()},m=function(){var g;
return(g=N())==null?void 0:g.avatar},T={},Q={};
return _.V("div",{class:_.To(function(){return z()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(T.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!m()},T.shortsLockupViewModelHostOutsideMetadataHasMenu=y,T)),
"on:click":R,el:c,role:"presentation"},_.V(_.ni,{data:m},{avatarViewModel:function(g){return _.V("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.V(_.qW,{data:g.data}))}}),_.V("div",null,_.V("h3",{class:_.To("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(Q.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var g,r;
return!((g=N())==null?0:(r=g.primaryText)==null?0:r.content)},Q.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=P,Q)),
role:"presentation"},_.V(_.DW,{ref:function(g){return void(M=g)},
command:function(){return A().onTap},
className:_.To("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var g,r;return(g=N())==null?void 0:(r=g.primaryText)==null?void 0:r.content},
"aria-label":function(){return A().accessibilityText}},_.V(_.J,{cond:function(){var g;
return(g=N())==null?void 0:g.primaryText},
then:function(g){return _.V(_.NU,{text:g,noEndpoints:!0,noStyleRuns:!0})}}))),_.V(_.J,{cond:function(){var g;
return(g=N())==null?void 0:g.secondaryText},
then:function(g){return _.V("div",{class:_.To("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.V(_.NU,{text:g,noStyleRuns:!0}))}})),_.V(_.J,{cond:y,
then:function(){return _.V(C7q,{data:A,inlineMetadata:!1})}}))},"nb"),khS=_.E5(function(R){var A=R.data;
var Y=R.scrimStyle;R=R.className;var P={};return _.V("div",{class:_.To((P.shortsLockupViewModelHostMetadataSubhead=function(){return(Y==null?void 0:Y())!==4},P.shortsLockupViewModelHostMetadataSubheadNew=_.v("enable_shorts_lockup_new_scrim"),P.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(Y==null?void 0:Y())===4},P),R),
"aria-hidden":"true"},_.V(_.NU,{text:function(){var E;return(E=A().overlayMetadata)==null?void 0:E.secondaryText},
noStyleRuns:!0}))},"ob"),C7q=_.E5(function(R){var A=R.data;
var Y=R.inlineMetadata;R={};R=_.To((R.shortsLockupViewModelHostInlineMetadataMenu=function(){return Y()},R.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!Y()},R.shortsLockupViewModelHostShowOverPlayer=function(){return!0},R),"image-overlay-text");
return _.V("div",{class:R},_.V(_.SV,{data:function(){return{style:Y()?"overlay":"mono",accessibilityLabel:A().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(P){P.preventDefault();P.stopPropagation();var E=_.k9({elementsCommand:A().menuOnTap,forceNewState:!0});if(E==null?0:E.onclick)E.onclick(P)}}},
iconName:"MORE_VERT"}))},"pb");var GhG=_.E5(function(R){var A=R.data;var Y=R.inlineMetadata;var P=R.aspectRatio;var E=R.scrimStyle;var z=R.className;var c=R.useDefaultStyle;R=_.gE(function(){var M=A().entityId;return M?M.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.V("ytm-shorts-lockup-view-model-v2",{class:_.To("shortsLockupViewModelHost",z)},_.V(_.Um,{contentId:R,aspectRatio:function(){return(P==null?void 0:P())===1?1:(P==null?void 0:P())===2?2:4}},function(){return _.V(o$H,{data:A,
inlineMetadata:Y,aspectRatio:P,scrimStyle:E,className:z,useDefaultStyle:c})}))},"qb");_.Ow(GhG,"ytm-shorts-lockup-view-model-v2",{props:{data:_.xL,inlineMetadata:_.xL,aspectRatio:_.xL,scrimStyle:_.xL,className:_.xL,useDefaultStyle:_.xL}});var Z3E=16/9*210,LS=function(){var R=_.K.apply(this,arguments)||this;R.isExpandableContent=!1;R.hideShelfHeader=!1;R.engagementPanel=!1;R.buttonClasses=["arrow"];R.isSearch=!1;R.disableScrollEventListener=!1;R.containsLockup=!1;R.overrideArrowPositionForProductCard=!1;R.overrideArrowPositionForShoppingItemCard=!1;R.overrideArrowPositionForReelItems=!1;R.overrideArrowPositionForGridMovie=!1;R.overrideArrowPositionToCenter=!1;R.isSearchPostShelf=!1;R.overrideArrowPositionForMixedShelf=!1;R.overrideArrowPositionForMixedShelfShortsOnly=
!1;R.hasBigThumbsReelItems=!1;R.shouldUseMixedListHeight=!1;R.shouldUseShortsListHeight=!1;R.gridVideoWidth=0;R.isSearchVodShelf=!1;R.disableWheelScroll=!1;R.sizing="COMPACT";R.shortsLockupAspectRatio=0;return R};
_.H(LS,_.K);_.l=LS.prototype;
_.l.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]]"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.v("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.l.computeInitialCountNumber=function(R){if(!R)return 6;var A=R.items.some(function(z){return!!z.topicRecommendationsChipRenderer}),Y=R.items.some(function(z){return!!z.displayAdRenderer}),P=this.computeShouldListItemsHaveEqualHeight(R),E=R.items.some(function(z){return!!z.gridPlaylistRenderer});
R=R.items.some(function(z){return!!z.shoppingItemCardViewModel});
return A?9:Y?8:E||P?10:R?7:6};
_.l.computeContainsPost=function(R){return!!R&&!!R.items&&R.items.some(function(A){return!!A.postRenderer})};
_.l.computeContainsLockup=function(){if(_.v("web_horizontal_list_lockup_arrow_killswitch"))return!1;var R,A;return(R=this.data)==null?void 0:(A=R.items)==null?void 0:A.some(function(Y){return!!Y.lockupViewModel})};
_.l.maybeUpdateLockupAspectRatio=function(){var R,A;if(this.computeContainsLockup()&&((R=this.data)==null?0:(A=R.items)==null?0:A.length)){var Y;R=qGP((Y=this.data.items[0].lockupViewModel)==null?void 0:Y.contentType,this.data.force16By9ThumbnailAspectRatio);Y=P3I(R);Y=this.computeLockupWidth()/Y;_.ya(this.hostElement,{"--yt-horizontal-list-content-height":Y+"px"})}};
_.l.computeOverrideArrowPositionForProductCard=function(R){if(this.isExpandableContent)return!1;var A;return!!(R==null?0:(A=R.items)==null?0:A.some(function(Y){return!!Y.verticalProductCardRenderer}))};
_.l.computeOverrideArrowPositionForShoppingItemCard=function(R){var A;return!!(R==null?0:(A=R.items)==null?0:A.some(function(Y){return!!Y.shoppingItemCardViewModel}))};
_.l.computeOverrideArrowPositionForReelItemRenderer=function(R){return this.containsReelItemRenderer(R)};
_.l.computeHasBigThumbsReelItems=function(R,A){return R&&this.containsReelItemRenderer(A)};
_.l.computeShouldListItemsHaveEqualHeight=function(R){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(R==null?void 0:R.itemSizeConstraint)};
_.l.computeShouldListItemsHaveShortsHeight=function(R){return this.computeShouldListItemsHaveEqualHeight(R)&&!this.containsGridVideoRenderer(R)};
_.l.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.l.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.l.containsReelItemRenderer=function(R){var A;return!!(R==null?0:(A=R.items)==null?0:A.some(function(Y){return!(!Y.reelItemRenderer&&!Y.shortsLockupViewModel)}))};
_.l.containsGridVideoRenderer=function(R){var A;return!!(R==null?0:(A=R.items)==null?0:A.some(function(Y){return!!Y.gridVideoRenderer||!!Y.lockupViewModel}))};
_.l.computeContainsGridMovieRenderer=function(R){var A;return!!(R==null?0:(A=R.items)==null?0:A.some(function(Y){return!!Y.gridMovieRenderer}))};
_.l.computeOverrideArrowPositionToCenter=function(R){return this.computeIsSearchPostShelf(R)};
_.l.computeIsSearchPostShelf=function(R){var A;return!!(R==null?0:(A=R.items)==null?0:A.some(function(Y){var P,E;return((E=(P=Y.postRenderer)==null?void 0:P.surface)!=null?E:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.l.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(R){var A;return!!(R==null?0:(A=R.items)==null?0:A.some(function(Y){var P,E,z;return((z=(P=Y.backgroundPromoRenderer)==null?void 0:(E=P.style)==null?void 0:E.value)!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.l.computeIsSearchVodShelf=function(R,A){return R&&this.containsGridVideoRenderer(A)};
_.l.computeDisableWheelScroll=function(R,A){return this.computeIsSearchVodShelf(R,A)};
_.l.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.l.computeShortsLockupAspectRatio=function(){return 1};
_.l.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.ya(this.hostElement,{"--ytd-reel-item-thumbnail-height":Z3E+"px"})};
LS.prototype.dataChanged=LS.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.DP.YtdHorizontalListBehavior),_.k("design:type",Object)],LS.prototype,"ytdHorizontalListBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],LS.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],LS.prototype,"isExpandableContent",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"hideShelfHeader",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"engagementPanel",void 0);_.C([_.S(),_.k("design:type",Array)],LS.prototype,"buttonClasses",void 0);_.C([_.S(),_.k("design:type",Object)],LS.prototype,"isSearch",void 0);
_.C([_.S(),_.k("design:type",Object)],LS.prototype,"disableScrollEventListener",void 0);_.C([_.S({computed:"computeInitialCountNumber(data)"}),_.k("design:type",Number)],LS.prototype,"initialCount",void 0);_.C([_.S({computed:"computeContainsPost(data)"}),_.k("design:type",Boolean)],LS.prototype,"supportComponentResize",void 0);_.C([_.S({computed:"computeContainsPost(data)"}),_.k("design:type",Boolean)],LS.prototype,"containsPost",void 0);
_.C([_.S({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"containsLockup",void 0);_.C([_.S({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],LS.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.C([_.S({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"overrideArrowPositionForProductCard",void 0);_.C([_.S({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.C([_.S({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"overrideArrowPositionForReelItems",void 0);_.C([_.S({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"overrideArrowPositionForGridMovie",void 0);
_.C([_.S({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"overrideArrowPositionToCenter",void 0);_.C([_.S({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"isSearchPostShelf",void 0);_.C([_.S({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.C([_.S({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.C([_.S({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"hasBigThumbsReelItems",void 0);
_.C([_.S({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"shouldUseMixedListHeight",void 0);_.C([_.S({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"shouldUseShortsListHeight",void 0);_.C([_.S({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"gridVideoWidth",void 0);
_.C([_.S({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"isSearchVodShelf",void 0);_.C([_.S({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.k("design:type",Object)],LS.prototype,"disableWheelScroll",void 0);_.C([_.S({computed:"computeSizing(isSearch)"}),_.k("design:type",Object)],LS.prototype,"sizing",void 0);
_.C([_.S({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.k("design:type",Object)],LS.prototype,"shortsLockupAspectRatio",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LS.prototype,"dataChanged",null);
_.B(LS,"yt-horizontal-list-renderer",function(){if(wYS===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);wYS=R}R=wYS;return R},{mode:1});var tCb;var wB8=[10,12,14,16,18,20,24,28,32,36],uZN=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],dw=function(){var R=_.K.apply(this,arguments)||this;R.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";R.hideOverflow=!1;R.useRoboto=!1;R.fontClass="";R.overflown=!1;R.actionMap={"yt-window-resized":"resize"};return R};
_.H(dw,_.K);_.l=dw.prototype;
_.l.attached=function(){var R=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();_.RK(this,function(){R.resize()});
if(!_.lu){var A,Y,P;(A=document)==null||(Y=A.fonts)==null||(P=Y.ready)==null||P.then(function(){R.resize()})}};
_.l.dataChanged=function(){this.resize()};
_.l.guideIsExpandedChanged=function(){this.resize()};
_.l.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 R=this.getMaxNumLines(),A=this.getMinFont(),Y=this.getMaxFont(),P=this.useRoboto?wB8:uZN;for(P=P.filter(function(z){return z<=Y&&z>=A});P.length>1;){var E=Math.floor(P.length/2);
this.updateFontSize(P[E]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=R)P=P.slice(E,P.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>R)P=P.slice(0,E);else break}this.updateFontSize(P[P.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(R)}};
_.l.handleOverflow=function(R){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>R&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",R.toString()))};
_.l.updateFontSize=function(R){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+R;this.textNode.classList.add(this.fontClass)};
_.l.getMaxFont=function(){var R=this.useRoboto?wB8:uZN;R=R[R.length-1];return this.maxFontSize&&this.maxFontSize<=R?this.maxFontSize:R};
_.l.getMinFont=function(){var R=(this.useRoboto?wB8:uZN)[0];return this.minFontSize&&this.minFontSize>=R?this.minFontSize:R};
_.l.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.l.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.l.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.R4(this.text).split("\n").length-1:Infinity};
_.l.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("Ih`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
dw.prototype.guideIsExpandedChanged=dw.prototype.guideIsExpandedChanged;dw.prototype.dataChanged=dw.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],dw.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],dw.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dw.prototype,"text",void 0);
_.C([_.S(),_.k("design:type",String)],dw.prototype,"fontFamily",void 0);_.C([_.S(),_.k("design:type",Number)],dw.prototype,"maxWidth",void 0);_.C([_.S(),_.k("design:type",Number)],dw.prototype,"maxHeight",void 0);_.C([_.S(),_.k("design:type",Number)],dw.prototype,"maxFontSize",void 0);_.C([_.S(),_.k("design:type",Number)],dw.prototype,"minFontSize",void 0);_.C([_.S(),_.k("design:type",Number)],dw.prototype,"maxLines",void 0);_.C([_.S(),_.k("design:type",Object)],dw.prototype,"hideOverflow",void 0);
_.C([_.S({selector:_.LA3}),_.k("design:type",Boolean)],dw.prototype,"guideIsExpanded",void 0);_.C([_.nG("#container"),_.k("design:type",HTMLElement)],dw.prototype,"containerNode",void 0);_.C([_.nG("#text"),_.k("design:type",HTMLElement)],dw.prototype,"textNode",void 0);_.C([_.Ul("text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dw.prototype,"dataChanged",null);
_.C([_.Ul("guideIsExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dw.prototype,"guideIsExpandedChanged",null);_.C([_.F({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],dw);
_.B(dw,"yt-dynamic-sizing-formatted-string",function(){if(tCb!==void 0)return tCb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return tCb=R},{mode:1});var e7N;_.qi8=function(R){_.Rk.call(this,R)};
_.H(_.qi8,_.Rk);var LVb=function(R){_.Rk.call(this,R)};
_.H(LVb,_.qi8);var Rb=function(){return _.K.apply(this,arguments)||this};
_.H(Rb,_.K);Rb.prototype.onTapSuspendedChannel=function(){var R;if((R=this.data)!=null&&R.serviceEndpoint){var A,Y;(R=(Y=_.n((A=this.data)==null?void 0:A.serviceEndpoint,_.G$))==null?void 0:Y.url)?_.eI(R,void 0,void 0,window.top):(A=new LVb("Did not handle suspended account tap. No appealUrl."),_.bj(A))}else A=new LVb("Did not handle suspended account tap. No serviceEndpoint."),_.bj(A)};
Rb.prototype.onTap=function(){var R=this,A=_.rU(),Y,P=(Y=_.Hc(A,{veType:7116}))!=null?Y:void 0;_.ZL(A,{visualElement:P});_.wa();this.saveRoleText();var E;if((E=this.data)==null?0:E.youtubeSuspended)this.onTapSuspendedChannel();else{var z=!1,c,M;(A=(M=_.n((c=this.data)==null?void 0:c.serviceEndpoint,_.KAG))==null?void 0:M.supportedTokens)&&A.forEach(function(N){if(N.accountSigninToken)if(z=!0,R.onAccountItemTap)R.onAccountItemTap(N.accountSigninToken.signinUrl);else _.eI(N.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!z){if(c=this.get("serviceEndpoint",this.data))z=!0,this.ytComponentBehavior.resolveCommand(c);z||_.fK(new LVb("Did not handle account switch tap. No token."))}}};
Rb.prototype.saveRoleText=function(){if(this.data){var R=this.data,A=R.channelDelegationRole;if(A){var Y,P=(Y=_.n(R==null?void 0:R.serviceEndpoint,_.KAG))==null?void 0:Y.supportedTokens;if(!P){var E,z,c,M;P=(E=_.n(R==null?void 0:R.serviceEndpoint,_.Fe))==null?void 0:(z=E.popup)==null?void 0:(c=z.confirmDialogRenderer)==null?void 0:(M=c.confirmButton)==null?void 0:M.buttonRenderer;var N;P=(N=_.n(P==null?void 0:P.command,_.Jg))==null?void 0:N.commands;if(!P)return;var y;P=(y=_.n(P[1],_.KAG))==null?
void 0:y.supportedTokens}if(P){N=void 0;y=_.x(P);for(P=y.next();!P.done;P=y.next())if(P=P.value,P.datasyncIdToken){N=P.datasyncIdToken.datasyncIdToken;break}if(N){var m;a:{if(_.gmq()&&(y=_.Hx8(N+"::pom"))){y=new Zp(y);break a}y=void 0}(m=y)==null||m.set("role_text",A);if((bPl?bPl:window.location).href.indexOf("studio")!==-1&&(m=nmV())){y=m.src?(new URL(m.src)).origin:"*";var T;(T=m.contentWindow)==null||T.postMessage({action:"save_pom_role",datasyncId:N,roleText:A},y)}}}}}};
_.Yh.Object.defineProperties(Rb.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.accountPhoto)==null?void 0:A.thumbnails;return Y&&Y.length>0&&(Y[0].height===36||Y[0].height===48)?Y[0].height:40}}});
Rb.prototype.onTap=Rb.prototype.onTap;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Rb.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Rb.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!1}),_.k("design:type",Function)],Rb.prototype,"onAccountItemTap",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Rb.prototype,"enableRingForActiveAccount",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],Rb.prototype,"thumbnailSize",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rb.prototype,"onTap",null);_.C([_.F({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Rb);
_.B(Rb,"ytd-account-item-renderer",function(){if(e7N!==void 0)return e7N;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return e7N=R},{mode:1});var d37;var Ac=function(){return _.K.apply(this,arguments)||this};
_.H(Ac,_.K);Ac.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.is().resolve(_.ls).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ac.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ac.prototype,"data",void 0);_.C([_.F({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Ac);
_.B(Ac,"ytd-identity-chip-renderer",function(){if(d37!==void 0)return d37;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return d37=R},{mode:1});var RIq;var Aqz;var Ytf;var PQf;var Y4=function(){var R=_.K.apply(this,arguments)||this;R.richItemMinWidth=_.cU("wn_grid_min_item_width",310);R.isShorts=!1;R.isWatchNext=!1;R.isExploreHub=!1;return R};
_.H(Y4,_.K);_.Yh.Object.defineProperties(Y4.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var R=[],A=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.ya(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var Y;if(((Y=this.data)==null?0:Y.rows)&&A)for(A*=this.data.rows,Y=0;Y<A;Y++)R.push({});return R}}});
_.C([_.U(_.Pf),_.k("design:type",Object)],Y4.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Y4.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.FE,value:3}),_.k("design:type",Number)],Y4.prototype,"itemsPerRow",void 0);_.C([_.S({selector:_.q7S,value:6}),_.k("design:type",Number)],Y4.prototype,"slimItemsPerRow",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Number)],Y4.prototype,"richItemMinWidth",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],Y4.prototype,"miniMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Y4.prototype,"isShorts",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Y4.prototype,"isWatchNext",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Y4.prototype,"isExploreHub",void 0);
_.C([_.X("isExploreHub"),_.S({reflectToAttribute:!0}),_.k("design:type",Object),_.k("design:paramtypes",[])],Y4.prototype,"shimmerAnimation",null);_.C([_.X("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.k("design:type",Array),_.k("design:paramtypes",[])],Y4.prototype,"cardItems",null);_.C([_.F({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],Y4);
_.EQq=_.s5()(Y4,"ytd-ghost-grid-renderer",function(){if(PQf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);PQf=R}R=PQf;return R},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.Ow(_.E5(function(R){var A=_.Pc(R,{numberOfComments:3}).numberOfComments,Y=_.Pc(R,{isInitialLoad:!1}).isInitialLoad,P=_.Pc(R,{engagementPanel:!1}).engagementPanel,E=function(){return Math.min(Number(A==null?void 0:A())||20,20)};
return _.V("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.V(_.J,{cond:function(){return!(P==null?0:P())&&(Y==null?void 0:Y())},
then:function(){return _.V("div",{class:"ytGhostCommentsComments"},_.V("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.V("div",{class:_.To("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.V("div",{class:_.To("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.V("div",{class:"ytGhostCommentsGhostCard"},_.V("div",{class:"ytGhostCommentsAvatar"},_.V("div",{class:"ytGhostCommentsCircle"})),_.V("div",{class:"ytGhostCommentsComments"},_.V("div",{class:"ytGhostCommentsMeta"},
_.V("div",{class:_.To("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.V("div",{class:_.To("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.V("div",{class:"ytGhostCommentsComments"},_.V(_.Ue,{each:function(){return Array((E==null?void 0:E())||3)}},function(){return _.V("div",{class:"ytGhostCommentsGhostCard"},_.V("div",{class:"ytGhostCommentsAvatar"},_.V("div",{class:"ytGhostCommentsCircle"})),_.V("div",{class:"ytGhostCommentsHost"},_.V("div",{class:"ytGhostCommentsMeta"},
_.V("div",{class:_.To("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.V("div",{class:_.To("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.V("div",{class:_.To("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.V("div",{class:"ytGhostCommentsGhostLikeDislike"},_.V("div",{class:_.To("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.V("div",{class:_.To("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"rb"),"yt-ghost-comments",{props:{numberOfComments:_.VY,
isInitialLoad:_.VY,engagementPanel:_.VY}});_.bh("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var PA=function(){var R=_.K.apply(this,arguments)||this;R.isOverridable=!1;R.spinnerActive=!1;R.showButton=!1;R.isCommentsSection=!1;R.engagementPanel=!0;R.isShortsGrid=!1;R.isShortsPage=!1;R.isWatchPage=!1;R.ghostCardExperimentEnabled=_.v("show_ghost_comments_shorts_watch")||_.v("show_ghost_comments_desktop_watch");R.originalShowButton=!1;R.endOfList=!1;return R};
_.H(PA,_.K);_.l=PA.prototype;_.l.resetIntersectionObserver=function(){var R;(R=this.observer)==null||R.disconnect();this.observer=void 0};
_.l.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var R,A;((R=this.data)==null?void 0:R.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((A=this.data)==null?0:A.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.l.initializeIntersectionObserver=function(){var R=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(A){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y.value.isIntersecting&&(R.triggerContinuation(),R.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.l.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostCommentsSectionRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.l.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var R;((R=this.data)==null?0:R.continuationEndpoint)&&(R=_.n(this.data.continuationEndpoint,_.oE))&&this.ytdReduxBehavior.dispatch(_.cK({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:R}}))};
_.l.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.l.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.l.onServiceRequestCompleted=function(R,A){if(!_.v("kevlar_hide_spinner_on_empty_continuation_killswitch")){var Y;(Y=A.actions)!=null&&Y.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.l.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.l.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.l.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.l.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var R=3;if(this.engagementPanel){var A,Y,P;R=Math.floor(((((A=this.hostElement)==null?void 0:(Y=A.parentElement)==null?void 0:(P=Y.parentElement)==null?void 0:P.scrollHeight)||108)-108)/108);R=this.isInitialLoad?Math.max(R,3):3}A=[].concat(_.py(this.hostElement.querySelectorAll("yt-ghost-comments")));A=_.x(A);for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.numberOfComments=R,Y.isInitialLoad=this.isInitialLoad,Y.engagementPanel=
this.engagementPanel}};
_.l.detached=function(){this.resetIntersectionObserver()};
_.Yh.Object.defineProperties(PA.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.v("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.v("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
PA.prototype.numberOfGhostCommentsChanged=PA.prototype.numberOfGhostCommentsChanged;PA.prototype.continuationTriggerOffsetChanged=PA.prototype.continuationTriggerOffsetChanged;PA.prototype.showButtonChanged=PA.prototype.showButtonChanged;PA.prototype.onYtServiceRequestCompletedForButtonRenderer=PA.prototype.onYtServiceRequestCompletedForButtonRenderer;PA.prototype.onServiceRequestCompleted=PA.prototype.onServiceRequestCompleted;PA.prototype.onYtServiceRequestSentForButtonRenderer=PA.prototype.onYtServiceRequestSentForButtonRenderer;
PA.prototype.observeData=PA.prototype.observeData;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],PA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.cX.YtVisibilityBehavior),_.k("design:type",Object)],PA.prototype,"ytVisibilityBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],PA.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],PA.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],PA.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],PA.prototype,"isOverridable",void 0);_.C([_.S(),_.k("design:type",Object)],PA.prototype,"spinnerActive",void 0);_.C([_.S(),_.k("design:type",Object)],PA.prototype,"showButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],PA.prototype,"isCommentsSection",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],PA.prototype,"engagementPanel",void 0);_.C([_.S(),_.k("design:type",Object)],PA.prototype,"isShortsGrid",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.AdP}),_.k("design:type",Object)],PA.prototype,"isShortsPage",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.RR8}),_.k("design:type",Object)],PA.prototype,"isWatchPage",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],PA.prototype,"ghostCardExperimentEnabled",void 0);
_.C([_.S(),_.k("design:type",Number)],PA.prototype,"continuationTriggerOffset",void 0);_.C([_.S(),_.k("design:type",Object)],PA.prototype,"endOfList",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],PA.prototype,"isInitialLoad",void 0);_.C([_.nG("ytd-button-renderer"),_.k("design:type",_.gI)],PA.prototype,"buttonRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],PA.prototype,"buttonOverrides",void 0);
_.C([_.S(),_.X("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.k("design:type",Object),_.k("design:paramtypes",[])],PA.prototype,"isShortsCommentsSection",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"observeData",null);
_.C([_.Qa("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],PA.prototype,"onServiceRequestCompleted",null);
_.C([_.Qa("yt-service-request-completed-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.C([_.Ul("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"showButtonChanged",null);
_.C([_.Ul("continuationTriggerOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"continuationTriggerOffsetChanged",null);_.C([_.vZ("isInitialLoad","engagementPanel"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PA.prototype,"numberOfGhostCommentsChanged",null);_.C([_.F({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],PA);
_.B(PA,"ytd-continuation-item-renderer",function(){if(Ytf!==void 0)return Ytf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Ytf=R},{mode:1});var zIG;var Eo=function(){var R=_.K.apply(this,arguments)||this;R.downloadProgress=0;R.transferState="TRANSFER_STATE_UNKNOWN";R.downloadState="DOWNLOAD_STATE_UNKNOWN";R.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";R.offlineVideoPolicyExpirationTimestamp=0;R.downloadedVideoPlaybackPosition=0;return R};
_.H(Eo,_.K);Eo.prototype.dataChanged=function(){var R;this.videoData=_.n((R=this.data)==null?void 0:R.renderer,csf);this.transferStateChanged()};
Eo.prototype.downloadProgressChanged=function(){if(this.entityInfo){var R=Object.assign({},this.videoData),A=L$q(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Y=A.publishedTimeText,P=A.badges;R.shortViewCountText=A.shortViewCountText;R.publishedTimeText=Y;R.badges=P;this.set("videoData",R)}};
Eo.prototype.transferStateChanged=function(){if(this.entityInfo){var R=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",A=_.UQ(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Dn(this.entityInfo.policyEntity),Y=Object.assign({},this.videoData),P=L$q(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),E=P.publishedTimeText,z=P.badges;Y.shortViewCountText=
P.shortViewCountText;Y.publishedTimeText=E;Y.badges=z;Y.isDisabled=A;Y.isWatched=this.downloadedVideoPlaybackPosition>0;Y.navigationEndpoint=A?void 0:YOJ(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var c;R&&((c=this.videoData)==null?0:c.videoId)&&!_.v("dl_resume_click_killswitch")&&(Y.isDisabled=!1,Y.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});Y.thumbnailOverlays=eR3(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",Y)}};
Eo.prototype.transferStateChanged=Eo.prototype.transferStateChanged;Eo.prototype.downloadProgressChanged=Eo.prototype.downloadProgressChanged;Eo.prototype.dataChanged=Eo.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Eo.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Eo.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Eo.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],Eo.prototype,"videoData",void 0);_.C([_.S({selector:kb,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],Eo.prototype,"downloadProgress",void 0);_.C([_.S(),_.k("design:type",Number)],Eo.prototype,"relativeDateReference",void 0);_.C([_.S({selector:_.h0,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],Eo.prototype,"transferState",void 0);
_.C([_.S({selector:g7J,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],Eo.prototype,"downloadState",void 0);_.C([_.S({selector:i1k,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],Eo.prototype,"offlinePolicyAction",void 0);_.C([_.S({selector:lpq,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],Eo.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.C([_.S({selector:GX,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],Eo.prototype,"downloadedVideoPlaybackPosition",void 0);_.C([_.S({selector:cdJ,selectorArgs:["videoData.videoId"]}),_.k("design:type",Object)],Eo.prototype,"entityInfo",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Eo.prototype,"isDownloading",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Eo.prototype,"dataChanged",null);
_.C([_.Ul("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Eo.prototype,"downloadProgressChanged",null);_.C([_.Ul("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Eo.prototype,"transferStateChanged",null);
_.C([_.F({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],Eo);
_.B(Eo,"ytd-downloaded-video-grid-video-renderer",function(){if(zIG!==void 0)return zIG;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return zIG=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var i2b;var zg=function(){};
zg.prototype.resolve=function(R,A){var Y=this;return _.O(function(P){return P.yield(Y.resolveCommand(R,A),0)})};var l9G,i0;l9G=C13(function(R){return R.targetId},{shouldPersist:!1});
i0=l9G.updateData;_.x0A=l9G.useUpdatableData;var cq8,O2D;cq8=C13(function(R){return R.targetId});
O2D=cq8.updateData;_.MUG=cq8.useUpdatableData;var sOq=bBJ.bind(null,i0),NQE=bBJ.bind(null,O2D);(function(R,A,Y){var P=_.n(Y==null?void 0:Y.updatedRenderer,_.B38);return P?R({targetId:A},function(){return P}):!1}).bind(null,i0);var l0=function(){};
_.H(l0,zg);l0.prototype.resolveCommand=function(R){var A;return _.O(function(Y){A=_.n(R,_.ZVk);if(!A)return Y.return();sOq(A.targetId,A);_.XH(Y)})};var x4=function(){var R=_.rg.apply(this,arguments)||this;R.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return R};
_.H(x4,_.rg);_.l=x4.prototype;_.l.configureContinuationPathMap=function(){return{}};
_.l.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.l.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.l.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.l.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.l.handleAppendContinuationItemsAction=function(R){var A=_.n(R,_.C6H);if(this.data&&this.data.targetId&&A&&this.continuationPathMap&&A.targetId===this.data.targetId){var Y=CcV(R),P=Y&&this.continuationPathMap[Y];if(P&&Y)if(R=this.get(P,this.data)){a:{for(Y=0;Y<R.length;Y++){var E=R[Y],z=void 0,c=!!_.n((z=_.n(E,UdA))==null?void 0:z.content,_.zSZ);if(_.n(E,_.eb)||c)break a}Y=R.length}P="data."+P;A.continuationItems?Y===R.length-1?(this.pop(P),this.push.apply(this,[P].concat(_.py(A.continuationItems)))):
Y===R.length?this.push.apply(this,[P].concat(_.py(A.continuationItems))):this.splice.apply(this,[P,Y,1].concat(_.py(A.continuationItems))):this.splice(P,Y,1);(_.v("web_enable_voting_animation")||_.v("enable_music_web_cairo_voting_animation"))&&_.xo(this.hostElement,"yt-append-continuation-items-action-finished");_.xo(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.pK(new _.XN("append continuation items does not exist",Y));else _.pK(new _.XN("append continuation path does not exist",
Y))}};
_.l.handleReloadContinuationItemsCommand=function(R){var A=_.n(R,_.ZVk);if(this.data&&A){if(_.v("web_client_explore_hub")||_.v("web_explore_hub_on_hover")||_.v("web_client_explore_hub_on_hover"))try{_.is().resolve(l0).resolveCommand(R)}catch(z){}if(this.data.targetId&&this.continuationPathMap&&A.targetId===this.data.targetId&&(!_.v("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||A.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var Y,P=(Y=A.slot)==null?void 0:
Y.replace("RELOAD_CONTINUATION_SLOT_","");Y=(R=CcV(R)+"-"+(P==null?void 0:P.toLowerCase()))&&this.continuationPathMap[R];if(!Y||!R||!P)_.pK(new _.XN("reload continuation path does not exist",R));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(A)){if(A.replaceWithFirstItem){var E;this.set("data."+Y,((E=A.continuationItems)==null?0:E.length)?A.continuationItems[0]:{})}else this.set("data."+Y,A.continuationItems?A.continuationItems:[]);this.continuationIsReloading=
!1;_.xo(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.l.handleShowReloadUiCommand=function(R){R=_.n(R,Y2S);var A;((A=this.data)==null?0:A.targetId)&&(R==null?0:R.targetId)&&R.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
x4.prototype.observeData=x4.prototype.observeData;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],x4.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],x4.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],x4.prototype,"data",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],x4.prototype,"continuationIsReloading",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],x4.prototype,"observeData",null);_.C([_.Do()],x4);_.cA=[_.iF.YtComponentBehavior,_.fH.YtActionHandlerBehavior,x4.prototype];_.Oo={};_.Oo.YtNextContinuationBehavior=[_.QY.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",_.T2(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.T2(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(R,A){R.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,A,{}):(R={locationRetrieved:function(Y){this.makeNextContinuationRequest_(Y,A,{})}.bind(this)},_.xo(this.hostElement,"yt-retrieve-location",R))},
makeNextContinuationRequest_:function(R,A,Y){_.Bk("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();R=A(R);var P;this.canUseContextualNetworkManager_()&&(P=this.getNetworkManager());P||(P=_.is().resolve(_.a4));A=_.tM.instance;if(_.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&A){P=_.Pr([R.startsWith("/")?R.substr(1):R]);var E,z;Y=_.Ad(A,{},P,Y==null?void 0:(E=Y.context)==null?void 0:(z=E.clickTracking)==null?void 0:z.clickTrackingParams).then(function(c){return{response:c}})}else Y=
this.nextContinuation.usePost?P.postData(R,Y):P.fetchData(R);
Y.then(this.updateNextContinuationData_.bind(this,R));this.pendingContinuationRequest_=Y;this.startListeningForNavigate_()},
updateNextContinuationData_:function(R,A){var Y=this;_.Bk("ncl");this.pendingContinuationRequest_=void 0;if(A){var P={};this.nextContinuation&&(P=this.nextContinuation);if(A.response&&A.response.continuationContents&&A.response.continuationContents[P.continuationType]){R=A.response.continuationContents[P.continuationType];var E=P.header||"data.header",z=R[P.responseHeaderKey||"header"];z&&this.set(E,z);E=P.contentsArray||"data.contents";z=this.getContents_(R,P.responseContentsKey||"contents")||[];
this.pathExists_(E)?(z.unshift(E),this.push.apply(this,z)):this.set(E,z);z&&(f2k(_.rU(),A.response,this.hostElement,function(c){_.OC(Y.hostElement,"yt-store-grafted-ve-action",[c])}),_.xo(this.hostElement,"yt-next-continuation-data-updated",{continuationData:A,
page:this,contentsArray:E}));this.set(P.continuationsArray||"data.continuations",R[P.responseContinuationsKey||"continuations"]||[])}else A.reload?_.pK(new _.XN("Reloading from continuation is unsupported")):A.responseContext&&A.responseContext.errors||(delete A.xsrf_token,delete A.timing,delete A.endpoint,delete A.csn,A.responseContext&&delete A.responseContext.serviceTrackingParams,E={request:_.LQ(R,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(A).sort()},A.response&&(E.responseContentKeys=
Object.keys(A.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(E.continuationType=this.nextContinuation.continuationType.substr(0,256)),A=new _.XN("Malformed continuation",E),R.indexOf("/comment_service_ajax")==0?_.pK(A):_.bj(A)),this.set(P.continuationsArray||"data.continuations",[])}else _.fK(new _.XN("Missing continuation response",R))},
getContents_:function(R,A){A=A.split(".");return _.BO.getValueByKeys(R,A)},
pathExists_:function(R){var A=this;R=R.toString().split(".");for(var Y=0;Y<R.length;Y++)if(A=A[R[Y]],A===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var VUS;var JqS;var Mr=function(){var R=_.K.apply(this,arguments)||this;R.triggered_=!1;return R};
_.H(Mr,_.K);_.l=Mr.prototype;_.l.attached=function(){this.maybeTriggerAutoload()};
_.l.detached=function(){this.hasBeenTriggered_=!1};
_.l.onPrescanVisible=function(){this.onShow()};
_.l.onShow=function(){this.showButton||this.trigger()};
_.l.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.xo(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.l.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.l.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.l.computeLabel_=function(R,A){return R===void 0?null:R.label||!A?R.label:this.showMoreText_};
_.l.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.l.getContinuationUrl=function(R){var A={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(A.itct=this.data.clickTrackingParams);return _.du(R,A)};
_.l.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
Mr.prototype.showButtonChanged_=Mr.prototype.showButtonChanged_;Mr.prototype.observeData_=Mr.prototype.observeData_;_.C([_.U(_.cX.YtVisibilityBehavior),_.k("design:type",Object)],Mr.prototype,"ytVisibilityBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Mr.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Mr.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Mr.prototype,"showButton",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],Mr.prototype,"showIcon",void 0);_.C([_.S({computed:"computeLabel_(data, showButton)"}),_.k("design:type",Object)],Mr.prototype,"label",void 0);_.C([_.S({value:_.dF(_.vk("SHOW_MORE",void 0,"Show More"))}),_.k("design:type",Object)],Mr.prototype,"showMoreText_",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Mr.prototype,"spinnerActive_",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Mr.prototype,"hasBeenTriggered_",void 0);
_.C([_.S({value:void 0}),_.k("design:type",String)],Mr.prototype,"observeVisibleOption",void 0);_.C([_.S({value:void 0}),_.k("design:type",String)],Mr.prototype,"observeHiddenOption",void 0);_.C([_.S({value:"observe_once"}),_.k("design:type",Object)],Mr.prototype,"observePrescanOption",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mr.prototype,"observeData_",null);
_.C([_.vZ("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mr.prototype,"showButtonChanged_",null);_.C([_.CG({is:"yt-next-continuation",disableElementRegistration:!0})],Mr);
_.B(Mr,"yt-next-continuation",function(){if(JqS===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;VUS===void 0&&(VUS=document.createElement("template"));var P=VUS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);JqS=R}R=JqS;return R},{mode:2});var yqz;var m0q;var so=function(){return _.K.apply(this,arguments)||this};
_.H(so,_.K);so.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],so.prototype,"data",void 0);_.C([_.CG({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],so);
_.B(so,"yt-music-pass-small-feature-info-renderer",function(){if(m0q===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;yqz===void 0&&(yqz=document.createElement("template"));var P=yqz;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);m0q=R}R=m0q;return R},{mode:2});_.bh("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Nr=function(){var R=_.K.apply(this,arguments)||this;R.isCollapsible=!1;R.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return R};
_.H(Nr,_.K);_.l=Nr.prototype;_.l.computeIsCollapsible=function(R){return!!(((R==null?0:R.showMoreText)||(R==null?0:R.visibleRowCount))&&(R==null?0:R.isCollapsible))};
_.l.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"}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.l.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.l.onIronResize=function(){var R=this;_.u5(this,"updateGridInitItems",function(){R.maybeUpdateInitialItemsDisplayed()})};
_.l.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var R=this.getVisibleWidth();R!==0&&(R=Math.floor(R/214)*(this.data.visibleRowCount||2),R!==this.initialCount&&(this.initialCount=R,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.l.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.l.computeExpandVisible=function(R,A,Y,P){return R&&A&&Y&&!!P&&!!P.showMoreText};
_.l.computeShowMoreButton=function(R){return{text:R,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.l.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.l.initCollapsed=function(){var R=this;this.ytLazyListBehavior.canShowMore=!1;var A;(this.collapsed=!((A=this.data)==null||!A.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.RK(this,function(){_.MT(R.hostElement,"yt-refit-popups-action")})};
_.l.fillRestIfNotCollapsible=function(){var R=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!R||this.ytLazyListBehavior.fillRemainingListItems()};
_.l.computeViewAllHidden=function(R,A){return R||!A.viewAllEndpoint};
Nr.prototype.fillRestIfNotCollapsible=Nr.prototype.fillRestIfNotCollapsible;Nr.prototype.initCollapsed=Nr.prototype.initCollapsed;Nr.prototype.onIronResize=Nr.prototype.onIronResize;Nr.prototype.persistentGuideChanged=Nr.prototype.persistentGuideChanged;_.C([_.U(_.Cr),_.k("design:type",Object)],Nr.prototype,"ironResizableBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Nr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],Nr.prototype,"ytLazyListBehavior",void 0);_.C([_.U(_.Oo.YtNextContinuationBehavior),_.k("design:type",Object)],Nr.prototype,"ytNextContinuationBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Nr.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.U(_.cA),_.k("design:type",Object)],Nr.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Nr.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],Nr.prototype,"collapsed",void 0);_.C([_.S(),_.k("design:type",Number)],Nr.prototype,"initialCount",void 0);_.C([_.S({computed:"computeShowMoreButton(data.showMoreText)"}),_.k("design:type",Object)],Nr.prototype,"showMoreButton",void 0);
_.C([_.S({computed:"computeIsCollapsible(data)"}),_.k("design:type",Object)],Nr.prototype,"isCollapsible",void 0);_.C([_.nG("#items"),_.k("design:type",HTMLElement)],Nr.prototype,"items",void 0);_.C([_.Ul("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nr.prototype,"persistentGuideChanged",null);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nr.prototype,"onIronResize",null);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nr.prototype,"initCollapsed",null);_.C([_.Ul("canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nr.prototype,"fillRestIfNotCollapsible",null);_.C([_.F({is:"ytd-grid-renderer",disableElementRegistration:!0})],Nr);
_.B(Nr,"ytd-grid-renderer",function(){if(i2b!==void 0)return i2b;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return i2b=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var Ve=function(){return _.K.apply(this,arguments)||this};
_.H(Ve,_.K);
Ve.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"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ve.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ve.prototype,"data",void 0);_.C([_.F({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Ve);
_.B(Ve,"ytd-carousel-ad-renderer",function(){if(Aqz!==void 0)return Aqz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Aqz=R},{mode:1});var TQq;var Jc=function(){return _.K.apply(this,arguments)||this};
_.H(Jc,_.K);_.l=Jc.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Jc.JSC$15356_CLICK_LOCATION_ID_MAP))};
_.l.onSitelinkTap=function(R){R.stopPropagation();var A,Y,P=R==null?void 0:(A=R.model)==null?void 0:(Y=A.item)==null?void 0:Y.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,R,!1)};
_.l.onTap=function(R){var A=this.data&&this.data.content&&this.data.content.navigationEndpoint;A&&this.ytSparklesClickLocationBehavior.handleClick(A,R,!1)};
_.l.sendImpression=function(){if(this.data&&this.data.content)for(var R=_.x(this.data.content.impressionEndpoints||[]),A=R.next();!A.done;A=R.next()){A=_.x(A.value.loggingUrls||[]);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.baseUrl&&tZ(Y.baseUrl,Y.attributionSrcMode)}};
Jc.prototype.onTap=Jc.prototype.onTap;Jc.prototype.dataChanged=Jc.prototype.dataChanged;Jc.JSC$15356_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"]]);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Jc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Jc.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],Jc.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Jc.prototype,"data",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jc.prototype,"dataChanged",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Jc.prototype,"onTap",null);_.C([_.F({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],Jc);
_.B(Jc,"ytd-promoted-sparkles-text-search-renderer",function(){if(TQq!==void 0)return TQq;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return TQq=R},{mode:1});var QO8;var ye=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-mute-ad-action":"handleMuteAd"};return R};
_.H(ye,_.K);_.l=ye.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.v("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]]"}}}}}};
_.l.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.l.computeHasAdBadge=function(R){return!(R==null||!R.adBadge)};
_.l.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",ye.JSC$15365_DEFAULT_AD_BADGE_RENDERER),_.No(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,ye.JSC$15365_CLICK_LOCATION_ID_MAP))};
_.l.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var R;(((R=this.data)==null?void 0:R.impressionCommands)||[]).forEach(function(A){A=_.x(A.loggingUrls||[]);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.baseUrl&&tZ(Y.baseUrl,Y.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.l.onTap=function(R){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint,P;(A=(P=this.data)==null?void 0:P.thumbnailNavigationEndpoint)&&_.A4(_.Ah(R),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(A,R,!1):Y&&this.ytSparklesClickLocationBehavior.handleClick(Y,R,!1)};
_.l.handleMuteAd=function(){this.collapsed=!0};
_.l.attached=function(){var R=this;_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.v("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Yh.Object.defineProperties(ye.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var R;return!(((R=this.data)==null?void 0:R.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var R;return!(((R=this.data)==null?void 0:R.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.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}}});
ye.prototype.dataChanged=ye.prototype.dataChanged;
ye.JSC$15365_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"]]);
ye.JSC$15365_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.C([_.U(YX),_.k("design:type",Object)],ye.prototype,"ytdActiveViewBehavior",void 0);
_.C([_.U([_.fH.YtActionHandlerBehavior]),_.k("design:type",Object)],ye.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],ye.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ye.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ye.prototype,"collapsed",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],ye.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],ye.prototype,"biggerThumbsStyle",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.k("design:type",Boolean)],ye.prototype,"fixAlignmentSmallScreens",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs_square")}}),
_.k("design:type",Boolean)],ye.prototype,"useBiggerThumbsSquare",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.mediaHoverOverlay"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ye.prototype,"hideHoverOverlay",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ye.prototype,"webSearchLayout",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ye.prototype,"webSearchLayoutLandscape",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ye.prototype,"webSearchLayoutSquare",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ye.prototype,"sparklesCtaNoBackground",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.actionButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ye.prototype,"hideActionButton",null);_.C([_.S({computed:"computeButtonOverride(uiUpdate)"}),_.k("design:type",Object)],ye.prototype,"buttonOverride",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.k("design:type",Boolean)],ye.prototype,"hasNewAdBadge",void 0);_.C([_.X("data.promotedSparklesWebStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ye.prototype,"useRoundedBadge",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ye.prototype,"dataChanged",null);_.C([_.F({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],ye);
_.B(ye,"ytd-promoted-sparkles-web-renderer",function(){if(QO8!==void 0)return QO8;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return QO8=R},{mode:1});var vQA;var mI=function(){var R=_.K.apply(this,arguments)||this;R.isInlinePreviewTriggered=!1;R.enableMonoStyle=_.v("enable_default_mono_cta_migration_web_client");return R};
_.H(mI,_.K);_.l=mI.prototype;_.l.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]]"}}}}}};
_.l.computeShowCta=function(R){return!(R==null||!R.ctaRenderer)};
_.l.onCtaClick=function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.ctaRenderer)==null?void 0:(Y=A.buttonRenderer)==null?void 0:Y.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.l.onWatchButtonClick=function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.watchButtonRenderer)==null?void 0:(Y=A.buttonRenderer)==null?void 0:Y.command;P&&this.ytComponentBehavior.resolveCommand(P)};
_.l.onTap=function(){};
_.l.dataChanged=function(){if(this.data){var R;_.v("enable_inline_muted_playback_on_web_search")&&((R=this.data)==null?0:R.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",mI.JSC$15369_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",mI.JSC$15369_DEFAULT_CLICK_LOCATION_BEHAVIOR,mI.JSC$15369_CLICK_LOCATION_ID_MAP);
this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),R.length>0&&(R=R.namedItem("thumbnail"))&&R.removeAttribute("href"))}};
_.l.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var R=_.x(this.data.impressionUrls),A=R.next();!A.done;A=R.next())A=A.value,Dfl(A,$fk(A));this.data.impressionsFired=!0}};
_.l.maybeComputeHref=function(){return null};
_.l.computeIsShortDR=function(R){return!(R==null||!R.watchButtonRenderer)&&!(R==null||!R.ctaRenderer)&&!!this.enableShortDR};
_.l.computeIsNewUiOrShortDr=function(R){return!!this.enableUiUpdate||this.computeIsShortDR(R)};
_.l.computeIsNewUiAndNotShortDr=function(R){return!!this.enableUiUpdate&&!this.computeIsShortDR(R)};
_.l.computeHideAvatar=function(R){return!((R==null?0:R.channelThumbnail)&&this.computeIsNewUiOrShortDr(R))};
_.l.onClick=function(R){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint;if(this.enableShortDR&&Y&&(_.n(Y,_.LO)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(Y,R,!!_.n(Y,_.LO)),R.stopPropagation();else if(Y&&_.n(Y,_.LO))this.ytSparklesClickLocationBehavior.handleClick(Y,R,!0),R.stopPropagation();else if(Y){var P,E;((P=this.data)==null?0:P.navigationEndpoint)&&((E=this.data)==null?0:E.adPlaybackContextParams)&&(A=this.data.navigationEndpoint,R=this.data.adPlaybackContextParams,
A.commandMetadata&&_.n(A.commandMetadata,_.Ti)&&_.n(A.commandMetadata,_.Ti).url&&(A=_.qI(_.n(A.commandMetadata,_.Ti).url).adurl)&&_.UT6(A)&&_.Yo(_.t_(A),{encoded_ad_playback_context:R}));this.ytComponentBehavior.resolveCommand(Y)}};
_.l.computeButtonOverride=function(R){if(this.computeIsNewUiOrShortDr(R))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.l.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.l.onThumbnailContainerClick=function(R){this.onClick(R)};
_.l.computeThumbnailWidth=function(R,A){return R?A==="MASSIVE"?600:A==="BIG"?500:A==="MEDIUM"?450:420:360};
_.l.attached=function(){var R=this,A;_.v("enable_inline_muted_playback_on_web_search")&&((A=this.data)==null?0:A.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){var R;_.v("enable_inline_muted_playback_on_web_search")&&((R=this.data)==null?0:R.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.v("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15370_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:b3q})};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15370_inlinePreviewHoverListener)==null||ux(R)};
mI.prototype.dataChanged=mI.prototype.dataChanged;mI.prototype.onTap=mI.prototype.onTap;mI.JSC$15369_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};mI.JSC$15369_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
mI.JSC$15369_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"}];_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mI.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mI.prototype,"ytRendererBehavior",void 0);_.C([_.U(YX),_.k("design:type",Object)],mI.prototype,"ytdActiveViewBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],mI.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],mI.prototype,"ytSparklesClickLocationBehavior",void 0);
_.C([_.nG("#main-container"),_.k("design:type",HTMLElement)],mI.prototype,"mainContainer",void 0);_.C([_.S(),_.k("design:type",Object)],mI.prototype,"isInlinePreviewTriggered",void 0);_.C([_.S(),_.k("design:type",Object)],mI.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],mI.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_video_display_compact_button_group_for_desktop_search")}}),
_.k("design:type",Boolean)],mI.prototype,"enableShortDR",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_vac_ui_update_for_desktop_search")}}),
_.k("design:type",Boolean)],mI.prototype,"enableUiUpdate",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],mI.prototype,"biggerThumbsStyle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.k("design:type",Boolean)],mI.prototype,"showCta",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.k("design:type",Boolean)],mI.prototype,"isShortDr",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.k("design:type",Boolean)],mI.prototype,"isShortDrOrNewUi",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.k("design:type",Boolean)],mI.prototype,"isNewUiAndNotShortDr",void 0);_.C([_.S({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],mI.prototype,"buttonOverride",void 0);_.C([_.S({computed:"computeSecondaryButtonOverride(data)"}),_.k("design:type",Object)],mI.prototype,"secondaryButtonOverride",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mI.prototype,"enableMonoStyle",void 0);
_.C([_.nG("ytd-thumbnail"),_.k("design:type",HTMLElement)],mI.prototype,"thumbnail",void 0);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mI.prototype,"onTap",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mI.prototype,"dataChanged",null);_.C([_.F({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],mI);
_.B(mI,"ytd-promoted-video-renderer",function(){if(vQA!==void 0)return vQA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return vQA=R},{mode:1});var gQA;var Tg=function(){var R=_.K.apply(this,arguments)||this;R.useRoundedBadge=!0;R.sitelinkIds=[];return R};
_.H(Tg,_.K);_.l=Tg.prototype;
_.l.configureRendererStamper=function(){return{"data.menu":{id:_.v("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]]"}}}}}};
_.l.dataChanged=function(){var R;(R=this.data)!=null&&R.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,Tg.JSC$15375_CLICK_LOCATION_ID_MAP)};
_.l.onTap=function(R){var A,Y=(A=this.data)==null?void 0:A.navigationCommand;Y&&!_.A4(_.Ah(R),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(Y,R,!1)};
_.l.onSitelinkTap=function(R){var A,Y,P=R==null?void 0:(A=R.model)==null?void 0:(Y=A.item)==null?void 0:Y.onTap;P&&this.ytSparklesClickLocationBehavior.handleClick(P,R,!1)};
_.l.configureSitelinkClickTargets=function(){var R=this,A,Y,P=(A=this.data)==null?void 0:(Y=A.clickLocationTargets)==null?void 0:Y.find(function(E){return E.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
P&&_.Mo(this.hostElement).querySelectorAll(".sitelink").forEach(function(E){_.No(E,"yt-simple-endpoint",!0);R.sitelinkIds.push(E.id);var z,c;(z=R.ytSparklesClickLocationBehavior)==null||(c=z.clickTargetMap)==null||c.set(E.id,P)})};
_.l.sendImpression=function(){var R,A,Y=((R=this.data)==null?void 0:(A=R.impressionCommand)==null?void 0:A.loggingUrls)||[];R=_.x(Y);for(A=R.next();!A.done;A=R.next())A=A.value,A.baseUrl&&tZ(A.baseUrl,A.attributionSrcMode)};
_.l.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Yh.Object.defineProperties(Tg.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
Tg.prototype.onTap=Tg.prototype.onTap;Tg.prototype.dataChanged=Tg.prototype.dataChanged;Tg.JSC$15375_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"]]);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],Tg.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Tg.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tg.prototype,"showFavicon",null);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],Tg.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],Tg.prototype,"biggerThumbsStyle",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.k("design:type",Boolean)],Tg.prototype,"enableThumbnailScalingFix",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tg.prototype,"dataChanged",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Tg.prototype,"onTap",null);_.C([_.F({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],Tg);
_.B(Tg,"ytd-text-image-no-button-layout-renderer",function(){if(gQA!==void 0)return gQA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return gQA=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var nQA;var Qe=function(){var R=_.K.apply(this,arguments)||this;R.isInlinePlaybackState=!1;R.uiUpdate=_.v("web_modern_buttons");R.hideCta=_.v("hide_cta_for_home_web_video_ads");R.noBottomMargin=!1;R.animateInTimeStamp=_.cU("hide_cta_for_home_web_video_ads_animate_in_time");R.animateInCta=!1;R.isHovered=!1;R.enableMonoStyle=_.v("enable_default_mono_cta_migration_web_client");R.player=null;R.JSC$15382_playerEvents=new Map;R.JSC$15382_preventProgressSaveTimer=null;R.delayedCtaJobId=null;return R};
_.H(Qe,_.K);_.l=Qe.prototype;_.l.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]]"}}}}}};
_.l.attached=function(){this.JSC$15382_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15382_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.v("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.l.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15382_playerEvents)};
_.l.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",Qe.JSC$15381_DEFAULT_CLICK_LOCATION_BEHAVIOR,Qe.JSC$15381_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.l.hoverChanged=function(){var R=this;this.delayedCtaJobId&&(_.fn.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.v("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.$H(_.fn,function(){R.buttonContainer.classList.add("show-delayed-buttons")},_.cU("delayed_cta_on_web_delay_milliseconds")))};
_.l.setPlayer=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return(A=_.MT(R.hostElement,"yt-get-inline-preview-player-action"))&&A[0]?Y.yield(A[0].getPlayerPromise(),3):Y.jumpTo(0);R.player=Y.yieldResult;R.ytPlayerListenerBehavior.listenToPlayerEvents(R.player,R.JSC$15382_playerEvents);_.XH(Y)})};
_.l.onPlaybackStart=function(){var R=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15382_preventProgressSaveTimer=_.JM(_.fn,function(){R.JSC$15382_preventProgressSaveTimer=null},1E4))};
_.l.onVideoProgress=function(R){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&R>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.l.resetPreventProgressSaveTimer=function(){_.fn.cancelJob(this.JSC$15382_preventProgressSaveTimer);this.JSC$15382_preventProgressSaveTimer=null};
_.l.getSimpleString=function(R){return _.R4(R)};
_.l.onClick=function(R){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint,P;A=(P=this.data)==null?void 0:P.channelEndpoint;var E,z;(P=(z=_.n((E=this.data)==null?void 0:E.adCtaButton,_.RC))==null?void 0:z.command)&&_.A4(_.Ah(R),this.hostElement,["call-to-action"])?_.v("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(P,R,!1):A&&_.A4(_.Ah(R),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(A,R,!1):!_.A4(_.Ah(R),this.hostElement,["secondary-button"])&&Y&&(_.v("enable_short_dr_for_desktop_launchable")?(E=!!_.n(Y,_.LO),this.isInlinePlaybackState&&E&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(Y,R,E)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(Y,R,!0)))}};
_.l.updateWatchEndpointStartTime=function(){var R,A;this.player&&((R=this.data)==null?0:R.inlinePlaybackEndpoint)&&((A=this.data)==null?0:A.navigationEndpoint)&&!this.JSC$15382_preventProgressSaveTimer&&(R=Math.floor(this.player.getCurrentTime()),_.n(this.data.navigationEndpoint,_.LO).startTimeSeconds=R,_.n(this.data.inlinePlaybackEndpoint,_.LO).startTimeSeconds=R)};
_.l.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.l.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Yh.Object.defineProperties(Qe.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.v("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.watchButton)&&!((A=this.data)==null||!A.adCtaButton)}}});
Qe.prototype.hoverChanged=Qe.prototype.hoverChanged;Qe.prototype.dataChanged=Qe.prototype.dataChanged;
Qe.JSC$15381_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"]]);
Qe.JSC$15381_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"}];
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qe.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Qe.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Qe.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],Qe.prototype,"ytSparklesClickLocationBehavior",void 0);
_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],Qe.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qe.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qe.prototype,"isInlinePlaybackState",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Qe.prototype,"miniMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qe.prototype,"uiUpdate",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qe.prototype,"hideCta",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qe.prototype,"noBottomMargin",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qe.prototype,"animateInCta",void 0);_.C([_.S({computed:"computeButtonOverride(uiUpdate)"}),_.k("design:type",Object)],Qe.prototype,"buttonOverride",void 0);
_.C([_.S({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.k("design:type",Object)],Qe.prototype,"secondaryButtonOverride",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qe.prototype,"isHovered",void 0);_.C([_.nG("#button-container"),_.k("design:type",HTMLElement)],Qe.prototype,"buttonContainer",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Qe.prototype,"typographyBump",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("typographyBump"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Qe.prototype,"typographyBumpV2",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qe.prototype,"enableMonoStyle",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qe.prototype,"dataChanged",null);
_.C([_.vZ("isHovered"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qe.prototype,"hoverChanged",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Qe.prototype,"isButtonGroup",null);_.C([_.F({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],Qe);
_.B(Qe,"ytd-ad-inline-playback-meta-block",function(){if(nQA!==void 0)return nQA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return nQA=R},{mode:_.Nf("kevlar_poly_si_batch_j065")?1:2});var H2f;var vA=function(){var R=_.K.apply(this,arguments)||this;R.noBottomMargin=!1;R.isInlinePreviewTriggered=!1;R.JSC$15387_activeViewMeasurementDataResolver=_.ei();return R};
_.H(vA,_.K);_.l=vA.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var R=this;this.updateInlinePreviewHoverListeners();this.JSC$15387_activeViewMeasurementDataResolver.promise.then(function(A){R.ytdActiveViewBehavior.enableActiveViewMeasurement(A,15)});
_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners();_.v("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15387_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:this.JSC$15387_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:b3q})};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15387_inlinePreviewHoverListener)==null||ux(R)};
_.l.onDataChanged=function(){var R;((R=this.data)==null?0:R.activeView)&&this.JSC$15387_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",vA.JSC$15386_DEFAULT_CLICK_LOCATION_BEHAVIOR,vA.JSC$15386_CLICK_LOCATION_ID_MAP);this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),R.length>0&&(R=R.namedItem("thumbnail"))&&R.removeAttribute("href"));var A;if((A=this.data)==
null?0:A.forceImpAutoplay){var Y;(Y=this.JSC$15387_inlinePreviewHoverListener)==null||OkP(Y)}};
_.l.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.l.onThumbnailContainerClick=function(R){if(this.data&&this.data.navigationEndpoint){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(Y,R,!!_.n(Y,_.LO));R.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var R=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var A,Y,P=(Y=_.n((A=this.data)==null?void 0:A.onImpression,_.Jg))==null?void 0:Y.commands;P&&(P.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;R.ytComponentBehavior.resolveCommand(E)}),this.data.impressionsFired=!0)}};
_.Yh.Object.defineProperties(vA.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$15387_inlinePreviewHoverListener)==null?0:YE(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
vA.prototype.onTypographyBumpChanged=vA.prototype.onTypographyBumpChanged;vA.prototype.onDataChanged=vA.prototype.onDataChanged;vA.JSC$15386_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);vA.JSC$15386_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"}];
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],vA.prototype,"ytComponentBehavior",void 0);_.C([_.U(YX),_.k("design:type",Object)],vA.prototype,"ytdActiveViewBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vA.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],vA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],vA.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.sH),_.k("design:type",Object)],vA.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],vA.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],vA.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vA.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],vA.prototype,"noBottomMargin",void 0);
_.C([_.S(),_.k("design:type",Object)],vA.prototype,"isInlinePreviewTriggered",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],vA.prototype,"miniMode",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],vA.prototype,"typographyBump",void 0);_.C([_.nG("ytd-thumbnail"),_.k("design:type",HTMLElement)],vA.prototype,"thumbnail",void 0);_.C([_.nG("#dismissible"),_.k("design:type",HTMLElement)],vA.prototype,"JSC$15387_dismissibleMedia",void 0);
_.C([_.nG("ytd-ad-inline-playback-meta-block"),_.k("design:type",HTMLElement)],vA.prototype,"adInlinePlaybackMetaBlock",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vA.prototype,"onDataChanged",null);_.C([_.Ul("typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vA.prototype,"onTypographyBumpChanged",null);
_.C([_.X("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vA.prototype,"isHovered",null);_.C([_.F({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],vA);
_.B(vA,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(H2f!==void 0)return H2f;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-display-full-buttoned-and-button-group-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="root" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    <div id="thumbnail-container" role="button" aria-label$="[[data.title.accessibility.accessibilityData.label]]" on-click="onThumbnailContainerClick" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n      </ytd-thumbnail>\n    </div>\n    <ytd-ad-inline-playback-meta-block data="[[data]]" is-hovered="[[isInlinePreviewTriggered]]" mini-mode="[[miniMode]]" no-bottom-margin="[[noBottomMargin]]" typography-bump="[[typographyBump]]" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n    </ytd-ad-inline-playback-meta-block>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer">\n  <div id="dismissed-content" class="style-scope ytd-video-display-full-buttoned-and-button-group-renderer"></div>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return H2f=R},{mode:1});var rqS;var gB=function(){var R=_.K.apply(this,arguments)||this;R.isInlinePreviewTriggered=!1;R.JSC$15390_activeViewMeasurementDataResolver=_.ei();return R};
_.H(gB,_.K);_.l=gB.prototype;_.l.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.attached=function(){var R=this;this.updateInlinePreviewHoverListeners();this.JSC$15390_activeViewMeasurementDataResolver.promise.then(function(A){R.ytdActiveViewBehavior.enableActiveViewMeasurement(A,15)})};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15390_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:this.JSC$15390_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:b3q})};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$15390_inlinePreviewHoverListener)==null||ux(R)};
_.l.onDataChanged=function(){var R;((R=this.data)==null?0:R.activeView)&&this.JSC$15390_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",gB.JSC$15389_DEFAULT_CLICK_LOCATION_BEHAVIOR,gB.JSC$15389_CLICK_LOCATION_ID_MAP);this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),R.length>0&&(R=R.namedItem("thumbnail"))&&R.removeAttribute("href"))};
_.l.onThumbnailContainerClick=function(R){if(this.data&&this.data.navigationEndpoint){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(Y,R,!0);R.stopPropagation()}};
_.l.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.l.impressionLog=function(){var R=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var A,Y,P=(Y=_.n((A=this.data)==null?void 0:A.onImpression,_.Jg))==null?void 0:Y.commands;P&&(P.forEach(function(E){E.clickTrackingParams&&delete E.clickTrackingParams;_.is().resolve(_.ls).resolveCommand(E,{form:{element:R.hostElement}})}),this.data.impressionsFired=!0)}};
_.Yh.Object.defineProperties(gB.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$15390_inlinePreviewHoverListener)==null?0:YE(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
gB.prototype.onDataChanged=gB.prototype.onDataChanged;gB.JSC$15389_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);gB.JSC$15389_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"}];_.C([_.U(YX),_.k("design:type",Object)],gB.prototype,"ytdActiveViewBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],gB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],gB.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],gB.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],gB.prototype,"ytdReduxBehavior",void 0);
_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],gB.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],gB.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],gB.prototype,"isInlinePreviewTriggered",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],gB.prototype,"miniMode",void 0);_.C([_.nG("ytd-thumbnail"),_.k("design:type",HTMLElement)],gB.prototype,"thumbnail",void 0);
_.C([_.nG("#dismissible"),_.k("design:type",HTMLElement)],gB.prototype,"JSC$15390_dismissibleMedia",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gB.prototype,"onDataChanged",null);_.C([_.X("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gB.prototype,"isHovered",null);_.C([_.F({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],gB);
_.B(gB,"ytd-video-display-full-buttoned-renderer",function(){if(rqS!==void 0)return rqS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return rqS=R},{mode:1});var Am=function(R,A,Y,P){P=P===void 0?!1:P;_.Rk.call(this,R);this.adsClientErrorMessage=Y;this.aggressivelySample=P;this.args=[];A&&this.args.push(A)};
_.H(Am,_.Rk);var d0=function(R,A,Y,P){P=P===void 0?!1:P;_.Rk.call(this,R);this.adsClientErrorMessage=Y;this.aggressivelySample=P;this.args=[];A&&this.args.push(A)};
_.H(d0,_.Rk);var D0f=function(R){_.KJ.call(this);var A=this;this.initializationFunction=R;this.instance=null;this.addOnDisposeCallback(function(){_.lt(A.instance);A.instance=null})};
_.H(D0f,_.KJ);D0f.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.GI("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var kn8=function(){var R=new Map;[].forEach(function(A){R.set(A.JSC$30436_getType(),A)});
this.getters=R};new Promise(function(){});var BJu=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"]]),p2k=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"}]]),U0S=function(R){this.experimentApiProvider=R;R=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=R<.1};var nm=function(R,A,Y,P){_.KJ.call(this);this.adsControlFlowEventListeners=A;this.adEventLogger=Y;this.experimentApiProvider=P;this.adsControlFlowManagerHelper=R(this,this,this,this,this);_.gz(this,this.adsControlFlowManagerHelper);R=_.x(A);for(A=R.next();!A.done;A=R.next())_.gz(this,A.value)};
_.H(nm,_.KJ);var $0N=function(R,A,Y,P){HA(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",A,Y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P);R=_.x(R.adsControlFlowEventListeners);for(P=R.next();!P.done;P=R.next())$0N(P.value,A,Y)};
_.l=nm.prototype;_.l.onOpportunityProcessedExternallyManaged=function(R,A,Y,P){HA(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",R,Y,A,void 0,void 0,void 0,void 0,void 0,void 0,void 0,P)};
_.l.onSlotReceivedExternallyManaged=function(R,A){rB(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",R,A)};
_.l.onSlotEntered=function(R){if(D$(this.adsControlFlowManagerHelper,R)!=null){rB(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",R);this.adsControlFlowManagerHelper.onSlotEntered(R);for(var A=_.x(this.adsControlFlowEventListeners),Y=A.next();!Y.done;Y=A.next())Y.value.onSlotEntered(R);if(D$(this.adsControlFlowManagerHelper,R)!=null&&D$(this.adsControlFlowManagerHelper,R).isOccupyingSlotType()&&Uo(this.adsControlFlowManagerHelper,R)&&!X0D(this.adsControlFlowManagerHelper,R)){var P;$4(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",R,(P=Uo(this.adsControlFlowManagerHelper,R))!=null?P:void 0);R=D$(this.adsControlFlowManagerHelper,R);R.slotLifecycleStage!=="entered"&&Xj(R.slot,R.slotLifecycleStage,"enterLayoutForSlot");R.slotLifecycleStage="rendering";R.registeredLayoutRenderingAdapter.startRendering(R.layout)}}};
_.l.onSlotExited=function(R){if(D$(this.adsControlFlowManagerHelper,R)!=null){rB(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",R);this.adsControlFlowManagerHelper.onSlotExited(R);for(var A=_.x(this.adsControlFlowEventListeners),Y=A.next();!Y.done;Y=A.next())Y.value.onSlotExited(R);D$(this.adsControlFlowManagerHelper,R)!=null&&D$(this.adsControlFlowManagerHelper,R).markedForUnscheduleAfterOutboundAdapterRequests&&Stq(this,R)}};
_.l.onLayoutReceivedExternallyManaged=function(R,A,Y){R.managerLayer!=="core"&&$4(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",R,A,Y)};
var I9Z=function(R,A,Y){if(D$(R.adsControlFlowManagerHelper,A)!=null){$4(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",A,Y);R=_.x(R.adsControlFlowEventListeners);for(var P=R.next();!P.done;P=R.next())I9Z(P.value,A,Y)}};
nm.prototype.onLayoutExited=function(R,A,Y){if(D$(this.adsControlFlowManagerHelper,R)!=null){$4(this.adEventLogger,FDS(Y),R,A);this.adsControlFlowManagerHelper.onLayoutExited(R,A);for(var P=_.x(this.adsControlFlowEventListeners),E=P.next();!E.done;E=P.next())E.value.onLayoutExited(R,A,Y);(Y=Uo(this.adsControlFlowManagerHelper,R))&&A.layoutId===Y.layoutId&&KdZ(this,R)}};
nm.prototype.disposeInternal=function(){var R=WdE(this.adsControlFlowManagerHelper);R=_.x(R);for(var A=R.next();!A.done;A=R.next())Stq(this,A.value);_.KJ.prototype.disposeInternal.call(this)};
var Stq=function(R,A){if(D$(R.adsControlFlowManagerHelper,A)!=null)if(D$(R.adsControlFlowManagerHelper,A).JSC$30466_isSlotExitRequested()||D$(R.adsControlFlowManagerHelper,A).JSC$30466_isLayoutExitRequested())D$(R.adsControlFlowManagerHelper,A).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(D$(R.adsControlFlowManagerHelper,A).isOccupyingSlotType())D$(R.adsControlFlowManagerHelper,A).markedForUnscheduleAfterOutboundAdapterRequests=!0,KdZ(R,A);else if(D$(R.adsControlFlowManagerHelper,A).JSC$30466_isSlotFillRequested())D$(R.adsControlFlowManagerHelper,
A).markedForUnscheduleAfterOutboundAdapterRequests=!0,D$(R.adsControlFlowManagerHelper,A)!=null&&(rB(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",A),A=D$(R.adsControlFlowManagerHelper,A),A.fulfillmentLifecycleStage="fill_cancel_requested",A.registeredFulfillmentAdapter.cancelSlotFilling());else{var Y=Uo(R.adsControlFlowManagerHelper,A),P;R.experimentApiProvider.get();(P=_.v("h5_enable_layout_unscheduling_events"))&&(Y?jOE(R,A,Y):_.GI(Error("Kh"),A,Y,void 0,!1));rB(R.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",A);var E=D$(R.adsControlFlowManagerHelper,A),z=A.slotEntryTrigger,c=E.registeredSlotEntryTriggerAdapters.get(z.triggerId);c&&(c.unregisterTrigger(z),E.registeredSlotEntryTriggerAdapters.delete(z.triggerId));z=_.x(A.slotFulfillmentTriggers);for(c=z.next();!c.done;c=z.next()){c=c.value;var M=E.registeredFulfillmentTriggerAdapters.get(c.triggerId);M&&(M.unregisterTrigger(c),E.registeredFulfillmentTriggerAdapters.delete(c.triggerId))}z=_.x(A.slotExpirationTriggers);
for(c=z.next();!c.done;c=z.next())if(c=c.value,M=E.registeredExpirationTriggerAdapters.get(c.triggerId))M.unregisterTrigger(c),E.registeredExpirationTriggerAdapters.delete(c.triggerId);E.hasLayout()&&(z=E.layout,Sk(E,z.layoutExitNormalTriggers),Sk(E,z.layoutExitSkipTriggers),Sk(E,z.layoutExitMuteTriggers),Sk(E,z.layoutExitUserInputSubmittedTriggers),Sk(E,z.layoutExitUserCancelledTriggers));E.registeredFulfillmentAdapter=void 0;E.registeredSlotAdapter!=null&&(E.registeredSlotAdapter.release(),E.registeredSlotAdapter=
void 0);E.registeredLayoutRenderingAdapter!=null&&(E.registeredLayoutRenderingAdapter.release(),E.registeredLayoutRenderingAdapter=void 0);E=R.adsControlFlowManagerHelper;D$(E,A)&&(E=b2E(E,A.slotType+"_"+A.slotPhysicalPosition))&&E.delete(A.slotId);rB(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",A);R=_.x(R.adsControlFlowEventListeners);for(E=R.next();!E.done;E=R.next())E=E.value,E.onSlotUnscheduled(A),Y&&!P&&jOE(E,A,Y)}},jOE=function(R,A,Y){$4(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
A,Y);
$4(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",A,Y);R=_.x(R.adsControlFlowEventListeners);for(var P=R.next();!P.done;P=R.next())P=P.value,Y&&jOE(P,A,Y)},KdZ=function(R,A){if(D$(R.adsControlFlowManagerHelper,A)!=null&&D$(R.adsControlFlowManagerHelper,A).isOccupyingSlotType()){var Y=Uo(R.adsControlFlowManagerHelper,A);
if(Y&&X0D(R.adsControlFlowManagerHelper,A)){if(D$(R.adsControlFlowManagerHelper,A)!=null){var P=R.adEventLogger,E;var z=((E=p2k.get("abandoned"))==null?void 0:E.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";$4(P,z,A,Y);R=D$(R.adsControlFlowManagerHelper,A);R.slotLifecycleStage!=="rendering"&&Xj(R.slot,R.slotLifecycleStage,"exitLayout");R.slotLifecycleStage="rendering_stop_requested";R.registeredLayoutRenderingAdapter.stopRendering(Y,"abandoned")}}else{rB(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
A);try{P=D$(R.adsControlFlowManagerHelper,A);if(!P)throw new d0("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");P.slotLifecycleStage!=="enter_requested"&&P.slotLifecycleStage!=="entered"&&P.slotLifecycleStage!=="rendering"&&Xj(P.slot,P.slotLifecycleStage,"exitSlot");P.slotLifecycleStage="exit_requested";if(P.registeredSlotAdapter===void 0)throw P.slotLifecycleStage="scheduled",new d0("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
P.registeredSlotAdapter.exit()}catch(c){c instanceof d0&&c.adsClientErrorMessage?(f9E(R.adEventLogger,c.adsClientErrorMessage,A),_.GI(c,A,void 0,void 0,c.aggressivelySample)):(f9E(R.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",A),_.GI(c,A))}}}};var Ib=function(R,A,Y,P,E,z){_.KJ.call(this);this.registry=R;this.experimentApiProvider=z;this.slotMap=new Map};
_.H(Ib,_.KJ);var b2E=function(R,A){return(R=R.slotMap.get(A))?R:new Map},D$=function(R,A){return b2E(R,A.slotType+"_"+A.slotPhysicalPosition).get(A.slotId)},WdE=function(R){var A=[];
R.slotMap.forEach(function(Y){Y=_.x(Y.values());for(var P=Y.next();!P.done;P=Y.next())A.push(P.value.slot)});
return A};
Ib.prototype.onSlotEntered=function(R){R=D$(this,R);R.slotLifecycleStage!=="enter_requested"&&Xj(R.slot,R.slotLifecycleStage,"onSlotEntered");R.slotLifecycleStage="entered"};
var X0D=function(R,A){R=D$(R,A);return R.hasLayout()&&R.isRendering()},Uo=function(R,A){(R=D$(R,A))?R.hasLayout()&&!R.layout&&_.GI("Unexpected empty layout",A):_.GI("Unexpected undefined slotState",A);
return(R==null?void 0:R.layout)||null};
Ib.prototype.onSlotExited=function(R){R=D$(this,R);R.slotLifecycleStage!=="exit_requested"&&Xj(R.slot,R.slotLifecycleStage,"onSlotExited");R.slotLifecycleStage="scheduled"};
Ib.prototype.onLayoutExited=function(R,A){R=D$(this,R);R.isPrimaryLayout(A)&&(R.slotLifecycleStage!=="rendering_stop_requested"&&Xj(R.slot,R.slotLifecycleStage,"onLayoutExited"),R.slotLifecycleStage="entered")};
var Sk=function(R,A){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=R.registeredLayoutExitTriggerAdapters.get(Y.triggerId);P&&(P.unregisterTrigger(Y),R.registeredLayoutExitTriggerAdapters.delete(Y.triggerId))}},Xj=function(R,A,Y){_.GI("Slot stage was "+A+" when calling method "+Y,R)};var FdS=function(R){_.KJ.call(this);this.deps=R;this.JSC$15440_adsControlFlowManager=p0N(this)};
_.H(FdS,_.KJ);var p0N=function(R){var A=new nm(function(Y,P,E,z){return new Ib(R.deps.registry,Y,P,E,z,R.deps.experimentApiProvider)},new Set(oJP(R.deps.registry).concat(R.deps.listeners)),R.deps.adEventLogger,R.deps.experimentApiProvider);
_.gz(R,A);return A};var KZ6=function(){};var BQA=function(R,A){_.KJ.call(this);this.experimentApiProvider=R;this.eventLoggingSettingsProvider=A;this.eventCount=0;this.premiumAdSeenEventLogger=WZk()()};
_.H(BQA,_.KJ);BQA.prototype.logEvent=function(R){HA(this,R)};
var rB=function(R,A,Y,P){HA(R,A,void 0,void 0,void 0,Y,void 0,void 0,void 0,Y.adSlotLoggingData,void 0,void 0,P)},$4=function(R,A,Y,P,E){HA(R,A,void 0,void 0,void 0,Y,P?P:void 0,void 0,void 0,Y.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,void 0,E);
Y=_.is().resolve(_.z3($a))==null?void 0:X8();A=Y==null?void 0:Y.adsSeenHotConfig;Y=Y==null?void 0:Y.adsHotConfig;(A==null?0:A.logOnAdsSeen)&&(Y==null?0:Y.webEnablePremiumAdsSeenLogging)&&a9f(R,P?P:void 0,E)},f9E=function(R,A,Y){HA(R,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Y,void 0,void 0,void 0,Y.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:A})},HA=function(R,A,Y,P,E,z,c,M,N,y,m,T,Q){Q=Q===void 0?0:Q;
CQA(R.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+A,"slot:",z,"layout:",c,"ping:",M,"Opportunity:",{opportunityType:Y,associatedSlotId:P,slotsFromOpportunity:E,triggerBundle:N,adSlotLoggingData:y,adLayoutLoggingData:m});try{var g=function(){R.experimentApiProvider.get();if(A!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){A||_.GI("Empty PACF event type",z,c);var r=R.eventLoggingSettingsProvider.get();var I;(I=r.alwaysIncludeDebugData)||(r.experimentApiProvider.get(),I=
!1);r=I;I={eventType:A,eventOrder:++R.eventCount};var b={};z&&(b.slotData=CaP(r,z));if(c){var p={type:c.layoutType,controlFlowManagerLayer:BJu.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};r&&(p.debugData={layoutId:c.layoutId});b.layoutData=p}M&&(b.pingData={pingDispatchStatus:M.dispatchStatus,serializedAdPingMetadata:M.ping.serializedAdPingMetadata,pingIndex:M.index});N&&(b.triggerData=a2q(N.trigger,N.category));Y&&(b.opportunityData=hFk(r,Y,P,E));I.adClientData=b;y&&(I.serializedSlotAdServingData=
y.serializedSlotAdServingDataEntry);m&&(I.serializedAdServingData=m.serializedAdServingDataEntry);T&&(I.errorInfo=T);_.Wj("adsClientStateChange",{adsClientEvent:I})}};
Q&&Q>0?_.Ua(_.n6(),function(){return g()},Q):g()}catch(r){CQA(R.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Ua(_.n6(),function(){_.GI(r instanceof Error?r:String(r),z,c,{pacf_message:"exception during pacf logging"})})}},a9f=function(R,A,Y){if(A){var P=A.adLayoutLoggingData;
_.Ua(_.n6(),function(){R.premiumAdSeenEventLogger!=null&&P&&_.Wj("adsSeenClientLogging",{serializedAdServingDataEntry:P.serializedAdServingDataEntry})},Y!=null?Y:0)}};var hI8=function(R,A){BQA.call(this,R,A)};
_.H(hI8,BQA);var oQZ=function(){},CQA=function(R,A){return _.v(A)};var G4S=function(){var R=new k4Z;this.JSC$15465_adsControlFlowManager=(new FdS(R)).JSC$15440_adsControlFlowManager},k4Z=function(){_.KJ.call(this);
var R=this;this.experimentApiProvider=new D0f(function(){return new oQZ});
var A=new D0f(function(){return new U0S(R.experimentApiProvider)});
this.adEventLogger=new hI8(this.experimentApiProvider,A);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.H(k4Z,_.KJ);var Z2A=function(){},tUb,Km=function(){tUb||(tUb=new Z2A);
return tUb},WA=function(R){if(!R.JSC$15476_externallyManagedSlotAdapterCallback){var A=(new G4S).JSC$15465_adsControlFlowManager;
R.JSC$15476_externallyManagedSlotAdapterCallback=A}return R.JSC$15476_externallyManagedSlotAdapterCallback},w0N=function(R,A,Y){var P=A.opportunityType,E=Error("Lh");
if(P!==void 0){var z=WA(R);$0N(z,P,void 0,Y)}else _.GI(E,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});z=[];if(A.adSlotAndLayoutMetadata!==void 0){A=_.x(A.adSlotAndLayoutMetadata);for(var c=A.next();!c.done;c=A.next()){var M=c.value;if(c=M.adSlotMetadata)if(z.push(c),R.onSlotReceivedExternallyManaged(c,Y),M.adLayoutMetadata){M=_.x(M.adLayoutMetadata);for(var N=M.next();!N.done;N=M.next())R.onLayoutReceivedExternallyManaged(c,N.value,Y)}else Y>0&&_.GI("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else Y>0&&_.GI("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else Y>0&&_.GI("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+P,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(P!==void 0)R.onOpportunityProcessedExternallyManaged(P,z,void 0,Y);else _.GI(E,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
Z2A.prototype.onSlotReceivedExternallyManaged=function(R,A){R=R9(R);if(R instanceof d0)_.GI(R,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else WA(this).onSlotReceivedExternallyManaged(R,A)};
Z2A.prototype.onLayoutReceivedExternallyManaged=function(R,A,Y){R=R9(R);A=Gn6(A);if(R instanceof d0)_.GI(R,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(A instanceof Am)_.GI(A,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else WA(this).onLayoutReceivedExternallyManaged(R,A,Y)};
Z2A.prototype.onOpportunityProcessedExternallyManaged=function(R,A,Y,P){var E=[];A=_.x(A);for(var z=A.next();!z.done;z=A.next())z=R9(z.value),z instanceof d0?_.GI(z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):E.push(z);WA(this).onOpportunityProcessedExternallyManaged(R,E,Y,P)};
var uz8=function(R,A){A=R9(A);if(A instanceof d0)_.GI(A,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var Y=WA(R);rB(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",A);Y=_.x(Y.adsControlFlowEventListeners);for(var P=Y.next();!P.done;P=Y.next())P=D$(P.value,A),P.slotLifecycleStage!=="not_scheduled"&&Xj(P.slot,P.slotLifecycleStage,"onSlotScheduled"),P.slotLifecycleStage="scheduled";R=WA(R);rB(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",A);R=_.x(R.adsControlFlowEventListeners);
for(Y=R.next();!Y.done;Y=R.next())Y.value.onSlotEntered(A)}},eID=function(R,A){A=R9(A);
if(A instanceof d0)_.GI(A,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var Y=WA(R);rB(Y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",A);Y=_.x(Y.adsControlFlowEventListeners);for(var P=Y.next();!P.done;P=Y.next())P.value.onSlotExited(A);R=WA(R);rB(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",A);R=_.x(R.adsControlFlowEventListeners);for(Y=R.next();!Y.done;Y=R.next())Y.value.onSlotUnscheduled(A)}},qtN=function(R,A,Y){A=R9(A);
Y=Gn6(Y);if(A instanceof d0)_.GI(A,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(Y instanceof Am)_.GI(Y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var P=WA(R);$4(P.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",A,Y);P=_.x(P.adsControlFlowEventListeners);for(var E=P.next();!E.done;E=P.next())E.value.onLayoutScheduled(A,Y);R=WA(R);$4(R.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",A,Y);R=_.x(R.adsControlFlowEventListeners);
for(P=R.next();!P.done;P=R.next())I9Z(P.value,A,Y)}},jk=function(R,A,Y){A=R9(A);
Y=Gn6(Y);if(A instanceof d0)_.GI(A,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(Y instanceof Am)_.GI(Y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var P=WA(R);$4(P.adEventLogger,FDS("normal"),A,Y);P=_.x(P.adsControlFlowEventListeners);for(var E=P.next();!E.done;E=P.next())E.value.onLayoutExited(A,Y,"normal");R=WA(R);R=_.x(R.adsControlFlowEventListeners);for(P=R.next();!P.done;P=R.next())jOE(P.value,A,Y)}};_.b0=_.E5(function(R){var A=_.Pc(R,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});R=Object.assign({},A);var Y=A.data;A=A.customCommandResolver;var P=(delete R.data,delete R.customCommandResolver,R);R=_.zR({visibilityCallback:function(M,N){var y,m=(y=Y().interaction)==null?void 0:y.onFirstVisible;M&&(m&&_.Zc(m),P.setOnErrorHandler()&&ZBk(N))},
showOption:_.vo});A=_.aP(function(){return Y().interaction},A,function(){var M;
return(M=P.listenToTapEvent)==null?void 0:M.call(P)});
var E=_.x(_.yy(!1,void 0,"wAC0Lc")),z=E.next().value,c=E.next().value;E=_.Qi(function(M){var N;((N=P.setTouchEndHandler)==null?0:N.call(P))&&!z()&&(M.currentTarget.click(),c(!0),setTimeout(function(){c(!1)},100));
return!1});
return _.V("ad-image-view-model",{class:function(){var M,N=[((M=Y().interaction)==null?0:M.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],y;((y=P.isGridViewEnabled)==null?0:y.call(P))&&N.push("ytwAdImageViewModelHostInGridView");return N.join(" ")},
el:_.zo(R,A),"on:touchend":E},_.V("div",{class:"ytwAdImageViewModelHostImageContainer"},_.V(_.P1,{data:function(){var M;return{sources:Y().imageSources,contentMode:(M=Y().imageProperties)==null?void 0:M.contentMode}},
alt:function(){var M,N;return((M=Y().interaction)==null?void 0:(N=M.accessibility)==null?void 0:N.label)||""},
targetHeight:P.targetHeight,targetWidth:P.targetWidth,preserveHeight:P.preserveHeight,preserveWidth:P.preserveWidth,useWidth:P.useWidth,style:function(){var M,N;return"vertical-align: bottom;"+(((M=Y().background)==null?0:M.color)?"background-color:"+_.G9((N=Y().background)==null?void 0:N.color)+";":"")},
className:function(){return P.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var M,N;return(N=(M=P.setDraggable)==null?void 0:M.call(P))!=null?N:void 0}})))},"sb");var Ld8=_.E5(function(R){var A=R.data,Y=R.listenToTapEvent,P=function(){};
return _.V("ad-button-hover-overlay-view-model",{"on:click":_.Qi(function(E){if(_.v("enable_web_home_top_landscape_image_layout_legacy_click_command")){var z,c=(z=A().interaction)==null?void 0:z.onTap;c&&_.xo(E.currentTarget,"yt-navigate",{endpoint:_.h7(c)})}}),
class:function(){var E;return((E=A().interaction)==null?0:E.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(E){var z,c=(z=A().interaction)==null?void 0:z.onFirstVisible;E&&c&&_.Zc(c)},
showOption:_.vo}),_.aP(function(){return A().interaction},void 0,function(){return!_.v("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(Y==null?void 0:Y())}))},function(){return _.v("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.V(_.ni,{data:function(){return A().button}},{adButtonViewModel:function(E){return _.V(_.nS,{data:E.data,
customCommandResolver:P})}}):_.V(_.ni,{data:function(){return A().button}},{adButtonViewModel:_.nS})}())},"tb");var Ys;_.Ow(_.E5(function(R){var A=R.data;R=_.zR({visibilityCallback:function(M,N){if(M){var y;(M=(y=A().interaction)==null?void 0:y.onFirstVisible)&&_.Zc(M);var m;if(y=(m=A().adLayoutData)==null?void 0:m.activeViewData)PL(N,y),_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Er(N)})}else _.v("stop_av_measurement_on_detach")&&Er(N)},
showOption:_.vo,hideOption:gw});var Y=_.aP(function(){return A().interaction},void 0,function(){return!0}),P=_.x(_.yy(!1,void 0,"VNDDT")),E=P.next().value,z=P.next().value;
P=_.Qi(function(){z(!0)});
var c=_.Qi(function(){z(!1)});
return _.V("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.zo(R,dEq,Y),"on:mouseenter":P,"on:mouseleave":c},_.V("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.nY({"max-width":function(){return _.v("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.V("div",{class:function(){var M;
a:{var N;switch((M=_.n(A().thumbnailImage,ZFD))==null?void 0:(N=M.imageProperties)==null?void 0:N.renderingAspect){case "RENDERING_ASPECT_SQUARE":M="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":M="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}M=void 0}return M}},_.V(_.ni,{data:function(){return A().thumbnailImage}},{adImageViewModel:function(M){return _.V(_.b0,
{data:M.data,
listenToTapEvent:!0,setTouchEndHandler:_.v("enable_top_landscape_image_experiment_dom_id_web")})}})),_.V("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.V(_.J,{cond:function(){var M,N,y;
return(M=_.n(A().thumbnailImage,ZFD))==null?void 0:(N=M.imageProperties)==null?void 0:(y=N.overlayIcon)==null?void 0:y.iconImage},
then:function(M){return _.V(_.P1,{data:M,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.V("div",{class:function(){return E()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.V(_.ni,{data:function(){return A().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(M){return _.V(Ld8,
{data:M.data,
listenToTapEvent:!0})}}))),_.V("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.V(_.ni,{data:function(){return A().feedAdMetadata}},{feedAdMetadataViewModel:function(M){return _.V(z7H,{data:M.data,
listenToTapEvent:!0,setTouchEndHandler:_.v("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ub"),"compact-landscape-no-button-layout-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;R=_.zR({visibilityCallback:function(M,N){if(M){var y;(M=(y=A().interaction)==null?void 0:y.onFirstVisible)&&_.Zc(M);var m;if(y=(m=A().adLayoutData)==null?void 0:m.activeViewData)PL(N,y),_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Er(N)})}else _.v("stop_av_measurement_on_detach")&&Er(N)},
showOption:_.vo,hideOption:gw});var Y=_.aE(_.B1),P=_.aP(function(){return A().interaction}),E={},z={},c={};
return _.V("square-image-layout-view-model",{class:_.To("ytwSquareImageLayoutViewModelHost",(E.ytwSquareImageLayoutViewModelHostColumn=Y,E)),el:_.zo(R,R7P,P)},_.V("div",{class:_.To("ytwSquareImageLayoutViewModelHostImage",(z.ytwSquareImageLayoutViewModelHostColumnImage=Y,z))},function(){return _.V(_.ni,{data:function(){return A().adImage}},{adImageViewModel:function(M){return _.V(_.b0,{data:M.data,
isGridViewEnabled:Y,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.V("div",{class:_.To("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(c.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=Y,c))},_.V(_.ni,{data:function(){return A().feedAdMetadata}},{feedAdMetadataViewModel:z7H}),function(){return _.V(_.ni,{data:function(){return A().adButton}},{adButtonViewModel:function(M){var N={};
return _.V(_.nS,{data:M.data,className:_.To((N.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,N.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=Y,N))})}})}()))},"vb"),"square-image-layout-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=R.noBottomMargin;var P=R.typographyBump;R=_.zR({visibilityCallback:function(T,Q){if(T){var g;(T=(g=A().interaction)==null?void 0:g.onFirstVisible)&&_.Zc(T);var r;if(g=(r=A().adLayoutData)==null?void 0:r.activeViewData)PL(Q,g),_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Er(Q)})}else _.v("stop_av_measurement_on_detach")&&Er(Q)},
showOption:_.vo,hideOption:gw});var E=_.aP(function(){return A().interaction},void 0,function(){return _.v("enable_web_home_top_landscape_image_layout_level_click")}),z=function(){return A().interaction};
z!==void 0&&z!==null||_.tv(Error("Mh"));var c=function(){var T,Q,g;return(T=_.n(A().thumbnailImage,ZFD))==null?void 0:(Q=T.background)==null?void 0:(g=Q.backgroundImageSource)==null?void 0:g.imageSources};
z=_.x(_.yy(!1,void 0,"NFjwje"));var M=z.next().value,N=z.next().value;z=_.Qi(function(){N(!0)});
var y=_.Qi(function(){N(!1)}),m=function(){return M()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.V("top-landscape-image-layout-view-model",{class:function(){var T;return((T=A().interaction)==null?0:T.onTap)&&_.v("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.zo(R,A3k,E),"on:mouseenter":z,"on:mouseleave":y},_.V("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.V(_.J,{cond:function(){return c()&&c().length>0},
then:function(){return _.V("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.nY({top:"0","background-image":function(){return"url("+String(c()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.V(_.J,{cond:function(){return!!A().adButtonHoverOverlay},
then:function(){return _.V("div",{class:m},_.V(_.ni,{data:function(){return A().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Ld8}))}}),_.V("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.V(_.ni,{data:function(){return A().thumbnailImage}},{adImageViewModel:function(T){return _.V(_.b0,{data:T.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.v("enable_web_home_top_landscape_image_layout_level_click")})}})),_.V("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.V(_.P1,{data:{sources:[{clientResource:{imageName:_.v("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.V("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.V(_.ni,{data:function(){return A().feedAdMetadata}},{feedAdMetadataViewModel:function(T){return _.V(z7H,{data:T.data,
noBottomMargin:function(){return Y==null?void 0:Y()},
listenToTapEvent:function(){return _.v("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return P==null?void 0:P()}})}})))},"wb"),"top-landscape-image-layout-view-model",{props:{data:_.VY,
noBottomMargin:_.VY,typographyBump:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=R.typographyBump;return _.V("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.zo(_.zR({visibilityCallback:function(P,E){if(P){var z;(P=(z=A().interaction)==null?void 0:z.onFirstVisible)&&_.Zc(P);var c;(z=(c=A().adLayoutData)==null?void 0:c.activeViewData)&&PL(E,z)}},
showOption:_.vo,hideOption:gw}))},_.V("div",null,_.V(_.ni,{data:function(){return A().videoLockup}},{lockupViewModel:function(P){return _.V(_.SW,{data:P.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:Y})}})))},"xb"),"video-display-button-group-layout-view-model",{props:{data:_.VY,
noBottomMargin:_.VY,typographyBump:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=R.className;var P=R.typographyBump;return _.V("video-display-compact-button-group-layout-view-model",{el:_.zo(_.zR({visibilityCallback:function(E,z){if(E){var c;(E=(c=A().interaction)==null?void 0:c.onFirstVisible)&&_.Zc(E);var M;(c=(M=A().adLayoutData)==null?void 0:M.activeViewData)&&PL(z,c)}},
showOption:_.vo})),class:_.To("videoDisplayCompactButtonGroupLayoutViewModelHost",Y)},_.V(_.ni,{data:function(){return A().videoLockup}},{lockupViewModel:function(E){return _.V(_.SW,{data:E.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:P})}}))},"yb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.VY,
className:_.VY,typographyBump:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=R.className;var P=R.typographyBump;return _.V("video-display-compact-buttoned-layout-view-model",{el:_.zo(_.zR({visibilityCallback:function(E,z){if(E){var c;(E=(c=A().interaction)==null?void 0:c.onFirstVisible)&&_.Zc(E);var M;(c=(M=A().adLayoutData)==null?void 0:M.activeViewData)&&PL(z,c)}},
showOption:_.vo})),class:_.To("videoDisplayCompactButtonedLayoutViewModelHost",Y)},_.V(_.ni,{data:function(){return A().videoLockup}},{lockupViewModel:function(E){return _.V(_.SW,{data:E.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:P})}}))},"zb"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.VY,
className:_.VY,typographyBump:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=R.className;var P=R.typographyBump;var E=function(){return A().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},z=_.aE(_.B1);
R=_.zR({visibilityCallback:function(y,m){if(y){var T=A();y=T.adLayoutData;var Q;(T=(Q=T.interaction)==null?void 0:Q.onFirstVisible)&&_.Zc(T);(Q=y==null?void 0:y.activeViewData)&&PL(m,Q)}},
showOption:_.vo});var c=_.gE(function(){return{containerType:E()&&z()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"mu2jrc"),M=_.gE(function(){return E()&&z()?"":E()?"168px":"50%"},void 0,"qNDzkb"),N=_.gE(function(){return E()&&z()?9999:void 0},void 0,"Ikn8Kb");
return _.V("video-display-compact-layout-view-model",{el:_.zo(R),class:_.To("videoDisplayCompactLayoutViewModelHost",Y)},_.V(_.ni,{data:function(){return A().videoLockup}},{lockupViewModel:function(y){return _.V(_.SW,{data:y.data,
containerLayoutConfig:c,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:M,thumbnailTargetWidth:N,typographyBump:P})}}))},"Ab"),"video-display-compact-layout-view-model",{props:{data:_.VY,
className:_.VY,typographyBump:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=R.typographyBump;return _.V("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.zo(_.zR({visibilityCallback:function(P,E){if(P){var z;(P=(z=A().interaction)==null?void 0:z.onFirstVisible)&&_.Zc(P);var c;(z=(c=A().adLayoutData)==null?void 0:c.activeViewData)&&PL(E,z)}},
showOption:_.vo,hideOption:gw}))},_.V("div",null,_.V(_.ni,{data:function(){return A().videoLockup}},{lockupViewModel:function(P){return _.V(_.SW,{data:P.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:Y})}})))},"Bb"),"video-display-full-layout-view-model",{props:{data:_.VY,
noBottomMargin:_.VY,typographyBump:_.VY}});_.d0N=_.E5(function(R){var A=R.data;R=_.LK("ad-card-badge-view-model");return _.V("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:R},_.V(_.J,{cond:function(){return A().imageBadge},
then:function(Y){return _.V(_.P1,{data:Y,alt:""})}}))},"Cb");var RaS=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;return _.V("carousel-ad-card-image-view-model",{class:function(){var P;return((P=A().interaction)==null?0:P.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(P){var E,z=(E=A().interaction)==null?void 0:E.onFirstVisible;P&&z&&_.Zc(z)},
showOption:_.vo}),_.aP(function(){return A().interaction},Y)),
"aria-label":function(){var P,E;return(P=A().interaction)==null?void 0:(E=P.accessibility)==null?void 0:E.label}},_.V(_.ni,{data:function(){return A().adImage}},{adImageViewModel:function(P){return _.V(_.b0,{data:P.data,
customCommandResolver:Y})}}),_.V("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.V(_.ni,{data:function(){return A().badge}},{adCardBadgeViewModel:_.d0N})),_.V(_.Uh,{model:{color:4}}))},"Db");var AxH=_.E5(function(R){var A=_.x(_.yy(0,void 0,"JJ0QQc")),Y=A.next().value;A.next();var P=A.next().value,E=_.x(_.yy(!1,void 0,"f6YICe"));A=E.next().value;var z=E.next().value,c;_.bm(function(){clearTimeout(c)});
E=_.Qi(function(){var y;((y=R.animate)==null?0:y.call(R))?(z(!0),c=setTimeout(function(){z(!1);M()},200)):M();
return!1});
var M=function(){P(function(y){return(y+R.numShownItems())%R.data().length})},N={};
return _.V("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.V("div",{class:_.To("ytwHorizontalCarouselCarouselWrapper")},_.V("div",{class:_.To("ytwHorizontalCarouselCarouselInnerWrapper",(N.ytwHorizontalCarouselAnimating=A,N))},_.V(_.Ue,{each:R.data,keyBy:"INDEX"},function(y,m){return _.V("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.nY({"flex-basis":function(){return"calc((100% - (8px * "+(R.numShownItems()-1)+")) / "+R.numShownItems()+")"},
order:function(){var T=m-Y();T<0&&(T+=R.data().length);return T}})},R.children(y,m))}))),_.V("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":E},R.nextButton()))},"Eb");var YfE=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;var P=R.expansive;return _.V("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.zo(_.zR({visibilityCallback:function(E){var z,c=(z=A().interaction)==null?void 0:z.onFirstVisible;E&&c&&_.Zc(c)},
showOption:_.vo}))},_.V(AxH,{data:function(){var E;return((E=A())==null?void 0:E.carouselAdCards)||[]},
nextButton:function(){return _.V(_.ni,{data:function(){return A().nextButton}},{buttonViewModel:function(E){var z=E.data;
return _.V(_.Is,{data:function(){return(P==null?0:P())?Object.assign({},z(),{style:"mono"}):z()},
className:_.v("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(E){return _.V(_.ni,{data:E},{carouselAdCardImageViewModel:function(z){return _.V(RaS,{data:z.data,customCommandResolver:Y})}})}))},"Fb");var PAq=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;var P=R.className;var E=R.buttonClassName;var z=R.animationEntityKey;var c=R.expansive;return _.V("carousel-button-view-model",{class:_.To("ytwCarouselButtonViewModelHost",P)},_.V(_.ni,{data:function(){return A().carousel}},{carouselAdCardCollectionViewModel:function(M){return _.V(YfE,{data:M.data,
customCommandResolver:Y,expansive:c})}}),_.V(_.ni,{data:function(){return A().button}},{adButtonViewModel:function(M){var N=M.data;
return _.V(_.nS,{data:function(){return(c==null?0:c())?Object.assign({},N(),{style:"AD_BUTTON_STYLE_TONAL"}):N()},
className:E,customCommandResolver:Y,animationEntityKey:z})}}))},"Gb");_.EVN=_.E5(function(R){var A=R.data;R=R.className;var Y=_.LK("pivot-button-view-model");_.jO(function(){var P;((P=A())==null?0:P.backgroundColor)&&Y.value.setAttribute("data-background-color",String(A().backgroundColor))});
return _.V("pivot-button-view-model",{el:Y,class:_.To("ytwPivotButtonViewModelHost",R)},_.V(_.DW,{command:function(){var P=A();P=P.onClickCommand?_.h7(P.onClickCommand):P.contentDescription?_.z9(P.contentDescription):void 0;return P},
ariaLabel:function(){return A().contentDescription}},_.V(_.J,{cond:function(){return A().thumbnail},
then:function(P){return _.V(_.P1,{data:P,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.V(_.J,{cond:function(){return A().icon},
then:function(P){return _.V(_.H1,{icon:function(){return P().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Hb");_.zaE=_.E5(function(R){var A=R.data;var Y=R.buttonShapeOverrideables;return _.V("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.V(_.ni,{data:function(){return A().buttonViewModels}},{buttonViewModel:function(P){return _.V(_.Is,{data:P.data,
buttonOverrides:Y})},
likeButtonViewModel:function(P){return _.V(_.Ai,{data:P.data,buttonShapeOverrideables:Y})},
dislikeButtonViewModel:function(P){return _.V(_.R_,{data:P.data,buttonShapeOverrideables:Y})},
toggleButtonViewModel:function(P){return _.V(_.uF,{data:P.data,buttonShapeOverrides:Y})}}))},"Ib");var izS=_.E5(function(R){var A=R.avatar;var Y=R.headline;var P=R.badge;var E=R.description;var z=R.expansive;R={};return _.V("yt-ad-metadata-shape",{class:_.To("ytAdMetadataShapeHost",(R.ytAdMetadataShapeHostLarge=z,R))},_.V("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.V(_.J,{cond:A,then:function(c){return _.V(_.A37,{data:function(){return(z==null?0:z())?Object.assign({},c(),{size:"AD_AVATAR_SIZE_M"}):c()}})}}),_.V("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.V(_.NU,{text:Y,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.V(_.J,{cond:P,then:function(c){return _.V(_.$E,{data:function(){return(z==null?0:z())?Object.assign({},c(),{style:"AD_BADGE_STYLE_STARK"}):c()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.V("h2",{class:"ytAdMetadataShapeHostDescription"},_.V(_.NU,{text:E,
linkInheritColor:!0,isHeadline:function(){return z==null?void 0:z()}})))},"Jb");var lCH=_.E5(function(R){var A=R.data;var Y=R.onShow;var P=R.expansive;R=_.aP(function(){return A().interaction});
_.jO(function(){var z,c=(z=A().animatedRenderingConfig)==null?void 0:z.delayedSecondsToVisible;if(c){var M=setTimeout(Y,c*1E3);_.bm(function(){clearTimeout(M)})}});
var E={};return _.V("reels-ad-card-buttoned-view-model",{class:_.To(function(){var z;return((z=A().interaction)==null?0:z.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(E.ytwReelsAdCardButtonedViewModelHostExpansive=P,E)),
el:_.zo(R)},_.V(izS,{avatar:function(){return _.n(A().avatar,olA)},
headline:function(){return A().headline},
badge:function(){return _.n(A().adBadge,ksG)},
description:function(){return A().description},
expansive:P}),_.V(_.ni,{data:function(){return A().ctaButton}},{adButtonViewModel:function(z){var c=z.data;
return _.V(_.nS,{data:function(){return(P==null?0:P())?Object.assign({},c(),{style:"AD_BUTTON_STYLE_FILLED"}):c()}})}}))},"Kb");var xx7=_.E5(function(R){var A=R.data;R=R.expansive;var Y=_.v("web_ad_metadata_clickable")?_.aP(function(){return A().interaction},void 0,function(){return _.v("web_ad_metadata_clickable")}):void 0,P={};
P=_.IP("ytwReelsAdMetadataViewModelHost",(P.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.v("web_ad_metadata_clickable"),P));return _.V("reels-ad-metadata-view-model",{class:P,el:_.zo(Y)},_.V(izS,{avatar:function(){return _.n(A().avatar,olA)},
headline:function(){return A().headline},
badge:function(){return _.n(A().adBadge,ksG)},
description:function(){return A().description},
expansive:R}))},"Lb");var cxq={iconPosition:"icon-with-label",size:"L"},OzE=_.E5(function(R){var A=R.data;var Y=R.overlayDensity;R=_.LK("reels-player-overlay-layout-view-model");var P=_.Y9(Y,0),E=function(){var T;return(T=A().reelsAdCardButtonedEntityKey)!=null?T:""},z=function(){return E()+"/ad_button"},c=_.vT(ZRJ,E),M=function(){var T,Q;
return(Q=(T=c())==null?void 0:T.value)!=null?Q:!1},N=_.aE(Yik),y=function(){return Object.assign({},cxq,(N()||P()===2)&&{style:"overlay-dark"})};
Y={};var m={};return _.V("reels-player-overlay-layout-view-model",{class:_.To("ytwReelsPlayerOverlayLayoutViewModelHost",(Y.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!A().extension},Y.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},Y)),
"overlay-density":function(){return String(P())},
el:R},_.V("div",{class:_.To("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(m.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},m))},_.V("div",{"aria-hidden":function(){return M()},
class:_.To("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return M()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.nY({"transition-duration":function(){return i33(A())}})},_.V(_.ni,{data:function(){return A().adMetadata}},{reelsAdMetadataViewModel:function(T){return _.V(xx7,{data:T.data,
expansive:function(){return P()===1}})}}),_.V(_.J,{cond:function(){return A().extension},
then:function(T){return _.V("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.V(_.ni,{data:T},{adButtonViewModel:function(Q){return _.V(_.nS,{data:Q.data,animationEntityKey:z,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(Q){return _.V(PAq,{data:Q.data,animationEntityKey:z,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return P()===1}})}}))}})),_.V("div",{"aria-hidden":function(){return!M()},
class:_.To("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return M()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.nY({"transition-duration":function(){return i33(A())}})},_.V(_.ni,{data:function(){return A().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(T){return _.V(lCH,{data:T.data,
onShow:function(){_.A7(_.HT("booleanEntity",E(),{key:E(),value:!0}))},
expansive:function(){return P()===1}})}}))),_.V("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.V(_.ni,{data:function(){return A().actions}},{reelActionBarViewModel:function(T){return _.V(_.zaE,{data:T.data,
buttonShapeOverrideables:y})}}),_.V(_.ni,{data:function(){return A().menu}},{buttonViewModel:function(T){return _.V(_.Is,{data:T.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},y(),{type:"tonal"})}})}}),_.V(_.ni,{data:function(){return A().pivotButton}},{pivotButtonViewModel:function(T){return _.V(_.EVN,{data:T.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Mb");_.Ow(OzE,"reels-player-overlay-layout-view-model",{props:{data:_.VY,overlayDensity:_.VY}});var fm=function(){var R=_.K.apply(this,arguments)||this;R.noBottomMargin=!1;R.overlayDensity=0;return R};
_.H(fm,_.K);_.l=fm.prototype;
_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.v("enable_short_dr_for_desktop_launchable")?
{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",
properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.l.ready=function(){var R=this;HMu(function(){R.isAttached&&qV(R.JSC$15521_storedAdSlotMetadata,R.JSC$15521_storedAdLayoutMetadata,R.adSlotMetadata,R.adLayoutMetadata)&&jk(Km(),R.JSC$15521_storedAdSlotMetadata,R.JSC$15521_storedAdLayoutMetadata)})};
_.l.attached=function(){qV(this.JSC$15521_storedAdSlotMetadata,this.JSC$15521_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qtN(Km(),this.JSC$15521_storedAdSlotMetadata,this.JSC$15521_storedAdLayoutMetadata)};
_.l.detached=function(){qV(this.JSC$15521_storedAdSlotMetadata,this.JSC$15521_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jk(Km(),this.JSC$15521_storedAdSlotMetadata,this.JSC$15521_storedAdLayoutMetadata)};
_.l.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15521_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15521_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15521_storedAdLayoutMetadata!==void 0&&this.JSC$15521_storedAdSlotMetadata!==void 0&&jk(Km(),this.JSC$15521_storedAdSlotMetadata,this.JSC$15521_storedAdLayoutMetadata),qtN(Km(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15521_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15521_storedAdSlotMetadata=this.adSlotMetadata)};
_.Yh.Object.defineProperties(fm.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.adLayoutMetadata}}});
fm.prototype.onAdMetadataChanged=fm.prototype.onAdMetadataChanged;fm.prototype.onTypographyBumpChanged=fm.prototype.onTypographyBumpChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fm.prototype,"rendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],fm.prototype,"ytComponentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],fm.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],fm.prototype,"noBottomMargin",void 0);_.C([_.S(),_.k("design:type",Object)],fm.prototype,"overlayDensity",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],fm.prototype,"typographyBump",void 0);_.C([_.X("data.adLayoutMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],fm.prototype,"adLayoutMetadata",null);_.C([_.S(),_.k("design:type",Object)],fm.prototype,"adSlotMetadata",void 0);
_.C([_.nG("ytd-video-display-full-buttoned-and-button-group-renderer"),_.k("design:type",HTMLElement)],fm.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.C([_.vZ("typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fm.prototype,"onTypographyBumpChanged",null);_.C([_.vZ("adLayoutMetadata","adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fm.prototype,"onAdMetadataChanged",null);
_.C([_.F({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],fm);
_.B(fm,"ytd-in-feed-ad-layout-renderer",function(){if(RIq!==void 0)return RIq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return RIq=R},
{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var MrG;var sVS;_.Ow(_.$E,"ad-badge-view-model",{props:{data:_.VY,hasDot:_.VY,customCommandResolver:_.xL,adRenderingContextType:_.xL}});_.Ow(_.nS,"ad-button-view-model",{props:{data:_.VY,customCommandResolver:_.xL,className:_.xL,delayedClassName:_.xL,animationEntityKey:_.xL,isCompactWidth:_.xL}});var pm=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return R};
_.H(pm,_.K);_.l=pm.prototype;_.l.computeHasLiveDescription=function(R){return!(R==null||!R.liveDescription)};
_.l.computeHasByline=function(R){return!(R==null||!R.byline)};
_.l.computeUsesAdButtonViewModel=function(R){return!!_.n(R==null?void 0:R.cta,GsH)};
_.l.configureRendererStamper=function(){return{"data.adBadge":{id:"ad-badge",mapping:{adBadgeViewModel:{component:"ad-badge-view-model",properties:{adRenderingContextType:"[[adRenderingContextType]]",hasDot:"[[hasByline]]"}}}},"data.cta":{id:"ad-button",mapping:{adButtonViewModel:{component:"ad-button-view-model",params:{isCompactWidth:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.l.onYtToggleButton=function(R){var A,Y=(A=this.data)==null?void 0:A.videoReminderEntityKey;Y&&this.ytdReduxBehavior.dispatch(_.HT("upcomingEventReminderStateEntity",Y,{key:Y,state:R.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.l.attached=function(){this.updateChannelBanner()};
_.l.dataChanged=function(){this.updateChannelBanner()};
_.l.videoReminderStateChanged=function(){var R;this.videoReminderState&&_.n((R=this.data)==null?void 0:R.cta,_.As)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.l.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var R=_.MH(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);R&&(R.startsWith("//")&&(R="https:"+R),this.hostElement.classList.add("channel-banner"),_.ya(this.hostElement,{"--ytvmh-channel-banner":"url("+R+")"}))}else _.v("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.l.onPlayerReady=function(){this.onIronResize()};
_.l.maybeFlushDebouncer=function(){_.v("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(R){var A;R=(A=R.getElementsByTagName("yt-attributed-string"))==null?void 0:A[0];Glu(R==null?void 0:R.polymerController)})};
_.l.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var R=_.Mo(this.hostElement).querySelector("#live-description"),A;R&&((A=this.data)==null?0:A.shortLiveDescription)&&R.clientWidth<R.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
pm.prototype.onIronResize=pm.prototype.onIronResize;pm.prototype.videoReminderStateChanged=pm.prototype.videoReminderStateChanged;pm.prototype.dataChanged=pm.prototype.dataChanged;pm.prototype.onYtToggleButton=pm.prototype.onYtToggleButton;_.C([_.U(_.Cr),_.k("design:type",Object)],pm.prototype,"ironResizableBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],pm.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],pm.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pm.prototype,"data",void 0);_.C([_.S({selectorArgs:["data.videoReminderEntityKey"],selector:wNq}),_.k("design:type",Object)],pm.prototype,"videoReminderState",void 0);
_.C([_.S({reflectToAttribute:!0,value:_.v("web_modern_buttons")}),_.k("design:type",Boolean)],pm.prototype,"rounded",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.k("design:type",Boolean)],pm.prototype,"hasLiveDescription",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.k("design:type",Boolean)],pm.prototype,"hasByline",void 0);
_.C([_.S({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.k("design:type",String)],pm.prototype,"adRenderingContextType",void 0);_.C([_.S({computed:"computeUsesAdButtonViewModel(data)"}),_.k("design:type",Boolean)],pm.prototype,"usesAdButtonViewModel",void 0);_.C([_.S({reflectToAttribute:!0,value:_.v("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.k("design:type",Boolean)],pm.prototype,"resizableAdBannerSafariFix",void 0);
_.C([_.HZ("yt-formatted-string"),_.k("design:type",Array)],pm.prototype,"formattedStrings",void 0);_.C([_.nG("#cta-button"),_.k("design:type",HTMLElement)],pm.prototype,"ctaButton",void 0);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pm.prototype,"onYtToggleButton",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pm.prototype,"dataChanged",null);
_.C([_.vZ("videoReminderState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pm.prototype,"videoReminderStateChanged",null);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pm.prototype,"onIronResize",null);_.C([_.F({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],pm);
_.B(pm,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(sVS!==void 0)return sVS;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <div id="ad-badge" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" hidden="[[usesAdButtonViewModel]]" 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]]" hidden="[[usesAdButtonViewModel]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n      <div id="ad-button" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n  </div>\n</div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return sVS=R},{mode:1});var Nhz;var Fj=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};R.isLocked=!1;return R};
_.H(Fj,_.K);_.l=Fj.prototype;_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded&&_.MT(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(R){R!==this&&(this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(R){this.isLocked=!0;R!==this&&(this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
Fj.prototype.onTap=Fj.prototype.onTap;Fj.prototype.onMouseOver=Fj.prototype.onMouseOver;Fj.prototype.onExpandedChanged=Fj.prototype.onExpandedChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Fj.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Fj.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Fj.prototype,"expanded",void 0);_.C([_.Ul("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fj.prototype,"onExpandedChanged",null);_.C([_.Qa("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fj.prototype,"onMouseOver",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fj.prototype,"onTap",null);
_.C([_.F({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],Fj);
_.B(Fj,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Nhz!==void 0)return Nhz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Nhz=R},{mode:1});var VrS;var BA=function(){var R=_.K.apply(this,arguments)||this;R.buttonOverrides={style:"overlay"};R.useYtdPlayer=_.v("use_ytd_player_for_desktop_masthead");R.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};R.playbackFinished=!1;R.JSC$15535_playerManager=null;R.JSC$15535_mastheadCounter=new pvG;return R};
_.H(BA,_.K);_.l=BA.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$15535_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15535_playerManager=new td)};
_.l.ready=function(){var R=this;this.JSC$15535_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var A=_.Mo(this.hostElement).querySelector("#player");this.useYtdPlayer?A.style.display="none":(this.ytdPlayer.style.display="none",yKA(this.JSC$15535_playerManager,A,function(){R.onPlaybackEnded()}),_.Mo(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var Y;
((Y=R.data)==null?0:Y.navigationEndpoint)&&_.xo(R.hostElement,"yt-navigate",{endpoint:R.data.navigationEndpoint})}))};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15535_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.l.attached=function(){var R=this;_.wg(function(){R.maybePlayVideo()})};
_.l.maybePlayVideo=function(){var R=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$15535_playerManager.playVideo(),this.getPlayerPromise().then(function(){R.JSC$15535_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.l.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15535_playerManager.stopVideo()};
_.l.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var R,A={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((R=this.data.playbackStartMs)!=null?R:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(A);this.setupYtdPlayer()}else T9A(this.JSC$15535_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(mt8(this.JSC$15535_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.l.getPlayerPromise=function(){return this.JSC$15535_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(R){this.useYtdPlayer?this.toggleMute(R.detail.toggled):R.detail.toggled?this.JSC$15535_playerManager.mute():this.JSC$15535_playerManager.unMute()};
_.l.onYtNavigate=function(R){var A=FKk(R.detail.endpoint),Y=B7S(this.data.clickthroughReportingData);A&&Y&&(R.detail.endpoint.watchEndpoint?R.detail.tempData=Y:_.Yo(A,Y,30))};
_.l.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.l.onExpandedChanged=function(){this.expanded?(_.MT(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.l.onMouseOver=function(){this.maybeExpand()};
_.l.onTap=function(){this.maybeExpand()};
_.l.onExpandableTileExpanding=function(R){R!==this&&(this.stopVideo(),this.expanded=!1)};
_.l.onExpandableTileLockAndCollapse=function(R){R!==this&&(this.isLocked=!0,this.expanded=!1)};
_.l.onExpandableTileUnlock=function(){this.isLocked=!1};
_.l.lockAndCollapseExpandableTiles=function(){_.OC(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.l.unlockExpandableTiles=function(){_.OC(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.l.setupYtdPlayer=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.ytdPlayer.getPlayerPromise(),2);A=Y.yieldResult;A.addEventListener("onStateChange",function(P){R.onPlayerStateChange(P)});
A.addEventListener("onCueRangeExit",function(P){R.onCueRangeExit(P)});
_.XH(Y)})};
_.l.onPlayerStateChange=function(R){if(R===1&&(R=this.ytdPlayer.getPlayer())){var A=R.getCurrentTime(),Y,P,E=A+((P=(Y=this.data)==null?void 0:Y.playbackDurationMs)!=null?P:0)/1E3;R.addCueRange("playback",A,E);this.JSC$15535_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.l.onCueRangeExit=function(R){R==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.ytdPlayer.getPlayerPromise(),2);Y=P.yieldResult;R?Y.mute():Y.unMute();_.XH(P)})};
BA.prototype.onTap=BA.prototype.onTap;BA.prototype.onMouseOver=BA.prototype.onMouseOver;BA.prototype.onExpandedChanged=BA.prototype.onExpandedChanged;BA.prototype.onYtNavigate=BA.prototype.onYtNavigate;BA.prototype.onYtToggleButton=BA.prototype.onYtToggleButton;BA.prototype.dataChanged=BA.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],BA.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],BA.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],BA.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],BA.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],BA.prototype,"expanded",void 0);_.C([_.S(),_.k("design:type",Object)],BA.prototype,"buttonOverrides",void 0);
_.C([_.S(),_.k("design:type",Object)],BA.prototype,"useYtdPlayer",void 0);_.C([_.nG("#ytd-player"),_.k("design:type",Object)],BA.prototype,"ytdPlayer",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"dataChanged",null);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],BA.prototype,"onYtToggleButton",null);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],BA.prototype,"onYtNavigate",null);_.C([_.Ul("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onExpandedChanged",null);_.C([_.Qa("mouseover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onMouseOver",null);
_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BA.prototype,"onTap",null);_.C([_.F({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],BA);
_.B(BA,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(VrS!==void 0)return VrS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return VrS=R},{mode:1});var JxN;var ab=function(){return _.K.apply(this,arguments)||this};
_.H(ab,_.K);ab.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ab.prototype.onShow=function(){var R=_.Mo(this.hostElement).querySelector("#live-description"),A;R&&((A=this.data)==null?0:A.shortLiveDescription)&&R.clientWidth<R.scrollWidth&&this.hostElement.classList.add("short-live-description")};
ab.prototype.onYtToggleButton=function(R){var A,Y=(A=this.data)==null?void 0:A.videoReminderEntityKey;Y&&this.ytdReduxBehavior.dispatch(_.HT("upcomingEventReminderStateEntity",Y,{key:Y,state:R.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
ab.prototype.videoReminderStateChanged=function(){var R;this.videoReminderState&&_.n((R=this.data)==null?void 0:R.cta,_.As)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
ab.prototype.videoReminderStateChanged=ab.prototype.videoReminderStateChanged;ab.prototype.onYtToggleButton=ab.prototype.onYtToggleButton;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],ab.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ab.prototype,"data",void 0);
_.C([_.S({selectorArgs:["data.videoReminderEntityKey"],selector:wNq}),_.k("design:type",Object)],ab.prototype,"videoReminderState",void 0);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ab.prototype,"onYtToggleButton",null);_.C([_.vZ("videoReminderState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ab.prototype,"videoReminderStateChanged",null);
_.C([_.F({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],ab);
_.B(ab,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(JxN!==void 0)return JxN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return JxN=R},{mode:_.Nf("kevlar_poly_si_batch_j065")?1:2});var yxb;var Cm=function(){var R=_.K.apply(this,arguments)||this;R.useYtdPlayer=_.v("use_ytd_player_for_desktop_masthead");R.buttonOverrides={style:"overlay"};R.JSC$15543_playerManager=null;R.JSC$15543_mastheadCounter=new pvG;R.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return R};
_.H(Cm,_.K);_.l=Cm.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$15543_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15543_playerManager=new td)};
_.l.ready=function(){var R=this;this.JSC$15543_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var A;(A=this.embeddedPlayer)==null||A.remove()}else{var Y;(Y=this.ytdPlayer)==null||Y.remove();yKA(this.JSC$15543_playerManager,this.embeddedPlayer,function(){R.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){R.data&&R.data.navigationEndpoint&&_.xo(R.hostElement,"yt-navigate",{endpoint:R.data.navigationEndpoint})})}};
_.l.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15543_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.l.dataChanged=function(){var R=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var A=!this.data.disableAutoPlayback,Y,P={autoplay:A,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((Y=this.data.playbackStartMs)!=null?Y:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(A?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(P);this.setupYtdPlayer()}else T9A(this.JSC$15543_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(mt8(this.JSC$15543_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15543_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.OC(R.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");R.JSC$15543_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.l.getPlayerPromise=function(){return this.JSC$15543_playerManager.getPlayerPromise()};
_.l.onYtToggleButton=function(R){this.useYtdPlayer?this.toggleMute(R.detail.toggled):R.detail.toggled?this.JSC$15543_playerManager.mute():this.JSC$15543_playerManager.unMute()};
_.l.onYtNavigate=function(R){var A=FKk(R.detail.endpoint),Y=B7S(this.data.clickthroughReportingData);A&&Y&&(R.detail.endpoint.watchEndpoint?R.detail.tempData=Y:_.Yo(A,Y,30))};
_.l.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15543_playerManager.stopVideo()};
_.l.setupYtdPlayer=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.ytdPlayer.getPlayerPromise(),2);A=Y.yieldResult;A.addEventListener("onStateChange",function(P){R.onPlayerStateChange(P)});
A.addEventListener("onCueRangeExit",function(P){R.onCueRangeExit(P)});
_.XH(Y)})};
_.l.onPlayerStateChange=function(R){if(R===1&&(R=this.ytdPlayer.getPlayer())){var A=R.getCurrentTime(),Y,P,E=A+((P=(Y=this.data)==null?void 0:Y.playbackDurationMs)!=null?P:0)/1E3;R.addCueRange("playback",A,E);_.OC(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15543_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.l.onCueRangeExit=function(R){R==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.l.toggleMute=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.ytdPlayer.getPlayerPromise(),2);Y=P.yieldResult;R?Y.mute():Y.unMute();_.XH(P)})};
_.Yh.Object.defineProperties(Cm.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var R,A;if(!((R=this.data)==null?0:(A=R.accessibilityData)==null?0:A.label))return"Ad primary link";var Y,P;return _.vk("AD_TITLE",{title:(Y=this.data)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label})}}});
Cm.prototype.onYtMastheadHidden=Cm.prototype.onYtMastheadHidden;Cm.prototype.onYtNavigate=Cm.prototype.onYtNavigate;Cm.prototype.onYtToggleButton=Cm.prototype.onYtToggleButton;Cm.prototype.dataChanged=Cm.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Cm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Cm.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Cm.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Cm.prototype,"useYtdPlayer",void 0);_.C([_.nG("ytd-toggle-button-renderer"),_.k("design:type",Object)],Cm.prototype,"muteButton",void 0);_.C([_.S(),_.k("design:type",Object)],Cm.prototype,"buttonOverrides",void 0);
_.C([_.X("data.accessibilityData.label"),_.k("design:type",String),_.k("design:paramtypes",[])],Cm.prototype,"titleAriaLabel",null);_.C([_.nG("#replay-button"),_.k("design:type",Object)],Cm.prototype,"replayButton",void 0);_.C([_.nG("#player-container"),_.k("design:type",Object)],Cm.prototype,"playerContainer",void 0);_.C([_.nG("#player"),_.k("design:type",Object)],Cm.prototype,"embeddedPlayer",void 0);_.C([_.nG("#ytd-player"),_.k("design:type",Object)],Cm.prototype,"ytdPlayer",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cm.prototype,"dataChanged",null);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Cm.prototype,"onYtToggleButton",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Cm.prototype,"onYtNavigate",null);
_.C([_.Qa("yt-masthead-hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cm.prototype,"onYtMastheadHidden",null);_.C([_.F({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Cm);
_.B(Cm,"ytd-video-masthead-ad-primary-video-renderer",function(){if(yxb!==void 0)return yxb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return yxb=R},{mode:2});var mx7;var hc=function(){var R=_.K.apply(this,arguments)||this;R.collapsed=!1;R.impressionResolver=_.ei();R.JSC$15547_activeViewMeasurementDataResolver=_.ei();R.actionMap={"yt-mute-ad-action":"handleMuteAd"};return R};
_.H(hc,_.K);_.l=hc.prototype;_.l.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"}}}};
_.l.ready=function(){var R=this;_.Mo(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){R.expandAd()});
this.hostElement.addEventListener("yt-action",function(A){if(A.detail.actionName==="yt-service-request"){var Y=A.detail.args[1];Y.videoMastheadAdMuteCommand&&(R.collapseAd(Y.videoMastheadAdMuteCommand.encryptedMastheadId),A.stopPropagation())}})};
_.l.attached=function(){var R=this;_.wg(function(){R.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(A){if(!R.collapsed){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,tZ(Y.baseUrl,Y.attributionSrcMode);R.data.impressionCommand=void 0}});
this.JSC$15547_activeViewMeasurementDataResolver.promise.then(function(A){R.ytdActiveViewBehavior.enableActiveViewMeasurement(A,15)});
_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.dataChanged=function(){var R;((R=this.data.impressionCommand)==null?0:R.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var A;((A=this.data)==null?0:A.activeView)&&this.JSC$15547_activeViewMeasurementDataResolver.resolve(this.data.activeView);(R=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(R.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.l.computeWidescreen=function(R){var A;return!!(R&&((A=_.n(R,F5E))==null?0:A.isWidescreen))};
_.l.computeExpandable=function(R){return!!(R&&R.length>0)};
_.l.onIronResize=function(){if(this.expandable){var R=_.Mo(this.hostElement).querySelector("#expandable-tile-container :first-child");R&&!R.expanded&&(R.expanded=!0)}};
_.l.handleMuteAd=function(){this.collapseAd(null)};
_.l.restoreCollapsedState=function(R){this.collapsed=_.Hk().get("HIDDEN_MASTHEAD_ID")===R};
_.l.collapseAd=function(R){if(R){var A=_.Hk();A.set("HIDDEN_MASTHEAD_ID",R);A.save()}(R=_.Mo(this.hostElement).querySelector("#video"))&&_.xo(R,"yt-masthead-hidden");this.collapsed=!0};
_.l.expandAd=function(){var R=_.Hk();R.set("HIDDEN_MASTHEAD_ID",!1);R.save();location.reload()};
_.l.detached=function(){_.v("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
hc.prototype.onIronResize=hc.prototype.onIronResize;hc.prototype.dataChanged=hc.prototype.dataChanged;_.C([_.U(_.Cr),_.k("design:type",Object)],hc.prototype,"ironResizableBehavior",void 0);_.C([_.U(YX),_.k("design:type",Object)],hc.prototype,"ytdActiveViewBehavior",void 0);_.C([_.U(_.lg),_.k("design:type",Object)],hc.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],hc.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hc.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hc.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.k("design:type",Boolean)],hc.prototype,"widescreen",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.k("design:type",Boolean)],hc.prototype,"expandable",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],hc.prototype,"collapsed",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hc.prototype,"dataChanged",null);
_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hc.prototype,"onIronResize",null);_.C([_.F({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],hc);
_.B(hc,"ytd-video-masthead-ad-v3-renderer",function(){if(mx7!==void 0)return mx7;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return mx7=R},{mode:2});var ob=function(){return _.K.apply(this,arguments)||this};
_.H(ob,_.K);_.l=ob.prototype;_.l.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.l.ready=function(){var R=this;HMu(function(){R.isAttached&&qV(R.JSC$15552_storedAdSlotMetadata,R.JSC$15552_storedAdLayoutMetadata,R.adSlotMetadata,R.adLayoutMetadata)&&jk(Km(),R.JSC$15552_storedAdSlotMetadata,R.JSC$15552_storedAdLayoutMetadata)})};
_.l.attached=function(){qV(this.JSC$15552_storedAdSlotMetadata,this.JSC$15552_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&qtN(Km(),this.JSC$15552_storedAdSlotMetadata,this.JSC$15552_storedAdLayoutMetadata)};
_.l.detached=function(){qV(this.JSC$15552_storedAdSlotMetadata,this.JSC$15552_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&jk(Km(),this.JSC$15552_storedAdSlotMetadata,this.JSC$15552_storedAdLayoutMetadata)};
_.l.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15552_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15552_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15552_storedAdLayoutMetadata!==void 0&&this.JSC$15552_storedAdSlotMetadata!==void 0&&jk(Km(),this.JSC$15552_storedAdSlotMetadata,this.JSC$15552_storedAdLayoutMetadata),qtN(Km(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15552_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15552_storedAdSlotMetadata=this.adSlotMetadata)};
_.Yh.Object.defineProperties(ob.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.adLayoutMetadata}}});
ob.prototype.onAdMetadataChanged=ob.prototype.onAdMetadataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ob.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ob.prototype,"data",void 0);_.C([_.X("data.adLayoutMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],ob.prototype,"adLayoutMetadata",null);
_.C([_.S(),_.k("design:type",Object)],ob.prototype,"adSlotMetadata",void 0);_.C([_.vZ("adLayoutMetadata","adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ob.prototype,"onAdMetadataChanged",null);_.C([_.F({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],ob);
_.B(ob,"ytd-page-top-ad-layout-renderer",function(){if(MrG!==void 0)return MrG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return MrG=
R},{mode:_.Nf("kevlar_poly_si_batch_j070")?1:2});var ThE;var k4=function(){var R=_.K.apply(this,arguments)||this;R.noBottomMargin=!1;R.overlayDensity=0;R.typographyBump=!1;return R};
_.H(k4,_.K);_.l=k4.prototype;
_.l.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.l.ready=function(){var R=this;HMu(function(){R.isAttached&&R.adSlotMetadata&&eID(Km(),R.adSlotMetadata)})};
_.l.attached=function(){if(this.adSlotMetadata){var R;if(this.adSlotMetadata===((R=this.data)==null?void 0:R.adSlotMetadata))uz8(Km(),this.adSlotMetadata);else{var A;_.pK(Error("Nh`"+this.adSlotMetadata+"`"+((A=this.data)==null?void 0:A.adSlotMetadata)))}}};
_.l.detached=function(){this.adSlotMetadata&&eID(Km(),this.adSlotMetadata)};
_.l.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.l.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&eID(Km(),this.adSlotMetadata),uz8(Km(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Yh.Object.defineProperties(k4.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=_.n((R=this.data)==null?void 0:(A=R.fulfillmentContent)==null?void 0:A.fulfilledLayout,_.ax7),P;return(R=(P=_.n(Y==null?void 0:Y.renderingContent,B$8))==null?void 0:P.layout)?R.toLowerCase().replace(/_/g,"-"):""}}});
k4.prototype.onAdSlotMetadataChanged=k4.prototype.onAdSlotMetadataChanged;k4.prototype.onTypographyBumpChanged=k4.prototype.onTypographyBumpChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],k4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],k4.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],k4.prototype,"rendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],k4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],k4.prototype,"noBottomMargin",void 0);_.C([_.S(),_.k("design:type",Object)],k4.prototype,"overlayDensity",void 0);_.C([_.S(),_.k("design:type",Object)],k4.prototype,"typographyBump",void 0);_.C([_.nG("ytd-in-feed-ad-layout-renderer"),_.k("design:type",HTMLElement)],k4.prototype,"inFeedAdLayoutRenderer",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],k4.prototype,"layout",null);_.C([_.vZ("typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k4.prototype,"onTypographyBumpChanged",null);_.C([_.vZ("data.adSlotMetadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k4.prototype,"onAdSlotMetadataChanged",null);
_.C([_.F({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],k4);
_.B(k4,"ytd-ad-slot-renderer",function(){if(ThE!==void 0)return ThE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ThE=R},{mode:_.Nf("kevlar_poly_si_batch_j077")?
1:2});var QVb;var Gg=function(){return _.K.apply(this,arguments)||this};
_.H(Gg,_.K);_.l=Gg.prototype;_.l.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"}}}};
_.l.maybeComputeHref=function(){return null};
_.l.onTap=function(){};
_.l.onThumbnailContainerClick=function(R){this.onClick(R)};
_.l.onClick=function(R){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint;Y&&_.n(Y,_.LO)&&(this.ytSparklesClickLocationBehavior.handleClick(Y,R,!1),R.stopPropagation())};
_.l.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var R=_.x(this.data.impressionUrls),A=R.next();!A.done;A=R.next())A=A.value,Dfl(A,$fk(A));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",Gg.JSC$15560_DEFAULT_CLICK_LOCATION_BEHAVIOR,Gg.JSC$15560_CLICK_LOCATION_ID_MAP);this.thumbnail&&(R=this.thumbnail.getElementsByTagName("a"),R.length>0&&(R=R.namedItem("thumbnail"))&&
R.removeAttribute("href"))}};
_.l.attached=function(){var R=this;_.v("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&R.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.l.detached=function(){_.v("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Yh.Object.defineProperties(Gg.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
Gg.prototype.dataChanged=Gg.prototype.dataChanged;Gg.prototype.onTap=Gg.prototype.onTap;Gg.JSC$15560_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
Gg.JSC$15560_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"}];_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Gg.prototype,"ytRendererBehavior",void 0);_.C([_.U(YX),_.k("design:type",Object)],Gg.prototype,"ytdActiveViewBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Gg.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Gg.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],Gg.prototype,"ytSparklesClickLocationBehavior",void 0);
_.C([_.S({selector:_.B1}),_.k("design:type",Object)],Gg.prototype,"isGridViewEnabled",void 0);_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Gg.prototype,"watchFeedBigThumbs",null);_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],Gg.prototype,"thumbnailWidth",null);_.C([_.S(),_.k("design:type",Object)],Gg.prototype,"data",void 0);
_.C([_.nG("ytd-thumbnail"),_.k("design:type",HTMLElement)],Gg.prototype,"thumbnail",void 0);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gg.prototype,"onTap",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gg.prototype,"dataChanged",null);_.C([_.F({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],Gg);
_.B(Gg,"ytd-compact-promoted-video-renderer",function(){if(QVb!==void 0)return QVb;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="main-container" class="style-scope ytd-compact-promoted-video-renderer">\n  <ytd-thumbnail id="thumbnail-container" data="[[data]]" width="[[thumbnailWidth]]" on-click="onThumbnailContainerClick" class="style-scope ytd-compact-promoted-video-renderer">\n  </ytd-thumbnail>\n  <div class="details style-scope ytd-compact-promoted-video-renderer">\n    <a id="endpoint" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[maybeComputeHref(data.navigationEndpoint)]]" on-click="onClick" data="[[data.navigationEndpoint]]">\n      <h3 class="style-scope ytd-compact-promoted-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h3>\n      <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n        <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n        </ytd-video-meta-block>\n        <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n          <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n        </div>\n      </div>\n    </a>\n    <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n  </div>\n</div>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return QVb=R},{mode:1});var vVZ;_.bh("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var Z$=function(){return _.K.apply(this,arguments)||this};
_.H(Z$,_.K);Z$.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Z$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Z$.prototype,"data",void 0);_.C([_.F({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],Z$);
_.B(Z$,"ytd-search-pyv-renderer",function(){if(vVZ!==void 0)return vVZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return vVZ=R},{mode:1});var gVb;_.bh("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var tc=function(){var R=_.K.apply(this,arguments)||this;R.roundedContainer=!0;R.JSC$15568_handleOpenPostCommentDialogActionAfterStamp=!1;R.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return R};
_.H(tc,_.K);_.l=tc.prototype;
_.l.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}}};
_.l.onStampFinished=function(){this.JSC$15568_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var R=_.Mo(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");R?R.openDialog():this.JSC$15568_handleOpenPostCommentDialogActionAfterStamp=!0};
_.l.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.l.computeHideBorder=function(){return this.isInEngagementPanel};
_.l.computeIsCompact=function(){return this.isInEngagementPanel};
_.l.computeUsesCompactLockup=function(R){return R==="BACKSTAGE_SURFACE_TYPE_HOME"||R==="BACKSTAGE_SURFACE_TYPE_SEARCH"||R==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||R==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||R==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||R==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.l.computeUsesFullLockup=function(){var R,A=(R=this.data)==null?void 0:R.post,Y;R=(Y=_.n(A,q3S))==null?void 0:Y.surface;var P;Y=(P=_.n(A,RMN))==null?void 0:P.originalPost;var E;if(P=R||((E=_.n(Y,q3S))==null?void 0:E.surface))return!this.computeUsesCompactLockup(P)&&this.useUpdatedRepostUi;var z;return((z=_.n(A,RMN))==null?void 0:z.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Yh.Object.defineProperties(tc.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var R,A;return((A=_.n((R=this.data)==null?void 0:R.post,q3S))==null?void 0:A.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.useUpdatedRepostUi}}});
tc.prototype.onYtCommentModerationPanelEmpty=tc.prototype.onYtCommentModerationPanelEmpty;tc.prototype.onStampFinished=tc.prototype.onStampFinished;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],tc.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tc.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],tc.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],tc.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],tc.prototype,"roundedContainer",void 0);_.C([_.S({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.k("design:type",Boolean)],tc.prototype,"hideBorder",void 0);_.C([_.S({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.k("design:type",Boolean)],tc.prototype,"isCompact",void 0);
_.C([_.S({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.k("design:type",Boolean)],tc.prototype,"usesFullLockup",void 0);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tc.prototype,"onStampFinished",null);
_.C([_.Qa("ytd-comment-moderation-panel-empty"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],tc.prototype,"onYtCommentModerationPanelEmpty",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tc.prototype,"isInEngagementPanel",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],tc.prototype,"useUpdatedRepostUi",null);
_.C([_.F({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],tc);
_.B(tc,"ytd-backstage-post-thread-renderer",function(){if(gVb!==void 0)return gVb;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gVb=R},{mode:1});var nVf;var wB=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(wB,_.K);wB.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
wB.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var R=this.data.thumbnail.thumbnails;this.isDarkTheme&&(R=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(R=_.MH(R,24,void 0,"height"))?R:void 0}};
wB.prototype.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
wB.prototype.computeHasText=function(){var R;return!((R=this.data)==null||!R.text)};
_.Yh.Object.defineProperties(wB.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.oR(this.bannerImageUrl))+'");'}}});
wB.prototype.computeHasText=wB.prototype.computeHasText;wB.prototype.computeBannerImageUrl=wB.prototype.computeBannerImageUrl;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],wB.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],wB.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],wB.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],wB.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",String)],wB.prototype,"bannerImageUrl",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.k("design:type",Boolean)],wB.prototype,"hasText",void 0);_.C([_.vZ("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wB.prototype,"computeBannerImageUrl",null);
_.C([_.vZ("data.text"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wB.prototype,"computeHasText",null);_.C([_.X("bannerImageUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],wB.prototype,"bannerStyle",null);_.C([_.F({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],wB);
_.B(wB,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(nVf!==void 0)return nVf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return nVf=R},{mode:1});var HzE;var Rw=function(){return _.K.apply(this,arguments)||this};
_.H(Rw,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Rw.prototype,"data",void 0);_.C([_.F({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],Rw);
_.B(Rw,"ytd-backstage-zero-state-renderer",function(){if(HzE!==void 0)return HzE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return HzE=R},{mode:1});var rxZ;var AD=function(){return _.K.apply(this,arguments)||this};
_.H(AD,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],AD.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],AD.prototype,"icon",void 0);_.C([_.F({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],AD);
_.B(AD,"ytd-post-filter-zero-state-renderer",function(){if(rxZ!==void 0)return rxZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return rxZ=R},{mode:1});var DxS;var Ux7={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Yz=function(){return _.K.apply(this,arguments)||this};
_.H(Yz,_.K);Yz.prototype.configureRendererStamper=function(){return Ux7};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Yz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Yz.prototype,"rendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Yz.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],Yz.prototype,"icon",void 0);_.C([_.F({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Yz);
_.B(Yz,"ytd-post-scheduling-zero-state-renderer",function(){if(DxS!==void 0)return DxS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return DxS=R},{mode:1});var $xb;var PR=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return R};
_.H(PR,_.K);PR.prototype.onTabsActivate=function(R){this.data&&this.data.tabs&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[R.detail.selected].navigationEndpoint})};
PR.prototype.shouldShowTotalCount=function(R){return R&&R.totalCount!==void 0};
PR.prototype.handleUpdatePostsTotalCountAction=function(R){var A=this.get(["data.tabs",1,"totalCount"]),Y=this.get("updatePostsTotalCountAction.updateType",R);R=this.get("updatePostsTotalCountAction.number",R);A!==void 0&&Y!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&R&&(Y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(A)+R):Y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(A)-R))};
_.Yh.Object.defineProperties(PR.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var R=0,A=this.data.tabs.length;R<A;R++)if(this.data.tabs[R].selected)return R;return 0}}});
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],PR.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],PR.prototype,"rendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],PR.prototype,"data",void 0);_.C([_.X("data.tabs"),_.k("design:type",Number),_.k("design:paramtypes",[])],PR.prototype,"selected",null);_.C([_.F({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],PR);
_.B(PR,"ytd-post-stream-filter-renderer",function(){if($xb!==void 0)return $xb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return $xb=R},{mode:1});var XHA;var E$=function(){return _.K.apply(this,arguments)||this};
_.H(E$,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],E$.prototype,"kevlarBehaviors",void 0);_.C([_.S(),_.k("design:type",Object)],E$.prototype,"data",void 0);_.C([_.F({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],E$);
_.B(E$,"ytd-channel-age-gate-renderer",function(){if(XHA!==void 0)return XHA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return XHA=R},{mode:1});var Sf7;_.bh("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var zl=function(){var R=_.K.apply(this,arguments)||this;R.data=null;return R};
_.H(zl,_.K);zl.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Yh.Object.defineProperties(zl.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?0:(A=R.title)==null?0:(Y=A.runs)==null?0:Y.length)?147:160}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],zl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zl.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],zl.prototype,"imageSizePx",null);_.C([_.F({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],zl);
_.B(zl,"ytd-channel-owner-empty-state-renderer",function(){if(Sf7!==void 0)return Sf7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Sf7=R},{mode:1});var ICb;var Kqf;var iW=function(){var R=_.K.apply(this,arguments)||this;R.boundSubmitSearch=function(){R.submitSearch()};
R.boundClearSearch=function(){R.clearSearch()};
return R};
_.H(iW,_.K);_.l=iW.prototype;_.l.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]]"}}}}}};
_.l.toggleClearButton=function(){this.hideClearButton=TT8||!this.input.value};
_.l.submitOnEnterKeyUp=function(R){R.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.l.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.l.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.l.submit=function(){_.xo(this.hostElement,"search-query-changed",this.input.value)};
iW.prototype.toggleClearButton=iW.prototype.toggleClearButton;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],iW.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],iW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iW.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],iW.prototype,"hideClearButton",void 0);_.C([_.S(),_.k("design:type",Object)],iW.prototype,"boundSubmitSearch",void 0);_.C([_.S(),_.k("design:type",Object)],iW.prototype,"boundClearSearch",void 0);_.C([_.nG("#input"),_.k("design:type",Object)],iW.prototype,"input",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iW.prototype,"toggleClearButton",null);
_.C([_.F({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],iW);
_.B(iW,"ytd-channel-switcher-search-box-renderer",function(){if(Kqf!==void 0)return Kqf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Kqf=R},{mode:1});var Wq8;var lW=function(){var R=_.K.apply(this,arguments)||this;R.boundSubmit=function(){R.submit()};
return R};
_.H(lW,_.K);_.l=lW.prototype;_.l.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"}}}}};
_.l.ready=function(){var R=this;this.form.addEventListener("submit",function(A){return R.onSubmit(A)})};
_.l.onSubmit=function(R){R.preventDefault();return!1};
_.l.toggleClearButton=function(){this.hideClearButton=TT8||!this.input.value};
_.l.submitOnEnterKeyUp=function(R){R.keyCode===13&&this.submit()};
_.l.submit=function(){var R=this.data.endpoint,A=(0,_.BO.unsafeClone)(R);_.n(A,_.Ds)?_.n(A,_.Ds).query=this.input.value:_.n(A,_.Ud)&&(_.n(A,_.Ud).query=this.input.value);var Y=_.n(A.commandMetadata,_.Ti);(Y==null?0:Y.url)?(Y.url=_.an(Y.url,"query",this.input.value),_.xo(this.hostElement,"yt-navigate",{endpoint:A})):_.n(A,W5z)?(_.n(A,W5z).channelSwitcherQuery=this.input.value,_.is().resolve(_.ls).resolveCommand(A,{form:{element:this.hostElement}})):(R=Error("Oh`"+JSON.stringify(R)),_.bj(R))};
_.l.getUrl=function(R){return this.get("commandMetadata.webCommandMetadata.url",R)};
lW.prototype.toggleClearButton=lW.prototype.toggleClearButton;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],lW.prototype,"hideClearButton",void 0);
_.C([_.S(),_.k("design:type",Object)],lW.prototype,"boundSubmit",void 0);_.C([_.nG("#form"),_.k("design:type",HTMLFormElement)],lW.prototype,"form",void 0);_.C([_.nG("#input"),_.k("design:type",Object)],lW.prototype,"input",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lW.prototype,"toggleClearButton",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],lW);
_.B(lW,"ytd-search-box-renderer",function(){if(Wq8!==void 0)return Wq8;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Wq8=R},{mode:2});var xz=function(){var R=_.K.apply(this,arguments)||this;R.showSearchBox=!0;return R};
_.H(xz,_.K);xz.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],xz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xz.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],xz.prototype,"showSearchBox",void 0);_.C([_.F({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],xz);
_.B(xz,"ytd-channel-switcher-header-renderer",function(){if(ICb!==void 0)return ICb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ICb=R},{mode:1});var jVz;var bzD;var cR=function(){var R=_.K.apply(this,arguments)||this;R.isDisplayed=!0;return R};
_.H(cR,_.K);_.l=cR.prototype;_.l.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.isDisplayed=!0};
_.l.computeType=function(R){return R||"UNKNOWN"};
_.l.onYtServiceRequestCompleted=function(R){R.stopPropagation();this.isDisplayed=!1};
_.l.onClose=function(){this.isDisplayed=!1};
cR.prototype.onYtServiceRequestCompleted=cR.prototype.onYtServiceRequestCompleted;cR.prototype.dataChanged=cR.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cR.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],cR.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cR.prototype,"data",void 0);
_.C([_.S({computed:"computeType(data.type)",reflectToAttribute:!0}),_.k("design:type",String)],cR.prototype,"type",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cR.prototype,"isDisplayed",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cR.prototype,"dataChanged",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cR.prototype,"onYtServiceRequestCompleted",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],cR);
_.B(cR,"ytd-alert-with-button-renderer",function(){if(bzD!==void 0)return bzD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return bzD=R},{mode:1});var O$=function(){var R=_.K.apply(this,arguments)||this;R.noResult=!1;R.enableAlertBanner=!1;R.dismissedAlertBanner=!1;R.hideCreateChannelButton=!1;R.boundDismissAlertBanner=function(){R.dismissAlertBanner()};
R.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return R};
_.H(O$,_.K);_.l=O$.prototype;_.l.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.l.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.l.updateChannelSwitcherAction=function(R){var A;R=(A=_.n(R,DdS))==null?void 0:A.page;_.n(R,rnA)!==void 0&&(this.data=_.n(R,rnA))};
_.l.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]]"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.searchQueryChanged=function(R,A){if(this.data&&this.data.contents&&this.data.contents.length){R=[];var Y=[];this.hideCreateChannelButton=this.noResult=!1;for(var P=document.querySelectorAll("ytd-account-item-renderer"),E=_.x(P),z=E.next();!z.done;z=E.next())z=z.value,Y.push(z),z.style.display="block";this.resetRightBorder(Y);if(A){this.hideCreateChannelButton=!0;for(Y=1;Y<this.data.contents.length;Y++)if(z=this.data.contents[Y],_.n(z,S3z)){var c=void 0,M=void 0;E=(c=_.n(z,S3z))==null?void 0:(M=
c.accountName)==null?void 0:M.simpleText;M=c=void 0;z=(c=_.n(z,S3z))==null?void 0:(M=c.channelHandle)==null?void 0:M.simpleText;(c=P[Y-1])&&E&&_.Mb(E,A)?R.push(c):_.v("enable_handle_search_on_channel_switcher")&&c&&z&&_.Mb(z.toString(),A.toString())?R.push(c):c.style.display="none"}R.length===0&&(this.noResult=!0);this.resetRightBorder(R)}}};
_.l.resetRightBorder=function(R){for(var A=0;A<R.length;A++)R[A].style.borderRight=!this.hideCreateChannelButton&&(A+2)%3===0||this.hideCreateChannelButton&&(A+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.l.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.l.setShowSearchBox=function(R){if(R&&R.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var A=0;A<R.contents.length;A++)_.n(R.contents[A],_.eb)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.l.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Yh.Object.defineProperties(O$.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null?0:R.contents)}}});
O$.prototype.onContinuationItemsUpdated=O$.prototype.onContinuationItemsUpdated;O$.prototype.searchQueryChanged=O$.prototype.searchQueryChanged;O$.prototype.onDataChanged=O$.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],O$.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],O$.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],O$.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],O$.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],O$.prototype,"data",void 0);_.C([_.nG("ytd-channel-switcher-header-renderer"),_.k("design:type",Object)],O$.prototype,"channelSwitcherHeaderRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],O$.prototype,"noResult",void 0);
_.C([_.S(),_.k("design:type",Object)],O$.prototype,"enableAlertBanner",void 0);_.C([_.S(),_.k("design:type",Object)],O$.prototype,"dismissedAlertBanner",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],O$.prototype,"hideCreateChannelButton",void 0);_.C([_.X("data.contents"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],O$.prototype,"isLoading",null);_.C([_.S(),_.k("design:type",Object)],O$.prototype,"boundDismissAlertBanner",void 0);
_.C([_.S({computed:"computeButtonOverride()"}),_.k("design:type",Object)],O$.prototype,"buttonOverride",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O$.prototype,"onDataChanged",null);_.C([_.Qa("search-query-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],O$.prototype,"searchQueryChanged",null);
_.C([_.Qa("yt-next-continuation-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],O$.prototype,"onContinuationItemsUpdated",null);_.C([_.F({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],O$);
_.B(O$,"ytd-channel-switcher-page-renderer",function(){if(jVz!==void 0)return jVz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return jVz=R},{mode:1});var fCA;var pHf;var M8=function(){var R=_.K.apply(this,arguments)||this;R.images=[];R.selectedImageIndex=0;return R};
_.H(M8,_.K);_.l=M8.prototype;
_.l.ready=function(){_.KC(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.KC(this.JSC$15613_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.KC(this.JSC$15613_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.KC(this.JSC$15613_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.l.onThumbnailClick=function(R){if(R=R.event_.detail)this.selectedImageIndex=this.images.indexOf(R)};
_.l.updateImageThumbnails=function(R){R=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:R.event_.detail});this.images.splice(this.selectedImageIndex,1,R);this.images=[].concat(_.py(this.images))};
_.l.cancelImageRepositions=function(){this.selectedImageIndex=0;_.xo(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.l.saveImageRepositions=function(){this.selectedImageIndex=0;_.xo(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Yh.Object.defineProperties(M8.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var R=this;return(this.images||[]).map(function(A,Y){return{image:A,selected:Y===R.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],M8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("ytd-backstage-image-preview-renderer"),_.k("design:type",Object)],M8.prototype,"JSC$15613_imagePreviewContainer",void 0);_.C([_.nG(".thumbnail-images-container"),_.k("design:type",HTMLElement)],M8.prototype,"thumbnailImagesContainer",void 0);_.C([_.S(),_.k("design:type",Array)],M8.prototype,"images",void 0);
_.C([_.S(),_.k("design:type",Object)],M8.prototype,"repositionInstructions",void 0);_.C([_.S(),_.k("design:type",Object)],M8.prototype,"selectedImageIndex",void 0);_.C([_.X("images","selectedImageIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],M8.prototype,"thumbnailRendererDatas",null);_.C([_.X("images","selectedImageIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],M8.prototype,"selectedImageData",null);
_.C([_.F({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],M8);
_.B(M8,"ytd-backstage-multi-image-reposition-renderer",function(){if(pHf!==void 0)return pHf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return pHf=R},{mode:1});var s$=function(R,A){_.SS.call(this);this.uploadUrl=R;this.channelId=A;this.imagesUploadData=[]};
_.H(s$,_.SS);s$.prototype.getAllUploadStatuses=function(){var R=this,A,Y,P;return _.O(function(E){if(E.nextAddress==1)return E.yield(Fqq(R),2);A=E.yieldResult;Y=A.get("succeed");P=A.get("failed");return E.return(Y.concat(P))})};
var aC7=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(Fqq(R),2);A=P.yieldResult;Y=A.get("failed");Y.length>0&&Bhb(R,Y);return P.return(R.getAllUploadStatuses())})},Fqq=function(R){var A,Y,P,E,z,c,M;
return _.O(function(N){if(N.nextAddress==1)return A=new Map,N.yield(Promise.allSettled(R.imagesUploadData.map(function(y){return y.uploadPromise})),2);
Y=N.yieldResult;P=[];E=_.x(Y);for(z=E.next();!z.done;z=E.next())c=z.value,c.status==="fulfilled"&&P.push(c.value);M=R.imagesUploadData.map(function(y){return y.image}).filter(function(y){return P.every(function(m){return m.id!==y.id})});
A.set("succeed",P);A.set("failed",M);return N.return(A)})},Bhb=function(R,A){A=_.x(A);
for(var Y=A.next();!Y.done;Y=A.next()){var P=R;Y=Y.value;CAN(P,Y.id)>=0&&P.cancel(Y.id);var E=new haA(Y),z=_.mAS(P.uploadUrl,{"X-YouTube-ChannelId":P.channelId},Y.imageBlob);E.transfer=z;E.uploadPromise=oVZ(z,Y);P.imagesUploadData.push(E);z.run()}};
s$.prototype.cancel=function(R){var A=CAN(this,R);A!==-1&&((A=this.imagesUploadData[A].transfer)&&A.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(Y){return Y.image.id!==R}))};
var CAN=function(R,A){return R.imagesUploadData.findIndex(function(Y){return Y.image.id===A})},oVZ=function(R,A){return new Promise(function(Y,P){R.listen("l",function(){var E=R.getResponseText();
E?(E=JSON.parse(E).encryptedBlobId,A.encryptedBlobId=E,Y(A)):P("upload failed")});
R.listen("n",function(){P("upload failed")})})},haA=function(R){this.image=R};var lyq=function(R,A,Y,P,E){this.id=R;this.imageBlob=A;this.localImageSrc=Y;this.naturalWidth=P;this.naturalHeight=E;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 k6A=[".jpeg",".jpg",".png"],N8=function(){var R=_.K.apply(this,arguments)||this;R.showImagesPreview=!1;R.pollOptions=[];R.errorMessage="";R.optionPlaceholderText="";R.optionDefaultText="";R.JSC$15624_imageId=0;R.maxFileSizeMb=0;R.maxAspectRatio=0;R.invalidFileSizeError="";R.invalidAspectRatioError="";R.invalidFileTypeError="";R.imageSelector=new HM(null,"single_file",k6A);return R};
_.H(N8,_.K);_.l=N8.prototype;_.l.ready=function(){_.KC(this.imageSelector,"j",this.onImageSelect,!1,this);_.KC(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.KC(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.l.dataChanged=function(){var R,A,Y=_.n((R=this.data)==null?void 0:(A=R.cellTemplate)==null?void 0:A.onEmptyCellTap,Lvq);if(Y&&Y.uploadUrl&&Y.channelId){var P;this.maxFileSizeMb=((P=Y.imageValidationInfo)==null?void 0:P.maxFileSizeMb)||0;var E;this.maxAspectRatio=((E=Y.imageValidationInfo)==null?void 0:E.allowedMaxAspectRatio)||0;var z;this.invalidFileSizeError=this.getSimpleString((z=this.data)==null?void 0:z.invalidFileSizeError);var c;this.invalidAspectRatioError=this.getSimpleString((c=this.data)==
null?void 0:c.invalidAspectRatioError);var M;this.invalidFileTypeError=this.getSimpleString((M=this.data)==null?void 0:M.invalidFileTypeError);this.uploadManager=new s$(Y.uploadUrl,Y.channelId)}};
_.l.onEditorInfoChange=function(){this.optionPlaceholderText=_.R4(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.R4(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.l.observeAddImageError=function(){this.errorMessage!==""&&_.xo(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.l.onPollOptionsChange=function(){for(var R=!1,A=[],Y=0;Y<this.pollOptions.length;Y++){var P=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(Y+1);this.pollOptions[Y].placeholderText!==P?(R=!0,A.push(Object.assign({},this.pollOptions[Y],{placeholderText:P}))):A.push(this.pollOptions[Y])}R&&(this.pollOptions=A);this.isValid()?_.xo(this.hostElement,"yt-commentbox-post-enable"):_.xo(this.hostElement,"yt-commentbox-post-disable")};
_.l.createPollOptions=function(R){var A=[],Y;R=(Y=R==null?void 0:R.minPollOptions)!=null?Y:0;for(Y=0;Y<R;Y++)A.push(this.createPollOption());return A};
_.l.onImageSelect=function(R){var A=this,Y,P,E,z,c,M;return _.O(function(N){if(N.nextAddress==1){if(A.selectedImageIndex===void 0)return N.jumpTo(0);Y=R.files[0];A.errorMessage="";P=A.validateImage(Y);if(P!=="")return A.errorMessage=P,N.return();E=new s7(A.maxAspectRatio,!1,!0);return N.yield(E.transform(Y),3)}if(N.nextAddress!=4)return z=N.yieldResult,z.transformedData?z.invalidAspectRatio?(A.errorMessage=A.invalidAspectRatioError,N.return()):N.yield(x3S(A.JSC$15624_imageId,R.files[0],z.transformedData),
4):(A.errorMessage=A.invalidFileTypeError,N.return());c=N.yieldResult;A.JSC$15624_imageId++;Bhb(A.uploadManager,[c]);M=Object.assign({},A.pollOptions[A.selectedImageIndex],{image:c});A.pollOptions.splice(A.selectedImageIndex,1,M);A.refreshPollOptions();_.xo(A.hostElement,"yt-backstage-poll-image-select");_.XH(N)})};
_.l.validateImage=function(R){return R.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.l.refreshPollOptions=function(){this.pollOptions=[].concat(_.py(this.pollOptions))};
_.l.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.py(this.pollOptions),[this.createPollOption()]))};
_.l.onRemovePollOption=function(R){var A=this.pollOptions[R.model.index];A&&A.image&&this.uploadManager.cancel(A.image.id);this.pollOptions.splice(R.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.xo(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.l.onTextInput=function(){this.refreshPollOptions()};
_.l.onImageButtonClick=function(R){this.selectedImageIndex=R.model.index;this.imageSelector.click()};
_.l.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.l.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.l.saveImageRepositions=function(R){R=R.event_.detail;for(var A=0,Y=[],P=_.x(this.pollOptions),E=P.next();!E.done;E=P.next())E=E.value,E.image!==void 0?(E=Object.assign({},E,{image:R[A]}),Y.push(E),A++):Y.push(E);this.showImagesPreview=!1;this.pollOptions=[].concat(_.py(Y))};
_.l.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 R=0,A=_.x(this.pollOptions),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,Y.optionText.trim()!==""||Y.image!==void 0){if(!Y.image||this.hasCustomOptionText&&Y.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;R++}return R>=Number(this.editorInfo.minPollOptions)};
_.l.getAllUploadStatuses=function(){var R=this,A,Y,P,E;return _.O(function(z){if(z.nextAddress==1)return z.yield(R.uploadManager.getAllUploadStatuses(),2);A=z.yieldResult;Y=_.x(A);for(P=Y.next();!P.done;P=Y.next())if(E=P.value,E.encryptedBlobId===void 0)return z.return(aC7(R.uploadManager));return z.return(A)})};
_.l.getPostCreateOptions=function(){for(var R=[],A=_.x(this.pollOptions),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.image!==void 0&&R.push({text:this.hasCustomOptionText?Y.optionText:Y.placeholderText,image:Y.image});return R};
_.l.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.l.createButtonRenderer=function(R,A){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:R,accessibilityData:{accessibilityData:{label:this.getSimpleString(R)}},isDisabled:A}};
_.l.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.l.computeThumbnailRendererData=function(R){return R?{image:R,selected:!1}:void 0};
_.l.getSimpleString=function(R){return _.R4(R)};
_.l.updateOptionTextFromBinding=function(R){if(R.target){var A=Array.from(_.Mo(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(R.target);if(A>=0){var Y;this.pollOptions[A].optionText=(Y=R.detail.value)!=null?Y:""}}};
_.Yh.Object.defineProperties(N8.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var R,A;return this.pollOptions.length<((A=(R=this.editorInfo)==null?void 0:R.maxPollOptions)!=null?A:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(R){return R.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(R){return R.image}).map(function(R){return R.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(R){return R.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var R,A=(R=this.data)==null?void 0:R.addOptionButtonText;return A?this.createButtonRenderer(A,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var R,A=(R=this.data)==null?void 0:R.repositionImagesButtonLabel;return A?this.createButtonRenderer(A,!this.hasImages):void 0}}});
N8.prototype.onPollOptionsChange=N8.prototype.onPollOptionsChange;N8.prototype.observeAddImageError=N8.prototype.observeAddImageError;N8.prototype.onEditorInfoChange=N8.prototype.onEditorInfoChange;N8.prototype.dataChanged=N8.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],N8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("ytd-backstage-multi-image-reposition-renderer"),_.k("design:type",Object)],N8.prototype,"imageRepositionContainer",void 0);
_.C([_.S(),_.k("design:type",Object)],N8.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],N8.prototype,"editorInfo",void 0);_.C([_.S(),_.k("design:type",s$)],N8.prototype,"uploadManager",void 0);_.C([_.S(),_.k("design:type",Object)],N8.prototype,"showImagesPreview",void 0);_.C([_.S(),_.k("design:type",Array)],N8.prototype,"pollOptions",void 0);_.C([_.S(),_.k("design:type",Object)],N8.prototype,"errorMessage",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N8.prototype,"dataChanged",null);_.C([_.Ul("editorInfo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N8.prototype,"onEditorInfoChange",null);_.C([_.vZ("errorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N8.prototype,"observeAddImageError",null);
_.C([_.Ul("pollOptions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N8.prototype,"onPollOptionsChange",null);_.C([_.X("pollOptions","editorInfo"),_.k("design:type",Object),_.k("design:paramtypes",[])],N8.prototype,"isAllowedToAddOption",null);_.C([_.X("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],N8.prototype,"hasImages",null);
_.C([_.X("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],N8.prototype,"imagesToReposition",null);_.C([_.X("pollOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],N8.prototype,"hasCustomOptionText",null);_.C([_.X("data","isAllowedToAddOption"),_.k("design:type",Object),_.k("design:paramtypes",[])],N8.prototype,"addOptionButton",null);_.C([_.X("data","hasImages"),_.k("design:type",Object),_.k("design:paramtypes",[])],N8.prototype,"repositionImagesButton",null);
_.C([_.F({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],N8);
_.B(N8,"ytd-backstage-image-poll-editor-renderer",function(){if(fCA!==void 0)return fCA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fCA=R},{mode:2});var G6Z={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 ZzG;var Vd=function(){var R=_.K.apply(this,arguments)||this;R.a11yConfig=G6Z;R.imageDisplayOffsetTop=0;R.imageDisplayOffsetLeft=0;R.pickerDisplayOffsetTop=0;R.pickerDisplayOffsetLeft=0;R.showPreviewContainer=!0;R.startPicker=!1;R.repositionOptional=!1;R.editOnlyMode=!1;R.savedImageDisplayOffsetTop=0;R.savedImageDisplayOffsetLeft=0;return R};
_.H(Vd,_.K);_.l=Vd.prototype;_.l.created=function(){_.eQ.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(R){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){R.detail.keyboardEvent.preventDefault();var A=0,Y=0,P="";switch(R.detail.keyboardEvent.key){case "ArrowUp":c3V(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:A=this.imageHeight*.05*-1;break;case "ArrowDown":c3V(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
A=this.imageHeight*.05;break;case "ArrowLeft":c3V(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:Y=this.imageWidth*.05*-1;break;case "ArrowRight":c3V(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:Y=this.imageWidth*.05}P&&_.vk(P)&&_.xo(this.hostElement,"iron-announce",{text:_.vk(P)});if(Y||A)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+A)),R=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),R=_.vk(this.a11yConfig.imageVerticalPosition,{x_percent:""+R,y_percent:""+(100-R)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+Y)),R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),R=_.vk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})),R&&_.xo(this.hostElement,"iron-announce",{text:R})}};
_.l.getPreviewPosition=function(R,A,Y,P){return Math.round(100*(R+A*.5-Y)/P)};
_.l.calculateDisplayPosition=function(){var R=this.imageData.naturalWidth,A=this.imageData.naturalHeight;this.displayScale=Math.max(200/R,200/A);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var Y=R*this.displayScale*this.imageData.previewCoordinates.left,P=A*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=A>R?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-Y;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=R>A?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-P;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=R*this.displayScale;this.imageHeight=A*this.displayScale};
_.l.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.l.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.l.getSignedPosition=function(R,A,Y){return A==="X"&&_.a1("HTML_DIR")==="rtl"?Y==="-"?R+"px":R*-1+"px":Y==="-"?R*-1+"px":R+"px"};
_.l.pickerMove=function(R){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var A=this.pickerOffsetX-R.clientX,Y=this.pickerOffsetY-R.clientY;this.pickerOffsetX=R.clientX;this.pickerOffsetY=R.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
Y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-A))}};
_.l.pickerMoveStart=function(R){this.startPicker=!0;this.pickerOffsetX=R.clientX;this.pickerOffsetY=R.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var R=this.generateCropPreview();R&&_.xo(this.hostElement,"ytd-backstage-image-preview-coordinates-update",R)};
_.l.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.xo(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.l.deleteImage=function(){_.xo(this.hostElement,"ytd-backstage-image-preview-delete")};
_.l.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.l.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var R=this.generateCropPreview();R&&_.xo(this.hostElement,"ytd-backstage-image-preview-coordinates-save",R)};
_.l.getPreviewOffset=function(R,A,Y){return A&&R?(Y==="X"&&_.a1("HTML_DIR")==="rtl"?300/A*R:300/A*R*-1)+"px":"0px"};
_.l.getSimpleText=function(R){return R?_.R4(R):""};
_.l.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}};
_.Yh.Object.defineProperties(Vd.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var R=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.vk(this.a11yConfig.imageVerticalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.vk(this.a11yConfig.verticalRepositionInstruction)}R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.vk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.vk(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 R,A,Y=(R=this.instruction)==null?void 0:(A=R.previewInstruction)==null?void 0:A.editButtonLabel;return Y?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleText(Y)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E=this.editOnlyMode?(R=this.instruction)==null?void 0:(A=R.editInstruction)==null?void 0:A.saveImagesButtonLabel:(Y=this.instruction)==null?void 0:(P=Y.editInstruction)==null?void 0:P.saveButtonLabel;return E?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:E,accessibilityData:{accessibilityData:{label:this.getSimpleText(E)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.instruction)==null?void 0:(A=R.previewInstruction)==null?void 0:A.deleteButtonLabel;return Y?{size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleText(Y)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.instruction)==null?void 0:(A=R.editInstruction)==null?void 0:A.cancelButtonLabel;R=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return Y?{style:R,size:"SIZE_SMALL",text:Y,accessibilityData:{accessibilityData:{label:this.getSimpleText(Y)}}}: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"}}});
Vd.prototype.onEditOnlyModeUpdate=Vd.prototype.onEditOnlyModeUpdate;Vd.prototype.onImageChange=Vd.prototype.onImageChange;_.C([_.S(),_.k("design:type",lyq)],Vd.prototype,"imageData",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"instruction",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"a11yConfig",void 0);_.C([_.S(),_.k("design:type",Number)],Vd.prototype,"imageWidth",void 0);_.C([_.S(),_.k("design:type",Number)],Vd.prototype,"imageHeight",void 0);
_.C([_.S(),_.k("design:type",Number)],Vd.prototype,"displayScale",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"imageDisplayOffsetTop",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"imageDisplayOffsetLeft",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"pickerDisplayOffsetTop",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"pickerDisplayOffsetLeft",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"showPreviewContainer",void 0);
_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"startPicker",void 0);_.C([_.S(),_.k("design:type",Number)],Vd.prototype,"pickerOffsetX",void 0);_.C([_.S(),_.k("design:type",Number)],Vd.prototype,"pickerOffsetY",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"repositionOptional",void 0);_.C([_.S(),_.k("design:type",Object)],Vd.prototype,"editOnlyMode",void 0);_.C([_.nG("#picker-container"),_.k("design:type",HTMLElement)],Vd.prototype,"JSC$15637_pickerContainer",void 0);
_.C([_.nG("#picker"),_.k("design:type",HTMLElement)],Vd.prototype,"picker",void 0);_.C([_.nG("#preview-clipper"),_.k("design:type",HTMLElement)],Vd.prototype,"previewClipper",void 0);_.C([_.nG("#image-in-picker-background"),_.k("design:type",HTMLImageElement)],Vd.prototype,"JSC$15637_imageInBackground",void 0);_.C([_.nG("#image-in-picker"),_.k("design:type",HTMLImageElement)],Vd.prototype,"JSC$15637_imageInPicker",void 0);
_.C([_.nG("#image-in-preview-clipper"),_.k("design:type",HTMLImageElement)],Vd.prototype,"JSC$15637_imageInPreviewClipper",void 0);_.C([_.X("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Vd.prototype,"altLabelForImage",null);_.C([_.X("imageHeight","imageWidth"),_.k("design:type",Number),_.k("design:paramtypes",[])],Vd.prototype,"pickerSize",null);
_.C([_.X("imageHeight","imageWidth"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vd.prototype,"imageOrientationStyle",null);_.C([_.X("instruction"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vd.prototype,"editButton",null);_.C([_.X("instruction","editOnlyMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vd.prototype,"saveButton",null);_.C([_.X("instruction"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vd.prototype,"deleteButton",null);
_.C([_.X("instruction","editOnlyMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vd.prototype,"cancelButton",null);_.C([_.X("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.k("design:type",Number),_.k("design:paramtypes",[])],Vd.prototype,"cropOffsetTop",null);_.C([_.X("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.k("design:type",Number),_.k("design:paramtypes",[])],Vd.prototype,"cropOffsetLeft",null);
_.C([_.X("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Vd.prototype,"pickerBackgroundStyle",null);_.C([_.X("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Vd.prototype,"pickerDisplayStyle",null);_.C([_.X("cropOffsetLeft","cropOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],Vd.prototype,"imageInPickerStyle",null);
_.C([_.X("cropOffsetLeft","cropOffsetTop","pickerSize"),_.k("design:type",String),_.k("design:paramtypes",[])],Vd.prototype,"previewClipperStyle",null);_.C([_.Ul("imageData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vd.prototype,"onImageChange",null);_.C([_.Ul("editOnlyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vd.prototype,"onEditOnlyModeUpdate",null);
_.C([_.X("showPreviewContainer"),_.k("design:type",String),_.k("design:paramtypes",[])],Vd.prototype,"pickerModeStyle",null);_.C([_.F({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],Vd);
_.B(Vd,"ytd-backstage-image-preview-renderer",function(){if(ZzG!==void 0)return ZzG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ZzG=R},{mode:1});var trA;var wHA={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 udS;var eaH;var JD=function(){var R=_.K.apply(this,arguments)||this;R.a11yConfig=wHA;R.imageDisplayOffsetTop=0;R.imageDisplayOffsetLeft=0;R.pickerDisplayOffsetTop=0;R.pickerDisplayOffsetLeft=0;R.cropCoordinatesSaved=!1;R.previewSize=0;R.startPicker=!1;R.repositionOptional=!1;return R};
_.H(JD,_.K);_.l=JD.prototype;_.l.created=function(){_.eQ.requestAvailability()};
_.l.ready=function(){};
_.l.onArrowKeysDown=function(R){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){R.detail.keyboardEvent.preventDefault();var A=0,Y=0,P="";switch(R.detail.keyboardEvent.key){case "ArrowUp":O3k(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?P=this.a11yConfig.reachBottomOfImage:A=this.imageHeight*.05*-1;break;case "ArrowDown":O3k(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?P=this.a11yConfig.reachTopOfImage:
A=this.imageHeight*.05;break;case "ArrowLeft":O3k(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?P=this.a11yConfig.reachRightOfImage:Y=this.imageWidth*.05*-1;break;case "ArrowRight":O3k(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?P=this.a11yConfig.reachLeftOfImage:Y=this.imageWidth*.05}P&&_.vk(P)&&_.xo(this.hostElement,"iron-announce",{text:_.vk(P)});if(Y||A)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+A)),R=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),R=_.vk(this.a11yConfig.imageVerticalPosition,{x_percent:""+R,y_percent:""+(100-R)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+Y)),R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),R=_.vk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})),R&&_.xo(this.hostElement,"iron-announce",{text:R})}};
_.l.getPreviewPosition=function(R,A,Y,P){return Math.round(100*(R+A*.5-Y)/P)};
_.l.displayImage=function(){var R=this.JSC$15648_pickerContainer.getBoundingClientRect().width,A=this.JSC$15648_pickerContainer.getBoundingClientRect().height,Y=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),P=this.JSC$15648_imageInBackground.naturalWidth,E=this.JSC$15648_imageInBackground.naturalHeight;this.displayScale=Math.max(Y/P,Y/E);this.imageWidth=P*this.displayScale;this.imageHeight=E*this.displayScale;this.pickerDisplayOffsetLeft=(R-Y)/2;this.pickerDisplayOffsetTop=
(A-Y)/2;this.imageDisplayOffsetLeft=E>P?this.pickerDisplayOffsetLeft:(R-this.imageWidth)/2;this.imageDisplayOffsetTop=P>E?this.pickerDisplayOffsetTop:(A-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.l.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15648_imageInBackground.src=this.imageData.toString(),this.JSC$15648_imageInPicker.src=this.imageData.toString(),this.JSC$15648_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.l.getSignedPosition=function(R,A,Y){return A==="X"&&_.a1("HTML_DIR")==="rtl"?Y==="-"?R+"px":R*-1+"px":Y==="-"?R*-1+"px":R+"px"};
_.l.pickerMove=function(R){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var A=this.pickerOffsetX-R.clientX,Y=this.pickerOffsetY-R.clientY;this.pickerOffsetX=R.clientX;this.pickerOffsetY=R.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
Y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-A))}};
_.l.pickerMoveStart=function(R){this.startPicker=!0;this.pickerOffsetX=R.clientX;this.pickerOffsetY=R.clientY};
_.l.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.l.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.xo(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.l.getPreviewOffset=function(R,A,Y,P){return A&&R&&Y?(P==="X"&&_.a1("HTML_DIR")==="rtl"?Y/A*R:Y/A*R*-1)+"px":"0px"};
_.l.getSimpleText=function(R){return R?_.R4(R):""};
_.l.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var R=this.cropOffsetTop/this.imageHeight,A=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,Y=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,P=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Mo(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.xo(this.hostElement,"yt-img-crop-coordinates-update",{top:R,right:A,bottom:Y,left:P})}};
_.Yh.Object.defineProperties(JD.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var R=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.vk(this.a11yConfig.imageVerticalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.vk(this.a11yConfig.verticalRepositionInstruction)}R=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.vk(this.a11yConfig.imageHorizontalPosition,{x_percent:""+R,y_percent:""+(100-R)})+"\n"+_.vk(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 R,A=(R=this.learnMore.runs[0])==null?void 0:R.navigationEndpoint,Y;return((Y=_.n(A,_.G$))==null?void 0:Y.url)||void 0}}}});
JD.prototype.onImageDataChange=JD.prototype.onImageDataChange;_.C([_.S(),_.k("design:type",Object)],JD.prototype,"imageData",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"instruction",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"a11yConfig",void 0);_.C([_.S(),_.k("design:type",Number)],JD.prototype,"imageWidth",void 0);_.C([_.S(),_.k("design:type",Number)],JD.prototype,"imageHeight",void 0);_.C([_.S(),_.k("design:type",Number)],JD.prototype,"displayScale",void 0);
_.C([_.S(),_.k("design:type",Object)],JD.prototype,"imageDisplayOffsetTop",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"imageDisplayOffsetLeft",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"pickerDisplayOffsetTop",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"pickerDisplayOffsetLeft",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"cropCoordinatesSaved",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"previewSize",void 0);
_.C([_.S(),_.k("design:type",Object)],JD.prototype,"startPicker",void 0);_.C([_.S(),_.k("design:type",Number)],JD.prototype,"pickerOffsetX",void 0);_.C([_.S(),_.k("design:type",Number)],JD.prototype,"pickerOffsetY",void 0);_.C([_.S(),_.k("design:type",Object)],JD.prototype,"repositionOptional",void 0);_.C([_.nG("#picker-container"),_.k("design:type",HTMLElement)],JD.prototype,"JSC$15648_pickerContainer",void 0);_.C([_.nG("#picker"),_.k("design:type",HTMLElement)],JD.prototype,"picker",void 0);
_.C([_.nG("#image-in-picker-background"),_.k("design:type",HTMLImageElement)],JD.prototype,"JSC$15648_imageInBackground",void 0);_.C([_.nG("#image-in-picker"),_.k("design:type",HTMLImageElement)],JD.prototype,"JSC$15648_imageInPicker",void 0);_.C([_.nG("#image-in-preview-clipper"),_.k("design:type",HTMLImageElement)],JD.prototype,"JSC$15648_imageInPreviewClipper",void 0);_.C([_.nG("#full-image-as-preview"),_.k("design:type",HTMLImageElement)],JD.prototype,"imageAsPreview",void 0);
_.C([_.X("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],JD.prototype,"altLabelForImage",null);_.C([_.X("imageHeight","imageWidth"),_.k("design:type",Number),_.k("design:paramtypes",[])],JD.prototype,"pickerSize",null);_.C([_.X("imageHeight","imageWidth"),_.k("design:type",Object),_.k("design:paramtypes",[])],JD.prototype,"imageOrientationStyle",null);
_.C([_.X("instruction.previewInstruction.editButtonLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],JD.prototype,"editButton",null);_.C([_.X("instruction.editInstruction.saveButtonLabel"),_.k("design:type",Object),_.k("design:paramtypes",[])],JD.prototype,"saveButton",null);_.C([_.X("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.k("design:type",Number),_.k("design:paramtypes",[])],JD.prototype,"cropOffsetTop",null);
_.C([_.X("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.k("design:type",Number),_.k("design:paramtypes",[])],JD.prototype,"cropOffsetLeft",null);_.C([_.X("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],JD.prototype,"pickerBackgroundStyle",null);_.C([_.X("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],JD.prototype,"pickerDisplayStyle",null);
_.C([_.X("cropOffsetLeft","cropOffsetTop"),_.k("design:type",String),_.k("design:paramtypes",[])],JD.prototype,"imageInPickerStyle",null);_.C([_.X("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.k("design:type",String),_.k("design:paramtypes",[])],JD.prototype,"previewClipperStyle",null);_.C([_.vZ("imageData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JD.prototype,"onImageDataChange",null);
_.C([_.X("cropCoordinatesSaved"),_.k("design:type",String),_.k("design:paramtypes",[])],JD.prototype,"pickerModeStyle",null);_.C([_.X("instruction.editInstruction.learnMore"),_.k("design:type",Object),_.k("design:paramtypes",[])],JD.prototype,"learnMore",null);_.C([_.X("learnMore"),_.k("design:type",Object),_.k("design:paramtypes",[])],JD.prototype,"learnMoreUrl",null);_.C([_.CG({is:"yt-img-crop-picker",disableElementRegistration:!0})],JD);
_.B(JD,"yt-img-crop-picker",function(){if(eaH===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;udS===void 0&&(udS=document.createElement("template"));var P=udS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);eaH=R}R=eaH;return R},{mode:2});var yd=function(){var R=_.K.apply(this,arguments)||this;R.errorMessage="";R.hasPreview=!1;R.isBackstagePost=!1;R.dismissButtonOverrides={size:"XS"};return R};
_.H(yd,_.K);_.l=yd.prototype;_.l.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"}}}};
_.l.detached=function(){this.removeOverlay()};
_.l.setPreview=function(R){_.Mo(this.hostElement).querySelector("#preview-picker").imageData=R;this.hasPreview=!0;_.xo(this.hostElement,"yt-backstage-image-select-preview")};
_.l.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var R=_.Mo(this.hostElement).querySelector("#dropzone");R.classList.remove("dragover");R.classList.remove("error");_.xo(this.hostElement,"yt-backstage-image-select-cancel")};
_.l.setupOverlay=function(){var R=this.imageUploadEndpoint;this.removeOverlay();if(R&&R.imageValidationInfo){var A=_.Mo(this.hostElement).querySelector("#dropzone"),Y=_.Mo(this.hostElement).querySelector("#select");this.overlay=new V0(R.uploadUrl,R.channelId,R.imageValidationInfo.maxFileSizeMb,R.imageValidationInfo.allowedMaxAspectRatio,A,Y,!0);_.KC(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.KC(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.KC(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.KC(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.KC(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.l.removeOverlay=function(){this.overlay&&(_.XQ(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.XQ(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.XQ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.XQ(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.XQ(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.l.onDragOver=function(R){var A=_.Mo(this.hostElement).querySelector("#dropzone");_.No(A,"dragover",R.value)};
_.l.onPreview=function(R){this.setPreview(R.value)};
_.l.onImageError=function(R){if(R.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var A;R=(A=this.data)==null?void 0:A.fileSizeError}else if(R.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var Y;R=(Y=this.data)==null?void 0:Y.invalidError}else if(R.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var P;R=(P=this.data)==null?void 0:P.invalidAspectRatioError}else return;this.errorMessage=_.R4(R);_.Mo(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.l.onImageAlert=function(R){this.onImageError(R)};
_.l.uploadPromise=function(){var R=this,A=this.overlay&&this.overlay.uploadPromise();if(A)return A.catch(function(){throw Error(R.data?_.R4(R.data.uploadFailureError):"");})};
_.Yh.Object.defineProperties(yd.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var R,A;if((R=this.data)==null?0:(A=R.icon)==null?0:A.iconType)return _.m0(this.data.icon.iconType)}}});
yd.prototype.setupOverlay=yd.prototype.setupOverlay;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],yd.prototype,"rendererStamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yd.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yd.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],yd.prototype,"imageUploadEndpoint",void 0);_.C([_.S(),_.k("design:type",Object)],yd.prototype,"errorMessage",void 0);
_.C([_.S(),_.k("design:type",V0)],yd.prototype,"overlay",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],yd.prototype,"hasPreview",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],yd.prototype,"isBackstagePost",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yd.prototype,"selectionCancel",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yd.prototype,"previewCancel",null);
_.C([_.X("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],yd.prototype,"icon",null);_.C([_.S(),_.k("design:type",Object)],yd.prototype,"dismissButtonOverrides",void 0);_.C([_.vZ("imageUploadEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yd.prototype,"setupOverlay",null);_.C([_.F({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],yd);
_.B(yd,"ytd-backstage-image-select-renderer",function(){if(trA!==void 0)return trA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return trA=R},{mode:1});var qfS;var LqA;var mg=function(){var R=_.K.apply(this,arguments)||this;R.selected=!1;return R};
_.H(mg,_.K);_.l=mg.prototype;_.l.computeSelected=function(R){return R==null?void 0:R.selected};
_.l.computeTransform=function(R,A,Y){var P,E,z=(E=(P=this.imageContainer)==null?void 0:P.getBoundingClientRect())!=null?E:{width:0,height:0};P=Math.max(z.width/A,z.height/Y);Y=Y*P*R.top;return"translateX("+this.getSignedPosition(A*P*R.left,"X","-")+") translateY("+this.getSignedPosition(Y,"Y","-")+")"};
_.l.getSignedPosition=function(R,A,Y){return A==="X"&&_.a1("HTML_DIR")==="rtl"?Y==="-"?R+"px":R*-1+"px":Y==="-"?R*-1+"px":R+"px"};
_.l.onClick=function(){var R;_.xo(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(R=this.data)==null?void 0:R.image)};
_.l.onKeyPress=function(R){if(R.keyCode===13)this.onClick()};
_.Yh.Object.defineProperties(mg.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:(A=R.image)==null?void 0:A.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)!=null&&R.image){var A;R=(A=this.data)==null?void 0:A.image;return R.previewCoordinates.top!==0||R.previewCoordinates.left!==0?(A=this.computeTransform(R.previewCoordinates,R.naturalWidth,R.naturalHeight),R.naturalHeight>=R.naturalWidth?"width:inherit;transform:"+A+";":"height:inherit;transform:"+A+";"):R.naturalHeight>=R.naturalWidth?"width:inherit;":"height:inherit;"}}}});
mg.prototype.onKeyPress=mg.prototype.onKeyPress;_.C([_.nG(".image-container"),_.k("design:type",HTMLElement)],mg.prototype,"imageContainer",void 0);_.C([_.S(),_.k("design:type",Object)],mg.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.k("design:type",Object)],mg.prototype,"selected",void 0);_.C([_.X("data.image"),_.k("design:type",Object),_.k("design:paramtypes",[])],mg.prototype,"thumbnailUrl",null);
_.C([_.X("data.image","data.image.previewCoordinates"),_.k("design:type",Object),_.k("design:paramtypes",[])],mg.prototype,"thumbnailStyle",null);_.C([_.Qa("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],mg.prototype,"onKeyPress",null);_.C([_.F({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],mg);
_.B(mg,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(LqA!==void 0)return LqA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return LqA=R},{mode:2});var Tl=function(R,A,Y){Y=Y===void 0?!1:Y;_.SS.call(this);var P=this;this.dropZoneOverlay=new nd(R);this.selectOverlay=Y?new HM(A,"multiple_file",["image/*"]):new HM(A,"single_file",["image/*"]);this.handler=new _.ce(this);_.gz(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(A,"click",function(){P.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.H(Tl,_.SS);Tl.prototype.onChange=function(R){var A;(A=R.files)!=null&&A.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:R.files}))};var Qd=function(){var R=_.K.apply(this,arguments)||this;R.addImageErrorMessage="";R.errorMessage="";R.images=[];R.selectedImageIndex=0;R.modern=_.v("web_modern_buttons");R.maxNumImagesPerPost=_.cU("max_num_images_per_post_web_ui");R.JSC$15663_imageId=0;return R};
_.H(Qd,_.K);_.l=Qd.prototype;_.l.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.xo(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.l.observeDragToReorder=function(){var R=this;if(this.showImagesPreview){var A,Y=i5b(_.gR.getInstance(),(A=this.data)==null?void 0:A.dragToReorderTooltip);_.fn.addLowPriorityJob(function(){_.NT(R.hostElement,Y,R.thumbnailDragDropArea)})}};
_.l.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}}};
_.l.computeThumbnail=function(R){return(R==null?void 0:R.localImageSrc)||void 0};
_.l.onRendererstamperFinished=function(){_.q1H(this.ytReorderableBehavior,_.Mo(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Mo(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.l.handleDrop=function(R){var A=R.currDragItem;if(A!=null&&A.data){R=this.images[this.selectedImageIndex];var Y=A.data.image,P=this.images.indexOf(Y)||0;A=_.fu(A.parentNode.children,A);this.images.splice(P,1);this.images.splice(A,0,Y);this.images=[].concat(_.py(this.images));this.selectedImageIndex=this.images.indexOf(R)}};
_.l.setUpImagePicker=function(){var R=this.imageUploadEndpoint;R&&R.imageValidationInfo&&(this.uploadManager=new s$(R.uploadUrl,R.channelId),this.initialPicker||(this.initialPicker=new Tl(this.dropzone,this.selectLink,!0),_.KC(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new Tl(this.addImageButtonContainer,this.addImageSelectButton),_.KC(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.KC(this.JSC$15663_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.KC(this.JSC$15663_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.KC(_.Mo(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.l.detached=function(){this.initialPicker&&(_.XQ(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.XQ(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.l.onInitialSelectImages=function(R){var A=this;return _.O(function(Y){return Y.yield(A.onSelectImages(R,!1),0)})};
_.l.onAddImage=function(R){var A=this;return _.O(function(Y){return Y.yield(A.onSelectImages(R,!0),0)})};
_.l.onSelectImages=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t;return _.O(function(d){switch(d.nextAddress){case 1:A?Y.addImageErrorMessage="":(Y.images=[],Y.errorMessage="");P=R.detail;E=Y.validateImages([].concat(_.py(P)));if(E!=="")return A?Y.addImageErrorMessage=E:Y.errorMessage=E,d.return();z=[].concat(_.py(P)).map(function(Jk){return(new s7(Y.maxAspectRatio,!1,!0)).transform(Jk)});
return d.yield(Promise.allSettled(z),2);case 2:c=d.yieldResult,M=_.x(c.entries()),N=M.next();case 3:if(N.done){d.jumpTo(5);break}y=N.value;m=_.x(y);T=m.next().value;Q=m.next().value;g=T;r=Q;if(r.status!=="fulfilled"){p=b=I=void 0;A?Y.addImageErrorMessage=_.R4((I=Y.data)==null?void 0:I.invalidError):Y.errorMessage=Y.errorMessage===""?_.R4((b=Y.data)==null?void 0:b.invalidError):_.R4((p=Y.data)==null?void 0:p.multiFileError);d.jumpTo(4);break}h=r.value;h.cropped&&_.xo(Y.hostElement,"yt-backstage-multi-image-cropped");
if(h.invalidAspectRatio){w=Z=L=void 0;A?Y.addImageErrorMessage=_.R4((L=Y.data)==null?void 0:L.invalidAspectRatioError):Y.errorMessage=Y.errorMessage===""?_.R4((Z=Y.data)==null?void 0:Z.invalidAspectRatioError):_.R4((w=Y.data)==null?void 0:w.multiFileError);d.jumpTo(4);break}return d.yield(x3S(Y.JSC$15663_imageId,R.detail[g],h.transformedData),8);case 8:t=d.yieldResult,Y.images.push(t),Y.JSC$15663_imageId++;case 4:N=M.next();d.jumpTo(3);break;case 5:if(Y.errorMessage!==""||Y.addImageErrorMessage!==
"")return d.return();A?Bhb(Y.uploadManager,[Y.images[Y.images.length-1]]):Bhb(Y.uploadManager,Y.images);Y.images=[].concat(_.py(Y.images));Y.selectedImageIndex=A?Math.max(Y.images.length-1,0):0;_.xo(Y.hostElement,"yt-backstage-multi-image-select");_.XH(d)}})};
_.l.onThumbnailClick=function(R){if(R=R.event_.detail)this.selectedImageIndex=this.images.indexOf(R)};
_.l.validateImages=function(R){if(R.length>this.maxNumImagesPerPost){var A;return _.R4((A=this.data)==null?void 0:A.multiImageExceedMaxImageCountError)}var Y=1048576*this.maxFileSizeMb;R=R.filter(function(z){return z.size>Y}).length;
if(R===0)return"";var P,E;R=R>1?(P=this.data)==null?void 0:P.multiFileError:(E=this.data)==null?void 0:E.fileSizeError;return _.R4(R)};
_.l.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.py(this.images));this.selectedImageIndex=0};
_.l.repositionImage=function(R){this.images[this.selectedImageIndex].previewCoordinates=R.event_.detail;this.images=[].concat(_.py(this.images))};
_.l.getAllUploadStatuses=function(){var R=this,A,Y,P,E;return _.O(function(z){if(z.nextAddress==1)return z.yield(R.uploadManager.getAllUploadStatuses(),2);A=z.yieldResult;Y=_.x(A);for(P=Y.next();!P.done;P=Y.next())if(E=P.value,E.encryptedBlobId===void 0)return z.return(aC7(R.uploadManager));return z.return(A)})};
_.l.hasImages=function(){return this.images.length>0};
_.l.cancel=function(){for(var R=this.uploadManager,A=_.x(R.imagesUploadData),Y=A.next();!Y.done;Y=A.next())R.cancel(Y.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.xo(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Yh.Object.defineProperties(Qd.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.imageUploadEndpoint)==null?void 0:(A=R.imageValidationInfo)==null?void 0:A.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.imageUploadEndpoint)==null?void 0:(A=R.imageValidationInfo)==null?void 0:A.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var R,A;if((R=this.data)==null?0:(A=R.icon)==null?0:A.iconType)return _.m0(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.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 R=this;return(this.images||[]).map(function(A,Y){return{renderer:{image:A,selected:Y===R.selectedImageIndex}}})}}});
Qd.prototype.setUpImagePicker=Qd.prototype.setUpImagePicker;Qd.prototype.onRendererstamperFinished=Qd.prototype.onRendererstamperFinished;Qd.prototype.observeDragToReorder=Qd.prototype.observeDragToReorder;Qd.prototype.observeAddImageError=Qd.prototype.observeAddImageError;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Qd.prototype,"rendererStamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qd.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.L2q),_.k("design:type",Object)],Qd.prototype,"ytReorderableBehavior",void 0);_.C([_.nG("#dropzone"),_.k("design:type",HTMLElement)],Qd.prototype,"dropzone",void 0);_.C([_.nG("#select-link"),_.k("design:type",HTMLElement)],Qd.prototype,"selectLink",void 0);_.C([_.nG("#thumbnail-drag-drop-area"),_.k("design:type",HTMLElement)],Qd.prototype,"thumbnailDragDropArea",void 0);_.C([_.nG("#add-image-button-container"),_.k("design:type",HTMLElement)],Qd.prototype,"addImageButtonContainer",void 0);
_.C([_.nG("#add-image-button"),_.k("design:type",HTMLElement)],Qd.prototype,"addImageSelectButton",void 0);_.C([_.nG("#image-preview-container"),_.k("design:type",Object)],Qd.prototype,"JSC$15663_imagePreviewContainer",void 0);_.C([_.S(),_.k("design:type",Object)],Qd.prototype,"addImageErrorMessage",void 0);_.C([_.S(),_.k("design:type",Object)],Qd.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Qd.prototype,"errorMessage",void 0);
_.C([_.S(),_.k("design:type",Object)],Qd.prototype,"imageUploadEndpoint",void 0);_.C([_.S(),_.k("design:type",Array)],Qd.prototype,"images",void 0);_.C([_.S(),_.k("design:type",Tl)],Qd.prototype,"initialPicker",void 0);_.C([_.S(),_.k("design:type",Tl)],Qd.prototype,"addImagePicker",void 0);_.C([_.S(),_.k("design:type",s$)],Qd.prototype,"uploadManager",void 0);_.C([_.S(),_.k("design:type",Object)],Qd.prototype,"selectedImageIndex",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qd.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qd.prototype,"maxNumImagesPerPost",void 0);_.C([_.X("imageUploadEndpoint"),_.k("design:type",Number),_.k("design:paramtypes",[])],Qd.prototype,"maxAspectRatio",null);_.C([_.X("imageUploadEndpoint"),_.k("design:type",Number),_.k("design:paramtypes",[])],Qd.prototype,"maxFileSizeMb",null);
_.C([_.X("data.icon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qd.prototype,"dropIcon",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qd.prototype,"selectionCancel",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qd.prototype,"previewCancel",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qd.prototype,"dataForAddImageButton",null);
_.C([_.X("errorMessage"),_.k("design:type",String),_.k("design:paramtypes",[])],Qd.prototype,"dropzoneClass",null);_.C([_.X("images"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Qd.prototype,"showImagesPreview",null);_.C([_.X("images"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Qd.prototype,"containMaxImages",null);_.C([_.vZ("addImageErrorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qd.prototype,"observeAddImageError",null);
_.C([_.vZ("showImagesPreview"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qd.prototype,"observeDragToReorder",null);_.C([_.X("images","selectedImageIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qd.prototype,"selectedImageData",null);_.C([_.X("images","selectedImageIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],Qd.prototype,"thumbnailRenderers",null);
_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qd.prototype,"onRendererstamperFinished",null);_.C([_.vZ("imageUploadEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qd.prototype,"setUpImagePicker",null);_.C([_.F({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Qd);
_.B(Qd,"ytd-backstage-multi-image-select-renderer",function(){if(qfS!==void 0)return qfS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return qfS=R},{mode:1});var dxG;var RjH;var AWb;var vR=function(){var R=_.K.apply(this,arguments)||this;R.boundCaptureFocus=function(A){R.onCaptureFocus(A)};
return R};
_.H(vR,_.K);_.l=vR.prototype;_.l.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.l.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.l.onCaptureFocus=function(R){_.Ah(R).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.l.getIconType=function(R){return R?"yt-icons:"+R.toLowerCase():null};
_.l.onSelect=function(){var R;if((R=this.data)==null?0:R.onSelectCommand)if(_.v("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var A;((A=_.n(this.data.onSelectCommand.commandMetadata,_.Ti))==null?0:A.url)?_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.is().resolve(_.ls).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Yh.Object.defineProperties(vR.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.R4(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}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vR.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],vR.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vR.prototype,"data",void 0);_.C([_.nG("#item"),_.k("design:type",HTMLElement)],vR.prototype,"item",void 0);_.C([_.X("data.label"),_.k("design:type",String),_.k("design:paramtypes",[])],vR.prototype,"label",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],vR.prototype,"value",null);_.C([_.F({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],vR);
_.B(vR,"ytd-privacy-dropdown-item-renderer",function(){if(AWb!==void 0)return AWb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return AWb=R},{mode:1});var gC=function(){var R=_.K.apply(this,arguments)||this;R.value="";R.label="";R.disabled=!1;return R};
_.H(gC,_.K);_.l=gC.prototype;_.l.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"}}}};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.l.dataChanged=function(){this.reset()};
_.l.valueChanged=function(){var R;if(this.value&&(R=this.data)!=null&&R.entries){R=_.x(this.data.entries);for(var A=R.next();!A.done;A=R.next())if((A=this.getRendererForEntry(A.value))&&this.getItemRendererValue(A)===this.value){this.label=this.ytComponentBehavior.getSimpleString(A.label);break}}};
_.l.setInitialLabel=function(){if(this.data&&this.data.entries)for(var R=_.x(this.data.entries),A=R.next();!A.done;A=R.next())if(A=this.getRendererForEntry(A.value)){if(A.isSelected){this.label=this.ytComponentBehavior.getSimpleString(A.label);break}this.data.label&&(this.label=this.data.label)}};
_.l.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var R=_.x(this.data.entries),A=R.next();!A.done;A=R.next()){A=this.getRendererForEntry(A.value);var Y=void 0;if((Y=A)==null?0:Y.isSelected)return this.getItemRendererValue(A)||-1}return-1};
_.l.getItemRendererValue=function(R){return"stringValue"in R||"int32Value"in R?R.stringValue||R.int32Value||null:null};
_.l.getRendererForEntry=function(R){return R.dropdownItemRenderer||R.privacyDropdownItemRenderer||R.navigationDropdownItemRenderer||null};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("value-changed",this.value))};
_.l.updateValueFromBinding=function(R){this.value=R.detail.value};
gC.prototype.valueChangedForBinding=gC.prototype.valueChangedForBinding;gC.prototype.valueChanged=gC.prototype.valueChanged;gC.prototype.dataChanged=gC.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],gC.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gC.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],gC.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],gC.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],gC.prototype,"value",void 0);_.C([_.S(),_.k("design:type",Object)],gC.prototype,"label",void 0);_.C([_.nG("#entries"),_.k("design:type",Object)],gC.prototype,"entries",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gC.prototype,"disabled",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gC.prototype,"dataChanged",null);
_.C([_.Ul("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gC.prototype,"valueChanged",null);_.C([_.vZ("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gC.prototype,"valueChangedForBinding",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],gC);
_.B(gC,"ytd-flat-dropdown-renderer",function(){if(RjH!==void 0)return RjH;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return RjH=R},{mode:1});var Ynq;var n5=function(){var R=_.K.apply(this,arguments)||this;R.quizOptions=[];R.explanationPlaceholderText="";R.optionPlaceholderText="";R.correctAnswerIndex=-1;R.isMarkAnswerTooltipShown=!1;R.timer=0;return R};
_.H(n5,_.K);_.l=n5.prototype;_.l.dataChanged=function(){this.optionPlaceholderText=_.R4(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.R4(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.l.onMarkCorrectAnswer=function(R){var A,Y=((A=this.quizOptions[this.correctAnswerIndex])==null?void 0:A.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[R.model.index]=Object.assign({},this.quizOptions[R.model.index],{explanationText:Y,isCorrect:!0});this.correctAnswerIndex=R.model.index;this.quizOptions=[].concat(_.py(this.quizOptions))};
_.l.updatePlaceholderTexts=function(){for(var R=!1,A=[],Y=0;Y<this.quizOptions.length;Y++){var P=this.optionPlaceholderText+" "+(Y+1),E=void 0;((E=this.quizOptions[Y])==null?void 0:E.placeholderText)!==P?(R=!0,A.push(Object.assign({},this.quizOptions[Y],{placeholderText:P}))):A.push(this.quizOptions[Y])}R&&(this.quizOptions=A);this.isValid()?_.xo(this.hostElement,"yt-commentbox-post-enable"):_.xo(this.hostElement,"yt-commentbox-post-disable")};
_.l.getSimpleString=function(R){return _.R4(R)};
_.l.createQuizOptions=function(R){var A=[],Y;R=(Y=R==null?void 0:R.minQuizOptions)!=null?Y:0;for(Y=0;Y<R;Y++)A.push(this.createQuizOption());return A};
_.l.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.py(this.quizOptions),[this.createQuizOption()]))};
_.l.onInput=function(){this.quizOptions=[].concat(_.py(this.quizOptions))};
_.l.onExplanationInput=function(){_.xo(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.l.onRemoveQuizOption=function(R){this.quizOptions.splice(R.model.index,1);R.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:R.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.py(this.quizOptions));this.quizOptions.length===0&&_.xo(this.hostElement,"yt-quiz-attachment-dismiss")};
_.l.updateHintRenderer=function(){var R=this;clearTimeout(this.timer);this.timer=setTimeout(function(){R.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.l.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var R=0,A=0,Y=_.x(this.quizOptions),P=Y.next();!P.done;P=Y.next()){P=P.value;var E=void 0;if(((E=P.optionText)==null?void 0:E.trim())!==""||P.isCorrect){P.isCorrect&&A++;E=void 0;if(this.hasCustomOptionText&&((E=P.optionText)==null?void 0:E.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;R++}}return R>=
Number(this.editorInfo.minQuizOptions)&&A===1};
_.l.getPostCreateOptions=function(){for(var R=[],A=_.x(this.quizOptions),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0;((P=Y.optionText)==null?void 0:P.trim())!==""&&R.push({pollOption:{text:Y.optionText,explanation:Y.explanationText},isCorrect:Y.isCorrect})}return R};
_.l.getExplanationText=function(){var R;return((R=this.quizOptions[this.correctAnswerIndex])==null?void 0:R.explanationText)||""};
_.l.maybeDisplayMarkAnswerEduToolTip=function(){var R,A,Y,P,E,z,c;this.shouldShowMarkAnswerTooltip()&&((R=this.editorInfo)==null?0:(A=R.markAnswerButton)==null?0:(Y=A.buttonRenderer)==null?0:(P=Y.hint)==null?0:(E=P.hintRenderer)==null?0:(z=E.content)==null?0:(c=z.bubbleHintRenderer)==null?0:c.text)&&(_.gR.getInstance(),R=n1(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,(R==null?void 0:R.length)>0&&this.optionSelectors&&_.vc(R[0],this.optionSelectors[0]))};
_.l.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var R=0,A=_.x(this.quizOptions),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0;((P=Y.optionText)==null?void 0:P.trim())!==""&&R++;if(Y.isCorrect)return!1}return R<2?!1:!0};
_.l.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.l.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.l.updateOptionTextFromBinding=function(R){if(R.target){var A=Array.from(_.Mo(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(R.target);if(A>=0){var Y;this.quizOptions[A].optionText=(Y=R.detail.value)!=null?Y:""}}};
_.Yh.Object.defineProperties(n5.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.editorInfo)==null?void 0:(A=R.addOptionButton)==null?void 0:A.buttonRenderer;Y&&(Y.style="STYLE_SUGGESTIVE",Y.size="SIZE_SMALL",Y.isDisabled=!this.isAllowedToAddOption);return(Y==null?0:Y.text)?Y:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var R,A;return this.quizOptions.length<((A=(R=this.editorInfo)==null?void 0:R.maxQuizOptions)!=null?A:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(R){var A;return(A=R.optionText)==null?void 0:A.trim()})}}});
n5.prototype.updatePlaceholderTexts=n5.prototype.updatePlaceholderTexts;n5.prototype.dataChanged=n5.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],n5.prototype,"editorInfo",void 0);_.C([_.S(),_.k("design:type",Array)],n5.prototype,"quizOptions",void 0);_.C([_.S(),_.k("design:type",Object)],n5.prototype,"explanationPlaceholderText",void 0);_.C([_.HZ(".option-selector-button"),_.k("design:type",Array)],n5.prototype,"optionSelectors",void 0);
_.C([_.Ul("editorInfo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n5.prototype,"dataChanged",null);_.C([_.X("editorInfo","isAllowedToAddOption","quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],n5.prototype,"addAnswerButton",null);_.C([_.X("editorInfo","quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],n5.prototype,"isAllowedToAddOption",null);
_.C([_.Ul("quizOptions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n5.prototype,"updatePlaceholderTexts",null);_.C([_.X("quizOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],n5.prototype,"hasCustomOptionText",null);_.C([_.F({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],n5);
_.B(n5,"ytd-backstage-quiz-editor-renderer",function(){if(Ynq!==void 0)return Ynq;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-checked="[[item.isCorrect]]" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" role="radio" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Ynq=R},{mode:2});var PLf;var EdE=(Jm.FIRSTDAYOFWEEK+1)%7;var zjz;var iN8=[],lQb=0,xsb=0;lQb=0;xsb=24;if(.25*(xsb-lQb)<0)zjz=[];else{for(var cW7=lQb;cW7<xsb;cW7+=.25)iN8.push(cW7);zjz=iN8}var ONH=zjz.map(function(R){R=R*60*60;return{secondsSinceMidnight:R,text:(new q6(7)).format(new Date(0,0,0,0,0,R))}});var MAq;var HR=function(){var R=_.K.apply(this,arguments)||this;R.skipNextOpenDialog=!1;R.errorMessage="";R.previousMonthLabel=_.vk("PREVIOUS_MONTH_LABEL");R.nextMonthLabel=_.vk("NEXT_MONTH_LABEL");return R};
_.H(HR,_.K);_.l=HR.prototype;_.l.attached=function(){var R=this,A=new MutationObserver(function(){R.JSC$15706_calendarMain.scrollHeight>0&&(A.disconnect(),R.calendarConfig&&R.calendarConfig.selectedDate&&R.scrollToDate())});
A.observe(this.JSC$15706_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){A.disconnect()},1E3)};
_.l.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.l.onDateTextChange=function(){if(this.calendarConfig){var R=this.validateDateText();R.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(R.details)):this.textbox.setAttribute("invalid","")}};
_.l.handleDayClick=function(R){R.model.day.date&&(this.commitDate(R.model.day.date),this.dialog.close())};
_.l.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var R=Ql6(this.calendarConfig.selectedDate,this.renderData);R!==void 0&&this.JSC$15706_calendarMain.scrollToIndex(R)}};
_.l.scrollToNextMonth=function(){this.JSC$15706_calendarMain.scrollToIndex(this.JSC$15706_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$15706_calendarMain.firstVisibleIndex===0&&this.JSC$15706_calendarMain.scrollTo(0,0);this.JSC$15706_calendarMain.scrollToIndex(this.JSC$15706_calendarMain.firstVisibleIndex-1)};
_.l.onFormSubmit=function(R){R.preventDefault();this.calendarConfig&&(R=this.validateDateText(),R.isValid&&(this.commitDate(R.details),this.dialog.close()))};
_.l.onEscOrClickingOutside=function(R){R=R.detail.path&&!!R.detail.path.length&&R.detail.path[0];if(R.classList.contains("ytd-calendar-date-picker")){R===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var A=0;A<this.dropdownButton.children.length;A++)this.dropdownButton.children[A]===R&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}R=this.textbox.value!==this.dateText;A=this.validateDateText();R&&A.isValid&&this.commitDate(A.details);this.dialog.close();this.textbox.value=
this.dateText};
_.l.commitDate=function(R){this.calendarConfig&&(this.set("calendarConfig.selectedDate",R),_.xo(this.hostElement,"ytd-calendar-date-selected",R))};
_.l.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var R=this.textbox.value;var A=new Date;R=(new BGk(2)).parse(R,A,{validate:!0})===R.length?m36(A):void 0;if(!R)return this.errorMessage=_.vk("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};A=this.calendarConfig.start;var Y=this.calendarConfig.end;if(slq(R,A))return this.errorMessage=_.vk("ENTER_DATE_OR_LATER",{allowed_date:y38(A)}),{isValid:!1,details:void 0};if(slq(Y,R))return this.errorMessage=
_.vk("ENTER_DATE_OR_EARLIER",{allowed_date:y38(Y)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:R}};
_.Yh.Object.defineProperties(HR.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?y38(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var R=this.calendarConfig,A=[],Y=0;Y<7;Y++)A.push(Jm.NARROWWEEKDAYS[(Y+EdE)%7]);Y=[];for(var P=new Date(R.start.year,R.start.month);P.getFullYear()<R.end.year||P.getFullYear()===R.end.year&&P.getMonth()<=R.end.month;){var E=Y,z=E.push,c=P.getFullYear(),M=P.getMonth(),N=R,y=void 0,m=[],T=Object.freeze({extraCssClass:"invisible",debugClass:""}),Q=new Date(c,M),g=m36(Q);Q=Q.getDay();for(var r=m36(new Date);g.month===
M;){Q!==EdE&&y||(y=Array.from({length:7}).fill(T),m.push(y));var I={date:{year:c,month:M,day:g.day},extraCssClass:"",debugClass:""};N.selectedDate&&I.date&&MCS(I.date,N.selectedDate)&&(I.extraCssClass+=" selected");if(slq(g,N.start)||slq(N.end,g))I.extraCssClass+=" disabled";MCS(g,r)&&(I.extraCssClass+=" today");I.extraCssClass=I.extraCssClass.trim();y[(Q-EdE+7)%7]=I;g=VCq(g);Q=(Q+1)%7}z.call(E,{weeks:m,monthLabel:Jm.SHORTMONTHS[M]+" "+c,year:c,month:M,monthLabelExtraCssClass:m[0][2]===T?"shift-down-label":
""});P.setMonth(P.getMonth()+1)}return{months:Y,daysOfWeekLabel:A}}}}});
HR.prototype.onEscOrClickingOutside=HR.prototype.onEscOrClickingOutside;HR.prototype.scrollToDate=HR.prototype.scrollToDate;_.C([_.S(),_.k("design:type",Object)],HR.prototype,"calendarConfig",void 0);_.C([_.S(),_.k("design:type",Object)],HR.prototype,"skipNextOpenDialog",void 0);_.C([_.S(),_.k("design:type",Object)],HR.prototype,"errorMessage",void 0);_.C([_.S(),_.k("design:type",Object)],HR.prototype,"previousMonthLabel",void 0);
_.C([_.S(),_.k("design:type",Object)],HR.prototype,"nextMonthLabel",void 0);_.C([_.nG("#textbox"),_.k("design:type",HTMLInputElement)],HR.prototype,"textbox",void 0);_.C([_.nG("#calendar-dialog"),_.k("design:type",Object)],HR.prototype,"dialog",void 0);_.C([_.nG("#calendar-main"),_.k("design:type",Object)],HR.prototype,"JSC$15706_calendarMain",void 0);_.C([_.nG("#date-picker"),_.k("design:type",HTMLElement)],HR.prototype,"dropdownButton",void 0);
_.C([_.X("calendarConfig.selectedDate"),_.k("design:type",String),_.k("design:paramtypes",[])],HR.prototype,"dateText",null);_.C([_.X("calendarConfig","calendarConfig.selectedDate"),_.k("design:type",Object),_.k("design:paramtypes",[])],HR.prototype,"renderData",null);_.C([_.vZ("renderData","calendarConfig.selectedDate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],HR.prototype,"scrollToDate",null);
_.C([_.Qa("iron-overlay-canceled"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],HR.prototype,"onEscOrClickingOutside",null);_.C([_.CG({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],HR);
_.B(HR,"ytd-calendar-date-picker",function(){if(MAq!==void 0)return MAq;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" label="[[previousMonthLabel]]" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" label="[[nextMonthLabel]]" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return MAq=R},{mode:2});var s3D=_.vk("UTC_OFFSET_FORMAT",{utc_offset:(new q6("Z")).format(new Date)}),N1N=(new Date).getTimezoneOffset()*-60,VAS=new Date,JWG,yWq=e9(VAS.getTimezoneOffset());JWG=HGD(DoZ(yWq,VAS));var msS=_.vk("LOCAL_TIME_GMT_LABEL",{gmt_text:JWG.replace("+0","+").replace("-0","-").replace(":00","")}),rC=function(){var R=_.K.apply(this,arguments)||this;R.selectedTimeIndex=0;R.selectedTimezoneIndex=0;R.timeOfDayOptions=ONH;return R};
_.H(rC,_.K);_.l=rC.prototype;_.l.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var R=J3k();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=R,this.selectedTimeIndex=0;else{var A=TGV(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},R,{selectedDate:A.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(Y){return Y.secondsSinceMidnight===A.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.l.onDatePicked=function(R){this.selectedDate=R.detail};
_.l.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.xo(this.hostElement,"ytd-date-time-selection-cancelled")};
_.l.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var R=this.selectedDate;R=new Date(R.year,R.month,R.day);_.xo(this.hostElement,"ytd-date-time-selection-update",Math.floor(R.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+R.getTimezoneOffset()*60))}};
_.l.getTimezoneFormat=function(R){return R.localizedDisplayText?R.localizedDisplayText:_.vk("TIMEZONE_FORMAT",{utc_offset_text:""+R.localizedUtcOffset,city_name:""+R.localizedName})};
_.l.updateSelectedTimeIndexFromBinding=function(R){this.selectedTimeIndex=R.detail.value};
_.l.updateSelectedTimezoneIndexFromBinding=function(R){this.selectedTimezoneIndex=R.detail.value};
_.Yh.Object.defineProperties(rC.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var R=this.data.timezoneOptions;var A={name:"Etc/Unknown",localizedName:_.vk("LOCAL_TIME_LABEL"),localizedUtcOffset:s3D,utcOffsetSec:""+N1N,localizedDisplayText:msS};R?R.length&&R[0].name!==A.name&&(R[0].localizedDisplayText||(A.localizedDisplayText=""),R.unshift(A)):R=[A];return R}}},
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]}}});
rC.prototype.onDateTimeTimezoneChange=rC.prototype.onDateTimeTimezoneChange;rC.prototype.onDatePicked=rC.prototype.onDatePicked;rC.prototype.updateDefaultSelectedValue=rC.prototype.updateDefaultSelectedValue;_.C([_.S(),_.k("design:type",Object)],rC.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],rC.prototype,"calendarConfig",void 0);_.C([_.S(),_.k("design:type",Object)],rC.prototype,"selectedDate",void 0);_.C([_.S(),_.k("design:type",Object)],rC.prototype,"selectedTimeIndex",void 0);
_.C([_.S(),_.k("design:type",Object)],rC.prototype,"selectedTimezoneIndex",void 0);_.C([_.nG("#time-listbox"),_.k("design:type",Object)],rC.prototype,"timeListBox",void 0);_.C([_.nG("#timezone-listbox"),_.k("design:type",Object)],rC.prototype,"timezoneListBox",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],rC.prototype,"rendererStamperBehavior",void 0);_.C([_.X("data.timezoneOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],rC.prototype,"timeZones",null);
_.C([_.Ul("data","timeZones"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rC.prototype,"updateDefaultSelectedValue",null);_.C([_.X("selectedTimezoneIndex","timeZones"),_.k("design:type",Object),_.k("design:paramtypes",[])],rC.prototype,"selectedTimezone",null);_.C([_.X("selectedTimeIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],rC.prototype,"selectedTime",null);
_.C([_.Qa("ytd-calendar-date-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],rC.prototype,"onDatePicked",null);_.C([_.vZ("selectedTimezone","selectedTime","selectedDate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rC.prototype,"onDateTimeTimezoneChange",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],rC);
_.B(rC,"ytd-date-time-picker-renderer",function(){if(PLf!==void 0)return PLf;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return PLf=R},{mode:1});var T1S;var DB=function(){var R=_.K.apply(this,arguments)||this;R.boundOnTapDismissButton=function(){R.dismissTapHandler()};
R.dismissButtonOverrides={size:"XS"};return R};
_.H(DB,_.K);DB.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}}}}}};
DB.prototype.dismissTapHandler=function(){_.xo(this.hostElement,"yt-backstage-attachment-dismissed")};
DB.prototype.computeAttachmentType=function(R){return R?R.backstageImageRenderer?"image":R.videoRenderer?"video":"none":"none"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],DB.prototype,"attachmentPreview",void 0);_.C([_.S(),_.k("design:type",Object)],DB.prototype,"dismissButton",void 0);_.C([_.S(),_.k("design:type",Object)],DB.prototype,"boundOnTapDismissButton",void 0);
_.C([_.S(),_.k("design:type",Object)],DB.prototype,"dismissButtonOverrides",void 0);_.C([_.S({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.k("design:type",String)],DB.prototype,"attachmentType",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],DB);
_.B(DB,"ytd-backstage-dismissable-attachment",function(){if(T1S!==void 0)return T1S;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return T1S=R},{mode:1});var Q3z;var U$=function(){var R=_.K.apply(this,arguments)||this;R.selectedVideoId=void 0;R.picker=void 0;R.dismissButtonOverrides={size:"XS"};R.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return R};
_.H(U$,_.K);_.l=U$.prototype;_.l.onServiceRequestCompleted=function(R){R.stopPropagation()};
_.l.handleAddVideoPreviewAction=function(R){R=this.get("addVideoPreviewAction",R);this.onGetVideoPreviewSuccess(R)};
_.l.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}}}}}};
_.l.onLaunchVideoPicker=function(R){var A=this,Y=_.R4(this.get("addVideoLinkAction.title",R)),P=this.get("addVideoLinkAction.onePickHostId",R);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",R);P&&(this.picker||(Y=_.JN8(_.Cgu(P).setTitle(Y).addView(MxS()).addView(Owf()),function(E){A.onPickVideo(E)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",R)||Y.addView("youtube"),this.picker=Y.build()),this.picker.setVisible(!0))};
_.l.onPickVideo=function(R){if(R)if(R.action==="cancel")_.xo(this.hostElement,"yt-video-link-button-cancel");else if(R.action==="picked"){R=R.docs;if(!R||R.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(R=(R==null?0:R.length)?R[0]:void 0)?R.id:void 0;this.setVideoPreview()}};
_.l.setVideoPreview=function(){var R=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){R.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.l.onGetVideoPreviewSuccess=function(R){if(R&&R.videoPreview&&R.cancelButton)this.videoPreview=R.videoPreview,this.cancelButton=R.cancelButton,_.xo(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.l.onGetVideoPreviewError=function(){this.cancel()};
_.l.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.xo(this.hostElement,"yt-video-link-cancel")};
_.l.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
U$.prototype.onServiceRequestCompleted=U$.prototype.onServiceRequestCompleted;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],U$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],U$.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],U$.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],U$.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],U$.prototype,"videoPreview",void 0);_.C([_.S(),_.k("design:type",Object)],U$.prototype,"cancelButton",void 0);_.C([_.S(),_.k("design:type",Object)],U$.prototype,"getVideoPreviewCommand",void 0);_.C([_.S(),_.k("design:type",Object)],U$.prototype,"dismissButtonOverrides",void 0);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],U$.prototype,"onServiceRequestCompleted",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],U$);
_.B(U$,"ytd-backstage-video-link-attachment",function(){if(Q3z!==void 0)return Q3z;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Q3z=R},{mode:1});var vdN;var gdD;var ndq;var $z=function(){return _.K.apply(this,arguments)||this};
_.H($z,_.K);$z.prototype.dataChanged=function(){this.active=!1};
$z.prototype.onTap=function(){_.xo(this.hostElement,"yt-select-emoji-suggestion",this.data)};
$z.prototype.identity=function(R){return R};
_.Yh.Object.defineProperties($z.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;if((R=this.data)==null?0:(A=R.image)==null?0:(Y=A.thumbnails)==null?0:(P=Y[0])==null?0:P.url)return R=this.data.image.thumbnails[0].url,R.startsWith("data:image/svg+xml")?fq(R):_.oR(R)}}});
$z.prototype.dataChanged=$z.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],$z.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],$z.prototype,"active",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$z.prototype,"dataChanged",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$z.prototype,"imageSrc",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],$z);
_.B($z,"ytd-emoji-suggestion",function(){if(ndq!==void 0)return ndq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ndq=R},{mode:1});var HNS=/.*([:@#].*?)$/,Xo=function(){var R=_.K.apply(this,arguments)||this;R.suggestions=[];R.suggestionIndex=-1;R.JSC$15734_lastSuggestionRange=null;return R};
_.H(Xo,_.K);_.l=Xo.prototype;_.l.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.l.getSuggestions=function(R){var A=[],Y=dp7(this.emojiManager,R.substr(0,3));if(Y)for(var P in Y)if(P.toLocaleLowerCase().indexOf(R)===0){var E=Y[P];if(E&&E.emojiId){E=xM(this.emojiManager,E.emojiId);var z=void 0,c=void 0,M=void 0,N=void 0,y=((z=E)==null?0:z.isCustomEmoji)?(c=E)==null?void 0:(M=c.shortcuts)==null?void 0:M[0]:(N=E)==null?void 0:N.emojiId;z=void 0;A.push({suggestion:{image:(z=E)==null?void 0:z.image,alt:y,text:P}});if(A.length>=64)break}}return A?A.sort(function(m,T){return T.suggestion.text<
m.suggestion.text?-1:T.suggestion.text===m.suggestion.text?0:1}):null};
_.l.insertSuggestion=function(R){_.xo(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15734_lastSuggestionRange,text:R.alt});this.dropdown.opened=!1};
_.l.updateSuggestionsAtCaret=function(R){this.updateSuggestions(R,this.retrieveTextBeforeRange(R))};
_.l.offsetStartOfRangeBy=function(R,A){R.startOffset>=A&&R.setStart(R.startContainer,R.startOffset-A)};
_.l.updateSuggestions=function(R,A){var Y=this;this.JSC$15734_lastSuggestionRange&&(this.JSC$15734_lastSuggestionRange.detach(),this.JSC$15734_lastSuggestionRange=null);if((A=HNS.exec(A))&&A.length&&(A=A[A.length-1].toLocaleLowerCase(),A.length>2||A===":_")&&(this.offsetStartOfRangeBy(R,A.length),this.JSC$15734_lastSuggestionRange=R,(R=this.getSuggestions(A))&&R.length)){this.suggestions=R;_.RK(this,function(){Y.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(R.length-1);return}this.dropdown.opened=!1};
_.l.onKeyDown=function(R){if(this.dropdown.opened)switch(R.key){case "Escape":this.dropdown.opened=!1;R.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);R.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);R.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),R.preventDefault()}};
_.l.onKeyUp=function(R,A){switch(R.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(A);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(A)}};
_.l.onKeyPress=function(R){R.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),R.preventDefault())};
_.l.changeSuggestionIndex=function(R){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(R+this.suggestions.length)%this.suggestions.length,R=this.dropdownContent.children[this.suggestionIndex],R.active=!0,this.dropdownContent.scrollTop=R.offsetTop)};
_.l.retrieveTextBeforeRange=function(R){var A=R.startContainer;return A&&A.nodeType===Node.TEXT_NODE?A.textContent.substr(0,R.startOffset):""};
Xo.prototype.onKeyPress=Xo.prototype.onKeyPress;Xo.prototype.onKeyUp=Xo.prototype.onKeyUp;Xo.prototype.onKeyDown=Xo.prototype.onKeyDown;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Xo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Array)],Xo.prototype,"suggestions",void 0);_.C([_.S(),_.k("design:type",_.iO)],Xo.prototype,"emojiManager",void 0);_.C([_.S(),_.k("design:type",Number)],Xo.prototype,"verticalSuggestionsOffset",void 0);
_.C([_.nG("#dropdown"),_.k("design:type",Object)],Xo.prototype,"dropdown",void 0);_.C([_.nG("#dropdown-content"),_.k("design:type",HTMLDivElement)],Xo.prototype,"dropdownContent",void 0);_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],Xo.prototype,"onKeyDown",null);_.C([_.Qa("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent,Range]),_.k("design:returntype")],Xo.prototype,"onKeyUp",null);
_.C([_.Qa("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],Xo.prototype,"onKeyPress",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-emoji-input"})],Xo);
_.B(Xo,"ytd-emoji-input",function(){if(gdD!==void 0)return gdD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gdD=R},{mode:2});var rWS;var Ss=function(){var R=_.K.apply(this,arguments)||this;R.hasMaxOptions=!1;return R};
_.H(Ss,_.K);_.l=Ss.prototype;_.l.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.l.setPrefilledChoices=function(R){var A=this;this.set("pollOptions",[]);var Y;for(Y=0;Y<Math.min(R.length,this.data.maxPollOptions);Y++)this.push("pollOptions",R[Y].substring(0,this.data.maxPollOptionChars));for(;Y<this.data.minPollOptions;Y++)this.push("pollOptions","");this.hasMaxOptions=Y>=this.data.maxPollOptions;_.RK(this,function(){for(var P=A.pollOptions,E=_.Mo(A.hostElement).querySelectorAll(".poll-option-input"),z=0;z<E.length;z++)E[z].value=P[z]})};
_.l.focusChanged=function(){_.ya(this.hostElement)};
_.l.onInput=function(){var R=this;_.u5(this,"onInput",function(){R.isValid()?_.xo(R.hostElement,"yt-commentbox-post-enable"):_.xo(R.hostElement,"yt-commentbox-post-disable")},300)};
_.l.setPollOptions=function(){var R=[],A,Y=((A=this.data)==null?0:A.minPollOptions)?this.data.minPollOptions:0;for(A=0;A<Y;A++)R.push("");return R};
_.l.addPollOption=function(){var R=this;_.xo(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.fn.addLowPriorityJob(function(){var A;(A=_.Mo(R.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||A.focus()})};
_.l.onRemovePollOption=function(R){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.xo(this.hostElement,"yt-poll-attachment-dismiss")):(R=this.repeat.indexForElement(R.target.parentNode),R!==null&&(this.splice("pollOptions",R,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.xo(this.hostElement,"yt-commentbox-post-enable"))))};
_.l.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.l.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var R=0,A=this.pollOptions.length;R<A;R++)if(this.pollOptions[R].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.l.getPollOptions=function(){return this.pollOptions};
_.l.setPollOptionsFromInputs=function(){for(var R=_.Mo(this.hostElement).querySelectorAll(".poll-option-input"),A=0;A<R.length;A++)this.pollOptions[A]=R[A].value.trim()};
_.l.clearPollOptions=function(){var R=_.Mo(this.hostElement).querySelectorAll(".poll-option-input");R=_.x(R);for(var A=R.next();!A.done;A=R.next())A.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.l.getSimpleString=function(R){return _.R4(R)};
_.l.updateValueFromBinding=function(R){if(R.target&&this.pollOptions){var A=Array.from(_.Mo(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(R.target);if(A>=0){var Y;this.pollOptions[A]=(Y=R.detail.value)!=null?Y:"";this.notifyPath("pollOptions."+A)}}};
Ss.prototype.dataChanged=Ss.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ss.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ss.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Array)],Ss.prototype,"pollOptions",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ss.prototype,"hasMaxOptions",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ss.prototype,"enableCreationBox",void 0);
_.C([_.nG("#repeat"),_.k("design:type",b5)],Ss.prototype,"repeat",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ss.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-poll-attachment"})],Ss);
_.B(Ss,"ytd-poll-attachment",function(){if(rWS!==void 0)return rWS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return rWS=R},{mode:2});var Ds7;var UsS;var $sA;var X4S;var Iw=function(){return _.K.apply(this,arguments)||this};
_.H(Iw,_.K);_.Yh.Object.defineProperties(Iw.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Iw.prototype,"rendererBehaviors",void 0);_.C([_.S(),_.k("design:type",Object)],Iw.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Iw.prototype,"focused",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("focused"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iw.prototype,"ariaSelected",null);_.C([_.CG({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],Iw);
_.B(Iw,"yt-user-mention-suggestion-renderer",function(){if(X4S===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;$sA===void 0&&($sA=document.createElement("template"));var P=$sA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);X4S=R}R=X4S;return R},{mode:2});var Sn7;var IQz;var K5=function(){var R=_.K.apply(this,arguments)||this;R.focusedSuggestionIndex=-1;return R};
_.H(K5,_.K);_.l=K5.prototype;_.l.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.l.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.l.setFocusedSuggestionIndex=function(R){!this.data||!this.data.suggestions||R<0||R>=this.data.suggestions.length||(this.focusedSuggestionIndex=R,R=this.getSuggestionId(R),this._setFocusedSuggestionId(R))};
_.l.advanceSuggestion=function(R){this.focusedSuggestionIndex===-1||R!==-1&&R!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+R),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.l.ensureSuggestionVisible=function(R){R=this.getSuggestionId(R);R=_.Mo(this.hostElement).querySelector("[id="+R+"]");R!=null&&(R.offsetTop<this.hostElement.scrollTop?R.scrollIntoView(!0):R.offsetTop+R.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&R.scrollIntoView(!1))};
_.l.getSuggestionId=function(R){return"user-mention-suggestion-"+R};
_.l.onSuggestionTap=function(R){var A=_.n(R.model.item,wdz);this.ytRendererBehavior.logExplicitClick(A);_.xo(this.hostElement,"yt-user-mention-suggestion-selected",{data:A,index:R.model.index})};
_.l.onSuggestionMouseMove=function(R){R.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(R.model.index)};
_.l.isSuggestionFocused=function(R,A){return R===A};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("focused-suggestion-id-changed",this.focusedSuggestionId))};
K5.prototype.focusedSuggestionIdChangedForBinding=K5.prototype.focusedSuggestionIdChangedForBinding;K5.prototype.onDomChange=K5.prototype.onDomChange;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],K5.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],K5.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],K5.prototype,"focusedSuggestionIndex",void 0);_.C([_.S({readOnly:!0}),_.k("design:type",String)],K5.prototype,"focusedSuggestionId",void 0);
_.C([_.Qa("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],K5.prototype,"onDomChange",null);_.C([_.vZ("focusedSuggestionId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],K5.prototype,"focusedSuggestionIdChangedForBinding",null);_.C([_.CG({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],K5);
_.B(K5,"yt-user-mention-suggestions-dropdown",function(){if(IQz===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Sn7===void 0&&(Sn7=document.createElement("template"));var P=Sn7;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);IQz=R}R=IQz;return R},{mode:2});var WR=function(){var R=_.K.apply(this,arguments)||this;R.suggestionsResponse=null;R.activeMention=null;R.selectionChangeListener=R.onSelectionChange.bind(R);R.handlesEnabled=_.v("enable_handles_in_mention_suggest_posts");R.handlesInMentionSuggestionsEnabled=_.v("handles_in_mention_suggest_posts");R.zeroPrefixMentionSuggestionEnabled=_.v("enable_zero_prefix_mention_suggestion_web");R.pendingQuery=null;R.flowNonce=null;return R};
_.H(WR,_.K);_.l=WR.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.l.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.l.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.l.hasSuggestions=function(R){return!!(R&&R.suggestions&&R.suggestions.length>0)};
_.l.onInput=function(){var R=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var A=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),Y=this.activeMention.JSC$11334_getText().slice(-1)===" ",P=this.activeMention.JSC$11334_getText().slice(-2,-1)===" ",E="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11334_getText().slice(-2,
-1))>=0;E=this.zeroPrefixMentionSuggestionEnabled&&E;if(this.activeMention.isCollapsed()||(A||P||E)&&Y)this.cancelActiveMention();else{var z=this.activeMention.JSC$11334_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.u5(this,"requestSuggestions",function(){R.requestSuggestions(z)},100)}}}};
_.l.onServiceRequestSent=function(R){R.stopPropagation()};
_.l.onServiceRequestCompleted=function(R){R.stopPropagation();R=R.detail.data;R.query&&(!this.pendingQuery||this.pendingQuery!==R.query)||!this.zeroPrefixMentionSuggestionEnabled&&R.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=R,this.hasSuggestions(R)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.l.onServiceRequestError=function(R){R.stopPropagation()};
_.l.onUserMentionSuggestionSelected=function(R){this.selectSuggestion(R.detail.data,R.detail.index)};
_.l.onSelectionChange=function(){if(this.activeMention){var R=_.Or(),A=this.activeMention.JSC$11334_containsRange(R);R=R&&this.containsHelper(this.dropdown,R.getContainer());A||R||this.cancelActiveMention()}};
_.l.containsHelper=function(R,A){var Y;if(((Y=window.ShadyDOM)==null?void 0:Y.noPatch)===!0)return R.contains(A);for(;A;){if(A===R)return!0;A=A instanceof ShadowRoot?A.host:A.parentNode}return!1};
_.l.maybeStartSuggest=function(){var R=_.Or();if(R&&R.isCollapsed()){var A=R.JSC$11334_getStartNode(),Y=R.JSC$11334_getStartOffset();if(A instanceof Text&&!(Y<1)){var P=A.textContent;!(P=P&&P.charAt(Y-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(P)<0||(this.activeMention=_.wk(A,Y-1,R.JSC$11334_getEndNode(),R.JSC$11334_getEndOffset()),this.flowNonce=bP(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.l.updateActiveMention=function(){if(this.activeMention){var R=_.Or();R&&R.isCollapsed()&&(this.activeMention=_.wk(this.activeMention.JSC$11334_getStartNode(),this.activeMention.JSC$11334_getStartOffset(),R.JSC$11334_getEndNode(),R.JSC$11334_getEndOffset()))}};
_.l.requestSuggestions=function(R){if(this.activeMention){var A={suggestions_query:R};this.pendingQuery=R;_.sC(this.hostElement,[this.suggestionsEndpoint,A])}};
_.l.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()};
_.l.focusPreviousSuggestion=function(R){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),R.preventDefault())};
_.l.focusNextSuggestion=function(R){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),R.preventDefault())};
_.l.selectFocusedSuggestion=function(R){if(this.hasSuggestions(this.suggestionsResponse)){var A=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.n(A,wdz)&&(this.selectSuggestion(_.n(A,wdz),this.dropdown.focusedSuggestionIndex),R.preventDefault())}};
_.l.selectSuggestion=function(R,A){if(R){var Y=this.activeMention;if(Y){var P=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&R.handle?_.CF(P,"\u00a0\u2068@"+R.handle+"\u2069\u00a0"):this.handlesEnabled?_.CF(P,"\u00a0"+R.displayName+"\u00a0"):_.CF(P,"\u00a0@"+R.displayName+"\u00a0");wZ(P,"/channel/"+R.channelId);P.classList.add("yt-formatted-string","yt-simple-endpoint");P.setAttribute("spellcheck","false");Y.isCollapsed()||Y.JSC$11334_removeContents();Y.insertNode(P,!0);R=document.createTextNode(" ");
P.parentNode.insertBefore(R,P.nextSibling);window.getSelection().collapse(R,1);A={suggestionSelected:{suggestionIndex:A}};if(this.zeroPrefixMentionSuggestionEnabled){var E;A.suggestionSelected.isZeroPrefix=((E=this.suggestionsResponse)==null?void 0:E.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",A);this.cancelActiveMention();_.xo(this.hostElement,"yt-mention-inserted")}}};
_.l.getPositionTarget=function(R){return R&&R.getBrowserRangeObject()};
_.l.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.l.onFocusedSuggestionIdChanged=function(R){var A=_.G1l(this.hostElement)[0];A&&(R.detail.value?A.setAttribute("aria-activedescendant",R.detail.value):A.removeAttribute("aria-activedescendant"))};
_.l.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.l.logGELEvent=function(R,A){R={eventType:R,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};A&&(R=Object.assign(R,A));_.Wj("userMentionAutoCompleteBoxEvent",R)};
WR.prototype.onDomChange=WR.prototype.onDomChange;WR.prototype.onUserMentionSuggestionSelected=WR.prototype.onUserMentionSuggestionSelected;WR.prototype.onServiceRequestError=WR.prototype.onServiceRequestError;WR.prototype.onServiceRequestCompleted=WR.prototype.onServiceRequestCompleted;WR.prototype.onServiceRequestSent=WR.prototype.onServiceRequestSent;WR.prototype.onInput=WR.prototype.onInput;_.C([_.U(_.Kr),_.k("design:type",Object)],WR.prototype,"ironA11yKeysBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],WR.prototype,"suggestionsEndpoint",void 0);_.C([_.S(),_.k("design:type",Object)],WR.prototype,"suggestionsResponse",void 0);_.C([_.S(),_.k("design:type",Object)],WR.prototype,"activeMention",void 0);_.C([_.nG("#dropdown"),_.k("design:type",Object)],WR.prototype,"dropdown",void 0);_.C([_.nG("#iron-dropdown"),_.k("design:type",Object)],WR.prototype,"ironDropdown",void 0);
_.C([_.Qa("input"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],WR.prototype,"onInput",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WR.prototype,"onServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WR.prototype,"onServiceRequestCompleted",null);
_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WR.prototype,"onServiceRequestError",null);_.C([_.Qa("yt-user-mention-suggestion-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WR.prototype,"onUserMentionSuggestionSelected",null);
_.C([_.Qa("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],WR.prototype,"onDomChange",null);_.C([_.CG({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],WR);
_.B(WR,"yt-user-mention-autosuggest-input",function(){if(UsS===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Ds7===void 0&&(Ds7=document.createElement("template"));var P=Ds7;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);UsS=R}R=UsS;return R},{mode:2});var js=null;
_.jz({is:"ytd-commentbox",_template:function(){if(vdN!==void 0)return vdN;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="EXPAND" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return vdN=R},
behaviors:[_.n4u.YtHostElementBehavior,_.Kr,_.fH.YtActionHandlerBehavior,_.iF.YtComponentBehavior,_.HX.YtRendererstamperBehavior,_.Tmf.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(R,A){return _.mc(R.entities,"aadcGuidelinesStateEntityPayload",A)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(R,A){return _.mc(R.entities,"commentboxStateEntity",A)},
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 _.cw}},
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:_.v("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.v("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",_.T2(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(R){this.fire(R?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(R){this.set("submitButtonDisabled",void 0);this.clear();R&&this.computeIsEmojiButtonDisplayed_(R)&&(R=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&R.updateEmojiCategories()},
observePrefilledImage_:function(R,A,Y){this.isValidPrefilledImage_(R,A,Y)&&(this.prefilledAttachment_="image",this.prefilledImageData_=A,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(R,A){this.isValidPrefilledVideo_(R,A)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(R){R&&R.pollData&&R.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(R.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Hy();this.focus()},
detached:function(){document.removeEventListener("tap",_.T2(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(R){R=R.detail;R=R.isCustomEmoji?R.shortcuts[0]:R.emojiId;var A=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(A,R);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var R=_.Or();if(R){R=R.getBrowserRangeObject();for(var A=R.commonAncestorContainer;A;){if(A===this.getEditableTextArea_())return R;A=A.parentNode}}R=this.getEditableTextArea_();R=_.tS(R,R.childNodes.length);R.select();return R.getBrowserRangeObject()},
insertTextWithEmojis_:function(R,A,Y){(A=this.emojiManager.createDocumentFragment(A,!0,!1,Y===void 0?!0:Y))&&A.childNodes.length!==0&&(R.collapsed||R.deleteContents(),Y=A.lastChild,R.insertNode(A),_.G9A(Y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var R=_.Or();if(R){var A=R.JSC$11334_getStartNode(),Y=R.JSC$11334_getEndNode();if(v$V(A)&&v$V(Y)){var P=R.JSC$11334_getStartOffset(),E;if(_.Mc&&A.nodeType===Node.ELEMENT_NODE&&(E=_.kN7(A)))_.tS(E,0).select();else{E=lx(A)?A:_.GE(A,lx);var z=lx(Y)?Y:_.GE(Y,lx);if(E||z)if(R.isCollapsed()){if(A.nodeType===Node.TEXT_NODE){R=!0;P===A.length&&(R=!1);if(js==="end"||js==="right")R=!1;A=A.parentNode;R=[].concat(_.py(A.parentNode.childNodes)).indexOf(A)+(R?0:1);_.tS(A.parentNode,
R).select()}}else E?E.previousSibling&&E.previousSibling.length>0?_.wk(Y,R.JSC$11334_getEndOffset(),E.previousSibling,E.previousSibling.length-1).select():(A=document.createTextNode("\u200b"),E.parentNode.insertBefore(A,E),_.wk(Y,R.JSC$11334_getEndOffset(),A,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.wk(A,R.JSC$11334_getStartOffset(),z.nextSibling,1).select():(Y=document.createTextNode("\u200b"),z.parentNode.insertBefore(Y,z.nextSibling),_.wk(A,R.JSC$11334_getStartOffset(),Y,Y.length).select()));
js=null}}else js=null}else js=null},
leftKeyPressed_:function(){js="left"},
rightKeyPressed_:function(){js="right"},
endKeyPressed_:function(){js="end"},
maybeDeleteChip_:function(){var R=U3u(!0);if(R){var A=_.Or(),Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();_.hS(Y,A,R,R.childNodes.length).select()}},
maybeBackspaceChip_:function(){var R=U3u(!1);if(R){var A=_.Or(),Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();_.hS(Y,A,R,0).select()}},
maybeBackspaceChipWordMode_:function(R){var A=_.Or();if(A.isCollapsed()){var Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();var P=$3J(Y,A,!0);P&&(_.hS(Y,A,P,0).select(),document.execCommand("delete"),R.preventDefault(),R.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(R){var A=_.Or();if(A.isCollapsed()){var Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();var P=$3J(Y,A,!1);P&&(_.hS(Y,A,P,P.childNodes.length).select(),document.execCommand("delete"),R.preventDefault(),R.stopImmediatePropagation())}},
onTap_:function(R){if(!R.defaultPrevented&&(R.currentTarget.tagName==="YTD-COMMENTBOX"&&lx(R.target)&&R.preventDefault(),this.isEmojiPickerDisplayed)){var A=this.$$("#emojis"),Y=this.$$("#emoji-button"),P=this.getEditableTextArea_();if((R=R.path?R.path:R.composedPath&&R.composedPath())&&!R.includes(A)&&!R.includes(P)&&!R.includes(Y))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(R,A,Y){return R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&A!==void 0&&A.encryptedBlobId!==null&&A.sourceExternalVideoId!==null&&Y!==void 0&&Y.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(R,A){return R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!A&&!!A.videoRenderer&&!!A.videoRenderer.videoId},
isValidPrefilledAttachment_:function(R,A,Y){return this.isValidPrefilledImage_(R,A,Y)||this.isValidPrefilledVideo_(R,Y)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.v("enable_multi_image_post_creation")){var R=this.$$("ytd-backstage-multi-image-select-renderer");R&&R.hasImages()&&R.cancel()}else(R=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&R.cancel();(R=this.$["poll-attachment"])&&this.hasPoll_&&R.clearPollOptions();(R=this.$["image-poll-attachment"])&&this.hasImagePoll_&&R.resetPollOptions();(R=this.$["quiz-attachment"])&&this.hasQuiz_&&R.resetQuizOptions();
(R=this.$["video-link-attachment"])&&this.hasVideo_&&R.cancel();(R=this.$["access-restrictions-selector"].firstElementChild)&&R.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 _.Mo(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Mo(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(R,A){R=n$k(R,this.emojiManager,A).cloneNode(!0);for(A=R.firstChild;A;)if(A.nodeType!==1)A=A.nextSibling;else switch(A.tagName){case "BR":var Y=_.bK();_.LSz(Y,A);A=Y.nextSibling;break;case "DIV":(Y=A.lastChild)&&A.nextSibling&&_.Bs(_.bK(),Y);A.previousSibling&&(A.previousSibling.nodeType===1||A.previousSibling.nodeType===3&&!A.previousSibling.textContent.endsWith("\n"))&&_.Fw(_.bK(),A);Y&&Y.nodeName==="BR"&&_.UU(Y);Y=A;A.hasChildNodes()?(A=A.firstChild,
_.dGD(Y)):(A=A.nextSibling,_.UU(Y));break;default:A=A.nextSibling}return XB6(R)},
onAddImageError_:function(R){R.stopPropagation();this.errorMessage_=_.dF(R.detail)},
setTextAreaValue_:function(R){R||(R="");var A=this.getEditableFormattedString_();A.text="";this.getEditableTextArea_().innerText="";typeof R==="string"&&(R={runs:[{text:R}]});A.text=R},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();js=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var R=this.getEditableTextArea_();R&&(_.tS(R,R.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.a1("HTML_DIR")==="rtl"){var R=this.getEditableTextArea_(),A=this.getTextAreaValue()!==""?"auto":"rtl";R.setAttribute("dir",A)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var R;return U2b((R=this.$["quiz-attachment"])==null?void 0:R.getExplanationText())||U2b(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var R=null;if(this.isEmojiButtonDisplayed){var A=this.getInputRange_();A&&(R=this.emojiInput.retrieveTextBeforeRange(A))}this.insertText_(R,!0);this.updateCharCount_();this.setSubmitButton_();R=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=R.scrollHeight>R.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var R=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:R})},
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(R){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(R)},
onPasteEmoji_:function(R){R.preventDefault();R.stopImmediatePropagation();R=R.clipboardData.getData("text/plain");this.insertText_(R,!1,!1)},
insertText_:function(R,A,Y){A=A===void 0?!1:A;Y=Y===void 0?!0:Y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&R){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(A&&this.emojiInput.offsetStartOfRangeBy(P,R.length),this.insertTextWithEmojis_(P,R,Y),g$l(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,R),this.updateSuggestionOffset_(P)))}},
setSubmitButton_:function(){if(this.data){var R=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",A=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(R||A){var Y=this.getTextAreaValue().trim();A=Y===this.previousText_;Y=!Y||this.aboveCharLimit_;R&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(Y=this.aboveCharLimit_);this.submitButtonDisabled=
A||Y||!this.getTextLength();R&&_.v("enable_post_scheduling")&&(this.submitButtonDisabled=A&&!this.scheduledPublishTimeSec_||Y)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.R4,computeCreationBoxClass_:function(R){return R?"focused":"not-focused"},
computeFooterMessageClass_:function(R,A){return A?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(R,A){return A?A:R},
computeFooterMessageHidden_:function(R,A){return!A&&!R},
computePlaceholderText_:function(R,A,Y){return(Y==="video"||Y==="image")&&(R==null?0:R.prefilledPlaceholderText)?R==null?void 0:R.prefilledPlaceholderText:A==="poll"||A==="image-poll"?R==null?void 0:R.pollPostPlaceholderText:A==="quiz"?R==null?void 0:R.quizPostPlaceholderText:A==="image"?R==null?void 0:R.imagePostPlaceholderText:R==null?void 0:R.placeholderText},
computeHideAttachmentButtons_:function(R,A,Y,P){return R===void 0?!1:P&&this.getSimpleString(P)===this.getSimpleString(R.rateLimitErrorMessage)?!0:A!=="none"||Y!=="none"||!R.videoLinkButton&&!R.pollButton&&!R.imagePollButton&&!R.quizButton&&!R.imageButton},
computeHideDismissableAttachment_:function(R){return R!=="image"&&R!=="video"},
computeHasVideo_:function(R){return R==="video"},
computeHasImage_:function(R){return R==="image"},
computeHasPoll_:function(R){return R==="poll"},
computeHasImagePoll_:function(R){return R==="image-poll"},
computeHasQuiz_:function(R){return R==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(R){return R&&R.backstageAttachment?R.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!R.backstageAttachment.quizRenderer&&!R.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(R){if(this.isValidPrefilledAttachment_(R.purpose,R.prefilledImageData,R.backstageAttachment))return R.backstageAttachment},
computeEditAttachment_:function(R){if(this.computePrefilledContent_(R)===void 0)return R.backstageAttachment},
computeAuthorThumbnailDimension_:function(R,A){return R&&!A?24:40},
computeImageUploadEndpoint_:function(R){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",R)},
computeRateLimitErrorCommands_:function(R){var A,Y;return R==null?void 0:(A=R.advancedTierFeatures)==null?void 0:(Y=A.rateLimit)==null?void 0:Y.rateLimitCommands},
computeIsBackstageComment_:function(R){return!(!R||R!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(R){return this.get("submitButton.buttonRenderer.serviceEndpoint",R)||this.get("replyButton.buttonRenderer.serviceEndpoint",R)||this.get("postButton.buttonRenderer.serviceEndpoint",R)},
computeSubmitButtonOverride:function(){if(_.v("web_modern_buttons")){var R,A;return{segmentedPosition:this.dropdownSchedulePanel_||!((R=this.data)==null?0:(A=R.postOptionsMenu)==null?0:A.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.v("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(R,A){R=this.get("submitButton.buttonRenderer",R)||this.get("replyButton.buttonRenderer",R)||this.get("postButton.buttonRenderer",R);A&&(R=A);R&&(R=Object.assign({},R),R.serviceEndpoint=void 0,R.isDisabled=this.submitButtonDisabled);return R},
computeHasExternalLinksAccess_:function(R){if(_.v("enable_rfa_external_links")){var A,Y,P;return(P=R==null?void 0:(A=R.advancedTierFeatures)==null?void 0:(Y=A.externalLinks)==null?void 0:Y.allowExternalLinks)!=null?P:!0}return!0},
computeIsEmojiButtonDisplayed_:function(R){return R.emojiButton&&R.emojiPicker&&R.emojiPicker.emojiPickerRenderer&&R.emojiPicker.emojiPickerRenderer.categories?R.emojiPicker.emojiPickerRenderer.categories.find(function(A){return A.emojiPickerCategoryRenderer?A.emojiPickerCategoryRenderer.emojiIds&&A.emojiPickerCategoryRenderer.emojiIds.length>0:A.emojiPickerUpsellCategoryRenderer?A.emojiPickerUpsellCategoryRenderer.emojis&&A.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(R){return R.charLimit?R.charLimit:null},
computeDropdownSchedulingPanel_:function(R,A){if(R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&A)return A},
computeInlineSchedulingPanel_:function(R,A){if(R==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&A)return A},
computeHideAuthorThumbnail_:function(R,A){return R||this.computeUseIdentityChip_(A)},
computeHideIdentityChipRenderer_:function(R,A){return R||!this.computeUseIdentityChip_(A)},
computeUseIdentityChip_:function(R){return!!R&&!!R.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(R){var A,Y,P,E;(R==null?0:(A=R.detail)==null?0:(Y=A.endpoint)==null?0:Y.ypcGetOffersEndpoint)||(R==null?0:(P=R.detail)==null?0:(E=P.endpoint)==null?0:E.ypcOffersEndpoint)?(R.stopPropagation(),_.sC(this,[R.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",R)&&(R.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(R){this.addedAttachment="video";this.selectedVideoId_=R.detail.videoId},
commentboxStateEntityChanged_:function(R){var A=this;(R==null?void 0:R.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(R==null?void 0:R.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){A.focus()})},
onYtServiceRequestSent_:function(R,A){if(A.actions)for(R=_.x(A.actions),A=R.next();!A.done;A=R.next())A.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(R){this.isLoading=!1;var A=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",R),Y,P,E,z=R==null?void 0:(Y=R.detail)==null?void 0:(P=Y.data)==null?void 0:(E=P.actionResult)==null?void 0:E.commentboxStateEntityKey;if(A)this.errorMessage_=A;else if(z){var c;this.dismissData_=R==null?void 0:(c=R.detail)==null?void 0:c.data;this.commentboxStateKey_=z}else{this.clear();var M;this.fire("yt-commentbox-dismiss",R==null?void 0:(M=R.detail)==
null?void 0:M.data)}},
onYtServiceRequestError_:function(R){R.stopPropagation();this.isLoading=!1;var A,Y;if(((A=this.data)==null?void 0:A.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((Y=this.data)==null?void 0:Y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(A=this.get("detail.error.args",R)||[],A.length>1&&A[1].message){this.handlePostsServiceRequestError_(A[1].message);return}(R=this.get("detail.error.message",R))?this.errorMessage_=this.data.errorMessage||_.dF(R):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(R){if(_.v("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var A=_.x(this.rateLimitErrorCommands),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,Y.errorLabel===R){_.vc(Y.command,this.hostElement);return}this.errorMessage_=_.dF(R)},
submitIfNotBackstagePost_:function(R){if(!this.isBackstagePost)this.onSubmit_(R)},
onSubmit_:function(R){var A=this,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b;return _.O(function(p){switch(p.nextAddress){case 1:R.stopPropagation();if(!A.serviceEndpoint||!A.isValidInput_())return p.return();if(A.shouldShowPostAadcNotice_())return A.showPostAadcNotice_(),p.return();if(A.shouldShowCommentAadcNotice_())return A.showCommentAadcNotice_(),p.return();if(!(A.$$("ytd-backstage-multi-image-select-renderer")&&A.hasImage_&&_.v("enable_multi_image_post_creation"))){p.jumpTo(2);break}Y=A.$$("ytd-backstage-multi-image-select-renderer");
return p.yield(Y.getAllUploadStatuses(),3);case 3:P=p.yieldResult;if(!P)return p.return();E=_.x(P);for(z=E.next();!z.done;z=E.next())if(c=z.value,c.encryptedBlobId===void 0)return A.isLoading=!1,N=M=void 0,A.errorMessage_=(N=(M=A.imageUploadEndpoint_)==null?void 0:M.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?N:null,p.return();return p.return(A.submitForm_(void 0,void 0,void 0,void 0,Y.images,A.taggedVideoId_));case 2:if(!A.hasImagePoll_||!A.$["image-poll-attachment"]){p.jumpTo(4);
break}return p.yield(A.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:y=p.yieldResult;if(!y)return p.return();m=_.x(y);for(T=m.next();!T.done;T=m.next())if(Q=T.value,!Q.encryptedBlobId)return A.isLoading=!1,g=void 0,A.errorMessage_=(g=A.data.errorMessage)!=null?g:null,p.return();case 4:I=(r=A.$$("ytd-backstage-image-select-renderer"))&&r.uploadPromise(),b=A.getSharedPostId_(),I?I.then(function(){A.submitForm_.apply(A,_.py(_.Ge.apply(0,arguments)))}).catch(function(h){A.isLoading=!1;
A.errorMessage_=_.dF(h.message)}):A.selectedVideoId_?A.submitForm_(void 0,A.selectedVideoId_):A.prefilledAttachment_==="image"?A.submitForm_(A.prefilledImageData_.encryptedBlobId,void 0,void 0,A.prefilledImageData_.sourceExternalVideoId,void 0,A.taggedVideoId_):A.prefilledAttachment_==="video"?A.submitForm_(void 0,A.data.backstageAttachment.videoRenderer.videoId):b?A.submitForm_(void 0,void 0,b):A.taggedVideoId_!==void 0?A.submitForm_(void 0,void 0,void 0,void 0,void 0,A.taggedVideoId_):A.submitForm_(),
_.XH(p)}})},
openSchedulingPanel:function(R){R&&R.scheduleButton&&R.scheduleButton.buttonRenderer&&(this.scheduleButton_=R.scheduleButton.buttonRenderer);R&&R.dateTimePicker&&this.set("data.schedulingDateTimePicker",R.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(R){R.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(R){R.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(R){R.stopPropagation();R.detail.alertMessage&&(this.alertMessage_=R.detail.alertMessage)},
onImageSelected_:function(R){R.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(R){R.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(R){R.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(R.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(R){R.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(R){var A=this.$["video-link-attachment"];A&&A.onLaunchVideoPicker(R)},
onAttachmentDismiss_:function(R){R.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"&&_.v("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.v("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 R;if(this.addedAttachment==="image-poll"&&((R=this.$["image-poll-attachment"])==null||!R.isValid()))return!1;var A;if(this.addedAttachment==="quiz"&&((A=this.$["quiz-attachment"])==null||!A.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;R=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(R=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")R=!0;return R||!!this.getTextAreaValue().trim()},
submitForm_:function(R,A,Y,P,E,z){var c=this.getTextAreaValue().trim(),M={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c===this.previousText_&&(c=void 0);c!==void 0&&(M.comment_text=c);this.isLoading=!0;z!=void 0&&(M.tagged_video_id=z);R?(M.image_blob_id=R,this.imagePreviewCoordinates_&&(M.image_preview_coordinates=this.imagePreviewCoordinates_)):A?M.attached_video_id=A:Y?M.shared_post_id=Y:E&&E.length>0&&(M.images_data=E.map(function(N){return{encryptedBlobId:N.encryptedBlobId,
previewCoordinates:N.previewCoordinates}}));
P&&(M.source_video_id=P);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(M.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(M.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(M.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.v("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(M.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.v("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(M.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.sC(this,[this.serviceEndpoint,M])},
onIsInputFocusChanged_:function(R,A){R?this.fire("yt-autonav-pause-focus"):A!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(R){var A=this.getEditableTextArea_();[].concat(_.py(R.dataTransfer.items)).forEach(function(Y){Y.kind==="string"&&Y.type.match("^text/plain")&&Y.getAsString(function(P){A.appendChild(document.createTextNode(P))})});
R.preventDefault()},
preventDefault_:function(R){R.preventDefault()},
onSuggestionInsert_:function(R){this.insertTextWithEmojis_(R.detail.range,R.detail.text)},
onEmojiSuggestionClick_:function(R){this.emojiInput.insertSuggestion(R.detail)},
computeSubmitButtonClass_:function(R,A){return!A||R?"":"with-options"},
updateSuggestionOffset_:function(R){if(this.emojiInput&&_.Mo(this.emojiInput).querySelector("#dropdown")){var A=this.getEditableTextArea_().getBoundingClientRect().bottom,Y=R.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(A-Y)+5;A=this.getEditableTextArea_().getBoundingClientRect().left;R=R.getBoundingClientRect().left-A;_.Mo(this.emojiInput).querySelector("#dropdown").style.marginLeft=R+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(R){if(_.v("enable_post_scheduling")&&this.data&&this.data.purpose){R=R.detail;if(Math.floor(Date.now()/1E3)>=R)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var A=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(A)||A!==R?this.scheduledPublishTimeSec_=R:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=R;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var R=["image-button","image-poll-button","poll-button"];_.v("enable_quiz_creation")&&R.push("quiz-button");_.v("auto_convert_posts_video_tag")||R.push("video-link-button");return R},
getButtonRenderer:function(R,A){if(R)switch(A){case "video-link-button":var Y;return((Y=R.videoLinkButton)==null?void 0:Y.buttonRenderer)||void 0;case "image-button":var P;return((P=R.imageButton)==null?void 0:P.buttonRenderer)||void 0;case "poll-button":var E;return((E=R.pollButton)==null?void 0:E.buttonRenderer)||void 0;case "image-poll-button":var z;return((z=R.imagePollButton)==null?void 0:z.buttonRenderer)||void 0;case "quiz-button":var c;return((c=R.quizButton)==null?void 0:c.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var R;return(R=this.data)==null||!R.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var R,A;return!((R=this.data)==null||!R.openAadcDialog)&&!((A=this.aadcGuidelinesState_)==null||!A.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.a1("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var R;((R=this.data)==null?0:R.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Cn("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(R){R.clickTrackingParams&&_.rU().clickCommand(R);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.OC(this,"yt-close-popup-action")},
onHideIdentityChip:function(R){var A;this.set("data.placeholderText",(A=R.hideIdentityChipAction)==null?void 0:A.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var bW=function(){var R=_.K.apply(this,arguments)||this;R.isOpen=!1;R.modern=_.v("web_modern_buttons");R.roundedContainer=!0;R.dropdownButtonOverride=_.v("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;R.inPopupContainer=!1;R.isCommentboxLoading=!1;var A=["image-button","image-poll-button","poll-button"];_.v("enable_quiz_creation")&&A.push("quiz-button");_.v("auto_convert_posts_video_tag")||A.push("video-link-button");R.attachmentButtonIds=A;R.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 R};
_.H(bW,_.K);_.l=bW.prototype;_.l.computeButtonOverride=function(){var R;return((R=this.data)==null?0:R.postOptionsMenu)&&_.v("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.l.configureRendererStamper=function(){var R={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.v("auto_convert_posts_video_tag")||(R["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return R};
_.l.ready=function(){var R=this,A=_.Mo(this.hostElement).querySelector("#placeholder-area"),Y=function(P){R.onOpen(P)};
A.addEventListener("tap",Y);A.addEventListener("keypress",Y)};
_.l.showButtonEduTooltip=function(){var R,A,Y,P,E,z,c;if(_.v("enable_quiz_creation")&&((R=this.data)==null?0:(A=R.quizButton)==null?0:(Y=A.buttonRenderer)==null?0:(P=Y.hint)==null?0:(E=P.hintRenderer)==null?0:(z=E.content)==null?0:(c=z.bubbleHintRenderer)==null?0:c.text)&&(_.gR.getInstance(),R=n1(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(R==null?void 0:
R.length)>0)){this.ytComponentBehavior.resolveCommand(R[0],{form:{element:this.quizButton}});return}var M;if((M=this.data)==null?0:M.imagePollButtonTooltip)if(_.gR.getInstance(),M=n1(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(M==null?void 0:M.length)>0){this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.imagePollButton}});return}var N;_.v("enable_multi_image_post_creation")&&
((N=this.data)==null?0:N.multiImageButtonTooltip)&&(_.gR.getInstance(),N=n1(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(N==null?void 0:N.length)>0&&this.ytComponentBehavior.resolveCommand(N[0],{form:{element:this.imageButton}}))};
_.l.onCreatePollAction=function(R){_.n(R,HAD)&&(this.JSC$15789_commentbox.addedAttachment="poll",this.openDialog())};
_.l.onAddVideoLinkAction=function(R){if(_.n(R,Q88))this.JSC$15789_commentbox.onAddVideoLink(R)};
_.l.onShowSchedulingPanelCommand=function(R){(R=_.n(R,wsE))&&this.openSchedulingPanel(R)};
_.l.onCreateImagePollCommand=function(R){_.n(R,aXA)&&(this.JSC$15789_commentbox.openImagePollComponent(),this.openDialog())};
_.l.onCreateQuizCommand=function(R){_.n(R,CoE)&&(this.JSC$15789_commentbox.openQuizComponent(),this.openDialog())};
_.l.openSchedulingPanel=function(R){_.v("enable_post_scheduling")&&(this.openDialog(),this.JSC$15789_commentbox.openSchedulingPanel(R))};
_.l.onCreateCommentAction=function(R){this.get("createCommentAction.contents",R)&&(this.JSC$15789_commentbox.clear(),this.closeDialog())};
_.l.onOpen=function(R){R instanceof KeyboardEvent&&R.type==="keypress"&&R.keyCode!==13&&R.keyCode!==32||(this.data.prepareAccountEndpoint?_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.closeDialog()};
_.l.onYtCommentboxLoadingStart=function(R){R.stopPropagation();this.isCommentboxLoading=!0};
_.l.onYtCommentboxLoadingEnd=function(R){R.stopPropagation();this.isCommentboxLoading=!1};
_.l.onYtVideoLinkButtonCancel=function(R){R.stopPropagation();this.onOpen(R)};
_.l.onYtVideoLinkSelected=function(R){R.stopPropagation();this.onOpen(R)};
_.l.onIronSelect=function(R){R.stopPropagation();R.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=R.detail.item.value&&(this.accessRestriction?(this.accessRestriction=R.detail.item.value,this.onOpen(R)):this.accessRestriction=R.detail.item.value)};
_.l.onYtNavigate=function(R){this.get("detail.endpoint.backstageImageUploadEndpoint",R)&&(this.JSC$15789_commentbox.addedAttachment="image",this.JSC$15789_commentbox.submitButtonDisabled=!0,this.onOpen(R))};
_.l.onRequestSent=function(R){if(_.v("web_button_rework"))for(var A=_.x(R.detail),Y=A.next();!Y.done;Y=A.next())_.n(Y.value,Lvq)&&(this.JSC$15789_commentbox.addedAttachment="image",this.JSC$15789_commentbox.submitButtonDisabled=!0,this.onOpen(R))};
_.l.openDialog=function(){this.JSC$15789_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$15789_commentbox.focus()};
_.l.onPopupClosed=function(){_.gR.getInstance()};
_.l.computeCreationDisabled=function(R){return!!R};
_.l.computeIsCreationDialog=function(R){return!!R&&R==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.l.computeDisabledPostButton=function(R){if(!R)return null;R.isDisabled=!0;return R};
_.l.computeIsCreationDialogWithHeader=function(R){return!this.inPopupContainer&&!!R&&!!R.authorText&&R.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.l.computeIsHeaderHidden=function(R,A){return!R||A};
_.l.computeDropdownRendererClasses=function(R){return R?["text-secondary-style"]:[]};
_.l.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var R=_.Mo(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;R&&R.reset()};
bW.prototype.onPopupClosed=bW.prototype.onPopupClosed;bW.prototype.onRequestSent=bW.prototype.onRequestSent;bW.prototype.onYtNavigate=bW.prototype.onYtNavigate;bW.prototype.onIronSelect=bW.prototype.onIronSelect;bW.prototype.onYtVideoLinkSelected=bW.prototype.onYtVideoLinkSelected;bW.prototype.onYtVideoLinkButtonCancel=bW.prototype.onYtVideoLinkButtonCancel;bW.prototype.onYtCommentboxLoadingEnd=bW.prototype.onYtCommentboxLoadingEnd;bW.prototype.onYtCommentboxLoadingStart=bW.prototype.onYtCommentboxLoadingStart;
bW.prototype.onYtCommentboxDismiss=bW.prototype.onYtCommentboxDismiss;bW.prototype.showButtonEduTooltip=bW.prototype.showButtonEduTooltip;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],bW.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bW.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],bW.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bW.prototype,"isOpen",void 0);_.C([_.S({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],bW.prototype,"buttonOverride",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bW.prototype,"modern",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bW.prototype,"roundedContainer",void 0);_.C([_.S(),_.k("design:type",Object)],bW.prototype,"dropdownButtonOverride",void 0);_.C([_.S({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.k("design:type",Boolean)],bW.prototype,"creationDisabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],bW.prototype,"enableCreationBox",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.k("design:type",Boolean)],bW.prototype,"isCreationDialog",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bW.prototype,"inPopupContainer",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.k("design:type",Boolean)],bW.prototype,"isCreationDialogWithHeader",void 0);_.C([_.S(),_.k("design:type",Object)],bW.prototype,"accessRestriction",void 0);
_.C([_.S({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.k("design:type",Array)],bW.prototype,"dropdownRendererClasses",void 0);_.C([_.S(),_.k("design:type",Object)],bW.prototype,"isCommentboxLoading",void 0);_.C([_.S(),_.k("design:type",Array)],bW.prototype,"attachmentButtonIds",void 0);_.C([_.nG("#image-button"),_.k("design:type",HTMLElement)],bW.prototype,"imageButton",void 0);
_.C([_.nG("#image-poll-button"),_.k("design:type",HTMLElement)],bW.prototype,"imagePollButton",void 0);_.C([_.nG("#quiz-button"),_.k("design:type",HTMLElement)],bW.prototype,"quizButton",void 0);_.C([_.nG("#commentbox"),_.k("design:type",Object)],bW.prototype,"JSC$15789_commentbox",void 0);_.C([_.vZ("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bW.prototype,"showButtonEduTooltip",null);
_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onYtCommentboxDismiss",null);_.C([_.Qa("yt-commentbox-loading-start"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onYtCommentboxLoadingStart",null);
_.C([_.Qa("yt-commentbox-loading-end"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onYtCommentboxLoadingEnd",null);_.C([_.Qa("yt-video-link-button-cancel"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onYtVideoLinkButtonCancel",null);
_.C([_.Qa("yt-video-link-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onYtVideoLinkSelected",null);_.C([_.Qa("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onIronSelect",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onYtNavigate",null);
_.C([_.Qa("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],bW.prototype,"onRequestSent",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bW.prototype,"onPopupClosed",null);_.C([_.F({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],bW);
_.B(bW,"ytd-backstage-post-dialog-renderer",function(){if(dxG!==void 0)return dxG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return dxG=R},{mode:1});var KQZ;var WQz;var f5=function(){return _.K.apply(this,arguments)||this};
_.H(f5,_.K);_.l=f5.prototype;_.l.computeHeartButtonStyle=function(R){return(R==null?0:R.styleType)?R.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onYtButtonTap=function(){if(this.data.isEnabled){var R=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(R=this.getEndpoint(R))&&_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})}else(R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(R)};
_.l.toggle=function(R){this.set("data.isHearted",R!==void 0?R:!this.data.isHearted)};
_.l.getEndpoint=function(R){var A,Y=(A=this.data)==null?void 0:A.heartEndpoint,P;A=(P=this.data)==null?void 0:P.unheartEndpoint;if(Y&&A)return R?A:Y};
_.l.computeButtonAccessibility=function(R,A){var Y,P,E=R==null?void 0:(Y=R.heartedAccessibility)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label,z,c;R=R==null?void 0:(z=R.unheartedAccessibility)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label;return A?E:R};
_.Yh.Object.defineProperties(f5.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 R;return _.v("kevlar_system_icons")&&!((R=this.data)==null||!R.isHearted)}}});
f5.prototype.onYtButtonTap=f5.prototype.onYtButtonTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],f5.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],f5.prototype,"data",void 0);_.C([_.X("data.isHearted"),_.k("design:type",Object),_.k("design:paramtypes",[])],f5.prototype,"heartTooltip",null);
_.C([_.X("data.isHearted"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f5.prototype,"iconFilled",null);_.C([_.S({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.k("design:type",String)],f5.prototype,"buttonAccessibility",void 0);_.C([_.S({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],f5.prototype,"heartButtonStyle",void 0);
_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f5.prototype,"onYtButtonTap",null);_.C([_.F({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],f5);
_.B(f5,"ytd-creator-heart-renderer",function(){if(WQz!==void 0)return WQz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return WQz=R},{mode:1});var p5=function(){var R=_.K.apply(this,arguments)||this;R.hasCreatorReply=!1;R.buttonOverrides={size:"S",iconPosition:"icon-only"};R.replyButtonOverrides={size:"S",type:"text"};R.forceIconButton=!_.v("web_modern_buttons");R.modern=_.v("web_modern_buttons");R.buttonTooltipPosition="bottom";R.systemIcons=_.v("kevlar_system_icons");R.replyDialog=null;return R};
_.H(p5,_.K);_.l=p5.prototype;
_.l.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]]"}}}}}};
_.l.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.l.dataChange=function(){this.replyDialog&&_.Mo(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var R,A,Y;this.isLiked=this.systemIcons&&!!((R=this.data)==null?0:(A=R.likeButton)==null?0:(Y=A.toggleButtonRenderer)==null?0:Y.isToggled)};
_.l.computeShowVoteCountBeginning=function(R,A){return R===void 0||A===void 0?!0:R.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!A&&this.ytRendererBehavior.getSimpleString(A)!=="0"};
_.l.computeShowVoteCountEnd=function(R,A){return R===void 0||A===void 0?!0:R.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!A&&this.ytRendererBehavior.getSimpleString(A)!=="0"};
_.l.computeShowCommentCount=function(R,A){return R===void 0||A===void 0?!0:R.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!A&&this.ytRendererBehavior.getSimpleString(A)!=="0"};
_.l.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.l.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.l.showReplyDialog=function(R){R&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Mo(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=R,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.l.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.l.onRequestSent=function(R){if(_.v("web_button_rework")){R=_.x(R.detail);for(var A=R.next();!A.done;A=R.next())(A=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",A.value))&&this.showReplyDialog(A)}};
_.l.onYtNavigate=function(R){var A,Y;(R=(A=_.n(R.detail.endpoint,_.RlE))==null?void 0:(Y=A.dialog)==null?void 0:Y.commentReplyDialogRenderer)&&this.showReplyDialog(R)};
_.l.onYtServiceRequestSent=function(R,A){R.stopPropagation();if(A.actions)for(R=0;R<A.actions.length;R++){var Y=_.n(A.actions[R],SXA);Y&&this.handleUpdateCommentVoteAction(Y)}};
_.l.handleUpdateCommentVoteAction=function(R){this.voteCount=R.voteCount||_.dF("0");R.voteStatus==="LIKE"?this.JSC$15800_ytdDislikeToggleButtonRenderer.toggle(!1):R.voteStatus==="DISLIKE"?this.JSC$15800_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15800_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15800_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.l.computeReplyButtonHidden=function(R){return R};
_.l.computeReplyButtonBeginning=function(R){return(R==null?0:R.replyButton)&&R.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?R.replyButton:void 0};
_.l.computeReplyButtonEnd=function(R){return(R==null?0:R.replyButton)&&R.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?R.replyButton:void 0};
_.l.computeActionButtonStyle=function(R){return(R==null?0:R.style)?R.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.l.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.l.onYtToggleButton=function(R){var A,Y;this.isLiked=this.systemIcons&&!!((A=R.detail)==null?0:(Y=A.actions)==null?0:Y.like)};
p5.prototype.onYtToggleButton=p5.prototype.onYtToggleButton;p5.prototype.onButtonTooltipPositionChanged=p5.prototype.onButtonTooltipPositionChanged;p5.prototype.onYtServiceRequestSent=p5.prototype.onYtServiceRequestSent;p5.prototype.onYtNavigate=p5.prototype.onYtNavigate;p5.prototype.onRequestSent=p5.prototype.onRequestSent;p5.prototype.onYtCommentboxDismiss=p5.prototype.onYtCommentboxDismiss;p5.prototype.dataChange=p5.prototype.dataChange;
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],p5.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],p5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"voteCount",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"commentCount",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"replyThumbnail",void 0);
_.C([_.S(),_.k("design:type",Object)],p5.prototype,"hasCreatorReply",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],p5.prototype,"enableCreationBox",void 0);_.C([_.S({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],p5.prototype,"actionButtonsStyle",void 0);_.C([_.S({computed:"computeReplyButtonBeginning(data)"}),_.k("design:type",Object)],p5.prototype,"replyButtonBeginning",void 0);
_.C([_.S({computed:"computeReplyButtonEnd(data)"}),_.k("design:type",Object)],p5.prototype,"replyButtonEnd",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"buttonOverrides",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"replyButtonOverrides",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"forceIconButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],p5.prototype,"useCommentIcon",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],p5.prototype,"modern",void 0);_.C([_.S(),_.k("design:type",Object)],p5.prototype,"buttonTooltipPosition",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],p5.prototype,"systemIcons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],p5.prototype,"isLiked",void 0);_.C([_.nG("ytd-button-renderer"),_.k("design:type",Object)],p5.prototype,"ytdReplyButtonRenderer",void 0);
_.C([_.nG("#like-button"),_.k("design:type",Object)],p5.prototype,"JSC$15800_ytdLikeToggleButtonRenderer",void 0);_.C([_.nG("#dislike-button"),_.k("design:type",Object)],p5.prototype,"JSC$15800_ytdDislikeToggleButtonRenderer",void 0);_.C([_.nG("#reply-dialog"),_.k("design:type",HTMLElement)],p5.prototype,"replyDialogElement",void 0);_.C([_.nG("#reply-button"),_.k("design:type",HTMLElement)],p5.prototype,"replyButtonElement",void 0);
_.C([_.nG("#reply-button-end"),_.k("design:type",HTMLElement)],p5.prototype,"replyButtonEndElement",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p5.prototype,"dataChange",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],p5.prototype,"onYtCommentboxDismiss",null);
_.C([_.Qa("yt-service-request-sent-button-renderer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],p5.prototype,"onRequestSent",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],p5.prototype,"onYtNavigate",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],p5.prototype,"onYtServiceRequestSent",null);_.C([_.vZ("buttonTooltipPosition"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p5.prototype,"onButtonTooltipPositionChanged",null);
_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],p5.prototype,"onYtToggleButton",null);_.C([_.F({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],p5);
_.B(p5,"ytd-comment-action-buttons-renderer",function(){if(KQZ!==void 0)return KQZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return KQZ=R},{mode:1});var j3f;var Fo=function(){return _.K.apply(this,arguments)||this};
_.H(Fo,_.K);Fo.prototype.focus=function(){_.Mo(this.hostElement).querySelector("#commentbox").focus()};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Fo.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Fo.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Fo.prototype,"zeroStepChannelCreationRenderer",void 0);_.C([_.F({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],Fo);
_.B(Fo,"ytd-comment-dialog-renderer",function(){if(j3f!==void 0)return j3f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return j3f=R},{mode:1});var bNH;var BR=function(){var R=_.K.apply(this,arguments)||this;R.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.v("enable_web_delhi_icons")};R.replyButtonOverrides={size:"S",type:"text"};return R};
_.H(BR,_.K);_.l=BR.prototype;_.l.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.l.detached=function(){this.replyBox&&this.replyBox.remove()};
_.l.showReplyDialog=function(R){if(R){var A=this.replyBox;A||(A=document.createElement("ytd-comment-reply-dialog-renderer"),A.id="replybox",_.Mo(this.replyDialogDiv).appendChild(A));A.data=R;this.replyDialogDiv.hidden=!1;A.openDialog()}};
_.l.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.l.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var R,A=_.n((R=this.toolbarSurface)==null?void 0:R.subscribersOnlyDisclaimerSnackbarCommand,_.CC);A&&_.xo(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:A})}};
_.l.onYtServiceRequestSent=function(R,A){R.stopPropagation();if(A.actions)for(var Y=0;Y<A.actions.length;Y++){var P=_.n(A.actions[Y],SXA);P?this.handleUpdateCommentVoteAction(P):R.target===this.heartButton&&this.toggleHeartState()}};
_.l.handleUpdateCommentVoteAction=function(R){var A;(A=this.toolbarState)!=null&&A.key&&this.ytdReduxBehavior.dispatch(_.I9("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:R.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":R.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.l.toggleHeartState=function(){var R;(R=this.toolbarState)!=null&&R.key&&this.ytdReduxBehavior.dispatch(_.I9("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Yh.Object.defineProperties(BR.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return(((R=this.toolbarState)==null?void 0:R.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(A=this.toolbarData)==null?void 0:A.likeCountLiked:(Y=this.toolbarData)==null?void 0:Y.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.toolbarSurface)==null?void 0:R.prepareAccountCommand)!==void 0&&!_.v("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var R,A=_.n((R=this.toolbarSurface)==null?void 0:R.prepareAccountCommand,_.CC),Y,P,E,z,c,M,N,y,m;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((Y=this.toolbarSharedData)==null||!Y.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:A!=null?A:_.n((E=this.toolbarSurface)==null?void 0:E.likeCommand,_.CC),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:A!=null?A:_.n((z=this.toolbarSurface)==null?void 0:z.unlikeCommand,_.CC),defaultCommand:this.isVisiblyDisabled?_.n((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.CC):void 0,defaultTooltip:(M=this.toolbarData)==null?void 0:M.likeInactiveTooltip,toggledTooltip:(N=this.toolbarData)==null?void 0:N.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(y=this.toolbarData)==null?void 0:y.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(m=this.toolbarSharedData)==null?void 0:m.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var R,A=_.n((R=this.toolbarSurface)==null?void 0:R.prepareAccountCommand,_.CC),Y,P,E,z,c,M,N,y,m,T;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((Y=this.toolbarSharedData)==null||!Y.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((P=this.toolbarState)==null?void 0:P.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:A!=null?A:_.n((E=this.toolbarSurface)==null?void 0:E.dislikeCommand,_.CC),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:A!=null?A:_.n((z=this.toolbarSurface)==null?void 0:z.undislikeCommand,_.CC),defaultCommand:this.isVisiblyDisabled?_.n((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.CC):void 0,defaultTooltip:(M=this.toolbarData)==null?void 0:M.dislikeInactiveTooltip,toggledTooltip:(N=this.toolbarData)==null?void 0:
N.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(y=this.toolbarSharedData)==null?void 0:y.dislikeReplyButtonA11y:(m=this.toolbarSharedData)==null?void 0:m.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(T=this.toolbarSharedData)==null?void 0:T.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;if(((R=this.toolbarState)==null?void 0:R.heartState)!==void 0&&((A=this.toolbarState)==null?void 0:A.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((Y=this.toolbarState)==null?void 0:Y.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var P,E,z,c,M,N,y,m,T,Q,g,r,I,b;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(P=this.toolbarData)==null?void 0:P.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((M=this.toolbarState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.n((N=this.toolbarSurface)==null?void 0:N.heartCommand,
_.CC),unheartEndpoint:this.isVisiblyDisabled?void 0:_.n((y=this.toolbarSurface)==null?void 0:y.unheartCommand,_.CC),disabledEndpoint:this.isVisiblyDisabled?_.n((m=this.toolbarSurface)==null?void 0:m.commentDisabledActionCommand,_.CC):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(T=this.toolbarData)==null?void 0:T.heartActiveTooltip,unheartedTooltip:(Q=this.toolbarData)==null?void 0:Q.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((g=
this.toolbarState)==null?void 0:g.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(r=this.toolbarSharedData)==null?void 0:r.unheartButtonA11y:(I=this.toolbarSharedData)==null?void 0:I.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(b=this.toolbarSharedData)==null?void 0:b.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.toolbarSurface)==null||!R.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(R=this.commentStrings)==null?void 0:R.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.n((A=this.toolbarSurface)==null?void 0:A.replyCommand,_.CC),command:this.isVisiblyDisabled?_.n((Y=this.toolbarSurface)==null?
void 0:Y.commentDisabledActionCommand,_.CC):this.isSubsOnlyCommentsIneligibleUser?_.n((P=this.toolbarSurface)==null?void 0:P.subscribersOnlySnackbarCommand,_.CC):void 0}}}});
BR.prototype.onYtServiceRequestSent=BR.prototype.onYtServiceRequestSent;BR.prototype.hideReplyDialogDiv=BR.prototype.hideReplyDialogDiv;_.C([_.S(),_.k("design:type",Object)],BR.prototype,"commentStrings",void 0);_.C([_.S(),_.k("design:type",Boolean)],BR.prototype,"isReply",void 0);_.C([_.S(),_.k("design:type",Object)],BR.prototype,"toolbarData",void 0);_.C([_.S(),_.k("design:type",Object)],BR.prototype,"toolbarSharedData",void 0);
_.C([_.S(),_.k("design:type",String)],BR.prototype,"toolbarStateKey",void 0);_.C([_.S(),_.k("design:type",String)],BR.prototype,"toolbarSurfaceKey",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],BR.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],BR.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],BR.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.Qg),_.k("design:type",Object)],BR.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.nG("#reply-dialog"),_.k("design:type",HTMLElement)],BR.prototype,"replyDialogDiv",void 0);_.C([_.nG("#replybox"),_.k("design:type",Object)],BR.prototype,"replyBox",void 0);_.C([_.nG("ytd-creator-heart-renderer"),_.k("design:type",Object)],BR.prototype,"heartButton",void 0);_.C([_.S({selector:function(R,A){return _.mc(R.entities,"engagementToolbarStateEntityPayload",A)},
selectorArgs:["toolbarStateKey"]}),_.k("design:type",Object)],BR.prototype,"toolbarState",void 0);_.C([_.S({selector:uBk,selectorArgs:["toolbarSurfaceKey"]}),_.k("design:type",Object)],BR.prototype,"toolbarSurface",void 0);_.C([_.S(),_.k("design:type",Object)],BR.prototype,"buttonOverrides",void 0);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],BR.prototype,"hideReplyDialogDiv",null);
_.C([_.X("toolbarData","toolbarState"),_.k("design:type",String),_.k("design:paramtypes",[])],BR.prototype,"likeCount",null);_.C([_.X("likeCount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BR.prototype,"showLikeCount",null);_.C([_.X("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BR.prototype,"isVisiblyDisabled",null);_.C([_.X("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BR.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.C([_.X("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BR.prototype,"isSubsOnlyCommentsEligibleUser",null);_.C([_.X("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BR.prototype,"hasPrepareAccountCommand",null);_.C([_.X("toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],BR.prototype,"likeToggleButtonRenderer",null);
_.C([_.X("isReply","toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],BR.prototype,"dislikeToggleButtonRenderer",null);_.C([_.X("toolbarData","toolbarState","toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],BR.prototype,"creatorHeartSupportedRenderer",null);_.C([_.X("toolbarSurface"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],BR.prototype,"hasReplyCommand",null);
_.C([_.X("toolbarSurface","commentStrings","isVisiblyDisabled"),_.k("design:type",Object),_.k("design:paramtypes",[])],BR.prototype,"replyButtonRenderer",null);_.C([_.S(),_.k("design:type",Object)],BR.prototype,"replyButtonOverrides",void 0);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],BR.prototype,"onYtServiceRequestSent",null);_.C([_.F({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],BR);
_.B(BR,"ytd-comment-engagement-bar",function(){if(bNH!==void 0)return bNH;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" on-click="handleReplyButtonClick" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return bNH=R},{mode:1});var fQb;var aw=function(){return _.K.apply(this,arguments)||this};
_.H(aw,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],aw.prototype,"data",void 0);_.C([_.F({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],aw);
_.B(aw,"ytd-comment-inline-thumbnail-renderer",function(){if(fQb!==void 0)return fQb;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fQb=R},{mode:1});var p4E;var C5=function(){return _.K.apply(this,arguments)||this};
_.H(C5,_.K);C5.prototype.onMessageTap=function(){if(this.onTapCommand){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);R&&this.ytdOpenPopupBehavior.openPopup(R)}};
_.Yh.Object.defineProperties(C5.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return(R=this.data)==null?void 0:(A=R.button)==null?void 0:(Y=A.buttonRenderer)==null?void 0:Y.command}}});
_.C([_.U(_.Qg),_.k("design:type",Object)],C5.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],C5.prototype,"data",void 0);_.C([_.X("data.button.buttonRenderer.command"),_.k("design:type",Object),_.k("design:paramtypes",[])],C5.prototype,"onTapCommand",null);_.C([_.F({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],C5);
_.B(C5,"ytd-comment-pause-composer-renderer",function(){if(p4E!==void 0)return p4E;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" on-click="onMessageTap" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return p4E=R},{mode:1});var FQN;var B1Z;var hD=function(){var R=_.K.apply(this,arguments)||this;R.isOpen=!1;return R};
_.H(hD,_.K);_.l=hD.prototype;_.l.dataChanged=function(){this.isOpen=!1};
_.l.onTap=function(){this.data&&(this.data.navigationEndpoint?_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.l.focus=function(){this.JSC$15830_commentbox.focus()};
_.l.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.l.openDialog=function(){this.isOpen=!0;this.JSC$15830_commentbox.focus();this.JSC$15830_commentbox.maybeHeightChanged()};
hD.prototype.onYtCommentboxDismiss=hD.prototype.onYtCommentboxDismiss;hD.prototype.dataChanged=hD.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hD.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hD.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],hD.prototype,"isOpen",void 0);_.C([_.nG("#commentbox"),_.k("design:type",Object)],hD.prototype,"JSC$15830_commentbox",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hD.prototype,"dataChanged",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],hD.prototype,"onYtCommentboxDismiss",null);_.C([_.F({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],hD);
_.B(hD,"ytd-comment-reply-dialog-renderer",function(){if(B1Z!==void 0)return B1Z;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return B1Z=R},{mode:1});var aQS;var ow=function(){return _.K.apply(this,arguments)||this};
_.H(ow,_.K);_.Yh.Object.defineProperties(ow.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.icon)==null?void 0:A.iconType;return Y?"yt-icons:"+Y.toLowerCase():null}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ow.prototype,"data",void 0);_.C([_.S(),_.X("data.icon"),_.k("design:type",Object),_.k("design:paramtypes",[])],ow.prototype,"icon",null);_.C([_.F({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],ow);
_.B(ow,"ytd-pinned-comment-badge-renderer",function(){if(aQS!==void 0)return aQS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return aQS=R},{mode:1});var CLG;var hjD={},odS={input:!0,meta:!0,br:!0,link:!0,img:!0},kz=null;hjD.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(){kz==null&&(kz=document.createElement("tp-yt-paper-tooltip"),kz.offset=8,kz.fitToVisibleBounds=!0)},
onMouseOver_:function(R){if(R=_.GE(R.target,function(E){return E==this||E.getAttribute&&E.getAttribute("shared-tooltip-text")}.bind(this),!0)){var A=R.getAttribute("shared-tooltip-text");
if(A){var Y=this,P=null;R!=this&&(R.tagName.toLowerCase()in odS?Y=R.parentElement:Y=R,R.id&&(P=R.id));this.polymerController.createTooltipIfRequired_();if(kz.parentElement!=Y||kz.for!=P)(0,_.Jh)(kz).textContent=A,_.Mo(Y).appendChild(kz),kz.for=P,kz.animationDelay=this.polymerController.sharedTooltipAnimationDelay,kz.position=this.polymerController.sharedTooltipPosition}}}};var Gl=function(){return _.K.apply(this,arguments)||this};
_.H(Gl,_.K);Gl.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]]"}}}}}};
Gl.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var R;((R=this.data)==null?0:R.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Gl.prototype.colorChanged=function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.color)==null?void 0:(Y=A.basicColorPaletteData)==null?void 0:Y.foregroundBodyColor;P&&(this.rgbBadgeColor=_.G9(P));_.Mo(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
Gl.prototype.tooltipChanged=function(){var R;((R=this.data)==null?0:R.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
Gl.prototype.tooltipChanged=Gl.prototype.tooltipChanged;Gl.prototype.colorChanged=Gl.prototype.colorChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Gl.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Gl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(hjD.YtSharedTooltipBehavior),_.k("design:type",Object)],Gl.prototype,"ytSharedTooltipBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Gl.prototype,"data",void 0);
_.C([_.S({value:"#4285F4"}),_.k("design:type",String)],Gl.prototype,"rgbBadgeColor",void 0);_.C([_.vZ("data.color"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gl.prototype,"colorChanged",null);_.C([_.vZ("data.tooltip"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gl.prototype,"tooltipChanged",null);_.C([_.F({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],Gl);
_.B(Gl,"ytd-sponsor-comment-badge-renderer",function(){if(CLG!==void 0)return CLG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return CLG=R},{mode:1});var kqq;var Gqq;var ZB=function(){return _.K.apply(this,arguments)||this};
_.H(ZB,_.K);ZB.prototype.computeState=function(R){switch(R==null?void 0:R.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"}};
ZB.prototype.updateStateIdentifier=function(R){if(this.viewModel.triStateKey){var A=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.I9("triStateButtonStateEntityPayload",A,{key:A,stateIdentifier:R}))}};
ZB.prototype.onClick=function(){var R=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(){R.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){R.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Yh.Object.defineProperties(ZB.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 R;return((R=this.data)==null?void 0:R.buttonText)||""}}});
_.C([_.S(),_.k("design:type",Object)],ZB.prototype,"viewModel",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ZB.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],ZB.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZB.prototype,"ytRendererBehavior",void 0);_.C([_.S({selector:e0k,selectorArgs:["viewModel.triStateKey"]}),_.k("design:type",Object)],ZB.prototype,"triStateButtonStateEntity",void 0);
_.C([_.S({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.k("design:type",String)],ZB.prototype,"state",void 0);_.C([_.X("viewModel","state"),_.k("design:type",Object),_.k("design:paramtypes",[])],ZB.prototype,"data",null);_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],ZB.prototype,"buttonText",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],ZB);
_.B(ZB,"ytd-tri-state-button-view-model",function(){if(Gqq!==void 0)return Gqq;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Gqq=R},{mode:1});var ZNH;var tAA;var tD=function(){var R=_.K.apply(this,arguments)||this;R.defaultIconToFilled=!_.v("kevlar_fill_comment_chip_icon_killswitch");return R};
_.H(tD,_.K);tD.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
tD.prototype.dataChanged=function(){if(this.data){var R,A;((R=this.data.chipColorPalette)==null?0:R.backgroundColor)&&((A=this.data.chipColorPalette)==null?0:A.foregroundTitleColor)&&_.ya(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Zs(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Zs(this.data.chipColorPalette.foregroundTitleColor)});var Y;((Y=this.data)==null?0:Y.command)?(_.ya(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.ya(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}};
tD.prototype.onTap=function(){var R;if(this.data&&(R=this.data)!=null&&R.command){var A;this.ytComponentBehavior.resolveCommand((A=this.data)==null?void 0:A.command)}};
tD.prototype.getIconSize=function(){return _.v("kevlar_fill_comment_chip_icon_killswitch")?24:12};
tD.prototype.onTap=tD.prototype.onTap;tD.prototype.dataChanged=tD.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],tD.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Kr),_.k("design:type",Object)],tD.prototype,"ironA11yKeysBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tD.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],tD.prototype,"basePriceText",void 0);_.C([_.S(),_.k("design:type",Object)],tD.prototype,"chipIcon",void 0);_.C([_.S(),_.k("design:type",Object)],tD.prototype,"defaultIconToFilled",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tD.prototype,"dataChanged",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tD.prototype,"onTap",null);
_.C([_.CG({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],tD);
_.B(tD,"yt-pdg-comment-chip-renderer",function(){if(tAA===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;ZNH===void 0&&(ZNH=document.createElement("template"));var P=ZNH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);tAA=R}R=tAA;return R},{mode:2});var wC=function(){var R=_.K.apply(this,arguments)||this;R.useSmallAvatars=_.v("small_avatars_for_comments");R.webWatchCompactComments=_.v("web_watch_compact_comments");R.editDialog=null;return R};
_.H(wC,_.K);_.l=wC.prototype;_.l.onShow=function(){_.Bk("cmv",void 0,"wn_comments")};
_.l.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"}}}};
_.l.detached=function(){this.editDialog=null;this.expander.reset()};
_.l.updateBackgroundColor=function(){if(this.backgroundColor){var R={"--ytd-comment-paid-background-color":_.Zs(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.ya(this.hostElement,R)}else _.ya(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.l.resetExpander=function(){var R;(R=this.expander)==null||R.reset()};
_.l.openEditDialog=function(R){R.dialog&&(this.editDialog=R.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.l.onYtNavigate=function(R){var A=R.detail.endpoint;if(A=_.n(A,_.AeD)||_.n(A,_.YO8))R.stopPropagation(),this.openEditDialog(A)};
_.l.onYtCommentboxDismiss=function(){this.editDialog=null;_.ya(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.l.onAuthorThumbnailClicked=function(){_.v("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.l.onYtCommentboxResize=function(R){var A;(R==null?0:(A=R.detail)==null?0:A.height)&&_.ya(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":R.detail.height+"px"})};
_.Yh.Object.defineProperties(wC.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 R,A=(R=this.commentEntity)==null?void 0:R.author;return A&&(A.isCreator||A.isVerified||A.isArtist)?{renderer:{authorEndpoint:A.channelPageEndpoint?_.n(A.channelPageEndpoint,_.CC):_.n(A.channelCommand,_.CC),authorText:{runs:[{text:A.displayName}]},color:A.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:A.isArtist?{iconType:"AUDIO_BADGE"}:
A.isVerified?{iconType:A.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:A.isArtist||A.isVerified?A.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var R,A=(R=this.commentEntity)==null?void 0:R.author;return A!=null&&A.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:A.sponsorBadgeUrl}]},tooltip:A.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var R;return _.n((R=this.commentSurfaceEntity)==null?void 0:R.pdgCommentChip,_.IXz)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var R;return this.voiceReplyContainerViewModel&&((R=this.voiceReplyContainerViewModel)==null?void 0:R.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var R;return _.n((R=this.commentSurfaceEntity)==null?void 0:R.voiceReplyContainerViewModel,B4H)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var R;return this.voiceReplyContainerViewModel&&(R=this.voiceReplyContainerViewModel)!=null&&R.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=(R=this.commentSurfaceEntity)==null?void 0:R.commentBackgroundColor)!=null?A:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.v("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var R,A;return(((R=this.commentEntity)==null?void 0:(A=R.properties)==null?void 0:A.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var R,A;if(_.v("enable_profile_cards_on_comments")&&((R=this.commentEntity)==null?0:(A=R.author)==null?0:A.profileCardEndpoint)&&this.viewModel.allowProfileCard){var Y,P;return _.n((Y=this.commentEntity)==null?void 0:(P=Y.author)==null?void 0:P.profileCardEndpoint,_.CC)}var E,z;return _.n((E=this.commentEntity)==null?void 0:(z=E.avatar)==null?void 0:z.endpoint,_.CC)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var R,A;if(_.v("enable_profile_cards_on_comments")&&((R=this.commentEntity)==null?0:(A=R.author)==null?0:A.channelPageEndpoint)){var Y,P;return _.n((Y=this.commentEntity)==null?void 0:(P=Y.author)==null?void 0:P.channelPageEndpoint,_.CC)}var E,z;return _.n((E=this.commentEntity)==null?void 0:(z=E.avatar)==null?void 0:z.endpoint,_.CC)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E=(R=this.commentEntity)==null?void 0:(A=R.avatar)==null?void 0:(Y=A.image)==null?void 0:(P=Y.sources)==null?void 0:P[0];return E?{thumbnails:[{url:E.url,width:E.width,height:E.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.commentEntity)==null?0:(A=R.author)==null?0:A.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.commentEntity)==null?void 0:(A=R.author)==null?void 0:A.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.commentEntity)==null?void 0:(A=R.properties)==null?void 0:A.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var R;return _.n((R=this.commentSurfaceEntity)==null?void 0:R.publishedTimeCommand,_.CC)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var R,A;if(((R=this.commentEntity)==null?0:R.translatedContent)&&((A=this.translateButtonState)==null?void 0:A.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var Y;if((Y=this.voiceReplyContainerViewModel)==null?0:Y.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var P,E;return((P=this.commentEntity)==null?void 0:(E=P.properties)==null?void 0:E.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.commentSharedEntity)==null?void 0:(A=R.strings)==null?void 0:A.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.commentSharedEntity)==null?void 0:(A=R.strings)==null?void 0:A.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.commentEntity)==null||!R.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var R,A,Y=(A=_.n((R=this.viewModel)==null?void 0:R.translateButton,FLH))!=null?A:{},P,E,z,c,M,N,y,m,T,Q,g;return Object.assign({},Y,{untoggledStateData:Object.assign({},Y.untoggledStateData,{buttonText:(P=this.commentEntity)==null?void 0:(E=P.translateData)==null?void 0:E.text}),togglingStateData:Object.assign({},Y.togglingStateData,{buttonText:(z=this.commentSharedEntity)==null?
void 0:(c=z.strings)==null?void 0:c.translatingText}),toggledStateData:Object.assign({},Y.toggledStateData,{buttonText:(M=this.commentSharedEntity)==null?void 0:(N=M.strings)==null?void 0:N.seeOriginalText}),transitionCommand:((y=this.commentEntity)==null?0:y.translatedContent)?void 0:_.n((m=this.commentEntity)==null?void 0:(T=m.translateData)==null?void 0:T.translateComment,_.CC),triStateKey:(Q=this.commentEntity)==null?void 0:(g=Q.properties)==null?void 0:g.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((A=_.n(_.n((R=this.toolbarSurface)==null?void 0:R.menuCommand,_.CC),Pob))==null?void 0:(Y=A.menu)==null?void 0:Y.menuRenderer)||null}}});
wC.prototype.onYtCommentboxResize=wC.prototype.onYtCommentboxResize;wC.prototype.onYtCommentboxDismiss=wC.prototype.onYtCommentboxDismiss;wC.prototype.onYtNavigate=wC.prototype.onYtNavigate;wC.prototype.resetExpander=wC.prototype.resetExpander;wC.prototype.updateBackgroundColor=wC.prototype.updateBackgroundColor;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wC.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],wC.prototype,"ytdReduxBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],wC.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wC.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("#author-thumbnail > button"),_.k("design:type",HTMLElement)],wC.prototype,"authorThumbnailAnchor",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wC.prototype,"linked",null);
_.C([_.X("viewModel","linked"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"linkedCommentBadge",null);_.C([_.S({reflectToAttribute:!0}),_.X("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wC.prototype,"pinned",null);_.C([_.X("viewModel","pinned"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"pinnedCommentBadge",null);
_.C([_.X("commentEntity","commentSharedEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"authorCommentBadge",null);_.C([_.S({reflectToAttribute:!0}),_.X("authorCommentBadge"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"hasAuthorBadge",null);_.C([_.X("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"sponsorCommentBadge",null);
_.C([_.S({reflectToAttribute:!0}),_.X("sponsorCommentBadge"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"hasSponsorBadge",null);_.C([_.X("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"pdgCommentChipRenderer",null);_.C([_.S({reflectToAttribute:!0}),_.X("voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"hasVoiceReply",null);
_.C([_.X("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"voiceReplyContainerViewModel",null);_.C([_.X("voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"voiceReplyUnavailableText",null);_.C([_.S(),_.k("design:type",Object)],wC.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"viewModel",null);
_.C([_.S({selector:function(R,A){return _.mc(R.entities,"commentSharedEntityPayload",A)},
selectorArgs:["viewModel.sharedKey"]}),_.k("design:type",Object)],wC.prototype,"commentSharedEntity",void 0);_.C([_.S({selector:function(R,A){return _.mc(R.entities,"commentEntityPayload",A)},
selectorArgs:["viewModel.commentKey"]}),_.k("design:type",Object)],wC.prototype,"commentEntity",void 0);_.C([_.S({selector:function(R,A){return _.mc(R.entities,"commentSurfaceEntityPayload",A)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.k("design:type",Object)],wC.prototype,"commentSurfaceEntity",void 0);_.C([_.S({selector:uBk,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.k("design:type",Object)],wC.prototype,"toolbarSurface",void 0);_.C([_.S({selector:e0k,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.k("design:type",Object)],wC.prototype,"translateButtonState",void 0);
_.C([_.X("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"backgroundColor",null);_.C([_.S({reflectToAttribute:!0}),_.X("viewModel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wC.prototype,"optimalReadingWidthComments",null);_.C([_.nG("ytd-expander"),_.k("design:type",Object)],wC.prototype,"expander",void 0);
_.C([_.vZ("backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wC.prototype,"updateBackgroundColor",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wC.prototype,"useSmallAvatars",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wC.prototype,"webWatchCompactComments",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"isReply",null);
_.C([_.X("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"authorThumbnailEndpoint",null);_.C([_.X("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"authorNameEndpoint",null);_.C([_.X("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"authorThumbnail",null);_.C([_.X("commentEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],wC.prototype,"authorTextClass",null);
_.C([_.X("commentEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],wC.prototype,"authorChannelName",null);_.C([_.X("commentEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"publishedTime",null);_.C([_.X("commentSurfaceEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"publishedTimeCommand",null);
_.C([_.X("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"contentText",null);_.C([_.vZ("contentText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wC.prototype,"resetExpander",null);_.C([_.X("commentEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wC.prototype,"shouldShowReadMoreInitially",null);
_.C([_.X("commentSharedEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],wC.prototype,"expandText",null);_.C([_.X("commentSharedEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],wC.prototype,"collapseText",null);_.C([_.X("commentEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wC.prototype,"shouldShowTranslateButton",null);
_.C([_.X("commentEntity","commentSharedEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"translateButton",null);_.C([_.X("toolbarSurface"),_.k("design:type",Object),_.k("design:paramtypes",[])],wC.prototype,"overflowMenuRenderer",null);_.C([_.S(),_.k("design:type",Object)],wC.prototype,"editDialog",void 0);_.C([_.nG("ytd-comment-dialog-renderer"),_.k("design:type",Object)],wC.prototype,"editCommentDialogContainer",void 0);
_.C([_.nG("ytd-comment-reply-dialog-renderer"),_.k("design:type",Object)],wC.prototype,"editReplyDialogContainer",void 0);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],wC.prototype,"onYtNavigate",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],wC.prototype,"onYtCommentboxDismiss",null);
_.C([_.Qa("yt-commentbox-resize"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],wC.prototype,"onYtCommentboxResize",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-comment-view-model"})],wC);
_.B(wC,"ytd-comment-view-model",function(){if(kqq!==void 0)return kqq;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return kqq=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var uW=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_modern_buttons");R.commentThreadingEnabled=_.v("web_delhi_comment_threads");R.isWatchGrid=_.v("kevlar_watch_grid");R.buttonOverrides=R.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};R.JSC$15876_spinnerEl=null;return R};
_.H(uW,_.K);_.l=uW.prototype;_.l.configureContinuationPathMap=function(){return _.v("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.shouldShowExpandedThreads=function(R,A){return this.commentThreadingEnabled&&!A&&(R==null?void 0:R.length)>0};
_.l.shouldShowCollapsedThreads=function(R,A){return this.commentThreadingEnabled&&A&&R};
_.l.computeThreadRenderer=function(R){return _.n(R,IuA)};
_.l.computeIsContinuationItem=function(R){return!!this.computeContinuationItemRenderer(R)};
_.l.computeButtonRenderer=function(R){return _.n(R,_.RC)};
_.l.computeContinuationItemRenderer=function(R){return _.n(R,_.eb)};
_.l.configureRendererStamper=function(){return{"data.teaserContents":{id:"teaser-replies",mapping:{commentViewModel:{component:"ytd-comment-view-model"}}},"data.contents":{id:"contents",mapping:{commentViewModel:{component:"ytd-comment-view-model"},continuationItemRenderer:{component:"ytd-continuation-item-renderer",params:{showButton:!0,isCommentsSection:!1},properties:{buttonOverrides:"[[buttonOverrides]]"}}}}}};
_.l.attached=function(){this.isShowRepliesVisible=!0};
_.l.dataChanged=function(){var R=this.expanderContents;R&&(R.hidden=!0);this.isLoading=!1};
_.l.endsInContinuation=function(R){return!!R&&R.length>0&&!!this.computeContinuationItemRenderer(R[R.length-1])};
_.l.computeShouldShowHideRepliesButton=function(R,A){return!R&&A};
_.l.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.l.isLoadingChanged=function(){this.isLoading&&!this.JSC$15876_spinnerEl&&(this.JSC$15876_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Mo(this.expanderContents).appendChild(this.JSC$15876_spinnerEl));this.JSC$15876_spinnerEl&&(this.JSC$15876_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var R;(R=this.contents)==null||R.classList.remove("reloading")}};
_.l.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var R=_.n(this.data.viewReplies,_.RC);R&&this.ytRendererBehavior.logExplicitClick(R);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.l.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var R=_.n(this.data.hideReplies,_.RC);R&&this.ytRendererBehavior.logExplicitClick(R);this.commentThreadingEnabled&&this.toggleCollapsed&&this.toggleCollapsed()};
_.l.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var R=_.Mo(this.hostElement).querySelector("#expander-contents");R&&(R.hidden=this.isShowRepliesVisible)}};
_.l.computeAlign=function(){if(this.modern){var R;return!((R=this.data)==null?0:R.viewRepliesCreatorThumbnail)}};
_.Yh.Object.defineProperties(uW.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var R,A;return this.endsInContinuation((R=this.data)==null?void 0:R.contents)||this.commentThreadingEnabled&&this.endsInContinuation((A=this.data)==null?void 0:A.subThreads)}}});
uW.prototype.isShowMoreChanged=uW.prototype.isShowMoreChanged;uW.prototype.isLoadingChanged=uW.prototype.isLoadingChanged;uW.prototype.triggerFirstContinuation=uW.prototype.triggerFirstContinuation;uW.prototype.dataChanged=uW.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],uW.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.cA),_.k("design:type",Object)],uW.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uW.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uW.prototype,"commentThreadingEnabled",void 0);_.C([_.S(),_.k("design:type",Boolean)],uW.prototype,"collapsed",void 0);
_.C([_.S(),_.k("design:type",Function)],uW.prototype,"toggleCollapsed",void 0);_.C([_.S(),_.k("design:type",Boolean)],uW.prototype,"isLoading",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],uW.prototype,"isShowRepliesVisible",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],uW.prototype,"useNewFormatting",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uW.prototype,"isWatchGrid",void 0);_.C([_.S(),_.k("design:type",Object)],uW.prototype,"buttonOverrides",void 0);
_.C([_.nG("#expander-contents"),_.k("design:type",HTMLElement)],uW.prototype,"expanderContents",void 0);_.C([_.nG("ytd-continuation-item-renderer"),_.k("design:type",Object)],uW.prototype,"continuationItemRenderer",void 0);_.C([_.nG("#contents"),_.k("design:type",HTMLElement)],uW.prototype,"contents",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uW.prototype,"dataChanged",null);
_.C([_.X("data.contents","data.subThreads.*"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],uW.prototype,"hasContinuation",null);_.C([_.Qa("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uW.prototype,"triggerFirstContinuation",null);_.C([_.vZ("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uW.prototype,"isLoadingChanged",null);
_.C([_.vZ("isShowRepliesVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uW.prototype,"isShowMoreChanged",null);_.C([_.F({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],uW);
_.B(uW,"ytd-comment-replies-renderer",function(){if(FQN!==void 0)return FQN;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[commentThreadingEnabled]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n          <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n          </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n<div hidden="[[!shouldShowCollapsedThreads(data.viewReplies, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n    <div class="threadline style-scope ytd-comment-replies-renderer">\n      <div class="connection style-scope ytd-comment-replies-renderer"></div>\n      <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n      <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n    </div>\n    <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n      <div class="show-replies-button style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n          <div id="creator-thumbnail" class="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-sub-thread" data="[[computeButtonRenderer(data.viewReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n<div hidden="[[!shouldShowExpandedThreads(data.subThreads, collapsed)]]" class="style-scope ytd-comment-replies-renderer">\n  <template is="dom-repeat" items="[[data.subThreads]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button$="[[computeIsContinuationItem(item)]]">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <template is="dom-if" if="[[computeThreadRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-comment-thread-renderer>\n        </template>\n        <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n          <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="" class="style-scope ytd-comment-replies-renderer">\n          </ytd-continuation-item-renderer>\n        </template>\n      </div>\n    </div>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <div class="sub-thread style-scope ytd-comment-replies-renderer" is-button="">\n      <div class="threadline style-scope ytd-comment-replies-renderer">\n        <div class="connection style-scope ytd-comment-replies-renderer"></div>\n        <div class="continuation style-scope ytd-comment-replies-renderer"></div>\n        <div class="shadow style-scope ytd-comment-replies-renderer"></div>\n      </div>\n      <div class="sub-thread-content style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-sub-thread" data="[[computeButtonRenderer(data.hideReplies)]]" overrides="[[buttonOverrides]]" on-click="handleIsShowLessTap" class="style-scope ytd-comment-replies-renderer">\n        </ytd-button-renderer>\n      </div>\n    </div>\n  </template>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return FQN=R},{mode:1});var w4f;var es=function(){var R=_.K.apply(this,arguments)||this;R.isOpen=!1;R.commentDialog=null;R.useSmallAvatars=_.v("small_avatars_for_comments");R.useSmallAvatarsEngagementPanelOnly=_.v("small_avatars_for_comments_ep");R.placeholderFocusListener=null;R.hasOpenedDialog=!1;R.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return R};
_.H(es,_.K);_.l=es.prototype;_.l.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]]"}}}}}};
_.l.ready=function(){var R=this,A=_.Mo(this.hostElement).querySelector("#placeholder-area"),Y=_.Mo(this.hostElement).querySelector("#simplebox-placeholder"),P=function(E){E.stopPropagation();E instanceof KeyboardEvent&&E.type==="keypress"&&E.keyCode!==13&&E.keyCode!==32||R.openDialog()};
this.placeholderFocusListener=P;Y.addEventListener("focus",this.placeholderFocusListener);A.addEventListener("tap",P);A.addEventListener("keypress",P)};
_.l.maybeRemoveFocusEventListener=function(){var R;(R=this.data)!=null&&R.prepareAccountEndpoint&&!_.v("web_comments_simplebox_modal_focus_on_tap_ks")&&(R=_.Mo(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(R.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.l.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.l.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.v("web_comment_simplebox_resolve_polymer_command_ks")?_.Qp.instance.resolveCommand(this.data.prepareAccountEndpoint):_.vc(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);R&&this.ytdOpenPopupBehavior.openPopup(R);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.Mo(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.l.onYtCommentboxDismiss=function(R){R.stopPropagation();this.isOpen=!1};
_.l.onCreateCommentAction=function(R){this.get("createCommentAction.contents",R)&&(this.isOpen=!1)};
_.l.computeCommentDialog=function(R){return{placeholderText:R.placeholderText,authorThumbnail:R.authorThumbnail,submitButton:R.submitButton,imageButton:R.imageButton,cancelButton:R.cancelButton,emojiButton:R.emojiButton,emojis:R.emojis,emojiPicker:R.emojiPicker,aadcGuidelinesStateEntityKey:R.aadcGuidelinesStateEntityKey,openAadcDialog:R.openAadcDialog,unicodeEmojisUrl:R.unicodeEmojisUrl}};
_.l.onHideIdentityChip=function(R){_.n(R,rAN)&&this.set("data.placeholderText",_.n(R,rAN).placeholderText)};
es.prototype.onYtCommentboxDismiss=es.prototype.onYtCommentboxDismiss;es.prototype.dataChanged=es.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],es.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],es.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],es.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],es.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],es.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],es.prototype,"isOpen",void 0);_.C([_.S(),_.k("design:type",Object)],es.prototype,"commentDialog",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],es.prototype,"engagementPanel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],es.prototype,"useSmallAvatars",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],es.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],es.prototype,"enableCreationBox",void 0);_.C([_.S(),_.k("design:type",Boolean)],es.prototype,"showCreateDialog",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],es.prototype,"dataChanged",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],es.prototype,"onYtCommentboxDismiss",null);_.C([_.F({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],es);
_.B(es,"ytd-comment-simplebox-renderer",function(){if(w4f!==void 0)return w4f;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return w4f=R},{mode:1});var ulA;_.bh("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var q8=function(){var R=_.K.apply(this,arguments)||this;R.addHoverEffect=_.v("swatcheroo_comments_hover_effect");R.useSmallAvatars=_.v("small_avatars_for_comments");R.threadHovered=!1;R.collapsed=!1;R.removed=!1;R.actionMap=R.configureActionMap();R.toggleCollapsed=function(){R.collapsed=!R.collapsed;R.collapsed&&_.v("web_comment_threading_scroll_on_collapse")&&_.OC(R.hostElement,"yt-scroll-to-watch-element",[R.commentElement])};
return R};
_.H(q8,_.K);_.l=q8.prototype;_.l.configureActionMap=function(){return _.v("web_delhi_comment_threads")?{"yt-create-comment-reply-action":"createCommentReplyAction","yt-remove-comment-action":"removeCommentAction","yt-ban-author-action":"banAuthorAction","yt-hide-reported-comment-action":"hideReportedCommentAction"}:{}};
_.l.createCommentReplyAction=function(R){R=_.n(R,nyA);if(R!=null&&R.contents){var A=R.replyToCommentId,Y=R.parentCommentId,P,E=(P=this.commentViewModel)==null?void 0:P.commentId;(E===A||E===Y&&!A)&&this.attachReply(R.contents)}};
_.l.attachReply=function(R){var A;((A=this.data)==null?0:A.replies)?(A=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+A+".continuationItemRenderer")?this.splice("data.replies.commentRepliesRenderer.subThreads",A,0,R):this.push("data.replies.commentRepliesRenderer.subThreads",R)):this.set("data.replies",{commentRepliesRenderer:{subThreads:[R]}})};
_.l.removeCommentAction=function(R){R=_.n(R,$l7);var A=R==null?void 0:R.commentId,Y;A&&((Y=this.commentViewModel)==null?void 0:Y.commentId)===A&&this.maybeRemoveComment(R.actionResult)};
_.l.banAuthorAction=function(R){R=_.n(R,vyq);var A=R==null?void 0:R.commentId,Y;A&&((Y=this.commentViewModel)==null?void 0:Y.commentId)===A&&this.maybeRemoveComment(R.actionResult)};
_.l.hideReportedCommentAction=function(R){R=_.n(R,oyb);var A=R==null?void 0:R.commentId,Y;A&&((Y=this.commentViewModel)==null?void 0:Y.commentId)===A&&this.maybeRemoveComment(R.actionResult)};
_.l.maybeRemoveComment=function(R){R&&R.status==="STATUS_SUCCEEDED"&&(this.feedbackText=R.feedbackText||_.iw("Comment removed"),this.removed=!0)};
_.l.onTap=function(R){if(this.addHoverEffect&&!this.engagementPanel&&!_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var A;((A=window.getSelection())==null?0:A.toString().length)||_.vc({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.l.attached=function(){var R=this,A;(A=this.commentThreadHitbox)==null||A.addEventListener("mouseover",function(){R.threadHovered=!0});
var Y;(Y=this.commentThreadHitbox)==null||Y.addEventListener("mouseout",function(){R.threadHovered=!1});
var P;(P=this.commentThreadHitbox)==null||P.addEventListener("click",function(){R.maybeToggleCollapsed()})};
_.l.maybeToggleCollapsed=function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.replies)==null?void 0:(Y=A.commentRepliesRenderer)==null?void 0:Y.subThreads;P&&(P.length===1&&_.n(P[0],_.eb)||this.toggleCollapsed())};
_.Yh.Object.defineProperties(q8.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)!=null&&R.commentViewModel)return _.n(this.data.commentViewModel,p$H)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return _.v("web_delhi_comment_threads")&&!!((R=this.data)==null?0:(A=R.replies)==null?0:(Y=A.commentRepliesRenderer)==null?0:Y.subThreads)}}});
q8.prototype.onTap=q8.prototype.onTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],q8.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],q8.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],q8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q8.prototype,"addHoverEffect",void 0);
_.C([_.S(),_.k("design:type",Object)],q8.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q8.prototype,"useSmallAvatars",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],q8.prototype,"isSubThread",void 0);_.C([_.nG(".thread-hitbox"),_.k("design:type",HTMLElement)],q8.prototype,"commentThreadHitbox",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q8.prototype,"threadHovered",void 0);
_.C([_.nG("#comment"),_.k("design:type",HTMLElement)],q8.prototype,"commentElement",void 0);_.C([_.S(),_.k("design:type",Object)],q8.prototype,"collapsed",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q8.prototype,"removed",void 0);_.C([_.S(),_.k("design:type",Object)],q8.prototype,"feedbackText",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],q8.prototype,"commentViewModel",null);
_.C([_.X("data.replies"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],q8.prototype,"hasSubThreading",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],q8.prototype,"engagementPanel",void 0);_.C([_.Qa("tap"),_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],q8.prototype,"onTap",null);_.C([_.F({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],q8);
_.B(q8,"ytd-comment-thread-renderer",function(){if(ulA!==void 0)return ulA;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer collapsed="[[collapsed]]" data="[[data.replies.commentRepliesRenderer]]" toggle-collapsed="[[toggleCollapsed]]" class="style-scope ytd-comment-thread-renderer">\n    </ytd-comment-replies-renderer>\n  </template>\n</div>\n<div class="thread-hitbox style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"></div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ulA=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var ejA;var L5=function(){var R=_.K.apply(this,arguments)||this;R.modernTypography=_.v("web_modern_typography");R.compactHeader=_.v("web_watch_compact_comments_header");R.hidePanelButton=!1;R.isPostSchedulingEnabled=_.v("enable_post_scheduling");R.hasFinishedStamping=!1;R.JSC$15899_handleOpenPostCommentDialogActionAfterStamp=!1;R.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return R};
_.H(L5,_.K);_.l=L5.prototype;
_.l.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"}}}};
_.l.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.l.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$15899_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.l.onYtServiceRequestSent=function(R,A){if(!_.v("kevlar_command_handler")&&A.actions)for(R=0;R<A.actions.length;R++){var Y=A.actions[R];_.n(Y,wsE)&&_.Mo(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.n(Y,wsE))}};
_.l.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var R;if(this.getPrefilledBackstagePostDialog((R=this.data)==null?void 0:R.actions)){_.Mo(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var A=_.Mo(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;A&&_.RK(this,function(){A.focus();A.openDialog&&A.openDialog()})}}else this.hasActionsChange=!0};
_.l.computeIsBackstage=function(R){return R};
_.l.onYtCommentboxDismiss=function(){_.Mo(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.l.removePrefilledDialog=function(R){if(R==null?0:R.actions){for(var A=R.actions.length-1;A>=0;A--){var Y=void 0;((Y=_.n(R.actions[A],dYq))==null?0:Y.dialog)&&delete R.actions[A]}this.set("data",void 0);this.set("data",R)}};
_.l.getPrefilledBackstagePostDialog=function(R){if(R)for(var A=0;A<R.length;A++){var Y=R[A],P=void 0;if((P=_.n(Y,dYq))==null?0:P.dialog)return _.n(Y,dYq).dialog}return null};
_.l.computeBackstagePostDialog=function(R){return R&&(this.getPrefilledBackstagePostDialog(R.actions)||R.createRenderer)};
_.l.dataChanged=function(){if(this.data){var R=this.data.customEmojis,A=this.data.unicodeEmojisUrl;_.cw.clear();A&&_.wIz(_.cw,A);R&&_.cw.load(R)}};
_.l.handleSignalActionOpenPostCommentDialogAction=function(){var R=_.Mo(this.hostElement).querySelector("ytd-comment-simplebox-renderer");R?R.openDialog():this.JSC$15899_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Yh.Object.defineProperties(L5.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.v("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E,z,c;return!this.hidePanelButton&&_.v("kevlar_watch_comments_panel_button")&&((c=_.n((R=this.data)==null?void 0:(A=R.sortMenu)==null?void 0:(Y=A.sortFilterSubMenuRenderer)==null?void 0:(P=Y.subMenuItems)==null?void 0:(E=P[0])==null?void 0:(z=E.serviceEndpoint)==null?void 0:z.commandMetadata,_.Ti))==null?void 0:c.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.vk("MINIPLAYER_EXPAND_LABEL"),text:_.dF(_.vk("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
L5.prototype.dataChanged=L5.prototype.dataChanged;L5.prototype.onYtCommentboxDismiss=L5.prototype.onYtCommentboxDismiss;L5.prototype.observePrefilledBackstagePostDialog=L5.prototype.observePrefilledBackstagePostDialog;L5.prototype.onYtServiceRequestSent=L5.prototype.onYtServiceRequestSent;L5.prototype.onStampFinished=L5.prototype.onStampFinished;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],L5.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],L5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],L5.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L5.prototype,"modernTypography",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L5.prototype,"compactHeader",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],L5.prototype,"engagementPanel",void 0);_.C([_.S(),_.k("design:type",Object)],L5.prototype,"hidePanelButton",void 0);_.C([_.S({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.k("design:type",Boolean)],L5.prototype,"isBackstage",void 0);_.C([_.S({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.k("design:type",Object)],L5.prototype,"backstagePostDialog",void 0);
_.C([_.S(),_.k("design:type",Object)],L5.prototype,"isPostSchedulingEnabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data","showCommentsPanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],L5.prototype,"useSpaceBetween",null);_.C([_.S({reflectToAttribute:!0}),_.X("data","hidePanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],L5.prototype,"showCommentsPanelButton",null);
_.C([_.X("data","showCommentsPanelButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],L5.prototype,"commentsPanelButtonData",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L5.prototype,"onStampFinished",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],L5.prototype,"onYtServiceRequestSent",null);
_.C([_.vZ("data.actions"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L5.prototype,"observePrefilledBackstagePostDialog",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],L5.prototype,"onYtCommentboxDismiss",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L5.prototype,"dataChanged",null);
_.C([_.F({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],L5);
_.B(L5,"ytd-comments-header-renderer",function(){if(ejA!==void 0)return ejA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ejA=R},{mode:1});var qnE;var dC=function(){return _.K.apply(this,arguments)||this};
_.H(dC,_.K);_.C([_.S(),_.k("design:type",Object)],dC.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dC.prototype,"ytRendererBehavior",void 0);_.C([_.F({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],dC);
_.B(dC,"ytd-destination-button-renderer",function(){if(qnE!==void 0)return qnE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qnE=R},{mode:1});var LQZ;var Ri=function(){var R=_.K.apply(this,arguments)||this;R.isRichGrid=!1;R.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};R.modernTypography=_.v("web_modern_typography");return R};
_.H(Ri,_.K);_.l=Ri.prototype;_.l.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.l.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.l.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.l.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var R;if((R=this.data)==null||!R.isExpanded){R=this.hostElement.clientWidth;var A;if(R&&(A=this.data)!=null&&A.destinationButtons){A=Math.floor((R+4)/214);R=this.data.destinationButtons.length;var Y=Math.ceil(R/A);this.fullyVisibleRows=R%A===1&&Y===2?1:Math.min(Y,2);this.isShowMoreVisible=this.fullyVisibleRows<Y}}}};
_.l.updateRichGridDestinationButtonsVisibility=function(){var R,A;if(this.isRichGrid&&((R=this.data)==null||!R.isExpanded)&&(A=this.data)!=null&&A.destinationButtons){R=this.richGridItemsPerRow+1;A=this.data.destinationButtons.length;var Y=Math.ceil(A/R);this.fullyVisibleRows=A%R===1&&Y===2?1:Math.min(Y,2);this.isShowMoreVisible=this.fullyVisibleRows<Y}};
_.l.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Ri.prototype.updateRichGridDestinationButtonsVisibility=Ri.prototype.updateRichGridDestinationButtonsVisibility;_.C([_.S(),_.k("design:type",Object)],Ri.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Number)],Ri.prototype,"fullyVisibleRows",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ri.prototype,"isShowMoreVisible",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ri.prototype,"isRichGrid",void 0);
_.C([_.S({selector:_.FE,value:0}),_.k("design:type",Number)],Ri.prototype,"richGridItemsPerRow",void 0);_.C([_.S(),_.k("design:type",Object)],Ri.prototype,"gridStateActionMap",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ri.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ri.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ri.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Ri.prototype,"ytdReduxBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ri.prototype,"modernTypography",void 0);_.C([_.vZ("data","richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ri.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.C([_.F({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],Ri);
_.B(Ri,"ytd-destination-shelf-renderer",function(){if(LQZ!==void 0)return LQZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return LQZ=R},{mode:1});var ds7;var AK=function(){return _.K.apply(this,arguments)||this};
_.H(AK,_.K);AK.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],AK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],AK.prototype,"data",void 0);_.C([_.F({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],AK);
_.B(AK,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ds7!==void 0)return ds7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ds7=R},{mode:1});var RLD;var Y8=function(){var R=_.K.apply(this,arguments)||this;R.disableAnimation=!1;R.isSlimlineSurvey=!1;R.isSlimlineSurveyFollowUp=!1;R.isShortsStyle=!1;return R};
_.H(Y8,_.K);Y8.prototype.onTap=function(R){R.preventDefault();this.data&&_.xo(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Yh.Object.defineProperties(Y8.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 R,A,Y,P,E;return((R=this.data)==null?0:R.checked)?(A=this.data)==null?void 0:(Y=A.onStateIcon)==null?void 0:Y.iconType:(P=this.data)==null?void 0:(E=P.defaultStateIcon)==null?void 0:E.iconType}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Y8.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Y8.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Y8.prototype,"disableAnimation",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Y8.prototype,"isSlimlineSurvey",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Y8.prototype,"isSlimlineSurveyFollowUp",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Y8.prototype,"isShortsStyle",void 0);_.C([_.X("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Y8.prototype,"isAnimatedIcon",null);
_.C([_.X("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Number),_.k("design:paramtypes",[])],Y8.prototype,"iconSize",null);_.C([_.X("isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Y8.prototype,"isDarkTheme",null);_.C([_.X("data.checked"),_.k("design:type",Object),_.k("design:paramtypes",[])],Y8.prototype,"icon",null);_.C([_.F({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],Y8);
_.B(Y8,"ytd-rating-survey-option-renderer",function(){if(RLD!==void 0)return RLD;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return RLD=R},{mode:2});var AGb;var P8=function(){var R=_.K.apply(this,arguments)||this;R.firstResponseText=null;R.lastResponseText=null;R.selectedNonStarOption=null;R.hideOptions=!1;R.hideUndoButton=!0;R.disableAnimation=!1;R.showResponseRangeText=!1;R.selectedRatingIndex=-1;R.isSlimlineSurvey=!1;R.isSlimlineSurveyFollowUp=!1;R.isShortsStyle=!1;R.slimlineSurveyRatingSelectedIndex=-1;return R};
_.H(P8,_.K);_.l=P8.prototype;_.l.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.l.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.l.onOptionChange=function(R,A){var Y=this;R=A.onStateIcon&&A.defaultStateIcon&&A.onStateIcon.iconType===A.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(c,M){c.responseText===A.responseText?Y.isSlimlineSurvey?(Y.selectedRatingIndex=M,Y.ytdReduxBehavior.dispatch(k1E(M))):(Y.setSurveyOptionValue(M,!0,"checked"),Y.setSurveyOptionValue(M,!0,"selected")):(Y.setSurveyOptionValue(M,!1,"checked"),Y.setSurveyOptionValue(M,
!1,"selected"))});
else if(R)this.selectedNonStarOption=A,this.hideOptions=!0;else{var P=this.ytRendererBehavior.getSimpleString(A.responseText),E=!0;this.getOptionRenderers().forEach(function(c,M){Y.setSurveyOptionValue(M,E,"checked");Y.setSurveyOptionValue(M,!1,"selected");Y.ytRendererBehavior.getSimpleString(c.responseText)===P&&(E=!1,Y.setSurveyOptionValue(M,!0,"selected"))})}R=A.responseEndpoint;
var z;A.followUpCommand&&(z=_.n(A.followUpCommand,ddS));this.isSlimlineSurvey?(this.resetComponent(),_.OC(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.OC(this.hostElement,"ytd-inline-survey-rating-select-action",[R,z])};
_.l.showSelectedOption=function(){var R=this;_.fn.addJob(function(){var A=R.getOptionRenderers()[R.slimlineSurveyRatingSelectedIndex];R.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),A)},8,100)};
_.l.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(R){var A;return(A=_.n(R,AHS))!=null?A:{}}):[]};
_.l.onUndoClick=function(){this.resetComponent();_.OC(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.l.setSurveyOptionValue=function(R,A,Y){this.notifyPath("data.ratings."+R+".ratingSurveyOptionRenderer."+Y);this.set("data.ratings."+R+".ratingSurveyOptionRenderer."+Y,A)};
_.l.resetComponent=function(){var R=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var A=this.getOptionRenderers(),Y,P;this.firstResponseText=(P=(Y=A[0])==null?void 0:Y.responseText)!=null?P:null;var E,z;this.lastResponseText=(z=(E=A[A.length-1])==null?void 0:E.responseText)!=null?z:null;A.forEach(function(c,M){R.setSurveyOptionValue(M,!1,"checked");R.setSurveyOptionValue(M,!1,"selected")})};
_.Yh.Object.defineProperties(P8.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
P8.prototype.onOptionChange=P8.prototype.onOptionChange;P8.prototype.dataChanged=P8.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],P8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],P8.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],P8.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],P8.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],P8.prototype,"firstResponseText",void 0);_.C([_.S(),_.k("design:type",Object)],P8.prototype,"lastResponseText",void 0);_.C([_.S(),_.k("design:type",Object)],P8.prototype,"selectedNonStarOption",void 0);_.C([_.S(),_.k("design:type",Object)],P8.prototype,"hideOptions",void 0);_.C([_.S(),_.k("design:type",Object)],P8.prototype,"hideUndoButton",void 0);_.C([_.S(),_.k("design:type",Object)],P8.prototype,"disableAnimation",void 0);
_.C([_.S(),_.k("design:type",Object)],P8.prototype,"showResponseRangeText",void 0);_.C([_.S(),_.k("design:type",Object)],P8.prototype,"selectedRatingIndex",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],P8.prototype,"isSlimlineSurvey",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],P8.prototype,"isSlimlineSurveyFollowUp",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],P8.prototype,"isShortsStyle",void 0);_.C([_.S({selector:function(R){return R.ui.slimlineSurveyRatingSelectedIndex}}),
_.k("design:type",Object)],P8.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.C([_.X("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],P8.prototype,"isSingleSelect",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],P8.prototype,"dataChanged",null);
_.C([_.Qa("ytd-rating-survey-option-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],P8.prototype,"onOptionChange",null);_.C([_.F({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],P8);
_.B(P8,"ytd-rating-survey-renderer",function(){if(AGb!==void 0)return AGb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return AGb=R},{mode:1});var YL7;var Ppz;var EAA;var fyP=(Jm.FIRSTDAYOFWEEK+1)%7,zLS=function(R,A,Y,P){var E="";if(P.selection&&KVk(P.selection))sr(R,P.selection)&&(E+=" selected");else if(P.selection&&WV8(P.selection)){var z=P.selection.selectionState||"START_DATE";sr(R,P.selection.start)&&(E+=" period-start ",z==="START_DATE"&&(E+="selected"));sr(R,P.selection.end)&&(E+=" period-end ",z==="END_DATE"&&(E+="selected"));Nh(R,P.selection.start)||Nh(P.selection.end,R)||(E+=" highlighted")}if(Nh(A,P.start)||Nh(P.end,A))E+=" disabled";P.circleToday&&
sr(A,Y)&&(E+=" today");return E};var EY=function(){return _.K.apply(this,arguments)||this};
_.H(EY,_.K);_.l=EY.prototype;_.l.attached=function(){var R=this;_.RK(this,function(){R.JSC$15933_calendarMain.scrollHeight>0&&(R.calendarConfig.selection?R.scrollToDate(jlu(R.calendarConfig.selection)):R.scrollToDate(R.calendarConfig.end))})};
_.l.updateSelection=function(R){R=pBJ(Object.assign({},this.calendarConfig,{selection:R}),zLS);this.splice.apply(this,["renderData.months",0,R.length].concat(_.py(R)))};
_.l.scrollToDate=function(R){this.renderData&&(R=FVP(R,this.renderData),R!==void 0&&this.JSC$15933_calendarMain.scrollToIndex(R))};
_.l.scrollToNextMonth=function(){this.JSC$15933_calendarMain.scrollToIndex(this.JSC$15933_calendarMain.firstVisibleIndex+1)};
_.l.scrollToPrevMonth=function(){this.JSC$15933_calendarMain.firstVisibleIndex===0&&this.JSC$15933_calendarMain.scrollTo(0,0);this.JSC$15933_calendarMain.scrollToIndex(this.JSC$15933_calendarMain.firstVisibleIndex-1)};
_.l.handleDayClick=function(R){_.OC(this.hostElement,"ytd-calendar-date-clicked",[R.model.day.date])};
_.l.handleDayMouseDown=function(R){R.preventDefault();_.OC(this.hostElement,"ytd-calendar-date-mousedown",[R.model.day.date])};
_.l.handleDayMouseUp=function(R){_.OC(this.hostElement,"ytd-calendar-date-mouseup",[R.model.day.date])};
_.l.handleDayMouseEnter=function(R){R.preventDefault();_.OC(this.hostElement,"ytd-calendar-date-mouseenter",[R.model.day.date])};
_.l.handleDayMouseLeave=function(R){_.OC(this.hostElement,"ytd-calendar-date-mouseleave",[R.model.day.date])};
_.Yh.Object.defineProperties(EY.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var R=this.calendarConfig,A=zLS;A=A===void 0?zLS:A;for(var Y=[],P=0;P<7;P++)Y.push(Jm.NARROWWEEKDAYS[(P+fyP)%7]);return{months:pBJ(R,A),daysOfWeekLabel:Y}}}});
_.C([_.S(),_.k("design:type",Object)],EY.prototype,"calendarConfig",void 0);_.C([_.nG("#calendar-main"),_.k("design:type",Object)],EY.prototype,"JSC$15933_calendarMain",void 0);_.C([_.X("calendarConfig"),_.k("design:type",Object),_.k("design:paramtypes",[])],EY.prototype,"renderData",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],EY);
_.B(EY,"ytd-scrollable-calendar",function(){if(EAA!==void 0)return EAA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return EAA=R},{mode:2});var ikS;var l3Z;var zK=function(){var R=_.K.apply(this,arguments)||this;R.hideCharCounter=!1;R.hideLabel=!1;R.noLabelFloat=!1;R.autoValidate=!0;R.invalid=!1;R.disabled=!1;R.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return R};
_.H(zK,_.K);_.l=zK.prototype;_.l.reset=function(R){this.value=R&&this.data?this.data.value=R:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.l.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.l.focusTextInput=function(){this.input.focus()};
_.l.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()};
_.l.valueChanged=function(){var R,A;if(((R=this.data)==null?0:R.value)||((A=this.data)==null?void 0:A.value)==="")this.value=this.data.value;else{var Y;((Y=this.data)==null?void 0:Y.value)!==void 0||this.value||(this.value="")}};
_.l.computeLabel=function(R,A){return A?"":_.R4(R)};
_.l.computeAriaLabel=function(R,A){return A?_.R4(R):""};
_.l.computeErrorMessage=function(R,A,Y,P){!R&&A?R=Y||this.strings.REQUIRED_LABEL:(R=_.R4(P),R=_.O6(R,"&")?"document"in _.P3?fID(R):p3q(R):R);return R};
_.l.computeType=function(R){return R==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.l.onTextValueChanged=function(R){this.value=R.detail.value;var A;(A=this.onValueChanged)==null||A.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.l.handleUpdateTextInputFormFieldRendererCommand=function(R){(R=_.n(R,vP7))&&this.data&&this.data.id===R.id&&(R.invalid!==void 0&&(this.invalid=R.invalid),R.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",R.invalidValueErrorMessage))};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("value-changed",this.value))};
_.l.updateInvalidFromBinding=function(R){this.invalid=R.detail.value};
_.Yh.Object.defineProperties(zK.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var R;return!((R=this.data)==null||!R.isMultiline)}}});
zK.prototype.valueChangedForBinding=zK.prototype.valueChangedForBinding;zK.prototype.valueChanged=zK.prototype.valueChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],zK.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],zK.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],zK.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],zK.prototype,"value",void 0);_.C([_.S(),_.k("design:type",String)],zK.prototype,"pattern",void 0);_.C([_.S(),_.k("design:type",String)],zK.prototype,"errorMessage",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],zK.prototype,"componentStyle",void 0);_.C([_.S(),_.k("design:type",Object)],zK.prototype,"hideCharCounter",void 0);
_.C([_.S(),_.k("design:type",Object)],zK.prototype,"hideLabel",void 0);_.C([_.S(),_.k("design:type",Object)],zK.prototype,"noLabelFloat",void 0);_.C([_.S(),_.k("design:type",Function)],zK.prototype,"onValueChanged",void 0);_.C([_.S(),_.k("design:type",Boolean)],zK.prototype,"isMultilineOverride",void 0);_.C([_.S(),_.k("design:type",Object)],zK.prototype,"autoValidate",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zK.prototype,"invalid",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zK.prototype,"disabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],zK.prototype,"enableOverlayTheme",void 0);_.C([_.S({value:{REQUIRED_LABEL:_.vk("REQUIRED_LABEL",void 0,"Required")}}),_.k("design:type",Object)],zK.prototype,"strings",void 0);_.C([_.nG("#input"),_.k("design:type",Object)],zK.prototype,"input",void 0);
_.C([_.X("data","isMultilineOverride"),_.k("design:type",Object),_.k("design:paramtypes",[])],zK.prototype,"isMultiline",null);_.C([_.Ul("data.value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zK.prototype,"valueChanged",null);_.C([_.vZ("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zK.prototype,"valueChangedForBinding",null);_.C([_.CG({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],zK);
_.B(zK,"yt-text-input-form-field-renderer",function(){if(l3Z===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" disabled="[[disabled]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;ikS===void 0&&(ikS=document.createElement("template"));var P=ikS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);l3Z=R}R=l3Z;return R},{mode:2});var i2=function(){var R=_.K.apply(this,arguments)||this;R.data=void 0;R.selectionState="START_DATE";R.isStartDateInvalid=!1;R.isEndDateInvalid=!1;R.autoapply=!1;R.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 R};
_.H(i2,_.K);_.l=i2.prototype;_.l.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"}}}}};
_.l.focus=function(){this.startDateInput.focus()};
_.l.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:Vh(this.data.selection.start),end:Vh(this.data.selection.end)})};
_.l.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.kZ(this.selectionState)}};
_.l.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.l.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.l.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.l.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var R=this.calendar.calendarConfig,A=R.end;R=ay3({start:R.start,end:this.endDate||A},this.startDateInput.value||"");this.isStartDateInvalid=!R.isValid;R.isValid&&(R=R.value,this.selection=this.endDate?{start:R,end:this.endDate}:R,this.calendar.scrollToDate(R));this.updateInvalidState()}};
_.l.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var R=this.calendar.calendarConfig,A=R.start;R=ay3({start:this.startDate||A,end:R.end},this.endDateInput.value||"");this.isEndDateInvalid=!R.isValid;R.isValid&&(R=R.value,this.selection={start:this.startDate,end:R},this.calendar.scrollToDate(R));this.updateInvalidState()}};
_.l.handleCalendarDateClicked=function(R){var A=this.selection&&jlu(this.selection),Y=this.selection&&b3k(this.selection);A&&!Nh(R,A)&&this.selectionState==="END_DATE"?(this.selection={start:A,end:R},this.selectionState="START_DATE"):(Y&&!Nh(Y,R)?this.selection={start:R,end:Y}:this.selection=R,this.selectionState="END_DATE")};
_.l.handleCalendarDateMouseDown=function(R){this.selection&&!KVk(this.selection)&&(this.dragPivot=sr(R,this.selection.start)?this.selection.end:sr(R,this.selection.end)?this.selection.start:R)};
_.l.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.l.handleCalendarDateMouseEnter=function(R){this.dragPivot&&(this.selection={start:function(A,Y){return Nh(A,Y)?A:Y}(this.dragPivot,R),
end:function(A,Y){return Nh(A,Y)?Y:A}(this.dragPivot,R)},this.dragPivot||(this.selectionState="START_DATE"))};
_.l.handleCalendarDateMouseLeave=function(){};
_.l.handleCalendarSubmitDateRange=function(){this.selection&&!KVk(this.selection)&&_.OC(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.l.updateInvalidState=function(){var R=function(A,Y){Y?A.setAttribute("invalid",""):A.removeAttribute("invalid")};
R(this.startDateInput,this.isStartDateInvalid);R(this.endDateInput,this.isEndDateInvalid)};
_.l.updateDateStrings=function(){this.selection&&(KVk(this.selection)?Iy6(this.selection):(Iy6(this.selection.start),Iy6(this.selection.end)))};
_.l.updateCalendarSelection=function(R){this.calendar.updateSelection(Object.assign({},R,{selectionState:this.selectionState}))};
_.l.updateIsStartDateInvalidFromBinding=function(R){this.isStartDateInvalid=R.detail.value};
_.l.updateIsEndDateInvalidFromBinding=function(R){this.isEndDateInvalid=R.detail.value};
_.l.updateStartDateStringFromBinding=function(){};
_.l.updateEndDateStringFromBinding=function(){};
_.Yh.Object.defineProperties(i2.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:Vh(this.data.dateRangeStart),end:Vh(this.data.dateRangeEnd),selection:{start:Vh(this.data.selection.start),end:Vh(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&jlu(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&b3k(this.selection)}}});
i2.prototype.resetTextboxes=i2.prototype.resetTextboxes;i2.prototype.observeSelection=i2.prototype.observeSelection;i2.prototype.dataChanged=i2.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],i2.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],i2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("#calendar"),_.k("design:type",Object)],i2.prototype,"calendar",void 0);
_.C([_.nG("#start-date"),_.k("design:type",Object)],i2.prototype,"startDateInput",void 0);_.C([_.nG("#end-date"),_.k("design:type",Object)],i2.prototype,"endDateInput",void 0);_.C([_.S(),_.k("design:type",Object)],i2.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],i2.prototype,"selection",void 0);_.C([_.S(),_.k("design:type",String)],i2.prototype,"selectionState",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],i2.prototype,"calendarConfig",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],i2.prototype,"errorMessage",null);_.C([_.X("selection"),_.k("design:type",Object),_.k("design:paramtypes",[])],i2.prototype,"startDate",null);_.C([_.X("selection"),_.k("design:type",Object),_.k("design:paramtypes",[])],i2.prototype,"endDate",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i2.prototype,"dataChanged",null);
_.C([_.vZ("selection","selectionState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i2.prototype,"observeSelection",null);_.C([_.vZ("selectionState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],i2.prototype,"resetTextboxes",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],i2);
_.B(i2,"ytd-date-period-picker-renderer",function(){if(Ppz!==void 0)return Ppz;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Ppz=R},{mode:1});var l2=function(){var R=_.K.apply(this,arguments)||this;var A={};R.actionMap=(A["ytd-date-period-picker-apply"]="handleDateRangeUpdated",A);return R};
_.H(l2,_.K);l2.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
l2.prototype.handleDateRangeUpdated=function(){};
_.C([_.S(),_.k("design:type",Object)],l2.prototype,"data",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],l2.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],l2.prototype,"rendererstamperBehavior",void 0);_.C([_.F({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],l2);
_.B(l2,"ytd-report-history-section-header-renderer",function(){if(YL7!==void 0)return YL7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return YL7=R},{mode:1});var xSH;var cGq;var OkH;var x8=function(){return _.K.apply(this,arguments)||this};
_.H(x8,_.K);_.Yh.Object.defineProperties(x8.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?0:(A=R.icon)==null?0:A.iconType)?_.m0(this.data.icon.iconType):""}}});
_.C([_.S(),_.k("design:type",Object)],x8.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],x8.prototype,"icon",null);_.C([_.F({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],x8);
_.B(x8,"ytd-report-history-table-text-cell-renderer",function(){if(OkH!==void 0)return OkH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return OkH=R},{mode:1});var c8=function(){return _.K.apply(this,arguments)||this};
_.H(c8,_.K);c8.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],c8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],c8.prototype,"data",void 0);_.C([_.F({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],c8);
_.B(c8,"ytd-report-history-table-reason-cell-renderer",function(){if(cGq!==void 0)return cGq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return cGq=R},{mode:1});var OY=function(){return _.K.apply(this,arguments)||this};
_.H(OY,_.K);OY.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"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],OY.prototype,"rendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],OY.prototype,"data",void 0);_.C([_.F({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],OY);
_.B(OY,"ytd-report-history-table-cell-renderer",function(){if(xSH!==void 0)return xSH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return xSH=R},{mode:1});var MjS;var Mt=function(){var R=_.K.apply(this,arguments)||this;R.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 R};
_.H(Mt,_.K);Mt.prototype.onDataChanged=function(){var R;if((R=this.data)==null?0:R.style)this.componentStyle=this.getStyleName(this.data.style)};
Mt.prototype.getCellForColumn=function(R){return this.cells.find(function(A){var Y;return((Y=_.n(A==null?void 0:A.cell,EkD)||_.n(A==null?void 0:A.cell,PUE))==null?void 0:Y.columnId)===R.type})};
Mt.prototype.getClassForColumn=function(R){switch(R){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Mt.prototype.getStyleName=function(R){switch(R){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Yh.Object.defineProperties(Mt.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.cells)||[]).map(function(A){return _.n(A,Y0H)})}}});
Mt.prototype.onDataChanged=Mt.prototype.onDataChanged;_.C([_.S(),_.k("design:type",Object)],Mt.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Array)],Mt.prototype,"columnRenderData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],Mt.prototype,"componentStyle",void 0);_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],Mt.prototype,"cells",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mt.prototype,"onDataChanged",null);_.C([_.F({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Mt);
_.B(Mt,"ytd-report-history-table-row-renderer",function(){if(MjS!==void 0)return MjS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return MjS=R},{mode:1});var s0f;var NVz;var C7k={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},h7q={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var sY=function(){return _.K.apply(this,arguments)||this};
_.H(sY,_.K);sY.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"}}}}}};
sY.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Yh.Object.defineProperties(sY.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.columns)?tCV(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Ghb(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var R=this.tableSpec,A=C7k;A=A===void 0?h7q:A;A=Z3k(R.columnDimensions,R.columnsToShow||[],A);R=0;A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,R+=Y.minWidth+Y.paddingLeft+Y.paddingRight;return R}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.C([_.U(_.cA),_.k("design:type",Object)],sY.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sY.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sY.prototype,"tableSpec",null);_.C([_.X("tableSpec"),_.k("design:type",Array),_.k("design:paramtypes",[])],sY.prototype,"columnRenderData",null);
_.C([_.X("tableSpec"),_.k("design:type",Number),_.k("design:paramtypes",[])],sY.prototype,"totalMinWidth",null);_.C([_.X("totalMinWidth"),_.k("design:type",String),_.k("design:paramtypes",[])],sY.prototype,"tableWidthStyle",null);_.C([_.F({is:"ytd-table-renderer",disableElementRegistration:!0})],sY);
_.B(sY,"ytd-table-renderer",function(){if(NVz!==void 0)return NVz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return NVz=R},{mode:1});var Nt=function(){return _.K.apply(this,arguments)||this};
_.H(Nt,_.K);Nt.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}}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Nt.prototype,"data",void 0);_.C([_.F({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Nt);
_.B(Nt,"ytd-report-reason-history-modal-renderer",function(){if(s0f!==void 0)return s0f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return s0f=R},{mode:1});var VjD;var JG8;var yGA;var VZ=function(){return _.K.apply(this,arguments)||this};
_.H(VZ,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],VZ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],VZ.prototype,"data",void 0);_.C([_.F({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],VZ);
_.B(VZ,"ytd-profile-column-stats-entry-renderer",function(){if(yGA!==void 0)return yGA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return yGA=R},{mode:1});var mSG;var JK=function(){return _.K.apply(this,arguments)||this};
_.H(JK,_.K);JK.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],JK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],JK.prototype,"data",void 0);_.C([_.F({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],JK);
_.B(JK,"ytd-profile-column-stats-renderer",function(){if(mSG!==void 0)return mSG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return mSG=R},{mode:1});var TVb;var yZ=function(){return _.K.apply(this,arguments)||this};
_.H(yZ,_.K);_.Yh.Object.defineProperties(yZ.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.useThumbnailSize)return 80;var A,Y;R=(A=this.data)==null?void 0:(Y=A.thumbnail)==null?void 0:Y.thumbnails;var P;return R&&((P=R[0])==null?void 0:P.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.useThumbnailSize)return 80;var A,Y;R=(A=this.data)==null?void 0:(Y=A.thumbnail)==null?void 0:Y.thumbnails;var P;return R&&((P=R[0])==null?void 0:P.height)||80}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yZ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],yZ.prototype,"componentStyle",void 0);_.C([_.X("data.useThumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],yZ.prototype,"thumbnailWidth",null);
_.C([_.X("data.useThumbnailSize"),_.k("design:type",Object),_.k("design:paramtypes",[])],yZ.prototype,"thumbnailHeight",null);_.C([_.F({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],yZ);
_.B(yZ,"ytd-profile-column-user-info-renderer",function(){if(TVb!==void 0)return TVb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return TVb=R},{mode:1});var mj=function(){return _.K.apply(this,arguments)||this};
_.H(mj,_.K);mj.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]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mj.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],mj.prototype,"componentStyle",void 0);_.C([_.F({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],mj);
_.B(mj,"ytd-profile-column-renderer",function(){if(JG8!==void 0)return JG8;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return JG8=R},{mode:1});var TK=function(){var R=_.K.apply(this,arguments)||this;R.componentStyle="NON_CENTERED_PROFILE";return R};
_.H(TK,_.K);TK.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
TK.prototype.getIcon=function(R){return R?"settings:"+R.toLowerCase():null};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],TK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],TK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],TK.prototype,"data",void 0);_.C([_.F({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],TK);
_.B(TK,"ytd-page-introduction-renderer",function(){if(VjD!==void 0)return VjD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return VjD=R},{mode:1});var Q0S;var QZ=function(){return _.K.apply(this,arguments)||this};
_.H(QZ,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],QZ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],QZ.prototype,"data",void 0);_.C([_.F({is:"ytd-report-description-renderer",disableElementRegistration:!0})],QZ);
_.B(QZ,"ytd-report-description-renderer",function(){if(Q0S!==void 0)return Q0S;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Q0S=R},{mode:1});var vA7;var gAG;var g9=function(){return _.K.apply(this,arguments)||this};
_.H(g9,_.K);g9.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],g9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],g9.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],g9.prototype,"data",void 0);_.C([_.F({is:"ytd-video-report-renderer",disableElementRegistration:!0})],g9);
_.B(g9,"ytd-video-report-renderer",function(){if(gAG!==void 0)return gAG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gAG=R},{mode:1});var nA8;_.bh("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.bh("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var nI=function(){return _.K.apply(this,arguments)||this};
_.H(nI,_.K);nI.prototype.configureRendererStamper=function(){return{"data.button":{id:"message-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.icon":{id:"icon",mapping:{iconType:{component:"yt-icon",properties:{icon:"[[data.icon.iconType]]"}}}},"data.thumbnail":{id:"thumbnail",mapping:{messageThumbnailRenderer:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail.messageThumbnailRenderer.thumbnailDetails]]"}}}}}};
nI.prototype.computeMessageStyle=function(R){return R};
nI.prototype.computeButtonOverride=function(R){var A;if((R==null?0:(A=R.style)==null?0:A.value)&&R.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nI.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],nI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nI.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],nI.prototype,"shelf",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],nI.prototype,"panel",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.k("design:type",Boolean)],nI.prototype,"componentStyle",void 0);_.C([_.S({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],nI.prototype,"buttonOverride",void 0);_.C([_.F({is:"ytd-message-renderer",disableElementRegistration:!0})],nI);
_.B(nI,"ytd-message-renderer",function(){if(nA8!==void 0)return nA8;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<div id="thumbnail" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return nA8=R},{mode:1});var H8=function(){return _.K.apply(this,arguments)||this};
_.H(H8,_.K);H8.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"}}}};
H8.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
H8.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Yh.Object.defineProperties(H8.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var R,A;return!!(((R=this.data)==null?0:R.header)&&((A=this.data)==null?0:A.table))}}});
H8.prototype.onRequestError=H8.prototype.onRequestError;_.C([_.U(_.cA),_.k("design:type",Object)],H8.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],H8.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],H8.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],H8.prototype,"data",void 0);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],H8.prototype,"isUnifiedReportHistory",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H8.prototype,"onRequestError",null);_.C([_.F({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],H8);
_.B(H8,"ytd-report-history-section-renderer",function(){if(vA7!==void 0)return vA7;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return vA7=R},{mode:1});var HkA;var r9=function(){var R=_.K.apply(this,arguments)||this;R.answerExpanded=!1;return R};
_.H(r9,_.K);r9.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],r9.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],r9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],r9.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],r9.prototype,"answerExpanded",void 0);_.C([_.F({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],r9);
_.B(r9,"ytd-handles-claiming-faq-renderer",function(){if(HkA!==void 0)return HkA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return HkA=R},{mode:1});var rGZ;var DSG=function(){return _.K.apply(this,arguments)||this};
_.H(DSG,_.K);_.C([_.S(),_.k("design:type",Object)],DSG.prototype,"data",void 0);_.C([_.F({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],DSG);
_.B(DSG,"ytd-handles-claiming-faq-section-renderer",function(){if(rGZ!==void 0)return rGZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return rGZ=R},{mode:1});var USb;var DJ=function(){var R=_.K.apply(this,arguments)||this;R.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";R.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";R.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";R.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";R.leftSquiggly=R.leftSquigglyLight;R.rightSquiggly=R.rightSquigglyLight;
R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};R.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return R};
_.H(DJ,_.K);_.l=DJ.prototype;_.l.updateLeftSquigglyStyle=function(){_.ya(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.l.updateRightSquigglyStyle=function(){_.ya(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.l.ready=function(){var R=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(R)};
_.l.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.set("isDarkTheme",R),R?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
DJ.prototype.updateRightSquigglyStyle=DJ.prototype.updateRightSquigglyStyle;DJ.prototype.updateLeftSquigglyStyle=DJ.prototype.updateLeftSquigglyStyle;_.C([_.S(),_.k("design:type",Object)],DJ.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],DJ.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",String)],DJ.prototype,"leftSquiggly",void 0);_.C([_.S(),_.k("design:type",String)],DJ.prototype,"rightSquiggly",void 0);
_.C([_.vZ("leftSquiggly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DJ.prototype,"updateLeftSquigglyStyle",null);_.C([_.vZ("rightSquiggly"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DJ.prototype,"updateRightSquigglyStyle",null);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],DJ.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],DJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],DJ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],DJ.prototype,"actionButtonOverride",void 0);_.C([_.F({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],DJ);
_.B(DJ,"ytd-handles-claiming-header-renderer",function(){if(USb!==void 0)return USb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return USb=R},{mode:1});var $SA;var UY=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};R.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";R.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";R.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";R.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
R.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";R.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";R.image0SquigglyBackground=R.image0LightSquigglyBackground;R.image1SquigglyBackground=R.image1LightSquigglyBackground;R.image3SquigglyBackground=R.image3LightSquigglyBackground;return R};
_.H(UY,_.K);_.l=UY.prototype;_.l.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.l.onDataChanged=function(){this.updateTitleAndImages()};
_.l.onThemeChanged=function(){this.updateTitleAndImages()};
_.l.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R)};
_.l.updateImage0SquigglyBackground=function(){_.ya(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.l.updateImage1SquigglyBackground=function(){_.ya(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.l.updateImage3SquigglyBackground=function(){_.ya(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.l.updateTitleAndImages=function(){var R,A;((R=this.data)==null?void 0:(A=R.titleImages)==null?void 0:A.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))};
UY.prototype.updateImage3SquigglyBackground=UY.prototype.updateImage3SquigglyBackground;UY.prototype.updateImage1SquigglyBackground=UY.prototype.updateImage1SquigglyBackground;UY.prototype.updateImage0SquigglyBackground=UY.prototype.updateImage0SquigglyBackground;UY.prototype.onThemeChanged=UY.prototype.onThemeChanged;UY.prototype.onDataChanged=UY.prototype.onDataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],UY.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],UY.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"title0",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"title1",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"title2",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"title3",void 0);
_.C([_.S(),_.k("design:type",Object)],UY.prototype,"title4",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"image0",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"image1",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"image2",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"image3",void 0);_.C([_.S(),_.k("design:type",Object)],UY.prototype,"image4",void 0);_.C([_.S(),_.k("design:type",String)],UY.prototype,"image0SquigglyBackground",void 0);
_.C([_.S(),_.k("design:type",String)],UY.prototype,"image1SquigglyBackground",void 0);_.C([_.S(),_.k("design:type",String)],UY.prototype,"image3SquigglyBackground",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UY.prototype,"onDataChanged",null);_.C([_.vZ("isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UY.prototype,"onThemeChanged",null);
_.C([_.vZ("image0SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UY.prototype,"updateImage0SquigglyBackground",null);_.C([_.vZ("image1SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UY.prototype,"updateImage1SquigglyBackground",null);
_.C([_.vZ("image3SquigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UY.prototype,"updateImage3SquigglyBackground",null);_.C([_.F({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],UY);
_.B(UY,"ytd-handles-claiming-title-images-section-renderer",function(){if($SA!==void 0)return $SA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $SA=R},{mode:1});var XqZ;var $8=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H($8,_.K);$8.prototype.ready=function(){var R=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(R)};
$8.prototype.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&this.set("isDarkTheme",R)};
$8.prototype.onCopyButtonClick=function(){var R=this,A,Y,P;return _.O(function(E){return(A=R.data)!=null&&A.primaryChannelUrl?E.yield(navigator.clipboard.writeText(((Y=R.data)==null?0:Y.encodedChannelUrl)?R.data.encodedChannelUrl:"https://"+_.R4((P=R.data)==null?void 0:P.primaryChannelUrl)),0):E.jumpTo(0)})};
_.C([_.S(),_.k("design:type",Object)],$8.prototype,"data",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],$8.prototype,"ytComponentBehavior",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],$8.prototype,"isDarkTheme",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],$8.prototype,"ytActionHandlerBehavior",void 0);_.C([_.F({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],$8);
_.B($8,"ytd-handles-claiming-update-social-renderer",function(){if(XqZ!==void 0)return XqZ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return XqZ=R},{mode:1});var SL7;var XD=function(){var R=_.K.apply(this,arguments)||this;R.JSC$16027_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";R.JSC$16027_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};R.squigglyBackground=R.JSC$16027_squigglyBackgroundLight;return R};
_.H(XD,_.K);XD.prototype.updateSquigglyBackgroundStyle=function(){_.ya(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
XD.prototype.ready=function(){var R=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",R);this.squigglyBackground=R?this.JSC$16027_squigglyBackgroundDark:this.JSC$16027_squigglyBackgroundLight};
XD.prototype.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.set("isDarkTheme",R),this.squigglyBackground=R?this.JSC$16027_squigglyBackgroundDark:this.JSC$16027_squigglyBackgroundLight)};
XD.prototype.updateSquigglyBackgroundStyle=XD.prototype.updateSquigglyBackgroundStyle;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],XD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],XD.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],XD.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],XD.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",String)],XD.prototype,"squigglyBackground",void 0);_.C([_.vZ("squigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XD.prototype,"updateSquigglyBackgroundStyle",null);_.C([_.F({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],XD);
_.B(XD,"ytd-handles-claiming-vanity-info-renderer",function(){if(SL7!==void 0)return SL7;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return SL7=R},{mode:1});var I3f;var Su=function(){var R=_.K.apply(this,arguments)||this;R.JSC$16030_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";R.JSC$16030_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";R.squigglyBackground=R.JSC$16030_squigglyBackgroundLight;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(Su,_.K);_.l=Su.prototype;_.l.ready=function(){var R=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(R)};
_.l.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.set("isDarkTheme",R),this.squigglyBackground=R?this.JSC$16030_squigglyBackgroundDark:this.JSC$16030_squigglyBackgroundLight)};
_.l.updateSquigglyBackgroundStyle=function(){_.ya(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.l.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.l.detached=function(){this.stop()};
_.l.stop=function(){this.playerElement.stop()};
_.l.setupVideoPlayer=function(){var R=this,A,Y;return _.O(function(P){A=R.data.videoId;Y="http://i1.ytimg.com/vi/"+A+"/maxresdefault.jpg";R.playerElement.loadVideoWithPlayerVars({video_id:A,iurlhq:Y});_.XH(P)})};
Su.prototype.onDataChanged=Su.prototype.onDataChanged;Su.prototype.updateSquigglyBackgroundStyle=Su.prototype.updateSquigglyBackgroundStyle;_.C([_.S({value:!1}),_.k("design:type",Boolean)],Su.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",String)],Su.prototype,"squigglyBackground",void 0);_.C([_.nG("#player"),_.k("design:type",Object)],Su.prototype,"playerElement",void 0);_.C([_.S(),_.k("design:type",Object)],Su.prototype,"data",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Su.prototype,"ytActionHandlerBehavior",void 0);_.C([_.vZ("squigglyBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Su.prototype,"updateSquigglyBackgroundStyle",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Su.prototype,"onDataChanged",null);
_.C([_.F({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],Su);
_.B(Su,"ytd-handles-claiming-video-item-renderer",function(){if(I3f!==void 0)return I3f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return I3f=R},{mode:1});var K9f;var KI=function(){var R=_.rg.apply(this,arguments)||this;R.dragging=!1;R.dragMouseStart=0;R.dragOffsetStart=0;R.containerWidthDiff=0;R.boundPrevClick=function(){R.set("offset",Ii(R,R.offset-(R.scrollDistance||320)))};
R.boundNextClick=function(){R.set("offset",Ii(R,R.offset+(R.scrollDistance||320)))};
R.boundScrollContainerMouseDown=function(A){R.dragMouseStart=A.clientX;R.dragOffsetStart=R.offset;R.dragging=!0};
R.boundScrollContainerDrag=function(A){R.dragging&&R.set("offset",Ii(R,R.dragOffsetStart-(A.clientX-R.dragMouseStart)))};
R.boundMouseUp=function(){R.onMouseUp()};
R.boundWheelScroll=function(A){var Y=0;Math.abs(A.deltaX)>=Math.abs(A.deltaY)?Y=A.deltaX:A.shiftKey&&(Y=A.deltaY);Y!==0&&(R.offset+=Y,A.stopPropagation(),A.preventDefault())};
R.boundChipCloudChipScrollIntoView=function(A){(A=A.detail)&&R.scrollChipIntoView(A)};
return R};
_.H(KI,_.rg);KI.prototype.attached=function(){var R=_.Mo(this.hostElement).querySelector("#scroll-container");R.addEventListener("wheel",this.boundWheelScroll);R.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);R.style.touchAction="pan-y";R.addEventListener("pointerdown",this.boundScrollContainerMouseDown);R.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
KI.prototype.detached=function(){var R=_.Mo(this.hostElement).querySelector("#scroll-container");R.removeEventListener("wheel",this.boundWheelScroll);R.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);R.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);R.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
KI.prototype.reset=function(){this.set("offset",0);_.RK(this,this.setContainerWidthDiff);W8(this)};
var Ii=function(R,A){return Math.min(Math.max(A,0),R.containerWidthDiff)};
KI.prototype.onMouseUp=function(){this.dragging=!1};
KI.prototype.transformContainer=function(){this.offset=Ii(this,this.offset);var R=_.a1("HTML_DIR")==="rtl"?"":"-";_.Mo(this.hostElement).querySelector("#chips").style.transform="translateX("+R+this.offset+"px)";W8(this)};
var W8=function(R){_.RK(R,R.setButtonsState)};
KI.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Ii(this,this.offset));this.atStart=this.offset<=0};
KI.prototype.setContainerWidthDiff=function(){var R=_.Mo(this.hostElement).querySelector("#scroll-container"),A=_.Mo(this.hostElement).querySelector("#chips");R&&A&&(this.containerWidthDiff=A.clientWidth-R.clientWidth)};
KI.prototype.scrollChipIntoView=function(R){var A=_.Mo(this.hostElement).querySelector("#scroll-container");if(A){var Y=this.atStart?0:106,P=this.atEnd?0:106;R.offsetLeft<this.offset+Y?this.offset=Ii(this,R.offsetLeft-Y):R.offsetLeft+R.clientWidth>this.offset+A.clientWidth-P&&(this.offset=Ii(this,R.offsetLeft+R.clientWidth+P-A.clientWidth))}};
KI.prototype.transformContainer=KI.prototype.transformContainer;_.C([_.S({value:0}),_.k("design:type",Number)],KI.prototype,"offset",void 0);_.C([_.S({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],KI.prototype,"atStart",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],KI.prototype,"atEnd",void 0);_.C([_.S(),_.k("design:type",Number)],KI.prototype,"scrollDistance",void 0);
_.C([_.vZ("offset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KI.prototype,"transformContainer",null);_.C([_.Do()],KI);var W9S;var j08;var pqD=_.E5(function(R){var A=R.data;R=_.x(_.yy(!1,void 0,"icHmSe"));var Y=R.next().value,P=R.next().value;R={};R=_.To("ytChipShapeChip",function(){a:switch(A==null?void 0:A().state){case 0:var z="ytChipShapeActive";break a;case 1:z="ytChipShapeDisabled";break a;default:z="ytChipShapeInactive"}return z},function(){var z=A().type===1||A().type===2,c=A();
return z||c!=null&&c.startIcon?c==null||!c.startIcon||c!=null&&c.text?z?"ytChipShapeEndIconPadding":(c==null?0:c.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(R.ytChipShapeFocused=function(){var z;
return Y()&&((z=A())==null?void 0:z.state)!==1},R));
var E=function(z){if((A==null?void 0:A().state)!==1){var c,M;(M=(c=A()).onTap)==null||M.call(c,z)}};
return _.V("chip-shape",{class:"ytChipShapeHost","on:focusin":_.Qi(function(){var z=_.is().resolve(_.z3(_.rt));if(z){P(z.isKeyBoardInUse());var c,M;(M=(c=A()).onFocusIn)==null||M.call(c)}return!1}),
"on:focusout":_.Qi(function(){P(!1);return!1})},_.V(bkE,{shouldWrapInButton:function(){return A().type!==2},
selected:function(){return A().state===0},
onClick:E,isDropdown:function(){return A().type===1},
accessibilityLabel:function(){return A().type===1?void 0:A().accessibilityLabel}},_.V("div",{class:R},_.V(_.J,{cond:function(){return A().startIcon},
then:function(){return _.V(_.H1,{icon:function(){var z;return(z=A())==null?void 0:z.startIcon},
className:function(){return A().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return A().text},_.V(f3A,{shape:A,
onClick:E}),_.V(_.Uh,{model:{borderRadius:"8px"}}))))},"Nb");
pqD.idomCompat=!0;var bkE=_.E5(function(R){var A=_.Qi(function(Y){R.onClick(Y);return!1});
return _.V(_.J,{cond:R.shouldWrapInButton,then:function(){return _.V("button",{class:"ytChipShapeButtonReset","on:click":A,role:function(){return R.isDropdown()?"combobox":"tab"},
"aria-label":R.accessibilityLabel,"aria-selected":R.selected},R.children)},
else:function(){return R.children}})},"Ob"),f3A=_.E5(function(R){var A=R.shape;
var Y=R.onClick;var P=_.Qi(function(E){Y(E);return!1});
return _.V(_.SO,null,_.V(_.$W,{when:function(){return A().type===1}},function(){return _.V(_.H1,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.V(_.$W,{when:function(){return A().type===2}},function(){return _.V("button",{class:"ytChipShapeButtonReset",
"on:click":P},_.V(_.H1,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.V(_.$W,{when:function(){return A().type===0}},function(){return _.V(_.lI,null)}))},"Pb");_.Ow(pqD,"chip-shape",{props:{data:_.VY}});var ju=function(){var R=_.K.apply(this,arguments)||this;R.disableDeselectEvent=!1;R.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return R};
_.H(ju,_.K);_.l=ju.prototype;_.l.onSelectChipCommand=function(R){if(!this.selected&&this.data&&(R=_.n(R,MEA),R.targetId&&R.targetId===this.data.targetId))this.onTap()};
_.l.onFilterChipTransformCommand=function(R){if(!this.selected&&this.data){var A;(R=(A=_.n(R,EyZ))==null?void 0:A.chipUniqueId)&&R===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.l.dataChanged=function(){var R=this;_.RK(this,function(){R.data&&R.data.isSelected&&!R.selected&&(R.scrollChipIntoView(),R.onTap())})};
_.l.computeChipStyle=function(R){return R!=null?R:"STYLE_DEFAULT"};
_.l.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.OC(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.OC(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.l.onFocus=function(){var R=_.is().resolve(_.z3(_.rt));R&&R.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.l.scrollChipIntoView=function(){_.xo(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Yh.Object.defineProperties(ju.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return d3k({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
ju.prototype.onFocus=ju.prototype.onFocus;ju.prototype.onTap=ju.prototype.onTap;ju.prototype.dataChanged=ju.prototype.dataChanged;_.C([_.U(_.bV),_.k("design:type",Object)],ju.prototype,"ironButtonState",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ju.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ju.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Kr),_.k("design:type",Object)],ju.prototype,"ironA11yKeysBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ju.prototype,"disableDeselectEvent",void 0);_.C([_.S(),_.k("design:type",Object)],ju.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.icon"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ju.prototype,"hasIcon",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data.uniqueId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ju.prototype,"isGnomeChip",null);_.C([_.S({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.k("design:type",String)],ju.prototype,"chipStyle",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ju.prototype,"selected",void 0);
_.C([_.X("data","selected"),_.k("design:type",Object),_.k("design:paramtypes",[])],ju.prototype,"chipShapeData",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ju.prototype,"dataChanged",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ju.prototype,"onTap",null);
_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ju.prototype,"onFocus",null);_.C([_.CG({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],ju);
_.B(ju,"yt-chip-cloud-chip-renderer",function(){if(j08===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;W9S===void 0&&(W9S=document.createElement("template"));var P=W9S;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);j08=R}R=j08;return R},{mode:2});var b2=function(){var R=_.K.apply(this,arguments)||this;R.isDarkTheme=!1;R.notSticky=!1;R.transparentBackground=!1;R.shouldHide=!1;R.disableSticky=!1;R.fluidWidth=!1;R.isClipList=!1;R.defaultChipIndex=0;R.isPlaylist=!1;R.playlistVotingAnimationEnabled=_.v("web_enable_voting_animation");R.toolbarHeight=0;R.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return R};
_.H(b2,_.K);_.l=b2.prototype;
_.l.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}}}}}};
_.l.attached=function(){var R=this;document.addEventListener("scroll",_.T2(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var A;this.toolbarHeight=((A=document.querySelector("ytd-masthead"))==null?void 0:A.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(Y){R.handleIntersect(Y)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){R.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.l.detached=function(){var R;(R=this.intersectionObserver)==null||R.disconnect();var A;(A=this.resizeObserver)==null||A.disconnect();document.removeEventListener("scroll",_.T2(this,this.updateChipBarWidthAndTop))};
_.l.dataChanged=function(){var R=this,A,Y,P;((P=_.n((A=this.data)==null?void 0:(Y=A.contents)==null?void 0:Y[0],lYb))==null?void 0:P.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var E=this.findSelectedChipIndex();this.selectedIndex!==E&&(this.selectedIndex=-1);_.RK(this,function(){R.selectedIndex=E;R.updating=!1;R.ytScrollableChipCloudBehavior.reset()})};
_.l.findSelectedChipIndex=function(){var R;if((R=this.data)==null||!R.contents)return 0;R=this.data.contents;for(var A=0;A<R.length;A++){var Y=void 0;if((Y=_.n(R[A],lYb))==null?0:Y.isSelected)return A}return 0};
_.l.computeStyle=function(R){return R};
_.l.handleChipCloudChipSelectAction=function(R){R=this.JSC$16051_chipsSelector.indexOf(R);R>-1&&this.JSC$16051_chipsSelector.selectIndex(R)};
_.l.handleChipCloudChipDeselectAction=function(){if(_.v("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],lYb))==null?void 0:Y.navigationEndpoint;P&&_.OC(this.hostElement,"yt-browse-section-list-reload-endpoint",[P]);this.JSC$16051_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.l.onGuideIsExpandedChanged=function(){var R=this.ytScrollableChipCloudBehavior;_.RK(R,R.setContainerWidthDiff);W8(this.ytScrollableChipCloudBehavior)};
_.l.onResize=function(){var R=this.ytScrollableChipCloudBehavior;_.RK(R,R.setContainerWidthDiff);W8(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.l.handleIntersect=function(R){this.notSticky=this.isChannelPageGrid||this.disableSticky||R[0].intersectionRatio===1};
_.l.updateDimensions=function(){var R=this.ytRendererBehavior.parentComponent;if(R){var A,Y=(A=R.headerElement)!=null?A:R;_.ya(this.hostElement,{"--ytd-rich-grid-chips-bar-width":Y.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.l.updateSelectedIndexFromBinding=function(R){this.selectedIndex=R.detail.value};
_.l.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var R;(R=this.sortFilterHeaderRendererElement)==null||R.setAttribute("is-playlist-page-with-filters","")}};
_.l.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(tWA(!this.notSticky))};
_.Yh.Object.defineProperties(b2.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 R,A,Y=(R=this.data)==null?void 0:(A=R.contents)==null?void 0:A.find(function(P){return _.n(P,sCb)});
return{sortFilterHeaderRenderer:_.n(Y,sCb)}}}});
b2.prototype.dispatchChipBarIsSticky=b2.prototype.dispatchChipBarIsSticky;b2.prototype.isPlaylistPageChanged=b2.prototype.isPlaylistPageChanged;b2.prototype.updateChipBarWidthAndTop=b2.prototype.updateChipBarWidthAndTop;b2.prototype.onResize=b2.prototype.onResize;b2.prototype.onGuideIsExpandedChanged=b2.prototype.onGuideIsExpandedChanged;b2.prototype.dataChanged=b2.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],b2.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],b2.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],b2.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],b2.prototype,"ironResizableBehavior",void 0);_.C([_.U(),_.k("design:type",KI)],b2.prototype,"ytScrollableChipCloudBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],b2.prototype,"ytdReduxBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],b2.prototype,"data",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],b2.prototype,"selectedIndex",void 0);_.C([_.S({value:320}),_.k("design:type",Number)],b2.prototype,"scrollDistance",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"notSticky",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"transparentBackground",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.k("design:type",String)],b2.prototype,"componentStyle",void 0);_.C([_.S({selector:_.LA3}),_.k("design:type",Boolean)],b2.prototype,"guideIsExpanded",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"shouldHide",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"disableSticky",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"fluidWidth",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"isClipList",void 0);_.C([_.S(),_.k("design:type",Object)],b2.prototype,"defaultChipIndex",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],b2.prototype,"isPlaylist",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],b2.prototype,"playlistVotingAnimationEnabled",void 0);_.C([_.nG("#chips"),_.k("design:type",Object)],b2.prototype,"JSC$16051_chipsSelector",void 0);_.C([_.nG("ytd-sort-filter-header-renderer"),_.k("design:type",HTMLElement)],b2.prototype,"sortFilterHeaderRendererElement",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],b2.prototype,"updating",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b2.prototype,"dataChanged",null);_.C([_.vZ("guideIsExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b2.prototype,"onGuideIsExpandedChanged",null);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b2.prototype,"onResize",null);
_.C([_.Ul("isChannelPageGrid","disableSticky","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b2.prototype,"updateChipBarWidthAndTop",null);_.C([_.X("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],b2.prototype,"isChannelPageGrid",null);_.C([_.X("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],b2.prototype,"isHashtagLandingPage",null);
_.C([_.vZ("isPlaylistPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b2.prototype,"isPlaylistPageChanged",null);_.C([_.X("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],b2.prototype,"isPlaylistPage",null);_.C([_.X("componentStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],b2.prototype,"isDisableDeselectEvent",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],b2.prototype,"sortFilterHeaderRendererData",null);_.C([_.S({reflectToAttribute:!0,selector:_.zRq}),_.k("design:type",String)],b2.prototype,"frostedGlassMode",void 0);_.C([_.vZ("notSticky"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b2.prototype,"dispatchChipBarIsSticky",null);_.C([_.F({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],b2);
_.B(b2,"ytd-feed-filter-chip-bar-renderer",function(){if(K9f!==void 0)return K9f;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return K9f=R},{mode:1});var F9H;var BVH=_.E5(function(R){var A=R.data;var Y=R.buttonIndex;var P=R.selectedIndex;var E=R.onSelect;var z=function(){return Y()===P()},c=function(){var M,N;
return(N=(M=A().text)==null?void 0:M.content)!=null?N:""};
R=_.qyk();return _.V("yt-toggleable-image-button-view-model",{class:function(){var M={};M=(M.toggleableImageButtonViewModelHost=!0,M[""]=!0,M.toggleableImageButtonViewModelSemiTransparent=P()!==-1&&!z(),M);return _.IP(M)},
tabindex:0,"aria-label":c,"aria-pressed":z,role:"button","on:keydown":R,"on:click":_.Qi(function(){E(A().onSubmitCommand);return!1})},_.V(_.J,{cond:function(){return A().logo},
then:function(M){return _.V(_.P1,{data:M,className:function(){var N={};N=(N.toggleableImageButtonViewModelImage=!0,N.toggleableImageButtonViewModelCircularRadius=!(!A().backgroundColor||!A().backgroundColorDarkMode),N.toggleableImageButtonViewModelGradientRing=!!(z()&&A().backgroundColor&&A().backgroundColorDarkMode),N);return _.IP(N)},
alt:c,useWidth:!1,style:function(){if(z()&&A().backgroundColor&&A().backgroundColorDarkMode){var N=tf(Number(A().backgroundColorDarkMode),"1");var y=tf(Number(A().backgroundColor),"1");N="background: linear-gradient(180deg,"+N+","+y+") border-box;"}else N="";return N}})}}),_.V(_.Uh,{model:{borderRadius:"16px"}}),_.V("p",{class:function(){var M={};
M=(M.toggleableImageButtonViewModelLabel=!0,M.toggleableImageButtonViewModelBoldText=z(),M);return _.IP(M)}},_.V(_.NU,{text:function(){return A().text}})))},"Qb");
BVH.idomCompat=!0;var Cpq=_.E5(function(R){var A=R.data;R=_.x(_.yy({index:-1,command:{}},void 0,"GM3umb"));var Y=R.next().value,P=R.next().value;return _.V("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.V("div",{class:"nudgeFormViewModelFormOptions"},_.V(_.ni,{data:function(){return A().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(E,z){return _.V(BVH,{data:E.data,buttonIndex:z,selectedIndex:function(){return Y().index},
onSelect:function(c){P({index:z(),command:c})}})}})),_.V(_.NU,{text:function(){return A().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.V("div",{class:"nudgeFormViewModelSubmit"},_.V(_.ni,{data:function(){return A().submitButton}},{buttonViewModel:function(E){return _.V(a3A,{data:E.data,
isDisabled:function(){return Y().index===-1},
onClick:function(){_.Zc(Y().command)}})}})))},"Rb");
Cpq.idomCompat=!0;var a3A=_.E5(function(R){var A=_.gE(function(){return Object.assign({},R.data(),{state:R.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.V(_.Is,{data:A,onClick:R.onClick})},"Sb");_.Ow(Cpq,"yt-nudge-form-view-model",{props:{data:_.VY}});var fI=function(){var R=_.K.apply(this,arguments)||this;R.roundedContainer=!0;R.buttonUpdate=_.v("web_modern_buttons");R.isDarkMode=!1;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return R};
_.H(fI,_.K);_.l=fI.prototype;_.l.computeNudgeStyle=function(R){return R?"modernized-nudge":""};
_.l.handleDarkModeToggledAction=function(R){this.isDarkMode=R};
_.l.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.l.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"}}}};
_.l.computeIsHorizontalButtons=function(R){return R?!!R.applyModernizedStyle&&!!R.enableHorizontalButtons&&!!R.secondaryButton:!1};
_.Yh.Object.defineProperties(fI.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=(R=this.data)==null?void 0:R.backgroundStyle)!=null?A:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=(R=this.data)==null?void 0:R.contentsLocation)!=null?A:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null?0:R.lightIconImage)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fI.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],fI.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],fI.prototype,"actionHandlerBehavior",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("isHideEnclosingAction"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fI.prototype,"isHidden",null);_.C([_.S(),_.k("design:type",Object)],fI.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fI.prototype,"roundedContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fI.prototype,"buttonUpdate",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.k("design:type",String)],fI.prototype,"nudgeStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.trimStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],fI.prototype,"trimStyle",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.backgroundStyle"),_.k("design:type",String),_.k("design:paramtypes",[])],fI.prototype,"backgroundStyle",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data.contentsLocation"),_.k("design:type",String),_.k("design:paramtypes",[])],fI.prototype,"contentsLocation",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.disableDropShadow"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fI.prototype,"noShadow",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.lightIconImage"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],fI.prototype,"noIcon",null);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.k("design:type",Boolean)],fI.prototype,"isHorizontalButtons",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],fI.prototype,"isDarkMode",void 0);_.C([_.F({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],fI);
_.B(fI,"ytd-feed-nudge-renderer",function(){if(F9H!==void 0)return F9H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return F9H=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var hLS;var oAD;var pI=function(){var R=_.K.apply(this,arguments)||this;R.collapsed=!1;R.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return R};
_.H(pI,_.K);pI.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"}}}};
pI.prototype.handleRatingSelect=function(){var R;((R=this.data)==null?0:R.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
pI.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],pI.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],pI.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pI.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.zF),_.k("design:type",Object)],pI.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pI.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],pI.prototype,"collapsed",void 0);_.C([_.F({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],pI);
_.B(pI,"ytd-slimline-survey-renderer",function(){if(oAD!==void 0)return oAD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return oAD=R},{mode:1});var kMq;var FD=function(){return _.K.apply(this,arguments)||this};
_.H(FD,_.K);FD.prototype.maybeGetBackgroundColor=function(R){return this.isDarkMode?R.section2Color:R.section3Color};
FD.prototype.colorPaletteChanged=function(){var R=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;R&&(R==null?0:R.secondaryTitleColor)&&this.maybeGetBackgroundColor(R)?(this.hostElement.style.backgroundColor=_.G9(this.maybeGetBackgroundColor(R)),this.hostElement.style.color=_.G9(R.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
FD.prototype.colorPaletteChanged=FD.prototype.colorPaletteChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],FD.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],FD.prototype,"data",void 0);_.C([_.S({selector:function(R){return R.ui.darkModeIsEnabled}}),
_.k("design:type",Boolean)],FD.prototype,"isDarkMode",void 0);_.C([_.S(),_.k("design:type",Object)],FD.prototype,"lightColorPalette",void 0);_.C([_.S(),_.k("design:type",Object)],FD.prototype,"darkColorPalette",void 0);_.C([_.vZ("darkColorPalette","lightColorPalette","data","isDarkMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FD.prototype,"colorPaletteChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],FD);
_.B(FD,"ytd-endorsement-header-renderer",function(){if(kMq!==void 0)return kMq;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return kMq=R},{mode:1});_.Ow(_.LP,"yt-decorated-avatar-view-model",{props:{data:_.VY,className:_.VY}});_.B8=new _.cP("VIEW_TRANSITION_MANAGER_TOKEN");var ai=function(){var R=_.K.apply(this,arguments)||this;R.fullHeight=_.v("web_rich_grid_media_full_height");R.showChannelAvatar=!0;R.hasPlaylistThumbnail=!1;R.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};R.registerThumbnailForPageTransition=function(){_.v("web_thumbnail_to_watch_transition")&&_.GMD(_.is().resolve(_.B8),R.thumbnail)};
return R};
_.H(ai,_.K);_.l=ai.prototype;
_.l.configureRendererStamper=function(){return{lazyLoadMenu:pP,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"avatar",mapping:{avatarStackViewModel:{component:"yt-avatar-stack-view-model",properties:{overrides:"[[avatarStackViewModelOverrides]]"}},
decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.shouldLazyLoadMenu=function(){var R=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.v("kevlar_modern_downloads_page")||!R};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16076_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:this.JSC$16076_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.l.getVideoPreviewOpts=function(){var R={},A;if((A=this.data)==null?0:A.multipleInlinePlaybackEndpoint)R=pB8;this.isRadio&&(R=fyH);return R};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$16076_inlinePreviewHoverListener)==null||ux(R)};
_.l.getOwner=function(){var R,A,Y;return((R=this.data)==null?void 0:(A=R.channelThumbnailSupportedRenderers)==null?void 0:A.channelThumbnailWithLinkRenderer)||_.n((Y=this.data)==null?void 0:Y.showProviderChannelThumbnail,JAA)};
_.l.updateLockupSize=function(){var R;((R=this.getOwner())==null?0:R.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.l.getFeedbackEndpoint=function(R){if(_.n(R,_.UR))return R;var A,Y;R=(Y=(A=_.n(R,_.Jg))==null?void 0:A.commands)!=null?Y:[];A=_.x(R);for(Y=A.next();!Y.done;Y=A.next())if(Y=this.getFeedbackEndpoint(Y.value))return Y;return null};
_.l.computeNavigationEndpoint=function(R){return ENJ(R==null?void 0:R.navigationEndpoint)};
_.l.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var R=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(R)!==JSON.stringify(this.data)&&this.set("data",R)}};
_.l.onDataChanged=function(){var R=this,A=this.getOwner();if(A){this.set("data.owner",A);var Y,P,E,z,c,M=((Y=this.data)==null?void 0:(P=Y.shortBylineText)==null?void 0:(E=P.runs)==null?void 0:(z=E[0])==null?void 0:z.text)||((c=A.name)==null?void 0:c.simpleText);this.set("data.owner.title",M)}var N,y,m,T,Q,g;A=((N=this.data)==null?void 0:(y=N.thumbnailRenderer)==null?void 0:y.playlistVideoThumbnailRenderer)||((m=this.data)==null?void 0:(T=m.thumbnailRenderer)==null?void 0:T.playlistCustomThumbnailRenderer)||
((Q=this.data)==null?void 0:(g=Q.thumbnailRenderer)==null?void 0:g.showCustomThumbnailRenderer);var r;((r=this.data)==null?0:r.thumbnail)||!A||this.set("data.thumbnail",A.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){R.updateLockupSize()});
var I;if(N=((I=this.data)==null?void 0:I.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(N);var b;((b=this.dismissActionToReplayEntity)==null?0:b.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.l.onHiddenChanged=function(){this.updateLockupSize()};
_.l.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.OC(this.hostElement,"yt-terminate-video-preview-action");else{var R;(R=this.videoTitleLink)==null||R.focus()}};
_.l.metadataColorChanged=function(){var R;if(this.metadataColor&&((R=this.videoTitle)==null?0:R.style))this.videoTitle.style.color=_.G9(this.metadataColor);else{var A,Y;!this.metadataColor&&((A=this.videoTitle)==null?0:(Y=A.style)==null?0:Y.color)&&(this.videoTitle.style.color="")}};
_.l.onDetailsClick=function(R){var A=this.computedNavigationEndpoint;A&&(_.RP(_.Ah(R),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.xo(this.hostElement,"yt-navigate",{endpoint:A}))};
_.l.onRendererTap=function(){this.registerThumbnailForPageTransition();var R,A,Y=((R=this.data)==null?void 0:R.serviceEndpoint)||this.getFeedbackEndpoint((A=this.data)==null?void 0:A.navigationEndpoint);Y&&_.n(Y,_.UR)&&this.ytComponentBehavior.resolveCommand(Y)};
_.l.onMouseDown=function(R){var A=R.target,Y=this.computedNavigationEndpoint,P;R=A.href||((P=_.n(Y==null?void 0:Y.commandMetadata,_.Ti))==null?void 0:P.url);P=A.data||Y;R&&P&&av3(R,P)};
_.l.computeVideoTitleText=function(){var R;if((R=this.data)==null?0:R.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.l.computeHasPlaylistThumbnail=function(R){var A,Y,P,E,z;if((((A=R.thumbnailRenderer)==null?0:A.playlistVideoThumbnailRenderer)||((Y=R.thumbnailRenderer)==null?0:Y.playlistCustomThumbnailRenderer)||((P=R.thumbnailRenderer)==null?0:P.showCustomThumbnailRenderer)||((E=R.thumbnailRenderer)==null?0:E.playlistVideoThumbnailRenderer)||((z=R.thumbnailRenderer)==null?0:z.playlistCustomThumbnailRenderer))&&R.thumbnailOverlays)for(A=0;A<R.thumbnailOverlays.length;A++)if(Y=void 0,(Y=R.thumbnailOverlays[A])==
null?0:Y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Yh.Object.defineProperties(ai.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.v("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var R;return(R=this.data)==null?void 0:R.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var R;return(R=this.data)==null?void 0:R.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$16076_inlinePreviewHoverListener)==null?0:YE(R))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.Hr(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:R.videoId)||((A=this.data)==null?void 0:A.playlistId)||""}}});
ai.prototype.onMouseDown=ai.prototype.onMouseDown;ai.prototype.metadataColorChanged=ai.prototype.metadataColorChanged;ai.prototype.onIsDismissedChanged=ai.prototype.onIsDismissedChanged;ai.prototype.onHiddenChanged=ai.prototype.onHiddenChanged;ai.prototype.onDataChanged=ai.prototype.onDataChanged;ai.prototype.handleReloadDownloadsInfo=ai.prototype.handleReloadDownloadsInfo;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ai.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ai.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ai.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],ai.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],ai.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],ai.prototype,"ytdReduxBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],ai.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],ai.prototype,"entitySelectorType",void 0);_.C([_.S(),_.k("design:type",Boolean)],ai.prototype,"noEndpoints",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],ai.prototype,"isRadio",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],ai.prototype,"miniMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ai.prototype,"fullHeight",void 0);
_.C([_.S(),_.k("design:type",Boolean)],ai.prototype,"showDarkVideoMetadata",void 0);_.C([_.S(),_.k("design:type",Boolean)],ai.prototype,"showLightVideoMetadata",void 0);_.C([_.S(),_.k("design:type",Number)],ai.prototype,"metadataColor",void 0);_.C([_.S(),_.k("design:type",Object)],ai.prototype,"showChannelAvatar",void 0);_.C([_.S(),_.k("design:type",Boolean)],ai.prototype,"hidden",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],ai.prototype,"showYtInteraction",void 0);
_.C([_.S(),_.k("design:type",String)],ai.prototype,"dismissedContentId",void 0);_.C([_.S({selectorArgs:["dismissedContentId"],selector:dnl}),_.k("design:type",Object)],ai.prototype,"dismissActionToReplayEntity",void 0);
_.C([_.S({selectorArgs:["entitySelectorType","mediaId"],selector:function(R,A,Y){if(_.v("kevlar_modern_downloads_page")&&Y&&A&&A!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(A){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var P=cdJ(R,Y);if(P){A=_.h0(R,Y);var E=kb(R,Y),z=g7J(R,Y);R=GX(R,Y);var c=L$q(P,A,E,z);E=c.shortViewCountText;var M=c.publishedTimeText;c=c.badges;var N=R>0;z=eR3(P,A,z,R);P=_.UQ(A)||A==="TRANSFER_STATE_FAILED"||A==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Dn(P.policyEntity)?
void 0:YOJ(Y,R,P.videoEntity.lengthSeconds);A==="TRANSFER_STATE_PAUSED_BY_USER"&&Y&&!_.v("dl_resume_click_killswitch")&&(P={offlineVideoEndpoint:{videoId:Y,action:"ACTION_RESUME"}});Y={shortViewCountText:E,publishedTimeText:M,badges:c,isWatched:N,navigationEndpoint:P,thumbnailOverlays:z}}else Y=void 0;return Y;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(A=O1k(R,Y))if(P=_.oa(R,Y),z=_.MwV(R,Y),P!=="TRANSFER_STATE_UNKNOWN"){Y=qV3(A,P,z,Y,_.Cx(R));break a}Y=void 0}return Y;default:_.pK(new _.XN("Error: entitySelectorType defined but not matched in selector.",
R,A))}}}),
_.k("design:type",Object)],ai.prototype,"entityDrivenState",void 0);_.C([_.S({computed:"computeVideoTitleText(data)"}),_.k("design:type",Object)],ai.prototype,"videoTitleText",void 0);_.C([_.S({computed:"computeHasPlaylistThumbnail(data)"}),_.k("design:type",Object)],ai.prototype,"hasPlaylistThumbnail",void 0);_.C([_.S({computed:"computeNavigationEndpoint(data)"}),_.k("design:type",Object)],ai.prototype,"computedNavigationEndpoint",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],ai.prototype,"typographyBump",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("typographyBump"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ai.prototype,"typographyBumpV2",null);_.C([_.nG("#video-title"),_.k("design:type",HTMLElement)],ai.prototype,"videoTitle",void 0);_.C([_.nG("#video-title-link"),_.k("design:type",HTMLElement)],ai.prototype,"videoTitleLink",void 0);
_.C([_.nG("#thumbnail"),_.k("design:type",HTMLElement)],ai.prototype,"thumbnail",void 0);_.C([_.nG("#dismissible"),_.k("design:type",HTMLElement)],ai.prototype,"JSC$16076_dismissibleMedia",void 0);_.C([_.X("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],ai.prototype,"lazyLoadMenu",null);_.C([_.X("data.menu"),_.k("design:type",Object),_.k("design:paramtypes",[])],ai.prototype,"immediateLoadMenu",null);
_.C([_.Ul("entityDrivenState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ai.prototype,"handleReloadDownloadsInfo",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ai.prototype,"onDataChanged",null);_.C([_.Ul("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ai.prototype,"onHiddenChanged",null);
_.C([_.vZ("isDismissed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ai.prototype,"onIsDismissedChanged",null);_.C([_.vZ("metadataColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ai.prototype,"metadataColorChanged",null);_.C([_.Qa("mousedown"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ai.prototype,"onMouseDown",null);
_.C([_.X("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ai.prototype,"isHovered",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ai.prototype,"useAvatar",null);_.C([_.X("data","entitySelectorType"),_.k("design:type",String),_.k("design:paramtypes",[])],ai.prototype,"mediaId",null);_.C([_.F({is:"ytd-rich-grid-media",disableElementRegistration:!0})],ai);
var ZkN=_.s5()(ai,"ytd-rich-grid-media",function(){if(hLS!==void 0)return hLS;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar-image" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return hLS=R},{mode:_.Nf("kevlar_poly_si_batch_j072")?1:2});var tjH;var CI=function(){var R=_.K.apply(this,arguments)||this;R.removeMaxWidth=!0;R.insetMetadata=!1;return R};
_.H(CI,_.K);_.l=CI.prototype;_.l.configureRendererStamper=function(){return{innerMenu:pP,outerMenu:Object.assign({},pP,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onDataChanged=function(){var R,A=((R=this.data)==null?void 0:R.trackingParams)||"";A&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(A));var Y;((Y=this.dismissActionToReplayEntity)==null?0:Y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16081_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:this.JSC$16081_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:FVH})};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$16081_inlinePreviewHoverListener)==null||ux(R)};
_.l.onRendererTap=function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.serviceEndpoints)==null?void 0:A[0];_.n(Y,_.UR)&&this.componentBehavior.resolveCommand(Y)};
_.l.onDetailsClick=function(R){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint;Y&&(_.RP(_.Ah(R),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(Y))};
_.l.onShow=function(){var R=this.data;R.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(R.onFirstVisibleCommand),delete R.onFirstVisibleCommand)};
_.Yh.Object.defineProperties(CI.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var R;return this.insetMetadata?void 0:(R=this.data)==null?void 0:R.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var R;return this.insetMetadata?(R=this.data)==null?void 0:R.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var R=this.data;if(R!=null&&R.badge&&(R=_.n(R.badge,RSA))){var A,Y,P;return[{metadataBadgeRenderer:{label:((A=R.label)==null?void 0:(Y=A.runs)==null?void 0:Y[0].text)||((P=R.label)==null?void 0:P.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var R=this.data;return Object.assign({},R.headline,{accessibility:R.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return this.isSlimShort?(R=this.computedTitle)==null?void 0:(A=R.accessibility)==null?void 0:(Y=A.accessibilityData)==null?void 0:Y.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.v("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$16081_inlinePreviewHoverListener)==null?0:YE(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
CI.prototype.onDataChanged=CI.prototype.onDataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],CI.prototype,"componentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],CI.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],CI.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],CI.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.zF),_.k("design:type",Object)],CI.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],CI.prototype,"ytdReduxBehavior",void 0);_.C([_.nG("ytd-thumbnail"),_.k("design:type",HTMLElement)],CI.prototype,"thumbnail",void 0);_.C([_.nG("#dismissible"),_.k("design:type",HTMLElement)],CI.prototype,"JSC$16081_dismissibleMedia",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],CI.prototype,"removeMaxWidth",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],CI.prototype,"insetMetadata",void 0);_.C([_.S(),_.k("design:type",String)],CI.prototype,"dismissedContentId",void 0);_.C([_.S({selectorArgs:["dismissedContentId"],selector:dnl}),_.k("design:type",Object)],CI.prototype,"dismissActionToReplayEntity",void 0);_.C([_.X("insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],CI.prototype,"thumbnailObjectFit",null);
_.C([_.X("data","insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],CI.prototype,"innerMenu",null);_.C([_.X("data","insetMetadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],CI.prototype,"outerMenu",null);_.C([_.S(),_.k("design:type",Object)],CI.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],CI.prototype,"miniMode",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CI.prototype,"onDataChanged",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],CI.prototype,"shortsBadges",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],CI.prototype,"isShort",null);
_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],CI.prototype,"isSlimShort",null);_.C([_.X("data","isShort"),_.k("design:type",Object),_.k("design:paramtypes",[])],CI.prototype,"computedTitle",null);_.C([_.X("isSlimShort","computedTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],CI.prototype,"computedAccessibilityLabel",null);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],CI.prototype,"shouldForce2By3",null);_.C([_.X("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],CI.prototype,"isHovered",null);_.C([_.F({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],CI);
_.B(CI,"ytd-rich-grid-slim-media",function(){if(tjH!==void 0)return tjH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return tjH=R},{mode:_.Nf("kevlar_poly_si_batch_j063")?1:2});var wq8;var uCS;var hK=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(hK,_.K);hK.prototype.computeIcon=function(R){return R&&R.iconType?"yt-sys-icons:"+R.iconType.toLowerCase():""};
hK.prototype.onMouseEnter=function(){this.isHovered=!0};
hK.prototype.onMouseLeave=function(){this.isHovered=!1};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],hK.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hK.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],hK.prototype,"isHovered",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],hK.prototype,"darkerDarkTheme",void 0);_.C([_.F({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],hK);
_.B(hK,"ytd-expand-on-hover-card-renderer",function(){if(uCS!==void 0)return uCS;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return uCS=R},{mode:1});var eLb,qLA=function(){if(eLb!==void 0)return eLb;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return eLb=R};_.bh("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var oi=function(){var R=_.K.apply(this,arguments)||this;R.compactStyle=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(oi,_.K);_.l=oi.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.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"}}}};
_.l.computeHideDot=function(R){return!(R&&R.subscriberCountText&&R.videoCountText)||this.compactStyle};
_.l.hasDualButtons=function(R){return R&&R.purchaseButton&&R.subscribeButton};
_.l.backgroundColorChanged=function(){if(this.data!==void 0){var R=this.data.backgroundColor;this.isDarkTheme&&(R=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=R!=null?_.G9(R):"transparent"}};
_.l.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.onTap=function(R){var A,Y,P=((A=this.data)==null?void 0:A.navigationEndpoint)||((Y=this.data)==null?void 0:Y.serviceEndpoint);_.n(P,_.ed)&&(P&&_.is().resolve(_.ls).resolveCommand(P,{form:{element:this.hostElement}}),R.preventDefault())};
_.l.computeChannelEndpoint=function(R){return _.n(R,_.ed)?null:R};
_.l.computeHrefEndpoint=function(R){return _.n(R,_.ed)?null:this.componentBehavior.computeHref_(R)};
_.l.computeChannelRendererStyle=function(R){return R};
_.l.computeIconSize=function(R){return R?108:136};
_.Yh.Object.defineProperties(oi,{template:{configurable:!0,enumerable:!0,get:function(){return qLA()}}});
oi.prototype.backgroundColorChanged=oi.prototype.backgroundColorChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oi.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],oi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],oi.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],oi.prototype,"componentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],oi.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],oi.prototype,"isDarkTheme",void 0);_.C([_.S({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.k("design:type",String)],oi.prototype,"channelRendererStyle",void 0);_.C([_.S({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],oi.prototype,"dualButtons",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],oi.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],oi.prototype,"biggerThumbStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],oi.prototype,"compactStyle",void 0);_.C([_.vZ("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oi.prototype,"backgroundColorChanged",null);_.C([_.F({is:"ytd-channel-renderer",disableElementRegistration:!0})],oi);_.B(oi,"ytd-channel-renderer",function(){return qLA()},{mode:1});var L98;var dSD;_.bh("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var k8=function(){var R=_.K.apply(this,arguments)||this;R.displayItemCount=2;R.collections=_.v("web_modern_collections_v2");R.hasPlaylistThumbnail=!1;R.stackThumbnailSize="large";return R};
_.H(k8,_.K);_.l=k8.prototype;_.l.attached=function(){this.updateInlinePreviewHoverListeners()};
_.l.detached=function(){this.clearInlinePreviewHoverListeners()};
_.l.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.l.computeFirstVideos=function(R,A){return R&&A?R.slice(0,A):[]};
_.l.computeThumbnailWidth=function(R,A){return R?A==="BIG"?500:A==="MASSIVE"?600:A==="MEDIUM"?450:420:360};
_.l.computeThumbnailHeight=function(R,A){return R?A==="BIG"?280:A==="MASSIVE"?337:234:202};
_.l.clearInlinePreviewHoverListeners=function(){var R;(R=this.JSC$16094_inlinePreviewHoverListener)==null||ux(R)};
_.l.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16094_inlinePreviewHoverListener=Fk({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:pB8,thumbnailElement:this.thumbnail})};
_.l.computeHasPlaylistThumbnail=function(R){var A,Y;if((((A=R.thumbnailRenderer)==null?0:A.playlistVideoThumbnailRenderer)||((Y=R.thumbnailRenderer)==null?0:Y.playlistCustomThumbnailRenderer))&&R.thumbnailOverlays)for(A=0;A<R.thumbnailOverlays.length;A++)if(Y=void 0,(Y=R.thumbnailOverlays[A])==null?0:Y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Yh.Object.defineProperties(k8.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.JSC$16094_inlinePreviewHoverListener)==null?0:YE(R))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
k8.prototype.dataChanged=k8.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],k8.prototype,"ytdLockupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],k8.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],k8.prototype,"displayItemCount",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],k8.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],k8.prototype,"biggerThumbsStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],k8.prototype,"collections",void 0);_.C([_.S({computed:"computeHasPlaylistThumbnail(data)"}),_.k("design:type",Object)],k8.prototype,"hasPlaylistThumbnail",void 0);_.C([_.S(),_.k("design:type",String)],k8.prototype,"stackThumbnailSize",void 0);_.C([_.nG("ytd-thumbnail"),_.k("design:type",HTMLElement)],k8.prototype,"thumbnail",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k8.prototype,"dataChanged",null);_.C([_.X("lockupIsHovered"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],k8.prototype,"isHovered",null);_.C([_.F({is:"ytd-radio-renderer",disableElementRegistration:!0})],k8);
_.B(k8,"ytd-radio-renderer",function(){if(dSD!==void 0)return dSD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return dSD=R},{mode:_.Nf("kevlar_poly_si_batch_j058")?1:2});var RrE;_.bh("itemSectionRenderer","showRenderer","ytd-show-renderer");var GK=function(){return _.K.apply(this,arguments)||this};
_.H(GK,_.K);GK.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
GK.prototype.computeThumbnailWidth=function(R){return R?360:246};
GK.prototype.computeUseProminentThumbs=function(R){return R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],GK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],GK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],GK.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],GK.prototype,"isSearch",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.k("design:type",Boolean)],GK.prototype,"useProminentThumbs",void 0);_.C([_.F({is:"ytd-show-renderer",disableElementRegistration:!0})],GK);
_.B(GK,"ytd-show-renderer",function(){if(RrE!==void 0)return RrE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return RrE=R},{mode:1});_.bh("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var ZJ=function(){var R=_.K.apply(this,arguments)||this;R.isRichGrid=!1;return R};
_.H(ZJ,_.K);ZJ.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"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ZJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ZJ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ZJ.prototype,"isRichGrid",void 0);_.C([_.F({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],ZJ);
_.B(ZJ,"ytd-feed-entry-renderer",function(){if(L98!==void 0)return L98;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return L98=R},{mode:1});var AIq;var tK=function(){return _.K.apply(this,arguments)||this};
_.H(tK,_.K);tK.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.C([_.U(_.Pf),_.k("design:type",Object)],tK.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],tK.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tK.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.FE,value:3}),_.k("design:type",Number)],tK.prototype,"itemsPerRow",void 0);
_.C([_.F({is:"ytd-link-card-renderer",disableElementRegistration:!0})],tK);
_.B(tK,"ytd-link-card-renderer",function(){if(AIq!==void 0)return AIq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return AIq=R},{mode:1});var Yxf;var w9=function(){return _.K.apply(this,arguments)||this};
_.H(w9,_.K);_.l=w9.prototype;_.l.configureRendererStamper=function(){return{"data.menu":pP,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.l.onRendererTap=function(R){if(!this.ytdDismissibleItemBehavior.isDismissed){var A,Y=(A=this.data)==null?void 0:A.navigationEndpoint;Y&&!_.RP(_.Ah(R),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(Y)?_.RP(_.Ah(R),this.hostElement,["A"])||_.xo(this.hostElement,"yt-navigate",{endpoint:Y}):this.ytComponentBehavior.resolveCommand(Y,{}))}};
_.l.maybeComputeHref=function(R){return this.ytComponentBehavior.computeHref_(R,!0)};
_.l.getNavigationCommand=function(R){return this.isNavigationCommand(R)?R:null};
_.l.isNavigationCommand=function(R){return R?_.n(R,_.Ds)||_.n(R,_.LO)||_.n(R,_.G$)?!0:!1:!1};
w9.prototype.onRendererTap=w9.prototype.onRendererTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],w9.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],w9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],w9.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],w9.prototype,"ytComponentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],w9.prototype,"data",void 0);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],w9.prototype,"onRendererTap",null);_.C([_.F({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],w9);
_.B(w9,"ytd-lumiere-promo-item-image-renderer",function(){if(Yxf!==void 0)return Yxf;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Yxf=R},{mode:1});var Pnz;var u2=function(){return _.K.apply(this,arguments)||this};
_.H(u2,_.K);u2.prototype.computeLandscapeThumbnail=function(){var R;return((R=this.data)==null?void 0:R.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],u2.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],u2.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],u2.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],u2.prototype,"miniMode",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.FE}),_.k("design:type",Number)],u2.prototype,"itemsPerRow",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.k("design:type",Boolean)],u2.prototype,"landscapeThumbnail",void 0);_.C([_.F({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],u2);
_.B(u2,"ytd-lumiere-shelf-details-renderer",function(){if(Pnz!==void 0)return Pnz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Pnz=R},{mode:_.Nf("kevlar_poly_si_batch_j076")?1:2});var ExE;var eu=function(){return _.K.apply(this,arguments)||this};
_.H(eu,_.K);eu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],eu.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],eu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],eu.prototype,"data",void 0);_.C([_.F({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],eu);
_.B(eu,"ytd-primetime-promo-details-renderer",function(){if(ExE!==void 0)return ExE;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ExE=R},{mode:1});var zrb;var qt=function(){return _.K.apply(this,arguments)||this};
_.H(qt,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],qt.prototype,"data",void 0);_.C([_.F({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],qt);
_.B(qt,"ytd-panel-show-style-metadata-renderer",function(){if(zrb!==void 0)return zrb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return zrb=R},{mode:1});var icf;var LI=function(){return _.K.apply(this,arguments)||this};
_.H(LI,_.K);_.l=LI.prototype;_.l.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.l.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.l.computeThumbnail=function(R){if(R)return R.smallFormFactorBackgroundThumbnail||R.largeFormFactorBackgroundThumbnail};
_.l.maybeComputeHref=function(R){return this.ytComponentBehavior.computeHref_(R,!0)};
_.l.isNavigationCommand=function(R){return R?_.n(R,_.Ds)||_.n(R,_.LO)||_.n(R,_.G$)?!0:!1:!1};
_.l.getNavigationCommand=function(R){return this.isNavigationCommand(R)?R:null};
LI.prototype.onPanelTap=LI.prototype.onPanelTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],LI.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],LI.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],LI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],LI.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],LI.prototype,"roundedContainer",void 0);_.C([_.S({reflectToAttribute:!0,value:_.v("web_modern_buttons")}),_.k("design:type",Boolean)],LI.prototype,"modernButtons",void 0);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LI.prototype,"onPanelTap",null);_.C([_.F({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],LI);
_.B(LI,"ytd-primetime-promo-panel-renderer",function(){if(icf!==void 0)return icf;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return icf=R},{mode:1});_.Ow(_.E5(function(R){R=_.Pc(R,{data:{},useFullWidth:!1});var A=R.data,Y=R.useFullWidth;R={};return _.V("teaser-card-view-model",{class:_.To("ytTeaserCardViewModelHost",(R.ytTeaserCardViewModelUseFullWidth=function(){return Y()},R))},_.V(_.J,{cond:function(){return A().onTap},
then:function(P){return _.V(_.DW,{className:"ytTeaserCardViewModelLink",command:P},_.V("div",{class:"ytTeaserCardViewModelImageContainer"},_.V(_.J,{cond:function(){return A().image},
then:function(E){return _.V(_.P1,{data:E,className:"ytTeaserCardViewModelImage",alt:""})}})),_.V("p",{class:"ytTeaserCardViewModelCaption"},function(){return A().caption}))}}))},"Tb"),"teaser-card-view-model",{props:{data:_.VY,
useFullWidth:_.VY}});var lHb=new _.cP("RICH_GRID_VIDEO_RENDERER_TOKEN");_.Ow(_.E5(function(R){var A=R.data;var Y=R.showYtInteractionInContent;var P=function(){return!!A().selectableFeedback};
R=_.x(_.yy(!1,void 0,"qxtgaf"));var E=R.next().value,z=R.next().value;_.jO(function(){var Q=_.n(A().primaryButton,_.iS);(Q==null?0:Q.isToggled)&&z(Q.isToggled)});
R=_.Qi(function(Q){if(!P())return!1;if(E()){var g;var r=(g=A().selectableFeedback)==null?void 0:g.onDeselect}else{var I;r=(I=A().selectableFeedback)==null?void 0:I.onSelect}r&&_.Zc(r,{form:{element:Q.target}});z(!E());if(Q=_.n(A().primaryButton,_.iS))Q.isToggled=E();return!1});
var c=function(){if(!P()){var Q,g=(Q=A().loggingDirectives)==null?void 0:Q.trackingParams;g&&_.K_(_.is().resolve(_.wt),g)}},M=_.LH8(),N=function(){var Q;
return P()?(Q=A().selectableFeedback)==null?void 0:Q.a11yLabel:void 0},y=function(){return P()?{toggled:E()}:{}},m=_.is().resolve(_.z3(lHb)),T={};
return _.V("yt-feedback-item-renderer",{class:_.To("ytFeedbackItemRendererHost",(T.ytFeedbackItemRendererSelectableFeedback=P,T)),"on:click":R,"on:keydown":M,title:N,"aria-label":N,"aria-pressed":function(){return P()?E():void 0},
tabindex:function(){return P()?0:void 0},
role:function(){return P()?"button":void 0}},_.V("div",{class:"ytFeedbackItemRendererContentContainer"},_.V(_.ni,{data:function(){return A().content}},{videoRenderer:function(Q){return _.V(m,{data:Q.data,
showYtInteraction:Y})},
lockupViewModel:function(Q){return _.V(_.SW,{data:Q.data,containerType:2})}})),_.V("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.V(_.ni,{data:function(){return A().primaryButton}},{toggleButtonViewModel:function(Q){return _.V(_.uF,{data:Q.data,
buttonShapeOverrides:y,disableExplicitClickLogging:!0,onToggle:c})}})))},"Ub"),"yt-feedback-item-renderer",{props:{data:_.VY,
showYtInteractionInContent:_.VY}});var d9=function(){var R=_.K.apply(this,arguments)||this;R.isShortsGrid=!1;R.isCompactGrid=!1;R.isShortsPanelGrid=!1;R.renderedFromRichGrid=!1;R.isInFirstColumn=!1;R.noGutterMargins=!1;R.noBottomMargin=!1;R.halfBottomMargin=!1;R.isInlineGroupItem=!1;R.insetMetadata=!1;R.noBottomMarginInAds=!0;R.force16By9ThumbnailAspectRatio=!1;R.useCompactList=!1;R.containerType=2;R.thumbnailTargetWidth=9999;R.isResponsiveGrid=!1;R.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};R.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};R.hoverListener=R.hover.bind(R);R.leaveListener=R.leave.bind(R);R.highlighted=!1;R.JSC$16129_unsubscribeFromInlinePreviewIsActive=function(){};
return R};
_.H(d9,_.K);_.l=d9.prototype;_.l.computeContainerType=function(){return this.useCompactList?3:2};
_.l.computeThumbnailTargetWidth=function(){var R;return(R=this.itemWidth)!=null?R:9999};
_.l.updateIsInFirstColumn=function(){var R;this.isInFirstColumn=((R=this.data)==null?void 0:R.colIndex)===0};
_.l.observerContainerType=function(){if(this.lockup){var R=this.lockup;R.containerType=this.containerType;R.sizing=this.sizing;R.typographyBump=this.typographyBump;R.itemWidth=this.itemWidth}this.richGridMedia&&_.v("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.v("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.l.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.l.leave=function(R){R=R.relatedTarget;var A=document.querySelector("ytd-video-preview");R&&A&&_.sl(A).contains(R)||this.removeAndCleanupHighlight()};
_.l.hover=function(){var R;if(!this.highlighted&&(!_.v("web_enable_rich_item_on_focus_effect_client")||(R=this.data)!=null&&R.onFocusEffect)){var A,Y;((A=this.data)==null?void 0:(Y=A.onFocusEffect)==null?void 0:Y.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(R=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:R,boxShadow:"0 0 0 10px "+R}));var P,E;((P=this.data)==null?void 0:(E=P.onFocusEffect)==null?
void 0:E.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.l.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};
_.l.registerHoverHighlightListeners=function(){var R=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16129_unsubscribeFromInlinePreviewIsActive=_.Fq(_.Yp(),_.YVl,function(A){R.highlighted&&!A&&R.removeAndCleanupHighlight()})};
_.l.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16129_unsubscribeFromInlinePreviewIsActive()};
_.l.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.l.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.l.getBackgroundColor=function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.onFocusEffect)==null?void 0:A.onFocusColor;if(Y){if(document.documentElement.hasAttribute("dark")&&(Y==null?0:Y.darkTheme))return _.G9(Y==null?void 0:Y.darkTheme);if(Y==null?0:Y.lightTheme)return _.G9(Y==null?void 0:Y.lightTheme)}};
_.l.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var R=_.F9(),A,Y,P;R&&((A=this.data)==null?0:A.trackingParams)&&((Y=this.data)==null?void 0:Y.colIndex)!=null&&((P=this.data)==null?void 0:P.rowIndex)!=null&&_.dH(R,_.S5(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.l.isSlimMediaRenderer=function(R){return!!_.n(R==null?void 0:R.content,_.IRz)||!!_.n(R==null?void 0:R.content,S8G)||!!_.n(R==null?void 0:R.content,_.d3)||!!_.n(R==null?void 0:R.content,qOG)};
_.l.isPostRenderer=function(){var R,A;return!!_.n((R=this.data)==null?void 0:R.content,dAb)||!!_.n((A=this.data)==null?void 0:A.content,RMN)};
_.l.computeIsGameCardShelf=function(){var R;return!!_.n((R=this.data)==null?void 0:R.content,O97)};
_.l.computeIsMiniGameCardShelf=function(){var R,A;return!!_.n((R=this.data)==null?void 0:R.content,rHE)||!!_.n((A=this.data)==null?void 0:A.content,D2S)};
_.l.computeIsTeaserCard=function(){var R;return!!_.n((R=this.data)==null?void 0:R.content,D2S)};
_.l.computeIsSelectableFeedbackItem=function(){var R,A;return!((A=_.n((R=this.data)==null?void 0:R.content,_.$2E))==null||!A.selectableFeedback)};
_.l.computeContainsLumierePosters=function(){var R,A;return((A=_.n((R=this.data)==null?void 0:R.content,OA7))==null?void 0:A.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.computeIsExpandOnHoverCardShelf=function(){var R;return!!_.n((R=this.data)==null?void 0:R.content,cAH)};
_.l.computeIsLinkCardShelf=function(){var R;return!!_.n((R=this.data)==null?void 0:R.content,xvH)};
_.l.computeIsReelItemStyleAvatarCircle=function(R){var A;return((A=_.n(R==null?void 0:R.content,_.d3))==null?void 0:A.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.l.computeIsLinkCardFullWidth=function(R,A){var Y;return((Y=_.n(R==null?void 0:R.content,xvH))==null?void 0:Y.useFullWidth)||A<=2};
_.Yh.Object.defineProperties(d9.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.v("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.v("web_enable_rich_item_on_focus_effect_client")||_.v("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
d9.prototype.richGridHoverHighlightChanged=d9.prototype.richGridHoverHighlightChanged;d9.prototype.observerContainerType=d9.prototype.observerContainerType;d9.prototype.updateIsInFirstColumn=d9.prototype.updateIsInFirstColumn;_.C([_.U(_.Pf),_.k("design:type",Object)],d9.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],d9.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],d9.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],d9.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],d9.prototype,"ytdLockupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],d9.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.k("design:type",Boolean)],d9.prototype,"isPost",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.k("design:type",Boolean)],d9.prototype,"containsLumierePosters",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.k("design:type",Boolean)],d9.prototype,"isSlimMedia",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.k("design:type",Boolean)],d9.prototype,"isGameCardShelf",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.k("design:type",Boolean)],d9.prototype,"isMiniGameCardShelf",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.k("design:type",Boolean)],d9.prototype,"isTeaserCard",void 0);_.C([_.S({computed:"computeIsSelectableFeedbackItem(data)"}),_.k("design:type",Boolean)],d9.prototype,"isSelectableFeedbackItem",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"isShortsGrid",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],d9.prototype,"isSlimGrid",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"isCompactGrid",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"isShortsPanelGrid",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.k("design:type",Boolean)],d9.prototype,"isExpandOnHoverCardShelf",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.k("design:type",Boolean)],d9.prototype,"isLinkCardShelf",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.FE,value:3}),_.k("design:type",Number)],d9.prototype,"itemsPerRow",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"renderedFromRichGrid",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"isInFirstColumn",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"noGutterMargins",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"noBottomMargin",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"halfBottomMargin",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"isInlineGroupItem",void 0);_.C([_.S(),_.k("design:type",Object)],d9.prototype,"insetMetadata",void 0);_.C([_.S(),_.k("design:type",Object)],d9.prototype,"noBottomMarginInAds",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],d9.prototype,"isShelfItem",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.k("design:type",Boolean)],d9.prototype,"isReelItemStyleAvatarCircle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.k("design:type",Boolean)],d9.prototype,"isLinkCardFullWidth",void 0);_.C([_.S(),_.k("design:type",Object)],d9.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"useCompactList",void 0);_.C([_.S(),_.k("design:type",String)],d9.prototype,"sizing",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],d9.prototype,"typographyBump",void 0);_.C([_.S(),_.k("design:type",Number)],d9.prototype,"itemWidth",void 0);_.C([_.S(),_.k("design:type",Boolean)],d9.prototype,"isHomeShelf",void 0);_.C([_.S(),_.k("design:type",Boolean)],d9.prototype,"isHomeGrid",void 0);
_.C([_.nG("yt-lockup-view-model"),_.k("design:type",HTMLElement)],d9.prototype,"lockup",void 0);_.C([_.nG("ytd-rich-grid-media"),_.k("design:type",HTMLElement)],d9.prototype,"richGridMedia",void 0);_.C([_.nG("ytd-ad-slot-renderer"),_.k("design:type",HTMLElement)],d9.prototype,"adSlotRenderer",void 0);_.C([_.S({computed:"computeContainerType(useCompactList)"}),_.k("design:type",Object)],d9.prototype,"containerType",void 0);
_.C([_.S({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.k("design:type",Object)],d9.prototype,"thumbnailTargetWidth",void 0);_.C([_.X("showYtInteractionOnRichItem"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],d9.prototype,"showYtInteractionOnRichGridMedia",null);_.C([_.X("isSelectableFeedbackItem","richGridHoverHighlight"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],d9.prototype,"showYtInteractionOnRichItem",null);
_.C([_.X("typographyBump","isHomeGrid"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],d9.prototype,"richTypographyBump",null);_.C([_.S({reflectToAttribute:!0}),_.X("isShortsGrid","isCompactGrid"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],d9.prototype,"richGridHoverHighlight",null);_.C([_.X("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.k("design:type",Number),_.k("design:paramtypes",[])],d9.prototype,"shortsLockupViewModelAspectRatio",null);
_.C([_.X("isInlineGroupItem"),_.k("design:type",Number),_.k("design:paramtypes",[])],d9.prototype,"shortsLockupViewModelScrimStyle",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d9.prototype,"updateIsInFirstColumn",null);_.C([_.vZ("containerType","sizing","typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d9.prototype,"observerContainerType",null);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],d9.prototype,"isResponsiveGrid",void 0);_.C([_.S(),_.k("design:type",Object)],d9.prototype,"lockupExperiments",void 0);_.C([_.vZ("richGridHoverHighlight"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d9.prototype,"richGridHoverHighlightChanged",null);_.C([_.F({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],d9);
_.xXA=_.s5()(d9,"ytd-rich-item-renderer",function(){if(wq8===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);wq8=R}R=wq8;return R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var l9b={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var vQk=_.dF(_.vk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var cqJ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},MUb={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},sOk={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var cI7;var Rf=function(){var R=_.K.apply(this,arguments)||this;R.useResponsiveGrid=!1;R.hidden=!1;R.isShowMoreHidden=!1;R.isShowLessHidden=!0;R.hasExpansionButton=!1;R.isInnerShelf=!1;R.allVideosCount=0;R.allPlaylistCount=0;R.haveSmartDownloadsCompleted=!1;R.restrictContentsOverflow=!1;R.firstShownIndex=0;R.horizontalOffset=0;R.atEnd=!0;R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
R.nextClick=function(){var A;(A=R.data)!=null&&A.contents&&(R.firstShownIndex+=R.currentElementsPerRow,R.updateHorizontalOffset(),R.updateHorizontalItemVisibility())};
R.previousClick=function(){var A;(A=R.data)!=null&&A.contents&&(R.firstShownIndex-=R.currentElementsPerRow,R.updateHorizontalOffset(),R.updateHorizontalItemVisibility())};
return R};
_.H(Rf,_.K);_.l=Rf.prototype;
_.l.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",noBottomMargin:"[[isCollapsed]]",halfBottomMargin:"[[isExpanded]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",
params:{buttonTooltipPosition:_.a1("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.l.attached=function(){this.requestElementsPerRow()};
_.l.refreshGridLayoutNew=function(){var R;if((R=this.data)!=null&&R.contents&&this.containerWidth){var A;((A=this.data.responsiveContainerConfiguration)==null?0:A.responsiveSize)?(R=_.H28(this.data.responsiveContainerConfiguration,this.containerWidth),R=_.Ci(Object.assign({},R,{standardUnitMinWidth:this.standardUnitMinWidth}))):R=_.Ci({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=R.typographyBump;if(this.elementsPerRow!==
R.numItems||this.gutter!==R.gutter)this.elementsPerRow=R.numItems,this.gutter=R.gutter,this.itemWidth=R.itemWidth,_.ya(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":R.gutter+"px"})}};
_.l.computeSizing=function(){if(!this.isLumiere){var R=_.tfb(this.data);if(R)return R;if(_.v("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.l.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.l.computeButton=function(R){var A=_.n(R,_.RC);R=Object.assign({},_.n(R,_.RC));return A?(R.text||(R.text={simpleText:R.tooltip}),R.style="STYLE_MONO_OUTLINE",R.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",R):A};
_.l.onRowIndexChange=function(){var R=_.F9(),A,Y;((A=this.data)==null?0:A.trackingParams)&&((Y=this.data)==null?void 0:Y.rowIndex)!=null&&R&&_.dH(R,_.S5(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.l.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var R,A=((R=this.getRichItemRenderers()[0])==null?void 0:R.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*A;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.l.requestElementsPerRow=function(){_.xo(this.hostElement,"yt-request-elements-per-row")};
_.l.onUpdateElementsPerRowAction=function(R,A,Y,P,E,z){if(this.containerWidth!==z&&(this.containerWidth=z,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&R&&A&&Y&&P&&E&&(this.elementsPerRow!==R||this.postsPerRow!==A||this.slimItemsPerRow!==Y||this.gameCardsPerRow!==P||this.miniGameCardsPerRow!==E)&&(this.elementsPerRow=R,this.postsPerRow=A,this.slimItemsPerRow=Y,this.gameCardsPerRow=P,this.miniGameCardsPerRow=E,this.updateItemVisibility())};
_.l.getRichItemRenderers=function(){return _.Mo(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.l.updateItemVisibility=function(){var R=this;if(this.data&&this.data.contents){var A=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(P,E){var z;((z=R.data)==null?0:z.isExpanded)?(P.hidden=E>A-1,P.ytRendererBehavior.markDirty()):P.hidden=E>R.currentElementsPerRow-1||E>A-1});
var Y=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||Y||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||Y||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.l.setHeightToSingleRow=function(){var R=this.getRichItemRenderers(),A=Number.parseInt(getComputedStyle(R[0]).marginBottom,10)||0;R=R.slice(0,this.currentElementsPerRow).reduce(function(Y,P){return Math.max(Y,P.getBoundingClientRect().height+A)},0);
this.contents.style.height=R+"px"};
_.l.focusNextExpandedItem=function(){var R;((R=this.data)==null?0:R.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.l.focusItem=function(R,A){var Y=this.getRichItemRenderers();if(Y[R]&&(R=Y[R].querySelector(".focus-on-expand"))){if(A){var P;(P=Y[this.currentElementsPerRow])==null||P.scrollIntoView({behavior:"smooth",block:"center"})}R.focus({preventScroll:!0})}};
_.l.onDataChange=function(){var R=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var A;if((A=this.data)==null?0:A.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.RK(this,function(){R.updateItemVisibility()});
var Y;if((Y=this.data)==null?0:Y.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.ya(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),A=0;A<this.data.contents.length;A++)Y=_.n(this.data.contents[A],_.aY)||{},Y.colIndex=A,Y.rowIndex=this.data.rowIndex};
_.l.handleRerenderDownloadsData=function(){_.v("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())};
_.l.blockInlinePreview=function(R){var A=this,Y;return _.O(function(P){(Y=A.inlinePreviewIsEnabled)&&A.ytdReduxBehavior.dispatch(_.ZSN(!1));return P.return(new Promise(function(E){R(function(){Y&&A.ytdReduxBehavior.dispatch(_.ZSN(!0));E()})}))})};
_.l.expandShelf=function(){var R=this;if(this.data){var A,Y=(A=_.n(this.data.showMoreButton,_.RC))==null?void 0:A.trackingParams;Y&&_.K_(_.rU(),Y);this.data.isExpanded=!0;this.blockInlinePreview(function(P){R.setHeightToSingleRow();R.updateItemVisibility();R.contents.style.height=R.contents.scrollHeight+"px";_.fn.addJob(function(){R.contents.style.height="auto";R.focusNextExpandedItem();P()},2,200)})}};
_.l.collapseShelf=function(){var R=this;return _.O(function(A){if(A.nextAddress==1){if(!R.data)return A.return();R.data.isExpanded=!1;return A.yield(R.blockInlinePreview(function(Y){R.contents.style.height=R.contents.scrollHeight+"px";R.setHeightToSingleRow();_.fn.addJob(function(){R.updateItemVisibility();R.contents.style.height="auto";Y()},2,200)}),2)}_.xo(R.hostElement,"yt-rich-shelf-renderer-collapse",R.data.trackingParams);
R.focusItem(0,!1);_.XH(A)})};
_.l.updateArrowButtonStatus=function(){var R=this.getRichItemRenderers().length;if(!_.v("web_rich_shelf_renderer_use_data_contents_killswitch")){var A,Y;R=((A=this.data)==null?void 0:(Y=A.contents)==null?void 0:Y.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=R};
_.l.onChildElementFocus=function(R){this.hasChevronButtons&&(R=R.target.closest("#contents > *"),this.contents.contains(R)&&(R.offsetLeft<this.horizontalOffset?this.previousClick():R.offsetLeft+R.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.l.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.a1("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.l.updateHorizontalOffset=function(){var R=this.getRichItemRenderers(),A=R.length;if(!_.v("web_rich_shelf_renderer_use_data_contents_killswitch")){var Y,P;A=((Y=this.data)==null?void 0:(P=Y.contents)==null?void 0:P.length)||0}var E;R=((E=R[0])==null?void 0:E.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>A?this.firstShownIndex=A-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*R};
_.l.isSlimMediaShelfRenderer=function(){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY))==null?void 0:Y.content;return!!(_.n(P,_.IRz)||_.n(P,S8G)||_.n(P,_.d3)||_.n(P,qOG))};
_.l.isGameCardShelf=function(){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY))==null?void 0:Y.content;return!!_.n(P,O97)};
_.l.isGnomeShelf=function(){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY))==null?void 0:Y.content;return!!_.n(P,_.$2E)};
_.l.isMiniGameCardShelf=function(){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY))==null?void 0:Y.content;return!!_.n(P,rHE)||!!_.n(P,D2S)};
_.l.hasGameBoxArtAvatarStyle=function(){var R;return((R=this.data)==null?void 0:R.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.l.hasRoundedGameBoxArtAvatarStyle=function(){var R;return((R=this.data)==null?void 0:R.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.l.isShortsShelf=function(){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY))==null?void 0:Y.content;return!!_.n(P,_.d3)||!!_.n(P,qOG)};
_.l.isPostShelfRenderer=function(){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY))==null?void 0:Y.content;return!(!_.n(P,dAb)&&!_.n(P,RMN))};
_.l.isLumiereShelf=function(){var R,A,Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY);return!!_.n(Y==null?void 0:Y.content,OA7)};
_.l.isLumiereShelfWithPosters=function(){var R,A,Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY),P;return((P=_.n(Y==null?void 0:Y.content,OA7))==null?void 0:P.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.l.isExpandOnHoverCardShelf=function(){var R,A,Y,P=(Y=_.n((R=this.data)==null?void 0:(A=R.contents)==null?void 0:A[0],_.aY))==null?void 0:Y.content;return!!_.n(P,cAH)};
_.l.computeHasFeaturedBadge=function(){var R,A,Y=_.n((R=this.data)==null?void 0:(A=R.badges)==null?void 0:A[0],_.XmD);return Y?Y.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHasPaygatedFeaturedBadge=function(){var R,A,Y=_.n((R=this.data)==null?void 0:(A=R.badges)==null?void 0:A[0],_.XmD);return Y?(Y==null?void 0:Y.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.l.computeHeaderHidden=function(){var R,A,Y,P,E,z;return!((R=this.data)==null?0:R.icon)&&!((A=this.data)==null?0:A.title)&&!((Y=this.data)==null?0:Y.subtitle)&&!((P=this.data)==null?0:P.thumbnail)&&!((E=this.data)==null?0:E.badges)&&!((z=this.data)==null?0:z.menu)};
_.l.showCtaButton=function(){var R;return!((R=this.data)==null||!R.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.l.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.l.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.l.computeForce16By9ThumbnailAspectRatio=function(){var R,A;return((R=this.data)==null?void 0:(A=R.responsiveContainerConfiguration)==null?void 0:A.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.l.onSectionReactiveDismissal=function(R,A,Y){var P,E;var z=(P=this.data)==null?void 0:(E=P.targetingContext)==null?void 0:E.targetGroupId;this&&z&&A.targetGroupId&&z.includes(A.targetGroupId)?(P=this.rowIndex,R=P===void 0?!1:!(A.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&P<=R)):R=!1;R&&(this.hidden=Y)};
_.Yh.Object.defineProperties(Rf.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null?0:R.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var R=this.elementsPerRow;this.isPostShelfRenderer()?R=this.postsPerRow:this.isSlimMediaShelfRenderer()?R=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?R=this.slimItemsPerRow-1:this.isGameCardShelf()?R=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(R=this.miniGameCardsPerRow);return R}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.v("kevlar_clean_feeds_show_more")&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null?0:R.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.previousButton)&&!((A=this.data)==null||!A.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 R;return((R=_.is().resolve(_.YH).getCurrentPage())==null?void 0:R.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;return!((R=this.data)==null?0:(A=R.thumbnail)==null?0:(Y=A.accessibility)==null?0:(P=Y.accessibilityData)==null?0:P.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Rf.prototype.onChildElementFocus=Rf.prototype.onChildElementFocus;Rf.prototype.handleRerenderDownloadsData=Rf.prototype.handleRerenderDownloadsData;Rf.prototype.onDataChange=Rf.prototype.onDataChange;Rf.prototype.onRowIndexChange=Rf.prototype.onRowIndexChange;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Rf.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Rf.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.zF),_.k("design:type",Object)],Rf.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Rf.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Rf.prototype,"ytdReduxBehavior",void 0);_.C([_.S({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.k("design:type",Object)],Rf.prototype,"useResponsiveGrid",void 0);_.C([_.S(),_.k("design:type",Object)],Rf.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Number)],Rf.prototype,"standardUnitMinWidth",void 0);_.C([_.S({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],Rf.prototype,"elementsPerRow",void 0);_.C([_.S({value:3}),_.k("design:type",Number)],Rf.prototype,"postsPerRow",void 0);_.C([_.S({value:6}),_.k("design:type",Number)],Rf.prototype,"slimItemsPerRow",void 0);_.C([_.S({value:6}),_.k("design:type",Number)],Rf.prototype,"gameCardsPerRow",void 0);
_.C([_.S({value:6}),_.k("design:type",Number)],Rf.prototype,"miniGameCardsPerRow",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Rf.prototype,"hidden",void 0);_.C([_.S(),_.k("design:type",Object)],Rf.prototype,"isShowMoreHidden",void 0);_.C([_.S(),_.k("design:type",Object)],Rf.prototype,"isShowLessHidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Rf.prototype,"hasExpansionButton",void 0);
_.C([_.X("data.isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Rf.prototype,"isExpanded",null);_.C([_.X("data.isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Rf.prototype,"isCollapsed",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Rf.prototype,"isInnerShelf",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.k("design:type",Boolean)],Rf.prototype,"isShorts",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.k("design:type",Boolean)],Rf.prototype,"isLumiere",void 0);_.C([_.S({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.k("design:type",Boolean)],Rf.prototype,"hasBoxArtThumbnailStyle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.k("design:type",Boolean)],Rf.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.k("design:type",Boolean)],Rf.prototype,"hasFeaturedBadge",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.k("design:type",Boolean)],Rf.prototype,"hasPaygatedFeaturedBadge",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.k("design:type",Boolean)],Rf.prototype,"isHeaderHidden",void 0);
_.C([_.S({selector:_.xak}),_.k("design:type",Object)],Rf.prototype,"allVideosCount",void 0);_.C([_.S({selector:nQ6}),_.k("design:type",Object)],Rf.prototype,"allPlaylistCount",void 0);_.C([_.S({selector:TRu}),_.k("design:type",Object)],Rf.prototype,"haveSmartDownloadsCompleted",void 0);
_.C([_.S({selectorArgs:["entitySelectorType"],selector:function(R,A){if(_.v("kevlar_modern_downloads_page")&&A&&A!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var Y=R.entities;switch(A){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":A=_.j9(Y);R=mO(A);var P=_.$b(A);Y=_.fx(Y);Y=_.iw(VUl(P,Y,A.length));return{contents:R,subtitle:Y};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return Y=_.j9(Y),{contents:mO(Y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return Y=
_.bw(Y),{contents:mO(Y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return Y=_.BYb(Y),{contents:mO(Y)};default:_.pK(new _.XN("Error: entitySelectorType defined but not matched in selector.",R,A))}}}}),
_.k("design:type",Object)],Rf.prototype,"entityDrivenRichShelfData",void 0);_.C([_.S({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.k("design:type",Boolean)],Rf.prototype,"hasTopCtaButton",void 0);_.C([_.S({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.k("design:type",Boolean)],Rf.prototype,"hasBottomCtaButton",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.k("design:type",Boolean)],Rf.prototype,"force16By9ThumbnailAspectRatio",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Rf.prototype,"restrictContentsOverflow",void 0);_.C([_.S({selector:_.Prk}),_.k("design:type",Boolean)],Rf.prototype,"inlinePreviewIsEnabled",void 0);_.C([_.S({computed:"computeSizing(data)"}),_.k("design:type",String)],Rf.prototype,"sizing",void 0);
_.C([_.S(),_.k("design:type",Boolean)],Rf.prototype,"typographyBump",void 0);_.C([_.S(),_.k("design:type",Number)],Rf.prototype,"itemWidth",void 0);_.C([_.S(),_.k("design:type",Object)],Rf.prototype,"firstShownIndex",void 0);_.C([_.S(),_.k("design:type",Object)],Rf.prototype,"horizontalOffset",void 0);_.C([_.S(),_.k("design:type",Object)],Rf.prototype,"atEnd",void 0);_.C([_.nG("#contents"),_.k("design:type",HTMLElement)],Rf.prototype,"contents",void 0);
_.C([_.vZ("data.rowIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rf.prototype,"onRowIndexChange",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rf.prototype,"onDataChange",null);_.C([_.vZ("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rf.prototype,"handleRerenderDownloadsData",null);
_.C([_.Qa("focusin"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Rf.prototype,"onChildElementFocus",null);_.C([_.S({reflectToAttribute:!0}),_.X("data","isHomePage"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Rf.prototype,"isTruncated",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Rf.prototype,"showBottomDivider",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Rf.prototype,"hasChevronButtons",null);_.C([_.X("firstShownIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Rf.prototype,"previousButtonOverride",null);_.C([_.X("atEnd"),_.k("design:type",Object),_.k("design:paramtypes",[])],Rf.prototype,"nextButtonOverride",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Rf.prototype,"isHomePage",null);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Rf.prototype,"thumbnailAriaHidden",null);_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Rf.prototype,"entitySelectorType",null);_.C([_.F({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Rf);
_.OcN=_.s5()(Rf,"ytd-rich-shelf-renderer",function(){if(cI7===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);cI7=R}R=cI7;return R},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var Moq;_.Ow(_.Ho,"yt-badge-view-model",{props:{data:_.VY,class:_.VY,workaroundShortsIsThumbnailBadge:_.VY,modern:_.VY}});_.Ow(hF7,"yt-slimline-survey-view-model",{props:{data:_.VY}});var Ao=function(){var R=_.K.apply(this,arguments)||this;R.tileLottieAnimationRef={};R.backgroundLottieAnimationRef={};R.isOnHoverBehaviorForLottieEnabled=!0;R.useBiggerShowcaseImage=_.v("enable_desktop_search_bigger_thumbs");R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return R};
_.H(Ao,_.K);_.l=Ao.prototype;_.l.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.l.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.l.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var R=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);R!==this.hasTile&&this.set("hasTile",R);R=this.hasLogo(this.data)||!!this.data.badgeText;R!==this.hasMetadata&&this.set("hasMetadata",R);R=this.data.overflowButton?!1:R;R!==this.showLogoImage&&this.set("showLogoImage",R);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.l.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.l.currentColorChanged=function(){this.updateButtonPalette()};
_.l.computeBackgroundStyle=function(R){if(R&&this.data){var A=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var Y=_.sw((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);Y&&A.push('background-image: url("'+Y+'");')}var P;((P=R.basicColorData)==null?void 0:P.backgroundColor)!==void 0&&A.push("background-color: "+_.Zs(R.basicColorData.backgroundColor)+";");return A.join("")}};
_.l.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&this.set("isDarkTheme",R)};
_.l.getCurrentLogo=function(R,A){if(R)return A?R.darkLogoImage:R.lightLogoImage};
_.l.getCurrentStaticTileImage=function(R,A){if(this.hasStaticTile(R))return R.darkTileImage?A?R.darkTileImage:R.tileImage:R.tileImage};
_.l.computeTitleStyle=function(R){if(this.data&&this.data.title&&R&&R.basicColorData&&R.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.G9(R.basicColorData.foregroundTitleColor)+";"};
_.l.computeSubtitleStyle=function(R){if(this.data&&this.data.subtitle&&R&&R.basicColorData&&R.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.G9(R.basicColorData.foregroundBodyColor)+";"};
_.l.computeSupplementalStyle=function(R){if(this.data&&this.data.supplementalText&&R&&R.supplementalTextColor!==void 0)return R=_.G9(R.supplementalTextColor),"color:"+R+";--yt-endpoint-color:"+R+";--yt-endpoint-hover-color:"+R+";--yt-endpoint-visited-color:"+R+";--yt-formatted-string-bold-font-weight:700;"};
_.l.computeDismissIconStyle=function(R){var A,Y;if((R==null?0:(A=R.dismissButtonColorData)==null?0:A.foregroundTitleColor)&&(R==null?0:(Y=R.dismissButtonColorData)==null?0:Y.backgroundColor))return"--yt-button-color:"+_.Zs(R.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Zs(R.dismissButtonColorData.backgroundColor)+";"};
_.l.computeOverflowIconStyle=function(R){var A,Y;if((R==null?0:(A=R.dismissButtonColorData)==null?0:A.foregroundTitleColor)&&(R==null?0:(Y=R.dismissButtonColorData)==null?0:Y.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Zs(R.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Zs(R.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Zs(R.dismissButtonColorData.foregroundTitleColor)+";"};
_.l.computeBannerStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.l.computeLocation=function(R){switch(R==null?void 0:R.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.l.shouldShowTileSection=function(R,A,Y){return!this.shouldExpandLogo(R,A,Y)&&A};
_.l.shouldShowExpandedLogoSection=function(R,A,Y){return this.shouldExpandLogo(R,A,Y)&&R!==void 0&&this.hasLogo(R)};
_.l.shouldExpandLogo=function(R,A,Y){return R&&A?!1:Y>=2};
_.l.hasStaticTile=function(R){return!(R==null||!R.tileImage)};
_.l.hasTileLottie=function(R){var A;return!!(R==null?0:(A=R.tileLottie)==null?0:A.url)};
_.l.hasLogo=function(R){return this.getCurrentLogo(R,this.isDarkTheme)!==void 0};
_.l.getLogoHeight=function(R){return this.logoWithPadding(R)?"26":"20"};
_.l.getExpandedLogoHeight=function(R){return this.logoWithPadding(R)?"31":"24"};
_.l.getLogoImageId=function(R){return this.logoWithPadding(R)?"logo-image-with-padding":"logo-image"};
_.l.getMaxTitleFontSize=function(R){return R.overrideTitleMaxFontSize?String(R.overrideTitleMaxFontSize):"36"};
_.l.hasBackgroundLottie=function(R){var A;return!!(R==null?0:(A=R.backgroundLottie)==null?0:A.url)};
_.l.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var R,A;(R=this.tileLottieAnimationRef)==null||(A=R.lottieEl)==null||A.play();var Y,P;(Y=this.backgroundLottieAnimationRef)==null||(P=Y.lottieEl)==null||P.play()}};
_.l.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var R,A;(R=this.tileLottieAnimationRef)==null||(A=R.lottieEl)==null||A.pause();var Y,P;(Y=this.backgroundLottieAnimationRef)==null||(P=Y.lottieEl)==null||P.pause()}};
_.l.pauseLottie=function(){var R,A;(R=this.tileLottieAnimationRef)==null||(A=R.lottieEl)==null||A.pause();var Y,P;(Y=this.backgroundLottieAnimationRef)==null||(P=Y.lottieEl)==null||P.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.l.performPrimaryButtonAction=function(){var R,A,Y;((R=this.data)==null?0:(A=R.primaryButton)==null?0:(Y=A.buttonRenderer)==null?0:Y.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.l.requestElementsPerRow=function(){_.xo(this.hostElement,"yt-request-elements-per-row")};
_.l.updateButtonPalette=function(){if(this.data&&this.currentColorData){var R;((R=this.data.dismissButton)==null?0:R.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 A;if((A=this.data.primaryButton)==null?0:A.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 Y;if((Y=this.data.secondaryButton)==
null?0:Y.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 P;((P=this.data.primaryButton)==null?0:P.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var E;((E=this.data.secondaryButton)==null?0:E.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var z;((z=this.data.primaryButton)==null?0:z.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.l.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var R=this.getTileLottieDataBasedOnTheme(),A,Y;if(R.url!==((A=this.tileLottiePlayerProps)==null?void 0:(Y=A.animationConfig)==null?void 0:Y.path)){var P,E;(P=this.tileLottieAnimationRef)==null||(E=P.lottieEl)==null||E.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=R.settings)==null?0:z.autoplay);var c,M;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(M=(c=R.settings)==null?void 0:c.autoplay)!=null?M:!1,loop:this.getLottieLoopValue(R.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof R.url==="string"?this.tileLottiePlayerProps.animationConfig.path=R.url:this.tileLottiePlayerProps.animationConfig.animationData=R.url}}};
_.l.getOverflowButton=function(R){return _.n(R.overflowButton,Y7G)};
_.l.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var R=this.getBackgroundLottieDataBasedOnTheme(),A,Y;if(R.url!==((A=this.backgroundLottiePlayerProps)==null?void 0:(Y=A.animationConfig)==null?void 0:Y.path)){var P,E;(P=this.backgroundLottieAnimationRef)==null||(E=P.lottieEl)==null||E.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=R.settings)==null?0:z.autoplay);var c,M;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(M=(c=R.settings)==null?void 0:c.autoplay)!=null?M:!1,loop:this.getLottieLoopValue(R.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof R.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=R.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
R.url}}};
_.l.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var R;((R=this.tileLottieAnimationRef)==null?void 0:R.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var A;((A=this.backgroundLottieAnimationRef)==null?void 0:A.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.l.getTileLottieDataBasedOnTheme=function(){var R;if(this.isDarkTheme&&((R=this.data)==null?0:R.darkThemeTileLottie))return this.data.darkThemeTileLottie;var A;return((A=this.data)==null?0:A.tileLottie)?this.data.tileLottie:{}};
_.l.getBackgroundLottieDataBasedOnTheme=function(){var R;if(this.isDarkTheme&&((R=this.data)==null?0:R.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var A;return((A=this.data)==null?0:A.backgroundLottie)?this.data.backgroundLottie:{}};
_.l.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R)};
_.l.getLottieLoopValue=function(R){return R?R.loop!==void 0?R.loop:R.loopCount?R.loopCount-1:!0:!0};
_.l.logoWithPadding=function(R){var A,Y,P;return(R=(A=this.getCurrentLogo(R,this.isDarkTheme))==null?void 0:(Y=A.thumbnails)==null?void 0:(P=Y[0])==null?void 0:P.height)&&R%31===0?!0:!1};
Ao.prototype.currentColorChanged=Ao.prototype.currentColorChanged;Ao.prototype.themeChanged=Ao.prototype.themeChanged;Ao.prototype.dataChanged=Ao.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ao.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ao.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Ao.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ao.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ao.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"primaryButton",void 0);_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"secondaryButton",void 0);
_.C([_.S({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],Ao.prototype,"elementsPerRow",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ao.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ao.prototype,"hasTile",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ao.prototype,"hasMetadata",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Ao.prototype,"showLogoImage",void 0);_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"currentColorData",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.k("design:type",String)],Ao.prototype,"bannerStyle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.k("design:type",String)],Ao.prototype,"location",void 0);
_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"tileLottiePlayerProps",void 0);_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"tileLottieAnimationRef",void 0);_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"backgroundLottiePlayerProps",void 0);_.C([_.S(),_.k("design:type",Object)],Ao.prototype,"backgroundLottieAnimationRef",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ao.prototype,"useBiggerShowcaseImage",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ao.prototype,"isHideEnclosingAction",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ao.prototype,"dataChanged",null);_.C([_.Ul("isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ao.prototype,"themeChanged",null);
_.C([_.Ul("currentColorData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ao.prototype,"currentColorChanged",null);_.C([_.F({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],Ao);
_.B(Ao,"ytd-statement-banner-renderer",function(){if(Moq!==void 0)return Moq;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Moq=R},{mode:1});var sMZ;var Ye=function(){var R=_.K.apply(this,arguments)||this;R.isSearch=!1;R.hideShelfHeader=!1;R.engagementPanel=!1;R.disableMouseScroll=!0;R.useFloorScrolling=!0;R.modernTypography=_.v("web_modern_typography");return R};
_.H(Ye,_.K);Ye.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.vk("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.vk("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
Ye.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ye.prototype.onDataChanged=Ye.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ye.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ye.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ye.prototype,"hideShelfHeader",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ye.prototype,"engagementPanel",void 0);_.C([_.S(),_.k("design:type",Object)],Ye.prototype,"disableMouseScroll",void 0);_.C([_.S(),_.k("design:type",Object)],Ye.prototype,"useFloorScrolling",void 0);_.C([_.S(),_.k("design:type",Object)],Ye.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ye.prototype,"modernTypography",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ye.prototype,"onDataChanged",null);_.C([_.F({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],Ye);
_.B(Ye,"ytd-reel-shelf-renderer",function(){if(sMZ!==void 0)return sMZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return sMZ=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var N6A;var VoS;VoS=_.Z7(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.JIN=_.Jr(VoS);var yIf=_.E5(function(R){var A=R.data;R=R.useSmallFont;var Y={},P={};return _.V("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.V(_.J,{cond:function(){return A().favicon},
then:function(E){return _.V(_.P1,{data:E,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.V("div",{class:"ytChannelExternalLinkViewModelContainer"},_.V(_.NU,{text:function(){return A().title},
className:_.To("ytChannelExternalLinkViewModelTitle",(Y.ytChannelExternalLinkViewModelTitleSmallFont=R,Y)),ellipsisTruncate:!0,userInput:!0}),_.V(_.NU,{text:function(){return A().link},
className:_.To("ytChannelExternalLinkViewModelLink",(P.ytChannelExternalLinkViewModelLinkSmallFont=R,P)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Vb");
yIf.idomCompat=!0;_.Ow(yIf,"yt-channel-external-link-view-model",{props:{data:_.VY,useSmallFont:_.VY}});_.bh("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Pa=function(){var R=_.K.apply(this,arguments)||this;R.revealButtonClass="button";R.businessEmailDisplayState="HIDE_SECTION";return R};
_.H(Pa,_.K);_.l=Pa.prototype;_.l.refit=function(){var R=this;_.wg(function(){_.MT(R.hostElement,"yt-refit-popups-action")});
_.RK(this,function(){_.MT(R.hostElement,"yt-refit-popups-action")})};
_.l.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Gr(_.JIN),this.businessEmailDisplayState="CAPTCHA")};
_.l.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"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.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"}}}};
_.l.computeEmailHref=function(R){return"mailto:"+R};
_.l.computeSafeUrl=function(R){if(R)return _.oR(R)};
_.l.linkEndpoint=function(R){return _.n(R.onTap,_.CC)};
_.l.linkEndpointToHref=function(R){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(R))};
_.l.onYtServiceRequestCompleted=function(R){var A;if((A=R.detail.data)==null?0:A.businessEmail)this.businessEmail=R.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var Y;if((Y=R.detail.data)==null?0:Y.errorMessage)this.businessEmailErrorMessage=R.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var R=this.JSC$16242_captchaTextarea.value;if(R){R={recaptcha_response_token:R,channel_id:this.metadata.channelId};var A=_.n(this.metadata.onBusinessEmailRevealClickCommand,_.CC);A&&this.ytComponentBehavior.resolveCommand(A,{form:R})}}};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Yh.Object.defineProperties(Pa.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var R;return _.n((R=this.data)==null?void 0:R.metadata,VSb)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.n(this.metadata.businessEmailRevealButton,_.E7)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var R=new URL(this.metadata.canonicalChannelUrl);return R.host+R.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 _.n(this.metadata.learnMoreOnTap,_.CC)}}});
Pa.prototype.onYtServiceRequestCompleted=Pa.prototype.onYtServiceRequestCompleted;Pa.prototype.businessEmailMetadataChanged=Pa.prototype.businessEmailMetadataChanged;Pa.prototype.refit=Pa.prototype.refit;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Pa.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Pa.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Pa.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("#g-recaptcha-response"),_.k("design:type",HTMLTextAreaElement)],Pa.prototype,"JSC$16242_captchaTextarea",void 0);_.C([_.S(),_.k("design:type",Object)],Pa.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Pa.prototype,"revealButtonClass",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pa.prototype,"metadata",null);
_.C([_.X("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pa.prototype,"revealButton",null);_.C([_.X("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pa.prototype,"channelDisplayUrl",null);_.C([_.Ul("metadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pa.prototype,"refit",null);_.C([_.X("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pa.prototype,"formattedDescription",null);
_.C([_.X("metadata","learnMoreCommand"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Pa.prototype,"shouldRendereVerifiedPhoneStatus",null);_.C([_.X("metadata"),_.k("design:type",Object),_.k("design:paramtypes",[])],Pa.prototype,"learnMoreCommand",null);_.C([_.S(),_.k("design:type",String)],Pa.prototype,"businessEmailDisplayState",void 0);_.C([_.S(),_.k("design:type",String)],Pa.prototype,"businessEmail",void 0);
_.C([_.S(),_.k("design:type",String)],Pa.prototype,"businessEmailErrorMessage",void 0);_.C([_.Ul("metadata"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Pa.prototype,"businessEmailMetadataChanged",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Pa.prototype,"onYtServiceRequestCompleted",null);_.C([_.F({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Pa);
_.B(Pa,"ytd-about-channel-renderer",function(){if(N6A!==void 0)return N6A;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return N6A=R},{mode:1});var mXN;var EZ=function(){return _.K.apply(this,arguments)||this};
_.H(EZ,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],EZ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],EZ.prototype,"data",void 0);_.C([_.F({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],EZ);
_.B(EZ,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(mXN!==void 0)return mXN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return mXN=R},{mode:1});var T6z;var zH=function(){return _.K.apply(this,arguments)||this};
_.H(zH,_.K);zH.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],zH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zH.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],zH.prototype,"aligment",void 0);_.C([_.F({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],zH);
_.B(zH,"ytd-channel-list-sub-menu-renderer",function(){if(T6z!==void 0)return T6z;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return T6z=
R},{mode:1});var QMH;var i9=function(){return _.K.apply(this,arguments)||this};
_.H(i9,_.K);i9.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}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],i9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],i9.prototype,"data",void 0);_.C([_.F({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],i9);
_.B(i9,"ytd-channel-sub-menu-renderer",function(){if(QMH!==void 0)return QMH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QMH=R},{mode:1});var vx8;var gxD;var l9=function(){var R=_.K.apply(this,arguments)||this;R.isCompact=!1;return R};
_.H(l9,_.K);_.Yh.Object.defineProperties(l9.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var R,A;return((A=_.n((R=this.data)==null?void 0:R.endpoint,_.G$))==null?void 0:A.target)==="TARGET_NEW_WINDOW"}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],l9.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],l9.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],l9.prototype,"isCompact",void 0);_.C([_.X("isCompact"),_.k("design:type",Number),_.k("design:paramtypes",[])],l9.prototype,"thumbnailWidth",null);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],l9.prototype,"openNewWindow",null);_.C([_.F({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],l9);
_.B(l9,"ytd-media-lockup-renderer",function(){if(gxD!==void 0)return gxD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gxD=R},{mode:1});var nxG;var xe=function(){return _.K.apply(this,arguments)||this};
_.H(xe,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xe.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],xe.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xe.prototype,"data",void 0);_.C([_.F({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],xe);
_.B(xe,"ytd-structured-description-channel-lockup-renderer",function(){if(nxG!==void 0)return nxG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return nxG=R},{mode:1});var HcD;var ca=function(){var R=_.K.apply(this,arguments)||this;R.isCompact=!1;R.collections=_.v("web_modern_collections_v2");R.collectionsStackColor=_.v("modernize_structured_description_playlist_lockups_v2");return R};
_.H(ca,_.K);ca.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:_.v("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Yh.Object.defineProperties(ca.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E,z;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(R=this.data)==null?void 0:(A=R.thumbnail)==null?void 0:A.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(Y=this.data)==null?void 0:(P=Y.thumbnail)==null?void 0:P.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(E=this.data)==null?void 0:(z=E.thumbnail)==
null?void 0:z.vibrantColorPalette:void 0}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ca.prototype,"componentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ca.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ca.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ca.prototype,"showSidePanelThumbnailOverlay",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ca.prototype,"isCompact",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ca.prototype,"collections",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ca.prototype,"collectionsStackColor",void 0);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ca.prototype,"twoLineTitle",null);
_.C([_.X("data","collections","collectionsStackColor"),_.k("design:type",Object),_.k("design:paramtypes",[])],ca.prototype,"collectionStack",null);_.C([_.F({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],ca);
_.B(ca,"ytd-structured-description-playlist-lockup-renderer",function(){if(HcD!==void 0)return HcD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return HcD=R},{mode:1});var rIz;var OZ=function(){return _.K.apply(this,arguments)||this};
_.H(OZ,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],OZ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],OZ.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],OZ.prototype,"data",void 0);_.C([_.F({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],OZ);
_.B(OZ,"ytd-structured-description-video-lockup-renderer",function(){if(rIz!==void 0)return rIz;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return rIz=R},{mode:2});var Me=function(){return _.K.apply(this,arguments)||this};
_.H(Me,_.K);
Me.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}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Me.prototype,"data",void 0);_.C([_.F({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Me);
_.B(Me,"ytd-compact-infocard-renderer",function(){if(vx8!==void 0)return vx8;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return vx8=R},{mode:1});var DXZ;var sZ=function(){var R=_.K.apply(this,arguments)||this;R.useModernCollectionsV2=_.v("web_modern_collections_v2");return R};
_.H(sZ,_.K);sZ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Yh.Object.defineProperties(sZ.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sZ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],sZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],sZ.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],sZ.prototype,"ytdReduxBehavior",void 0);_.C([_.S({selector:_.B1}),_.k("design:type",Object)],sZ.prototype,"isGridViewEnabled",void 0);
_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sZ.prototype,"watchFeedBigThumbs",null);_.C([_.X("isGridViewEnabled","data"),_.S({reflectToAttribute:!0,value:"168"}),_.k("design:type",String),_.k("design:paramtypes",[])],sZ.prototype,"thumbnailWidth",null);_.C([_.X("isGridViewEnabled","data"),_.S({reflectToAttribute:!0,value:"94"}),_.k("design:type",String),_.k("design:paramtypes",[])],sZ.prototype,"customThumbnailSize",null);
_.C([_.S(),_.k("design:type",Object)],sZ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],sZ.prototype,"useModernCollectionsV2",void 0);_.C([_.F({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],sZ);
_.B(sZ,"ytd-compact-playlist-renderer",function(){if(DXZ!==void 0)return DXZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return DXZ=R},{mode:1});var UXS;var Ne=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.roundedContainer=!0;R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return R};
_.H(Ne,_.K);_.l=Ne.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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"}}}};
_.l.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.l.computeViewStyle=function(R){return R.style?R.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.l.onUpdateElementsPerRowAction=function(R){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&R===1};
_.l.requestElementsPerRow=function(){_.xo(this.hostElement,"yt-request-elements-per-row")};
Ne.prototype.dataChanged=Ne.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Ne.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ne.prototype,"actionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],Ne.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Ne.prototype,"hideThumbnail",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.k("design:type",String)],Ne.prototype,"viewStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ne.prototype,"darkerDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ne.prototype,"roundedContainer",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ne.prototype,"dataChanged",null);_.C([_.F({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],Ne);
_.B(Ne,"ytd-compact-promoted-item-renderer",function(){if(UXS!==void 0)return UXS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return UXS=R},{mode:1});var $Xz;var Vu=function(){var R=_.K.apply(this,arguments)||this;R.collections=_.v("web_modern_collections_v2");return R};
_.H(Vu,_.K);Vu.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Vu.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Vu.prototype.onYtNavigate=function(R,A){var Y=this;if(A.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",A)){var P=this.get("watchEndpoint.videoId",A.endpoint),E=_.MT(this.hostElement,"yt-get-current-video-id-action")[0];_.v("kevlar_mix_handle_first_endpoint_different")&&P&&E&&P!==E||(R.stopPropagation(),_.zI().getPlayerPromise().then(function(z){if(z.getPlayerState()===0&&Y.data.secondaryNavigationEndpoint)var c=Y.data.secondaryNavigationEndpoint;else{c=
Object.assign({},A.endpoint);var M=_.n(c.commandMetadata,_.Ti);M&&(z=Math.floor(z.getCurrentTime()),M.url=_.du(M.url,{t:z}),!_.v("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(M=_.n(c,_.LO)))&&(M.startTimeSeconds=z)}_.xo(Y.hostElement,"yt-navigate",{endpoint:c})}))}};
_.Yh.Object.defineProperties(Vu.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(R=this.data)==null?void 0:(A=R.thumbnail)==null?void 0:A.sampledThumbnailColor,vibrantColorPalette:(Y=this.data)==null?void 0:(P=Y.thumbnail)==null?void 0:P.vibrantColorPalette,darkColorPalette:(E=this.data)==null?void 0:(z=E.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
Vu.prototype.onYtNavigate=Vu.prototype.onYtNavigate;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Vu.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.bF.YtEndpointBehavior),_.k("design:type",Object)],Vu.prototype,"ytEndpointBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Vu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Vu.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.sH),_.k("design:type",Object)],Vu.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Vu.prototype,"ytdReduxBehavior",void 0);_.C([_.S({selector:_.B1}),_.k("design:type",Object)],Vu.prototype,"isGridViewEnabled",void 0);_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Vu.prototype,"watchFeedBigThumbs",null);
_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],Vu.prototype,"thumbnailWidth",null);_.C([_.S(),_.k("design:type",Object)],Vu.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Vu.prototype,"collections",void 0);_.C([_.X("data","collections"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vu.prototype,"collectionStack",null);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Vu.prototype,"onYtNavigate",null);_.C([_.F({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Vu);
_.B(Vu,"ytd-compact-radio-renderer",function(){if($Xz!==void 0)return $Xz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $Xz=R},{mode:1});var X6q;var Jo=function(){return _.K.apply(this,arguments)||this};
_.H(Jo,_.K);Jo.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Jo.prototype.computeRendererStyle=function(R){return R.style?R.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.C([_.S(),_.k("design:type",Object)],Jo.prototype,"data",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Jo.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Jo.prototype,"rendererBehavior",void 0);_.C([_.S({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.k("design:type",String)],Jo.prototype,"rendererStyle",void 0);_.C([_.F({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Jo);
_.B(Jo,"ytd-compact-text-promo-renderer",function(){if(X6q!==void 0)return X6q;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return X6q=R},{mode:1});var SxG;var yu=function(){var R=_.K.apply(this,arguments)||this;R.isShortsStyle=!1;return R};
_.H(yu,_.K);_.l=yu.prototype;_.l.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"}}}};
_.l.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.xo(this.hostElement,"yt-disable-lockup-interaction"):_.xo(this.hostElement,"yt-enable-lockup-interaction"))};
_.l.isMetaBlockEmpty=function(R){return!R||!R.longBylineText&&!R.shortBylineText&&!R.shortViewCountText&&!R.viewCountText};
_.l.computeHasOneLineTitle=function(R){return this.forceOneLineTitle||!(R==null||!R.buttons)};
_.l.computeDisableInteraction=function(){var R;return!((R=this.data)==null?0:R.navigationEndpoint)};
_.l.hasSingularTopStandaloneBadge=function(){var R;return!((R=this.data)==null||!R.topStandaloneBadge)};
_.Yh.Object.defineProperties(yu.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("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 R;return this.hasSingularTopStandaloneBadge()?[(R=this.data)==null?void 0:R.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var R;return this.shouldShowTopBadges?((R=this.data)==null?void 0:R.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
yu.prototype.disableInteractionChanged=yu.prototype.disableInteractionChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yu.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],yu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],yu.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],yu.prototype,"ytdLockupBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],yu.prototype,"ytdReduxBehavior",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.k("design:type",Boolean)],yu.prototype,"metaBlockEmpty",void 0);_.C([_.S({selector:_.B1}),_.k("design:type",Object)],yu.prototype,"isGridViewEnabled",void 0);_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yu.prototype,"watchFeedBigThumbs",null);
_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],yu.prototype,"thumbnailWidth",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],yu.prototype,"isShortsStyle",void 0);_.C([_.S(),_.k("design:type",Object)],yu.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.k("design:type",Boolean)],yu.prototype,"hasOneLineTitle",void 0);
_.C([_.S(),_.k("design:type",Boolean)],yu.prototype,"hideThumbnail",void 0);_.C([_.S(),_.k("design:type",Boolean)],yu.prototype,"forceOneLineTitle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.k("design:type",Boolean)],yu.prototype,"disableInteraction",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],yu.prototype,"musicMetadataVideoLockup",void 0);
_.C([_.vZ("disableInteraction"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yu.prototype,"disableInteractionChanged",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yu.prototype,"shouldShowTopBadges",null);_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],yu.prototype,"topBadges",null);
_.C([_.X("shouldShowTopBadges","data"),_.k("design:type",Array),_.k("design:paramtypes",[])],yu.prototype,"inlineMetadataBadges",null);_.C([_.X("shouldShowTopBadges"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yu.prototype,"shouldShowBadgesBelowMetadata",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yu.prototype,"compactTitleClass",null);_.C([_.F({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],yu);
_.B(yu,"ytd-compact-video-renderer",function(){if(SxG!==void 0)return SxG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return SxG=R},{mode:_.Nf("kevlar_poly_si_batch_j067")?1:2});var IHE;_.bh("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var mN=function(){return _.K.apply(this,arguments)||this};
_.H(mN,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mN.prototype,"data",void 0);_.C([_.F({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],mN);
_.B(mN,"ytd-counterfactual-renderer",function(){if(IHE!==void 0)return IHE;var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return IHE=R},{mode:1});var K1H;var TH=function(){var R=_.K.apply(this,arguments)||this;R.hidden=!1;return R};
_.H(TH,_.K);TH.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.is().resolve(_.ls).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
TH.prototype.computeHidden=function(R){return!!R};
_.Yh.Object.defineProperties(TH.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}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],TH.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],TH.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.k("design:type",Object)],TH.prototype,"hidden",void 0);_.C([_.X("data.label"),_.k("design:type",String),_.k("design:paramtypes",[])],TH.prototype,"label",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],TH.prototype,"value",null);
_.C([_.F({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],TH);
_.B(TH,"ytd-dropdown-item-renderer",function(){if(K1H!==void 0)return K1H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return K1H=R},{mode:1});var W1E;var jMb;var Qu=function(){return _.K.apply(this,arguments)||this};
_.H(Qu,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qu.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qu.prototype,"data",void 0);_.C([_.S({computed:"getSimpleString(data.label)"}),_.k("design:type",String)],Qu.prototype,"label",void 0);_.C([_.F({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],Qu);
_.B(Qu,"ytd-navigation-dropdown-item-renderer",function(){if(jMb!==void 0)return jMb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return jMb=R},{mode:1});var va=function(){var R=_.K.apply(this,arguments)||this;R.disabled=!1;R.value="";R.noLabelFloat=!1;R.noUnderline=!1;R.usePrimaryColor=!1;R.hasBackground=!1;R.verticalAlign="top";R.autosize=!1;R.minAutosizeWidth=100;R.autosizeFont="14px Roboto";return R};
_.H(va,_.K);_.l=va.prototype;_.l.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"}}}};
_.l.open=function(){this.inputEl.open()};
_.l.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.l.dataChanged=function(){this.reset()};
_.l.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("value-changed",this.value))};
_.l.stopPropagation=function(R){R.stopPropagation()};
_.l.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var R=this.canvas.getContext("2d");R&&(R.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(R.measureText(this.inputEl.value).width)+24)+"px")}};
_.l.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var R=0,A=this.data.entries.length;R<A;R++){var Y=this.data.entries[R],P;for(P in Y)if(Y.hasOwnProperty(P)){var E=Y[P];if("isSelected"in E&&E.isSelected)return"stringValue"in E?E.stringValue||"":"int32Value"in E?E.int32Value||0:0}}return null};
_.l.updateValueFromBinding=function(R){this.value=R.detail.value};
_.Yh.Object.defineProperties(va.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 R=0,A=this.data.entries.length;R<A;R++){var Y=this.data.entries[R],P;for(P in Y)if(Y.hasOwnProperty(P)){var E=Y[P];if("isSelected"in E&&E.isSelected&&"label"in E)return this.ytRendererBehavior.getSimpleString(E.label)}}return null}}});
va.prototype.autoSizeLabel=va.prototype.autoSizeLabel;va.prototype.stopPropagation=va.prototype.stopPropagation;va.prototype.valueChangedForBinding=va.prototype.valueChangedForBinding;va.prototype.dataChanged=va.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],va.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],va.prototype,"ytRendererStamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],va.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],va.prototype,"disabled",void 0);_.C([_.S(),_.k("design:type",Object)],va.prototype,"value",void 0);_.C([_.S(),_.k("design:type",Object)],va.prototype,"noLabelFloat",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],va.prototype,"noUnderline",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],va.prototype,"theme",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],va.prototype,"usePrimaryColor",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],va.prototype,"hasBackground",void 0);_.C([_.S(),_.k("design:type",Object)],va.prototype,"verticalAlign",void 0);_.C([_.S(),_.k("design:type",Object)],va.prototype,"autosize",void 0);_.C([_.S(),_.k("design:type",Object)],va.prototype,"minAutosizeWidth",void 0);_.C([_.S(),_.k("design:type",Object)],va.prototype,"autosizeFont",void 0);
_.C([_.nG("#entries"),_.k("design:type",Object)],va.prototype,"entries",void 0);_.C([_.nG("#input"),_.k("design:type",Object)],va.prototype,"inputEl",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],va.prototype,"dataChanged",null);_.C([_.Ul("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],va.prototype,"valueChangedForBinding",null);
_.C([_.Qa("iron-overlay-opened"),_.Qa("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],va.prototype,"stopPropagation",null);_.C([_.Qa("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],va.prototype,"autoSizeLabel",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],va.prototype,"label",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],va);
_.B(va,"ytd-dropdown-renderer",function(){if(W1E!==void 0)return W1E;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return W1E=R},{mode:1});var bcS;var gj=function(){var R=_.K.apply(this,arguments)||this;R.isConstrainedList=!1;return R};
_.H(gj,_.K);gj.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"}}}};
gj.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
gj.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
gj.prototype.computeViewAllHidden=function(R,A){return R||!A.viewAllEndpoint};
gj.prototype.fillRestIfNoShowMore=gj.prototype.fillRestIfNoShowMore;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gj.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],gj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],gj.prototype,"ytLazyListBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],gj.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gj.prototype,"isConstrainedList",void 0);_.C([_.Ul("data","canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gj.prototype,"fillRestIfNoShowMore",null);_.C([_.F({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],gj);
_.B(gj,"ytd-expanded-shelf-contents-renderer",function(){if(bcS!==void 0)return bcS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return bcS=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var fHN;var nv=function(){return _.K.apply(this,arguments)||this};
_.H(nv,_.K);nv.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}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nv.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],nv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nv.prototype,"data",void 0);_.C([_.F({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],nv);
_.B(nv,"ytd-feed-channel-filter-header-renderer",function(){if(fHN!==void 0)return fHN;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return fHN=R},{mode:1});var p6q;var F1A;var B6b;var Ha=function(){return _.K.apply(this,arguments)||this};
_.H(Ha,_.K);_.l=Ha.prototype;_.l.onClick=function(R){var A,Y=(A=this.data)==null?void 0:A.sectionEndpoint;!_.RP(_.Ah(R),this.hostElement,["A".toString()])&&Y&&_.xo(this.hostElement,"yt-navigate",{endpoint:Y})};
_.l.computeHasSectionEndpoint=function(R){return(R==null?void 0:R.sectionEndpoint)!==void 0};
_.l.computeShowHeaderAsLink=function(R){return(R==null?void 0:R.header)!==void 0&&(R==null?void 0:R.sectionEndpoint)!==void 0};
_.l.computeShowSubheaderAsLink=function(R){return(R==null?void 0:R.subheader)!==void 0&&(R==null?void 0:R.sectionEndpoint)!==void 0&&(R==null?void 0:R.header)===void 0};
_.l.getHeaderAsLinkClass=function(R){var A=[],Y;(R==null?0:(Y=R.headerIcon)==null?0:Y.iconType)&&A.push("header-link-active");return A.join(" ")};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ha.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ha.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ha.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ha.prototype,"data",void 0);
_.C([_.S({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ha.prototype,"hasSectionEndpoint",void 0);_.C([_.S({computed:"computeShowHeaderAsLink(data)"}),_.k("design:type",Boolean)],Ha.prototype,"showHeaderAsLink",void 0);_.C([_.S({computed:"computeShowSubheaderAsLink(data)"}),_.k("design:type",Boolean)],Ha.prototype,"showSubheaderAsLink",void 0);_.C([_.F({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Ha);
_.B(Ha,"ytd-medical-panel-section-renderer",function(){if(B6b!==void 0)return B6b;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return B6b=R},{mode:1});var rj=function(){var R=_.K.apply(this,arguments)||this;R.isExpanded=!1;R.roundedContainer=!0;R.skipRoundingTop=!1;R.toggleExpandableSection=function(){R.isExpanded=!R.isExpanded};
return R};
_.H(rj,_.K);
rj.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]]"}}}}}};
rj.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
rj.prototype.dataChanged=rj.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rj.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],rj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rj.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],rj.prototype,"isExpanded",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rj.prototype,"roundedContainer",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rj.prototype,"skipRoundingTop",void 0);_.C([_.S(),_.k("design:type",Object)],rj.prototype,"toggleExpandableSection",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rj.prototype,"dataChanged",null);_.C([_.F({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],rj);
_.B(rj,"ytd-medical-panel-content-renderer",function(){if(F1A!==void 0)return F1A;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return F1A=R},{mode:1});_.bh("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var Dl=function(){var R=_.K.apply(this,arguments)||this;R.roundedContainer=!0;R.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");R.hasTitle=!1;R.linkIcon="OPEN_IN_NEW";R.isDismissed=!1;return R};
_.H(Dl,_.K);
Dl.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"}}}};
Dl.prototype.computeHasTitle=function(R){return!(R==null||!R.title)};
Dl.prototype.onClick=function(R){var A,Y=(A=this.data)==null?void 0:A.headerEndpoint;!_.RP(_.Ah(R),this.hostElement,["BUTTON".toString()])&&Y&&this.ytComponentBehavior.resolveCommand(Y)};
_.Yh.Object.defineProperties(Dl.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 R;return((R=this.data)==null?void 0:R.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:R.disableBottomDivider)||!((A=this.data)==null?0:A.title)}}});
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Dl.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Dl.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Dl.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Dl.prototype,"roundedContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Dl.prototype,"amsterdamEnabled",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.k("design:type",Object)],Dl.prototype,"hasTitle",void 0);
_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.X("data.background"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dl.prototype,"background",null);_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.X("data.titleStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dl.prototype,"titleStyle",null);
_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.X("data.titleStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dl.prototype,"showLinkIcon",null);_.C([_.S(),_.k("design:type",String)],Dl.prototype,"linkIcon",void 0);_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Dl.prototype,"hideDivider",null);
_.C([_.S({selectorArgs:["data.dismissStateEntityKey"],selector:function(R,A){R=_.mc(R.entities,"dismissState",A);return(R==null?void 0:R.isDismissed)||(R==null?void 0:R.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(R==null?void 0:R.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.k("design:type",Object)],Dl.prototype,"isDismissed",void 0);_.C([_.F({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],Dl);
_.B(Dl,"ytd-info-panel-container-renderer",function(){if(p6q!==void 0)return p6q;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return p6q=R},{mode:1});var aHH;_.bh("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var UZ=function(){var R=_.K.apply(this,arguments)||this;R.modernTypography=_.v("web_modern_typography");return R};
_.H(UZ,_.K);UZ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
UZ.prototype.computeStyle=function(R){return R?R:""};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],UZ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],UZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],UZ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.k("design:type",String)],UZ.prototype,"titleStyle",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],UZ.prototype,"modernTypography",void 0);_.C([_.F({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],UZ);
_.B(UZ,"ytd-item-section-header-renderer",function(){if(aHH!==void 0)return aHH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return aHH=R},{mode:1});var CnG;var hrZ,oxb=function(){return hrZ!==void 0?hrZ:hrZ=document.createElement("template")};
document.head.appendChild(oxb().content);var k_E;_.$e=new _.cP("VOTING_ANIMATION_CONTROLLER_TOKEN");var Zcf=_.E5(function(R){var A=R.data;var Y=_.LK("div"),P=_.LK("div");R=_.x(_.yy("VOTE_STATUS_NONE",void 0,"YPH5mf"));var E=R.next().value,z=R.next().value,c=_.vT(rq3,function(){var Q;return(Q=A())==null?void 0:Q.entityKey}),M=_.v("web_enable_voting_animation")||_.v("enable_music_web_cairo_voting_animation");
_.jO(function(){var Q;((Q=A().initialState)==null?0:Q.status)&&z(A().initialState.status)});
var N=function(){var Q,g,r=(g=(Q=A().initialState)==null?void 0:Q.votes)!=null?g:0,I;Q=(I=A().initialState)==null?void 0:I.status;return Q==="VOTE_STATUS_UPVOTED"?r-1:Q==="VOTE_STATUS_DOWNVOTED"?r+1:r},y=function(){return E()==="VOTE_STATUS_UPVOTED"?N()+1:E()==="VOTE_STATUS_DOWNVOTED"?N()-1:N()},m=function(Q){var g=Q?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
z(g);var r=y(),I=_.is().resolve(_.z3(_.$e)),b=c();b&&(Q&&(b==null?0:b.upvoteDefaultButtonOnTap)?_.Zc(b.upvoteDefaultButtonOnTap,{form:{element:Y.value},disableClickTracking:!0}):(b==null?0:b.upvoteToggledButtonOnTap)&&_.Zc(b.upvoteToggledButtonOnTap,{form:{element:Y.value},disableClickTracking:!0}));var p;Q=(p=b==null?void 0:b.enableOptimisticReordering)!=null?p:A().enableOptimisticReordering;M&&I&&A().itemId&&Q&&G_f(I,A().itemId,r,g)},T=function(Q){var g=Q?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
z(g);var r=y(),I=_.is().resolve(_.z3(_.$e)),b=c();b&&(Q&&(b==null?0:b.downvoteDefaultButtonOnTap)?_.Zc(b.downvoteDefaultButtonOnTap,{form:{element:P.value},disableClickTracking:!0}):(b==null?0:b.downvoteToggledButtonOnTap)&&_.Zc(b.downvoteToggledButtonOnTap,{form:{element:P.value},disableClickTracking:!0}));var p;Q=(p=b==null?void 0:b.enableOptimisticReordering)!=null?p:A().enableOptimisticReordering;M&&I&&A().itemId&&Q&&G_f(I,A().itemId,r,g)};
R={};R=_.To("ytVotingViewModelVoteCount",(R.ytVotingViewModelVoteCountDisabled=function(){return A().isDisabled},R));
return _.V("voting-view-model",{class:"ytVotingViewModelHost"},_.V("div",{el:Y},_.V(_.ni,{data:function(){var Q=_.n(A().upvoteButton,_.iS);return{toggleButtonViewModel:Object.assign({},Q,{isToggled:E()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Q){return _.V(_.uF,{data:Q.data,
onToggle:m})}})),_.V("div",{class:R},function(){var Q,g,r;
return E()==="VOTE_STATUS_UPVOTED"?(Q=A().initialState)==null?void 0:Q.compactVotesUpvoted:E()==="VOTE_STATUS_DOWNVOTED"?(g=A().initialState)==null?void 0:g.compactVotesDownvoted:(r=A().initialState)==null?void 0:r.compactVotes}),_.V("div",{el:P},_.V(_.ni,{data:function(){var Q=_.n(A().downvoteButton,_.iS);
return{toggleButtonViewModel:Object.assign({},Q,{isToggled:E()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Q){return _.V(_.uF,{data:Q.data,
onToggle:T})}})))},"Wb");_.Ow(_.E5(function(R){var A=R.data;return _.V("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.V("div",{class:_.To("ytEngagementBarViewModelEngagementBarWrapper",R.className)},_.V(_.ni,{data:function(){return A().actions}},{votingViewModel:Zcf})))},"Xb"),"engagement-bar-view-model",{props:{data:_.VY,
className:_.VY}});var XG=function(){var R=_.K.apply(this,arguments)||this;R.playlistVotingAnimationEnabled=_.v("web_enable_voting_animation");R.downloadProgress=0;R.transferState="TRANSFER_STATE_UNKNOWN";R.downloadState="DOWNLOAD_STATE_UNKNOWN";R.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";R.offlineVideoPolicyExpirationTimestamp=0;return R};
_.H(XG,_.K);_.l=XG.prototype;_.l.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"}}}};
_.l.canReorderChanged=function(){this.persistentDragHandle=_.v("kevlar_playlist_drag_handles")&&this.canReorder};
_.l.onDrag=function(){if(this.thumbnail){var R=_.Mo(this.thumbnail).querySelector("yt-image");R&&(R.shouldRenderLazy=!1)}};
_.l.onMenuOverlayChanged=function(R,A){this.menuOpened=A};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.l.onContentsTap=function(R){var A,Y=(A=this.data)==null?void 0:A.serviceEndpoints;if(Y&&Y.length===1&&_.n(Y[0],KDI)&&!_.RP(_.Ah(R),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(Y[0]);else{var P;(A=(P=this.data)==null?void 0:P.navigationEndpoint)&&_.v("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?toS(_.is().resolve(_.jv),A):(_.f_().playlistSuggestionsShelfActivation=
!0,_.w6D(_.is().resolve(_.jv),A)):A&&!_.RP(_.Ah(R),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.v("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.xo(this.hostElement,"yt-navigate",{endpoint:A}):this.ytComponentBehavior.resolveCommand(A))}};
_.l.computeStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(R){return R==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.l.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=L$q(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))}};
_.l.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.l.dataChanged=function(){if(this.data){var R,A,Y,P=((R=this.downloadRenderData)==null?void 0:R.badges)&&((A=this.downloadRenderData)==null?void 0:A.badges)!==((Y=this.data)==null?void 0:Y.badges),E,z,c;R=((E=this.downloadRenderData)==null?void 0:E.thumbnailOverlays)&&((z=this.downloadRenderData)==null?void 0:z.thumbnailOverlays)!==((c=this.data)==null?void 0:c.thumbnailOverlays);(!this.downloadRenderData||P||R)&&this.downloadStateChanged()}};
_.l.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var R,A,Y=(R=this.data.menu)==null?void 0:(A=R.menuRenderer)==null?void 0:A.items;if(Y)for(R=_.x(Y),A=R.next();!A.done;A=R.next())if(A=A.value,Y=void 0,_.n((Y=A.menuServiceItemRenderer)==null?void 0:Y.serviceEndpoint,_.qN)){var P=Y=void 0,E=void 0;A=(Y=A)==null?void 0:(P=Y.menuServiceItemRenderer)==null?void 0:(E=P.serviceEndpoint)==null?void 0:E.playlistEditEndpoint;E=P=void 0;if(Y=(P=A)==null?void 0:(E=P.actions)==null?void 0:
E[0])P=void 0,Y.setVideoId=(P=this.data)==null?void 0:P.setVideoId;E=P=Y=void 0;if(A=(Y=A)==null?void 0:(P=Y.clientActions)==null?void 0:(E=P[0])==null?void 0:E.playlistRemoveVideosAction)Y=void 0,A.setVideoIds=[(Y=this.data)==null?void 0:Y.setVideoId]}}};
_.Yh.Object.defineProperties(XG.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
XG.prototype.setVideoIdChanged=XG.prototype.setVideoIdChanged;XG.prototype.dataChanged=XG.prototype.dataChanged;XG.prototype.downloadStateChanged=XG.prototype.downloadStateChanged;XG.prototype.onMenuOverlayChanged=XG.prototype.onMenuOverlayChanged;XG.prototype.canReorderChanged=XG.prototype.canReorderChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],XG.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],XG.prototype,"ytdReduxBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],XG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],XG.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],XG.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],XG.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],XG.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"canReorder",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"menuOpened",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"handleIsHovered",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"persistentDragHandle",void 0);_.C([_.S(),_.k("design:type",Object)],XG.prototype,"downloadRenderData",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],XG.prototype,"styleType",void 0);_.C([_.S({computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],XG.prototype,"thumbnailWidth",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"isDownloads",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],XG.prototype,"playlistVotingAnimationEnabled",void 0);
_.C([_.S({selector:kb,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],XG.prototype,"downloadProgress",void 0);_.C([_.S(),_.k("design:type",Number)],XG.prototype,"relativeDateReference",void 0);_.C([_.S({selector:_.h0,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],XG.prototype,"transferState",void 0);_.C([_.S({selector:g7J,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],XG.prototype,"downloadState",void 0);
_.C([_.S({selector:i1k,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],XG.prototype,"offlinePolicyAction",void 0);_.C([_.S({selector:lpq,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],XG.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.C([_.S({selector:cdJ,selectorArgs:["data.videoId"]}),_.k("design:type",Object)],XG.prototype,"entityInfo",void 0);_.C([_.S({selector:_.BK}),_.k("design:type",Boolean)],XG.prototype,"miniplayerIsActive",void 0);
_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],XG.prototype,"playlistVideoId",null);_.C([_.nG("#thumbnail"),_.k("design:type",Object)],XG.prototype,"thumbnail",void 0);_.C([_.Ul("canReorder"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"canReorderChanged",null);
_.C([_.Qa("yt-menu-overlay-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Boolean]),_.k("design:returntype")],XG.prototype,"onMenuOverlayChanged",null);_.C([_.Ul("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"downloadStateChanged",null);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"dataChanged",null);_.C([_.Ul("data.setVideoId"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],XG.prototype,"setVideoIdChanged",null);_.C([_.F({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],XG);
_.B(XG,"ytd-playlist-video-renderer",function(){if(k_E!==void 0)return k_E;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);R.content.insertBefore(oxb().content.cloneNode(!0),R.content.firstChild);return k_E=R},{mode:1});var upZ;var S4=function(){return _.K.apply(this,arguments)||this};
_.H(S4,_.K);_.C([_.S(),_.k("design:type",Object)],S4.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],S4.prototype,"rendererBehavior",void 0);_.C([_.F({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],S4);
_.B(S4,"ytd-premium-browse-footer-renderer",function(){if(upZ!==void 0)return upZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return upZ=R},{mode:1});var erz;var If=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return R};
_.H(If,_.K);_.l=If.prototype;_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.handleDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.computeHeaderLogoThumbnail=function(R,A){if(R)return A?R.darkLogo:R.lightLogo};
_.l.computeHeaderLogoHeight=function(R,A){var Y,P,E;return(R=(Y=this.computeHeaderLogoThumbnail(R,A))==null?void 0:(P=Y.thumbnails)==null?void 0:(E=P[0])==null?void 0:E.height)&&R%31===0?"31":"24"};
_.l.computeHeaderLogoMarginBottom=function(R,A){return this.computeHeaderLogoHeight(R,A)==="24"?"0":"-7"};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],If.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],If.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],If.prototype,"isDarkTheme",void 0);_.C([_.S({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.k("design:type",Object)],If.prototype,"themeLogo",void 0);
_.C([_.S({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.k("design:type",String)],If.prototype,"logoHeight",void 0);_.C([_.S({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.k("design:type",String)],If.prototype,"logoMarginBottom",void 0);_.C([_.F({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],If);
_.B(If,"ytd-primetime-promo-header-renderer",function(){if(erz!==void 0)return erz;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return erz=R},{mode:1});var qxb;var dXq=_.E5(function(R){var A=_.Qi(function(E){var z;(z=R.onClick)==null||z.call(R,E)}),Y={},P={};
return _.V("yt-shelf-header-layout",{class:_.To("shelf-header-layout-wiz",(Y["shelf-header-layout-wiz--disable-horizontal-padding"]=R.disableHorizontalPadding,Y["shelf-header-layout-wiz--disable-vertical-padding"]=R.disableVerticalPadding,Y["shelf-header-layout-wiz--responsive"]=R.useResponsiveLayout,Y["shelf-header-layout-wiz--narrow"]=function(){var E,z;return((E=R.useResponsiveLayout)==null?void 0:E.call(R))&&((z=R.forceSmallLayout)==null?void 0:z.call(R))},Y["shelf-header-layout-wiz--is-overlay"]=
R.isOverlay,Y["shelf-header-layout-wiz--tappable"]=R.isInteractive,Y)),
"on:click":A,tabindex:function(){var E;return((E=R.isInteractive)==null?0:E.call(R))?0:void 0}},_.V(_.J,{cond:R.leadingIcon,
then:function(E){return _.V("div",{class:"shelf-header-layout-wiz__leading-icon"},_.V(_.H1,{icon:E}))},
else:function(){return _.V(_.J,{cond:R.hasLeadingImage,then:function(){var E,z={};return _.V("div",{class:_.To("shelf-header-layout-wiz__leading-image",(z["shelf-header-layout-wiz__leading-image--circular-image"]=R.circularImage,z))},(E=R.leadingImage)==null?void 0:E.call(R))}})}}),_.V("div",{class:"shelf-header-layout-wiz__label-container"},_.V(_.J,{cond:R.hasSuperlabel,
then:function(){var E;return _.V("div",{class:"shelf-header-layout-wiz__superlabel"},(E=R.superlabel)==null?void 0:E.call(R))}}),_.V("div",{class:"shelf-header-layout-wiz__title-row"},_.V(L1N,{text:R.title,
className:_.To("shelf-header-layout-wiz__title",(P["shelf-header-layout-wiz__title--small-title"]=R.forceSmallLayout,P)),tagLevel:R.tagLevel}),_.V(_.J,{cond:R.hasDetail,then:function(){var E;return _.V("div",{class:"shelf-header-layout-wiz__detail"},(E=R.detail)==null?void 0:E.call(R))}})),_.V(_.J,{cond:R.hasSublabel,
then:function(){var E;return _.V("div",{class:"shelf-header-layout-wiz__sublabel"},(E=R.sublabel)==null?void 0:E.call(R))}})),_.V(_.J,{cond:R.hasTrailingActions,
then:function(){var E;return _.V("div",{class:"shelf-header-layout-wiz__trailing-actions"},(E=R.trailingActions)==null?void 0:E.call(R))}}))},"Yb");
dXq.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var L1N=_.E5(function(R){var A=R.text;var Y=R.className;var P=R.tagLevel;return _.V(_.SO,null,_.V(_.$W,{when:function(){return(P==null?void 0:P())===0}},function(){return _.V("h2",{class:Y},A())}),_.V(_.$W,{when:function(){return(P==null?void 0:P())===1}},function(){return _.V("h3",{class:Y},A())}),_.V(_.$W,{when:function(){return(P==null?void 0:P())===2}},function(){return _.V("h4",{class:Y},A())}),_.V(_.Xc,null,function(){return _.V("h2",{class:Y},A())}))},"Zb");var YE7,RiH,ATS;_.Kv=_.E5(function(R){var A=R.className;var Y=R.data;var P=R.disableHorizontalPadding;var E=R.disableVerticalPadding;var z=R.forceSmallLayout;var c=R.useResponsiveLayout;R=R.isOverlay;return _.V("yt-section-header-view-model",{class:_.To("ytSectionHeaderViewModelHost",A),style:_.nY({"background-color":function(){return Tt(Y().backgroundColor)?_.Zs(Tt(Y().backgroundColor)):void 0}})},_.V(dXq,{hasDetail:!1,
title:function(){return _.V(_.NU,{text:function(){return Y().headline}})},
hasTitle:!0,sublabel:function(){return _.V(RiH,{data:Y})},
hasSublabel:function(){return!!Y().sublabel||!!Y().bottomBadge},
superlabel:function(){return _.V(ATS,{data:Y})},
hasSuperlabel:function(){return!!Y().superlabel||!!Y().topBadge},
leadingImage:function(){return _.V(YE7,{leadingAccessory:function(){return Y().leadingAccessory}})},
hasLeadingImage:function(){return!!Y().leadingAccessory},
trailingActions:function(){return _.V(_.ni,{data:function(){return Y().trailingActions}},{flexibleActionsViewModel:_.dy})},
hasTrailingActions:function(){return!!Y().trailingActions},
disableHorizontalPadding:P,disableVerticalPadding:E,forceSmallLayout:z,useResponsiveLayout:c,isOverlay:R,isInteractive:function(){return!!_.jd(Y().rendererContext)},
onClick:function(M){if(_.bc(Y().rendererContext)){var N=_.jd(Y().rendererContext);N&&_.oZ(N,{form:{element:M.target,event:M}})}}}))},"$b");
YE7=_.E5(function(R){var A=R.leadingAccessory;return _.V(_.lI,null,_.V(_.J,{cond:function(){var Y;return(Y=A().image)!=null?Y:_.h4(A().themedImage)},
then:function(Y){return _.V(_.P1,{data:Y,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.V(_.J,{cond:function(){return _.n(A().avatar,_.pi)},
then:function(Y){return _.V(_.qW,{data:Y})}}))},"ac");
RiH=_.E5(function(R){var A=R.data;return _.V(_.lI,null,_.V(_.J,{cond:function(){return _.n(A().bottomBadge,lWD)},
then:function(Y){var P={};return _.V(_.Ho,{data:Y,class:_.To((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!Y()&&!!A().sublabel},P))})}}),_.V(_.J,{cond:function(){return A().sublabel},
then:function(Y){return _.V(_.NU,{text:Y})}}))},"bc");
ATS=_.E5(function(R){var A=R.data;return _.V(_.lI,null,_.V(_.J,{cond:function(){return _.n(A().topBadge,lWD)},
then:function(Y){var P={};return _.V(_.Ho,{data:Y,class:_.To((P.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!Y()&&!!A().superlabel},P))})}}),_.V(_.J,{cond:function(){return A().superlabel},
then:function(Y){return _.V(_.NU,{text:Y})}}))},"cc");_.Ow(_.Kv,"yt-section-header-view-model",{props:{data:_.VY,className:_.VY,disableHorizontalPadding:_.VY,disableVerticalPadding:_.VY,forceSmallLayout:_.VY,useResponsiveLayout:_.VY,isOverlay:_.VY}});_.bh("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var Wa=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return R};
_.H(Wa,_.K);_.l=Wa.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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"}}}};
_.l.onDataChange=function(){var R=this;_.RK(this,function(){R.updateItemVisibility()})};
_.l.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R,this.updateItemVisibility())};
_.l.updateItemVisibility=function(){var R=this;this.data&&this.data.panels&&_.Mo(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(A,Y){A.hidden=Y>R.elementsPerRow-1})};
_.l.requestElementsPerRow=function(){_.xo(this.hostElement,"yt-request-elements-per-row")};
Wa.prototype.onDataChange=Wa.prototype.onDataChange;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Wa.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Wa.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Wa.prototype,"actionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],Wa.prototype,"data",void 0);_.C([_.S({value:3}),_.k("design:type",Number)],Wa.prototype,"elementsPerRow",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wa.prototype,"onDataChange",null);_.C([_.F({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],Wa);
_.B(Wa,"ytd-primetime-promo-renderer",function(){if(qxb!==void 0)return qxb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qxb=R},{mode:1});var P_E;var j4=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return R};
_.H(j4,_.K);j4.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
j4.prototype.handleButtonRefreshAction=function(R){if(R=_.n(R,bF7))this.set("data.button",R.membershipButton),this.notifyPath("data.button")};
_.Yh.Object.defineProperties(j4.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:(A=R.avatars)==null?void 0:A.slice(0,8))||[]}}});
_.C([_.S(),_.k("design:type",Object)],j4.prototype,"data",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],j4.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],j4.prototype,"rendererBehavior",void 0);_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],j4.prototype,"avatars",null);
_.C([_.F({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],j4);
_.B(j4,"ytd-recognition-shelf-renderer",function(){if(P_E!==void 0)return P_E;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return P_E=R},{mode:1});var EFN;var ziA;var b9=function(){var R=_.K.apply(this,arguments)||this;R.modernButtons=_.v("web_modern_buttons");return R};
_.H(b9,_.K);_.l=b9.prototype;
_.l.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]",lockupExperiments:"[[lockupExperiments]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",
showRenderer:"ytd-show-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.l.dataChanged=function(){this.collapsed=!0};
_.l.computeVisibleItems=function(R,A){return R!==void 0&&R.items?A?R.items.slice(0,this.data.collapsedItemCount):R.items:[]};
_.l.computeHideShowMore=function(R,A,Y){return R>=A||!Y};
_.l.computeHideShowAll=function(R,A,Y){return!(R&&A)||Y};
_.l.onMoreClick=function(){this.collapsed=!1};
_.Yh.Object.defineProperties(b9.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.v("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.OK("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.v("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
b9.prototype.dataChanged=b9.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],b9.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],b9.prototype,"isSearch",void 0);
_.C([_.S({computed:"computeVisibleItems(data,collapsed)"}),_.k("design:type",Array)],b9.prototype,"visibleItems",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],b9.prototype,"collapsed",void 0);_.C([_.S({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.k("design:type",Boolean)],b9.prototype,"hideShowMore",void 0);
_.C([_.S({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.k("design:type",Boolean)],b9.prototype,"hideShowAll",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],b9.prototype,"modernButtons",void 0);_.C([_.X("isSearch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],b9.prototype,"typographyBump",null);
_.C([_.X("isSearch"),_.k("design:type",Object),_.k("design:paramtypes",[])],b9.prototype,"lockupExperiments",null);_.C([_.X("isSearch"),_.k("design:type",String),_.k("design:paramtypes",[])],b9.prototype,"thumbnailWidth",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b9.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],b9);
_.B(b9,"ytd-vertical-list-renderer",function(){if(ziA!==void 0)return ziA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ziA=R},{mode:1});var iWS=_.Z7(["#"]);_.bh("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var fv=function(){var R=_.K.apply(this,arguments)||this;R.isConstrainedList=!1;R.modernTypography=_.v("web_modern_typography");return R};
_.H(fv,_.K);_.l=fv.prototype;
_.l.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"}}}};
_.l.computeThumbnailStyle=function(R){return R||""};
_.l.computePlaceAnnotationUnderTitle=function(){var R;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((R=this.data)==null?void 0:R.thumbnailStyle)||"")};
_.l.computeHrefWithDefault=function(R){return this.ytComponentBehavior.computeHref_(R)||_.AOk(iWS)};
_.l.computeIsPromoShelf=function(R){var A;return(R=R==null?void 0:(A=R[0])==null?void 0:A.metadataBadgeRenderer)?R.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.l.computePlaceBadgeBesideTitle=function(R){var A;return(R==null?0:(A=R[0])==null?0:A.metadataBadgeRenderer)?!this.computeIsPromoShelf(R):!1};
_.l.computeMenuIcon=function(R){return this.computeIsPromoShelf(R)?"yt-icons:more_vert":"yt-icons:more"};
_.l.onDataChange=function(){var R,A;((R=this.data)==null?0:(A=R.content)==null?0:A.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.l.onLockupRequested=function(R){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&R.detail&&R.detail.videoIds){for(var A=this.data.content.gridRenderer.items,Y=new Set,P=_.x(R.detail.videoIds),E=P.next();!E.done;E=P.next())Y.add(E.value);R.detail.returnValue=A.filter(function(z){return z.gridVideoRenderer&&z.gridVideoRenderer.videoId&&Y.has(z.gridVideoRenderer.videoId)}).map(function(z){return z.gridVideoRenderer})}};
_.l.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
fv.prototype.onLockupRequested=fv.prototype.onLockupRequested;fv.prototype.onDataChange=fv.prototype.onDataChange;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],fv.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fv.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],fv.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],fv.prototype,"ironResizableBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fv.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],fv.prototype,"isSearch",void 0);_.C([_.S(),_.k("design:type",Object)],fv.prototype,"isConstrainedList",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("kevlar_fluid_dismiss")}}),
_.k("design:type",Boolean)],fv.prototype,"enableFluidDismiss",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.k("design:type",String)],fv.prototype,"thumbnailStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fv.prototype,"modernTypography",void 0);_.C([_.S({computed:"computeMenuIcon(data.badges)"}),_.k("design:type",String)],fv.prototype,"menuIcon",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fv.prototype,"onDataChange",null);_.C([_.Qa("yt-lockup-requested"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],fv.prototype,"onLockupRequested",null);_.C([_.F({is:"ytd-shelf-renderer",disableElementRegistration:!0})],fv);
_.B(fv,"ytd-shelf-renderer",function(){if(EFN!==void 0)return EFN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return EFN=R},{mode:1});var ldN;var pv=function(){return _.K.apply(this,arguments)||this};
_.H(pv,_.K);pv.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Yh.Object.defineProperties(pv.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pv.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pv.prototype,"data",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],pv.prototype,"isPlaylist",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],pv.prototype,"isClipList",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],pv.prototype,"isPlaylistPageWithFilters",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],pv.prototype,"hasTitle",null);_.C([_.S(),_.X("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.k("design:type",Object),_.k("design:paramtypes",[])],pv.prototype,"isRightAligned",null);
_.C([_.F({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],pv);
_.B(pv,"ytd-sort-filter-header-renderer",function(){if(ldN!==void 0)return ldN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ldN=R},{mode:1});var xPZ;var FG=function(){var R=_.K.apply(this,arguments)||this;R.enableRightArrowHidden=_.v("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return R};
_.H(FG,_.K);FG.prototype.attached=function(){var R=this;this.enableRightArrowHidden&&(this.JSC$16371_throttledOnResize=new _.kH(function(){var A;(A=R.ytdHorizontalListBehavior)==null||A.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var A;
(A=R.JSC$16371_throttledOnResize)==null||A.fire()}),this.resizeObserver.observe(this.hostElement))};
FG.prototype.detached=function(){if(this.enableRightArrowHidden){var R;(R=this.resizeObserver)==null||R.disconnect();var A;(A=this.JSC$16371_throttledOnResize)==null||A.dispose()}};
FG.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]]"}}}}}};
FG.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Yh.Object.defineProperties(FG.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.v("enable_creator_details_shelf_m2")){var R=[],A;((A=this.data)==null?0:A.creatorVideosButton)&&R.push(this.data.creatorVideosButton);var Y;((Y=this.data)==null?0:Y.creatorAboutButton)&&R.push(this.data.creatorAboutButton);A=_.x(this.data.creatorCustomUrlButtons||[]);for(Y=A.next();!Y.done;Y=A.next())R.push(Y.value);return R}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.v("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],FG.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],FG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.DP.YtdHorizontalListBehavior),_.k("design:type",Object)],FG.prototype,"ytdHorizontalListBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],FG.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],FG.prototype,"engagementPanel",void 0);
_.C([_.S(),_.k("design:type",Object)],FG.prototype,"enableRightArrowHidden",void 0);_.C([_.X("enableRightArrowHidden","atEnd"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],FG.prototype,"hideRightArrow",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],FG.prototype,"creatorCustomUrlButtons",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data","creatorCustomUrlButtons"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],FG.prototype,"showCreatorCustomUrlButtons",null);_.C([_.X("showCreatorCustomUrlButtons"),_.k("design:type",Number),_.k("design:paramtypes",[])],FG.prototype,"channelAvatarSize",null);_.C([_.F({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],FG);
_.B(FG,"ytd-video-description-infocards-section-renderer",function(){if(xPZ!==void 0)return xPZ;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_" hidden="[[hideRightArrow]]">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return xPZ=R},{mode:_.Nf("kevlar_poly_si_batch_j067")?1:2});var cTZ;var Ba=function(){return _.K.apply(this,arguments)||this};
_.H(Ba,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ba.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ba.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.infoIcon)"}),_.k("design:type",Object)],Ba.prototype,"infoIcon",void 0);_.C([_.F({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],Ba);
_.B(Ba,"ytd-eom-settings-disclaimer-renderer",function(){if(cTZ!==void 0)return cTZ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return cTZ=R},{mode:1});var OWD;var af=function(){return _.K.apply(this,arguments)||this};
_.H(af,_.K);_.Yh.Object.defineProperties(af.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.suppressPaddingDisclaimer)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],af.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],af.prototype,"componentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],af.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],af.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],af.prototype,"suppressPaddingDisclaimer",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],af);
_.B(af,"ytd-product-list-header-renderer",function(){if(OWD!==void 0)return OWD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return OWD=R},{mode:1});var M38;var Cv=function(){return _.K.apply(this,arguments)||this};
_.H(Cv,_.K);Cv.prototype.computeThumbnailStyle=function(R){if(R&&(R=_.G9(R)))return"background-color:"+R+";"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Cv.prototype,"rendererBehaviors",void 0);_.C([_.S(),_.k("design:type",Object)],Cv.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Cv);
_.B(Cv,"ytd-hashtag-tile-renderer",function(){if(M38!==void 0)return M38;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return M38=R},{mode:1});var srZ;var ho=function(){return _.K.apply(this,arguments)||this};
_.H(ho,_.K);ho.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}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ho.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ho.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ho.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],ho);
_.B(ho,"ytd-sponsorships-alert-renderer",function(){if(srZ!==void 0)return srZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return srZ=R},{mode:1});var NiS;var of=function(){return _.K.apply(this,arguments)||this};
_.H(of,_.K);of.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Yh.Object.defineProperties(of.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.v("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.v("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.C([_.U(_.zF),_.k("design:type",Object)],of.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],of.prototype,"ytdLockupBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.C([_.S({selector:_.B1}),_.k("design:type",Object)],of.prototype,"isGridViewEnabled",void 0);
_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],of.prototype,"watchFeedBigThumbs",null);_.C([_.X("isGridViewEnabled"),_.S({reflectToAttribute:!0}),_.k("design:type",String),_.k("design:paramtypes",[])],of.prototype,"thumbnailWidth",null);_.C([_.S(),_.k("design:type",Object)],of.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],of);
_.B(of,"ytd-compact-movie-renderer",function(){if(NiS!==void 0)return NiS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return NiS=R},{mode:1});var V37;var JT8;var yTZ=_.a1("HTML_DIR")==="rtl",ke=function(){var R=_.K.apply(this,arguments)||this;R.engagementPanel=!1;R.maxLines=2;R.expandButtonOffset=0;R.showExpandButton=!1;R.isTruncated=!1;R.isExpanded=!1;R.currentSnippetType=2;R.alwaysShowExpandButton=!1;R.JSC$16388_lastWidth=NaN;R.observer=null;R.left=0;R.right=0;R.mid=0;R.longestSnippetLength=0;R.isFinalSnippet=!1;R.isFirstMutation=!1;R.isResetMutation=!1;R.OVERFLOW_THRESHOLD=5;return R};
_.H(ke,_.K);_.l=ke.prototype;_.l.onClick=function(R){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var A;if((A=window.getSelection())==null||!A.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.l.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.l.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.l.updateTextOnSnippetTypeChange=function(){_.v("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.l.setUpBinarySearch=function(R){R=R*this.maxLines/8;this.left=0;var A,Y;this.right=Math.min(R*2,(Y=(A=this.simpleText)==null?void 0:A.length)!=null?Y:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.l.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.l.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.pK(new _.XN("AttributedSnippet is empty when the description is not empty",this.text))};
_.l.mutationCallback=function(){if(this.observer!=null){var R=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var A=Math.floor(R*this.maxLines/8);this.setSnippetText(this.text,A);A!==0||this.attributedTextIsEmpty()||_.pK(new _.XN("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;R=R*this.maxLines/8;this.left=0;var Y;this.right=Math.min(R*2,(Y=(A=this.simpleText)==null?void 0:A.length)!=null?Y: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)}}};
_.l.mutationObserve=function(R){var A=this;this.observer||(this.observer=new MutationObserver(function(){A.mutationCallback()}));
this.observer.observe(R,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.l.attached=function(){var R=this;_.RK(this,function(){R.resize()})};
_.l.isExpandedChanged=function(){_.xo(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.l.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)};
_.l.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var R="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((yTZ?"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",R);this.snippetContainer.style.setProperty("mask-image",
R)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(yTZ?"right":"left",this.expandButtonOffset+"px")};
_.l.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.l.setSnippetText=function(R,A){R||(R={});if(_.RE(R)){var Y=LC(R,A);Y.attachmentRuns||Y.commandRuns||Y.decorationRuns||Y.styleRuns||Y.alignment||Y.lineBreakMode?this.attributedSnippetTextEl?(_.v("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=LC(R,A),this.attributedSnippetTextEl.headerRuns=Evk(A,this.headerRuns)):this.attributedSnippetText={data:LC(R,A),headerRuns:Evk(A,this.headerRuns)},this.currentSnippetType=0):_.pK(new _.XN("Tried to set snippet text when HTML element was null",
R)):(this.plainSnippetText.textContent=wU(R.content||"",A),this.currentSnippetType=2)}else{a:{Y=D08(R,A);if(Y.runs){Y=_.x(Y.runs);for(var P=Y.next();!P.done;P=Y.next())if(P=P.value,P.bold||P.deemphasize||P.italics||P.strikethrough||P.textColor||P.navigationEndpoint||_.n(P,Bc)){Y=!0;break a}}Y=!1}Y?this.formattedSnippetText?(this.formattedSnippetText.text=D08(R,A),this.currentSnippetType=1):_.pK(new _.XN("Tried to set snippet text when HTML element was null",R)):(this.plainSnippetText.textContent=
wU(_.R4(R),A),this.currentSnippetType=2)}};
_.l.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.l.attributedTextIsEmpty=function(){var R=this.text;if(!_.RE(R))return!0;var A;return((A=R.content)==null?void 0:A.length)===0?!0:!1};
_.l.resize=function(R){if(this.snippetText){if(R===void 0?0:R)this.JSC$16388_lastWidth=NaN;var A=this.hostElement.offsetWidth;if(A!==this.JSC$16388_lastWidth&&!this.isExpanded)if(this.JSC$16388_lastWidth=A,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;R=0;var Y,P;A=Math.min(A*this.maxLines/8*2,(P=(Y=this.simpleText)==null?void 0:Y.length)!=null?P:0)-1;for(Y=0;R<=A;)P=Math.floor(R+(A-R)/2),this.setSnippetText(this.text,P),this.isOverflowing()?A=P-1:(R=P+1,Y=P);this.setSnippetText(this.text,Y);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.l.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.l.onExpandClick=function(){var R=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.v("inline_expander_reset_focus_killswitch")||_.RK(this,function(){var A;((A=_.is().resolve(_.z3(_.rt)))==null?0:A.isKeyBoardInUse())&&_.qz(R.hostElement)});
_.xo(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.l.onCollapseClick=function(){this.collapse();_.xo(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.l.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.l.computeExpandButtonOffset=function(){var R=this.expandSizer;return R?yTZ?R.offsetParent?R.offsetParent.offsetWidth-R.offsetWidth-R.offsetLeft:0:R.offsetLeft:0};
_.Yh.Object.defineProperties(ke.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.RE(this.text)?this.text.content||"":_.R4(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 _.RE(this.text)?!0:this.text&&_.v("web_replace_formatted_with_attributed_string")&&SSV(this.text)?(this.text=_.FS(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}}});
ke.prototype.onTextChanged=ke.prototype.onTextChanged;ke.prototype.updateMaskAndExpandButtonOffset=ke.prototype.updateMaskAndExpandButtonOffset;ke.prototype.updateSnippetContainerMaxHeight=ke.prototype.updateSnippetContainerMaxHeight;ke.prototype.isExpandedChanged=ke.prototype.isExpandedChanged;ke.prototype.updateTextOnSnippetTypeChange=ke.prototype.updateTextOnSnippetTypeChange;ke.prototype.updateIsFormattedExpanded=ke.prototype.updateIsFormattedExpanded;ke.prototype.updateIsAttributedExpanded=ke.prototype.updateIsAttributedExpanded;
ke.prototype.onClick=ke.prototype.onClick;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ke.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ke.prototype,"text",void 0);_.C([_.S(),_.k("design:type",Array)],ke.prototype,"headerRuns",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ke.prototype,"engagementPanel",void 0);_.C([_.S(),_.k("design:type",Object)],ke.prototype,"maxLines",void 0);
_.C([_.S(),_.k("design:type",String)],ke.prototype,"expandLabel",void 0);_.C([_.S(),_.k("design:type",String)],ke.prototype,"collapseLabel",void 0);_.C([_.S(),_.k("design:type",Object)],ke.prototype,"expandCommand",void 0);_.C([_.S(),_.k("design:type",Object)],ke.prototype,"expandButtonOffset",void 0);_.C([_.X("text"),_.k("design:type",String),_.k("design:paramtypes",[])],ke.prototype,"simpleText",null);
_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ke.prototype,"onClick",null);_.C([_.X("text","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],ke.prototype,"expandedText",null);_.C([_.X("headerRuns","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],ke.prototype,"expandedHeaderRuns",null);
_.C([_.X("text"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ke.prototype,"hasAttributedStringText",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ke.prototype,"showExpandButton",void 0);_.C([_.X("collapseLabel","isExpanded"),_.k("design:type",Object),_.k("design:paramtypes",[])],ke.prototype,"showCollapseButton",null);_.C([_.S(),_.k("design:type",Object)],ke.prototype,"isTruncated",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ke.prototype,"isExpanded",void 0);_.C([_.S(),_.k("design:type",Boolean)],ke.prototype,"isAttributedExpanded",void 0);_.C([_.vZ("isExpanded","hasAttributedStringText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ke.prototype,"updateIsAttributedExpanded",null);_.C([_.S(),_.k("design:type",Boolean)],ke.prototype,"isFormattedExpanded",void 0);
_.C([_.vZ("isExpanded","hasAttributedStringText"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ke.prototype,"updateIsFormattedExpanded",null);_.C([_.S(),_.k("design:type",Number)],ke.prototype,"currentSnippetType",void 0);_.C([_.X("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],ke.prototype,"useAttributedSnippet",null);
_.C([_.X("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],ke.prototype,"useFormattedSnippet",null);_.C([_.X("currentSnippetType"),_.k("design:type",Object),_.k("design:paramtypes",[])],ke.prototype,"usePlainSnippet",null);_.C([_.S(),_.k("design:type",Object)],ke.prototype,"alwaysShowExpandButton",void 0);_.C([_.vZ("currentSnippetType"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ke.prototype,"updateTextOnSnippetTypeChange",null);
_.C([_.S(),_.k("design:type",Object)],ke.prototype,"attributedSnippetText",void 0);_.C([_.nG("#snippet"),_.k("design:type",HTMLElement)],ke.prototype,"snippetContainer",void 0);_.C([_.nG("#snippet-text"),_.k("design:type",HTMLElement)],ke.prototype,"snippetText",void 0);_.C([_.nG("#plain-snippet-text"),_.k("design:type",HTMLElement)],ke.prototype,"plainSnippetText",void 0);_.C([_.nG("#formatted-snippet-text"),_.k("design:type",Object)],ke.prototype,"formattedSnippetText",void 0);
_.C([_.nG("#attributed-snippet-text"),_.k("design:type",Object)],ke.prototype,"attributedSnippetTextEl",void 0);_.C([_.nG("#expand"),_.k("design:type",HTMLElement)],ke.prototype,"expandButton",void 0);_.C([_.nG("#expand-sizer"),_.k("design:type",HTMLElement)],ke.prototype,"expandSizer",void 0);_.C([_.Ul("isExpanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ke.prototype,"isExpandedChanged",null);
_.C([_.vZ("isExpanded","maxLines"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ke.prototype,"updateSnippetContainerMaxHeight",null);_.C([_.vZ("isTruncated","showExpandButton","expandButtonOffset"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ke.prototype,"updateMaskAndExpandButtonOffset",null);
_.C([_.Ul("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ke.prototype,"onTextChanged",null);_.C([_.F({is:"ytd-text-inline-expander",disableElementRegistration:!0})],ke);
_.B(ke,"ytd-text-inline-expander",function(){if(JT8===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expanded" class="style-scope ytd-text-inline-expander"><yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></div><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);JT8=R}R=JT8;return R},{mode:2});var GH=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return R};
_.H(GH,_.K);GH.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
GH.prototype.handleUpdateDescriptionAction=function(R){if(R=_.n(R,_.jsS))if(R.attributedDescription)this.set("data.attributedDescriptionBodyText",R.attributedDescription);else if(R.description){var A;((A=this.data)==null?0:A.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.FS(R.description)):this.set("data.descriptionBodyText",R.description)}};
_.Yh.Object.defineProperties(GH.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.attributedDescriptionBodyText)||!((A=this.data)==null||!A.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.collapsedLineCount){var A;return(A=this.data)==null?void 0:A.collapsedLineCount}R=_.cU("web_watch_description_collapsed_default_lines",12);if(_.v("ww_desc_line_page_size_ks"))return R;A=Math.round(_.XI().height*_.cU("web_watch_description_screen_height_percentage",.5)/20);return Math.max(A,R)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return(Y=(R=this.data)==null?void 0:R.descriptionBodyText)!=null?Y:(A=this.data)==null?void 0:A.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.sourceAttributions}}});
GH.prototype.panelContentVisibleChanged=GH.prototype.panelContentVisibleChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],GH.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],GH.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],GH.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Boolean)],GH.prototype,"panelContentVisible",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],GH.prototype,"engagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],GH.prototype,"shortsPanel",void 0);_.C([_.nG("#inline-expander"),_.k("design:type",Object)],GH.prototype,"inlineExpander",void 0);
_.C([_.vZ("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],GH.prototype,"panelContentVisibleChanged",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],GH.prototype,"hasDescriptionText",null);_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],GH.prototype,"collapsedLines",null);
_.C([_.X("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.k("design:type",Object),_.k("design:paramtypes",[])],GH.prototype,"descriptionText",null);_.C([_.X("data","data.headerRuns"),_.k("design:type",Object),_.k("design:paramtypes",[])],GH.prototype,"headerRuns",null);_.C([_.X("data","data.sourceAttributions"),_.k("design:type",Object),_.k("design:paramtypes",[])],GH.prototype,"sourceAttributions",null);
_.C([_.F({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],GH);
_.B(GH,"ytd-expandable-video-description-body-renderer",function(){if(V37!==void 0)return V37;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[!hasDescriptionText]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return V37=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var mPZ;var TiZ=_.E5(function(R){var A=R.data;return _.V("factoid-renderer",{class:"ytwFactoidRendererHost"},_.V("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return A().accessibilityText}},_.V("span",{class:"ytwFactoidRendererValue"},_.V(_.NU,{text:function(){return A().value}})),_.V("span",{class:"ytwFactoidRendererLabel"},_.V(_.NU,{text:function(){return A().label}}))))},"dc");_.Ow(TiZ,"factoid-renderer",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;return _.V("upload-time-factoid-renderer",null,_.V(_.ni,{data:function(){return A().factoid}},{factoidRenderer:TiZ}))},"ec"),"upload-time-factoid-renderer",{props:{data:_.xL}});_.Ow(_.E5(function(R){var A=R.data;return _.V("view-count-factoid-renderer",null,_.V(_.ni,{data:function(){return A().factoid}},{factoidRenderer:TiZ}))},"fc"),"view-count-factoid-renderer",{props:{data:_.xL}});var Zl=function(){var R=_.K.apply(this,arguments)||this;R.shortsPanel=!1;R.engagementPanel=!1;R.watchWhileSdp=_.v("shorts_desktop_watch_while_sdp");return R};
_.H(Zl,_.K);Zl.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"}}}}};
_.Yh.Object.defineProperties(Zl.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var R;return(R=this.data)==null?void 0:R.channel}}});
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Zl.prototype,"componentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Zl.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Zl.prototype,"shortsPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Zl.prototype,"engagementPanel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Zl.prototype,"watchWhileSdp",void 0);_.C([_.X("shortsPanel","engagementPanel","data.channel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Zl.prototype,"showChannelInfo",null);_.C([_.F({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],Zl);
_.B(Zl,"ytd-video-description-header-renderer",function(){if(mPZ!==void 0)return mPZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return mPZ=R},{mode:1});var Qrb;var to=function(){return _.K.apply(this,arguments)||this};
_.H(to,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],to.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],to.prototype,"ytRendererBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],to.prototype,"noPadding",void 0);_.C([_.S(),_.k("design:type",Object)],to.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],to);
_.B(to,"ytd-list-item-view-model",function(){if(Qrb!==void 0)return Qrb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Qrb=R},{mode:1});var vFq;var gFz;var nFS;var HWD;var wj=function(){var R=_.K.apply(this,arguments)||this;R.adaptiveFullWidth=!1;R.modernButtons=_.v("web_modern_buttons");R.buttonOverrides={style:"call-to-action",type:"filled"};R.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return R};
_.H(wj,_.K);wj.prototype.handleSetTimestamp_=function(R){this.data&&this.data.shortUrl&&(_.Mo(this.hostElement).querySelector("#share-url").value=R.isSet?_.uK(this.data.shortUrl,"t",R.timestamp):this.data.shortUrl)};
wj.prototype.handleSignalActionCopyShareUrl_=function(R,A){(_.v("killswitch_copy_link_target_check")||_.Mo(this.hostElement).querySelector("#copy-button")===A)&&this.copyUrlToClipboard()};
wj.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Mo(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
wj.prototype.computeStyle_=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],wj.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wj.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wj.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.k("design:type",String)],wj.prototype,"rendererStyle",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wj.prototype,"adaptiveFullWidth",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wj.prototype,"modernButtons",void 0);_.C([_.S(),_.k("design:type",Object)],wj.prototype,"buttonOverrides",void 0);_.C([_.CG({is:"yt-copy-link-renderer",disableElementRegistration:!0})],wj);
_.B(wj,"yt-copy-link-renderer",function(){if(HWD===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;nFS===void 0&&(nFS=document.createElement("template"));var P=nFS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);HWD=R}R=HWD;return R},{mode:2});_.bh("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var u9=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return R};
_.H(u9,_.K);_.l=u9.prototype;_.l.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.l.attached=function(){this.keyboardFocused=!1};
_.l.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var R=_.is().resolve(_.z3(_.rt));R&&(this.keyboardFocused=R.isKeyBoardInUse())}};
_.l.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.l.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}};
_.l.onChange_=function(){if(this.data){var R=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;R&&this.ytComponentBehavior.resolveCommand(R);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.l.handleUpdateToggleAction_=function(R){(R=_.n(R,i$S))&&this.data&&R.targetId==this.data.targetId&&this.set("data.toggled",R.toggled)};
_.l.toBoolean_=function(R){return!!R};
_.l.reset=function(){};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("data-changed",this.data))};
_.l.updateDataToggledFromBinding=function(R){this.set("data.toggled",R.detail.value)};
u9.prototype.dataChangedForBinding=u9.prototype.dataChangedForBinding;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],u9.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],u9.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],u9.prototype,"data",void 0);_.C([_.S({computed:"computeDescription_(data.*)"}),_.k("design:type",Object)],u9.prototype,"description_",void 0);_.C([_.S({value:function(){return!!_.is().resolve(_.z3(_.rt))&&_.v("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.k("design:type",Boolean)],u9.prototype,"useKeyboardFocused",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],u9.prototype,"keyboardFocused",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u9.prototype,"dataChangedForBinding",null);_.C([_.CG({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],u9);
_.B(u9,"yt-toggle-form-field-renderer",function(){if(gFz===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;vFq===void 0&&(vFq=document.createElement("template"));var P=vFq;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);gFz=R}R=gFz;return R},{mode:2});var rT7;var DPz;var e4=function(){var R=_.K.apply(this,arguments)||this;R.isDarkTheme=!1;R.isSearch=!1;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.noTopMargin=_.v("kevlar_watch_no_top_margin");R.maskFade=_.v("web_watch_chips_mask_fade");R.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 R};
_.H(e4,_.K);_.l=e4.prototype;_.l.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}}}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.l.dataChanged=function(){var R=this.getSelectedIndex();if(R>0)this.selected=R;else{this.selected=0;var A,Y;(A=this.ytScrollableChipCloudBehavior)==null||(Y=A.reset)==null||Y.call(A)}};
_.l.getSelectedIndex=function(){var R;if((R=this.data)==null||!R.chips)return-1;R=-1;for(var A,Y=0;Y<((A=this.data)==null?void 0:A.chips.length);Y++){var P=void 0,E=void 0;if((P=this.data)==null?0:(E=P.chips[Y].chipCloudChipRenderer)==null?0:E.isSelected){R=Y;break}}return R};
_.l.onResize=function(){var R=this.ytScrollableChipCloudBehavior;_.RK(R,R.setContainerWidthDiff);W8(this.ytScrollableChipCloudBehavior)};
_.l.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.handleRelatedChipCommand=function(R,A){R=this.JSC$16415_chipsSelector.indexOf(A);R!==-1&&this.JSC$16415_chipsSelector.selectIndex(R)};
_.l.handleChipCloudChipSelectAction=function(R){R=this.JSC$16415_chipsSelector.indexOf(R);R>-1&&this.JSC$16415_chipsSelector.selectIndex(R)};
_.l.handleChipCloudChipDeselectAction=function(){var R=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16415_chipsSelector&&((R==null?0:R.continuationCommand)?_.sC(this.hostElement,[R]):(R==null?0:R.searchEndpoint)?this.ytComponentBehavior.resolveCommand(R):R&&_.NT(this.hostElement,[R],this.hostElement),this.JSC$16415_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.l.updateSelectedFromBinding=function(R){this.selected=R.detail.value};
e4.prototype.onResize=e4.prototype.onResize;e4.prototype.dataChanged=e4.prototype.dataChanged;e4.prototype.isSearchChanged=e4.prototype.isSearchChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],e4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],e4.prototype,"actionHandlerBehavior",void 0);
_.C([_.U(_.Cr),_.k("design:type",Object)],e4.prototype,"ironResizableBehavior",void 0);_.C([_.U(),_.k("design:type",KI)],e4.prototype,"ytScrollableChipCloudBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],e4.prototype,"data",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],e4.prototype,"selected",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e4.prototype,"isDarkTheme",void 0);_.C([_.S({value:160}),_.k("design:type",Number)],e4.prototype,"scrollDistance",void 0);_.C([_.S(),_.k("design:type",Object)],e4.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e4.prototype,"darkerDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e4.prototype,"noTopMargin",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e4.prototype,"maskFade",void 0);_.C([_.nG("#chips"),_.k("design:type",Object)],e4.prototype,"JSC$16415_chipsSelector",void 0);_.C([_.vZ("isSearch"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e4.prototype,"isSearchChanged",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e4.prototype,"dataChanged",null);
_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e4.prototype,"onResize",null);_.C([_.CG({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],e4);
_.B(e4,"yt-chip-cloud-renderer",function(){if(DPz===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;rT7===void 0&&(rT7=document.createElement("template"));var P=rT7;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);DPz=R}R=DPz;return R},{mode:2});var UPS,$Pf=function(){return UPS!==void 0?UPS:UPS=document.createElement("template")};
document.head.appendChild($Pf().content);var Xzb;var SEA=document.head,IdZ=SEA.appendChild,K7G;if(Xzb===void 0){var W7H=document.createElement("template");_.D(W7H,"");W7H.content.insertBefore($Pf().content.cloneNode(!0),W7H.content.firstChild);Xzb=W7H}K7G=Xzb;IdZ.call(SEA,K7G.content);var jrZ=_.E5(function(R){var A=R.data;return _.V("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.V("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.V("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.V(_.J,{cond:function(){return _.h4(A().image)},
then:function(Y){return _.V("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.V(_.P1,{data:Y,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.V("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.V(_.NU,{text:function(){return A().title}})),_.V("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.V(_.NU,{text:function(){return A().subtitle}})))),_.V(_.J,{cond:function(){var Y;
return(Y=A())==null?void 0:Y.hasBottomDivider},
then:function(){return _.V("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"gc");var bWS=_.E5(function(R){var A=R.data;return _.V("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.V("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.V(_.ni,{data:function(){var Y;return(Y=A().offerPlanDetailsItem)!=null?Y:[]}},{offerPlanDetailsItemViewModel:function(Y){return _.V("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.V(jrZ,{data:Y.data}))}})),_.V("div",null,_.V(_.J,{cond:function(){return A().hasBottomDivider},
then:function(){return _.V("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.V("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.V("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.V("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.V("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"hc");var fdN=_.E5(function(R){var A=R.data;R=_.x(_.yy(!1,void 0,"OHF6Ec"));var Y=R.next().value,P=R.next().value,E=_.Qi(function(){P(!Y());return!1}),z=function(){var c;
return(c=A().offerPlanDetailsContainer)!=null?c:[]};
return _.V("lp-complex-offer-card-details-view-model",null,_.V("div",null,_.V(_.J,{cond:function(){return Y()},
then:function(){return _.V("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.V("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":E,"aria-expanded":Y},_.V(_.NU,{text:function(){return A().expandedTitle}})),_.V("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.V(_.ni,{data:z},{offerPlanDetailsContainerViewModel:function(c){return _.V("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.V(bWS,{data:c.data}))}})),_.V("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.V(_.NU,{text:function(){return A().legalText}})))},
else:function(){return _.V("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":E,"aria-expanded":Y},_.V(_.NU,{text:function(){return A().collapsedTitle}}),_.V("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.V(_.H1,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"ic");var pzb=_.E5(function(R){var A=R.data;return _.V("lp-complex-offer-card-option-view-model",null,_.V("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.V(_.J,{cond:function(){return A().topDividerText},
then:function(){return _.V("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.V("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.V("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.V("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.V(_.NU,{text:function(){return A().topDividerText}}))))}}),_.V(_.J,{cond:function(){return A().description},
then:function(){return _.V("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.V(_.NU,{text:function(){return A().description}}))}}),_.V(_.J,{cond:function(){return A().planPricingPrimary},
then:function(){return _.V("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.V(_.NU,{text:function(){return A().planPricingPrimary}}))}}),_.V(_.J,{cond:function(){return A().planPricingSecondary},
then:function(){return _.V("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.V(_.NU,{text:function(){return A().planPricingSecondary}}))}}),_.V(_.J,{cond:function(){return A().primaryButton},
then:function(){return _.V("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.V(_.ni,{data:function(){return A().primaryButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"jc");var F7G=_.E5(function(R){var A=R.data;var Y=function(){var z;return((z=A())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
R={};var P={},E={};return _.V("ytm-lp-complex-offer-card-view-model",null,_.V("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.V("div",{class:_.To((R.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=Y,R),"ytmLpComplexOfferCardViewModelCardContainer")},_.V(_.J,{cond:function(){var z;return(z=A())==null?void 0:z.bannerText},
then:function(){return _.V("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.V("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.V(_.NU,{text:function(){return A().bannerText}})))}}),_.V(_.J,{cond:function(){return _.h4(A().logo)},
then:function(z){var c={};return _.V("div",{class:_.To((c.ytmLpComplexOfferCardViewModelLogoAlignLeft=Y,c),"ytmLpComplexOfferCardViewModelLogo")},_.V(_.P1,{data:z,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.V("div",{class:_.To((P.ytmLpComplexOfferCardViewModelTitleAlignLeft=Y,P),"ytmLpComplexOfferCardViewModelTitle")},_.V(_.NU,{text:function(){return A().title}})),_.V(_.J,{cond:function(){var z;
return(z=A())==null?void 0:z.subtitle},
then:function(){var z={};return _.V("div",{class:_.To((z.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=Y,z),"ytmLpComplexOfferCardViewModelSubtitle")},_.V(_.NU,{text:function(){return A().subtitle}}))}}),_.V(_.J,{cond:function(){return A().planPricingPrimary},
then:function(){return _.V("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.V(_.NU,{text:function(){return A().planPricingPrimary}}))}}),_.V(_.J,{cond:function(){return A().planPricingSecondary},
then:function(){return _.V("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.V(_.NU,{text:function(){return A().planPricingSecondary}}))}}),_.V(_.J,{cond:function(){return A().purchaseButton},
then:function(){return _.V("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.V(_.ni,{data:function(){return A().purchaseButton}},{buttonViewModel:function(z){return _.V(_.Is,{data:z.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.V(_.J,{cond:function(){var z;
return(z=A())==null?void 0:z.offerOptions},
then:function(){return _.V("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.V(_.ni,{data:function(){return A().offerOptions}},{lpComplexOfferCardOptionViewModel:pzb}))}}),_.V("div",{class:_.To((E.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=Y,E),"ytmLpComplexOfferCardViewModelLegalText")},_.V(_.NU,{text:function(){return A().legalText}})),_.V(_.J,{cond:function(){var z;
return(z=A())==null?void 0:z.offerCardDetails},
then:function(){return _.V("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.V(_.ni,{data:function(){return A().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:fdN}))}}))))},"kc");var Bif=_.E5(function(R){var A=R.data;var Y=function(){var c;return((c=A())==null?void 0:c.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
R={};var P={},E={},z={};return _.V("ytm-lp-complex-offer-card-section-view-model",null,_.V("div",{class:_.To("ytmLpComplexOfferCardSectionViewModelHost")},_.V("div",{class:_.To((R.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=Y,R),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.V("div",{class:_.To((P.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=Y,P),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.V("h2",{class:_.To((E.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
Y,E),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.V(_.NU,{text:function(){return A().title}}))),_.V(_.J,{cond:function(){var c;
return(c=A())==null?void 0:c.subtitle},
then:function(){var c={},M={};return _.V("div",{class:_.To((c.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=Y,c),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.V("div",{class:_.To((M.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=Y,M),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.V(_.NU,{text:function(){return A().subtitle}})))}}),_.V("div",{class:_.To((z.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=Y,z),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.V(_.ni,{data:function(){var c;
return(c=A().offerPlans)!=null?c:[]}},{lpComplexOfferCardViewModel:function(c){return _.V("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.V(F7G,{data:c.data}))}})))))},"lc");var adz=_.E5(function(R){return _.V("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.V("div",{class:"ytLpCouponBannerViewModelIcon"},_.V(_.H1,{icon:function(){return"price_tag"}})),_.V("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.V("div",{class:"ytLpCouponBannerViewModelContent"},_.V("div",{class:"ytLpCouponBannerViewModelHeading"},_.V(_.NU,{text:function(){var A;
return(A=R.data())==null?void 0:A.title}})),_.V("div",{class:"ytLpCouponBannerViewModelBody"},_.V(_.NU,{text:function(){var A;
return(A=R.data())==null?void 0:A.subtitle}})))))},"mc");
adz.idomCompat=!0;_.qe=E_H.getInstance();var C_z;C_z=_.E5(function(R){return _.V("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":R.shouldAriaHideContent},_.V("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:R.questionId},_.V(_.NU,{text:R.question})))},"nc");
_.hif=_.E5(function(R){var A=R.data;var Y=R.themeOverride;R=_.x(_.yy(!1,void 0,"z5CHv"));var P=R.next().value,E=R.next().value;R=_.Qi(function(){E(!P());return!1});
var z=function(){return P()?"EXPAND_LESS":"EXPAND_MORE"},c=("faq-container"+_.hn(_.qe)).toString(),M="faq-question-and-answers-section-question"+_.hn(_.qe),N={},y={};
return _.V("faq-entry-view-model-c3",null,_.V("div",{class:_.To("yt-lp-faq-entry-view-model",(N["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return Y==null?void 0:Y().useDarkTheme},N))},_.V("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":R,role:"button","aria-expanded":P,"aria-labelledby":M.toString(),"tab-index":"0"},_.V(C_z,{question:function(){return A().question},
questionId:M,shouldAriaHideContent:!0}),_.V(_.J,{cond:function(){return P()!==void 0},
then:function(){return _.V("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.V(_.H1,{icon:z,ariaHidden:!0}),_.V("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.V("div",{class:_.To("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(y["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!P()},y))},_.V("div",{id:c},_.V(_.Ue,{each:function(){return A().answers||[]}},function(m){return _.V("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.V(_.NU,{text:m}))})))))},"oc");
_.hif.idomCompat=!0;var oFS=_.E5(function(R){var A=R.data;var Y=R.themeOverride;R={};return _.V("lp-faq-section-view-model-c3",null,_.V("div",{class:_.To("yt-lp-faq-section-view-model",(R["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return A().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},R["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(Y==null||!Y().useDarkTheme)},R))},_.V("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.V(_.J,{cond:function(){return A().header},
then:function(P){return _.V("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.V(_.NU,{text:P}))}}),_.V("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.V(_.ni,{data:function(){return A().faqs}},{faqEntryViewModel:function(P){return _.V(_.hif,{data:P.data,
themeOverride:Y})}})),_.V("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.V(_.Ue,{each:function(){return A().footers||[]}},function(P){return _.V(_.NU,{text:P})})),_.V(_.J,{cond:function(){return A().legal},
then:function(P){return _.V("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.V(_.NU,{text:P}))}}))))},"pc");
oFS.idomCompat=!0;var kQA=_.E5(function(R){var A=R.data;var Y=R.themeOverride;_.jO(function(){var c=A().gtmId;c&&_.wR(c,_.a1("GL",""))});
var P={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,M,N;return(N=(c=A().logo)==null?void 0:(M=c.accessibilityData)==null?void 0:M.label)!=null?N:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},E=_.is().resolve(_.z3(_.dU)),z=function(){return E&&E()||(Y==null?void 0:Y().useDarkTheme)};
return _.V("lp-header-section-view-model",null,_.V("div",{class:function(){var c=A().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",M=A().marginType==="LP_SECTION_MARGIN_TYPE_TOP",N=Y==null?void 0:Y().useDarkTheme,y=["lp-header-section-view-model"];c&&y.push("lp-header-section-view-model--ptc-layout-type");M&&y.push("lp-header-section-view-model__lp-header-section-margin");N&&y.push("lp-header-section-view-model--premium-force-dark-mode");return y.join(" ")}},_.V(_.J,{cond:function(){return A().logo},
then:function(){return _.V("div",null,_.V(_.J,{cond:z,then:function(){return _.V(_.J,{cond:function(){var c;return(c=A().logo)==null?void 0:c.imageDark},
then:function(c){return _.V(_.P1,Object.assign({},{data:c},P))}})},
else:function(){return _.V(_.J,{cond:function(){var c;return(c=A().logo)==null?void 0:c.imageLight},
then:function(c){return _.V(_.P1,Object.assign({},{data:c},P))}})}}))}}),_.V(_.J,{cond:function(){return A().title},
then:function(c){return _.V("div",{class:"lp-header-section-view-model__lp-header-title"},_.V(_.NU,{text:c}))}}),_.V("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.V(_.J,{cond:function(){return A().subtitles},
then:function(c){return _.V(_.Ue,{each:c},function(M){return _.V("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.V(_.NU,{text:M}))})}})),_.V(_.J,{cond:function(){return A().additionalInfo},
then:function(c){return _.V("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.V(_.NU,{text:c}))}}),_.V("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.V(_.J,{cond:function(){return A().primaryButton},
then:function(c){return _.V("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.V(_.ni,{data:c},{buttonViewModel:_.Is}))}}),_.V(_.J,{cond:function(){return A().secondaryButton},
then:function(c){return _.V("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.V(_.ni,{data:c},{buttonViewModel:_.Is}))}})),_.V(_.J,{cond:function(){return A().otherOffersInfo},
then:function(c){return _.V("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.V(_.NU,{text:c}))}}),_.V("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.V(_.J,{cond:function(){return A().billingInfo},
then:function(c){return _.V(_.Ue,{each:c},function(M){return _.V("div",null,_.V(_.NU,{text:M}))})}}))))},"qc");
kQA.idomCompat=!0;var GQN=_.E5(function(R){var A=R.data;var Y=_.Y9(R.themeOverride,{useDarkTheme:!1});R={};R=_.To("ytmLpHeadlineSectionViewModelHost",(R.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return Y().useDarkTheme},R));
return _.V("lp-headline-section-view-model",null,_.V("div",{class:R},_.V("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.V(_.NU,{text:function(){return A().title}})),_.V(_.J,{cond:function(){return A().subtitle},
then:function(P){return _.V("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.V(_.NU,{text:P}))}})))},"rc");var ZWS=_.E5(function(R){var A=R.data;var Y=R.themeOverride;var P=_.is().resolve(_.z3(_.dU)),E=function(){return P&&P()||(Y==null?void 0:Y().useDarkTheme)},z=function(){var y,m;
var T=E()?(y=A().textBackgroundImage)==null?void 0:y.imageDark:(m=A().textBackgroundImage)==null?void 0:m.imageLight;return Uk8((T==null?void 0:T.sources)||[])},c=function(){var y,m;
return E()?(y=A().featureImage)==null?void 0:y.imageDark:(m=A().featureImage)==null?void 0:m.imageLight},M=function(){return A().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},N=function(){var y,m;
return E()?(y=A().logo)==null?void 0:y.imageDark:(m=A().logo)==null?void 0:m.imageLight};
return _.V("ytm-lp-large-feature-section-view-model",null,_.V("div",{class:function(){var y=A().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",m=A().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",T=(A().index||0)%2===1,Q=Y==null?void 0:Y().useDarkTheme,g=["yt-lp-large-feature-section-view-model"];y?g.push("yt-lp-large-feature-section-view-model--music-feature-type"):m?g.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):T||g.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Q&&g.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return g.join(" ")}},_.V("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.V(_.J,{cond:c,
then:function(){return _.V(_.P1,{data:function(){return c()},
alt:function(){var y,m,T;return(T=(y=A().featureImage)==null?void 0:(m=y.accessibilityData)==null?void 0:m.label)!=null?T:""},
contentMode:M})}})),_.V("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var y;return((y=z())==null?0:y.url)?"background-image: url("+_.oR(z().url)+");":""}},_.V("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.V(_.J,{cond:N,
then:function(){return _.V(_.P1,{data:function(){return N()},
alt:function(){var y,m,T;return(T=(y=A().logo)==null?void 0:(m=y.accessibilityData)==null?void 0:m.label)!=null?T:""},
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"})}}),_.V(_.J,{cond:function(){return A().eyebrowText},
then:function(){return _.V("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.V(_.NU,{text:function(){return A().eyebrowText}}))}}),_.V(_.J,{cond:function(){return A().title},
then:function(){return _.V("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.V(_.NU,{text:function(){return A().title}}))}}),_.V(_.J,{cond:function(){return A().subtitles},
then:function(){return _.V("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.V(_.Ue,{each:function(){return A().subtitles||[]}},function(y){return _.V(_.NU,{text:y})}))}})))))},"sc");
ZWS.idomCompat=!0;var t3A=_.E5(function(R){return _.V("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.V("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.V(_.H1,{icon:function(){var A;return(A=R.data())==null?void 0:A.iconType},
className:function(){var A;switch((A=R.data())==null?void 0:A.style){case "LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconGreen";case "LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT":return"ytLpFeatureListItemViewModelFeatureListIconSmall";default:return"ytLpFeatureListItemViewModelFeatureListIconDefault"}},
active:function(){var A;return((A=R.data())==null?void 0:A.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.V("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.V(_.NU,{text:function(){var A;
return(A=R.data())==null?void 0:A.text},
className:function(){var A;return((A=R.data())==null?void 0:A.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"tc");var wzf=_.E5(function(R){R=_.Pc(R,{config:void 0,themeOverride:void 0});var A=R.data,Y=R.config,P=R.themeOverride;R={};R=_.To("ytmLpOfferCardOptionViewModelHost",(R.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var M;return(M=P())==null?void 0:M.useDarkTheme},R));
var E=_.Qi(function(){var M,N;(M=Y())==null||(N=M.handleRadioButtonClick)==null||N.call(M,A());return!1}),z=function(){var M;
return(M=Y())==null?void 0:M.shouldDisplayRadioButton},c=function(){var M;
return(M=A().featureListItems)!=null?M:[]};
return _.V("ytm-lp-offer-card-option-view-model",null,_.V("div",{class:R,"on:click":_.Qi(function(){if(z()){var M,N;(M=Y())==null||(N=M.handleRadioButtonClick)==null||N.call(M,A())}return!1})},_.V(_.J,{cond:z,
then:function(){return _.V("div",null,_.V("input",{type:"radio","on:click":E,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var M;return!((M=Y())==null||!M.isOptionSelected)}}))}}),_.V("div",null,_.V("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.V(_.NU,{text:function(){return A().eyebrowText}})),_.V("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.V(_.NU,
{text:function(){return A().subtitle}})),_.V(_.J,{cond:function(){return c().length>0},
then:function(){return _.V("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.V(_.ni,{data:c},{lpFeatureListItemViewModel:t3A}))}}),_.V("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.V(_.NU,{text:function(){return A().description}})))))},"uc");
wzf.idomCompat=!0;var u6S=_.E5(function(R){var A=R.data;var Y=R.themeOverride;R=_.x(_.gl(function(){var z,c=(z=A().offerOptions)==null?void 0:z[0];return _.n(c,GyD)||{}}));
var P=R.next().value,E=R.next().value;R={};return _.V("ytm-lp-offer-card-view-model",null,_.V("div",{class:_.To("ytmLpOfferCardViewModelHost",(R.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(Y==null||!Y().useDarkTheme)},R))},_.V("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.V(_.J,{cond:function(){return A().titleIconType},
then:function(){return _.V("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.V(_.H1,{icon:function(){var z;return((z=A().titleIconType)==null?void 0:z.toString())||""}}))}}),_.V("div",{class:"ytmLpOfferCardViewModelTitleText"},_.V(_.NU,{text:function(){return A().title}})),_.V(_.ni,{data:function(){return A().titleBadge}},{badgeViewModel:function(z){return _.V("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.V(_.Ho,{data:z.data}))}})),_.V("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.V(_.ni,{data:function(){return A().offerOptions}},{lpOfferCardOptionViewModel:function(z){var c=z.data;
return _.V(_.lI,null,_.V("div",{class:"ytmLpOfferCardViewModelDivider"}),_.V(wzf,{data:c,config:function(){var M;return{shouldDisplayRadioButton:(A().offerOptions||[]).length>1,isOptionSelected:c().id===((M=P())==null?void 0:M.id),handleRadioButtonClick:function(N){return void E(N)}}},
themeOverride:Y}))}})),_.V("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.V(_.ni,{data:function(){var z;
return(z=P())==null?void 0:z.purchaseButtonOverride}},{buttonViewModel:_.Is}))))},"vc");
u6S.idomCompat=!0;var eiD=_.E5(function(R){var A=R.data;var Y=R.themeOverride;R={};R=_.To("ytmLpOfferCardSectionViewModelHost",(R.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var P;return Y==null?void 0:(P=Y())==null?void 0:P.useDarkTheme},R));
return _.V("ytm-lp-offer-card-section-view-model",null,_.V("div",{class:R},_.V(_.J,{cond:function(){return A().title!==void 0},
then:function(){return _.V("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.V("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.V(_.NU,{text:function(){return A().title}})),_.V(_.J,{cond:function(){return A().subtitle},
then:function(){return _.V("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.V(_.NU,{text:function(){return A().subtitle}}))}}))}}),_.V("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.V(_.ni,{data:function(){return A().offerCards}},{lpOfferCardViewModel:function(P){return _.V("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.V(u6S,{data:P.data,
themeOverride:Y}))}})),_.V(_.J,{cond:function(){return A().footer},
then:function(){return _.V("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.V(_.NU,{text:function(){return A().footer}}))}})))},"wc");var qE8=_.E5(function(R){var A=R.data;return _.V("lp-offer-table-cell-content-view-model",null,_.V("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.V(_.SO,null,_.V(_.$W,{when:function(){return A().title}},function(){return _.V(_.NU,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return A().title}})}),_.V(_.$W,{when:function(){return A().subTitle}},function(){return _.V(_.NU,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return A().subTitle}})}),_.V(_.$W,{when:function(){return A().featureDescription}},function(){return _.V(_.NU,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return A().featureDescription}})}),_.V(_.$W,{when:function(){return A().description}},function(){return _.V(_.NU,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return A().description}})}),_.V(_.$W,{when:function(){return A().iconType}},function(){return _.V("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.V(_.H1,{icon:function(){return A().iconType.toString()}}))}),_.V(_.$W,{when:function(){return A().purchaseButton}},function(){return _.V(_.ni,{data:function(){return A().purchaseButton}},{buttonViewModel:function(Y){return _.V("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.V(_.Is,
{data:Y.data}))}})}),_.V(_.$W,{when:function(){return A().note}},function(){return _.V(_.NU,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return A().note}})}),_.V(_.$W,{when:function(){return A().featureDetail}},function(){return _.V(_.NU,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return A().featureDetail}})}),_.V(_.$W,{when:function(){return A().badge}},function(){return _.V(_.ni,{data:function(){return A().badge}},{badgeViewModel:_.Ho})}))))},"xc");
qE8.idomCompat=!0;var L7E=_.E5(function(R){var A=R.data;return _.V("lp-offer-table-cell-view-model",null,_.V("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(A().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;"}}},_.V(_.ni,{data:function(){return A().contents}},{lpOfferTableCellContentViewModel:qE8})))},
"yc");
L7E.idomCompat=!0;var dP8=_.E5(function(R){var A=R.data;var Y=R.lpTableIsFirstRow;var P=R.lpTableIsLastRow;var E=function(){return(Y==null?0:Y())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},z=function(){return(Y==null?0:Y())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(P==null?0:P())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.V("ytm-lp-offer-table-row-view-model",null,_.V("div",{class:"ytLpOfferTableRowViewModelHost"},_.V(_.ni,{data:function(){return A().rowHeaderCell}},{lpOfferTableCellViewModel:function(c){return _.V("div",{class:E},_.V(L7E,{data:c.data}))}}),_.V(_.ni,{data:function(){return A().contentCells}},{lpOfferTableCellViewModel:function(c){return _.V("div",{class:z},_.V(L7E,{data:c.data}))}})))},"zc");
dP8.idomCompat=!0;var RD7=_.E5(function(R){var A=R.data;var Y=R.themeOverride;var P=_.is().resolve(_.z3(_.dU)),E=function(){return _.n(A().logo,Olq)||{}};
R={};return _.V("ytm-lp-offer-table-section-view-model",null,_.V("div",{class:"ytLpOfferTableViewModelHost"},_.V(_.J,{cond:function(){var z,c;return P&&P()||(Y==null?0:Y().useDarkTheme)?(z=E())==null?void 0:z.imageDark:(c=E())==null?void 0:c.imageLight},
then:function(z){return _.V(_.P1,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,M,N;return(N=(c=E())==null?void 0:(M=c.accessibilityData)==null?void 0:M.label)!=null?N:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.V("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.V(_.NU,{text:function(){return A().subtitle}})),_.V(_.J,{cond:function(){return A().disclaimers},
then:function(z){return _.V("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.V(_.Ue,{each:z},function(c){return _.V("div",null,_.V(_.NU,{text:c}))}))}}),_.V("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.V(_.ni,{data:function(){return A().rows}},{lpOfferTableRowViewModel:function(z,c){return _.V(dP8,{data:z.data,
lpTableIsFirstRow:function(){return c()===0},
lpTableIsLastRow:function(){return c()===A().rows.length-1}})}})),_.V("div",{class:_.To((R.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return A().hasFooterBackground},R))},_.V(_.J,{cond:function(){return A().footer},
then:function(){return _.V("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.V(_.NU,{text:function(){return A().footer}}))}}),_.V(_.J,{cond:function(){return A().footerTitle},
then:function(){return _.V("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.V(_.NU,{text:function(){return A().footerTitle}}))}}),_.V(_.J,{cond:function(){return A().footerDescription},
then:function(){return _.V("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.V(_.NU,{text:function(){return A().footerDescription}}))}}))))},"Ac");
RD7.idomCompat=!0;var AaZ=_.E5(function(R){var A=R.data;var Y=R.themeOverride;var P=_.is().resolve(_.z3(_.dU)),E=function(){var M;return Y==null?void 0:(M=Y())==null?void 0:M.useDarkTheme},z=function(){var M,N;
return P&&P()||E()?(M=A().image)==null?void 0:M.imageDark:(N=A().image)==null?void 0:N.imageLight};
R={};R=_.To("ytmLpSmallFeatureSectionViewModelHost",(R.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=E,R));var c=function(){var M,N,y;return(y=(M=A().image)==null?void 0:(N=M.accessibilityData)==null?void 0:N.label)!=null?y:""};
return _.V("ytm-lp-small-feature-section-view-model",{class:R},_.V(_.J,{cond:function(){return z()&&!mE6},
then:function(){return _.V("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.V(_.P1,{data:function(){return z()},
alt:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.V("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.V("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.V(_.J,{cond:function(){return A().title},
then:function(M){return _.V(_.NU,{text:M})}})),_.V("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.V(_.NU,{text:function(){return A().description}}))))},"Bc");
AaZ.idomCompat=!0;var Ysq=_.E5(function(R){var A=R.data;var Y=R.themeOverride;R={};return _.V("ytm-lp-small-feature-section-group-view-model",null,_.V("div",{class:_.To("ytmLpSmallFeatureSectionGroupViewModelHost",(R.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(Y==null||!Y().useDarkTheme)},R))},_.V("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.V(_.ni,{data:function(){return A().smallFeatures}},{lpSmallFeatureSectionViewModel:function(P){return _.V("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.V(AaZ,{data:P.data,
themeOverride:Y}))}}))))},"Cc");
Ysq.idomCompat=!0;_.Ow(_.E5(function(R){var A=R.data;var Y=function(){return A().forcedTheme==="USER_INTERFACE_THEME_DARK"},P=function(){return A().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},E=function(){var c="",M,N;
var y=_.is().resolve(_.z3(_.dU));y=Y()||(y==null?0:y())?(M=A().themedImageViewModel)==null?void 0:M.imageDark:(N=A().themedImageViewModel)==null?void 0:N.imageLight;(M=Uk8((y==null?void 0:y.sources)||[]))&&M.url&&(c=P()?"background-image: linear-gradient(to bottom, transparent, "+(A().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.oR(M.url)+");":"background-image: url("+_.oR(M.url)+");");return c},z=function(){return{useDarkTheme:Y()}};
R={};return _.V("yt-section-group-view-model",null,_.V("div",{class:_.To("yt-lp-section-group-view-model",(R["yt-lp-section-group-view-model--premium-force-dark-mode"]=Y,R["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return A().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},R))},_.V(_.J,{cond:function(){return E().length},
then:function(){var c={};return _.V("div",{class:_.To("yt-lp-section-group-view-model__bg-image",(c["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=P,c)),style:E})}}),_.V("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.V(_.ni,{data:function(){return A().sections}},{lpFaqSectionViewModel:function(c){return _.V(oFS,{data:c.data,
themeOverride:z})},
lpHeaderSectionViewModel:function(c){return _.V(kQA,{data:c.data,themeOverride:z})},
lpHeadlineSectionViewModel:function(c){return _.V(GQN,{data:c.data,themeOverride:z})},
lpLargeFeatureSectionViewModel:function(c){return _.V(ZWS,{data:c.data,themeOverride:z})},
lpOfferCardSectionViewModel:function(c){return _.V(eiD,{data:c.data,themeOverride:z})},
lpComplexOfferCardSectionViewModel:function(c){return _.V(Bif,{data:c.data})},
lpOfferTableSectionViewModel:function(c){return _.V(RD7,{data:c.data,themeOverride:z})},
lpSmallFeatureSectionGroupViewModel:function(c){return _.V(Ysq,{data:c.data,themeOverride:z})},
lpCouponBannerViewModel:function(c){return _.V(adz,{data:c.data})}}))))},"Dc"),"yt-section-group-view-model",{props:{data:_.VY}});var X0u=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.P$A=_.E5(function(R){function A(){if(X0u.has(R.data().displayType)){var y=!P(),m;if((m=R.disableDeselection)==null||!m.call(R)||y){R.data().selected=y;m=Object.assign({},c(),{selected:y});M(m);var T;(T=R.callback)==null||T.call(R,m,y)}}}
var Y=_.LK("chip-view-model"),P=function(){var y,m;return!!(((y=R.selected)==null?void 0:y.call(R))!==void 0?(m=R.selected)==null?0:m.call(R):c().selected)},E=_.x(_.gl(R.data)),z=E.next().value;
E=E.next().value;var c=z,M=E,N=_.vT($0S,function(){return R.data().chipEntityKey||""});
return _.V("chip-view-model",{class:"ytChipViewModelHost",el:Y},_.V(pqD,{data:function(){var y,m=Object.assign({},c(),{selected:P()}),T=N(),Q=(y=R.disableDeselection)==null?void 0:y.call(R);a:switch(m.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":y=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":y=3;break a;default:y=0}return{text:(T==null?void 0:T.text)||m.text,state:m.disabled?1:m.selected?0:2,type:y,onTap:Stk(m,Y,A,Q),
accessibilityLabel:m.accessibilityLabel||m.text}}}))},"Ec");
_.P$A.idomCompat={callbacks:{callback:!0}};_.EKA=_.E5(function(R){var A=_.vT(U03,function(){var c;return(c=R.data())==null?void 0:c.chipBarStateEntityKey}),Y=function(){return R.data().disableDeselection},P=_.x(_.gl(function(){var c;
if(((c=A())==null?void 0:c.selectedIndex)!=void 0)return A().selectedIndex;var M,N;c=_.x(((M=R.data())==null?void 0:(N=M.chips)==null?void 0:N.entries())||[]);for(M=c.next();!M.done;M=c.next()){M=_.x(M.value);N=M.next().value;M=M.next().value;var y=void 0;if((y=_.n(M,_.zA))==null?0:y.selected)return N}return-1})),E=P.next().value,z=P.next().value;
return _.V("chip-bar-view-model",{class:_.To("ytChipBarViewModelHost",R.className),role:"tablist"},_.V(_.ni,{data:function(){return R.data().chips}},{chipViewModel:function(c,M){return _.V("div",{class:"ytChipBarViewModelChipWrapper"},_.V(_.P$A,{data:c.data,
selected:function(){return M()===E()},
callback:function(N,y){N=!!y;y=M();z(N?y:-1);var m,T=(m=R.data())==null?void 0:m.chipBarStateEntityKey;T&&N&&_.A7(_.HT("chipBarStateEntity",T,{key:T,selectedIndex:y}))},
disableDeselection:R.disableDeselection||Y}))}}))},"Fc");_.Ow(_.EKA,"chip-bar-view-model",{props:{data:_.xL,className:_.xL,disableDeselection:_.xL}});_.zDS=_.E5(function(R){var A=R.data;R={};return _.V("divider-view-model",{class:_.To("dividerViewModelHost",(R.dividerViewModelInsetThinPadding=function(){return A().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},R))},_.V("div",{class:_.To("dividerViewModelBaseDivider",function(){return I9q(A().dividerStyle)}),
style:_.nY({"background-color":function(){return A().backgroundColor?_.G9(A().backgroundColor):void 0}})}))},"Gc");
_.zDS.idomCompat=!0;_.Ow(_.zDS,"divider-view-model",{props:{data:_.VY}});var vL=new Map,Qh=new Map,jOk=0,n0;var CQk=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],k4q={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var i4H,ltN;i4H=function(R){return function(A){return function(){return(A==null?void 0:A())!==void 0?String(A())+R:void 0}}};
_.Lv=i4H("px");ltN=i4H("s");var xDS=C13(function(R){return R.targetGroupId}).useUpdatableData;var O4A=_.E5(function(R){function A(d){return function(){var Jk=I().numItemsPerGridRow,Nb=d()*Jk;Jk=Nb+Jk;var Qk,H3;return(H3=(Qk=P().contents)==null?void 0:Qk.slice(Nb,Jk))!=null?H3:[]}}
var Y=_.Pc(R,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),P=Y.data,E=Y.layoutContainerWidth,z=Y.shouldUseOwnContainerSize,c=Y.marginSettings,M=JuJ(),N=_.x(xDS(function(){var d,Jk;return{targetGroupId:(d=P().targetingContext)==null?void 0:(Jk=d.targetGroupId)==null?void 0:Jk[0]}})).next().value;
Y=_.x(_.yy(!0,void 0,"R5Z1fd"));var y=Y.next().value,m=Y.next().value,T=function(){var d,Jk=(d=_.n(P().showMoreButton,_.E7))==null?void 0:d.trackingParams;Jk&&_.K_(_.rU(),Jk);m(!1)},Q=function(){var d,Jk=(d=_.n(P().showLessButton,_.E7))==null?void 0:d.trackingParams;
Jk&&_.K_(_.rU(),Jk);m(!0)};
Y=_.LK("grid-shelf-view-model");var g=_.Z26(Y,{canHaveZeroSize:!1}),r=function(){var d;return(d=P().contentAspectRatio)!=null?d:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},I=_.gE(function(){var d=_.Ci({containerWidth:z()&&g.width()>0?g.width()||E():E(),
sizing:"EXTRA_COMPACT",marginSettings:c(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:d.maxContainerWidth,numItemsPerGridRow:d.numItems,contentPadding:z()?d.margin:d.contentMargin,itemWidth:d.itemWidth,itemMargin:d.gutter/2}},void 0,"q05H3c"),b=function(){if(P().enableVerticalExpansion){if(y())return p();
var d,Jk,Nb=(Jk=(d=P().contents)==null?void 0:d.length)!=null?Jk:0;return Math.ceil(Nb/I().numItemsPerGridRow)}return I().numItemsPerGridRow<=2?2:1},p=function(){var d;
return Math.ceil(((d=P().minCollapsedItemCount)!=null?d:1)/I().numItemsPerGridRow)},h=function(){return P().enableVerticalExpansion&&P().showLessButton&&!y()&&b()>p()},L=function(){var d,Jk;
return P().enableVerticalExpansion&&P().showMoreButton&&y()&&((Jk=(d=P().contents)==null?void 0:d.length)!=null?Jk:0)>I().numItemsPerGridRow*p()},Z=function(){return!h()},w=function(){return!L()},t={};
return _.V("grid-shelf-view-model",{class:_.To("ytGridShelfViewModelHost",R.className,(t.ytGridShelfViewModelHostHasBottomButton=function(){return h()||L()},t.ytGridShelfViewModelHostIsDismissed=function(){var d,Jk=(d=N())!=null?d:{};
d=Jk.behavior;var Nb=Jk.isDismissed,Qk=Jk.stamperContextTargetId;Jk=Jk.stamperIndex;if(!(_.v("mweb_see_fewer_shorts_group_dismissal")&&Nb&&d&&Qk))return!1;var H3;Nb=M;for(var nu,hk,FV=((nu=Nb)==null?0:nu.targetId)?_.pX((hk=Nb)==null?void 0:hk.targetId):void 0;((H3=Nb)==null?0:H3.parent)&&FV!==Qk;)Nb=Nb.parent,hk=nu=void 0,FV=((nu=Nb)==null?0:nu.targetId)?_.pX((hk=Nb)==null?void 0:hk.targetId):void 0;H3=FV===Qk?Nb:void 0;if(!H3)return!1;var i8;Qk=H3==null?void 0:(i8=H3.stamperIndex)==null?void 0:i8.call(H3);
return d==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||d==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&Qk!=null&&Jk!=null&&Qk>Jk},t)),
el:Y,style:_.nY({"margin-left":(0,_.Lv)(function(){return I().contentPadding}),
"margin-right":(0,_.Lv)(function(){return I().contentPadding})})},_.V(_.J,{cond:function(){return _.n(P().header,guA)},
then:function(d){return _.V(_.Kv,{data:d,disableHorizontalPadding:!0})}}),_.V("div",null,_.V(_.Ue,{each:function(){return Array(b())}},function(d,Jk){return _.V(caD,{className:R.className,
items:A(Jk),responsiveGridShelfLayout:I,contentAspectRatio:r})})),_.V("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.V(_.ni,{data:function(){return P().showMoreButton}},{buttonViewModel:function(d){return _.V("div",{hidden:w},_.V(_.Is,{data:d.data,
onClick:T}))}}),_.V(_.ni,{data:function(){return P().showLessButton}},{buttonViewModel:function(d){return _.V("div",{hidden:Z},_.V(_.Is,{data:d.data,
onClick:Q}))}})))},"Hc");
O4A.idomCompat=!0;var caD=_.E5(function(R){var A=R.items;var Y=R.responsiveGridShelfLayout;var P=R.contentAspectRatio;R=R.className;var E=_.LK("div");Wdk(E,function(){a:{var c=E.value;for(var M=A(),N=[],y=0;y<M.length;y++){var m=_.n(M[y],qOG);if(!m||m==null||!m.inlinePlayerData){c=null;break a}var T=c.children.item(y);if(!T){c=null;break a}N.push({thumbnailElement:T,videoData:m})}c={gridVideoPreviewData:{gridItems:N}}}return c});
var z=(0,_.Lv)(function(){return-Y().itemMargin});
return _.V("div",{el:E,class:_.To("ytGridShelfViewModelGridShelfRow",R),style:_.nY({"margin-left":z,"margin-right":z})},_.V(_.ni,{data:A,replacementWrapper:function(c){return _.V(MeH,{responsiveGridShelfLayout:Y},c)}},{shortsLockupViewModel:function(c){return _.V(MeH,{responsiveGridShelfLayout:Y},_.V(GhG,{data:c.data,
aspectRatio:function(){return P()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"Ic"),MeH=_.E5(function(R){return _.V("div",{style:_.nY({width:(0,_.Lv)(function(){return R.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+R.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},R.children)},"Jc");
O4A.idomCompat=!0;_.Ow(O4A,"grid-shelf-view-model",{props:{data:_.VY,layoutContainerWidth:_.VY,shouldUseOwnContainerSize:_.VY,marginSettings:_.VY,className:_.VY}});_.svZ=_.E5(function(R){var A=_.x(_.yy(!1,void 0,"FVl30c")),Y=A.next().value,P=A.next().value;A={};return _.V("yt-alert-banner-view-model",{class:_.To("ytAlertBannerViewModelHost",R.className,function(){var E;a:switch((E=R.data())==null?void 0:E.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":E="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":E="ytAlertBannerViewModelWarning";break a;default:E="ytAlertBannerViewModelInformational"}return E},(A.ytAlertBannerViewModelDismissed=
Y,A.ytAlertBannerViewModelFullbleed=R.fullbleed,A.ytAlertBannerViewModelNarrow=R.narrow,A.ytAlertBannerViewModelIsInRichGrid=R.isInRichGrid,A))},_.V(_.J,{cond:function(){var E;
return!((E=R.data())==null?0:E.hideIcon)},
then:function(){return _.V("div",{class:"ytAlertBannerViewModelIcon"},_.V(_.H1,{icon:function(){return"info_circle"}}))}}),_.V("div",{class:"ytAlertBannerViewModelOuterContainer"},_.V("div",{class:"ytAlertBannerViewModelContainer"},_.V("div",{class:"ytAlertBannerViewModelContent"},_.V("div",{class:"ytAlertBannerViewModelHeading"},_.V(_.NU,{text:function(){var E;
return(E=R.data())==null?void 0:E.heading}})),_.V("div",{class:"ytAlertBannerViewModelBody"},_.V(_.NU,{text:function(){var E;
return(E=R.data())==null?void 0:E.body}})))),_.V(_.ni,{data:function(){var E;
return(E=R.data())==null?void 0:E.actionButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.V(_.ni,{data:function(){var E;
return(E=R.data())==null?void 0:E.dismissButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var z;((z=R.data())==null?0:z.disableLocalDismissBehavior)||P(!0)}})}}))},"Kc");_.Ow(_.svZ,"yt-alert-banner-view-model",{props:{data:_.VY,fullbleed:_.VY,narrow:_.VY,isInRichGrid:_.VY,className:_.VY}});_.dj=_.E5(function(R){var A=R.data;var Y=R.callback;var P=R.selectionBehavior;var E=R.disableChipsScrollAnimation;var z=_.d5("div");R=_.x(_.yy(!0,void 0,"aUEsOc"));var c=R.next().value,M=R.next().value;R=_.x(_.yy(!1,void 0,"V0aKld"));var N=R.next().value,y=R.next().value,m=!1,T=0;_.WD(function(){M(r());y(I())});
R=_.x(_.gl(function(){var d={};return A().autoselectedChipIndex!=null?(d[A().autoselectedChipIndex]=!0,d):{}}));
var Q=R.next().value,g=R.next().value,r=function(){var d=z.value;return d==null||d.scrollLeft-1<=0},I=function(){var d=z.value;
return d==null?!1:d.scrollLeft+1>=(d==null?NaN:d.scrollWidth)-(d==null?NaN:d.clientWidth)},b=function(){return A().isHorizontallyScrollable},p=function(d){z.value!=null&&(_.a1("HTML_DIR")==="rtl"&&(d=-d),z.value.scrollBy({left:d,
behavior:(E==null?0:E())?"instant":"smooth"}))},h=function(){p(-320)},L=function(){p(320)},Z=_.Qi(function(d){m=!0;
T=d.clientX}),w=_.Qi(function(d){if(m){d=d.clientX;
var Jk=d-T;T=d;var Nb;(Nb=z.value)==null||Nb.scrollBy({left:-Jk})}}),t=_.Qi(function(){var d=r(),Jk=I();
d!==c()&&M(d);Jk!==N()&&y(Jk)});
Pu("pointerup",function(){m&&(m=!1)});
return _.V("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.V(_.Um,{contentId:function(){return A().contentId},
useModernStyle:!0},function(){var d={},Jk={};return _.V("div",null,_.V(_.J,{cond:function(){return A().title},
then:function(){return _.V("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.V("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return A().title}),_.V(_.ni,{data:function(){return A().overflowButton}},{buttonViewModel:_.Is}))}}),_.V("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.V(_.J,{cond:function(){return A().previousButton},
then:function(){var Nb={};return _.V("div",{class:_.To("ytChipsShelfViewModelLeftArrowContainer",(Nb.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return c()},Nb))},_.V(_.ni,{data:function(){return A().previousButton}},{buttonViewModel:function(Qk){return _.V(_.Is,{data:Qk.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:h})}}))}}),_.V("div",{el:z,
"on:pointerdown":Z,"on:pointermove":w,"on:scroll":t,class:_.To("ytChipsShelfViewModelChipsScrollContainer",(d.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=b,d))},_.V("div",{class:_.To("ytChipsShelfViewModelChipsContainer",(Jk.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=b,Jk.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,Jk)),role:"tablist"},_.V(_.ni,{data:function(){return A().contents}},{chipViewModel:function(Nb,Qk){return _.V("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.V(_.P$A,{data:Nb.data,
callback:function(H3,nu){var hk=Qk(),FV,i8=(FV=P==null?void 0:P())!=null?FV:0;i8===1||i8===2?(FV={},g((FV[hk]=nu,FV))):(FV={},g(Object.assign({},Q(),(FV[hk]=nu,FV))));Y==null||Y(H3,nu,hk)},
disableDeselection:function(){return(P==null?void 0:P())===1},
selected:function(){return!!Q()[Qk()]}}))}}))),_.V(_.J,{cond:function(){return A().nextButton},
then:function(){var Nb={};return _.V("div",{class:_.To("ytChipsShelfViewModelRightArrowContainer",(Nb.ytChipsShelfViewModelRightArrowContainerIsHidden=N,Nb))},_.V(_.ni,{data:function(){return A().nextButton}},{buttonViewModel:function(Qk){return _.V(_.Is,{data:Qk.data,
className:"ytChipsShelfViewModelRightArrow",onClick:L})}}))}})))}))},"Lc");
_.dj.idomCompat={callbacks:{callback:!0}};_.Ow(_.dj,"chips-shelf-view-model",{props:{data:_.VY,callback:_.xL,selectionBehavior:_.VY,disableChipsScrollAnimation:_.VY}});var NdS=_.E5(function(R){R=_.Pc(R,{disabled:!1});var A=R.active,Y=R.disabled;R={};R=_.To("ytSwitchShapeTrack",(R.ytSwitchShapeTrackActive=function(){return A()},R.ytSwitchShapeTrackDisabled=function(){return Y()},R));
var P={};P=_.To("ytSwitchShapeKnob",(P.ytSwitchShapeKnobActive=function(){return A()},P));
return _.V("switch-shape",{class:"ytSwitchShapeHost"},_.V("div",{class:R}),_.V("div",{class:P}))},"Mc");var VeA=_.E5(function(R){var A=_.Pc(R,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),Y=A.data;R=A.className;var P=A.handleOnTapEventInParent,E=A.parentActive;A=_.x(_.gl(function(){var T;return(T=E())!=null?T:Y().switchedOnByDefault||!1}));
var z=A.next().value,c=A.next().value,M=function(){return Y().isDisabled},N=_.LK("button");
A=_.Qi(function(T){return T.key==="Enter"?(T.preventDefault(),N.value.click(),!1):!0});
var y=_.Qi(function(T){if(Y().handleOnTapEventInParent||P())return!0;if(M())return!1;w0S(Y(),z(),T);c(!z());return!1}),m={};
m=_.To("ytSwitchButtonViewModelButton",(m.ytSwitchButtonViewModelTappable=function(){return!M()},m));
return _.V("switch-button-view-model",{class:_.To("ytSwitchButtonViewModelHost",R)},_.V("button",{el:N,class:m,"on:click":y,"on:keydown":A,"aria-label":function(){return z()?Y().a11yLabelSwitchedOn:Y().a11yLabelSwitchedOff},
"aria-checked":z,"aria-disabled":M,role:"switch"},_.V(NdS,{active:z,disabled:M})))},"Nc");var JaE=_.E5(function(R){var A=R.data;var Y=R.isLeading;var P=R.hideSelectionTextChevron;var E=R.isToggled;var z=function(){return Y()?A().leadingImage:A().trailingImage},c=function(){a:switch(A().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var m="expand_more";
break a;default:m="chevron_right"}return m};
R={};var M=_.To("yt-list-item-view-model-wiz__image-container",(R["yt-list-item-view-model-wiz__leading"]=Y,R["yt-list-item-view-model-wiz__trailing"]=function(){return!Y()},R)),N=_.To("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
R={};var y=_.To("yt-list-item-view-model-wiz__accessory",(R["yt-list-item-view-model-wiz__leading"]=Y,R["yt-list-item-view-model-wiz__trailing"]=function(){return!Y()},R));
return _.V(_.J,{cond:function(){var m=A(),T=Y();return!!(T&&(m.leadingImage||m.leadingAccessory)||!T&&(m.trailingImage||m.trailingButton||m.trailingButtons||m.selectionText))},
then:function(){return _.V(_.lI,null,_.V(_.J,{cond:z,then:function(m){return _.V("div",{class:M,"aria-hidden":"true"},_.V(_.P1,{data:m,alt:"",preserveWidth:!0,preserveHeight:!0,className:N,isToggled:E}))}}),_.V(_.J,{cond:function(){return Y()&&A().leadingAccessory},
then:function(){return _.V("div",{class:M},_.V(_.ni,{data:function(){return A().leadingAccessory}},{avatarViewModel:function(m){return _.V(_.qW,{data:m.data,
avatarButtonCustomClassName:N})},
collectionThumbnailViewModel:function(m){return _.V(FDN,{data:m.data,maxHeight:36,includeStackHeight:!0})}}))}}),_.V(_.J,{cond:function(){return!Y()&&A().trailingButton},
then:function(){return _.V("div",{class:"yt-list-item-view-model-wiz__button-container"},_.V(_.ni,{data:function(){return A().trailingButton}},{buttonViewModel:function(m){return _.V(_.Is,{data:m.data,
className:y})}}))}}),_.V(_.J,{cond:function(){var m;
return!Y()&&((m=A().trailingButtons)==null?void 0:m.buttons)},
then:function(){return _.V("div",{class:"yt-list-item-view-model-wiz__button-container"},_.V(_.ni,{data:function(){var m;return(m=A().trailingButtons)==null?void 0:m.buttons}},{buttonViewModel:function(m){return _.V(_.Is,{data:m.data,
className:y})},
accountLinkButtonViewModel:function(m){return _.V($CE,{data:m.data,className:y})},
switchButtonViewModel:function(m){return _.V(VeA,{data:m.data,className:y})},
subscribeButtonViewModel:function(m){return _.V(_.qu,{data:m.data,isOverlay:!1,animateWidth:!1,className:y})},
toggleButtonViewModel:function(m){return _.V(_.uF,{data:m.data,className:y})}}))}}),_.V(_.J,{cond:function(){return!Y()&&!!A().selectionText},
then:function(){return _.V(_.lI,null,_.V(_.NU,{text:function(){return A().selectionText},
className:_.To("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.V(_.J,{cond:function(){return!(P==null?0:P())},
then:function(){return _.V(_.H1,{icon:c,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Oc");var ya7=_.E5(function(R){var A=R.data;return _.V(_.J,{cond:function(){return A().title||A().subtitle},
then:function(){return _.V("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.V(_.J,{cond:function(){return A().title},
then:function(Y){return _.V("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.V(_.NU,{text:Y,className:"yt-list-item-view-model-wiz__title"}))}}),_.V(_.J,{cond:function(){return A().subtitle},
then:function(Y){return _.V(_.NU,{text:Y,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Pc");var RQ=_.E5(function(R){var A=R.data;var Y=R.hideSelectionTextChevron;var P=R.TrailingAccessory;var E=R.isToggled;var z=R.disabled;var c=R.isSelectItem;var M=R.isCompact;var N=R.inPopup;var y=R.disableHorizontalPadding;R=R.isTappableWithoutSelect;var m={};return _.V("div",{class:_.To("yt-list-item-view-model-wiz__label",(m["yt-list-item-view-model-wiz__container"]=function(){return!(c==null?0:c())},m["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!A().isDisabled||!(z==null||
!z())},m["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!A().subtitle},m["yt-list-item-view-model-wiz__container--compact"]=M,m["yt-list-item-view-model-wiz__container--tappable"]=R,m["yt-list-item-view-model-wiz__container--in-popup"]=N,m["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(y==null?void 0:y())&&!(c==null?0:c())},m))},_.V(JaE,{data:A,
isLeading:!0,hideSelectionTextChevron:Y,isToggled:E}),_.V(ya7,{data:A}),_.V(_.J,{cond:function(){return!!P},
then:function(){return _.V("div",{class:"yt-list-item-view-model-wiz__trailing"},P&&_.V(P,null))},
else:function(){return _.V(JaE,{data:A,isLeading:!1,hideSelectionTextChevron:Y,isToggled:E})}}))},"Qc");var Td7=_.E5(function(R){var A=_.Pc(R,{checked:!1});R=A.name;var Y=A.onChange,P=A.onClick,E=A.checked,z=A.labelRenderable,c=A.hasLeadingLabel,M=A.labelClass,N=A.isCompact,y=A.selectElementClass;A=A.disableHorizontalPadding;var m="checkbox"+_.hn(_.qe),T=_.Qi(function(r){P==null||P(r);return!1}),Q=_.Qi(function(r){Y==null||Y(r);
return!1}),g={};
return _.V("checkbox-shape",null,_.V("label",{class:_.To("checkbox-shape-wiz",M,(g["checkbox-shape-wiz--compact"]=N,g["checkbox-shape-wiz--disable-horizontal-padding"]=A,g))},_.V("input",{class:"checkbox-shape-wiz__input",id:m,checked:E,name:R,type:"checkbox","prop:checked":E,"on:change":Q,"on:click":T}),_.V(_.J,{cond:function(){return!(c==null?0:c())},
then:function(){return _.V(mDb,{isLeading:!0,selectElementClass:y})}}),_.V(_.J,{cond:function(){return!!z},
then:function(){return _.V("div",{class:"checkbox-shape-wiz__label"},z==null?void 0:z())}}),_.V(_.J,{cond:c,
then:function(){return _.V(mDb,{isLeading:!1,selectElementClass:y})}})))},"Rc");
Td7.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var mDb=_.E5(function(R){var A=R.selectElementClass;R={};return _.V("div",{class:_.To("checkbox-shape-wiz__checkbox",A,(R["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(A==null?0:A())},R)),
"aria-hidden":"true"},_.V(_.H1,{icon:_.v("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.V(_.H1,{icon:_.v("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Sc");_.At=_.E5(function(R){var A=R.name;var Y=R.onChange;var P=R.onClick;var E=R.checked;var z=R.labelRenderable;var c=R.useCheckIcon;var M=R.hasLeadingLabel;var N=R.labelClass;var y=R.isCompact;var m=R.selectElementClass;var T=R.ariaLabel;R=R.className;var Q="radio"+_.hn(_.qe),g=_.LK("input"),r=_.Qi(function(t){g.value.checked=!(E==null||!E());Y==null||Y(t);return!1}),I=_.Qi(function(t){P==null||P(t);
return!1}),b=_.Qi(function(t){_.v("enable_ios_webview_radio_button_responsiveness")&&(t.preventDefault(),g.value.click())}),p=_.x(_.yy(!1,void 0,"TcCZlf")),h=p.next().value,L=p.next().value;
p=_.Qi(function(){var t;((t=_.is().resolve(_.z3(_.rt)))==null?0:t.isKeyBoardInUse())&&L(!0)});
var Z=_.Qi(function(){L(!1)}),w={};
return _.V("radio-shape",{class:_.To("radio-shape-wiz",R)},_.V("input",{el:g,class:"radio-shape-wiz__input",id:Q,"prop:checked":E,name:A,type:"radio","on:change":r,"on:click":I,"aria-label":T,"on:focusin":p,"on:focusout":Z}),_.V("label",{class:_.To("radio-shape-wiz__label-container",N,(w["radio-shape-wiz--compact"]=y,w["radio-shape-wiz__label-container--keyboard-focused"]=h,w)),for:Q,"on:click":b},_.V(_.J,{cond:function(){return!(M==null?0:M())},
then:function(){return _.V(QvE,{checked:E,useCheckIcon:c,isLeading:!0,selectElementClass:m})}}),_.V(_.J,{cond:function(){return!!z},
then:function(){return _.V("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(T==null?0:T())?"true":"false"}},z==null?void 0:z())}}),_.V(_.J,{cond:M,
then:function(){return _.V(QvE,{checked:E,useCheckIcon:c,isLeading:!1,selectElementClass:m})}})))},"Tc");
_.At.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var QvE=_.E5(function(R){var A=R.useCheckIcon;var Y=R.selectElementClass;R=function(){return(A==null?0:A())?"CHECK":_.v("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var P={};return _.V("div",{class:_.To("radio-shape-wiz__radio",Y,(P["radio-shape-wiz__radio--check-icon"]=A,P["radio-shape-wiz__radio--radio-default-style"]=function(){return!(Y==null?0:Y())},P)),
"aria-hidden":"true"},_.V(_.H1,{icon:R}),_.V(_.H1,{icon:R,active:function(){return!(A==null?0:A())}}))},"Uc");_.Yr=_.E5(function(R){var A=R.data;var Y=R.isMenuItem;var P=R.isCompact;var E=R.onTap;var z=R.trailingAccessory;var c=R.hideSelectionTextChevron;var M=R.disabled;var N=R.inPopup;var y=R.disableHorizontalPadding;var m=R.isOverlay;R=R.isToggled;var T=_.aE(function(Jk){return qtS(Jk,A())}),Q=function(){return _.v("enable_web_shorts_captions_language_command")?Object.assign({},A(),T()):A()},g=function(){return!(Q().isSelected===void 0||!Q().selectionStyle||Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
r=function(){return(_.bc(Q().rendererContext)||E)&&!g()},I={},b=_.To("yt-list-item-view-model-wiz__container",(I["yt-list-item-view-model-wiz__container--tappable"]=function(){return _.bc(Q().rendererContext)||g()},I["yt-list-item-view-model-wiz__container--compact"]=P,I["yt-list-item-view-model-wiz__container--in-popup"]=N,I["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(y==null?void 0:y())&&g()},I)),p=function(){return Q().leadingImage||Q().leadingAccessory},
h=_.To("yt-list-item-view-model-wiz__image-container",function(){return p()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
I=_.Qi(function(Jk){return void(E==null?void 0:E(Jk))});
var L=_.qyk(),Z=_.x(_.yy(!1,void 0,"VAEbUb")),w=Z.next().value,t=Z.next().value,d={data:Q,hideSelectionTextChevron:c,TrailingAccessory:z,isToggled:R,disabled:M,isSelectItem:g,isCompact:P,inPopup:N,disableHorizontalPadding:y,isTappableWithoutSelect:r};z={};return _.V("yt-list-item-view-model",{el:_.zo(_.fi(function(){return Q().rendererContext}),Mfb(function(){return r==null?void 0:r()},{focusin:function(){var Jk;
((Jk=_.is().resolve(_.z3(_.rt)))==null?0:Jk.isKeyBoardInUse())&&t(!0)},
focusout:function(){t(!1)}})),
class:_.To("yt-list-item-view-model-wiz",(z["yt-list-item-view-model-wiz--is-overlay"]=m,z["yt-list-item-view-model-wiz--keyboard-focused"]=w,z)),role:function(){return(Y==null?0:Y())?"menuitem":"listitem"},
tabindex:function(){var Jk=r();return E||Jk?0:void 0},
"on:keydown":L,"on:click":I},_.V(_.J,{cond:g,then:function(){return _.V(_.SO,null,_.V(_.$W,{when:function(){return Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.V(Td7,{labelRenderable:function(){return _.V(RQ,Object.assign({},d))},
isCompact:P,checked:function(){return Q().isSelected},
hasLeadingLabel:function(){return!!p()},
labelClass:b,selectElementClass:h,disableHorizontalPadding:y})}),_.V(_.$W,{when:function(){return Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.V(_.At,{labelRenderable:function(){return _.V(RQ,Object.assign({},d))},
isCompact:P,checked:function(){return Q().isSelected},
hasLeadingLabel:function(){return!!p()},
labelClass:b,selectElementClass:h})}),_.V(_.$W,{when:function(){return Q().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.V(_.At,{labelRenderable:function(){return _.V(RQ,Object.assign({},d))},
isCompact:P,checked:function(){return Q().isSelected},
hasLeadingLabel:function(){return!!p()},
labelClass:b,selectElementClass:h,useCheckIcon:!0})}),_.V(_.Xc,null,function(){return _.V(RQ,Object.assign({},d))}))},
else:function(){return _.V(RQ,Object.assign({},d))}}))},"Vc");
_.Yr.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};_.vKN=_.E5(function(R){var A=R.data;var Y=R.onTap;var P=R.onSwitch;var E=R.overrideDisabled;R=R.disableHorizontalPadding;var z=_.x(_.gl(function(){var T;return((T=eIu(m()))==null?void 0:T.switchedOnByDefault)||!1})),c=z.next().value,M=z.next().value;
z=_.x(_.yy(!1,void 0,"uRe0y"));var N=z.next().value,y=z.next().value,m=function(){var T;if(!(T=A().switchButton)){var Q=A();T=E==null?void 0:E();Q={switchOnCommand:Q.switchOnCommand,switchOffCommand:Q.switchOffCommand,switchedOnByDefault:Q.switchedOnByDefault,isDisabled:Q.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:Q.a11yLabelSwitchedOn,a11yLabelSwitchedOff:Q.a11yLabelSwitchedOff};T!==void 0&&(Q.isDisabled=T);T={switchButtonViewModel:Q}}return T};
return _.V("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.V(_.Yr,{data:function(){return{title:A().title,subtitle:A().attributedSubtitle,leadingImage:A().leadingImage,leadingAccessory:A().leadingAccessory,isDisabled:A().isDisabled}},
onTap:function(T){var Q=eIu(m());!Q||Q.isDisabled||A().ignoreTapUntilCommandCompletes&&N()||(Y==null||Y(T),w0S(Q,c(),T,A().ignoreTapUntilCommandCompletes,y),M(!c()),P==null||P(c()))},
trailingAccessory:function(){return _.V(_.ni,{data:m},{switchButtonViewModel:function(T){return _.V(VeA,{data:T.data,parentActive:c,handleOnTapEventInParent:!!Y})}})},
disableHorizontalPadding:R}))},"Wc");var gKD=_.E5(function(R){var A=_.x(_.gl(function(){var E,z;return!!((E=R.data())==null?0:(z=E.initialState)==null?0:z.isToggled)})),Y=A.next().value,P=A.next().value;
A=_.Qi(function(){P(!Y())});
return _.V("toggleable-list-item-view-model",{el:_.zo(_.fi(function(){return R.data().rendererContext})),
class:_.To("toggleableListItemViewModelHost",R.className),"on:click":A},_.V(_.J,{cond:function(){if(Y()){var E=R.data().toggledListItem;E=_.n(E,_.Dk)}else E=R.data().defaultListItem,E=_.n(E,_.Dk);return E},
then:function(E){return _.V(_.Yr,{data:E,isToggled:Y,ariaLabel:function(){var z=Y()?R.data().toggledListItem:R.data().defaultListItem,c;z=(c=_.n(z,_.Dk))==null?void 0:c.rendererContext;var M;return(M=_.n(z,_.Kd))==null?void 0:M.label},
ariaPressed:function(){return Y()}})}}))},"Xc");var nKG=_.vk("DOWNLOAD",{},"Download"),H4D=_.vk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),raH=_.vk("RETRY",{},"Retry"),DDS=_.vk("PAUSE_DOWNLOADING",{},"Pause downloading"),UDZ=_.vk("RESUME_DOWNLOAD",{},"Resume download"),LdJ={text:nKG,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},HL={text:H4D,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},AxP={text:raH,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
d0S={text:DDS,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},Ral={text:UDZ,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var $Dz=_.E5(function(R){var A=function(){var M=R.data();M=_.jd(M.rendererContext);var N;return(N=_.n(M,_.TI))==null?void 0:N.videoId},Y=_.aE(function(M){var N=A(),y=EVS(R.data());
return N?_.h0(M,N):y?_.oa(M,y):"TRANSFER_STATE_UNKNOWN"}),P=_.vT(_.v7P,A),E=_.aE(function(M){return _.NRI(M,A(),EVS(R.data()))}),z=function(){return PAk(Y(),P(),_.jd(R.data().rendererContext),!!EVS(R.data()))},c=function(){return E()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.V("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:c},_.V(_.J,{cond:function(){return!c()},
then:function(){return _.V(_.J,{cond:z,then:function(M){return _.V(_.Ue,{each:M},function(N){return _.V(_.Yr,{data:N,isCompact:R.isCompact,isMenuItem:R.isMenuItem,inPopup:R.inPopup,disableHorizontalPadding:R.disableHorizontalPadding})})}})}}))},"Yc");
$Dz.idomCompat=!0;_.Xgb=_.E5(function(R){var A=R.data;var Y=R.isCompact;var P=R.hideSelectionTextChevron;var E=R.inPopup;var z=R.isOverlay;var c=R.disableHorizontalPadding;var M=function(){return zak(A())&&(E==null?void 0:E())};
R={};return _.V("yt-list-view-model",{class:_.To("ytListViewModelHost",(R.ytListViewModelHostKaiosSpatNav=mE6&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",R.ytListViewModelCollectionThumbnailClass=function(){return xxk(A())},R)),
role:function(){return M()?"menu":"list"},
style:_.nY({"max-height":function(){var N,y=(N=A())==null?void 0:N.visibleElementCount;if(y)return xxk(A())?(y+.5)*48+"px":(y+.5)*40+"px"}})},_.V(_.ni,{data:function(){return A().listItems}},{listItemViewModel:function(N){return _.V(_.Yr,{data:N.data,
isMenuItem:M,isCompact:Y,hideSelectionTextChevron:P,inPopup:E,isOverlay:z,disableHorizontalPadding:c})},
toggleableListItemViewModel:function(N){return _.V(gKD,{data:N.data})},
downloadListItemViewModel:function(N){return _.V($Dz,{data:N.data,isMenuItem:M,isCompact:Y,inPopup:E,disableHorizontalPadding:c})},
switchListItemViewModel:function(N){return _.V(_.vKN,{data:N.data,disableHorizontalPadding:c})}}))},"Zc");
_.Xgb.idomCompat=!0;var SsS=_.E5(function(R){var A=R.data;var Y=R.isOverlay;R={};return _.V("yt-course-perks-view-model",{class:_.To("ytwCoursePerksViewModelHost",(R.ytwCoursePerksViewModelHostOverlay=Y,R))},_.V("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V("div",null,_.V(_.J,{cond:function(){return A().perks},
then:function(P){return _.V(_.Xgb,{data:function(){return{listItems:P()}},
isCompact:!0,isOverlay:Y})}})))},"$c");_.Ow(SsS,"yt-course-perks-view-model",{props:{data:_.xL,isOverlay:_.xL}});_.Ow(_.E5(function(R){var A=R.data;return _.V("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.V("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.V(_.NU,{text:function(){return A().progressSummary}})),_.V("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.V("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.nY({width:function(){return A().progressPercentage*100+"%"}})})))},"ad"),"yt-course-progress-view-model",{props:{data:_.VY}});var ItG=_.E5(function(R){var A={};return _.V("yt-progress-view-model",{class:_.To("ytwProgressViewModelHost",(A.ytwProgressViewModelHostOverlay=_.Y9(R.isOverlay,!1),A))},_.V(_.J,{cond:function(){return R.data().progressSummary},
then:function(Y){return _.V("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.V(_.NU,{text:Y}))}}),_.V("div",{class:"ytwProgressViewModelHostProgressContainer"},_.V(_.J,{cond:function(){return R.data().leadingLabel},
then:function(Y){return _.V("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.V(_.NU,{text:Y}))}}),_.V("div",{class:"ytwProgressViewModelHostProgressBar"},_.V("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(R.data().progressPercentage||0)*100+"%"}}))))},"bd");var Pp=_.E5(function(R){var A=R.starNumber;var Y=R.data;var P=function(){var E;return((E=Y())==null?void 0:E.rating)||0};
return _.V(_.J,{cond:function(){return A()},
then:function(E){return _.V(_.SO,null,_.V(_.$W,{when:function(){return P()>=E()-.25}},function(){return _.V("div",{class:"ytStarRatingViewModelHostStar"},_.V(_.H1,{icon:"STAR_FILLED"}))}),_.V(_.$W,{when:function(){return P()>=E()-.75}},function(){return _.V("div",{class:"ytStarRatingViewModelHostStar"},_.V(_.H1,{icon:"STAR_HALF"}))}),_.V(_.Xc,null,function(){return _.V("div",{class:"ytStarRatingViewModelHostStar"},_.V(_.H1,{icon:"STAR_BORDER"}))}))}})},"cd"),K_Z=_.E5(function(R){R=R.data;
return _.V("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.V(Pp,{starNumber:1,data:R}),_.V(Pp,{starNumber:2,data:R}),_.V(Pp,{starNumber:3,data:R}),_.V(Pp,{starNumber:4,data:R}),_.V(Pp,{starNumber:5,data:R}))},"dd");_.Ow(_.E5(function(R){var A=_.Pc(R,{}).data;return _.V("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.V("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.V(_.NU,{text:function(){var Y;return(Y=A())==null?void 0:Y.title}})),_.V("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.V(_.J,{cond:function(){return A().starProgressViewModels},
then:function(Y){return _.V("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.V(_.ni,{data:Y},{progressViewModel:ItG}))}}),_.V("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.V("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.V(_.NU,{text:function(){var Y;
return(Y=A())==null?void 0:Y.averageRatingLabel}})),_.V(_.J,{cond:function(){return A().zeroStateText},
then:function(Y){return _.V("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.V(_.NU,{text:Y}))}}),_.V(_.J,{cond:function(){return A().starRatingViewModel},
then:function(Y){return _.V("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.V(_.ni,{data:Y},{starRatingViewModel:K_Z}))}}),_.V("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.V(_.NU,{text:function(){var Y;
return(Y=A())==null?void 0:Y.totalRatingsCountLabel}})))))},"ed"),"yt-course-ratings-view-model",{props:{data:_.xL}});var W_A;W_A={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"}};_.jvq=_.E5(function(R){var A=_.LK("yt-learning-journey-loader-view-model"),Y=_.yJ();_.WD(function(){requestAnimationFrame(function(){var E;(E=Y.lottieEl)==null||E.addEventListener("DOMLoaded",function(){var z;(z=R.onLottieLoaded)==null||z.call(R)})});
var P=R.data().browseEndpoint;P&&_.Zc(P)});
return _.V("yt-learning-journey-loader-view-model",{class:_.To("learningJourneyLoaderViewModelHost",R.className),"data-target-id":function(){var P;return((P=R.data)==null?void 0:P.call(R).targetId)||""},
el:A},_.V(_.pH,{className:_.To("learningJourneyLoaderViewModelLoader",R.className),animationName:function(){return W_A.animationConfig.name},
data:W_A,animationRef:Y}))},"fd");_.Ow(_.jvq,"yt-learning-journey-loader-view-model",{props:{data:_.VY,className:_.xL,onLottieLoaded:_.xL}});var Ozk=new Set,cxk=null;var ftS=_.E5(function(R){var A=null,Y=null,P=function(){return R.data()},E=function(){var I=P();
var b=_.is().resolve(_.z3(_.dU));I=b!=null&&b()?I.darkThemeColorPalette:I.lightThemeColorPalette;return{primaryTextColor:D5(I,0),secondaryTextColor:D5(I,1),optionColor:D5(I,2),backgroundColor:D5(I,3),videoBackgroundColor:D5(I,4)}},z=function(){return!!E().optionColor},c=_.x(_.yy(-1,void 0,"F20Hhb")),M=c.next().value,N=c.next().value,y=function(I){return P().correctAnswerIndex===I},m=function(){return M()!==-1};
c=_.x(_.yy("",void 0,"ZztYo"));var T=c.next().value,Q=c.next().value,g=function(){var I=m(),b=M()===P().correctAnswerIndex;return I?b?264685:264684:264683},r=function(I){return M()===P().correctAnswerIndex&&y(I)};
return _.V("learning-journey-quiz-view-model",{class:_.To("learningJourneyQuizViewModelHost",R.className),style:_.nY({background:function(){return E().backgroundColor}})},_.V("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},T),_.V(_.J,{cond:function(){return!!P().video},
then:function(){return _.V("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.nY({background:function(){return E().videoBackgroundColor}})},_.V(_.ni,{data:function(){return P().video}},{lockupViewModel:function(I){return _.V(_.SW,{data:I.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.V("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.V("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.V("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.V(_.J,{cond:function(){return!!P().aiGeneratedQuizLabel},
then:function(){return _.V("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.V(_.NU,{text:function(){return P().aiGeneratedQuizLabel}}))}}),_.V("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.nY({"align-items":function(){return P().overflowMenu?"start":"center"}})},_.V("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.nY({"min-height":function(){return P().overflowMenu?"48px":"26px"}})},_.V("div",{class:"learningJourneyQuizYoututorText",
el:_.zo(function(I){_.rc(g(),I,A,function(b){A=b})}),
style:_.nY({color:function(){return E().primaryTextColor}}),
"client-ve-type":g},_.V(_.NU,{text:function(){return P().questionHeaderText}})))),_.V("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.zo(function(I){_.rc(264688,I,Y,function(b){Y=b})}),
style:_.nY({color:function(){return E().secondaryTextColor}}),
"client-ve-type":264688},_.V(_.NU,{text:function(){var I=P();return m()?I.explanationText:I.questionSubheaderText}}))),_.V("div",{role:"group",
class:_.To("learningJourneyQuizViewModelHostQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.V(_.Ue,{each:function(){return P().optionsData||[]}},function(I,b){var p={};
return _.V("button",{class:_.To("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(p.learningJourneyQuizViewModelHostQuizHover=function(){return!m()},p.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=z,p.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return m()&&y(b())},p.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){var h;
if(h=M()!==P().correctAnswerIndex)h=b(),h=M()===h;return h},p)),
"on:click":_.Qi(function(){if(m())return!1;N(b());var h,L;Q(y(b())?((h=P().successTitle)==null?void 0:h.content)||"":((L=P().failureTitle)==null?void 0:L.content)||"");return!1}),
style:_.nY({background:"transparent"}),"aria-description":function(){var h,L;return m()?y(b())?(h=P().successTitle)==null?void 0:h.content:(L=P().failureTitle)==null?void 0:L.content:""},
"aria-disabled":m,"client-ve-type":264686},_.V("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.V(_.NU,{text:I.optionText}),_.V(_.J,{cond:function(){var h=b(),L;if(L=m())L=M()===h||y(h);return L},
then:function(){return _.V(b4D,{isOptionCorrect:y,optionIndex:b,isOptionSelectedAndCorrect:r,colors:E})}})))}),_.V(_.J,{cond:m,
then:function(){return _.V("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.V("div",{class:"learningJourneyQuizYoututorExplanationText"},_.V(_.NU,{text:function(){return P().explanationHeaderText}})),_.V(_.NU,{text:function(){return P().optionsData[M()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"gd"),b4D=_.E5(function(R){var A={};
return _.V("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,width:24,viewBox:"0 0 24 24",class:_.To("learningJourneyQuizYoututorOptionIconTrailing",(A.learningJourneyQuizViewModelHostQuizPulse=function(){return R.isOptionSelectedAndCorrect(R.optionIndex())},A.learningJourneyQuizYoututorIconIncorrectFill=function(){return!R.isOptionSelectedAndCorrect(R.optionIndex())&&!R.isOptionCorrect(R.optionIndex())},A.learningJourneyQuizYoututorIconCorrectFill=function(){return R.isOptionCorrect(R.optionIndex())},
A))},_.V("path",{d:function(){var Y=R.optionIndex();
return R.isOptionCorrect(Y)?"M12,2C6.5,2,2,6.5,2,12c0,5.5,4.5,10,10,10s10-4.5,10-10C22,6.5,17.5,2,12,2z M9.8,17.3l-4.2-4.1L7,11.8l2.8,2.7L17,7.4 l1.4,1.4L9.8,17.3z":"M12 1.5C18.0751 1.5 23 6.42487 23 12.5C23 18.5751 18.0751 23.5 12 23.5C5.92487 23.5 1 18.5751 1 12.5C1 6.42487 5.92487 1.5 12 1.5ZM16.207 8.29297C15.8165 7.90246 15.1835 7.90246 14.793 8.29297L12 11.0859L9.20703 8.29297C8.81651 7.90247 8.18349 7.90247 7.79297 8.29297C7.40245 8.68349 7.40246 9.31651 7.79297 9.70703L10.5859 12.5L7.79297 15.293C7.40247 15.6835 7.4025 16.3165 7.79297 16.707C8.1835 17.0976 8.81651 17.0976 9.20703 16.707L12 13.9141L14.793 16.707L14.8691 16.7754C15.2619 17.0958 15.8409 17.0731 16.207 16.707C16.5731 16.3409 16.5958 15.7619 16.2754 15.3691L16.207 15.293L13.4141 12.5L16.207 9.70703C16.5975 9.31651 16.5975 8.68349 16.207 8.29297Z"}}))},
"hd");
ftS.idomCompat=!0;var pgA;_.F_H=_.E5(function(R){var A=null,Y=null,P=null,E=function(){return R.data()},z=function(){var Z=E();
var w=_.is().resolve(_.z3(_.dU));Z=w!=null&&w()?Z.darkThemeColorPalette:Z.lightThemeColorPalette;return{primaryTextColor:Ur(Z,0),secondaryTextColor:Ur(Z,1),optionColor:Ur(Z,2),backgroundColor:Ur(Z,3),videoBackgroundColor:Ur(Z,4)}},c=function(){return!!z().optionColor},M=_.x(_.yy(-1,void 0,"QDu8Oe")),N=M.next().value,y=M.next().value,m=function(Z){return N()===Z},T=function(Z){return E().correctAnswerIndex===Z},Q=function(){return N()!==-1},g=function(){return N()===E().correctAnswerIndex},r=function(){var Z=
E(),w=Q(),t=g();
return w?t?Z.successTitle:Z.failureTitle:Z.questionHeaderText},I=function(){var Z=Q(),w=g();
return Z?w?264685:264684:264683},b=function(){var Z=E();
return Q()?Z.explanationText:Z.questionSubheaderText},p=function(){return!!E().video},h=function(Z){return g()&&T(Z)},L=_.Qi(function(){y(-1);
return!1});
return _.V(_.J,{cond:function(){return E().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.V(ftS,{data:function(){return E()}})},
else:function(){return _.V("learning-journey-quiz-view-model",{class:_.To("learningJourneyQuizViewModelHost",R.className),style:_.nY({background:function(){return z().backgroundColor}})},_.V(_.J,{cond:p,
then:function(){return _.V("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.nY({background:function(){return z().videoBackgroundColor}})},_.V(_.ni,{data:function(){return E().video}},{lockupViewModel:function(Z){return _.V(_.SW,{data:Z.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.V("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.V("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.V("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.V(_.J,{cond:function(){return!!E().aiGeneratedQuizLabel},
then:function(){return _.V("div",{class:"learningJourneyQuizViewModelHostQuizAiGeneratedLabel"},_.V(_.NU,{text:function(){return E().aiGeneratedQuizLabel}}))}}),_.V("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.nY({"align-items":function(){return E().overflowMenu?"start":"center"}})},_.V("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.nY({"min-height":function(){return E().overflowMenu?"48px":"26px"}})},_.V("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
el:_.zo(function(Z){_.rc(I(),Z,A,function(w){A=w})}),
style:_.nY({color:function(){return z().primaryTextColor}}),
"client-ve-type":I},_.V(_.NU,{text:r}))),_.V("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.V(_.J,{cond:Q,then:function(){return _.V("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover",el:_.zo(function(Z){_.rc(264687,Z,Y,function(w){Y=w})}),
"on:click":L,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.V("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.nY({fill:function(){return z().primaryTextColor}})},_.V("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"})))}}),
_.V(_.ni,{data:function(){return E().overflowMenu}},{buttonViewModel:function(Z){return _.V(_.Is,{data:Z.data})}}))),_.V("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
el:_.zo(function(Z){_.rc(264688,Z,P,function(w){P=w})}),
style:_.nY({color:function(){return z().secondaryTextColor}}),
"client-ve-type":264688},_.V(_.NU,{text:b}))),_.V("div",{role:"group",class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.V(_.Ue,{each:function(){return E().optionsData||[]}},function(Z,w){var t={};
return _.V("button",{class:_.To("learningJourneyQuizViewModelHostQuizOptions","learningJourneyQuizViewModelHostQuizOptionsBorderRound",(t.learningJourneyQuizViewModelHostQuizHover=function(){return!Q()},t.learningJourneyQuizViewModelHostQuizOptionWithCustomColor=c,t.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return h(w())},t.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!g()&&m(w())},t.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return Q()&&
!m(w())},t)),
"on:click":_.Qi(function(){if(Q())return!1;y(w());return!1}),
style:_.nY({background:function(){var d=w();return Q()&&m(d)?"":c()?z().optionColor:"transparent"}}),
"aria-disabled":Q,"client-ve-type":264686},_.V("div",{class:"learningJourneyQuizViewModelHostQuizOptionContainer"},_.V(_.J,{cond:Q,then:function(){return _.V(pgA,{isOptionCorrect:T,optionIndex:w,isOptionSelectedAndCorrect:h,colors:z})}}),_.V(_.NU,{text:Z.optionText})))})))))}})},"id");
pgA=_.E5(function(R){var A={};return _.V("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var Y=R.optionIndex();return R.isOptionCorrect(Y)?"0 0 24 24":"0 -960 960 960"},
class:_.To("learningJourneyQuizViewModelHostQuizOptionIconLeading",(A.learningJourneyQuizViewModelHostQuizPulse=function(){return R.isOptionSelectedAndCorrect(R.optionIndex())},A)),
style:_.nY({fill:function(){return R.colors().primaryTextColor}})},_.V("path",{d:function(){var Y=R.optionIndex();
return R.isOptionCorrect(Y)?"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"}}))},"jd");
_.F_H.idomCompat=!0;_.Ow(_.F_H,"learning-journey-quiz-view-model",{props:{data:_.VY,className:_.VY}});var BdD=_.E5(function(R){var A=_.x((0,_.x0A)(function(){var Y;return{targetId:(Y=R.data().config)==null?void 0:Y.suspenseKey,contents:[R.data()]}})).next().value;
return _.V("yt-suspense-view-model",{class:_.To("ytSuspenseViewModelHost")},_.V(_.ni,{data:function(){if(A().contents.length>0){var Y;return(Y=A().contents[0].config)==null?void 0:Y.contents}}},{lockupViewModel:_.SW}))},"kd");var atD=_.E5(function(R){var A=_.Pc(R,{palette:void 0,isLastItem:!1}),Y=A.palette,P=A.isLastItem,E=function(){return R.data().isHighlighted},z=function(){var N;
return sV3((N=Y())==null?void 0:N.iconDisabledColor)},c=function(){var N;
return sV3((N=Y())==null?void 0:N.primaryTitleColor)},M=function(){var N;
return sV3((N=Y())==null?void 0:N.secondaryTitleColor)};
A={};return _.V("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.zo(_.fi(function(){return R.data().rendererContext}))},_.V(_.ni,{data:function(){return R.data().thumbnail}},{thumbnailViewModel:_.QO}),_.V("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.V("div",{class:_.To("ytMacroMarkerListItemViewModelTimeDescription",(A.ytMacroMarkerListItemViewModelHighlighted=E,A)),
style:_.nY({"background-color":function(){return E()?c():z()},
color:function(){return E()?"":M()}})},_.V(_.NU,{text:function(){return R.data().timestamp}})),_.V("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.nY({"background-color":function(){return P()?"transparent":z()}})}),_.V("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(E()?c():M())}},_.V(_.NU,{text:function(){return R.data().title}}))))},"ld");_.ES=_.E5(function(R){function A(zS){h("transform:translateX("+(_.a1("HTML_DIR")==="rtl"?"":"-")+zS+"px)")}
function Y(zS){return Math.min(Math.max(zS,0),p()-d())}
function P(){var zS=w()+H3();return E()?(Math.round(d()/zS)||1)*zS:0}
var E=function(){return R.data().items||[]},z=function(){return R.data().previousButton},c=function(){return R.data().nextButton},M=function(){var zS,RA;
return(RA=(zS=R.disableArrows)==null?void 0:zS.call(R))!=null?RA:!1},N=function(){var zS;
return!((zS=R.forceNarrowLayout)==null||!zS.call(R))},y=_.gE(function(){var zS;
return!((zS=R.centerAlignItems)==null||!zS.call(R))&&p()<=d()},void 0,"Uto0kc"),m=_.LK("horizontal-shelf-view-model"),T=_.LK("div"),Q=_.x(_.yy(0,void 0,"G0xZB")),g=Q.next().value,r=Q.next().value;
Q=_.x(_.yy(0,void 0,"kqCYFf"));var I=Q.next().value,b=Q.next().value,p=I;I=_.x(_.yy("",void 0,"Hh6Uye"));Q=I.next().value;var h=I.next().value;I=_.x(_.yy(0,void 0,"yMGBKb"));var L=I.next().value,Z=I.next().value,w=L;I=_.x(_.yy(0,void 0,"VChthd"));L=I.next().value;var t=I.next().value,d=L;I=_.x(_.yy(!1,void 0,"qJlhhe"));var Jk=I.next().value,Nb=I.next().value;I=_.x(_.yy(0,void 0,"x7H94"));L=I.next().value;var Qk=I.next().value,H3=L;I=_.x(_.yy(0,void 0,"ksuUee"));var nu=I.next().value,hk=I.next().value;
I=_.x(_.yy("50%",void 0,"uxCxde"));var FV=I.next().value,i8=I.next().value,fD=function(){var zS,RA=(zS=R.data())==null?void 0:zS.responsiveContainerConfiguration,vS,Mg;return RA?ZEI(RA==null?void 0:RA.responsiveSize):(Mg=(vS=R.sizing)==null?void 0:vS.call(R))!=null?Mg:"STANDARD"};
I=_.gE(function(){return!M()&&g()>0},void 0,"XK60w");
L=_.gE(function(){return!M()&&g()<p()-d()},void 0,"D22LVd");
var NG=function(){r(Y(g()-P()));A(g())},d8=function(){r(Y(g()+P()));
A(g())},mS=function(){m.value!==null&&KD()},V7;
_.jO(function(){KD();window.ResizeObserver?(V7=new ResizeObserver(_.$l(mS,0)),V7.observe(m.value)):window.addEventListener("resize",mS)});
_.bm(function(){if(window.ResizeObserver){var zS;(zS=V7)==null||zS.disconnect()}else window.removeEventListener("resize",mS)});
var KD=function(){var zS=m.value.clientWidth,RA=R.includeMargin!==void 0?R.includeMargin():!1,vS;var Mg=R.hasPeek!==void 0?R.hasPeek():!((vS=R.data())==null||!vS.hasPeek);zS=_.Ci({containerWidth:zS,hasPeek:Mg,sizing:fD(),marginSettings:RA?N()?4:1:0});Qk(zS.gutter);hk(zS.margin);Z(zS.itemWidth);Nb(zS.maxContainerWidth<528||N());t(zS.maxContainerWidth);E()&&b((zS.itemWidth+zS.gutter)*E().length-zS.gutter);if(E()){var gf;if(((gf=R.thumbnailAspectRatio)==null?void 0:gf.call(R))!==void 0){var A9;i8(w()/
AYJ((A9=R.thumbnailAspectRatio)==null?void 0:A9.call(R))/2+"px")}else i8("50%")}},UW={},eH={};
return _.V("horizontal-shelf-view-model",{class:_.To("ytwHorizontalShelfViewModelHost",R.className),el:m},_.V(_.J,{cond:function(){var zS;return R.data().header&&!((zS=R.horizontalShelfExperiments)==null?0:zS.call(R).hideHeader)},
then:function(){return _.V("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.nY({width:function(){return d()+"px"},
padding:function(){return"0 "+nu()+"px"}})},_.V(_.ni,{data:function(){return R.data().header}},{sectionHeaderViewModel:function(zS){return _.V(_.Kv,{data:zS.data,
disableHorizontalPadding:!0,forceSmallLayout:Jk,useResponsiveLayout:!0})}}))}}),_.V("div",{class:_.To("ytwHorizontalShelfViewModelOuterContainer",(UW.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return y()},UW)),
style:_.nY({"margin-top":function(){var zS,RA=R.data().header&&!((zS=R.horizontalShelfExperiments)==null?0:zS.call(R).hideHeader),vS;return(((vS=R.ensureMarginTop)==null?0:vS.call(R))&&!RA?12:0)+"px"}})},_.V("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.nY({width:function(){return d()+"px"},
padding:function(){return"0 "+nu()+"px"},
overflow:function(){return M()?"auto":"hidden"}})},_.V("div",{class:_.To("ytwHorizontalShelfViewModelItems",(eH.ytwHorizontalShelfViewModelCenterAlignItems=function(){return y()},eH)),
el:T,style:Q},_.V(_.ni,{data:E},{macroMarkerListItemViewModel:function(zS,RA){return _.V("div",{style:_.nY({width:function(){return w()+"px"},
"margin-right":function(){return(RA()===E().length-1?0:H3())+"px"}})},_.V(atD,{data:zS.data,
palette:_.Y9(R.palette),isLastItem:function(){return RA()===E().length-1}}))},
lockupViewModel:function(zS,RA){var vS=zS.data;return _.V("div",{style:_.nY({width:function(){return w()+"px"},
"margin-right":function(){return(RA()===E().length-1?0:H3())+"px"}})},_.V(_.SW,{data:vS,
containerType:4,sizing:fD,protectBackground:R.protectBackground,thumbnailFixedWidth:function(){return NhI(vS())+"px"},
thumbnailTargetWidth:function(){return NhI(vS())}}))},
suspenseViewModel:function(zS,RA){return _.V("div",{style:_.nY({width:function(){return w()+"px"},
"margin-right":function(){return(RA()===E().length-1?0:H3())+"px"}})},_.V(BdD,{data:zS.data}))}}))),_.V(_.J,{cond:I,
then:function(){return _.V("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.nY({top:function(){return FV()}})},_.V(_.ni,{data:z},{buttonViewModel:function(zS){return _.V(_.Is,{data:zS.data,
onClick:NG})}}))}}),_.V(_.J,{cond:L,
then:function(){return _.V("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.nY({top:function(){return FV()}})},_.V(_.ni,{data:c},{buttonViewModel:function(zS){return _.V(_.Is,{data:zS.data,
onClick:d8})}}))}})))},"md");
_.ES.idomCompat=!0;var C$A=_.E5(function(R){var A=function(){return R.data().targetId||""},Y=function(){var I;
return((I=R.data())==null?void 0:I.expansionEntityKey)||""},P=_.vT(_.hM,Y),E=!0,z=function(){var I;
return((I=P())==null?void 0:I.value)===A()},c=function(I){_.A7(_.HT("stringEntity",Y(),{key:Y(),
value:I?A():""}))};
_.WD(function(){E=!1;R.data().isExpanded&&c(!0)});
var M=function(){if(z()){var I=!0;R.onCollapse!==void 0&&(I=R.onCollapse());I&&c(!1)}else c(!0)},N=_.Qi(M),y=function(){var I;
return(((I=R.accordionStyle)==null?void 0:I.call(R))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},m=_.LK("div"),T=function(){var I,b;
return(b=(I=_.n(R.data().rendererContext,_.Kd))==null?void 0:I.label)!=null?b:""},Q=function(){var I,b;
return{disabled:(I=R.hideIfNotExpanded)==null?void 0:I.call(R),ariaHidden:(b=R.hideIfNotExpanded)==null?void 0:b.call(R)}},g={},r={};
return _.V("yt-accordion-item-view-model",{class:_.To("ytAccordionItemViewModelHost",R.className,(g.ytAccordionItemViewModelExpanded=function(){return z()},g.ytAccordionItemViewModelHidden=function(){var I;
return(I=R.hideIfNotExpanded)==null?void 0:I.call(R)},g.ytAccordionItemViewModelMini=y,g)),
"data-target-id":A},_.V("div",{class:"ytAccordionItemViewModelContainer"},_.V("div",{class:"ytAccordionItemViewModelLeftSection","on:click":N,title:T,"aria-hidden":function(){var I;return(I=R.hideIfNotExpanded)==null?void 0:I.call(R)}},_.V(_.NU,{text:function(){return R.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:T})),_.V("div",{class:"ytAccordionItemViewModelRightSection"},_.V(_.ni,{data:function(){return z()?R.data().expandButton:R.data().collapseButton}},{buttonViewModel:function(I){return _.V(_.Is,{data:I.data,
className:"ytAccordionItemViewModelToggleButton",onClick:M,buttonOverrides:Q})}}))),_.V("div",{class:"ytAccordionItemViewModelContainer"},_.V("div",{class:_.To("ytAccordionItemViewModelContent",(r.ytAccordionItemViewModelExpandedSubtitle=function(){return z()},r)),
el:m,style:_.nY({"max-height":function(){return E?"auto":z()?m.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!z()}},_.V(_.J,{cond:function(){return!y()},
then:function(){return _.V(_.NU,{text:function(){return R.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.V(_.ni,{data:function(){return R.data().content}},{horizontalShelfViewModel:function(I){return _.V(_.ES,{data:I.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"nd");_.hDz=_.E5(function(R){var A=_.x((0,_.x0A)(R.data)).next().value,Y=function(){return R.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},P=function(){return Y()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},E=_.x(_.yy(!0,void 0,"AbejLb")),z=E.next().value,c=E.next().value,M=function(){return P()&&z()},N=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){c(!z())}}},y=_.Qi(function(){A().onTitleTap&&_.Zc(A().onTitleTap||{})});
E={};return _.V("yt-accordion-view-model",{class:_.To("ytAccordionViewModelHost",(E.ytAccordionViewModelMinimized=function(){return M()},E)),
"data-target-id":function(){return R.data().targetId||""}},_.V(_.J,{cond:function(){return P()||!!A().title},
then:function(){return _.V("div",{class:"ytAccordionViewModelHeader"},_.V("div",{class:"ytAccordionViewModelTitleSection"},_.V("div",{class:"ytAccordionViewModelTitleWrapper"},_.V(_.J,{cond:function(){return!!R.data().headerIcon},
then:function(){return _.V(_.H1,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var m;return(m=R.data().headerIcon)==null?void 0:m.iconType}})}}),_.V("div",{class:"ytAccordionViewModelTitle",
"on:click":y},_.V(_.NU,{className:"ytAccordionViewModelTitleText",text:function(){return A().title}})))),_.V("div",{class:"ytAccordionViewModelButtonSection"},_.V(_.J,{cond:P,
then:function(){return _.V(_.SV,{data:N,iconName:function(){return M()?"chevron_down":"chevron_collapse"}})}})))}}),_.V("div",{class:"ytAccordionViewModelContent"},_.V(_.ni,{data:function(){return A().contents}},{accordionItemViewModel:function(m){return _.V(C$A,{data:m.data,
className:"ytAccordionViewModelRow",accordionStyle:Y,hideIfNotExpanded:M,onCollapse:function(){return P()?(c(!0),!1):!0}})}})),_.V("div",null,_.V(_.J,{cond:function(){return!P()&&(!!A().disclaimerFooter||!!A().footer)},
then:function(){return _.V("div",{class:"ytAccordionViewModelFooter"},_.V(_.NU,{text:function(){return A().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.V(_.ni,{data:function(){return R.data().footer}},{flexibleActionsViewModel:function(m){return _.V(_.dy,{data:m.data,
layout:0})}}))}})))},"od");_.Ow(_.hDz,"yt-accordion-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=null,Y=null,P,E=(P=_.is().resolve(_.z3(_.dU)))==null?void 0:P(),z=_.x(_.yy(!1,void 0,"h3atzd"));P=z.next().value;var c=z.next().value;z=_.x(_.yy(!0,void 0,"UTh8db"));var M=z.next().value,N=z.next().value,y=_.LK("textarea",function(b){_.rc(264503,b,A,function(p){A=p})}),m=function(b){c(!0);
b={learningJourneyFormData:{query:b}};_.Zc(R.data().searchEndpoint||{},{form:{formData:b}});return!1},T=_.Qi(function(b){b.target.closest("button-view-model")&&c(!0)});
z=_.Qi(function(){N(y.value.value.length===0)});
var Q=_.Qi(function(b){if(b.key==="Enter"&&!b.shiftKey&&!M()){var p=b.target;b.preventDefault();m(p.value)}}),g={},r={},I={};
return _.V("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.V("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.V(_.P1,{data:function(){return R.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.V("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.V("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.V("div",{class:_.To("ytLearningJourneyZeroStateSearchBar",(g.ytLearningJourneyZeroStateSearchBarDark=E,g))},_.V("textarea",{class:_.To("ytLearningJourneyZeroStateTextInput",(r.ytLearningJourneyZeroStateTextInputDark=E,r)),el:y,"on:keyup":z,"on:keydown":Q,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.V("div",{class:_.To("ytLearningJourneyZeroStateSearchButtonContainer",(I.ytLearningJourneyZeroStateSearchButtonContainerDark=E,I))},_.V(_.Is,{data:function(){return _.n(R.data().searchButton,_.E7)},
className:"search-button",onClick:function(){return m(y.value.value)},
buttonOverrides:function(){return{disabled:M(),style:E?"mono-inverse":"mono",size:"XL"}}}))),_.V(_.J,{cond:function(){return!!R.data().errorBanner},
then:function(){return _.V("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.zo(function(b){_.rc(264617,b,Y,function(p){Y=p})})},_.V(_.ni,{data:function(){return R.data().errorBanner}},{alertBannerViewModel:function(b){return _.V(_.svZ,{data:b.data,
"client-ve-type":264617})}}))}})),_.V(_.J,{cond:P,
then:function(){return _.V("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.V(_.ni,{data:function(){return R.data().loader}},{learningJourneyLoaderViewModel:function(b){return _.V(_.jvq,{data:b.data})}}))},
else:function(){return _.V("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.V(_.J,{cond:function(){return!!R.data().learningJourneyShelf},
then:function(){return _.V("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.V("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return R.data().learningJourneySectionTitle}),_.V(_.ni,{data:function(){return R.data().learningJourneyShelf}},{horizontalShelfViewModel:function(b){return _.V(_.ES,{data:b.data,
centerAlignItems:!0})}}))}}),_.V("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.V("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return R.data().suggestedJourneySectionTitle}),_.V("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":T},_.V(_.ni,{data:function(){return R.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(b){return _.V(_.dy,{data:b.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"pd"),"yt-learning-journey-zero-state",{props:{data:_.VY}});var oKG=_.E5(function(R){var A=R.data;return _.V("ytvl-live-leaderboard-item-action-content-view-model",{class:_.To("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.V(_.NU,{text:function(){var Y;return(Y=A())==null?void 0:Y.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.V(_.ni,{data:function(){return A().actionButton}},{buttonViewModel:function(Y){return _.V(_.Is,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:Y.data})}}))},"qd");var kdH=_.E5(function(R){var A=R.data;return _.V("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.To("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.V(_.NU,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var Y;return(Y=A())==null?void 0:Y.displayName},
ellipsisTruncate:!0}),_.V(_.ni,{data:function(){return A().badge}},{buttonViewModel:function(Y){return _.V(_.Is,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:Y.data})}}))},"rd");_.Ow(_.E5(function(R){var A=R.data;return _.V("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.V("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.V(_.NU,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var Y;return(Y=A())==null?void 0:Y.rank}})),_.V("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW})),_.V("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.V(_.ni,{data:function(){return A().content}},{liveLeaderboardItemChannelContentViewModel:kdH,
liveLeaderboardItemActionContentViewModel:oKG})),_.V(_.NU,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var Y;return(Y=A())==null?void 0:Y.points}}))},"sd"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;return _.V("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.V(_.NU,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var Y,P;return(Y=A())==null?void 0:(P=Y.ranking)==null?void 0:P.rank}}),_.V("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW})),_.V(_.NU,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var Y,P;return(Y=A())==null?void 0:(P=Y.channelContent)==null?void 0:P.channelName}}),_.V(_.NU,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var Y;return(Y=A())==null?void 0:Y.points}}))},"td"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.VY}});var GdS=_.E5(function(R){R=_.Pc(R,{wrapper:!1}).wrapper;return _.V(_.J,{cond:R,then:function(){return _.V("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.V("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.V("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"ud");
GdS.idomCompat=!0;var Z48=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],teS=_.E5(function(R){var A=R.data;var Y=_.zo(),P=_.gE(function(){return A().command},void 0,"o6t5Yb");
_.jq(function(){P()&&_.oZ(P(),{form:{element:Y.value}})},"qIHWLc");
return _.V("div",{el:Y,class:"YtQrCodeRendererHostContainer"},_.V(_.J,{cond:function(){return A().qrCodeImage},
then:function(E){return _.V(_.P1,{data:E,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.V(_.J,{cond:function(){return A().spinner},
then:function(){return _.V(GdS,null)}})}}),_.V(_.J,{cond:function(){return A().label},
then:function(E){return _.V(_.NU,{text:E,className:"YtQrCodeRendererHostLabel"})}}),_.V(_.J,{cond:function(){return A().labels},
then:function(E){return _.V("div",{class:"YtQrCodeRendererHostLabels"},_.V(_.Ue,{each:E},function(z){return _.V(_.NU,{text:z})}))}}))},"wd");_.Ow(_.E5(function(R){var A=R.data;var Y=_.gE(function(){return A().qrEntityKey},void 0,"joYCxd"),P=_.gE(function(){return A().deleteEntityOnDismiss},void 0,"x3yAde"),E=_.gE(function(){return A().command},void 0,"dJe1Re"),z=_.vT(tT6,Y);
R=_.gE(function(){return A().qrCodeImage},void 0,"qM5dZe");
var c=_.gE(function(){return A().style&&Z48.includes(A().style)},void 0,"CaNEkf"),M=_.zR({visibilityCallback:function(N){N&&E()&&_.oZ(E())},
showOption:{calledOnce:!0,state:"visible"}});_.jO(function(){_.bm(function(){P()&&Y()&&_.RZ().dispatch(_.HT("qrCodeEntity",Y()))})});
return _.V("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.zo(M)},_.V(_.J,{cond:c,then:function(){return _.V(_.J,{cond:z,then:function(N){return _.V(teS,{data:N})}})}}),_.V(_.J,{cond:R,
then:function(N){return _.V(_.P1,{data:N,alt:""})}}))},"vd"),"yt-qr-code-renderer",{props:{data:_.VY}});var uuN=_.E5(function(R){var A=function(){return _.Zs(1728053247&(R.barColor!==void 0?Tt(R.barColor()):4278190080))};
return _.V("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.V(wgq,{animationDelay:0,percentWidth:100,barColor:function(){return A()}}),_.V("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.V("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+A()}})),_.V(wgq,{animationDelay:0,
percentWidth:100,barColor:function(){return A()}}),_.V(wgq,{animationDelay:600,
percentWidth:60,barColor:function(){return A()}}))},"xd"),wgq=_.E5(function(R){return _.V("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+R.percentWidth()+"%"}},_.V("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var A=R.animationDelay(),Y=R.barColor();return"animation-delay:"+A+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+Y+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"yd");var eDN;_.qsH=_.E5(function(R){function A(b){c(b)}
var Y=R.data;var P=_.LK("yt-video-overview-view-model"),E=_.d5("div");R=_.x(_.yy(-1,void 0,"qaDSu"));var z=R.next().value,c=R.next().value;R=_.x(_.yy(0,void 0,"Vz681c"));var M=R.next().value,N=R.next().value,y={},m=_.vT(Vrl,function(){return Y().asyncDataEntityKey}),T=function(){var b;
if((b=m())==null?0:b.videoOverviewViewModel){var p;return _.n((p=m())==null?void 0:p.videoOverviewViewModel,mJN)}return Y()};
_.jO(function(){N(Math.min((P.value.clientWidth-24)/4-8,72))});
var Q=function(b){c(b);(E==null?0:E.value)&&E.value.children[b]&&E.value.children[b].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
Wdk(P,function(){var b;if((b=T())==null||!b.inlinePlaybackEndpoint)return null;var p;b=y==null?void 0:(p=y.thumbnailElRef)==null?void 0:p.value;if(!b)return null;var h;p=(h=T())==null?void 0:h.inlinePlaybackEndpoint;h=_.n(p,Cd7);return{multipleVideoPreviewData:{data:(h==null?0:h.playerDescriptors)&&(h==null?0:h.playerDescriptors.length)?h.playerDescriptors:[],thumbnailElement:b,trackingParams:"test",callbacks:{onPlaybackStarted:Q},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var g=function(){var b;return((b=T())==null?void 0:b.headerSubtext)!==void 0?!0:!1},r=function(){var b,p=Tt((b=T())==null?void 0:b.titleColor);
return p?"color: "+_.Zs(p)+";":void 0},I=function(){var b,p=Tt((b=T())==null?void 0:b.subtextColor);
return p?"color: "+_.Zs(p)+";":void 0};
return _.V("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:P,style:function(){var b,p=Tt((b=T())==null?void 0:b.backgroundColor);return p?"background-color: "+_.Zs(p)+";":void 0}},_.V(_.J,{cond:function(){var b;
return(b=T())==null?void 0:b.isLoading},
then:function(){return _.V(uuN,{barColor:function(){var b;return(b=T())==null?void 0:b.titleColor}})},
else:function(){return _.V(_.lI,null,_.V("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.V("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return r()}},_.V(_.NU,{text:function(){var b;
return(b=T())==null?void 0:b.headerText}})),_.V(_.J,{cond:g,
then:function(){return _.V("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.V("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return I()}},_.V(_.H1,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.V("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return I()}},_.V(_.NU,{text:function(){var b;
return(b=T())==null?void 0:b.headerSubtext}})))}})),_.V("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.V(_.ni,{data:function(){var b;
return(b=T())==null?void 0:b.thumbnail}},{thumbnailViewModel:function(b){return _.V(_.QO,{data:b.data,
aspectRatio:0,playbackRef:I63(y)})}})),_.V(_.J,{cond:function(){var b,p,h,L;
return((b=T())==null?void 0:(p=b.listItems)==null?void 0:p.length)!==void 0&&((h=T())==null?void 0:(L=h.listItems)==null?void 0:L.length)>0?!0:!1},
then:function(){return _.V("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:E},_.V(_.Ue,{each:function(){var b;return(b=T())==null?void 0:b.listItems}},function(b,p){return _.V(eDN,{image:b.image,
index:p,isSelected:function(){return p()===z()},
onClick:A,itemWidth:M})}))}}),_.V("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.V("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return r()}},_.V(_.NU,{text:function(){var b,p,h,L,Z,w,t;
return(t=(b=T())==null?void 0:(p=b.listItems)==null?void 0:(h=p[z()])==null?void 0:h.headline)!=null?t:(L=T())==null?void 0:(Z=L.listItems)==null?void 0:(w=Z[0])==null?void 0:w.headline}})),_.V("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return I()}},_.V(_.NU,{text:function(){var b,p,h,L,Z,w,t;
return(t=(b=T())==null?void 0:(p=b.listItems)==null?void 0:(h=p[z()])==null?void 0:h.subtext)!=null?t:(L=T())==null?void 0:(Z=L.listItems)==null?void 0:(w=Z[0])==null?void 0:w.subtext}}))))}}))},"zd");
eDN=_.E5(function(R){var A=R.image;var Y=R.itemWidth;var P=R.index;var E=R.isSelected;var z=R.onClick;R=_.Qi(function(){P!==void 0&&z!==void 0&&z(P());return!1});
var c={};return _.V("div",{class:_.To("ytGenAiVideoOverviewViewModelCarouselItem",(c.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return E==null?void 0:E()},c)),
style:function(){return"width: "+Y()+"px;"},
"on:click":R},_.V(_.P1,{data:A,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.V(_.J,{cond:function(){return E==null?void 0:E()},
then:function(){return _.V("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.V("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ad");
_.qsH.idomCompat=!0;_.Ow(_.qsH,"yt-video-overview-view-model",{props:{data:_.VY}});_.L_G=_.E5(function(R){var A=R.data;var Y=R.topbarOffset;var P,E=((P=_.is().resolve(_.z3(_.dU)))==null?void 0:P())||!1;return _.V("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var z=A();var c,M,N=E?(c=z.config)==null?void 0:c.darkThemeBackgroundColor:(M=z.config)==null?void 0:M.lightThemeBackgroundColor;z=N?_.G9(N):void 0;z="background-color: "+z+";";Y!==void 0&&(z+="top: -"+Y()+"px;");return z},
"aria-hidden":!0},_.V(_.J,{cond:function(){var z,c,M;return!!((z=A().backgroundImageConfig)==null?0:(c=z.image)==null?0:(M=c.sources)==null?0:M.length)},
then:function(){return _.V(_.P1,{data:function(){var z;return(z=A().backgroundImageConfig)==null?void 0:z.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.V("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+JxS(E,A().gradientColorConfig)+";"}}))},"Bd");
_.L_G.idomCompat=!0;var zv=_.E5(function(R){var A=R.className;var Y=R.data;var P=R.isOverlay;var E=R.maxLinesOverride;var z=R.useMediumText;var c=function(){return Y().alwaysShowTruncationText},M=function(){return Y().truncationText},N=function(){return z!==void 0&&z()?"medium":"small"},y=function(){return P!==void 0&&P()?"overlay":"default"},m=function(){var r,I;
return(I=(r=_.n(Y().rendererContext,_.Kd))==null?void 0:r.label)!=null?I:""};
R=_.x(_.yy(!1,void 0,"OKr1o"));var T=R.next().value,Q=R.next().value;R=_.Qi(function(){Y().expandOnTap&&Q(!T());return!1});
var g={};return _.V("yt-description-preview-view-model",{el:_.zo(_.fi(function(){return Y().rendererContext})),
class:_.To("ytDescriptionPreviewViewModelHost",A,(g.ytDescriptionPreviewViewModelClickable=function(){var r;return!((r=_.n(Y().rendererContext,x$3))==null||!r.onTap)},g.ytDescriptionPreviewViewModelIsOverlay=P,g)),
"on:click":R},_.V(_.J,{cond:function(){return Y().description},
then:function(r){return _.V(_.J,{cond:T,then:function(){var I={};return _.V("div",{class:_.To("ytDescriptionPreviewViewModelDescription",(I.ytDescriptionPreviewViewModelDescriptionMediumText=z,I))},_.V(_.NU,{text:r}))},
else:function(){return _.V(x3N,{text:r,alwaysShowTruncationText:c,truncationText:M,maxLines:function(){var I;return(I=E==null?void 0:E())!=null?I:Y().maxLines},
textStyle:y,accessibilityLabel:m,textSize:N})}})}}))},"Cd");
zv.idomCompat=!0;var dDN=_.E5(function(R){var A=R.data;var Y=R.isOverlay;return _.V("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.V("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.V(_.ni,{data:function(){return A().header}},{sectionHeaderViewModel:function(P){return _.V(_.Kv,{data:P.data,
isOverlay:Y})}})),_.V("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.V(_.ni,{data:function(){return A().channelInfoButtons}},{flexibleActionsViewModel:_.dy})),_.V("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.V(_.ni,{data:function(){return A().description}},{descriptionPreviewViewModel:function(P){return _.V(zv,{data:P.data,
isOverlay:Y})}})))},"Dd");
dDN.idomCompat=!0;var RTb=_.E5(function(R){var A=R.data;var Y={};return _.V("factoid-view-model",{class:_.To("ytwFactoidViewModelHost",(Y.ytwFactoidViewModelHostOverlay=R.isOverlay,Y))},_.V(_.NU,{text:function(){return A().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.V(_.NU,{text:function(){return A().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ed");
RTb.idomCompat=!0;var ALA=_.E5(function(R){var A=R.data;var Y=R.isOverlay;return _.V("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.V(_.ni,{data:function(){return A().factoids}},{factoidViewModel:function(P){return _.V(RTb,{data:P.data,
isOverlay:Y})}}))},"Fd");
ALA.idomCompat=!0;_.YBG=_.E5(function(R){var A=R.data;var Y=R.isOverlay;return _.V("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.V(_.ni,{data:function(){return A().items}},{channelInfoViewModel:function(P){return _.V("div",{class:"ytwCourseMetadataViewModelHostItem"},_.V(dDN,{data:P.data,
isOverlay:Y}))},
coursePerksViewModel:function(P){return _.V("div",{class:"ytwCourseMetadataViewModelHostItem"},_.V(SsS,{data:P.data,isOverlay:Y}))},
descriptionPreviewViewModel:function(P){return _.V("div",{class:"ytwCourseMetadataViewModelHostItem"},_.V(zv,{data:P.data,isOverlay:Y}))},
factoidsRowViewModel:function(P){return _.V("div",{class:"ytwCourseMetadataViewModelHostItem"},_.V(ALA,{data:P.data,isOverlay:Y}))},
progressViewModel:function(P){return _.V("div",{class:"ytwCourseMetadataViewModelHostItem"},_.V(ItG,{data:P.data,isOverlay:Y}))}}))},"Gd");var PH7=_.E5(function(R){return _.V("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.V(_.ni,{data:function(){return R.data().content}},{courseMetadataViewModel:function(A){return _.V(_.YBG,{data:A.data,
isOverlay:R.isOverlay})},
progressViewModel:function(A){return _.V(ItG,{data:A.data})}}))},"Hd");var E6E=_.E5(function(R){var A=R.data;R=R.className;var Y=function(){var E;return _.bc((E=A())==null?void 0:E.rendererContext)},P={};
P=(P.dynamicTextViewModelHost=!0,P.dynamicTextViewModelHostTappable=function(){return Y()},P);
return _.V("yt-dynamic-text-view-model",{el:_.zo(_.fi(function(){var E;return(E=A())==null?void 0:E.rendererContext})),
role:function(){return Y()?"link":void 0},
tabindex:function(){return Y()?0:void 0},
class:_.To(R,P)},_.V("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var E,z,c;return(c=(z=_.n((E=A())==null?void 0:E.rendererContext,_.Kd))==null?void 0:z.label)!=null?c:""}},_.V(_.NU,{text:function(){return A().text},
userInput:!0})))},"Id");
E6E.idomCompat=!0;_.iN=_.E5(function(R){var A=R.data;var Y=R.isPositionRelative;var P=_.mxk("(max-width: 527.9px)"),E=function(){var z,c;return(c=(z=A())==null?void 0:z.style)!=null?c:"IMAGE_BANNER_STYLE_FULL_BLEED"};
R={};return _.V("yt-image-banner-view-model",{el:_.zo(_.fi(function(){var z;return(z=A())==null?void 0:z.rendererContext})),
class:_.To((R.ytImageBannerViewModelHost=!0,R.ytImageBannerViewModelInset=function(){return Thk(E())},R.ytImageBannerViewModelPositionAbsolute=function(){return _.pX(!0)&&!(Y==null?0:Y())},R.ytImageBannerViewModelSmallInset=function(){return Thk(E())&&P()},R.ytImageBannerViewModelTappable=function(){var z;
return _.bc((z=A())==null?void 0:z.rendererContext)},R))},_.V(_.J,{cond:function(){var z;
return(z=A())==null?void 0:z.image},
then:function(){return _.V(_.P1,{data:function(){return A().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.V(_.ni,{data:function(){var z;
return(z=A())==null?void 0:z.overlays}},{thumbnailHoverOverlayViewModel:en}))},"Jd");
_.iN.idomCompat=!0;var zT7;zT7=_.E5(function(R){var A=R.condition;var Y=R.content;return _.V(_.J,{cond:A,then:function(){return _.V("div",{class:"page-header-view-model-wiz__scroll-container"},Y())},
else:function(){return Y()}})},"Kd");
_.it8=_.E5(function(R){var A=R.data;var Y=R.noPadding;var P=R.enableBanner;var E=R.cinematicContainerTopbarOffset;var z=R.allowCinematicContainerOverflow;var c=R.displayAsSidebar;var M=R.displayAsPanel;var N=R.alwaysUseMediumTextDescription;var y=QVV(),m=function(){return!!A().image||!!A().animatedImage},T=function(){return!!A().background},Q=function(){return(c==null?0:c())||(M==null?0:M())?1:y()},g=function(){return Q()===1},r=function(){return g()||Q()===2},I=function(){return Q()===4},b=function(){var nu=
A();
var hk=!!A().heroImage;var FV=Q(),i8=vVq(A()),fD=c==null?void 0:c(),NG=!nu.metadata,d8;if(d8=hk?_.n(nu.heroImage,xU7):_.n(nu.animatedImage||nu.image,xU7)){nu=d8.style;var mS=d8.layoutMode;if(mS!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(d8=iBl(zFk(d8)),hk)hk=yxV(FV,nu,mS,d8,fD);else b:if(NG)hk=FV===1?{size:48}:{size:72};else switch(FV){case 1:hk={size:72};break b;case 2:hk={size:120};break b;default:hk=i8<4?{size:120}:{size:160}}else hk=void 0}else hk={size:0};return hk};
R={};R=_.To((R["page-header-view-model-wiz"]=!0,R["page-header-view-model-wiz--no-padding"]=function(){return!(Y==null||!Y())},R["page-header-view-model-wiz--small-top-padding"]=function(){return g()&&!A().actions&&!(M==null?0:M())||Q()===2&&!(m()||A().heroImage)},R["page-header-view-model-wiz--small-bottom-padding"]=function(){return r()&&!A().actions&&!(M==null?0:M())},R["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(z==null?0:z())},R["page-header-view-model-wiz--display-as-sidebar"]=
c,R));
var p={},h=_.To((p["page-header-view-model-wiz__page-header-headline"]=!0,p["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var nu;return(nu=b())==null?void 0:nu.allowFullWidth},p)),L=function(){var nu;
return r()&&!((nu=b())==null?0:nu.allowFullWidth)},Z=function(){return g()&&(!!A().heroImage||m())&&vVq(A())>0},w=function(){return Z()&&(M==null?void 0:M())};
p={};var t=_.To((p["page-header-view-model-wiz__page-header-title"]=!0,p["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!Z()},p["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return Z()&&!w()},p["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=w,p["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=T,p));
p={};var d=_.To((p["page-header-view-model-wiz__page-header-headline-image"]=!0,p["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!A().heroImage&&r()},p));
p={};var Jk=_.To((p["page-header-view-model-wiz__page-header-banner-container"]=P,p["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var nu;return(P==null?void 0:P())&&((nu=_.n(A().banner,_.OHA))==null?void 0:nu.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},p));
p={};var Nb=_.To((p["page-header-view-model-wiz__page-header-content-metadata"]=!0,p["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=T,p));p={};var Qk=_.To((p["page-header-view-model-wiz__page-header-flexible-actions"]=!0,p["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!A().metadata||r()},p["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!r()},p));
p={};var H3=_.To((p["page-header-view-model-wiz__page-header-attribution"]=!0,p["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=T,p));return _.V("yt-page-header-view-model",{class:R},_.V(_.J,{cond:T,then:function(){return _.V("div",{class:"page-header-view-model-wiz__page-header-background"},_.V(_.ni,{data:function(){return A().background}},{cinematicContainerViewModel:function(nu){return _.V(_.L_G,{data:nu.data,
topbarOffset:E})}}))}}),_.V(zT7,{condition:function(){return!(c==null||!c())},
content:function(){return _.V("div",{class:"page-header-view-model-wiz__page-header-content"},_.V(_.J,{cond:function(){return(P==null?void 0:P())&&A().banner},
then:function(){return _.V("div",{class:Jk},_.V(_.ni,{data:function(){return A().banner}},{imageBannerViewModel:_.iN}))}}),_.V("div",{class:h},_.V(_.J,{cond:m,
then:function(){return _.V(_.ni,{data:function(){var nu;if(!(nu=A().animatedImage)){nu=A();if(m()){var hk=nu=Object.assign({},nu),FV=Q(),i8=vVq(A()),fD=hk.image,NG=_.n(fD,cQb),d8=NG==null?void 0:NG.avatar,mS=_.n(d8,_.pi);if(fD&&d8&&mS){switch(FV){case 1:mS.avatarImageSize="AVATAR_SIZE_XL";break;case 2:mS.avatarImageSize="AVATAR_SIZE_XXL";break;default:i8<4?mS.avatarImageSize="AVATAR_SIZE_XXL":mS.avatarImageSize="AVATAR_SIZE_XXXL"}_.pC(d8,_.pi,Object.assign({},mS));NG.avatar=Object.assign({},d8);_.pC(fD,
cQb,Object.assign({},NG));hk.image=Object.assign({},fD)}}nu=nu.image}return nu}},{contentPreviewImageViewModel:function(nu){return _.V(_.rw,{data:nu.data,
className:d,imageSizeConfig:b})},
decoratedAvatarViewModel:function(nu){return _.V(_.LP,{data:nu.data,className:d})}})}}),_.V(_.J,{cond:function(){return!!A().heroImage&&!L()},
then:function(){return _.V(_.ni,{data:function(){return A().heroImage}},{contentPreviewImageViewModel:function(nu){return _.V(_.rw,{data:nu.data,
className:d,imageSizeConfig:b})}})}}),_.V("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.V(_.J,{cond:function(){return!!A().heroImage&&L()},
then:function(){return _.V("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.V(_.ni,{data:function(){return A().heroImage}},{contentPreviewImageViewModel:function(nu){return _.V(_.rw,{data:nu.data,
className:d,imageSizeConfig:b})}}))}}),_.V(_.ni,{data:function(){return A().title}},{dynamicTextViewModel:function(nu){return _.V(E6E,{data:nu.data,
className:t})}}),_.V(_.ni,{data:function(){return A().metadata}},{contentMetadataViewModel:function(nu){return _.V(_.Dq,{data:nu.data,
layout:function(){return g()?1:0},
className:Nb,isOverlay:T,useMediumText:I})}}),_.V(_.J,{cond:function(){return A().description&&!g()},
then:function(){return _.V(_.ni,{data:function(){return A().description}},{descriptionPreviewViewModel:function(nu){return _.V(zv,{data:nu.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:T,maxLinesOverride:function(){return g()?void 0:1},
useMediumText:function(){return(N==null?void 0:N())||I()}})}})}}),_.V(_.J,{cond:function(){return A().attribution&&!r()},
then:function(){return _.V(_.ni,{data:function(){return A().attribution}},{attributionViewModel:function(nu){return _.V(ZB7,{data:nu.data,
className:H3,useMediumText:I})}})}}),_.V(_.J,{cond:function(){return A().actions&&!r()},
then:function(){return _.V(_.ni,{data:function(){return A().actions}},{flexibleActionsViewModel:function(nu){return _.V(_.dy,{data:nu.data,
layout:function(){return gVV(Q())},
className:Qk})}})}}))),_.V("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.V(_.J,{cond:function(){return A().description&&g()},
then:function(){return _.V(_.ni,{data:function(){return A().description}},{descriptionPreviewViewModel:function(nu){return _.V(zv,{data:nu.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:T,maxLinesOverride:function(){return g()?void 0:1},
useMediumText:function(){return(N==null?void 0:N())||I()}})}})}}),_.V(_.J,{cond:function(){return A().attribution&&r()},
then:function(){return _.V(_.ni,{data:function(){return A().attribution}},{attributionViewModel:function(nu){return _.V(ZB7,{data:nu.data,
className:H3,useMediumText:I})}})}}),_.V(_.J,{cond:function(){return A().actions&&r()},
then:function(){return _.V(_.ni,{data:function(){return A().actions}},{flexibleActionsViewModel:function(nu){return _.V(_.dy,{data:nu.data,
layout:function(){return gVV(Q())},
className:Qk})}})}})),_.V("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.V(_.ni,{data:function(){return A().bottomMetadataFlexibleContainer}},{flexibleContainer:function(nu){return _.V(PH7,{data:nu.data,
isOverlay:T})}})))}}))},"Ld");
_.it8.idomCompat=!0;_.Ow(_.E5(function(R){var A=_.x(_.yy(!1,void 0,"vvzTj")),Y=A.next().value,P=A.next().value;return _.V("yt-official-card-view-model",{class:_.To("ytOfficialCardViewModelHost",R.className),style:_.nY({"background-color":function(){var E,z=Tt((E=R.data())==null?void 0:E.backgroundColor);return z?_.Zs(z):void 0}})},_.V(_.ni,{data:function(){return R.data().header}},{pageHeaderViewModel:function(E){return _.V(_.it8,{data:E.data,
noPadding:!0})}}),_.V(_.ni,{data:function(){return R.data().contents}},{horizontalShelfViewModel:function(E){return _.V(_.ES,{data:E.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.V(_.J,{cond:Y,
then:function(){return _.V("div",{class:"ytOfficialCardViewModelExpandedContent"},_.V(_.ni,{data:function(){return R.data().expandedContents}},{horizontalShelfViewModel:function(E){return _.V(_.ES,{data:E.data,
sizing:"MINI"})}}),_.V("div",{class:"ytOfficialCardViewModelCollapseButton"},_.V(_.ni,{data:function(){return R.data().collapseButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
onClick:function(){P(!Y())}})}})))},
else:function(){return _.V("div",{class:"ytOfficialCardViewModelExpandButton"},_.V(_.ni,{data:function(){return R.data().expandButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
onClick:function(){P(!Y())}})}}))}}))},"Md"),"yt-official-card-view-model",{props:{data:_.VY,
className:_.VY}});var lfZ=_.E5(function(R){var A,Y=(A=_.is().resolve(_.z3(_.dU)))==null?void 0:A();return _.V("ytw-search-friction-view-model",{class:_.To("ytwSearchFrictionViewModelHost",R.className)},_.V("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.V("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.V(_.J,{cond:function(){return Y&&R.data().darkThemeImage?R.data().darkThemeImage:R.data().image},
then:function(P){return _.V(_.P1,{data:P,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.V(_.ni,{data:function(){return R.data().overflowMenuButton}},{buttonViewModel:function(P){return _.V(_.Is,{data:P.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.V(_.NU,{text:function(){return R.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.V(_.Ue,{each:function(){return R.data().bodyText||[]}},function(P){return _.V(_.NU,{text:P,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.V(_.ni,{data:function(){return R.data().actions}},{buttonViewModel:function(P){return _.V(_.Is,{data:P.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.V(_.NU,{text:function(){return R.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.V(_.NU,{text:function(){return R.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"Nd");
lfZ.idomCompat=!0;_.Ow(lfZ,"ytw-search-friction-view-model",{props:{data:_.VY,className:_.VY}});_.lN=_.E5(function(R){var A=_.LK("markdown-div"),Y,P=(Y=_.is().resolve(_.z3(_.dU)))==null?void 0:Y();_.jq(function(){var E=A.value;var z=new WSA,c=new Map(z.JSC$9294_sanitizerTable.globalAttributePolicies);c.set("style",{policyAction:4});z.JSC$9294_sanitizerTable=new Xw(z.JSC$9294_sanitizerTable.allowedElements,z.JSC$9294_sanitizerTable.elementPolicies,z.JSC$9294_sanitizerTable.allowedGlobalAttributes,c,z.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes);var M=["data-time"];if(M===void 0)c=
new Set(z.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes),c.add("data-"),z.JSC$9294_sanitizerTable=new Xw(z.JSC$9294_sanitizerTable.allowedElements,z.JSC$9294_sanitizerTable.elementPolicies,z.JSC$9294_sanitizerTable.allowedGlobalAttributes,z.JSC$9294_sanitizerTable.globalAttributePolicies,c);else{c=new Set(z.JSC$9294_sanitizerTable.allowedGlobalAttributes);M=_.x(M);for(var N=M.next();!N.done;N=M.next()){N=N.value;if(N.indexOf("data-")!==0)throw Error("ma`"+N);c.add(N)}z.JSC$9294_sanitizerTable=
new Xw(z.JSC$9294_sanitizerTable.allowedElements,z.JSC$9294_sanitizerTable.elementPolicies,c,z.JSC$9294_sanitizerTable.globalAttributePolicies,z.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes)}c=new Set(z.JSC$9294_sanitizerTable.allowedGlobalAttributes);c.add("class");z.JSC$9294_sanitizerTable=new Xw(z.JSC$9294_sanitizerTable.allowedElements,z.JSC$9294_sanitizerTable.elementPolicies,c,z.JSC$9294_sanitizerTable.globalAttributePolicies,z.JSC$9294_sanitizerTable.globallyAllowedAttributePrefixes);
_.zO(E,_.$Gz(z.build(),Hzk(R.text())));rxq(A.value)},"OZ439c");
Y={};return _.V("div",null,_.V("markdown-div",{class:_.To("ytwMarkdownDivHost",(Y.ytwMarkdownDivDark=P,Y.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var E;return((E=R.isSmallText)==null?void 0:E.call(R))||!1},Y.ytwMarkdownDivHostWrapCodeBlocks=function(){var E;
return((E=R.wrapCodeBlocks)==null?void 0:E.call(R))||!1},Y.ytwMarkdownDivHostEnableDefaultStyling=function(){var E;
return!((E=R.disableDefaultStyling)==null?0:E.call(R))},Y)),
el:A}))},"Od");
_.lN.idomCompat=!0;var xyA=_.E5(function(R){var A=R.imageData;var Y=_.Y9(R.isInList,!1),P=function(){return Y()?{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 _.V("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.V(_.J,{cond:function(){return A().image},
then:function(E){return _.V(_.P1,{data:E,alt:function(){return P().alt},
contentMode:function(){return P().contentMode},
targetWidth:function(){return P().targetWidth},
targetHeight:function(){return P().targetHeight},
className:function(){return P().className}})}}),_.V("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.V("div",{class:_.To("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.V(_.NU,{text:function(){return A().title}})),_.V(_.Ue,{each:function(){var E;
return(E=A().description)!=null?E:[]}},function(E){return _.V("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.V(xr,{content:E}))})))},"Pd"),cLG=_.E5(function(R){var A=R.list;
var Y=function(){var P;return(P=A().items)!=null?P:[]};
return _.V("div",{class:"ytwGenAiRichTextViewModelListContent"},_.V(_.J,{cond:function(){return A().title},
then:function(P){return _.V("div",{class:_.To("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.V(_.NU,{text:P}))}}),_.V(_.J,{cond:function(){return A().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.V("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.V(_.Ue,{each:Y},function(P){return _.V("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.V(xr,{content:P,isInList:!0}))}))}}),_.V(_.J,{cond:function(){return A().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.V("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.V(_.Ue,{each:Y},function(P){return _.V("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.V(xr,{content:P,isInList:!0}))}))}}),_.V(_.J,{cond:function(){return A().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.V("div",{class:"ytwGenAiRichTextViewModelImageList"},_.V(_.Ue,{each:Y},function(P){return _.V("div",{class:"ytwGenAiRichTextViewModelListItem"},_.V(xr,{content:P,isInList:!0}))}))}}))},"Qd"),OtG=_.E5(function(R){var A=R.table;
return _.V("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.V("thead",null,_.V("tr",null,_.V(_.Ue,{each:function(){var Y,P;return(P=(Y=A().header)==null?void 0:Y.cells)!=null?P:[]}},function(Y){return _.V("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.V(_.Ue,{each:function(){return Y.contents}},function(P){return _.V(xr,{content:P})}))}))),_.V("tbody",null,_.V(_.Ue,{each:function(){var Y;
return(Y=A().rows)!=null?Y:[]}},function(Y){return _.V("tr",null,_.V(_.Ue,{each:function(){return Y.cells}},function(P){return _.V("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.V(_.Ue,{each:function(){return P.contents}},function(E){return _.V(xr,{content:E})}))}))})))},"Rd"),xr=_.E5(function(R){var A=R.content;
var Y=_.Y9(R.isInList,!1),P=function(){var E,z;return(z=(E=A().contentBlock)==null?void 0:E.contents)!=null?z:[]};
return _.V("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.V(_.J,{cond:function(){return A().text},
then:function(E){return _.V(_.NU,{className:"ytwGenAiRichTextViewModelText",text:E})}}),_.V(_.J,{cond:function(){return A().image},
then:function(E){return _.V(xyA,{imageData:E,isInList:Y})}}),_.V(_.J,{cond:function(){return A().list},
then:function(E){return _.V(cLG,{list:E})}}),_.V(_.J,{cond:function(){return A().contentBlock},
then:function(){return _.V("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.V(_.Ue,{each:P},function(E){return _.V(xr,{content:E,isInList:!1})}))}}),_.V(_.J,{cond:function(){return A().table},
then:function(E){return _.V(OtG,{table:E})}}))},"Sd"),M6H=_.E5(function(R){var A={};
A=_.IP("ytwGenAiRichTextViewModelHost",(A.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.OK("search_overview_link_style")),A));return _.V("gen-ai-rich-text-view-model",{class:A},_.V(xr,{content:function(){return R.data().content}}))},"Td");_.sTN=_.E5(function(R){var A=R.data;var Y=function(){var I;return((I=A().loadingUi)!=null?I:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},P=function(){return A().isLoading&&(Y()==="UNSPECIFIED"||Y()==="GHOST_CARD")},E=function(){return!A().isLoading},z=function(){return!!A().content&&!A().contents},c=function(){return!!A().contents},M=function(){return!!A().nextQueryButtons},N=function(){return A().isLoading&&Y()==="INVISIBLE"},y=function(){var I,b;
return(b=(I=A().headerIcon)==null?void 0:I.iconType)!=null?b:""},m=function(){var I;
return(I=A().content)!=null?I:""},T=function(){return!!A().sourcesSection},Q,g=!((Q=_.is().resolve(_.z3(_.dU)))==null||!Q()),r=_.gE(function(){var I=[],b=A().contents;
if(b)for(var p=0;p<b.length;p++){var h=_.n(b&&b[p],ys8);h&&I.push(h)}return I},void 0,"ycU97e");
_.jO(function(){A().isLoading||_.Fh("so_re",void 0,"search_overview_answer")});
return _.V("ytd-overview-answer-view-model",{class:function(){var I={};I=(I.ytdOverviewAnswerViewModelHost=!0,I.ytdOverviewAnswerViewModelDarkBackground=g&&!N(),I.ytdOverviewAnswerViewModelLightBackground=!g&&!N(),I);return _.IP(I)}},_.V(_.J,{cond:function(){return!N()},
then:function(){return _.V(_.lI,null,_.V("h2",null,_.V("div",{class:"ytdOverviewAnswerViewModelHeader"},_.V(_.J,{cond:y,then:function(I){return _.V("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.V(_.H1,{icon:I}))}}),_.V("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.V("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return A().headerText}),_.V("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.V(_.NU,{text:function(){return A().headerSubtext}}))))),_.V(_.J,{cond:P,
then:function(){return _.V(Dxl,null)}}),_.V(_.J,{cond:E,
then:function(){return _.V(_.lI,null,_.V(_.J,{cond:z,then:function(){return _.V("div",{class:"ytdOverviewAnswerViewModelText"},_.V(_.lN,{text:m,isSmallText:!0}))}}),_.V(_.J,{cond:c,
then:function(){return _.V("div",{class:"ytdOverviewAnswerViewModelRichText"},_.V(_.Ue,{each:r},function(I){return _.V(M6H,{data:I})}))}}),_.V(_.J,{cond:M,
then:function(){return _.V("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.V(_.ni,{data:function(){return A().nextQueryButtons}},{buttonViewModel:function(I){return _.V(_.Is,{data:I.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.ES}))}}),_.V("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.V("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.V(_.J,{cond:function(){return!!_.n(A().likeButtonViewModel,_.uo)&&!!_.n(A().dislikeButtonViewModel,_.w3)},
then:function(){return _.V("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.V(_.Ai,{data:function(){return _.n(A().likeButtonViewModel,_.uo)},
disableIconAnimation:!0}),_.V(_.R_,{data:function(){return _.n(A().dislikeButtonViewModel,_.w3)}}))}})),_.V(_.J,{cond:function(){var I;
return(I=A().sourcesSection)==null?void 0:I.headerText},
then:function(I){return _.V("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.V(_.NU,{text:I}))}})),_.V(_.J,{cond:T,
then:function(){return _.V("div",{class:"ytdOverviewAnswerViewModelSources"},_.V(_.ni,{data:function(){var I;return(I=A().sourcesSection)==null?void 0:I.sourcesShelf}},{buttonViewModel:_.Is,
horizontalShelfViewModel:function(I){return _.V(_.ES,{data:I.data,includeMargin:!0,hasPeek:!0})}}))}}),_.V(_.J,{cond:function(){return A().disclaimerText},
then:function(){return _.V("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.V(_.NU,{text:function(){return A().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"Ud");var NK8=_.E5(function(R){var A=R.data;var Y=R.active;var P=_.LK("transcript-segment-view-model");_.jq(function(){var E,z,c,M=((E=_.is().resolve(_.z3(_.dU)))==null?0:E())?(z=A())==null?void 0:z.darkThemeColorPalette:(c=A())==null?void 0:c.lightThemeColorPalette;M&&(M.additiveBackground&&P.value.style.setProperty("--timestamp-active-background-color",_.Zs(M.additiveBackground)),M.textSecondary&&P.value.style.setProperty("--timestamp-active-color",_.G9(M.textSecondary)))},"cQUAMd");
R={};return _.V("transcript-segment-view-model",{class:_.To("ytwTranscriptSegmentViewModelHost",(R.ytwTranscriptSegmentViewModelHostActive=Y,R.ytwTranscriptSegmentViewModelHostModern=_.v("enable_timeline_view_modern_transcript")||_.v("enable_timeline_view_modern_transcript_fe"),R)),el:P},_.V(_.J,{cond:function(){var E;return(E=A())==null?void 0:E.timestamp},
then:function(E){var z={};return _.V("div",{class:_.To("ytwTranscriptSegmentViewModelTimestamp",(z.ytwTranscriptSegmentViewModelTimestampActive=Y,z))},E)}}),_.V(_.NU,{text:function(){var E,z,c;
return(c=(E=A())==null?void 0:E.attributedText)!=null?c:{content:(z=A())==null?void 0:z.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"Vd");var V6f=_.E5(function(R){var A=R.data;return _.V("div",{class:"videoAttributesSectionViewModelHeader"},_.V("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.V("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return A().headerTitle}),_.V(_.J,{cond:function(){return A().headerInfoButton},
then:function(){return _.V(_.ni,{data:function(){return A().headerInfoButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.V(_.J,{cond:function(){return A().headerSubtitle},
then:function(){return _.V("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return A().headerSubtitle})}}))},"Wd"),JLA=_.E5(function(R){function A(I){return Math.max(Math.min(I,0),y()-M())}
var Y=R.data;var P;R=_.LK("div",function(I){var b=function(){m(I.clientWidth)};
b();window.ResizeObserver&&(P=new ResizeObserver(b),P.observe(I))});
var E=_.LK("div",function(I){N(I.scrollWidth)}),z=_.x(_.yy(0,void 0,"C3XQAe")),c=z.next().value;
z=z.next().value;var M=c,N=z;z=_.x(_.yy(0,void 0,"db7y3"));c=z.next().value;z=z.next().value;var y=c,m=z;c=_.x(_.yy(0,void 0,"RchC7"));var T=c.next().value,Q=c.next().value;_.bm(function(){var I;(I=P)==null||I.disconnect()});
var g=function(){Q(A(T()+y()))},r=function(){Q(A(T()-y()))};
return _.V("yt-video-attributes-section-view-model",null,_.V("div",{class:"videoAttributesSectionViewModelHost"},_.V(_.J,{cond:function(){return Y().headerTitle},
then:function(){return _.V(V6f,{data:Y})}}),_.V("div",{class:_.To("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:R},_.V("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.nY({transform:function(){var I=T();_.a1("HTML_DIR")==="rtl"&&(I*=-1);return"translateX("+I+"px)"}}),
el:E},_.V(_.ni,{data:function(){return Y().videoAttributeViewModels}},{videoAttributeViewModel:MCN}))),_.V(_.ni,{data:function(){return Y().footerButton}},{buttonViewModel:function(I){return _.V(_.Is,{data:I.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.V(_.J,{cond:function(){return T()<0&&Y().previousButton},
then:function(){return _.V("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.V(_.ni,{data:function(){return Y().previousButton}},{buttonViewModel:function(I){return _.V(_.Is,{data:I.data,
onClick:g})}}))}}),_.V(_.J,{cond:function(){return T()>y()-M()&&Y().nextButton},
then:function(){return _.V("div",{class:"videoAttributesSectionViewModelRightArrow"},_.V(_.ni,{data:function(){return Y().nextButton}},{buttonViewModel:function(I){return _.V(_.Is,{data:I.data,
onClick:r})}}))}})))},"Xd");
JLA.idomCompat=!0;var yLz=_.E5(function(R){var A=R.data;var Y=R.active;var P={},E={};return _.V("timeline-item-view-model",{class:_.To("ytwTimelineItemViewModelHost",(P.ytwTimelineItemViewModelHostChapterChild=R.chapterChild,P.ytwTimelineItemViewModelModern=_.v("enable_timeline_view_modern_transcript")||_.v("enable_timeline_view_modern_transcript_fe"),P))},_.V("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.V("div",{class:_.To("ytwTimelineItemViewModelTimestamp",(E.ytwTimelineItemViewModelTimestampActive=
Y,E))},function(){return A().timestamp})),_.V("div",{class:"ytwTimelineItemViewModelContentItems"},_.V(_.ni,{data:function(){return A().contentItems}},{transcriptSegmentViewModel:function(z){return _.V(NK8,{data:z.data,
active:Y})},
videoAttributesSectionViewModel:JLA})))},"Yd");var myq=_.E5(function(R){var A=R.data;R={};return _.V("timeline-chapter-view-model",{class:_.To("ytwTimelineChapterViewModelHost")},_.V("div",{class:_.To("ytwTimelineChapterViewModelTitle",(R.ytwTimelineChapterViewModelModern=_.v("enable_timeline_view_modern_transcript")||_.v("enable_timeline_view_modern_transcript_fe"),R))},function(){return A().title}),_.V(_.ni,{data:function(){return A().contents}},{timelineItemViewModel:function(Y){return _.V(yLz,{data:Y.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(Y){return _.V(JLA,{data:Y.data})}}))},"Zd");var TKA=_.E5(function(R){var A=R.data;var Y=_.LK("macro-markers-panel-item-view-model"),P=_.vT(_.hnP,function(){var z;return(z=A().markersEngagementPanelSyncEntityKey)!=null?z:""}),E=function(){var z;
return((z=P())==null?void 0:z.activeItemIndex)===A().index};
R=_.Qi(function(z){var c,M,N,y,m;return _.O(function(T){if(T.nextAddress==1)return z.stopPropagation(),_.WT(_.Ki(z),Y.value,["A".toString(),"BUTTON".toString()])?T.return():(c=_.h7(A().onTap))?T.yield(_.VJ(),2):T.return();M=T.yieldResult;y=(N=_.n(c,_.LO))==null?void 0:N.startTimeSeconds;y===void 0||(m=M)!=null&&m.seekTo(y,!0);_.XH(T)})});
return _.V("macro-markers-panel-item-view-model",{class:_.To("ytwMacroMarkersPanelItemViewModelHost",{"is-active":E}),el:Y,"on:click":R,tabindex:0},_.V(_.ni,{data:function(){var z;return(z=A())==null?void 0:z.item}},{timelineChapterViewModel:function(z){return _.V(myq,{data:z.data,
active:E})},
timelineItemViewModel:function(z){return _.V(yLz,{data:z.data,active:E})},
videoAttributeViewModel:MCN}))},"$d");
TKA.idomCompat=!0;_.Ow(TKA,"macro-markers-panel-item-view-model",{props:{data:_.VY}});_.Ow(JLA,"yt-video-attributes-section-view-model",{props:{data:_.VY}});var QTb=_.E5(function(R){var A=function(){var Y,P,E;return(E=(Y=R.data().leadingLogoAccessibility)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label)!=null?E:""};
return _.V("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.V(_.J,{cond:function(){return R.data().leadingLogo},
then:function(Y){return _.V(_.P1,{className:"ytwFantasySectionHeaderViewModelLogo",data:Y,alt:A})}}),_.V("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.V(_.NU,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return R.data().title}}),_.V(_.NU,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return R.data().subtitle}})),_.V(_.ni,{data:function(){return R.data().trailingButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"ae");var v6S=_.E5(function(R){var A={};A=_.To("ytwFantasyTeamViewModelHost",(A.ytwFantasyTeamViewModelCompact=function(){var E;return!((E=R.compact)==null||!E.call(R))},A.ytwFantasyTeamViewModelUser=function(){return R.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},A.ytwFantasyTeamViewModelOpponent=function(){return R.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},A));
var Y=function(){var E,z,c;return(c=(E=R.data().teamLogoAccessibility)==null?void 0:(z=E.accessibilityData)==null?void 0:z.label)!=null?c:""},P=_.vT(kUk,function(){return R.data().teamEntityKey});
return _.V("ytw-fantasy-team-view-model",{class:A},_.V(_.J,{cond:function(){return R.data().teamLogo},
then:function(E){return _.V(_.P1,{className:"ytwFantasyTeamViewModelLogo",data:E,alt:Y})}}),_.V("div",{class:"ytwFantasyTeamViewModelMetadata"},_.V("div",{class:"ytwFantasyTeamViewModelHeader"},_.V(_.NU,{className:"ytwFantasyTeamViewModelScore",
text:function(){var E;return(E=P())==null?void 0:E.score}}),_.V(_.H1,{icon:function(){var E;
return(E=P())==null?void 0:E.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.V(_.NU,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var E;return(E=P())==null?void 0:E.projectedScore}})),_.V(_.NU,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return R.data().primaryText}}),_.V(_.NU,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return R.data().secondaryText}}),_.V(_.NU,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return R.data().tertiaryText}})),_.V(_.NU,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var E;return(E=P())==null?void 0:E.score}}))},"be");_.Ow(_.E5(function(R){return _.V("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.V("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.V(_.ni,{data:function(){return R.data().summaryHeader}},{fantasySectionHeaderViewModel:QTb})),_.V(_.ni,{data:function(){return R.data().userTeam}},{fantasyTeamViewModel:v6S}),_.V(_.ni,{data:function(){return R.data().opponentTeam}},{fantasyTeamViewModel:v6S}))},"ce"),"fantasy-league-summary-view-model",{props:{data:_.VY}});var g6H=_.E5(function(R){var A=_.Pc(R,{shape:{},useCustomTabRenderable:!1}),Y=A.shape;A=A.useCustomTabRenderable;var P=R.customTabRenderable,E=function(){return Y().disabled},z=function(){return Y().selected},c=function(){return Y().title},M=function(){return Y().icon},N=_.LK("yt-tab-shape");
R=_.Qi(function(T){var Q;if(!E()&&((Q=Y().aTagConfig)==null?0:Q.onclick))Y().aTagConfig.onclick(T);return!1});
var y=_.Qi(function(T){if(T.key==="Enter"||T.key==="ArrowUp"||T.key==="ArrowDown")T.preventDefault(),N.value.click();return!1}),m={};
return _.V("yt-tab-shape",{class:_.To("yt-tab-shape-wiz",function(){return Y().className},(m["yt-tab-shape-wiz__tab--last-tab"]=function(){return Y().isLastTab},m["yt-tab-shape-wiz--host-disabled"]=E,m["yt-tab-shape-wiz--host-clickable"]=!P,m)),
role:P?void 0:"tab","aria-selected":z!=null?z:!1,"aria-disabled":E,tabindex:P?void 0:0,"on:click":R,"on:keydown":y,el:N,"tab-identifier":function(){return Y().identifier},
"tab-title":c},_.V(_.J,{cond:A,then:function(){return P()},
else:function(){var T={},Q={};return _.V(_.lI,null,_.V("div",{class:_.To("yt-tab-shape-wiz__tab",(T["yt-tab-shape-wiz__tab--tab-selected"]=z,T))},_.V(_.J,{cond:M,then:function(g){return _.V(_.H1,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return g().iconType}})}}),c),_.V("div",{class:_.To("yt-tab-shape-wiz__tab-bar",(Q["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=z,Q))}))}}))},"de");
g6H.idomCompat={callbacks:{customTabRenderable:!0}};_.HtH=_.E5(function(R){var A=R.shape;R=_.x(_.yy(48,void 0,"rCewuf"));var Y=R.next().value,P=R.next().value;R=_.x(_.yy(0,void 0,"aUUTWe"));var E=R.next().value,z=R.next().value,c=function(){return A().tabs},M=_.LK("yt-tab-group-shape"),N=function(){var y,m;
return(m=(y=c())==null?void 0:y.findIndex(function(T){return T.selected}))!=null?m:-1};
_.jO(function(){var y=M.value.querySelectorAll("yt-tab-shape"),m=N()>-1?y[N()]:void 0;_.fn.addJob(function(){P((m==null?void 0:m.getBoundingClientRect().width)||0)},8,0)});
_.jq(function(){var y=N(),m=_.fn.addJob(function(){var T,Q=((T=M.value)==null?void 0:T.querySelectorAll("yt-tab-shape"))||[],g;P(((g=y>-1?Q[y]:void 0)==null?void 0:g.getBoundingClientRect().width)||0);for(g=T=0;g<y;g++)T+=Q[g].offsetWidth+24;_.a1("HTML_DIR")==="rtl"&&(T=-T);z(T)},8,0);
_.bm(function(){_.fn.cancelJob(m)})},"DAb5Qb");
R={};return _.V("yt-tab-group-shape",{class:_.To("tabGroupShapeHost",(R.tabGroupShapeOverflowHidden=function(){return A().isOverflowHidden},R)),
el:M},_.V(_.J,{cond:c,then:function(y){return _.V(_.lI,null,_.V("div",{class:"tabGroupShapeTabs",role:"tablist"},_.V(_.Ue,{each:y},function(m,T){return _.V(g6H,{shape:function(){return Object.assign({},m,{isLastTab:T()===y().length-1})},
customTabRenderable:m.customTabRenderable,useCustomTabRenderable:!!m.customTabRenderable})})),_.V(n6b,{width:Y,
sliderOffset:E}))}}))},"ee");
_.HtH.idomCompat=!0;var n6b=_.E5(function(R){var A=_.Y9(R.sliderOffset,0),Y=R.width;return _.V("div",{class:"tabGroupShapeSlider",style:_.nY({width:function(){return Y()+"px"},
transform:function(){return"translateX("+A()+"px)"}})})},"fe");var rLA=_.E5(function(R){var A=function(){var z,c,M;return(M=(z=R.data().playerLogoAccessibility)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label)!=null?M:""},Y=_.vT(GUI,function(){return R.data().playerEntityKey}),P={};
P=_.To("ytwFantasyPlayerViewModelHost",(P.ytwFantasyPlayerViewModelPlaying=function(){var z;return!((z=Y())==null||!z.isPlayerPlaying)},P.ytwFantasyPlayerViewModelOnField=function(){var z;
return((z=Y())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},P.ytwFantasyPlayerViewModelRedZone=function(){var z;
return((z=Y())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},P));
var E=function(){var z,c,M,N=((z=_.is().resolve(_.z3(_.dU)))==null?0:z())?(c=R.data().playerLogoBackgroundColor)==null?void 0:c.darkTheme:(M=R.data().playerLogoBackgroundColor)==null?void 0:M.lightTheme;return N===void 0?"":_.Zs(N)};
return _.V("ytw-fantasy-player-view-model",{class:P},_.V(_.J,{cond:function(){return R.data().playerLogo},
then:function(z){return _.V("div",{class:"ytwFantasyPlayerViewModelLogo"},_.V("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.V(_.P1,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.nY({"background-color":E}),data:z,alt:A})),_.V("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.V(_.H1,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.V("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.V("div",{class:"ytwFantasyPlayerViewModelHeader"},_.V(_.NU,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var z;return(z=R.data())==null?void 0:z.playerNameText}}),_.V(_.NU,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var z;return(z=R.data())==null?void 0:z.playerDescriptionText}})),_.V("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.V(_.NU,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=Y())==null?void 0:z.gamePeriodText}}),_.V(_.NU,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=R.data())==null?void 0:z.opponentTeamText}}),_.V(_.NU,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=Y())==null?void 0:z.gameStatusText}}),_.V(_.NU,{className:_.To("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var z;return(z=Y())==null?void 0:z.playerStatusText}})),_.V("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.V(_.NU,{text:function(){var z;
return(z=Y())==null?void 0:z.playerStatsText}}))),_.V(_.NU,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var z;return(z=Y())==null?void 0:z.fantasyScore}}))},"ge");var DyE=_.E5(function(R){return _.V("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.V(_.J,{cond:function(){return R.data().players},
then:function(A){return _.V(_.ni,{data:A},{fantasyPlayerViewModel:rLA})}}))},"he");var UyN=_.E5(function(R){var A=_.x(_.gl(function(){var E;return(E=R.data().selectedTabIdentifierKey)!=null?E:""})),Y=A.next().value,P=A.next().value;
_.WD(function(){var E;(E=R.setSelectedTabSignal)==null||E.call(R,Y)});
return _.V("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.V("div",{class:"ytTabbedViewModelTabGroup"},_.V(_.HtH,{shape:function(){var E=R.data(),z=[],c={tabs:z};if(!E.tabs)return c;E=_.x(E.tabs);for(var M=E.next(),N={};!M.done;N={tabViewModel:void 0},M=E.next())if(N.tabViewModel=_.n(M.value,IWz),N.tabViewModel){var y=M=void 0;z.push({aTagConfig:{onclick:function(m){return function(){var T;P((T=m.tabViewModel.tabIdentifier)!=null?T:"")}}(N)},
identifier:N.tabViewModel.tabIdentifier,selected:Y()===N.tabViewModel.tabIdentifier,title:(y=(M=N.tabViewModel.title)==null?void 0:M.content)!=null?y:""})}return c}})),_.V(_.ni,{data:function(){var E,z=_.x((E=R.data().tabs)!=null?E:[]);
for(E=z.next();!E.done;E=z.next())if((E=_.n(E.value,IWz))&&E.tabIdentifier===Y())return E.content}},{fantasyRosterViewModel:DyE}))},"ie");_.Ow(_.E5(function(R){var A=_.x(Uxk()),Y=A.next().value,P=A.next().value;return _.V("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.V(_.NU,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return R.data().title}}),_.V(_.J,{cond:function(){return R.data().tabbedViewModel},
then:function(E){return _.V(_.ni,{data:E},{tabbedViewModel:function(z){return _.V(UyN,{data:z.data,setSelectedTabSignal:P})}})}}),_.V(_.J,{cond:function(){var E,z=(E=_.n(R.data().tabbedViewModel,K4E))==null?void 0:E.tabs;
E=_.n(z==null?void 0:z[0],IWz);z=_.n(z==null?void 0:z[1],IWz);var c=E==null?void 0:E.tabIdentifier;if(Y()===c){var M,N;if(!((M=_.n(E==null?void 0:E.content,Lsb))==null?0:(N=M.players)==null?0:N.length))return R.data().noUserTeamPlayersText}else{var y,m;if(!((y=_.n(z==null?void 0:z.content,Lsb))==null?0:(m=y.players)==null?0:m.length))return R.data().noOpponentTeamPlayersText}},
then:function(E){return _.V(_.NU,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:E})}}))},"je"),"ytw-fantasy-matchup-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){return _.V("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.V(_.NU,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return R.data().title}}),_.V(_.J,{cond:function(){return R.data().matchupTeamPairs},
then:function(A){return _.V(_.Ue,{each:A,keyBy:"INDEX"},function(Y){return _.V("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.V(_.ni,{data:function(){return[Y().firstTeam,Y().secondTeam]}},{fantasyTeamViewModel:function(P){return _.V(v6S,{data:P.data,
compact:!0})}}))})}}))},"ke"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=function(){var E,z,c;return(c=(E=R.data().userLogoAccessibility)==null?void 0:(z=E.accessibilityData)==null?void 0:z.label)!=null?c:""},Y=function(){var E,z,c;
return(c=(E=R.data().opponentLogoAccessibility)==null?void 0:(z=E.accessibilityData)==null?void 0:z.label)!=null?c:""},P=_.vT(oTk,function(){return R.data().entityKey});
return _.V("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.V("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.V(_.J,{cond:function(){return R.data().userLogo},
then:function(E){return _.V(_.P1,{className:"ytwFantasyWinProbabilityViewModelLogo",data:E,alt:A})}}),_.V("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.V(_.NU,{text:function(){return R.data().title}})),_.V(_.J,{cond:function(){return R.data().opponentLogo},
then:function(E){return _.V(_.P1,{className:"ytwFantasyWinProbabilityViewModelLogo",data:E,alt:Y})}})),_.V("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.V("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.V(_.NU,{text:function(){var E;
return(E=P())==null?void 0:E.userWinNumberLabel}})),_.V("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.V("div",{class:_.To("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.nY({flex:function(){var E,z;return(z=(E=P())==null?void 0:E.userWinNumber)!=null?z:50}})}),_.V("div",{class:_.To("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.nY({flex:function(){var E,z;return(z=(E=P())==null?void 0:E.opponentWinNumber)!=null?z:50}})})),_.V("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.V(_.NU,{text:function(){var E;
return(E=P())==null?void 0:E.opponentWinNumberLabel}}))))},"le"),"fantasy-win-probability-view-model",{props:{data:_.VY}});var $yS={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},X7S=_.E5(function(R){return _.V(_.ni,{data:R.button},{buttonViewModel:function(A){return _.V(_.Is,{data:A.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"me"),SBZ=_.E5(function(R){return _.V("ytd-backstage-locked-post-view-model",{class:_.To("ytdBackstageLockedPostViewModelHost",R.className)},_.V("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.V("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.V(_.ni,
{data:function(){return R.data().authorAvatar}},{decoratedAvatarViewModel:_.LP})),_.V("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.V("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.V(_.NU,{text:function(){return R.data().authorText}})),_.V("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.V(_.NU,{text:function(){return R.data().publishedTimeText}}),_.V(_.ni,{data:function(){return R.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(A){return _.V(GYz,
{data:A.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.V("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.V(_.NU,{text:function(){return R.data().contentText}})),_.V(_.SO,null,_.V(_.$W,{when:function(){return R.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.V("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.V(_.P1,{data:$yS,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.V(_.NU,{text:function(){return R.data().lockedText}}))}),_.V(_.$W,{when:function(){return R.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.V("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.V("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.V(_.P1,{data:$yS,
alt:""})),_.V(_.NU,{text:function(){return R.data().lockedText}}))})),_.V("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.V(X7S,{button:function(){return R.data().likeButton}}),_.V("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return R.data().voteCountA11y}},_.V(_.NU,{text:function(){return R.data().voteCount}})),_.V(X7S,{button:function(){return R.data().dislikeButton}}),_.V(X7S,{button:function(){return R.data().commentButton}}),_.V("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return R.data().commentCountA11y}},_.V(_.NU,{text:function(){return R.data().commentCount}}))))},"ne");
SBZ.idomCompat=!0;_.Ow(SBZ,"ytd-backstage-locked-post-view-model",{props:{data:_.VY,className:_.VY}});_.bh("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var cp=function(){var R=_.K.apply(this,arguments)||this;R.darkerPanels=_.v("web_watch_darker_panels");R.commentsHidePanelButton=!1;R.isWatchGrid=!1;R.continuationShowButton=!1;R.isSearch=!1;R.isConstrainedList=!1;R.isWatch=!1;R.eligibleToSwitchToGrid=!1;R.useBigThumbs=!1;R.notSticky=!1;R.epRestyle=!1;R.isCarouselInFeed=!0;R.topSpacingZero=!1;R.continuationIsInitialLoad=!0;R.enableSqueezebackPanels=_.v("web_shorts_enable_squeezeback_panels");R.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");
R.mastheadHeight=0;R.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};R.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return R};
_.H(cp,_.K);_.l=cp.prototype;_.l.updateLockupContainerTypes=function(R){if(this.eligibleToSwitchToGrid){var A;(A=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||A.forEach(function(Y){Y.containerType=R})}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstageLockedPostViewModel:"ytd-backstage-locked-post-view-model",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:{component:"ytd-channel-featured-content-renderer",properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupContainerType:"[[lockupContainerType]]"}},channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",
commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",
compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",
fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",
handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",
horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",
messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",
offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",
premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",
redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",
searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:{component:"yt-section-header-view-model",properties:{className:"[[is]]"},params:{disableHorizontalPadding:!0,disableVerticalPadding:!0}},settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",
showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",
unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",
primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]",engagementPanel:"[[engagementPanel]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",
listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",videoOverviewViewModel:"yt-video-overview-view-model",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"},dividerViewModel:{component:"divider-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.v("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.v("kevlar_low_priority_continuation")}}};
_.l.created=function(){};
_.l.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.l.handleIntersect=function(R){this.notSticky=R[0].intersectionRatio===1};
_.l.attached=function(){var R=this,A=_.v("web_item_section_sticky_header_use_scroll_as_fallback");A||document.addEventListener("scroll",_.T2(this,this.updateHeaderState));var Y;this.mastheadHeight=((Y=document.querySelector("ytd-masthead"))==null?void 0:Y.clientHeight)||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(P){R.handleIntersect(P)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):A&&document.addEventListener("scroll",_.T2(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){R.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.l.detached=function(){document.removeEventListener("scroll",_.T2(this,this.updateHeaderState));var R;(R=this.intersectionObserver)==null||R.disconnect();var A;(A=this.resizeObserver)==null||A.disconnect()};
_.l.updated=function(R){R.has("data")&&this.updateHeaderState()};
_.l.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(tWA(!this.notSticky))};
_.l.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var R=_.Mo(this.hostElement).querySelector("ytd-comments-header-renderer");R&&(R.hidePanelButton=this.commentsHidePanelButton)}};
_.l.onRetrieveLocation=function(R,A){this.containsComments()&&(this.firstCommentsLoaded=A.hasComments=!0)};
_.l.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.l.onLoadReloadContinuation=function(R,A){var Y=this;R.stopPropagation();this.isReloading=!0;_.xo(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(P){var E=_.is().resolve(_.a4);P=A(P);E.postData(P).then(function(z){Y.onReloadContinuationData(z)})}})};
_.l.onReloadContinuationData=function(R){if(R=this.get("response.continuationContents.itemSectionContinuation",R)||this.get("response.contents.itemSectionRenderer",R)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",R)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",R))this.set("data.contents",R.contents||R.results),R.header&&this.set("data.header",R.header),this.set("data.continuations",
R.continuations||[]);this.isReloading=!1};
_.l.computeContentsClass=function(R){return R?"reloading":""};
_.l.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.l.computeSectionIdentifier=function(R){return R==null?void 0:R.sectionIdentifier};
_.l.computeFitContainer=function(R){return(R==null?void 0:R.sectionIdentifier)==="youchat-item-section"};
_.l.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.v("kevlar_disable_comments_auto_load")};
_.l.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.l.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeHasDestinationShelfRenderer=function(R){var A,Y;return!!(R==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:Y.destinationShelfRenderer)};
_.l.computeHasSectionGroupViewModel=function(R){var A,Y;return!!(R==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:Y.sectionGroupViewModel)};
_.l.computeHasQrCodeRenderer=function(R){var A,Y;return!!(R==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:Y.qrCodeRenderer)};
_.l.computeStaticCommentsHeader=function(R){return R&&this.containsComments()};
_.l.computeEpRestyle=function(R){return _.v("web_ep_restyling")&&R&&this.containsComments()};
_.l.computeIsContinuationCommentSection=function(R){return(R==null?void 0:R.targetId)==="shorts-engagement-panel-comments-section"||(R==null?void 0:R.targetId)==="comments-section"||(R==null?void 0:R.targetId)==="engagement-panel-comments-section"};
_.l.computeSuppressPaddingDisclaimer=function(){var R,A,Y,P;return!!((R=this.data)==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:(P=Y.productListHeaderRenderer)==null?0:P.suppressPaddingDisclaimer)};
_.l.computeHeaderStyle=function(R){switch(R==null?void 0:R.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.l.dataChanged=function(){this.firstCommentsLoaded=!1};
_.l.observeDataContentsLength=function(){var R,A;((R=this.data)==null?0:(A=R.contents)==null?0:A.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.l.onYtDismissibleItemDismissedChange=function(R){this._setItemDismissed(R.type==="yt-dismissible-item-dismissed")};
_.l.triggerContinuations=function(){for(var R=_.Mo(this.hostElement).querySelector("#continuations").children,A=0;A<R.length;A++)R[A].trigger()};
_.l.triggerInitialContinuations=function(){for(var R=_.Mo(this.hostElement).querySelector("#continuations").children,A=0;A<R.length;A++)R[A].triggerIfNotPreviouslyTriggered()};
_.l.handleYtItemSectionContinuation=function(R,A){var Y;A&&((Y=this.data)==null?void 0:Y.sectionIdentifier)!==A||(this.set("data.continuations",[R]),this.triggerContinuations())};
_.l.handleYtItemSectionReplace=function(R,A){var Y;A&&((Y=this.data)==null?void 0:Y.sectionIdentifier)!==A||(this.set("data.contents",R),this.set("data.continuations",[]))};
_.l.computeUseHeightHack=function(R){return R&&!_.v("kevlar_disable_height_hack")};
_.l.computeTopSpacingZero=function(R){return R};
_.l.continuationShowButtonChanged=function(){var R=_.Mo(this.hostElement).querySelector("ytd-continuation-item-renderer");R&&(R.showButton=this.continuationShowButton)};
_.l.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("data-changed",this.data))};
_.Yh.Object.defineProperties(cp.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.v("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
thumbnailTargetWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&this.containerWidth?this.containerWidth/2:void 0}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.useBigThumbs?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!((R=this.data)==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:Y.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P,E,z,c;return!!((R=this.data)==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:(P=Y.shelfRenderer)==null?0:(E=P.content)==null?0:(z=E.gridRenderer)==null?0:(c=z.targetId)==null?0:c.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!((R=this.data)==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:Y.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!((R=this.data)==null?0:(A=R.contents)==null?0:(Y=A[0])==null?0:Y.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.OK("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.v("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.v("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
cp.prototype.dataChangedForBinding=cp.prototype.dataChangedForBinding;cp.prototype.continuationShowButtonChanged=cp.prototype.continuationShowButtonChanged;cp.prototype.onYtDismissibleItemDismissedChange=cp.prototype.onYtDismissibleItemDismissedChange;cp.prototype.observeDataContentsLength=cp.prototype.observeDataContentsLength;cp.prototype.dataChanged=cp.prototype.dataChanged;cp.prototype.onServiceRequestCompleted=cp.prototype.onServiceRequestCompleted;cp.prototype.onLoadReloadContinuation=cp.prototype.onLoadReloadContinuation;
cp.prototype.onRetrieveLocation=cp.prototype.onRetrieveLocation;cp.prototype.commentsHidePanelButtonChanged=cp.prototype.commentsHidePanelButtonChanged;cp.prototype.dispatchChipBarIsSticky=cp.prototype.dispatchChipBarIsSticky;cp.prototype.updateLockupContainerTypes=cp.prototype.updateLockupContainerTypes;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],cp.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cp.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],cp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],cp.prototype,"ytLazyListBehavior",void 0);_.C([_.U(_.Oo.YtNextContinuationBehavior),_.k("design:type",Object)],cp.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.U(_.cA),_.k("design:type",Object)],cp.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],cp.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],cp.prototype,"ytdReduxBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cp.prototype,"darkerPanels",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Boolean)],cp.prototype,"engagementPanel",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"commentsHidePanelButton",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"isWatchGrid",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"continuationShowButton",void 0);_.C([_.S({computed:"computeIsContinuationCommentSection(data)"}),_.k("design:type",Boolean)],cp.prototype,"continuationIsCommentsSection",void 0);
_.C([_.S({value:!0}),_.k("design:type",Boolean)],cp.prototype,"autoFill",void 0);_.C([_.S(),_.k("design:type",Boolean)],cp.prototype,"continuationDisablePrescanVisibility",void 0);_.C([_.S(),_.k("design:type",Boolean)],cp.prototype,"isReloading",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"isSearch",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"isConstrainedList",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"isWatch",void 0);
_.C([_.S(),_.k("design:type",Object)],cp.prototype,"eligibleToSwitchToGrid",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"useBigThumbs",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cp.prototype,"notSticky",void 0);_.C([_.S({selector:_.B1}),_.k("design:type",Object)],cp.prototype,"isGridViewEnabled",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.k("design:type",Object)],cp.prototype,"epRestyle",void 0);_.C([_.X("isWatch"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cp.prototype,"hideShortsShelfHeader",null);_.C([_.X("isSearch","isWatch"),_.k("design:type",String),_.k("design:paramtypes",[])],cp.prototype,"thumbnailWidth",null);
_.C([_.X("isSearch","containerWidth"),_.k("design:type",Object),_.k("design:paramtypes",[])],cp.prototype,"thumbnailTargetWidth",null);_.C([_.X("isSearch","isWatch"),_.k("design:type",String),_.k("design:paramtypes",[])],cp.prototype,"sizing",null);_.C([_.X("isWatch","isGridViewEnabled","useBigThumbs","data"),_.S({reflectToAttribute:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],cp.prototype,"lockupContainerType",null);
_.C([_.vZ("lockupContainerType","data"),_.k("design:type",Function),_.k("design:paramtypes",[Number]),_.k("design:returntype")],cp.prototype,"updateLockupContainerTypes",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],cp.prototype,"pageSubtype",void 0);_.C([_.S({computed:"computeContainerWidth()"}),_.k("design:type",Number)],cp.prototype,"containerWidth",void 0);_.C([_.S(),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cp.prototype,"isPlaylist",null);
_.C([_.S(),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cp.prototype,"isClipList",null);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"isCarouselInFeed",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cp.prototype,"isPlaylistVideoContainer",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cp.prototype,"isSearchFrictionPage",null);
_.C([_.S({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.k("design:type",Boolean)],cp.prototype,"useHeightHack",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.k("design:type",Object)],cp.prototype,"topSpacingZero",void 0);_.C([_.S({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.k("design:type",Boolean)],cp.prototype,"showButton",void 0);
_.C([_.S(),_.k("design:type",Boolean)],cp.prototype,"firstCommentsLoaded",void 0);_.C([_.S(),_.k("design:type",Object)],cp.prototype,"continuationIsInitialLoad",void 0);_.C([_.S({reflectToAttribute:!0,readOnly:!0}),_.k("design:type",Boolean)],cp.prototype,"itemDismissed",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.k("design:type",String)],cp.prototype,"sectionIdentifier",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.k("design:type",String)],cp.prototype,"fitContainer",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.k("design:type",Boolean)],cp.prototype,"hasDestinationShelfRenderer",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.k("design:type",Boolean)],cp.prototype,"staticCommentsHeader",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cp.prototype,"enableSqueezebackPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cp.prototype,"enableAnchoredPanel",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.k("design:type",Boolean)],cp.prototype,"hasSectionGroupViewModel",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.k("design:type",Boolean)],cp.prototype,"hasQrCodeRenderer",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.k("design:type",Boolean)],cp.prototype,"suppressDisclaimerSeparator",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.k("design:type",String)],cp.prototype,"headerStyle",void 0);
_.C([_.X("isSearch"),_.k("design:type",Object),_.k("design:paramtypes",[])],cp.prototype,"lockupExperiments",null);_.C([_.X("isSearch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],cp.prototype,"typographyBump",null);_.C([_.nG("#header"),_.k("design:type",HTMLElement)],cp.prototype,"header",void 0);_.C([_.vZ("notSticky"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cp.prototype,"dispatchChipBarIsSticky",null);
_.C([_.vZ("commentsHidePanelButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cp.prototype,"commentsHidePanelButtonChanged",null);_.C([_.Qa("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],cp.prototype,"onRetrieveLocation",null);
_.C([_.Qa("yt-load-reload-continuation"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Function]),_.k("design:returntype")],cp.prototype,"onLoadReloadContinuation",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cp.prototype,"onServiceRequestCompleted",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cp.prototype,"dataChanged",null);
_.C([_.Ul("data.contents.length"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cp.prototype,"observeDataContentsLength",null);_.C([_.Qa("yt-dismissible-item-dismissed"),_.Qa("yt-dismissible-item-undismissed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],cp.prototype,"onYtDismissibleItemDismissedChange",null);
_.C([_.vZ("continuationShowButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cp.prototype,"continuationShowButtonChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cp.prototype,"dataChangedForBinding",null);_.C([_.F({is:"ytd-item-section-renderer",disableElementRegistration:!0})],cp);
_.B(cp,"ytd-item-section-renderer",function(){if(CnG!==void 0)return CnG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return CnG=R},{mode:1});var IfH;var Sfk=_.dF(_.vk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var KPA={},XH6=(KPA[0]={title:_.iw(_.vk("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iw(_.vk("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.PK("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},KPA[1]={title:_.iw(_.vk("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.PK("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},KPA);_.bh("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var OS=function(){var R=_.K.apply(this,arguments)||this;R.allVideosCount=0;R.allPlaylistCount=0;R.isOnline=!1;R.shouldRenderDownloadsBanner=!1;R.shouldRenderDownloadsBannerUpsell=!1;R.hasOptedIntoSmartDownloads=!1;R.areAllSmartDownloadsDeleted=!1;R.smartDownloadsCompleted=!1;return R};
_.H(OS,_.K);OS.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
OS.prototype.attached=function(){this.downloadsToRenderChanged()};
OS.prototype.detached=function(){this.set("renderableData",{})};
OS.prototype.downloadsToRenderChanged=function(){var R=_.Yp().getState().entities,A=_.j9(R),Y=_.v("kevlar_playlist_dl_page_killswitch")?uqu(R):_.bw(R),P=_.hSI(R),E=_.Z_k(R),z=_.$b(A);R=_.fx(R);this.set("renderableData",Kq8(Y,A,P,E,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,z,R))};
OS.prototype.downloadsToRenderChanged=OS.prototype.downloadsToRenderChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],OS.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],OS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],OS.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],OS.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],OS.prototype,"renderableData",void 0);_.C([_.S({selector:_.xak}),_.k("design:type",Object)],OS.prototype,"allVideosCount",void 0);_.C([_.S({selector:nQ6}),_.k("design:type",Object)],OS.prototype,"allPlaylistCount",void 0);_.C([_.S({selector:_.Cx}),_.k("design:type",Object)],OS.prototype,"isOnline",void 0);_.C([_.S({selector:_.JdS}),_.k("design:type",Object)],OS.prototype,"shouldRenderDownloadsBanner",void 0);
_.C([_.S({selector:_.Qmk}),_.k("design:type",Object)],OS.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.C([_.S({selector:_.ydS}),_.k("design:type",Object)],OS.prototype,"hasOptedIntoSmartDownloads",void 0);_.C([_.S({selector:_.maP}),_.k("design:type",Object)],OS.prototype,"areAllSmartDownloadsDeleted",void 0);_.C([_.S({selector:TRu}),_.k("design:type",Object)],OS.prototype,"smartDownloadsCompleted",void 0);
_.C([_.Ul("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OS.prototype,"downloadsToRenderChanged",null);_.C([_.F({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],OS);
_.B(OS,"ytd-offline-item-section-renderer",function(){if(IfH!==void 0)return IfH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return IfH=R},
{mode:1});var WPA;var jTS;var Mw=function(){return _.K.apply(this,arguments)||this};
_.H(Mw,_.K);
Mw.prototype.onDataChanged=function(){if(this.JSC$16669_lastData){var R=this.getFilterClass(this.JSC$16669_lastData.status);R&&this.hostElement.classList.remove(R)}var A;(R=this.getFilterClass((A=this.data)==null?void 0:A.status))&&this.hostElement.classList.add(R);R==="selected"?_.Mo(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Mo(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");R==="disabled"?_.Mo(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Mo(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16669_lastData=this.data};
Mw.prototype.getFilterClass=function(R){switch(R){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
Mw.prototype.onDataChanged=Mw.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Mw.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Mw.prototype,"onDataChanged",null);_.C([_.F({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],Mw);
_.B(Mw,"ytd-search-filter-renderer",function(){if(jTS!==void 0)return jTS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return jTS=R},{mode:_.Nf("kevlar_poly_si_batch_j075")?1:2});var sS=function(){return _.K.apply(this,arguments)||this};
_.H(sS,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sS.prototype,"data",void 0);_.C([_.F({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],sS);
_.B(sS,"ytd-search-filter-group-renderer",function(){if(WPA!==void 0)return WPA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return WPA=R},{mode:_.Nf("kevlar_poly_si_batch_j075")?1:2});var btS;var Nw=function(){return _.K.apply(this,arguments)||this};
_.H(Nw,_.K);Nw.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Hy());this.isCollapsed=!this.isCollapsed};
Nw.prototype.navigateToAboutTheseResultsPage=function(){var R=_.Cq("https://www.youtube.com/howyoutubeworks/product-features/search/");R?_.dZ(window,R,"_blank"):_.hv(Error("Th"))};
Nw.prototype.dataChanged=function(){this.isCollapsed=!0};
Nw.prototype.computeShowBottomBorder=function(){var R,A,Y;return!!((R=this.data)==null?0:(A=R.button)==null?0:A.toggleButtonRenderer)||!((Y=this.data)==null||!Y.aboutTheseResultsButton)};
Nw.prototype.dataChanged=Nw.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Nw.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.k("design:type",Boolean)],Nw.prototype,"showBottomBorder",void 0);_.C([_.S(),_.k("design:type",Boolean)],Nw.prototype,"renderCollapsibleMenu",void 0);
_.C([_.S(),_.k("design:type",Boolean)],Nw.prototype,"isCollapsed",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Nw.prototype,"dataChanged",null);_.C([_.F({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],Nw);
_.B(Nw,"ytd-search-sub-menu-renderer",function(){if(btS!==void 0)return btS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return btS=R},{mode:1});var ffH;var p7Z=new _.cP("SECTION_LIST_RENDERER_TOKEN");var FPS;var V1=function(){return _.K.apply(this,arguments)||this};
_.H(V1,_.K);V1.prototype.computeStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],V1.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],V1.prototype,"headerStyle",void 0);_.C([_.F({is:"ytd-text-header-renderer",disableElementRegistration:!0})],V1);
_.B(V1,"ytd-text-header-renderer",function(){if(FPS!==void 0)return FPS;var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return FPS=R},{mode:1});var BKA;var Jt=function(){return _.K.apply(this,arguments)||this};
_.H(Jt,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Jt.prototype,"data",void 0);_.C([_.F({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],Jt);
_.B(Jt,"ytd-minor-moment-header-renderer",function(){if(BKA!==void 0)return BKA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return BKA=R},{mode:1});var afD;var y1=function(){return _.K.apply(this,arguments)||this};
_.H(y1,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],y1.prototype,"data",void 0);_.C([_.F({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],y1);
_.B(y1,"ytd-minor-moment-setting-alert-renderer",function(){if(afD!==void 0)return afD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return afD=R},{mode:1});var CHb;var hTS;var mk=function(){var R=_.K.apply(this,arguments)||this;R.booleanSettingById=!1;R.smartDownloadsEnabledVE=_.NV(128287);R.smartDownloadsDisabledVE=_.NV(128286);R.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return R};
_.H(mk,_.K);_.l=mk.prototype;_.l.attachSmartDownloadsSettingVes=function(){var R;this.activeVeForLogging||((R=this.data)==null?void 0:R.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Xq(_.rU(),this.smartDownloadsEnabledVE),_.Xq(_.rU(),this.smartDownloadsDisabledVE))};
_.l.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.xo(this.hostElement,"yt-settings-switch-ready")};
_.l.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.l.onSwitchChange=function(R){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(R=_.Yw(R).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.v("kevlar_settings_switch_resolve_command_killswitch")?_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(R)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.l.handleUpdateSettingsSwitch=function(R){(R=_.n(R,TbG))&&this.data&&this.data.id===R.id&&this.set("data.enabled",!!R.enabled)};
_.l.onToggleSettingsSwitch=function(R,A){this.data&&this.data.id===R&&this.set("data.enabled",A!=null?A:!this.data.enabled)};
_.l.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.mA.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.l.maybeLogSmartDownloadsSettingVisibility=function(){var R=_.F9(),A;R&&((A=this.data)==null?void 0:A.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.uE(R,[this.smartDownloadsEnabledVE]),_.eF(R,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.uE(R,[this.smartDownloadsDisabledVE]),_.eF(R,[this.smartDownloadsEnabledVE])))};
_.l.maybeLogSmartDownloadsSettingClick=function(){var R;((R=this.data)==null?void 0:R.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.IC(_.rU(),this.activeVeForLogging)};
_.l.updateDataEnabledFromBinding=function(R){this.set("data.enabled",R.detail.value)};
_.Yh.Object.defineProperties(mk.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var R=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!R&&(R=this.ytRendererBehavior.getSimpleString(this.data.title));return R}}});
mk.prototype.dataChanged=mk.prototype.dataChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],mk.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],mk.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],mk.prototype,"ytComponentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],mk.prototype,"data",void 0);_.C([_.S({selector:function(R,A){if(Object.keys(R==null?void 0:R.entities).length)switch(A){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return eSk(R.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.k("design:type",Object)],mk.prototype,"booleanSettingById",void 0);_.C([_.S(),_.k("design:type",fO)],mk.prototype,"activeVeForLogging",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],mk.prototype,"toggleAriaLabel",null);_.C([_.Ul("data"),_.Ul("booleanSettingById"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mk.prototype,"dataChanged",null);
_.C([_.F({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],mk);
_.B(mk,"ytd-settings-switch-renderer",function(){if(hTS!==void 0)return hTS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return hTS=R},{mode:1});var Tv=function(){return _.K.apply(this,arguments)||this};
_.H(Tv,_.K);Tv.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}}}}};
_.Yh.Object.defineProperties(Tv.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var R=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(R+=" remove-left-margin");this.data.extraBottomSpace&&(R+=" extra-bottom-space");return R}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Tv.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Tv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Tv.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Tv.prototype,"contentsClassName",null);_.C([_.F({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],Tv);
_.B(Tv,"ytd-minor-moment-setting-section-renderer",function(){if(CHb!==void 0)return CHb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return CHb=R},{mode:1});var o6A;var Q1=function(){return _.K.apply(this,arguments)||this};
_.H(Q1,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Q1.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Q1.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],Q1);
_.B(Q1,"ytd-empty-product-details-renderer",function(){if(o6A!==void 0)return o6A;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return o6A=R},{mode:1});var kkA;var GkG;var vp=function(){var R=_.K.apply(this,arguments)||this;R.expanded=!0;return R};
_.H(vp,_.K);vp.prototype.getBadgeRowClass=function(R,A,Y){for(var P=_.x(this.hostElement.querySelectorAll("yt-img-shadow")),E=P.next();!E.done;E=P.next())E.value.onShow();R=R.selected;return Y?R!==-1?R===A?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(R!==void 0?R:0)===A?"badge-line":"badge-hidden"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vp.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vp.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],vp.prototype,"expanded",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],vp);
_.B(vp,"ytd-sponsorships-loyalty-badges-renderer",function(){if(GkG!==void 0)return GkG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return GkG=R},{mode:1});var ZtS;var g_=function(){var R=_.K.apply(this,arguments)||this;R.expanded=!0;return R};
_.H(g_,_.K);g_.prototype.getContainerClasses=function(R,A){R=R?"expanded":"collapsed";A&&(R+=" item");return R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],g_.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],g_.prototype,"expanded",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],g_);
_.B(g_,"ytd-sponsorships-perk-renderer",function(){if(ZtS!==void 0)return ZtS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ZtS=R},{mode:1});var t6A;var na=function(){var R=_.K.apply(this,arguments)||this;R.expanded=!0;return R};
_.H(na,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],na.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],na.prototype,"expanded",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],na);
_.B(na,"ytd-sponsorships-perks-renderer",function(){if(t6A!==void 0)return t6A;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return t6A=R},{mode:1});var Hp=function(){var R=_.K.apply(this,arguments)||this;R.isCollapsed=!1;return R};
_.H(Hp,_.K);Hp.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Hp.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Hp.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var R;this.expandCollapseButton=_.n((R=this.data)==null?void 0:R.expandButton,_.RC)}else{var A;this.expandCollapseButton=_.n((A=this.data)==null?void 0:A.collapseButton,_.RC)}};
Hp.prototype.updateExpandCollapseButton=Hp.prototype.updateExpandCollapseButton;Hp.prototype.onDataChanged=Hp.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Hp.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Hp.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hp.prototype,"isCollapsed",void 0);_.C([_.S(),_.k("design:type",Object)],Hp.prototype,"expandCollapseButton",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hp.prototype,"onDataChanged",null);_.C([_.Ul("data","isCollapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hp.prototype,"updateExpandCollapseButton",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Hp);
_.B(Hp,"ytd-sponsorships-expandable-perks-renderer",function(){if(kkA!==void 0)return kkA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return kkA=R},{mode:1});var w7f;var r_=function(){return _.K.apply(this,arguments)||this};
_.H(r_,_.K);r_.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],r_.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],r_.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],r_);
_.B(r_,"ytd-sponsorships-actionable-message-renderer",function(){if(w7f!==void 0)return w7f;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return w7f=R},{mode:1});var uRf;var Dh=function(){return _.K.apply(this,arguments)||this};
_.H(Dh,_.K);_.l=Dh.prototype;_.l.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.l.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
_.l.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.computeMessageContainerStyle=function(R){var A=R.expandableItems?" style-clickable":"";return R.messageContainerStyle?R.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+A:"style-unspecified"+A};
_.l.isSinglePerk=function(R){return!!R.messageContainerStyle&&(R.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||R.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.l.onExpandedChanged=function(){var R=this;if(this.expanded)for(var A=_.x(this.hostElement.querySelectorAll("yt-img-shadow")),Y=A.next();!Y.done;Y=A.next())Y.value.onShow();_.RK(this,function(){_.xo(R.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
Dh.prototype.onDataChanged=Dh.prototype.onDataChanged;Dh.prototype.onExpandedChanged=Dh.prototype.onExpandedChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Dh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Dh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Dh.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Dh.prototype,"expanded",void 0);
_.C([_.vZ("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dh.prototype,"onExpandedChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Dh.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],Dh);
_.B(Dh,"ytd-sponsorships-expandable-message-renderer",function(){if(uRf!==void 0)return uRf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return uRf=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var eTb;var US=function(){return _.K.apply(this,arguments)||this};
_.H(US,_.K);US.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"}}}}};
US.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.n(this.data.endButton,_.RC).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
US.prototype.onDataChanged=US.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],US.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],US.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],US.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],US.prototype,"onDataChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],US);
_.B(US,"ytd-sponsorships-heading-renderer",function(){if(eTb!==void 0)return eTb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return eTb=R},{mode:1});var qBE;var $r=function(){return _.K.apply(this,arguments)||this};
_.H($r,_.K);_.C([_.S(),_.k("design:type",Object)],$r.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$r.prototype,"ytRendererBehavior",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],$r);
_.B($r,"ytd-sponsorships-links-renderer",function(){if(qBE!==void 0)return qBE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qBE=R},{mode:1});var LPS;var Xg=function(){return _.K.apply(this,arguments)||this};
_.H(Xg,_.K);_.l=Xg.prototype;_.l.onDataChanged=function(){if(this.data&&this.data.expandableItems){var R;(R=_.Mo(this.hostElement).querySelector("tp-yt-paper-button"))==null||R.setAttribute("role","button")}else{var A;(A=_.Mo(this.hostElement).querySelector("tp-yt-paper-button"))==null||A.removeAttribute("role")}};
_.l.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.l.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
_.l.getTileClasses=function(R){return R?"tile expandable-tile":"tile"};
_.l.getButtonDisabled=function(R){return R?void 0:""};
Xg.prototype.onDataChanged=Xg.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Xg.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Xg.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Xg.prototype,"expanded",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xg.prototype,"onDataChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Xg);
_.B(Xg,"ytd-sponsorships-list-tile-renderer",function(){if(LPS!==void 0)return LPS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return LPS=R},{mode:1});var dyG;var RWf;var S7=function(){return _.K.apply(this,arguments)||this};
_.H(S7,_.K);S7.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],S7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],S7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],S7.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],S7);
_.B(S7,"ytd-sponsorships-promotion-renderer",function(){if(RWf!==void 0)return RWf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return RWf=R},{mode:1});var AUZ;var IQ=function(){return _.K.apply(this,arguments)||this};
_.H(IQ,_.K);IQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],IQ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],IQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],IQ.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],IQ);
_.B(IQ,"ytd-sponsorships-purchase-option-renderer",function(){if(AUZ!==void 0)return AUZ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return AUZ=R},{mode:1});var Ycz;var PT8;var EGA=function(){return _.K.apply(this,arguments)||this};
_.H(EGA,_.K);_.C([_.S(),_.k("design:type",Object)],EGA.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],EGA);
_.B(EGA,"ytd-ypc-offer-promo-renderer",function(){if(PT8!==void 0)return PT8;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return PT8=R},{mode:1});var Ka=function(){return _.K.apply(this,arguments)||this};
_.H(Ka,_.K);_.l=Ka.prototype;
_.l.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"}}}}};
_.l.expansionCTA=function(R,A){return R&&(A?R.collapseCallToAction:R.expansionCallToAction)};
_.l.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
_.l.expansionCallToActionTap=function(){var R=this;this.expanded=!this.expanded;_.RK(this,function(){_.xo(R.hostElement,"yt-refit")})};
_.l.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var R,A=(R=this.data)==null?void 0:R.onVisible;A&&this.ytComponentBehavior.resolveCommand(A)};
_.l.computeDisplayTitle=function(R){return!(!R||this.titledisplaystatus!=="show")};
_.l.computeDisplaySeparator=function(){return!1};
_.l.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Ka.prototype.onDataChanged=Ka.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ka.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ka.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ka.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ka.prototype,"data",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],Ka.prototype,"expanded",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Ka.prototype,"purchaseButtonClicked",void 0);_.C([_.S({reflectToAttribute:!0,value:"show"}),_.k("design:type",String)],Ka.prototype,"titledisplaystatus",void 0);_.C([_.S({computed:"computeDisplayTitle(data.title)"}),_.k("design:type",Boolean)],Ka.prototype,"displayTitle",void 0);
_.C([_.S({computed:"computeDisplaySeparator(data)"}),_.k("design:type",Boolean)],Ka.prototype,"displaySeparator",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ka.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Ka);
_.B(Ka,"ytd-sponsorships-tier-renderer",function(){if(Ycz!==void 0)return Ycz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Ycz=R},{mode:2});var Wp=function(){return _.K.apply(this,arguments)||this};
_.H(Wp,_.K);
Wp.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"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Wp.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Wp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Wp.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Wp);
_.B(Wp,"ytd-sponsorships-management-renderer",function(){if(dyG!==void 0)return dyG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return dyG=R},{mode:1});var zWz;var j7=function(){return _.K.apply(this,arguments)||this};
_.H(j7,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],j7.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],j7);
_.B(j7,"ytd-open-in-native-app-view-model",function(){if(zWz!==void 0)return zWz;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return zWz=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var ieG;var lbS;var xZ7=_.Z7(["top-"]),cUN=_.Z7(["bottom-"]),OeG=_.Z7(["left-"]),M2S=_.Z7(["right-"]),suA={},NTD=function(R,A,Y){R.removeAttribute("top-"+Y);R.removeAttribute("bottom-"+Y);R.removeAttribute("left-"+Y);R.removeAttribute("right-"+Y);A&&(A.top&&_.ie([_.Op(xZ7)],R,"top-"+Y,A.top),A.bottom&&_.ie([_.Op(cUN)],R,"bottom-"+Y,A.bottom),A.left&&_.ie([_.Op(OeG)],R,"left-"+Y,A.left),A.right&&_.ie([_.Op(M2S)],R,"right-"+Y,A.right))};
suA.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(R){var A,Y=_.Mo((A=this.hostElement)!=null?A:this),P;A=this.cardItemBoxBehaviorMarginTargetId&&Y?Y.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(P=this.hostElement)!=null?P:this;NTD(A,R,"margin")},
cardItemContainerPaddingChanged_:function(R){var A,Y=_.Mo((A=this.hostElement)!=null?A:this),P;A=this.cardItemBoxBehaviorPaddingTargetId&&Y?Y.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(P=this.hostElement)!=null?P:this;NTD(A,R,"padding")}}];var bN={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 V28;var JUq;var fa=function(){return _.K.apply(this,arguments)||this};
_.H(fa,_.K);fa.prototype.textColorChanged_=function(){this.hostElement.style.color=bN[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
fa.prototype.textColorChanged_=fa.prototype.textColorChanged_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fa.prototype,"ytRendererBehavior",void 0);_.C([_.U(suA.YtCardItemBoxBehavior),_.k("design:type",Object)],fa.prototype,"ytCardItemBoxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fa.prototype,"data",void 0);_.C([_.vZ("data.textColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fa.prototype,"textColorChanged_",null);
_.C([_.CG({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],fa);
_.B(fa,"yt-card-item-text-renderer",function(){if(JUq===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;V28===void 0&&(V28=document.createElement("template"));var P=V28;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);JUq=R}R=JUq;return R},{mode:2});var yUN;var mZN;var pa=function(){return _.K.apply(this,arguments)||this};
_.H(pa,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pa.prototype,"data",void 0);_.C([_.CG({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],pa);
_.B(pa,"yt-card-item-badge-renderer",function(){if(mZN===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;yUN===void 0&&(yUN=document.createElement("template"));var P=yUN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);mZN=R}R=mZN;return R},{mode:2});var TTf;var Qu7;var Fg=function(){return _.K.apply(this,arguments)||this};
_.H(Fg,_.K);Fg.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Fg.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Fg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Fg.prototype,"data",void 0);_.C([_.CG({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Fg);
_.B(Fg,"yt-card-item-text-collection-renderer",function(){if(Qu7===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;TTf===void 0&&(TTf=document.createElement("template"));var P=TTf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Qu7=R}R=Qu7;return R},{mode:2});var vGH;var gGf;var Bp=function(){return _.K.apply(this,arguments)||this};
_.H(Bp,_.K);Bp.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]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bp.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Bp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Bp.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Number)],Bp.prototype,"iconSize",void 0);_.C([_.CG({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],Bp);
_.B(Bp,"yt-card-item-text-with-button-renderer",function(){if(gGf===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;vGH===void 0&&(vGH=document.createElement("template"));var P=vGH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);gGf=R}R=gGf;return R},{mode:2});var aQ=function(){return _.K.apply(this,arguments)||this};
_.H(aQ,_.K);aQ.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],aQ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],aQ.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],aQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],aQ.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],aQ);
_.B(aQ,"ytd-commerce-cart-summary-line-item-renderer",function(){if(lbS!==void 0)return lbS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return lbS=R},{mode:1});_.bh("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Ca=function(){var R=_.K.apply(this,arguments)||this;R.hidden=!1;return R};
_.H(Ca,_.K);_.l=Ca.prototype;_.l.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"}}}}};
_.l.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.l.updateSummary=function(){var R=this.commerceCartCheckoutButtonEntity,A;if(((A=this.data)==null?0:A.cartButton)&&R.checkoutSummaryText){var Y,P=Xn((Y=this.data)==null?void 0:Y.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+P+".cardItemTextRenderer.text",Sb(R.checkoutSummaryText));if(R.checkoutDetailText){var E;Y=Xn((E=this.data)==null?void 0:E.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+Y+".cardItemTextRenderer.text",Sb(R.checkoutDetailText))}if(R.checkoutAdditionalMetadataText){var z;
E=Xn((z=this.data)==null?void 0:z.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",Sb(R.checkoutAdditionalMetadataText))}}else R.estimatedTotalPrice&&(z=Xn((P=this.data)==null?void 0:P.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+z+".cardItemTextRenderer.text",Sb(R.estimatedTotalPrice)))};
_.l.updateIsHidden=function(){var R,A=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.isHidden;A!==void 0&&(this.hidden=A)};
_.l.updateCheckoutButton=function(){var R,A=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.isDisabled;A!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",A);var Y;R=(Y=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:Y.innertubeCommand;R!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",R);var P;Y=(P=this.commerceCartCheckoutButtonEntity)==null?void 0:P.checkoutButtonText;Y!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:Y})};
Ca.prototype.entityChanged=Ca.prototype.entityChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],Ca.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ca.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ca.prototype,"fullWidth",void 0);_.C([_.S(),_.k("design:type",Object)],Ca.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ca.prototype,"compact",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ca.prototype,"hidden",void 0);
_.C([_.S({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:q1P}),_.k("design:type",Object)],Ca.prototype,"commerceCartCheckoutButtonEntity",void 0);_.C([_.vZ("commerceCartCheckoutButtonEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ca.prototype,"entityChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Ca);
_.B(Ca,"ytd-commerce-cart-checkout-button-renderer",function(){if(ieG!==void 0)return ieG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ieG=R},{mode:2});var nGS;_.HeH={};
_.HeH.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",_.T2(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.T2(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(R){!this.tappableItemBehaviorTapEnabled||R.keyCode!==13&&R.keyCode!==32||R.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var R=this.data.onTap;R.ypcGetCartEndpoint?(_.sC(this.hostElement,[R]),this.tappableItemBehaviorTapEnabled=!1):R.ypcOffersEndpoint?_.sC(this.hostElement,[R]):_.NT(this.hostElement,[R],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(R){this.tappableItemBehaviorTapEnabled=!!R},
tappableItemBehaviorOnTapEnabledChanged_:function(){var R=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(R.setAttribute("tabIndex",0),R.setAttribute("role","button")):(R.removeAttribute("tabIndex"),R.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(R){R.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var rU8;var DZA;var ht=function(){return _.K.apply(this,arguments)||this};
_.H(ht,_.K);ht.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.fY("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.fY("sharingToggleButtonAndDefaultButton")}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ht.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ht.prototype,"data",void 0);_.C([_.CG({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],ht);
_.B(ht,"yt-card-item-actions-renderer",function(){if(DZA===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;rU8===void 0&&(rU8=document.createElement("template"));var P=rU8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);DZA=R}R=DZA;return R},{mode:2});var UZA;var $Zq;var X_S;var ScD;var IbD;var KFf;var oQ=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return R};
_.H(oQ,_.K);oQ.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
oQ.prototype.handleDarkModeToggledAction_=function(R){this.isDarkTheme_=R};
oQ.prototype.computeThemeImage_=function(R,A){if(!R||!R.imageLight)return!1;this.isCircular_=R.isCircular;R.imageWidth&&(this.hostElement.style.width=R.imageWidth+"px");R.imageHeight&&(this.hostElement.style.height=R.imageHeight+"px");R.borderWidth&&(this.image.style.borderWidth=R.borderWidth+"px",this.image.style.borderStyle="solid");R.borderColor&&(this.image.style.borderColor=_.Zs(R.borderColor));return A&&R.imageDark?R.imageDark:R.imageLight};
oQ.prototype.computeThemeIcon_=function(R){var A,Y;if(!(R==null?0:(A=R.themedIcon)==null?0:(Y=A.icon)==null?0:Y.iconType))return!1;this.icon.style.color=bN[R.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(R.imageWidth||18)+"px";this.icon.style.height=(R.imageHeight||18)+"px";return _.m0(R.themedIcon.icon.iconType)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(suA.YtCardItemBoxBehavior),_.k("design:type",Object)],oQ.prototype,"ytCardItemBoxBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],oQ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],oQ.prototype,"data",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],oQ.prototype,"fit",void 0);_.C([_.S(),_.k("design:type",Boolean)],oQ.prototype,"isDarkTheme_",void 0);_.C([_.S({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.k("design:type",Object)],oQ.prototype,"themeImage_",void 0);_.C([_.S({computed:"computeThemeIcon_(data)"}),_.k("design:type",Object)],oQ.prototype,"themeIcon_",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Object)],oQ.prototype,"isCircular_",void 0);
_.C([_.nG("#image"),_.k("design:type",Object)],oQ.prototype,"image",void 0);_.C([_.nG("#icon"),_.k("design:type",Object)],oQ.prototype,"icon",void 0);_.C([_.CG({is:"yt-themed-image-renderer",disableElementRegistration:!0})],oQ);
_.B(oQ,"yt-themed-image-renderer",function(){if(KFf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;IbD===void 0&&(IbD=document.createElement("template"));var P=IbD;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);KFf=R}R=KFf;return R},{mode:2});var kr=function(){return _.K.apply(this,arguments)||this};
_.H(kr,_.K);kr.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"}}}}};
kr.prototype.computeImagePlacement_=function(R){return R||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],kr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kr.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kr.prototype,"data",void 0);_.C([_.S({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.k("design:type",String)],kr.prototype,"imagePlacement",void 0);
_.C([_.CG({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],kr);
_.B(kr,"yt-card-item-text-with-image-renderer",function(){if(ScD===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;X_S===void 0&&(X_S=document.createElement("template"));var P=X_S;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ScD=R}R=ScD;return R},{mode:2});var Gv=function(){return _.K.apply(this,arguments)||this};
_.H(Gv,_.K);Gv.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"}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Gv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Gv.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Gv.prototype,"data",void 0);_.C([_.CG({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Gv);
_.B(Gv,"yt-card-item-error-renderer",function(){if($Zq===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;UZA===void 0&&(UZA=document.createElement("template"));var P=UZA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);$Zq=R}R=$Zq;return R},{mode:2});var WFS;var juS;_.bh("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var Zh=function(){return _.K.apply(this,arguments)||this};
_.H(Zh,_.K);_.l=Zh.prototype;
_.l.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"}}}}};
_.l.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.l.backgroundColorChanged_=function(){var R,A=(R=this.data)==null?void 0:R.backgroundColor;R=bN[A||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Mo(this.hostElement).querySelector("#main-content").style.backgroundColor=R};
_.l.headerPromoBackgroundColorChanged_=function(){var R,A=(R=this.data)==null?void 0:R.headerPromoBackgroundColor;R=bN[A||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Mo(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=R};
_.l.errorRendererVisibilityChanged_=function(){var R=this.isExpanded_,A;this.isErrorRendererVisible_=!((A=this.data)==null||!A.errorRenderer)&&!R};
_.l.onYtToggleButton_=function(R,A){this.isExpanded_=A.toggled};
Zh.prototype.onYtToggleButton_=Zh.prototype.onYtToggleButton_;Zh.prototype.errorRendererVisibilityChanged_=Zh.prototype.errorRendererVisibilityChanged_;Zh.prototype.headerPromoBackgroundColorChanged_=Zh.prototype.headerPromoBackgroundColorChanged_;Zh.prototype.backgroundColorChanged_=Zh.prototype.backgroundColorChanged_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Zh.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Zh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(suA.YtCardItemBoxBehavior),_.k("design:type",Object)],Zh.prototype,"ytCardItemBoxBehavior",void 0);_.C([_.U(_.HeH.YtTappableItemBehavior),_.k("design:type",Object)],Zh.prototype,"ytTappableItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Zh.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Zh.prototype,"isExpanded_",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],Zh.prototype,"isErrorRendererVisible_",void 0);_.C([_.vZ("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zh.prototype,"backgroundColorChanged_",null);_.C([_.vZ("data.headerPromoBackgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zh.prototype,"headerPromoBackgroundColorChanged_",null);
_.C([_.vZ("data.errorRenderer","isExpanded_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zh.prototype,"errorRendererVisibilityChanged_",null);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],Zh.prototype,"onYtToggleButton_",null);_.C([_.CG({is:"yt-card-item-renderer",disableElementRegistration:!0})],Zh);
_.B(Zh,"yt-card-item-renderer",function(){if(juS===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;WFS===void 0&&(WFS=document.createElement("template"));var P=WFS;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);juS=R}R=juS;return R},{mode:2});_.bh("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var tt=function(){var R=_.K.apply(this,arguments)||this;R.hidden=!1;return R};
_.H(tt,_.K);_.l=tt.prototype;_.l.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.l.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var R,A=(R=this.commerceCartHeaderEntity)==null?void 0:R.isHidden;A!==void 0&&(this.hidden=A)}};
_.l.updateTitle=function(){var R=this.commerceCartHeaderEntity.isDisabled,A,Y,P=(Y=_.n((A=this.data)==null?void 0:A.item,zEN))==null?void 0:Y.headingRenderer;P&&(A=Xn(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+A+".0.cardItemTextRenderer.textColor",R?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.l.updateSummaryText=function(){var R=this.commerceCartHeaderEntity;if(this.compact){var A,Y,P=(Y=_.n((A=this.data)==null?void 0:A.item,zEN))==null?void 0:Y.headingRenderer;P&&(A=Xn(P,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+A+".1.cardItemTextRenderer.text",R.shortHeaderSummaryText?Sb(R.shortHeaderSummaryText):R.headerSummaryText?Sb(R.headerSummaryText):""))}else{var E;if(A=(E=_.n((P=this.data)==null?void 0:P.item,zEN))==null?void 0:E.additionalInfoRenderer)A=Xn(A,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+A+".text",R.headerSummaryText?Sb(R.headerSummaryText):"")}};
_.l.updateCheckoutButton=function(){var R=this.commerceCartHeaderEntity,A,Y,P=(Y=_.n((A=this.data)==null?void 0:A.item,zEN))==null?void 0:Y.additionalInfoRenderer;A=Xn(P,"buttonRenderer");var E;Y=(E=this.commerceCartHeaderEntity)==null?void 0:E.isButtonDisabled;var z;E=(z=this.commerceCartHeaderEntity)==null?void 0:z.isButtonHidden;Y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+A+".buttonRenderer.isDisabled",Y);E!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
E);var c;R=(c=R.checkoutButtonCommand)==null?void 0:c.innertubeCommand;R!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+A+".buttonRenderer.command",R)};
tt.prototype.entityChanged=tt.prototype.entityChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],tt.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],tt.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tt.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tt.prototype,"compact",void 0);_.C([_.S({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(R,A){return _.mc(R.entities,"commerceCartHeaderEntity",A)}}),
_.k("design:type",Object)],tt.prototype,"commerceCartHeaderEntity",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],tt.prototype,"hidden",void 0);_.C([_.vZ("commerceCartHeaderEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tt.prototype,"entityChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],tt);
_.B(tt,"ytd-commerce-cart-header-renderer",function(){if(nGS!==void 0)return nGS;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return nGS=R},{mode:1});var bef;var fbA=_.$l(function(R,A){var Y;return(Y=R.onChangeCallback)==null?void 0:Y.call(R,A)},1E3),p_f=_.E5(function(R){var A=R.data;
var Y=R.iconMinus;R=R.iconPlus;var P=function(){return!!A().disabled},E=_.x(_.yy(0,void 0,"ft01me")),z=E.next().value,c=E.next().value;
E={};E=_.To("yt-spec-quantity-incrementer-shape__icon",(E["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return P()||z()===(A().onRemoveCommand?0:1)},E));
var M={};M=_.To("yt-spec-quantity-incrementer-shape__icon",(M["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return z()>=A().maxValue||P()},M));
var N={};N=_.To("yt-spec-quantity-incrementer-shape__text",(N["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return z()>A().maxValue},N["yt-spec-quantity-incrementer-shape__text--text-disabled"]=P,N));
var y=_.Qi(function(){if(z()===1){var T,Q;(Q=(T=A()).onRemoveCommand)==null||Q.call(T)}T=z()>A().maxValue?A().maxValue:z()-1;c(T);fbA(A(),T);return!1}),m=_.Qi(function(){if(z()===A().maxValue)return!1;
var T=z()+1;c(T);fbA(A(),T);return!1});
_.WD(function(){c(A().value)});
return _.V("quantity-incrementer-shape",null,_.V("div",{class:"yt-spec-quantity-incrementer-shape"},_.V("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()===(A().onRemoveCommand?0:1)||P()},
"aria-label":function(){return z()!==1?A().minusLabel:A().minimumReachedLabel},
"on:click":y},_.V(_.Uh,{model:{circular:!0}}),_.V("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.V("div",{class:E},Y()))),_.V("div",{class:N},z),_.V("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()>=A().maxValue||P()},
"aria-label":function(){return z()!==A().maxValue?A().plusLabel:A().maximumReachedLabel},
"on:click":m},_.V(_.Uh,{model:{circular:!0}}),_.V("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.V("div",{class:M},R())))))},"oe");_.Ow(_.E5(function(R){function A(){Y().onRemoveCommand&&_.Zc(Y().onRemoveCommand)}
var Y=R.data;var P=_.vT(jIk,function(){return Y().quantityIncrementerEntityKey});
return _.V("yt-quantity-incrementer-view-model",null,_.V(p_f,{data:function(){var E=Y(),z;var c=P()?!((z=P())==null||!z.disabled):!1;var M;z=P()?(M=P())==null?void 0:M.quantity:Y().quantity;return bzu(E,c,A,z)},
iconMinus:function(){return _.V(_.H1,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.V(_.H1,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"pe"),"yt-quantity-incrementer-view-model",{props:{data:_.VY}});var w_=function(){var R=_.K.apply(this,arguments)||this;R.compact=!1;R.hasQuantityIncrementer=!1;return R};
_.H(w_,_.K);w_.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"}}}};
w_.prototype.computeHasQuantityIncrementer=function(){var R;return!!_.n((R=this.data)==null?void 0:R.picker,cBG)};
w_.prototype.onLabelClick=function(){var R;(R=this.dropdownEl)==null||R.open()};
_.C([_.nG("ytd-dropdown-renderer"),_.k("design:type",Object)],w_.prototype,"dropdownEl",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],w_.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],w_.prototype,"quantityColor",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],w_.prototype,"compact",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.k("design:type",Object)],w_.prototype,"hasQuantityIncrementer",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],w_);
_.B(w_,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(bef!==void 0)return bef;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return bef=R},{mode:1});var FFG;var BTD;var uN=function(){return _.K.apply(this,arguments)||this};
_.H(uN,_.K);uN.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
uN.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
uN.prototype.updateTitle=function(){var R=this.disabledCartItemEntity;R.disableActionName&&this.set("data.title",Sb(R.disableActionName))};
uN.prototype.updateButton=function(){var R,A=(R=this.disabledCartItemEntity.undoCommand)==null?void 0:R.innertubeCommand;A!==void 0&&(this.set("data.actionButton.buttonRenderer.command",A),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
uN.prototype.entityChanged=uN.prototype.entityChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],uN.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uN.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],uN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(R,A){return _.mc(R.entities,"disabledCartItemEntity",A)}}),
_.k("design:type",Object)],uN.prototype,"disabledCartItemEntity",void 0);_.C([_.S(),_.k("design:type",Object)],uN.prototype,"data",void 0);_.C([_.vZ("disabledCartItemEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uN.prototype,"entityChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],uN);
_.B(uN,"ytd-disabled-cart-item-renderer",function(){if(BTD!==void 0)return BTD;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return BTD=R},{mode:1});_.bh("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var e7=function(){var R=_.K.apply(this,arguments)||this;R.compact=!1;R.hidden=!1;R.errorHidden=!1;R.noOnTap=!1;return R};
_.H(e7,_.K);_.l=e7.prototype;
_.l.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"}}}};
_.l.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.l.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var R=this.firstButtonElement;R.alignByText=!0;R.iconAlignByText=!0}};
_.l.computeNoOnTap=function(R){return!R};
_.l.updateQuantityColor=function(){if(this.pickerElement){var R,A=(R=this.commerceCartItemEntity)==null?void 0:R.quantityColor;this.pickerElement.quantityColor=A}};
_.l.updateTotalPriceColor=function(){var R,A=(R=this.commerceCartItemEntity)==null?void 0:R.totalPriceColor;if(A){var Y;R=_.n((Y=this.data)==null?void 0:Y.quantityPicker,lmH);if(Y=_.n(R==null?void 0:R.price,ilE))Y.textColor=A}};
_.l.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var R,A=(R=this.commerceCartItemEntity)==null?void 0:R.isHidden;A!==void 0&&(this.hidden=A)}};
_.l.updateHideErrorMessage=function(){var R,A=(R=this.commerceCartItemEntity)==null?void 0:R.hideErrorMessage;A!==void 0&&(this.errorHidden=A)};
_.l.updateQuantity=function(){var R=this,A,Y=(A=this.commerceCartItemEntity)==null?void 0:A.quantity,P;A=(P=this.commerceCartItemEntity)==null?void 0:P.totalPrice;if(Y){this.updateTotalPriceColor();this.updateQuantityColor();var E;P=_.n((E=this.data)==null?void 0:E.quantityPicker,lmH);if(E=_.n(P==null?void 0:P.price,ilE))E.text=A?{simpleText:A.content}:void 0;if(A=_.n(P==null?void 0:P.picker,cBG))A.quantity=Y;var z;if(E=(z=_.n(P==null?void 0:P.picker,xJN))==null?void 0:z.entries){z=!1;A=void 0;E=
_.x(E);for(P=E.next();!P.done;P=E.next())P=P.value,P.dropdownItemRenderer&&(A||(A=P.dropdownItemRenderer),P.dropdownItemRenderer.isSelected=!1,Y===P.dropdownItemRenderer.int32Value&&(z=!0,P.dropdownItemRenderer.isSelected=!0));!z&&A&&(A.isSelected=!0)}_.RK(this,function(){var c;R.set("data.quantityPicker",_.BO.unsafeClone((c=R.data)==null?void 0:c.quantityPicker))})}};
e7.prototype.onYtRendererstamperFinished=e7.prototype.onYtRendererstamperFinished;e7.prototype.entityChanged=e7.prototype.entityChanged;_.C([_.S(),_.k("design:type",Object)],e7.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e7.prototype,"compact",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],e7.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],e7.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],e7.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],e7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(R,A){return _.mc(R.entities,"commerceCartItemEntity",A)}}),
_.k("design:type",Object)],e7.prototype,"commerceCartItemEntity",void 0);_.C([_.S(),_.k("design:type",Object)],e7.prototype,"quantityPicker",void 0);_.C([_.S(),_.k("design:type",Object)],e7.prototype,"compactQuantityPicker",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e7.prototype,"hidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e7.prototype,"errorHidden",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.k("design:type",Object)],e7.prototype,"noOnTap",void 0);_.C([_.nG("ytd-commerce-cart-item-quantity-picker-renderer"),_.k("design:type",Object)],e7.prototype,"pickerElement",void 0);_.C([_.nG("yt-button-renderer"),_.k("design:type",Element)],e7.prototype,"firstButtonElement",void 0);
_.C([_.vZ("commerceCartItemEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e7.prototype,"entityChanged",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e7.prototype,"onYtRendererstamperFinished",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],e7);
_.B(e7,"ytd-commerce-cart-item-renderer",function(){if(FFG!==void 0)return FFG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return FFG=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var abS;var CTA;var qw=function(){return _.K.apply(this,arguments)||this};
_.H(qw,_.K);qw.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}}}}}};
qw.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
qw.prototype.updateCheckoutLineItems=function(){var R,A=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.checkoutLineItems;A&&(R=A.map(function(Y){a:{var P=Y.price,E=Y.description;switch(Y.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":Y={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Sb(E),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",
left:"CARD_ITEM_UX_SPACE_4"}}},price:{cardItemTextRenderer:{text:Sb(P),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:Y={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:Sb(E),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_2",
right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_2",left:"CARD_ITEM_UX_SPACE_0"}}},price:{cardItemTextRenderer:{text:Sb(P),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return Y}),this.set("data.summaryLineItems",R))};
qw.prototype.updateIsHidden=function(){var R,A=(R=this.commerceCartCheckoutButtonEntity)==null?void 0:R.isHidden;A!==void 0&&(this.hostElement.hidden=A)};
qw.prototype.entityChanged=qw.prototype.entityChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],qw.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],qw.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],qw.prototype,"data",void 0);_.C([_.S({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:q1P}),_.k("design:type",Object)],qw.prototype,"commerceCartCheckoutButtonEntity",void 0);_.C([_.vZ("commerceCartCheckoutButtonEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qw.prototype,"entityChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],qw);
_.B(qw,"ytd-commerce-cart-summary-renderer",function(){if(CTA!==void 0)return CTA;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return CTA=R},{mode:1});var hWN={};hWN.InjectBehavior=[Qb6.InjectBehavior];var oGA;var k7f;var La=function(){return _.K.apply(this,arguments)||this};
_.H(La,_.K);
La.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:_.fY("menuRenderer")}}};
La.prototype.onMenuTap=function(R){R.stopPropagation()};
_.Yh.Object.defineProperties(La.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 R,A;return!(((R=this.data)==null||!R.sectionHeading)&&((A=this.data)==null?void 0:A.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var R,A;return!(((R=this.data)==null||!R.image)&&((A=this.data)==null?void 0:A.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var R,A;return!(((R=this.data)==null||!R.menu)&&((A=this.data)==null?void 0:A.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.HeH.YtTappableItemBehavior),_.k("design:type",Object)],La.prototype,"ytTappableItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],La.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.accessibilityData"),_.k("design:type",String),_.k("design:paramtypes",[])],La.prototype,"ariaLabel",null);_.C([_.X("data.sectionHeading","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],La.prototype,"sectionHeadingVisible",null);_.C([_.X("data.image","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],La.prototype,"imageVisible",null);
_.C([_.X("data.menu","data.layout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],La.prototype,"menuVisible",null);_.C([_.CG({is:"yt-activity-item-renderer",disableElementRegistration:!0})],La);
_.B(La,"yt-activity-item-renderer",function(){if(k7f===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;oGA===void 0&&(oGA=document.createElement("template"));var P=oGA;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);k7f=R}R=k7f;return R},{mode:2});var G7H;var ZeA;var t2b;var w_q;var d_=function(){return _.K.apply(this,arguments)||this};
_.H(d_,_.K);
d_.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"}}}}};
d_.prototype.backgroundColorChanged_=function(){var R,A=(R=this.data)==null?void 0:R.backgroundColor;this.hostElement.style.backgroundColor=bN[A||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
d_.prototype.backgroundColorChanged_=d_.prototype.backgroundColorChanged_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],d_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],d_.prototype,"data",void 0);
_.C([_.vZ("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],d_.prototype,"backgroundColorChanged_",null);_.C([_.CG({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],d_);
_.B(d_,"yt-offer-item-upsell-renderer",function(){if(w_q===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;t2b===void 0&&(t2b=document.createElement("template"));var P=t2b;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);w_q=R}R=w_q;return R},{mode:2});_.bh("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var Rq=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};R.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return R};
_.H(Rq,_.K);_.l=Rq.prototype;
_.l.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:_.fY("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.l.computeContainerStyle_=function(R){return R};
_.l.computeContainerIsHidden_=function(R){return R&&!!R.isHidden};
_.l.computeShowSpinner_=function(R,A){return R&&A==="in-progress"};
_.l.computeShowMoreContentsButton_=function(R,A,Y,P,E){return!(!(P&&P.length||E&&E.length&&Y)||!R||A)};
_.l.onToggleButton_=function(R){var A=this;R.stopPropagation();this.isExpanded_=R.detail&&R.detail.toggled;var Y,P;this.isExpanded_&&!this.data.continuationSection.length&&((Y=this.data)==null?0:(P=Y.continuation)==null?0:P.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.xo(this.hostElement,"yt-load-next-continuation",function(E){return A.getContinuationUrl_(A.data.continuation.onClickContinuationData,E)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.sC(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.l.onShowMoreContentsButtonClicked_=function(R){var A=this;R.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.xo(this.hostElement,"yt-load-next-continuation",function(Y){return A.getContinuationUrl_(A.data.continuations[0].nextContinuationData,Y)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.sC(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.l.getContinuationUrl_=function(R,A){var Y=R.continuation;R=R.clickTrackingParams;var P=_.F9();R&&P&&_.qT(P,_.S5(R));return _.du(A,{continuation:Y})};
_.l.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var R=_.Mo(this.hostElement).querySelector("#continuation-section");R&&(R=R.querySelectorAll("ytmusic-item-section-renderer"))&&R.forEach(function(A){return A.classList.add("memberships-and-purchases")})};
_.l.dataChanged_=function(){var R;this.isExpanded_=!((R=this.data)==null||!R.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.l.updateCardOnClickCommand_=function(R){R=_.n(R,qhS);var A,Y;this.data&&((A=this.data)==null?0:A.targetId)&&R&&R.targetId===((Y=this.data)==null?void 0:Y.targetId)&&R.onClickCommand&&(this.data.onClickCommand=R.onClickCommand,this.isOnClickCommand_=!0)};
_.l.backgroundColorChanged_=function(){var R,A=(R=this.data)==null?void 0:R.backgroundColor;this.hostElement.style.backgroundColor=bN[A||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
Rq.prototype.backgroundColorChanged_=Rq.prototype.backgroundColorChanged_;Rq.prototype.dataChanged_=Rq.prototype.dataChanged_;Rq.prototype.nextContinuationDataUpdated_=Rq.prototype.nextContinuationDataUpdated_;Rq.prototype.onToggleButton_=Rq.prototype.onToggleButton_;_.C([_.U(_.cA),_.k("design:type",Object)],Rq.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Rq.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Oo.YtNextContinuationBehavior),_.k("design:type",Object)],Rq.prototype,"ytNextContinuationBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.C([_.U(hWN.InjectBehavior),_.k("design:type",Object)],Rq.prototype,"injectBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Rq.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Rq.prototype,"compact",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Rq.prototype,"isExpanded_",void 0);_.C([_.S({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.k("design:type",String)],Rq.prototype,"containerStyle_",void 0);_.C([_.S({value:"not-started"}),_.k("design:type",String)],Rq.prototype,"continuationStatus_",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.k("design:type",Boolean)],Rq.prototype,"showSpinner_",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Rq.prototype,"isOnClickCommand_",void 0);_.C([_.S({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.k("design:type",Boolean)],Rq.prototype,"showMoreContentsButton_",void 0);
_.C([_.S({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(R,A){return!A||R.entities?null:_.mc(R.entities,"cardItemContainerEntity",A)}}),
_.k("design:type",Object)],Rq.prototype,"cardItemContainerEntity_",void 0);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Rq.prototype,"onToggleButton_",null);_.C([_.Qa("yt-next-continuation-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rq.prototype,"nextContinuationDataUpdated_",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rq.prototype,"dataChanged_",null);_.C([_.vZ("data.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rq.prototype,"backgroundColorChanged_",null);_.C([_.CG({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],Rq);
_.B(Rq,"yt-card-item-container-renderer",function(){if(ZeA===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;G7H===void 0&&(G7H=document.createElement("template"));var P=G7H;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ZeA=R}R=ZeA;return R},{mode:2});var Ay=function(){return _.K.apply(this,arguments)||this};
_.H(Ay,_.K);Ay.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"}}}};
Ay.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Ay.prototype.computeLoadingHidden=function(){var R;return!((R=this.commerceCartPageStateEntity)==null?0:R.cartActionInProgress)};
Ay.prototype.updateNotification=function(){var R,A=(R=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:R.summaryText;A&&this.set("data.cartNotification",Sb(A))};
Ay.prototype.notificationEntityChanged=Ay.prototype.notificationEntityChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],Ay.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ay.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],Ay.prototype,"data",void 0);_.C([_.S({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(R,A){return _.mc(R.entities,"commerceCartExpandableNotificationEntity",A)}}),
_.k("design:type",Object)],Ay.prototype,"commerceCartExpandableNotificationEntity",void 0);_.C([_.S({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(R,A){return _.mc(R.entities,"commerceCartPageStateEntity",A)}}),
_.k("design:type",Object)],Ay.prototype,"commerceCartPageStateEntity",void 0);_.C([_.nG("#spinner"),_.k("design:type",HTMLElement)],Ay.prototype,"spinner",void 0);_.C([_.vZ("commerceCartExpandableNotificationEntity","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ay.prototype,"notificationEntityChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Ay);
_.B(Ay,"ytd-commerce-cart-renderer",function(){if(abS!==void 0)return abS;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return abS=R},{mode:1});var uKE;var Yv=function(){var R=_.K.apply(this,arguments)||this;R.bigImage=!1;return R};
_.H(Yv,_.K);_.Yh.Object.defineProperties(Yv.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.placeholderImageUrl}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Yv.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Yv.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Yv.prototype,"bigImage",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yv.prototype,"placeholderImageUrl",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Yv);
_.B(Yv,"ytd-empty-product-shelf-renderer",function(){if(uKE!==void 0)return uKE;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return uKE=R},{mode:1});var eWA;var Ph=function(){var R=_.K.apply(this,arguments)||this;R.itemStyle="link-item";R.watchMetadataRefresh=!1;R.skinnyMode=!1;R.metaPanel=!1;R.inStructuredDescription=!1;R.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};R.updateOnResizeDebouncer=null;return R};
_.H(Ph,_.K);_.l=Ph.prototype;_.l.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.l.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"}}}}};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.l.attachVEs=function(R){R.trackingParams&&_.rU().graftServerVe(R.trackingParams)};
_.l.handleUpdateMerchShelfAction=function(R){var A=this,Y=_.n(R.updateMerchandiseShelfAction.merchandiseShelf,_.X9H);Y&&(Y.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){A.attachVEs(Y);A.data=Y},Number(Y.renderDelayMs))):(this.attachVEs(Y),this.data=Y))};
_.l.updateOnResize=function(){if(this.JSC$16837_scrollContainer!==void 0&&this.JSC$16837_scrollContainer.clientWidth!==0&&this.items!==void 0){var R=this.JSC$16837_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-R));this.ytdHorizontalListBehavior.reposition_();var A;switch((A=this.data)==null?void 0:A.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var Y,
P;((Y=this.data)==null?void 0:(P=Y.items)==null?void 0:P.length)===1?this.itemStyle="cta-item":this.itemStyle=R>=740?"large-item":"small-item"}}};
_.l.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.TJ(this.updateOnResizeDebouncer,_.iX.after(100),this.updateOnResize)};
Ph.prototype.debouncedUpdateOnResize=Ph.prototype.debouncedUpdateOnResize;Ph.prototype.dataChanged=Ph.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ph.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.DP.YtdHorizontalListBehavior),_.k("design:type",Object)],Ph.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ph.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ph.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ph.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ph.prototype,"itemStyle",void 0);_.C([_.S({value:6}),_.k("design:type",Number)],Ph.prototype,"initialCount",void 0);
_.C([_.S({value:"data.items"}),_.k("design:type",String)],Ph.prototype,"itemsPath",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ph.prototype,"watchMetadataRefresh",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ph.prototype,"skinnyMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ph.prototype,"metaPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ph.prototype,"inStructuredDescription",void 0);
_.C([_.nG("#items"),_.k("design:type",HTMLDivElement)],Ph.prototype,"items",void 0);_.C([_.nG("#scroll-container"),_.k("design:type",HTMLDivElement)],Ph.prototype,"JSC$16837_scrollContainer",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"dataChanged",null);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ph.prototype,"debouncedUpdateOnResize",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Ph);
_.B(Ph,"ytd-merch-shelf-renderer",function(){if(eWA!==void 0)return eWA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return eWA=R},{mode:2});var qcH;var Eq=function(){var R=_.K.apply(this,arguments)||this;R.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 R};
_.H(Eq,_.K);_.l=Eq.prototype;
_.l.addBackstagePostAction=function(R){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(R=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",R))&&(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:R}):this.set("data.contents",[{backstagePostThreadRenderer:R}]))};
_.l.addBackstageCommentAction=function(R){var A=this.get("addBackstageCommentAction.parentId",R);R=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",R);if(A&&R){A=this.postIdToIndices(A);for(var Y=0;Y<A.length;Y++){var P=A[Y];if(P<0)break;P="data.contents."+P+".backstagePostThreadRenderer.comments";this.get(P)&&(this.get(P+".backstageCommentsRenderer.contents")&&this.push(P+".backstageCommentsRenderer.contents",{commentThreadRenderer:R}),this.get(P+".backstageCommentsRenderer.teaserContents")?
this.push(P+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:R}):this.set(P+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:R}]))}}};
_.l.addBackstageReplyAction=function(R){var A=this.get("addBackstageReplyAction.parentId",R);R=this.get("addBackstageReplyAction.renderer.commentRenderer",R);A&&R&&this.setCreatorReply(A,R)};
_.l.banAuthorAction=function(R){var A=this.get("banAuthorAction.commentId",R);A&&(R=this.get("banAuthorAction.parentCommentId",R)||this.getParentPostId(A),this.removeFromStream(A,R))};
_.l.hideReportedCommentAction=function(R){var A=this.get("hideReportedCommentAction.commentId",R);A&&((R=this.get("hideReportedCommentAction.parentCommentId",R))||(R=this.getParentPostId(A)),this.removeFromStream(A,R))};
_.l.replaceBackstageCommentAction=function(R){var A=this.get("replaceBackstageCommentAction.commentId",R),Y=this.get("replaceBackstageCommentAction.parentId",R);R=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",R);if(A&&Y&&R){Y=this.postIdToIndices(Y);for(var P=0;P<Y.length;P++){var E=Y[P];if(E<0)break;var z=this.commentIdToIndex(A,E,!1);if(z>=0){var c=this.get("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z+".commentThreadRenderer.replies.commentRepliesRenderer");
c&&(R.replies={commentRepliesRenderer:c});this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",z,1,{commentThreadRenderer:R})}z=this.commentIdToIndex(A,E,!0);if(z>=0){if(c=this.get("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(z+".commentThreadRenderer.replies.commentRepliesRenderer")))R.replies={commentRepliesRenderer:c};this.splice("data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
z,1,{commentThreadRenderer:R})}}}};
_.l.replaceBackstagePostAction=function(R){var A=this.get("replaceBackstagePostAction.itemId",R);if(A){A=this.postIdToIndices(A);for(var Y=0;Y<A.length;Y++){var P=A[Y];if(P<0)break;var E=this.getPostRendererType(P),z=this.get("replaceBackstagePostAction.renderer."+E,R);if(!z&&E!=="sharedPostRenderer")break;var c=!1;z||(c=!0,z=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",R));if(!z)break;var M={};c?(_.pC(M,q3S,z),this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
M)):(_.pC(M,new _.lU(E),z),this.set("data.contents."+P+".backstagePostThreadRenderer.post",M))}}};
_.l.replaceBackstageReplyAction=function(R){var A=this.get("replaceBackstageReplyAction.replyId",R),Y=this.get("replaceBackstageReplyAction.parentId",R);R=this.get("replaceBackstageReplyAction.renderer.commentRenderer",R);A&&R&&Y&&this.setCreatorReply(Y,R)};
_.l.removeCommentAction=function(R){var A=this.get("removeCommentAction.commentId",R);if(A){var Y=this.get("removeCommentAction.parentCommentId",R);Y&&this.get("removeCommentAction.isCreatorReply",R)?this.setCreatorReply(Y,void 0):(Y||(Y=this.getParentPostId(A)),this.removeFromStream(A,Y))}};
_.l.setCreatorReply=function(R,A){var Y=this.getParentPostId(R);if(Y){Y=this.postIdToIndices(Y);for(var P=0;P<Y.length;P++){var E=Y[P];if(E<0)break;var z=this.commentIdToIndex(R,E,!1);if(z>=0){var c="data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z;z=c+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";c+=".commentThreadRenderer.replies";A==void 0?(this.set(c,{}),this.set(z,!1)):(this.set(c,{commentRepliesRenderer:{teaserContents:[{commentRenderer:A}]}}),
this.set(c+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(z,!0))}z=this.commentIdToIndex(R,E,!0);z>=0&&(z="data.contents."+E+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+z,E=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",z+=".commentThreadRenderer.replies",A==void 0?(this.set(z,{}),this.set(E,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:A}]}}),this.set(E,!0)))}}};
_.l.removeFromStream=function(R,A){if(A){A=this.postIdToIndices(A);for(var Y=0;Y<A.length;Y++){var P=A[Y];if(P<0)break;var E=this.commentIdToIndex(R,P,!1);E>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",E,1);E=this.commentIdToIndex(R,P,!0);E>=0&&this.splice("data.contents."+P+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",E,1);P="data.contents."+P+".backstagePostThreadRenderer.post.backstagePostRenderer";
E=P+".backstageAttachment.pollRenderer.votedCommentId";this.get(E)===R&&(this.set(E,null),this.set(P+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(A=this.postIdToIndices(R).reverse(),Y=0;Y<A.length;Y++){P=A[Y];if(P<0)break;E=this.getPostRendererType(P);var z=this.get("backstagePostThreadRenderer.post."+E,this.data.contents[P]);z.postId===R?this.splice("data.contents",P,1):E==="sharedPostRenderer"&&this.set("data.contents."+P+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);z.scheduledPublishTimeSec&&_.OC(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.l.postIdToIndices=function(R){for(var A=[],Y=0;Y<this.data.contents.length;Y++){var P=this.getPostRendererType(Y);this.get("backstagePostThreadRenderer.post."+P+".postId",this.data.contents[Y])===R&&A.push(Y);if(P==="sharedPostRenderer"){var E=this.get("backstagePostThreadRenderer.post."+P+".originalPost.backstagePostRenderer.postId",this.data.contents[Y]);P=this.get("backstagePostThreadRenderer.post."+P+".originalPost.postRenderer.postId",this.data.contents[Y]);E!==R&&P!==R||A.push(Y)}}return A};
_.l.commentIdToIndex=function(R,A,Y){if(A<0)return-1;var P,E,z,c,M=_.n((P=this.data)==null?void 0:(E=P.contents)==null?void 0:(z=E[A])==null?void 0:(c=z.backstagePostThreadRenderer)==null?void 0:c.comments,uwq);return(A=Y?M==null?void 0:M.teaserContents:M==null?void 0:M.contents)&&A.length?A.findIndex(function(N){return _.n(N,IuA).comment.commentRenderer.commentId===R}):-1};
_.l.getParentPostId=function(R){R=R.split(".");if(R[1])return R[0]};
_.l.getPostRendererType=function(R){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[R])?"sharedPostRenderer":"backstagePostRenderer"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Eq.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Eq.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-backstage-items"})],Eq);
_.B(Eq,"ytd-backstage-items",function(){if(qcH!==void 0)return qcH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return qcH=
R},{mode:1});var LFG;var dZz={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},zz=function(){var R=_.K.apply(this,arguments)||this;R.disablePrescanVisibility=!0;R.canScheduleJobs=!0;R.engagementPanel=!1;R.hidePanelButton=!1;R.isWatchGrid=!1;R.hasShownSubscribersOnlyDisclaimer=!1;R.actionMap=
{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"};return R};
_.H(zz,_.K);_.l=zz.prototype;_.l.created=function(){this.initCommentsCsi_();_.v("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_")};
_.l.contentsChanged_=function(){var R;(R=this.data)!=null&&R.contents&&this.tickForCommentsTimer_("cml")};
_.l.headerChanged_=function(){var R;(R=this.data)!=null&&R.header&&this.tickForCommentsTimer_("cmhl")};
_.l.initCommentsCsi_=function(){_.pj("wn_comments");var R=_.F9();R&&_.bE({clientScreenNonce:R},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.l.createCommentAction_=function(R){R=_.BO.unsafeClone(R);var A,Y;if(R=(A=_.n(R,gyz))==null?void 0:(Y=A.contents)==null?void 0:Y.commentThreadRenderer){var P,E,z,c,M,N;!this.isBackstage&&((P=this.data)==null?0:(E=P.header)==null?0:(z=E.commentsHeaderRenderer)==null?0:(c=z.createRenderer)==null?0:(M=c.commentSimpleboxRenderer)==null?0:(N=M.zeroStep)==null?0:N.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var y,
m,T;this.isBackstage&&_.n((y=this.data)==null?void 0:(m=y.header)==null?void 0:(T=m.commentsHeaderRenderer)==null?void 0:T.zeroStateMessage,L5S)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(R)}};
_.l.doReplyInsert_=function(R,A,Y,P){P?this.splice(R,P,0,A):this.push(R,A)};
_.l.getRepliesPath_=function(R){return"data.contents."+R+".commentThreadRenderer.replies"};
_.l.getRepliesContentsPath_=function(R,A){R=this.getRepliesPath_(R);return A?R+".commentRepliesRenderer.teaserContents":R+".commentRepliesRenderer.contents"};
_.l.showSubscribersOnlyDisclaimer_=function(R){(R=R.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(R=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(R))&&(_.OC(this.hostElement,"yt-open-popup-action",[R,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.l.createCommentReplyAction_=function(R){R=_.BO.unsafeClone(R);var A=_.n(R,nyA);if(R=A==null?void 0:A.contents){var Y=this.commentIdToIndex_(A==null?void 0:A.parentCommentId);if(!(Y<0)){var P=this.getRepliesPath_(Y);if(this.get(P)){A=A.replyToCommentId;P=this.getRepliesContentsPath_(Y,!1);if(this.get(P)){var E=this.get(P).length,z=P+"."+(E-1)+".continuationItemRenderer";this.get(z+".button")?(z=this.replyIdToIndex_(A,Y,!1),this.doReplyInsert_(P,R,z,E-1)):this.get(z)||(E=this.replyIdToIndex_(A,Y,
!1),this.doReplyInsert_(P,R,E,null))}P=this.getRepliesContentsPath_(Y,!0);this.get(P)?(Y=this.replyIdToIndex_(A,Y,!0),(!A||Y>=0)&&this.doReplyInsert_(P,R,Y,null)):this.set(P,[R])}else this.set(P,{commentRepliesRenderer:{teaserContents:[R]}})}}};
_.l.hideReportedCommentAction_=function(R){var A=_.n(R,oyb);if(R=A==null?void 0:A.commentId)(A=this.get("parentCommentId",A))||(A=this.getParentCommentId_(R)),this.remove_(R,A)};
_.l.getParentCommentId_=function(R){R=R.split(".");if(R[1])return R[0]};
_.l.removeCommentAction_=function(R){var A=_.n(R,$l7);if(R=A==null?void 0:A.commentId)A=(A==null?void 0:A.parentCommentId)||this.getParentCommentId_(R),this.remove_(R,A)};
_.l.pinCommentAction_=function(R){R=_.BO.unsafeClone(R);var A=_.n(R,UlA);A!=null&&A.commentId&&(R=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",R))&&(this.remove_(A.commentId),this.insert_(R,!0))};
_.l.unpinCommentAction_=function(R){R=_.BO.unsafeClone(R);R=_.n(R,X$Z);if(R!=null&&R.commentId){var A,Y,P=(A=R.actionResult)==null?void 0:(Y=A.update)==null?void 0:Y.commentThreadRenderer;P&&(this.remove_(R.commentId),this.insert_(P))}};
_.l.banAuthorAction_=function(R){var A=_.n(R,vyq);A!=null&&A.commentId&&(R=A.commentId,A=A.parentCommentId||this.getParentCommentId_(R),this.remove_(R,A))};
_.l.commentIdToIndex_=function(R){var A;return R&&(A=this.data)!=null&&A.contents?this.data.contents.findIndex(function(Y){Y=Y.commentThreadRenderer;var P;return R===((Y==null?void 0:Y.commentViewModel)&&((P=_.n(Y.commentViewModel,p$H))==null?void 0:P.commentId))}):-1};
_.l.insert_=function(R,A){A=A===void 0?!1:A;var Y,P;if((Y=this.data)==null?0:(P=Y.contents)==null?0:P.some(function(z){return!!z.commentThreadRenderer}))for(Y=0,P=this.data.contents.length;Y<P;Y++){var E=this.data.contents[Y].commentThreadRenderer;
if(dZz[R.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=dZz[E.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){A&&dZz[R.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===dZz[E.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",Y,1,{commentThreadRenderer:R}):this.splice("data.contents",Y,0,{commentThreadRenderer:R});break}}else this.set("data.contents",[{commentThreadRenderer:R}])};
_.l.doReplyRemove_=function(R,A,Y){R=this.replyIdToIndex_(R,A,Y);R<0||(A=this.getRepliesContentsPath_(A,Y),this.splice(A,R,1))};
_.l.remove_=function(R,A){A=this.commentIdToIndex_(A);A<0?(A=this.commentIdToIndex_(R),A<0||this.splice("data.contents",A,1)):_.v("web_delhi_comment_threads")||(this.doReplyRemove_(R,A,!1),this.doReplyRemove_(R,A,!0))};
_.l.replyIdToIndex_=function(R,A,Y){if(A<0)return-1;A=this.getRepliesContentsPath_(A,Y);A=this.get(A);if(!A||!A.length)return-1;Y=0;for(var P=A.length;Y<P;Y++){var E=void 0,z=void 0;if(((E=A[Y])==null?void 0:(z=E.commentViewModel)==null?void 0:z.commentId)===R)return Y}return-1};
_.l.tickForCommentsTimer_=function(R){_.Bk(R,void 0,"wn_comments")};
_.l.reloadComments_=function(R){R=_.n(R,bAA);_.n(R==null?void 0:R.command,_.oE)&&_.sC(this.hostElement,[R==null?void 0:R.command])};
_.Yh.Object.defineProperties(zz.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!((R=this.data)==null?0:(A=R.header)==null?0:(Y=A.commentsHeaderRenderer)==null?0:Y.isBackstageContent)}}});
_.Yh.Object.defineProperties(zz,{template:{configurable:!0,enumerable:!0,get:function(){if(LFG===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);LFG=R}R=LFG;return R}}});
zz.prototype.showSubscribersOnlyDisclaimer_=zz.prototype.showSubscribersOnlyDisclaimer_;zz.prototype.headerChanged_=zz.prototype.headerChanged_;zz.prototype.contentsChanged_=zz.prototype.contentsChanged_;_.C([_.U(_.Qg),_.k("design:type",Object)],zz.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.n4u.YtHostElementBehavior),_.k("design:type",Object)],zz.prototype,"ytHostElementBehavior",void 0);
_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",Function)],zz.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],zz.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zz.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.header.commentsHeaderRenderer.isBackstageContent"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zz.prototype,"isBackstage",null);_.C([_.S(),_.k("design:type",Object)],zz.prototype,"disablePrescanVisibility",void 0);_.C([_.S(),_.k("design:type",Object)],zz.prototype,"canScheduleJobs",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zz.prototype,"engagementPanel",void 0);
_.C([_.S(),_.k("design:type",Object)],zz.prototype,"hidePanelButton",void 0);_.C([_.S(),_.k("design:type",Object)],zz.prototype,"isWatchGrid",void 0);_.C([_.S(),_.k("design:type",Object)],zz.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);_.C([_.vZ("data.contents"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zz.prototype,"contentsChanged_",null);
_.C([_.vZ("data.header"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zz.prototype,"headerChanged_",null);_.C([_.Qa("yt-show-subscribers-only-disclaimer"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zz.prototype,"showSubscribersOnlyDisclaimer_",null);_.C([_.F({is:"ytd-comments"})],zz);var iq=function(){return _.rg.apply(this,arguments)||this};
_.H(iq,_.rg);_.l=iq.prototype;_.l.bindIf=function(R,A,Y){return R?A:Y};
_.l.bindIfDefined=function(R,A){return R!==void 0?R:A};
_.l.booleanString=function(R){return(!!R).toString()};
_.l.equals=function(){for(var R=_.Ge.apply(0,arguments),A=R[0],Y=1;Y<R.length;Y++)if(A!=R[Y])return!1;return!0};
_.l.isGreaterThan=function(R,A){return R>A};
_.l.isLessThan=function(R,A){return R<A};
_.l.logicalAND=function(){for(var R=_.Ge.apply(0,arguments),A=!!R[0],Y=1;Y<R.length;Y++)A=A&&!!R[Y];return A};
_.l.logicalOR=function(){for(var R=_.Ge.apply(0,arguments),A=!!R[0],Y=1;Y<R.length;Y++)A=A||!!R[Y];return A};
_.l.toBool=function(R){return!!R};
iq.prototype.toBool=iq.prototype.toBool;iq.prototype.logicalOR=iq.prototype.logicalOR;iq.prototype.logicalAND=iq.prototype.logicalAND;iq.prototype.isLessThan=iq.prototype.isLessThan;iq.prototype.isGreaterThan=iq.prototype.isGreaterThan;iq.prototype.equals=iq.prototype.equals;iq.prototype.booleanString=iq.prototype.booleanString;iq.prototype.bindIfDefined=iq.prototype.bindIfDefined;iq.prototype.bindIf=iq.prototype.bindIf;_.C([_.Do()],iq);_.RZb=[iq.prototype];var A58;var YIz;var lq=function(){return _.K.apply(this,arguments)||this};
_.H(lq,_.K);lq.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
lq.prototype.onBackIconTap_=function(){window.history.back()};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lq.prototype,"data",void 0);_.C([_.CG({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],lq);
_.B(lq,"yt-header-with-back-renderer",function(){if(YIz===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;A58===void 0&&(A58=document.createElement("template"));var P=A58;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);YIz=R}R=YIz;return R},{mode:2});var PYH;var E3D;var xv=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(xv,_.K);_.l=xv.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R,this.setUrl())};
_.l.dataChanged=function(){var R=this;if(this.data){var A=this.setUrl();A&&_.zs({destination:window,iframe:this.iframe,origin:_.FmS(A.toString()),channelName:"yt-iframe",onMessage:function(Y){(Y=R.getCommunicationCommand(Y.data))&&R.ytComponentBehavior.resolveCommand(Y)},
onEstablished:function(){}})}};
_.l.setUrl=function(){if(this.data&&this.data.iframeUrl){var R=_.pn(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(R)return _.Lq(this.iframe,R),R}};
_.l.getCommunicationCommand=function(R){var A;if((A=this.data)!=null&&A.onCommunicationCommandsMap){A=this.data.onCommunicationCommandsMap.find(function(E){return E.key===R});
if(A==null?0:A.value)return A==null?void 0:A.value;try{var Y=h18(_.eP(R)),P=this.data.onCommunicationCommandsMap.find(function(E){return E.key===(Y==null?void 0:Y.getMethodName())});
if(P==null?0:P.value)return P==null?void 0:P.value}catch(E){}}};
xv.prototype.dataChanged=xv.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],xv.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xv.prototype,"data",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],xv.prototype,"isDarkTheme",void 0);_.C([_.nG("#iframe"),_.k("design:type",HTMLIFrameElement)],xv.prototype,"iframe",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xv.prototype,"dataChanged",null);_.C([_.CG({is:"yt-iframe-renderer",disableElementRegistration:!0})],xv);
_.B(xv,"yt-iframe-renderer",function(){if(E3D===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;PYH===void 0&&(PYH=document.createElement("template"));var P=PYH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);E3D=R}R=E3D;return R},{mode:2});_.ch=function(R){_.KJ.call(this);this.callback=R;this.bezier=new S5Z(0,0,.4,0,.2,1,1,1);this.delay=new _.zr(this.next,window,this);this.JSC$16876_animating=!1;_.gz(this,this.delay)};
_.H(_.ch,_.KJ);_.ch.prototype.isAnimating=function(){return this.JSC$16876_animating};
_.ch.prototype.start=function(R,A,Y){this.config={from:R,to:A,duration:Y,startTime:(0,_.iB)()};this.JSC$16876_animating=!0;this.next()};
_.ch.prototype.stop=function(){this.delay.stop();this.JSC$16876_animating=!1;this.config=void 0};
_.ch.prototype.next=function(){if(this.config){var R=this.config,A=R.from,Y=R.to,P=R.duration;R=R.startTime;var E=(0,_.iB)()-R;R=this.bezier;P=K0f(R,E/P);if(P==0)R=R.y0;else if(P==1)R=R.y3;else{E=SN(R.y0,R.y1,P);var z=SN(R.y1,R.y2,P);R=SN(R.y2,R.y3,P);E=SN(E,z,P);z=SN(z,R,P);R=SN(E,z,P)}R=_.Sv(R,0,1);this.callback(A+(Y-A)*R);R<1?this.delay.start():this.JSC$16876_animating=!1}};_.Oq=new _.cP("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var zZ7={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},lD8=function(R,A,Y,P){_.KJ.call(this);this.JSC$16887_miniAppId=R;this.localReleaseId=A;this.derivedDeviceInterface=Y;this.isForeground=P;this.JSC$16887_playNonceResolver=new _.y2;this.playPingTimerId=NaN;this.playPingIntervalMs=_.cU("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.cU("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.v("enable_displaying_ppn");this.JSC$16887_miniAppClientDataProvider=_.is().resolve(_.Oq);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;iT8(this);var E=setTimeout(function(){_.pK(new _.XN("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$16887_playNonceResolver.promise.then(function(){clearTimeout(E)})};
_.H(lD8,_.KJ);var c5S=function(R,A){R.JSC$16887_playNonceResolver.resolve(A!=null?A:bP(8));R.enableDisplayingPpn&&xOE(R).then(function(Y){R.JSC$16887_miniAppClientDataProvider.clientData.set("post_play_nonce",Y)})},xOE=function(R){return _.O(function(A){return A.nextAddress==1?A.yield(R.JSC$16887_playNonceResolver.promise,2):A.return(A.yieldResult)})},iT8=function(R){var A,Y;
_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$16887_playNonceResolver.promise,2);A=P.yieldResult;Y={miniAppInfo:{externalPostId:R.JSC$16887_miniAppId,localReleaseId:R.localReleaseId,postPlayNonce:A,derivedDeviceInterface:R.derivedDeviceInterface}};_.bE(Y);_.XH(P)})},Mgq=function(R){R.state!==0?_.pK(new _.XN("[MiniAppPlayLogger] recordPlayStart failed with state "+zZ7[R.state])):(R.state=1,Mk(R,"ma_cl"),sq(R,"PLAY_EVENT_TYPE_PLAY_START"),OTN(R))},sxf=function(R){R.isForeground=!1;
sq(R,"PLAY_EVENT_TYPE_PLAY_PAUSE")},NXb=function(R){R.state!==1&&R.state!==2?_.pK(new _.XN("[MiniAppPlayLogger] recordPlayEnd failed with state "+zZ7[R.state])):(R.state=3,window.clearInterval(R.playPingTimerId),R.playPingTimerId=NaN,vg6(),sq(R,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},VgG=function(R,A){R.state===2&&R.gameReady&&(R.firstClickRecorded?Date.now()-R.clickRecordedMs<R.playClickIntervalMs||(R.clickRecordedMs=Date.now(),sq(R,"PLAY_EVENT_TYPE_PLAY_CLICK")):A&&(Mk(R,"ma_fua"),sq(R,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),R.firstClickRecorded=!0,R.clickRecordedMs=Date.now()))};
lD8.prototype.logError=function(R){var A=this,Y;_.O(function(P){if(P.nextAddress==1)return R.metadata.externalPostId=A.JSC$16887_miniAppId,Y=R.metadata,P.yield(Promise.race([A.JSC$16887_playNonceResolver.promise,new Promise(function(E){setTimeout(function(){E("")},3E4)})]),2);
Y.postPlayNonce=P.yieldResult;R.metadata.localReleaseId=A.localReleaseId;R.loggingError.level="WARNING";_.bj(R.loggingError,R.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:R.metadata});_.XH(P)})};
var J5N=function(R,A,Y,P){var E,z,c,M,N,y;_.O(function(m){if(m.nextAddress==1)return m.yield(R.JSC$16887_playNonceResolver.promise,2);E=m.yieldResult;z={externalPostId:R.JSC$16887_miniAppId,localReleaseId:R.localReleaseId,postPlayNonce:E,sdkVersion:Y,api:A};P!==void 0&&(z.networkRequestsMeasurement={networkRequests:_.sU(P,1),cachedRequests:_.sU(P,2),transferredBytes:_.sU(P,3)},(c=P)==null?0:_.mh(c,xN,6))&&(z.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((M=_.cG(P,
xN,6))==null?void 0:I2(M,1))||"0",cacheHits:((N=_.cG(P,xN,6))==null?void 0:I2(N,2))||"0",cachedBytes:((y=_.cG(P,xN,6))==null?void 0:I2(y,3))||"0"});_.Wj("miniAppSdkUsage",z);_.XH(m)})},mOD=function(R,A,Y){var P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h;
_.O(function(L){if(L.nextAddress==1)return L.yield(R.JSC$16887_playNonceResolver.promise,2);P=L.yieldResult;E={externalPostId:R.JSC$16887_miniAppId,localReleaseId:R.localReleaseId,postPlayNonce:P,sdkVersion:Y,measurementWindow:{startTimestampMs:String(Uk(A,1)),endTimestampMs:String(Uk(A,2))},frameRate:{averageFrameTimeDeltaMs:$B(A,3),averageFrameIdleTimeMs:$B(A,4)}};_.mh(A,cM,5)&&(E.networkRequests={networkRequests:(z=yB(A))==null?void 0:_.sU(z,1),cachedRequests:(c=yB(A))==null?void 0:_.sU(c,2),transferredBytes:(M=
yB(A))==null?void 0:_.sU(M,3),sameOriginStatusCodeToCounts:y5D((N=yB(A))==null?void 0:SWV(N,4)),crossOriginStatusCodeToCounts:y5D((y=yB(A))==null?void 0:SWV(y,5))},(m=yB(A))==null?0:_.mh(m,xN,6))&&(E.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((T=yB(A))==null?void 0:(Q=_.cG(T,xN,6))==null?void 0:I2(Q,1))||"0",cacheHits:((g=yB(A))==null?void 0:(r=_.cG(g,xN,6))==null?void 0:I2(r,2))||"0",cachedBytes:((I=yB(A))==null?void 0:(b=_.cG(I,xN,6))==null?void 0:I2(b,3))||"0"});_.mh(A,
GxD,7)&&(E.gameCapture={averageFrameTimeDeltaMs:(p=_.cG(A,GxD,7))==null?void 0:$B(p,1),averageFrameIdleTimeMs:(h=_.cG(A,GxD,7))==null?void 0:$B(h,2)});_.Wj("miniAppPerformanceMetrics",E);_.XH(L)})},TXq=function(R,A){var Y,P;
return _.O(function(E){if(E.nextAddress==1)return E.yield(R.JSC$16887_playNonceResolver.promise,2);Y=E.yieldResult;P={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:R.JSC$16887_miniAppId,postPlayNonce:Y,miniAppReleaseId:R.localReleaseId},derivedDeviceInterface:R.derivedDeviceInterface,adTriggerType:A,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.Wj("miniAppAdEvent",P);_.XH(E)})};
lD8.prototype.disposeInternal=function(){_.KJ.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var sq=function(R,A,Y,P){Y=Y===void 0?{}:Y;P=P===void 0?!1:P;var E,z,c,M;_.O(function(N){if(N.nextAddress==1)return E=R.isForeground,z=R.beforeReady,N.yield(R.JSC$16887_playNonceResolver.promise,2);c=N.yieldResult;M={externalPostId:R.JSC$16887_miniAppId,localReleaseId:R.localReleaseId,derivedDeviceInterface:R.derivedDeviceInterface,postPlayNonce:c,type:A};Y.sequenceGroup=c;M.playState=z?"PLAY_STATE_NOT_READY":E?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Wj("miniAppPlayEvent",M,
Y);P&&_.j_();_.XH(N)})},Mk=function(R,A){var Y;
_.O(function(P){if(P.nextAddress==1)return Y=(0,_.iB)(),P.yield(R.JSC$16887_playNonceResolver.promise,2);_.Fh(A,Y);_.XH(P)})},OTN=function(R){isNaN(R.playPingTimerId)&&(R.playPingTimerId=_.yQ(function(){R.state!==1&&R.state!==2?_.pK(new _.XN("[MiniAppPlayLogger] reportPlayPing failed with state "+zZ7[R.state])):sq(R,"PLAY_EVENT_TYPE_PLAY_PING")},R.playPingIntervalMs))},y5D=function(R){return Array.from(R.entries()).map(function(A){var Y=_.x(A);
A=Y.next().value;Y=Y.next().value;return{key:A,value:Y}})};var Qxq=function(){},v3E=function(R,A){R.showMiniAppAdCommand=A.showMiniAppAdCommand;
R.isEmbeddedInWebview=A.isEmbeddedInWebview;R.playLogger=A.playLogger},n3Z=function(R,A){var Y;
return _.O(function(P){if(P.nextAddress==1){if(!R.showMiniAppAdCommand||!R.isEmbeddedInWebview)return P.return(g3H(R,A));R.adResolver=new _.y2;var E=new he;Y=_.OF(E,3,A);jb(R.showMiniAppAdCommand,nkf(Y));return P.yield(R.adResolver.promise,2)}return P.return(P.yieldResult)})};
Qxq.prototype.onAdFinished=function(R){R=nBA(R);var A;(A=this.adResolver)==null||A.resolve(R)};
var g3H=function(R,A){var Y;return _.O(function(P){if(P.nextAddress==1)P=P.yield((Y=R.playLogger)==null?void 0:TXq(Y,ha6(A)),2);else{var E=P.return;var z=new gBf;z=_.OF(z,1,2);P=E.call(P,z)}return P})};var HTS=new _.cP("INNERTUBE_MANAGER_TOKEN");var r58=function(){this.callbacks={}};
r58.prototype.initialize=function(R){var A=this;this.callbacks=R;window.youtubewebview?window.youtubewebview.onmessage=function(Y){DOG(A,Y)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(Y){DOG(A,Y)})};
var DOG=function(R,A){if(A.data)try{var Y=h18(A.data);if(_.vF(_.yT(Y,1))!=null){var P=yHf(_.X1(Y,2));switch(Y.getMethodName()){case "yt-mini-app-load-audio-state":var E,z;(z=(E=R.callbacks).onAudioStateLoaded)==null||z.call(E,_.D0(P,nK(P,Cd,1)));break;case "yt-mute-mini-app":var c,M;(M=(c=R.callbacks).onMuteMiniApp)==null||M.call(c);break;case "yt-unmute-mini-app":var N,y;(y=(N=R.callbacks).onUnmuteMiniApp)==null||y.call(N);break;case "yt-playable-exit":var m,T;(T=(m=R.callbacks).onExit)==null||T.call(m);
break;case "yt-post-play-nonce":var Q,g;(g=(Q=R.callbacks).onPostPlayNonceReceived)==null||g.call(Q,K7(P,2,Cd));break;case "yt-confirm-exit-mini-app":var r,I;(I=(r=R.callbacks).confirmExitMiniApp)==null||I.call(r);break;case "yt-confirm-exit-mini-app-edu":var b,p;(p=(b=R.callbacks).confirmExitMiniAppEdu)==null||p.call(b);break;case "yt-benchmarking-response":var h,L;(L=(h=R.callbacks).onNativeBenchmarkingMessageReceived)==null||L.call(h,K7(P,2,Cd));break;case "yt-mini-app-load-3p-consent-state":var Z,
w;(w=(Z=R.callbacks).multiplayer3pAckStateLoaded)==null||w.call(Z,_.D0(P,nK(P,Cd,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var t,d;(d=(t=R.callbacks).exitMiniAppSeenStateLoaded)==null||d.call(t,_.D0(P,nK(P,Cd,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var Jk,Nb;(Nb=(Jk=R.callbacks).onNavigateToNewMiniApp)==null||Nb.call(Jk);break;case "yt-game-data-available":var Qk,H3;(H3=(Qk=R.callbacks).onGameDataAvailable)==null||H3.call(Qk,K7(P,2,Cd));break;case "yt-pause-mini-app":var nu,
hk;(hk=(nu=R.callbacks).onPauseMiniApp)==null||hk.call(nu);break;case "yt-resume-mini-app":var FV,i8;(i8=(FV=R.callbacks).onResumeMiniApp)==null||i8.call(FV);break;case "yt-playable-ad-finished":var fD,NG;(NG=(fD=R.callbacks).onAdFinished)==null||NG.call(fD,K7(P,2,Cd))}}else _.pK(Error("Uh"))}catch(d8){_.bj(Error("Vh"))}else _.pK(Error("Wh"))};var k66=function(R){this.rpcErrorCode=R};var Nk=function(R,A,Y){this.intervalMs=R;this.apiFunc=A;this.type=Y;this.schedulerReady=!0};
Nk.prototype.call=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1){if(A.type!==1&&R===A.cachedValue)return P.return();A.pendingApiRequestResolver||(A.pendingApiRequestResolver=new _.y2);Y=A.pendingApiRequestResolver.promise;A.cachedValue=R;return P.yield(UOE(A),2)}return P.return(Y)})};
Nk.prototype.flush=function(R){R=R===void 0?!1:R;var A=this;return _.O(function(Y){return A.cachedValue===void 0?Y.return():Y.yield(A.apiFunc(A.cachedValue,R),0)})};
var UOE=function(R){var A,Y,P;return _.O(function(E){switch(E.nextAddress){case 1:if(!R.schedulerReady||!R.pendingApiRequestResolver)return E.return();R.schedulerReady=!1;A=R.pendingApiRequestResolver;R.pendingApiRequestResolver=void 0;_.g2(E,2);if(R.cachedValue===void 0){E.jumpTo(4);break}return E.yield(R.apiFunc(R.cachedValue),5);case 5:Y=E.yieldResult,A.resolve(Y);case 4:_.us(E,3);break;case 2:P=_.UT(E),A.reject(P);case 3:setTimeout(function(){return _.O(function(z){R.schedulerReady=!0;return z.yield(UOE(R),
0)})},R.intervalMs),_.XH(E)}})};var trk=window.location.origin+"/miniapp_cloudsaves",G6q=[400,401],$OS=_.cU("cloud_save_game_data_rate_limit_ms",3E3),IDb=function(R){var A=this;this.JSC$16931_miniAppId=R;this.loadAttempts=0;this.cloudSaveIntervalMs=$OS;this.initialDownloadDataSucceeded=!1;this.JSC$16931_playNonceResolver=new _.y2;this.scottyUploadRateLimiter=new Nk(this.cloudSaveIntervalMs,function(Y,P){return XnA(A,Y,P)},2);
this.downloadDataPromise=SIS(this);this.downloadDataPromise.then(function(){A.initialDownloadDataSucceeded=!0}).catch(function(){})},Kt8=function(R,A){A.then(function(Y){return R.JSC$16931_playNonceResolver.resolve(Y)})},Wtf=function(R){return _.O(function(A){return R.cachedData===void 0?A.return(R.downloadDataPromise):A.return(R.cachedData)})},jxS=function(R,A){return _.O(function(Y){R.cachedData=A;
if(!R.initialDownloadDataSucceeded)throw Error("Xh");return Y.yield(R.scottyUploadRateLimiter.call(A),0)})},bTA=function(){return new Promise(function(R){setTimeout(R,1E3,"")})},fDA=function(R,A){var Y,P;
return _.O(function(E){if(E.nextAddress==1)return Y=R.JSC$16931_miniAppId,E.yield(Promise.race([R.JSC$16931_playNonceResolver.promise,bTA()]),2);P={"X-YouTube-MiniAppId":Y,"X-YouTube-PostPlayNonce":E.yieldResult};"DELEGATED_SESSION_ID"in _.Fc&&Gik(A,P);return E.return(P)})},XnA=function(R,A,Y){Y=Y===void 0?!1:Y;
return _.O(function(P){return oVq()?_.v("enable_cloud_save_error_popup_after_retry")?P.return(new Promise(function(E,z){var c,M,N,y,m;return _.O(function(T){switch(T.nextAddress){case 1:c=0,M=!0,y=N=null;case 2:if(!(M&&c++<2)){T.jumpTo(4);break}_.g2(T,5);return T.yield(pn8(R,A,Y),7);case 7:N=T.yieldResult;M=N.ok?!1:!G6q.includes(N.status);_.us(T,2);break;case 5:y=m=_.UT(T);M=Zzb(y);T.jumpTo(2);break;case 4:N?N.ok?(Vq(R,$OS),E()):(Vq(R,R.cloudSaveIntervalMs*2),z(Error("Yh`"+String(N.status),{cause:{rpcErrorCode:N.status}}))):
(Vq(R,R.cloudSaveIntervalMs*2),z(y||Error("Zh"))),_.XH(T)}})})):P.return(new Promise(function(E,z){var c,M;
return _.O(function(N){if(N.nextAddress==1){if(R.JSC$16931_miniAppId==="")return z(Error("$h")),N.return();_.g2(N,2);return N.yield(pn8(R,A,Y),4)}if(N.nextAddress!=2)return c=N.yieldResult,c.ok?(Vq(R,$OS),E()):(Vq(R,R.cloudSaveIntervalMs*2),z(Error("Yh`"+String(c.status),{cause:{rpcErrorCode:c.status}}))),_.us(N,0);M=_.UT(N);Vq(R,R.cloudSaveIntervalMs*2);z(M);_.XH(N)})})):P.return()})},pn8=function(R,A,Y){Y=Y===void 0?!1:Y;
var P,E,z;return _.O(function(c){if(c.nextAddress==1)return P=_.WF((new TextEncoder).encode(A)),E=wHk(),c.yield(fDA(R,E),2);z=c.yieldResult;return c.return(fetch(E,{method:"POST",body:new Blob([P]),headers:z,keepalive:Y}))})},SIS=function(R){var A,Y;
return _.O(function(P){if(P.nextAddress==1){if(!oVq())return P.return("");if(R.JSC$16931_miniAppId==="")throw Error("$h");if(R.loadAttempts>2)return P.return(R.downloadDataPromise);_.g2(P,2);return P.yield(Ftb(R),4)}if(P.nextAddress!=2)return A=P.yieldResult,P.return(A);Y=_.UT(P);if(Zzb(Y)&&++R.loadAttempts<2)return P.return(SIS(R));throw Y;})},Ftb=function(R){var A,Y,P,E,z;
return _.O(function(c){switch(c.nextAddress){case 1:return _.g2(c,2),A=wHk(),c.yield(fDA(R,A),4);case 4:return Y=c.yieldResult,c.yield(fetch(A,{method:"GET",headers:Y}),5);case 5:return P=c.yieldResult,P.ok?c.yield(P.text(),6):c.return(Promise.reject(Error("ai`"+String(P.status),{cause:new k66(P.status)})));case 6:return E=c.yieldResult,c.return((new TextDecoder).decode(_.eP(E)));case 2:return z=_.UT(c),c.return(Promise.reject(z))}})},Vq=function(R,A){R.cloudSaveIntervalMs=A;
R.scottyUploadRateLimiter.intervalMs=R.cloudSaveIntervalMs};
IDb.prototype.flush=function(){var R=this;return _.O(function(A){return R.initialDownloadDataSucceeded?A.yield(R.scottyUploadRateLimiter.flush(!0),0):A.return()})};var BXD=VB(NN(1),MN(1)),aDH=VB(NN(1),MN(3)),Jy=function(R){this.callbacks=R};
_.l=Jy.prototype;_.l.onAudioToggled=function(R,A){(A===void 0||A)&&_.Im("yt-mini-app-is-audio-enabled",R,2592E3)};
_.l.onPause=function(){this.onAudioToggled(!1,!1)};
_.l.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.l.returnNativeBenchmarkingMessage=function(){};
_.l.sendGameData=function(){};
_.l.sendStartGameFrameCapture=function(){};
var ud3=function(R,A,Y){this.callbacks=R;var P=this;this.sdkVersion=new _.y2;this.channel=new hNu(_.zs({destination:window,iframe:A,origin:(new URL(Y.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var E=yq;var z=NN(5);var c=new KhZ;c=_.jR(c,1,1E4);z=_.Ug(z,4,a0A,c);E(P,z);P.onAudioToggled(P.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){P.sdkVersion.resolve("")},1E4)};
_.H(ud3,Jy);_.l=ud3.prototype;_.l.onAudioToggled=function(R,A){Jy.prototype.onAudioToggled.call(this,R,A===void 0?!0:A);A=yq;var Y=NN(2),P=new SkD;R=_.y6(P,1,R);R=_.Ug(Y,3,a0A,R);A(this,R)};
_.l.onPause=function(){Jy.prototype.onPause.call(this);yq(this,NN(3))};
_.l.onResume=function(){Jy.prototype.onResume.call(this);yq(this,NN(4))};
_.l.returnNativeBenchmarkingMessage=function(R){var A=yq,Y=NN(6);var P=MN(_.mh(R,d$,1)?1:2);R=_.mh(R,d$,1)?R:null;P=_.Ug(P,5,sO,R);A(this,VB(Y,P))};
_.l.sendGameData=function(R){var A=yq,Y=NN(7);R=_.Ug(Y,5,a0A,R);A(this,R)};
_.l.sendStartGameFrameCapture=function(){yq(this,NN(9))};
var mn=function(R,A,Y){var P,E,z;return _.O(function(c){if(c.nextAddress==1)return P=R.callbacks,E=P.onSdkCalled,z=A,c.yield(R.sdkVersion.promise,2);E.call(P,z,c.yieldResult,Y);_.XH(c)})};
ud3.prototype.onMessage=function(){var R=this;return GwP(mU,function(A){var Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t,d,Jk,Nb,Qk,H3,nu,hk,FV,i8,fD,NG,d8,mS,V7,KD,UW,eH,zS,RA,vS,Mg,gf,A9,le,RH;return _.O(function(OA){switch(OA.nextAddress){case 1:if(!u1f(A.data))return _.pK(Error("bi")),OA.return();Y=_.SR(A.data,1);_.v("enable_iframe_message_get_type_via_fields")&&(P=A.data,Y=E=_.SR(P,1));switch(Y){case 8:if(A.data.hasMetadata()){var wf=R.sdkVersion,mm=wf.resolve;var $Z=A.data.getMetadata();$Z=_.X1($Z,
1);mm.call(wf,$Z);clearTimeout(R.sdkVersionTimeoutId)}break;case 6:return OA.jumpTo(2);case 16:if(!_.Tx(A.data,oBf,14,Ty))return OA.return();z=_.Wb(A.data,oBf,14,Ty);(M=(c=R.callbacks).onGameFrameReceived)==null||M.call(c,z);return OA.return();case 17:if(!_.Tx(A.data,hz7,15,Ty))return OA.return();(y=(N=R.callbacks).onGameAudioReceived)==null||y.call(N,_.Wb(A.data,hz7,15,Ty));return OA.return();case 1:if(wf=_.Wb(A.data,b7G,2,Ty))switch(_.SR(wf,1)){case 1:R.callbacks.onFirstFrameReady();if(_.v("enable_network_request_logging_on_game_events")&&
_.mh(wf,cM,4)){mn(R,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.cG(wf,cM,4));break}mn(R,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:($Z=(mm=R.callbacks).onGameReady)==null||$Z.call(mm);if(_.v("enable_network_request_logging_on_game_events")&&_.mh(wf,cM,4)){mn(R,"MINI_APP_SDK_API_GAME_READY",_.cG(wf,cM,4));break}mn(R,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Tx(wf,OO,3,f0q))R.callbacks.onResourceLoaded(_.Wb(wf,OO,3,f0q))}return OA.return();case 3:return OA.jumpTo(3);case 4:return OA.jumpTo(4);
case 2:return OA.jumpTo(5);case 9:return OA.jumpTo(6);case 10:return R.callbacks.onClick(),OA.return();case 5:return OA.jumpTo(7);case 11:if(!_.Tx(A.data,io,9,Ty))return OA.return();m=_.Wb(A.data,io,9,Ty);(Q=(T=R.callbacks).onBenchmarkingMessageReceived)==null||Q.call(T,m);wf=A.reply;mm=NN(1);$Z=MN(1);var Xb=new io;var go=new Uint8Array(iTJ(m,nK(m,rRE,6))|0);Xb=mx(Xb,5,rRE,_.UA(go,!1));$Z=_.Ug($Z,5,sO,Xb);wf.call(A,VB(mm,$Z));return OA.return();case 12:return OA.jumpTo(8);case 13:return OA.jumpTo(9);
case 15:if(!_.v("enable_open_yt_content"))return A.reply(aDH),OA.return();if(!_.Tx(A.data,CuA,12,Ty))return A.reply(VB(NN(1),MN(2))),OA.return();wf=_.Wb(A.data,CuA,12,Ty);g=_.X1(wf,1);R.callbacks.onOpenYTContent(g);A.reply(BXD);return OA.return();case 14:return OA.jumpTo(10);default:return OA.return()}OA.jumpTo(0);break;case 2:if(!_.Tx(A.data,Je,5,Ty))return OA.return();mm=A.data;wf=nK(mm,Ty,5);mm=mm.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;r=jHk(mm,mm[_.zN]|0,Je,wf)||Je[fzk]||(Je[fzk]=
pSl(Je));wf=_.OU(r,lo,1,_.M_());I=_.x(wf);b=I.next();case 12:if(b.done){OA.jumpTo(14);break}p=b.value;h=new _.XN;h.level=_.SR(p,2)===1?"WARNING":"ERROR";L=qfl(p.getSource());return OA.yield(R.sdkVersion.promise,15);case 15:Z={source:L,sdkVersion:OA.yieldResult};_.Yn(_.yT(p,6))!=null?(h.message=p.getMessage(),h.stack=_.X1(p,5),Z.sdkErrorType=Lqk(_.SR(p,6)),_.Yn(_.yT(p,7))!=null&&(Z.sdkApi=dxb(_.SR(p,7)))):h.stack=void 0;t=w=void 0;(t=(w=R.callbacks).onError)==null||t.call(w,{loggingError:h,metadata:Z});
b=I.next();OA.jumpTo(12);break;case 14:return OA.return();case 3:return _.g2(OA,16),wf=OA.yield,mm=R.callbacks,$Z=mm.onSave,Xb=_.Wb(A.data,I0H,4,Ty),Xb=_.X1(Xb,1),wf.call(OA,$Z.call(mm,Xb),18);case 18:A.reply(BXD);_.us(OA,17);break;case 16:return d=_.UT(OA),Jk=bx,Nb=d,Qk=R.callbacks,H3="MINI_APP_SDK_API_SAVE_DATA",OA.yield(R.sdkVersion.promise,19);case 19:Jk(Nb,Qk,H3,OA.yieldResult),A.reply(aDH);case 17:return OA.yield(mn(R,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return OA.return();case 4:return _.g2(OA,
21),OA.yield(R.callbacks.onLoad(),23);case 23:nu=OA.yieldResult;wf=A.reply;mm=NN(1);$Z=MN(1);Xb=new I0H;Xb=_.IS(Xb,1,nu);$Z=_.Ug($Z,3,sO,Xb);wf.call(A,VB(mm,$Z));_.us(OA,22);break;case 21:return hk=_.UT(OA),FV=bx,i8=hk,fD=R.callbacks,NG="MINI_APP_SDK_API_LOAD_DATA",OA.yield(R.sdkVersion.promise,24);case 24:FV(i8,fD,NG,OA.yieldResult),A.reply(aDH);case 22:return OA.yield(mn(R,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return OA.return();case 5:_.g2(OA,26);R.callbacks.onSendHighScore(CJ(_.Wb(A.data,
tRN,3,Ty).getValue()));A.reply(VB(NN(1),MN(1)));_.us(OA,27);break;case 26:return d8=_.UT(OA),mS=bx,V7=d8,KD=R.callbacks,UW="MINI_APP_SDK_API_SEND_SCORE",OA.yield(R.sdkVersion.promise,28);case 28:mS(V7,KD,UW,OA.yieldResult),A.reply(aDH);case 27:return OA.yield(mn(R,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return OA.return();case 6:if(!_.Tx(A.data,wbS,8,Ty)){OA.jumpTo(30);break}wf=OA.yield;mm=_.Wb(A.data,wbS,8,Ty);mm=_.SR(mm,1);return wf.call(OA,mn(R,dxb(mm)),30);case 30:return OA.return();case 7:return wf=
A.reply,mm=NN(1),$Z=MN(1),Xb=R.callbacks.getLanguage(),$Z=mx($Z,4,sO,QN(Xb)),wf.call(A,VB(mm,$Z)),OA.yield(mn(R,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return OA.return();case 8:if(!_.Tx(A.data,Z7H,10,Ty))return OA.return();eH=_.Wb(A.data,Z7H,10,Ty);zS=R.callbacks;RA=zS.onSdkPerformanceUpdate;return OA.yield(R.sdkVersion.promise,33);case 33:return RA.call(zS,eH,OA.yieldResult),OA.return();case 9:wf=A.data;mm=nK(wf,Ty,11);if(_.vF(_.yT(wf,mm))==null)return A.reply(VB(NN(1),MN(2))),OA.return();
vS=K7(A.data,11,Ty);R.callbacks.onShareInviteCode(vS);A.reply(BXD);return OA.yield(mn(R,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return OA.return();case 10:if(_.Tx(A.data,Xbb,13,Ty)){OA.jumpTo(35);break}return OA.yield(R.callbacks.onShowMiniAppAd(2),36);case 36:return Mg=OA.yieldResult,A.reply(VB(NN(1),FhG(Mg))),OA.yield(mn(R,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return OA.return();case 35:wf=_.Wb(A.data,Xbb,13,Ty);a:switch(_.SR(wf,1)){case 1:wf={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:wf={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:wf={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}gf=wf;A9=gf.adType;le=gf.sdkApi;wf=OA.yield;mm=R.callbacks;$Z=mm.onShowMiniAppAd;Xb=_.Wb(A.data,Xbb,13,Ty);Xb=_.X1(Xb,2);return wf.call(OA,$Z.call(mm,A9,Xb||void 0),38);case 38:return RH=OA.yieldResult,A.reply(VB(NN(1),FhG(RH))),OA.yield(mn(R,le),39);case 39:return OA.return()}})})};
var yq=function(R,A){_.O(function(Y){R.channel.send(A);_.XH(Y)})},f0=function(R,A,Y){this.callbacks=R;
var P=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;R=Zql(A,(new URL(Y.toString())).origin);this.gameSnacks=new Eqb(R);this.gameSnacks.page.onReady(function(){P.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){P.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var E,z;(z=(E=P.callbacks).onGameReady)==null||z.call(E)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(E,z){try{P.callbacks.onSendHighScore(z)}catch(c){bx(c,P.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(E,z){var c;return _.O(function(M){if(M.nextAddress==1)return _.g2(M,2),M.yield(P.callbacks.onSave(P.decoder.decode(z)),4);if(M.nextAddress!=2)return _.us(M,0);c=_.UT(M);bx(c,P.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return M.return()})});
this.gameSnacks.storage.onLoad(function(){var E,z;return _.O(function(c){if(c.nextAddress==1)return _.g2(c,2),c.yield(P.callbacks.onLoad(),4);if(c.nextAddress!=2)return E=c.yieldResult,c.return(P.encoder.encode(E));z=_.UT(c);bx(z,P.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return c.return(P.encoder.encode(""))})});
this.gameSnacks.init()};
_.H(f0,Jy);f0.prototype.onAudioToggled=function(R,A){Jy.prototype.onAudioToggled.call(this,R,A===void 0?!0:A);var Y;(Y=this.gameSnacks)==null||Y.audio.update(R)};
f0.prototype.onPause=function(){Jy.prototype.onPause.call(this);var R;(R=this.gameSnacks)==null||R.game.pause()};
f0.prototype.onResume=function(){Jy.prototype.onResume.call(this);var R;(R=this.gameSnacks)==null||R.game.resume()};var CYE=RjP,hZf=_.E5(function(R){var A=R.data;var Y=R.loadingProgress;var P=R.forPaused;R=_.x(_.yy("",void 0,"LYYTdd"));var E=R.next().value,z=R.next().value;R=_.x(_.yy(!1,void 0,"K0waae"));var c=R.next().value,M=R.next().value,N=[],y=function(){return"transform: scaleX("+(_.pX(Y)||0)+")"},m=null,T=function(){return A()&&m!==null&&m!==void 0?m:m=A().showAnniversaryAnimation?6:CYE()};
_.jq(function(){var I;if(A().timeOutMessages&&((I=A().timeOutMessages)==null?0:I.length)){m=null;I=_.x(N);for(var b=I.next();!b.done;b=I.next())clearTimeout(b.value);N.length=0;AWV(A().timeOutMessages,N,z,M)}},"BNu9j");
var Q=function(){return!!A().persistentErrorMessageTitle},g=function(){return Y!==void 0},r=function(){return A().title};
return _.V("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.V("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.V("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.V("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var I,b=(I=A().backgroundImage)==null?void 0:I.sources,p;return(b==null?0:b.length)?"background-image: url("+((p=b[0])==null?void 0:p.url)+")":""}}),_.V("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.V(_.J,{cond:function(){return!Q()&&!(P==null?0:P())},
then:function(){var I={};return _.V("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.V("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.V(_.pH,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+T()},
data:function(){var b="loading_animation_"+T();return{animationConfig:{name:b,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+b+".json",loop:!0,autoplay:!0}}}})),_.V("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.V(_.J,{cond:r,
then:function(){return _.V("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},r)}}),_.V("p",{class:_.To("miniAppSplashScreenViewModelTimeoutMessage",(I.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return c()},I)),
"aria-live":"polite"},E),_.V(_.J,{cond:g,then:function(){return _.V("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.V("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:y}))}})))}}),_.V(_.J,{cond:Q,
then:function(){return _.V("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.V("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return A().persistentErrorMessageTitle}),_.V(_.J,{cond:function(){return!!A().persistentErrorMessageDescription},
then:function(){return _.V("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return A().persistentErrorMessageDescription})}}))}}),_.V(_.J,{cond:P,
then:function(){return _.V("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.V("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.V("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},r))}})))},"qe");var o3N=new _.cP("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var kWz=YW;YW=function(R){function A(Y){if(Y){var P,E;(P=Y.__spec)==null||(E=P.didUnmount)==null||E.call(P);for(P=0;P<Y.childNodes.length;P++)A(Y.childNodes[P])}}
kWz==null||kWz(R);b4(function(){for(var Y=0;Y<R.length;Y++)A(R[Y])})};var GWN=_.E5(function(R){var A=R.data;var Y=R.score;var P=R.formattedScore;var E=R.onScoreChanged;var z=R.isEmbeddedInWebview;var c=_.d5("yt-mini-app-score-button-view-model"),M=function(){var g;return _.n(A==null?void 0:(g=A())==null?void 0:g.buttonViewModel,_.E7)},N=function(){var g;
return(Y==null?void 0:Y())||Number(A==null?void 0:(g=A())==null?void 0:g.lastScore)||0},y=function(){var g;
return(P==null?void 0:P())||((g=M())==null?void 0:g.title)||""},m,T=1;
if(R=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))R=Number(R),T=isNaN(R)?1:R/100;_.jq(function(){E==null||E(N());var g;var r=_.h7((g=M())==null?void 0:g.onTap);if(r){g=_.n(r,PFb);var I,b,p;g=_.n(g==null?void 0:(I=g.panelLoadingStrategy)==null?void 0:(b=I.inlineContent)==null?void 0:(p=b.dialogViewModel)==null?void 0:p.customContent,H9A)}else g=void 0;if(I=g)I.score=y()},"Aekez");
R=_.Qi(function(){var g,r,I=A==null?void 0:(g=A())==null?void 0:(r=g.loggingDirectives)==null?void 0:r.trackingParams;I&&_.K_(_.is().resolve(_.wt),I);return!1});
_.jO(function(){if(c.value){var g=c.value.querySelector("button"),r=M();g&&r&&Ynk(g,r);Pu("yt-share-playable-with-high-score",function(){var I=N().toString(),b=A==null?void 0:A().onShareHighScoreCommand,p=A==null?void 0:A().highScoreShareClientParamIdentifier,h=z==null?void 0:z();b&&(h?(p=new CS7,I=_.IS(p,2,I),jb(b,I.JSC$12357_serializeBinary())):p&&(_.is().resolve(o3N).clientParams.set(p,{miniAppClientParams:{highScore:I}}),Fqk(b,!1)))})}});
var Q=function(){var g=M();g&&(Y==null?0:Y())&&g.accessibilityText&&(g.accessibilityText=g.accessibilityText.replace(m,y()));m=y();return{numberValue:N(),numberText:y(),heightPx:36,fontSizeMultiplier:T,shouldAnimate:!(Y==null||!Y())&&!0}};
return _.V("yt-mini-app-score-button-view-model",{class:function(){var g={};return _.IP("miniAppScoreButtonViewModelHost",(g.miniAppScoreButtonViewModelIsVisible=N()!==0,g))},
el:c,"on:click":R},g_V(!1,function(){return _.V("span",{style:"display:none;"},N)}),_.V(_.ni,{data:function(){var g;
return A==null?void 0:(g=A())==null?void 0:g.buttonViewModel}},{buttonViewModel:function(g){return _.V(_.Is,{data:g.data,
animatedTextProps:Q})}}))},"re");var eZD=_.E5(function(R){var A,Y=(A=_.K1("yt-mini-app-is-theater-mode-enabled"))!=null?A:!1,P=_.v("enable_playable_container_save_button"),E=_.v("enable_play_next_destination_page_in_toolbar");A={};return _.V("ytm-mini-app-top-bar-view-model",null,_.V("div",{class:_.To("yt-mini-app-top-bar-view-model",(A["yt-mini-app-top-bar-view-model--mobile"]=!1,A["yt-mini-app-top-bar-view-model--desktop"]=!0,A))},_.V("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.V(_.J,{cond:function(){var z;
return!!R.data().backButtonEdu&&!((z=R.isExitMiniAppSeen)==null?0:z.call(R))},
then:function(){return _.V(_.ni,{data:function(){return R.data().backButtonEdu}},{buttonViewModel:_.Is})},
else:function(){return _.V(_.ni,{data:function(){return R.data().backButton}},{buttonViewModel:_.Is})}}),_.V(_.J,{cond:function(){return R.data().viewAllButton&&!0},
then:function(){return _.V(_.ni,{data:function(){return R.data().viewAllButton}},{buttonViewModel:_.Is})}}),_.V(_.J,{cond:function(){return R.data().title&&!0},
then:function(){return _.V("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return R.data().title})}})),_.V("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.V(_.J,{cond:function(){var z;
return(z=R.isDesktopPlayPage)==null?void 0:z.call(R)},
then:function(){return _.V(_.lI,null,_.V(ZTH,{highScoreButton:function(){return R.data().highScoreButton},
score:R.score,formattedScore:R.formattedScore,onScoreChanged:R.onScoreChanged,isEmbeddedInWebview:R.isEmbeddedInWebview}),_.V(tgb,{enableSaveButton:function(){return _.pX(P)},
saveButton:function(){return R.data().saveButton},
isSaved:R.isSaved,onSaveToggled:function(){return R.onSaveToggled}}),_.V(wnZ,{menuButton:function(){return R.data().menuButton}}))},
else:function(){return _.V(_.J,{cond:function(){return!1},
then:function(){return _.V(_.ni,{data:function(){return R.data().playPageButton}},{buttonViewModel:function(z){return _.V(_.Is,{data:z.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.V(ZTH,{highScoreButton:function(){return R.data().highScoreButton},
score:R.score,formattedScore:R.formattedScore,onScoreChanged:R.onScoreChanged,isEmbeddedInWebview:R.isEmbeddedInWebview})}})}})),_.V("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.V(_.ni,{data:function(){return R.data().muteButton}},{toggleButtonViewModel:function(z){var c=z.data;
return _.V(_.uF,{data:function(){var M,N;return Object.assign({},c(),{isToggled:(N=(M=R.isAudioEnabled)==null?void 0:M.call(R))!=null?N:!0})},
onToggle:R.onAudioToggled,useOutlinedIcon:!0})}}),_.V(_.ni,{data:function(){return R.data().theatreModeButton}},{toggleButtonViewModel:function(z){var c=z.data;
return _.V("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.V(_.uF,{data:function(){return Object.assign({},c(),{isToggled:Y})},
useOutlinedIcon:!0}))}}),_.V(uTE,{fullscreenButton:function(){return R.data().fullscreenButton}}),_.V(_.J,{cond:function(){return _.pX(E)&&R.data().viewAllButton&&!1},
then:function(){return _.V(_.ni,{data:function(){return R.data().viewAllButton}},{buttonViewModel:_.Is})}}),_.V(_.J,{cond:function(){var z;
return!((z=R.isDesktopPlayPage)==null?0:z.call(R))},
then:function(){return _.V(_.lI,null,_.V(tgb,{enableSaveButton:function(){return _.pX(P)},
saveButton:function(){return R.data().saveButton},
isSaved:R.isSaved,onSaveToggled:function(){return R.onSaveToggled}}),_.V(wnZ,{menuButton:function(){return R.data().menuButton}}))}}))))},"se");
eZD.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var wnZ=_.E5(function(R){return _.V(_.ni,{data:R.menuButton},{buttonViewModel:_.Is})},"te"),tgb=_.E5(function(R){var A=R.enableSaveButton;
var Y=R.saveButton;var P=R.isSaved;var E=R.onSaveToggled;return _.V(_.J,{cond:function(){return A()&&!(Y==null||!Y())},
then:function(){return _.V(_.ni,{data:function(){var z=_.n(Y==null?void 0:Y(),_.iS),c;return{toggleButtonViewModel:Object.assign({},z,{isToggled:(c=P==null?void 0:P())!=null?c:!(z==null||!z.isToggled)})}}},{toggleButtonViewModel:function(z){return _.V(_.uF,{data:z.data,
onToggle:E})}})}})},"ue"),ZTH=_.E5(function(R){var A=R.highScoreButton;
var Y=R.score;var P=R.formattedScore;var E=R.onScoreChanged;var z=R.isEmbeddedInWebview;return _.V(_.ni,{data:A},{miniAppScoreButtonViewModel:function(c){return _.V(GWN,{data:c.data,score:Y,formattedScore:P,onScoreChanged:E,isEmbeddedInWebview:z})}})},"ve"),uTE=_.E5(function(R){R=R.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.V(_.lI,null):_.V(_.ni,{data:R},{buttonViewModel:_.Is})},"we");_.qIA=new _.cP("DESKTOP_CURRENT_PAGE");var Pvq=_.E5(function(R){var A=R.data;var Y=_.v("force_active_time_logging_webview"),P=!1,E=new r58,z=void 0,c=void 0,M=_.is().resolve(HTS),N=new Qxq,y=void 0,m=void 0,T=[],Q=void 0,g=void 0,r=!1,I=!1,b=!1,p=!1,h=new _.y2,L=_.is().resolve(o3N),Z=_.is().resolve(_.Oq),w=_.is().resolve(_.z3(Bf)),t,d=(t=_.is().resolve(_.z3(_.qIA)))==null?void 0:t.getCurrentPage(),Jk=!1,Nb=0,Qk=function(w8){w8.preventDefault();return w8.returnValue=""},H3;
R=_.x(_.yy(!((H3=_.K1("yt-mini-app-is-audio-enabled"))!=null&&!H3),void 0,"WhYQTd"));var nu=R.next().value,hk=R.next().value,FV;H3=_.x(_.yy(!((FV=_.K1("exit-mini-app-seen-state"))==null||!FV),void 0,"jxhCJb"));var i8=H3.next().value,fD=H3.next().value;FV=_.x(_.yy(!1,void 0,"MuvDfe"));var NG=FV.next().value,d8=FV.next().value;FV=_.x(_.yy(void 0,void 0,"u9DLoc"));var mS=FV.next().value,V7=FV.next().value;FV=_.x(_.yy(void 0,void 0,"rykyJb"));var KD=FV.next().value,UW=FV.next().value;FV=_.x(_.yy(!0,void 0,
"d8FUvf"));var eH=FV.next().value,zS=FV.next().value;FV=_.x(_.yy(!1,void 0,"x9XwUb"));var RA=FV.next().value,vS=FV.next().value;FV=_.x(_.yy(!1,void 0,"bcquyc"));var Mg=FV.next().value,gf=FV.next().value;FV=_.x(_.yy(void 0,void 0,"FMAC5b"));var A9=FV.next().value,le=FV.next().value;FV=_.x(_.yy(0,void 0,"HUGJEb"));var RH=FV.next().value,OA=FV.next().value,wf=_.LK("mini-app-container-view-model"),mm=function(){return A().isEmbeddedInWebview},$Z=function(){return A().hasPlayNextShelf};
Pu("yt-page-type-changed",function(w8){if(_.v("enable_is_mini_app_page_active_bugfix"))w8.detail.newPageSubtype==="mini_app"&&w8.detail.newPageType==="ytd-browse"||!eH()||JO();else if(w8=_.WDk()==="mini_app",w8!==eH())if(zS(w8),w8){var T0;w8=(T0=A().playableId)==null?void 0:T0.toString();w8!==void 0&&window.location.href.includes(w8)&&!I&&(p=!0,Xb(),Q$.value&&Up(Q$.value))}else w8||JO()});
Pu("yt-action",function(w8){w8.detail.actionName==="yt-engagement-panel-visible-changed"&&w8.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&w8.detail.args[2]==="PAmini_app_panel"&&JO();_.v("enable_is_mini_app_page_active_bugfix")?w8.detail.actionName==="yt-history-load"&&!eH()&&(d==null?0:d.active)?(zS(!0),Xb(),Q$.value&&Up(Q$.value)):w8.detail.actionName==="yt-history-load"&&eH()&&!A().isEmbeddedInWebview&&hE():eH()&&w8.detail.actionName==="yt-history-load"&&(p?p=!1:A().isEmbeddedInWebview||
hE())});
_.bm(function(){go()});
_.jq(function(){Xb()},"bLMzme");
var Xb=function(){var w8=A().playableId,T0=A().localReleaseId,SG=A().derivedDeviceInterface;if(I)_.pK(new _.XN("[MiniAppContainerViewModel] onEnter was called more than once"));else{I=!0;z=new lD8(w8,T0,SG,document.visibilityState==="visible");Mgq(z);c=new IDb(w8);LtA(M,w8);v3E(N,{showMiniAppAdCommand:A().showMiniAppAdCommand,isEmbeddedInWebview:A().isEmbeddedInWebview,playLogger:z});KcV()&&(g=document.body.style.backgroundColor,_.o7(document.body,"background-color","black"));ka();bi();h=new _.y2;
if(A().isEmbeddedInWebview){if(w8=(new URLSearchParams(window.location.search)).get("postPlayNonce"))c5S(z,w8),Jk=!0;E.initialize({onAudioStateLoaded:function(li){X4(li)},
onMuteMiniApp:function(){X4(!1)},
onUnmuteMiniApp:function(){X4(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(li){Jk||(c5S(z,li),Jk=!0)},
confirmExitMiniApp:function(){var li,VX,uG;return _.O(function(hl){if(hl.nextAddress==1)return A().confirmExitMiniAppCommand?hl.yield(Promise.race([h.promise,Promise.resolve(!1)]),2):hl.return();(li=hl.yieldResult)?!A().confirmExitMiniAppCommandEdu||(uG=(VX=i8)==null?void 0:VX())!=null&&uG?NM(A().confirmExitMiniAppCommand):(NM(A().confirmExitMiniAppCommandEdu),_.Im("exit-mini-app-seen-state","true",2592E6)):NM(A().closeMiniAppCommand);_.XH(hl)})},
onNativeBenchmarkingMessageReceived:function(li){li=UcE(_.fQV(li));if(_.Tx(li,_.K0,3,H77)){var VX=_.Wb(li,_.K0,3,H77),uG=BhV();var hl=CJ(uG.getSeconds())-CJ(VX.getSeconds());VX=_.sU(uG,2)-_.sU(VX,2);hl<0&&VX>0?(hl+=1,VX-=1E9):hl>0&&VX<0&&(--hl,VX+=1E9);hl=(new d$).setSeconds(hl);hl=_.Lf(hl,2,_.PF(VX),0);_.DE(li,1,hl)}var qf;(qf=m)==null||qf.returnNativeBenchmarkingMessage(li)},
multiplayer3pAckStateLoaded:function(li){hE(li)},
exitMiniAppSeenStateLoaded:function(li){A().confirmExitMiniAppCommandEdu&&fD(li)},
onNavigateToNewMiniApp:function(){NM(A().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(li){li=new URLSearchParams(li);var VX=void 0;li.has("invite_code")&&(VX=new j2S,li=li.get("invite_code"),VX=_.IS(VX,1,li));if(li=VX){var uG;(uG=m)==null||uG.sendGameData(li)}},
onPauseMiniApp:function(){P=!0;yN()},
onResumeMiniApp:function(){P=!0;Ks()},
onAdFinished:function(li){N.onAdFinished(li)}});
A().showMultiplayer3pConsentDialogCommand||h.resolve(!0);NM(A().onContainerReadyCommand)}else c5S(z),h.resolve(!0);Kt8(c,xOE(z));xOE(z).then(function(li){li={miniAppPlayData:{postPlayNonce:li}};var VX,uG=(VX=A().loggingDirectives)==null?void 0:VX.trackingParams;uG&&_.rU().stateChanged(uG,li)});
w8=A().showSignInDialogCommand;!oVq()&&w8&&(_.Im("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),NM(w8));A().confirmExitMiniAppCommand&&w&&(w8=fC6(A().confirmExitMiniAppCommand))&&(w.customConfirmationCommand=w8)}},go=function(){g&&_.o7(document.body,"background-color",g);
r=!1;Q&&Q.release();c.flush().catch(function(w8){_.pK(w8)});
M.flush().catch(function(w8){_.pK(w8)});
NXb(z);lK();m=void 0;dO7(L)},JO=function(){zS(!1);
go();d8(!1);le(void 0);V7(void 0);UW(void 0);Nb=0;OA(0);I=!1},yN=function(){var w8;
(w8=m)==null||w8.onPause();Q&&Q.release();c.flush().catch(function(T0){_.pK(T0)});
M.flush().catch(function(T0){_.pK(T0)});
sxf(z);vS(!0)},Ks=function(){var w8;
(w8=m)==null||w8.onResume();bi();w8=z;w8.isForeground=!0;sq(w8,"PLAY_EVENT_TYPE_PLAY_RESUME");vS(!1)},X4=function(w8){var T0;
(T0=m)==null||T0.onAudioToggled(w8);hk(w8)},hE=function(w8){A().showMultiplayer3pConsentDialogCommand&&(A().isEmbeddedInWebview&&w8!==void 0&&h.resolve(w8),!w8&&_.WDk()==="mini_app"&&NM(A().showMultiplayer3pConsentDialogCommand))},Ab=function(){var w8,T0,SG,li;
return _.O(function(VX){if(VX.nextAddress==1){!A().isLivestream||A().disableVideoCapture||(w8=m)!=null&&w8.sendStartGameFrameCapture();T0=(new URL(window.location.href)).searchParams;if(T0.has("invite_code")){var uG=new j2S,hl=T0.get("invite_code");SG=_.IS(uG,1,hl);(li=m)==null||li.sendGameData(SG)}NG()||(d8(!0),uG=z,uG.state!==1?_.pK(new _.XN("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+zZ7[uG.state])):(_.M1("mini_app_ids_without_game_ready").includes(uG.JSC$16887_miniAppId)&&(uG.gameReady=
!0),uG.state=2,uG.beforeReady=!1,Mk(uG,"ma_ffr"),sq(uG,"PLAY_EVENT_TYPE_PLAY_READY")));return VX.yield(h.promise,2)}NM(A().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();A().isEmbeddedInWebview||hE();_.XH(VX)})},G0=function(){var w8=z;
w8.gameReady=!0;Mk(w8,"ma_gr")},xD=function(w8){var T0;
return _.O(function(SG){if(SG.nextAddress==1)return _.g2(SG,2),SG.yield(jxS(c,w8),4);if(SG.nextAddress!=2)return _.us(SG,0);T0=_.UT(SG);NM(A().showSavingErrorPopupCommand);throw T0;})},sK=function(){var w8,T0;
return _.O(function(SG){if(SG.nextAddress==1)return _.g2(SG,2),SG.yield(Wtf(c),4);if(SG.nextAddress!=2)return w8=SG.yieldResult,SG.return(w8);T0=_.UT(SG);NM(A().showLoadingErrorDialogCommand);throw T0;})},sp=function(w8){z.logError(w8)},NI=function(w8,T0,SG){J5N(z,w8,T0,SG)},pQ=function(w8,T0){mOD(z,w8,T0)},oG=function(){!Y&&A().isEmbeddedInWebview||_.Ea();
VgG(z,!0);r||(window.addEventListener("beforeunload",Qk,{capture:!0}),r=!0)},EQ=function(w8){var T0,SG,li,VX,uG,hl,qf;
return _.O(function(UJ){if(UJ.nextAddress==1)return M&&(!y||y<w8)&&w8>0?UJ.yield(RNN(M,w8),3):UJ.jumpTo(0);T0=UJ.yieldResult;SG=_.x(T0);li=SG.next().value;VX=SG.next().value;uG=li;hl=VX;((qf=uG)==null?0:qf.displayString)&&hl&&(V7(hl),UW(uG.displayString));_.XH(UJ)})},XV=function(w8){var T0=A().onBenchmarkingMessageReceivedCommand;
if(T0){var SG=BhV();_.Ug(w8,3,H77,SG);jb(T0,$c8(w8))}},pu=function(w8){var T0=A().onGameFrameReceivedCommand;
if(T0){var SG=new he;var li=new TxD;var VX=Uk(w8,1);li=_.r5(li,1,VX);w8=_.X1(w8,2);w8=_.IS(li,2,w8);SG=_.DE(SG,2,w8);jb(T0,nkf(SG))}},GS=function(w8){var T0=A().onGameAudioDataReceivedCommand;
if(T0){var SG=new he;var li=new vkA;w8=_.X1(w8,1);li=_.IS(li,1,w8);SG=_.DE(SG,4,li);jb(T0,nkf(SG))}},Q7=function(){var w8=new URLSearchParams(window.location.search);
if(A().isEmbeddedInWebview&&w8&&w8.get("override_hl")==="true"&&w8.get("hl"))return w8.get("hl");w8=document.documentElement.lang;return w8!==""?w8:_.Zn},sW=function(w8){var T0=A().onShareInviteCodeCommand;
if(T0)if(A().isEmbeddedInWebview){var SG=new CS7;w8=_.IS(SG,1,w8);jb(T0,o5A(w8))}else SG=A().inviteCodeShareClientParamIdentifier,L.clientParams.set(SG,{miniAppClientParams:{inviteCode:w8}}),NM(T0)},jc=function(w8){var T0,SG,li;
return _.O(function(VX){if(VX.nextAddress==1)return T0=A().onMiniAppOpenYtContentRequested,M&&_.v("enable_open_yt_content")&&T0?VX.yield(Ap7(M,w8),3):VX.jumpTo(0);SG=VX.yieldResult;if(SG==="OK")if(A().isEmbeddedInWebview){var uG=new VY8;li=mx(uG,2,Cd,QN(w8));jb(T0,m2G(li))}else Z.clientData.set("video_id",w8),NM(T0);_.XH(VX)})},ro=function(w8){Nb+=_.sU(w8,3);
w8=Math.min(Math.log(1+Nb/15E6*9)/Math.log(10),.99);OA(w8);HS(w8)},HS=_.$l(function(w8){var T0=A().updateLoadingProgressCommand;
if(T0){var SG=new VY8;w8=mx(SG,3,Cd,_.GN(w8));jb(T0,m2G(w8))}},100),nD=function(w8){return n3Z(N,w8)},bi=function(){var w8,T0;
((w8=_.Vol())==null?void 0:(T0=w8.wakeLock)==null?void 0:T0.request)!=null&&_.Vol().wakeLock.request("screen").then(function(SG){Q=SG}).catch(function(){})},Q$=_.d5("iframe");
_.jq(function(){A().isSupportedCountry&&(oVq()||_.v("enable_sign_in_promo")||!A().showSignInDialogCommand?Q$.value&&Up(Q$.value):NM(A().onMiniAppReadyCommand))},"ASuFde");
var y7=function(){return _.V("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return NG()?0:-1},
el:Q$})},Up=function(w8,T0){T0=T0===void 0?!1:T0;
var SG=IN();SG&&(T0||SG.toString()!==w8.getAttribute("src"))&&(m=eaP(A().source,{isAudioEnabled:nu,onFirstFrameReady:Ab,onGameReady:G0,onSave:xD,onLoad:sK,onError:sp,onSdkCalled:NI,onSdkPerformanceUpdate:pQ,onClick:oG,onSendHighScore:EQ,onBenchmarkingMessageReceived:XV,getLanguage:Q7,onShareInviteCode:sW,onResourceLoaded:ro,onOpenYTContent:jc,onShowMiniAppAd:nD,onGameFrameReceived:pu,onGameAudioReceived:GS},w8,SG),$9(w8,"load",function(){Mk(z,"ma_il");$9(w8,"load",function(){Up(w8,!0)})}),_.Lq(w8,
SG))},IN=function(){var w8=A().url;
if(w8&&(w8=_.pn(w8),w8!==null)){if(A().source&&A().source==="MINI_APP_SOURCE_GAMESNACKS")w8=_.mM(w8,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.v("enable_origin_query_parameter_bugfix")){var T0=_.ge(_.I1k(w8.toString()));T0=new URLSearchParams(T0||"");T0.set("origin",window.location.origin);T0=T0.toString();w8=_.Kq(w8).toString();w8=_.IR(jAS.exec(w8)[0]+(T0.trim()?"#"+T0:""))}return w8}},aR=function(){var w8={};
w8=_.To("yt-mini-app-container-view-model__loading-screen",(w8["yt-mini-app-container-view-model__loading-screen--fade-out"]=NG,w8));var T0=function(){return NG()?1:RH()};
return _.V("div",{class:w8},_.V(_.ni,{data:function(){return A().splashScreen}},{miniAppSplashScreenViewModel:function(SG){return _.V(hZf,{data:SG.data,
loadingProgress:T0})}}))},oN=function(){var w8={};
return _.V("div",{class:_.To("yt-mini-app-container-view-model__pause-interstitial",(w8["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!RA()},w8["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=RA,w8))},_.V(_.ni,{data:function(){return A().splashScreen}},{miniAppSplashScreenViewModel:function(T0){return _.V(hZf,{data:T0.data,
forPaused:!0})}}))},ka=function(){T=[];
T.push(_.KC(window,"visibilitychange",function(){b||P&&mm()||(document.visibilityState==="visible"?Ks():yN())}));
T.push(_.KC(window,"pagehide",function(){go()}));
T.push(_.KC(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&wf.value.dispatchEvent(new Event("tap"))},0)}));
T.push(_.KC(wf.value,"pointerdown",function(){VgG(z,!1)},!0));
T.push(_.KC(wf.value,"pause",function(){b=!0;yN()}));
T.push(_.KC(wf.value,"play",function(){b=!1;Ks()}));
T.push(_.KC(wf.value,"exit",function(){go()}));
var w8=navigator.keyboard,T0=w8&&w8.lock;T.push(_.KC(window,wrS,function(){gf(epS());epS()?(A().hasPlayNextShelf&&Jz("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),e5("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),T0&&w8.lock(["Escape"])):(A().hasPlayNextShelf&&e5("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Jz("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),T0&&w8.unlock())}));
A().showMultiplayer3pConsentDialogCommand&&T.push(_.KC(window,"yt-playables-ack-3p-data-usage",function(){YjS(M)}));
A().confirmExitMiniAppCommandEdu&&T.push(_.KC(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.Im("exit-mini-app-seen-state","true",2592E6)}));
A().onGameAudioDataReceivedCommand&&T.push(_.KC(window,"message",function(SG){SG=SG.event_;var li,VX=(li=Q$.value)==null?void 0:li.src;if(VX&&SG.origin===(new URL(VX)).origin&&SG.data&&SG.data.type==="GAME_AUDIO"&&SG.data.audio&&SG.data.audio.length>0)if(_.v("enable_sending_unwrapped_game_audio_as_serialized_metadata"))CAS(A().onGameAudioDataReceivedCommand,SG.data.audio);else{var uG=new FileReader;uG.onload=function(){var hl=new he;var qf=new vkA;qf=_.IS(qf,1,uG.result);hl=_.DE(hl,4,qf);jb(A().onGameAudioDataReceivedCommand,
nkf(hl))};
uG.readAsDataURL(new Blob([SG.data.audio]))}}))},lK=function(){T.forEach(function(w8){XS(w8)});
window.removeEventListener("beforeunload",Qk,{capture:!0})},NM=function(w8){w8&&Fqk(w8,A().isEmbeddedInWebview||!1)},e5=function(w8,T0){w8=_.x(wf.value.getElementsByClassName(w8));
for(var SG=w8.next();!SG.done;SG=w8.next())SG.value.classList.add(T0)},Jz=function(w8,T0){w8=_.x(wf.value.getElementsByClassName(w8));
for(var SG=w8.next();!SG.done;SG=w8.next())SG.value.classList.remove(T0)};
return function(){var w8={};w8=_.To("yt-mini-app-container-view-model",(w8["yt-mini-app-container-view-model--desktop"]=!0,w8["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return A().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},w8["yt-mini-app-container-view-model--ios-web-view"]=KcV(),w8["yt-mini-app-container-view-model--no-top-bar"]=function(){return!A().topBar},w8["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return A().hasPlayNextShelf},w8["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return A().hasPlayNextShelf},w8["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Mg()&&A().hasPlayNextShelf},w8));
var T0={};T0=_.To("yt-mini-app-container-view-model__content",(T0["yt-mini-app-container-view-model__content--desktop-content"]=!0,T0["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return A().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},T0["yt-mini-app-container-view-model--desktop-play-page"]=function(){return A().hasPlayNextShelf},T0));
return _.V("mini-app-container-view-model",{el:wf},_.V("div",{class:w8},_.V(_.J,{cond:function(){return A().topBar&&!Mg()},
then:function(){return _.V(_.ni,{data:function(){return A().topBar}},{miniAppTopBarViewModel:function(SG){return _.V(eZD,{data:SG.data,
isAudioEnabled:nu,onAudioToggled:function(li){X4(li)},
score:mS,formattedScore:KD,onScoreChanged:function(li){y=li},
isEmbeddedInWebview:mm,isSaved:A9,onSaveToggled:function(li){le(li)},
isExitMiniAppSeen:i8,isDesktopPlayPage:$Z})}})}}),_.V("div",{class:T0},_.V(_.J,{cond:eH,
then:function(){return y7()}}),_.V(_.J,{cond:function(){return A().isLivestream},
then:function(){return oN()}}),_.V(_.J,{cond:function(){return!A().isEmbeddedInWebview},
then:function(){return aR()}}))))}()},"xe");
Pvq.idomCompat=!0;_.Ow(Pvq,"mini-app-container-view-model",{props:{data:_.VY}});var EYz=_.E5(function(R){var A=R.data;return _.V("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.V("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.Qi(function(){var Y=A().onTap;Y&&_.Zc(Y)})},_.V(_.J,{cond:function(){return A().icon},
then:function(Y){return _.V(_.H1,{icon:function(){return Y().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.V("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return A().title})))},"ye");
EYz.idomCompat=!0;var zNN=_.E5(function(R){var A=_.LK("div"),Y=_.x(_.yy(void 0,void 0,"dg3xff")),P=Y.next().value,E=Y.next().value;Y=_.x(_.yy(void 0,void 0,"AgHNfc"));var z=Y.next().value,c=Y.next().value;Y=_.x(_.yy(void 0,void 0,"fuTKCc"));var M=Y.next().value,N=Y.next().value,y=function(){var p=P();return p!==void 0?Math.abs(p):void 0},m=function(){var p=y();
return p===void 0||p<=3},T=function(){var p=y();
var h=z(),L=M();p=p!==void 0&&h!==void 0&&L!==void 0?h-L-p:void 0;return p===void 0||p<=3},Q=function(p){A.value&&A.value.scrollBy({top:0,
left:(_.a1("HTML_DIR")==="rtl"?-1:1)*p*A.value.clientWidth,behavior:"smooth"})},g=function(){var p;
E((p=A.value)==null?void 0:p.scrollLeft);var h;c((h=A.value)==null?void 0:h.scrollWidth);var L;N((L=A.value)==null?void 0:L.clientWidth)},r=function(){Q(-.5)},I=function(){Q(.5)};
Y=_.Qi(function(){g()});
_.WD(function(){g();if(A.value&&window.ResizeObserver){var p=new ResizeObserver(g);p.observe(A.value);_.bm(function(){p.disconnect()})}});
var b={};return _.V("yt-sponsorships-scrollable-shelf",{class:_.To("ytdSponsorshipsScrollableShelfHost",R.className)},_.V("div",{class:_.To("ytdSponsorshipsScrollableShelfContent",(b.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return R.data().previousButton&&R.data().nextButton&&!m()&&!T()},b.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return R.data().previousButton&&!m()&&T()},b.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return R.data().nextButton&&
m()&&!T()},b)),
el:A,"on:scroll":Y},R.children),_.V(_.J,{cond:function(){return!m()},
then:function(){return _.V(_.ni,{data:function(){return R.data().previousButton}},{buttonViewModel:function(p){return _.V(_.Is,{data:p.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:r})}})}}),_.V(_.J,{cond:function(){return!T()},
then:function(){return _.V(_.ni,{data:function(){return R.data().nextButton}},{buttonViewModel:function(p){return _.V(_.Is,{data:p.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:I})}})}}))},"ze");
zNN.idomCompat=!0;var lT7=_.E5(function(R){var A=R.data;R={};return _.V("yt-sponsorships-hub",{class:_.To("ytdSponsorshipsHubHost",(R.ytdSponsorshipsHubHostIndented=function(){return A().indented},R))},_.V("div",{class:"ytdSponsorshipsHubHeader"},_.V("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.V("div",{class:"ytdSponsorshipsHubAvatar"},_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW})),_.V(_.J,{cond:function(){return A().badgeImage},
then:function(Y){return _.V("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.V("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.V("div",{class:"ytdSponsorshipsHubBadge"},_.V(_.P1,{data:Y,targetWidth:24,targetHeight:24,alt:""}))))}})),_.V("div",{class:"ytdSponsorshipsHubDetails"},_.V("div",{class:"ytdSponsorshipsHubTierName"},function(){return A().tierName}),_.V("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return A().membershipType}),_.V("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return A().membershipDurationOrExpiry})),_.V("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.V(_.ni,{data:function(){return A().manageButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.V(_.ni,{data:function(){return A().actionMenuButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.V("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return A().perksTitle}),_.V(zNN,{data:function(){return{previousButton:A().previousPerkButton,
nextButton:A().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.V("div",{class:"ytdSponsorshipsHubPerkCards"},_.V(_.ni,{data:function(){return A().perkCards}},{sponsorshipsHubPerkCardViewModel:EYz}),_.V(_.J,{cond:function(){return A().viewAllPerksButton},
then:function(Y){return _.V(i8H,{data:Y})}}))))},"Ae");
lT7.idomCompat=!0;var i8H=_.E5(function(R){var A=R.data;return _.V("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.V(_.ni,{data:function(){return A().button}},{buttonViewModel:_.Is}),_.V("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.V("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return A().title}),_.V("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return A().subtitle})))},"Be");
i8H.idomCompat=!0;_.Ow(lT7,"yt-sponsorships-hub",{props:{data:_.VY}});_.x5f=_.E5(function(R){var A=R.data;return _.V("yt-dual-avatar-view-model",{class:_.To("ytDualAvatarViewModelHost",R.className),style:_.nY({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var Y;return((Y=A().badgeCutoutRadius)!=null?Y:14)+"px"}})},_.V("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.V(_.ni,{data:function(){return A().startAvatar}},{avatarViewModel:_.qW}),_.V(_.ni,{data:function(){return A().endAvatar}},{avatarViewModel:_.qW})),_.V(_.ni,{data:function(){return A().badge}},
{contentPreviewImageViewModel:function(Y){return _.V("div",{class:"ytDualAvatarViewModelBadge"},_.V(_.rw,{data:Y.data}))}}))},"Ce");
_.x5f.idomCompat=!0;var O8q=_.E5(function(R){var A=R.data;var Y,P=!((Y=_.is().resolve(_.z3(_.dU)))==null||!Y());R=_.gE(function(){var m,T,Q=P?(m=A().header)==null?void 0:m.backgroundColorDarkMode:(T=A().header)==null?void 0:T.backgroundColorLightMode;if(Q!==void 0)return _.Zs(Q)},void 0,"TDdh7d");
Y=_.gE(function(){var m,T;return P?(m=A().header)==null?void 0:m.backgroundImagePart1Dark:(T=A().header)==null?void 0:T.backgroundImagePart1Light},void 0,"X0peMe");
var E=_.gE(function(){var m,T;return P?(m=A().header)==null?void 0:m.backgroundImagePart2Dark:(T=A().header)==null?void 0:T.backgroundImagePart2Light},void 0,"an0Hzd"),z=_.gE(function(){return _.a1("HTML_DIR")==="rtl"},void 0,"BltEgb"),c=_.LK("yt-sponsorships-perks-list"),M=!1,N=function(){var m=c.value;
if(m&&!M){var T,Q=(T=m.parentElement)==null?void 0:T.parentElement;if(Q)for(m=m.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),T=0;T<m.length;++T){var g=m[T];if(g instanceof HTMLElement){Q.scrollTo({top:g.offsetTop+g.clientHeight/2-Q.clientHeight/2,behavior:"smooth"});M=!0;break}}}};
_.jO(function(){var m=c.value;if(m&&window.ResizeObserver){var T=new ResizeObserver(N);T.observe(m);_.bm(function(){T.disconnect()})}});
var y={};return _.V("yt-sponsorships-perks-list",{el:c,class:_.To("ytdSponsorshipsPerksListHost",(y.ytdSponsorshipsPerksListHorizontalPadding=function(){return A().horizontalPaddingEnabled},y))},_.V("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.V("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.nY({"background-color":R})},_.V("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.V(_.J,{cond:Y,then:function(m){var T={};return _.V("div",{class:_.To((T.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,T.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,T.ytdSponsorshipsPerksListFlipped=z,T))},_.V(_.P1,{data:m,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.V("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.V(_.J,{cond:E,
then:function(m){var T={};return _.V("div",{class:_.To((T.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=P,T.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!P,T.ytdSponsorshipsPerksListFlipped=z,T))},_.V(_.P1,{data:m,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.V("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.V(_.ni,{data:function(){var m;
return(m=A().header)==null?void 0:m.dualAvatar}},{dualAvatarViewModel:_.x5f})))),_.V("div",{class:"ytdSponsorshipsPerksListBody"},_.V("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return A().title}),_.V(_.J,{cond:function(){return A().perks},
then:function(m){return _.V(_.Ue,{each:m},function(T,Q){var g={};return _.V("div",{class:_.To("ytdSponsorshipsPerksListPerkContainer",(g.ytdSponsorshipsPerksListSelectedPerk=function(){var r=Q(),I=A().selectedPerkIndex;return r===I},g))},_.V(_.J,{cond:function(){return Q()>0},
then:function(){return _.V("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.V("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.V(_.J,{cond:function(){return T.icon},
then:function(r){return _.V(_.H1,{icon:function(){return r().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.V("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.V("div",{class:"ytdSponsorshipsPerksListPerkTitle"},T.title),_.V("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.V(_.NU,{text:T.description})),_.V(_.J,{cond:function(){return T.instructions},
then:function(){var r,I;return _.V("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.V("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(r=T.instructions)==null?void 0:r.title),_.V("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.V(_.NU,{text:(I=T.instructions)==null?void 0:I.text})))}}))),_.V(_.J,{cond:function(){return T.emoji},
then:function(r){return _.V("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.V(_.Ue,{each:function(){return r()}},function(I){return _.V(_.P1,{data:I,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.V(cpD,{data:T}))})}})))},"De");
O8q.idomCompat=!0;var cpD=_.E5(function(R){var A=R.data;var Y=function(c,M){return c===M},P=function(){var c=A();
c=_.n(c==null?void 0:c.badgesShelf,qVS);return c!==void 0&&c!==null?c:{previousButton:{},nextButton:{}}},E=_.d5("div"),z=function(){var c=E.value;
if(c){var M=c.parentElement;if(M){c=c.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var N=0;N<c.length;++N){var y=c[N];if(y instanceof HTMLElement){M.scrollTo({left:y.offsetLeft+y.clientWidth/2-M.clientWidth/2,behavior:"instant"});break}}}}};
_.jO(function(){var c=E.value;if(c){var M=new ResizeObserver(z);M.observe(c);_.bm(function(){M.disconnect()})}});
return _.V("div",null,_.V(_.J,{cond:function(){return A().badges},
then:function(c){return _.V(zNN,{data:P},_.V("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:E},_.V(_.Ue,{each:function(){return c()}},function(M,N){var y={},m={},T={};
return _.V("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.V(_.J,{cond:function(){return N()>0},
then:function(){return _.V("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.V("div",{class:_.To("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(y.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return Y(N(),A().currentBadgeIndex)},y.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!Y(N(),A().currentBadgeIndex)},y))},_.V("div",{class:_.To("ytdSponsorshipsPerksListLoyaltyBadge",(m.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return Y(N(),
A().currentBadgeIndex)},m.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!Y(N(),A().currentBadgeIndex)},m))},_.V(_.J,{cond:function(){return M.image},
then:function(Q){var g={};return _.V("div",{class:_.To((g.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return Y(N(),A().currentBadgeIndex)},g.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!Y(N(),A().currentBadgeIndex)},g))},_.V(_.P1,{data:Q,
alt:""}))}})),_.V("div",{class:_.To("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(T.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return Y(N(),A().currentBadgeIndex)},T))},M.title)))})))}}))},"Ee");
cpD.idomCompat=!0;_.Ow(O8q,"yt-sponsorships-perks-list",{props:{data:_.VY}});_.Ow(_.E5(function(R){return _.V("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.V(_.J,{cond:function(){return R.data().image},
then:function(A){return _.V(_.P1,{className:"ytwFantasyEmptyStateViewModelImage",data:A,ariaHidden:!0,alt:""})}}),_.V(_.NU,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return R.data().title}}),_.V(_.NU,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return R.data().subtitle}}),_.V(_.ni,{data:function(){return R.data().primaryButton}},{buttonViewModel:function(A){return _.V(_.Is,{data:A.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Fe"),"ytw-fantasy-empty-state-view-model",{props:{data:_.VY}});var MhA;var shS=_.E5(function(R){var A=R.data;var Y=R.uniqueId;var P=R.overrides;R=_.gE(function(){var E,z=((E=A().timedAnimationData)==null?void 0:E.animationTiming)||[];return{uniqueId:Y(),timings:z,experimentEnabled:z.length>0,enabled:z.length>0}},void 0,"hiuXI");
return _.V("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.V(cJS,{settings:R},_.V(_.ni,{data:function(){return A().buttonRenderer}},{buttonRenderer:function(E){return _.V(_.VO,{data:E.data,
buttonOverrides:P})}})))},"Ge");
shS.idomCompat=!0;_.Ow(shS,"timed-animation-button-renderer",{props:{data:_.VY,uniqueId:_.VY,overrides:_.VY}});var Tz=function(){var R=_.K.apply(this,arguments)||this;R.hideJoinButtonBeforeSubscribed=_.v("hide_join_button_before_subscribed");R.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return R};
_.H(Tz,_.K);_.l=Tz.prototype;_.l.hasShowDialogCommand=function(R){return!!_.n(R,PFb)};
_.l.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"}}}};
_.l.updateJoinButtonOverrides=function(){var R,A;(R=_.Mo(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(A=R.polymerController)==null||A.set("overrides",this.joinButtonOverrides);if(R=_.Mo(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))R.overrides=this.joinButtonOverrides};
_.l.handleButtonRefreshAction=function(R){if(R=_.n(R,bF7))this.set("data.membershipButton",R.membershipButton),this.notifyPath("data.membershipButton")};
_.l.onYtServiceRequestError=function(R){_.Zk(this.hostElement,R.detail.error.message)};
_.l.onKeydown=function(R){if(R.key==="Enter"){var A;(A=this.data)!=null&&A.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.l.handleUnsubscribeAction=function(){var R,A,Y;((R=this.data)==null?void 0:(A=R.membershipButton)==null?void 0:(Y=A.buttonRenderer)==null?void 0:Y.style)==="STYLE_PRIMARY"&&_.Mo(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Yh.Object.defineProperties(Tz.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.subscriptionStateEntity)==null||!R.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var R,A=(R=this.data)==null?void 0:R.membershipButton,Y;R=(A==null?void 0:A.buttonRenderer)||_.n(A==null?void 0:(Y=A.timedAnimationButtonRenderer)==null?void 0:Y.buttonRenderer,_.RC);return(R==null?void 0:R.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(R==null?void 0:R.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(R==null?void 0:R.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var R;if(this.hasShowDialogCommand((R=this.data)==null?void 0:R.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var R;if(this.hasShowDialogCommand((R=this.data)==null?void 0:R.navigationEndpoint))return"button"}}});
Tz.prototype.onYtServiceRequestError=Tz.prototype.onYtServiceRequestError;Tz.prototype.updateJoinButtonOverrides=Tz.prototype.updateJoinButtonOverrides;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Tz.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Tz.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],Tz.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Tz.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.oj),_.k("design:type",Object)],Tz.prototype,"ironButtonState",void 0);_.C([_.S(),_.k("design:type",Object)],Tz.prototype,"data",void 0);_.C([_.X("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.k("design:type",Object),_.k("design:paramtypes",[])],Tz.prototype,"hideJoin",null);
_.C([_.S(),_.k("design:type",String)],Tz.prototype,"subscribeKey",void 0);_.C([_.S({selectorArgs:["subscribeKey"],selector:ZMk}),_.k("design:type",Object)],Tz.prototype,"subscriptionStateEntity",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Tz.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.C([_.X("subscriptionStateEntity"),_.S({reflectToAttribute:!0}),_.k("design:type",Object),_.k("design:paramtypes",[])],Tz.prototype,"subscribed",null);
_.C([_.X("subscribed","data.membershipButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],Tz.prototype,"joinButtonOverrides",null);_.C([_.X("data.navigationEndpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],Tz.prototype,"channelNameTabIndex",null);_.C([_.X("data.navigationEndpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],Tz.prototype,"channelNameRole",null);
_.C([_.vZ("joinButtonOverrides"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tz.prototype,"updateJoinButtonOverrides",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Tz.prototype,"onYtServiceRequestError",null);_.C([_.F({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],Tz);
var NNA=_.s5()(Tz,"ytd-video-owner-renderer",function(){if(MhA===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" role$="[[channelNameRole]]" tabindex$="[[channelNameTabIndex]]" on-keydown="onKeydown" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);MhA=R}R=MhA;return R},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.Ow(_.E5(function(R){var A=R.data;var Y;R=_.x(_.yy(!((Y=_.K1("yt-mini-app-is-theater-mode-enabled"))==null||!Y),void 0,"i2pjVd"));var P=R.next().value,E=R.next().value;Y=_.x(_.yy(!1,void 0,"ga7V5c"));var z=Y.next().value,c=Y.next().value;_.jO(function(){var y=_.KC(window,wrS,function(){c(epS())});
_.bm(function(){XS(y)})});
var M;Y=(M=_.is().resolve(_.z3(p7Z)))!=null?M:function(){return _.V("div",null)};
_.qj("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){E(!0);_.Im("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.qj("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){E(!1);_.Im("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
M={};R={};var N={};return _.V("mini-app-play-page-renderer",{class:_.To("miniAppPlayPageRendererHost",(M.miniAppPlayPageRendererHostDetailsView=function(){return!P()},M))},_.V("div",{class:_.To("miniAppPlayPageRendererGameContainer",(R.miniAppPlayPageRendererGameContainerDetailsView=function(){return!P()},R))},_.V(_.ni,{data:function(){return A().containerViewModel}},{miniAppContainerViewModel:Pvq}),_.V(_.J,{cond:function(){return A().channel&&A().subscribeButton},
then:function(){var y={};return _.V("div",{class:_.To("miniAppPlayPageRendererChannelContainer",(y.miniAppPlayPageRendererHideVisibility=function(){return z()},y))},_.V(_.ni,{data:function(){return A().channel}},{videoOwnerRenderer:function(m){return _.V(NNA,{data:m.data})}}),_.V(_.ni,{data:function(){return A().subscribeButton}},{subscribeButtonViewModel:function(m){return _.V(_.qu,{data:m.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.V(_.J,{cond:function(){return!P()&&A().description},
then:function(){var y={};return _.V("div",{class:_.To("miniAppPlayPageRendererMiniAppDescriptionWrapper",(y.miniAppPlayPageRendererHideVisibility=function(){return z()},y))},_.V("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return A().description}))}})),_.V("div",{class:_.To("miniAppPlayPageRendererPlayNextContainer",(N.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!P()},N.miniAppPlayPageRendererHideVisibility=function(){return z()},N))},_.V(_.ni,{data:function(){return A().sectionList}},
{sectionListRenderer:Y})))},"He"),"mini-app-play-page-renderer",{props:{data:_.VY}});var Qq=function(){var R=_.K.apply(this,arguments)||this;R.isSearch=!1;R.isConstrainedList=!1;R.hasChipsBar=!1;R.inReplyPanel=!1;R.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"}};R.monitorScroll=!0;R.SCROLL_ANIMATION_DURATION_MS=300;R.nextContinuation={continuationType:"sectionListContinuation"};return R};
_.H(Qq,_.K);_.l=Qq.prototype;
_.l.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(R){switch(R.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},flowRootRenderer:{component:"ytd-flow-root-renderer",
noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",
noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",
noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},
liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},
creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.v("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.v("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.l.created=function(){var R=this;this.JSC$17027_scrollAnimation=new _.ch(function(A){R.hostElement.scrollTop=A})};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.l.getItemsPath=function(){return"data.contents"};
_.l.replacePrimaryContent=function(R){this.set("data.contents",R)};
_.l.computeHasSortFilter=function(R){return!!R&&!!R.sortFilterSubMenuRenderer};
_.l.computeShouldScrollInPanel=function(R){var A;return!!(R==null?0:(A=R.scrollPaneStyle)==null?0:A.scrollable)};
_.l.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.No(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.l.scrollToTop=function(){this.hostElement.scrollTop=0};
_.l.scrollToItemSection=function(R){if(R=this.getItemByIdentifier(R))R=this.getScrollPositionForItem(R),this.hostElement.scrollTop!==R&&this.JSC$17027_scrollAnimation.start(this.hostElement.scrollTop,R,this.SCROLL_ANIMATION_DURATION_MS)};
_.l.getItemByIdentifier=function(R){var A=this.contents.querySelectorAll("ytd-item-section-renderer");if(A&&A.length!==0){var Y=Array.from(A).findIndex(function(P){return P.sectionIdentifier===R});
return A[Y===-1?0:Y]}};
_.l.getScrollPositionForItem=function(R){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===R)return 0;R=_.k2(R).y+this.hostElement.scrollTop-_.k2(this.hostElement).y;return Math.min(R,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Yh.Object.defineProperties(Qq.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.targetId)==="browse-feedFEclips"}}});
Qq.prototype.onScroll=Qq.prototype.onScroll;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Qq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],Qq.prototype,"ytLazyListBehavior",void 0);_.C([_.U(_.Oo.YtNextContinuationBehavior),_.k("design:type",Object)],Qq.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.U(_.RZb),_.k("design:type",Object)],Qq.prototype,"ytBooleanLogicBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],Qq.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qq.prototype,"data",void 0);_.C([_.S({value:2}),_.k("design:type",Number)],Qq.prototype,"initialCount",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],Qq.prototype,"autoFill",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.k("design:type",Boolean)],Qq.prototype,"hasSortFilter",void 0);_.C([_.S({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.k("design:type",Boolean)],Qq.prototype,"hideBottomSeparator",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.k("design:type",Boolean)],Qq.prototype,"shouldScrollInPanel",void 0);
_.C([_.S(),_.k("design:type",Object)],Qq.prototype,"isSearch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qq.prototype,"isConstrainedList",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],Qq.prototype,"responsiveSizing",void 0);_.C([_.S(),_.k("design:type",Object)],Qq.prototype,"hasChipsBar",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],Qq.prototype,"pageSubtype",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Qq.prototype,"engagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Qq.prototype,"liveChatEngagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qq.prototype,"inReplyPanel",void 0);_.C([_.nG("#action-button"),_.k("design:type",HTMLElement)],Qq.prototype,"actionButton",void 0);_.C([_.S(),_.k("design:type",Object)],Qq.prototype,"scrollUpButtonData",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Qq.prototype,"engagementPanelDropdown",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Qq.prototype,"engagementPanelDialog",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qq.prototype,"isClipList",null);_.C([_.nG("#contents"),_.k("design:type",HTMLElement)],Qq.prototype,"monitorScrollElement",void 0);_.C([_.nG("#contents"),_.k("design:type",HTMLElement)],Qq.prototype,"contents",void 0);
_.C([_.Qa("scroll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qq.prototype,"onScroll",null);_.C([_.F({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Qq);
var VhH=_.s5()(Qq,"ytd-section-list-renderer",function(){if(ffH===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);ffH=R}R=ffH;return R},{mode:1});var JpH;var ypN;var m57;var TNA;var vh=function(){return _.K.apply(this,arguments)||this};
_.H(vh,_.K);vh.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
vh.prototype.onLikeButtonClick=function(R){R.stopPropagation();R.preventDefault()};
_.Yh.Object.defineProperties(vh.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)!=null&&R.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)})}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],vh.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],vh.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],vh.prototype,"ytRendererStamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vh.prototype,"data",void 0);
_.C([_.S({selectorArgs:["data.likeStatusEntityKey"],selector:CY}),_.k("design:type",Object)],vh.prototype,"likeStatusEntity",void 0);_.C([_.X("data","likeStatusEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],vh.prototype,"likeButtonRenderer",null);_.C([_.F({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],vh);
_.B(vh,"ytd-slim-metadata-toggle-button-renderer",function(){if(TNA!==void 0)return TNA;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return TNA=R},{mode:1});var gW=function(){var R=_.K.apply(this,arguments)||this;R.minimizePipBreakages=_.v("web_pip_minimize_breakages");R.showEqualizer=_.v("web_enable_playlist_video_lockup_equalizer");R.watchColorUpdate=_.v("kevlar_watch_color_update");R.actionMap={};return R};
_.H(gW,_.K);_.l=gW.prototype;_.l.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"}}}};
_.l.computeEditableClass=function(R){return R&&R.menu?"editable":""};
_.l.computeSelected=function(R){return!(R==null||!R.selected)};
_.l.computeUseColorPalette=function(R){return!!((R==null?0:R.lightColorPalette)&&(R==null?0:R.darkColorPalette))};
_.l.computeLargerPlaylistThumbs=function(R,A){return _.v("web_enable_playlist_bigger_thumbnails")&&!A};
_.l.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.l.onYtServiceRequestSent=function(R,A){A.endpoint&&this.isHideEnclosingAction(A.endpoint)&&!this.selected&&DrS(_.lr(),this.data.videoId)};
_.l.isHideEnclosingAction=function(R){var A=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",R);R=this.get("likeEndpoint.status",R)==="INDIFFERENT";return A||R};
_.l.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.l.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Yh.Object.defineProperties(gW.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var R;return!!(this.withinMiniplayer&&((R=this.data)==null?0:R.actionButtons))}}});
gW.prototype.onYtServiceRequestSent=gW.prototype.onYtServiceRequestSent;gW.prototype.canReorderChanged=gW.prototype.canReorderChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],gW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],gW.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gW.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.sH),_.k("design:type",Object)],gW.prototype,"ytdLockupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],gW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],gW.prototype,"withinMiniplayer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gW.prototype,"minimizePipBreakages",void 0);_.C([_.S({computed:"computeSelected(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],gW.prototype,"selected",void 0);
_.C([_.S({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],gW.prototype,"useColorPalette",void 0);_.C([_.S({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.k("design:type",Boolean)],gW.prototype,"largerPlaylistThumbs",void 0);_.C([_.S(),_.k("design:type",Object)],gW.prototype,"showEqualizer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],gW.prototype,"canReorder",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],gW.prototype,"touchPersistentDragHandle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],gW.prototype,"handleIsHovered",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gW.prototype,"watchColorUpdate",void 0);_.C([_.S(),_.k("design:type",String),_.k("design:paramtypes",[])],gW.prototype,"reorderIcon",null);
_.C([_.X("largerPlaylistThumbs"),_.k("design:type",Number),_.k("design:paramtypes",[])],gW.prototype,"thumbnailWidth",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],gW.prototype,"showActionButtons",null);_.C([_.Ul("canReorder"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gW.prototype,"canReorderChanged",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],gW.prototype,"onYtServiceRequestSent",null);_.C([_.F({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],gW);
_.B(gW,"ytd-playlist-panel-video-renderer",function(){if(m57!==void 0)return m57;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="[[reorderIcon]]" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return m57=R},{mode:2});var nL=function(){return _.K.apply(this,arguments)||this};
_.H(nL,_.K);nL.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],nL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nL.prototype,"data",void 0);_.C([_.F({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],nL);
_.B(nL,"ytd-playlist-panel-supported-items",function(){if(ypN!==void 0)return ypN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ypN=
R},{mode:1});u7D=!0;MbH("\\P{N}");var PL8;var QhA=_.vk("END_OF_PLAYLIST",void 0,"End of playlist"),vY7=_.vk("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),Hh=function(){var R=_.K.apply(this,arguments)||this;R.minimizePipBreakages=_.v("web_pip_minimize_breakages");R.updatedCoursePanel=_.v("move_three_dot_menu_to_playlist_panel_header_for_courses");R.hideHeaderText=!1;R.useColorPalette=!1;R.collapsed=!1;R.collapsedPreServerOverride="not_tracked";R.isHovered=!1;R.modernPanels=_.v("kevlar_watch_modern_panels");
R.expandLabel=_.vk("MINIPLAYER_EXPAND_LABEL");R.collapseLabel=_.vk("MINIPLAYER_COLLAPSE_LABEL");R.isFloating=!1;R.metaPanel=!1;R.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};R.currentIndex=void 0;return R};
_.H(Hh,_.K);_.l=Hh.prototype;
_.l.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"}}}};
_.l.created=function(){this.scrollThrottle=new _.kH(this.onThrottledScroll,1E3,this)};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.computeOverflowMenuData=function(R){return R&&R.menu?R.menu:null};
_.l.computeCollapsible=function(R){return!R};
_.l.computeHasPlaylistButtons=function(R){return!(!R||!R.playlistButtons)};
_.l.computeHasSeparateSaveButton=function(R){return!(!R||!R.saveButton)};
_.l.computeHasToolbarButton=function(R,A){return!(!R||!(A||R.saveButton||R.menu))};
_.l.computePlaylistType=function(R){if(R&&R.playlistId)return R.playlistId.substring(0,4)};
_.l.computeCanReorder=function(R){return R?R.playlistId&&R.playlistId.startsWith("TLPQ")?!0:!!R.isEditable&&!R.isInfinite:!1};
_.l.attached=function(){var R=this;try{_.is().resolve(_.Y7).setPlaylistComponent(this.hostElement)}catch(A){if(_.v("kevlar_park_on_playlist_token_killswitch"))throw A;_.EV().parkOrScheduleJob(function(){_.is().resolve(_.Y7).setPlaylistComponent(R.hostElement)},2,"ci")}_.iE(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.l.detached=function(){_.lE(this.hostElement)};
_.l.computeTrailingIcon=function(R,A,Y){return Y?A?"yt-icons:collapse":"yt-icons:close":A?"yt-icons:expand":_.v("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.l.computeIndexMessage=function(R,A){return iNJ(R+1)+" / "+iNJ(A)};
_.l.onRenderStamperFinished=function(){if(this.scrollForStampDom){var R=!0;this.isHovered&&(R=!1);if(this.collapsed||this.hidden)R=!1;R&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.l.collapseChanged=function(){var R=this;this.collapsed||(_.cC(this.ytTaskEmitterBehavior.getTaskManager(),function(){R.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.l.hiddenChanged=function(){var R=this;this.hidden||_.cC(this.ytTaskEmitterBehavior.getTaskManager(),function(){R.scrollToCurrentVideo()})};
_.l.setupReordering=function(){var R=_.Mo(this.hostElement).querySelector("#items");P2D?_.q1H(this.ytReorderableBehavior,R,R,"playlist-drag-handle"):_.q1H(this.ytReorderableBehavior,R,R)};
_.l.scrollToCurrentVideo=function(){var R=this;_.fn.addJob(function(){var A=_.Mo(R.hostElement).querySelector("#items");if(A){A.style.setProperty("padding-bottom","");var Y=_.Mo(R.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(Y){A=Y.parentElement||_.Ws(document);var P=A||_.Ws(document);var E=_.k2(Y),z=_.k2(P),c=_.r9S(P);if(P==_.Ws(document)){var M=E.x-P.scrollLeft;E=E.y-P.scrollTop}else M=E.x-z.x-c.left,E=E.y-z.y-c.top;Y=vnq(Y);z=P.clientHeight-
Y.height;c=P.scrollLeft;var N=P.scrollTop;c+=M-(P.clientWidth-Y.width)/2;P=new _.Cs(c,N+(E-z/2));A.scrollLeft=P.x;A.scrollTop=P.y}}},8)};
_.l.dataChanged=function(){var R=this;_.e0A(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.RK(this,function(){_.Ua(R.ytTaskEmitterBehavior.getTaskManager(),function(){R.ytRendererBehavior.markDirty();R.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.l.onFullBleedPlayerChanged=function(){_.v("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.l.onFullscreenChanged=function(){_.v("web_watch_imax_theater_mode")||_.v("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.l.updateNowPlayingOverlay=function(){_.v("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.l.onPlaylistLockupNowPlaying=function(R,A){A&&(this.activeNowPlayingRenderer=A);this.updateNowPlayingOverlay()};
_.l.onScroll=function(){this.scrollThrottle.fire()};
_.l.onThrottledScroll=function(){var R=this;_.Ua(this.ytTaskEmitterBehavior.getTaskManager(),function(){R.ytRendererBehavior.markDirty()})};
_.l.onToggleExpanded=function(R){!this.collapsible||R&&(_.Yw(R).tagName==="A"||_.RP(_.Ah(R),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.l.setCollapsed=function(R){this.collapsible&&(this.collapsed=R,_.MT(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.l.handleCollapsedFromData=function(R){if(R){var A=R.playlistPanelCollapseState;A==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||A==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),A=A==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==A&&this.setCollapsed(A)):this.currentPlaylistId!==R.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(A=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==A&&this.setCollapsed(A),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=R.playlistId}};
_.l.handleDrop=function(R){var A=R.currDragItem;R=A.data.playlistSetVideoId;var Y=_.fu(A.parentNode.childNodes,A),P=void 0;Y>0&&(P=A.parentNode.childNodes[Y-1].data.playlistSetVideoId);A=_.lr();if(A.responsePlaylistData&&A.responsePlaylistData.contents){var E=yBk(R,A.responsePlaylistData);A.responsePlaylistData=(0,_.BO.unsafeClone)(A.responsePlaylistData);IIS(A.responsePlaylistData.contents,E,Y);A.queueProxy?AcS(A.queueProxy,E,Y,R,P):A.playlistProxy&&AcS(A.playlistProxy,E,Y,R,P);_.x7(A,_.cd(A,A.response?
A.response.autoplayRenderer:void 0))}};
_.l.handleDarkModeChange=function(R){R!==this.isDarkTheme&&(this.isDarkTheme=R)};
_.l.colorPaletteChanged=function(){var R,A=((R=this.data)==null?void 0:R.contents)||[],Y;R=_.x(A);for(A=R.next();!A.done;A=R.next()){A=A.value;var P=void 0;if((P=A.playlistPanelVideoRenderer)==null?0:P.selected){R=A.playlistPanelVideoRenderer;P=A=void 0;(Y=this.isDarkTheme?(A=R)==null?void 0:A.darkColorPalette:(P=R)==null?void 0:P.lightColorPalette)&&_.W1(this.hostElement,Y);break}}this.useColorPalette=!!Y};
_.Yh.Object.defineProperties(Hh.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.playlistId)&&!((A=this.data)==null||!A.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var R=_.is().resolve(_.z3(_.Y7)),A;if(((A=this.data)==null?0:A.contents)&&(R==null?0:R.hasAutoplayData())){var Y;if(((Y=this.playlistLoopStateEntity)==null?void 0:Y.state)==="PLAYLIST_LOOP_STATE_ONE"){if(R=this.data.currentIndex,R!==void 0){var P,E;var z=(P=this.data.contents[R])==null?void 0:(E=P.playlistPanelVideoRenderer)==null?void 0:E.title}}else{var c,M=(c=_.n(R.getAutoplayEndpoint(),_.LO))==null?void 0:c.videoId,N,y;z=(N=this.data.contents.find(function(m){var T;
return((T=m.playlistPanelVideoRenderer)==null?void 0:T.videoId)===M}))==null?void 0:(y=N.playlistPanelVideoRenderer)==null?void 0:y.title}return z}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)!=null&&R.nextVideoLabel?this.nextVideoTitle?_.R4(this.data.nextVideoLabel)+":":QhA:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var R;if(((R=this.data)==null?0:R.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.v("web_mix_long_byline_from_data"))return _.dF(vY7);var A;return(A=this.data)==null?void 0:A.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.playlistButtons)==null?void 0:(Y=A.menuRenderer)==null?void 0:Y.topLevelButtons;if(P)for(R=_.x(P),A=R.next();!A.done;A=R.next())if(A=A.value,A.playlistLoopButtonRenderer)return A.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var R;return!!(this.collapsed&&((R=this.data)==null?0:R.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.v("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
Hh.prototype.colorPaletteChanged=Hh.prototype.colorPaletteChanged;Hh.prototype.onPlaylistLockupNowPlaying=Hh.prototype.onPlaylistLockupNowPlaying;Hh.prototype.updateNowPlayingOverlay=Hh.prototype.updateNowPlayingOverlay;Hh.prototype.onFullscreenChanged=Hh.prototype.onFullscreenChanged;Hh.prototype.onFullBleedPlayerChanged=Hh.prototype.onFullBleedPlayerChanged;Hh.prototype.dataChanged=Hh.prototype.dataChanged;Hh.prototype.hiddenChanged=Hh.prototype.hiddenChanged;Hh.prototype.collapseChanged=Hh.prototype.collapseChanged;
Hh.prototype.onRenderStamperFinished=Hh.prototype.onRenderStamperFinished;Hh.prototype.onMouseLeave=Hh.prototype.onMouseLeave;Hh.prototype.onMouseEnter=Hh.prototype.onMouseEnter;_.C([_.U(_.Cr),_.k("design:type",Object)],Hh.prototype,"ironResizableBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Hh.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(wNZ.YtPlaylistPanelBehavior),_.k("design:type",Object)],Hh.prototype,"ytPlaylistPanelBehavior",void 0);_.C([_.U(_.QY.YtTaskEmitterBehavior),_.k("design:type",Object)],Hh.prototype,"ytTaskEmitterBehavior",void 0);_.C([_.U(_.L2q),_.k("design:type",Object)],Hh.prototype,"ytReorderableBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Hh.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Hh.prototype,"ytdReduxBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Hh.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Hh.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Hh.prototype,"autoplayData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Hh.prototype,"withinMiniplayer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"minimizePipBreakages",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"updatedCoursePanel",void 0);_.C([_.S({computed:"setMenuData_(data)"}),_.k("design:type",Object)],Hh.prototype,"menuRendererData",void 0);_.C([_.S({computed:"computeOverflowMenuData(data)"}),_.k("design:type",Object)],Hh.prototype,"overflowMenuDataTopRow",void 0);_.C([_.S({computed:"computeOverflowMenuData(data)"}),_.k("design:type",Object)],Hh.prototype,"overflowMenuData",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"hideHeaderText",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"useColorPalette",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.k("design:type",Boolean)],Hh.prototype,"collapsible",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"collapsed",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Hh.prototype,"hidden",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.k("design:type",Boolean)],Hh.prototype,"hasPlaylistButtons",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.k("design:type",Boolean)],Hh.prototype,"hasSeparateSaveButton",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.k("design:type",Boolean)],Hh.prototype,"hasToolbar",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.k("design:type",String)],Hh.prototype,"playlistType",void 0);_.C([_.S(),_.k("design:type",Object)],Hh.prototype,"isHovered",void 0);_.C([_.S({selectorArgs:["playlistLoopStateEntityKey"],selector:_.L2k}),_.k("design:type",Object)],Hh.prototype,"playlistLoopStateEntity",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"modernPanels",void 0);_.C([_.S({value:56}),_.k("design:type",Number)],Hh.prototype,"scrollMargin",void 0);_.C([_.S({computed:"computeCanReorder(data)"}),_.k("design:type",Boolean)],Hh.prototype,"canReorder",void 0);_.C([_.S(),_.k("design:type",Object)],Hh.prototype,"expandLabel",void 0);_.C([_.S(),_.k("design:type",Object)],Hh.prototype,"collapseLabel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"isFloating",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Hh.prototype,"metaPanel",void 0);_.C([_.S({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.k("design:type",String)],Hh.prototype,"trailingIcon",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Hh.prototype,"isDarkTheme",void 0);
_.C([_.S({selector:_.BK}),_.k("design:type",Boolean)],Hh.prototype,"miniplayerIsActive",void 0);_.C([_.S({selector:function(R){return R.watch.playerState}}),
_.k("design:type",Number)],Hh.prototype,"playerState",void 0);_.C([_.S({selector:_.FW}),_.k("design:type",Boolean)],Hh.prototype,"isFullscreen",void 0);_.C([_.S({selector:_.pY}),_.k("design:type",Boolean)],Hh.prototype,"isTheaterMode",void 0);_.C([_.S(),_.k("design:type",Object)],Hh.prototype,"activeNowPlayingRenderer",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Hh.prototype,"moveThreeDotMenuToTopRow",null);
_.C([_.X("data","autoplayData","playlistLoopStateEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],Hh.prototype,"nextVideoTitle",null);_.C([_.X("data","nextVideoTitle"),_.k("design:type",String),_.k("design:paramtypes",[])],Hh.prototype,"nextVideoLabel",null);_.C([_.X("collapsed"),_.k("design:type",String),_.k("design:paramtypes",[])],Hh.prototype,"buttonAriaLabel",null);
_.C([_.X("data","playlistId","longBylineText"),_.k("design:type",Object),_.k("design:paramtypes",[])],Hh.prototype,"mixLongByLine",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Hh.prototype,"playlistLoopStateEntityKey",null);_.C([_.Qa("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"onMouseEnter",null);
_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"onMouseLeave",null);_.C([_.S({reflectToAttribute:!0}),_.X("data","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Hh.prototype,"showNextVideoHeader",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"onRenderStamperFinished",null);
_.C([_.vZ("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"collapseChanged",null);_.C([_.vZ("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"hiddenChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"dataChanged",null);
_.C([_.X("isTheaterMode","isFullscreen"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Hh.prototype,"isFullBleedPlayer",null);_.C([_.vZ("isTheaterMode","isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"onFullBleedPlayerChanged",null);_.C([_.vZ("isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"onFullscreenChanged",null);
_.C([_.vZ("playerState","miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"updateNowPlayingOverlay",null);_.C([_.Qa("yt-playlist-lockup-now-playing-active"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Hh.prototype,"onPlaylistLockupNowPlaying",null);
_.C([_.vZ("data","isDarkTheme"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hh.prototype,"colorPaletteChanged",null);_.C([_.F({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],Hh);
_.gYS=_.s5()(Hh,"ytd-playlist-panel-renderer",function(){if(JpH===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);JpH=R}R=JpH;return R},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var nYA;var rW=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_button_rework");return R};
_.H(rW,_.K);rW.prototype.computeShouldButtonBeVertical=function(R,A){return R||A};
rW.prototype.onYtServiceRequestSent=function(R,A){(R=_.n(A.endpoint,_.p0))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.HT("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:R.status})):this.handleLikeEndpoint(R))};
rW.prototype.computelikeStatusEntityKey=function(R){return R==null?void 0:R.likeStatusEntityKey};
rW.prototype.handleLikeEndpoint=function(R){R.status==="LIKE"?this.JSC$17052_ytdDislikeToggleButtonRenderer.toggle(!1):R.status==="DISLIKE"?this.JSC$17052_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17052_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17052_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Yh.Object.defineProperties(rW.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var R;return ONP(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(R=this.likeStatusEntity)==null?void 0:R.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var R;if(this.data&&((R=this.data)==null||!R.hideDislikeButton)){var A;return ONP(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(A=this.likeStatusEntity)==null?void 0:A.likeStatus)}}}});
rW.prototype.onYtServiceRequestSent=rW.prototype.onYtServiceRequestSent;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],rW.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],rW.prototype,"vertical",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],rW.prototype,"textTransform",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],rW.prototype,"useShortsIcon",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],rW.prototype,"underIconLabel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rW.prototype,"modern",void 0);_.C([_.S({value:"left"}),_.k("design:type",String)],rW.prototype,"buttonTooltipPosition",void 0);
_.C([_.S(),_.k("design:type",Object)],rW.prototype,"overrides",void 0);_.C([_.nG("#like-button"),_.k("design:type",Object)],rW.prototype,"JSC$17052_ytdLikeToggleButtonRenderer",void 0);_.C([_.nG("#dislike-button"),_.k("design:type",Object)],rW.prototype,"JSC$17052_ytdDislikeToggleButtonRenderer",void 0);_.C([_.X("data","likeStatusEntity.likeStatus","useShortsIcon"),_.k("design:type",Object),_.k("design:paramtypes",[])],rW.prototype,"likeButton",null);
_.C([_.X("data","likeStatusEntity.likeStatus","useShortsIcon"),_.k("design:type",Object),_.k("design:paramtypes",[])],rW.prototype,"dislikeButton",null);_.C([_.S({computed:"computelikeStatusEntityKey(data)"}),_.k("design:type",String)],rW.prototype,"likeStatusEntityKey",void 0);_.C([_.S({selectorArgs:["likeStatusEntityKey"],selector:CY}),_.k("design:type",Object)],rW.prototype,"likeStatusEntity",void 0);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],rW.prototype,"onYtServiceRequestSent",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],rW);
var H8f=_.s5()(rW,"ytd-like-button-renderer",function(){if(nYA===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<template is="dom-if" if="[[dislikeButton]]" class="style-scope ytd-like-button-renderer">\n    <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n    </ytd-toggle-button-renderer>\n</template>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);nYA=R}R=nYA;return R},{mode:1});_.rpD={};
_.rpD.YtConditionalRendererBehavior=[_.u.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(R,A){var Y=this,P,E;return _.O(function(z){switch(z.nextAddress){case 1:if(!A)return Y.hidden=!0,Y.showSpinner=!1,z.return();if((P=R)==null?0:(E=P.visibilityCondition)==null?0:E.mode)switch(R.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return z.jumpTo(5);default:return z.jumpTo(6)}Y.showSpinner=
!1;Y.hidden=!0;return z.yield(Y.shouldShow_(R),4);case 4:Y.hidden=!z.yieldResult;z.jumpTo(0);break;case 5:return z.yield(Y.shouldShow_(R),8);case 8:Y.showSpinner=z.yieldResult;Y.hidden=!1;z.jumpTo(0);break;case 6:return Y.showSpinner=!1,z.yield(Y.shouldShow_(R),9);case 9:Y.hidden=!z.yieldResult,_.XH(z)}})},
shouldShow_:function(R){return R&&R.supportedDatas&&R.supportedDatas.rendererVisibilityConditionData&&R.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(R.supportedDatas.rendererVisibilityConditionData.showIf):R&&R.visibilityCondition&&R.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(R.visibilityCondition.showIf):R&&R.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(R.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(R){switch(R){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(R){switch(R){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var R=_.OC(this.hostElement,"yt-get-mdx-status");return R.length==1&&R[0].connected},
isLocationPermissionGranted_:function(){var R;return _.O(function(A){return A.nextAddress==1?navigator.permissions?A.yield(navigator.permissions.query({name:"geolocation"}),3):A.jumpTo(2):A.nextAddress!=2?(R=A.yieldResult,A.return(Promise.resolve(R.state==="granted"))):A.return(Promise.resolve(!1))})}}];var D5H=function(R,A){A=A===void 0?{}:A;var Y=function(P){var E=document.createElement(R),z;var c=(z=E.polymerController)!=null?z:E;M4l(E,c,P,A);return E};
Y.debugName=R+" (CoW wrapped)";return Y}("yt-icon",{callbackProps:["onKeydown"]}),U5S=_.v("kevlar_use_wil_icons")?_.E5(function(R){var A=R.icon;
var Y=R.active;var P=R.className;var E=R.style;var z=R.dataSelected;var c=R.dataDisabled;var M=R.role;var N=R.themeOverride;var y=R.animateIcon;var m=R.ariaHidden;var T=R.ariaExpanded;var Q=R.ariaLabel;var g=R.tabindex;var r=R.id;var I=R.iconFilter;var b=R.onKeydown;var p=function(){var Z=A==null?void 0:A(),w=null,t=void 0;Z&&(Z=Ukf(Z),Z=alJ(Z),Z.length&&(w=Z[1],t=Z[0]));return{iconName:w,iconSetName:t}},h=function(){return $kN(p().iconName,Y==null?void 0:Y(),void 0,void 0,p().iconSetName,_.is().resolve(_.Tj))},
L=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:I==null?void 0:I()}};
return _.V(_.J,{cond:y,then:function(){return _.V(D5H,{icon:A,active:Y,className:P,style:E,dataSelected:z,dataDisabled:c,role:M,themeOverride:N,ariaHidden:m,ariaExpanded:T,ariaLabel:Q,tabindex:g,id:r,iconFilter:I,onKeydown:b})},
else:function(){return _.V(_.J,{cond:h,then:function(Z){return _.V("span",{class:_.To("ytIconWrapperHost",P),role:M,"aria-label":Q,"aria-hidden":m,tabindex:function(){return isNaN(Number(g==null?void 0:g()))?void 0:Number(g==null?void 0:g())},
id:r,style:E,"on:keydown":_.Qi(function(w){return void(b==null?void 0:b(w))})},_.V(iVq,{data:Z,
options:L}))}})}})},"Ie"):D5H;var $5f=function(R){var A=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];dfq();_.PG("ytglobal.ytUtilActivityCallback_",function(){_.MT(R,"yt-user-activity")});
new Pj(function(){return A.JSC$17068_onMouseMove});
document.addEventListener("scroll",function(){return A.onScroll});
window.addEventListener("resize",function(){return A.onResize})},XW7=function(R,A,Y){A in R.eventJobIds||(Y=_.n6().addLowPriorityJob(function(){_.Ea();
delete R.eventJobIds[A]},Y),R.eventJobIds[A]=Y)};
$5f.prototype.onScroll=function(R){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):R.target===document&&XW7(this,"scroll",200)};
$5f.prototype.onResize=function(){XW7(this,"resize",200)};
$5f.prototype.JSC$17068_onMouseMove=function(){XW7(this,"mousemove",100)};
_.gy=function(R){R.scrollEventsToIgnore+=1;R.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){R.scrollEventsToIgnore--},500))};var SjH=function(R){this.element=R;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
SjH.prototype.showFeedbackDialog=function(R,A,Y,P){var E=ITD();if(!E)return!1;var z=gdu();z.productId=E;A&&(z.flow="submit",z.report={description:A});Y&&(ITD()==="59"?z.callback=_.o1(function(){_.Wj("userFeedbackEvent",{});Y()}):z.callback=_.o1(Y));
z.bucket=P||_.a1("GOOGLE_FEEDBACK_BUCKET","Other");KGD(z);R=WGE(this,"GFEEDBACK",R);try{_.HFS(z,R)}catch(c){return _.hv(c),!1}return!0};
SjH.prototype.showHelpDialog=function(R,A,Y){var P=this,E=ITD();if(!E)return!1;var z={helpCenterPath:"/youtube",productData:WGE(this,"GUIDED_HELP",Y)};KGD(z);var c=gdu();c.context=R||z.productData.context||"default";c.defaultHelpArticleId=A;c.enableSendFeedback=!0;(_.Zr("gapi.load")||function(M,N){return N()})("client",function(){try{var M=d_q(E,z);
if(_.v("web_always_load_chat_support")&&!P.chatSupportLoaded)try{M.JSC$9968_loadChatSupport(c),P.chatSupportLoaded=!0}catch(N){}M.startHelp(c)}catch(N){_.hv(N)}})};
var ITD=function(){var R=_.a1("GOOGLE_FEEDBACK_PRODUCT_ID");R||_.hv(Error("fi"));return R},KGD=function(R){R&&(R.locale=_.v("kevlar_help_use_locale")?_.a1("INNERTUBE_CONTEXT_HL","en"):_.a1("HTML_LANG","en"))},WGE=function(R,A,Y){var P=R.productData;
delete P.origin;P.device=_.yk();var E;a:{if(E=document.createElement("canvas")){var z=E.getContext("experimental-webgl",{stencil:!0});if(z){var c=z.getExtension("WEBGL_debug_renderer_info");if(c){E=z.getParameter(c.UNMASKED_RENDERER_WEBGL);break a}}if(z=E.getContext("webgl")){E=z.getParameter(z.RENDERER);break a}}E=null}P.gpu=E;P.isSDC=!!_.a1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(E=_.a1("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.BO.extend(P,E);_.Q3I(A,P);_.vdS(P);(R=_.MT(R.element,"yt-get-autonav-pause-debug-state"))&&
R.length&&(P.autonav_pause_state=R[0]);R=_.$2();P.browser_resolution=R.width+"\u00d7"+R.height+"@"+(window.devicePixelRatio||1)+"x";Y&&_.BO.extend(P,Y);return P};
SjH.prototype.resetProductData=function(){this.productData={}};var jhq=function(R){this.feedbackManager=new SjH(R)};
jhq.prototype.showFeedbackDialog=function(R,A,Y,P){return this.feedbackManager.showFeedbackDialog(R,A,Y,P)};
jhq.prototype.showHelpDialog=function(R,A,Y){return this.feedbackManager.showHelpDialog(R,A,Y)};var b8N=function(){this.baseUrl="";this.aTag=document.createElement("a")},AuS=function(R,A,Y){Y=Y===void 0?{}:Y;
Y.pbj||(Y.pbj=1);Y=_.pTV(A,Y);R.baseUrl&&Y&&!_.RW(Y)[1]&&!_.AN(Y)&&(A=R.baseUrl,lJ(A,"/")&&(A=A.slice(0,-1)),_.iJ(Y,"/")&&(Y=Y.slice(1)),Y=A+"/"+Y);wZ(R.aTag,_.Cq(Y||""));return R.aTag.href};
b8N.prototype.fetchData=function(R){return _.N1S(R)};
b8N.prototype.postData=function(R,A){var Y={method:"POST"};if(A){for(var P=_.x(Object.keys(A)),E=P.next();!E.done;E=P.next()){E=E.value;var z=A[E];_.ZI(z)&&(A[E]=JSON.stringify(z))}Y.postParams=A}return _.N1S(R,Y)};
_.YNS=function(R,A,Y,P,E){R=AuS(R,A,Y);if(!R)throw P=Error("gi"),Object.assign(P,{params:A}),P;return _.N1S(R,E,P)};
b8N.prototype.requestDataForServiceEndpoint=function(R,A){if(_.n(R,_.aaJ))return this.fetchData("/getAccountSwitcherEndpoint");A=A||{};var Y=_.n(R,g5b);Y?A.se=Y.base64EncodedServiceEndpoint:A.sej=JSON.stringify(R);(Y=_.F9())&&_.v("enable_service_ajax_csn")&&(A.csn=Y);A.theme=_.bk();_.n(R,Fik)&&_.a1("DELEGATION_CONTEXT")&&(A.delegation_context=JSON.stringify(_.a1("DELEGATION_CONTEXT")));Y=null;for(var P in R)if(lJ(P,"Endpoint")||lJ(P,"Command")){Y=P;break}if(!Y){var E=Error("hi");Object.assign(E,{params:R});
_.jPk(E,"WARNING");return new _.yR(function(c,M){M(E)})}P={name:Y};
var z;(Y=(z=_.n(R,_.mZ))==null?void 0:z.signal)&&(P.signal=Y);(z=_.qI(window.location.href))&&z.internalcountrycode&&(P.internalcountrycode=z.internalcountrycode);z="/service_ajax";_.v("debug_forward_web_query_parameters")&&(z=_.uhV(z,window.location.search));z=_.du(z,P);R.clickTrackingParams&&_.Yo(z,{itct:R.clickTrackingParams});return this.postData(z,A)};_.fTD=new _.cP("GFEEDBACK_TOKEN");var pWq;var FG8;var BNN;var aTZ;var DK=function(){var R=_.K.apply(this,arguments)||this;R.compact=!1;R.dismissButtonDisabled=!1;return R};
_.H(DK,_.K);DK.prototype.computeHasIcon_=function(R){return!!R};
DK.prototype.isSignInIcon_=function(R){return R=="yt-icons:prompted_sign_in"};
DK.prototype.onDismissButtonClick=function(){var R;this.data.disableOnClick&&!this.dismissButtonDisabled&&(R=this.data.dismissButton)!=null&&R.buttonRenderer&&(this.dismissButtonDisabled=!0)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.rpD.YtConditionalRendererBehavior),_.k("design:type",Object)],DK.prototype,"ytConditionalRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],DK.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],DK.prototype,"icon_",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.k("design:type",Boolean)],DK.prototype,"hasIcon_",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.k("design:type",Boolean)],DK.prototype,"signInIcon_",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],DK.prototype,"compact",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],DK.prototype,"dismissButtonDisabled",void 0);
_.C([_.CG({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],DK);
_.B(DK,"yt-player-error-message-renderer",function(){if(aTZ===void 0){var R=document.createElement("template");_.D(R,'\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\n<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      <yt-button-renderer id="dismiss-button" data="[[data.dismissButton.buttonRenderer]]" disabled$="[[dismissButtonDisabled]]" on-tap="onDismissButtonClick" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\n      <yt-button-renderer id="button" data="[[data.proceedButton.buttonRenderer]]" class="style-scope yt-player-error-message-renderer">\n      </yt-button-renderer>\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;BNN===void 0&&(BNN=document.createElement("template"));var P=BNN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);aTZ=R}R=aTZ;return R},{mode:2});var Cv8;var hND;var Uq=function(){return _.K.apply(this,arguments)||this};
_.H(Uq,_.K);Uq.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Uq.prototype.computeIcon_=function(R){return R?"yt-icons:"+R.iconType.toLowerCase():"error_outline"};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Uq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Uq.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Uq.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],Uq.prototype,"icon_",void 0);_.C([_.CG({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Uq);
_.B(Uq,"yt-player-kav-renderer",function(){if(hND===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Cv8===void 0&&(Cv8=document.createElement("template"));var P=Cv8;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);hND=R}R=hND;return R},{mode:2});var rWl=_.Z7(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.Ow(_.E5(function(R){var A=_.LK("div"),Y=_.x(_.yy(0,void 0,"yt0wE")),P=Y.next().value,E=Y.next().value;Y=_.x(_.yy(null,void 0,"CnFp5"));var z=Y.next().value,c=Y.next().value;_.jO(function(){Dsk(A.value,E,c);A.value.scrollIntoView()});
Y=Usl.bind(null,R.data,P);Pu("resize",function(){var M=z();if(P()===1&&M!==null){var N;(N=window.grecaptcha)==null||N.reset(M)}});
return _.V("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.V("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.V("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var M,N;return(M=R.data().accessibility)==null?void 0:(N=M.accessibilityData)==null?void 0:N.label}),_.V(_.NU,{text:Y,
className:_.To("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.V("div",{el:A,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Je"),"yt-player-captcha-view-model",{props:{data:_.xL}});var $sk=!1;_.oYq=_.E5(function(R){var A=R.data;return _.V("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.V(_.J,{cond:function(){return A().icon},
then:function(Y){return _.V("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.V(_.P1,{data:Y,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.V(_.J,{cond:function(){return A().title},
then:function(Y){return _.V("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.V(_.NU,{text:Y}))}}),_.V(_.J,{cond:function(){return A().description},
then:function(Y){return _.V("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.V(_.NU,{text:Y}))}}),_.V(_.ni,{data:function(){return A().primaryButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"interstitialViewModelFlexItem"})}}),_.V(_.ni,{data:function(){return A().secondaryButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"interstitialViewModelFlexItem"})}}))},"Ke");
_.oYq.idomCompat=!0;var kwA=_.E5(function(R){var A=R.data;_.C0();return _.V("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.V("div",{class:"playerInterstitialRendererScrim"},_.V(_.ni,{data:function(){return A().content}},{interstitialViewModel:_.oYq})))},"Le");
kwA.idomCompat=!0;_.Ow(kwA,"yt-player-interstitial-renderer",{props:{data:_.VY}});var $v=function(){var R=_.K.apply(this,arguments)||this;R.noBackground=!1;R.compact=!1;R.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return R};
_.H($v,_.K);$v.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"}}}};
$v.prototype.onUpdatePlayerErrorMessageCommand_=function(R){if(_.n(R,bd7)){var A;if(R=(A=_.n(R,bd7))==null?void 0:A.newPlayerErrorMessageRenderer)this.data=R}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$v.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],$v.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],$v.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$v.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],$v.prototype,"status",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$v.prototype,"noBackground",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$v.prototype,"compact",void 0);_.C([_.CG({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],$v);
var GwH=_.s5()($v,"yt-playability-error-supported-renderers",function(){if(FG8===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;pWq===void 0&&(pWq=document.createElement("template"));var P=pWq;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);FG8=R}R=FG8;return R},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var X43=void 0,IQI=void 0;var j38=new FES;var Z8z=function(R){this.store=R;this.bGa=new _.Ct7},Otb=function(R,A,Y){var P,E;
if(!(E=((P=A.playabilityStatus)==null?void 0:P.status)!=="OK")){R=R.store;var z;E=A.offlineState&&((z=A.videoDetails)==null?0:z.videoId)?_.v("enable_pl_r_c_cd")?sCV(R.getState().entities,A.videoDetails.videoId):!!aYJ(R.getState().entities,A.videoDetails.videoId):!1}if(E)return!0;E=B1q(A);if(E===1){if(_.v("ab_v_vid_sig")){var c,M=(c=A.videoDetails)==null?void 0:c.videoId;if(!M||!Y||M!==Y){var N;A=new _.XN("282054944_vid",{kxo:Y,uu5:(N=A.videoDetails)==null?void 0:N.videoId});_.bj(A)}}return!0}LX8=
0;var y,m;N=(M=A.auxiliaryUi)==null?void 0:(y=M.messageRenderers)==null?void 0:(m=y.bkaEnforcementMessageViewModel)==null?void 0:m.displayType;if(E!==3&&(N==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||N==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;N={reason:_.iw(_.vk("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.v("ks_something_wrong_learn_more")?PQ8("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.iw(_.vk("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:_.iw("282054944")};thq(A,{playerErrorMessageRenderer:N});return!1},M6P=function(R,A){if(JCV(A)){_.vr(1,!0);
var Y=(Y=JCV(A))&&_.Snk()?Y:void 0;Y?(thq(A,{enforcementMessageViewModel:Y}),R.bGa.increment("IN_PLAYER"),_.vr(5)):(R.bGa.increment("SKIP_DISPLAY"),_.vr(2))}},thq=function(R,A){R.playabilityStatus=Object.assign({},R.playabilityStatus,{status:"ERROR",
errorScreen:A});R.videoDetails=void 0};
Z8z.prototype.handleResponse=function(R,A){if(R.playabilityStatus){var Y,P,E,z=(A==null?void 0:(Y=A.innerTubeRequest)==null?void 0:Y.videoId)||(A==null?void 0:(P=A.innerTubeRequest)==null?void 0:(E=P.playerRequest)==null?void 0:E.videoId);Otb(this,R,z)&&M6P(this,R)}};
Z8z[xk]=[AV];var xyk=new _.cP("ADBLOCK_DETECTION_SERVICE_TOKEN");var Gt=function(R){this.c2z=R};
Gt.prototype.bindInnertubeChallengeFetcher=function(R){this.c2z.bicf(R)};
Gt.prototype.registerChallengeFetchedCallback=function(R){this.c2z.bcr(R)};
Gt.prototype.getLatestChallengeResponse=function(){return this.c2z.blc()};var wW7;wW7=_.Z7(["https://static.doubleclick.net/instream/ad_status.js"]);_.uaH=_.Jr(wW7);var d5A;_.X5=function(R,A,Y){var P=this;this.network=R;this.options=A;this.networkStatusManager=Y;this.pb=null;if(A.useBotguardEverywhere){var E=new _.y2;this.pb=E.promise;_.P3.ytAtRC&&_.$H(_.fn,function(){var z,c;return _.O(function(M){if(M.nextAddress==1){if(!_.P3.ytAtRC)return M.return();z=eND(null);return M.yield(P.p6(z),2)}c=M.yieldResult;_.P3.ytAtRC&&_.P3.ytAtRC(JSON.stringify(c));_.XH(M)})});
kqk().then(function(z){var c,M,N,y;return _.O(function(m){if(m.nextAddress==1)return z.bindInnertubeChallengeFetcher(function(T){return P.p6(eND(T))}),m.yield(WJl(),2);
c=m.yieldResult;M=z.getLatestChallengeResponse();N=M.challenge;if(!N)throw Error("ii");y={challenge:N,fN:ks(N),vm:c,bgChallenge:new hm};E.resolve(y);z.registerChallengeFetchedCallback(function(T){T=T.challenge;if(!T)throw Error("ji");T={challenge:T,fN:ks(T),vm:c,bgChallenge:new hm};P.pb=Promise.resolve(T)});
_.XH(m)})})}else A.preload&&qjb(this,new Promise(function(z){_.Ua(_.fn,function(){z(LGz(P))},0)}))};
d5A=function(R){var A={preload:!0,useBotguardEverywhere:!0},Y=!1;if(typeof A==="boolean")var P={preload:A};else typeof A==="undefined"?P={preload:!0}:(P=A,Y=!!A.lRp);A=Y?void 0:new _.wM;_.X5.instance=new _.X5(R,P,A);return _.X5.instance};
_.X5.prototype.rpD=function(){var R=this;return _.O(function(A){return A.nextAddress==1?A.yield(Promise.race([R.pb,null]),2):A.return(!!A.yieldResult)})};
_.X5.prototype.e8n=function(R,A,Y){var P=this,E,z,c;return _.O(function(M){P.pb===null&&qjb(P,LGz(P));E=!1;z={};c=function(){var N,y,m;return _.O(function(T){switch(T.nextAddress){case 1:return T.yield(P.pb,2);case 2:N=T.yieldResult;z.challenge=N.challenge;if(!N.vm){"c1a"in N.fN&&(z.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");T.jumpTo(3);break}y=Object.assign({},{c:N.challenge,e:R},A);_.g2(T,4);E=!0;return T.yield(N.vm.snapshot({v6:y}),6);case 6:(m=T.yieldResult)?z.webResponse=m:z.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.us(T,3);break;case 4:_.UT(T),z.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(R==="ENGAGEMENT_TYPE_PLAYBACK"){var Q=N.fN,g={};if(Q.c6a){var r=Number(_.a1("DCLKSTAT",0));g.reportingStatus=String(Number(Q.c)^(isNaN(r)?0:r))}Q.c6b&&(g.broadSpectrumDetectionResult=String(Number(Q.c)^Number(_.a1("CATSTAT",0))));z.adblockReporting=g}return T.return(z)}})};
return M.return(Promise.race([c(),RkF(Y,function(){var N=Object.assign({},z);E&&(N.error="ATTESTATION_ERROR_VM_TIMEOUT");return N})]))})};
var eND=function(R){var A={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};R&&(A.interpreterHash=R);return A},LGz=function(R,A){A=A===void 0?0:A;
var Y,P,E,z,c,M,N,y,m,T,Q,g;return _.O(function(r){switch(r.nextAddress){case 1:Y=eND(hdz().p8g);if(_.v("att_fet_ks"))return _.g2(r,7),r.yield(R.p6(Y),9);_.g2(r,4);return r.yield(AkQ(R,Y),6);case 6:c=r.yieldResult;E=c.phU;z=c.whv;P=c;_.us(r,3);break;case 4:return _.UT(r),_.pK(Error("ki`"+A)),Y6n(R,864E5),r.return({challenge:"",fN:{},vm:void 0,bgChallenge:void 0});case 9:P=r.yieldResult;if(!P)throw Error("li");if(!P.challenge)throw Error("mi");E=P.challenge;z=ks(E);if("c1a"in z&&(!P.bgChallenge||!P.bgChallenge.program))throw Error("ni");
_.us(r,3);break;case 7:M=_.UT(r);_.pK(M);A++;if(A>=5)return _.pK(Error("ki`"+A)),Y6n(R,864E5),r.return({challenge:"",fN:{},vm:void 0,bgChallenge:void 0});N=1E3*Math.pow(2,A-1)+Math.random()*1E3;return r.return(new Promise(function(I){_.Ua(_.fn,function(){I(LGz(R,A))},N)}));
case 3:y=od3(z);Y6n(R,y*1E3);m=void 0;if(!("c1a"in z&&P.bgChallenge)){r.jumpTo(10);break}T=hju(P.bgChallenge);_.g2(r,11);return r.yield(kEE(hdz(),T),13);case 13:_.us(r,12);break;case 11:return Q=_.UT(r),_.pK(Q),r.return({challenge:E,fN:z,vm:m,bgChallenge:T});case 12:return _.g2(r,14),m=new _.hA({challenge:T,eBM:{iL:"aGIf"}}),r.yield(m.qHK,16);case 16:_.us(r,10);break;case 14:g=_.UT(r),_.pK(g),m=void 0;case 10:return r.return({challenge:E,fN:z,vm:m,bgChallenge:T})}})};
_.X5.prototype.p6=function(R){var A=this,Y;return _.O(function(P){Y=A.networkStatusManager;if(!Y||Y.isNetworkAvailable())return P.return(A.network.p6(R));_.ao("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(E){Y.listenOnce("publicytnetworkstatus-online",function(){A.network.p6(R).then(E)})}))})};
var PJQ=function(R){if(!R)throw Error("li");if(!R.challenge)throw Error("mi");var A=R.challenge,Y=ks(A);if("c1a"in Y&&(!R.bgChallenge||!R.bgChallenge.program))throw Error("ni");return Object.assign({},R,{phU:A,whv:Y})},AkQ=function(R,A){var Y,P,E,z,c;
return _.O(function(M){switch(M.nextAddress){case 1:Y=void 0,P=0,E={};case 2:if(!(P<5)){M.jumpTo(4);break}if(!(P>0)){M.jumpTo(5);break}E.z0N=1E3*Math.pow(2,P-1)+Math.random()*1E3;return M.yield(new Promise(function(N){return function(y){_.Ua(_.fn,function(){y(void 0)},N.z0N)}}(E)),5);
case 5:return _.g2(M,7),M.yield(R.p6(A),9);case 9:return z=M.yieldResult,M.return(PJQ(z));case 7:Y=c=_.UT(M),c instanceof Error&&_.pK(c);case 8:P++;E={z0N:void 0};M.jumpTo(2);break;case 4:throw Y;}})},qjb=function(R,A){R.pb=A},EqY=function(R){var A,Y,P;
return _.O(function(E){if(E.nextAddress==1)return E.yield(Promise.race([R.pb,null]),2);A=E.yieldResult;var z=LGz(R);R.pb=z;(Y=A)==null||(P=Y.vm)==null||P.dispose();_.XH(E)})},Y6n=function(R,A){var Y=Date.now()+A,P=function(){var E;
return _.O(function(z){E=Y-Date.now();return E<1E3?z.yield(EqY(R),0):(_.Ua(_.fn,P,Math.min(E,6E4)),z.jumpTo(0))})};
P()},RkF=function(R,A){return new Promise(function(Y){_.Ua(_.fn,function(){Y(A())},R)})};var zkG=function(){};
zkG.prototype.processContext=function(R){var A=_.X5.instance;if(!A)return _.MJ();var Y=ej6(R);return Y?new O7(A.e8n(Y,tAk(R),500).then(function(P){var E;(R==null?0:(E=R.innerTubeRequest)==null?0:E.context)||(R.innerTubeRequest.context={});E=R.innerTubeRequest.context;E.request||(E.request={});E.request.attestationResponseData=P})):_.MJ()};var iu0=function(R){this.innertubeTransportService=R};
iu0.prototype.p6=function(R){_.ao("att_fsr",void 0,"attestation_challenge_fetch");return _.Ad(this.innertubeTransportService,R,_.Pr(_.FXZ)).then(function(A){_.ao("att_frr",void 0,"attestation_challenge_fetch");return A})};_.lI0=function(R){this.innertubeTransportService=R};var xbN=new _.cP("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var ckN=function(){},MPW=function(R,A,Y,P,E){var z=_.a1("YPC_MB_URL");
_.bkk(z).then(function(){Ouo(z,R,A,Y,P,E)})},Ouo=function(R,A,Y,P,E,z){try{var c=payments.business.integration,M=payments.business.integration.Style.create().withMaterialDesignStyle(),N=c.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.v("enable_window_constrained_buy_flow_dialog")&&(N=N.usingPopupStyle("windowConstrained"));z&&(N=N.usingCloseCallback(z));var y=Y?Y:_.a1("YPC_GB_LANGUAGE"),m=_.a1("SESSION_INDEX");c.bootstrap.fromPaymentsUrl(R);c.bootstrap.asMashupMode(N).usingGaiaIndex(m).usingLocale(y).usingStyle(M).usingDefaultActivityStatusChangeHandler().inStandaloneContext(c.standaloneContextAuthId.forGaia()).purchaseManager(A,function(T){P&&P(T)}).load(void 0,E)}catch(T){throw E&&E(T),_.bj(T),T;
}};var skW=new _.cP("PURCHASE_MANAGER_TOKEN");var N8F=function(){var R=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return R.videos},
getContinuationsPresent:function(){return R.continuationsPresent},
setVideos:function(A){R.videos=A},
getRecommendedVideos:function(){return R.recommendedVideos},
setRecommendedVideos:function(A){R.recommendedVideos=A}}};
N8F.prototype.addVideos=function(R){R&&(this.videos=R.filter(function(A){return!!_.LQq(A)}).map(function(A){var Y=_.LQq(A);
a:{var P;if(A.playlistVideoRenderer&&((P=A.playlistVideoRenderer)==null?0:P.voteSortTiebreaker))var E=A.playlistVideoRenderer.voteSortTiebreaker;else{if(_.n(A,tm)){var z;if(P=(E=_.n(A,tm))==null?void 0:(z=E.playlistItemData)==null?void 0:z.voteSortTiebreaker){E=P;break a}}E=""}}return{itemId:Y,videoId:_.AGV(A),voteCount:_.YLk(A),voteSortTiebreaker:E}}),this.continuationsPresent=!!_.n(R[R.length-1],_.eb))};
var VPG=function(R,A){return R.videos.findIndex(function(Y){return Y.itemId===A})},JkH=function(R,A){return R.recommendedVideos.findIndex(function(Y){return Y.itemId===A})},yko=function(R){R={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:R}}}}};_.is().resolve(_.ls).resolveCommand(R)};var mbQ=function(){N8F.apply(this,arguments)};
_.H(mbQ,N8F);
var G_f=function(R,A,Y,P){if(!R.parentElem)throw Error("si");var E=VPG(R,A);E===-1&&(E=JkH(R,A),E=E!==-1?E+R.videos.length:-1);if(E===-1)throw Error("ti");var z=E>=R.videos.length?R.recommendedVideos[E-R.videos.length]:R.videos[E];z.voteCount=Y;z.voteSortTiebreaker=Date.now().toString();E>=R.videos.length?R.recommendedVideos.splice(E-R.videos.length,1):R.videos.splice(E,1);var c=R.videos;for(var M=0,N=c.length-1;M<=N;){var y=Math.floor((M+N)/2);if(c[y].voteCount<z.voteCount)N=y-1;else if(c[y].voteCount>z.voteCount)M=
y+1;else{a:{var m=z.voteSortTiebreaker;var T=c[y].voteSortTiebreaker;if(m.length!==T.length)m=m.length>T.length;else{for(var Q=0;Q<m.length;Q++){var g=m.charCodeAt(Q),r=T.charCodeAt(Q);if(g>r){m=!0;break a}if(g<r)break}m=!1}}m?N=y-1:M=y+1}}c=M;if(c===-1)throw Error("ui");R.videos.splice(c,0,z);E!==c&&T8Y(R,E,c,A,Y,P)},T8Y=function(R,A,Y,P,E,z){var c,M=(c=R.parentElem)==null?void 0:c.children,N=Math.min(A,Y),y=Math.max(A,Y);
if(M)for(c=N;c<=y;c++)M[c].style.viewTransitionName="item-"+String(c);document.startViewTransition(function(){if(R.parentElem){var m=R.parentElem.children;if(!(!m||A<0||A>=m.length||Y<0||Y>=m.length)){var T=m[A];if(T){T.remove();R.showRefreshPill=Y>=R.videos.length-1&&R.continuationsPresent;if(!R.showRefreshPill){m=m[Y]||null;var Q;(Q=R.parentElem)==null||Q.insertBefore(T,m)}_.xo(R.parentElem,"yt-update-video-data-voting-animation",{toIdx:Y,itemId:P,newVoteCount:E,voteStatus:z,hideItem:R.showRefreshPill})}}}}).finished.then(function(){if(M)for(var m=
N;m<=y;m++)M[m].style.viewTransitionName="";
if(R.showRefreshPill)yko(_.vk("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var T;if(T=m=(T=R.parentElem)==null?void 0:T.children[Y])T=m.getBoundingClientRect(),m=T.bottom,T=!(T.top>=0&&m<=R.clientHeight);T&&(T=_.gH(A>Y?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(A-Y)),yko(T))}})};var gqF=function(R,A){var Y=this;R?this.innertubeTransportServicePromise=Promise.resolve(R):A&&(this.innertubeTransportServicePromise=A(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Nk(3E3,function(P){return Qk0(Y,P)},0);
this.validateMiniAppVideoIdRateLimiter=new Nk(3E3,function(P){return vqf(Y,P)},1)},LtA=function(R,A){R.JSC$17181_miniAppId=A;
R.reportMiniAppValueRateLimiter=new Nk(3E3,function(Y){return Qk0(R,Y)},0);
R.validateMiniAppVideoIdRateLimiter=new Nk(3E3,function(Y){return vqf(R,Y)},1)},RNN=function(R,A){var Y;
return _.O(function(P){if(P.nextAddress==1)return P.yield(R.reportMiniAppValueRateLimiter.call(A),2);Y=P.yieldResult;return P.return([Y,A])})},Qk0=function(R,A){var Y,P,E,z,c,M,N;
return _.O(function(y){switch(y.nextAddress){case 1:return y.yield(R.innertubeTransportServicePromise,2);case 2:return Y=y.yieldResult,P=_.Pr(kFA),E=Date.now(),z={externalPostId:R.JSC$17181_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(E/1E3),nanos:Math.round(E%1E3*1E6)},intValue:""+A}},_.g2(y,3),y.yield(_.Ad(Y,z,P),5);case 5:c=y.yieldResult;_.us(y,4);break;case 3:throw M=_.UT(y),M;case 4:if(c){if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("vi`"+
c.errorMetadata.status);if(N=c.userStatResult)return y.return(N);throw Error("wi");}throw Error("xi");}})},YjS=function(R){var A,Y,P,E,z;
_.O(function(c){switch(c.nextAddress){case 1:return c.yield(R.innertubeTransportServicePromise,2);case 2:return A=c.yieldResult,Y=_.Pr(kFA),P={externalPostId:R.JSC$17181_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.g2(c,3),c.yield(_.Ad(A,P,Y),5);case 5:E=c.yieldResult;_.us(c,4);break;case 3:throw z=_.UT(c),z;case 4:if(E==null)throw Error("xi");if("error"in E&&E.error)throw E.error;if(E.errorMetadata)throw Error("vi`"+E.errorMetadata.status);_.XH(c)}})};
gqF.prototype.flush=function(){var R=this;return _.O(function(A){return A.nextAddress==1?A.yield(R.reportMiniAppValueRateLimiter.flush(),2):A.yield(R.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Ap7=function(R,A){return _.O(function(Y){return Y.nextAddress==1?Y.yield(R.validateMiniAppVideoIdRateLimiter.call(A),2):Y.return(Y.yieldResult)})},vqf=function(R,A){var Y,P,E,z,c,M;
return _.O(function(N){switch(N.nextAddress){case 1:return N.yield(R.innertubeTransportServicePromise,2);case 2:return Y=N.yieldResult,P=_.Pr(fPq),E={videoId:A},_.g2(N,3),N.yield(_.Ad(Y,E,P),5);case 5:z=N.yieldResult;_.us(N,4);break;case 3:throw c=_.UT(N),c;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("vi`"+z.errorMetadata.status);if(M=z.playabilityStatus)return N.return(M.status);throw Error("yi");}throw Error("xi");}})};
gqF[xk]=[_.z3(_.Co),_.z3(ycZ)];var nqQ=function(){this.clientData=new Map};
nqQ.prototype.getData=function(R){return this.clientData.get(R)};var Hu0=function(R){this.store=R};
Hu0.prototype.handleResponse=function(R){(R=_.n(R.frameworkUpdates,LY))&&_.nx(R,this.store)};
Hu0[xk]=[_.PX];var rkN=new _.cP("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var DbN={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var Ubm=new _.cP("ICON_SET_TOKEN"),$bF=new _.cP("ICON_URL_PROVIDER_TOKEN"),X3m=new _.cP("PREFETCH_ICONS_TOKEN"),S6G=new _.cP("ICON_MAP_FN_TOKEN");var S$={},II0=(S$.ACCESS_TIME="clock",S$.ACCOUNT_BOX="person_account",S$.ACCOUNT_BOX_CAIRO="person_account_cairo",S$.ACCOUNT_CIRCLE="person_circle",S$.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",S$.ACCOUNT_LINKED="account_link_success",S$.ACCOUNT_UNLINKED="account_link",S$.ADD_FRIEND="people",S$.ADD_MODERATOR="shield_add",S$.ADD_TO_LIBRARY="bookmark",S$.ADD_TO_PLAYLIST="add",S$.ADD_TO_QUEUE_TAIL="list_queue",S$.ADD_TO_REMOTE_QUEUE="list_music",S$.ADD_TO_WATCH_LATER="clock",S$.ADD_VIDEO_LINK="film_strip_add",
S$.ALERT_WARN_RED="alert_triangle",S$.ARROW_BACK="arrow_left",S$.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",S$.ARROW_DROP_DOWN="chevron_down",S$.ARROW_DROP_UP="chevron_up",S$.ARROW_FORWARD="arrow_right",S$.AUDIOTRACK="audio",S$.AUTO_AWESOME="sparkle",S$.AVATAR_ANONYMOUS="person_circle",S$.AVATAR_LOGGED_OUT="person_circle",S$.BACK="arrow_left",S$.BAR_CHART="bar_graph",S$.BLOCK="slash_circle_left",S$.BLOCK_USER="slash_circle_left",S$.BOOKMARK_BORDER="bookmark",S$.BREAKING_NEWS_ALT_1="article_alert",
S$.BROADCAST_CAIRO="podcast_cairo",S$.BUG_REPORT="bug",S$.CAMERA_ALT="camera",S$.CAMPAIGN="megaphone",S$.CANCEL="x_circle",S$.CAPTIONS="closed_caption",S$.CAST_OUTLINE="chromecast",S$.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",S$.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",S$.CHAT="message_bubble_left",S$.CHAT_BUBBLE="message_bubble_empty",S$.CHAT_SPARK="spark_message_bubble_left",S$.CHECK_BOX_OUTLINE_BLANK="box_empty",S$.CHECK_CIRCLE_OUTLINE="check_circle",S$.CHECK_CIRCLE_THICK="check_circle",S$.CLARIFY=
"article_clarify",S$.CLOSED_CAPTION_SELECTED="closed_caption",S$.CLOSE="x_mark",S$.CLOUD_UPLOAD="cloud_arrow_up",S$.COLLAPSE="chevron_up",S$.COLLAPSE_CAIRO="chevron_up_cairo",S$.COLLECTION="layers",S$.COLOR_LENS="palette",S$.COMMENT="message_bubble_right",S$.CONSENT_SHIELD="person_shield",S$.CONTENT_CUT="scissors",S$.CONTENT_CUT_CAIRO="scissors_cairo",S$.COURSE=_.v("web_enable_course_icon_update")?"creator_academy":"lightbulb",S$.COURSE_CAIRO=_.v("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",S$.CREATION_LIVE="radar_live",S$.CREATION_POST="box_pencil",S$.CREATION_UPLOAD="my_videos",S$.CREATION_UPLOAD_RED="upload",S$.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",S$.CREATOR_STUDIO="youtube_studio",S$.DASHBOARD="grid_asymmetrical",S$.DELETE="trash_can",S$.DELETE_SWEEP="trash_can",S$.DESKTOP="laptop",S$.DISLIKE="thumb_down",S$.DISLIKE_SELECTED="thumb_down",S$.DISMISSAL="x_mark",S$.DISMISS_QUEUE="list_remove",S$.DONE_ALL="check_double",S$.DOWN_ARROW="arrow_down",S$.DO_NOT_DISTURB=
"slash_circle_left",S$.DRAFT="paper_corner_folded",S$.DRAG_HANDLE="bars_2",S$.EDIT="pencil",S$.EMOJI="face_very_happy",S$.EMOJI_FLAGS="flag",S$.EMOJI_OBJECTS="lightbulb",S$.EMOJI_PEOPLE="face_very_happy",S$.EMOJI_RECENT="clock",S$.EMPTY_HEART="heart",S$.EMPTY_LIKE="thumb_up",S$.ERROR_BLACK="alert_circle",S$.ERROR_OUTLINE="alert_circle",S$.EXIT_APP="arrow_in",S$.EXIT_TO_APP="arrow_in",S$.EXPAND="chevron_down",S$.EXPAND_ALL="chevron_expand",S$.EXPAND_CAIRO="chevron_down_cairo",S$.EXPAND_LESS="chevron_up",
S$.EXPAND_MORE="chevron_down",S$.EXPLORE="compass",S$.EXPLORE_DESTINATION="compass",S$.EXTERNAL_LINK="open_new",S$.FAB_UPLOAD="upload",S$.FACE_HAPPY_OUTLINE="face_happy",S$.FACT_CHECK="article_check",S$.FASHION_LOGO="fashion",S$.FASHION_LOGO_CAIRO="fashion_cairo",S$.FAVORITE="heart",S$.FEEDBACK="message_bubble_alert",S$.FEEDBACK_CAIRO="message_bubble_alert_cairo",S$.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",S$.FILL_ARROW_SOLID_UP_16="arrow_solid_up",S$.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
S$.FILTER="menu_filter",S$.FIRST_PAGE="chevron_first",S$.FLAG="flag",S$.FULL_HEART="heart",S$.GAME_CONSOLE_DPAD="game_console_dpad",S$.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",S$.GAMING_LOGO="gaming",S$.GAMING_LOGO_CAIRO="gaming_cairo",S$.GO_TO_PAGE="arrow_right",S$.GROUPS="people_group",S$.HAPPY="face_happy",S$.HEALTH_AND_SAFETY="shield_plus",S$.HELP="question_circle",S$.HELP_CAIRO="question_circle_cairo",S$.HELP_OUTLINE="question_circle",S$.HIDE="slash_circle_left",S$.IMAGE="image",
S$.INFINITY_ICON="infinity",S$.INFO="info_circle",S$.INFO_OUTLINE="info_circle",S$.INSERT_CHART="bar_graph_box_vertical",S$.INSERT_CHART_OUTLINED="bar_graph_box_vertical",S$.INSERT_PHOTO="image",S$.KEEP="pin",S$.KEEP_OFF="pin_off",S$.KEYBOARD="keyboard",S$.KEYBOARD_ARROW_DOWN="chevron_down",S$.KEYBOARD_ARROW_UP="chevron_up",S$.KIDS_BLOCK="slash_circle_left",S$.LANGUAGE="globe",S$.LAST_PAGE="chevron_last",S$.LAUNCH="open_new",S$.LEARNING="lightbulb",S$.LEARNING_CAIRO="lightbulb_cairo",S$.LIBRARY_ADD=
ik3("library_add"),S$.LIBRARY_OUTLINE="library",S$.LIBRARY_REMOVE=ik3(),S$.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",S$.LIKES_PLAYLIST="thumb_up",S$.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",S$.LIKE="thumb_up",S$.LIKE_SELECTED="thumb_up",S$.LIVE="radar_live",S$.LIVE_CAIRO="radar_live_cairo",S$.LIVE_UNLISTED="link",S$.LOCATION_ON="location_point",S$.LOCATION_PIN="location_point",S$.LOOP="arrow_repeat",S$.LOOP_ACTIVE="arrow_repeat",S$.LOOP_ONE="arrow_repeat_1",S$.LOOP_ONE_ACTIVE="arrow_repeat_1",S$.MEH=
"face_meh",S$.MEMBERS_ONLY_MODE_OFF="message_bubble_left",S$.MESSAGE="message_bubble_left",S$.MICROPHONE_ON="mic",S$.MIX="youtube_mix",S$.MONETIZATION_ON="dollar_sign_circle",S$.MONEY_FILL="dollar_sign_container",S$.MONEY_FILL_JPY="yen_sign_container",S$.MONEY_HEART="dollar_sign_heart",S$.MORE_HORIZ="overflow_horizontal",S$.MORE_VERT="overflow_vertical",S$.MUSIC="audio",S$.MUSIC_CAIRO="audio_cairo",S$.MUSIC_NOTE_SYMBOL="music",S$.MUSIC_SHUFFLE="arrow_shuffle",S$.MY_CHANNEL="person_circle",S$.MY_LOCATION=
"location_point",S$.NEWS_STORY="news",S$.NEXT="chevron_right",S$.NOTIFICATIONS="bell",S$.NOTIFICATIONS_ACTIVE="bell_on",S$.NOTIFICATIONS_CAIRO="bell_cairo",S$.NOTIFICATIONS_DONE_CHECKMARK="check",S$.NOTIFICATIONS_INBOX="bell",S$.NOTIFICATIONS_NONE="bell",S$.NOTIFICATIONS_OFF="bell_off",S$.NOT_INTERESTED="slash_circle_left",S$.OFFICIAL_ARTIST_BADGE="audio",S$.OFFLINE_CLOUD="cloud_off",S$.OFFLINE_DOWNLOAD="download",S$.OFFLINE_DOWNLOAD_CAIRO="download_cairo",S$.OFFLINE_PAUSE="pause",S$.OPEN_IN_NEW=
"open_new",S$.OUTLINE_ADJUST="adjust",S$.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",S$.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",S$.OUTLINE_BAG="bag",S$.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",S$.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",S$.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",S$.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",S$.PAID="dollar_sign",S$.PAUSE_OUTLINED="pause",S$.PAYMENT="credit_card",S$.PERSON_RADAR_FILLED="person_radar",S$.PHONE_DOWNLOAD="mobile_download",
S$.PLAYABLES_LOGO="tic_tac_toe",S$.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",S$.PLAYLISTS="list_play_arrow",S$.PLAYLISTS_CAIRO="list_play_arrow_cairo",S$.PLAYLIST_ADD=ik3("list_add"),S$.PLAYLIST_ADD_CHECK=ik3("list_check"),S$.PLAYLIST_PLAY="list_play_arrow",S$.PLAY_ALL="play_arrow",S$.PLAY_CIRCLE="play_arrow_circle",S$.PLAY_OUTLINED="play_arrow_circle",S$.PRIVACY_INFO="shield",S$.PRIVACY_PRIVATE="lock",S$.PRIVACY_PUBLIC="earth",S$.PRIVACY_UNLISTED="link",S$.PROMOTE="megaphone",S$.PURCHASES="price_tag",
S$.PURCHASE_SUPER_CHAT="super_chat",S$.PURCHASE_SUPER_STICKER="super_sticker",S$.QUESTION_ANSWER="message_bubble_question",S$.QUEUE_PLAY_LAST="list_queue_last",S$.QUEUE_PLAY_NEXT="list_play_arrow",S$.REMIX_FILLED="youtube_shorts_remix",S$.REMOVE="bar_circle",S$.REMOVE_CIRCLE="bar_circle",S$.REMOVE_CIRCLE_OUTLINE="bar_circle",S$.REMOVE_DONE="check_double_off",S$.REMOVE_FROM_HISTORY="bar_circle",S$.REMOVE_FROM_PLAYLIST="bar_circle",S$.REMOVE_MODERATOR="shield_off",S$.REPLAY="arrow_circle",S$.REPLAY_10=
"skip_back_10",S$.REPORT_PROBLEM="alert_triangle",S$.SAD="face_sad",S$.SAVE_PLAYLIST="bookmark",S$.SCHEDULE="clock",S$.SCHOOL="creator_academy",S$.SCREEN_FULLSCREEN="screen_full",S$.SEARCH_HISTORY="arrow_time",S$.SELL="price_tag",S$.SETTINGS="gear",S$.SETTINGS_CAIRO="gear_cairo",S$.SETTINGS_LIGHT="gear",S$.SETTINGS_MATERIAL="gear",S$.SHARE_ARROW="share",S$.SHIELD_WITH_AVATAR="person_shield",S$.SHOPPING_BAG="bag",S$.SHOPPING_BAG_CAIRO="bag_cairo",S$.SHOPPING_CART="cart",S$.SHORTS_COMMENT="youtube_shorts_message_bubble_right",
S$.SHORTS_DISLIKE="youtube_shorts_thumb_down",S$.SHORTS_LIKE="youtube_shorts_thumb_up",S$.SHORTS_SHARE="youtube_shorts_share",S$.SHUFFLE="arrow_shuffle",S$.SLOW_MODE_OFF="message_bubble_left",S$.SOCIAL="people",S$.SORT="menu_sort",S$.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",S$.SPEED_1X="1x",S$.SPEED_1_POINT_2X="1_point_2x",S$.SPEED_1_POINT_5X="1_point_5x",S$.SPEED_1_POINT_8X="1_point_8x",S$.SPEED_2X="2x",S$.SPEED_POINT_2X="point_2x",S$.SPEED_POINT_8X="point_8x",S$.SPONSORSHIP_STAR="star_circle",
S$.STAFF_PICK="spotlight",S$.START_DVR="add",S$.STAR_BORDER="star",S$.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",S$.STICKER_EMOTICON="face_happy",S$.STOP_DVR="stop",S$.SUBSCRIBE="youtube_logo_icon",S$.SUBSCRIBE_PLUS="add_cairo",S$.SUBSCRIPTION_MANAGER="gear",S$.SUPERVISOR_ACCOUNT="people",S$.SUPER_CHAT_FOR_GOOD="hands_heart",S$.SWAP_HORIZ="arrow_swap_horizontal",S$.SWITCH_ACCOUNTS="person_account",S$.TAB_ACCOUNT="person",S$.TAB_ACTIVITY="bell",S$.TAB_BOOKMARK="bookmark",S$.TAB_EXPLORE="compass",
S$.TAB_HOME="home",S$.TAB_HOME_CAIRO="home_cairo",S$.TAB_INBOX="mail",S$.TAB_LIKED="thumb_up",S$.TAB_MUSIC_PREMIUM="youtube_music",S$.TAB_SHORTS="youtube_shorts",S$.TAB_SHORTS_CAIRO="youtube_shorts_cairo",S$.TAB_SUBSCRIPTIONS="subscriptions",S$.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",S$.TAB_TRENDING="fire",S$.TIMER="stopwatch",S$.TRAILER="youtube_originals",S$.TRENDING="fire",S$.TRENDING_CAIRO="fire_cairo",S$.TRENDING_UP="rating_up",S$.TROPHY="trophy",S$.TROPHY_CELEBRATIONS="fireworks",S$.TUNE=
"adjust",S$.UNBLOCK_USER="bar_circle",S$.UNLIMITED="youtube_logo_icon",S$.UNPLUGGED_LIVE_GUIDE="radar_live",S$.UNPLUGGED_SPORTS="eye_off",S$.UPLOADS="library",S$.UP_ARROW="arrow_up",S$.VERTICAL_ALIGN_BOTTOM="download",S$.VERY_HAPPY="face_very_happy",S$.VERY_SAD="face_very_sad",S$.VIDEOGAME_ASSET="gaming",S$.VIDEOS="play_arrow_circle",S$.VIDEO_CALL="video_camera_add",S$.VIDEO_LIBRARY_WHITE="library",S$.VIDEO_YOUTUBE="youtube_logo_icon",S$.VIEW_LIST="list_view",S$.VIEW_LIST_CAIRO="list_view_cairo",
S$.VISIBILITY="eye",S$.VISIBILITY_OFF="eye_off",S$.VOLUME_MUTE="volume_off",S$.VOLUME_UP="volume_on",S$.WALLPAPER="image",S$.WARNING="alert_triangle",S$.WATCH_HISTORY="arrow_time",S$.WATCH_HISTORY_CAIRO="arrow_time_cairo",S$.WATCH_LATER="clock",S$.WATCH_LATER_CAIRO="clock_cairo",S$.WATCH_RELATED_MIX="youtube_mix",S$.WHAT_TO_WATCH="home",S$.YOUTUBE_MUSIC_MONOCHROME="youtube_music",S$.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",S$.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",
S$.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",S$.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",S$.YT_OUTLINE_MUSIC_24="music",S$);var Iq={},Kl9=(Iq.ACCESS_TIME="clock",Iq.ACCOUNT_BOX="person_square",Iq.ACCOUNT_BOX_CAIRO="person_square",Iq.ACCOUNT_CIRCLE="person_circle",Iq.ACCOUNT_CIRCLE_CAIRO="person_circle",Iq.ACCOUNT_LINKED="account_link",Iq.ACCOUNT_UNLINKED="account_link",Iq.ADD_CIRCLE="add_circle",Iq.ADD_CIRCLE_OUTLINE="add_circle",Iq.ADD_FRIEND="person_child",Iq.ADD_MODERATOR="shield_add",Iq.ADD_TO_LIBRARY="bookmark",Iq.ADD_TO_PLAYLIST="add",Iq.ADD_TO_QUEUE_TAIL="queue",Iq.ADD_TO_REMOTE_QUEUE="playlist_audio",Iq.ADD_TO_WATCH_LATER=
"clock",Iq.ADD_VIDEO_LINK="film_strip_add",Iq.ADMIN_PANEL_SETTINGS="person_gear",Iq.ALERT_WARN_RED="alert_triangle",Iq.ALIGN_LEFT="text_align_left",Iq.ARROWS_ALERT="arrow_split_alert",Iq.ARROW_BACK="arrow_left",Iq.ARROW_CIRCLE="arrow_counterclockwise",Iq.ARROW_CIRCLE_PLAY="replay",Iq.ARROW_CIRCLE_RIGHT="arrow_clockwise",Iq.ARROW_DIAGONAL="arrow_up_left",Iq.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",Iq.ARROW_DROP_DOWN="triangle_down",Iq.ARROW_DROP_UP="triangle_up",Iq.ARROW_FORWARD="arrow_right",Iq.ARROW_PAUSE=
"pause_history",Iq.ARROW_UNDO="undo",Iq.ARTICLE="text_page",Iq.ARTICLE_ALERT="text_page_alert",Iq.ARTICLE_CHECK="text_page_check",Iq.ARTICLE_CLARIFY="text_page_info",Iq.AUDIOTRACK="audio",Iq.AUDIO_BADGE="audio_badge",Iq.AUDIO_SURROUND="surround_sound",Iq.AUTO_AWESOME="sparkles",Iq.AVATAR_ANONYMOUS="person_circle",Iq.AVATAR_LOGGED_OUT="person_circle",Iq.BACK="arrow_left",Iq.BAR_CHART="chart_bar",Iq.BAR_CIRCLE="minus_circle",Iq.BAR_HORIZONTAL="minus",Iq.BLOCK="circle_slash",Iq.BLOCK_USER="circle_slash",
Iq.BOOKMARK_BORDER="bookmark",Iq.BOX_OPEN_CHECK="quiz",Iq.BOX_PENCIL="square_pencil",Iq.BOX_STACK_3="square3_stack",Iq.BREAKING_NEWS_ALT_1="text_page_alert",Iq.BROADCAST="podcast",Iq.BROADCAST_CAIRO="podcast",Iq.BUG_REPORT="bug",Iq.CAMERA_ALT="camera",Iq.CAMPAIGN="megaphone",Iq.CANCEL="x_circle",Iq.CAPTIONS="closed_captions",Iq.CAST_ICON="chromecast",Iq.CAST_OUTLINE="chromecast",Iq.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",Iq.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",Iq.CHAT="text_bubble",
Iq.CHAT_BUBBLE="bubble",Iq.CHECK_BOX="check_square",Iq.CHECK_BOX_OUTLINE_BLANK="square",Iq.CHECK_CIRCLE_FILLED="check_circle",Iq.CHECK_CIRCLE_OUTLINE="check_circle",Iq.CHECK_CIRCLE_THICK="check_circle",Iq.CHECK_DOUBLE="check_done",Iq.CHECK_DOUBLE_OFF="check_done_slash",Iq.CHEVRON_LEFT="chevron_left",Iq.CHEVRON_RIGHT="chevron_right",Iq.CHEVRON_RIGHT_CAIRO="chevron_right",Iq.CIRCLES_OVERLAP="account_link",Iq.CLAPPERBOARD_CAIRO="clapperboard",Iq.CLARIFY="text_page_info",Iq.CLOCK_ARROWS="clock_split",
Iq.CLOCK_ARROWS_ALERT="clock_split_alert",Iq.CLOSED_CAPTION="closed_captions",Iq.CLOSED_CAPTION_SELECTED="closed_captions",Iq.CLOSE="x",Iq.CLOUD_UPLOAD="cloud_arrow_up",Iq.COLLAPSE="chevron_up",Iq.COLLAPSE_CAIRO="chevron_up",Iq.COLLECTION="square3d_stack",Iq.COLOR_LENS="paint_palette",Iq.COMMENT="text_bubble",Iq.CONSENT_SHIELD="person_shield",Iq.CONTENT_CUT="scissors",Iq.CONTENT_CUT_CAIRO="scissors",Iq.COURSE="graduation_cap",Iq.COURSE_CAIRO="graduation_cap",Iq.CREATION_LIVE="live",Iq.CREATION_POST=
"square_pencil",Iq.CREATION_UPLOAD="video",Iq.CREATION_UPLOAD_RED="upload",Iq.CREATOR_ACADEMY="graduation_cap",Iq.CREATOR_STUDIO="youtube_studio",Iq.DARK_THEME="theme",Iq.DELETE="trash_can",Iq.DELETE_SWEEP="trash_can",Iq.DESKTOP="laptop",Iq.DISLIKE="thumb_down",Iq.DISLIKE_SELECTED="thumb_down",Iq.DISMISSAL="x",Iq.DISMISS_QUEUE="playlist_x",Iq.DOGFOOD="pawprint",Iq.DOLLAR_SIGN="dollar_sign_circle",Iq.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",Iq.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",Iq.DOWN_ARROW=
"arrow_down",Iq.DO_NOT_DISTURB="circle_slash",Iq.DRAFT="document",Iq.DRAG_HANDLE="equal",Iq.EARTH="globe",Iq.EDIT="pencil",Iq.EMOJI="face_very_happy",Iq.EMOJI_FLAGS="flag",Iq.EMOJI_OBJECTS="lightbulb",Iq.EMOJI_PEOPLE="face_very_happy",Iq.EMOJI_RECENT="clock",Iq.EMPTY_HEART="heart",Iq.EMPTY_LIKE="thumb_up",Iq.ERROR_BLACK="alert_circle",Iq.ERROR_OUTLINE="alert_circle",Iq.ERROR_WHITE="alert_circle",Iq.EXIT_APP="arrow_in",Iq.EXIT_TO_APP="arrow_in",Iq.EXPAND="chevron_down",Iq.EXPAND_ALL="chevron_expand",
Iq.EXPAND_CAIRO="chevron_down",Iq.EXPAND_LESS="chevron_up",Iq.EXPAND_MORE="chevron_down",Iq.EXPLORE="compass",Iq.EXPLORE_DESTINATION="compass",Iq.EXTERNAL_LINK="arrow_up_right",Iq.EYE_OFF="eye_slash",Iq.FAB_UPLOAD="upload",Iq.FACE_HAPPY_OUTLINE="face_happy",Iq.FACE_MEH="face_neutral",Iq.FACT_CHECK="text_page_check",Iq.FASHION_LOGO="fashion",Iq.FASHION_LOGO_CAIRO="fashion",Iq.FAVORITE="thumb_up",Iq.FEEDBACK="alert_bubble",Iq.FEEDBACK_CAIRO="alert_bubble",Iq.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",
Iq.FILL_ARROW_SOLID_UP_16="arrow_solid_up",Iq.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",Iq.FLAG_CAIRO="flag",Iq.FLASH_OFF="flash_slash",Iq.FLASH_ON="flash",Iq.FULL_HEART="heart",Iq.GAMING_LOGO="gaming",Iq.GAMING_LOGO_CAIRO="gaming",Iq.GO_TO_PAGE="arrow_right",Iq.GROUPS="person3",Iq.HAND_SWIPE_LEFT="gesture_swipe_left",Iq.HAND_SWIPE_RIGHT="gesture_swipe_right",Iq.HAPPY="face_happy",Iq.HEALTH_AND_SAFETY="shield_health",Iq.HEART_BOX="heart_cube",Iq.HELP="help_circle",Iq.HELP_CAIRO="help_circle",
Iq.HELP_OUTLINE="help_circle",Iq.HIDE="circle_slash",Iq.INCOGNITO_CAIRO="incognito",Iq.INFINITY_ICON="infinity",Iq.INFO="info_circle",Iq.INFO_OUTLINE="info_circle",Iq.INSERT_CHART="chart_bar_square",Iq.INSERT_CHART_OUTLINED="chart_bar_square",Iq.INSERT_PHOTO="image",Iq.KEEP="pin",Iq.KEEP_OFF="pin_slash",Iq.KEYBOARD="keyboard",Iq.KEYBOARD_ARROW_DOWN="chevron_down",Iq.KEYBOARD_ARROW_UP="chevron_up",Iq.KIDS_BLOCK="circle_slash",Iq.LANGUAGE="globe",Iq.LAUNCH="arrow_up_right",Iq.LEARNING="lightbulb",Iq.LEARNING_CAIRO=
"lightbulb",Iq.LIBRARY_ADD="bookmark",Iq.LIBRARY_IMAGE="image_stack",Iq.LIBRARY_MUSIC="audio_square_stack",Iq.LIBRARY_OUTLINE="play_square_stack",Iq.LIBRARY_REMOVE="bookmark",Iq.LIBRARY_SAVED="check_square_stack",Iq.LIKES_PLAYLIST="thumb_up",Iq.LIKES_PLAYLIST_CAIRO="thumb_up",Iq.LIKE="thumb_up",Iq.LIKE_SELECTED="thumb_up",Iq.LIST_QUEUE="queue",Iq.LIVE_CAIRO="live",Iq.LIVE_UNLISTED="link",Iq.LOCATION_ON="location_pin",Iq.LOCATION_PIN="location_pin",Iq.LOCATION_POINT="location_pin",Iq.LOOP="repeat",
Iq.LOOP_ACTIVE="repeat",Iq.LOOP_ONE="repeat1",Iq.LOOP_ONE_ACTIVE="repeat1",Iq.MEET="google_meet",Iq.MEH="face_neutral",Iq.MEMBERSHIPS="memberships",Iq.MEMBERS_ONLY_MODE_OFF="text_bubble",Iq.MENU_FILTER="filter",Iq.MESSAGE="text_bubble",Iq.MESSAGE_BUBBLE_GEAR="bubble_gear",Iq.MESSAGE_BUBBLE_LEFT="text_bubble",Iq.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",Iq.MESSAGE_BUBBLE_OVERLAP="bubble_stack",Iq.MESSAGE_BUBBLE_QUESTION="help_bubble",Iq.MICROPHONE_ON="mic",Iq.MONETIZATION_ON="dollar_sign_circle",
Iq.MONEY_FILL="dollar_sign_rectangle",Iq.MONEY_FILL_JPY="yen_sign_rectangle",Iq.MONEY_HAND="dollar_sign_circle_hand",Iq.MONEY_HEART="dollar_sign_heart",Iq.MOON_Z="sleep_timer",Iq.MORE_HORIZ="overflow_horizontal",Iq.MORE_VERT="overflow_vertical",Iq.MUSIC="audio",Iq.MUSIC_CAIRO="audio",Iq.MUSIC_EXPLICIT_BADGE="explicit",Iq.MUSIC_NEW_RELEASE="audio_badge",Iq.MUSIC_NOTE_SYMBOL="audio",Iq.MUSIC_SCISSORS="audio_scissors",Iq.MUSIC_SHUFFLE="shuffle",Iq.MY_CHANNEL="person_circle",Iq.MY_LOCATION="location_pin",
Iq.MY_VIDEOS="video",Iq.MY_VIDEOS_CAIRO="video",Iq.NEWS_CAIRO="news",Iq.NEWS_STORY="news",Iq.NEXT="chevron_right",Iq.NOTE_ADD="bubble_pencil",Iq.NOTIFICATIONS="bell",Iq.NOTIFICATIONS_ACTIVE="bell_waves",Iq.NOTIFICATIONS_CAIRO="bell",Iq.NOTIFICATIONS_DONE_CHECKMARK="check",Iq.NOTIFICATIONS_INBOX="bell",Iq.NOTIFICATIONS_NONE="bell",Iq.NOTIFICATIONS_OFF="bell_slash",Iq.NOT_INTERESTED="circle_slash",Iq.OFFICIAL_ARTIST_BADGE="audio",Iq.OFFLINE_CLOUD="cloud_slash",Iq.OFFLINE_DOWNLOAD="download",Iq.OFFLINE_DOWNLOAD_CAIRO=
"download",Iq.OFFLINE_PAUSE="pause",Iq.OPEN_IN_NEW="arrow_up_right",Iq.OUTLINE_ADJUST="adjust",Iq.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",Iq.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",Iq.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",Iq.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",Iq.OUTLINE_BAG="bag",Iq.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",Iq.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",Iq.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",Iq.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",Iq.PAID=
"dollar_sign_circle",Iq.PAUSE_OUTLINED="pause",Iq.PAYMENT="credit_card",Iq.PEOPLE="person_child",Iq.PEOPLE_2="person2_rectangle",Iq.PEOPLE_GROUP="person3",Iq.PEOPLE_NOTE="bubble_asterisk",Iq.PERSON_2="person2",Iq.PERSON_ACCOUNT="person_square_stack",Iq.PERSON_MINUS="person_x",Iq.PERSON_MUSIC="person_audio",Iq.PERSON_RADAR="person_waves",Iq.PERSON_RADAR_FILLED="person_waves",Iq.PERSON_SETTING="person_gear",Iq.PHONE="phone",Iq.PHONE_DOWNLOAD="mobile_arrow_down",Iq.PICTURE_IN_PICTURE="picture_in_picture",
Iq.PLAYABLES_LOGO="playables",Iq.PLAYABLES_LOGO_CAIRO="playables",Iq.PLAYLISTS="playlist",Iq.PLAYLISTS_CAIRO="playlist",Iq.PLAYLIST_ADD_CHECK="bookmark",Iq.PLAY_ALL="play",Iq.PLAY_ARROW="play",Iq.PLAY_ARROW_CIRCLE="play_circle",Iq.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",Iq.PLAY_CIRCLE="play_circle",Iq.PLAY_OUTLINED="play_circle",Iq.PODCAST_ADD="podcast_add",Iq.PODCAST_CHECK="podcast_check",Iq.PRIVACY_INFO="shield_x",Iq.PRIVACY_PRIVATE="lock",Iq.PRIVACY_PUBLIC="globe",Iq.PRIVACY_UNLISTED=
"link",Iq.PROMOTE="megaphone",Iq.PURCHASES="price_tag",Iq.PURCHASE_SUPER_CHAT="super_chat",Iq.PURCHASE_SUPER_STICKER="super_sticker",Iq.QUESTION_ANSWER="help_bubble",Iq.QUESTION_CIRCLE="help_circle",Iq.QUEUE_PLAY_LAST="queue_last",Iq.QUEUE_PLAY_NEXT="playlist",Iq.QUOTATION_MARK="quote",Iq.RADAR_LIVE="live",Iq.REMOVE="minus_circle",Iq.REMOVE_CIRCLE="minus_circle",Iq.REMOVE_CIRCLE_OUTLINE="minus_circle",Iq.REMOVE_FROM_HISTORY="minus_circle",Iq.REMOVE_FROM_PLAYLIST="minus_circle",Iq.REMOVE_MODERATOR=
"shield_slash",Iq.REPLAY="arrow_counterclockwise",Iq.REPLAY_10="skip10_back",Iq.REPLAY_ARROW="replay",Iq.REPORT_PROBLEM="alert_triangle",Iq.RSS_OFF="rss_slash",Iq.SAD="face_sad",Iq.SAVE_PLAYLIST="bookmark",Iq.SCHEDULE="clock",Iq.SCHOOL="graduation_cap",Iq.SCREEN_DEFAULT="player_default",Iq.SCREEN_FULLSCREEN="player_full_enter",Iq.SCREEN_LIGHT="ambient_mode",Iq.SCREEN_ROTATION="rotate_portrait",Iq.SCREEN_SWITCH="player_switch",Iq.SCREEN_THEATRE="player_theater",Iq.SEARCH_CAIRO="search",Iq.SEARCH_HISTORY=
"history",Iq.SELL="price_tag",Iq.SETTINGS="gear",Iq.SETTINGS_CAIRO="gear",Iq.SETTINGS_LIGHT="gear",Iq.SETTINGS_MATERIAL="gear",Iq.SETTINGS_REMOTE="remote_waves",Iq.SHARE="share",Iq.SHARE_ARROW="share",Iq.SHARE_CAIRO="share",Iq.SHIELD="shield_x",Iq.SHIELD_OFF="shield_slash",Iq.SHIELD_WITH_AVATAR="person_shield",Iq.SHOPPING_BAG="bag",Iq.SHOPPING_BAG_CAIRO="bag",Iq.SHOPPING_CART="cart",Iq.SHORTS_COMMENT="text_bubble",Iq.SHORTS_DISLIKE="thumb_down",Iq.SHORTS_LIKE="thumb_up",Iq.SHORTS_SHARE="share",Iq.SKIP_FORWARD_30=
"skip30_forward",Iq.SLASH_CIRCLE_RIGHT="circle_slash",Iq.SLOW_MODE="bubble_slow",Iq.SLOW_MODE_OFF="text_bubble",Iq.SOCIAL="person_child",Iq.SPARKLE="sparkles",Iq.SPARK_IMAGE="image_spark",Iq.SPARK_RADAR="spark_waves",Iq.SPARK_VIDEO="video_spark",Iq.SPEAKER_GROUP="speaker_stack",Iq.SPEAKER_OFF="speaker_slash",Iq.SPEED_1X="n1x",Iq.SPEED_1_POINT_2X="n1point2x",Iq.SPEED_1_POINT_5X="n1point5x",Iq.SPEED_1_POINT_8X="n1point8x",Iq.SPEED_2X="n2x",Iq.SPONSORSHIP_STAR="star_circle",Iq.SPORTS="basketball",Iq.SPOTLIGHT=
"spotlight",Iq.STAFF_PICK="spotlight",Iq.START_DVR="add",Iq.STAR_BORDER="star",Iq.STAR_CIRCLE_RIBBON="memberships_gift",Iq.STAR_HALF="star_half_filled",Iq.STAR_SHOOTING="hype",Iq.STICKER="sticker",Iq.STICKER_EMOTICON="face_happy",Iq.STOP_DVR="stop",Iq.SUBSCRIBE="youtube",Iq.SUBSCRIBE_PLUS="add",Iq.SUBSCRIPTION_MANAGER="gear",Iq.SUPERSTAR="super_star",Iq.SUPERVISOR_ACCOUNT="person_child",Iq.SUPER_CHAT_FOR_GOOD="hands_heart",Iq.SWAP_HORIZ="arrow_swap_horizontal",Iq.SWITCH_ACCOUNTS="person_square_stack",
Iq.TAB_ACCOUNT="person",Iq.TAB_ACTIVITY="bell",Iq.TAB_BOOKMARK="bookmark",Iq.TAB_EXPLORE="compass",Iq.TAB_HOME="home",Iq.TAB_HOME_CAIRO="home",Iq.TAB_INBOX="mail",Iq.TAB_LIKED="thumb_up",Iq.TAB_MUSIC_PREMIUM="youtube_music",Iq.TAB_SHORTS="shorts",Iq.TAB_SHORTS_CAIRO="shorts",Iq.TAB_SUBSCRIPTIONS="subscriptions",Iq.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",Iq.TAB_TRENDING="trending",Iq.TARGET="target",Iq.TARGET_ADD="target_add",Iq.TEMPLATE_ADD="template_add",Iq.TEXT="font",Iq.TIMER="stopwatch",Iq.TRENDING_CAIRO=
"trending",Iq.TRENDING_UP="arrow_trend_up",Iq.TROPHY_CAIRO="trophy",Iq.TROPHY_CELEBRATIONS="fireworks",Iq.TROPHY_STAR="star_trophy",Iq.TUNE="adjust",Iq.TV_OFF="tv_slash",Iq.UNBLOCK_USER="minus_circle",Iq.UNFAVORITE="thumb_down",Iq.UNLIMITED="youtube",Iq.UNPLUGGED_LIVE_GUIDE="live",Iq.UNPLUGGED_SPORTS="eye_slash",Iq.UPLOADS="play_square_stack",Iq.UP_ARROW="arrow_up",Iq.VERTICAL_ALIGN_BOTTOM="chevron_down_end",Iq.VERTICAL_ALIGN_TOP="chevron_up_end",Iq.VERY_HAPPY="face_very_happy",Iq.VERY_SAD="face_very_sad",
Iq.VIDEOS="play_circle",Iq.VIDEO_CALL="video_camera_add",Iq.VIDEO_LIBRARY_WHITE="play_square_stack",Iq.VIDEO_QUALITY_4K="n4k",Iq.VIDEO_QUALITY_8K="n8k",Iq.VIDEO_YOUTUBE="youtube",Iq.VIEW_LIST_CAIRO="view_list",Iq.VIEW_MODULE="view_column3_row2",Iq.VISIBILITY="eye",Iq.VISIBILITY_OFF="eye_slash",Iq.VOLUME_DOWN="volume_min",Iq.VOLUME_MUTE="volume_mute",Iq.VOLUME_OFF="volume_mute",Iq.VOLUME_STABLE="stable_volume",Iq.VOLUME_UP="volume_max",Iq.WALLPAPER="image",Iq.WARNING="alert_triangle",Iq.WATCH_HISTORY=
"history",Iq.WATCH_HISTORY_CAIRO="history",Iq.WATCH_LATER="clock",Iq.WATCH_LATER_CAIRO="clock",Iq.WATCH_RELATED_MIX="mix",Iq.WHAT_TO_WATCH="home",Iq.YOUTUBE_LINKED_TV="tv_mobile",Iq.YOUTUBE_MUSIC_MONOCHROME="youtube_music",Iq.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",Iq.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",Iq.YOUTUBE_SHORTS_ARROW_UP="arrow_up",Iq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",Iq.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",Iq.YOUTUBE_SHORTS_OUTLINE_24="shorts",
Iq);var Wlf={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,4,24]],account_link:[[1,8,24]],account_link_error:[[1,6,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,9,16],[1,9,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,6,24],
[1,6,36]],add_half_circle:[[1,2,24]],adjust:[[0,9,24],[1,9,18],[1,9,24]],airplane:[[0,5,24],[1,5,20],[1,5,24]],airplay:[[1,6,16],[1,6,24]],airplay_off:[[1,1,24]],album:[[0,8,24],[1,8,24]],alert_circle:[[0,10,24],[1,10,16],[1,10,24]],alert_triangle:[[0,10,12],[0,10,24],[1,10,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,
36],[1,1,48]],arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,3,24],[1,3,24]],arrow_down_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrow_flip:[[1,10,16],[1,10,18],[1,10,24]],arrow_flip_dollar_sign:[[1,2,24]],arrow_in:[[0,8,24],[1,8,24]],arrow_left:[[1,
8,24,!0]],arrow_left_cairo:[[1,2,24,!0]],arrow_merge:[[1,2,24]],arrow_out:[[0,2,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,3,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_solid_up:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],arrow_split:[[0,3,24],[1,3,24]],arrow_swap_horizontal:[[0,5,24],[1,5,18],
[1,5,24]],arrow_time:[[0,8,24],[1,8,24]],arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,3,24],[1,3,24]],arrow_up_circle:[[0,4,12],[0,4,16],[0,4,18],[0,4,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,14,12],[0,14,16],[0,14,18],[0,14,24],[1,14,18],[1,14,24]],audio_badge:[[0,3,12],[0,3,16],[0,3,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,
1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,12],[0,7,18],[0,7,24],[1,7,18],[1,7,24]],bag_bookmark:[[1,2,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bell:[[0,10,24],[1,10,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,
2,24]],blur:[[1,2,24]],book:[[1,3,24]],bookmark:[[0,9,24],[1,9,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],box_stack_3:[[0,1,24],[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,
24]],brightness:[[0,3,24],[1,3,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24],[1,3,48]],bug:[[0,3,24],[1,3,24]],business:[[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],camera:[[0,10,24],[1,10,24]],camera_audio:[[1,5,24]],camera_effects:[[1,4,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_switch:[[0,3,24],[1,3,24]],card:[[0,3,12],[0,3,16],[0,3,24]],cart:[[0,4,24],[1,4,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],check:[[0,
13,12],[0,13,16],[0,13,24],[1,13,16],[1,13,24]],check_circle:[[0,10,18],[0,10,24],[1,10,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,3,24]],chevron_expand:[[1,5,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,9,16,!0],[1,9,18,!0],[1,9,24,!0]],chevron_left_circle:[[0,3,24]],chevron_left_ios:[[1,2,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,
7,16,!0],[0,7,18,!0],[0,7,24,!0],[1,7,16,!0],[1,7,18,!0],[1,7,24,!0]],chevron_right_cairo:[[1,2,24]],chevron_right_circle:[[0,3,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,8,16],[1,8,18],[1,8,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,3,24]],chromecast:[[0,10,24],[1,10,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,
2,24]],circle:[[0,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],download:[[0,11,24],[1,11,16],[1,11,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,
24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,7,18],[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_off:[[1,4,24]],eyedropper:[[1,2,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[0,9,36],[1,9,24],[1,9,
36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[0,9,36],[1,9,24],[1,9,36]],fashion:[[0,4,24],[1,4,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[0,3,24],[1,3,24]],fast_forward:[[0,5,24]],film_strip:[[0,7,24],[1,7,24]],film_strip_add:[[1,
2,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,8,24],[1,8,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,18],[0,5,24],[1,5,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,4,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,4,16],[0,4,24],[1,4,24]],football:[[0,4,24],[1,
4,24]],gaming:[[0,3,24],[1,3,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,9,24],[1,9,24]],gear_cairo:[[0,3,24],[1,3,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],globe_image:[[0,2,24],[0,2,36],[1,2,24],[1,2,36]],glow:[[1,2,24]],google_lens:[[1,4,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,2,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,
24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,2,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],heart:[[0,18,13],[0,18,24],[1,18,16],[1,18,24]],heart_box:[[1,1,24]],heart_circle:[[1,2,16],[1,2,18],[1,2,20],[1,2,24]],heart_off:[[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],home:[[0,9,24],[1,9,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,
3,16],[1,3,24]],image:[[0,8,24],[1,8,24]],image_add:[[1,4,24]],image_wallpaper:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,2,24]],info_circle:[[1,10,16],[1,10,18],[1,10,20],[1,10,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,2,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],
library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,4,12],[0,4,24],[1,4,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,2,24]],link:[[1,8,18],[1,8,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,
1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,2,24]],live_waves:[[1,2,18],[1,2,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,12],[1,13,16],[1,13,18],[1,13,24]],lock_open:[[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,
3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,1,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],meet:[[1,1,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,12],[0,9,16],[0,9,18],[0,9,24],[1,9,24]],mention:[[1,4,16],[1,4,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,
6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_left_off:[[1,1,16],[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,13,24],[1,13,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,
1,24]],mobile:[[0,4,24],[1,4,24]],mobile_check:[[1,2,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,3,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,1,24],[1,1,24]],motion:[[1,2,24]],move:[[1,2,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,4,24]],music_video_off:[[1,
1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,3,24],[1,3,12],[1,3,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],note_add:[[1,1,16],[1,1,24]],note_spark:[[0,2,16],[0,2,24],[1,2,16],[1,2,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,6,24],[1,6,32]],overflow_vertical:[[1,12,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,3,24]],palette:[[1,1,24]],panels:[[0,
2,24],[1,2,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,9,24]],pause_circle:[[0,2,12],[0,2,16],[0,2,24]],pdf:[[1,2,24]],pencil:[[1,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,6,12],[0,6,13],[0,6,16],[0,6,24],[0,6,48],[1,6,13],[1,6,16],[1,6,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,
1,24]],person_add:[[1,7,24]],person_box:[[1,5,24]],person_circle:[[0,10,24],[1,10,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,2,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,7,12],[0,7,24],[1,7,16],[1,7,18],[1,7,24]],person_setting:[[1,6,24]],person_shield:[[1,7,24]],person_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,
24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,2,24]],presentation_remove:[[1,
1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,
2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,1,24],[0,1,48],[1,1,24],[1,1,
48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,2,24]],shadow_soft:[[0,2,24]],
shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],star_circle:[[0,6,12],[0,6,16],[0,6,18],[0,6,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,
2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,5,24],
[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,5,24]],
uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_stitch:[[1,2,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,2,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,7,24],[1,7,24]],waveform:[[1,3,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],waveform_spark:[[1,2,24]],wrench:[[0,3,24],[1,3,24]],
x:[[1,11,18],[1,11,24]],x_cairo:[[1,1,24]],x_circle:[[1,8,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,2,24]],yen_sign_container:[[0,2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,
1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,
5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_auto:[[0,1,24],[1,1,24]]};var jkY={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,8,24]],chevron_up_circle:[[0,3,24],[1,3,24]],chevron_up_end:[[1,
1,24]],chromecast:[[0,10,24],[1,10,18],[1,10,24],[1,10,36]],chromecast_mobile:[[1,4,24],[1,4,36]],chromecast_waveform:[[1,2,24]],circle:[[0,7,24],[1,7,24]],circle_half_filled:[[1,1,24]],circle_slash:[[0,3,24],[1,3,18],[1,3,24]],circles6:[[1,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,2,24],[1,2,24]],closed_captions:[[0,
2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],credit_card:[[0,4,24],[1,4,24]],crop:[[1,
3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,1,24]],dollar_sign_circle:[[0,11,24],
[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,1,24]],download:[[1,11,18],[1,11,24]],dpad:[[0,2,24],[1,2,24]],embed:[[0,2,24],[1,2,24]],equal:[[1,1,24]],equal_slash:[[1,1,24]],explicit:[[0,7,24],[1,7,24]],eye:[[0,6,24],[1,6,24]],eye_slash:[[1,1,24]],
eyedropper:[[1,2,24]],face_happy:[[0,11,24],[0,11,36],[0,11,48],[1,11,24],[1,11,36]],face_image:[[1,2,24]],face_meh:[[0,9,24],[1,9,24]],face_neutral:[[0,4,24],[0,4,36],[1,4,24],[1,4,36]],face_paintbrush:[[1,2,24]],face_sad:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_scale:[[1,1,24]],face_sparkles:[[0,2,24],[1,2,24]],face_unhappy:[[0,10,24],[0,10,36],[1,10,24],[1,10,36]],face_upset:[[0,9,24],[1,9,24]],face_very_happy:[[0,11,24],[0,11,36],[1,11,24],[1,11,36]],face_very_sad:[[0,9,24],[1,9,24]],fashion:[[0,
4,24],[1,4,24]],fast_forward:[[0,5,24],[1,5,24]],fast_rewind:[[0,2,24],[1,2,24]],film_strip:[[0,7,24],[0,7,48],[1,7,24]],film_strip_add:[[1,2,24]],film_strip_audio:[[1,1,24]],filter:[[1,1,24]],filter_audio:[[1,1,24]],filter_photo:[[0,8,24],[1,8,24]],fireworks:[[1,3,24]],flag:[[0,9,24],[1,9,18],[1,9,24]],flash:[[0,2,24],[1,2,24]],flash_auto:[[0,3,24],[1,3,24]],flash_circle:[[0,5,24],[1,5,24]],flash_slash:[[0,2,24],[1,2,24]],flip_horizontal:[[1,4,24]],flip_horizontal_half_dashed:[[1,1,24]],flip_vertical_half_dashed:[[1,
1,24]],folder:[[0,4,24],[1,4,24]],font:[[1,1,24]],font_bold:[[1,1,24]],font_italic:[[1,1,24]],font_outline:[[1,1,24]],font_present:[[1,1,24]],font_serif:[[1,1,24]],font_shadow:[[1,1,24]],font_square:[[0,2,24],[1,2,24]],font_strikethrough:[[1,1,24]],font_style:[[1,1,24]],font_underline:[[1,1,24]],football:[[0,4,24],[1,4,24],[1,4,36]],game_controller:[[1,1,24]],gaming:[[0,3,24],[1,3,24]],gear:[[0,9,24],[1,9,18],[1,9,24]],gesture_long_press:[[0,2,24],[1,2,24]],gesture_pinch_in:[[1,1,24]],gesture_swipe_left:[[1,
1,24]],gesture_swipe_right:[[1,1,24]],gesture_swipe_up:[[1,1,24]],gesture_tap:[[0,2,24],[1,2,24]],ghost:[[1,4,24]],gif:[[1,2,24]],gift:[[0,3,24],[1,3,24]],globe:[[1,4,24]],glow:[[1,2,24]],google:[[0,1,24]],google_blogger:[[0,1,24]],google_drive_add:[[1,1,24]],google_lens:[[1,4,24]],google_meet:[[0,2,24],[1,2,24]],google_quick_share:[[1,1,24]],graduation_cap:[[0,3,18],[0,3,24],[1,3,24]],greater_than:[[1,1,24]],greater_than_n20:[[1,1,24]],greater_than_or_equal_to:[[1,1,24]],hand:[[1,2,24]],hand_wave:[[1,
2,24]],hands_clap:[[1,1,24]],hands_heart:[[0,3,24],[1,3,24]],hashtag:[[1,2,24]],hd:[[0,8,24],[1,8,24]],headset:[[0,8,24],[1,8,24]],hearing:[[0,2,24],[1,2,24]],heart:[[0,18,24],[1,18,18],[1,18,24]],heart_circle:[[1,2,24]],heart_cube:[[1,1,24]],heart_slash:[[1,1,24]],help_bubble:[[0,2,24],[1,2,24]],help_circle:[[1,2,18],[1,2,24]],hierarchy:[[0,4,24],[1,4,24]],highlights:[[1,2,24]],history:[[1,1,24]],home:[[0,9,24],[1,9,24]],hourglass:[[1,3,18],[1,3,24]],hype:[[0,2,24],[1,2,24]],image:[[0,8,24],[1,8,
24]],image_add:[[0,4,24],[1,4,24]],image_frame:[[1,1,24]],image_list:[[0,2,24],[1,2,24]],image_list_slash:[[1,1,24]],image_spark:[[1,1,24]],image_stack:[[0,2,24],[1,2,24]],image_viewfinder:[[1,1,24]],incognito:[[0,9,24],[1,9,24]],infinity:[[1,2,24]],info_circle:[[1,10,18],[1,10,24]],info_circle_spark:[[1,1,24]],journey:[[1,2,24]],key:[[1,5,24]],keyboard:[[0,4,24],[1,4,24]],label:[[0,4,24],[1,4,24]],label_slash:[[0,2,24],[1,2,24]],laptop:[[1,3,24]],laptop_mobile:[[0,4,24],[1,4,24]],layout_bottom:[[1,
1,24]],layout_foreground:[[1,1,24]],layout_full:[[1,1,24]],layout_left:[[1,1,24]],layout_middle:[[1,1,24]],layout_picture_in_picture:[[1,1,24]],layout_right:[[1,1,24]],layout_top:[[1,1,24]],leaf:[[1,2,24]],less_than:[[1,1,24]],less_than_n4:[[1,1,24]],less_than_or_equal_to:[[1,1,24]],license:[[0,2,24],[1,2,24]],license_alert:[[1,1,24]],license_search:[[1,1,24]],license_slash:[[1,1,24]],lightbulb:[[0,4,24],[1,4,24]],link:[[1,8,18],[1,8,24]],link_slash:[[1,1,24]],live:[[1,1,24]],live_photo:[[1,2,24]],
live_waves:[[1,2,18],[1,2,24]],location_pin:[[0,2,24],[1,2,24]],location_pin_slash:[[1,1,24]],lock:[[0,13,12],[0,13,24],[1,13,18],[1,13,24],[1,13,48]],lock_clock:[[1,1,24]],lock_n2:[[1,1,24]],lock_open:[[0,4,24],[1,4,24]],magic_wand:[[0,3,24],[1,3,24]],mail:[[0,8,24],[1,8,24]],map:[[1,3,24]],medal:[[1,2,24]],medal_star:[[1,2,24]],megaphone:[[0,4,24],[1,4,24]],memberships:[[0,9,24],[0,9,36],[1,9,24]],memberships_gift:[[1,1,24]],mention:[[1,4,24]],menu:[[1,1,24]],mic:[[0,13,18],[0,13,24],[0,13,48],
[1,13,18],[1,13,24],[1,13,48]],mic_slash:[[1,2,24]],minus:[[1,2,18],[1,2,24]],minus_circle:[[0,3,24],[1,3,18],[1,3,24]],minus_square:[[0,2,24],[1,2,24]],mix:[[0,3,24],[1,3,18],[1,3,24]],mobile:[[0,4,24],[1,4,24]],mobile_arrow_down:[[1,1,24]],mobile_arrow_in:[[1,1,24]],mobile_arrow_out:[[1,1,24]],mobile_check:[[1,2,24]],mobile_landscape:[[0,3,24],[1,3,24]],motion:[[1,2,24]],move:[[1,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,
1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],
overflow_vertical:[[1,12,24],[1,12,36]],page_search:[[1,1,24]],paint_bucket:[[1,3,24]],paint_palette:[[1,1,24]],panels:[[0,2,24],[1,2,24]],pause:[[0,9,24],[0,9,36],[0,9,48],[1,9,24]],pause_circle:[[0,2,24],[1,2,24]],pause_history:[[1,1,24]],pawprint:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,1,24]],person:[[0,6,24],[1,6,24]],person2:[[1,1,24]],person2_rectangle:[[0,1,24],[1,1,24]],person3:[[0,2,24],[1,2,18],[1,2,24]],person_add:[[0,7,24],[1,7,18],[1,7,
24]],person_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],person_check:[[1,1,24]],person_child:[[0,1,24],[1,1,24]],person_circle:[[0,10,24],[1,10,24],[1,10,48]],person_circle_slash:[[1,2,24]],person_gear:[[0,2,24],[1,2,24]],person_shield:[[1,7,24]],person_square:[[0,2,24],[1,2,18],[1,2,24]],person_square_stack:[[0,2,24],[1,2,18],[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,
1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,
1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,4,12],[1,4,18],[1,4,24],[1,4,48]],playlist_add:[[1,2,18],[1,2,24]],playlist_audio:[[0,3,24],[1,3,18],[1,3,24],[1,3,48]],playlist_audio_slash:[[1,1,24]],playlist_check:[[1,1,24]],playlist_pencil:[[1,2,24],[1,2,48]],
playlist_x:[[1,2,18],[1,2,24]],podcast:[[0,6,12],[0,6,24],[1,6,12],[1,6,18],[1,6,24],[1,6,48]],podcast_add:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point2x:[[1,1,24]],point3x:[[1,1,24]],point5x:[[1,1,24]],point8x:[[1,1,24]],poll:[[1,9,18],[1,9,24],[1,9,36]],premium:[[0,1,24],[1,1,24]],presentation:[[1,2,24]],price_tag:[[0,8,24],[0,8,48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],
queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,1,24],[1,1,24]],repeat1:[[0,1,24],[1,1,24]],replay:[[1,2,24],[1,2,36]],rotate_clockwise:[[1,1,24]],rotate_counterclockwise:[[1,1,24]],rotate_landscape:[[1,2,18],[1,2,24]],rotate_portrait:[[1,1,24]],rss:[[1,2,24]],rss_slash:[[1,1,24]],ruby:[[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,
2,24]],scale:[[1,4,24]],scissors:[[0,8,24],[1,8,18],[1,8,24]],scissors_cut:[[1,4,24]],scribble:[[1,1,24]],sd:[[0,3,24],[1,3,24]],search:[[0,14,24],[1,14,18],[1,14,24],[1,14,48]],search_shield:[[0,1,24],[1,1,24]],search_spark:[[1,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[1,2,24]],shadow_soft:[[1,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[1,12,18,!0],[1,12,24,!0]],share_android:[[0,2,24],[1,2,24]],share_ios:[[1,2,
24]],shield:[[0,6,24],[1,6,24]],shield_add:[[1,2,24]],shield_health:[[1,1,24]],shield_overflow:[[1,2,24]],shield_slash:[[1,1,24]],shield_x:[[0,3,24],[1,3,18],[1,3,24]],shorts:[[0,3,18],[0,3,24],[1,3,24]],shorts_empty:[[0,3,18],[0,3,24],[1,3,24]],shuffle:[[0,3,24],[1,3,18],[1,3,24]],skip10_back:[[1,2,24],[1,2,36]],skip10_forward:[[1,1,24]],skip15_back:[[1,1,24]],skip15_forward:[[1,1,24]],skip20_back:[[1,1,24]],skip20_forward:[[1,1,24]],skip30_back:[[1,1,24]],skip30_forward:[[1,2,24],[1,2,36]],skip5_back:[[1,
1,24]],skip5_forward:[[1,1,24]],skip60_back:[[1,1,24]],skip60_forward:[[1,1,24]],skip_down:[[0,5,24],[1,5,24]],skip_next:[[0,7,12],[0,7,24],[0,7,36],[1,7,24]],skip_previous:[[0,6,24],[0,6,36],[1,6,24]],skip_up:[[0,5,24],[1,5,24]],slash_forward:[[1,1,24]],sleep_timer:[[0,2,24],[1,2,24]],snowflake:[[1,1,24]],soccer_ball:[[1,3,24]],sonar:[[1,1,24]],sort:[[1,2,18],[1,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,24],[1,9,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,
2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[1,1,24]],square3_stack:[[0,2,24],[1,2,24]],square3d_stack:[[0,2,24],[1,2,24]],square_grid2x2:[[1,1,24]],square_grid3x3:[[0,2,24],[1,2,24]],square_pencil:[[0,2,24],[1,2,24]],stable_volume:[[0,2,24],[1,2,24]],star:[[0,5,24],[1,5,24]],
star_circle:[[0,6,12],[0,6,18],[0,6,24],[0,6,36],[1,6,24]],star_half_filled:[[1,1,24]],star_ticket:[[0,2,24],[1,2,24]],star_trophy:[[1,1,24]],star_tv:[[1,1,24]],sticker:[[1,2,24]],stop:[[0,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,
1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],text_align_center:[[0,2,24],[1,2,24]],text_align_left:[[0,2,24],[1,2,24]],text_align_right:[[0,2,24],[1,2,24]],text_bubble:[[0,3,24],[1,3,18],[1,3,24]],text_page:[[0,2,24],[1,2,24]],text_page_alert:[[1,1,24]],text_page_check:[[1,1,24]],text_page_info:[[1,1,24]],texture:[[1,
1,24]],theater:[[1,1,24]],theme:[[0,2,24],[1,2,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,18],[0,24,24],[0,24,36],[0,24,48],[1,24,18],[1,24,24],[1,24,36],[1,24,48]],thumb_up:[[0,22,18],[0,22,24],[0,22,36],[0,22,48],[1,22,18],[1,22,24],[1,22,36],[1,22,48]],thumb_up_down:[[0,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],
[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,
1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,1,24]],video_stitch:[[1,2,24]],view_column3:[[0,2,24],[1,2,24]],view_column3_row2:[[0,2,24],[1,2,24]],view_compact:[[0,2,24],[1,2,24]],view_feed:[[0,2,24],[1,2,24]],view_list:[[1,1,24]],view_row2:[[0,2,24],[1,2,24]],view_timeline:[[1,1,24]],volume_fade:[[1,2,24]],volume_max:[[0,2,24],[1,2,24]],volume_min:[[0,2,24],[1,2,24]],volume_mute:[[0,2,24],[1,2,24]],vr:[[0,7,24],[1,7,24]],watch:[[1,1,24]],water:[[1,1,24]],waveform:[[1,3,24],[1,3,48]],waveform_spark:[[1,
2,24]],wrench:[[0,3,18],[0,3,24],[1,3,18],[1,3,24]],x:[[1,11,18],[1,11,24],[1,11,36]],x_circle:[[0,8,24],[1,8,18],[1,8,24]],x_octagon:[[1,2,24]],x_rectangle:[[1,1,24]],yen_sign_rectangle:[[0,2,24],[1,2,24]],youtube:[[0,2,24],[1,2,24]],youtube_kids:[[0,5,24],[1,5,24]],youtube_music:[[0,7,24],[1,7,24]],youtube_shorts:[[0,10,24],[1,10,24]],youtube_studio:[[0,8,24],[1,8,24]],youtube_tv:[[0,8,24],[1,8,24]],zoom_in:[[0,2,24],[1,2,24]],zoom_out:[[0,2,24],[1,2,24]]};var buN={LIKE_DELHI_PLAYER:"LIKE",DISLIKE_DELHI_PLAYER:"DISLIKE",SHARE_DELHI_PLAYER:"SHARE",COMMENT_DELHI_PLAYER:"COMMENT",MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER:"MESSAGE_BUBBLE_OVERLAP",VOLUME_UP_DELHI_PLAYER_FILLED:"VOLUME_MAX",VOLUME_OFF_DELHI_PLAYER:"VOLUME_MUTE",VOLUME_DOWN_DELHI_PLAYER_FILLED:"VOLUME_MIN",CLOSED_CAPTION_DELHI_PLAYER:"CAPTIONS",CLOSED_CAPTION_DELHI_PLAYER_FILLED:"CAPTIONS",SUBTITLES_DELHI_PLAYER:"SUBTITLES",SUBTITLES_DELHI_PLAYER_FILLED:"SUBTITLES",PLAYER_FULL_ENTER_ALT:"PLAYER_FULL_ENTER_ALT",
PLAYER_FULL_EXIT_ALT:"PLAYER_FULL_EXIT_ALT",PAUSE_DELHI_PLAYER_FILLED:"PAUSE",PLAY_ARROW_DELHI_PLAYER_FILLED:"PLAY_ARROW"},KL=function(R){this.iconUrlProvider=R};
KL.prototype.resolveIcon=function(R,A){var Y=buN[R.iconName.toUpperCase()];Y&&(R.iconName=Y);var P=R.iconName;P=P.replace(/-/g,"_");R=Object.assign({},R,{iconName:this.mapIconTypeToStandardName(P,!!Y)||P.toLowerCase()});if(_.v("enable_web_delhi_icons")||Y){var E;return EAk(jkY,R,((E=this.iconUrlProvider)==null?void 0:E.getYtStandardUrl)||xSP,A)}var z;return EAk(Wlf,R,((z=this.iconUrlProvider)==null?void 0:z.getYtStandardUrl)||l3q,A)};
KL.prototype.mapIconTypeToStandardName=function(R,A){return _.v("enable_web_delhi_icons")||A?Kl9[R.toUpperCase()]:II0[R.toUpperCase()]};
KL[xk]=[_.z3($bF)];var fIf=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),p3Q=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Fli=function(R){this.urlProvider=this.iconUrlProvider=R};
_.H(Fli,KL);
Fli.prototype.resolveIcon=function(R,A){R.iconName==="youtube_logo"&&(R.iconName="yt-logo-updated");if(R.iconName==="youtube_premium_logo"||R.iconName==="youtube_red_logo")R.iconName="yt-logo-red-updated";var Y=Object.assign({},R);R.iconName==="menu"&&(_.v("enable_web_delhi_icons")||(Y.iconName="bars_3"),Y.iconStyle="youtube_outline");R.iconSetName==="socialNetworksRound"&&(R.iconName==="mail"&&(Y.iconName="email"),R.iconName==="embed"&&(Y.iconSize=60));R.iconName==="more"&&(Y.iconName="overflow_horizontal");
R.iconName==="fullscreen"&&(Y.iconName="screen_full");R.iconName==="premium_standalone"&&(Y.iconName="premium_standalone_cairo");_.v("enable_connect_icon_update_web")&&R.iconName==="account_linked"&&(Y.iconName="circles_overlap_check",Y.iconStyle="youtube_fill");_.v("enable_connect_icon_update_web")&&R.iconName==="account_unlinked"&&(Y.iconName="circles_overlap",Y.iconStyle="youtube_outline");fIf.has(R.iconName)&&(Y.iconStyle="youtube_fill");_.v("enable_web_delhi_icons")&&(R.iconName==="playlist_add"&&
(Y.iconName="bookmark"),R.iconName==="offline_pin"&&(Y.iconName="arrow_down_circle",Y.iconStyle="youtube_fill"),p3Q.has(R.iconName)&&(Y.iconName+="_updated"));R=Object.assign({},Y,{iconName:(KL.prototype.mapIconTypeToStandardName.call(this,Y.iconName)||Y.iconName).toLowerCase()});var P;return(R=EAk(DbN,R,((P=this.urlProvider)==null?void 0:P.getUrl)||cGk,A))?R:KL.prototype.resolveIcon.call(this,Y,A)};
Fli[xk]=[_.z3($bF)];_.B8g=1;var Wh=function(R,A){this.JSC$17212_commandHandler=R;this.innertubeTransportService=A};
_.H(Wh,zg);Wh.prototype.resolveCommand=function(R,A){var Y=this,P,E,z;return _.O(function(c){return(P=_.n(R,$AD))?c.return(aIF(Y,P,(E=A)==null?void 0:(z=E.form)==null?void 0:z.element)):c.return()})};
var aIF=function(R,A,Y){A={profileCardContext:A.profileCardContext,profileOwnerExternalChannelId:A.profileOwnerExternalChannelId};var P=_.Pr(Qzz);return _.Ad(R.innertubeTransportService,A,P).then(function(E){if(!E)throw new _.XN("GetProfileCard failed");if(E=E.popupCommand){R.JSC$17212_commandHandler.resolveCommand(E,{form:{element:Y}});_.$5(_.rU(),66557);E=E==null?void 0:E.clickTrackingParams;var z=_.pO();E&&z&&_.rU().graftServerVe(E,z)}})};
Wh[xk]=[_.ls,_.Co];var j$=function(){};
_.H(j$,zg);j$.prototype.resolveCommand=function(R){var A,Y;return _.O(function(P){A=_.n(R,fxb);if(!A)return P.return();Y=Number(A.enableDelayedPacfLoggingTvMs);if(isNaN(Y)){var E=Km();w0N(E,A,0)}else w0N(Km(),A,Y);_.XH(P)})};_.bq=function(){};
_.H(_.bq,zg);
_.bq.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y;return _.O(function(m){P=_.n(R,psf);z=(E=A.form)==null?void 0:E.element;M=(c=z)==null?void 0:c.closest("ytd-enforcement-message-view-model");if(!P||!M)return m.return();Y.allowAdsAction||(N=P.fundingChoiceInstructionPageUrl,Y.allowAdsAction=new PIA(window,_.pn(N)));var T=Y.allowAdsAction;T.wallElement=M;T.allowAdsPopup.style.setProperty("display","flex","important");var Q=T.scrollManager;Q.originalBodyOverflow=Q.JSC$9992_domHelper.JSC$9319_document_.body.style.overflow;Q.JSC$9992_domHelper.JSC$9319_document_.body.style.overflow=
"hidden";T.wallElement.style.setProperty("display","none","important");Vqq(T.accessibilityManager,T.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((y=Y.allowAdsAction.allowAdsPopup)&&y instanceof HTMLElement)for(T=_.x(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Q=T.next();!Q.done;Q=T.next()){var g=_.x(Q.value);Q=g.next().value;g=g.next().value;y.style.setProperty(Q,g)}_.XH(m)})};
_.bq.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var fL=function(){};
_.H(fL,zg);fL.prototype.resolveCommand=function(R){var A;return _.O(function(Y){A=_.n(R,IYE);if(!A)return Y.return();t7l(R);_.XH(Y)})};var pL=function(R){this.JSC$17227_commandHandler=R};
_.H(pL,zg);
pL.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y;return _.O(function(m){if(m.nextAddress==1){Y=_.n(R,zlf);if((P=Y)==null||!P.text||!navigator.clipboard)return m.return();_.g2(m,2);return m.yield(navigator.clipboard.writeText(Y.text),4)}if(m.nextAddress!=2){if(!Y.successActions||Y.successActions.length===0)return m.return();E=_.x(Y.successActions);for(z=E.next();!z.done;z=E.next())c=z.value,A.JSC$17227_commandHandler.resolveCommand(c);return _.us(m,0)}_.UT(m);if(!Y.failureActions||Y.failureActions.length===
0)return m.return();M=_.x(Y.failureActions);for(N=M.next();!N.done;N=M.next())y=N.value,A.JSC$17227_commandHandler.resolveCommand(y);_.XH(m)})};
pL[xk]=[_.ls];var F5=function(R){this.JSC$17231_commandHandler=R};
_.H(F5,zg);
F5.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q;return _.O(function(g){switch(g.nextAddress){case 1:P=_.n(R,FAA);if(!P)return g.return();_.g2(g,2);if(!P.imageBytes&&!P.imageUrl)throw Error("zi");if(!P.imageUrl){if(P.imageBytes){z=P.imageBytes;c=z.replace(/-/g,"+").replace(/_/g,"/");var r=s08(c);E=_.kD(r)}g.jumpTo(4);break}return g.yield(fetch(P.imageUrl),5);case 5:return M=g.yieldResult,g.yield(M.blob(),6);case 6:N=g.yieldResult,E=_.kD(N);case 4:T=(y=A)==null?void 0:(m=y.form)==
null?void 0:m.element;Q=document.createElement("a");wZ(Q,E);T.appendChild(Q);Q.download="";Q.click();T.removeChild(Q);URL.revokeObjectURL(_.Ff(E));P.successCommand&&Y.JSC$17231_commandHandler.resolveCommand(P.successCommand);_.us(g,0);break;case 2:_.UT(g),P.errorCommand&&Y.JSC$17231_commandHandler.resolveCommand(P.errorCommand),_.XH(g)}})};
F5[xk]=[_.ls];var Bh=function(R){this.store=R};
_.H(Bh,zg);Bh.prototype.resolveCommand=function(R){var A=this,Y,P,E;return _.O(function(z){P=(Y=_.n(R,_.GpN))==null?void 0:Y.entityBatchUpdate;if(!P)return z.jumpTo(0);E=Object.assign({},P,{mutations:[].concat(_.py(P.mutations||[]))});return z.yield(_.nx(E,A.store),0)})};var CJ9=function(R){this.JSC$17238_commandHandler=R;this.feedbackDialogMap=new Map};
CJ9.prototype.openDialog=function(R,A){(R=this.feedbackDialogMap.get(R))&&this.JSC$17238_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:R}},A)};
CJ9[xk]=[_.ls];var aq=new _.cP("FEEDBACK_CONTROLLER_TOKEN");var CL=new _.cP("APP_STORE_TOKEN");var hy=function(R,A){this.store=R;this.controller=A};
_.H(hy,zg);hy.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z;return _.O(function(w){if(w.nextAddress==1){P=_.n(R,_.UR);if(z=(E=P)==null?void 0:E.contentId)for(M=_.x(((c=P)==null?void 0:c.actions)||[]),N=M.next();!N.done;N=M.next())y=N.value,hkn(Y,y,z);Q=(m=A)==null?void 0:(T=m.form)==null?void 0:T.element;return w.yield(_.sC(Q,[R,{impression:(g=A)==null?void 0:g.disableClickTracking}]).catch(function(){}),2)}r=w.yieldResult;
((I=r)==null?0:(b=I.data)==null?0:(p=b.feedbackResponses)==null?0:p.length)&&(L=(h=r.data.feedbackResponses[0])==null?void 0:h.followUpDialog)&&z&&(Z=Y.controller)!=null&&Z.feedbackDialogMap.set(z,L);_.XH(w)})};
var hkn=function(R,A,Y){var P=_.n(A,_.Jg);if(P){P=_.x(P.commands||[]);for(var E=P.next();!E.done;E=P.next())hkn(R,E.value,Y)}_.n(A,_.jM)&&R.store.dispatch(_.HT("commandEntity",OBk(Y),{key:Y,command:A}));_.n(A,j77)&&R.store.dispatch(_.HT("commandEntity",OBk(Y),{key:Y,command:A}))};
hy[xk]=[CL,aq];var oq=function(R){this.controller=R};
_.H(oq,zg);oq.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c;return _.O(function(M){P=_.n(R,_.h$);z=(E=P)==null?void 0:E.targetId;if(((c=P)==null?void 0:c.signal)!=="TELL_US_WHY"||!z)return M.return();Y.controller.openDialog(z,A);_.XH(M)})};
oq[xk]=[aq];var kv=function(R){this.store=R};
_.H(kv,zg);kv.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y;return _.O(function(m){P=_.n(R,qEJ);z=(E=P)==null?void 0:E.contentId;N=(c=A)==null?void 0:(M=c.form)==null?void 0:M.element;y=_.sC(N,[R]);z&&Y.undo(z);return m.yield(y,0)})};
kv.prototype.undo=function(R){this.store.dispatch(_.HT("commandEntity",OBk(R),{key:R,command:void 0}))};
kv[xk]=[CL];var Gz=function(R){this.JSC$17253_commandHandler=R};
_.H(Gz,zg);Gz.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y;return _.O(function(m){Y=_.n(R,lGA);P=Y.flowStateKey;E=Y.validationFailureCommand;z=Y.submitValidFormCommand;c=n8q(_.wc,[P||""]);M=_.n(c,cH7);((N=M)==null?0:N.isValid)&&z&&A.JSC$17253_commandHandler.resolveCommand(z);((y=M)==null?0:y.isValid)||!E||A.JSC$17253_commandHandler.resolveCommand(E);_.XH(m)})};
Gz[xk]=[_.ls];var ZK=function(R){this.innertubeTransportService=R};
_.H(ZK,zg);ZK.prototype.resolveCommand=function(R,A){var Y=this,P;return _.O(function(E){return E.yield(_.uh(Y.innertubeTransportService,R,(P=A)==null?void 0:P.form).then(function(z){var c,M;A==null||(c=A.commandController)==null||(M=c.onSuccess)==null||M.call(c,R,z)},function(z){var c,M;
A==null||(c=A.commandController)==null||(M=c.onServerError)==null||M.call(c,R,z)}),0)})};
ZK[xk]=[_.Co];var ty=function(){};
_.H(ty,zg);ty.prototype.resolveCommand=function(R){var A,Y,P,E;return _.O(function(z){if(A=_.n(R,_.e1A)){if(Y=A.gtmId)P=_.a1("GL",""),_.wR(Y,P);(E=A.gtmData)&&_.ur(E)}_.XH(z)})};var wW=function(R,A){this.innertubeTransportService=R;this.JSC$17264_actionRouter=A};
_.H(wW,zg);wW.prototype.resolveCommand=function(R){var A=this,Y,P;return _.O(function(E){Y=_.n(R,zMZ);if(!Y)return E.return();P=Y.command;if(!P)return E.return();A.JSC$17264_actionRouter.triggerAction("yt-insert-rich-section-action",Y);return E.yield(_.uh(A.innertubeTransportService,P,{disableCache:!0}),0)})};
wW[xk]=[_.Co,y0];Vju.bind(null,i0);var oqj=Vju.bind(null,O2D);yGk.bind(null,i0);var kSN=yGk.bind(null,O2D);TVV.bind(null,i0);var GSW=TVV.bind(null,O2D);var uq=function(){};
_.H(uq,zg);
uq.prototype.resolveCommand=function(R){var A,Y,P,E,z,c,M,N,y,m;return _.O(function(T){A=_.n(R,kbD);if(!A)return T.return();P=((Y=A.operations)==null?void 0:Y.operations)||[];E=_.x(P);for(z=E.next();!z.done;z=E.next())if(c=z.value,c.insertItemSectionContent){var Q=c.insertItemSectionContent,g=Q.contents||[];Q.insertByPositionInSection?oqj(Q.insertByPositionInSection.sectionTargetId,g,Q.insertByPositionInSection.position):Q.insertByRelativePositionInSection&&Q.insertByRelativePositionInSection.sectionTargetId&&Q.insertByRelativePositionInSection.itemTargetId&&
kSN(Q.insertByRelativePositionInSection.sectionTargetId,Q.insertByRelativePositionInSection.itemTargetId,g,Q.insertByRelativePositionInSection.relativePosition)}else c.replaceSection?(Q=c.replaceSection,g={},Q.replaceByTargetId?g=Q.replaceByTargetId:Q.replaceByGroupId&&(g={targetId:Q.replaceByGroupId.groupId,newContent:Q.replaceByGroupId.newContent,undoKey:""}),g.newContent&&NQE(g.targetId,{continuationItems:[g.newContent]})):c.removeItem?(Q=c.removeItem,Q.removeByTargetId&&Q.sectionTargetId&&GSW(Q.sectionTargetId,
Q.removeByTargetId.targetIds||[])):c.removeSection&&(c.removeSection.removeByTargetId?(M=void 0,Zuf(((M=c.removeSection)==null?void 0:M.removeByTargetId.targetIds)||[])):c.removeSection.removeByGroupId&&(N=void 0,Zuf(((N=c.removeSection)==null?void 0:N.removeByGroupId.groupIds)||[])));m=((y=A.operations)==null?void 0:y.scrollConfig)||{};tPG(m);_.XH(T)})};
var Zuf=function(R){R=_.x(R);for(var A=R.next();!A.done;A=R.next())NQE(A.value,{continuationItems:[]})},tPG=function(R){if(R.scrollToItem){var A=R.scrollToItem.item||{},Y=A.itemTargetId;
A=A.sectionTargetId;if(Y&&A){var P=document.querySelector("[data-target-id="+A+"]"),E=P==null?void 0:P.querySelector("[data-target-id="+Y+"]");P&&E&&setTimeout(function(){var z=E.offsetTop-P.offsetTop,c;if(((c=R.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_CENTER")z-=P.offsetHeight/2,z+=E.offsetHeight/2;else{var M;((M=R.scrollToItem)==null?void 0:M.scrollPosition)==="SCROLL_POSITION_END"&&(z-=P.offsetHeight,z+=E.offsetHeight)}P.scroll({top:z,behavior:"smooth"})},100)}}};var e$=new _.cP("CLIENT_NAME_TOKEN");var w3g=new _.cP("DEFAULT_STORE_EXPIRATION_TOKEN");var cLb=new _.cP("CLIENT_LOCATION_SERVICE_TOKEN");var qk=function(R,A,Y){this.clientName=R||_.a1("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=A||_.FI.getInstance();this.JSC$17292_commandHandler=Y||_.Qp.instance};
_.H(qk,zg);qk.prototype.resolveCommand=function(R){var A=this,Y,P;return _.O(function(E){P=(Y=_.n(R,vIN))==null?void 0:Y.onComplete;A.clientLocationService.clearLocationPlayabilityToken(A.clientName);P&&A.JSC$17292_commandHandler.resolveCommand(P);_.XH(E)})};
qk[xk]=[e$,cLb,_.ls];var LL=function(R){this.innertubeTransportService=R};
_.H(LL,zg);LL.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c;return _.O(function(M){z=(P=A)==null?void 0:(E=P.form)==null?void 0:E.element;return M.yield(_.uh(Y.innertubeTransportService,R,(c=A)==null?void 0:c.form).then(function(N){IvV(z,new CustomEvent("yt-service-request-completed"),{data:N},_.a1("openPopupConfig"))}),0)})};
LL[xk]=[_.Co];var dW=function(){};
_.H(dW,zg);dW.prototype.resolveCommand=function(R){var A,Y;return _.O(function(P){A=_.n(R,Nx8);Y=document.querySelector("mini-app-container-view-model");if(!A||!Y)return P.return();A.isPlaying?Y.dispatchEvent(new Event("play")):Y.dispatchEvent(new Event("pause"));_.XH(P)})};var Rp=function(){};
_.H(Rp,zg);Rp.prototype.resolveCommand=function(R){var A,Y,P,E,z,c,M;return _.O(function(N){A=_.n(R,ku8);if((Y=A)==null||!Y.paramKeys)return N.return();P=A.paramKeys;E=_.eK(window.location.href);z=_.x(P);for(c=z.next();!c.done;c=z.next())M=c.value,E.JSC$10024_queryData_.remove(M);window.history.replaceState(window.history.state,document.title,E.toString());_.XH(N)})};var uVo=function(){this.dropdownMap=new Map};_.ekf=new _.cP("DROPDOWN_CONTROLLER_TOKEN");var Az=function(R){this.controller=R};
_.H(Az,zg);Az.prototype.resolveCommand=function(R){var A=this,Y,P,E,z;return _.O(function(c){Y=_.n(R,nuz);if(!Y)return c.return();P=Y;E=P.dropdownId;z=P.selectedOptionIndex;if(E===void 0||z===void 0)return c.return();var M=A.controller.dropdownMap.get(E);M&&M(z);_.XH(c)})};
Az[xk]=[_.ekf];var YO=function(R){this.controller=R};
_.H(YO,zg);YO.prototype.resolveCommand=function(R){var A=this,Y;return _.O(function(P){return(Y=_.n(R,bUH))?P.yield(A.controller.closeDialog(),0):P.return()})};
YO[xk]=[_.ug];var PI=function(R){this.controller=R};
_.H(PI,zg);PI.prototype.resolveCommand=function(R){var A=this,Y,P;return _.O(function(E){Y=_.n(R,mYA);if(!Y)return E.return();var z,c=Y.panelIdentifier||((z=Y.identifier)==null?void 0:z.tag);if(!c)throw Error("Ai");return(P=c)?E.yield(A.controller.hidePanel(P),0):E.jumpTo(0)})};
PI[xk]=[_.tC];var EM=function(R,A){this.innertubeTransportService=R;this.controller=A};
_.H(EM,zg);EM.prototype.resolveCommand=function(R){var A=this,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return Y=_.n(R,TSA),(P=Y)!=null&&P.panelId?c.yield(A.controller.getReloadContinuation(Y.panelId),2):c.return();if(c.nextAddress!=3)return(E=c.yieldResult)?c.yield(_.uh(A.innertubeTransportService,R,{continuation:E}),3):c.return();z=c.yieldResult;return c.yield(A.controller.updatePanel(Y.panelId,z.content,!1),0)})};
EM[xk]=[_.Co,_.tC];var zm=function(R,A,Y){this.innertubeTransportService=R;this.JSC$17328_screenManager=A;this.JSC$17328_commandHandler=Y};
_.H(zm,zg);
zm.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M;return _.O(function(N){if(N.nextAddress==1){Y=_.n(R,_.xND);if(!Y)return N.return();if(Y.commands)for(P=_.x(Y.commands),E=P.next();!E.done;E=P.next())z=E.value,A.JSC$17328_commandHandler.resolveCommand(z,{disableClickTracking:!0});c=_.S5(R.clickTrackingParams);_.$5(A.JSC$17328_screenManager,21760,c,{layer:7,parentLayer:0});return N.yield(_.uh(A.innertubeTransportService,R),2)}M=N.yieldResult;if(!M)return N.return();A.JSC$17328_screenManager.graftServerVe(M.trackingParams,c,
7);_.XH(N)})};
zm[xk]=[_.Co,_.wt,_.ls];var iC=new _.cP("PANEL_LOADING_STRATEGY_TOKEN");var lC=function(R,A){this.controller=R;this.panelLoadingStrategy=A};
_.H(lC,zg);
lC.prototype.resolveCommand=function(R,A){var Y=this,P,E,z;return _.O(function(c){P=_.n(R,PFb);if((E=P)==null||!E.panelLoadingStrategy)return c.return();z=function(M){var N,y,m,T,Q,g,r,I,b,p;return _.O(function(h){y=_.n((N=M.dialogViewModel)==null?void 0:N.header,HHN);m={viewModel:M.dialogViewModel};T={};if(r=_.v("web_enable_dialog_header_label")?(Q=y)==null?void 0:(g=Q.headline)==null?void 0:g.content:void 0)T.ariaLabel=r;P.dismissOnBackgroundTap===!1&&(T.isModal=!0);return M.dialogViewModel?h.yield(Y.controller.openDialog(m,
(p=(I=A)==null?void 0:(b=I.form)==null?void 0:b.element)!=null?p:document.body,T),0):h.return()})};
return c.yield(Y.panelLoadingStrategy.execute({command:R,data:P.panelLoadingStrategy,renderFn:z,createScreenConfig:{layer:4}}),0)})};
lC[xk]=[_.ug,iC];var xO=function(R,A,Y){this.innertubeTransportService=R;this.controller=A;this.JSC$17348_screenManager=Y};
_.H(xO,zg);
xO.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q,g,r;return _.O(function(I){switch(I.nextAddress){case 1:P=_.n(R,_.D7);if(!P)return I.return();var b,p=P.panelIdentifier||((b=P.identifier)==null?void 0:b.tag);if(!p)throw Error("Ai");E=p;return I.yield(Y.controller.isVisible(E,!0),2);case 2:if((z=I.yieldResult)&&P.blockIfPanelOpen)return I.return();N=(M=(c=Y.controller).getPanelContent)==null?void 0:M.call(c,E);if(!(b=N))if(P){var h;b=((h=P.globalConfiguration)==null?void 0:
h.initialState)||P.engagementPanel;if(h=!b)h=!!(P==null?0:(p=P.engagementPanelPresentationConfigs)==null?0:p.engagementPanelPopupPresentationConfig);h&&(b=_.Q0l(P.panelIdentifier,P.identifier))}else b=void 0;y=b;m=P.engagementPanelPresentationConfigs;T=P.engagementPanelExtras;return I.yield(Y.controller.showPanel(E,y,m,T,(Q=A)==null?void 0:(g=Q.form)==null?void 0:g.element),3);case 3:if(!P.globalConfiguration){I.jumpTo(0);break}_.$5(Y.JSC$17348_screenManager,32633);return I.yield(_.uh(Y.innertubeTransportService,
R),5);case 5:return r=I.yieldResult,Y.JSC$17348_screenManager.graftServerVe(r.trackingParams),I.yield(Y.controller.updatePanel(E,r.content,!0,T,void 0,r.updatePanelContinuationData),0)}})};
xO[xk]=[_.Co,_.tC,_.wt];var cI=function(R,A){this.controller=R;this.panelLoadingStrategy=A};
_.H(cI,zg);cI.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N;return _.O(function(y){P=_.n(R,_.r0);if((E=P)==null||!E.panelLoadingStrategy)return y.return();M=q6i(Y.controller,(z=A)==null?void 0:(c=z.form)==null?void 0:c.element);N=function(m){return _.O(function(T){return m.sheetViewModel?T.yield(Y.controller.openSheet({viewModel:m.sheetViewModel},M),0):T.return()})};
return y.yield(Y.panelLoadingStrategy.execute({command:R,data:P.panelLoadingStrategy,renderFn:N,createScreenConfig:{layer:0}}),0)})};
cI[xk]=[_.wy,iC];var OM=function(R,A){this.controller=R;this.JSC$17356_commandHandler=A};
_.H(OM,zg);OM.prototype.resolveCommand=function(R,A){var Y=this,P,E,z;return _.O(function(c){if(c.nextAddress==1){P=_.n(R,ngb);var M=_.n(P.showCommand,_.D7),N,y,m=(y=M==null?void 0:M.panelIdentifier)!=null?y:M==null?void 0:(N=M.identifier)==null?void 0:N.tag;if(!m)throw Error("Bi");E=m;return c.yield(Y.controller.isVisible(E),2)}return(z=c.yieldResult)?c.yield(Y.controller.hidePanel(E),0):c.yield(Y.JSC$17356_commandHandler.resolveCommand(P.showCommand,A),0)})};
OM[xk]=[_.tC,_.ls];var Mp=function(R,A,Y){this.innertubeTransportService=R;this.controller=A;this.JSC$17359_screenManager=Y};
_.H(Mp,zg);
Mp.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t,d;return _.O(function(Jk){switch(Jk.nextAddress){case 1:return P=Y=_.n(R,Hd8),E=P.targetPanelIdentifier,z=P.contentSourcePanelIdentifier,c=P.globalConfiguration,((M=E)==null?0:M.tag)&&((N=z)==null?0:N.tag)?c?Jk.yield(A.controller.showPanel(E.tag,_.Q0l(E.tag,E),void 0,void 0,void 0),5):Jk.yield((Q=(T=A.controller).getPanel)==null?void 0:Q.call(T,z.tag),4):Jk.return();case 4:g=Jk.yieldResult;y=(r=g)==null?void 0:
(b=(I=r).getPanelContent)==null?void 0:b.call(I);Jk.jumpTo(3);break;case 5:return Jk.yield(_.uh(A.innertubeTransportService,R),6);case 6:p=Jk.yieldResult,((h=p)==null?0:h.trackingParams)&&A.JSC$17359_screenManager.graftServerVe(p.trackingParams),y=(L=p)==null?void 0:L.content,m=(Z=p)==null?void 0:Z.updatePanelContinuationData;case 3:if(t=(w=y)==null?void 0:w.engagementPanelSectionListRenderer)return Jk.yield(A.controller.showPanel(E.tag,void 0,void 0,void 0,void 0,{content:t.content,secondaryHeaderContent:(d=
t.header)!=null?d:{},targetId:t.targetId},m),0);Jk.jumpTo(0)}})};
Mp[xk]=[_.Co,_.tC,_.wt];var Lln=function(){};
_.H(Lln,zg);Lln.prototype.resolveCommand=function(R){var A,Y,P;return _.O(function(E){if(E.nextAddress==1)return(A=_.n(R,IVA))?E.yield(_.VJ(),2):E.return();Y=E.yieldResult;if(!Y)return E.return();var z=Y,c=(P=A)==null?void 0:P.languageCode,M;(z==null?0:(M=z.isReady)==null?0:M.call(z))&&(c=vAk(z,c))&&z.setAudioTrack(c);_.XH(E)})};var sM=function(){};
_.H(sM,zg);var dbm=function(R){var A;return _.O(function(Y){A=_.a1("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;R.JSC$17370_mainAppPlayer=new yC(A);document.addEventListener("yt-page-data-updated",R.JSC$17370_pauseOnNavigation.bind(R));_.XH(Y)})};
sM.prototype.JSC$17370_pauseOnNavigation=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1)return A=R.JSC$17370_mainAppPlayer,P.yield(A.api,2);Y=P.yieldResult;Y.pauseVideo();_.XH(P)})};
var Rqn=function(R,A,Y){var P;return _.O(function(E){P=R.JSC$17370_mainAppPlayer;return E.yield(P.loadVideoWithPlayerVars({videoId:A,audio_only:"1",player_params:Y}),0)})};
sM.prototype.pauseVideo=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1)return A=R.JSC$17370_mainAppPlayer,P.yield(A.api,2);Y=P.yieldResult;Y.pauseVideo();_.XH(P)})};
sM.prototype.playVideo=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1)return A=R.JSC$17370_mainAppPlayer,P.yield(A.api,2);Y=P.yieldResult;Y.playVideo();_.XH(P)})};
var AEg=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1)return A=R.JSC$17370_mainAppPlayer,P.yield(A.api,2);Y=P.yieldResult;Y.mute();_.XH(P)})},YAj=function(R){var A,Y;
return _.O(function(P){if(P.nextAddress==1)return A=R.JSC$17370_mainAppPlayer,P.yield(A.api,2);Y=P.yieldResult;Y.unMute();_.XH(P)})},P8W=function(R,A){return _.O(function(Y){switch(Y.nextAddress){case 1:switch(A){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return Y.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return Y.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return Y.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return Y.jumpTo(5)}Y.jumpTo(0);break;case 2:return Y.yield(R.playVideo(),7);case 7:Y.jumpTo(0);break;case 3:return Y.yield(R.pauseVideo(),8);case 8:Y.jumpTo(0);break;case 4:return Y.yield(AEg(R),9);case 9:Y.jumpTo(0);break;case 5:return Y.yield(YAj(R),10);case 10:Y.jumpTo(0)}})};
sM.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T,Q;return _.O(function(g){return g.nextAddress==1?(Y=_.n(R,xdb),((P=Y)==null?0:P.newPlaybackParams)||((E=Y)==null?0:E.controlAction)?A.JSC$17370_mainAppPlayer?g.jumpTo(2):g.yield(dbm(A),2):g.return()):((z=Y)==null?0:z.newPlaybackParams)?(N=(c=Y)==null?void 0:(M=c.newPlaybackParams)==null?void 0:M.externalVideoId,Q=(T=(y=Y)==null?void 0:(m=y.newPlaybackParams)==null?void 0:m.playerParams)!=null?T:"",N?g.yield(Rqn(A,N,Q),0):g.return()):
g.yield(P8W(A,Y.controlAction),0)})};var Np=function(R){this.JSC$17377_commandHandler=R};
_.H(Np,zg);
Np.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M;return _.O(function(N){if(N.nextAddress==1)return(Y=_.n(R,KCz))?N.yield(_.VJ(),2):N.return();P=N.yieldResult;if(!P)return N.return();var y=P,m=(E=Y)==null?void 0:E.languageCode,T=(z=Y)==null?void 0:z.isAutoTranslated;y.getVideoData&&_.nAJ(y).length&&((m=rGq(y,m,T))?y.setOption("captions","track",m):(y.setOption("captions","stickyLoading",{}),y.setOption("captions","track",{})));c=P.isSubtitlesOn()?_.vk("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.vk("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");M=_.z9(c);A.JSC$17377_commandHandler.resolveCommand(M);_.XH(N)})};
Np[xk]=[_.ls];var Vs=function(R,A){this.shortsPlayerPromise=R;this.JSC$17381_commandHandler=A};
_.H(Vs,zg);
Vs.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y;return _.O(function(m){if(m.nextAddress==1)return(Y=_.n(R,egz))?m.yield(A.shortsPlayerPromise,2):m.return();P=m.yieldResult;var T=DSb(P);T!=null&&T.length||(P.loadModule("captions"),T=DSb(P));E=T;if((z=E)==null||!z.length)return c=_.vk("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),M=_.z9(c),A.JSC$17381_commandHandler.resolveCommand(M),m.return();P.toggleSubtitles();N=P.isSubtitlesOn()?_.vk("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.vk("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");y=_.z9(N);A.JSC$17381_commandHandler.resolveCommand(y);_.XH(m)})};
Vs[xk]=[_.aqZ,_.ls];var ys=function(R){this.JSC$17384_actionRouter=R;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(A,Y){A.triggerAction("yt-dismiss-shopping-timely-shelf-action",Y)}]])};
_.H(ys,zg);ys.prototype.resolveCommand=function(R){var A=this,Y,P,E;return _.O(function(z){Y=_.n(R,fVq);if((P=Y)==null||!P.overlayId)return z.return();E=A.dismissPlayerOverlayActions.get(Y.overlayId);if(!E)throw Error("Ci`"+Y.overlayId);E(A.JSC$17384_actionRouter,Y);_.XH(z)})};
ys[xk]=[y0];var mz=function(R){this.JSC$17388_playerPromise=R};
_.H(mz,zg);mz.prototype.resolveCommand=function(R){var A=this,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return(Y=_.n(R,vgA))?c.yield(A.JSC$17388_playerPromise,2):c.return();P=c.yieldResult;E=P.getVideoData().video_id;Y.videoId===E&&(z=Number(Y.offsetFromVideoStartMilliseconds),z>=0&&P.seekTo(z/1E3));_.XH(c)})};
mz[xk]=[_.cT];var EZN=_.yS("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Tm=function(R){this.store=R};
_.H(Tm,zg);
var zqW=function(R){var A,Y,P,E;return _.O(function(z){if(z.nextAddress==1)return A=_.a1("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,Y=_.a1("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,P=A||Y,R.JSC$17392_mainAppPlayer=new yC(P),z.yield(R.JSC$17392_mainAppPlayer.api,2);E=z.yieldResult;E.addEventListener("onStateChange",R.JSC$17392_playerStateChangeListener.bind(R));document.addEventListener("yt-page-data-updated",R.JSC$17392_pauseOnNavigation.bind(R));window.addEventListener("state-navigatestart",
R.JSC$17392_pauseOnNavigation.bind(R));_.XH(z)})};
Tm.prototype.JSC$17392_playerStateChangeListener=function(R){switch(R){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"}iDm(this)};
var iDm=function(R){R.store.dispatch(_.HT("sfvAudioItemCurrentlyPlayingEntity",EZN,{key:EZN,externalVideoId:R.externalVideoId,sfvAudioItemPlaybackState:R.playbackState,nowPlayingEntityValue:R.nowPlayingEntityValue}))};
Tm.prototype.JSC$17392_pauseOnNavigation=function(){var R=this,A,Y,P,E;return _.O(function(z){if(z.nextAddress==1){if(!R.JSC$17392_mainAppPlayer){var c=new _.XN("Error: mainAppPlayer is unavailable",R.JSC$17392_mainAppPlayer);_.bj(c);return z.return()}return z.yield(R.JSC$17392_mainAppPlayer.api,2)}A=z.yieldResult;P=(Y=A)==null?void 0:Y.getPlayerState();P!==1||(E=A)!=null&&E.pauseVideo();_.XH(z)})};
Tm.prototype.playVideo=function(R,A,Y){var P=this,E,z;return _.O(function(c){if(c.nextAddress==1)return c.yield((E=P.JSC$17392_mainAppPlayer)==null?void 0:E.api,2);z=c.yieldResult;if(!P.JSC$17392_mainAppPlayer||!z){var M=new _.XN("Error: mainAppPlayer is unavailable",P.JSC$17392_mainAppPlayer);_.bj(M);return c.return()}return c.yield(P.JSC$17392_mainAppPlayer.loadVideoWithPlayerVars({videoId:P.externalVideoId,audio_only:"1",start:R/1E3,end:R/1E3+A,player_params:Y}),0)})};
Tm.prototype.pauseVideo=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1){if(!R.JSC$17392_mainAppPlayer){var E=new _.XN("Error: mainAppPlayer is unavailable",R.JSC$17392_mainAppPlayer);_.bj(E);return P.return()}return P.yield(R.JSC$17392_mainAppPlayer.api,2)}A=P.yieldResult;(Y=A)==null||Y.pauseVideo();_.XH(P)})};
Tm.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z;return _.O(function(w){if(w.nextAddress==1)return Y=_.n(R,Zdf),E=(P=Y)==null?void 0:P.nowPlayingEntityValue,c=(z=Y)==null?void 0:z.externalVideoId,T=Number((m=(M=Y)==null?void 0:(N=M.defaultStartPoints)==null?void 0:(y=N[0])==null?void 0:y.offsetMs)!=null?m:"0"),p=Number((b=(Q=Y)==null?void 0:(g=Q.defaultStartPoints)==null?void 0:(r=g[0])==null?void 0:(I=r.duration)==null?void 0:I.seconds)!=null?b:"15"),Z=(L=
(h=Y)==null?void 0:h.playerParams)!=null?L:"",E&&c?A.JSC$17392_mainAppPlayer?w.jumpTo(2):w.yield(zqW(A),2):w.return();if(w.nextAddress!=6){if(A.nowPlayingEntityValue&&E===A.nowPlayingEntityValue)return A.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?w.yield(A.pauseVideo(),0):w.yield(A.playVideo(T,p,Z),0);A.externalVideoId=c;A.nowPlayingEntityValue=E;A.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return w.yield(A.playVideo(T,p,Z),6)}iDm(A);return w.jumpTo(0)})};
Tm[xk]=[AV];var lz0=function(R){this.JSC$17410_commandHandler=R};
_.H(lz0,zg);lz0.prototype.resolveCommand=function(R,A){var Y=this,P,E,z;return _.O(function(c){if(c.nextAddress==1)return(P=_.n(R,WCz))?c.yield(_.VJ(),2):c.return();E=c.yieldResult;if(!E)return c.return();(z=USV(E))&&Y.JSC$17410_commandHandler.resolveCommand(z,A);_.XH(c)})};
lz0[xk]=[_.ls];var Qs=function(R){this.JSC$17416_commandHandler=R};
_.H(Qs,zg);Qs.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M;return _.O(function(N){if(N.nextAddress==1)return(P=_.n(R,jyN))?N.yield(_.VJ(),2):N.return();E=N.yieldResult;if(!E)return N.return();(z=K98(E))?Y.JSC$17416_commandHandler.resolveCommand(z,A):(c=_.vk("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),M=_.z9(c),Y.JSC$17416_commandHandler.resolveCommand(M));_.XH(N)})};
Qs[xk]=[_.ls];var vI=function(R){this.JSC$17419_playerPromise=R};
_.H(vI,zg);vI.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c;return _.O(function(M){if(M.nextAddress==1){Y=_.n(R,ggz);if(!Y)return M.return();P=Y.overlayRenderer;return P?(E=_.n(P,BtG))?M.yield(A.JSC$17419_playerPromise,3):M.jumpTo(0):M.return()}z=M.yieldResult;z.renderChapterSeekingAnimation(1,_.R4(E.text),(c=E.icon)==null?void 0:c.iconType);_.XH(M)})};
vI[xk]=[_.cT];var gs=function(R){this.store=R};
_.H(gs,zg);
gs.prototype.resolveCommand=function(R){var A=this,Y,P,E;return _.O(function(z){if(z.nextAddress==1){Y=_.n(R,cnZ);if(!Y)return z.return();P="";(E=A.store.getState().collabInviteLink)&&Y.id===E.playlistId?P=E.inviteLinkURL:Y.shortUrl&&(P=Y.shortUrl);return P?z.yield(navigator.clipboard.writeText(P),3):z.jumpTo(0)}var c={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.vk("COPY_LINK_SUCCESS_TOAST")}}}}};_.is().resolve(_.ls).resolveCommand(c);_.XH(z)})};
gs[xk]=[CL];var nZ=function(R,A){this.innertubeTransportService=R;this.JSC$17429_commandHandler=A};
_.H(nZ,zg);nZ.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q;return _.O(function(g){if(g.nextAddress==1)return(P=_.n(R,_.Pi))?g.yield(_.uh(Y.innertubeTransportService,R,(E=A)==null?void 0:E.form),2):g.return();(z=g.yieldResult)&&z.errorMetadata&&(c=z,M=_.z9(c.error.message),Y.JSC$17429_commandHandler.resolveCommand(M));N=z;if((y=N)==null?0:y.actions)for(m=_.x(N.actions),T=m.next();!T.done;T=m.next())Q=T.value,Y.JSC$17429_commandHandler.resolveCommand(Q);_.XH(g)})};
nZ[xk]=[_.Co,_.ls];var HI=function(){};
_.H(HI,zg);HI.prototype.resolveCommand=function(R){var A;return _.O(function(Y){A=_.n(R,dlS);if(!A)return Y.return();(new CWE(A)).show();_.XH(Y)})};_.rs=new _.cP("PLAYLIST_EDIT_CONTROLLER_TOKEN");var D8=function(R,A,Y,P){this.store=R;this.innertubeTransportService=A;this.controller=Y;this.JSC$17437_commandHandler=P};
_.H(D8,zg);
D8.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t,d,Jk,Nb,Qk,H3,nu;return _.O(function(hk){if(hk.nextAddress==1){P=_.n(R,_.qN);if(!P)return hk.return();if(P.clientActions){E=_.x(P.clientActions);for(z=E.next();!z.done;z=E.next())c=z.value,Y.JSC$17437_commandHandler.resolveCommand(c);var FV,i8=A==null?void 0:(FV=A.form)==null?void 0:FV.element;i8&&_.xo(i8,"yt-dismissible-item-action",P.clientActions)}return hk.yield(_.uh(Y.innertubeTransportService,R,(M=A)==
null?void 0:M.form),2)}if(N=hk.yieldResult)N.errorMetadata?(y=N,m=_.z9(y.error.message),Y.JSC$17437_commandHandler.resolveCommand(m),"error"in N&&((T=A)==null?0:(Q=T.commandController)==null?0:Q.onServerError)&&((g=A)==null||(r=g.commandController)==null||r.onServerError(R,N))):(I=A)==null||(b=I.commandController)==null||(h=(p=b).onSuccess)==null||h.call(p,R,N);L=N;((Z=L)==null?0:Z.collaborationInviteLink)&&P.playlistId&&(_.v("web_enable_invite_collaborators_link")||_.v("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
Y.store.dispatch(_.cK({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:P.playlistId,inviteLinkUrl:L.collaborationInviteLink}}));((w=L)==null?0:w.redirectEndpoint)&&Y.JSC$17437_commandHandler.resolveCommand(L.redirectEndpoint);((t=L)==null?0:(d=t.newHeader)==null?0:d.playlistHeaderRenderer)?xGN(Y.controller,L.newHeader.playlistHeaderRenderer):((Jk=L)==null?0:(Nb=Jk.newHeader)==null?0:Nb.musicEditablePlaylistDetailHeaderRenderer)&&xGN(Y.controller,L.newHeader.musicEditablePlaylistDetailHeaderRenderer);
Y.controller.playlistVideoListElement&&((Qk=L)==null?0:(H3=Qk.playlistEditResults)==null?0:(nu=H3[0])==null?0:nu.playlistEditVideoAddedResultData)&&((i8=Y.controller.playlistVideoListElement)==null||i8.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:L.playlistEditResults[0].playlistEditVideoAddedResultData})));_.XH(hk)})};
D8[xk]=[CL,_.Co,_.rs,_.ls];var UM=function(R,A){this.controller=R;this.JSC$17447_commandHandler=A};
_.H(UM,zg);UM.prototype.resolveCommand=function(R,A){var Y=this,P,E,z;return _.O(function(c){P=_.n(R,O$G);Y.controller.showRefreshPill&&((E=P)==null?0:E.command)&&(Y.JSC$17447_commandHandler.resolveCommand((z=P)==null?void 0:z.command,A),Y.controller.showRefreshPill=!1);_.XH(c)})};
UM[xk]=[_.$e,_.ls];var $O=function(R,A){this.store=R;this.JSC$17451_commandHandler=A||_.Qp.instance};
_.H($O,zg);$O.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q;return _.O(function(g){P=_.n(R,H$b);E=Y.store.getState().radioButtonGroup;if((z=P)==null?0:z.command)Y.JSC$17451_commandHandler.resolveCommand((c=P)==null?void 0:c.command,A);else if(E&&((M=P)==null?void 0:M.formId)===E.currentFormId)for(N=Object.values(E.commandsMap),y=_.x(N),m=y.next();!m.done;m=y.next())T=m.value,(Q=_.h7(T))&&Y.JSC$17451_commandHandler.resolveCommand(Q,A);_.XH(g)})};
$O[xk]=[_.PX];var X_=new _.cP("USER_PREFS");var Sl=function(R){this.JSC$17456_prefCookie=R};
_.H(Sl,zg);Sl.prototype.resolveCommand=function(R){var A=this,Y;return _.O(function(P){(Y=_.n(R,GbE))&&typeof Y.useListView==="boolean"&&(_.rH(0,155,Y.useListView),A.JSC$17456_prefCookie.save());_.XH(P)})};
Sl[xk]=[X_];var Ip=function(R){this.JSC$17460_prefCookie=R};
_.H(Ip,zg);Ip.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c;return _.O(function(M){Y=_.n(R,An7);if((P=Y)==null||!P.gl)return M.return();E=Y.gl;z={persist_gl:"1",gl:E};A.JSC$17460_prefCookie.set("gl",E);A.JSC$17460_prefCookie.save();c=G07(z);_.eI(c);_.XH(M)})};
Ip[xk]=[X_];var KZ=function(R){this.JSC$17464_prefCookie=R};
_.H(KZ,zg);KZ.prototype.resolveCommand=function(R){var A=this,Y,P;return _.O(function(E){Y=_.n(R,sFq);if(!Y)return E.return();P=!1;Y.flagNum&&typeof Y.value==="boolean"?(_.rH(0,Y.flagNum,Y.value),P=!0):Y.key&&typeof Y.stringValue==="string"&&(A.JSC$17464_prefCookie.set(Y.key,Y.stringValue),P=!0);P&&A.JSC$17464_prefCookie.save();_.XH(E)})};
KZ[xk]=[X_];var WI=new _.cP("PREF_STORAGE_PROMISE_TOKEN");var jl=function(R){this.JSC$17468_prefStoragePromise=R};
_.H(jl,zg);jl.prototype.resolveCommand=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1)return(Y=_.n(R,VEZ))?E.yield(A.JSC$17468_prefStoragePromise,2):E.return();P=E.yieldResult;return P===void 0||Y.key===void 0||Y.value===void 0?E.return():E.yield(P.set(Y.key,Y.value),0)})};
jl[xk]=[WI];var cEo=function(R){this.innertubeTransportService=R};
_.H(cEo,zg);cEo.prototype.resolveCommand=function(R,A){var Y=this,P,E;return _.O(function(z){(P=_.n(R,_.Js7))&&P&&P.isFirstRequest&&(_.pj("search_overview_answer"),_.Fh("so_rq",void 0,"search_overview_answer"));return z.yield(_.uh(Y.innertubeTransportService,R,(E=A)==null?void 0:E.form),0)})};
cEo[xk]=[_.Co];var ODi=function(){};
_.H(ODi,zg);
ODi.prototype.resolveCommand=function(R){var A,Y,P,E,z,c,M,N,y;return _.O(function(m){A=_.n(R,QjS);if((Y=A)==null?0:Y.sectionIdentifier){if(A.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(E=(P=document.getElementsByTagName(A.sectionIdentifier))==null?void 0:P.item(0))E.scrollIntoView({behavior:"smooth"}),(z=GjI(E))&&z.focus({preventScroll:!0});return m.return()}c=document.querySelector("[section-identifier="+A.sectionIdentifier+"]");M=document.querySelector("[section-identifier="+A.referenceSectionIdentifier+
"]");if(!c)return m.return();N=A.verticalScrollOffsetDp?A.verticalScrollOffsetDp:0;M&&(N-=M.offsetTop);window.scrollTo({top:c.offsetTop+N,behavior:"smooth"});(y=GjI(c))&&y.focus({preventScroll:!0})}_.XH(m)})};var bC=function(R){this.JSC$17480_commandHandler=R};
_.H(bC,zg);
bC.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N;return _.O(function(y){if(y.nextAddress==1){Y=_.n(R,BYG);if(!Y||!Y.imageBytes||!navigator.clipboard)return y.return();if(Y.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.bj(Error("Ei")),y.return();_.g2(y,2);E=(P=Y)==null?void 0:P.imageBytes;z=E.replace(/-/g,"+").replace(/_/g,"/");c=s08(z);M={};N=[new ClipboardItem((M[c.type]=c,M))];return y.yield(navigator.clipboard.write(N),4)}if(y.nextAddress!=2)return Y.successCommand&&
A.JSC$17480_commandHandler.resolveCommand(Y.successCommand),_.us(y,0);_.UT(y);Y.errorCommand&&A.JSC$17480_commandHandler.resolveCommand(Y.errorCommand);_.XH(y)})};
bC[xk]=[_.ls];var fZ=function(R,A){this.innertubeTransportService=R;this.JSC$17484_commandHandler=A};
_.H(fZ,zg);fZ.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M;return _.O(function(N){if(N.nextAddress==1)return(P=_.n(R,aY8))?N.yield(_.uh(Y.innertubeTransportService,R,(E=A)==null?void 0:E.form),2):N.return();(z=N.yieldResult)&&z.errorMetadata&&P.onFailureCommand&&Y.JSC$17484_commandHandler.resolveCommand(P.onFailureCommand);c=z;((M=c)==null?0:M.shareCommand)&&Y.JSC$17484_commandHandler.resolveCommand(c.shareCommand,A);_.XH(N)})};
fZ[xk]=[_.Co,_.ls];var pZ=function(){};
_.H(pZ,zg);pZ.prototype.resolveCommand=function(R){var A,Y;return _.O(function(P){A=_.n(R,lwS);if(!A||!navigator.share)return P.return();Y={url:A.url};try{return P.return(navigator.share(Y))}catch(E){}_.XH(P)})};var F_=function(){};
_.H(F_,zg);F_.prototype.resolveCommand=function(){return _.O(function(R){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.XH(R)})};var BI=function(R){this.JSC$17494_navigationConfirmationService=R};
_.H(BI,zg);BI.prototype.resolveCommand=function(){var R=this;return _.O(function(A){R.JSC$17494_navigationConfirmationService.cancelPendingNavigation();_.XH(A)})};
BI[xk]=[Bf];var ap=function(R){this.JSC$17497_screenManager=R};
_.H(ap,zg);ap.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y;return _.O(function(m){E=(P=A.form)==null?void 0:P.event;c=(z=A.form)==null?void 0:z.element;if(!E)throw new _.XN("Event not passed in when resolving command");M=_.x(E.composedPath());for(N=M.next();!N.done;N=M.next())if(y=N.value,y.tagName==="YT-COPY-LINK-RENDERER")return y.copyUrlToClipboard(),c&&_.ZL(Y.JSC$17497_screenManager,c),m.return();_.XH(m)})};
ap[xk]=[_.wt];var CZ=function(){this.JSC$17501_miniAppClientDataProvider=_.is().resolve(_.Oq)};
_.H(CZ,zg);CZ.prototype.resolveCommand=function(){var R=this,A,Y;return _.O(function(P){if(R.JSC$17501_miniAppClientDataProvider.clientData.has("video_id")){var E=R.JSC$17501_miniAppClientDataProvider,z=E.clientData.get("video_id");z&&E.clientData.delete("video_id");A="https://youtube.com/watch?v="+z;Y=_.Cq(A);if(Y===void 0)throw Error("Fi`"+A);_.dZ(window,Y)}_.XH(P)})};var hz=function(){};
_.H(hz,zg);hz.prototype.resolveCommand=function(){return _.O(function(R){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.XH(R)})};var op=function(){};
_.H(op,zg);op.prototype.resolveCommand=function(){var R;return _.O(function(A){if(A.nextAddress==1)return A.yield(_.DBb(window.document.documentElement),2);(R=document.querySelector("mini-app-container-view-model iframe"))&&R.focus();_.XH(A)})};var kO=function(R){this.JSC$17508_navigationConfirmationService=R};
_.H(kO,zg);
kO.prototype.resolveCommand=function(){var R=this;return _.O(function(A){var Y=R.JSC$17508_navigationConfirmationService,P=_.is().resolve(_.om),E;if(((E=Y.navigateParams)==null?void 0:E.data)!==void 0){var z;_.GcA(P,Y.navigateParams.endpoint,Y.navigateParams.data,(z=Y.navigateParams.navigationType)!=null?z:1,Y.navigateParams.tempData,Y.navigateParams.isMiniplayer,void 0,!0);Y.navigateParams=void 0;Y.customConfirmationCommand=void 0}else Y.navigateParams&&(P.navigate(Y.navigateParams.endpoint,Y.navigateParams.reload,
Y.navigateParams.params,Y.navigateParams.tempData,Y.navigateParams.requestType,Y.navigateParams.createScreenConfig,!0),Y.navigateParams=void 0,Y.customConfirmationCommand=void 0);_.XH(A)})};
kO[xk]=[Bf];var Gm=function(){};
_.H(Gm,zg);Gm.prototype.resolveCommand=function(){return _.O(function(R){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.XH(R)})};var Z8=function(R){this.JSC$17513_prefStorage=R};
_.H(Z8,zg);Z8.prototype.resolveCommand=function(){var R=this,A,Y;return _.O(function(P){switch(P.nextAddress){case 1:return P.yield(R.JSC$17513_prefStorage,2);case 2:return(A=P.yieldResult)?P.yield(A.set("sfvle",!1),3):P.return();case 3:return P.yield(A.set("sfvles",!0),4);case 4:Y=_.Hk(),_.rH(0,203,!1),_.rH(0,204,!0),Y.save(),_.XH(P)}})};
Z8[xk]=[WI];var tz=function(R){this.JSC$17516_prefStorage=R};
_.H(tz,zg);tz.prototype.resolveCommand=function(){var R=this,A,Y;return _.O(function(P){switch(P.nextAddress){case 1:return P.yield(R.JSC$17516_prefStorage,2);case 2:return(A=P.yieldResult)?P.yield(A.set("sfvle",!0),3):P.return();case 3:return P.yield(A.set("sfvles",!0),4);case 4:Y=_.Hk(),_.rH(0,203,!0),_.rH(0,204,!0),Y.save(),_.XH(P)}})};
tz[xk]=[WI];_.MHF=new _.cP("SNACKBAR_CONTROLLER_TOKEN");_.sAj=new _.cP("SHOULD_SHOW_PIVOT_BAR_TOKEN");var ws=function(R){this.controller=R};
_.H(ws,zg);ws.prototype.resolveCommand=function(R){var A=this,Y;return _.O(function(P){Y=_.n(R,YhG);if(!Y)return P.return();var E=A.controller;E.closeSnackbarFn&&E.closeSnackbarFn();_.XH(P)})};
ws[xk]=[_.MHF];var uC=function(R,A){this.controller=R;this.sheetController=A};
_.H(uC,zg);uC.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N;return _.O(function(y){P=_.n(R,EuD);if(!P)return y.return();c=q6i(Y.sheetController,(E=A)==null?void 0:(z=E.form)==null?void 0:z.element);M=_.n(P.content,TtE);if(!M)return y.return();var m=Y.controller,T=M,Q=(N=P.animationStyle)!=null?N:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(m.showSnackbarFn)m.showSnackbarFn({snackbarViewModel:T,animationStyle:Q,durationMs:P.durationSeconds*1E3,target:c});else throw Error("pj");_.XH(y)})};
uC[xk]=[_.MHF,_.wy];var el=function(){};
_.H(el,zg);el.prototype.resolveCommand=function(R){var A;return _.O(function(Y){A=_.n(R,NbN);if(!A||typeof A.key!=="string"||typeof A.value!=="string")return Y.return();window.localStorage.setItem(A.key,A.value);_.XH(Y)})};var qp=function(R){this.store=R};
_.H(qp,zg);qp.prototype.resolveCommand=function(R){var A=this,Y;return _.O(function(P){Y=_.n(R,eiu);if(!Y||!Y.stepId||!Y.token)return P.return();A.store.dispatch(hGA({stepId:Y.stepId,token:Y.token,isSelected:!1}));_.XH(P)})};
qp[xk]=[CL];var LZ=function(R,A,Y){this.innertubeTransportService=R;this.store=A;this.JSC$17535_screenManager=Y};
_.H(LZ,zg);
LZ.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w,t,d,Jk;return _.O(function(Nb){Y=_.n(R,iAA);if(!Y||(P=Y.stepIds)==null||!P.length)return Nb.return();E=A.store.getState().talkToRecs;z=[];c=[];M=_.x(Y.stepIds);for(N=M.next();!N.done;N=M.next())for(y=N.value,m=void 0,(T=(m=E.stepStates[y])==null?void 0:m.userQuery)&&c.push({userQuery:T.userQuery,userQueryToken:T.token}),Q=void 0,g=(Q=E.stepStates[y])==null?void 0:Q.selectionStates,r=_.x(Object.entries(g)),I=
r.next();!I.done;I=r.next())b=I.value,p=_.x(b),h=p.next().value,L=p.next().value,Z=h,w=L,w.isSelected&&z.push(Z);t={selectedChipTokens:z,userQueries:c,submittedStepIds:Y.stepIds};d={browseTalk2recsFormData:t};Y.browseEndpoint?(Jk=R,_.pC(Jk,_.Ds,Y.browseEndpoint)):Y.command&&(Jk=Y.command);return Jk?Nb.yield(_.uh(A.innertubeTransportService,Jk,{formData:d,disableCache:!0}).then(function(Qk){(Qk==null?0:Qk.trackingParams)&&A.JSC$17535_screenManager.graftServerVe(Qk==null?void 0:Qk.trackingParams)}),
0):Nb.return()})};
LZ[xk]=[_.Co,CL,_.wt];var ds=function(R){this.store=R};
_.H(ds,zg);ds.prototype.resolveCommand=function(R){var A=this,Y;return _.O(function(P){Y=_.n(R,u6l);if(!Y||!Y.stepId||!Y.token)return P.return();A.store.dispatch(hGA({stepId:Y.stepId,token:Y.token,isSelected:!0}));_.XH(P)})};
ds[xk]=[CL];var Rd=function(R){this.store=R};
_.H(Rd,zg);Rd.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M;return _.O(function(N){P=_.n(R,luz);if(!P||!P.stepId||!P.userQueryToken)return N.return();M=(c=(E=A)==null?void 0:(z=E.form)==null?void 0:z.userQuery)!=null?c:"";Y.store.dispatch(_.cK({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:P.stepId,userQueryToken:P.userQueryToken,userQuery:M}}));_.XH(N)})};
Rd[xk]=[CL];_.Nf9=new _.cP("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Au=function(R){this.controller=R};
_.H(Au,zg);Au.prototype.resolveCommand=function(R){var A=this,Y,P,E,z;return _.O(function(c){Y=_.n(R,yXq);if(!Y)return c.return();P=Y;E=P.id;z=P.isVisible;if(E===void 0||z===void 0)return c.return();var M;(M=A.controller.timelyActionsMap.get(E))==null||M(E,z);_.XH(c)})};
Au[xk]=[_.Nf9];var VHi=function(){this.timelyActionsMap=new Map};var P5=function(R){this.JSC$17562_commandHandler=R};
_.H(P5,zg);P5.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c;return _.O(function(M){Y=_.n(R,_.WM);if(!Y)return M.return();z=(P=Y.item)==null?void 0:(E=P.notificationTextRenderer)==null?void 0:E.successResponseText;if(!z)return M.return();c=_.Ed(z);A.JSC$17562_commandHandler.resolveCommand(c);_.XH(M)})};
P5[xk]=[_.ls];var EN=function(R,A){this.innertubeTransportService=R;this.JSC$17567_playerApiPromise=A};
_.H(EN,zg);
EN.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m;return _.O(function(T){if(T.nextAddress==1)return T.yield(A.JSC$17567_playerApiPromise,2);Y=T.yieldResult;P=Y.getOption("captions","track");E=Object.assign({},_.n(R,_.b$A));(c=(z=Y.getVideoData())==null?void 0:z.video_id)?E.externalVideoId=c:_.tv(Error("Gi"));if((M=P)==null?0:M.languageCode)E.languageCode=P.languageCode;if((N=P)==null?0:N.kind)E.kind=P.kind;if((y=P)==null?0:y.name)E.name=P.name;m=Object.assign({},R,{getTranscriptEndpoint:E});return T.yield(_.uh(A.innertubeTransportService,
m),0)})};
EN[xk]=[_.Co,_.cT];var zU=function(){};
_.H(zU,zg);zU.prototype.resolveCommand=function(R){var A,Y,P,E,z,c,M,N;return _.O(function(y){A=_.n(R,nPH);if((Y=A)==null||!Y.paramKeyValuePairs)return y.return();P=window.location.href;E=_.x(A.paramKeyValuePairs);for(z=E.next();!z.done;z=E.next())c=z.value,c.key&&c.value&&(M={},P=_.LQ(P,(M[c.key]=c.value,M)));N=_.is().resolve(_.fp);_.bg(N,P);_.XH(y)})};var il=function(R,A){this.JSC$17574_commandHandler=R;this.innertubeTransportService=A};
_.H(il,zg);
il.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L;return _.O(function(Z){switch(Z.nextAddress){case 1:return(z=(P=A)==null?void 0:(E=P.form)==null?void 0:E.element)&&_.BL(z),c=_.Hk().get("hl"),M="",_.g2(Z,2),Z.yield(f36(c),4);case 4:M=Z.yieldResult;_.us(Z,3);break;case 2:return _.UT(Z),z&&_.a9(z),_.bj(Error("Ii"),"ERROR"),Z.return();case 3:N=_.n(R,tVq);if(!N)return z&&_.a9(z),Z.return();(T=(y=N.commerceActionConfig)==null?void 0:(m=y.commandLifeCycleConfig)==null?
void 0:m.onStartCommand)&&Y.JSC$17574_commandHandler.resolveCommand(T);return Z.yield(_.uh(Y.innertubeTransportService,R,{client_data:{paymentsClientToken:{token:M}}}),5);case 5:(Q=Z.yieldResult)?(z&&_.a9(z),((b=Q)==null?0:b.command)&&Y.JSC$17574_commandHandler.resolveCommand(Q.command),(L=(p=N.commerceActionConfig)==null?void 0:(h=p.commandLifeCycleConfig)==null?void 0:h.onSuccessCommand)&&Y.JSC$17574_commandHandler.resolveCommand(L)):(z&&_.a9(z),_.bj(Error("Ji")),(I=(g=N.commerceActionConfig)==
null?void 0:(r=g.commandLifeCycleConfig)==null?void 0:r.onFailureCommand)&&Y.JSC$17574_commandHandler.resolveCommand(I)),_.XH(Z)}})};
il[xk]=[_.ls,_.Co];var ll=function(R,A,Y){this.store=R;this.JSC$17590_commandHandler=A;this.innertubeTransportService=Y};
_.H(ll,zg);
ll.prototype.resolveCommand=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T;return _.O(function(Q){P=_.n(R,wXq);E=P.googlePaymentPayload;P.onStartCommand&&Y.JSC$17590_commandHandler.resolveCommand(P.onStartCommand);z=E.encryptedPurchaseParams;c=E.ypcLogWalletAnalyticDataEndpoint;M=P.serializedTransactionFlowLoggingParams;N=E.serializedPaymentsClientParams;y=P.ypcCujContext;T=BVP(Y.innertubeTransportService,(m=A)==null?void 0:m.form,z,c,M,N,y);return Q.return(T.then(function(g){pqu(A==null?void 0:A.form,
!1);var r=Y.store,I=Y.JSC$17590_commandHandler,b=g.integratorData;b==null||b===""||g.error!=null?(String(g.error)==="-1"&&P.onDismissCommand?I.resolveCommand(P.onDismissCommand):String(g.error)!=="-1"&&P.onFailureCommand&&I.resolveCommand(P.onFailureCommand),String(g.error)!=="-1"&&String(g.error)!=="132"&&_.bj(Error("Ki"),"ERROR")):(P.googlePaymentEntityKey&&r.dispatch(_.HT("commerceAcquisitionClientPayloadEntity",P.googlePaymentEntityKey,{key:P.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:b,
fundsGuaranteeCallbackClientData:g.integratorClientCallbackData}}})),P.onSuccessCommand&&I.resolveCommand(P.onSuccessCommand));_.Vn()},function(g){pqu(A==null?void 0:A.form,!1);
_.bj(g,"ERROR");P.onFailureCommand&&Y.JSC$17590_commandHandler.resolveCommand(P.onFailureCommand)}))})};
ll[xk]=[AV,_.ls,_.Co];var xT=function(R,A){this.JSC$17594_commandHandler=R;this.purchaseManager=A};
_.H(xT,zg);
xT.prototype.resolveCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m;return _.O(function(T){Y=_.n(R,umD);((P=Y)==null?0:(E=P.commandLifeCycleConfig)==null?0:E.onStartCommand)&&A.JSC$17594_commandHandler.resolveCommand(Y.commandLifeCycleConfig.onStartCommand);if(!((z=Y)==null?0:(c=z.googlePaymentPurchaseManagerPayload)==null?0:c.securePayloadBytes))return _.bj(Error("Li"),"ERROR"),T.return();M=npZ(_.eP(Y.googlePaymentPurchaseManagerPayload.securePayloadBytes));N=_.Hk().get("hl");y=_.ei();MPW(M.serialize(),
N,function(Q){y.resolve(Q)},function(Q){y.reject(Q)},y.resolve);
m=y.promise;return T.return(m.then(function(Q){if(Q)if(Q==null?0:Q.errorCode){_.bj(Error("Mi`"+Q.errorCode),"ERROR");var g,r;((g=Y)==null?0:(r=g.commandLifeCycleConfig)==null?0:r.onFailureCommand)&&A.JSC$17594_commandHandler.resolveCommand(Y.commandLifeCycleConfig.onFailureCommand)}else if(Q==null?0:Q.isCancelled){var I,b;((I=Y)==null?0:(b=I.commandLifeCycleConfig)==null?0:b.onCancelCommand)&&A.JSC$17594_commandHandler.resolveCommand(Y.commandLifeCycleConfig.onCancelCommand)}else{var p,h;((p=Y)==
null?0:(h=p.commandLifeCycleConfig)==null?0:h.onSuccessCommand)&&A.JSC$17594_commandHandler.resolveCommand(Y.commandLifeCycleConfig.onSuccessCommand)}},function(Q){_.bj(Q,"ERROR");
var g,r;((g=Y)==null?0:(r=g.commandLifeCycleConfig)==null?0:r.onFailureCommand)&&A.JSC$17594_commandHandler.resolveCommand(Y.commandLifeCycleConfig.onFailureCommand)}))})};
xT[xk]=[_.ls,skW];var JE0=function(R,A){this.JSC$17602_commandHandler=R;this.commandAllowlistOverride=A;var Y;this.commandAllowlist=(Y=this.commandAllowlistOverride)!=null?Y:qH};
JE0.prototype.handleResponse=function(R,A,Y){var P,E=A==null?void 0:(P=A.config)==null?void 0:P.command;if(!E||this.commandAllowlist.some(function(z){return!!_.n(E,z)})){A=void 0;
Y!==void 0&&(A={form:{element:Y}});R.onResponseReceivedCommand&&this.JSC$17602_commandHandler.resolveCommand(R.onResponseReceivedCommand,A);R.onResponseReceivedAction&&this.JSC$17602_commandHandler.resolveCommand(R.onResponseReceivedAction,A);R.onResponseReceivedEndpoint&&this.JSC$17602_commandHandler.resolveCommand(R.onResponseReceivedEndpoint,A);R.command&&this.JSC$17602_commandHandler.resolveCommand(R.command,A);if(R.onResponseReceivedCommands)for(Y=_.x(R.onResponseReceivedCommands),P=Y.next();!P.done;P=
Y.next())this.JSC$17602_commandHandler.resolveCommand(P.value,A);if(R.onResponseReceivedActions)for(Y=_.x(R.onResponseReceivedActions),P=Y.next();!P.done;P=Y.next())this.JSC$17602_commandHandler.resolveCommand(P.value,A);if(R.onResponseReceivedEndpoints)for(Y=_.x(R.onResponseReceivedEndpoints),P=Y.next();!P.done;P=Y.next())this.JSC$17602_commandHandler.resolveCommand(P.value,A);if(R.actions)for(R=_.x(R.actions),Y=R.next();!Y.done;Y=R.next())this.JSC$17602_commandHandler.resolveCommand(Y.value,A)}};
JE0[xk]=[_.ls,_.z3(kCJ)];var yEn=new _.cP("INNERTUBE_TOKEN_SERVICE");var mGF=new _.cP("SCHEDULER_TOKEN");var TfH=function(R){this.scheduler=R;R={};this.tokenMap=(R.app={},R.user={},R)};
TfH.prototype.handleResponse=function(R,A){if(!A)throw Error("Ni");var Y;if(R=(Y=R.responseContext)==null?void 0:Y.innertubeTokenJar){if(R.appTokens){var P,E,z;Y=(P=A.innerTubeRequest.context)==null?void 0:(E=P.request)==null?void 0:(z=E.innertubeTokenJar)==null?void 0:z.appTokens;QAG(this,R.appTokens,this.tokenMap.app,Y)}if(R.userTokens){var c,M,N;A=(c=A.innerTubeRequest.context)==null?void 0:(M=c.request)==null?void 0:(N=M.innertubeTokenJar)==null?void 0:N.userTokens;QAG(this,R.userTokens,this.tokenMap.user,
A)}}};
TfH.prototype.processContext=function(R){R.request||(R.request={});var A=Object.keys(this.tokenMap.app).length,Y=Object.keys(this.tokenMap.user).length;if(A||Y)R.request.innertubeTokenJar={},A&&(R.request.innertubeTokenJar.appTokens=[].concat(_.py(Object.values(this.tokenMap.app).flat()))),Y&&(R.request.innertubeTokenJar.userTokens=[].concat(_.py(Object.values(this.tokenMap.user).flat())))};
var QAG=function(R,A,Y,P){A=_.x(A);for(var E=A.next(),z={};!E.done;z={token$jscomp$139:void 0},E=A.next()){z.token$jscomp$139=E.value;if(z.token$jscomp$139.type===void 0)throw new _.XN("InnerTube token has no type",z.token$jscomp$139);if(z.token$jscomp$139.clearTokens)Y[z.token$jscomp$139.type]=[];else if(z.token$jscomp$139.value!==void 0){Y[z.token$jscomp$139.type]||(Y[z.token$jscomp$139.type]=[]);if(P!==void 0&&P.length){E=_.x(P);for(var c=E.next(),M={};!c.done;M={requestToken:void 0},c=E.next())M.requestToken=
c.value,c=Y[z.token$jscomp$139.type].findIndex(function(N){return function(y){return y===N.requestToken||(0,_.BO.equals)(y,N.requestToken)}}(M)),c>-1&&Y[z.token$jscomp$139.type].splice(c,1)}Y[z.token$jscomp$139.type].push(z.token$jscomp$139);
z.token$jscomp$139.maxAgeSeconds&&Number(z.token$jscomp$139.maxAgeSeconds)>0&&R.scheduler.addLowPriorityJob(function(N){return function(){var y=Y[N.token$jscomp$139.type].indexOf(N.token$jscomp$139);y>-1&&Y[N.token$jscomp$139.type].splice(y,1)}}(z),Number(z.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.XN("InnerTube token has no value",z.token$jscomp$139);
}};
TfH[xk]=[mGF];var vZQ=new _.cP("LOCAL_INNERTUBE_ROUTER_TOKEN"),gZo=new _.cP("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var c5=function(R){this.serviceMap=R};
c5.prototype.shouldPreferLocalResponse=function(R,A){return(R=nZY(this,R))?R.shouldPreferLocalResponse(A):!1};
c5.prototype.localInnertubeResponse=function(R,A){var Y=this,P;return _.O(function(E){return(P=nZY(Y,R))?E.return(P.localInnertubeResponse(A)):E.return(Promise.reject(Error("Oi")))})};
c5.prototype.canProvideFallbackResponse=function(R,A){return(R=nZY(this,R))?R.canProvideFallbackResponse(A):!1};
c5.prototype.localFallbackInnertubeResponse=function(R,A){var Y=this,P;return _.O(function(E){return(P=nZY(Y,R))?E.return(P.localFallbackInnertubeResponse(A)):E.return(Promise.reject(Error("Oi")))})};
var nZY=function(R,A){A=_.T3(A);return A?(R=R.serviceMap[A])?R:null:null};
c5[xk]=[gZo];var m8=function(){};
m8.prototype.shouldPreferLocalResponse=function(){return!1};
m8.prototype.localInnertubeResponse=function(){return _.O(function(R){return R.return(Promise.reject(Error("Pi")))})};
m8.prototype.canProvideFallbackResponse=function(){return!0};
m8.prototype.localFallbackInnertubeResponse=function(){var R,A,Y;return _.O(function(P){R=yh("CLOSE_POPUP");A={openPopupAction:Cpk()};Y={actions:[R,A]};return P.return(Y)})};var adI=function(R,A){this.JSC$17652_upliftPromise=R;this.store=A};
_.l=adI.prototype;_.l.shouldPreferLocalResponse=function(R){var A=R.videoId,Y;if(Y=A)Y=sCV(this.store.getState().entities,R.videoId);return Y&&NYq(this.store.getState().entities,A)?oAu(this.store.getState().entities,R.playlistId):!1};
_.l.localInnertubeResponse=function(R){var A=this,Y;return _.O(function(P){return(Y=A.getPlayerResponse(R))?P.return(Promise.resolve(Y)):P.return(Promise.reject(Error("Qi")))})};
_.l.canProvideFallbackResponse=function(R){return!!R.videoId};
_.l.localFallbackInnertubeResponse=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.JSC$17652_upliftPromise,2);Y=A.getPlayerResponse(R);var E;Y?E=P.return(Promise.resolve(Y)):E=S9(A.store.getState().entities,R.videoId)?P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iw(_.vk("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:EQk()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
P.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.iw(_.vk("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:PQ8()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return E})};
_.l.getPlayerResponse=function(R){return aYJ(this.store.getState().entities,R.videoId)};var y5=function(R,A){this.localPlayerService=R;this.localWatchNextService=A};
y5.prototype.shouldPreferLocalResponse=function(R){var A=R.playerRequest;R=R.watchNextRequest;return!!(A&&this.localPlayerService.shouldPreferLocalResponse(A)&&R&&this.localWatchNextService.shouldPreferLocalResponse(R))};
y5.prototype.localInnertubeResponse=function(R){var A=this,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1){Y=R.playerRequest;P=R.watchNextRequest;if(!Y||!P)throw new _.XN("Missing streaming request",R);return c.yield(A.localPlayerService.localInnertubeResponse(Y),2)}if(c.nextAddress!=3)return E=c.yieldResult,c.yield(A.localWatchNextService.localInnertubeResponse(P),3);z=c.yieldResult;return c.return({playerResponse:E,watchNextResponse:z})})};
y5.prototype.canProvideFallbackResponse=function(R){var A=R.playerRequest;R=R.watchNextRequest;return!!(A&&this.localPlayerService.canProvideFallbackResponse(A)&&R&&this.localWatchNextService.canProvideFallbackResponse(R))};
y5.prototype.localFallbackInnertubeResponse=function(R){var A=this,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return Y=R.playerRequest,P=R.watchNextRequest,Y&&P?c.yield(A.localPlayerService.localFallbackInnertubeResponse(Y),2):c.return(Promise.reject(new _.XN("Missing streaming request",R)));if(c.nextAddress!=3)return E=c.yieldResult,c.yield(A.localWatchNextService.localFallbackInnertubeResponse(P),3);z=c.yieldResult;return c.return({playerResponse:E,watchNextResponse:z})})};var Nm=function(R){this.JSC$17662_persistentStorePromiseAccessor=R};
Nm.prototype.shouldPreferLocalResponse=function(){return!1};
Nm.prototype.localInnertubeResponse=function(){return _.O(function(R){return R.return(Promise.reject(Error("Ri")))})};
Nm.prototype.canProvideFallbackResponse=function(){return!0};
Nm.prototype.localFallbackInnertubeResponse=function(){var R=this,A,Y;return _.O(function(P){return P.nextAddress==1?P.yield(R.JSC$17662_persistentStorePromiseAccessor(),2):P.nextAddress!=3?(A=P.yieldResult)?P.yield(A.get("service:guide:fallback"),3):P.return(Promise.reject(Error("Si"))):(Y=P.yieldResult)&&_.dc(Y)?P.return(kMk(_.dc(Y))):P.return(Promise.reject(Error("Ti")))})};var TG=function(){};
TG.prototype.shouldPreferLocalResponse=function(){return!1};
TG.prototype.localInnertubeResponse=function(){return _.O(function(R){return R.return(Promise.reject(Error("Ui")))})};
TG.prototype.canProvideFallbackResponse=function(){return!0};
TG.prototype.localFallbackInnertubeResponse=function(){var R,A,Y;return _.O(function(P){R=yh("CLOSE_POPUP");A={openPopupAction:Cpk()};Y={actions:[R,A]};return P.return(Y)})};var sR=function(){this.urlMap=HDY;this.fallbackCommand=_.p_};
sR.prototype.shouldPreferLocalResponse=function(R){return(R=R.url)?!!rEm(this,R):!1};
sR.prototype.localInnertubeResponse=function(R){var A=this,Y;return _.O(function(P){return(Y=R.url)?P.return(DGm(R,rEm(A,Y))):P.return(Promise.reject(Error("Vi")))})};
sR.prototype.canProvideFallbackResponse=function(){return!0};
sR.prototype.localFallbackInnertubeResponse=function(R){var A=this,Y,P,E,z,c,M,N;return _.O(function(y){Y=R.url;if(!Y)return y.return(DGm(R,A.fallbackCommand));if(P=rEm(A,Y))return y.return(DGm(R,P));E=void 0;z=_.T3(Y);z==="/watch"&&(c=_.wz(Y,"v"))&&(N=(M=_.wz(Y,"list"))!=null?M:void 0,E=_.zX(c,N));E||(E=A.fallbackCommand);return y.return(DGm(R,E))})};
var rEm=function(R,A){if(A)return R.urlMap[_.t_(A)]},DGm=function(R,A){A&&R.parentTrackingParams&&(A.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:R.parentTrackingParams}},A.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:A})};var V5=function(R,A,Y){this.JSC$17672_upliftPromise=R;this.store=A;this.JSC$17672_persistentStorePromiseAccessor=Y};
V5.prototype.shouldPreferLocalResponse=function(){return!1};
V5.prototype.localInnertubeResponse=function(){return _.O(function(R){return R.return(Promise.reject(Error("Wi")))})};
V5.prototype.canProvideFallbackResponse=function(){return!0};
V5.prototype.localFallbackInnertubeResponse=function(){var R=this;return _.O(function(A){return A.return(UGH(R))})};
var UGH=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(L0(R.JSC$17672_upliftPromise,R.store),2);A=P.yieldResult;Y={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[hL3(A)]}}}};return P.return($Gj(R,Y))})},$Gj=function(R,A){var Y,P;
return _.O(function(E){if(E.nextAddress==1)return E.yield(R.JSC$17672_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return Y=E.yieldResult,E.yield(RL(Y),3);P=E.yieldResult;return E.return({responseContext:{},contents:A,topbar:P})})};var OR=function(R,A,Y){this.JSC$17679_upliftPromise=R;this.store=A;this.JSC$17679_persistentStorePromiseAccessor=Y};
OR.prototype.shouldPreferLocalResponse=function(R){var A=R.videoId;return A&&sCV(this.store.getState().entities,A)&&NYq(this.store.getState().entities,A)?oAu(this.store.getState().entities,R.playlistId):!1};
OR.prototype.localInnertubeResponse=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1)return(Y=R.videoId)?E.yield(A.JSC$17679_upliftPromise,2):E.return(Promise.reject(Error("Xi")));if(E.nextAddress!=3)return E.yield(XSY(A,R,Y),3);P=E.yieldResult;return E.return(SAj(A,P,Y))})};
OR.prototype.canProvideFallbackResponse=function(R){return R.videoId?!0:!1};
OR.prototype.localFallbackInnertubeResponse=function(R){var A=this,Y,P,E,z;return _.O(function(c){switch(c.nextAddress){case 1:return(Y=R.videoId)?c.yield(A.JSC$17679_upliftPromise,2):c.return(Promise.reject(Error("Xi")));case 2:return c.yield(XSY(A,R,Y),3);case 3:P=c.yieldResult;if(S9(A.store.getState().entities,Y)){c.jumpTo(4);break}return c.yield(L0(A.JSC$17679_upliftPromise,A.store),5);case 5:return E=c.yieldResult,c.return(Iz0(P,E));case 4:return sCV(A.store.getState().entities,Y)&&NYq(A.store.getState().entities,
Y)?c.return(SAj(A,P,Y)):(z={title:_.iw(_.vk("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:EQk()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},c.return(Iz0(P,z)))}})};
var XSY=function(R,A,Y){var P,E,z,c,M;return _.O(function(N){if(N.nextAddress==1)return P=A.playlistId,E=_.zX(Y,P),N.yield(R.JSC$17679_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return z=N.yieldResult,N.yield(RL(z),3);c=N.yieldResult;M={responseContext:{},currentVideoEndpoint:E,topbar:c};return N.return(M)})},SAj=function(R,A,Y){if(R=S9(R.store.getState().entities,Y)){var P;
Y=R.videoEntity;var E,z={title:lw(Y.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.xb((P=Y.localizedStrings)==null?void 0:P.viewCount),viewCount:_.xb((E=Y.localizedStrings)==null?void 0:E.viewCount)}}};Y.publishedTimestampMillis&&(z.dateText=_.xb(SVI(new Date(Number(Y.publishedTimestampMillis)))));P={videoPrimaryInfoRenderer:z};E=R.videoEntity;R=R.channelEntity;R={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:lw(_.vk("SHOW_MORE",void 0,"Show more")),
showLessText:lw(_.vk("SHOW_LESS",void 0,"Show less")),description:E.formattedDescription,owner:{videoOwnerRenderer:{title:lw(R.title),thumbnail:R.avatar}}}};A.contents={twoColumnWatchNextResults:{results:{results:{contents:[P,R]}}}}}return A},Iz0=function(R,A){R.contents={singleColumnWatchNextResults:{results:{results:{contents:[hL3(A)]}}}};
return R};var JV=function(R,A,Y){this.JSC$17684_upliftPromise=R;this.store=A;this.JSC$17684_persistentStorePromiseAccessor=Y};
JV.prototype.shouldPreferLocalResponse=function(){return!1};
JV.prototype.localInnertubeResponse=function(){return _.O(function(R){return R.return(Promise.reject(Error("Yi")))})};
JV.prototype.canProvideFallbackResponse=function(){return!0};
JV.prototype.localFallbackInnertubeResponse=function(){var R=this,A,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:return z.yield(R.JSC$17684_persistentStorePromiseAccessor(),2);case 2:return A=z.yieldResult,z.yield(RL(A),3);case 3:return Y=z.yieldResult,P={responseContext:{},topbar:Y},z.yield(R.JSC$17684_upliftPromise,4);case 4:return z.yield(L0(R.JSC$17684_upliftPromise,R.store),5);case 5:return E=z.yieldResult,P.watchStatus={backgroundPromoRenderer:E},z.return(P)}})};_.KSj=new _.cP("ENDPOINT_MAP");var WSH=function(){var R=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return R.sequenceMap}}},CCq=function(R,A,Y){var P,E=(P=A.config)==null?void 0:P.sequenceStrategy;
if(!E)return Y();R.sequenceMap.has(E.sequenceKey)||R.sequenceMap.set(E.sequenceKey,[]);R=R.sequenceMap.get(E.sequenceKey);switch(E.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return jAm(R,A,Y);case "REQUEST_SEQUENCE_TYPE_REPLACE":return bDH(R,A,Y);default:throw new _.XN("Request could not be sequenced",A);}},jAm=function(R,A,Y){var P,E,z;
return _.O(function(c){R.length>0?(E=R[R.length-1],P=E.responsePromise.then(function(){return Y()})):P=Y();
z={request:A,responsePromise:P};R.push(z);fzH(R,z);return c.return(z.responsePromise)})},bDH=function(R,A,Y){Y=Y();
if(R.length>0)for(var P=_.x(R),E=P.next();!E.done;E=P.next())E.value.responsePromise=Y;var z={request:A,responsePromise:Y};R.push(z);fzH(R,z);return Promise.resolve().then(function(){return R.indexOf(z)>0?z.responsePromise.then(function(c){return Object.assign({},c,{sequenceMetaData:{skipProcessing:!0}})}):z.responsePromise})},fzH=function(R,A){A.responsePromise.then(function(){var Y=R.indexOf(A);
Y>-1&&R.splice(Y,1)})};var pSm=new _.cP("REQUEST_SEQUENCING");var ON=function(){};
_.H(ON,Sw);ON.prototype.getApiPaths=function(){return[]};
ON.prototype.getExtension=function(R){return _.n(R,DAz)};
ON.prototype.JSC$13099_buildRequest=function(R,A){R.recaptchaToken=A.recaptchaToken};
ON.prototype.getApiUrl=function(){return"/das_captcha"};var MQ=function(){};
_.H(MQ,Sw);MQ.prototype.getApiPaths=function(){return GVG};
MQ.prototype.getExtension=function(R){return _.n(R,AAS)};
MQ.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.createBackstagePostParams&&(R.createBackstagePostParams=A.createBackstagePostParams);Y.comment_text&&(R.commentText=Y.comment_text);if(Y.attached_video_id)R.videoAttachment={videoId:Y.attached_video_id};else if(Y.image_poll_options)R.pollAttachmentData={options:Y.image_poll_options};else if(Y.poll_options)R.pollAttachment={choices:Y.poll_options};else if(Y.quiz_options)R.quizAttachmentData={options:Y.quiz_options};else if(Y.image_blob_id)R.imageAttachment=
{encryptedBlobId:Y.image_blob_id},Y.source_video_id&&(R.imageAttachment.sourceExternalVideoId=Y.source_video_id),Y.image_preview_coordinates&&(R.imageAttachment.previewCoordinates=JSON.parse(Y.image_preview_coordinates));else if(Y.images_data)R.imagesAttachment={imagesData:Y.images_data};else if(Y.clip_external_video_id!==void 0||Y.clip_offset_ms!==void 0||Y.clip_duration_ms!==void 0){var P,E,z,c,M;R.clipAttachment={externalVideoId:(z=Y.clip_external_video_id)!=null?z:"",offsetMs:(c=(P=Y.clip_offset_ms)==
null?void 0:P.toString())!=null?c:"",durationMs:(M=(E=Y.clip_duration_ms)==null?void 0:E.toString())!=null?M:""}}else Y.shared_post_id&&(R.sharedPostAttachment={postId:Y.shared_post_id});Y.tagged_video_id&&(R.postCreationData={taggedVideoId:Y.tagged_video_id});Y.access_restrictions&&(typeof Y.access_restrictions==="number"&&(A=Y.access_restrictions,R.accessRestrictions={restriction:A!==1&&A===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof Y.access_restrictions==="string"&&
(R.accessRestrictionsParams=Y.access_restrictions));Y.scheduled_publish_time_sec&&(R.scheduledPublishTimeSec=Y.scheduled_publish_time_sec.toString())};var sN=function(){};
_.H(sN,Sw);sN.prototype.getApiPaths=function(){return LXf};
sN.prototype.getExtension=function(R){return _.n(R,kyH)};
sN.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.decorateMessageParams&&(R.params=A.decorateMessageParams);Y.text&&(R.text=Y.text)};var NQ=function(){};
_.H(NQ,Sw);NQ.prototype.getApiPaths=function(){return TyA};
NQ.prototype.getExtension=function(R){return _.n(R,YXq)};
NQ.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;Y.video_id&&(R.videoId=Y.video_id)};var VF=function(){};
_.H(VF,Sw);VF.prototype.getApiPaths=function(){return HpE};
VF.prototype.getExtension=function(R){return _.n(R,_.mZ)};
VF.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.suggestions_query&&(R.input=Y.suggestions_query)};var Ju=function(){};
_.H(Ju,Sw);Ju.prototype.getApiPaths=function(){return PM7};
Ju.prototype.getExtension=function(R){return _.n(R,P6S)};
Ju.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.comment_text!==void 0&&(R.commentText=Y.comment_text);Y.scheduled_publish_time_sec&&(R.scheduledPublishTimeSec=Y.scheduled_publish_time_sec.toString());R.updateBackstagePostParams=A.updateBackstagePostParams};var yF=function(){};
_.H(yF,Sw);yF.prototype.getApiPaths=function(){return Z5};
yF.prototype.getExtension=function(R){return _.n(R,_.oE)};
yF.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.formData&&(R.formData=Y.formData);A.token?R.continuation=A.token:A.continuationTokenKey&&(Y=_.Yp().getState(),A=_.mc(Y.entities,"continuationTokenEntity",A.continuationTokenKey))&&(R.continuation=String(A.continuationToken))};
var FSn=function(){};
_.H(FSn,Sw);_.l=FSn.prototype;_.l.getApiPaths=function(){return Z5};
_.l.getExtension=function(R){return _.n(R,_.Ds)};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13106_getStoreKey=function(R){if((R=this.getExtension(R))&&R.browseId){var A={browseId:R.browseId};R.browseEndpointContextSupportedConfigs&&(A.browseEndpointContextSupportedConfigs=JSON.stringify(R.browseEndpointContextSupportedConfigs));R.params&&(A.params=R.params);R.query&&(A.query=R.query);return _.q4("browse",A)}};
_.l.JSC$13099_buildRequest=function(R,A,Y){A.browseId&&(R.browseId=A.browseId);A.params&&(R.params=A.params);A.query&&(R.query=A.query);Y.formData?R.formData=Y.formData:A.formData&&(R.formData=A.formData);A.browseId==="FEsubscriptions"&&_.Hk().getFlag(155)&&(R.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");A.browseId==="SPaccount_playback"&&(Y=_.Hk(),R.formData||(R.formData={}),R.formData.accountSettingsFormData={flagCaptionsDefaultOff:Y.getFlag(65),flagAutoCaptionsDefaultOn:Y.getFlag(66),
flagDisableInlinePreview:Y.getFlag(186),flagAudioDescriptionDefaultOn:Y.getFlag(198)});if(A.browseId==="FEwhat_to_watch"){Y=_.Hk();var P=Y.getFlag(196);Y.getFlag(197)&&(R.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:P}}})}A.browseId==="FEwhat_to_watch"&&(A=_.Hk().getFlag(186),R.inlineSettingStatus=A?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.l.getRequestConfig=function(R,A){A=A===void 0?{}:A;var Y={};if(R=this.JSC$13106_getStoreKey(R,A))Y.storeStrategy={storeKey:R,disableCache:A.disableCache};_.v("web_log_browse_ticks_ks")||(Y.requestTick="br_s",Y.responseTick="br_r");return Y};var mR=function(){};
_.H(mR,Sw);mR.prototype.getApiPaths=function(){return BI7};
mR.prototype.getExtension=function(R){return _.n(R,KsN)};
mR.prototype.JSC$13099_buildRequest=function(R,A,Y){R.legacyYoutubeChannelUsername=Y.legacyYouTubeChannelUsername||"";R.legacyYoutubeChannelPassword=Y.legacyYouTubeChannelPassword||""};var TU=function(){};
_.H(TU,Sw);TU.prototype.getApiPaths=function(){return ZpD};
TU.prototype.getExtension=function(R){return _.n(R,MSq)};
TU.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.recaptcha_response_token&&(R.recaptchaResponseToken=Y.recaptcha_response_token);Y.channel_id&&(R.channelId=Y.channel_id)};var QF=function(){};
_.H(QF,Sw);QF.prototype.getApiPaths=function(){return Em8};
QF.prototype.getExtension=function(R){return _.n(R,mlG)};
QF.prototype.JSC$13099_buildRequest=function(R,A,Y){A.externalChannelId&&(R.externalChannelId=A.externalChannelId);Y.handle&&(R.handleUpdate={handle:Y.handle},A.handleEditSource&&(R.handleUpdate.handleEditSource=A.handleEditSource))};var v5=function(){};
_.H(v5,Sw);v5.prototype.getApiPaths=function(){return xWG};
v5.prototype.getExtension=function(R){return _.n(R,auH)};
v5.prototype.JSC$13099_buildRequest=function(R,A,Y){A.request&&(R.channelId=A.request.channelId);var P;if(Y==null?0:(P=Y.uploadDefaults)==null?0:P.emojiReactionSet)R.uploadDefaultsRequest||(R.uploadDefaultsRequest={}),R.uploadDefaultsRequest.emojiReactionSet=Y.uploadDefaults.emojiReactionSet};var gD=function(){};
_.H(gD,Sw);gD.prototype.getApiPaths=function(){return Mnb};
gD.prototype.getExtension=function(R){return _.n(R,s8f)};
gD.prototype.JSC$13099_buildRequest=function(R,A,Y){A.externalChannelId&&(R.externalChannelId=A.externalChannelId);A.channelHandleEntityKey&&(R.channelHandleEntityKey=A.channelHandleEntityKey);A.handleEditSource&&(R.handleEditSource=A.handleEditSource);Y.handle?R.handle=Y.handle:Y.name&&(R.name=Y.name)};var nR=function(){};
_.H(nR,Sw);nR.prototype.getApiPaths=function(){return hES};
nR.prototype.getExtension=function(R){return _.n(R,rsA)};
nR.prototype.JSC$13099_buildRequest=function(R,A){A.actions?R.actions=A.actions:A.action&&(R.actions=[A.action])};var H5=function(){};
_.H(H5,Sw);H5.prototype.getApiPaths=function(){return oMb};
H5.prototype.getExtension=function(R){return _.n(R,_.oE)};
H5.prototype.JSC$13099_buildRequest=function(R,A){A.token&&(R.continuation=A.token)};var rD=function(){};
_.H(rD,Sw);rD.prototype.getApiPaths=function(){return yCb};
rD.prototype.getExtension=function(R){return _.n(R,_.oE)};
rD.prototype.JSC$13099_buildRequest=function(R,A){R.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";A.token&&(R.fetchCommentsParams={continuation:A.token})};var Dv=function(){};
_.H(Dv,Sw);Dv.prototype.getApiPaths=function(){return wwS};
Dv.prototype.getExtension=function(R){return _.n(R,H_H)};
Dv.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.createReplyParams&&(R.createReplyParams=A.createReplyParams);A.commentText&&(R.commentText=_.R4(A.commentText));Y.comment_text&&(R.commentText=Y.comment_text);Y.image_blob_id&&(R.imageAttachment={encryptedBlobId:Y.image_blob_id});Y.botguard_response&&(R.botguardResponse=Y.botguard_response)};
_.Yh.Object.defineProperties(Dv.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var UN=function(){};
_.H(UN,Sw);UN.prototype.getApiPaths=function(){return uPf};
UN.prototype.getExtension=function(R){return _.n(R,_.n57)};
UN.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.createCommentParams&&(R.createCommentParams=A.createCommentParams);A.commentText&&(R.commentText=_.R4(A.commentText));A.videoPositionMention&&(R.videoPositionMention=A.videoPositionMention);A.sources&&(R.sources=A.sources);Y.comment_text&&(R.commentText=Y.comment_text);Y.attached_video_id?R.videoAttachment={videoId:Y.attached_video_id}:Y.poll_options?R.pollAttachment={choices:Y.poll_options}:Y.image_blob_id?R.imageAttachment=
{encryptedBlobId:Y.image_blob_id}:Y.shared_post_id&&(R.sharedPostAttachment={postId:Y.shared_post_id});Y.access_restrictions&&typeof Y.access_restrictions==="number"&&(A=Y.access_restrictions,R.accessRestrictions={restriction:A!==1&&A===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});Y.botguard_response&&(R.botguardResponse=Y.botguard_response)};
_.Yh.Object.defineProperties(UN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var $T=function(){};
_.H($T,Sw);$T.prototype.getApiPaths=function(){return z_D};
$T.prototype.getExtension=function(R){return _.n(R,UJG)};
$T.prototype.JSC$13099_buildRequest=function(R,A,Y){A.commentText&&(R.replyText=_.R4(A.commentText));Y.comment_text&&(R.replyText=Y.comment_text);R.updateReplyParams=A.updateReplyParams};
_.Yh.Object.defineProperties($T.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var XM=function(){};
_.H(XM,Sw);XM.prototype.getApiPaths=function(){return iPS};
XM.prototype.getExtension=function(R){return _.n(R,DJA)};
XM.prototype.JSC$13099_buildRequest=function(R,A,Y){A.commentText&&(R.commentText=_.R4(A.commentText));Y.comment_text&&(R.commentText=Y.comment_text);R.updateCommentParams=A.updateCommentParams};
_.Yh.Object.defineProperties(XM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ST=function(){};
_.H(ST,Sw);ST.prototype.getApiPaths=function(){return l_S};
ST.prototype.getExtension=function(R){return _.n(R,fuZ)};
ST.prototype.JSC$13099_buildRequest=function(R,A){A.settings&&(R.settings=A.settings)};var Id=function(){};
_.H(Id,Sw);Id.prototype.getApiPaths=function(){return cCS};
Id.prototype.getExtension=function(R){return _.n(R,N4b)};
Id.prototype.JSC$13099_buildRequest=function(R,A){A.channelCreationToken&&(R.channelCreationToken=A.channelCreationToken);A.source&&(R.source=A.source)};var KR=function(){};
_.H(KR,Sw);KR.prototype.getApiPaths=function(){return ttA};
KR.prototype.getExtension=function(R){return _.n(R,yAz)};
KR.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;if(Y.name&&(Y.given_name||Y.family_name))R=new _.XN("channel creation cannot set both GAIA and YouTube names",A),_.bj(R);else{if(A.zeroStepChannelCreationParams){if(!Y.comment_text){R=new _.XN("zero_step_create_comment_params but no zero_step_texts",A);_.bj(R);return}R.zeroStepChannelCreationParams=A.zeroStepChannelCreationParams;R.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(R.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
Y.comment_text,Y.botguard_response&&(R.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=Y.botguard_response))}R.channelCreationToken=A.channelCreationToken;Y.given_name&&(R.givenName=Y.given_name);Y.family_name&&(R.familyName=Y.family_name);A.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(R.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(Y.name||Y.handle||Y.avatar_url||Y.encryptedBlobId||Y.isNameChanged!==void 0||Y.isHandleChanged!==void 0||Y.isDefaultProfilePhoto!==
void 0||Y.obakeImageSource)R.overrideChannelCreationParams={},Y.name&&(R.overrideChannelCreationParams.name=Y.name),Y.handle&&(R.overrideChannelCreationParams.handle=Y.handle),Y.avatar_url&&(R.overrideChannelCreationParams.avatarUrl=Y.avatar_url),Y.encryptedBlobId&&(R.overrideChannelCreationParams.blobEncryptionId=Y.encryptedBlobId),Y.enableIdentityForAllChannelCreationDialog&&(Y.encryptedBlobId?R.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
Y.isDefaultProfilePhoto!==void 0&&(R.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=Y.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),Y.isNameChanged!==void 0&&(R.overrideChannelCreationParams.identityForAllChannelCreationNameTag=Y.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),Y.isHandleChanged!==
void 0&&(R.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=Y.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),Y.obakeImageSource&&(R.overrideChannelCreationParams.obakeImageSourceType=Y.obakeImageSource))}};var W5=function(){};
_.H(W5,Sw);W5.prototype.getApiPaths=function(R){return(R=this.getExtension(R))&&R.status==="DISLIKE"?YHG:R&&R.status==="INDIFFERENT"?CgD:XfS};
W5.prototype.getExtension=function(R){return _.n(R,_.p0)};
W5.prototype.JSC$13099_buildRequest=function(R,A){A.target&&(R.target=A.target);if(A=this.getParams(A))R.params=A};
W5.prototype.getParams=function(R){switch(R==null?void 0:R.status){case "DISLIKE":return R.dislikeParams;case "INDIFFERENT":return R.removeLikeParams;default:return R==null?void 0:R.likeParams}};var jT=function(){};
_.H(jT,Sw);jT.prototype.getApiPaths=function(){return qHz};
jT.prototype.getExtension=function(R){return _.n(R,WAN)};
jT.prototype.JSC$13099_buildRequest=function(R,A){A.settingItemId&&(R.settingItemId=A.settingItemId);A.stringValue!=null&&A.stringValue!==void 0?R.newValue={stringValue:A.stringValue}:A.intValue?R.newValue={intValue:A.intValue}:A.boolValue!==null&&A.boolValue!==void 0?R.newValue={boolValue:A.boolValue}:(R=new _.XN("Unknown value type for SetSettingEndpoint.",A),_.bj(R))};var bl=function(){};
_.H(bl,Sw);bl.prototype.getApiPaths=function(){return R_q};
bl.prototype.getExtension=function(R){return _.n(R,R1S)||void 0};
bl.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.channelIds&&(R.channelIds=A.channelIds);A.siloName&&(R.siloName=A.siloName);A.params&&(R.params=A.params);Y.botguardResponse&&(R.botguardResponse=Y.botguardResponse);Y.feature&&(R.clientFeature=Y.feature)};
_.Yh.Object.defineProperties(bl.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fR=function(){};
_.H(fR,Sw);fR.prototype.getApiPaths=function(){return YDS};
fR.prototype.getExtension=function(R){return _.n(R,jCb)||void 0};
fR.prototype.JSC$13099_buildRequest=function(R,A){A.channelIds&&(R.channelIds=A.channelIds);A.siloName&&(R.siloName=A.siloName);A.params&&(R.params=A.params)};
_.Yh.Object.defineProperties(fR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var pR=function(R){this.shareClientParamsProvider=R};
_.H(pR,Sw);pR.prototype.getApiPaths=function(){return w48};
pR.prototype.getExtension=function(R){return _.n(R,lXf)||_.n(R,_.xND)||_.n(R,idD)};
pR.prototype.JSC$13099_buildRequest=function(R,A){A.serializedShareEntity&&(R.serializedSharedEntity=A.serializedShareEntity);if(A.clientParamIdentifier){var Y;if((Y=this.shareClientParamsProvider)==null?0:Y.clientParams.has(A.clientParamIdentifier)){Y=this.shareClientParamsProvider;A=A.clientParamIdentifier;var P=Y.clientParams.get(A);P&&Y.clientParams.delete(A);R.clientParams=P}}};
pR[xk]=[o3N];var FM=function(){};
_.H(FM,Sw);FM.prototype.getApiPaths=function(){return fm8};
FM.prototype.getExtension=function(R){return _.n(R,huA)};
FM.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var B5=function(){};
_.H(B5,Sw);B5.prototype.getApiPaths=function(){return Pg8};
B5.prototype.getExtension=function(R){return _.n(R,Bbb)};
B5.prototype.JSC$13099_buildRequest=function(R,A){A.dismissal&&(R.items=[A.dismissal])};
_.Yh.Object.defineProperties(B5.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ad=function(){};
_.H(ad,Sw);ad.prototype.getApiPaths=function(){return Uub};
ad.prototype.getExtension=function(R){return _.n(R,_.UR)||void 0};
ad.prototype.JSC$13099_buildRequest=function(R,A,Y){R.feedbackTokens=[];A.feedbackToken&&R.feedbackTokens.push(A.feedbackToken);if(A=A.cpn||Y.cpn)R.feedbackContext={cpn:A};R.isFeedbackTokenUnencrypted=!!Y.is_feedback_token_unencrypted;R.shouldMerge=!1;Y.extra_feedback_tokens&&(R.shouldMerge=!0,R.feedbackTokens=R.feedbackTokens.concat(Y.extra_feedback_tokens))};
_.Yh.Object.defineProperties(ad.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var CR=function(){};
_.H(CR,Sw);CR.prototype.getApiPaths=function(){return Uub};
CR.prototype.getExtension=function(R){return _.n(R,_.mZ)};
CR.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.feedback_tokens&&(R.feedbackTokens=Y.feedback_tokens,R.shouldMerge=!0)};
_.Yh.Object.defineProperties(CR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hu=function(){};
_.H(hu,Sw);hu.prototype.getApiPaths=function(){return Uub};
hu.prototype.getExtension=function(R){return _.n(R,qEJ)};
hu.prototype.JSC$13099_buildRequest=function(R,A){A.undoToken&&(R.feedbackTokens=[A.undoToken]);A.isUndoTokenUnencrypted&&(R.isFeedbackTokenUnencrypted=A.isUndoTokenUnencrypted)};
_.Yh.Object.defineProperties(hu.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var od=function(){};
_.H(od,Sw);od.prototype.getApiPaths=function(){return s_Z};
od.prototype.getExtension=function(R){return _.n(R,fw7)};
od.prototype.JSC$13099_buildRequest=function(R,A){A.nextEndpoint&&_.n(A.nextEndpoint,_.G$)?R.nextEndpoint={urlEndpoint:_.n(A.nextEndpoint,_.G$)}:A.nextEndpoint&&_.n(A.nextEndpoint,_.LO)&&(R.nextEndpoint={watchEndpoint:_.n(A.nextEndpoint,_.LO)});A.setRacy&&(R.setRacy=A.setRacy);A.setControvercy&&(R.setControvercy=A.setControvercy)};var kT=function(R){this.JSC$17865_storeWithEntities=R};
_.H(kT,Sw);kT.prototype.getApiPaths=function(){return zvZ};
kT.prototype.getExtension=function(R){return _.n(R,i98)};
kT.prototype.JSC$13099_buildRequest=function(R,A){A.flowId&&(R.flowId=A.flowId);A.targetId&&(R.targetId=A.targetId);A.continuation&&(R.continuation=A.continuation);var Y=A.flowStateEntityKey;if(A.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&Y&&this.JSC$17865_storeWithEntities){var P;if(A=(P=this.JSC$17865_storeWithEntities.getState())==null?void 0:P.entities)if(P=_.M6(Y).entityType,P=_.mc(A,P,Y))R.flowState=P,R.flowStateEntityKey=Y}};
_.Yh.Object.defineProperties(kT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
kT[xk]=[AV];var Bfn=function(){};
_.H(Bfn,Sw);_.l=Bfn.prototype;_.l.getApiPaths=function(){return Dub};
_.l.JSC$13106_getStoreKey=function(){return _.q4("guide")};
_.l.getRequestConfig=function(){var R=this.JSC$13106_getStoreKey(),A;R&&(A={storeStrategy:{storeKey:R}});return A};
_.l.isNavigationCommand=function(){return!0};
_.l.getExtension=function(R){return _.n(R,_.mZ)};
_.l.JSC$13099_buildRequest=function(R){R.fetchLiveState=!0};var GU=function(){};
_.H(GU,Sw);GU.prototype.getApiPaths=function(){return amf};
GU.prototype.getExtension=function(R){return _.n(R,QCG)};
GU.prototype.JSC$13099_buildRequest=function(){};var Zv=function(){};
_.H(Zv,Sw);Zv.prototype.getApiPaths=function(){return CO7};
Zv.prototype.getExtension=function(R){return _.n(R,v5G)};
Zv.prototype.JSC$13099_buildRequest=function(){};var tu=function(){};
_.H(tu,Sw);tu.prototype.getApiPaths=function(){return blS};
tu.prototype.getExtension=function(R){return _.n(R,_.oE)};
tu.prototype.JSC$13099_buildRequest=function(R,A){A.token&&(R.continuation=A.token);var Y,P;R==null||(Y=R.context)==null||(P=Y.user)==null||delete P.onBehalfOfUser};
tu.prototype.getRequestConfig=function(R){var A={},Y;if(((Y=this.getExtension(R))==null?void 0:Y.sessionIndex)!==void 0){var P;A={authStrategy:{sessionIndex:(P=this.getExtension(R))==null?void 0:P.sessionIndex}}}return A};var wD=function(){};
_.H(wD,Sw);wD.prototype.JSC$13099_getRequest=function(R){var A=this.getExtension(R),Y=R="";if(A==null?0:A.popup)R="true";if(A==null?0:A.disableSignout)Y="true";A={};return{input:"/getAccountSwitcherEndpoint",requestShell:e0("/getAccountSwitcherEndpoint","GET",(A["X-YouTube-Delegation-Context"]=_.a1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),A["X-YouTube-Account-Switcher-Popup"]=R,A["X-YouTube-Account-Switcher-Disable-Signout"]=Y,A)),innerTubeRequest:{}}};
wD.prototype.getApiPaths=function(){return[]};
wD.prototype.getExtension=function(R){return _.n(R,_.aaJ)};
wD.prototype.JSC$13099_buildRequest=function(){};var ul=function(){};
_.H(ul,Sw);ul.prototype.JSC$13099_getRequest=function(R){var A="/cross_account_channel_transfer";(R=this.getExtension(R))&&(A=rgP(A,{target_session:R.targetSessionIndex,source_rapt:R.sourceRapt,rapt:R.targetRapt}));return{input:A,requestShell:e0(A,"GET"),innerTubeRequest:{}}};
ul.prototype.getApiPaths=function(){return[]};
ul.prototype.getExtension=function(R){return _.n(R,K5H)};
ul.prototype.JSC$13099_buildRequest=function(){};var eT=function(){};
_.H(eT,Sw);eT.prototype.getApiPaths=function(){return ipf};
eT.prototype.isNavigationCommand=function(){return!0};
eT.prototype.getExtension=function(R){return _.n(R,_.mZ)};
eT.prototype.JSC$13099_buildRequest=function(R){var A=_.Hk().get("gsml","");A&&(R.safetyModeLockerObfuscatedGaiaId=A);R.userInterfaceTheme=_.bk(!0);_.fo()?R.deviceTheme="DEVICE_THEME_SELECTED":_.bpk()?R.deviceTheme="DEVICE_THEME_SUPPORTED":R.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var qQ=function(){};
_.H(qQ,Sw);qQ.prototype.getApiPaths=function(){return blS};
qQ.prototype.getExtension=function(R){return _.n(R,W5z)};
qQ.prototype.JSC$13099_buildRequest=function(R,A){if(A&&A.requestType&&(R.requestType=A.requestType,A.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||A.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var Y=A.nextUrl;Y&&(_.UT6(Y)||PU(Y))&&(R.nextNavendpoint={urlEndpoint:{url:Y}})}A&&A.channelSwitcherQuery&&(R.channelSwitcherQuery=A.channelSwitcherQuery);A&&A.triggerChannelCreation&&(R.triggerChannelCreation=A.triggerChannelCreation);var P;if(A==null?0:(P=A.contentOwnerConfig)==
null?0:P.externalContentOwnerId)R.contentOwnerConfig=A.contentOwnerConfig;R.callCircumstance=A&&A.requestType&&A.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var E,z;A=R==null?void 0:(E=R.context)==null?void 0:(z=E.user)==null?void 0:z.onBehalfOfUser;if(A!==void 0){R.obfuscatedSelectedGaiaId=A;var c,M;R==null||(c=R.context)==null||(M=c.user)==null||delete M.onBehalfOfUser}var N,y;if(E=R==null?void 0:(N=R.context)==null?void 0:(y=N.user)==null?
void 0:y.serializedDelegationContext)R.selectedSerializedDelegationContext=E};var LR=function(){};
_.H(LR,Sw);LR.prototype.getApiPaths=function(){return pwA};
LR.prototype.getExtension=function(R){return _.n(R,ceN)};
LR.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var dD=function(){};
_.H(dD,Sw);dD.prototype.getApiPaths=function(){return ZlE};
dD.prototype.getExtension=function(R){return _.n(R,_.Hr7)};
dD.prototype.JSC$13099_buildRequest=function(R,A){if(A=A.createBroadcastRequest)R.useMasks=A.useMasks,R.broadcastType=A.broadcastType,R.broadcastSource=A.broadcastSource,R.broadcastMetadata=A.broadcastMetadata,R.broadcastMetadataMask=A.broadcastMetadataMask,R.videoMetadata=A.videoMetadata,R.videoMetadataMask=A.videoMetadataMask,R.liveChatSettingsUpdate=A.liveChatSettingsUpdate,R.liveChatSettingsUpdateMask=A.liveChatSettingsUpdateMask,R.cloneVideoId=A.cloneVideoId,R.cloneWithOverrides=A.cloneWithOverrides,
R.targetEntity=A.targetEntity,R.scheduledRedirectMetadata=A.scheduledRedirectMetadata};var Rt=function(){};
_.H(Rt,Sw);Rt.prototype.getApiPaths=function(){return eEG};
Rt.prototype.getExtension=function(R){return _.n(R,JSf)};
Rt.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.params&&(R.params=A.params);Y.questionText&&(R.questionText=Y.questionText);Y.optionText&&Y.optionText.length>0&&(R.optionText=Y.optionText)};var A2=function(){};
_.H(A2,Sw);A2.prototype.getApiPaths=function(){return dvG};
A2.prototype.getExtension=function(R){return _.n(R,NkS)};
A2.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var Yf=function(){};
_.H(Yf,Sw);Yf.prototype.getApiPaths=function(){return MLN};
Yf.prototype.getExtension=function(R){return _.n(R,cSZ)};
Yf.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var PE=function(){};
_.H(PE,Sw);PE.prototype.getApiPaths=function(){return Nyz};
PE.prototype.getExtension=function(R){return _.n(R,OUb)};
PE.prototype.JSC$13099_buildRequest=function(R,A,Y){A.params&&(R.params=A.params);A.continuation&&(R.continuation=A.continuation);Y.currentPlayerState&&Y.currentPlayerState.playerOffsetMs&&(R.currentPlayerState={playerOffsetMs:Y.currentPlayerState.playerOffsetMs.toString()})};var Ev=function(){};
_.H(Ev,Sw);Ev.prototype.getApiPaths=function(){return VLq};
Ev.prototype.getExtension=function(R){return _.n(R,xBb)};
Ev.prototype.JSC$13099_buildRequest=function(R,A,Y){A.params&&(R.params=A.params);Y.continuation&&(R.continuation=Y.continuation);"hidden"in Y&&(R.webClientInfo={isDocumentHidden:Y.hidden});Y.isInvalidationTimeoutRequest&&(R.isInvalidationTimeoutRequest=Y.isInvalidationTimeoutRequest);Y.invalidationPayload&&(A=lVA(_.eP(EK(Y.invalidationPayload))),R.invalidationPayloadLastPublishAtUsec=I2(A,2));Y.reloadActionPanel&&(R.reloadActionPanel=Y.reloadActionPanel);Y.fullReload&&(R.fullReload=Y.fullReload);
Y.currentPlayerState&&(R.currentPlayerState=Y.currentPlayerState)};var zC=function(){};
_.H(zC,Sw);zC.prototype.getApiPaths=function(){return SHG};
zC.prototype.getExtension=function(R){return _.n(R,VJG)};
zC.prototype.JSC$13099_buildRequest=function(R,A){R.params=A.params};var iR=function(){};
_.H(iR,Sw);iR.prototype.getApiPaths=function(){return szS};
iR.prototype.getExtension=function(R){return _.n(R,DNz)};
iR.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var lR=function(){};
_.H(lR,Sw);lR.prototype.getApiPaths=function(){return JCb};
lR.prototype.getExtension=function(R){return _.n(R,UNb)};
lR.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var xf=function(){};
_.H(xf,Sw);xf.prototype.getApiPaths=function(){return IPZ};
xf.prototype.getExtension=function(R){return _.n(R,ySb)};
xf.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var cE=function(){};
_.H(cE,Sw);cE.prototype.getApiPaths=function(){return WuS};
cE.prototype.getExtension=function(R){return _.n(R,mBN)};
cE.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var Ov=function(){};
_.H(Ov,Sw);Ov.prototype.getApiPaths=function(){return hvf};
Ov.prototype.getExtension=function(R){return _.n(R,sYH)};
Ov.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var M7=function(){};
_.H(M7,Sw);M7.prototype.getApiPaths=function(){return uyG};
M7.prototype.getExtension=function(R){return _.n(R,_.TkA)};
M7.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.params&&(R.params=A.params);Y.client_message_id&&(R.clientMessageId=Y.client_message_id);Y.recaptcha_token&&(R.recaptchaToken=Y.recaptcha_token);Y.rich_message&&Y.rich_message.text_segments?(A=Y.rich_message.text_segments.map(function(P){var E={};P.text&&(E.text=P.text);P.emoji_id&&(E.emojiId=P.emoji_id);return E}),R.richMessage={textSegments:A}):Y.message&&(R.message=Y.message);
Y.currentPlayerState&&(R.currentPlayerState=Y.currentPlayerState)};var sv=function(){};
_.H(sv,Sw);sv.prototype.getApiPaths=function(){return evD};
sv.prototype.getExtension=function(R){return _.n(R,QyH)};
sv.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var N7=function(){};
_.H(N7,Sw);N7.prototype.getApiPaths=function(){return Aif};
N7.prototype.getExtension=function(R){return _.n(R,gIZ)};
N7.prototype.JSC$13099_buildRequest=function(R,A,Y){A.isUserInitiated&&(R.isUserInitiated=A.isUserInitiated);A.initiationSource&&(R.initiationSource=A.initiationSource);Y.locationInfo&&(R.context.client.locationInfo=Y.locationInfo)};var gP=function(){};
_.H(gP,Sw);gP.prototype.getApiPaths=function(){return Ku7};
gP.prototype.getExtension=function(R){return _.n(R,rXA)};
gP.prototype.JSC$13099_buildRequest=function(R,A,Y){A.metadataUpdateRequest&&(A=A.metadataUpdateRequest,R.encryptedVideoId=A.encryptedVideoId,A.liveChat&&(A=A.liveChat,R.liveChat||(R.liveChat={}),A.performAsExternalChannelId&&(R.liveChat.performAsExternalChannelId=A.performAsExternalChannelId),A.source&&(R.liveChat.source=A.source)));var P;if(Y==null?0:(P=Y.liveChat)==null?0:P.liveChatSettings)R.liveChat||(R.liveChat={}),Y=Y.liveChat.liveChatSettings,R.liveChat.newLiveChatSettings=Y,R.liveChat.newLiveChatSettingsMask||
(R.liveChat.newLiveChatSettingsMask={}),Y.emojiReactionSet&&(R.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var nV=function(){};
_.H(nV,Sw);nV.prototype.getApiPaths=function(){return OPZ};
nV.prototype.getExtension=function(R){return _.n(R,_.b_A)};
nV.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.continuation?R.continuation=Y.continuation:A.videoId&&(R.videoId=A.videoId);Y.clientParams&&(R.clientParams=Y.clientParams)};var HE=function(){};
_.H(HE,Sw);HE.prototype.getApiPaths=function(){return yCb};
HE.prototype.getExtension=function(R){return _.n(R,_.eM)};
HE.prototype.JSC$13099_buildRequest=function(R,A){R.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";R.fetchCommentsParams={};A.videoId&&(R.fetchCommentsParams.encryptedVideoId=A.videoId);A.postId&&(R.fetchCommentsParams.postId=A.postId);A.externalChannelId&&(R.fetchCommentsParams.externalChannelId=A.externalChannelId);A.linkedCommentId&&(R.fetchCommentsParams.linkedCommentId=A.linkedCommentId);(0,_.BO.isEmpty)(R.fetchCommentsParams)&&delete R.fetchCommentsParams};var rP=function(){};
_.H(rP,Sw);rP.prototype.getApiPaths=function(){return Z5};
rP.prototype.JSC$13099_buildRequest=function(R){R.browseId="FEnotifications_inbox"};
rP.prototype.getExtension=function(R){return _.n(R,_.mZ)};var Da=function(){};
_.H(Da,Sw);Da.prototype.getApiPaths=function(){return yCb};
Da.prototype.JSC$13099_buildRequest=function(R,A){A.signal==="GET_NOTIFICATIONS_MENU"&&(R.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");A.ctoken&&(R.ctoken=A.ctoken)};
var azH=function(){};
_.H(azH,Da);azH.prototype.getExtension=function(R){return _.n(R,_.mZ)};
var C80=function(){};
_.H(C80,Da);C80.prototype.getExtension=function(R){return _.n(R,WsS)};var Uv=function(){};
_.H(Uv,Sw);Uv.prototype.getApiPaths=function(){return nXA};
Uv.prototype.getExtension=function(R){return _.n(R,_.mZ)};
Uv.prototype.JSC$13099_buildRequest=function(){};var $f=function(){};
_.H($f,Sw);$f.prototype.getApiPaths=function(){return jzS};
$f.prototype.getExtension=function(R){return _.n(R,S77)||void 0};
$f.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params);A.secondaryParams&&(R.secondaryParams=A.secondaryParams)};var Xx=function(){};
_.H(Xx,Sw);Xx.prototype.getApiPaths=function(){return bpq};
Xx.prototype.getExtension=function(R){return _.n(R,Odz)};
Xx.prototype.JSC$13099_buildRequest=function(R,A){A.undo&&(R.undo=A.undo);A.serializedOptOut&&(R.serializedOptOut=A.serializedOptOut);A.serializedRecordInteractionsRequest&&(R.serializedRecordInteractionsRequest=A.serializedRecordInteractionsRequest)};var Sa=function(){};
_.H(Sa,Sw);Sa.prototype.getApiPaths=function(){return Fuq};
Sa.prototype.getExtension=function(R){return _.n(R,MMf)};
Sa.prototype.JSC$13099_buildRequest=function(R,A){A.serializedInteractionsRequest&&(R.serializedRecordNotificationInteractionsRequest=A.serializedInteractionsRequest)};var It=function(){};
_.H(It,Sw);It.prototype.getApiPaths=function(){return ulk};
It.prototype.getExtension=function(R){return _.n(R,wEk)};
It.prototype.JSC$13099_buildRequest=function(R,A,Y){A=A===void 0?{}:A;Y=Y===void 0?{}:Y;A.videoId?R.videoId=A.videoId:A.playlistId&&(R.playlistId=A.playlistId);var P,E=(P=A.offlineWebClientEligibility)!=null?P:Y.offlineWebClientEligibility;E&&(R.offlineWebClientEligibility=E);var z;if(P=(z=A.preferredFormatType)!=null?z:Y.preferredFormatType)R.preferredFormatType=P;var c;if(z=(c=A.lastOfflineQualitySettingsSavedMs)!=null?c:Y.lastOfflineQualitySettingsSavedMs)R.lastOfflineQualitySettingsSavedMs=z;
A.params&&(R.params=A.params)};var KV=function(){};
_.H(KV,Sw);KV.prototype.getApiPaths=function(){return Js};
KV.prototype.getExtension=function(R){return _.n(R,_.oE)};
KV.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.token&&(R.continuation=A.token);Y.formData&&(R.formData=Y.formData)};var WE=function(){};
_.H(WE,Sw);WE.prototype.getApiPaths=function(){return Js};
WE.prototype.getExtension=function(R){return _.n(R,TSA)};
WE.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;R.continuation=Y.continuation};var ja=function(){};
_.H(ja,Sw);ja.prototype.getApiPaths=function(){return Js};
ja.prototype.getExtension=function(R){return _.n(R,_.D7)};
ja.prototype.JSC$13099_buildRequest=function(R,A){var Y,P=A.panelIdentifier||((Y=A.identifier)==null?void 0:Y.tag);P&&(R.panelId=P);var E;if((E=A.globalConfiguration)==null?0:E.params){var z;R.params=(z=A.globalConfiguration)==null?void 0:z.params}};
_.Yh.Object.defineProperties(ja.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bR=function(){};
_.H(bR,Sw);bR.prototype.getApiPaths=function(){return Js};
bR.prototype.getExtension=function(R){return _.n(R,PFb)};
bR.prototype.JSC$13099_buildRequest=function(R,A){A.panelLoadingStrategy&&wqJ(R,A.panelLoadingStrategy)};var fV=function(){};
_.H(fV,Sw);fV.prototype.getApiPaths=function(){return Js};
fV.prototype.getExtension=function(R){return _.n(R,nNZ)};
fV.prototype.JSC$13099_buildRequest=function(R,A){A.loadingStrategy&&wqJ(R,A.loadingStrategy)};var pV=function(){};
_.H(pV,Sw);pV.prototype.getApiPaths=function(){return Js};
pV.prototype.getExtension=function(R){return _.n(R,_.r0)};
pV.prototype.JSC$13099_buildRequest=function(R,A){A.panelLoadingStrategy&&wqJ(R,A.panelLoadingStrategy)};var Fx=function(){};
_.H(Fx,Sw);Fx.prototype.getApiPaths=function(){return Js};
Fx.prototype.getExtension=function(R){return _.n(R,Hd8)};
Fx.prototype.JSC$13099_buildRequest=function(R,A){var Y,P=(Y=A.contentSourcePanelIdentifier)==null?void 0:Y.tag;P&&(R.panelId=P);var E;if((E=A.globalConfiguration)==null?0:E.params){var z;R.params=(z=A.globalConfiguration)==null?void 0:z.params}};var BE=function(){};
_.H(BE,Sw);BE.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
BE.prototype.getExtension=function(R){return _.n(R,reS)};
BE.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var at=function(){};
_.H(at,Sw);at.prototype.getApiPaths=function(){return ciH};
at.prototype.getExtension=function(R){return _.n(R,$N7)};
at.prototype.JSC$13099_buildRequest=function(R,A){A.externalChannelId&&(R.externalChannelId=A.externalChannelId);A.superChatAction&&(R.superChatAction=A.superChatAction);A.superStickersAction&&(R.superStickersAction=A.superStickersAction)};var CV=function(){};
_.H(CV,Sw);CV.prototype.getApiPaths=function(){return lPA};
CV.prototype.getExtension=function(R){return _.n(R,TYE)||_.n(R,efk)};
CV.prototype.JSC$13099_buildRequest=function(R,A){A.videoIds?R.videoIds=A.videoIds:A.videoId&&(R.videoIds=[A.videoId]);A.playlistId&&(R.playlistId=A.playlistId);A.params&&(R.params=A.params);R.excludeWatchLater=!1};var h2=function(){};
_.H(h2,Sw);h2.prototype.getApiPaths=function(){return qbA};
h2.prototype.getExtension=function(R){return _.n(R,_.Pi)};
h2.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.create_playlist_title?R.title=Y.create_playlist_title:A.title&&(R.title=A.title);if(Y.create_playlist_privacy_status&&typeof Y.create_playlist_privacy_status==="number"){a:{var P=Y.create_playlist_privacy_status;if(P!==0){if(P===1){P="PUBLIC";break a}if(P===2){P="UNLISTED";break a}}P="PRIVATE"}R.privacyStatus=P}else A.privacyStatus&&(R.privacyStatus=A.privacyStatus);Y.create_playlist_description&&(R.description=Y.create_playlist_description);A.videoIds&&
(R.videoIds=A.videoIds);A.params&&(R.params=A.params);A.sourcePlaylistId&&(R.sourcePlaylistId=A.sourcePlaylistId)};var ot=function(){};
_.H(ot,Sw);ot.prototype.getApiPaths=function(){return RvS};
ot.prototype.getExtension=function(R){return _.n(R,$JE)};
ot.prototype.JSC$13099_buildRequest=function(R,A){R.playlistId=A.playlistId};var kf=function(){};
_.H(kf,Sw);kf.prototype.getApiPaths=function(){return muA};
kf.prototype.getExtension=function(R){return _.n(R,EN8)};
kf.prototype.JSC$13099_buildRequest=function(R,A){A.playlistId&&(R.playlistId=A.playlistId);A.params&&(R.params=A.params)};var GC=function(){};
_.H(GC,Sw);GC.prototype.getApiPaths=function(){return pfA};
GC.prototype.getExtension=function(R){return _.n(R,_.qN)||void 0};
GC.prototype.JSC$13099_buildRequest=function(R,A){A.actions&&(R.actions=A.actions);A.params&&(R.params=A.params);A.playlistId&&(R.playlistId=A.playlistId)};var Za=function(){};
_.H(Za,Sw);_.l=Za.prototype;_.l.getApiPaths=function(){return ByE};
_.l.getExtension=function(R){return _.n(R,_.SI)};
_.l.JSC$13099_buildRequest=function(R,A){A.videoId&&(R.playerRequest={videoId:A.videoId},A.playerParams&&(R.playerRequest.params=A.playerParams),A.racyCheckOk&&(R.playerRequest.racyCheckOk=!!A.racyCheckOk),A.contentCheckOk&&(R.playerRequest.contentCheckOk=!!A.contentCheckOk));A.params&&(R.params=A.params);A.inputType&&(R.inputType=A.inputType);R.disablePlayerResponse=!0};
_.l.getRequestConfig=function(R){var A;(R=this.JSC$13106_getStoreKey(R))&&(A={storeStrategy:{storeKey:R}});_.v("web_log_reels_ticks")&&(A=A||{},A.requestTick="r_wrs",A.responseTick="r_wrr");return A};
_.l.JSC$13106_getStoreKey=function(R){R=this.getExtension(R);if(_.v("shorts_controller_retrieve_seedless_sequence_v2")){if((R==null?void 0:R.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.q4("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if(_.v("web_shorts_prefetch_service_enabled")&&R!=null&&R.videoId){var A={videoId:R.videoId};R.params&&(A.params=R.params);return _.q4("reel_item_watch",A)}};var t2=function(){};
_.H(t2,Sw);_.l=t2.prototype;_.l.getApiPaths=function(){return aPE};
_.l.getExtension=function(R){return _.n(R,_.SI)};
_.l.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;R.sequenceParams=A.sequenceParams;var P;((P=Y)==null?0:P.contentPlaybackContext)&&_.v("web_shorts_prefetch_service_enabled")&&(R.playbackContext={contentPlaybackContext:Y.contentPlaybackContext})};
_.l.JSC$13106_getStoreKey=function(R){if(_.v("web_enable_delay_shorts_sequence_call")||_.v("shorts_controller_retrieve_seedless_sequence_v2"))if(R=this.getExtension(R),R==null?0:R.sequenceParams)return _.q4("reel_watch_sequence",{sequenceParams:R.sequenceParams})};
_.l.getRequestConfig=function(R){R=this.JSC$13106_getStoreKey(R);var A;R&&(A={storeStrategy:{storeKey:R}});_.v("reel_watch_sequence_request_log_ticks")&&(A=A||{},A.requestTick="r_wsrs",A.responseTick="r_wsrr",A.processorTick="r_wsrp");return A};
var wP=function(){};
_.H(wP,Sw);wP.prototype.getApiPaths=function(){return aPE};
wP.prototype.getExtension=function(R){return _.n(R,_.oE)};
wP.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.token&&(R.continuation=A.token);var P;((P=Y)==null?0:P.contentPlaybackContext)&&_.v("web_shorts_prefetch_service_enabled")&&(R.playbackContext={contentPlaybackContext:Y.contentPlaybackContext})};
wP.prototype.getRequestConfig=function(R){R=this.JSC$13106_getStoreKey(R);var A;R&&(A={storeStrategy:{storeKey:R}});_.v("reel_watch_sequence_request_log_ticks")&&(A=A||{},A.requestTick="r_wsrs",A.responseTick="r_wsrr",A.processorTick="r_wsrp");return A};var uR=function(){};
_.H(uR,Sw);uR.prototype.getApiPaths=function(){return EXb};
uR.prototype.getExtension=function(R){return _.n(R,_.z$S)};
uR.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.flagAction&&(R.action=A.flagAction);A.flagRequestType&&(R.flagRequestType=A.flagRequestType);A.additionalDetailCheckboxChecked&&(R.additionalDetailCheckboxChecked=A.additionalDetailCheckboxChecked);A.legalCheckboxChecked&&(R.legalCheckboxChecked=A.legalCheckboxChecked);A={};Y.flag_issue_type!==void 0&&(A.issue=Y.flag_issue_type);Y.flag_affiliation!==void 0&&(A.affiliation=Y.flag_affiliation);Y.flag_full_name&&(A.fullName=Y.flag_full_name);
Object.keys(A).length&&(R.legalReportDetails=A);if(Y.flag_description||Y.text)R.userComments=Y.flag_description||Y.text;A={};Y.minutes!==void 0&&Y.seconds!==void 0&&(A.minutes=Y.minutes,A.seconds=Y.seconds);Y.vss_id&&(A.vssId=Y.vss_id);Object.keys(A).length&&(R.videoReportDetails=A);A={};Y.video_ids&&(A.videoIds=Y.video_ids);Y.impersonated_channel_url&&(A.impersonatedChannelUrl=Y.impersonated_channel_url);Object.keys(A).length&&(R.channelAbuseReportDetails=A)};
_.Yh.Object.defineProperties(uR.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var ea=function(){};
_.H(ea,Sw);ea.prototype.getApiPaths=function(){return OpG};
ea.prototype.getExtension=function(R){return _.n(R,IGA)};
ea.prototype.JSC$13099_buildRequest=function(R,A){A.blockedForKidsContent&&(R.blockedForKidsContent=A.blockedForKidsContent)};var q7=function(){};
_.H(q7,Sw);q7.prototype.getApiPaths=function(){return oXb};
q7.prototype.getExtension=function(R){return _.n(R,uxk)};
q7.prototype.JSC$13099_buildRequest=function(R,A,Y){R.params=A.params;Y.impersonated_channel_url&&(R.impersonatedChannelUrl=Y.impersonated_channel_url)};var LV=function(){};
_.H(LV,Sw);LV.prototype.getApiPaths=function(){return $ub};
LV.prototype.getExtension=function(R){return _.n(R,_.KwA)};
LV.prototype.JSC$13099_buildRequest=function(R,A){A.items&&(R.items=A.items);A.kidGaiaId&&(R.kidGaiaId=A.kidGaiaId)};var dP=function(){};
_.H(dP,Sw);dP.prototype.getApiPaths=function(){return xuG};
dP.prototype.getExtension=function(R){return _.n(R,_.Js7)};
dP.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params);A.targetId&&(R.targetId=A.targetId)};var RD=function(){};
_.H(RD,Sw);RD.prototype.getApiPaths=function(){return tL8};
RD.prototype.getExtension=function(R){return _.n(R,jFq)};
RD.prototype.JSC$13099_buildRequest=function(R,A){A.externalVideoId&&(R.externalVideoId=A.externalVideoId);A.query&&(R.query=A.query);A.sourceTimelines&&(R.sourceTimelines=A.sourceTimelines)};var AY=function(){};
_.H(AY,Sw);AY.prototype.getApiPaths=function(){return wfZ};
AY.prototype.getExtension=function(R){return _.n(R,_.oE)||void 0};
AY.prototype.JSC$13099_buildRequest=function(R,A){A.token&&(R.continuation=A.token)};
_.hqY=function(){};
_.H(_.hqY,Sw);_.l=_.hqY.prototype;_.l.getApiPaths=function(){return wfZ};
_.l.getExtension=function(R){return _.n(R,_.Ud)||void 0};
_.l.isNavigationCommand=function(){return!0};
_.l.JSC$13106_getStoreKey=function(R,A){A=A===void 0?{}:A;if(!A.disableCache&&(R=this.getExtension(R))&&R.query)return A={query:R.query},R.params&&(A.params=R.params),_.q4("search",A)};
_.l.JSC$13099_buildRequest=function(R,A,Y){A.query&&(R.query=A.query);A.params&&(R.params=A.params);if(!_.v("web_forward_suggest_stats_killswitch")){var P=_.n(A,q8A);P&&(R.suggestStats=P)}var E;!_.v("kevlar_searchbox_stats_killswitch")&&((E=Y.tempData)==null?0:E.gs_l)&&!_.n(A,q8A)&&(R.webSearchboxStatsUrl="/search?oq="+(Y.tempData.oq||"")+"&gs_l="+Y.tempData.gs_l);var z;if((z=Y.tempData)==null?0:z.entityMid)A=R.suggestionSearchParams||{},A.entityMid=Y.tempData.entityMid,R.suggestionSearchParams=A;
if(_.v("enable_desktop_vdcbg_components")||_.v("enable_inline_muted_playback_on_web_search"))Y=_.Hk().getFlag(186),R.inlineSettingStatus=Y?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON"};
_.l.getRequestConfig=function(R,A){A=A===void 0?{}:A;R=this.JSC$13106_getStoreKey(R,A);var Y;R&&(Y={storeStrategy:{storeKey:R}});_.v("web_log_search_ticks_ks")||(Y=Y||{},Y.requestTick="sr_s",Y.responseTick="sr_r");return Y};var YC=function(){};
_.H(YC,Sw);YC.prototype.getApiPaths=function(){return vX7};
YC.prototype.getExtension=function(R){return _.n(R,aY8)};
YC.prototype.JSC$13099_buildRequest=function(R,A){A.serializedGetSharingProviderDataParams&&(R.serializedGetSharingProviderDataParams=A.serializedGetSharingProviderDataParams)};var PN=function(){};
_.H(PN,Sw);PN.prototype.getApiPaths=function(){return gXH};
PN.prototype.getExtension=function(R){return _.n(R,R$A)};
PN.prototype.JSC$13099_buildRequest=function(R,A){A.endpoint&&(R.endpoint=A.endpoint);A.action&&(R.action=A.action)};var E1=function(){};
_.H(E1,Sw);E1.prototype.getApiPaths=function(){return ACH};
E1.prototype.getExtension=function(R){return _.n(R,XiE)};
E1.prototype.JSC$13099_buildRequest=function(R,A){R.videoId=A.videoId;A.scheduledRedirectMetadataSourceVideoId&&(R.scheduledRedirectMetadata={sourceVideoId:A.scheduledRedirectMetadataSourceVideoId})};var za=function(){};
_.H(za,Sw);za.prototype.getApiPaths=function(){return Luz};
za.prototype.getExtension=function(R){return _.n(R,_.XXb)};
za.prototype.JSC$13099_buildRequest=function(R,A){R.params=A.params;R.correctionText=A.correctionText};var i3=function(){};
_.H(i3,Sw);i3.prototype.getApiPaths=function(){return ZNP};
i3.prototype.getExtension=function(R){return _.n(R,_.b$A)};
i3.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params);R.searchQuery=A.searchQuery;R.languageCode=A.languageCode;R.kind=A.kind;R.name=A.name;R.externalVideoId=A.externalVideoId};var l3=function(){};
_.H(l3,Sw);l3.prototype.getApiPaths=function(){return VnG};
l3.prototype.getExtension=function(R){return _.n(R,ouZ)};
l3.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.params=A.params)};var xC=function(R){this.JSC$18136_storeWithEntities=R};
_.H(xC,Sw);xC.prototype.getApiPaths=function(){return kVb};
xC.prototype.getExtension=function(R){return _.n(R,GuS)||_.n(R,tVq)};
xC.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.client_data&&(R.clientData=Y.client_data);if(A.commerceActionConfig){var P=A.commerceActionConfig;A=P.actionId;P=P.commerceActionParams;A&&(R.actionId=A);P&&(R.commerceActionParams=P)}else{var E=A.actionId,z=A.commerceActionParams;Y=A.entityKeys;E&&(R.actionId=E);z&&(R.commerceActionParams=z);var c;A=(P=this.JSC$18136_storeWithEntities)==null?void 0:(c=P.getState())==null?void 0:c.entities;if(Y&&A){P=[];c=_.x(Y);for(Y=c.next();!Y.done;Y=c.next())if(E=
Y.value,Y=_.M6(E).entityType,E=_.mc(A,Y,E))z={},P.push((z[Y]=E,z));R.entityMutationPayloads=P}}};
xC.prototype.getRequestConfig=function(R){var A,Y=(A=_.n(R,GuS))==null?void 0:A.requestSequenceType;if(Y&&R.clickTrackingParams&&Y!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:R.clickTrackingParams,sequenceType:Y}}};
xC[xk]=[AV];var cN=function(){};
_.H(cN,Sw);cN.prototype.getApiPaths=function(){return JiS};
cN.prototype.getExtension=function(R){return _.n(R,_.Mtz)};
cN.prototype.JSC$13099_buildRequest=function(R,A){A.feedbackData&&(R.feedbackData=A.feedbackData);A.params&&(R.itemParams=A.params)};
_.Yh.Object.defineProperties(cN.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O1=function(){};
_.H(O1,Sw);O1.prototype.getApiPaths=function(){return yiD};
O1.prototype.getExtension=function(R){return _.n(R,sJb)};
O1.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.payments_payload&&(R.paymentsPayload=Y.payments_payload);Y.offer_params&&(R.offerParams=Y.offer_params);A.transactionParams&&(R.transactionParams=A.transactionParams)};var Mn=function(){};
_.H(Mn,Sw);Mn.prototype.getApiPaths=function(){return mW7};
Mn.prototype.getExtension=function(R){return _.n(R,_.NI7)};
Mn.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.buybucketParams&&(R.buybucketData={params:A.buybucketParams},A.stickerParams?R.buybucketData.stickerParams=A.stickerParams:(Y.rich_chat_message?R.buybucketData.richChatMessage=Y.rich_chat_message:Y.chat_message_text&&(R.buybucketData.chatMessageText=Y.chat_message_text),Y.purchase_price_micros&&(R.buybucketData.purchasePriceMicros=Y.purchase_price_micros.toString())));A.donationAmountMicros&&(R.tipAmountMicros=A.donationAmountMicros,
A.tipParams&&(R.tipParams=A.tipParams));A.offerParams&&(R.offerParams=A.offerParams);A.productData&&(R.productData=A.productData);A.transactionParams&&(R.transactionParams=A.transactionParams)};var s1=function(){};
_.H(s1,Sw);s1.prototype.getApiPaths=function(){return T7N};
s1.prototype.getExtension=function(R){return _.n(R,yB7)};
s1.prototype.JSC$13099_buildRequest=function(R,A){A.updateFopParams&&(R.updateFopParams=A.updateFopParams)};var Nn=function(){};
_.H(Nn,Sw);Nn.prototype.getApiPaths=function(){return Q_z};
Nn.prototype.getExtension=function(R){return _.n(R,_.ed)};
Nn.prototype.JSC$13099_buildRequest=function(R,A){A.couponCode&&(R.couponCode=A.couponCode);A.params&&(R.itemParams=A.params)};var Vl=function(){};
_.H(Vl,Sw);Vl.prototype.getApiPaths=function(){return vmE};
Vl.prototype.getExtension=function(R){return _.n(R,_.ZHN)};
Vl.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;A.params&&(R.params=A.params);Y.ctk&&(R.clientToken=Y.ctk)};var JY=function(R){this.JSC$18171_storeWithEntities=R};
_.H(JY,Sw);JY.prototype.getApiPaths=function(){return gmZ};
JY.prototype.getExtension=function(R){return _.n(R,_.lS)};
JY.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.purchase_price_micros&&(R.productData={pdgData:{purchasePriceMicros:Y.purchase_price_micros.toString()}},Y.rich_chat_message&&(R.productData.pdgData.richChatMessage=Y.rich_chat_message),Y.currency_code&&(R.productData.pdgData.currencyCode=Y.currency_code));A.transactionParams&&(R.transactionParams=A.transactionParams);A.clientLocationContext&&(R.clientLocationContext=A.clientLocationContext);Y.payments_payload&&(R.paymentsPayload=Y.payments_payload);
Y.funds_guarantee_callback_client_data&&(R.fundsGuaranteeCallbackClientData=Y.funds_guarantee_callback_client_data);var P,E;Y=(P=this.JSC$18171_storeWithEntities)==null?void 0:(E=P.getState())==null?void 0:E.entities;if(A.entityKeys&&Y){P=[];A=_.x(A.entityKeys);for(E=A.next();!E.done;E=A.next()){var z=E.value;E=_.M6(z).entityType;if(z=_.mc(Y,E,z)){var c={};P.push((c[E]=z,c))}}R.entityMutationPayloads=P}};
JY[xk]=[AV];var yl=function(){};
_.H(yl,Sw);yl.prototype.getApiPaths=function(){return nmb};
yl.prototype.getExtension=function(R){return _.n(R,VtG)};
yl.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;Y.backend_analytics&&(R.serializedBackendAnalyticsEvent=Y.backend_analytics);A.offerParams&&(R.offerParams=A.offerParams)};var m2=function(){};
_.H(m2,Sw);m2.prototype.getApiPaths=function(){return Q_z};
m2.prototype.getExtension=function(R){return _.n(R,KDI)};
m2.prototype.JSC$13099_buildRequest=function(R,A){A.params&&(R.itemParams=A.params)};var Ta=function(){};
_.H(Ta,Sw);Ta.prototype.getApiPaths=function(){return HPN};
Ta.prototype.getExtension=function(R){return _.n(R,_.L4S)};
Ta.prototype.JSC$13099_buildRequest=function(R,A,Y){Y.resume_time_ms&&(R.resumeTimeMs=Y.resume_time_ms);A.pauseParams&&(R.pauseParams=A.pauseParams)};var Ql=function(){};
_.H(Ql,Sw);Ql.prototype.getApiPaths=function(){return riN};
Ql.prototype.getExtension=function(R){return _.n(R,_.JBD)};
Ql.prototype.JSC$13099_buildRequest=function(R,A,Y){Y=Y===void 0?{}:Y;Y.c&&(R.redeemCode=Y.c);Y.rd&&(R.riskData=Y.rd);Y.ctk&&(R.clientToken=Y.ctk)};var vN=function(){};
_.H(vN,Sw);vN.prototype.getApiPaths=function(){return DWN};
vN.prototype.getExtension=function(R){return _.n(R,_.dUf)};
vN.prototype.JSC$13099_buildRequest=function(R,A){A.resumeParams&&(R.resumeParams=A.resumeParams)};var gm=function(R,A){this.clientName=R;this.defaultExpirationDelayMs=A};
gm.prototype.put=function(R,A){var Y=this,P;return _.O(function(E){P=Object.assign({},A.data);P.key=R;P.clientName=Y.clientName;P.expireTimestampMs===void 0&&(P.expireTimestampMs=(Math.round((0,_.iB)())+Y.defaultExpirationDelayMs).toString());return E.return(Y.putInternal(R,P))})};
gm[xk]=[e$,w3g];var oZY=function(){gm.apply(this,arguments);this.JSC$18201_responseStore=new Map};
_.H(oZY,gm);_.l=oZY.prototype;_.l.get=function(R){var A=this;return _.O(function(Y){return Y.return(Wf(A,R))})};
_.l.putInternal=function(R,A){var Y=this,P,E,z;return _.O(function(c){P=Y.defaultExpirationDelayMs;A.expireTimestampMs&&(P=Number(A.expireTimestampMs)-Math.round((0,_.iB)()),E=_.cU("mweb_override_response_store_expiration_ms"),E>0&&E<P&&(P=E));z=setTimeout(function(){Y.remove(R)},P);
Y.JSC$18201_responseStore.set(R,{entryData:A,timer:z});_.XH(c)})};
_.l.remove=function(R){var A=this;return _.O(function(Y){kNN(A,R);_.XH(Y)})};
_.l.removeAll=function(){var R=this;return _.O(function(A){R.JSC$18201_responseStore.forEach(function(Y){clearTimeout(Y.timer)});
R.JSC$18201_responseStore.clear();_.XH(A)})};
_.l.has=function(R){return!!this.JSC$18201_responseStore.get(R)};
_.l.getKeys=function(){return this.JSC$18201_responseStore.keys()};
var Wf=function(R,A){if(R=R.JSC$18201_responseStore.get(A))return new _.Kp(R.entryData)},kNN=function(R,A){var Y=R.JSC$18201_responseStore.get(A);
Y&&(clearTimeout(Y.timer),R.JSC$18201_responseStore.delete(A))};var uCl;var L9J=function(R,A,Y){gm.call(this,R,A);this.token=Y};
_.H(L9J,gm);_.l=L9J.prototype;_.l.get=function(R){var A=this,Y,P;return _.O(function(E){return E.nextAddress==1?E.yield(qL6(A.token),2):E.nextAddress!=3?(Y=E.yieldResult,E.yield(Y.get("ResponseStore",[R,A.clientName]),3)):(P=E.yieldResult)?E.return(new _.Kp(P)):E.return(void 0)})};
_.l.putInternal=function(R,A){var Y=this,P;return _.O(function(E){if(E.nextAddress==1)return E.yield(qL6(Y.token),2);P=E.yieldResult;return E.yield(P.put("ResponseStore",A),0)})};
_.l.remove=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(qL6(A.token),2);Y=P.yieldResult;return P.return(Y.delete("ResponseStore",[R,A.clientName]))})};
_.l.removeAll=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(qL6(R.token),2);A=Y.yieldResult;return Y.yield(mKq(A,IDBKeyRange.only(R.clientName)),0)})};
_.l.has=function(){throw Error("Zi");};_.nM=new _.cP("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var GNY=function(R){var A;this.stateTagsData=(A=R.responseContext)==null?void 0:A.stateTags},ZDQ=function(R){var A;
return((A=R.stateTagsData)==null?void 0:A.stateTagsModified)||[]};var tHY;tHY=function(R){this.JSC$18214_responseStore=R};
_.C6=function(R,A,Y){if(!_.v("state_tags_killswitch")){var P=new GNY(A);if(ZDQ(P).length>0){var E=R.JSC$18214_responseStore.getKeys();E=_.x(E);for(var z=E.next();!z.done;z=E.next()){z=z.value;var c=Wf(R.JSC$18214_responseStore,z);if(c){var M=_.dc(c);a:{var N=void 0;c=ZDQ(P);M=((N=(new GNY(M)).stateTagsData)==null?void 0:N.relevantStateTags)||[];N=_.x(M);for(M=N.next();!M.done;M=N.next())if(M=M.value,M.stateTag!=null&&c.includes(M.stateTag)&&M.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){c=
!0;break a}c=!1}c&&kNN(R.JSC$18214_responseStore,z)}}}}var y;P=(y=A.responseContext)==null?void 0:y.maxAgeSeconds;Y&&P&&Number(P)>0&&(A=MV(A,P),R.JSC$18214_responseStore.put(Y,new _.Kp(A)))};
tHY.prototype.handleResponse=function(R,A){if(!A)throw Error("$i");var Y,P;A=(Y=A.config)==null?void 0:(P=Y.storeStrategy)==null?void 0:P.storeKey;_.C6(this,R,A)};
tHY[xk]=[_.Iz];_.zTk=new _.cP("STORE_RESPONSE_PROCESSOR_TOKEN");var wSG=function(R){this.JSC$18217_responseStore=R};
wSG.prototype.handleResponse=function(R,A){if(A.input.match(_.Pr(aPE))){var Y;if(R==null?0:(Y=R.entries)==null?0:Y.length)for(R=_.x(R.entries),A=R.next();!A.done;A=R.next()){Y=A.value.command;var P=void 0;A=(P=_.n(Y,_.SI))==null?void 0:P.unserializedPrefetchData;if(!Y||!A)break;P=(new Za).JSC$13106_getStoreKey(Y);var E=_.n(A,dNb),z=void 0,c=void 0,M=void 0,N=_.cU("web_shorts_prefetch_service_ttl_seconds")>0?_.cU("web_shorts_prefetch_service_ttl_seconds"):Number((M=(z=E)==null?void 0:(c=z.responseContext)==
null?void 0:c.maxAgeSeconds)!=null?M:3600);P&&N>0&&(E=MV(E,N),this.JSC$18217_responseStore.put(P,new _.Kp(E)));Y=(new br).JSC$13106_getStoreKey(Y);A=_.n(A,pM8);z=E=P=void 0;c=_.cU("web_shorts_prefetch_service_ttl_seconds")>0?_.cU("web_shorts_prefetch_service_ttl_seconds"):Number((z=(P=A)==null?void 0:(E=P.responseContext)==null?void 0:E.maxAgeSeconds)!=null?z:3600);Y&&c>0&&(A=MV(A,c),this.JSC$18217_responseStore.put(Y,new _.Kp(A)))}}};
wSG[xk]=[_.Iz];var ub9=function(R,A){this.innertubeTransportService=R;this.JSC$18220_commandHandler=A};
ub9.prototype.submitForm=function(R,A,Y,P,E){var z=this,c,M,N,y,m,T,Q;return _.O(function(g){if(g.nextAddress==1)return c={submitId:R,formData:A,submitBehavior:Y,params:P},M=_.Pr(du8),g.yield(_.Ad(z.innertubeTransportService,c,M,E),2);N=g.yieldResult;if(!N)return g.return(Promise.reject(new _.XN("Submit API returned an undefined response. Submit ID: "+R)));y=N;(Q=(m=y)==null?void 0:(T=m.submitResult)==null?void 0:T.command)&&z.JSC$18220_commandHandler.resolveCommand(Q);return g.return(y)})};
ub9[xk]=[_.Co,_.ls];var HN=function(){this.scheduler=_.n6()},eqj;
HN.prototype.pause=function(){throw Error("aj");};
HN.prototype.resume=function(){throw Error("aj");};
HN.prototype.queue=function(R){var A=this,Y=_.ei(),P=_.Ua(this.scheduler,function(){try{var E;if(_.Qp.instance)var z=_.Qp.instance;else{var c=new _.XN("Error: Unexpected uninitialized CommandHandler.");_.bj(c);z=void 0}(E=z)==null||E.resolveCommand(R.command);Y.resolve()}catch(M){Y.reject(M)}});
Y.promise.thenCatch(function(E){E instanceof _.Fn&&A.scheduler.cancelJob(P)});
return Y.promise};
HN.prototype.queueAll=function(R){var A=new Map;R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,A.set(Y.id,this.queue(Y));return A};var LSj=function(R,A){var Y=this;this.taskModel=R;this.onTaskCancelledCallback=A;this.resolver=_.ei();R=R.proto.prefetchConfig;if(!R)throw Error("bj");if(!R.prefetchAction)throw Error("cj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(P){P instanceof _.Fn&&(qAf(Y,Y.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),Y.onTaskCancelledCallback(Y.taskModel.id,Y.jobId),Y.tick("pcc"));
throw P;});
this.timerName=this.taskModel.id;_.pj(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
LSj.prototype.getPriority=function(){switch(this.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}};
var qAf=function(R,A){_.bE({prefetchInfo:{cancellationReason:A}},R.timerName)};
LSj.prototype.tick=function(R){_.Fh(R,void 0,this.timerName)};var D1=function(){var R=this;this.scheduler=_.n6();this.maxInflightTasks=_.cU("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.cU("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new ZCA;this.onTaskCancelled=function(A,Y){Y&&R.scheduler.cancelJob(Y);dGf(R,A);rm(R,3)}},RQG=function(){D1.instance||(D1.instance=new D1);
return D1.instance};
D1.prototype.pause=function(){this.prefetchCoordinatorState=0};
D1.prototype.resume=function(){rm(this,0)};
D1.prototype.queue=function(R){R=A9m(this,R);rm(this,1);return R};
D1.prototype.queueAll=function(R){var A=new Map;R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,A.set(Y.id,A9m(this,Y));rm(this,1);return A};
var A9m=function(R,A){var Y=R.allPrefetchTasks.get(A.id);if(Y)return Y.cancellablePromise;try{var P=new LSj(A,R.onTaskCancelled)}catch(z){return _.j5(z)}Y=P;Y.tick("pcq");var E={prefetchInfo:{taskId:Y.taskModel.id,isPrefetch:!0,fetchAction:Y.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:Y.taskModel.command.clickTrackingParams}};Y.taskModel.csn&&(E.clientScreenNonce=Y.taskModel.csn);_.bE(E,Y.timerName);R.allPrefetchTasks.set(A.id,P);R.drainingHeap.insert(-P.getPriority(),P);return P.cancellablePromise},
rm=function(R,A){R.prefetchCoordinatorState===A&&(R.prefetchCoordinatorState=2,YWH(R))},YWH=function(R){for(var A={};R.prefetchCoordinatorState!==0;A={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(R.inflightPrefetchTasks.size>=R.maxInflightTasks){R.prefetchCoordinatorState=3;break}A.prefetchTask$jscomp$1=R.drainingHeap.remove();if(!A.prefetchTask$jscomp$1){R.prefetchCoordinatorState=1;break}A.taskId$jscomp$3=A.prefetchTask$jscomp$1.taskModel.id;if(R.allPrefetchTasks.has(A.taskId$jscomp$3)){var Y=-1;R.coordinatorTimeoutMs>0&&(Y=_.Ua(R.scheduler,function(P){return function(){U1(R,P.taskId$jscomp$3,Error("dj"))}}(A),R.coordinatorTimeoutMs));
R.inflightPrefetchTasks.set(A.taskId$jscomp$3,Y);if(!R.JSC$18239_commandHandler){if(!_.Qp.instance){U1(R,A.taskId$jscomp$3,Error("ej"));continue}R.JSC$18239_commandHandler=_.Qp.instance}a:switch(A.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":Y=1;break a;default:Y=0}A.prefetchTask$jscomp$1.jobId=R.scheduler.addJob(function(P){return function(){P.prefetchTask$jscomp$1.tick("pcr");try{R.JSC$18239_commandHandler.resolveCommand(P.prefetchTask$jscomp$1.taskModel.command)||
U1(R,P.taskId$jscomp$3,Error("fj"))}catch(E){U1(R,P.taskId$jscomp$3,E)}}}(A),Y,0)}}},Pij=function(R,A){(A=dGf(R,A))!=null&&(A.resolver.resolve(),A.tick("pce"));
rm(R,3)},U1=function(R,A,Y){(A=dGf(R,A,Y))!=null&&(A.resolver.reject(Y),A.tick("pcc"),qAf(A,"CANCELLATION_REASON_ERROR"),Math.random()<=_.cU("prefetch_coordinator_error_logging_sampling_rate")&&(Y=new _.XN("Prefetch Command failed.",A.taskModel.id,Y.message),_.bj(Y)));
rm(R,3)},dGf=function(R,A,Y){var P=R.allPrefetchTasks.get(A);
P?((Y=R.inflightPrefetchTasks.get(A))&&Y!==-1&&R.scheduler.cancelJob(Y),R.inflightPrefetchTasks.delete(A),R.allPrefetchTasks.delete(A)):_.pK(new _.XN("Unexpected missing prefetch task when deleting task.",A,Y==null?void 0:Y.message));return P};var Enn=function(R,A,Y,P,E){this.id=R;this.triggerOn=A;this.cancelOn=Y;this.command=P;this.proto=E};
_.Yh.Object.defineProperties(Enn.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var zQm=function(){this.JSC$18244_prefetchCoordinator=RQG();eqj||(eqj=new HN);this.defaultCoordinator=eqj},ifH;
zQm.getInstance=function(){ifH||(ifH=new zQm);return ifH};
zQm.prototype.get=function(R){switch(R){case 0:return this.JSC$18244_prefetchCoordinator;default:return this.defaultCoordinator}};var $C=function(){this.coordinatorSupplier=zQm.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},c9Q=function(R){var A=_.F9()||void 0,Y=Object.keys(ljY)[0];
if(Y){var P=R.taskIdByTriggerId.get(Y);if(P!=null){R.taskIdByTriggerId.delete(Y);Y=[];P=_.x(P);for(var E=P.next();!E.done;E=P.next())if(E=R.tasks.get(E.value))A!=="UNDEFINED_CSN"&&(E.csn=A),Y.push(E);Y=AIk(Y);A=[];Y=_.x(Y);for(P=Y.next();!P.done;P=Y.next()){E=_.x(P.value);P=E.next().value;E=E.next().value;P=R.coordinatorSupplier.get(P).queueAll(E);P=_.x(P);var z=P.next();for(E={};!z.done;E={taskId$jscomp$9:void 0},z=P.next()){var c=_.x(z.value);z=c.next().value;c=c.next().value;E.taskId$jscomp$9=
z;z=c;A.push(E.taskId$jscomp$9);R.queuedPromisesByTask.set(E.taskId$jscomp$9,_.jS(z,function(M){return function(){xgF(R,M.taskId$jscomp$9)}}(E)))}}}}else _.pK(new _.XN("Unexpected malformed TriggerEvent."))};
$C.prototype.trigger=function(R,A){var Y=this,P=this.tasks.get(R);if(!P||this.queuedPromisesByTask.has(R))return!1;Off(this,R,P.triggerOn);A!=="UNDEFINED_CSN"&&(P.csn=A);A=this.coordinatorSupplier.get(P.taskType).queue(P);this.queuedPromisesByTask.set(R,_.jS(A,function(){xgF(Y,R)}));
return!0};
$C.prototype.cancel=function(R){var A=this.queuedPromisesByTask.get(R);if(A)A.cancel();else return xgF(this,R)};
var xgF=function(R,A){R.queuedPromisesByTask.delete(A);var Y=R.tasks.get(A);if(!Y)return!1;R.tasks.delete(A);Off(R,A,Y.triggerOn);(Y=Rrk(Y.cancelOn))&&(R=R.taskIdByCancelId.get(Y))&&R.delete(A);return!0},Off=function(R,A,Y){(Y=Object.keys(Y)[0])&&(R=R.taskIdByTriggerId.get(Y))&&R.delete(A)};var ljY={taskRegistered:{}},XB=function(){$C.instance||($C.instance=new $C);this.JSC$18253_taskManager=$C.instance};
_.H(XB,zg);
XB.prototype.resolveCommand=function(R){var A=this,Y,P;return _.O(function(E){Y=_.n(R,AQE);if((P=Y)==null||!P.tasks){var z=new _.XN("RegisterTasksCommand is missing tasks.");_.bj(z);return E.return()}z=A.JSC$18253_taskManager;for(var c=_.x(Y.tasks),M=c.next();!M.done;M=c.next())if(M=M.value,M=M.id&&M.triggerOn&&M.cancelOn&&M.command?new Enn(M.id,M.triggerOn,M.cancelOn,M.command,M):void 0,M){var N=Object.keys(M.triggerOn)[0];if(N){var y=Rrk(M.cancelOn);y?(z.tasks.set(M.id,M),z.taskIdByTriggerId.has(N)||z.taskIdByTriggerId.set(N,
new Set),z.taskIdByTriggerId.get(N).add(M.id),z.taskIdByCancelId.has(y)||z.taskIdByCancelId.set(y,new Set),z.taskIdByCancelId.get(y).add(M.id)):_.pK(new _.XN("Unexpected malformed cancelOn field."))}else _.pK(new _.XN("Unexpected malformed triggerOn field."))}else _.pK(new _.XN("Unexpected malformed Task proto."));c9Q(A.JSC$18253_taskManager);_.XH(E)})};var MGm={},sHY=(MGm.rendered={priority:_.v("web_adaptive_early_init")?8:0,callback:function(){var R={};R.numCpu=navigator.hardwareConcurrency;var A={};A.ramGb=_.P3.navigator.deviceMemory;var Y={staticContext:{}};A.ramGb&&Yx8(A.ramGb)&&(Y.staticContext.memoryTotalKbytes=(A.ramGb*1048576).toString());R.numCpu&&Yx8(R.numCpu)&&(Y.staticContext.cpuCores=R.numCpu);if(_.v("web_enable_adaptive_appl_signal")){R={};A=_.Cj("rses_dpj");var P=_.Cj("rsef_dpj");A&&A>0&&P&&P>0&&(A=Math.ceil(P-A),A>0&&(R.loadLatency=
A));R.loadLatency&&Yx8(R.loadLatency)&&(Y.appL=R.loadLatency.toString())}_.Wj("applicationStarted",Y)}},MGm);var NoH=new _.cP("WINDOW_ON_ERROR"),VGY=new _.cP("ERROR_WEIGHT_MAPS"),J90=new _.cP("INIT_ERROR");var y9f={},mgY=(y9f.initialized={priority:10,callback:function(R){R.injector.resolve(J90)()}},y9f);var To9=function(){},QHY=function(){var R=_.Zr("meta_logger_impl");
R||(R=new To9,_.PG("meta_logger_impl",R));return R},vnQ=function(){QHY().csiSubscriptionKey=gwP("meta_logging_csi_event",function(R){var A=R.timerName;
if(R=R.timelineData){_.pj(A,{startTime:R.startTime},A);R.infos&&_.bE(R.infos,A);for(var Y=_.x(Object.keys(R.ticks)),P=Y.next();!P.done;P=Y.next())P=P.value,_.Fh(P,R.ticks[P],A)}})};
To9.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&rhk(this.csiSubscriptionKey)};var gnF={},nnj=(gnF.initialized={priority:10,callback:function(){vnQ()}},gnF);var Hfi=function(R,A){this.innertubeClientName=R;this.JSC$18269_prefCookie=A};
Hfi.prototype.record=function(){if(_.v("web_li_record_binary_eval_tick")){var R=_.Cj("rsef_dpj");var A=_.Cj("rses_dpj");R=R!==void 0&&A!==void 0?Math.round(R-A):void 0;if(R!==void 0&&R>0){A=_.K1(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var Y=this.poolSize;if(!(A.valuesSeen>=1E9)){if(A.valuesSample.length<Y)A.valuesSample.push(R);else{var P=Math.floor(Math.random()*(A.valuesSeen+1));P<Y&&(A.valuesSample[P]=R)}A.valuesSeen+=1}_.Im(this.storagePrefix+"-"+this.innertubeClientName,
A,2592E3);R=A.valuesSample;A=PnI(R);R=R.length<this.poolSize?void 0:A<400?1:A<1700?2:3;R!==void 0&&(this.JSC$18269_prefCookie.set(this.cookiePrefix+this.innertubeClientName,R),this.JSC$18269_prefCookie.save())}}else _.Wd(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18269_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18269_prefCookie.save()};
Hfi[xk]=[e$,X_];var r9m=function(){Hfi.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.H(r9m,Hfi);var DgH=new _.cP("PAGE_LOAD_TIME_TOKEN");var Ugn=function(R){this.signal=R;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;R.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Ua(_.fn,this.disableLoggingAndSendPayload,1E4)};
Ugn.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.fn.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),$gH(this))};
var $gH=function(R){var A=_.pO();if(A){var Y={webClientComponentsData:{components:Array.from(R.ids,function(P){return{id:P}})}};
R.ids.clear();_.rU().visualElementStateChanged(A,Y)}};var XFf=TPP({a11y:WaA});_.SWY=vfu(XFf)(XFf.a11y,{ephemeralActionSelector:function(R){return R.ephemeralAction||null}});var Ij9=TPP({continuation:bSS});var Kmj=vfu(Ij9)(Ij9.continuation,{continuationCommandSelector:function(R){return R.continuationCommand}});var Wmm=new _.cP("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var S8=function(R,A){this.JSC$18298_storeWithEntities=R;this.JSC$18298_commandHandler=A;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
S8.prototype.start=function(){this.JSC$18298_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
S8.prototype.observeDownloadingEntities=function(){var R=_.lYV(this.JSC$18298_storeWithEntities.getState().entities).map(function(P){return xJS(P)});
if(R.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var A={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:zIb()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.iw(_.vk("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18298_commandHandler.resolveCommand(A)}this.downloadingEntities=R}else if(this.downloadingEntities.length){var Y=i_S(this.JSC$18298_storeWithEntities.getState().entities).map(function(P){return xJS(P)});
this.downloadingEntities.filter(function(P){return Y.includes(P)}).length&&(R={openPopupAction:a36()},this.JSC$18298_commandHandler.resolveCommand(R));
this.downloadingEntities=[]}};
S8[xk]=[AV,_.ls];var jH9;_.ID=function(R,A,Y,P,E,z,c,M){this.JSC$18301_playerApiPromise=R;this.JSC$18301_commandHandler=A;this.JSC$18301_screenManager=Y;this.offlineWebClientEligibility=P;this.JSC$18301_prefStorage=E;this.JSC$18301_actionRouter=z;this.entityTypeMap=c;this.JSC$18301_persistentStorePromiseAccessor=M;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
jH9=function(){var R=_.is().resolve(_.ID),A;_.O(function(Y){if(Y.nextAddress==1)return R.downloadFailureListenerBound?Y.return():Y.yield(R.JSC$18301_playerApiPromise,2);A=Y.yieldResult;A.addEventListener("onOfflineOperationFailure",function(P){if(P.failureReason&&P.entityKey&&P.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(P.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var E=_.M6(P.entityKey).entityId;E&&R.JSC$18301_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
E)}else if(_.v("kevlar_woffle")){E=R.JSC$18301_commandHandler;var z=E.resolveCommand;P=P.failureReason;var c=_.vk("TRANSFER_FAILED",void 0,"Download failed");P==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(c=_.vk("STORAGE_FULL",void 0,"Storage full"));z.call(E,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iw(c),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
R.downloadFailureListenerBound=!0;_.XH(Y)})};
_.ID.prototype.deleteVideo=function(R,A){var Y=this,P,E,z;return _.O(function(c){if(c.nextAddress==1)return c.yield(Y.JSC$18301_playerApiPromise,2);P=c.yieldResult;z={offlineLoggingData:{offlineDeleteReason:(E=A)!=null?E:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return c.yield(P.queueOfflineAction(R,Y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",z),0)})};
_.ID.prototype.pauseVideoDownload=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.JSC$18301_playerApiPromise,2);Y=P.yieldResult;Y.pauseVideoDownload(R);_.XH(P)})};
_.ID.prototype.resumeVideoDownload=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.JSC$18301_playerApiPromise,2);Y=P.yieldResult;return P.yield(Y.resumeVideoDownload(R),0)})};
_.ID[xk]=[_.cT,_.ls,_.wt,Wmm,WI,y0,Smq,jw];var bfi=new _.cP("DOWNLOAD_STATE_STORE_TOKEN");var fjY=function(R,A){this.JSC$18321_persistentStorePromiseAccessor=R;this.store=A;this.upliftCompletionResolver=new _.y2},Bof=function(){var R=_.is().resolve(pF9),A;
_.O(function(Y){switch(Y.nextAddress){case 1:if(R.upliftImplPromise)return Y.return(R.upliftImplPromise);_.g2(Y,2);R.upliftImplPromise=Fmm(R);return Y.yield(R.upliftImplPromise,4);case 4:R.upliftCompletionResolver.resolve();_.us(Y,3);break;case 2:throw A=_.UT(Y),R.upliftCompletionResolver.reject(A),A;case 3:return Y.return(R.upliftImplPromise)}})},Fmm=function(R){var A,Y,P;
return _.O(function(E){switch(E.nextAddress){case 1:return _.CQ("LOGGED_IN")?E.yield(R.JSC$18321_persistentStorePromiseAccessor(),2):E.return();case 2:A=E.yieldResult;if(!A)return _.Fh("vdeur"),E.return();_.Fh("vdeus");_.g2(E,3);return E.yield(ajQ(A),5);case 5:Y=E.yieldResult;R.store.dispatch(Zd8(Y));A.observe(function(z){tMV(R.store,z)});
_.us(E,4);break;case 3:throw P=_.UT(E),_.Fh("vdeur"),P;case 4:_.Fh("vdeuc"),_.XH(E)}})},ajQ=function(R){var A;
return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(cIk(R),2);A=Y.yieldResult;return Y.return(A.reduce(function(P,E){if(!E.data||!E.key||!E.entityType)return P;P[E.entityType]||(P[E.entityType]={});P[E.entityType][E.key]=E.data;return P},{}))})};
fjY[xk]=[jw,_.PX];var pF9;pF9=new _.cP("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.KM=new _.cP("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var WN=function(R,A){this.JSC$18324_persistentStorePromiseAccessor=R;this.transportService=A};
WN.prototype.refresh=function(){var R=this,A,Y,P,E;return _.O(function(z){if(z.nextAddress==1)return _.CQ("LOGGED_IN")?z.yield(R.JSC$18324_persistentStorePromiseAccessor(),2):z.return();if(z.nextAddress!=3)return(A=z.yieldResult)?z.yield(ZkS(A),3):z.return();if((Y=z.yieldResult)&&!(Number(Y.data.refreshTimestampMs||0)<(0,_.iB)()))return z.return();P={browseId:"SPaccount_downloads"};E=_.Pr(Z5);_.Ad(R.transportService,P,E).then(function(c){var M;if(A&&(c==null?void 0:(M=c.responseContext)==null?void 0:
M.maxAgeSeconds)!==0){var N;M=(c==null?void 0:(N=c.responseContext)==null?void 0:N.maxAgeSeconds)||604800;N=String(Math.floor((0,_.iB)())+M*1E3);A.put("service:downloads_settings:fallback",new _.Kp({innertubeResponse:c,refreshTimestampMs:N}))}});
_.XH(z)})};
WN[xk]=[_.nM,_.Co];var j8=function(R,A){this.JSC$18328_playerPromise=R;this.store=A;this.started=!1};
j8.prototype.start=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return R.started?Y.return():Y.yield(R.JSC$18328_playerPromise,2);A=Y.yieldResult;A.addEventListener("onOrchestrationBecameLeader",R.updateIsLeader.bind(R,!0));A.addEventListener("onOrchestrationLostLeader",R.updateIsLeader.bind(R,!1));if(A.isOrchestrationLeader)R.updateIsLeader(A.isOrchestrationLeader());else{var P=new _.XN("Function isOrchestrationLeader is undefined",{"player.isReady":A.isReady(),"player.playVideo":A.playVideo?
"defined":"undefined"});_.bj(P);R.updateIsLeader(!1)}R.started=!0;_.XH(Y)})};
j8.prototype.updateIsLeader=function(R){this.store.dispatch(_.cK({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:R}}))};
j8[xk]=[_.cT,_.PX];var Ci0=function(R,A){this.networkStatusManager=R;this.JSC$18331_prefStoragePromise=A;this.redirectsToPreload=["https://youtube.com"]},hQi=function(){var R=_.is().resolve(Ci0),A,Y,P,E,z,c;
_.O(function(M){switch(M.nextAddress){case 1:return M.yield(R.JSC$18331_prefStoragePromise,2);case 2:A=M.yieldResult;if(!(Y=A)){M.jumpTo(3);break}return M.yield(A.get("yt-redirect-prefetch-id"),4);case 4:Y=M.yieldResult;case 3:if(Y||!R.networkStatusManager.isNetworkAvailable())return M.return();P={cache:"reload",redirect:"manual"};E=_.x(R.redirectsToPreload);z=E.next();case 5:if(z.done){if(!A){M.jumpTo(0);break}return M.yield(A.set("yt-redirect-prefetch-id",!0,86400),0)}c=z.value;_.g2(M,8);return M.yield(_.P3.fetch(c,
P),10);case 10:_.us(M,6);break;case 8:_.UT(M);case 6:z=E.next(),M.jumpTo(5)}})};var b3=function(R){R?(this.container=R,this.containerWasInjected=!0):this.containerWasInjected=!1};
b3.prototype.openDialog=function(R,A,Y){var P=this,E;return _.O(function(z){(E=P.container)==null||E.openDialog(R,A,Y);_.XH(z)})};
b3.prototype.closeDialog=function(){var R=this,A;return _.O(function(Y){(A=R.container)==null||A.closeDialog();_.XH(Y)})};
b3.prototype.isDialogOpen=function(){var R=this,A,Y;return _.O(function(P){return P.return((Y=(A=R.container)==null?void 0:A.isDialogOpen())!=null?Y:!1)})};
b3[xk]=[_.z3(VZE)];_.ono=new _.cP("POPUP_CONTROLLER_TOKEN");var k0N=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
k0N.prototype.registerPanel=function(R,A){if(R){this.panelMap.set(R,A);var Y=this.pendingPanelResolvers.get(R);Y&&(Y.resolve(A),this.pendingPanelResolvers.delete(R))}};
k0N.prototype.getPanel=function(R){var A=this,Y;return _.O(function(P){return(Y=A.panelMap.get(R))?P.return(Y):P.return(G0N(A,R))})};
var G0N=function(R,A){var Y,P;return _.O(function(E){if(Y=R.pendingPanelResolvers.get(A))return E.return(Y.promise);P=new _.y2;R.pendingPanelResolvers.set(A,P);return E.return(P.promise)})},ZfW=function(R){k0N.call(this);
var A=this;this.popupController=R;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return A.panelMap.size}}};
_.H(ZfW,k0N);_.l=ZfW.prototype;_.l.getReloadContinuation=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.getPanel(R),2);Y=P.yieldResult;return P.return(Y.getReloadContinuation())})};
_.l.showPanel=function(R,A,Y,P,E,z,c){var M=this,N,y,m,T;return _.O(function(Q){if(Q.nextAddress==1){c&&M.updatePanelContinuationDatas.set(R,c);if((N=Y)==null?0:(y=N.engagementPanelPopupPresentationConfig)==null?0:y.popupType){m=Y.engagementPanelPopupPresentationConfig.popupType;E===void 0&&(E=document.body);var g=Q.return,r=M.popupController,I=r.openPopup;a:switch(m){case "PANEL_POPUP_TYPE_DIALOG":var b="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":b="DROPDOWN";break a;default:throw Error("hj`"+
m);}return g.call(Q,I.call(r,R,A,b,E))}return Q.yield(M.getPanel(R),2)}T=Q.yieldResult;(A||z)&&T.updatePanel(A,!1,P,z);T.showPanel(P);_.XH(Q)})};
_.l.hidePanel=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(A.getPanel(R),2);Y=P.yieldResult;Y.hidePanel();A.popupController.closePopup(R);_.XH(P)})};
_.l.isVisible=function(R,A){var Y=this,P;return _.O(function(E){if(E.nextAddress==1)return A&&!Y.panelMap.has(R)?E.return(!1):E.yield(Y.getPanel(R),2);P=E.yieldResult;return E.return(P.isVisible())})};
_.l.updatePanel=function(R,A,Y,P,E,z){Y=Y===void 0?!1:Y;var c=this,M;return _.O(function(N){if(N.nextAddress==1){if(!A&&!E)return N.return();z&&c.updatePanelContinuationDatas.set(R,z);return N.yield(c.getPanel(R),2)}M=N.yieldResult;M.updatePanel(A,Y,P,E);_.XH(N)})};
_.l.registerPanelContent=function(R,A){R&&this.panelContentMap.set(R,A)};
_.l.unregisterPanelContent=function(R){this.panelContentMap.delete(R)};
_.l.getPanelContent=function(R){return this.panelContentMap.get(R)};
_.l.getUpdatePanelContinuationData=function(R){return this.updatePanelContinuationDatas.get(R)};
ZfW[xk]=[_.ono];var fM=function(R,A){this.innertubeTransportService=R;this.JSC$18347_screenManager=A},tGf=function(R){var A;
return!((A=R.panelLoadingStrategy)==null||!A.requestTemplate)};
fM.prototype.makeRequest=function(R){var A=this,Y,P;return _.O(function(E){switch(E.nextAddress){case 1:if(!tGf(A)){E.jumpTo(2);break}_.g2(E,3);return E.yield(_.uh(A.innertubeTransportService,R),5);case 5:return Y=E.yieldResult,Y?E.return(Y.content):(_.bj(Error("ij")),E.return(void 0));case 3:P=_.UT(E),_.bj(P);case 2:return E.return(void 0)}})};
fM.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
fM.prototype.execute=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T;return _.O(function(Q){if(Q.nextAddress==1){Y=R;P=Y.data;E=Y.fallbackVe;z=Y.parentVe;c=Y.createScreenConfig;M=Y.renderFn;N=Y.command;A.panelLoadingStrategy=P;var g,r,I=((g=A.panelLoadingStrategy)==null?0:g.screenVe)?(r=A.panelLoadingStrategy)==null?void 0:r.screenVe:E;I&&_.$5(A.JSC$18347_screenManager,I,z,c);return(y=A.getContent())?Q.yield(M(y),2):Q.jumpTo(2)}return Q.nextAddress!=4?tGf(A)?Q.yield(A.makeRequest(N),4):Q.return():(T=m=
Q.yieldResult)?Q.yield(M(T),0):Q.return()})};
fM[xk]=[_.Co,_.wt];var pM=function(){};
pM.prototype.getContainer=function(){return _.EC()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
pM.prototype.openSheet=function(R,A){var Y=this,P,E,z,c,M,N;return _.O(function(y){switch(y.nextAddress){case 1:return P={stack:[],error:void 0,hasError:!1},_.g2(y,2,3),E=PV,y.yield(Y.isSheetOpen(),5);case 5:z=y.yieldResult;Gkb(P,$zq(E));if(z){if(_.v("web_close_sheet_if_same_target_killswitch")&&A&&Y.currentTarget===A)return(c=Y.getContainer())==null||c.closeSheet(),y.return();Y.pendingData={data:R,target:q6i(Y,A)};return y.return()}R.viewModel&&(R={viewModel:R.viewModel});(M=Y.getContainer())==null||
M.openSheet(R,A);Y.currentTarget=A;case 3:_.Ht(y);Zt3(P);_.D4(y,0);break;case 2:N=_.UT(y),P.error=N,P.hasError=!0,y.jumpTo(3)}})};
pM.prototype.closeSheet=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield((A=R.getContainer())==null?void 0:A.closeSheet(),2);if(Y.nextAddress!=4)return R.currentTarget=void 0,R.pendingData?Y.yield(R.openSheet(R.pendingData.data,R.pendingData.target),4):Y.jumpTo(0);R.pendingData=void 0;_.XH(Y)})};
pM.prototype.isSheetOpen=function(){var R=this,A,Y;return _.O(function(P){return P.return((Y=(A=R.getContainer())==null?void 0:A.isSheetOpen())!=null?Y:!1)})};
var q6i=function(R,A){if(!_.v("web_parent_target_for_sheets"))return A;var Y,P;return(P=(Y=R.getContainer())==null?void 0:Y.getParentTarget(A))!=null?P:A};var Yj=window.documentPictureInPicture;var gxu=_.Z7(["dark"]),nxb=_.Z7(["system-icons"]),Hcu=_.Z7(["typography"]),rII=_.Z7(["lang"]),DXq=_.Z7(["style"]),mXS=_.Z7(["dir"]),T6I=_.Z7(["rounded-container"]),QMP=_.Z7(["style"]),$XI=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],FB=function(R){this.JSC$18359_clientRoot=R;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
FB.prototype.openWindow=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1)return window.documentPictureInPicture&&_.$q()&&!A.currentPipWindow?E.yield((Y=Yj?Yj:null)==null?void 0:Y.requestWindow(R),2):E.return(!1);if(E.nextAddress!=3){P=E.yieldResult;if(!P)return E.return(!1);P.addEventListener("pagehide",function(){wFF(A)});
P.addEventListener("resize",A.handlePipWindowResize);A.pipWindowResizeDelay=new _.zr(function(){A.currentPipWindow&&_.OC(A.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.Dg(A.currentPipWindow.innerWidth,A.currentPipWindow.innerHeight)])},P);
UX3(P);Sxb(P);return E.yield(yI8(P),3)}if(!N66())return E.return(!1);A.currentPipWindow=P;A.JSC$18359_eventForwarder=X6k(P,A.JSC$18359_clientRoot);A.pipWindowResizeDelay.start();return E.return(!0)})};
FB.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var wFF=function(R){if(R.currentPipWindow){var A,Y;(A=Yj?Yj:null)==null||(Y=A.window)==null||Y.close();R.currentPipWindow.removeEventListener("resize",R.handlePipWindowResize);var P;(P=R.pipWindowResizeDelay)==null||P.dispose();R.pipWindowResizeDelay=void 0;var E;(E=R.JSC$18359_eventForwarder)==null||E.stop();R.JSC$18359_eventForwarder=void 0;A=_.x(R.onCloseCallbacks);for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y();R.onCloseCallbacks=[];R.currentPipWindow=null}};
FB.prototype.getWindow=function(){return this.currentPipWindow};
var uYi=function(R,A){var Y;(Y=R.onCloseCallbacks)==null||Y.push(A)};
FB.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.$q()};
_.Yh.Object.defineProperties(FB.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
FB[xk]=[jgb];var eQN=new _.cP("PICTURE_IN_PICTURE_CONTROLLER");var IHk=function(R,A){this.lengthY=this.lengthX=0;this.lengthX=A.x-R.x;this.lengthY=A.y-R.y};var qWG=function(){},xGN=function(R,A){var Y;
(Y=R.headerElement)==null||Y.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:A}))};var LmQ=function(){};
LmQ.prototype.openPopup=function(R,A,Y,P){var E=this,z;return _.O(function(c){if(!E.container)return c.return();z={openPopupAction:{popup:A,popupType:Y,uniqueId:R}};return c.return(E.container.handleOpenPopupAction(z,P))})};
LmQ.prototype.closePopup=function(R){this.container&&this.container.closePopup(R)};var dgW=function(){this.openTunnels=new Map},pNu=function(R,A,Y){if(p6k(Y)){var P=_.wz(Y,"gclid");
Y={handleEvent:function(M){A&&!A.closed&&typeof A.postMessage==="function"&&M&&M.origin&&M.source===A&&M.data&&M.data.action==="gcl_setup"&&A.postMessage(Object.assign({},{action:"gcl_transfer"},P&&{gclid:P},{gadSource:2}),M.origin)}};
for(var E=_.x(R.openTunnels),z=E.next();!z.done;z=E.next()){var c=_.x(z.value);z=c.next().value;c=c.next().value;if(z.closed)try{window.removeEventListener("message",c),R.openTunnels.delete(z)}catch(M){_.bj(M)}}A&&R.openTunnels.size<15&&(R.openTunnels.set(A,Y),window.addEventListener("message",Y))}};var Rbi=function(){this.clientParams=new Map},dO7=function(R){for(var A=_.x(R.clientParams.keys()),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.startsWith("yt-mini-app-share")&&R.clientParams.delete(Y)};var YgN=function(R){_.KJ.call(this);this.JSC$18381_shortsController=R;Abm(this);this.addOnDisposeCallback(this.removeAudioTrackEventListener.bind(this))};
_.H(YgN,_.KJ);var Abm=function(R){var A,Y;(A=R.JSC$18381_shortsController)==null||(Y=A.playerApi)==null||Y.then(function(P){P&&(P.addEventListener("onPlaybackAudioChange",function(){PbG(R,P)}),PbG(R,P))})};
YgN.prototype.removeAudioTrackEventListener=function(){var R=this,A,Y;(A=this.JSC$18381_shortsController)==null||(Y=A.playerApi)==null||Y.then(function(P){P&&P.removeEventListener("onPlaybackAudioChange",function(){PbG(R,P)})})};
var PbG=function(R,A){A=(A==null?void 0:A.getAvailableAudioTracks().length)>1&&(A==null?void 0:A.getAudioTrack())||void 0;if((R=R.JSC$18381_shortsController)!=null){var Y=_.yS("/youtube/app/player_audio_track_entity_key","stringEntity",2);if(A){var P,E=(P=_.vT(_.hM,Y)())==null?void 0:P.value;P=A.getLanguageInfo().getName();E!==P&&R.store.dispatch(_.HT("stringEntity",Y,{key:Y,value:P.toString()}))}else R.store.dispatch(_.HT("stringEntity",Y,{key:Y,value:"ALTERNATE_AUDIO_TRACK_UNAVAILABLE"}))}};var zbo=function(R){_.KJ.call(this);this.JSC$18384_shortsController=R;EDN(this);this.addOnDisposeCallback(this.removeCaptionTrackEventListener.bind(this))};
_.H(zbo,_.KJ);var EDN=function(R){R.JSC$18384_shortsController.playerApi.then(function(A){A&&(A.addEventListener("captionschanged",function(){iqf(R,A)}),iqf(R,A))})};
zbo.prototype.removeCaptionTrackEventListener=function(){var R=this;this.JSC$18384_shortsController.playerApi.then(function(A){A&&A.removeEventListener("captionschanged",function(){iqf(R,A)})})};
var iqf=function(R,A){A=A==null?void 0:A.getOption("captions","track");R=R.JSC$18384_shortsController;var Y=_.yS("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(A){var P,E=(P=_.vT(_.hM,Y)())==null?void 0:P.value,z;P=typeof(A==null?void 0:A.translationLanguage)==="object"&&((z=A.translationLanguage)==null?void 0:z.languageName)||A.displayName||"";E!==P&&R.store.dispatch(_.HT("stringEntity",Y,{key:Y,value:P.toString()}))}else R.store.dispatch(_.HT("stringEntity",Y,{key:Y,value:"CAPTIONS_UNAVAILABLE"}))};var lE0=function(R,A){_.KJ.call(this);var Y=this;this.JSC$18387_shortsController=R;this.storeWithShorts=A;R=_.Fq(this.storeWithShorts,_.E$k,function(P){if(P){var E,z=(E=Y.JSC$18387_shortsController.getRoot())==null?void 0:E.getPlayer(),c;(E=(c=Y.JSC$18387_shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer())&&(z==null||z.appendTo(E))}else{var M;c=(M=Y.JSC$18387_shortsController.alternativePlayerContainerElement)==null?void 0:M.getPlayerContainer().querySelector("#player");
E=Y.JSC$18387_shortsController.activeIndex;(M=(z=Y.JSC$18387_shortsController.getRoot())==null?void 0:z.querySelector('ytd-reel-video-renderer[id="'+E+'"] #player-container'))&&(c==null||c.appendTo(M,void 0,!0))}});
this.addOnDisposeCallback(R)};
_.H(lE0,_.KJ);var BN=function(R,A,Y,P,E){var z=this;this.storeWithShorts=R;this.ephemeralResponseStore=A;this.store=Y;this.innertubeTransportService=P;this.innertubeTransportLoader=E;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.aE(_.zt);this.isShortsPipActive=_.aE(_.ix);this.nextReelVe=_.NV(56921);this.prevReelVe=_.NV(56922);this.backButtonVe=_.NV(22156);this.TEST_ONLY={getActiveModules:function(){return z.activeModules}}},xLf=function(R){R.unsubscribeFromStore=
_.Fq(R.storeWithShorts,_.P76,function(A){R.initOrDisposeActiveModules(A);
!A&&R.storeWithShorts.getState().shorts.isFullscreen&&(_.zi(document.documentElement),R.storeWithShorts.dispatch(_.fqA(!1)))});
R.initOrDisposeActiveModules(_.P76(R.storeWithShorts.getState()))},pRD,FgN,cbF;
BN.prototype.initOrDisposeActiveModules=function(R){R?this.activeModules.push.apply(this.activeModules,[new lE0(this,this.storeWithShorts)].concat(_.py(_.v("web_shorts_audio_track_picker")?[new YgN(this)]:[]),_.py(_.v("enable_web_shorts_captions_language_command")?[new zbo(this)]:[]))):(_.xt(this.activeModules),this.activeModules.length=0)};
BN.prototype.registerRootElement=function(R){this.rootElement=R;xLf(this)};
BN.prototype.getRoot=function(){return this.rootElement};
BN.prototype.setActiveIndex=function(R){this.activeIndex=R};
_.IBG=function(R,A){var Y,P,E,z,c,M,N;return _.O(function(y){switch(y.nextAddress){case 1:return Y=new Za,(P=Y.JSC$13106_getStoreKey(A))&&R.ephemeralResponseStore.has(P)?y.yield(R.ephemeralResponseStore.get(P),7):y.yield(cbF(R,A),4);case 4:E=y.yieldResult;if(!P){y.jumpTo(3);break}z=MV(E,3600);return y.yield(R.ephemeralResponseStore.put(P,new _.Kp(z)),3);case 7:E=(c=y.yieldResult)==null?void 0:_.dc(c);case 3:return((M=E)==null?0:M.replacementEndpoint)&&(N=_.n(E.replacementEndpoint,_.SI))&&E.sequenceContinuation&&
(N.sequenceParams=E.sequenceContinuation),y.return(E)}})};
pRD=function(R,A){A=(new t2).JSC$13106_getStoreKey(A);return!!A&&R.ephemeralResponseStore.has(A)};
FgN=function(R,A,Y){var P,E,z,c,M;_.O(function(N){if(N.nextAddress==1){P=new t2;E=P.JSC$13106_getStoreKey(A);if(!E)return N.return();if(Y.reelWatchSequenceResponse)return z=MV(Y.reelWatchSequenceResponse,3600),R.ephemeralResponseStore.put(E,new _.Kp(z)),N.jumpTo(0);if(!R.ephemeralResponseStore.has(E))return N.jumpTo(0);M=Y;return N.yield(R.ephemeralResponseStore.get(E),4)}M.reelWatchSequenceResponse=(c=N.yieldResult)==null?void 0:_.dc(c);_.XH(N)})};
cbF=function(R,A){var Y=Y===void 0?{}:Y;var P,E,z;return _.O(function(c){switch(c.nextAddress){case 1:if(R.innertubeTransportService){P=R.innertubeTransportService;c.jumpTo(2);break}if(!R.innertubeTransportLoader){_.hv(Error("kj"));c.jumpTo(2);break}return c.yield(R.innertubeTransportLoader(),4);case 4:P=c.yieldResult;case 2:return c.yield((E=P)==null?void 0:_.uh(E,A,Y),5);case 5:return z=c.yieldResult,c.return(z)}})};
_.Yh.Object.defineProperties(BN.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
BN[xk]=[gzq,_.Iz,AV,_.z3(_.Co),_.z3(ycZ)];_.Oqi=new _.cP("STORAGE_MANAGER_TOKEN");var to3=["touchmove","scroll"];var McH=!1;var w6u={onSpanEnd:function(R){R.parentId==null&&(McH||(Cnb(),setInterval(Cnb,6E5),McH=!0),hrq(R,"web_tracing_action"))}};var sRG=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},NZ9;
sRG.prototype.enqueue=function(R,A){A===1?this.currentPersistentToast=R:this.queue.push(R);this.openToast()};
sRG.prototype.openToast=function(){var R;(R=this.currentToast)!=null&&R.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.aD=new _.cP("TOAST_MANAGER_TOKEN");var Vcj=new _.cP("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var Jbi=new _.cP("VIEW_TRANSITION_COORDINATOR_TOKEN");var ybW=function(R){this.config=R;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;R=_.x(R.transitionConfigs);for(var A=R.next();!A.done;A=R.next())A=_.x(A.value).next().value,this.transitionTasksMap.set(A,[])};
ybW.prototype.registerElement=function(R,A,Y){Y=Y===void 0?!1:Y;for(var P=_.x(Object.keys(A)),E=P.next(),z={};!E.done;z={viewTransitionName:void 0},E=P.next()){E=E.value;z.viewTransitionName=A[E];var c=this.elementTasksMap.get(R),M=void 0;if((M=c)==null?0:M.has(E)){_.fK(new _.XN("Element already registered for transition",R.tagName,E));break}c=c||new Map;c.set(E,{beforeTransition:function(N){return function(){R.style.viewTransitionName=N.viewTransitionName}}(z),
afterTransition:function(){R.style.viewTransitionName&&(R.style.viewTransitionName="")},
runOnce:Y});this.elementTasksMap.set(R,c)}};
_.BT=function(R,A){var Y=R.elementTasksMap.get(A);Y&&(Y.clear(),Y.size===0&&R.elementTasksMap.delete(A))};
ybW[xk]=[Vcj];var mLn;_.TZN=_.E5(function(R){return _.V("basic-content-view-model",{class:_.To("ytBasicContentViewModelHost",_.Y9(R.className))},_.V(_.J,{cond:function(){return R.data().headline},
then:function(A){return _.V("div",{class:"ytBasicContentViewModelHeadline"},_.V(_.NU,{text:A}))}}),_.V(_.Ue,{each:function(){return R.data().paragraphs||[]},
keyBy:"INDEX"},function(A){return _.V("div",{class:"ytBasicContentViewModelParagraph"},_.V(_.J,{cond:function(){var Y=A();return!!(Y.header||Y.customHeader||Y.headline)},
then:function(){return _.V(mLn,{paragraph:A})}}),_.V(_.J,{cond:function(){return A().asset||A().text},
then:function(){return _.V("div",{class:"ytBasicContentViewModelParagraphContent"},_.V(_.J,{cond:function(){return A().asset},
then:function(Y){return _.V("div",{class:"ytBasicContentViewModelParagraphAsset"},_.V(_.ni,{data:Y},{contentPreviewImageViewModel:_.rw}))}}),_.V(_.J,{cond:function(){return A().text},
then:function(Y){return _.V("div",{class:"ytBasicContentViewModelParagraphText"},_.V(_.NU,{text:Y}))}}))}}))}))},"Me");
mLn=_.E5(function(R){var A=R.paragraph;return _.V(_.lI,null,_.V(_.J,{cond:function(){return A().headline},
then:function(Y){return _.V(_.NU,{text:Y,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.V(_.ni,{data:function(){return A().header||A().customHeader}},{sectionHeaderViewModel:function(Y){return _.V(_.Kv,{data:Y.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Ne");var vDj=_.E5(function(R){var A=_.LK("yt-expandable-metadata-header-view-model"),Y=_.Qi(function(P){if(!_.WT(_.Ki(P),A.value,["A".toString(),"BUTTON".toString()])){var E;(E=R.expandedCallback)==null||E.call(R,!1)}});
return _.V("yt-expandable-metadata-header-view-model",{el:A,class:"ytExpandableMetadataHeaderViewModelHost"},_.V(_.J,{cond:function(){return R.expanded()},
then:function(){return _.V("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":Y},_.V("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.V(_.J,{cond:function(){return R.data().expandedTitleImage},
then:function(P){return _.V("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.V(_.P1,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:P}))}}),_.V("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.V("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.V(_.NU,{text:function(){return R.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.V(_.NU,{text:function(){return R.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.V(_.NU,{text:function(){return R.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.V("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.V(_.ni,{data:function(){return R.data().infoButton}},{buttonViewModel:_.Is}),_.V(_.ni,{data:function(){return R.data().collapseButton}},{buttonViewModel:function(P){return _.V(_.Is,{data:P.data,
onClick:function(){var E;(E=R.expandedCallback)==null||E.call(R,!1)}})}})))},
else:function(){return _.V(QRQ,Object.assign({},R))}}))},"Oe"),gDi=_.E5(function(R){return _.V("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.V(_.J,{cond:function(){return R.data().collapsedLabelImage},
then:function(A){return _.V("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.V(_.P1,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:A,alt:""}))}}),_.V(_.NU,{text:function(){return R.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Pe"),QRQ=_.E5(function(R){return _.V("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.Qi(function(){var A;return void((A=R.expandedCallback)==null?void 0:A.call(R,!0))})},_.V("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.V(_.J,{cond:function(){return R.data().collapsedImage},
then:function(A){return _.V("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.V(_.P1,{height:20,preserveHeight:!0,preserveWidth:!0,data:A,alt:""}))}}),_.V(_.J,{cond:function(){return R.data().showLeadingCollapsedLabel},
then:function(){return _.V(gDi,Object.assign({},R))}}),_.V("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.V(_.NU,{text:function(){return R.data().collapsedTitle}}))),_.V("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.V(_.J,{cond:function(){return!R.data().showLeadingCollapsedLabel},
then:function(){return _.V(gDi,Object.assign({},R))}}),_.V(_.ni,{data:function(){return R.data().infoButton}},{buttonViewModel:_.Is}),_.V(_.ni,{data:function(){return R.data().expandButton}},{buttonViewModel:function(A){return _.V(_.Is,{data:A.data,
onClick:function(){var Y;(Y=R.expandedCallback)==null||Y.call(R,!0)}})}})))},"Qe");_.nDN=_.E5(function(R){var A=_.x(_.gl(function(){return R.data().initiallyExpanded})),Y=A.next().value,P=A.next().value,E,z=(E=_.is().resolve(_.z3(_.dU)))==null?void 0:E(),c=function(){var M=R.data().colorData;
if(M)return z?M==null?void 0:M.darkColorPalette:M==null?void 0:M.lightColorPalette};
return _.V("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.nY({"background-color":function(){var M=c();return(M==null?0:M.section2Color)?_.Zs(M.section2Color):""}})},_.V(_.ni,{data:function(){return R.data().header}},{expandableMetadataHeaderViewModel:function(M){return _.V(vDj,{data:M.data,
expanded:function(){return!!Y()},
expandedCallback:function(N){P(N)}})}}),_.V(_.J,{cond:function(){return Y()},
then:function(){return _.V("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.V(_.ni,{data:function(){return R.data().expandedContent}},{horizontalShelfViewModel:function(M){return _.V(_.ES,{data:M.data,
includeMargin:!0,forceNarrowLayout:!0,palette:c})},
videoSummaryContentViewModel:function(M){return _.V(slZ,{data:M.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(M){return _.V(_.SW,{data:M.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(M){return _.V(_.TZN,{data:M.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.V(_.ni,{data:function(){return R.data().expandedBottomButtons}},{buttonViewModel:function(M){return _.V("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.V(_.Is,{data:M.data}))}}))}}))},"Re");var HqY=_.E5(function(R){var A=R.text;var Y=R.marqueeSpacing;var P=R.scrollDelay;var E=R.scrollDuration;var z=R.enableMarqueeScroll;R=R.large;var c=_.x(_.yy(!1,void 0,"WyNYFf")),M=c.next().value,N=c.next().value,y=_.x(_.yy(0,void 0,"OoTdhe"));c=y.next().value;var m=y.next().value,T=_.LK("marquee-scroll");y=_.LK("div");var Q=_.LK("span"),g=_.is().resolve(_.AM);_.jq(function(){if(z()){var b=Q.value.getBoundingClientRect().width,p=T.value.getBoundingClientRect().width;if(b>p){var h=(g==="ltr"?-1:1)*
(b+(Y?Y():16));Promise.resolve().then(function(){N(!0);m(h)})}}},"dv0Anf");
var r={},I={};return _.V("marquee-scroll",{class:_.To("ytMarqueeScrollHost",(r.ytMarqueeScrollHostLarge=R,r)),el:T},_.V("div",{id:"marquee-scroll-inner-container",class:_.To("ytMarqueeScrollInnerContainer",(I.ytMarqueeScrollAnimationEnabled=function(){return M()},I)),
el:y,style:_.nY({gap:Y?(0,_.Lv)(Y):"16px","animation-duration":E?ltN(E):"16s","animation-delay":P?ltN(P):"3s","--marquee-translate":(0,_.Lv)(c)})},_.V("span",{el:Q,dir:"auto"},_.V(_.NU,{text:A,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.V(_.J,{cond:M,then:function(){return _.V("span",{"aria-hidden":"true",dir:"auto"},_.V(_.NU,{text:A,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"Se");_.rbg=_.E5(function(R){var A=R.data;var Y=R.overlayDensity;R=_.Qi(function(){A().onTapCommand&&_.Zc(A().onTapCommand);return!1});
var P=_.qyk(),E=function(){return(Y==null?void 0:Y())===1?22:16},z={};
return _.V("reel-sound-metadata-view-model",{class:_.To("ytReelSoundMetadataViewModelHost",(z.ytReelSoundMetadataViewModelHostLarge=function(){return(Y==null?void 0:Y())===1},z)),
"on:click":R,tabindex:0,role:"button","on:keydown":P},_.V("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.V(_.J,{cond:function(){return A().musicIcon},
then:function(c){return _.V(_.P1,{data:c,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:E})}}),_.V("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.V(HqY,{text:function(){return A().soundMetadata},
enableMarqueeScroll:function(){return!!A().enableMarqueeScroll},
large:function(){return(Y==null?void 0:Y())===1}}))))},"Te");var DL0,ULn,CM,IEQ,WoY,Sgn,fEm,bqG;DL0=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];ULn=_.cU("wil_icon_max_concurrent_fetches",Infinity);
CM=function(R,A,Y){var P=this;this.iconSet=R;this.appDirection=A;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.P3.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.v("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.v("wil_icon_network_first");this.renderWhenIdle=_.v("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.v("wil_icon_load_immediately");this.isPurging=!1;R=function(){P.cacheStorageAvailable&&(P.cacheStorageAsync=_.P3.caches.open("yt-icons").then(function(z){return P.cacheStorageSync=z}).catch(function(){P.cacheStorageAvailable=!1}))};
Y=(Y==null?void 0:Y())||{};Y=_.x(Object.entries(Y));for(A=Y.next();!A.done;A=Y.next()){var E=_.x(A.value);A=E.next().value;E=E.next().value;E=gu(E);$LH(E);this.iconCache[A]=E.cloneNode(!0)}this.isPurging=Xxf(this);this.isPurging instanceof Promise?this.isPurging.then(R):R()};
_.Ef6=function(R,A){var Y=R.resolveIcon(A);return Y?R.renderingMode===1?Sgn(R,Y,R.renderingMode):(A=R.iconCache[Y.url])?(A=A.cloneNode(!0),IEQ(R,A),Sgn(R,Y,R.renderingMode,A)):_.KoG(R,Y).then(function(P){var E=P?0:1;IEQ(R,P);return Sgn(R,Y,E,P)}):(_.fK(new _.XN("Icon not found",{iconShape:A})),function(){})};
IEQ=function(R,A){if(A){R.counter+=1;R="_yt"+R.counter;A=[A].concat(_.py(A.getElementsByTagName("*")));A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,Y.tagName==="style"&&Y.textContent)Y.textContent=WoY(Y.textContent,R,!0);else for(var P=_.x(Y.attributes),E=P.next();!E.done;E=P.next()){E=E.value;E.name==="id"&&(E.value+=R);["mask","fill","clip-path"].includes(E.name)&&(E.value=WoY(E.value,R));if(E.name==="style"){var z=Y.style;try{z.cssText=WoY(z.cssText,R,!0)}catch(m){var c=void 0,M=
void 0,N=void 0,y=void 0;hY({error:((c=m)==null?void 0:(N=(M=c).toString)==null?void 0:N.call(M))||"",el:Y.outerHTML,style:!!z,cssText:(y=z)==null?void 0:y.cssText})}}E.name==="xlink:href"&&(E.value=E.value.replace(/#(.*)/,"#$1"+R))}}};
WoY=function(R,A,Y){var P=/url\(["']?#(.*?)["']?\)/;(Y===void 0?0:Y)&&(P=/url\(["']?#(.*?)["']?\)/g);return R.replace(P,"url(#$1"+A+")")};
Sgn=function(R,A,Y,P){return function(E,z){var c=Object.assign({},{iconColor:"currentcolor",iconWidth:A.size+"px",iconHeight:A.size+"px",iconDisplay:"block"},z);z=_.De("DIV");var M=c.iconColor,N=c.iconFilter;c="width: "+c.iconWidth+"; height: "+c.iconHeight+"; display: "+c.iconDisplay+";";N&&(c+=" filter: "+N+";");Y===0&&(c+=" fill: "+M+";");Y===1&&(N=A.url,c+=" -webkit-mask: url("+N+") no-repeat center / cover; mask: url("+(N+") no-repeat center / cover; background-color: ")+M);A.allowMirroring&&
R.appDirection==="rtl"&&(c+=" transform: scale(-1, 1); transform-origin: center center;");z.setAttribute("style",c);Y===0&&P&&z.appendChild(P);E.appendChild(z)}};
_.KoG=function(R,A){var Y,P,E;return _.O(function(z){Y=function(c){return ec(c)};
P=A.url;if(!jRF(P))throw Error("nj");E=bqG(R,P);return z.return(E.then(function(c){return c.clone().text()}).then(function(c){var M=Y(c);
c=A.size;var N=_.De("DIV");_.zO(N,M);M=_.UU(N.firstElementChild!==void 0?N.firstElementChild:_.RQH(N.firstChild,!0));c=$LH(M,c);R.iconCache[P]=c.cloneNode(!0);delete R.responsePromises[P];return c}).catch(function(){}))})};
fEm=function(R){var A,Y=(A=R.requestAninmationFrameResolver)==null?void 0:A.promise;Y||(R.requestAninmationFrameResolver=new _.y2,Y=R.requestAninmationFrameResolver.promise,_.P3.requestAnimationFrame(function(){var P;(P=R.requestAninmationFrameResolver)==null||P.resolve();R.requestAninmationFrameResolver=null}));
return Y};
bqG=function(R,A){var Y,P;return _.O(function(E){if(E.nextAddress==1)return R.waitForAnimationFrame?E.yield(fEm(R),2):E.jumpTo(2);Y=R.responsePromises[A];Y||(P=function(){var z,c,M;return _.O(function(N){switch(N.nextAddress){case 1:if(!R.cacheStorageAvailable){z=void 0;N.jumpTo(2);break}if(c=R.cacheStorageSync){N.jumpTo(3);break}return N.yield(R.cacheStorageAsync,4);case 4:c=N.yieldResult;case 3:z=c;case 2:return M=z,R.isNetworkFirstStrategy?N.return(R.fetchAndUpdateCache(A,M).catch(R.getCacheStorageResponse.bind(R,
A,M))):N.return(R.getCacheStorageResponse(A,M).catch(R.fetchAndUpdateCache.bind(R,A,M)))}})},Y=R.renderWhenIdle?new Promise(function(z,c){_.Ua(_.fn,function(){P().then(z).catch(c)},10)}):P(),R.responsePromises[A]=Y);
return E.return(Y.catch(function(z){delete R.responsePromises[A];hY({error:(z==null?0:z.toString)?z.toString():"",url:A});throw z;}))})};
CM.prototype.fetchAndUpdateCache=function(R,A){var Y=this;return _.O(function(P){return P.return(pxg(Y,R).then(function(E){Foi(Y,R,E,A);return E}))})};
var pxg=function(R,A){var Y;return _.O(function(P){if(R.numFetches<ULn)return R.numFetches+=1,P.return(BZY(R,A).finally(function(){--R.numFetches;if(Object.keys(R.queuedResponseResolvers).length){var E=Object.keys(R.queuedResponseResolvers)[0],z=R.queuedResponseResolvers[E];delete R.queuedResponseResolvers[E];z.resolve(pxg(R,E))}}));
Y=new _.y2;R.queuedResponseResolvers[A]=Y;return P.return(Y.promise)})},BZY=function(R,A,Y){Y=Y===void 0?2:Y;
var P;return _.O(function(E){P={credentials:"same-origin",priority:"low"};return E.return(_.P3.fetch(A,P).then(function(z){return z.ok?z:Promise.reject(Error("oj`"+z.status+"`"+z.statusText))}).catch(function(z){if(Y>0)return BZY(R,A,Y-1);
throw z;}))})},Foi=function(R,A,Y,P){_.O(function(E){return P?E.return(new Promise(function(z){_.Ua(_.fn,function(){var c,M;
return _.O(function(N){switch(N.nextAddress){case 1:if(!R.isNetworkFirstStrategy){c=void 0;N.jumpTo(2);break}return N.yield(P.match(A).catch(function(){}),3);
case 3:c=N.yieldResult;case 2:if(M=c){N.jumpTo(4);break}return N.yield(P.put(A,Y.clone()).catch(function(y){hY({error:(y==null?0:y.toString)?y.toString():"",url:A})}),4);
case 4:z(),_.XH(N)}})},50)})):E.return()})};
CM.prototype.getCacheStorageResponse=function(R,A){return _.O(function(Y){return A?Y.return(A.match(R).then(function(P){return P&&P.ok?P:Promise.reject()})):Y.return(Promise.reject())})};
var $LH=function(R,A){A===void 0||R.getAttribute("viewBox")||R.setAttribute("viewBox","0 0 "+A+" "+A);R.setAttribute("focusable","false");R.setAttribute("aria-hidden","true");try{R.style.pointerEvents="none",R.style.display="inherit",R.style.width="100%",R.style.height="100%"}catch(E){var Y;hY({error:((Y=E)==null?0:Y.toString)?E.toString():""});try{R.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(z){var P;hY({error:((P=z)==null?0:P.toString)?z.toString():
""})}}return R},jRF=function(R){for(var A=_.x(DL0),Y=A.next();!Y.done;Y=A.next())if(R.startsWith(Y.value)&&R.endsWith(".svg"))return!0;
return!1};
CM.prototype.resolveIcon=function(R){return this.iconSet.resolveIcon(R)};
var hY=function(R){_.pK(new _.XN("Error in IconManager",R))},Xxf=function(R){if(_.v("wil_icons_cache_purge_killswitch"))return!1;
try{var A=_.P3.localStorage}catch(z){return!1}if(!A||!R.cacheStorageAvailable)return!1;var Y=function(z){try{var c;(c=A)==null||c.setItem("yt-icons-last-purged",z.toString())}catch(N){var M;hY({error:((M=N)==null?0:M.toString)?N.toString():""})}},P=Number(A.getItem("yt-icons-last-purged"));
if(!P)return P=new Date,P=P.setDate(P.getDate()-Math.floor(Math.random()*90+1)),Y(P),!1;if(function(z,c){z=new Date(z);c=new Date(c);return c.getMonth()-z.getMonth()+12*(c.getFullYear()-z.getFullYear())}(P,Date.now())<3)return!1;
try{return _.P3.caches.delete("yt-icons").then(function(z){z&&Y(Date.now());return z}).catch(function(){return!1}).finally(function(){R.isPurging=!1})}catch(z){var E;
hY({error:((E=z)==null?0:E.toString)?z.toString():""});return!1}};
CM[xk]=[Ubm,_.AM,_.z3(S6G)];_.oD=function(R,A){this.iconManager=R;this.iconsToFetch=A};
_.oD[xk]=[_.Tj,_.z3(X3m)];var aEW=function(){};var Cbf=function(R,A,Y){this.requestKey=R;this.s2T=A;this.pdg=Y;this.jEU=function(){return new XMLHttpRequest};
this.yWK=void 0;this.cma=[]};
Cbf.prototype.getLatestChallengeResponse=function(){return this.pdg};
var PtS=function(R,A,Y){var P,E,z,c;return _.O(function(M){if(M.nextAddress==1){_.pj("attestation_challenge_fetch");_.Fh("att_fs",void 0,"attestation_challenge_fetch");if(!R.yWK)throw new _.fA(9,"Missing fetcher");return M.yield(R.yWK(A,Y),2)}P=M.yieldResult;z=(E=P)==null?void 0:E.bgChallenge;if(!z)throw new _.fA(15,"Missing field");R.pdg=P;R.cma.forEach(function(N){N(P)});
c=hju(z);_.Fh("att_fc",void 0,"attestation_challenge_fetch");fj("attestation_challenge_fetch");return M.return(c)})},D_A=function(R,A){var Y,P,E,z,c;
return _.O(function(M){switch(M.nextAddress){case 1:Y=new mE(100,3E5,.25,2),P=void 0;case 2:if(!(Y.currBackoffCount_<10)){M.jumpTo(4);break}_.g2(M,5);if(!(Y.currBackoffCount_>0)){M.jumpTo(7);break}return M.yield(erI(Y.getValue()),7);case 7:return M.yield(hbN(R,A),9);case 9:return E=M.yieldResult,M.return(E);case 5:z=_.UT(M);z instanceof _.fA?P=z:(c=z instanceof Error?z.message:"Unknown",P=new _.fA(9,c));N2S(Y);M.jumpTo(2);break;case 4:if(P)throw P;throw new _.fA(9,"Unknown error");}})},hbN=function(R,
A){A=Zsf(tpN(new GEZ,A),R.requestKey);
var Y=new _.y2,P=R.jEU();P.open("POST",R.s2T);P.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");P.setRequestHeader("Content-Type","application/json+protobuf");P.onload=function(){if(_.CEk(P)){var E=A67(P.responseText);Y.resolve(E)}else Y.reject(new _.fA(_.dIJ(_.VQ(P)),P.statusText))};
P.onerror=function(){Y.reject(new _.fA(_.dIJ(_.VQ(P)),P.statusText))};
P.send(A.serialize());return Y.promise};var kei=function(R){this.networkStatusManager=R;this.isDownloaded=tjP===void 0?function(){return!1}:tjP;
this.isReady=!1;this.fZ5=oD0(this)},oD0=function(R){var A;
return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(WJl(),2);if(Y.nextAddress!=3)return A=Y.yieldResult,Y.yield(ybA(A),3);R.yR=Y.yieldResult;L1S(R.yR).then(function(){R.isReady=!0});
return Y.return(R.yR)})},Gen=function(R,A,Y){R.yR?(R=R.yR.jcm({v6:Y,
dMo:!0,uSo:!0}),A.serviceIntegrityDimensions={poToken:R}):_.bj(Error("qj"))};
kei.prototype.processContext=function(R){var A=this;if(!R.input.match(_.Pr(fPq)))return _.MJ();var Y=R.innerTubeRequest,P=Y.videoId;return!P||this.isDownloaded(Y)||this.networkStatusManager&&!this.yR&&!this.networkStatusManager.isNetworkAvailable()?_.MJ():this.yR?this.isReady?(Gen(this,Y,P),_.MJ()):new O7(L1S(this.yR).then(function(){Gen(A,Y,P)})):new O7(this.fZ5.then(function(E){return _.O(function(z){if(z.nextAddress==1)return z.yield(L1S(E),2);
Gen(A,Y,P);_.XH(z)})}))};var Zqm=new _.cP("WEB_PO_CONTEXT_PROCESSOR");var tc9=function(R,A){var Y=this;this.xaO=0;var P;this.zOn=(P=A==null?void 0:A.zOn)!=null?P:window;this.networkStatusManagerPromise=A==null?void 0:A.networkStatusManagerPromise;var E;this.requestKey=(E=A==null?void 0:A.requestKey)!=null?E:_.OK("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var z;this.sXT=(z=A==null?void 0:A.sXT)!=null?z:function(N){return new o8(N)};
var c;P=(c=A==null?void 0:A.p4H)!=null?c:function(N,y,m){return new Cbf(N,y,m)};
this.bgChallenge=hju(R.bgChallenge);this.ttlSeconds=od3(ks(R.challenge||""));this.lN=P(this.requestKey,_.v("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.P3.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",R);qxV(this.lN);var M;this.bav=(M=A==null?void 0:A.bav)!=null?M:function(N){_.KC(Y.zOn.document,"visibilitychange",function(){Y.zOn.document.visibilityState===
"visible"&&N()})}},ufQ=function(R){if(!R.vm){var A={maxAttempts:5,
zNa:R.ttlSeconds*1E3};dXk(R.zOn);R.vm=R.sXT({lN:R.lN,eBM:{disable:_.v("html5_web_po_disable_remote_logging"),iL:"aGIf",oaD:fMI("html5_web_po_experiment_ids"),bZT:_.v("wpo_dis_lfdms")?0:1E3,opz:function(P){var E=pAD.get(P);E||(E=new f$f(P),E=new nJ(E),pAD.set(P,E));return E}},
uis:A,qvN:R.bgChallenge,wlF:RiP});R.xaO=Date.now();LMA(R.vm,function(){R.xaO=Date.now()});
pDk(R.vm,function(){return _.O(function(P){return P.return(wxF(R))})});
var Y=R.pdT.bind(R);R.networkStatusManagerPromise&&R.ttlSeconds>0&&R.networkStatusManagerPromise.then(function(P){P.listen("publicytnetworkstatus-online",Y)});
R.bav(Y)}};
tc9.prototype.pdT=function(){if(Date.now()>this.xaO+this.ttlSeconds*1E3){var R;(R=this.vm)==null||qpA(R)}};
var wxF=function(R){if(R.l8o)return R.l8o;if(!R.vm)throw Error("rj");R.l8o=new tA({vm:R.vm,lN:R.lN,uqo:!0,onError:RiP});return R.l8o},YEk=function(R,A){R=new tc9(R,A);
ufQ(R);wxF(R)};var ebo=_.SWY.ephemeralActionSelector,kC=function(R,A){this.store=R;this.queue=[];A==null||A.addEventListener("yt-navigate-start",this.reset.bind(this))};
kC.prototype.enqueue=function(R){var A=R.command,Y=R.durationMs,P=R.elementToFocus;var E=R.label;var z=R.elementToFocus;R.command?E=_.vk("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:E,shortcut:_.vk("SHIFT_PLUS_ENTER")}):z&&(R=E+". "+_.vk("SHIFT_PLUS_ENTER")+" for more information.",E=_.vk("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:E,shortcut:_.vk("SHIFT_PLUS_ENTER")},R));Y={announcement:E,durationMs:Y!=null?Y:8E3};A?Y.command=A:P&&(P.classList.add("ephemeral-action-focusable-element"),Y.selector=P.tagName+
".ephemeral-action-focusable-element");this.queue.push(Y);qgW(this)};
kC.prototype.activate=function(R){var A=ebo(this.store.getState());if(A){if(A==null?0:A.command)_.oZ(A.command),this.store.dispatch(KaZ(null));if(A==null?0:A.selector)A=document.querySelector(A.selector),_.LTS(A);R.preventDefault()}};
var qgW=function(R){if(!ebo(R.store.getState())&&R.queue.length){var A=R.queue.shift();A&&(R.previousAnnouncement===A.announcement&&(A.announcement+="\u00a0"),R.store.dispatch(KaZ(A)),R.previousAnnouncement=A.announcement,R.timeoutId=setTimeout(function(){if(A.selector){var Y;(Y=document.querySelector(A.selector))==null||Y.classList.remove("ephemeral-action-focusable-element")}R.store.dispatch(KaZ(null));qgW(R)},A.durationMs))}};
kC.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(KaZ(null));this.queue.length=0;this.timeoutId=void 0};
kC[xk]=[_.PX,_.z3(_.om)];_.Ga=new _.cP("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Lom=window.AbortController||H0k;var dL9=new _.cP("AUTH_SERVICE_TOKEN");var zik=_.Z7(["about:blank"]),EFS;var RKW=new _.cP("API_IFRAME_TOKEN"),AOQ=new _.cP("FETCH_FN_TOKEN"),YTG=new _.cP("PARSE_FN_TOKEN"),PeQ=new _.cP("WINDOW_REQUEST_TOKEN"),EUm=new _.cP("TEXT_DECODER_TOKEN");var E0b;E0b=new _.cP("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.zK0=new _.cP("MISC_UI_SHARED_FLAGS_TOKEN");var iyg=function(){};
iyg.prototype.getFlag=function(R){if(R.configType!==2)throw Error("sj");return l4N(R)};
var l4N=function(R){switch(R.flagType){case "bool":return _.v(R.flagName);case "int":return _.jH(_.cU(R.flagName));case "double":return _.cU(R.flagName);case "string":return _.OK(R.flagName);case "int32_list":return fMI(R.flagName);case "int64_list":return fMI(R.flagName).map(function(A){return _.jH(A)});
case "string_list":return _.M1(R.flagName);default:throw Error("tj");}};var Z1=function(R,A,Y){A=A===void 0?{}:A;oc.call(this,Y===void 0?"uninitialized":Y);this.env=R;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}];A.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=A.shouldWaitOnAsyncImmediate)};
_.H(Z1,oc);Z1.prototype.init=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return A.processPluginOptions.shouldWaitOnAsyncImmediate?P.yield(R(A.env),2):(R(A.env),P.jumpTo(2));if(P.nextAddress!=4)return A.jobSet?P.yield(A.jobSet.completedResolver.promise,4):P.jumpTo(4);Y=_.EV();Y.parkOrScheduleJob(function(){A.transition("rendering")},10,"ci");
_.XH(P)})};
Z1.prototype.initialRender=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return A.processPluginOptions.shouldWaitOnAsyncImmediate?P.yield(R(A.env),2):(R(A.env),P.jumpTo(2));if(P.nextAddress!=4)return A.jobSet?P.yield(A.jobSet.completedResolver.promise,4):P.jumpTo(4);Y=_.EV();Y.parkOrScheduleJob(function(){A.transition("rendered")},10,"cr");
_.XH(P)})};
Z1.prototype.afterRenderImmediate=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return A.processPluginOptions.shouldWaitOnAsyncImmediate?P.yield(R(A.env),2):(R(A.env),P.jumpTo(2));if(P.nextAddress!=4)return A.jobSet?P.yield(A.jobSet.completedResolver.promise,4):P.jumpTo(4);Y=_.EV();Y.parkOrScheduleJob(function(){A.transition("after-render-deferred")},10,"carml");
_.XH(P)})};
Z1.prototype.afterRenderDeferred=function(R){var A=this;return _.O(function(Y){R(A.env);_.XH(Y)})};var xRm;_.BD("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});xRm={};_.cOW=(xRm.CSI=M3J(),xRm.ECATCHER=OWu(),xRm);var OyF={},MBW=(OyF.rendered={priority:0,callback:function(R){Fe8(R.injector.resolve($a))}},OyF);var ALk=new _.cP("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),sG9=new _.cP("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var N2m=function(R){this.callbackFnMap=R;this.configMap={}};
N2m.prototype.handleResponse=function(R){var A;if(R=(A=R.responseContext)==null?void 0:A.serviceTrackingParams)for(A=_.x(R),R=A.next();!R.done;R=A.next()){R=R.value;var Y=R.params,P=R.service;if(Y&&P){this.configMap[P]||(this.configMap[P]=new O5D);R=this.configMap[P];var E=void 0,z=(E=this.callbackFnMap)==null?void 0:E[P];Y=_.x(Y);for(P=Y.next();!P.done;P=Y.next())E=P.value,P=E.key,E=E.value,P&&E&&(R.set(P,E),z&&z(P,E))}}};
N2m[xk]=[_.z3(sG9)];var VBN=!1,yTq=0,srq=null,JTJ=null;var JOW=new _.cP("NETWORK_SLI_TOKEN");var yOF=function(R,A,Y,P,E){this.networkSli=R;this.fetchFn=A;this.parseFn=Y;this.requestFn=P;this.JSC$18495_textDecoder=E};
yOF.prototype.fetch=function(R,A,Y){var P=this,E,z,c;return _.O(function(M){E=mRo(P,R,A);c=(z=P.fetchFn)!=null?z:fetch;return M.return(c(E).then(function(N){return P.handleResponse(N,Y)}).catch(function(N){_.pK(N);
if((Y==null?0:Y.expectJsonStrict)&&N instanceof am&&N.errorType===1)return Promise.reject(N)}))})};
var a8Z=function(R,A,Y,P){var E,z,c,M,N,y,m;return _.O(function(T){switch(T.nextAddress){case 1:return E=mRo(R,A,Y),_.g2(T,2),T.yield(fetch(E),4);case 4:z=T.yieldResult;_.us(T,3);break;case 2:throw _.UT(T),new am(2,"Failed to parse streaming response",E.url);case 3:if(!z.redirected&&!z.ok)throw(c=R.networkSli)==null||c.failure(),new _.XN("Streaming fetch request not ok",E.url);if(!z.body)throw new _.XN("No response body in streaming response",E.url);M={};if(_.v("web_streaming_fast"))return N=z.body.getReader(),
T.return(T2o(R,N,M,P));y=z.body.pipeThrough(new TextDecoderStream).getReader();m=new _.yo;return T.return(QGF(R,y,m,XES,M,P))}})},mRo=function(R,A,Y){if(R.networkSli){var P=_.T3(_.Pk(A,"key"))||"/UNKNOWN_PATH";
R.networkSli.start(P)}P=Y;_.v("wug_networking_gzip_request")&&(P=u7u(Y));var E;return new ((E=R.requestFn)!=null?E:window.Request)(A,P)},T2o=function(R,A,Y,P){var E,z,c,M,N,y,m,T,Q,g,r;
return _.O(function(I){switch(I.nextAddress){case 1:E=R.JSC$18495_textDecoder?new R.JSC$18495_textDecoder("utf-8"):new TextDecoder("utf-8"),z="",c=function(b){b=b.trim();b.length!==0&&b!=="]"&&b!=="["?(b.startsWith("[")&&(b=b.substring(1)),b.endsWith("]")&&(b=b.slice(0,-1)),b.endsWith(",")&&(b=b.slice(0,-1)),b=b.trim()):b=void 0;if(b)try{var p=JSON.parse(b);XES(Y,p);P==null||P(Y,p)}catch(h){throw new am(1,"Failed to parse streaming response",b);}},_.g2(I,2,3);
case 5:return I.yield(A.read(),8);case 8:M=I.yieldResult;N=M.value;if(y=M.done)return z.length>0&&c(z),m=void 0,(m=R.networkSli)==null||m.success(),I.return(Y);z+=E.decode(N,{stream:!0});T=z.split("\n");z=T.pop()||"";Q=_.x(T);for(g=Q.next();!g.done;g=Q.next())r=g.value,c(r);I.jumpTo(5);break;case 3:_.Ht(I);A.releaseLock();_.D4(I,0);break;case 2:throw _.UT(I),new am(1,"Failed to parse streaming response");}})},QGF=function(R,A,Y,P,E,z){var c,M,N,y,m,T,Q,g,r;
return _.O(function(I){if(I.nextAddress==1)return I.yield(A.read(),2);c=I.yieldResult;M=c.value;if(N=c.done)return(y=R.networkSli)==null||y.success(),I.return(E);try{m=Y.parse(M)}catch(b){throw new am(1,"Failed to parse streaming response",M);}if(m!=null)for(T=_.x(m),Q=T.next();!Q.done;Q=T.next())g=Q.value,P(E,g),r=void 0,(r=z)==null||r(E,g);return I.return(QGF(R,A,Y,P,E,z))})};
yOF.prototype.handleResponse=function(R,A){var Y,P=(Y=this.parseFn)!=null?Y:JSON.parse;Y=R.text().then(function(E){if((A==null?0:A.jspbResponseCtor)&&R.ok)return hbk(A.jspbResponseCtor,E);E=E.replace(")]}'","");if((A==null?0:A.expectJsonStrict)&&E)try{var z=P(E)}catch(M){throw new am(1,"JSON parsing failed after fetch");}var c;return(c=z)!=null?c:P(E)});
R.redirected||R.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),Y=Y.then(function(E){_.pK(new _.XN("Error: API fetch failed",R.status,R.url,E));return Object.assign({},E,{errorMetadata:{status:R.status}})}));
return Y};
yOF[xk]=[_.z3(JOW),_.z3(AOQ),_.z3(YTG),_.z3(PeQ),_.z3(EUm)];var vUj=new _.cP("NETWORK_MANAGER_TOKEN");var gUo=[1,2,4,8,16,30],HyG=function(R){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=R.maxTimeMs;this.maxFrameCount=R.maxFrameCount===void 0?Math.ceil(60*R.maxTimeMs/1E3):R.maxFrameCount;R=_.x(gUo);for(var A=R.next();!A.done;A=R.next())this.brokenFrameSummarizers.push(new nUW(A.value/60*1E3))},rOY=function(R){var A=R.frameCountInternal>=R.maxFrameCount;
return R.elapsedTimeMs>=R.maxTimeMs||A};
HyG.prototype.summarize=function(){for(var R=[],A=_.x(this.brokenFrameSummarizers),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y=Y.brokenFrameCount!==0?{severityMs:Math.round(Y.targetFrameTimeMs),eventCount:Y.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(Y.averageDurationBetweenEventsMs)}:void 0,Y&&R.push(Y);return{summaries:R,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Yh.Object.defineProperties(HyG.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 nUW=function(R){this.targetFrameTimeMs=R;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Yh.Object.defineProperties(nUW.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var DRF=function(){};
DRF.prototype.start=function(R,A){var Y=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var P=new HyG({maxTimeMs:R});this.monitor=P;this.lastSummaryInternal=void 0;this.metadataToLog=A;return new Promise(function(E){var z=function(c){if(c===void 0)Y.stop(),E(void 0);else if(Y.monitor!==P)c=Object.assign({},P.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),E(c);else{var M=Y.monitor;if(!rOY(M)){M.frameCountInternal++;if(M.prevTime===
void 0)M.startTime=c;else for(var N=c-M.prevTime,y=_.x(M.brokenFrameSummarizers),m=y.next();!m.done;m=y.next()){m=m.value;var T=m.currTimeMs;m.currTimeMs+=N;N>m.targetFrameTimeMs+2&&(m.brokenFrameCount++,m.timeOfFirstBrokenFrameMs===void 0&&(m.timeOfFirstBrokenFrameMs=T),m.timeOfLastBrokenFrameMs=T)}M.prevTime=c}rOY(Y.monitor)?E(Y.stop()):_.fn.addJob(z,5,0)}};
_.fn.addJob(z,5,0)})};
DRF.prototype.stop=function(R){if(!this.monitor)return this.lastSummaryInternal;var A=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(A.monitoringDurationMs){R=R!=null?R:this.metadataToLog;var Y={droppedFramesSummary:A,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};R&&(Y[R.type]=R.data);_.Wj("manualSmoothnessMeasurement",Y)}this.monitor=void 0;this.lastSummaryInternal=A;this.metadataToLog=void 0;return A};_.URF=new _.cP("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var $R9;$R9=function(R){this.JSC$18518_expiringStorage=new IW(R)};
_.XtG=function(R){if(_.mPq()&&(R=_.r0q(_.UK()+"::"+R)))return new $R9(R)};
$R9.prototype.set=function(R,A,Y){Y=Y!==void 0?Date.now()+Y:void 0;this.JSC$18518_expiringStorage.set(R,A,Y)};
$R9.prototype.get=function(R){return this.JSC$18518_expiringStorage.get(R)};
$R9.prototype.remove=function(R){this.JSC$18518_expiringStorage.remove(R)};var STo=new _.cP("SESSION_STORAGE");_.tY=function(){};
_.tY.getInstance=function(){var R=_.Zr("ytglobal.storage_");R||(R=new _.tY,_.PG("ytglobal.storage_",R));return R};
_.tY.prototype.estimate=function(){var R,A,Y;return _.O(function(P){R=navigator;return((A=R.storage)==null?0:A.estimate)?P.return(R.storage.estimate()):((Y=R.webkitTemporaryStorage)==null?0:Y.queryUsageAndQuota)?P.return(Tiq()):P.return()})};
_.PG("ytglobal.storageClass_",_.tY);var DPI=0;var W7P=!1;var I4m=_.Z7(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),K6Y=_.Z7(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var HDY={"/":_.p_,"/?feature=ytca":_.p_,"/feed/downloads":_.AqI};var W6f=Kmj.continuationCommandSelector,Mm=function(R,A,Y){this.JSC$18534_upliftPromise=R;this.store=A;this.JSC$18534_persistentStorePromiseAccessor=Y};
Mm.prototype.shouldPreferLocalResponse=function(R){return R.browseId==="FEdownloads"||R.browseId==="FEsmart_downloads"&&_.v("kevlar_modern_downloads_page")?!0:!1};
Mm.prototype.localInnertubeResponse=function(R){var A=this;return _.O(function(Y){return R.browseId==="FEdownloads"?_.v("kevlar_modern_downloads_page")?Y.return(jGF(A)):Y.return(byF(A)):R.browseId==="FEsmart_downloads"&&_.v("kevlar_modern_downloads_page")?Y.return(f4n(A)):Y.return(Promise.reject(Error("vj")))})};
Mm.prototype.canProvideFallbackResponse=function(){return!0};
Mm.prototype.localFallbackInnertubeResponse=function(R){var A=this,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:return z.yield(A.JSC$18534_persistentStorePromiseAccessor(),2);case 2:Y=z.yieldResult;if(R.browseId!=="SPaccount_downloads"||!Y){z.jumpTo(3);break}return z.yield(ZkS(Y),4);case 4:if(P=z.yieldResult)return z.return(_.dc(P));case 3:return R.browseId==="FEwhat_to_watch"?z.return(ptn(A)):(E=_.v("web_offline_continuation_automatic_retry")||_.v("web_offline_continuation_retry_button"))&&
R.continuation?z.return(F6Y(A)):z.return(B2N(A))}})};
var ptn=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.JSC$18534_upliftPromise,2);A=_.BYb(R.store.getState().entities);return A.length?Y.return(a4N(R,A)):Y.return(B2N(R))})},byF=function(R){var A,Y;
return _.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$18534_upliftPromise,2);if(P.nextAddress!=3)return A=CeG([{offlineItemSectionRenderer:{}}]),P.yield(hKo(R,A),3);Y=P.yieldResult;Y.onResponseReceivedActions=[yh("REFRESH_DOWNLOADS")];return P.return(Y)})},jGF=function(R){var A,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b;
return _.O(function(p){if(p.nextAddress==1)return p.yield(R.JSC$18534_upliftPromise,2);if(p.nextAddress!=3)return A=R.store.getState(),Y=A.entities,P=_.j9(Y),E=_.bw(Y),z=_.ydS(A),c=_.JdS(A),M=_.maP(A),N=_.hSI(Y),y=_.$b(P),m=_.fx(Y),T=_.Z_k(Y),Q=_.Qmk(A),g=_.Cx(A),r={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.yqI(P,E,N,T,z,c,y,m,M,Q,g),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},I="",_.v("kevlar_modern_downloads_skip_downloads_title")||
(I=_.vk("DOWNLOADS",void 0,"Downloads")),p.yield(oUN(R,r,I),3);b=p.yieldResult;b.onResponseReceivedActions=[yh("REFRESH_DOWNLOADS")];return p.return(b)})},f4n=function(R){var A,Y,P,E,z,c,M,N,y;
return _.O(function(m){if(m.nextAddress==1)return m.yield(R.JSC$18534_upliftPromise,2);if(m.nextAddress!=3)return A=R.store.getState(),Y=A.entities,P=_.j9(Y),E=_.$b(P),z=_.fx(Y),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.TQk(P),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},M=_.vk("SMART_DOWNLOADS",void 0,"Smart downloads"),N=VUl(E,z),m.yield(oUN(R,c,M,N),3);y=m.yieldResult;y.onResponseReceivedActions=
[yh("REFRESH_DOWNLOADS")];return m.return(y)})},B2N=function(R){var A,Y;
return _.O(function(P){if(P.nextAddress==1)return P.yield(L0(R.JSC$18534_upliftPromise,R.store),2);A=P.yieldResult;Y=CeG([hL3(A)]);return P.return(hKo(R,Y))})},F6Y=function(R){var A,Y,P,E;
return _.O(function(z){if(z.nextAddress==1)return A={},Y=W6f(R.store.getState()),_.pC(A,_.oE,Y),z.yield(L0(R.JSC$18534_upliftPromise,R.store,A,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);P=z.yieldResult;E={};_.pC(E,_.C6H,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:P}}}],targetId:"browse-feedFEwhat_to_watch"});return z.return({responseContext:{},onResponseReceivedActions:[E]})})},CeG=function(R){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:R}}}}]}}},a4N=function(R,A){var Y,P;
return _.O(function(E){var z={contents:mO(A)};Y=z&&z.contents?z:{};_.v("kevlar_modern_downloads_page")&&(Y=Object.assign({},_.QOJ(A),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));P={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Y}}}]}};return E.return(hKo(R,P))})},hKo=function(R,A){var Y,P;
return _.O(function(E){if(E.nextAddress==1)return E.yield(R.JSC$18534_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3)return Y=E.yieldResult,E.yield(RL(Y),3);P=E.yieldResult;return E.return({responseContext:{},contents:A,topbar:P})})},oUN=function(R,A,Y,P){var E,z;
return _.O(function(c){if(c.nextAddress==1)return c.yield(R.JSC$18534_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return E=c.yieldResult,c.yield(RL(E),3);z=c.yieldResult;var M=c.return;var N=Y;var y=P;N=N===void 0?"":N;y=y===void 0?"":y;N={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:N}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.vk("SETTINGS",void 0,"Settings"),accessibilityText:_.vk("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:_.PK("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:y}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:N};
return M.call(c,{responseContext:{},contents:A,topbar:z,header:{pageHeaderRenderer:N}})})};var kOg=function(){this.moduleRegistry={};this.fetchCount=0};
kOg.prototype.isFetching=function(){return this.fetchCount>0};
var bD=function(R,A){R.moduleRegistry[A.toString()]={asyncId:A,isFetching:!1};return R};
kOg.prototype.JSC$18545_loadModules=function(){for(var R=this,A=new Map,Y=[],P=_.x(_.Ge.apply(0,arguments)),E=P.next();!E.done;E=P.next()){E=E.value;var z=this.moduleRegistry[E];z?z.resolver?A.set(E,z.resolver):(z.resolver=new _.y2,A.set(E,z.resolver),Y.push(z.asyncId),z.isFetching=!0):(z=new _.y2,A.set(E,z),z.resolve(void 0))}Y.length&&(this.fetchCount+=1,_.jS(_.UV.getMultipleAsync.apply(_.UV,_.py(Y)).then(function(c){for(var M=0;M<Y.length;M++){var N=c[M],y=R.moduleRegistry[Y[M].toString()];y.isFetching=
!1;y.resolver.resolve(N)}}).catch(function(c){for(var M=_.x(Y),N=M.next();!N.done;N=M.next()){N=N.value;
var y=R.moduleRegistry[N.toString()];y.resolver=void 0;y.isFetching=!1;A.get(N.toString()).reject(c)}}),function(){--R.fetchCount}));
return Promise.all([].concat(_.py(A.values())).map(function(c){return c.promise}))};_.f6=new _.cP("MODULE_REGISTRY_TOKEN");var GO0={},Zym=(GO0.rendered={priority:0,callback:function(R){a:{var A=void 0;try{var Y;b:{if(_.gmq()){var P=_.Hx8(_.UK()+"::pom");if(P){var E=new Zp(P);break b}}E=void 0}var z=(Y=E)==null?void 0:Y.get("role_text");if(!z)break a;A={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:z}]}}}}}}catch(N){}A&&R.injector.resolve(_.ls).resolveCommand(A)}try{var c=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(c){var M=JSON.parse(c);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
M&&R.injector.resolve(_.ls).resolveCommand(M)}}catch(N){}}},GO0);var tBo,wt0={},uHQ=(wt0.initialized={priority:10,callback:function(){tBo=vC()}},wt0.rendering={callback:function(R){var A;
return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(tBo,2);A=Y.yieldResult;if(!A.endpoint)throw Error("xj`"+_.P3.location.href);re(R,A);_.XH(Y)})}},wt0);var eKQ={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(_.py(_.v("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(R){var A=R.stack;if(A.includes("chrome://")||A.includes("chrome-extension://")||R.message.includes("chrome-extension://")||A.includes("moz-extension://")||A.includes("local.adguard.org")||A.includes("auctioneer3.50million.club")||A.includes("youtubedownloader")||A.includes("youtube_home_page")||A.includes("is_youtube_video_no_longer_available")||
A.includes("switchScreenSizeHack")||A.includes("yt_main_big_banner.js")||A.includes("YouTubeCenter.js")||A.includes("/mytube.js")||A.includes("JSON.parseWrapper")||A.includes("/inj_js/common.js")||A.includes("firebug-lite")||A.includes(".repl.co/")||A.includes("linkfix")||A.includes("playAfterAd")||R.message.includes("Access is denied for this document")&&A.includes("<anonymous>")||R.fileName==="user-script"||R.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
A.includes("<anonymous>"))return!0;if(A.includes("https://www.youtube.com"))return!1;R=A.split("\n");if(!R.length)return!1;if(R.length<=3&&A.includes("s.onloadeddata"))return!0;A=0;for(var Y=_.x(R),P=Y.next();!P.done;P=Y.next())P=P.value,(P.includes("https://")||P.includes("http://"))&&A++;return A/R.length>.95},
weight:0},{callback:function(R){return R.message==="Unknown Error"&&R.name.indexOf("NS_")===0},
weight:100},{callback:function(R){if(!_.lu)return!1;var A=R.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||R.message.includes("available to complete this operation"),Y=R.stack.includes("webcomponents")&&R.message==="Object doesn't support this action";R=R.message.includes("object that does not implement interface Element");return A||Y||R},
weight:0},{callback:function(R){return R.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(R){return R.message==="Operation is not supported"&&(R.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(R){return R.stack.includes("eval code (eval (code:1:1)")||R.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(R){return R.message.includes("Permission denied")&&R.stack.includes("this.domHandler")?!0:R.name.includes("TypeError")&&R.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(R){if(!R.stack)return!1;var A=R.stack.trim().split("\n");A.length&&A[0].endsWith("Error: "+R.message)&&A.shift();A.length&&A[A.length-1].includes("at window.onerror (")&&A.pop();if(!A.length)return!0;if(R.message==="Script error.")return A[0].includes("www.youtube.com")||A.length>=2&&A[0].startsWith("at new")&&A[1].startsWith("at window.onerror");if(R.message==="Unexpected token")return!0;R=_.x(A);for(A=R.next();!A.done;A=R.next())if(A=A.value,!(A.includes("<anonymous>")||
A.startsWith("load@")||A.startsWith("global code@")||A.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(R){return R.message==="Cannot read property 'experiments'"&&R.stack.includes("/s/player/")},
weight:500},{callback:function(R){return R.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(R){return R.stack.includes("/embed.js")?(R.params&&R.params&&(R.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.v("use_error_suppression"))var R=_.a1("SUPPRESS_CLIENT_ERRORS",!1);else{if(R=_.sk)R=/Chrome\/(\d+)/.exec(_.yk()),R=(R?parseFloat(R[1]):NaN)>=66;R=!(R||_.Mc&&_.Ok(65)||_.hN&&_.Ok(12.1)||AZ&&_.Ok(79))}return R},
weight:500}]};var qTm={},L6Q=(qTm.initialized={priority:10,callback:function(R){R.injector.addProvider({provide:jgb,useValue:R.root});R.injector.addProvider({provide:NoH,useValue:QPl});R.injector.addProvider({provide:VGY,useValue:eKQ});var A={};R.injector.addProvider((A.provide=J90,A.useFactory=function(Y,P){return function(){ic8(Y,P)}},A[xk]=[NoH,
VGY],A));R.injector.addProvider({provide:pp,useClass:pp})}},qTm);var dRN={},Rd0=(dRN.initialized={priority:3,callback:function(){var R;if(R=y0V()){R=R.replace("/",".");var A=_.Hk();A.set("tz",R);A.save();R=!0}else R=!1;R||(R=_.Hk(),R.set("utco",-Math.floor((new Date).getTimezoneOffset())),R.save())}},dRN);var Ar0={},YpW=(Ar0.initialized={priority:10,callback:function(R){R.injector.resolve(pp).start();R=_.qi();var A=_.CQ("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.CQ("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.CQ("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.CQ("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.iD(_.Lw3(),{mainAppWeb:Object.assign({},R,{pageType:A})});_.iD(RVl(),{mainAppWeb:Object.assign({},R,{pageType:A})});
_.iD(ASJ(),{mainAppWeb:R});_.iD(YuV(),{mainAppWeb:R});ey7(function(){_.lD(ASJ(),"FAILURE");_.lD(YuV(),"FAILURE")});
t3k();wz8();MnV()}},Ar0);var PGi={},E2G=(PGi.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Fh("dl"),_.EV().processSignal("pcl");else{var R=function(){_.Fh("dl");_.EV().processSignal("pcl");window.removeEventListener("load",R)};
window.addEventListener("load",R)}}},PGi);var zdG={},isF=(zdG.rendering={priority:0,callback:function(){var R=_.EV();R.parkOrScheduleJob(function(){R.processSignal("eocs")},10,"eor",5E3)}},zdG);var lg0=function(){};
_.H(lg0,zg);
lg0.prototype.resolveCommand=function(R,A){var Y,P,E,z,c,M,N,y;return _.O(function(m){E=(Y=_.n(R,_.RlE))==null?void 0:(P=Y.dialog)==null?void 0:P.commentReplyDialogRenderer;if(!E)throw new _.XN("No dialog in createCommentReplyDialogEndpoint");c=(z=A.form)==null?void 0:z.event;if(!c)throw new _.XN("Event not passed in when resolving command");M=_.x(c.composedPath());for(N=M.next();!N.done;N=M.next())if(y=N.value,y.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||y.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return y.showReplyDialog(E),m.return();
_.XH(m)})};var wm=function(R){this.pageRequestService=R;this.JSC$18560_prefetchCoordinator=RQG()};
_.H(wm,zg);wm.prototype.resolveCommand=function(R){var A=this,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1){Y=_.n(R,jYz);if((P=Y)==null||!P.taskId)throw Error("yj");E=Y.taskId;_.g2(c,2);return c.yield(_.b5D(A.pageRequestService,R,{},"").then(function(M){if(!M)throw Error("zj");},function(M){throw Error("Aj`"+M);
}),4)}if(c.nextAddress!=2)return Pij(A.JSC$18560_prefetchCoordinator,E),_.us(c,0);
z=_.UT(c);U1(A.JSC$18560_prefetchCoordinator,E,z);_.XH(c)})};
wm[xk]=[Q5];var u3=function(R,A){this.innertubeTransportService=R;this.JSC$18564_commandHandler=A};
_.H(u3,zg);u3.prototype.resolveCommand=function(R){var A=this,Y,P,E;return _.O(function(z){if(z.nextAddress==1){Y=_.n(R,WAN);if(Y.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||Y.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")P=Y.boolValue?2:1,_.mA.getInstance().setState(P,!0,!0);return z.yield(_.uh(A.innertubeTransportService,R),2)}E=z.yieldResult;xMG(A,E);_.XH(z)})};
var xMG=function(R,A){A.actions&&A.actions.forEach(function(Y){R.JSC$18564_commandHandler.resolveCommand(Y)})};
u3[xk]=[_.Co,_.ls];var e8={},crY=(e8.addToPlaylistEndpoint=Yb(LL),e8.addToToastAction=Yb(P5),e8.adsControlFlowOpportunityReceivedCommand=Yb(j$),e8.audioTrackSelectActionCommand=Yb(Lln),e8.backgroundAudioPlaybackCommand=Yb(sM),e8.captionLanguageSelectActionCommand=Yb(Np),e8.captionPickerEndpoint=Yb(Vs),e8.changeMiniAppPlayStateCommand=Yb(dW),e8.changeTimelyActionVisibilityCommand=Yb(Au),e8.channelCreationFormEndpoint=Yb(ZK),e8.clearLocationCommand=Yb(qk),e8.clearUrlParamCommand=Yb(Rp),e8.copyLinkCommand=Yb(gs),e8.copyTextEndpoint=
Yb(pL),e8.createCommentReplyDialogEndpoint=Rlk(lg0),e8.createPlaylistServiceEndpoint=Yb(nZ),e8.dismissDialogEndpoint=Yb(YO),e8.dismissPlayerOverlayCommand=Yb(ys),e8.entityUpdateCommand=Yb(Bh),e8.feedbackEndpoint=Yb(hy),e8.getAnswerCommand=Yb(cEo),e8.getPaymentsClientTokenCommand=Yb(il),e8.getTranscriptEndpoint=Yb(EN),e8.googlePaymentBillingCommand=Yb(ll),e8.googlePaymentPurchaseManagerCommand=Yb(xT),e8.hideEngagementPanelEndpoint=Yb(PI),e8.hideSnackbarCommand=Yb(ws),e8.insertRichSectionCommand=Yb(wW),
e8.listMutationCommand=Yb(uq),e8.logGtmCommand=Yb(ty),e8.notifyDropdownOptionSelectedCommand=Yb(Az),e8.openAdAllowlistInstructionCommand=Yb(_.bq),e8.openOnePickAddVideoModalCommand=Yb(HI),e8.persistSubscriptionsDisplayPreferencesCommand=Yb(Sl),e8.pingingEndpoint=Yb(fL),e8.playlistEditEndpoint=Yb(D8),e8.playlistVotingRefreshPopupCommand=Yb(UM),e8.profileCardCommand=Yb(Wh),e8.refreshPanelEndpoint=Yb(EM),e8.saveImageToDeviceEndpoint=Yb(F5),e8.scrollToSectionEndpoint=Rlk(ODi),e8.seekToVideoTimestampCommand=
Yb(mz),e8.selectCountryCommand=Yb(Ip),e8.setCookieCommand=Yb(KZ),e8.setLocalStorageCommand=Yb(el),e8.setPrefStorageEntryCommand=Yb(jl),e8.setSettingEndpoint=Yb(u3),e8.sfvAudioItemPlaybackCommand=Yb(Tm),e8.shareImageCommand=Yb(bC),e8.sharingProviderDataCommand=Yb(fZ),e8.showAudioTrackPickerActionCommand=Yb(lz0),e8.showCaptionLanguageSelectActionCommand=Yb(Qs),e8.showDialogCommand=Yb(lC),e8.showEngagementPanelEndpoint=Yb(xO),e8.showSheetCommand=Yb(cI),e8.showSnackbarCommand=Yb(uC),e8.showTransientPlayerScrimOverlayCommand=
Yb(vI),e8.submitFormWithValidationFlowCommand=Yb(Gz),e8.talkToRecsDeselectCommand=Yb(qp),e8.talkToRecsNextCommand=Yb(LZ),e8.talkToRecsSelectCommand=Yb(ds),e8.talkToRecsUpdateTextCommand=Yb(Rd),e8.toggleEngagementPanelCommand=Yb(OM),e8.undoFeedbackEndpoint=Yb(kv),e8.updateEngagementPanelContentCommand=Yb(Mp),e8.updateUrlParamCommand=Yb(zU),e8.verifyCommand=Yb(ZK),e8.webNativeShareCommand=Yb(pZ),e8.webSubmitFormCommand=Yb($O),e8.ACK_PLAYABLES_3P_DATA_CONSENT=Yb(F_),e8.CANCEL_NAVIGATION=Yb(BI),e8.COPY_SHARE_URL=
Yb(ap),e8.MINI_APP_EXIT_DIALOG_SEEN=Yb(hz),e8.MINI_APP_OPEN_URL=Yb(CZ),e8.REQUEST_MINI_APP_FULLSCREEN=Yb(op),e8.RESUME_NAVIGATION=Yb(kO),e8.SHARE_PLAYABLE_WITH_HIGH_SCORE=Yb(Gm),e8.TELL_US_WHY=Yb(oq),e8);_.v("web_enable_prefetching_videos_on_home")&&(crY.prefetchWatchCommand=Yb(wm),crY.registerTasksCommand=Yb(XB));_.v("enable_share_panel_navigation_logging_fix_on_web")&&(crY.shareEntityServiceEndpoint=Yb(zm));var omq=Object.assign({},crY);var Os9={},MpH=(Os9.initialized={priority:10,callback:dPJ},Os9);var sSW={},NLf=(sSW.initialized={callback:function(R){var A={},Y={};nC6().install((A.document_disposed={callback:function(){_.v("finalize_all_timelines")?vg6():jF();Nil("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.jDq();var P=R.injector.resolve(pp);P.intervalId!==void 0&&(P.intervalId&&_.fn.cancelJob(P.intervalId),P.intervalId=void 0,--P.currentPartitionIndex,P=gRN(P),P>0&&UvZ({mainAppWeb:_.qi(),survivalSli:{partitionMinute:P,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));TIb(x5);ci!=null&&
ci.flush();Mi&&Mi.snapshotAndFlush();P=_.x(pAD.values());for(var E=P.next();!E.done;E=P.next())E.value.snapshotAndFlush()}},A),(Y.flush_logs={callback:function(){_.j_()}},Y))}},sSW);var VpH={},JrW=(VpH.rendered={priority:0,callback:function(){var R=new feN;R.increment("STARTED");if(_.a1("LOGGED_IN")&&!_.a1("IS_DBSC",!1)&&_.a1("SERVER_VERSION")!=="test"&&_.a1("SERVER_VERSION")!=="dev"&&!yEZ()&&!JEN()){R.increment("EXECUTING");var A=document.createElement("iframe");A.style.display="none";_.l4k(A,2,_.oR("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.a1("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(A);R.increment("DONE")}}},
VpH);var yrY={},mM9=(yrY.rendered={callback:function(){RQG().resume()}},yrY);var TLW={acknowledgeChannelTouStrikeCommand:I4(FM),addToPlaylistServiceEndpoint:I4(CV),addToPlaylistEndpoint:I4(CV),addUpcomingEventReminderEndpoint:I4(LR),browseEndpoint:I4(FSn),channelCreationFormEndpoint:I4(Id),channelCreationServiceEndpoint:I4(KR),claimLegacyYoutubeChannelEndpoint:I4(mR),clearSearchHistoryEndpoint:I4(GU),clearWatchHistoryEndpoint:I4(Zv),commerceActionCommand:Ko(xC),createBackstagePostEndpoint:I4(MQ),createBroadcastCommand:I4(dD),createCommentEndpoint:I4(UN),createCommentReplyEndpoint:I4(Dv),
createLiveChatPollEndpoint:I4(Rt),createPlaylistServiceEndpoint:I4(h2),crossAccountChannelTransferEndpoint:I4(ul),deleteLiveChatMessageCommand:I4(A2),deletePlaylistEndpoint:I4(ot),deleteVideoEndpoint:I4(E1),dismissalEndpoint:I4(B5),feedbackEndpoint:I4(ad),flagEndpoint:I4(uR),getAccountSwitcherEndpoint:I4(wD),verifyCommand:I4(ON),getAccountsListInnertubeEndpoint:I4(qQ),getCommentsFromInboxCommand:I4(HE),getDownloadActionCommand:I4(It),getFlowCommand:Ko(kT),getKidsBlocklistPickerCommand:I4(ea),getNotificationMenuEndpoint:I4(C80),
getPaymentInstrumentsParamsCommand:I4(Vl),getPaymentsClientTokenCommand:Ko(xC),getPdgBuyFlowCommand:I4(BE),getReportFormEndpoint:I4(q7),getSearchInVideoCommand:I4(RD),getAnswerCommand:I4(dP),getSurveyCommand:I4(PN),getTranscriptEndpoint:I4(i3),getPostVideoPreviewEndpoint:I4(NQ),decorateMessageEndpoint:I4(sN),likeEndpoint:I4(W5),liveChatActionEndpoint:I4(zC),liveChatEndpoint:I4(Ev),liveChatItemContextMenuEndpoint:I4(Yf),liveChatPurchaseMessageEndpoint:I4(iR),liveChatReplayEndpoint:I4(PE),manageLiveChatUserEndpoint:I4(xf),
metadataUpdateCommand:I4(gP),moderateLiveChatEndpoint:I4(cE),modifyChannelNotificationPreferenceEndpoint:I4($f),notificationOptOutEndpoint:I4(Xx),openSuperStickerBuyFlowCommand:I4(lR),performCommentActionEndpoint:I4(nR),playlistEditEndpoint:I4(GC),playlistEditorEndpoint:I4(kf),recordNotificationInteractionsEndpoint:I4(Sa),reelWatchEndpoint:I4(Za),refreshPanelEndpoint:I4(WE),removeUpcomingEventReminderEndpoint:I4(Ov),resolveLocationCommand:I4(N7),revealBusinessEmailCommand:I4(TU),searchEndpoint:I4(_.hqY),
sendLiveChatMessageEndpoint:I4(M7),sendLiveChatVoteEndpoint:I4(sv),setSettingEndpoint:I4(jT),shareEntityServiceEndpoint:Ko(pR),sharingProviderDataCommand:I4(YC),showEngagementPanelEndpoint:I4(ja),showMoreDrawerCommand:I4(fV),showSheetCommand:I4(pV),showDialogCommand:I4(bR),subscribeEndpoint:I4(bl),transcriptSubmitCaptionCorrectionCommand:I4(za),undoFeedbackEndpoint:I4(hu),unsubscribeEndpoint:I4(fR),updateBackstagePostEndpoint:I4(Ju),updateCommentEndpoint:I4(XM),updateCommentReplyEndpoint:I4($T),updateCommentsSettingsEndpoint:I4(ST),
updateCreatorChannelInnertubeCommand:I4(v5),updateKidsBlacklistEndpoint:I4(LV),updateEngagementPanelContentCommand:I4(Fx),updatePdgFeatureEnablementCommand:I4(at),updatedMetadataEndpoint:I4(nV),validateChannelHandleCommand:I4(gD),updateChannelPageSettingsEndpoint:I4(QF),verifyAgeEndpoint:I4(od),watchEndpoint:Ko(br),whitelistEditEndpoint:I4(l3),ypcCancelRecurrenceEndpoint:I4(cN),ypcCompleteTransactionEndpoint:I4(O1),ypcFixInstrumentEndpoint:I4(s1),ypcGetCartEndpoint:I4(Mn),ypcGetOffersEndpoint:I4(Nn),
ypcHandleTransactionEndpoint:Ko(JY),ypcLogWalletAnalyticDataEndpoint:I4(yl),ypcOffersEndpoint:I4(m2),ypcPauseSubscriptionCommand:I4(Ta),ypcRedeemCodeEndpoint:I4(Ql),ypcResumeSubscriptionCommand:I4(vN),ypcUpdateFopEndpoint:I4(s1)},qn={},QSi=(qn.GET_ACCOUNT_MENU=I4(eT),qn.GET_NOTIFICATIONS_MENU=I4(azH),qn.GET_NOTIFICATIONS_INBOX=I4(rP),qn.GET_UNSEEN_NOTIFICATION_COUNT=I4(Uv),qn.GET_USER_MENTION_SUGGESTIONS=I4(VF),qn.LOAD_GUIDE=I4(Bfn),qn.SUBMIT_FEEDBACK=I4(CR),qn),LM={},v2H=(LM.CONTINUATION_REQUEST_TYPE_BROWSE=
I4(yF),LM.CONTINUATION_REQUEST_TYPE_SEARCH=I4(AY),LM.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=I4(p1),LM.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=I4(tu),LM.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=I4(rD),LM.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=I4(H5),LM.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=I4(wP),LM.CONTINUATION_REQUEST_TYPE_GET_PANEL=I4(KV),LM),g2N={player:Ko(br),watchNext:I4(f1)},n2W={player:Ko(br),reelItemWatch:I4(Za),reelWatchSequence:I4(t2)},HsY={watchEndpoint:Ko(Fs)},rrF=
{commandEndpointMap:TLW,signalEndpointMap:QSi,continuationEndpointMap:v2H,watchEndpointMap:g2N,reelWatchEndpointMap:n2W,streamingEndpointMap:HsY};var DMo,UMW,$M0;_.XO0=((UMW=(DMo=window).matchMedia)==null?void 0:($M0=UMW.call(DMo,"(prefers-reduced-motion: reduce)"))==null?void 0:$M0.matches)||!document.startViewTransition;var SpN={},Igj={disableAllTransitions:_.XO0,ignoredErrors:(SpN.DOCUMENT_HIDDEN=!0,SpN.WINDOW_SIZE_CHANGED=!0,SpN.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,SpN),transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["lockup-to-watch",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["watch-next-appears",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:200}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,
skipTransitionTimeoutMs:600}}]])};var KMW=_.Z7("\n          :root {\n            --ytd-vtm-exit-ms: ,ms;\n            --ytd-vtm-wait-ms: ,ms;\n            --ytd-vtm-enter-ms: ,ms;\n            --ytd-vtm-watch-exit-ms: ,ms;\n            --ytd-vtm-watch-wait-ms: ,ms;\n            --ytd-vtm-watch-enter-ms: ,ms;\n          }\n      ".split(",")),WMF=function(R){this.viewTransitionCoordinator=R;this.isBrowseTransitionEnabled=_.OK("web_page_transition_type")==="slide";this.isLockupToWatchTransitionEnabled=_.v("web_thumbnail_to_watch_transition");
this.isLockupThumbnailRegistrationEnabled=_.v("web_thumbnail_to_watch_transition_register_thumbnail");this.isLearningJourneyTransitionEnabled=_.v("enable_plj_landing_page");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;this.registerRootElement();if(this.isAnyTransitionEnabled){R=_.cU("web_page_transition_exit_ms");var A=_.cU("web_page_transition_wait_ms"),
Y=_.cU("web_page_transition_enter_ms"),P=_.cU("web_page_transition_watch_exit_ms"),E=_.cU("web_page_transition_watch_wait_ms"),z=_.cU("web_page_transition_watch_enter_ms");if(!isNaN(R)||!isNaN(A)||!isNaN(Y))if(R=bsu(KMW,R,A,Y,P,E,z))A=document.createElement("style"),A.textContent=sGk(R),document.head.appendChild(A)}};
WMF.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var R={};this.viewTransitionCoordinator.registerElement(document.documentElement,(R.slide="root-slide",R["lockup-to-watch"]="root-lockup-to-watch",R["learning-journey"]="root-learning-journey",R))}};
_.GMD=function(R,A){R.isLockupToWatchTransitionEnabled&&R.isLockupThumbnailRegistrationEnabled&&(R.registeredLockupThumbnail?R.lockupThumbnailRegisteredFromWatchEndpoint?_.pK(new _.XN("Lockup thumbnail registration order is incorrect.")):_.pK(new _.XN("Lockup thumbnail already registered.")):(R.registeredLockupThumbnail=A,_.jSF(R,A)))};
_.jSF=function(R,A){var Y={};R.viewTransitionCoordinator.registerElement(A,(Y["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",Y),!0)};
WMF[xk]=[Jbi];var RDk={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var Ysk=["videoPrimaryInfoRenderer","title"],P$k=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var bsf;bsf=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.fgF=_.E5(function(R){R=_.Pc(R,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var A=R.data,Y=R.playlistData,P=R.expanded,E=R.onExpandClick,z=R.isReadyToResume,c=function(){var m;return!((m=Y())==null||!m.contents)},M=function(){var m=Y();
return m&&m.totalVideos&&m.currentIndex!==void 0?m.currentIndex+1+" / "+m.totalVideos:""};
R=_.Qi(function(){_.dm(_.is().resolve(_.jv));return!1});
var N=_.Qi(function(){c()&&E&&E()}),y={};
return _.V("ytd-miniplayer-info-bar",{class:_.To("ytdMiniplayerInfoBarHost",(y.ytdMiniplayerInfoBarHasPlaylistData=c,y)),"on:click":N},_.V("div",{class:"ytdMiniplayerInfoBarContent"},_.V("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":R},_.V(_.NU,{text:function(){var m=A();var T=Y();if(T==null?0:T.contents){var Q;m=(Q=_.QJ6(T))==null?void 0:Q.title}else m=m==null?void 0:m.miniplayerTitle;return EKk(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.V("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.V(_.J,{cond:z,then:function(){return _.V(WHS,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:bsf})}}),_.V("h1",null,_.V(_.NU,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var m=A();var T=Y();m=z()?{simpleText:_.vk("CONTINUE_WATCHING",void 0,"Continue watching")}:(T==null?0:T.contents)?T.titleText:m==null?void 0:m.miniplayerSubtitle;return EKk(m)},
noEndpoints:!0,ellipsisTruncate:!0})),_.V(_.J,{cond:function(){return!!M()&&!z()},
then:function(){return _.V("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.V("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.V("span",null,M))}}))),_.V(_.J,{cond:c,
then:function(){return _.V("div",{class:"ytdMiniplayerInfoBarExpand"},_.V(_.SV,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(m){E&&(E(),m.stopPropagation())}}},
iconName:function(){return P()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"Ue");var pOg;pOg=_.E5(function(R){return _.V("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.V(_.SV,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:R.onTap}},
iconName:"yt-icons:close"}))},"Ve");
_.FMW=_.E5(function(R){R=_.Pc(R,{playabilityStatus:void 0,isDisabled:!1});var A=R.size,Y=R.playabilityStatus,P=R.isDisabled,E=_.LK("div");R=_.x(_.yy(void 0,void 0,"bJr0Se"));var z=R.next().value,c=R.next().value;R=_.aE(_.ix);var M=!1,N=function(){return A().height<=0};
_.jq(function(){var Q=A(),g=N(),r=z();r&&!g&&r.setInternalSize(Q.width,Q.height)},"OUOyKb");
_.WD(function(){var Q,g,r;return _.O(function(I){if(I.nextAddress==1){Q=_.is().resolve(_.jv);g=Q.getPlayerElement();if(!Q.isMiniplayerActive()||!g||!E.value)return I.return();g.appendTo(E.value);return I.yield(g.getPlayerPromise(),2)}r=I.yieldResult;r.setSizeStyle(!1,!0);c(r);_.XH(I)})});
_.bm(function(){y()});
_.jq(function(){var Q=z();if(Q)if(P()){var g=Q.getPlayerState();(M=g===-1||g===1||g===3)&&Q.pauseVideo()}else y()},"KKHe5");
var y=function(){if(M){M=!1;var Q;(Q=z())==null||Q.playVideo()}},m=_.Qi(function(){_.dm(_.is().resolve(_.jv))}),T={};
return _.V("ytd-miniplayer-player-container",{class:_.To("ytdMiniplayerPlayerContainerHost",(T.ytdMiniplayerPlayerContainerHidden=N,T.ytdMiniplayerPlayerContainerHostShortsPip=R,T)),style:_.nY({width:function(){return A().width+"px"},
height:function(){return A().height+"px"}})},_.V("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:E}),_.V(_.J,{cond:function(){return!!Y()&&!_.jMV(Y())},
then:function(){return _.V(GwH,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var Q;return((Q=Y())==null?void 0:Q.errorScreen)||null},
status:function(){var Q;return((Q=Y())==null?void 0:Q.status)||null}})}}),_.V(_.J,{cond:P,
then:function(){return _.V("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":m},_.V(pOg,{onTap:function(){_.is().resolve(_.jv).close()}}))}}))},"We");_.BLF=_.E5(function(R){var A=R.toastData;var Y=_.LK("ytd-miniplayer-toast");R=_.x(_.gl(function(){return!!A()}));
var P=R.next().value,E=R.next().value;R=_.x(_.yy(!1,void 0,"xkrBze"));var z=R.next().value,c=R.next().value,M=function(){var m;return _.R4((m=A())==null?void 0:m.data.title)};
_.jO(function(){_.eQ.requestAvailability();A()&&E(!1)});
var N,y;_.jq(function(){P()&&(_.xo(Y.value,"iron-announce",{text:A().label+" "+M()}),N&&_.fn.cancelJob(N),N=_.fn.addLowPriorityJob(function(){c(!0)},2500))},"OTdL1e");
_.jq(function(){z()&&(y&&_.fn.cancelJob(y),y=_.fn.addLowPriorityJob(function(){E(!1);c(!1)},300))},"yybqib");
R={};return _.V("ytd-miniplayer-toast",{el:Y,class:_.To("ytdMiniplayerToastHost",(R.ytdMiniplayerToastOpening=function(){return P()},R.ytdMiniplayerToastClosing=function(){return z()},R))},_.V(_.J,{cond:function(){var m;
return(m=A())==null?void 0:m.data},
then:function(m){return _.V(hJD,{className:"ytdMiniplayerToastThumbnail",data:m,width:78})}}),_.V("div",{class:"ytdMiniplayerToastInfo"},_.V("div",{class:"ytdMiniplayerToastLabel"},function(){var m;
return(m=A())==null?void 0:m.label}),_.V("div",{class:"ytdMiniplayerToastTitle"},M)))},"Xe");var Ve6;var mDV=null;var CG0=_.E5(function(R){var A=R.progressState;var Y=R.multiMarkersPlayerBarRenderer;var P=R.progressBarWidth;var E=function(){return gKu(Y())},z=function(){return raP(A())},c=function(){return P()*(A().playedTime/A().videoDuration)};
return _.V("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.V(_.Ue,{each:E},function(M,N){return _.V(agn,{modifiedProps:z,chapters:E,index:N,playedProgressWidth:c,backgroundGradientPosition:function(){var y=z(),m=E(),T=N(),Q=c();return(y.playedTime-K6(_.n(m[T],IL)))/y.playedTime*Q}})}))},"Ye"),agn=_.E5(function(R){var A=R.modifiedProps;
var Y=R.chapters;var P=R.index;var E=R.playedProgressWidth;var z=R.backgroundGradientPosition;R={};R=_.To("ytChapteredProgressBarChapteredPlayerBarChapter",(R.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return c().isScrubbing},R.ytChapteredProgressBarHoveredMacroMarker=function(){return c().scrubberHovering},R.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return c().videoPosition==="seen"},R));
var c=function(){return DD3(A(),Y(),P())},M=function(){var N=A();
var y=Y(),m=P();if(DD3(N,y,m).videoPosition!=="active")N=0;else{var T=K6(_.n(y[m],IL));N=(N.playedTime-T)/((K6(_.n(y[m+1],IL))||N.videoDuration)-T)}return N};
return _.V("div",{class:R,style:_.nY({width:function(){var N=A(),y=Y(),m=P(),T=_.n(y[m],IL);y=_.n(y[m+1],IL);return(y?K6(y)-K6(T):N.videoDuration-K6(T))/N.videoDuration*100+"%"},
"background-color":function(){a:{var N=c();switch(N.videoPosition){case "pending":N=N.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":N=N.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:N=""}}return N},
"background-size":function(){return(UDq(c())?E():"")+"px"},
"background-position-x":function(){return(UDq(c())?z():"")+"px"}})},_.V("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var N=A(),y=Y(),m=P();if(DD3(N,y,m).videoPosition==="seen")var T=0;else T=K6(_.n(y[m],IL)),y=K6(_.n(y[m+1],IL))||N.videoDuration,N=N.videoDuration*N.percentLoaded,T=y<=N?1:T>=N?0:(N-T)/(y-T);return"width: "+T*100+"%"}}),_.V("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.nY({width:function(){return M()*100+"%"},
"background-size":function(){return(UDq(c(),M())?E():"")+"px"},
"background-position-x":function(){return(UDq(c(),M())?z():"")+"px"}})}))},"Ze");var hdj=function(R,A){A=A===void 0?Oi8:A;var Y,P=[],E,z=!1;return function(){var c=_.Ge.apply(0,arguments);if(z&&Y===this&&A(c,P))return E;E=R.apply(this,c);z=!0;Y=this;P=c;return E}}(function(R){var A=R.heatMarkers,Y=R.minHeightDp===void 0?0:R.minHeightDp,P=R.maxHeightDp===void 0?60:R.maxHeightDp;
var E=E===void 0?!1:E;var z=1E3/A.length;R=[];R.push({x:0,y:100});for(var c=0;c<A.length;c++){var M=void 0,N=((M=_.n(A[c],F4N))==null?void 0:M.heatMarkerIntensityScoreNormalized)||0;M=(c+.5)*z;N=100-_.Sv(N*100,Y/321*100,P/321*100);c!==0||E||R.push({x:0,y:N});R.push({x:M,y:N});c===A.length-1&&R.push({x:1E3,y:N})}R.push({x:1E3,y:100});A="";for(Y=0;Y<R.length;Y++)E=R[Y],Y===0?E="M "+E.x.toFixed(1)+","+E.y.toFixed(1):(P=K1P(R[Y-1],R[Y-2],E),z=K1P(E,R[Y-1],R[Y+1],!0),E=" C "+(P.x.toFixed(1)+","+P.y.toFixed(1)+
" "+z.x.toFixed(1)+","+z.y.toFixed(1)+" "+E.x.toFixed(1)+","+E.y.toFixed(1))),A+=E;return A});var o2N=_.E5(function(R){var A=R.progressBarProps;var Y=R.config;var P={};R=_.To("ytHeatSeekerHost",(P.ytHeatSeekerHighContrast=R.highContrast,P));var E=function(){return cau(Y().chapterData)};
return _.V("yt-progress-bar-heatseeker",{class:R,style:function(){var z;return"height: 320px; display: "+(A().isDragging&&((z=E())==null?0:z.heatMarkers)?"block":"none")}},_.V(_.J,{cond:E,
then:function(z){return _.V(_.J,{cond:function(){return z().heatMarkers},
then:function(){return _.V("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.V("path",{d:function(){return hdj(z())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"$e");var kE9=_.E5(function(R){var A=R.progressBarProps;var Y=R.config;R={};R=_.To("ytProgressBarLineProgressBarLine",(R.ytProgressBarLineProgressBarLineRounded=function(){return Y().rounded},R.ytProgressBarLineProgressBarLineBottomInset=function(){return Y().position===2},R));
return _.V("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.V("div",{class:R},_.V("div",{class:"ytProgressBarLineProgressBarBackground"}),_.V("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+A().percentLoaded*100+"%"}}),_.V("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var P=A();return"width: "+(P.videoDuration?_.Sv(P.hoveredTime/P.videoDuration,0,1):0)*100+"%"}}),_.V("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+i4P(A())*100+"%"}})))},"af");
kE9.idomCompat=!0;var GEn=_.E5(function(R){var A=R.progressBarProps;var Y=R.playheadData;var P=R.interpolateDotPosition;var E=R.hidePlayhead;R={};var z=_.To("ytProgressBarPlayheadProgressBarPlayheadDot",(R.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return A().isDragging},R.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!A().isDragging&&E()},R));
return _.V("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.nY({"margin-left":function(){return ltS(A())*100+"%"},
transform:function(){return"translateX(-"+(P()?ltS(A())*12:6)+"px)"}})},_.V(_.J,{cond:function(){var c;
return(c=_.Y9(Y)())==null?void 0:c.playheadImage},
then:function(c){var M={};return _.V("div",{class:_.To("ytProgressBarPlayheadProgressBarPlayheadCustom",(M.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return A().isDragging},M.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!A().isDragging&&E()},M)),
style:_.nY({"transform-origin":function(){return(P()?ltS(A())*20:10)+"px center"}})},_.V(_.P1,{data:c,
alt:"","aria-hidden":"true"}))},
else:function(){return _.V("div",{class:z,style:_.nY({"transform-origin":function(){return(P()?ltS(A())*12:6)+"px center"}})})}}))},"bf");
GEn.idomCompat=!0;var Rg=function(R,A,Y,P,E,z){this.getProgressBarRect=R;this.updateProgressBarRect=A;this.getFilmstripYPosition=Y;this.setFineScrubbingDraggedTime=P;this.updateFilmStripDraggedYDistance=E;this.resetFilmStripYOffset=z;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.kH(this.onThrottledSeek,100,this)},Zso=function(R,A,Y){return function(P){R.handleClick(P,A(),Y())}},urN=function(R,A){return function(Y){tp0(R,
Y,wOF(Y),A())}},edm=function(R,A){return function(Y){tp0(R,Y,{x:Y.clientX,
y:Y.clientY},A())}},LMW=function(R,A,Y){return function(P){var E=A(),z=Y();
qpH(R,P,wOF(P),E,z,!0);if(z.onTouchMove)z.onTouchMove(E)}},Rom=function(R,A,Y){return function(P){dMf(R,P,A(),Y())}},AlF=function(R,A){return function(){R.handleMouseLeave(A())}},YUN=function(R,A,Y){return function(){var P=A(),E=Y();
A1(R,P,E);if(E.onTouchEnd)E.onTouchEnd(P)}},Ptm=function(R,A,Y){return function(){var P=A(),E=Y();
A1(R,P,E);if(E.onTouchEnd)E.onTouchEnd(P)}},EtN=function(R,A,Y){return function(){A1(R,A(),Y())}},zoG=function(R){return function(A){if(A.keyCode===39||A.keyCode===38){var Y,P;
(Y=R())==null||(P=Y.playerApi)==null||P.seekBy(5,void 0,void 0,72)}else if(A.keyCode===37||A.keyCode===40){var E,z;(E=R())==null||(z=E.playerApi)==null||z.seekBy(-5,void 0,void 0,71)}}},iJH=function(R,A,Y){return function(P){!Y().disableScrubbing&&R.startPosition&&dMf(R,P,A(),Y())}},lem=function(R,A,Y){return function(){if(!Y().disableScrubbing)if(R.startPosition){var P=A(),E=Y();
A1(R,A(),Y());if(E.onTouchEnd)E.onTouchEnd(P)}else A().setState({isDragging:!1})}},wOF=function(R){R=R.touches[0];
return{x:R.clientX,y:R.clientY}},dMf=function(R,A,Y,P){if(A.buttons!==1){if(A.movementX||A.movementY)A.preventDefault(),A.stopPropagation(),R=x_H(R,Y,A.clientX),Y.setState({isHovering:!0,
hoveredTime:R*Y.videoDuration})}else clN(Y),qpH(R,A,{x:A.clientX,y:A.clientY},Y,P,!1)};
Rg.prototype.handleMouseLeave=function(R){clN(R)};
var clN=function(R){R.isHovering&&R.setState({isHovering:!1,hoveredTime:0})},tp0=function(R,A,Y,P){R.startPosition||(R.startPosition=Y,R.updateProgressBarRect(),R.controlsWereVisibleBeforeDragging=P.controlsVisible,A.stopPropagation(),_.v("medium_progress_bar_modification")||A.preventDefault())},qpH=function(R,A,Y,P,E,z){if(R.startPosition)if(z&&E.isInlinePlayback&&R.startPosition&&!R.hasDraggedTheMinimumDistance&&Math.abs(Y.y-R.startPosition.y)>Math.abs(Y.x-R.startPosition.x))A1(R,P,E);
else if(A.preventDefault(),A.stopPropagation(),P.videoDuration&&(R.startPosition&&!R.hasDraggedTheMinimumDistance&&(R.hasDraggedTheMinimumDistance=Math.abs(Y.x-R.startPosition.x)>=1),E.enableFineScrubbing&&(R.startPosition&&(R.isDraggedForFineScrubbing=-(Y.y-R.startPosition.y)>=60),!R.startPosition||Y.y>=R.startPosition.y||(P.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:$DI(P.draggedTime,P,E.chapterData)}),R.setFineScrubbingDraggedTime(P.draggedTime),R.updateFilmStripDraggedYDistance(R.startPosition.y,
Y.y,P))),R.hasDraggedTheMinimumDistance)){A=x_H(R,P,Y.x);if(R.isDraggedForFineScrubbing){var c;(c=P.playerApi)==null||c.pauseVideo();P.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:P.draggedTime,filmStripXDistance:$DI(A*P.videoDuration,P,E.chapterData)})}E.enableFineScrubbing&&(!E.enableFineScrubbing||R.getFilmstripYPosition(P)<68)||P.setState({draggedTime:A*P.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:R.controlsWereVisibleBeforeDragging});var M;(M=
E.cancelAutohideControlsFn)==null||M.call(E)}},A1=function(R,A,Y){var P=Y.enableFineScrubbing&&A.fineScrubbingActiveState!=="off";
if(A.isDragging||P){P={isDragging:!1,playedTime:A.draggedTime,controlsVisible:R.controlsWereVisibleBeforeDragging};Y.enableFineScrubbing&&A.fineScrubbingActiveState!=="on"&&(R.resetFilmStripYOffset(),P.fineScrubbingActiveState="off");var E=E===void 0?mDV:E;var z=_.F9(0);if(z&&E){var c=Math.round(A.playedTime*1E3),M=Math.round(A.draggedTime*1E3);c>2147483647||M>2147483647||_.Lj(z,E,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(c),endMediaTimeMs:String(M),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}A.setState(P);
R.seekThrottle.fire(A.draggedTime,A,7);_.v("mweb_new_progress_bar_play_on_seek")&&R.resumeVideo(A);Y.unmuteOnSeek&&(Y=A.playerApi,A.volumeMuted&&(Y==null||Y.unMute()))}else A.setState({controlsVisible:!A.controlsVisible}),(z=Y.triggerAutohideControlsAfterDelayFn)==null||z.call(Y);R.startPosition=null;R.hasDraggedTheMinimumDistance=!1;R.isDraggedForFineScrubbing=!1;R.controlsWereVisibleBeforeDragging=!1};
Rg.prototype.handleClick=function(R,A,Y){this.updateProgressBarRect();R.stopPropagation();R=x_H(this,A,R.clientX)*A.videoDuration;A.setState({playedTime:R});if(A.playerState!==2){var P;(P=Y.triggerAutohideControlsAfterDelayFn)==null||P.call(Y)}this.seekThrottle.fire(R,A,7)};
var x_H=function(R,A,Y){R=R.getProgressBarRect(A);return _.Sv(0,(Y-R.left)/R.width,1)};
Rg.prototype.resumeVideo=function(R){if(R.draggedTime<R.videoDuration){var A;(A=R.playerApi)==null||A.playVideo()}};
Rg.prototype.onThrottledSeek=function(R,A,Y){if(A=A.playerApi){var P;if((P=A.getVideoData())==null?0:P.isLive)P=this.getProgressState(A),R+=(P==null?void 0:P.seekableStart)||0;A.seekTo(R,void 0,void 0,void 0,Y)}};
Rg.prototype.getProgressState=function(R){var A=R==null?void 0:R.getPresentingPlayerType();return R==null?void 0:R.getProgressState(A)};var sXW,MKN,Nzo,JlH,OJn,yl9,m_9,Tzo,QXm;sXW=_.E5(function(R){var A=R.progressBarProps;var Y=R.config;var P=R.progressBarWidthPx;var E=R.chapterData;var z=W_k(A,function(){return Y().isShortsPage}),c=function(){return!A().isHovering&&!Y().isShortsPage};
R={};var M=_.To("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(R.ytPlayerStoryboardHostMwebShorts=function(){return Y().isShortsPage&&!1},R));
return _.V("yt-player-storyboard",null,_.V(_.J,{cond:function(){return A().isDragging||A().isHovering},
then:function(){return _.V(_.J,{cond:z,then:function(N){return _.V(_.J,{cond:c,then:function(){return _.V("div",{class:M,"aria-hidden":"true"},_.V(OJn,{props:A,config:Y,isBigboard:!0,chapterData:E}))},
else:function(){return _.V(MKN,{props:A,frame:N,config:Y,progressBarWidthPx:P,chapterData:E})}})}})}}))},"cf");
_.VKo=_.E5(function(R){var A=R.progressBarProps;var Y=W_k(A,R.isShortsPage);return _.V("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.V(_.J,{cond:function(){return A().isDragging||A().isHovering},
then:function(){return _.V(_.J,{cond:Y,then:function(P){return _.V(Nzo,{frame:P,props:A,isBigboard:!0})}})}}))},"df");
MKN=_.E5(function(R){var A=R.props;var Y=R.frame;var P=R.config;var E=R.progressBarWidthPx;R=R.chapterData;var z={};z=_.To("ytPlayerStoryboardHost",(z.ytPlayerStoryboardHostMwebShorts=function(){return P().isShortsPage&&!1},z.ytPlayerStoryboardHostInlinePlayer=function(){return P().isInlinePlayer},z.ytPlayerStoryboardHostFadeIn=function(){return P().useFadeInAnimation},z));
return _.V("div",{class:z,"aria-hidden":"true",style:function(){var c=A(),M=XgV(Y()),N=E();c=Ss3(c)/c.videoDuration;var y=N*c,m=M/2+6;M=N-(M/2+6);return"left: "+(y<=m?m/N*100:y>=M?M/N*100:c*100)+"%"}},_.V(_.J,{cond:function(){var c=A();
return!(P().isShortsPage&&c.videoDuration<15)},
then:function(){return _.V(Nzo,{frame:Y,props:A,isBigboard:!1})}}),_.V(OJn,{props:A,
config:P,isBigboard:!1,chapterData:R}))},"ef");
Nzo=_.E5(function(R){var A=R.frame;var Y=R.props;var P=R.isBigboard;var E=function(){var M,N;return(N=(M=Y().playerApi)==null?void 0:M.getVideoContentRect())!=null?N:{width:0,height:0}},z=function(){return XgV(A())},c=function(){var M=A();
return M?M.height/M.rows:0};
R={};R=_.To((R.ytPlayerStoryboardBigboardImageWrapper=P,R.ytPlayerStoryboardStoryboardImageWrapper=function(){return!P()},R));
return _.V("div",{class:R,style:function(){return"width: "+(P()?E().width:z())+"px; height: "+(P()?E().height:c())+"px;"}},_.V(JlH,{frame:A,
storyboardWidth:z,storyboardHeight:c,storyboardScale:function(){return(P()?E().width:z())/z()}}))},"ff");
JlH=_.E5(function(R){var A=R.frame;var Y=R.storyboardWidth;var P=R.storyboardHeight;var E=R.storyboardScale;var z=function(){var c=A().row,M=A().column,N=Y(),y=P(),m=E();return{left:-M*N*m,top:-c*y*m}};
return _.V("img",{src:function(){return A().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+z().left+"px; top: "+z().top+"px; width: "+A().width*E()+"px; height: "+A().height*E()+"px;"}})},"gf");
OJn=_.E5(function(R){var A=R.props;var Y=R.config;var P=R.isBigboard;var E=R.chapterData;R={};R=_.To("ytPlayerStoryboardMetadata",(R.ytPlayerStoryboardMetadataBigboard=P,R));return _.V("div",{class:R},_.V(_.J,{cond:P,then:function(){return _.V(_.lI,null,_.V(yl9,{props:A,config:Y}),_.V(_.J,{cond:function(){a:{var z=A();var c=Y(),M=E(),N;if((c==null?0:c.activeChapter)&&((N=_.n(c==null?void 0:c.activeChapter,IL))==null?0:N.title))z=!0;else{c=_.x(O4k(M));for(c=c.next();!c.done;c=c.next()){z=(c=_.n(c.value,
aWf))&&Itb(z,c);break a}z=!1}}return z},
then:function(){return _.V(m_9,{props:A,config:Y,isBigboard:!0,chapterData:E})}}))},
else:function(){return _.V(_.lI,null,_.V(m_9,{props:A,config:Y,isBigboard:!0,chapterData:E}),_.V(yl9,{props:A,config:Y}))}}))},"hf");
yl9=_.E5(function(R){var A=R.props;var Y=R.config;R={};R=_.To("ytPlayerStoryboardTimestamp",(R.ytPlayerStoryboardTimestampShorts=function(){return Y().isShortsPage},R.ytPlayerStoryboardTimestampIsHovering=function(){return A().isHovering||Y().isShortsPage&&!0},R));
return _.V("div",{class:R},_.V(_.lI,null,function(){return _.K_q(Ss3(A()))}))},"jf");
m_9=_.E5(function(R){var A=R.props;var Y=R.config;var P=R.isBigboard;var E=R.chapterData;R={};P=_.To("ytPlayerStoryboardTitle",(R.ytPlayerStoryboardTitleBigboard=P,R));return _.V("div",{class:P},_.V(_.J,{cond:function(){return!Y().isShortsPage},
then:function(){return _.V(Tzo,{props:A,activeChapter:function(){return Y().activeChapter},
chapterData:E})}}))},"kf");
Tzo=_.E5(function(R){var A=R.props;var Y=R.activeChapter;var P=R.chapterData;return _.V(_.lI,null,_.V(_.Ue,{each:function(){return O4k(P())},
keyBy:"INDEX"},function(E){return _.V(_.lI,null,_.V(_.J,{cond:function(){return _.n(E(),aWf)&&Itb(A(),_.n(E(),aWf))},
then:function(){return _.V(QXm,{timedMarker:function(){return _.n(E(),aWf)}})}}))}),_.V(_.J,{cond:function(){var E;
return Y()&&((E=_.n(Y(),IL))==null?void 0:E.title)},
then:function(E){return _.V(_.NU,{text:E,noPreWrap:!0})}}))},"lf");
QXm=_.E5(function(R){var A=R.timedMarker;return _.V(_.lI,null,_.V("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.V(_.H1,{icon:function(){return A().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.V(_.NU,{text:function(){return A().label},
noPreWrap:!0}))},"mf");_.vtH=_.E5(function(R){var A=R.progressBarProps;var Y=R.playheadData;var P=R.config;R=_.LK("yt-progress-bar");var E=_.LK("div"),z=_.LK("div"),c=_.x(_.yy({width:0,left:0},void 0,"WloVn")),M=c.next().value,N=c.next().value,y=function(){z.value&&N(z.value.getBoundingClientRect())},m=function(){M().width<=0&&y();
return M()};
Pu("resize",y);var T=new Rg(m,function(){},function(){return 0},function(){},function(){},function(){}),Q=function(){return A()};
c=_.x(_.yy(!1,void 0,"u8BZZb"));var g=c.next().value,r=c.next().value;c=_.Qi(function(){r(!0);P().position===2?setTimeout(function(){y()},100):y()});
var I=_.Qi(function(){r(!1);AlF(T,Q)()}),b=_.Qi(function(FV){P().doSeekOnClick&&Zso(T,Q,P)(FV);
return!1}),p=_.Qi(function(FV){urN(T,Q)(FV);
return!1}),h=_.Qi(function(FV){edm(T,Q)(FV);
return!1}),L=_.Qi(function(FV){LMW(T,Q,P)(FV);
return!1}),Z=_.Qi(function(FV){Rom(T,Q,P)(FV);
return!1}),w=_.Qi(function(){YUN(T,Q,P)();
return!1}),t=_.Qi(function(){Ptm(T,Q,P)();
return!1}),d=_.Qi(function(){EtN(T,Q,P)();
return!1}),Jk=_.Qi(function(FV){zoG(Q)(FV);
return!1});
Pu("mousemove",iJH(T,Q,P));Pu("mouseup",lem(T,Q,P));_.jO(function(){Tdk(E.value);r(!1);y();lem(T,Q,P)()});
var Nb={};Nb=_.To("ytPlayerProgressBarHost",function(){return P().className},(Nb.ytPlayerProgressBarHostReadOnly=function(){return P().disableScrubbing},Nb.ytPlayerProgressBarHostHidden=function(){return P().hideProgressBar&&!g()},Nb.ytPlayerProgressBarHostLowerPlayer=function(){return P().position===0},Nb.ytPlayerProgressBarHostBottomEdge=function(){return P().position===1},Nb.ytPlayerProgressBarHostBottomInset=function(){return P().position===2},Nb.ytPlayerProgressBarHostCustom=function(){return P().position===
3},Nb));
var Qk={},H3=_.To("ytPlayerProgressBarBackground",(Qk.ytPlayerProgressBarBackgroundHide=function(){return P().position===2&&!g()&&!A().isDragging},Qk));
Qk={};Qk=_.To("ytPlayerProgressBarDragContainer",(Qk.ytPlayerProgressBarDragContainerBottomEdge=function(){return P().position===1},Qk));
var nu={};nu=_.To("ytPlayerProgressBarProgressBar",(nu.ytPlayerProgressBarProgressBarInset=function(){return P().position===2},nu.ytPlayerProgressBarProgressBarInsetMinimized=function(){return P().position===2&&!g()&&!A().isDragging},nu));
var hk=function(){return Math.floor(i4P(A())*100)};
return _.V("yt-progress-bar",{el:R,class:Nb},_.V(_.J,{cond:function(){return P().position===2},
then:function(){return _.V("div",{class:H3})}}),_.V("div",{el:E,
"on:click":b,"on:touchstart":p,"on:touchmove":L,"on:mouseenter":c,"on:mousedown":h,"on:mouseleave":I,"on:mousemove":Z,"on:mouseup":t,"on:touchend":w,"on:touchcancel":d,"on:keydown":Jk,class:Qk,role:"slider","aria-valuenow":hk,"aria-valuetext":function(){return hk()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return A().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.vk("SEEK_SLIDER")},_.V("div",{el:z,class:nu},_.V(o2N,{progressBarProps:A,config:P,highContrast:function(){return!!P().isInlinePlayback}}),_.V(_.J,{cond:function(){return P().chapterData&&MeP(P().chapterData)},
then:function(){return _.V(CG0,{progressState:A,multiMarkersPlayerBarRenderer:function(){return P().chapterData},
progressBarWidth:function(){return M().width}})},
else:function(){return _.V(kE9,{progressBarProps:A,config:P})}}),_.V(GEn,{progressBarProps:A,
playheadData:Y,interpolateDotPosition:function(){return P().position!==2},
hidePlayhead:function(){return P().playheadDotBehavior===1&&!g()}}))),_.V(sXW,{progressBarProps:A,
config:function(){return{activeChapter:H4u(A(),P().chapterData),getProgressBarWidthPx:function(){return m().width},
isShortsPage:!!P().isShortsPage,isInlinePlayer:!!P().isInlinePlayback,useFadeInAnimation:!!P().isInlinePlayback}},
progressBarWidthPx:function(){return M().width},
chapterData:function(){return P().chapterData}}))},"nf");
_.vtH.idomCompat=!0;Object.assign({},_.svq(),{setState:function(){},
domMeasurements:{},appApi:_.zD3(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var gtN;
_.ntn=_.E5(function(){var R,A=(R=_.WC(jvk().playerApi))!=null?R:void 0;R=_.x(_.yy(!1,void 0,"HLFBmb"));var Y=R.next().value,P=R.next().value;R=_.x(_.yy(!1,void 0,"lHH9bc"));var E=R.next().value,z=R.next().value;R=_.x(_.yy(!1,void 0,"zsY7yd"));var c=R.next().value,M=R.next().value;R=_.x(_.yy(!1,void 0,"KeHQgc"));var N=R.next().value,y=R.next().value;R=_.x(_.yy(0,void 0,"gLLCj"));var m=R.next().value,T=R.next().value;R=_.x(_.yy(0,void 0,"s3RYkf"));var Q=R.next().value,g=R.next().value;R=_.x(_.yy(!1,void 0,
"Dn608e"));var r=R.next().value,I=R.next().value;R=_.x(_.yy(0,void 0,"AnkH1b"));var b=R.next().value,p=R.next().value;R=_.x(_.yy(0,void 0,"QYNL0b"));var h=R.next().value,L=R.next().value;R=_.x(_.yy("",void 0,"Yzw45d"));var Z=R.next().value,w=R.next().value;R=_.x(_.yy(-1,void 0,"iiVI0c"));var t=R.next().value,d=R.next().value,Jk=_.gE(function(){var Nb={controlsVisible:Y(),isOverlayHidden:E(),shouldWaitToHideControls:c(),isDragging:N(),isHovering:r(),videoDuration:b(),playedTime:h(),videoId:Z(),draggedTime:Q(),
hoveredTime:m(),playerState:t()};return Object.assign({},_.svq(),Nb,{domMeasurements:{},setState:function(Qk){Qk.controlsVisible!==void 0&&P(Qk.controlsVisible);Qk.isOverlayHidden!==void 0&&z(Qk.isOverlayHidden);Qk.shouldWaitToHideControls!==void 0&&M(Qk.shouldWaitToHideControls);Qk.isDragging!==void 0&&y(Qk.isDragging);Qk.isHovering!==void 0&&I(Qk.isHovering);Qk.draggedTime!==void 0&&g(Qk.draggedTime);Qk.hoveredTime!==void 0&&T(Qk.hoveredTime);Qk.videoDuration!==void 0&&p(Qk.videoDuration);Qk.playedTime!==
void 0&&L(Qk.playedTime);Qk.videoId!==void 0&&w(Qk.videoId);Qk.playerState!==void 0&&d(Qk.playerState)},
appApi:_.zD3(),playerApi:A})},void 0,"ZW7y9");
_.WD(function(){A==null||A.addEventListener("onVideoProgress",yak(Jk));A==null||A.addEventListener("onVideoDataChange",Jak(Jk));A==null||A.addEventListener("onStateChange",Ndl(Jk))});
_.bm(function(){if(A==null?0:A.isReady())A==null||A.removeEventListener("onVideoProgress",yak(Jk)),A==null||A.removeEventListener("onVideoDataChange",Jak(Jk)),A==null||A.removeEventListener("onStateChange",Ndl(Jk))});
return _.V("desktop-shorts-player-controls",null,_.V(gtN,{playerControlsProps:Jk}))},"of");
gtN=_.E5(function(R){var A=R.playerControlsProps;return _.V("div",{class:"desktopShortsPlayerControlsHost"},_.V(_.vtH,{progressBarProps:A,config:function(){return{isShortsPage:!0,hideProgressBar:A().videoDuration<30&&A().playerState!==2&&!A().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"pf");_.HJF=_.E5(function(R){function A(Nb){Nb!==0||T()?Nb>50&&(T()||!g())?(Q(!1),r(!0)):Nb<=50&&(T()||g())&&(Q(!1),r(!1)):Q(!0)}
function Y(Nb,Qk){var H3;return _.O(function(nu){if(nu.nextAddress==1)return nu.yield(_.VJ(),2);H3=nu.yieldResult;Qk&&H3?(H3.unMute(!0),Nb&&(ft3(Nb,H3.getVolume()),b(H3.getVolume()))):H3&&(H3.mute(!0),Nb&&ft3(Nb,0));_.XH(nu)})}
function P(Nb){var Qk,H3;return _.O(function(nu){if(nu.nextAddress==1)return nu.yield(_.VJ(),2);Qk=nu.yieldResult;H3=50;Qk&&(H3=Qk.getVolume(),Qk.isMuted()?ft3(Nb,0):ft3(Nb,H3));b(H3);_.XH(nu)})}
var E=R.orientation;R=_.LK("desktop-shorts-volume-controls");var z=_.LK("button"),c=_.d5("input"),M=_.x(_.yy(!1,void 0,"MvN0Tc")),N=M.next().value,y=M.next().value,m=_.x(_.yy(!1,void 0,"aSjsEb"));M=m.next().value;m=m.next().value;var T=M,Q=m;m=_.x(_.yy(!0,void 0,"FUh46d"));M=m.next().value;m=m.next().value;var g=M,r=m;M=_.x(_.yy(50,void 0,"yPke4d"));var I=M.next().value,b=M.next().value;M=_.gE(function(){var Nb=T();return _.v("web_shorts_keyboard_enable_mute_shortcut")?Nb?_.vk("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.vk("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Nb?_.vk("UNMUTE_VOLUME",void 0,"Unmute"):_.vk("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
m=_.gE(function(){var Nb=T(),Qk=g();return{sources:[{clientResource:{imageName:Nb?_.v("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Qk?_.v("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.v("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var p=_.gE(function(){var Nb=I();return T()?Nb+"% volume muted":Nb+"% volume"},void 0,"xZsRmc"),h=_.gE(function(){return E()==="vertical_down"},void 0,"FVqYmb");
_.jO(function(){function Nb(){y(!0)}
function Qk(){y(!1)}
c&&c.value&&(c.value.addEventListener("focus",Nb),c.value.addEventListener("focusout",Qk),P(c.value).then(function(){A(Number(pgk(c.value)))}));
z&&z.value&&(z.value.addEventListener("focus",Nb),z.value.addEventListener("focusout",Qk));_.bm(function(){var H3;c==null||(H3=c.value)==null||H3.removeEventListener("focus",Nb);var nu;c==null||(nu=c.value)==null||nu.removeEventListener("focusout",Qk);var hk;z==null||(hk=z.value)==null||hk.removeEventListener("focus",Nb);var FV;z==null||(FV=z.value)==null||FV.removeEventListener("focusout",Qk)})});
var L=_.Qi(function(){if(c&&c.value){var Nb=Number(pgk(c.value));b4u(Nb);b(Nb);c.value.style.setProperty("--gradient-percent",Nb+"%");A(Nb)}return!1}),Z=_.Qi(function(){y(!0)}),w=_.Qi(function(){c&&c.value&&(Y(c.value,T()),Q(!T()));
return!1}),t={},d={},Jk={};
return _.V("desktop-shorts-volume-controls",{"on:pointerleave":_.Qi(function(){y(!1)}),
class:_.To("ytdDesktopShortsVolumeControlsHost",(t.ytdDesktopShortsVolumeControlsHostVertical=h,t.ytdDesktopShortsVolumeControlsHostExpanded=N,t)),el:R},_.V(_.J,{cond:function(){return!h()},
then:function(){var Nb={};return _.V("div",{class:_.To("ytdDesktopShortsVolumeControlsBackgroundScrim",(Nb.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=N,Nb))})}}),_.V("div",{class:_.To((d.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=h,d))},_.V("button",{"aria-label":M,
title:M,el:z,"on:click":w,"on:pointerenter":Z,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},m?_.V(_.P1,{data:m,alt:M,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.V("div",{class:_.To("ytdDesktopShortsVolumeControlsSliderContainer",(Jk.ytdDesktopShortsVolumeControlsSliderContainerExpanded=N,Jk.ytdDesktopShortsVolumeControlsSliderContainerVertical=h,Jk.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=h,Jk.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return N()&&h()},Jk))},_.V("input",{"aria-label":_.vk("VOLUME"),
title:_.vk("VOLUME"),el:c,"on:input":L,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":I,"aria-valuetext":p,"aria-valuemin":0,"aria-valuemax":100})))},"qf");_.rln=_.E5(function(R){var A=R.data;return _.V("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.V(_.DW,{command:function(){return A().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.V(_.J,{cond:function(){return A().iconName},
then:function(Y){return _.V(_.H1,{icon:Y})}}),_.V("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return A().text}),_.V(_.J,{cond:function(){return A().showEndChevron},
then:function(){return _.V(_.H1,{icon:"CHEVRON_RIGHT"})}})))},"rf");var D_W=_.E5(function(R){var A=R.data;var Y=R.overlayDensity;R={};return _.V("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.V(_.ni,{data:function(){return A().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(P){var E=P.data;
return _.V(_.LP,{data:function(){return(Y==null?void 0:Y())===1?Object.assign({},E(),{avatar:{avatarViewModel:Object.assign({},_.n(E().avatar,_.pi),{avatarImageSize:"AVATAR_SIZE_M"})}}):E()}})}}),_.V(_.ni,{data:function(){return A().avatarStackViewModel}},{avatarStackViewModel:function(P){return _.V(_.d7,{data:P.data})}}),_.V(_.NU,{className:_.To("ytReelChannelBarViewModelChannelName",(R.ytReelChannelBarViewModelChannelNameLarge=function(){return(Y==null?void 0:Y())===1},R)),
text:function(){return A().channelName},
linkInheritColor:!0,userInput:!0}),_.V("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.V(_.ni,{data:function(){return A().subscribeButtonViewModel}},{subscribeButtonViewModel:function(P){var E=P.data;
return _.V(_.qu,{data:function(){return(Y==null?void 0:Y())===1?Object.assign({},E(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},E().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):E()},
isOverlay:!1})},
buttonViewModel:_.Is})),_.V("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.V(_.ni,{data:function(){var P,E;return(E=_.n((P=A())==null?void 0:P.sponsorButtonViewModel,LUf))==null?void 0:E.sponsorButton}},{buttonViewModel:function(P){return _.V(_.Is,{data:P.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"sf");var U_i=_.E5(function(R){var A=function(){var P;return(R==null?void 0:(P=R.overlayDensity)==null?void 0:P.call(R))===1?22:16},Y={};
return _.V("yt-reel-multi-format-link-view-model",{class:_.To("ytReelMultiFormatLinkViewModelHost",(Y.ytReelMultiFormatLinkViewModelHostTall=!0,Y.ytReelMultiFormatLinkViewModelHostLarge=function(){var P;return((P=R.overlayDensity)==null?void 0:P.call(R))===1},Y))},_.V(_.DW,{ariaLabel:function(){return R.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return R.data().command}},_.V("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.V(_.J,{cond:function(){return R.data().icon},
then:function(P){return _.V(_.P1,{data:P,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:A})}}),_.V(_.NU,{text:function(){return R.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"tf");
U_i.idomCompat=!0;var $_Q=_.E5(function(R){var A=R.data;var Y=R.overlayDensity;var P=_.LK("yt-shorts-suggested-action-view-model");R=_.x(_.yy(!1,void 0,"xDqzhe"));var E=R.next().value,z=R.next().value;R=_.x(_.yy(!1,void 0,"LI9CFd"));var c=R.next().value,M=R.next().value,N=function(){return A().isMultiLineSa},y=_.vT(ZRJ,function(){var Z,w;
return(w=(Z=A().toggleableContent)==null?void 0:Z.entityKey)!=null?w:""}),m=function(){var Z,w,t;
return(t=A().toggleableContent)!=null&&t.entityKey?(w=(Z=y())==null?void 0:Z.value)!=null?w:!1:!1},T=function(){var Z,w,t,d,Jk,Nb,Qk,H3,nu,hk,FV;
return A().toggleableContent?m()?(Z=A().toggleableContent)==null?void 0:Z.toggledData:(w=A().toggleableContent)==null?void 0:w.untoggledData:{primaryText:(H3=(t=A().defaultContent)==null?void 0:t.primaryText)!=null?H3:A().text,secondaryText:(d=A().defaultContent)==null?void 0:d.secondaryText,onTapCommand:(nu=(Jk=A().defaultContent)==null?void 0:Jk.onTapCommand)!=null?nu:A().onTapCommand,icon:(hk=(Nb=A().defaultContent)==null?void 0:Nb.icon)!=null?hk:A().icon,image:(FV=(Qk=A().defaultContent)==null?
void 0:Qk.image)!=null?FV:A().image}},Q=function(){return N()?A().trailingTapTarget:void 0},g=function(Z,w){return function(){return E()?w:Z}},r=function(){return{leadingSection:g("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(Y==null?void 0:Y())===1?g("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):g("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:g("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:g("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
R={};R=_.To((R.ytShortsSuggestedActionViewModelStaticHost=function(){return!N()},R.ytShortsSuggestedActionViewModelDynamicHost=N,R.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return N()&&c()},R.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return N()&&!c()},R));
_.jO(function(){if(N()){var Z=0,w;if((w=A().animationParams)==null?0:w.shouldExpand){var t,d;Z=((d=(t=A().animationParams)==null?void 0:t.expansionDelaySecs)!=null?d:0)*1E3}var Jk,Nb=((Jk=A().animationParams)==null?0:Jk.shouldExpand)?setTimeout(function(){z(!0)},Z):void 0,Qk,H3;
Z=((Qk=A().animationParams)==null?0:Qk.visibilityDelaySecs)?((H3=A().animationParams)==null?NaN:H3.visibilityDelaySecs)*1E3:0;var nu=setTimeout(function(){M(!0)},Z);
_.bm(function(){Nb&&clearTimeout(Nb);clearTimeout(nu)})}});
var I=function(Z){_.Zc(Z,Object.assign({},{form:{element:P.value}}))},b=_.Qi(function(){var Z,w=(Z=T())==null?void 0:Z.onTapCommand;
w&&I(w)}),p=_.Qi(function(){var Z,w;
if(Z=(w=Q())==null?void 0:w.onTapCommand)return I(Z),!1}),h=_.nY({"vertical-align":"bottom",
"border-radius":function(){var Z;return N()?((Z=A().defaultContent)==null?0:Z.isCircleImage)?"50%":"4px":"0px"},
width:function(){var Z,w,t;return N()&&((Z=A().defaultContent)==null?0:Z.imageSize)?((t=(w=A().defaultContent)==null?void 0:w.imageSize)!=null?t:24)+"px":null},
height:function(){var Z,w,t;return N()&&((Z=A().defaultContent)==null?0:Z.imageSize)?((t=(w=A().defaultContent)==null?void 0:w.imageSize)!=null?t:24)+"px":null}}),L={};
return _.V("yt-shorts-suggested-action-view-model",{class:R,el:P},_.V("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.V("button",{class:_.To(function(){return N()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var Z;
return(Z=A().useFullRoundedBorder)!=null&&Z?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!Q()&&N()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":N()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var Z;
return(Z=A().disableFixedHeight)!=null&&Z?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(L.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(Y==null?void 0:Y())===1},L)),
"on:click":b},_.V(_.Uh,{model:{color:4}}),_.V("div",{class:_.To(function(){return N()?r().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.V(_.J,{cond:function(){var Z;
return(Z=T())==null?void 0:Z.image},
then:function(Z){return _.V(_.P1,{data:Z,alt:"",className:function(){return N()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:h})}}),_.V(_.J,{cond:function(){var Z,w;
return(Z=T())==null?void 0:(w=Z.icon)==null?void 0:w.iconType},
then:function(Z){return _.V(_.H1,{icon:Z,active:m,className:function(){return N()?E()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.V("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.V(_.J,{cond:function(){var Z;
return(Z=T())==null?void 0:Z.primaryText},
then:function(Z){return _.V("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.V(_.NU,{text:Z}))}}),_.V(_.J,{cond:function(){var Z;
return(Z=T())==null?void 0:Z.secondaryText},
then:function(Z){return _.V("div",{class:function(){return r().secondaryText()}},_.V(_.NU,{text:Z}))}}))),_.V(_.J,{cond:Q,
then:function(Z){return _.V("div",{class:function(){return r().trailingSection()},
"aria-label":function(){var w;return(w=Z().a11yLabel)!=null?w:""},
"on:click":p,role:"button",tabindex:0},_.V(_.Uh,{model:{color:4}}),_.V(_.H1,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"uf");var XvQ=_.E5(function(R){var A=R.data;var Y=R.overlayDensity;var P=_.LK("yt-shorts-video-title-view-model");R=_.Qi(function(c){if(_.WT(_.Ki(c),P.value,["A".toString()]))return!1;(c=A().truncatedTextOnTapCommand)&&_.Zc(c);return!1});
var E={},z={};return _.V("yt-shorts-video-title-view-model",{el:P,class:_.To("ytShortsVideoTitleViewModelHost",(E.ytShortsVideoTitleViewModelHostClickable=function(){return!!A().truncatedTextOnTapCommand},E)),
"on:click":R},_.V("h2",{class:_.To("ytShortsVideoTitleViewModelShortsVideoTitle",(z.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(Y==null?void 0:Y())===1},z))},_.V(_.NU,{text:function(){return A().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0})))},"vf");_.SUH=_.E5(function(R){var A=R.data;var Y=R.overlayDensity;var P=function(){return(Y==null?void 0:Y())===1};
return _.V("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.V(_.ni,{data:function(){return A().metadataItems}},{badgeViewModel:function(E){E=E.data;
return _.V("div",{class:_.To(function(){return P()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.V(_.Ho,{data:E}))},
playerDisclosureViewModel:function(E){E=E.data;return _.V("div",{class:_.To(function(){return P()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.V(_.rln,{data:E}))},
shortsSuggestedActionViewModel:function(E){E=E.data;return _.V("div",{class:_.To(function(){return P()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.V($_Q,{data:E,
overlayDensity:Y}))},
reelChannelBarViewModel:function(E){E=E.data;var z={};return _.V("div",{class:_.To("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return P()},z))},_.V(D_W,{data:E,
overlayDensity:Y}))},
reelMultiFormatLinkViewModel:function(E){E=E.data;var z={};return _.V("div",{class:_.To("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return P()},z))},_.V(U_i,{data:E,
overlayDensity:Y}))},
shortsVideoTitleViewModel:function(E){E=E.data;var z={};return _.V("div",{class:_.To("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return P()},z))},_.V(XvQ,{data:E,
overlayDensity:Y}))},
reelSoundMetadataViewModel:function(E){E=E.data;var z={};return _.V("div",{class:_.To("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return P()},z))},_.V(_.rbg,{data:E,
overlayDensity:Y}))},
toggleButtonViewModel:function(E){E=E.data;var z={};return _.V("div",{class:_.To("ytReelMetapanelViewModelMetapanelItem",(z.ytReelMetapanelViewModelExpansive=function(){return P()},z))},_.V(_.uF,{data:E}))}}))},"wf");var IeW=_.E5(function(R){var A=_.Pc(R,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),Y=A.size,P=A.onTap,E=A.disabled,z=A.tooltipText;return _.V("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.V(_.SV,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:Y(),disabled:E(),tooltipText:z(),onTap:P}},
iconName:R.iconType}))},"xf"),KEY=_.E5(function(R){function A(m){m.stopPropagation();
m.code==="ArrowUp"?(m.preventDefault(),atu(M.value)):m.code==="ArrowDown"?(m.preventDefault(),C$6(M.value)):m.code==="KeyM"?F_P():(m.code==="KeyK"||m.code==="Space")&&Bdu(N())}
var Y=_.Pc(R,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});R=Y.previousButtonDisabled;var P=Y.nextButtonDisabled,E=Y.data,z=Y.playabilityStatus,c=Y.previewThumbnail,M=_.LK("ytd-shorts-miniplayer-overlay"),N=_.aE(_.E7k),y;_.WD(function(){(y=_.oS(M.value))&&y.addEventListener("keydown",A)});
_.bm(function(){var m;(m=y)==null||m.removeEventListener("keydown",A)});
Y=function(){var m,T,Q;return(m=E())==null?void 0:(T=m.reelPlayerOverlayRenderer)==null?void 0:(Q=T.likeButton)==null?void 0:Q.likeButtonRenderer};
return _.V("ytd-shorts-miniplayer-overlay",{el:M,class:"ytdShortsMiniplayerOverlayHost"},_.V("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.nY({"background-image":function(){var m=c();return m?'url("'+_.sw(m.thumbnails)+'")':""}})}),_.V("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.V("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.V(IeW,{iconType:function(){var m=N();
return m===2||m===-1||m===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Bdu(N())},
tooltipText:function(){var m=N();return m===1||m===3?_.vk("PLAYER_LABEL_PAUSE"):_.vk("PLAYER_LABEL_PLAY")}}),_.V(_.HJF,{orientation:"horizontal_right"})),_.V("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.V(IeW,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:R,onTap:function(){atu(M.value)},
tooltipText:_.vk("PREVIOUS_VIDEO_LABEL")}),_.V(IeW,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:P,onTap:function(){C$6(M.value)},
tooltipText:_.vk("NEXT_VIDEO_LABEL")}),_.v("web_shorts_pip_like_button")?_.V("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.V(H8f,{buttonTooltipPosition:"left",data:Y,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.V("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.V(_.J,{cond:function(){var m,T;return _.n((m=E())==null?void 0:(T=m.reelPlayerOverlayRenderer)==null?void 0:T.metapanel,
_.wMS)},
then:function(m){return _.V("div",{class:_.To("ytdShortsMiniplayerOverlayInteractive")},_.V(_.SUH,{data:m}))}})),_.V("div",{class:_.To("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var m;return!((m=E())==null||!m.adsOverlay)||z()&&!W1k(z())}},_.V("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.V(_.ntn,null)))),_.V(_.J,{cond:function(){var m=E(),T,Q;
m=_.n(m==null?void 0:(T=m.adsOverlay)==null?void 0:(Q=T.fulfillmentContent)==null?void 0:Q.fulfilledLayout,CKH);return _.n(m==null?void 0:m.renderingContent,tN7)},
then:function(m){return _.V("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.V(OzE,{data:m}))}}))},"yf");var hDI=_.E5(function(){var R=_.x(_.yy(new _.Dg(NaN,NaN),void 0,"HSMFk")),A=R.next().value,Y=R.next().value;R=_.x(_.yy(!1,void 0,"uaAxwf"));var P=R.next().value,E=R.next().value,z=_.x(_.yy(!1,void 0,"nVSwef"));R=z.next().value;var c=z.next().value,M=_.is().resolve(_.jv).miniplayerPropSignalMap[0],N=M.data,y=M.shortsData,m=M.nextButtonDisabled,T=M.shortsPreviewThumbnail,Q=M.previousButtonDisabled,g=M.externalPlaylistData;z=M.toastData;var r=M.playabilityStatus,I=M.isDisabled,b=M.playerVe,p=M.closeVe;
M=_.aE(_.ix);_.qj("yt-pip-window-resized",function(w){Y(w)});
_.qj("yt-activate-pip-miniplayer",function(){return _.O(function(w){c(!0);_.XH(w)})});
var h=function(){var w;return!((w=g())==null||!w.contents)&&P()},L=function(){var w=A(),t=!!N(),d=h();
w=w.clone();t&&(w.height-=76);d&&(w.height-=285);return w},Z=function(){E(!P())};
_.jq(function(){var w=b(),t=_.F9(11),d=_.pO(11);t&&d&&w&&(_.ZM(t,d,w),d=p())&&(_.tg(t,w,[d]),_.uE(t,[d]))},"HPkp0c");
return _.V("ytd-pip-container",{class:"ytdPipContainerHost"},_.V(_.J,{cond:R,then:function(){return _.V(_.FMW,{isDisabled:I,playabilityStatus:r,size:L})}}),_.V(_.J,{cond:N,
then:function(){return _.V(_.fgF,{data:N,expanded:P,onExpandClick:Z,playlistData:g})}}),_.V(_.J,{cond:h,
then:function(){return _.V("div",{class:"ytdPipContainerPlaylistPanel"},_.V(_.gYS,{data:g,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.V(_.J,{cond:M,
then:function(){return _.V(KEY,{data:y,nextButtonDisabled:m,previousButtonDisabled:Q,playabilityStatus:r,previewThumbnail:T})}}),_.V("div",{class:"ytdPipContainerToast"},_.V(_.BLF,{toastData:z})))},"zf");var YR=function(R,A){var Y=this;this.pipController=R;this.JSC$18697_clientRoot=A;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=Aaq();this.watchPipEnabled=_.v("web_watch_pip");this.shortsPipEnabled=_.v("web_shorts_pip");this.JSC$18697_watchWhileEnabled=_.v("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;_.Fq(_.Yp(),dJP,function(P){Y.isSingleOptionSurveyActive=P});
this.JSC$18697_onPlayerPlayVideo=this.JSC$18697_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);_.t$(_.ZA.getInstance(),this.miniplayerServiceActionMap,this.JSC$18697_clientRoot);R.pictureInPictureSupported()&&_.Wj("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},pYS,ho0,FEF,otf,kZN,toS;
YR.prototype.handleMediaSessionPipActivation=function(){var R=this,A;return _.O(function(Y){_.f_().mediaSessionPipActivation=!0;A=_.is().resolve(_.YH);return A.isOnWatch()&&R.watchPipEnabled?(_.f_().watchPipActivation=!0,_.WEg(R,A.data),Y.jumpTo(0)):A.isOnShorts()&&R.shortsPipEnabled?(_.f_().shortsPipActivation=!0,_.jXH(R),Y.jumpTo(0)):R.isMiniplayerActive()&&R.watchPipEnabled&&!R.watchWhileMode?Y.yield(bJN(R),0):Y.jumpTo(0)})};
var bJN=function(R){var A,Y,P,E;return _.O(function(z){if(z.nextAddress==1)return A=!R.miniplayerToPipMode,Y=R.playerElement,P=R.miniplayerData,E=R.watchResponse,z.yield(R.deactivate(),2);if(z.nextAddress!=3)return A?(_.f_().mediaSessionPipActivation=!0,_.f_().watchPipActivation=!0):_.f_().miniplayerButtonActivation=!0,z.yield(R.activate(Y,P,E),3);R.miniplayerToPipMode=A;_.XH(z)})};
YR.prototype.onDownloadedVideoDeleted=function(R){var A,Y=_.n((A=this.miniplayerData)==null?void 0:A.watchEndpoint,_.LO),P,E;Y&&((P=this.watchResponse)==null?void 0:(E=P.playerResponse)==null?void 0:E.offlineState)!==void 0&&(A=Y.videoId)&&R&&A===R&&this.close()};
YR.prototype.onShowMiniplayerCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T,Q;return _.O(function(g){switch(g.nextAddress){case 1:return Y=_.n(R,FCG),E=(P=Y)==null?void 0:P.miniplayerCommand,z=_.n(E,_.LO),E&&z&&!A.active?g.yield(_.GA.getInstance(),2):g.return();case 2:return c=g.yieldResult,g.yield((M=c)==null?void 0:M.get("yt-miniplayer-shown-video-id"),3);case 3:N=g.yieldResult;y=z.videoId;if(!y||N===y)return g.return();m=_.is().resolve(_.YH);if(m.isOnWatch())return _.pK(Error("Jj")),g.return();
T={channelItem:{externalId:btoa(y)}};A.readyToResumeVe=_.NV(121253,void 0,void 0,T);_.f_().showMiniplayerCommandActivation=!0;return g.yield(_.w6D(A,E,!0),4);case 4:return A.active&&(_.PY(A,{readyToResumeVe:A.readyToResumeVe,isReadyToResume:!0}),A.isReadyToResume=!0),g.yield((Q=c)==null?void 0:Q.set("yt-miniplayer-shown-video-id",z.videoId),5);case 5:A.readyToResumeVe=void 0,_.XH(g)}})};
YR.prototype.init=function(R){this.miniplayerEl?_.pK(new _.XN("MiniplayerService already initialized.")):this.miniplayerEl=R};
YR.prototype.isInitialized=function(){var R=!!this.miniplayerEl;R||_.pK(new _.XN("MiniplayerService used before initialized."));return R};
_.WEg=function(R,A){if(R.isInitialized()){var Y=_.X2(A.response,!1,A.playerResponse),P=_.is().resolve(_.YH).getPlayerFromWatch();_.f_().currentEndpoint=Y.watchEndpoint||null;R.activate(P,Y,A)}};
_.jXH=function(R){if(R.isInitialized()){var A=_.is().resolve(_.YH).getPlayerFromShorts();R.activate(A)}};
pYS=function(R,A){var Y;(Y=!R.isInitialized())||(Y=_.is().resolve(_.YH).isOnWatch()&&R.watchPipMode,Y=!(R.isMiniplayerActive()&&(_.f_().userActivation||_.f_().lockupActivation||Y)));if(Y)return!1;fe0(R,A)?_.dm(R):toS(R,A);return R.watchPipMode?!_.is().resolve(_.YH).isOnWatch():!0};
YR.prototype.isMiniplayerActive=function(){return this.active};
var fe0=function(R,A){var Y;A=(Y=_.n(A,_.LO))==null?void 0:Y.videoId;var P,E;R=(E=_.n((P=R.miniplayerData)==null?void 0:P.watchEndpoint,_.LO))==null?void 0:E.videoId;return A!=null&&A===R};
YR.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.xo(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.OC(this.miniplayerEl,"yt-navigate-home-action"))};
_.w6D=function(R,A,Y,P){Y=Y===void 0?!1:Y;var E,z,c;return _.O(function(M){switch(M.nextAddress){case 1:if(R.active){M.jumpTo(2);break}E=_.is().resolve(_.YH);if(c=(z=R.playerElement)!=null?z:E.getPlayerFromWatch()){M.jumpTo(3);break}return M.yield(_.is().resolve(_.cT),4);case 4:c=E.getPlayerFromWatch();case 3:if(!c){_.pK(Error("Lj"));M.jumpTo(2);break}return M.yield(R.activate(c,P),2);case 2:return R.active?M.yield(toS(R,A,Y),0):M.return()}})};
YR.prototype.activate=function(R,A,Y){var P=this,E,z,c,M,N,y,m,T,Q;return _.O(function(g){switch(g.nextAddress){case 1:if(!P.isInitialized())return g.return();if(!R)return _.pK(Error("Lj")),g.return();if(_.LKH()||P.isMiniplayerActive())var r=!0;else r=_.f_().watchPipActivation||_.f_().watchWhileActivation,_.is().resolve(_.YH).isOnWatch()&&!r?(_.pK(new _.XN("miniplayer activated on watch page")),r=!0):r=_.f_().watchWhileActivation?P.userDeactivatedWatchWhile||!!document.pictureInPictureElement||N66():
!1;if(r)return qDS(),g.return();E=_.f_().mediaSessionPipActivation;z=_.f_().shortsPipActivation;c=_.f_().watchPipActivation;N=(M=_.f_().watchWhileActivation)||c;y=c||z;if(!P.pictureInPictureEnabled()||!y){g.jumpTo(2);break}return g.yield(pvg(P,E),3);case 3:if(!g.yieldResult)return _.pK(Error("Kj")),qDS(),g.return();case 2:return P.setActive(!0),P.watchResponse=Y,P.playerElement=R,P.updateMiniplayerData(A),g.yield(FEF(P,R),4);case 4:if(!P.active)return _.pK(new _.XN("miniplayer deactivated during activation")),
P.removePlayerListeners(),g.return();r=_.is().resolve(_.Y7);r.addEventListener("yt-navigate",_.T2(P,P.onPlaylistNavigate));r.addEventListener("yt-playlist-data-updated",_.T2(P,P.JSC$18697_onPlaylistDataUpdated));P.JSC$18697_onPlaylistDataUpdated();qDS();P.JSC$18697_watchWhileEnabled&&_.Bz9(P,M);P.pictureInPictureEnabled()&&P.shortsPipEnabled&&(P.shortsPipMode=z,_.Yp().dispatch(poG(P.shortsPipMode)));P.pictureInPictureEnabled()&&P.watchPipEnabled&&(P.watchPipMode=c,_.JIS(P.handleMediaSessionPipActivation));
P.player&&(m=P.player.getPlayerState(),T=m===1,_.Yp().dispatch(G1S(m)),_.MT(P.miniplayerEl,"yt-miniplayer-play-state-changed",[T]),_.f_().isVideoPlaying=T);_.MT(P.miniplayerEl,"yt-miniplayer-endpoint-changed");aeY(P);_.CtN(P);if(P.shortsPipMode||P.watchPipMode)g=g.yield(_.OC(P.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{r=g.yield;var I=_.OC(P.miniplayerEl,"yt-activate-miniplayer",[N])[0];g=r.call(g,I,6)}return g;case 6:if(P.watchResponse&&!_.v("miniplayer_copy_screen_on_activation_killswitch")){r=
P.getScreenLayer();I=_.F9(0);var b=FwP(0);I&&b&&(_.aK(I,b,r),r===0&&fGl(void 0,0))}ho0(P);otf(P,!0);(Q=P.getPlayerElement())==null||Q.focusOnPlayer();_.XH(g)}})};
YR.prototype.updateMiniplayerData=function(R){this.miniplayerData=R;_.PY(this,{data:R})};
_.CtN=function(R){var A,Y,P=((A=R.miniplayerData)==null?void 0:(Y=A.miniplayerRenderer)==null?void 0:Y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";A=R.watchWhileMode||R.watchPipMode?P&&!_.is().resolve(_.YH).isOnWatch():P;_.PY(R,{isDisabled:A});var E,z;Y=_.n((E=R.miniplayerData)==null?void 0:(z=E.miniplayerRenderer)==null?void 0:z.minimizedEndpoint,_.Fe);A&&Y&&_.is().resolve(_.wy).openSheet({openPopupActionCommand:{openPopupAction:Y}},R.miniplayerEl)};
ho0=function(R){if(R.watchResponse&&!kZN(R)){var A,Y=(A=R.watchResponse.playerResponse)==null?void 0:A.trackingParams;Y&&(_.PY(R,{expandVe:_.NV(35989),closeVe:_.NV(34699),readyToResumeCloseVe:_.NV(131070),repositionVe:_.NV(226204),resizeVe:_.NV(226205)}),_.PY(R,{playerVe:_.S5(Y)}))}};
FEF=function(R,A){return _.O(function(Y){if(Y.nextAddress==1)return A.preparePlayer(),Y.yield(A.getPlayerPromise(),2);R.player=Y.yieldResult;R.player&&(R.player.addEventListener("onPlayVideo",R.JSC$18697_onPlayerPlayVideo),R.player.addEventListener("onCloseMiniplayer",R.onPlayerCloseMiniplayer),R.player.addEventListener("onExpandMiniplayer",R.onPlayerExpandMiniplayer),R.player.addEventListener("onStateChange",R.onPlayerStateChange));_.XH(Y)})};
_.l=YR.prototype;_.l.JSC$18697_onPlayerPlayVideo=function(R){var A=R.sessionData&&"autonav"in R.sessionData,Y;R.sessionData&&R.sessionData.itct&&(Y=R.sessionData.itct);var P=R.watchEndpoint;A=P&&A?_.iMJ(P,Y):_.zX(R.videoId,R.listId||void 0,Y);R.sessionData&&_.Yo(_.n(A.commandMetadata,_.Ti).url,R.sessionData);toS(this,A)};
_.l.onPlayerExpandMiniplayer=function(){_.dm(this)};
_.l.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.l.onPlayerStateChange=function(){if(this.player){var R=this.player.getPlayerState(),A=R===1;_.Yp().dispatch(G1S(R));_.Yp().dispatch(_.wof(R));_.MT(this.miniplayerEl,"yt-miniplayer-play-state-changed",[A]);_.f_().isVideoPlaying=A;if(R===0){A=!_.mA.getInstance().isAutoplaySetExplicitly();var Y,P,E,z,c,M,N=(Y=this.watchResponse.response)==null?void 0:(P=Y.contents)==null?void 0:(E=P.twoColumnWatchNextResults)==null?void 0:(z=E.autoplay)==null?void 0:(c=z.autoplay)==null?void 0:(M=c.autoplayExplicitChoiceDialogRenderer)==
null?void 0:M.confirmDialogRenderer;A&&N&&this.player.setAutonavState(1)}R===0&&this.watchWhileMode&&this.deactivate()}};
_.l.onPlaylistNavigate=function(R,A){var Y=this,P,E,z,c,M,N,y;return _.O(function(m){if(m.nextAddress==1){if(!_.n(A.endpoint,_.LO))return m.return();_.f_().currentEndpoint=A.endpoint;_.MT(Y.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.is().resolve(_.YH).isOnWatch()&&(Y.watchWhileMode||Y.watchPipMode))return m.return();R.stopPropagation();(z=(E=_.n((P=A.endpoint)==null?void 0:P.commandMetadata,_.Ti))==null?void 0:E.url)&&A.tempData&&!_.BO.isEmpty(A.tempData)&&_.Yo(z,A.tempData);c={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};M=new eeA(function(){return Y.getPlayerElement()},c,{layer:Y.getScreenLayer()});
N=function(T){M.processChunk({endpoint:A.endpoint,data:T})};
GZi(Y);Y.miniplayerFetchRequest=ZJg(Y,A.endpoint,N);_.g2(m,2);return m.yield(Y.miniplayerFetchRequest,4)}if(m.nextAddress!=2)return y=m.yieldResult,tKQ(Y,y),_.us(m,0);_.UT(m);_.XH(m)})};
_.l.JSC$18697_onPlaylistDataUpdated=function(){var R=_.is().resolve(_.Y7).getPlaylistData();this.hasPlaylistData=!!R;_.PY(this,{externalPlaylistData:R||{}})};
_.l.close=function(R){if(this.isInitialized())if(R){if(!((this.watchWhileMode||this.watchPipMode)&&_.is().resolve(_.YH).isOnWatch()||this.shortsPipMode)){var A;(A=this.getPlayerElement())==null||A.stop()}this.deactivate()}else _.lr().closeMiniplayer(this.miniplayerEl)};
_.l.deactivate=function(R){var A=this,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1){if(!A.isInitialized()||!A.active)return c.return();A.setActive(!1);GZi(A);(Y=!!R&&fe0(A,R))&&A.isSingleOptionSurveyActive&&_.OC(A.miniplayerEl,"yt-show-watch-page-survey",[A.isSingleOptionSurveyActive]);return c.yield(wvY(A),2)}if(c.nextAddress!=3){otf(A,!1);A.isReadyToResume=!1;A.watchResponse=void 0;A.updateMiniplayerData(void 0);A.shortsPipMode&&(A.shortsPipMode=!1,_.Yp().dispatch(poG(A.shortsPipMode)),wFF(A.pipController),
(P=A.player)==null||P.setInternalSize(NaN,NaN));A.watchPipMode&&(A.watchPipMode=!1,wFF(A.pipController));(E=A.watchWhileMode)&&_.Bz9(A,!1);A.removePlayerListeners();var M=_.is().resolve(_.Y7);M.removeEventListener("yt-navigate",_.T2(A,A.onPlaylistNavigate));M.removeEventListener("yt-playlist-data-updated",_.T2(A,A.JSC$18697_onPlaylistDataUpdated));_.f_().currentEndpoint=null;_.MT(A.miniplayerEl,"yt-miniplayer-endpoint-changed");A.playerElement=null;qDS();if(A.shortsPipMode||A.watchPipMode)c=c.jumpTo(3);
else{M=c.yield;var N=_.OC(A.miniplayerEl,"yt-deactivate-miniplayer",[Y,E])[0];c=M.call(c,N,3)}return c}(z=A.player)==null||z.setInternalSize(NaN,NaN);A.player=null;_.XH(c)})};
var wvY=function(R){var A;return _.O(function(Y){A=_.is().resolve(_.YH);return R.shortsPipMode?Y.yield(A.movePlayerToShorts(R.playerElement),0):Y.yield(A.movePlayerToWatch(R.playerElement),0)})};
YR.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18697_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
YR.prototype.setActive=function(R){this.active=R;this.isSingleOptionSurveyActive?_.OC(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.OC(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Yp().dispatch(_.cK({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.Bz9=function(R,A){R.watchWhileMode=A;_.PY(R,{watchWhile:A})};
otf=function(R,A){if(!kZN(R))if(R.shortsPipMode||R.watchPipMode){var Y;(Y=R.player)==null||Y.setDocumentPictureInPicture(A)}else{var P;(P=R.player)==null||P.setMinimized(A)}};
kZN=function(R){return R.watchWhileMode&&_.v("kevlar_watch_while_counterfactual")};
_.dm=function(R){var A;return _.O(function(Y){switch(Y.nextAddress){case 1:if(!R.isInitialized())return Y.return();_.g2(Y,2);return Y.yield(R.miniplayerFetchRequest,4);case 4:_.us(Y,3);break;case 2:_.UT(Y);case 3:R.watchResponse&&R.miniplayerData&&R.miniplayerData.watchEndpoint?(A={url:R.watchResponse.url,endpoint:R.miniplayerData.watchEndpoint,data:R.watchResponse,miniplayer:!0},_.xo(R.miniplayerEl,"yt-navigate-cache",A)):R.miniplayerData&&R.miniplayerData.watchEndpoint&&_.xo(R.miniplayerEl,"yt-navigate",
{endpoint:R.miniplayerData.watchEndpoint}),_.XH(Y)}})};
toS=function(R,A,Y){var P,E,z,c;return _.O(function(M){if(M.nextAddress==1){if(fe0(R,A))return M.return();_.f_().currentEndpoint=A;_.MT(R.miniplayerEl,"yt-miniplayer-endpoint-changed");_.MT(R.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.f_().isVideoPlaying=!1;P={clientParams:{miniplayer:!0,autoSaveToQueue:!Y}};E=new eeA(function(){return R.getPlayerElement()},P,{layer:R.getScreenLayer(),
parentLayer:0},void 0,R.readyToResumeVe);z=function(N){var y,m,T=Object.assign({},(y=N.playerResponse)==null?void 0:(m=y.playerConfig)==null?void 0:m.playbackStartConfig,{startPaused:!0}),Q;Y&&((Q=N.playerResponse)==null?0:Q.playerConfig)&&(N.playerResponse.playerConfig.playbackStartConfig=T);E.processChunk({endpoint:A,data:N})};
GZi(R);R.miniplayerFetchRequest=ZJg(R,A,z);_.g2(M,2);return M.yield(R.miniplayerFetchRequest,4)}if(M.nextAddress!=2)return c=M.yieldResult,tKQ(R,c),_.us(M,0);_.UT(M);_.XH(M)})};
YR.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var GZi=function(R){R.miniplayerFetchRequest&&(R.miniplayerFetchRequest.cancel&&R.miniplayerFetchRequest.cancel("Active request obsolete"),R.miniplayerFetchRequest=null)},ZJg=function(R,A,Y){var P=_.C1.instance,E,z=(E=_.n(A.commandMetadata,_.Ti))==null?void 0:E.url,c;
E=!z||_.v("disable_miniplayer_tempdata")?{}:(c=HUk(z))!=null?c:{};return aL(P,A,E,window.location.href,"watch",function(M,N){Y(N)},function(M){return M!==R.miniplayerFetchRequest})},tKQ=function(R,A){var Y;
_.O(function(P){if(!A)return P.return();R.watchResponse=A;ho0(R);aeY(R);Y=_.X2(A.response,!1,A.playerResponse);if(R.isMiniplayerActive()){A.response&&(R.playerElement.watchNextData=A.response);var E=_.BO.getValueByKeys.apply(_.BO,[A].concat(_.py(imf)));_.BO.getValueByKeys.apply(_.BO,[A].concat(_.py(Mkq)))&&E&&_.is().resolve(_.Y7).setAutoplayRenderer(E);if(E)if(_.v("kevlar_is_pupi_enabled")){var z,c,M,N,y,m=((z=A.response)==null?0:(c=z.playerOverlays)==null?0:(M=c.playerOverlayRenderer)==null?0:(N=
M.autonavToggle)==null?0:(y=N.autoplaySwitchButtonRenderer)==null?0:y.enabled)?2:1;_.mA.getInstance().setState(m,!1,!1)}else z=pyu()?2:1,(m=R.player)==null||m.setAutonavState(z);R.updateMiniplayerData(Y);_.CtN(R)}_.XH(P)})},aeY=function(R){var A,Y,P=(A=R.watchResponse)==null?void 0:(Y=A.playerResponse)==null?void 0:Y.playabilityStatus,E;
A=P==null?void 0:(E=P.miniplayer)==null?void 0:E.miniplayerRenderer;(A==null?void 0:A.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&A.minimizedEndpoint&&_.sC(R.miniplayerEl,[A.minimizedEndpoint]);_.PY(R,{playabilityStatus:P})};
YR.prototype.openToast=function(R,A){_.PY(this,{toastData:{data:R,label:A}})};
_.PY=function(R,A){(0,R.miniplayerPropSignalMap[1])(A)};
YR.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var R;return this.playerElement?this.playerElement:(R=_.Mo(this.miniplayerEl).querySelector("#player-container"))==null?void 0:R.firstElementChild};
YR.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var pvg=function(R,A){A=A===void 0?!1:A;var Y,P,E,z,c,M,N;return _.O(function(y){if(y.nextAddress==1){Y=navigator.userActivation.isActive||A;if(!Y||!R.pictureInPictureSupported())return y.return(!1);P=uLn(R);E=P.width;z=P.height;return y.yield(R.pipController.openWindow({width:E,height:z}),2)}c=y.yieldResult;M=R.pipController.getWindow();if(!M||!c)return y.return(!1);M.document.body.style.overflow="hidden";N=oKb(M);uYi(R.pipController,function(){eoj(R);N()});
return y.return(!0)})},uLn=function(R){var A=_.f_().shortsPipActivation,Y,P;
R=A?.5625:(P=(Y=R.player)==null?void 0:Y.getVideoAspectRatio())!=null?P:16/9;Y=Math.min(window.innerWidth,window.innerHeight)/2;A=A?0:76;return R>1?new _.Dg(Y,A+Y/R):new _.Dg(Y*R,A+Y)},eoj=function(R){var A;
_.O(function(Y){A=_.is().resolve(_.YH);return A.isOnWatch()&&R.watchPipMode||A.isOnShorts()&&R.shortsPipMode?Y.yield(R.deactivate(),0):R.miniplayerToPipMode?Y.yield(bJN(R),0):R.watchPipMode?Y.yield(_.dm(R),0):Y.jumpTo(0)})};
YR.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Yh.Object.defineProperties(YR.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
YR[xk]=[eQN,jgb];var qUi="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(" "),
LEo="add_circle alert_bubble audio bag bell clapperboard clock copy creator_studio_red_logo download download fashion flag gaming gear help_circle history home lightbulb live menu mic news offline_no_content overflow_horizontal overflow_vertical play_square_stack playlist podcast search subscriptions thumb_up trash_can trending trophy unplugged_logo video video_camera_add x youtube_kids_round youtube_music youtube_round youtube_shorts yt-logo-updated".split(" "),d_Q="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
RU9="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var A6N=null;var Y9m={},PmG=(Y9m.initialized={priority:10,callback:function(R){var A=_.is();A.addProvider({provide:E0b,useClass:iyg});A.addProvider({provide:_.zK0,useFactory:function(){return new zUb}});
A.addProvider({provide:e$,useValue:_.a1("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});A.addProvider({provide:w3g,useValue:5184E6});A.addProvider({provide:mGF,useValue:_.n6()});A.addProvider({provide:DgH,useClass:jQN});A.addProvider({provide:l0,useClass:l0});A.addProvider({provide:_.cT,useFactory:function(){return Faq.promise}});
A.addProvider({provide:_.aqZ,useFactory:function(){return _.BwA.promise}});
A.addProvider({provide:P1J,useValue:function(){var N;return((N=_.EJ())==null?void 0:N.getPlayer())||null}});
var Y={};A.addProvider((Y.provide=_.nM,Y.useFactory=function(N,y){return function(){return dSu(N,y)}},Y[xk]=[e$,
w3g],Y));Y={};A.addProvider((Y.provide=_.Iz,Y.useClass=oZY,Y[xk]=[e$,w3g],Y));Y={};A.addProvider((Y.provide=_.zTk,Y.useClass=tHY,Y[xk]=[_.Iz],Y));A.addProvider({provide:CL,useFactory:_.Yp});A.addProvider({provide:AV,useFactory:_.Yp});A.addProvider({provide:bfi,useFactory:_.Yp});A.addProvider({provide:gzq,useFactory:_.Yp});A.addProvider({provide:_.PX,useFactory:_.Yp});A.addProvider({provide:jw,useValue:_.vK});A.addProvider({provide:dL9,useClass:Xrk});A.addProvider({provide:rkN,useClass:Hu0});A.addProvider({provide:xC,
useClass:xC});A.addProvider({provide:br,useClass:br});A.addProvider({provide:f1,useClass:f1});A.addProvider({provide:Fs,useClass:Fs});A.addProvider({provide:JY,useClass:JY});A.addProvider({provide:kT,useClass:kT});A.addProvider({provide:pR,useClass:pR});A.addProvider({provide:_.KSj,useValue:rrF});A.addProvider({provide:_.wt,useFactory:_.rU});A.addProvider({provide:X_,useFactory:_.Hk});Y={};A.addProvider((Y.provide=kQ6,Y.useFactory=function(N){return function(y){var m=m===void 0?{}:m;var T,Q,g=(Q=
_.n((T=y.endpoint)==null?void 0:T.commandMetadata,_.Ti))==null?void 0:Q.rootVe;if(g){var r,I;if(T=y.previousCsn||((I=_.n((r=y.endpoint)==null?void 0:r.commandMetadata,NYZ))==null?void 0:I.parentCsn)){var b=b===void 0?{}:b;if(T!==_.F9(b.layer)||g!==FwP(b.layer))okq(T,b.cttAuthInfo,b.layer||0),fGl(T,b.layer||0),r=b.layer||0,_.BD(pPk(r===void 0?0:r),g);m.parentCsn=T}y.endpoint&&T?j_H(N,y.endpoint,m):_.$5(N,g,void 0,m);var p;((p=y.response)==null?0:p.trackingParams)&&N.graftServerVe(y.response.trackingParams);
var h;((h=y.playerResponse)==null?0:h.trackingParams)&&N.graftServerVe(y.playerResponse.trackingParams);var L;((L=y.reelWatchSequenceResponse)==null?0:L.trackingParams)&&N.graftServerVe(y.reelWatchSequenceResponse.trackingParams)}}},Y[xk]=[_.wt],Y));
Y={};A.addProvider((Y.provide=pF9,Y.useClass=fjY,Y[xk]=[jw,_.PX],Y));Y={};A.addProvider((Y.provide=j8,Y.useClass=j8,Y[xk]=[_.cT,_.PX],Y));Y={};A.addProvider((Y.provide=S8,Y.useClass=S8,Y[xk]=[AV,_.ls],Y));A.addProvider({provide:_.ono,useClass:LmQ});Y={};A.addProvider((Y.provide=_.tC,Y.useClass=ZfW,Y[xk]=[_.ono],Y));A.addProvider({provide:_.wy,useClass:pM});A.addProvider({provide:_.MHF,useClass:aEW});A.addProvider({provide:_.ug,useClass:b3});Y={};A.addProvider((Y.provide=_.rs,Y.useClass=qWG,Y[xk]=
[_.rs],Y));A.addProvider({provide:_.$e,useClass:mbQ});A.addProvider({provide:ZK,useClass:ZK});A.addProvider({provide:sM,useClass:sM});A.addProvider({provide:LL,useClass:LL});Y={};A.addProvider((Y.provide=Wh,Y.useClass=Wh,Y[xk]=[_.ls,_.Co],Y));A.addProvider({provide:iC,useClass:fM});Y={};A.addProvider((Y.provide=cI,Y.useClass=cI,Y[xk]=[_.wy,iC],Y));_.v("web_enable_feedback_endpoint_resolver")&&(Y={},A.addProvider((Y.provide=hy,Y.useClass=hy,Y[xk]=[CL,aq],Y)),A.addProvider({provide:aq,useClass:CJ9}));
_.v("web_enable_feedback_endpoint_resolver_batch_2")&&(Y={},A.addProvider((Y.provide=kv,Y.useClass=kv,Y[xk]=[CL],Y)),Y={},A.addProvider((Y.provide=oq,Y.useClass=oq,Y[xk]=[aq],Y)));Y={};A.addProvider((Y.provide=lC,Y.useClass=lC,Y[xk]=[_.ug,iC],Y));Y={};A.addProvider((Y.provide=YO,Y.useClass=YO,Y[xk]=[_.ug],Y));Y={};A.addProvider((Y.provide=xO,Y.useClass=xO,Y[xk]=[_.Co,_.tC],Y));Y={};A.addProvider((Y.provide=zm,Y.useClass=zm,Y[xk]=[_.Co,_.wt],Y));A.addProvider({provide:bC,useClass:bC});Y={};A.addProvider((Y.provide=
$O,Y.useClass=$O,Y[xk]=[CL],Y));A.addProvider({provide:uC,useClass:uC});A.addProvider({provide:ws,useClass:ws});Y={};A.addProvider((Y.provide=qp,Y.useClass=qp,Y[xk]=[CL],Y));Y={};A.addProvider((Y.provide=LZ,Y.useClass=LZ,Y[xk]=[_.Co,CL],Y));Y={};A.addProvider((Y.provide=ds,Y.useClass=ds,Y[xk]=[CL],Y));Y={};A.addProvider((Y.provide=Rd,Y.useClass=Rd,Y[xk]=[CL],Y));Y={};A.addProvider((Y.provide=PI,Y.useClass=PI,Y[xk]=[_.tC],Y));Y={};A.addProvider((Y.provide=ap,Y.useClass=ap,Y[xk]=[_.wt],Y));Y={};A.addProvider((Y.provide=
Z8,Y.useClass=Z8,Y[xk]=[WI],Y));Y={};A.addProvider((Y.provide=tz,Y.useClass=tz,Y[xk]=[WI],Y));A.addProvider({provide:op,useClass:op});A.addProvider({provide:kO,useClass:kO});A.addProvider({provide:BI,useClass:BI});Y={};A.addProvider((Y.provide=OM,Y.useClass=OM,Y[xk]=[_.tC,_.ls],Y));A.addProvider({provide:uq,useClass:uq});Y={};A.addProvider((Y.provide=EM,Y.useClass=EM,Y[xk]=[_.Co,_.tC],Y));A.addProvider({provide:dW,useClass:dW});Y={};A.addProvider((Y.provide=D8,Y.useClass=D8,Y[xk]=[CL,_.Co,_.rs],Y));
Y={};A.addProvider((Y.provide=nZ,Y.useClass=nZ,Y[xk]=[_.Co,_.ls],Y));A.addProvider({provide:HBA,useValue:Mj3});A.addProvider({provide:Szq,useValue:gOk});A.addProvider({provide:HI,useClass:HI});Y={};A.addProvider((Y.provide=gs,Y.useClass=gs,Y[xk]=[CL],Y));Y={};A.addProvider((Y.provide=UM,Y.useClass=UM,Y[xk]=[_.$e,_.ls],Y));Y={};A.addProvider((Y.provide=Gz,Y.useClass=Gz,Y[xk]=[_.ls],Y));A.addProvider({provide:Bh,useFactory:function(){return new Bh(_.Yp())}});
A.addProvider({provide:cLb,useFactory:_.FI.getInstance});Y={};A.addProvider((Y.provide=qk,Y.useClass=qk,Y[xk]=[e$,cLb,_.ls],Y));A.addProvider({provide:ty,useClass:ty});A.addProvider({provide:j$,useClass:j$});A.addProvider({provide:fL,useClass:fL});A.addProvider({provide:_.bq,useClass:_.bq});A.addProvider({provide:EN,useClass:EN});Y={};A.addProvider((Y.provide=Tm,Y.useClass=Tm,Y[xk]=[AV],Y));Y={};A.addProvider((Y.provide=Qs,Y.useClass=Qs,Y[xk]=[_.ls],Y));_.v("web_enable_prefetching_videos_on_home")&&
(A.addProvider({provide:XB,useClass:XB}),A.addProvider({provide:wm,useClass:wm}));Y={};A.addProvider((Y.provide=P5,Y.useClass=P5,Y[xk]=[_.ls],Y));A.addProvider({provide:pL,useClass:pL});Y={};A.addProvider((Y.provide=fZ,Y.useClass=fZ,Y[xk]=[_.Co,_.ls],Y));Y={};A.addProvider((Y.provide=F5,Y.useClass=F5,Y[xk]=[_.ls],Y));Y={};A.addProvider((Y.provide=u3,Y.useClass=u3,Y[xk]=[_.Co,_.ls],Y));A.addProvider({provide:Vs,useClass:Vs});Y={};A.addProvider((Y.provide=Np,Y.useClass=Np,Y[xk]=[AV,_.ls],Y));A.addProvider({provide:ys,
useClass:ys});Y={};A.addProvider((Y.provide=ll,Y.useClass=ll,Y[xk]=[AV,_.ls,_.Co],Y));Y={};A.addProvider((Y.provide=xT,Y.useClass=xT,Y[xk]=[_.ls],Y));Y={};A.addProvider((Y.provide=il,Y.useClass=il,Y[xk]=[_.ls,_.Co],Y));Y={};A.addProvider((Y.provide=vI,Y.useClass=vI,Y[xk]=[_.cT],Y));Y={};A.addProvider((Y.provide=mz,Y.useClass=mz,Y[xk]=[_.cT],Y));A.addProvider({provide:KZ,useClass:KZ});A.addProvider({provide:jl,useClass:jl});A.addProvider({provide:el,useClass:el});A.addProvider({provide:pZ,useClass:pZ});
A.addProvider({provide:Ip,useClass:Ip});A.addProvider({provide:Rp,useClass:Rp});A.addProvider({provide:Sl,useClass:Sl});_.v("kevlar_enable_mss_lazy_load")&&A.addProvider({provide:_.f6,useClass:kOg});A.addProvider({provide:_.Bd,useClass:BN});A.addProvider({provide:y0,useFactory:function(){return _.ZA.getInstance()}});
A.addProvider({provide:Wmm,useFactory:sMq});A.addProvider({provide:WI,useFactory:function(){return _.GA.getInstance()}});
A.addProvider({provide:Smq,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});Y={};A.addProvider((Y.provide=_.ID,Y.useClass=_.ID,Y[xk]=[_.cT,_.ls,_.wt,Wmm,WI,y0,Smq,jw],Y));A.addProvider({provide:_.fp,useClass:mFf});A.addProvider({provide:_.ekf,useClass:uVo});Y={};A.addProvider((Y.provide=Az,Y.useClass=Az,Y[xk]=[_.ekf],Y));Y={};A.addProvider((Y.provide=_.KM,Y.useFactory=function(N){return N.upliftCompletionResolver.promise},Y[xk]=[pF9],Y));
Y=_.CQ("IS_SHELL_LOAD")?"aa":"eocs";var P=_.CQ("IS_SHELL_LOAD")?3:2;_.EV().parkOrScheduleJob(function(){Bof()},P,Y);
_.EV().parkOrScheduleJob(function(){_.is().resolve(j8).start()},2,"eocs");
_.EV().parkOrScheduleJob(function(){jH9()},2,"eocs");
_.EV().parkOrScheduleJob(function(){_.is().resolve(S8).start()},2,"eocs");
_.v("kevlar_debug_data_app_registration_ks")||XNk();A.addProvider({provide:_.XW,useValue:new $5f(R.root)});A.addProvider({provide:on,useValue:new ZiJ});A.addProvider({provide:_.fTD,useValue:new jhq(R.root)});A.addProvider({provide:_.a4,useValue:new b8N});A.addProvider({provide:_.om,useClass:az});A.addProvider({provide:eQN,useClass:FB});_.v("kevlar_network_sli_killswitch")||A.addProvider({provide:JOW,useValue:v8S});A.addProvider({provide:RKW,useFactory:iWl});_.v("web_bind_fetch")&&(Y={},A.addProvider((Y.provide=
AOQ,Y.useFactory=ldS,Y[xk]=[_.z3(RKW)],Y)));_.v("web_bind_window_request")&&(Y={},A.addProvider((Y.provide=PeQ,Y.useFactory=xPq,Y[xk]=[_.z3(RKW)],Y)));_.v("web_bind_text_decoder")&&(Y={},A.addProvider((Y.provide=EUm,Y.useFactory=cTq,Y[xk]=[_.z3(RKW)],Y)));Y={};A.addProvider((Y.provide=gZo,Y.useFactory=C_I,Y[xk]=[_.KM,CL,_.nM],Y));Y={};A.addProvider((Y.provide=vZQ,Y.useClass=c5,Y[xk]=[gZo],Y));A.addProvider({provide:pSm,useClass:WSH});A.addProvider({provide:yEn,useClass:TfH});Y=[].concat(_.py(qH));
_.v("web_continuation_response_processing")&&Y.push(_.oE);Y.push(GuS);_.v("enable_share_panel_navigation_logging_fix_on_web")&&Y.push(_.xND);A.addProvider({provide:kCJ,useValue:Y});A.addProvider({provide:sTS,useClass:JE0});A.addProvider({provide:vUj,useClass:yOF});Y={};A.addProvider((Y.provide=xyk,Y.useClass=Z8z,Y[xk]=[AV],Y));_.fn.addLowPriorityJob(function(){WQI()});
Y={};A.addProvider((Y.provide=rDS,Y.useFactory=function(N){return function(y){var m,T=(m=_.n(y.commandMetadata,_.Ti))==null?void 0:m.url;if(!T)throw new _.XN("No URL for PBJ Command",y);T=rgP(T,{pbj:"1"});m=Gik(T,{})||{};m=Object.assign({},m,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.a1("STS").toString()});y=_.vU({command:JSON.stringify(y),session_token:_.a1("XSRF_TOKEN")});return N.fetch(T,{method:"POST",headers:m,body:y})}},Y[xk]=[vUj],Y));
Y=[];Y.push(A.resolve(yEn));P={};P=(P.client_location=_.FI.getInstance(),P.consistency=_.Byk(),P.entities=A.resolve(rkN),P.response_received_commands=A.resolve(sTS),P.store=A.resolve(_.zTk),P.tokens=A.resolve(yEn),P);_.v("web_service_params_response_processor")&&(A.addProvider({provide:sG9,useFactory:function(){var N={};return N.CSI=M3J(),N.ECATCHER=OWu(),N}}),A.addProvider({provide:ALk,
useClass:N2m}),P.service_params=A.resolve(ALk));if(_.v("web_shorts_prefetch_service_enabled")){var E=new wSG(A.resolve(_.Iz));P.shorts_prefetch=E}P.adblock_detection=A.resolve(xyk);A.addProvider({provide:_.wM,useClass:_.wM});E=A.resolve(_.KSj);var z=[];_.v("PremiumClientSharedConfig__enable_att_context_processor")&&(A.addProvider({provide:xbN,useClass:zkG}),z.push(A.resolve(xbN)));if(_.v("owl_pl_await")){var c={};A.addProvider((c.provide=Zqm,c.useFactory=function(N){return new kei(N)},c[xk]=[_.wM],
c));
z.push(A.resolve(Zqm))}f8A(E,A.resolve(vUj),A.resolve(dL9),P,A.resolve(_.Iz),Y,z,A.resolve(vZQ),A.resolve(pSm));A.addProvider({provide:_.Co,useValue:_.tM.instance});_.v("start_client_gcf")&&A.addProvider({provide:$a,useValue:bgG()});A.addProvider({provide:Ci0,useFactory:function(){return new Ci0(_.is().resolve(_.wM),_.GA.getInstance())}});
_.EV().parkOrScheduleJob(function(){hQi()},1,"eocs");
Y={};A.addProvider((Y.provide=WN,Y.useClass=WN,Y[xk]=[_.nM,_.Co],Y));A.addProvider({provide:_.Oqi,useFactory:_.tY.getInstance});_.EV().parkOrScheduleJob(function(){_.is().resolve(WN).refresh()},0,"eocs");
D8Z(rrF.watchEndpointMap||{},E.reelWatchEndpointMap||{},R.injector.resolve(_.Co));A.addProvider({provide:Q5,useValue:_.C1.instance});_.v("kevlar_signal_collection_killswitch")||(Y={},A.addProvider((Y.provide=r9m,Y.useClass=r9m,Y[xk]=[e$,X_],Y)),_.EV().parkOrScheduleJob(function(){_.is().resolve(r9m).record()},1,"eocs"));
_.v("web_debug_handler_registration_killswitch")||_.EV().parkOrScheduleJob(function(){UnV("DOWNLOAD_PES",Mok);_.v("offline_client_state_export_ks")||UnV("OFFLINE_CLIENT_STATE",xXk)},0,"eocs");
_.v("kevlar_prevent_polymer_dynamic_font_load")&&_.EV().parkOrScheduleJob(function(){var N=[_.Jr(I4m),_.Jr(K6Y)];N=_.x(N);for(var y=N.next();!y.done;y=N.next()){y=y.value;var m=document.createElement("link");_.xU(m,y,"stylesheet");document.head.appendChild(m)}},1,"eocs");
Y=R.injector.resolve(_.Co);_.lI0.instance=new _.lI0(Y);Gqk(d5A(new iu0(Y)));Y={};R.injector.addProvider((Y.provide=E_,Y.useFactory=function(N){(N=N==null?void 0:N.getCurrentPage())?N=N.visibilityObserver:(A6N||(A6N=GFk()),N=A6N);return N},Y[xk]=[_.z3(_.YH)],Y.skipCache=!0,Y));
A.addProvider({provide:_.jv,useClass:YR});A.addProvider({provide:Bf,useClass:r1f});R.injector.addProvider({provide:QQE,useValue:U5S});A.addProvider({provide:xEA,useValue:lQV});A.addProvider({provide:_.dU,useValue:T13});R=A.addProvider;NZ9||(NZ9=new sRG);R.call(A,{provide:_.aD,useValue:NZ9});A.addProvider({provide:_.AM,useValue:_.a1("HTML_DIR")==="rtl"?"rtl":"ltr"});A.addProvider({provide:Ubm,useClass:Fli});A.addProvider({provide:_.Tj,useClass:CM});_.is().addProvider({provide:X3m,useValue:_.v("enable_web_delhi_icons")?
LEo.concat(RU9):qUi.concat(d_Q)});A.addProvider({provide:_.oD,useClass:_.oD});A.addProvider({provide:_.URF,useValue:new DRF});A.addProvider({provide:HTS,useClass:gqF});A.addProvider({provide:F_,useClass:F_});A.addProvider({provide:CZ,useClass:CZ});R={};A.addProvider((R.provide=Mp,R.useClass=Mp,R[xk]=[_.Co,_.tC],R));A.addProvider({provide:zU,useClass:zU});A.addProvider({provide:o3N,useClass:Rbi});A.addProvider({provide:Gm,useClass:Gm});A.addProvider({provide:lHb,useValue:ZkN});A.addProvider({provide:_.Oq,
useClass:nqQ});_.v("enable_payments_purchase_manager")&&A.addProvider({provide:skW,useClass:ckN});A.addProvider({provide:STo,useFactory:function(){return function(N){return _.XtG(N)}}});
A.addProvider({provide:_.Nf9,useClass:VHi});R={};A.addProvider((R.provide=Au,R.useClass=Au,R[xk]=[_.Nf9],R));A.addProvider({provide:hz,useClass:hz});A.addProvider({provide:p7Z,useValue:VhH});A.addProvider({provide:BJD,useValue:_.nDN});A.addProvider({provide:F23,useClass:dgW});A.addProvider({provide:Vcj,useValue:Igj});R={};A.addProvider((R.provide=Jbi,R.useClass=ybW,R[xk]=[Vcj],R));R={};A.addProvider((R.provide=_.B8,R.useClass=WMF,R[xk]=[Jbi],R));R={};A.addProvider((R.provide=_.Ga,R.useClass=kC,R[xk]=
[_.PX,_.om],R));if(_.v("web_explore_hub_on_hover")||_.v("web_client_explore_hub_on_hover"))R={},A.addProvider((R.provide=wW,R.useClass=wW,R[xk]=[_.Co,y0],R));if(_.v("web_enable_renderer_logger")){var M=new Lom;XyP(function(){M.abort()});
A.addProvider({provide:RBS,useValue:new Ugn(M.signal)})}A.addProvider({provide:nvZ,useValue:enk});A.addProvider({provide:FYk,useClass:ub9})}},Y9m);var E0Y={},zUY=(E0Y.initialized={priority:10,callback:function(){if(!VBN){dfq();Nil("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.yQ(_.nj(Nil,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.v("log_heartbeat_with_lifecycles")){var R={};QC.instance||(QC.instance=new QC);QC.instance.install((R.document_visible={callback:V3k,priority:10},R.document_hidden={callback:V3k,priority:10},R))}else _.Ya(document,"visibilitychange",V3k);VBN=!0}(R=_.F9())&&R!=="UNDEFINED_CSN"&&jck(R)}},E0Y);var iXm={},liF=(iXm.initialized={callback:function(R){var A=_.NV(232091),Y=R.injector.resolve(_.wt);_.Xq(Y,A);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?kdP()&&_.IC(Y,A):(R=R.injector.resolve(STo)("refresh_detector"))&&(R.get("first_tab_load")?_.IC(Y,A):R.set("first_tab_load","1"))}},iXm);var x9N={},c6F=(x9N.initialized={priority:10,callback:L_b},x9N);var OXn={},MqQ=(OXn.initialized={priority:0,callback:function(){var R=new bJ7,A="other";_.sk?A="chrome":_.Mc?A="firefox":_.hN?A="safari":AZ&&(A="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(Y){R.increment(_.DO(),Y,A)}).catch(function(){R.increment(_.DO(),!1,A)}):R.increment(_.DO(),!1,A)}},OXn);var sNF={},NEo=(sNF.rendering={priority:8,callback:dDS},sNF);var VqQ={},J6o=(VqQ.rendering={priority:10,callback:V68},VqQ.rendered={callback:NKJ},VqQ),y6F={},m9i=(y6F.rendering={callback:V68},y6F.rendered={callback:NKJ},y6F);var TEn=!1,QNH={},v0j=(QNH.initialized={priority:10,callback:function(){TEn||(gh3({didPatch:function(R){R.el&&rTk(R.el,R.props)},
didUnmount:function(R){nFl(R.el)}}),TEn=!0)}},QNH);var g0Y=/^\/shorts\/?$/;_.BD("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:{}}}}}}});_.v("kevlar_enable_mss")&&(_.AZ3(new rgH),b0J());
(function(){var R=document.querySelector("ytd-app");if(!R)throw Error("Mj");R=new Z1({root:R,injector:_.is()});R.install(zUY);var A={};R.install((A.initialized={priority:10,callback:f_J},A));_.v("wp_lat_b")&&(A={},R.install((A.initialized={priority:10,callback:function(){P_k()}},A)));
A={};R.install((A.rendered={priority:0,callback:WK6},A));A={};R.install((A.rendered={priority:0,callback:function(){_.fn.addLowPriorityJob(function(){_.B8g>1&&(DWS(),I_6())},4E4)}},A));
R.install(E2G);R.install(liF);R.install(v0j);fdS();R.install(NLf);R.install(L6Q);R.install(YpW);R.install(mgY);R.install(nnj);R.install(MpH);R.install(PmG);_.v("kevlar_enable_mss_lazy_load")&&R.install(c6F);R.install(Rd0);R.install(MqQ);if(!_.CQ("IS_SHELL_LOAD")||_.v("kevlar_fetch_initial_data_promise_client")||_.v("sw_nav_preload_pbj")){var Y=_.T3(window.location.href);A=Y&&Y==="/watch";Y=Y&&Y.match(g0Y);A?R.install(m9i):Y?R.install(NEo):R.install(J6o)}else R.install(uHQ);R.install(isF);_.v("web_enable_prefetching_videos_on_home")&&
R.install(mM9);_.v("start_client_gcf")&&R.install(MBW);R.install(sHY);(new feN).increment("INSTALLED");R.install(JrW);R.install(Zym);R.transition("initialized");upq()})();
_.Jf=[[["aHhyOTJyNmpqbHdraW5kIzg=","Y2l0c21kc3BrbXZhbHVlI3M0"],"TUVOVF9LSU5EX1NUQVJUI2U4ZTdhaDE5dzFsZ0FEX1BMQUNF"]];_.V2=["Z2xvYmFsQ2FsbGJhY2tzI29ub3BvN3JmdTl2Yw==","cm1hbGl0eURldGVjdGVkIzhkbjZsb2RuaHI5am9uQWJubw==","aDVoYzhtZ29uQWRTa2lwIzhxdnJw","X3BsYXllcl9yZXNwb25zZSNiYmh4YTNmcDVubHJhdw==","MXVubnRwZXVhZFNsb3RzI29wNWo="];_.OV="Z2xvYmFsQ2FsbGJhY2tzI29ub3BvN3JmdTl2Yw== cm1hbGl0eURldGVjdGVkIzhkbjZsb2RuaHI5am9uQWJubw== aDVoYzhtZ29uQWRTa2lwIzhxdnJw X3BsYXllcl9yZXNwb25zZSNiYmh4YTNmcDVubHJhdw== bHRpcGxlX3NraXBzX2tzI2JuZWhwcDhmMzhhM3dlYl9wbGF5bGlzdF9xdWV1ZV9tdQ== ejRpYjl0eWFiX3NhX2VmIzlocjF2 MXVubnRwZXVhZFNsb3RzI29wNWo=".split(" ");
_._ModuleManager_initialize=function(R,A){if(!_.fJ){if(!_.pJ)return;_.AZ3(_.pJ())}_.fJ.setAllModuleInfoString(R,A)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5:2,3/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:1,4,5,6,7,8,9/sye:2/syd:5,b,e/syf:f/syg/syh:6/syi/h8y2qb:4,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:3,9,h,j,n/syl:f/sym:1,c,f,h,l,n/syn:q/nmfa2d:j,p,r/syo:7,q/syp:i,j,r,t/CF909:p,u/Tm0L3c:u/L3n37:g,i,j,p,t/iuT5Oc',['sy2','sy3','sy8','sye','syb','sy5','syk','syj','syg','syd','syc','sy1','sym','sy7','sy6','syo','syn','syi','syh','syl','syf','syp','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.l1=function(R,A,Y,P,E){var z={};A&&(z[A]=Y);P?z.errorType=P:E&&(z.errorReason=E);_.Wj(R,z);_.j_()};
_.xR=function(R){var A=_.EV();return _.TB8(A,R,1)};
_.jz({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 R=this.query;R&&(this.full||R[0]==="("||(R="("+R+")"),this._mq=window.matchMedia(R),this._add(),this.queryHandler(this._mq))},
queryHandler:function(R){this._setQueryMatches(R.matches)}});var Wfm;var jNN;var bXf=function(){};
_.l=bXf.prototype;_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._focusedChanged=function(){};
_.l._createRipple=function(){};
_.l.registered=function(){};
_.l._invalidChanged=function(){};
_.l.hasValidator=function(){};
_.l.validate=function(){};
_.l._getValidity=function(){};
_.l._requiredChanged=function(){};
_.l._valueChanged=function(){};
_.l._checkedChanged=function(){};
_.l._buttonStateChanged=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
bXf=_.jz({is:"tp-yt-paper-radio-button",_template:function(){if(jNN!==void 0)return jNN;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Wfm===void 0&&(Wfm=document.createElement("template"));var P=Wfm;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return jNN=R},
behaviors:[_.MvS],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(){_.RK(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var R=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),A=Math.floor(3*R);A%2!==R%2&&A++;this.updateStyles({"--paper-radio-button-ink-size":A+"px"})}})}});var fii;var pVQ;_.jz({_template:function(){if(pVQ!==void 0)return pVQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;fii===void 0&&(fii=document.createElement("template"));var P=fii;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return pVQ=R},
is:"tp-yt-paper-radio-group",behaviors:[_.r4Z],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(R){var A=this._valueToItem(R);if(!A||!A.hasAttribute("disabled")){if(this.selected){A=this._valueToItem(this.selected);if(this.selected==R)if(this.allowEmptySelection)R="";else{A&&(A.checked=!0);return}A&&
(A.checked=!1)}_.qo.select.apply(this,[R]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(R){this._focusPrevious();R.preventDefault();this._activateFocusedItem()},
_onDownKey:function(R){this._focusNext();R.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(R){_.HiA._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(R){_.HiA._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.qo._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.aj._resetTabindices.apply(this,arguments);this.items.forEach(function(R){R.removeAttribute("aria-selected")},this)}});var FfH;_.bh("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var cY=function(){return _.K.apply(this,arguments)||this};
_.H(cY,_.K);_.l=cY.prototype;_.l.computeHasPrimaryIcon=function(R){return!(!R.icon&&!R.thumbnail)};
_.l.computeHasSecondary=function(R){return!(!R.secondaryIcon&&!R.secondaryNotificationText)};
_.l.computeHideSecondaryString=function(R){return!_.v("disable_hide_empty_secondary_string")&&!R.secondaryNotificationText};
_.l.computeCompactLinkStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.l.computeHasFitHeight=function(R){return R==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.l.isActiveEndpoint=function(R){return(R=this.get("commandMetadata.webCommandMetadata.url",R))?_.T3(window.location.href)!=="/account_transfer_channel"&&_.T3(window.location.href)!=="/gaia_link"&&_.T3(window.location.href)!=="/channel_switcher"||R!=="/account"?_.T3(window.location.href)===R:!0:!1};
_.l.onTap=function(){var R;((R=this.data)==null?0:R.serviceEndpoint)&&_.sC(this.hostElement,[this.data.serviceEndpoint])};
cY.prototype.onTap=cY.prototype.onTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cY.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.k("design:type",Boolean)],cY.prototype,"active",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.k("design:type",String)],cY.prototype,"compactLinkStyle",void 0);
_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",Object)],cY.prototype,"icon",void 0);_.C([_.S({computed:"computeIcon_(data.secondaryIcon)"}),_.k("design:type",Object)],cY.prototype,"secondaryIcon",void 0);_.C([_.S({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],cY.prototype,"hasSecondary",void 0);_.C([_.S({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],cY.prototype,"hideSecondaryString",void 0);
_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cY.prototype,"onTap",null);_.C([_.F({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],cY);
_.B(cY,"ytd-compact-link-renderer",function(){if(FfH!==void 0)return FfH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return FfH=R},{mode:1});var BE0;_.bh("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var O4=function(){var R=_.K.apply(this,arguments)||this;R.role="link";R.tabindex="0";R.actionMap=_.v("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 R};
_.H(O4,_.K);_.l=O4.prototype;_.l.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.bk()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.l.getCurrentTheme=function(){return _.fo()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bk()};
_.l.onThemeSelected=function(R,A){var Y=R||A?R:_.jI(),P=(Y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.fPk(_.T3(window.location.href));_.rH(0,165,R);_.rH(0,174,A);this.prefs.save();P&&_.OC(this.hostElement,"yt-dark-mode-toggled-action",[Y]);_.OC(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.onTap=function(){this.data.serviceEndpoint&&_.sC(this.hostElement,[this.data.serviceEndpoint])};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
O4.prototype.onTap=O4.prototype.onTap;O4.prototype.dataChanged=O4.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],O4.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],O4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.EO),_.k("design:type",Object)],O4.prototype,"paperItemBehaviors",void 0);_.C([_.S(),_.k("design:type",Object)],O4.prototype,"data",void 0);_.C([_.S({value:function(){return _.Hk()}}),
_.k("design:type",_.M2)],O4.prototype,"prefs",void 0);_.C([_.S(),_.k("design:type",Object)],O4.prototype,"label",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],O4.prototype,"role",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],O4.prototype,"tabindex",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O4.prototype,"dataChanged",null);
_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],O4.prototype,"onTap",null);_.C([_.F({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],O4);
_.s5()(O4,"ytd-toggle-theme-compact-link-renderer",function(){if(BE0===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);BE0=R}R=BE0;return R},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var Cmg,hUg;_.MF=function(R){return!!R.getOptions("captions")};
_.aiQ=function(R){return(R=R.getOption("captions","track"))?!!R.displayName:!1};
_.s4=function(R,A){_.rc(A,R,function(){return Cmg[A]},function(Y){Cmg[A]=Y;
if(!_.v("mweb_player_ve_show_ks")){var P=_.F9(0);P&&Y&&_.wH(P,Y)}})};
_.NF=function(R){(R=Cmg[R])&&_.IC(_.rU(),R)};
Cmg={};var o09;/*

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
*/
_.jz({_template:function(){if(o09!==void 0)return o09;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;hUg===void 0&&(hUg=document.createElement("template"));var P=hUg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return o09=R},
is:"tp-yt-paper-checkbox",behaviors:[_.MvS],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.RK(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var R=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),A="px",Y=R.match(/[A-Za-z]+$/);Y!==null&&(A=Y[0]);R=parseFloat(R);Y=8/3*R;A==="px"&&(Y=Math.floor(Y),Y%2!==R%2&&Y++);this.updateStyles({"--paper-checkbox-ink-size":Y+
A})}})},
_computeCheckboxClass:function(R,A){var Y="";R&&(Y+="checked ");A&&(Y+="invalid");return Y},
_computeCheckmarkClass:function(R){return R?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.cVf._createRipple.call(this)}});var k8g=new _.lU("radioButtonSurveyOptionRenderer"),G8Y=new _.lU("checkboxSurveyOptionRenderer");var ZXY;var tqf;var wVF=0,V8=function(){var R=_.K.call(this)||this;R.selected=!1;R.isOverlay=!1;R.inputId="toggle-option-"+wVF;wVF++;return R};
_.H(V8,_.K);V8.prototype.onTap=function(){_.xo(this.hostElement,"ytd-toggle-option-clicked")};
_.C([_.S(),_.k("design:type",String)],V8.prototype,"label",void 0);_.C([_.S(),_.k("design:type",String)],V8.prototype,"inputId",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],V8.prototype,"selected",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],V8.prototype,"isOverlay",void 0);_.C([_.F({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.k("design:paramtypes",[])],V8);
_.B(V8,"ytd-toggle-option-renderer",function(){if(tqf!==void 0)return tqf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return tqf=R},{mode:1});var J1=function(){var R=_.K.apply(this,arguments)||this;R.isToggleOption=!1;R.isOverlay=!1;return R};
_.H(J1,_.K);J1.prototype.onTap=function(R){R.preventDefault();this.data&&(R=!this.data.checked,this.set("data.checked",R),_.xo(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:R,value:this.data.value}))};
_.Yh.Object.defineProperties(J1.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
J1.prototype.onTap=J1.prototype.onTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],J1.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],J1.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],J1.prototype,"isToggleOption",void 0);_.C([_.S(),_.k("design:type",Object)],J1.prototype,"isOverlay",void 0);_.C([_.X("data.responseText"),_.k("design:type",String),_.k("design:paramtypes",[])],J1.prototype,"label",null);
_.C([_.Qa("ytd-toggle-option-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],J1.prototype,"onTap",null);_.C([_.F({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],J1);
_.B(J1,"ytd-checkbox-survey-option-renderer",function(){if(ZXY!==void 0)return ZXY;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ZXY=R},{mode:1});var uFn;var eUG;var y8=function(){var R=_.K.apply(this,arguments)||this;R.checked=!1;R.isToggleOption=!1;return R};
_.H(y8,_.K);y8.prototype.onTap=function(){this.data&&(this.checked?_.OC(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.OC(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
y8.prototype.onTap=y8.prototype.onTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],y8.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],y8.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],y8.prototype,"checked",void 0);_.C([_.S(),_.k("design:type",Object)],y8.prototype,"isToggleOption",void 0);_.C([_.Qa("ytd-toggle-option-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],y8.prototype,"onTap",null);
_.C([_.F({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],y8);
_.B(y8,"ytd-radio-button-survey-option-renderer",function(){if(eUG!==void 0)return eUG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return eUG=R},{mode:1});var mY=function(){var R=_.K.apply(this,arguments)||this;R.disableAnimation=!1;R.isToggleOption=!0;R.followUpSurveyCommand=null;R.selectedRatingEndpoint=null;R.isSlimlineSurveyFollowUp=!1;R.isShortsStyle=!1;R.styleOverrideAttribute=!0;R.isDarkMode=!1;R.isSubmitted=!1;R.roundedContainer=!0;R.improveShortsResponseRate=_.v("web_improve_shorts_response_rate");R.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 R};
_.H(mY,_.K);_.l=mY.prototype;
_.l.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"}}}}};
_.l.attached=function(){var R=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(Y){var P;if((P=Y[0])!=null&&P.isIntersecting){_.nC().reportShown(R.hostElement);var E;(E=R.intersectionObserver)==null||E.unobserve(R.hostElement)}},{rootMargin:"0px",
threshold:.6});var A;(A=this.intersectionObserver)==null||A.observe(this.hostElement)};
_.l.onDarkModeToggledAction=function(R){this.isDarkMode=R};
_.l.dataChanged=function(){var R;if(((R=this.data)==null?void 0:R.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var A;((A=this.data)==null?void 0:A.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var Y,P,E,z;this.darkColorPalette=(Y=this.data)==null?void 0:(P=Y.inlineContent)==null?void 0:(E=P.compactVideoRenderer)==null?void 0:(z=E.thumbnail)==null?
void 0:z.darkColorPalette;var c,M,N,y;this.lightColorPalette=(c=this.data)==null?void 0:(M=c.inlineContent)==null?void 0:(N=M.compactVideoRenderer)==null?void 0:(y=N.thumbnail)==null?void 0:y.lightColorPalette;var m,T;if(((m=this.data)==null?0:(T=m.inlineContent)==null?0:T.compactVideoRenderer)&&this.isShortsStyle){var Q,g,r,I;R=_.sw((Q=this.data)==null?void 0:(g=Q.inlineContent)==null?void 0:(r=g.compactVideoRenderer)==null?void 0:(I=r.thumbnail)==null?void 0:I.thumbnails);_.ya(this.hostElement,
{"--yt-background-url":"url("+R+")"})}};
_.l.handleRequestCompletion=function(){this.hostElement.hidden&&_.xo(this.hostElement,"yt-dismissible-item-dismissed")};
_.l.onPopupClosed=function(R){var A;((A=R.detail)==null?void 0:A.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.OC(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.l.handleInlineSurveyRatingSelect=function(R,A){var Y=this;this.selectedRatingEndpoint=R;this.followUpSurveyCommand=A;this.expanded=!!R;this.getOptionRenderers().forEach(function(P,E){Y.notifyPath("followUpSurveyCommand.followUpOptions."+E+".checkboxSurveyOptionRenderer.checked");Y.set("followUpSurveyCommand.followUpOptions."+E+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),R=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.OC(this.hostElement,"yt-reel-non-video-content-dismissal-command",[R]))};
_.l.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.OC(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var R,A=(R=this.data)==null?void 0:R.dismissalEndpoint;A&&this.ytComponentBehavior.resolveCommand(A)}};
_.l.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.OC(this.hostElement,"yt-close-popup-action"))};
_.l.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var R=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{R=this.getOptionRenderers().filter(function(P){return P.checked});
if(R.length===0)return;R=R.map(function(P){return P.responseEndpoint})}var A=[];
R.forEach(function(P,E){E!==0&&(P=_.n(P,_.UR))&&P.feedbackToken&&A.push(P.feedbackToken)});
if(R=R[0]){var Y={};A.length>0&&(Y.extra_feedback_tokens=A);this.ytComponentBehavior.resolveCommand(R,{form:Y})}}};
_.l.getOptionRenderers=function(){var R=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(A){R.isSingleSelect=!!_.n(A,k8g);return R.isSingleSelect?_.n(A,k8g):_.n(A,G8Y)}):[]};
_.l.handleInlineSurveyOptionSelect=function(R){R=this.optionSelector.indexOf(R);R!==-1&&this.optionSelector.selectIndex(R)};
_.l.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.l.maybeGetBackgroundColor=function(R){return this.isDarkMode?R.section2Color:R.section3Color};
_.l.colorPaletteChanged=function(){var R=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;R=R&&this.maybeGetBackgroundColor(R);this.dismissibleEl.style.backgroundColor=!R||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.G9(R)};
_.Yh.Object.defineProperties(mY.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
mY.prototype.colorPaletteChanged=mY.prototype.colorPaletteChanged;mY.prototype.onPopupClosed=mY.prototype.onPopupClosed;mY.prototype.handleRequestCompletion=mY.prototype.handleRequestCompletion;mY.prototype.dataChanged=mY.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],mY.prototype,"actionHandlerBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],mY.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mY.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],mY.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.nG("#follow-up-survey-options"),_.k("design:type",Object)],mY.prototype,"optionSelector",void 0);_.C([_.S(),_.k("design:type",Object)],mY.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],mY.prototype,"disableAnimation",void 0);_.C([_.S(),_.k("design:type",Object)],mY.prototype,"isToggleOption",void 0);_.C([_.S(),_.k("design:type",Object)],mY.prototype,"followUpSurveyCommand",void 0);_.C([_.S(),_.k("design:type",Object)],mY.prototype,"selectedRatingEndpoint",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],mY.prototype,"expanded",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mY.prototype,"isSlimlineSurveyFollowUp",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mY.prototype,"isShortsStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mY.prototype,"styleOverrideAttribute",void 0);_.C([_.S(),_.k("design:type",Boolean)],mY.prototype,"isSingleSelect",void 0);_.C([_.S(),_.k("design:type",Object)],mY.prototype,"isDarkMode",void 0);
_.C([_.S(),_.k("design:type",Object)],mY.prototype,"lightColorPalette",void 0);_.C([_.S(),_.k("design:type",Object)],mY.prototype,"darkColorPalette",void 0);_.C([_.X("selectedRatingEndpoint","isShortsStyle"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mY.prototype,"isOptionSelected",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mY.prototype,"roundedContainer",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mY.prototype,"improveShortsResponseRate",void 0);_.C([_.nG("#dismissible"),_.k("design:type",HTMLElement)],mY.prototype,"dismissibleEl",void 0);_.C([_.nG("#dismiss-button yt-icon-button"),_.k("design:type",HTMLElement)],mY.prototype,"dismissButtonEl",void 0);_.C([_.nG("#inline-survey-header yt-icon-button"),_.k("design:type",HTMLElement)],mY.prototype,"inlineHeaderDismissButtonEl",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mY.prototype,"dataChanged",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mY.prototype,"handleRequestCompletion",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mY.prototype,"onPopupClosed",null);
_.C([_.vZ("darkColorPalette","lightColorPalette","isDarkMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mY.prototype,"colorPaletteChanged",null);_.C([_.F({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],mY);
_.B(mY,"ytd-inline-survey-renderer",function(){if(uFn!==void 0)return uFn;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return uFn=R},{mode:1});var q9j=["en-CA","en","es-MX","fr-CA"];_.Lfi=_.E5(function(R){var A=_.Pc(R,{isOverlay:!1,isModern:!1}),Y=A.captionIconType,P=A.onClick;R=A.ariaLabel;var E=A.ariaPressed,z=A.isOverlay,c=A.isModern;A=_.LK("button",function(y){_.s4(y,127299)});
var M=_.Qi(function(y){_.NF(127299);P==null||P(y);return!1}),N={};
return _.V("ytm-closed-captioning-button",{class:_.To("ytmClosedCaptioningButtonHost",(N.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return Y()===-1&&z()},N.ytmClosedCaptioningButtonIconDisabled=function(){return Y()===-1&&!z()},N))},_.V("button",{el:A,
class:"ytmClosedCaptioningButtonButton",title:R,"aria-label":R,"aria-pressed":E,"on:click":M},_.V(_.H1,{icon:function(){var y="",m=c();var T=m?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";m=m?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var Q=_.Hk().get("hl");T=!Q||q9j.includes(Q)?T:m;m=Y();switch(m){case -1:case 0:y=T;break;case 1:y=T+"_FILLED";break;default:_.kZ(m)}return y}})))},"Bf");
_.Lfi.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.Uy=function(R){return function(A,Y){var P=R||Y.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(A,Y,{get:function(){var E;return this.$?this.$[P]:(E=_.gg(this))==null?void 0:E.querySelector("#"+P)},
enumerable:!0,configurable:!0})}};_.$i=function(R){R=R===void 0?!1:R;_.KJ.call(this);this.pubSub_=new _.gr(R);_.gz(this,this.pubSub_)};
_.Pb(_.$i,_.KJ);_.$i.prototype.subscribe=function(R,A,Y){return this.isDisposed()?0:this.pubSub_.subscribe(R,A,Y)};
_.$i.prototype.unsubscribe=function(R,A,Y){return this.isDisposed()?!1:this.pubSub_.unsubscribe(R,A,Y)};
_.$i.prototype.unsubscribeByKey=function(R){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(R)};
_.$i.prototype.publish=function(R,A){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var pzY=function(){_.l1("ypcRedeemFlowStarted")},$F=function(R){_.l1("ypcRedeemFlowFailed",void 0,void 0,void 0,R)},F7g=function(R,A,Y){A&&Y&&(R.videos.forEach(function(P){P.videoId===A&&(P.itemId=Y)}),R.recommendedVideos.forEach(function(P){P.videoId===A&&(P.itemId=Y)}))};var Bio;var adj;/*

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
*/
_.jz({_template:function(){if(adj!==void 0)return adj;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Bio===void 0&&(Bio=document.createElement("template"));var P=Bio;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return adj=R},
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(R,A){var Y=this._resolveSrc(R);Y!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",R===""||A?this._setLoading(!1):(this._resolvedSrc=Y,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 R=this.$.sizedImgDiv.style,A=this.$.placeholder.style;R.backgroundSize=A.backgroundSize=this.sizing;R.backgroundPosition=A.backgroundPosition=this.sizing?this.position:"";R.backgroundRepeat=A.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(R){R=_.cu(R,this.$.baseURIAnchor.href);R.length>=2&&R[0]==="/"&&R[1]!=="/"&&(R=(location.origin||location.protocol+"//"+location.host)+R);return R}});var C_j;var hio;_.jz({_template:function(){if(hio!==void 0)return hio;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;C_j===void 0&&(C_j=document.createElement("template"));var P=C_j;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return hio=R},
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(R){return R?"false":"true"},
_headingChanged:function(R){var A=this.getAttribute("heading"),Y=this.getAttribute("aria-label");typeof Y==="string"&&Y!==A||this.setAttribute("aria-label",R)},
_computeHeadingClass:function(R){return R?" over-image":""},
_computeAnimated:function(R){return R}});var oFF=new _.lU("addRendererToItemSectionAction");var kQW;var X6=function(){return _.K.apply(this,arguments)||this};
_.H(X6,_.K);X6.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],X6.prototype,"rendererBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],X6.prototype,"dismissibleItemBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],X6.prototype,"rendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],X6.prototype,"data",void 0);_.C([_.F({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],X6);
_.B(X6,"ytd-comment-history-entry-renderer",function(){if(kQW!==void 0)return kQW;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return kQW=R},{mode:1});var GQ0;_.bh("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.bh("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var S3=function(){return _.K.apply(this,arguments)||this};
_.H(S3,_.K);_.l=S3.prototype;_.l.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onKeyUp=function(R){if(R.keyCode===13)this.onTap()};
_.l.onTap=function(){this.data.recordClickEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var R=this.data.navigationEndpoint;R&&_.n(R,_.eM)&&_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})};
_.l.readChanged=function(){var R;_.No(this.hostElement,"unread",!((R=this.data)==null?0:R.read))};
_.l.dataChanged=function(){this.data&&_.No(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.l.computeThumbnailSize=function(){var R;return((R=this.data)==null?0:R.highPriorityNotification)?32:48};
_.l.getEndpointURL=function(R){return R&&!_.n(R,_.eM)?this.componentBehavior.computeHref_(R):null};
_.l.getEndpointData=function(R){return R&&!_.n(R,_.eM)?R:null};
S3.prototype.computeThumbnailSize=S3.prototype.computeThumbnailSize;S3.prototype.dataChanged=S3.prototype.dataChanged;S3.prototype.readChanged=S3.prototype.readChanged;S3.prototype.onKeyUp=S3.prototype.onKeyUp;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],S3.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],S3.prototype,"data",void 0);_.C([_.S({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.k("design:type",Number)],S3.prototype,"thumbnailSize",void 0);_.C([_.Qa("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],S3.prototype,"onKeyUp",null);
_.C([_.vZ("data.read"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S3.prototype,"readChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S3.prototype,"dataChanged",null);_.C([_.vZ("data.highPriorityNotification"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S3.prototype,"computeThumbnailSize",null);
_.C([_.F({is:"ytd-notification-renderer",disableElementRegistration:!0})],S3);
_.B(S3,"ytd-notification-renderer",function(){if(GQ0!==void 0)return GQ0;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return GQ0=R},{mode:1});var ZWm;var Ir=function(){return _.K.apply(this,arguments)||this};
_.H(Ir,_.K);Ir.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"}}}};
Ir.prototype.computeActionButtonClass=function(R){return!R.actionButtons||R.actionButtons.length<=1?"single-button":R.description?"vertical-buttons":"horizontal-buttons"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ir.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ir.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ir.prototype,"data",void 0);_.C([_.F({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Ir);
_.B(Ir,"ytd-playlist-show-metadata-renderer",function(){if(ZWm!==void 0)return ZWm;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ZWm=R},{mode:1});var t3H;_.bh("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var KW=function(){return _.K.apply(this,arguments)||this};
_.H(KW,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],KW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],KW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],KW.prototype,"data",void 0);_.C([_.F({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],KW);
_.B(KW,"ytd-purchase-item-renderer",function(){if(t3H!==void 0)return t3H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return t3H=R},{mode:1});var wzo;var u6m={};u6m.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(R){if(R)return R.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(R){if(R==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.bh("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Wz=function(){return _.K.apply(this,arguments)||this};
_.H(Wz,_.K);Wz.prototype.onYtNavigate=function(R){var A=this.openPopupBehavior.getNavigationEndpointPopupAction(R.detail.endpoint);A&&(R.stopPropagation(),this.openPopupBehavior.openPopup(A))};
Wz.prototype.onYtNavigate=Wz.prototype.onYtNavigate;_.C([_.U(u6m.YtSimpleTextSectionBehavior),_.k("design:type",Object)],Wz.prototype,"ytSimpleTextSectionBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],Wz.prototype,"openPopupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Wz.prototype,"data",void 0);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Wz.prototype,"onYtNavigate",null);_.C([_.F({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Wz);
_.B(Wz,"ytd-simple-text-section-renderer",function(){if(wzo!==void 0)return wzo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return wzo=R},{mode:1});var eif;_.bh("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var j3=function(){return _.K.apply(this,arguments)||this};
_.H(j3,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],j3.prototype,"data",void 0);_.C([_.F({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],j3);
_.B(j3,"ytd-unlimited-page-feature-info-renderer",function(){if(eif!==void 0)return eif;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return eif=R},{mode:1});var qEi;var L79;var b_=function(){return _.K.apply(this,arguments)||this};
_.H(b_,_.K);b_.prototype.dataChanged=function(){if(this.data){var R=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);R&&(R=_.MH(R,screen.width),this.hostElement.style.backgroundImage="url("+R+")")}};
b_.prototype.dataChanged=b_.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],b_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],b_.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],b_.prototype,"dataChanged",null);_.C([_.F({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],b_);
_.B(b_,"ytd-post-redemption-section-renderer",function(){if(L79!==void 0)return L79;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return L79=R},{mode:1});var dPi;var fW=function(){return _.K.apply(this,arguments)||this};
_.H(fW,_.K);fW.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fW.prototype,"data",void 0);_.C([_.F({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],fW);
_.B(fW,"ytd-ypc-post-redemption-renderer",function(){if(dPi!==void 0)return dPi;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return dPi=R},{mode:1});_.bh("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var pW=function(){var R=_.K.apply(this,arguments)||this;R.MIN_CODE_LENGTH=12;R.MAX_CODE_LENGTH=24;return R};
_.H(pW,_.K);_.l=pW.prototype;_.l.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.l.created=function(){this.riskService=new _.W93;this.loadPaymentThenable=_.bkk(_.a1("YPC_MB_URL"))};
_.l.ready=function(){var R=this;this.code.addEventListener("keypress",function(A){R.onCodeInputKeypress(A)})};
_.l.dataChanged=function(){var R=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(A){A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.type==="attributes"&&Y.attributeName==="dark"&&R.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.l.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var R=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+R+")")}};
_.l.computeRedeemButton=function(R){(R=this.get("redeemButton.buttonRenderer",R))&&(R=Object.assign({},R,{serviceEndpoint:void 0}));return R};
_.l.onRedeemButtonTap=function(R){R.stopPropagation();pzY();this.redeemCode()};
_.l.redeemCode=function(){var R=this;this.isLoading=!0;var A=this.riskService.init();_.W$([A,this.loadPaymentThenable]).then(function(){var Y=R.data.redeemButton.buttonRenderer.serviceEndpoint,P=_.j0J(),E=payments.business.integration.ClientTokenFactory.createClientToken(_.n(Y,_.JBD).countryCode,P);P={c:R.code.value.trim(),rd:window.btoa(P),ctk:E};Y&&_.is().resolve(_.ls).resolveCommand(Y,{form:Object.assign({},P,{element:R.hostElement})})},function(){R.showGenericError();
$F("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.hv(Error("vo"))})};
_.l.onYtServiceRequestCompleted=function(R){R.stopPropagation();this.isLoading=!1;var A,Y;this.errorMessage=(A=R.detail)==null?void 0:(Y=A.data)==null?void 0:Y.errorMessage;var P,E;this.postRedemptionRenderer=(P=R.detail)==null?void 0:(E=P.data)==null?void 0:E.renderer;var z,c;if(R=(z=R.detail)==null?void 0:(c=z.data)==null?void 0:c.redirectEndpoint)this.isLoading=!0,_.xo(this.hostElement,"yt-navigate",{endpoint:R});this.errorMessage?$F("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
R)&&_.l1("ypcRedeemFlowSucceeded")};
_.l.onYtServiceRequestError=function(R){R.stopPropagation();this.isLoading=!1;if(R=this.get("detail.error.message",R))this.errorMessage=_.dF(R);$F("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.l.onInvokeInstrumentManagerActionCompleted=function(R){R.stopPropagation();this.redeemCode()};
_.l.onInvokeInstrumentManagerActionError=function(R){R.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",R)){case "instrumentManagerLoadError":this.showGenericError();$F("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();$F("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.l1("ypcRedeemFlowCancelled")}};
_.l.onInput=function(){var R=this;_.u5(this,"onInput",function(){var A=R.code.value.trim();R.redeemButtonDisabled=A.length<R.MIN_CODE_LENGTH||A.length>R.MAX_CODE_LENGTH},200)};
_.l.onCodeInputKeypress=function(R){R.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(pzY(),this.redeemCode())};
_.l.computeImageUrl=function(R){return R?_.MH(R.thumbnails,600):null};
_.l.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
pW.prototype.onInvokeInstrumentManagerActionError=pW.prototype.onInvokeInstrumentManagerActionError;pW.prototype.onInvokeInstrumentManagerActionCompleted=pW.prototype.onInvokeInstrumentManagerActionCompleted;pW.prototype.onYtServiceRequestError=pW.prototype.onYtServiceRequestError;pW.prototype.onYtServiceRequestCompleted=pW.prototype.onYtServiceRequestCompleted;pW.prototype.dataChanged=pW.prototype.dataChanged;
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],pW.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Boolean)],pW.prototype,"redeemButtonDisabled",void 0);
_.C([_.S(),_.k("design:type",Object)],pW.prototype,"errorMessage",void 0);_.C([_.S(),_.k("design:type",Object)],pW.prototype,"postRedemptionRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],pW.prototype,"observer",void 0);_.C([_.nG("#code"),_.k("design:type",HTMLInputElement)],pW.prototype,"code",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pW.prototype,"dataChanged",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pW.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pW.prototype,"onYtServiceRequestError",null);
_.C([_.Qa("yt-invoke-instrument-manager-action-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pW.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.C([_.Qa("yt-invoke-instrument-manager-action-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pW.prototype,"onInvokeInstrumentManagerActionError",null);_.C([_.F({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],pW);
_.B(pW,"ytd-redeem-code-renderer",function(){if(qEi!==void 0)return qEi;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return qEi=R},{mode:1});var RDN;_.bh("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var F6=function(){var R=_.K.apply(this,arguments)||this;R.businessEmailDisplayState="HIDE_SECTION";return R};
_.H(F6,_.K);_.l=F6.prototype;_.l.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}}}}}};
_.l.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"};
_.l.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.l.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.Gr(_.JIN),this.businessEmailDisplayState="CAPTCHA"))};
_.l.onYtServiceRequestCompleted=function(R){var A;if((A=R.detail.data)==null?0:A.businessEmail)this.businessEmail=R.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var Y;if((Y=R.detail.data)==null?0:Y.errorMessage)this.businessEmailErrorMessage=R.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.l.computeEmailHref=function(R){return"mailto:"+R};
_.l.computeSafeUrl=function(R){if(R)return _.oR(R)};
_.l.onBusinessEmailCaptchaSubmit=function(){var R;(R=this.data)!=null&&R.onBusinessEmailRevealClickCommand&&(R=this.JSC$21682_captchaTextarea.value)&&(R={recaptcha_response_token:R,channel_id:this.data.channelId},_.is().resolve(_.ls).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},R,{element:this.hostElement})}))};
_.l.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Yh.Object.defineProperties(F6.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 R,A;return!((R=this.data)==null||!R.primaryLinks)&&!((A=this.data)==null?0:A.links)&&this.data.primaryLinks.every(function(Y){return Y.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.primaryLinks)&&!((A=this.data)==null?0:A.links)&&!this.shouldShowNewLinks}}});
F6.prototype.onYtServiceRequestCompleted=F6.prototype.onYtServiceRequestCompleted;F6.prototype.dataChanged=F6.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],F6.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],F6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],F6.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.nG("#g-recaptcha-response"),_.k("design:type",HTMLTextAreaElement)],F6.prototype,"JSC$21682_captchaTextarea",void 0);_.C([_.S(),_.k("design:type",Object)],F6.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],F6.prototype,"businessEmailDisplayState",void 0);_.C([_.S(),_.k("design:type",String)],F6.prototype,"businessEmail",void 0);_.C([_.S(),_.k("design:type",String)],F6.prototype,"businessEmailErrorMessage",void 0);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],F6.prototype,"hideDetailsSection",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],F6.prototype,"dataChanged",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],F6.prototype,"shouldShowNewLinks",null);_.C([_.X("data","shouldShowLinks"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],F6.prototype,"shouldShowLegacyLinks",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],F6.prototype,"onYtServiceRequestCompleted",null);_.C([_.F({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],F6);
_.B(F6,"ytd-channel-about-metadata-renderer",function(){if(RDN!==void 0)return RDN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return RDN=R},{mode:1});var Aan;_.bh("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Bz=function(){return _.K.apply(this,arguments)||this};
_.H(Bz,_.K);Bz.prototype.configureRendererStamper=function(){return{"data.items":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer",lockupViewModel:{component:"yt-lockup-view-model",params:{force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailFixedWidth]]",containerType:"[[lockupContainerType]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Bz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Bz.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],Bz.prototype,"lockupContainerType",void 0);_.C([_.S(),_.k("design:type",String)],Bz.prototype,"thumbnailFixedWidth",void 0);
_.C([_.F({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Bz);
_.B(Bz,"ytd-channel-featured-content-renderer",function(){if(Aan!==void 0)return Aan;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Aan=R},{mode:1});var YsQ;_.bh("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var ar=function(){var R=_.K.apply(this,arguments)||this;R.roundContainer=!0;R.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");return R};
_.H(ar,_.K);_.l=ar.prototype;_.l.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.dataChanged=function(){this.imageWidth=this.imageHeight=24;var R=this.data;R.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!R.style&&R.image&&R.image.thumbnails.length&&(R=R.image.thumbnails[0],this.imageWidth=R.width||0,this.imageHeight=R.height||0)};
_.l.computeSource=function(R){return R.secondarySource?_.R4(R.secondarySource):_.R4(R.source)};
_.l.computeClarifyStyle=function(R){return R?R.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.l.isLargeStyle=function(R){return R==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.l.computeBackgroundStyle=function(R){return R?R.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.l.computeHasActionButton=function(R){return!!R.actionButton};
_.l.computeHasBottomSection=function(R){return!!R.ctaHasBottomSection};
_.l.computeIsSourceMissing=function(R){return R.ctaHasBottomSection===!1?!0:R&&this.computeSource(R)?!1:!0};
_.l.computeSecondaryEndpoint=function(R){return R.secondaryEndpoint||R.endpoint};
ar.prototype.dataChanged=ar.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ar.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ar.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ar.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],ar.prototype,"imageWidth",void 0);_.C([_.S(),_.k("design:type",Number)],ar.prototype,"imageHeight",void 0);
_.C([_.S({computed:"computeSecondaryEndpoint(data)"}),_.k("design:type",Object)],ar.prototype,"secondaryEndpoint",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.k("design:type",Boolean)],ar.prototype,"hasActionButton",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.k("design:type",Boolean)],ar.prototype,"hasBottomSection",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.k("design:type",Boolean)],ar.prototype,"missingSource",void 0);_.C([_.S({computed:"computeIcon_(data.icon)"}),_.k("design:type",String)],ar.prototype,"icon",void 0);_.C([_.S({computed:"computeIcon_(data.secondaryIcon)"}),_.k("design:type",String)],ar.prototype,"secondaryIcon",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.k("design:type",String)],ar.prototype,"clarifyStyle",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.k("design:type",String)],ar.prototype,"backgroundStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ar.prototype,"roundContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ar.prototype,"amsterdamEnabled",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ar.prototype,"dataChanged",null);
_.C([_.F({is:"ytd-clarification-renderer",disableElementRegistration:!0})],ar);
_.B(ar,"ytd-clarification-renderer",function(){if(YsQ!==void 0)return YsQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return YsQ=R},{mode:1});var P$H;var EKH;var CW=function(){var R=_.K.apply(this,arguments)||this;R.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");return R};
_.H(CW,_.K);_.l=CW.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.l.computeIcon=function(R){return R?"yt-icons:"+R.toLowerCase():null};
_.l.computeUseContacts=function(R){return!!R.contacts&&R.contacts.length>0};
_.l.computePhoneContact=function(R){var A,Y;return(A=R.contacts)==null?void 0:(Y=A.find(function(P){var E;return(P==null?void 0:(E=P.icon)==null?void 0:E.iconType)==="PHONE"}))==null?void 0:Y.actionText};
_.l.computeSmsContact=function(R){var A,Y;return(A=R.contacts)==null?void 0:(Y=A.find(function(P){var E;return(P==null?void 0:(E=P.icon)==null?void 0:E.iconType)==="SMS"}))==null?void 0:Y.actionText};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],CW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],CW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],CW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],CW.prototype,"amsterdamEnabled",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.k("design:type",Boolean)],CW.prototype,"useContacts",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.k("design:type",String)],CW.prototype,"phoneContact",void 0);_.C([_.F({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],CW);
_.B(CW,"ytd-single-action-emergency-support-renderer",function(){if(EKH!==void 0)return EKH;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return EKH=R},{mode:1});_.bh("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var hT=function(){var R=_.K.apply(this,arguments)||this;R.roundedContainer=!0;R.amsterdamEnabled=_.v("enable_desktop_amsterdam_info_panels");return R};
_.H(hT,_.K);hT.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"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],hT.prototype,"roundedContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],hT.prototype,"amsterdamEnabled",void 0);
_.C([_.F({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],hT);
_.B(hT,"ytd-emergency-onebox-renderer",function(){if(P$H!==void 0)return P$H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return P$H=R},{mode:1});var zDF;_.bh("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var or=function(){return _.K.apply(this,arguments)||this};
_.H(or,_.K);or.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],or.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],or.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],or.prototype,"data",void 0);_.C([_.F({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],or);
_.B(or,"ytd-exploratory-results-renderer",function(){if(zDF!==void 0)return zDF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return zDF=R},{mode:1});var i4G;_.bh("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var kF=function(){var R=_.K.apply(this,arguments)||this;R.messageData=null;return R};
_.H(kF,_.K);_.l=kF.prototype;_.l.onServiceRequestCompleted=function(R,A){R=A.actions||[];A=0;for(var Y=R.length;A<Y;A++){var P=R[A],E=void 0,z=void 0;if((E=_.n(P,_.jM))==null?0:(z=E.item)==null?0:z.messageRenderer)this.messageData=_.n(P,_.jM).item.messageRenderer}};
_.l.dataChanged=function(){var R=this.data;this.hostElement.hidden=!1;_.No(this.hostElement,"is-channel",R&&!R.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.l.computeThumbnailWidth=function(R){return R?126:56};
_.l.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.l.onSubmitTap=function(){var R=this.data,A=this.selectedResponseIndex;R!==void 0&&A!==void 0&&(R=R.responses[A],R.responseData&&_.is().resolve(_.ls).resolveCommand(R.responseData,{form:{element:this.hostElement}}))};
_.l.onDismissTap=function(){this.hostElement.hidden=!0;var R=this.data;R!==void 0&&R.dismissalEndpoint&&_.is().resolve(_.ls).resolveCommand(R.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.updateSelectedResponseIndexFromBinding=function(R){this.selectedResponseIndex=R.detail.value};
kF.prototype.onSelectedResponseIndexChange=kF.prototype.onSelectedResponseIndexChange;kF.prototype.dataChanged=kF.prototype.dataChanged;kF.prototype.onServiceRequestCompleted=kF.prototype.onServiceRequestCompleted;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kF.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],kF.prototype,"messageData",void 0);
_.C([_.S(),_.k("design:type",Number)],kF.prototype,"selectedResponseIndex",void 0);_.C([_.nG("#submit-button"),_.k("design:type",HTMLButtonElement)],kF.prototype,"submitButton",void 0);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],kF.prototype,"onServiceRequestCompleted",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kF.prototype,"dataChanged",null);
_.C([_.vZ("selectedResponseIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kF.prototype,"onSelectedResponseIndexChange",null);_.C([_.F({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],kF);
_.B(kF,"ytd-feedback-elicitation-single-question-renderer",function(){if(i4G!==void 0)return i4G;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return i4G=R},{mode:1});var lt0;var GQ=function(){return _.K.apply(this,arguments)||this};
_.H(GQ,_.K);GQ.prototype.computeThumbnailWidth=function(R){return R?602:428};
GQ.prototype.updateWideFromBinding=function(R){this.wide=R.detail.value};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],GQ.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],GQ.prototype,"wide",void 0);_.C([_.F({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],GQ);
_.B(GQ,"ytd-newspaper-hero-video-renderer",function(){if(lt0!==void 0)return lt0;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return lt0=R},{mode:1});var xDF;var Zd=function(){return _.K.apply(this,arguments)||this};
_.H(Zd,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Zd.prototype,"rendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Zd.prototype,"data",void 0);_.C([_.F({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Zd);
_.B(Zd,"ytd-newspaper-mini-video-renderer",function(){if(xDF!==void 0)return xDF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return xDF=R},{mode:1});var caf;_.bh("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var tT=function(){return _.K.apply(this,arguments)||this};
_.H(tT,_.K);tT.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"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],tT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tT.prototype,"data",void 0);_.C([_.F({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],tT);
_.B(tT,"ytd-newspaper-renderer",function(){if(caf!==void 0)return caf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return caf=R},{mode:1});var O4H;_.bh("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var wi=function(){var R=_.K.apply(this,arguments)||this;R.isSegment=!1;R.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};R.nextContinuation={continuationType:"playlistVideoListContinuation"};return R};
_.H(wi,_.K);_.l=wi.prototype;_.l.attached=function(){_.is();var R;(R=_.is().resolve(_.z3(_.rs)))!=null&&(R.playlistVideoListElement=this.hostElement)};
_.l.detached=function(){var R;(R=_.is().resolve(_.z3(_.rs)))!=null&&(R.playlistVideoListElement=void 0);R=_.is().resolve(_.z3(_.$e));_.v("web_enable_voting_animation")&&R&&(R.parentElem=void 0,R.videos=[],R.continuationsPresent=!1,R.showRefreshPill=!1)};
_.l.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"}}}}}};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.l.dataChanged=function(){var R=_.is().resolve(_.z3(_.$e));if(_.v("web_enable_voting_animation")&&this.data&&R){var A=_.Mo(this.hostElement).querySelector("#contents");A&&(R.parentElem=A);R.addVideos(this.data.contents)}_.e0A(this.ytReorderableBehavior)};
_.l.onRendererstamperFinished=function(){this.canReorder&&_.q1H(this.ytReorderableBehavior,_.Mo(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.l.onPlaylistReloading=function(){this.isReloading=!0};
_.l.onUpdateSetVideoId=function(R){if(R.detail&&this.data&&this.data.contents){var A=R.detail;R=this.data.contents.findIndex(function(E){var z;return((z=E.playlistVideoRenderer)==null?void 0:z.videoId)===A.videoId});
if(!(R<0)&&A.setVideoId&&(this.set("data.contents."+R+".playlistVideoRenderer.setVideoId",A.setVideoId),_.v("web_enable_voting_animation"))){var Y;if(R=_.n((Y=this.data.contents[R].playlistVideoRenderer)==null?void 0:Y.engagementBar,_.dsk)){var P;(P=R.actions)==null||P.forEach(function(E){if(E=_.n(E,_.RLu))E.itemId=A.setVideoId})}(Y=_.is().resolve(_.z3(_.$e)))&&F7g(Y,A.videoId,A.setVideoId)}}};
_.l.computeContentsClass=function(R){return R?"reloading":""};
_.l.computeIsSortable=function(R,A){return R&&A>0&&!this.isSegment&&!_.v("shorts_in_playlists_web")};
_.l.computeIsEditable=function(R){return R};
_.l.computeCanReorder=function(R){return R};
_.l.handlePlaylistRemoveVideosAction=function(R){if(this.get("playlistRemoveVideosAction.setVideoIds",R)&&this.data&&this.data.contents){R=_.n(R,_.ZAb).setVideoIds;for(var A=this.data.contents.length-1;A>=0;){var Y=this.data.contents[A].playlistVideoRenderer;Y&&Y.setVideoId&&R.includes(Y.setVideoId)&&this.splice("data.contents",A,1);A--}_.OC(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var R=0;R<this.data.contents.length;R++)this.set("data.contents."+R+".playlistVideoRenderer.index",_.dF(String(R+1)))};
_.l.handleDrop=function(R){R=R.currDragItem;var A=_.fu(R.parentNode.childNodes,R),Y=this.data.contents.splice(Number(_.R4(R.data.index))-1,1)[0];this.data.contents.splice(A,0,Y);A=A?this.get("contents."+(A-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();R=this.buildReorderServiceEndpoint(R.data.setVideoId,A);this.ytComponentBehavior.resolveCommand(R)};
_.l.buildReorderServiceEndpoint=function(R,A){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",R),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",A),this.data.onReorderEndpoint):null};
_.l.handleUpdatePlaylistAction=function(R){var A;(R=_.n((A=_.n(R,_.tSZ))==null?void 0:A.updatedRenderer,_.B38))&&this.canReorder!==R.canReorder&&this.set("data.canReorder",R.canReorder);R&&R.contents&&(this.set("data.contents",R.contents),this.isReloading=!1);R&&R.continuations&&this.set("data.continuations",R.continuations)};
_.l.handleAddRendererToItemSectionAction=function(R){var A,Y=(A=_.n(R,oFF))==null?void 0:A.renderer,P;Y&&((P=_.n(R,oFF))==null?void 0:P.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,Y),R=_.is().resolve(_.z3(_.$e)),_.v("web_enable_voting_animation")&&R&&(Y&&(A=_.LQq(Y))&&R.recommendedVideos.push({itemId:A,videoId:_.AGV(Y),voteCount:_.YLk(Y),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.l.isVotingEnabledOnPlaylist=function(R){if(!R)return!1;R=_.x(R);for(R=R.next();!R.done;R=R.next()){var A=void 0;return!!_.n((A=R.value.playlistVideoRenderer)==null?void 0:A.engagementBar,_.dsk)}return!1};
_.l.onAppendContinuationItemsActionFinished=function(){var R;this.isVotingEnabledOnPlaylist((R=this.data)==null?void 0:R.contents)&&(this.updateIndices(),R=_.is().resolve(_.z3(_.$e)),_.v("web_enable_voting_animation")&&R&&this.data&&R.addVideos(this.data.contents))};
_.l.updateVideoData=function(R){if(R.detail&&this.data&&this.data.contents){var A=R.detail;R=A.toIdx;var Y=A.itemId,P=A.newVoteCount,E=A.voteStatus;A=A.hideItem;var z,c,M=(z=this.data)==null?void 0:(c=z.contents)==null?void 0:c.findIndex(function(T){return _.LQq(T)===Y});
if(!(M<0)){z=this.data.contents[M];var N;if((N=z.playlistVideoRenderer)==null?0:N.voteCount)z.playlistVideoRenderer.voteCount=P;var y;if(N=_.n((y=z.playlistVideoRenderer)==null?void 0:y.engagementBar,_.dsk)){var m;(m=N.actions)==null||m.forEach(function(T){(T=_.n(T,_.RLu))&&T.initialState&&(T.initialState.votes=P,T.initialState.status=E)})}this.data.contents.splice(M,1);
A||this.data.contents.splice(R,0,z);this.updateIndices()}}};
wi.prototype.updateVideoData=wi.prototype.updateVideoData;wi.prototype.onAppendContinuationItemsActionFinished=wi.prototype.onAppendContinuationItemsActionFinished;wi.prototype.onUpdateSetVideoId=wi.prototype.onUpdateSetVideoId;wi.prototype.onPlaylistReloading=wi.prototype.onPlaylistReloading;wi.prototype.onRendererstamperFinished=wi.prototype.onRendererstamperFinished;wi.prototype.dataChanged=wi.prototype.dataChanged;
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],wi.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Oo.YtNextContinuationBehavior),_.k("design:type",Object)],wi.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.U(_.L2q),_.k("design:type",Object)],wi.prototype,"ytReorderableBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],wi.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],wi.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wi.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],wi.prototype,"isReloading",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wi.prototype,"isSegment",void 0);_.C([_.S({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.k("design:type",Boolean)],wi.prototype,"isSortable",void 0);_.C([_.S({computed:"computeIsEditable(data.isEditable)"}),_.k("design:type",Boolean)],wi.prototype,"isEditable",void 0);_.C([_.S({computed:"computeCanReorder(data.canReorder)"}),_.k("design:type",Boolean)],wi.prototype,"canReorder",void 0);
_.C([_.S({value:101}),_.k("design:type",Number)],wi.prototype,"scrollMargin",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"dataChanged",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"onRendererstamperFinished",null);
_.C([_.Qa("yt-playlist-reloading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"onPlaylistReloading",null);_.C([_.Qa("yt-update-set-video-id"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],wi.prototype,"onUpdateSetVideoId",null);
_.C([_.Qa("yt-append-continuation-items-action-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wi.prototype,"onAppendContinuationItemsActionFinished",null);_.C([_.Qa("yt-update-video-data-voting-animation"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],wi.prototype,"updateVideoData",null);_.C([_.F({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],wi);
_.B(wi,"ytd-playlist-video-list-renderer",function(){if(O4H!==void 0)return O4H;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return O4H=R},{mode:_.Nf("kevlar_poly_si_batch_j047")?1:2});var MeG;var u_=function(){return _.K.apply(this,arguments)||this};
_.H(u_,_.K);u_.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"}}}}};
u_.prototype.onTextWrapperTap=function(R){var A=this.data&&this.data.navigationEndpoint;A&&!_.RP(_.Ah(R),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.xo(this.hostElement,"yt-navigate",{endpoint:A})};
u_.prototype.dataChanged=function(){var R=this.get("data.offerButton.buttonRenderer.serviceEndpoint");R&&R.commandMetadata&&_.n(R.commandMetadata,_.BM)&&_.n(R.commandMetadata,_.BM).fireAutomatically&&_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})};
u_.prototype.dataChanged=u_.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],u_.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],u_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.sH),_.k("design:type",Object)],u_.prototype,"ytdLockupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],u_.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],u_.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],u_.prototype,"biggerThumbsStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],u_.prototype,"leftAligned",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u_.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-movie-renderer"})],u_);
_.B(u_,"ytd-movie-renderer",function(){if(MeG!==void 0)return MeG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return MeG=R},{mode:1});var svn;var e3=function(){var R=_.K.apply(this,arguments)||this;R.rounded=!0;R.pageAttachedTo=void 0;R.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return R};
_.H(e3,_.K);e3.prototype.attached=function(){this.pageAttachedTo=_.is().resolve(_.YH).getCurrentPage();_.xo(this.hostElement,"yt-player-attached",this.player)};
e3.prototype.detached=function(){var R;if((R=this.pageAttachedTo)==null?0:R.hostElement)_.xo(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
e3.prototype.dataChanged=function(){var R;if((R=this.data)==null?0:R.videoId)R={video_id:this.data.videoId,autoplay:!0},!_.v("miniplayer_stop_channel_video_autoplay_killswitch")&&_.is().resolve(_.jv).isMiniplayerActive()&&(R.pause_at_start=!0,R.autoplay=!1),this.player.loadVideoWithPlayerVars(R)};
e3.prototype.handleSignalActionPausePlayer=function(){_.zI().pause()};
e3.prototype.dataChanged=e3.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],e3.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],e3.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],e3.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e3.prototype,"rounded",void 0);_.C([_.nG("#player"),_.k("design:type",Object)],e3.prototype,"player",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e3.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],e3);
_.B(e3,"ytd-channel-video-player-renderer",function(){if(svn!==void 0)return svn;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return svn=R},{mode:1});var Ndm;var VeW;var Ja9;var qP=function(){var R=_.K.apply(this,arguments)||this;R.playing=!1;R.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.tk(R);R.active=!1;return R};
_.H(qP,_.K);_.l=qP.prototype;_.l.detached=function(){this.stop()};
_.l.play=function(){var R=this,A,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return R.active=!0,A=R.get("data.inlinePlaybackEndpoint.watchEndpoint"),Y=A.videoId||R.data.videoId,P=A.startTimeSeconds||0,E=A.playerParams||null,_.v("kevlar_player_update_killswitch")?c.yield(R.playerEl.update({args:{video_id:Y,startSeconds:P,player_params:E}}),2):(R.playerEl.loadVideoWithPlayerVars({video_id:Y,startSeconds:P,player_params:E,autoplay:!0}),c.jumpTo(2));if(c.nextAddress!=4)return c.yield(R.playerEl.getPlayerPromise(),
4);z=c.yieldResult;z.unloadModule("annotations_module");z.addEventListener("onStateChange",function(M){R.onPlayerStateChange(M)});
_.XH(c)})};
_.l.onPlayerStateChange=function(R){if(this.active)switch(this.playing=R===1,R){case 1:_.xo(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.xo(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.l.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.l.resize=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.playerEl.getPlayerPromise(),2);A=Y.yieldResult;A.setSize(NaN,NaN);_.XH(Y)})};
_.C([_.S(),_.k("design:type",Object)],qP.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],qP.prototype,"playing",void 0);_.C([_.S(),_.k("design:type",Object)],qP.prototype,"playerId",void 0);_.C([_.nG("#player"),_.k("design:type",Object)],qP.prototype,"playerEl",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],qP);
_.B(qP,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Ja9!==void 0)return Ja9;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Ja9=R},{mode:1});var yaN;var mDY;var LW=function(){var R=_.K.apply(this,arguments)||this;R.width=0;return R};
_.H(LW,_.K);_.l=LW.prototype;_.l.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.T2(this,this.onEnded));this.mp4El.addEventListener("error",_.T2(this,this.onError))};
_.l.detached=function(){this.videoEl.removeEventListener("ended",_.T2(this,this.onEnded));this.mp4El.removeEventListener("error",_.T2(this,this.onError))};
_.l.play=function(){var R=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var A=this.videoEl.play();A?A.then(function(){R.handleVideoStartPlaying()}).catch(function(){_.xo(R.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.xo(this.hostElement,"yt-video-thumbnail-not-playing")};
_.l.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.l.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.l.dataChanged=function(){var R;if((R=this.data)==null?0:R.thumbnailPlaceholder)R=_.MH(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+R+")";this.stop();this.autoplay&&this.play()};
_.l.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.l.onEnded=function(){this.stop();_.xo(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.l.onError=function(){_.xo(this.hostElement,"yt-video-thumbnail-error")};
_.l.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.l.getVideoThumbnail=function(R){if(R&&R.length)return R[0]};
LW.prototype.dataChanged=LW.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],LW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],LW.prototype,"animatePlaceholderOnEntrance",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],LW.prototype,"autoplay",void 0);_.C([_.S({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.k("design:type",Object)],LW.prototype,"videoThumbnail",void 0);
_.C([_.S(),_.k("design:type",Boolean)],LW.prototype,"loop",void 0);_.C([_.S(),_.k("design:type",Boolean)],LW.prototype,"isVideoPlaying",void 0);_.C([_.S(),_.k("design:type",Object)],LW.prototype,"width",void 0);_.C([_.nG("#mp4"),_.k("design:type",HTMLElement)],LW.prototype,"mp4El",void 0);_.C([_.nG("#placeholder"),_.k("design:type",HTMLElement)],LW.prototype,"placeholderEl",void 0);_.C([_.nG("#video"),_.k("design:type",HTMLVideoElement)],LW.prototype,"videoEl",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LW.prototype,"dataChanged",null);_.C([_.CG({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],LW);
_.B(LW,"yt-video-as-thumbnail-details",function(){if(mDY===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;yaN===void 0&&(yaN=document.createElement("template"));var P=yaN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);mDY=R}R=mDY;return R},{mode:2});var di=function(){var R=_.K.apply(this,arguments)||this;R.disableGridStateAware=!1;R.animationEnabled=_.v("enable_web_ketchup_hero_animation");R.transitioningOut=!1;R.narrow=!1;R.narrower=!1;R.isCarouselInFeed=!1;R.videoTimeoutJobId=0;R.panelTimeoutJobId=0;R.panelTimeoutJobStartMs=0;R.actionMap={"yt-window-resized":"onWindowResized"};return R};
_.H(di,_.K);_.l=di.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.l.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var R;this.player&&((R=this.data)==null?0:R.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.l.attached=function(){this.onWindowResized()};
_.l.detached=function(){this.clearTimeouts()};
_.l.onWindowResized=function(){this.updateSize()};
_.l.computePanelLayout=function(R){return R&&R.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.playVideo=function(){var R;this.video&&((R=this.data)==null?0:R.videoThumbnail)&&this.video.play();var A;this.player&&((A=this.data)==null?0:A.inlinePlaybackRenderer)&&this.player.play()};
_.l.stopVideo=function(){var R;this.video&&((R=this.data)==null?0:R.videoThumbnail)&&this.video.stop();var A;this.player&&((A=this.data)==null?0:A.inlinePlaybackRenderer)&&this.player.stop()};
_.l.transitionOut=function(){var R=this;this.transitioningOut=!0;return new Promise(function(A){var Y=function(){_.Mo(R.hostElement).querySelector("#action-button").removeEventListener("animationend",Y);_.fn.cancelJob(P);A();R.transitioningOut=!1};
var P=_.Ua(_.fn,Y,1E3);_.Mo(R.hostElement).querySelector("#action-button").addEventListener("animationend",Y);R.player&&(R.player.playing=!1)})};
_.l.computeMetadataOrder=function(R){return R&&R.metadataOrder&&R.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?R.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.l.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.l.computeAvatarSize=function(R){return R&&R.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.l.onContentClick=function(R){if(!_.RP(_.Ah(R),this.hostElement,["A".toString(),"BUTTON".toString()])){var A;if((A=this.data)==null?0:A.navigationEndpoint){var Y;this.componentBehavior.resolveCommand((Y=this.data)==null?void 0:Y.navigationEndpoint)}}};
_.l.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.l.setBackgroundImage=function(R){if(R=this.getBackgroundImageUrl(R))_.Mo(this.hostElement).querySelector("#hero").style.backgroundImage="url("+R+")"};
_.l.setScrimLayer=function(R){var A=this.getScrimLayerColorStops(R);R=((R==null?void 0:R.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(R=180);_.a1("HTML_DIR")==="rtl"&&(R=-R);A&&(_.Mo(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+R+"deg, "+A+")")};
_.l.isNarrower=function(){return this.hostElement.clientWidth<di.NARROW_VERSION_SIZE};
_.l.getScrimLayerColorStops=function(){var R,A=(R=this.data)==null?void 0:R.scrimColorValues;if(!A)return null;if(A.length===1)return R=_.Zs(A[0]),R+" 0%, "+R+" 100%";if(A.length===3){var Y=[0,72,98];return A.map(function(P,E){return _.Zs(P)+" "+Y[E]+"%"}).join(",")}return null};
_.l.getBackgroundImageUrl=function(R){return R&&R.largeFormFactorBackgroundThumbnail?_.MH((R.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||R.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.l.onPlaying=function(){this.startVideoTimeout()};
_.l.onEnded=function(){this.rotate()};
_.l.startPanelTimeout=function(){var R=this;if(!this.panelTimeoutJobId){var A=this.get("data.minPanelDisplayDurationMs");A&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Ua(_.fn,function(){R.rotate()},A))}};
_.l.startVideoTimeout=function(){var R=this;if(!this.videoTimeoutJobId){_.fn.cancelJob(this.panelTimeoutJobId);var A=Date.now()-this.panelTimeoutJobStartMs;A=Math.max(0,this.get("data.minPanelDisplayDurationMs")-A);A=Math.max(this.get("data.minVideoPlayDurationMs")||0,A);this.videoTimeoutJobId=_.Ua(_.fn,function(){R.rotate()},A)}};
_.l.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.fn.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.fn.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.l.rotate=function(){this.clearTimeouts();_.xo(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Yh.Object.defineProperties(di.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Mo(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Mo(this.hostElement).querySelector("#video")}}});
_.Yh.Object.defineProperties(di,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
di.prototype.onEnded=di.prototype.onEnded;di.prototype.onPlaying=di.prototype.onPlaying;di.prototype.dataChanged=di.prototype.dataChanged;_.C([_.U(_.lg),_.k("design:type",Object)],di.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],di.prototype,"componentBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],di.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.U(_.RZb),_.k("design:type",Object)],di.prototype,"ytBooleanLogicBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],di.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],di.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],di.prototype,"ytRendererBehavior",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],di.prototype,"disableGridStateAware",void 0);_.C([_.S(),_.k("design:type",Object)],di.prototype,"data",void 0);_.C([_.S({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.k("design:type",String)],di.prototype,"panelLayout",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],di.prototype,"animationEnabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],di.prototype,"transitioningOut",void 0);
_.C([_.S({computed:"computeMetadataOrder(data)"}),_.k("design:type",Boolean)],di.prototype,"metadataOrder",void 0);_.C([_.S({computed:"computeByline(data)"}),_.k("design:type",Object)],di.prototype,"byline",void 0);_.C([_.S({computed:"computeAvatarSize(data)"}),_.k("design:type",Number)],di.prototype,"avatarSize",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],di.prototype,"narrow",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],di.prototype,"narrower",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],di.prototype,"layoutStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],di.prototype,"isCarouselInFeed",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],di.prototype,"dataChanged",null);_.C([_.Qa("yt-default-promo-panel-renderer-playing"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],di.prototype,"onPlaying",null);
_.C([_.Qa("yt-default-promo-panel-renderer-ended"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],di.prototype,"onEnded",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],di);
_.B(di,"ytd-default-promo-panel-renderer",function(){if(VeW!==void 0)return VeW;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return VeW=R},{mode:1});_.bh("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var Rv=function(){var R=_.K.apply(this,arguments)||this;R.narrower=!1;R.dotMenuVisible=!1;R.paginationThumbnailsVisible=!1;R.active=!0;R.disableGridStateAware=!1;R.actionMap={"yt-window-resized":"onWindowResized"};return R};
_.H(Rv,_.K);_.l=Rv.prototype;_.l.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]]"}}}}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.T2(this,this.onPageTypeChange));this.currentPageSubtype=_.Hr(location.pathname);this.onWindowResized()};
_.l.detached=function(){this.jobId&&_.fn.cancelJob(this.jobId);this.updateSizeJobId&&_.fn.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.T2(this,this.onPageTypeChange))};
_.l.onPageTypeChange=function(R){this.active=R.detail.newPageSubtype===this.currentPageSubtype};
_.l.onWindowResized=function(){this.updateSize()};
_.l.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.l.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.l.setCarouselItem=function(R){R>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.fn.cancelJob(this.jobId);var A=this.getCurrentPanelElement();A&&A.stopVideo();this.currentItemIndex=R%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(A||(A=this.getCurrentPanelElement()),A.playVideo()):this.startRotationJob()};
_.l.scrollThumbnails=function(R){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var A=this.getCurrentPaginationElement();if(A){var Y=_.Mo(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?Y.style.transform="translateX(0)":(A=A.offsetWidth+8,Y.style.transform="translateX(-"+A*(R-Math.ceil(Math.floor(this.overlay.offsetWidth/A)/2)+1)+"px)")}}};
_.l.onDataChanged=function(){var R=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.cC(_.fn,function(){var A;(A=R.getCurrentPanelElement())==null||A.updateSize();R.updateSize()}))};
_.l.getCurrentPanelElement=function(){return _.Mo(_.Mo(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.l.getCurrentPaginationElement=function(){return _.Mo(_.Mo(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.l.getNavigationClass=function(R,A){return R===A?"selected":""};
_.l.getNavigationDurationStyle=function(R){return"animation-duration:"+(this.get("data.carouselItems."+R+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.l.onNavigationTap=function(R){var A=this,Y=R.model.index;Y!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){A.setCarouselItem(Y)}),this.autorotateActive=!1)};
_.l.onVideoThumbnailEnded=function(){var R=this;if(this.shouldRotate()){var A=this.getCurrentPaginationElement();A&&(A.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){A.classList.remove("finished");R.setNextCarouselItem()}))}};
_.l.onVideoThumbnailError=function(){this.startRotationJob()};
_.l.onVideoNotPlaying=function(){this.startRotationJob()};
_.l.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.l.startRotationJob=function(){var R=this;_.fn.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.fn.addLowPriorityJob(function(){R.getCurrentPanelElement().transitionOut().then(function(){R.setNextCarouselItem()})},this.rotationTimeout))};
_.l.computeDotMenuVisible=function(R,A){return!!R&&!!R.carouselItems&&R.carouselItems.length>1&&!R.paginationThumbnails||!!A};
_.l.computePaginationThumbnailsVisible=function(R,A){var Y,P;return((P=R==null?void 0:(Y=R.paginationThumbnails)==null?void 0:Y.length)!=null?P:0)>1&&!A};
_.l.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.l.computePaginatorAlignment=function(R){return(R==null?void 0:R.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.l.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.l.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.l.isNarrower=function(R){return(R!=null?R:0)<di.NARROW_VERSION_SIZE};
Rv.prototype.activeChanged=Rv.prototype.activeChanged;Rv.prototype.onVideoNotPlaying=Rv.prototype.onVideoNotPlaying;Rv.prototype.onVideoThumbnailError=Rv.prototype.onVideoThumbnailError;Rv.prototype.onVideoThumbnailEnded=Rv.prototype.onVideoThumbnailEnded;Rv.prototype.onDataChanged=Rv.prototype.onDataChanged;_.C([_.U(_.lg),_.k("design:type",Object)],Rv.prototype,"ytdGridStateAwareBehavior",void 0);
_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Rv.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Rv.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Rv.prototype,"currentItem",void 0);
_.C([_.S(),_.k("design:type",Number)],Rv.prototype,"currentItemIndex",void 0);_.C([_.S(),_.k("design:type",Number)],Rv.prototype,"rotationTimeout",void 0);_.C([_.S(),_.k("design:type",Number)],Rv.prototype,"loopCount",void 0);_.C([_.S({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.k("design:type",String)],Rv.prototype,"paginatorAlignment",void 0);_.C([_.S(),_.k("design:type",Number)],Rv.prototype,"jobId",void 0);
_.C([_.S(),_.k("design:type",Number)],Rv.prototype,"updateSizeJobId",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Rv.prototype,"isCarouselInFeed",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Rv.prototype,"narrower",void 0);_.C([_.S({computed:"computeDotMenuVisible(data, narrower)"}),_.k("design:type",Object)],Rv.prototype,"dotMenuVisible",void 0);
_.C([_.S({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.k("design:type",Object)],Rv.prototype,"paginationThumbnailsVisible",void 0);_.C([_.S({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.k("design:type",String)],Rv.prototype,"layoutType",void 0);_.C([_.S({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],Rv.prototype,"autorotateActive",void 0);_.C([_.S(),_.k("design:type",Object)],Rv.prototype,"active",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Rv.prototype,"disableGridStateAware",void 0);_.C([_.nG("#overlay"),_.k("design:type",HTMLElement)],Rv.prototype,"overlay",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rv.prototype,"onDataChanged",null);
_.C([_.Qa("yt-video-thumbnail-ended"),_.Qa("yt-default-promo-panel-renderer-rotate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rv.prototype,"onVideoThumbnailEnded",null);_.C([_.Qa("yt-video-thumbnail-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rv.prototype,"onVideoThumbnailError",null);
_.C([_.Qa("yt-video-thumbnail-not-playing"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rv.prototype,"onVideoNotPlaying",null);_.C([_.Ul("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rv.prototype,"activeChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],Rv);
_.B(Rv,"ytd-carousel-item-renderer",function(){if(Ndm!==void 0)return Ndm;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Ndm=R},{mode:2});var TdN;var Qv9;var vK0;var gKf;var Aa=function(){var R=_.K.apply(this,arguments)||this;R.originalQuery=null;R.originalEndpoint=null;return R};
_.H(Aa,_.K);Aa.prototype.computeShowOriginalQueryWithoutEndpoint_=function(R,A){return!(!R||A)};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Aa.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Aa.prototype,"correctedText",void 0);_.C([_.S(),_.k("design:type",Object)],Aa.prototype,"correctedQuery",void 0);_.C([_.S(),_.k("design:type",Object)],Aa.prototype,"correctedEndpoint",void 0);_.C([_.S(),_.k("design:type",Object)],Aa.prototype,"originalText",void 0);_.C([_.S(),_.k("design:type",Object)],Aa.prototype,"originalQuery",void 0);
_.C([_.S(),_.k("design:type",Object)],Aa.prototype,"originalEndpoint",void 0);_.C([_.S({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.k("design:type",Boolean)],Aa.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.C([_.CG({is:"yt-search-query-correction",disableElementRegistration:!0})],Aa);
_.B(Aa,"yt-search-query-correction",function(){if(gKf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;vK0===void 0&&(vK0=document.createElement("template"));var P=vK0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);gKf=R}R=gKf;return R},{mode:2});_.bh("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var YK=function(){return _.K.apply(this,arguments)||this};
_.H(YK,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],YK.prototype,"data",void 0);_.C([_.CG({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],YK);
_.B(YK,"yt-did-you-mean-renderer",function(){if(Qv9===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;TdN===void 0&&(TdN=document.createElement("template"));var P=TdN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Qv9=R}R=Qv9;return R},{mode:2});var nKg;var H4f;_.bh("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var Pg=function(){return _.K.apply(this,arguments)||this};
_.H(Pg,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Pg.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Pg.prototype,"data",void 0);_.C([_.CG({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],Pg);
_.B(Pg,"yt-including-results-for-renderer",function(){if(H4f===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;nKg===void 0&&(nKg=document.createElement("template"));var P=nKg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);H4f=R}R=H4f;return R},{mode:2});var raG;var DDF;_.bh("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var Es=function(){return _.K.apply(this,arguments)||this};
_.H(Es,_.K);Es.prototype.computeExtraClasses_=function(R,A){var Y="";R&&(Y+=" "+R.toLowerCase().replace(/_/g,"-"));A&&(Y+=" "+A.toLowerCase().replace(/_/g,"-"));return Y};
Es.prototype.computeUrlImg_=function(){var R=this.data;R.image&&(_.Mo(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.MH(R.image.thumbnails,Number.MAX_VALUE)+")")};
Es.prototype.computeUrlImg_=Es.prototype.computeUrlImg_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Es.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Es.prototype,"computeUrlImg_",null);_.C([_.CG({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],Es);
_.B(Es,"yt-music-pass-feature-info-renderer",function(){if(DDF===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;raG===void 0&&(raG=document.createElement("template"));var P=raG;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);DDF=R}R=DDF;return R},{mode:2});var UDn;var $Dj;_.bh("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var zd=function(){return _.K.apply(this,arguments)||this};
_.H(zd,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zd.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zd.prototype,"data",void 0);_.C([_.CG({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],zd);
_.B(zd,"yt-no-results-found-showing-results-for-renderer",function(){if($Dj===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;UDn===void 0&&(UDn=document.createElement("template"));var P=UDn;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);$Dj=R}R=$Dj;return R},{mode:2});var XgY;var SsF;_.bh("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var i$=function(){return _.K.apply(this,arguments)||this};
_.H(i$,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],i$.prototype,"data",void 0);_.C([_.CG({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],i$);
_.B(i$,"yt-results-without-quotes-renderer",function(){if(SsF===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;XgY===void 0&&(XgY=document.createElement("template"));var P=XgY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);SsF=R}R=SsF;return R},{mode:2});var Itg;var K_n;_.bh("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var l$=function(){return _.K.apply(this,arguments)||this};
_.H(l$,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],l$.prototype,"data",void 0);_.C([_.CG({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],l$);
_.B(l$,"yt-search-no-results-renderer",function(){if(K_n===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Itg===void 0&&(Itg=document.createElement("template"));var P=Itg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);K_n=R}R=K_n;return R},{mode:2});var W_H;var jvQ;_.bh("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var xK=function(){return _.K.apply(this,arguments)||this};
_.H(xK,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xK.prototype,"data",void 0);_.C([_.CG({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],xK);
_.B(xK,"yt-showing-results-for-renderer",function(){if(jvQ===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;W_H===void 0&&(W_H=document.createElement("template"));var P=W_H;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);jvQ=R}R=jvQ;return R},{mode:2});var b4f;var ftF;var pgH;var F_G;var cg=function(){var R=_.K.apply(this,arguments)||this;R.answerExpanded=!1;return R};
_.H(cg,_.K);cg.prototype.toggleAnswer_=function(R){var A=_.Yw(R);A&&A.classList.contains("yt-simple-endpoint")||(R.preventDefault(),R.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
cg.prototype.toggleAnswer_=cg.prototype.toggleAnswer_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cg.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cg.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cg.prototype,"answerExpanded",void 0);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],cg.prototype,"toggleAnswer_",null);
_.C([_.CG({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],cg);
_.B(cg,"yt-generic-faq-question-renderer",function(){if(F_G===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;pgH===void 0&&(pgH=document.createElement("template"));var P=pgH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);F_G=R}R=F_G;return R},{mode:2});_.bh("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Os=function(){return _.K.apply(this,arguments)||this};
_.H(Os,_.K);Os.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Os.prototype,"data",void 0);_.C([_.CG({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Os);
_.B(Os,"yt-faq-section-renderer",function(){if(ftF===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;b4f===void 0&&(b4f=document.createElement("template"));var P=b4f;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ftF=R}R=ftF;return R},{mode:2});var Bdf;var atf;_.bh("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var MD=function(){return _.K.apply(this,arguments)||this};
_.H(MD,_.K);
MD.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"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],MD.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],MD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],MD.prototype,"data",void 0);_.C([_.CG({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],MD);
_.B(MD,"yt-offer-item-expanded-renderer",function(){if(atf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Bdf===void 0&&(Bdf=document.createElement("template"));var P=Bdf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);atf=R}R=atf;return R},{mode:2});var C$W;var hDj;_.bh("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var ss=function(){return _.K.apply(this,arguments)||this};
_.H(ss,_.K);
ss.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"}}}}};
ss.prototype.computeFullWidthMode=function(R){return!(!R||!R.fullWidthMode)};
ss.prototype.computeBorderlessMode=function(R){return!(!R||!R.borderlessMode)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ss.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.k("design:type",Boolean)],ss.prototype,"fullWidthMode",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.k("design:type",Boolean)],ss.prototype,"borderlessMode",void 0);_.C([_.CG({is:"yt-offer-item-renderer",disableElementRegistration:!0})],ss);
_.B(ss,"yt-offer-item-renderer",function(){if(hDj===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;C$W===void 0&&(C$W=document.createElement("template"));var P=C$W;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);hDj=R}R=hDj;return R},{mode:2});var oKg;var kdG;_.bh("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var ND=function(){return _.K.apply(this,arguments)||this};
_.H(ND,_.K);ND.prototype.computeAriaLevel_=function(R){return this.getLevelID_(R)};
ND.prototype.getLevelID_=function(R){return(R=R.match(/[0-9]+$/))&&R.length==1?R[0]:"1"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ND.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ND.prototype,"data",void 0);_.C([_.S({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.k("design:type",String)],ND.prototype,"ariaLevel",void 0);_.C([_.S({value:"heading",reflectToAttribute:!0}),_.k("design:type",String)],ND.prototype,"role",void 0);
_.C([_.S({value:-1,reflectToAttribute:!0}),_.k("design:type",Number)],ND.prototype,"tabindex",void 0);_.C([_.CG({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],ND);
_.B(ND,"yt-subscription-product-header-renderer",function(){if(kdG===void 0){var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;oKg===void 0&&(oKg=document.createElement("template"));var P=oKg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);kdG=R}R=kdG;return R},{mode:2});var GdF;var Z4i;_.bh("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Vj=function(){return _.K.apply(this,arguments)||this};
_.H(Vj,_.K);Vj.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:_.fY("menuRenderer"),events:!0}}};
Vj.prototype.onStampFinished_=function(){_.Mo(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Vj.prototype.onStampFinished_=Vj.prototype.onStampFinished_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Vj.prototype,"data",void 0);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vj.prototype,"onStampFinished_",null);
_.C([_.CG({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Vj);
_.B(Vj,"yt-subscription-product-renderer",function(){if(Z4i===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;GdF===void 0&&(GdF=document.createElement("template"));var P=GdF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Z4i=R}R=Z4i;return R},{mode:2});var teF;var wgQ;_.bh("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Ja=function(){return _.K.apply(this,arguments)||this};
_.H(Ja,_.K);Ja.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ja.prototype.imageScrimColorValuesChanged_=function(){var R,A=(R=this.data)==null?void 0:R.imageScrimColorValues;_.Mo(this.hostElement).querySelector("#scrim").style.backgroundColor=A?_.Zs(A[0]):"transparent"};
Ja.prototype.imageScrimColorValuesChanged_=Ja.prototype.imageScrimColorValuesChanged_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ja.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ja.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ja.prototype,"data",void 0);
_.C([_.vZ("data.imageScrimColorValues"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ja.prototype,"imageScrimColorValuesChanged_",null);_.C([_.CG({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Ja);
_.B(Ja,"yt-subscription-product-upsell-offer-renderer",function(){if(wgQ===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;teF===void 0&&(teF=document.createElement("template"));var P=teF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);wgQ=R}R=wgQ;return R},{mode:2});var uu0;var eD0;var qsG;var L_g;var dD0;var RTY;var yj=function(){return _.K.apply(this,arguments)||this};
_.H(yj,_.K);yj.prototype.onYtServiceRequestError_=function(R){_.Zk(this.hostElement,R.detail.error.message)};
yj.prototype.onYtServiceRequestError_=yj.prototype.onYtServiceRequestError_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yj.prototype,"data",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],yj.prototype,"collapsible",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],yj.prototype,"isManageRed",void 0);
_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],yj.prototype,"onYtServiceRequestError_",null);_.C([_.CG({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],yj);
_.B(yj,"yt-single-ypc-offer-renderer",function(){if(RTY===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;dD0===void 0&&(dD0=document.createElement("template"));var P=dD0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);RTY=R}R=RTY;return R},{mode:2});var m_=function(){return _.K.apply(this,arguments)||this};
_.H(m_,_.K);m_.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],m_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],m_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],m_.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],m_.prototype,"isManageRed",void 0);_.C([_.CG({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],m_);
_.B(m_,"yt-single-ypc-offer-list-renderer",function(){if(L_g===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;qsG===void 0&&(qsG=document.createElement("template"));var P=qsG;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);L_g=R}R=L_g;return R},{mode:2});var ALH;var YBg;_.bh("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Td=function(){return _.K.apply(this,arguments)||this};
_.H(Td,_.K);Td.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Td.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Td.prototype,"isManageRed",void 0);_.C([_.CG({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Td);
_.B(Td,"yt-ypc-offers-list-renderer",function(){if(YBg===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;ALH===void 0&&(ALH=document.createElement("template"));var P=ALH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);YBg=R}R=YBg;return R},{mode:2});_.bh("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Qj=function(){return _.K.apply(this,arguments)||this};
_.H(Qj,_.K);
Qj.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}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qj.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Qj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qj.prototype,"data",void 0);_.C([_.CG({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Qj);
_.B(Qj,"yt-unlimited-manage-subscription-page-renderer",function(){if(eD0===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;uu0===void 0&&(uu0=document.createElement("template"));var P=uu0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);eD0=R}R=eD0;return R},{mode:2});var PHN;var E69;var vg=function(){return _.K.apply(this,arguments)||this};
_.H(vg,_.K);_.l=vg.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.l.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.onKeypress_=function(R){R.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.l.handleHeaderTap_=function(R){R.preventDefault();R.stopPropagation();this.expandOffers_()};
_.l.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.l.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
vg.prototype.dataChanged_=vg.prototype.dataChanged_;_.C([_.U(_.Kr),_.k("design:type",Object)],vg.prototype,"ironA11yKeysBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],vg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vg.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vg.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],vg.prototype,"offersVisible_",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vg.prototype,"dataChanged_",null);_.C([_.CG({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],vg);
_.B(vg,"yt-collapsible-ypc-offer-renderer",function(){if(E69===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;PHN===void 0&&(PHN=document.createElement("template"));var P=PHN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);E69=R}R=E69;return R},{mode:2});var zTN;var iti;_.bh("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var gd=function(){return _.K.apply(this,arguments)||this};
_.H(gd,_.K);_.l=gd.prototype;_.l.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.l.dataChanged_=function(){if(this.data.backgroundImage){var R=_.MH(this.data.backgroundImage.thumbnails,screen.width),A=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=A?"linear-gradient(180deg, "+A+"), url("+R+")":"url("+R+")";this.data.gtmId&&_.wR(this.data.gtmId,_.a1("GL",""))}};
_.l.onYtServiceRequestError_=function(R){_.Zk(this.hostElement,R.detail.error.message)};
_.l.getScrimLayerColorStops_=function(){var R,A,Y=(R=this.data.unlimitedHeaderV2Data)==null?void 0:(A=R.unlimitedHeaderV2Data)==null?void 0:A.scrimLayerColors;if(!Y)return null;var P=100/Y.length;return Y.map(function(E,z){z*=P;return _.Zs(E)+" "+z+"%"}).join(",")};
_.l.computeLogoWithPadding=function(R){var A,Y,P;return(R=(A=R.unlimitedLogoImage)==null?void 0:(Y=A.thumbnails)==null?void 0:(P=Y[0])==null?void 0:P.height)&&R%31===0?!0:!1};
gd.prototype.onYtServiceRequestError_=gd.prototype.onYtServiceRequestError_;gd.prototype.dataChanged_=gd.prototype.dataChanged_;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],gd.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.C([_.S({computed:"computeLogoWithPadding(data)"}),_.k("design:type",Boolean)],gd.prototype,"logoWithPadding",void 0);
_.C([_.S(),_.k("design:type",Object)],gd.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gd.prototype,"dataChanged_",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],gd.prototype,"onYtServiceRequestError_",null);_.C([_.CG({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],gd);
_.B(gd,"yt-unlimited-page-header-renderer",function(){if(iti===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;zTN===void 0&&(zTN=document.createElement("template"));var P=zTN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);iti=R}R=iti;return R},{mode:2});var lfn;var xyH;_.bh("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var n4=function(){return _.K.apply(this,arguments)||this};
_.H(n4,_.K);n4.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],n4.prototype,"data",void 0);_.C([_.CG({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],n4);
_.B(n4,"yt-unlimited-user-notification-renderer",function(){if(xyH===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;lfn===void 0&&(lfn=document.createElement("template"));var P=lfn;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);xyH=R}R=xyH;return R},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.bOH=_.E5(function(R){var A=_.Pc(R,{numberOfChips:5}).numberOfChips;return _.V("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.V(_.Ue,{each:function(){return Array(A==null?void 0:A())}},function(){return _.V("div",{class:"ytGhostChipShelfChip"})}))},"eh");_.fZ0=_.E5(function(R){var A=function(){var z;return((z=R.data)==null?void 0:z.call(R).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},Y=_.yJ(),P=_.is().resolve(_.AM);
_.WD(function(){requestAnimationFrame(function(){var z;(z=Y.lottieEl)==null||z.addEventListener("DOMLoaded",function(){var c;(c=R.onLottieLoaded)==null||c.call(R)})})});
var E={};return _.V("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var z;return((z=R.data)==null?void 0:z.call(R).targetId)||""}},_.V(_.pH,{className:_.To((E.ytChatLoadingViewModelRtl=P==="rtl",E)),
animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:A()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||A()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:A()}}},
animationRef:Y}))},"fh");
}catch(e){_._DumpException(e)}
try{
var XDg,Sej,KJi,WJm,j19,bQg,frH,pDN,kT0,Ig,oWn,BuN,hAg,CIF,ari,FJW,GTm,ZQf,tOF,wDg,Kb,ucH,eAF,dIi,j1,qeg,pb,WY,b1,LJQ,fb,R4g,ANH,YKN,PsQ,ESN,z4W,iwm,x1G,cN0,Owo,Mxm,sW0,NrY,Vx0,JNi,yNG,m1G,QWQ,gSW,Hw0,rNi,D1f,U1g,SKH,IOW,KTg,WTY,jWm,bwH,fOn,FTf,h4N,CsH,BrY,oSY,aOj,k3o,wUQ,txN,G3H,Zw0,BY,uN0,e4W,LT0,E_G,zsj,inW,lFN,xzo,cZm,Onf,MXm,sBi,NMG,JZo,yZY,mz0,AZF;
_.X$=function(R){var A=new _.XN("Error accessing DB");return _.evu().then(function(Y){return new Promise(function(P,E){try{var z=Y.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(R);z.onsuccess=function(){var c=z.result;P(c?c.value:null)};
z.onerror=function(){A.params={key:R,source:"onerror"};E(A)}}catch(c){A.params={key:R,
thrownError:String(c)},E(A)}})},function(){return null})};
_.$IQ=function(R,A){var Y=_.Pek(A);Y!=="javascript:"&&Y!=="data:"&&R.setAttribute("href",A)};
XDg=function(R,A){return _.mc(R.entities,"flowStateEntity",A)};
Sej=function(R,A){return _.mc(R.entities,"contextNoteUserRatingEntityPayload",A)};
_.Ir0=function(R,A){if(R&&A){var Y=_.fSI();Y().set(R,A);_.pY3(Y())}};
KJi=function(R){return _.jP(R,function(A){return A.languageCode==="en"})};
WJm=function(R){var A=S1;if(_.aiQ(R))R.setOption("captions","stickyLoading",{}),R.setOption("captions","track",{});else{var Y=_.jP(_.nAJ(R),function(P){return P.displayName===A});
R.setOption("captions","track",Y)}};
j19=function(R){if(!R)return 0;var A=R.getPresentingPlayerType(),Y=R.getVideoData();return Y&&Y.isLive?(R=R.getProgressState(A),R.seekableEnd-R.seekableStart):R.getDuration(A)};
bQg=function(R,A){for(var Y=_.x(Object.keys(R)),P=Y.next();!P.done;P=Y.next())if(P=P.value,R[P]!==A[P])return!1;return!0};
frH=function(){return document.getElementById("player-control-overlay")};
pDN=function(R){R!==-1&&!_.v("player_controls_log_creation_killswitch")&&frH()&&(_.Fh("pcu_cs",R),_.Fh("pcu_ce"))};
kT0=function(R,A){var Y=_.Y9(R,{}),P=FJW("top",A),E=FJW("bottom",A),z=FJW("left",A),c=FJW("right",A);return _.nY({top:function(){return Ig(Y().position,P)},
bottom:function(){return Ig(Y().position,E)},
left:function(){return Ig(Y().position,z)},
right:function(){return Ig(Y().position,c)},
position:function(){return Ig(Y().positionType,BuN)},
height:function(){return Ig(Y().height,Kb)},
width:function(){return Ig(Y().width,Kb)},
"min-width":function(){return Ig(Y().minWidth,Kb)},
"min-height":function(){return Ig(Y().minHeight,Kb)},
"max-width":function(){return Ig(Y().maxWidth,Kb)},
"max-height":function(){return Ig(Y().maxHeight,Kb)},
"aspect-ratio":function(){return Ig(Y().aspectRatio,String)},
"margin-top":function(){return Ig(Y().margin,P)},
"margin-bottom":function(){return Ig(Y().margin,E)},
"margin-left":function(){return Ig(Y().margin,z)},
"margin-right":function(){return Ig(Y().margin,c)},
"padding-top":function(){return Ig(Y().padding,P)},
"padding-bottom":function(){return Ig(Y().padding,E)},
"padding-left":function(){return Ig(Y().padding,z)},
"padding-right":function(){return Ig(Y().padding,c)},
"flex-direction":function(){return Ig(Y().flexDirection,ari)},
"justify-content":function(){return Ig(Y().justifyContent,CIF)},
"align-items":function(){return Ig(Y().alignItems,hAg)},
"flex-grow":function(){return Ig(Y().flexGrow,String)},
"flex-shrink":function(){return Ig(Y().flexShrink,String)},
"flex-basis":function(){return Ig(Y().flexBasis,Kb)},
"align-self":function(){return Ig(Y().alignSelf,hAg)},
"flex-wrap":function(){return Ig(Y().flexWrap,oWn)},
"align-content":function(){return Ig(Y().alignContent,hAg)}})};
Ig=function(R,A){return R!==void 0?A(R):void 0};
oWn=function(R){switch(R){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
BuN=function(R){switch(R){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
hAg=function(R){switch(R){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"}};
CIF=function(R){switch(R){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"}};
ari=function(R){switch(R){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"}};
FJW=function(R,A){var Y=A==="rtl";switch(R){case "top":var P=GTm;break;case "bottom":P=ZQf;break;case "left":P=tOF;break;default:P=wDg}return function(E){return Ig(P(E,Y),Kb)}};
GTm=function(R){var A=R.top;var Y=R.vertical;R=R.all;var P;return(P=A!=null?A:Y)!=null?P:R};
ZQf=function(R){var A=R.bottom;var Y=R.vertical;R=R.all;var P;return(P=A!=null?A:Y)!=null?P:R};
tOF=function(R,A){var Y=R.left;var P=R.end;var E=R.start;var z=R.horizontal;R=R.all;var c,M;return(M=(c=Y!=null?Y:A?P:E)!=null?c:z)!=null?M:R};
wDg=function(R,A){var Y=R.right;var P=R.end;var E=R.start;var z=R.horizontal;R=R.all;var c,M;return(M=(c=Y!=null?Y:A?E:P)!=null?c:z)!=null?M:R};
Kb=function(R){var A=R.value;switch(R.unit){case "YPC_DIMENSION_UNIT_POINT":return A+"px";case "YPC_DIMENSION_UNIT_FRACTION":return A+"%";default:return""+A}};
ucH=function(R){switch(R){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"}};
eAF=function(R){var A=R!=null?R:{};R=A.fontRole;var Y=A.fontSize;A=A.fontWeight;if(R!==null&&Y!==null)switch(R){case "YPC_FONT_ROLE_DISPLAY":switch(Y){case "YPC_FONT_SIZE_L":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(Y){case "YPC_FONT_SIZE_L":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return A===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(Y){case "YPC_FONT_SIZE_XL":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return A==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
dIi=function(R,A,Y){function P(T){return Object.values(T).map(function(Q){var g=Q.productId;Q=Q.pricingOptionIndex;return WY(E(g).pricingOptions,Q).pricingOptionId})}
function E(T){return N().get(T)}
function z(T){T=P(T);Y(T)}
function c(T,Q){return Array.from(j1(T.pricingOptions)).filter(function(g){g=_.x(g);g.next();g=g.next().value;return b1(g.pricingGroupAttributes,Q)}).map(function(g){return _.x(g).next().value})}
var M=fb([R,A],function(T,Q){var g=T==null?void 0:T.selectedPricingOptions;T={};var r=!0;if(g&&Q.length)for(var I=_.x(Q),b=I.next();!b.done;b=I.next()){b=b.value;var p=qeg(b.pricingOptions,function(Z){a:{Z=Z.pricingOptionId;for(var w=_.x(g),t=w.next();!t.done;t=w.next())if(t.value===Z){Z=!0;break a}Z=!1}return Z});
if(p>=0){r=!1;var h=WY(b.pricingOptions,p),L=void 0;T[b.groupId]={productId:b.productId,pricingOptionIndex:p,pricingGroupAttributes:(L=h)==null?void 0:L.pricingGroupAttributes}}}r&&Q.length&&(r=WY(Q[0].pricingOptions,0),T[Q[0].groupId]={productId:Q[0].productId,pricingOptionIndex:0,pricingGroupAttributes:r==null?void 0:r.pricingGroupAttributes});return T}),N=fb([A],function(T){return new Map(T.map(function(Q){return[Q.productId,
Q]}))}),y=fb([A],function(T){var Q=new Map;
T=_.x(T);for(var g=T.next();!g.done;g=T.next()){var r=g.value;g=r.groupId;var I=r.productId;r=_.x(j1(r.pricingOptions));for(var b=r.next();!b.done;b=r.next()){var p=_.x(b.value);b=p.next().value;p=p.next().value;Q.set(p.pricingOptionId,{groupId:g,productId:I,index:b,pricingOption:p,pricingGroupAttributes:p.pricingGroupAttributes})}}return Q}),m=fb([A],function(T){var Q=new Map;
T=_.x(T);for(var g=T.next();!g.done;g=T.next()){var r=g.value;g=r.groupId;var I=r.productId,b=void 0;r=_.x(j1((b=r.pricingGroups)!=null?b:[]));for(b=r.next();!b.done;b=r.next()){var p=_.x(b.value);b=p.next().value;p=p.next().value;Q.set(p.pricingGroupId,{groupId:g,productId:I,index:b,pricingGroup:p,pricingGroupAttributes:p.pricingGroupAttributes})}}return Q});
return{getProductById:E,isProductSelected:function(T){var Q=E(T);if(!Q)return!1;var g;return((g=M()[Q.groupId])==null?void 0:g.productId)===T},
getSelectedPricingOptions:function(){return Object.values(M()).map(function(T){var Q=T.productId;T=T.pricingOptionIndex;return WY(E(Q).pricingOptions,T)})},
getSelectedPricingGroupAttributesByGroupId:function(T){var Q;return(T=(Q=M()[T])==null?void 0:Q.pricingGroupAttributes)?Array.from(T):void 0},
getSelectedProductByGroupId:function(T){var Q;return(T=(Q=M()[T])==null?void 0:Q.productId)?E(T):void 0},
onProductSelected:function(T){var Q=E(T);if(Q){var g=M(),r;if(((r=g[Q.groupId])==null?void 0:r.productId)!==T){var I=(r=(I=g[Q.groupId])==null?void 0:I.productId)?E(r):void 0;var b;r=(b=g[Q.groupId])==null?void 0:b.pricingGroupAttributes;var p;b=(p=g[Q.groupId])==null?void 0:p.pricingOptionIndex;if(I&&r&&b!==void 0){p=c(I,r).indexOf(b);if(p===-1)throw Error("Nj`"+b+"`"+I.productId);b=c(Q,r);p=p<b.length?b[p]:b.length>0?b[0]:0}else p=0;pb(Q.pricingOptions)<=p&&(p=0);b=WY(Q.pricingOptions,p);var h;
I={};z(Object.assign({},g,(I[Q.groupId]={productId:T,pricingOptionIndex:p,pricingGroupAttributes:(h=b==null?void 0:b.pricingGroupAttributes)!=null?h:[]},I)))}}},
onPricingOptionSelected:function(T){var Q=y().get(T);if(Q){T=Q.groupId;var g=Q.productId;Q=Q.index;var r=M(),I,b;if(((I=r[T])==null?void 0:I.productId)!==g||((b=r[T])==null?void 0:b.pricingOptionIndex)!==Q){var p,h;I={};z(Object.assign({},r,(I[T]={productId:g,pricingOptionIndex:Q,pricingGroupAttributes:(h=(p=r[T])==null?void 0:p.pricingGroupAttributes)!=null?h:[]},I)))}}},
onPricingGroupSelected:function(T){var Q=m().get(T);if(Q){T=Q.groupId;var g=Q.productId,r=Q.pricingGroup.pricingGroupAttributes,I=E(g);if(I){Q=M();var b=Q[T].pricingGroupAttributes,p;if(((p=Q[T])==null?void 0:p.productId)!==g||!b1(LJQ(b,pb(r)),r)){p=Array.from(r);for(r=pb(r);r<pb(b);r++){var h="",L=!1,Z=Array.from(p);Z.push(WY(b,r));for(var w=_.x(I.pricingGroups),t=w.next();!t.done;t=w.next())if(t=t.value,b1(t.pricingGroupAttributes,Z)){p.push(WY(b,r));L=!0;break}else h===""&&pb(t.pricingGroupAttributes)===
Z.length&&b1(LJQ(t.pricingGroupAttributes,p.length),p)&&(h=WY(t.pricingGroupAttributes,r));L||p.push(h)}h=Q[T].pricingOptionIndex;r=[];L=new Map;Z=0;I=_.x(j1(I.pricingOptions));for(w=I.next();!w.done;w=I.next())t=_.x(w.value),w=t.next().value,t=t.next().value,b1(t.pricingGroupAttributes,p)&&r.push(w),b1(t.pricingGroupAttributes,b)&&L.set(w,Z++);r.length===0?b=0:(b=L.get(h),b=b!==void 0&&b<r.length?r[b]:r[0]);I={};z(Object.assign({},Q,(I[T]={productId:g,pricingOptionIndex:b,pricingGroupAttributes:p},
I)))}}}},
onClearGroupSelected:function(T){var Q=M();Q[T]&&(Q=Object.fromEntries(Object.entries(Q).filter(function(g){return _.x(g).next().value!==T})),z(Q))}}};
j1=function(R){return function Y(){var P,E,z,c,M;return _.ER(Y,function(N){switch(N.nextAddress){case 1:_.r2(N,2),P=0,E=_.x(R),z=E.next();case 4:if(z.done){N.jumpTo(2);break}c=z.value;M=_.zG;return N.yield([P++,c],7);case 7:M(N.yieldResult);z=E.next();N.jumpTo(4);break;case 2:_.Ht(N),_.D4(N,0)}})}()};
qeg=function(R,A){R=_.x(j1(R));for(var Y=R.next();!Y.done;Y=R.next()){var P=_.x(Y.value);Y=P.next().value;P=P.next().value;if(A(P))return Y}return-1};
pb=function(R){var A=0;for(R=R[Symbol.iterator]();!R.next().done;)++A;return A};
WY=function(R,A){R=_.x(j1(R));for(var Y=R.next();!Y.done;Y=R.next()){var P=_.x(Y.value);Y=P.next().value;P=P.next().value;if(Y===A)return P}};
b1=function(R,A){if(!R&&!A)return!0;if(!R||!A)return!1;R=Array.from(R);A=Array.from(A);if(R.length!==A.length)return!1;for(var Y=0;Y<R.length;Y++)if(R[Y]!==A[Y])return!1;return!0};
LJQ=function(R,A){A=A===void 0?Infinity:A;var Y=[];R=_.x(j1(R));for(var P=R.next();!P.done;P=R.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;if(P>=A)break;P>=0&&Y.push(E)}return Y};
fb=function(R,A){var Y,P;return function(){for(var E=R.map(function(c){return c()}),z=0;z<E.length;z++)if(!Y||E[z]!==Y[z]){Y=E;
P=A.apply(null,_.py(E));break}return P}};
R4g=function(R,A,Y){var P=[];R=_.x(R);for(var E=R.next();!E.done;E=R.next()){E=E.value;var z=void 0;((z=A)==null?0:z.length)&&!b1(E.pricingGroupAttributes,A)||P.push({pricingOption:E,isSelected:Y.includes(E.pricingOptionId)})}return P};
ANH=function(R,A){return _.mc(R.entities,"pdpStateEntity",A)};
YKN=function(R){var A,Y;return!!(R.productId&&R.groupId&&((A=R.pricingOptions)==null?0:A.length)&&R.pricingOptions.every(function(P){return P.pricingOptionId})&&((Y=R.pricingGroups)==null||!Y.length||Array.isArray(R.pricingGroups)&&R.pricingGroups.every(function(P){return P.pricingGroupId&&P.pricingGroupAttributes&&P.pricingGroupAttributes.length>0})))};
PsQ=function(R,A,Y){return dIi(R,fb([A],function(P){return P.filter(YKN)}),Y)};
ESN=function(R){var A=void 0,Y;for(Y in R)if(R.hasOwnProperty(Y)){A=Y;break}return A};
z4W=function(R,A){return A.length===0?[R]:[R.slice(0,A[0]),R.slice(A[0])].filter(function(Y){return Y.length>0})};
iwm=function(R){switch(R){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""}};
x1G=function(R,A,Y,P){P=Object.assign({},P);_.pC(P,lOQ,{selectedOptionId:R,primaryButtonOverride:Y});_.RZ().dispatch(_.HT("flowStateEntity",A,P))};
cN0=function(R){switch(R){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleContentFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleContentFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleContentFontSizeM";default:return"ytLandingPageViewModelHeaderTitleContentFontSizeL"}};
Owo=function(R){switch(R){case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XS":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_S":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeS";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_M":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeM";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_L":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL";case "LANDING_PAGE_YOUTUBE_FONT_SIZE_XL":return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeXL";
default:return"ytLandingPageViewModelHeaderTitleDescriptionFontSizeL"}};
Mxm=function(R,A){A.includes(R)?A=A.filter(function(Y){return Y!==R}):A.push(R);
return[].concat(_.py(A))};
sW0=function(R,A){return _.mc(R.entities,"contextNoteFeedEntityPayload",A)};
NrY=function(R,A){switch(R){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return A==null?void 0:A.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return A==null?void 0:A.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return A==null?void 0:A.ratingNotHelpfulText}};
Vx0=function(R,A){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:R.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:R.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:R.deleteDialogTitle}]},dialogMessages:[{runs:[{text:R.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:R.deleteActionText}]},command:{performCommentActionEndpoint:{action:A}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:R.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
JNi=function(R,A,Y){var P;if(R&&((P=A())==null?0:P.includes(R))){var E;Y((E=A())==null?void 0:E.filter(function(z){return z!==z}))}else Y([].concat(_.py(A()||[]),[R]))};
yNG=function(R){R.style.height="auto";R.style.height=R.scrollHeight+"px"};
m1G=function(R){return[R.syncStep,R.asyncStep].filter(function(A){return A!==void 0})};
QWQ=function(R){var A,Y,P;if(R=(A=R.structuredContextNoteFormSchema)==null?void 0:(Y=A.fieldSchemas)==null?void 0:(P=Y.noteBody)==null?void 0:P.validationSchema)for(A=_.x(m1G(R)),Y=A.next();!Y.done;Y=A.next()){Y=Y.value.rules;if(!Y)break;Y=_.x(Y);for(Y=Y.next();!Y.done;Y=Y.next())return _.n(Y.value,_.TrW)}};
gSW=function(R){if(R){R=_.x(m1G(R));for(var A=R.next();!A.done;A=R.next()){A=A.value.rules;if(!A)break;A=_.x(A);for(A=A.next();!A.done;A=A.next())return _.n(A.value,vSf)}}};
Hw0=function(R){if(R){R=_.x(m1G(R));for(var A=R.next();!A.done;A=R.next()){A=A.value.rules;if(!A)break;A=_.x(A);for(A=A.next();!A.done;A=A.next())return _.n(A.value,nSo)}}};
rNi=function(R){R=/^https?:\/\//.test(R)?R:"http://"+R;try{var A=_.eK(R)}catch(Y){return!1}if(A.toString()!==R)return!1;R=A.JSC$10024_domain_.split(".");return R.length>1&&R.every(function(Y){return!!Y})};
D1f=function(R,A,Y,P){var E;P=(E=P.structuredContextNoteData)==null?void 0:E.createCommentEndpoint;if(E=_.n(P,_.n57))return E.commentText=_.dF(R),E.videoPositionMention=A,E.sources=Y,P};
U1g=function(R){return R==null?void 0:R.stringValue};
_.$1H=function(R){return R.talkToRecs};
SKH=function(R,A,Y){R=R.map(function(P,E){return{listItemViewModel:{title:P.title,subtitle:P.subtitle,leadingImage:P.leadingImage,trailingImage:E===A?XUm:void 0,rendererContext:{commandContext:{onTap:P.onTap}}}}});
return Object.assign({},Y&&{header:{panelHeaderViewModel:{title:Y}}},{content:{listViewModel:{listItems:R}}})};
IOW=function(R,A){if(R&&A)switch(A){case "SELECTION_TYPE_BOOL":return R.boolValue;case "SELECTION_TYPE_INT":return R.intValue;case "SELECTION_TYPE_STRING":return R.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return R.privacyStatusValue}};
KTg=function(R){var A;R=(A=R.options)==null?void 0:A.findIndex(function(Y){return Y.isSelected});
return R===void 0?-1:R};
WTY=function(R,A,Y){var P=function(){return R().label},E={},z=_.To("ytDropdownViewModelLabel",(E.ytDropdownViewModelLabelError=A,E));
return _.V(_.J,{cond:function(){return R().label&&!(Y()===-1&&R().label&&!R().placeholderText)},
then:function(){return _.V("div",{class:z},_.V(_.NU,{text:P}))}})};
jWm=function(R,A){var Y={};Y=_.To("ytDropdownViewModelTitle",(Y.ytDropdownViewModelTitlePlaceholder=function(){return A()===-1},Y));
return _.V("div",{class:Y},_.V(_.NU,{text:function(){var P=R();var E=A();if(E===-1)P=P.placeholderText?P.placeholderText:P.label;else{var z,c;P=(z=P.options)==null?void 0:(c=z[E])==null?void 0:c.title}return P}}))};
bwH=function(R,A){var Y=function(){return R().hint};
return _.V(_.lI,null,_.V(_.J,{cond:function(){return Y()&&!A()},
then:function(){return _.V("div",{class:_.To("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.V(_.NU,{text:Y,className:"ytDropdownViewModelSupportText"}))}}),_.V(_.J,{cond:A,
then:function(){return _.V("div",{id:"dropdown-view-model-error",role:"alert",class:_.To("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.V(_.H1,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.V(_.NU,{text:A,className:"ytDropdownViewModelSupportText"}))}}))};
fOn=function(R,A){var Y=_.is().resolve(_.ekf);_.jO(function(){var P=R().id;P&&Y!=null&&Y.dropdownMap.set(P,A)})};
FTf=function(R){R=_.n(R.scheduleButton,pUN);R=_.n(R==null?void 0:R.primaryButton,_.E7);R=_.n(R==null?void 0:R.onTap,_.CC);var A,Y,P=((Y=_.n(R,_.Jg))==null?void 0:Y.commands)||[R];Y=_.x(P);for(R=Y.next();!R.done&&!(A=_.n(R.value,_.Hr7));R=Y.next());var E;A=(E=A)==null?void 0:E.createBroadcastRequest;if(!A)throw Error("Uj");return A};
h4N=function(R,A,Y){Y=Y===void 0?{}:Y;var P,E;return _.O(function(z){if(P=BrY(A))return z.return(P);(E=aOj(R,A,Y))&&CsH(A,E);return z.return(E)})};
CsH=function(R,A){var Y=oSY(R);Y&&A.then(function(P){_.is().resolve(_.Iz).put(Y,new _.Kp({innertubeResponse:P}))})};
BrY=function(R){if(R=oSY(R)){var A=_.is().resolve(_.Iz);if(A.has(R))return A.get(R).then(function(Y){return Y==null?void 0:_.dc(Y)})}return null};
oSY=function(R){var A=_.n(R.endpoint,_.LO);if(A!=null&&A.videoId)return A={videoId:A.videoId},_.v("web_imp_player_mute_params")&&(A.mutedAtStart=R.startPlaybackInMutedState),_.q4("inline_playback",A)};
aOj=function(R,A,Y){R=_.uh(R,A.endpoint,k3o(A,Y)).then(function(P){return P});
return Promise.resolve(R)};
k3o=function(R,A){A=_.v("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!R.startPlaybackInMutedState},A):Object.assign({},{vis:5,autonav:"1"},A);var Y;A={contentPlaybackContext:_.Wr(A,(Y=_.n(R.endpoint.commandMetadata,_.Ti))==null?void 0:Y.url,window.location.href)};_.v("web_imp_player_mute_params")&&(A.overrideMutedAtStart=!R.startPlaybackInMutedState);return A};
wUQ=function(R,A){var Y=window.MutationObserver;Y&&(F$=new Y(function(P,E){P=_.x(P);for(var z=P.next();!z.done;z=P.next()){z=z.value;var c;if(c=z.type==="childList"&&z.target)a:{c=R;z=G3H(z.target);c=G3H(c);for(var M=null,N=0;N<z.length;N++)if(c.includes(z[N])){if(N===0){c=!1;break a}M=z[N];break}M?(z=Zw0(z,M),c=Zw0(c,M),c=z<c):c=!1}if(c){A();E.disconnect();break}}}),(Y=txN())&&F$.observe(Y,{childList:!0,
subtree:!0}))};
txN=function(){var R=document.getElementsByTagName("ytd-rich-grid-renderer");if(R.length>0)return R[0];R=document.getElementsByTagName("ytd-section-list-renderer");return R.length>0?R[0]:null};
G3H=function(R){for(var A=[];R;)A.push(R),R=R.parentElement;return A};
Zw0=function(R,A){var Y=Array.from(A.children);A=R.indexOf(A);return A>0?Y.indexOf(R[A-1]):-1};
BY=function(R,A,Y){Y=Y===void 0?{}:Y;return _.vk(R,Y,A)};
uN0=function(R){switch(R){case "MUSIC":return!0;default:return!1}};
e4W=function(R){return R==null?void 0:R.filter(function(A){return A.premiereTrailerBadgeRenderer})};
LT0=function(R){var A,Y=R==null?void 0:(A=R.find(function(T){return T.thumbnailOverlayTimeStatusRenderer}))==null?void 0:A.thumbnailOverlayTimeStatusRenderer,P,E;
if((Y==null?0:(P=Y.icon)==null?0:P.iconType)&&uN0(Y==null?void 0:(E=Y.icon)==null?void 0:E.iconType)){var z;return{icon:Y==null?void 0:(z=Y.icon)==null?void 0:z.iconType}}var c,M;var N=(R=(c=R==null?void 0:(N=R.find(function(T){return T.thumbnailBottomOverlayViewModel}))==null?void 0:N.thumbnailBottomOverlayViewModel)==null?void 0:(M=c.badges)==null?void 0:M.find(function(T){var Q,g;
return((Q=_.n(T,qKW))==null?void 0:(g=Q.inlinePlaybackBadgeData)==null?void 0:g.replicateAsTimestamp)===!0}))?_.n(R,qKW):void 0;
if(N==null?0:N.icon){var y,m;if((N=(y=_.Xhl(N==null?void 0:N.icon))==null?void 0:(m=y.clientResource)==null?void 0:m.imageName)&&uN0(N))return{icon:N}}return{}};
E_G=function(R,A){var Y=d1n,P=_.x(_.yy(Rsi(new AZF(function(){},Y,A)),void 0,"PAnyd")),E=P.next().value,z=P.next().value,c=new AZF(function(M){z(M)},Y,A);
_.jq(function(){Promise.resolve().then(function(){var M,N=(M=R())!=null?M:{};c.playerControlsData=N;_.v("player_controls_skip_double_signal_old")&&(c.lastSeenPlayerApi=_.WC(N.playerApi));_.v("player_controls_skip_double_signal_old")||(c.lastSeenPlayerApi=_.WC(N.playerApi));YFG(c)});
_.bm(function(){PBm(c)})},"HikUP");
_.bm(function(){PBm(c)});
return function(){return E()}};
zsj=function(R){return function(A){var Y=R(),P={playerState:A};if(A===1){var E;(E=Y.playerApi)==null||E.loadModule("captions")}if(A===0){var z;(z=Y.playerApi)==null||z.unloadModule("captions")}A!==-1&&Y.setState(P)}};
inW=function(R){return function(A){R().setState({playbackRate:A})}};
lFN=function(R){return function(A){var Y=R(),P=Y.playerApi,E=P==null?void 0:P.getVideoData(),z=(E==null?void 0:E.isLive)||!1;E=E==null?void 0:E.video_id;z={videoDuration:j19(P||void 0),isLive:z,videoId:E};z.videoId!==Y.videoId&&(z=Object.assign({},_.svq(P),z));if(A==null?0:A.playertype)z.playerType=A.playertype;if(P){z.captionsAvailable=_.MF(P);A=z;var c;E=(c=P.getStoryboardLevel(P.getNumberOfStoryboardLevels()-1))==null?void 0:c.intervalMs;A.storyboardInterval=E?E/1E3:void 0;z.captionsAvailable&&
(z.captionsEnabled=_.aiQ(P))}z.volumeMuted=!(P==null||!P.isMuted());Y.setState(z)}};
xzo=function(R){return function(A){var Y=R(),P=Y.playerApi;if(P){var E=P.getPresentingPlayerType();A={playedTime:A||0,percentLoaded:P.getVideoLoadedFraction(),playerType:E};Y.playerState===0&&(A.playedTime=Y.videoDuration);Y.isLive&&(E=P.getProgressState(E),A.playedTime-=E.seekableStart,A.videoDuration=j19(P));if(Y.playerType===1)P=!1;else{var z;if((z=Y.uxConfig)==null?0:z.showCuedOverlay){var c;P=!((c=Y.playerApi)==null?0:c.getPlayerStateObject(Y.playerType).isDomPaused)}else P=!0}P&&delete A.playedTime;
Y.setState(A)}}};
cZm=function(R){return function(){var A=R(),Y,P,E,z={volume:(E=(Y=A.playerApi)==null?void 0:Y.getVolume())!=null?E:0,volumeMuted:!((P=A.playerApi)==null||!P.isMuted())};A.setState(z)}};
Onf=function(R){return function(){var A=R(),Y=A.playerApi;if(Y){var P={captionsAvailable:_.MF(Y)};P.captionsAvailable&&(P.captionsEnabled=_.aiQ(Y));A.setState(P)}}};
MXm=function(R){return function(){var A=R();if(A.playerApi&&!(A.volumeMuted||A.controlsVisible&&A.isProbablyAScreenreaderUser)){A.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var Y;(Y=document.querySelector(".player-control-play-pause-icon"))==null||Y.focus()}}};
sBi=function(R){return{appApi:Object.assign({},_.zD3(),{showCaptionsToggleToast:function(A){var Y,P;(P=(Y=R()).showCaptionsToggleToast)==null||P.call(Y,A)},
openInMiniplayer:function(){var A,Y;(Y=(A=R()).openInMiniplayer)==null||Y.call(A)}})}};
NMG=function(R,A){var Y,P,E;return!!(R==null?0:(Y=R.playerResponse)==null?0:(P=Y.playerConfig)==null?0:(E=P.inlinePlaybackConfig)==null?0:E.showScrubbingControls)&&!(A==null?0:A.hideScrubbingControls)};
_.VXn=function(R){var A=!R.miniplayerIsActive;return[5,2,0].includes(R.miniplayerPlaybackState)||A};
JZo={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};yZY=function(R,A){var Y,P,E,z,c;_.O(function(M){if(!A.length)return M.return([]);Y=[];P=_.x(A);for(E=P.next();!E.done;E=P.next())z=E.value,(c=R.resolveIcon(z))&&!R.iconCache[c.url]&&Y.push(_.KoG(R,c).then(function(){}).catch(function(){}));
return M.return(Promise.all(Y))})};
mz0=function(R,A){var Y=[];A=(new Set(A)).values();A=_.x(A);for(var P=A.next();!P.done;P=A.next()){P=P.value;for(var E=_.x(Object.values(JZo)),z=E.next();!z.done;z=E.next())Y.push({iconName:P,iconStyle:z.value})}yZY(R.iconManager,Y)};
_.TMH=function(R,A,Y){var P=Y!=null?Y:R.iconsToFetch;P!=null&&P.length?A!==void 0&&A>=0?_.Ua(_.fn,function(){mz0(R,P)},A):mz0(R,P):Promise.resolve()};
AZF=function(R,A,Y){var P=this;this.renderFn=R;this.listeners=A;this.context=Y;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var E;this.lastSeenPlayerApi=_.WC((E=this.playerControlsData)==null?void 0:E.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.svq(),void 0);_.v("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){Rsi(P).setState({playerState:-1});P.resetRecentlyNavigatedJobId&&_.fn.cancelJob(P.resetRecentlyNavigatedJobId);
P.recentlyNavigated=!0;P.resetRecentlyNavigatedJobId=_.fn.addJob(function(){P.recentlyNavigated=!1},8,1E4)})};
AZF.prototype.setState=function(R){if(!_.v("mweb_player_skip_no_op_state_changes")||!bQg(R,this.state))if(this.state=Object.assign({},this.state,R),!_.v("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)R=-1,_.v("player_controls_log_creation_killswitch")||frH()||(R=(0,_.iB)()),_.Fh("pcu_s"),_.Fh("pcu_se"),_.Fh("pcu_rs"),this.renderFn(Rsi(this)),_.Fh("pcu_re"),pDN(R),_.fn.addJob(function(){_.Fh("pcu_ap")},8)};
var Rsi=function(R){var A;var Y=_.WC((A=R.playerControlsData)==null?void 0:A.playerApi);return Object.assign({},R.state,{setState:R.boundSetState,domMeasurements:{progressBarLineRect:R.progressBarLineRect},playerApi:Y,appApi:R.context.appApi,playerContainer:R.context.playerContainer,playerControlContainer:R.context.playerControlContainer,uxConfig:R.context.uxConfig})},YFG=function(R){R.listeners.forEach(function(A){R.eventListenerCleanupFunctions.push(A.register(function(){return Rsi(R)},function(){return R.getData()}))})},
PBm=function(R){R.eventListenerCleanupFunctions.forEach(function(A){A()});
R.eventListenerCleanupFunctions.length=0};
AZF.prototype.getData=function(){return this.playerControlsData};
var QBo=new _.lU("crowdsourcedContextUserRatingFormFlowState");var v_j=new _.lU("noteViewModel");var ag=new _.lU("abuseReportFlowState");var g_Y=new _.lU("feedbackFormFlowState");var n_N=new _.lU("inputBoxViewModel");var Hno=new _.lU("flowNextStepCommand");var rZY=new _.lU("flowPrevStepCommand");var Dzj=new _.lU("updateFlowCommand");_.Uzi=new _.lU("flowStepRenderer");_.TrW=new _.lU("lengthValidationRule");var vSf=new _.lU("regexValidationRule");var nSo=new _.lU("selectedValidationRule");var $zn=new _.lU("talkToRecsViewModel");var XGG=new _.lU("creatorGoalSetUpFlowDropdownItemViewModel");var SFj=new _.lU("creatorGoalSetUpFlowDropdownViewModel");var qKW=new _.lU("thumbnailBadgeViewModel");var IFW=new _.lU("checkboxGroupViewModel");_.Cb=new _.lU("radioButtonGroupViewModel");var K3G=new _.lU("radioButtonItemViewModel");var pUN=new _.lU("panelFooterViewModel");var W3F=new _.lU("ypcCancelRecurrenceCommand");var jB9=new _.lU("cancellationFlowState");var lOQ=new _.lU("premiumPurchaseFlowState");var bnn=new _.lU("surveyAnswerCardRenderer");var fFg=new _.lU("showMoreButtonRenderer");var pGj;var F30,BMF=function(){if(F30!==void 0)return F30;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;pGj===void 0&&(pGj=document.createElement("template"));var P=pGj;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return F30=R};var h1=function(){var R=_.K.apply(this,arguments)||this;R.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";R.goalDescription="";R.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";R.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";R.startButtonId="start-button";R.exampleButtonId="example-button";return R};
_.H(h1,_.K);_.l=h1.prototype;_.l.getGoalDropdownItems=function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.purchaseTargetDropdown,SFj))==null?void 0:A.dropdownItems};
_.l.getTimerDropdownItems=function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.timerDropdown,SFj))==null?void 0:A.dropdownItems};
_.l.getColorDropdownItems=function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.colorDropdown,SFj))==null?void 0:A.dropdownItems};
_.l.getDropdownItemText=function(R){var A;return(A=_.n(R,XGG))==null?void 0:A.itemLabel};
_.l.getDropdownItemValue=function(R){R=_.n(R,XGG);return(R==null?void 0:R.timeLimit)||(R==null?void 0:R.purchaseTarget)||(R==null?void 0:R.eligiblePurchaseType)};
_.l.updateFlowState=function(R){_.OC(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:R}])};
_.l.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.l.updateGoalValue=function(R){this.goal=R.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.l.onTextValueChanged=function(R){this.goalDescription=R.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.l.updateTimerValue=function(R){this.timer=R.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.l.updateTierValue=function(R){this.tier=R.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.l.getButtonViewModel=function(R){R=(R==null?void 0:R.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var A,Y=_.n((A=this.data)==null?void 0:A.startGoalButton,_.E7);return Object.assign({},Y,{state:R})};
_.Yh.Object.defineProperties(h1,{template:{configurable:!0,enumerable:!0,get:function(){return BMF()}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],h1.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],h1.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],h1.prototype,"goal",void 0);_.C([_.S(),_.k("design:type",Object)],h1.prototype,"goalDescription",void 0);_.C([_.S(),_.k("design:type",Object)],h1.prototype,"timer",void 0);_.C([_.S(),_.k("design:type",Object)],h1.prototype,"tier",void 0);
_.C([_.S(),_.k("design:type",Object)],h1.prototype,"startButtonId",void 0);_.C([_.S(),_.k("design:type",Object)],h1.prototype,"exampleButtonId",void 0);_.C([_.CG({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],h1);_.B(h1,"yt-creator-goal-set-up-flow-view-model",function(){return BMF()},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var aF0;var CBm;var hsW;var o_Y=function(){return _.K.apply(this,arguments)||this};
_.H(o_Y,_.K);_.C([_.S(),_.k("design:type",Object)],o_Y.prototype,"data",void 0);_.C([_.CG({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],o_Y);
_.B(o_Y,"yt-survey-answer-card-renderer",function(){if(hsW===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;CBm===void 0&&(CBm=document.createElement("template"));var P=CBm;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);hsW=R}R=hsW;return R},{mode:2});var k5F;var G5Y;var og=function(){return _.K.apply(this,arguments)||this};
_.H(og,_.K);_.l=og.prototype;_.l.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.l.selectedItemChanged=function(R){_.OC(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[R.feedbackToken||""]}])};
_.l.surveyAnswerCardRendererClicked=function(R){if(R.target&&_.n(R.model.item,bnn)){var A=R.target;R=_.n(R.model.item,bnn);R.onTapCommand?_.NT(A,[R.onTapCommand],A):this.data.onTapCommand&&_.NT(A,[this.data.onTapCommand],A);this.selectedItemChanged(R)}};
_.l.checkIsCancellationStyle=function(R){return R==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.l.updateSelectedItemFromBinding=function(R){this.selectedItem=R.detail.value};
og.prototype.onSelectedItemChanged=og.prototype.onSelectedItemChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],og.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],og.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],og.prototype,"selectedItem",void 0);_.C([_.S({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.k("design:type",Boolean)],og.prototype,"isCancellationStyle",void 0);
_.C([_.vZ("selectedItem"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],og.prototype,"onSelectedItemChanged",null);_.C([_.CG({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],og);
_.B(og,"yt-survey-flow-step-renderer",function(){if(G5Y===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;k5F===void 0&&(k5F=document.createElement("template"));var P=k5F;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);G5Y=R}R=G5Y;return R},{mode:2});var kR=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return R};
_.H(kR,_.K);kR.prototype.handleSurveyFlowStepOptionChanged=function(R){this.ytdReduxBehavior.dispatch(_.cK({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:R}));_.OC(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:R}}])};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],kR.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],kR.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kR.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],kR);
_.B(kR,"ytd-survey-flow-step-renderer",function(){if(aF0!==void 0)return aF0;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return aF0=R},{mode:1});_.uX0=_.E5(function(R){var A=R.data;var Y=R.hideDivider;var P=R.isChannelInfoCard;R={};return _.V("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.V("div",{class:_.To("yt-profile-identity-info-view-model-wiz__frame",(R["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=function(){return!A().channelBanner},R))},_.V(Zng,{profileIdentityInfoData:A}),_.V("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},_.V("div",
{class:"yt-profile-identity-info-view-model-wiz__avatar"},_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW})),_.V(tXG,{profileIdentityInfoData:A})),_.V(_.J,{cond:function(){return A().channelDescription},
then:function(E){var z={};return _.V("div",{class:_.To((z["yt-profile-identity-info-view-model-wiz__channel-description-alternate"]=function(){return!(P==null||!P())},z["yt-profile-identity-info-view-model-wiz__channel-description"]=function(){return!(P==null?0:P())},z))},E)}}),_.V(wGj,{profileIdentityInfoData:A}),_.V(_.J,{cond:function(){return!(Y==null?0:Y())},
then:function(){return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__divider"})}})))},"Cf");
_.uX0.idomCompat=!0;var wGj=_.E5(function(R){var A=R.profileIdentityInfoData;return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},_.V(_.Ue,{each:function(){return A().subscribeButton?[A().subscribeButton,A().channelAccess]:[A().channelAccess]}},function(Y){return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.V("div",{class:"yt-profile-identity-info-view-model-wiz--button"},_.V(_.ni,{data:function(){return Y}},{buttonViewModel:_.Is,
subscribeButtonViewModel:_.qu})))}))},"Df"),tXG=_.E5(function(R){var A=R.profileIdentityInfoData;
return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},_.V("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},_.V(esN,{profileIdentityInfoData:A}),_.V(_.ni,{data:function(){return A().threeDotMenu}},{buttonViewModel:_.Is})),_.V(qFg,{profileIdentityInfoData:A}))},"Ef"),esN=_.E5(function(R){var A=R.profileIdentityInfoData;
return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.V("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},function(){return A().channelDisplayName}),_.V(_.J,{cond:function(){return A().verifiedOrOacBadge},
then:function(Y){return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.V(_.P1,{data:function(){return{thumbnails:[{url:Y().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"Ff"),Zng=_.E5(function(R){var A=R.profileIdentityInfoData;
return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},_.V(_.ni,{data:function(){var Y=A().channelBanner;if(Y)return{imageBannerViewModel:{image:Y.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(Y){return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},_.V(_.iN,{data:Y.data,
isPositionRelative:!0}))}}))},"Gf"),qFg=_.E5(function(R){var A=R.profileIdentityInfoData;
return _.V("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.V("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.V("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},function(){return A().channelHandle}),_.V(_.J,{cond:function(){return A().channelPronouns&&A().channelHandle},
then:function(){return _.V("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.V("div",{dir:"auto",
class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},function(){return A().channelPronouns})),_.V("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.V("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return A().leftOfBulletInfo}),_.V(_.J,{cond:function(){return A().leftOfBulletInfo&&A().rightOfBulletInfo},
then:function(){return _.V("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022")}}),_.V("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},function(){return A().rightOfBulletInfo})))},"Hf");var L3i;var Gc=function(){return _.K.apply(this,arguments)||this};
_.H(Gc,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Gc.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Gc.prototype,"data",void 0);_.C([_.F({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],Gc);
_.B(Gc,"ytd-channel-history-renderer",function(){if(L3i!==void 0)return L3i;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return L3i=R},{mode:1});var dz9;var Ry9=function(){return _.K.apply(this,arguments)||this};
_.H(Ry9,_.K);_.C([_.S(),_.k("design:type",Object)],Ry9.prototype,"data",void 0);_.C([_.F({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Ry9);
_.B(Ry9,"ytd-feature-enablement-info-renderer",function(){if(dz9!==void 0)return dz9;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return dz9=R},{mode:1});var A$g;var YaG;var ZS=function(){var R=_.K.apply(this,arguments)||this;R.textBoxMaxLength=_.v("enable_tvod_campaign_code_integration")?15:12;return R};
_.H(ZS,_.K);_.l=ZS.prototype;_.l.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.l.onSubmit=function(){var R=this.data.serviceEndpoint,A=_.n(R,_.ed);A&&R&&(A.couponCode=this.userInput,_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}}))};
_.l.validate=function(){var R=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=R&&!this.data.errorMessage;this.showErrorMessage=R&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.v("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.l.computeStyle=function(R){return R};
_.l.computeShowValidationBelowInput=function(R){return R!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.l.updateUserInputFromBinding=function(R){this.userInput=R.currentTarget.value};
_.l.updateShowErrorMessageFromBinding=function(R){this.showErrorMessage=R.detail.value};
_.Yh.Object.defineProperties(ZS.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
ZS.prototype.dataChanged=ZS.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZS.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ZS.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],ZS.prototype,"userInput",void 0);_.C([_.S(),_.k("design:type",Boolean)],ZS.prototype,"disableApplyButton",void 0);_.C([_.S(),_.k("design:type",Boolean)],ZS.prototype,"hideApplyButton",void 0);
_.C([_.S(),_.k("design:type",Boolean)],ZS.prototype,"hideErrorMessage",void 0);_.C([_.S(),_.k("design:type",Boolean)],ZS.prototype,"showTick",void 0);_.C([_.S(),_.k("design:type",Boolean)],ZS.prototype,"showErrorMessage",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],ZS.prototype,"couponStyle",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.k("design:type",Boolean)],ZS.prototype,"showValidationBelowInput",void 0);_.C([_.S(),_.k("design:type",Object)],ZS.prototype,"textBoxMaxLength",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZS.prototype,"dataChanged",null);
_.C([_.X("showTick","showErrorMessage","userInput"),_.k("design:type",String),_.k("design:paramtypes",[])],ZS.prototype,"validationState",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],ZS);
_.B(ZS,"ytd-ypc-coupon-renderer",function(){if(YaG!==void 0)return YaG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return YaG=R},{mode:1});var t1=function(){return _.K.apply(this,arguments)||this};
_.H(t1,_.K);t1.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"}}}};
t1.prototype.computeStyle=function(R){return R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],t1.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],t1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],t1.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],t1.prototype,"buttonStyle",void 0);_.C([_.F({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],t1);
_.B(t1,"ytd-flow-bottom-bar-renderer",function(){if(A$g!==void 0)return A$g;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return A$g=R},{mode:1});var PjG;var Eaf;var zyj;var wn=function(){return _.K.apply(this,arguments)||this};
_.H(wn,_.K);wn.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
wn.prototype.focus=function(R){this.title&&_.qz(this.title,R)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wn.prototype,"data",void 0);_.C([_.nG("#title"),_.k("design:type",HTMLElement)],wn.prototype,"title",void 0);_.C([_.F({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],wn);
_.B(wn,"ytd-flow-top-bar-renderer",function(){if(zyj!==void 0)return zyj;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return zyj=R},{mode:1});var iKG;var lAf;var xjN;var u1=function(){return _.K.apply(this,arguments)||this};
_.H(u1,_.K);u1.prototype.freeTextValueChanged=function(){_.OC(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
u1.prototype.updateFreeTextValueFromBinding=function(R){this.freeTextValue=R.detail.value};
_.Yh.Object.defineProperties(u1.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(A=(R=this.data)==null?void 0:R.responseMaxLength)!=null?A:500,P;return((P=this.freeTextValue)!=null?P:"").length>=Y?"maxed-out":""}}});
u1.prototype.freeTextValueChanged=u1.prototype.freeTextValueChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],u1.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],u1.prototype,"freeTextValue",void 0);_.C([_.nG("#user-input"),_.k("design:type",HTMLTextAreaElement)],u1.prototype,"input",void 0);
_.C([_.X("freeTextValue"),_.k("design:type",Object),_.k("design:paramtypes",[])],u1.prototype,"characterLimitClass",null);_.C([_.vZ("freeTextValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],u1.prototype,"freeTextValueChanged",null);_.C([_.CG({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],u1);
_.B(u1,"yt-free-text-input-flow-step-renderer",function(){if(xjN===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;lAf===void 0&&(lAf=document.createElement("template"));var P=lAf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);xjN=R}R=xjN;return R},{mode:2});var e1=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return R};
_.H(e1,_.K);e1.prototype.handleFreeTextFlowStepInputChanged=function(R){_.OC(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:R}}])};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],e1.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],e1.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],e1.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],e1);
_.B(e1,"ytd-free-text-input-flow-step-renderer",function(){if(iKG!==void 0)return iKG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return iKG=R},{mode:1});var c$f;var OKf;var M_W=function(){return _.K.apply(this,arguments)||this};
_.H(M_W,_.K);_.C([_.S(),_.k("design:type",Object)],M_W.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],M_W);
_.B(M_W,"ytd-metadata-line-renderer",function(){if(OKf!==void 0)return OKf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return OKf=R},{mode:1});var qF=function(){return _.K.apply(this,arguments)||this};
_.H(qF,_.K);qF.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],qF.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],qF.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],qF.prototype,"isMasthead",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],qF);
_.B(qF,"ytd-media-product-renderer",function(){if(c$f!==void 0)return c$f;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return c$f=R},{mode:1});var snH;var Lb=function(){return _.K.apply(this,arguments)||this};
_.H(Lb,_.K);Lb.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
Lb.prototype.onBillboardImageLoaded=function(){_.xo(this.hostElement,"yt-refit")};
Lb.prototype.onBillboardImageLoaded=Lb.prototype.onBillboardImageLoaded;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Lb.prototype,"data",void 0);_.C([_.nG("#billboardImage"),_.k("design:type",Object)],Lb.prototype,"billboardImage",void 0);_.C([_.Qa("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lb.prototype,"onBillboardImageLoaded",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],Lb);
_.B(Lb,"ytd-billboard-masthead-renderer",function(){if(snH!==void 0)return snH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return snH=R},{mode:1});var N5H;var dn=function(){var R=_.K.apply(this,arguments)||this;R.smallSize=!1;return R};
_.H(dn,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],dn.prototype,"ytComponentBehaviorType",void 0);_.C([_.S(),_.k("design:type",Object)],dn.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dn.prototype,"smallSize",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],dn);
_.B(dn,"ytd-bullet-formatted-string",function(){if(N5H!==void 0)return N5H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return N5H=R},{mode:1});var V_n;var RI=function(){return _.K.apply(this,arguments)||this};
_.H(RI,_.K);RI.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],RI.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],RI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],RI.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],RI);
_.B(RI,"ytd-offer-detail-renderer",function(){if(V_n!==void 0)return V_n;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return V_n=R},{mode:1});var J$G;var AJ=function(){return _.K.apply(this,arguments)||this};
_.H(AJ,_.K);AJ.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],AJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],AJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],AJ.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],AJ);
_.B(AJ,"ytd-offer-detail-step-renderer",function(){if(J$G!==void 0)return J$G;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return J$G=R},{mode:1});var y$N;var Yi=function(){var R=_.K.apply(this,arguments)||this;R.isInOfferModule=!1;return R};
_.H(Yi,_.K);_.l=Yi.prototype;_.l.computeHasEndpoint=function(){var R;return!((R=this.data)==null||!R.onClickCommand)};
_.l.dataChanged=function(){var R;if((R=this.data)==null?0:R.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")};
_.l.detached=function(){var R;if((R=this.data)==null?0:R.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.l.handleClickEvent=function(){var R;if((R=this.data)==null?0:R.onClickCommand){var A;this.componentBehavior.resolveCommand((A=this.data)==null?void 0:A.onClickCommand)}};
_.l.onContentKeyDown=function(R){R.key==="Enter"?this.handleClickEvent(R):R.key===" "&&R.preventDefault()};
_.l.onContentKeyUp=function(R){R.key===" "&&this.handleClickEvent(R)};
Yi.prototype.dataChanged=Yi.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Yi.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Yi.prototype,"data",void 0);_.C([_.S({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Yi.prototype,"hasEndpoint",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Yi.prototype,"isInOfferModule",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yi.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Yi);
_.B(Yi,"ytd-channel-masthead-renderer",function(){if(y$N!==void 0)return y$N;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return y$N=R},{mode:1});var mjf;var PJ=function(){var R=_.K.apply(this,arguments)||this;R.thumbnailObjectFit="CONTAIN";R.thumbnailObjectPosition="LEFT";R.isExpanded=!1;return R};
_.H(PJ,_.K);_.l=PJ.prototype;_.l.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.l.dataChanged=function(){this.resetStates()};
_.l.computeisTapOnOfferInfoContainerEnabled=function(){var R;return((R=this.data)==null?void 0:R.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.l.onExpandBtnClick=function(){var R,A=_.n((R=this.data)==null?void 0:R.showMoreButtonRenderer,fFg);A&&_.K_(_.rU(),A.trackingParams);this.isExpanded=!this.isExpanded};
_.l.onOfferInfoClick=function(R){this.isTapOnOfferInfoContainerEnabled&&(_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.A4(_.Ah(R)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.l.onBottomBarClick=function(){this.executeTapCommand()};
_.l.executeTapCommand=function(){var R,A=(R=this.data)==null?void 0:R.tapCommand;A&&this.ytComponentBehavior.resolveCommand(A)};
_.l.resetStates=function(){this.isExpanded=!1};
_.Yh.Object.defineProperties(PJ.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var R=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),A,Y,P;return((A=this.data)==null?void 0:A.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&R&&!!((Y=this.data)==null?0:(P=Y.benefits)==null?0:P.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((A=_.n((R=this.data)==null?void 0:R.showMoreButtonRenderer,fFg))==null?void 0:A.showMoreButtonTitle)||((Y=this.data)==null?void 0:Y.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((A=_.n((R=this.data)==null?void 0:R.showMoreButtonRenderer,fFg))==null?void 0:A.showLessButtonTitle)||((Y=this.data)==null?void 0:Y.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var R;return(R=this.showLessButtonTitle)!=null?R:""}var A;return(A=this.showMoreButtonTitle)!=null?A:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?void 0:R.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((A=this.data)==null?0:A.footerTitle)||((Y=this.data)==null?0:Y.footerSubtitle))}}});
PJ.prototype.dataChanged=PJ.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],PJ.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],PJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",String)],PJ.prototype,"thumbnailObjectFit",void 0);
_.C([_.S(),_.k("design:type",String)],PJ.prototype,"thumbnailObjectPosition",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.k("design:type",Boolean)],PJ.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.C([_.S(),_.k("design:type",Object)],PJ.prototype,"isExpanded",void 0);_.C([_.S(),_.k("design:type",Object)],PJ.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.footerIcon)"}),_.k("design:type",String)],PJ.prototype,"icon",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PJ.prototype,"dataChanged",null);_.C([_.X("data.thumbnail"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],PJ.prototype,"hasThumbnail",null);_.C([_.X("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],PJ.prototype,"enableExpandButton",null);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],PJ.prototype,"enableOfferContentIcon",null);_.C([_.X("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],PJ.prototype,"showMoreButtonTitle",null);_.C([_.X("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.k("design:type",Object),_.k("design:paramtypes",[])],PJ.prototype,"showLessButtonTitle",null);
_.C([_.X("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.k("design:type",String),_.k("design:paramtypes",[])],PJ.prototype,"expandedBtnText",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],PJ.prototype,"enableBottomBar",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],PJ);
_.B(PJ,"ytd-offer-card-renderer",function(){if(mjf!==void 0)return mjf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return mjf=R},{mode:1});var T5N;var Ey=function(){return _.K.apply(this,arguments)||this};
_.H(Ey,_.K);Ey.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"}}}};
Ey.prototype.onClick=function(R){if(!_.RP(R.composedPath()||[],this.hostElement,["A".toString()])){var A,Y;if((R=(Y=_.n((A=this.data)==null?void 0:A.actionButton,_.RC))==null?void 0:Y.command)&&!this.ytComponentBehavior.resolveCommand(R)){var P;(P=_.rU())==null||P.clickCommand(R);_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})}}};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ey.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ey.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ey.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Ey);
_.B(Ey,"ytd-offer-content-renderer",function(){if(T5N!==void 0)return T5N;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return T5N=R},{mode:1});var QnY;var zY=function(){return _.K.apply(this,arguments)||this};
_.H(zY,_.K);zY.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Yh.Object.defineProperties(zY.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.title)||!((A=this.data)==null||!A.description)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],zY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zY.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],zY.prototype,"hasHeaderData",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],zY);
_.B(zY,"ytd-offer-section-renderer",function(){if(QnY!==void 0)return QnY;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return QnY=R},{mode:1});var van;var iZ=function(){return _.K.apply(this,arguments)||this};
_.H(iZ,_.K);
iZ.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"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],iZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iZ.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],iZ);
_.B(iZ,"ytd-offer-selection-step-renderer",function(){if(van!==void 0)return van;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return van=R},{mode:1});var gan;var lZ=function(){return _.K.apply(this,arguments)||this};
_.H(lZ,_.K);lZ.prototype.computeStyle=function(R){return R};
lZ.prototype.computeImageWidth=function(R){return R==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.C([_.S({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.k("design:type",String)],lZ.prototype,"containerStyle",void 0);_.C([_.S({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.k("design:type",String)],lZ.prototype,"imageWidth",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lZ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lZ.prototype,"data",void 0);
_.C([_.F({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],lZ);
_.B(lZ,"ytd-confirmation-masthead-renderer",function(){if(gan!==void 0)return gan;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gan=R},{mode:1});var naN;var xi=function(){return _.K.apply(this,arguments)||this};
_.H(xi,_.K);xi.prototype.computeStyle=function(R){return R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xi.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.k("design:type",String)],xi.prototype,"containerStyle",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],xi);
_.B(xi,"ytd-purchase-complete-detail-renderer",function(){if(naN!==void 0)return naN;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return naN=R},{mode:1});var HK9;var cJ=function(){var R=_.K.apply(this,arguments)||this;R.scriptsAppended=!1;return R};
_.H(cJ,_.K);cJ.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"}}}};
cJ.prototype.onDataChanged=function(){var R=this.get("data.gtmId");R&&(_.wR(R,_.a1("GL","")),this.setupConversionTracking())};
cJ.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var R=document.createElement("noscript");R.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(R);this.scriptsAppended=!0}};
cJ.prototype.onDataChanged=cJ.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cJ.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],cJ.prototype,"scriptsAppended",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cJ.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],cJ);
_.B(cJ,"ytd-purchase-complete-step-renderer",function(){if(HK9!==void 0)return HK9;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return HK9=R},{mode:1});var r$i;var Oy=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(Oy,_.K);Oy.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Oy.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Oy.prototype,"darkerDarkTheme",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],Oy);
_.B(Oy,"ytd-ypc-transaction-error-message-renderer",function(){if(r$i!==void 0)return r$i;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return r$i=R},{mode:1});var Djn;var UjW;var MC=function(){var R=_.K.apply(this,arguments)||this;R.handlePhoneVerificationSuccess=function(A){if(R.isValidPhoneVerificationCompletionMessageEvent(A)){var Y;((Y=R.data)==null?0:Y.nextStepCommand)&&R.ytComponentBehavior.resolveCommand(R.data.nextStepCommand)}};
return R};
_.H(MC,_.K);MC.prototype.isValidPhoneVerificationCompletionMessageEvent=function(R){if(R.data!=="yt-phone-verification-complete")return!1;R=_.AN(R.origin);return R!==null&&R.includes("youtube.com")};
MC.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
MC.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],MC.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],MC.prototype,"data",void 0);_.C([_.CG({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],MC);
_.B(MC,"yt-feature-enablement-soft-entry-renderer",function(){if(UjW===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Djn===void 0&&(Djn=document.createElement("template"));var P=Djn;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);UjW=R}R=UjW;return R},{mode:1});var $jF;var Xji;var SaQ;var IAY;var KxG=function(){return _.K.apply(this,arguments)||this};
_.H(KxG,_.K);_.C([_.S(),_.k("design:type",Object)],KxG.prototype,"data",void 0);_.C([_.CG({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],KxG);
_.B(KxG,"yt-benefits-item-renderer",function(){if(IAY===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;SaQ===void 0&&(SaQ=document.createElement("template"));var P=SaQ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);IAY=R}R=IAY;return R},{mode:2});var WxY;var jno;var sy=function(){return _.K.apply(this,arguments)||this};
_.H(sy,_.K);sy.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
sy.prototype.computeisWithoutPadding=function(){var R;return((R=this.data)==null?void 0:R.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sy.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.k("design:type",Boolean)],sy.prototype,"isWithoutPadding",void 0);_.C([_.CG({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],sy);
_.B(sy,"yt-benefits-section-renderer",function(){if(jno===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;WxY===void 0&&(WxY=document.createElement("template"));var P=WxY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);jno=R}R=jno;return R},{mode:2});var NC=function(){return _.K.apply(this,arguments)||this};
_.H(NC,_.K);NC.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
NC.prototype.computeisUsingLargeWidth=function(){var R;return((R=this.data)==null?void 0:R.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],NC.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.k("design:type",Boolean)],NC.prototype,"isUsingLargeWidth",void 0);_.C([_.CG({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],NC);
_.B(NC,"yt-benefits-flow-step-renderer",function(){if(Xji===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;$jF===void 0&&($jF=document.createElement("template"));var P=$jF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Xji=R}R=Xji;return R},{mode:2});var bKF;var fAf;var Vm=function(){return _.K.apply(this,arguments)||this};
_.H(Vm,_.K);Vm.prototype.checkIsUsingLargeWidth=function(){var R;return((R=this.data)==null?void 0:R.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.C([_.S(),_.k("design:type",Object)],Vm.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.C([_.S({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.k("design:type",Boolean)],Vm.prototype,"isUsingLargeWidth",void 0);_.C([_.CG({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Vm);
_.B(Vm,"yt-confirmation-flow-step-renderer",function(){if(fAf===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;bKF===void 0&&(bKF=document.createElement("template"));var P=bKF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);fAf=R}R=fAf;return R},{mode:2});var pjF;var Fxj;var B5m=function(){return _.K.apply(this,arguments)||this};
_.H(B5m,_.K);_.C([_.S(),_.k("design:type",Object)],B5m.prototype,"data",void 0);_.C([_.CG({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],B5m);
_.B(B5m,"yt-info-flow-step-renderer",function(){if(Fxj===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;pjF===void 0&&(pjF=document.createElement("template"));var P=pjF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Fxj=R}R=Fxj;return R},{mode:2});var aAW;var Cjn;var hy9=function(){return _.K.apply(this,arguments)||this};
_.H(hy9,_.K);_.C([_.S(),_.k("design:type",Object)],hy9.prototype,"data",void 0);_.C([_.CG({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],hy9);
_.B(hy9,"yt-info-list-flow-step-renderer",function(){if(Cjn===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;aAW===void 0&&(aAW=document.createElement("template"));var P=aAW;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Cjn=R}R=Cjn;return R},{mode:2});var oaf=_.E5(function(R){var A=R.data;return _.V("styled-text-view-model",{class:_.To("ytStyledTextViewModelHost",function(){return eAF(A().fontAttributes)},function(){return ucH(A().color)})},_.V(_.NU,{text:function(){return A().text},
ariaLabel:function(){var Y,P,E;return(E=(Y=A().accessibility)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label)!=null?E:""}}))},"If");
oaf.idomCompat=!0;var k$0=_.E5(function(R){var A=function(){var E,z,c,M;return(M=(c=(E=R.alt)==null?void 0:E.call(R))!=null?c:(z=R.data().accessibilityData)==null?void 0:z.label)!=null?M:""},Y=function(){return R.data().imageWidth},P=function(){return R.data().imageHeight};
return _.V("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.V(_.J,{cond:function(){var E=R.data();if(E){var z,c,M;var N=((z=_.is().resolve(_.z3(_.dU)))==null?0:z())?(c=E.imageDark)!=null?c:E.imageLight:(M=E.imageLight)!=null?M:E.imageDark}else N=void 0;return N},
then:function(E){return _.V(_.P1,Object.assign({},R,{data:E,alt:A,targetWidth:Y,targetHeight:P,preserveHeight:!0,preserveWidth:!0}))}}))},"Jf");
k$0.idomCompat=!0;var JJ=_.E5(function(R){var A=R.data;R=_.Y9(function(){return A().slots},[]);
var Y=_.Y9(function(){return A().layoutProperties},{}),P=_.is().resolve(_.AM);
return _.V("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:kT0(Y,P)},_.V(_.Ue,{each:R,keyBy:"INDEX"},function(E){return _.V("div",{class:"ytContainerLayoutViewModelSlot",style:kT0(function(){return E().layoutProperties},P)},_.V(_.ni,{data:function(){return E().contents}},{containerLayoutViewModel:JJ,
badgeViewModel:_.Ho,buttonViewModel:_.Is,styledTextViewModel:oaf,contentPreviewImageViewModel:function(z){return _.V(_.rw,{data:z.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(z){return _.V(k$0,{data:z.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Kf");
JJ.idomCompat=!0;var G$N=_.E5(function(R){var A=R.data;var Y=R.stateFns;var P=function(){var y=A(),m=y.productId;return!(!y.clearGroupId&&!m)},E=function(){var y=A(),m=y.clearGroupId;
return(y=y.productId)?Y().isProductSelected(y):m?Y().getSelectedProductByGroupId(m)==null:!1},z=function(){var y=A(),m=y.clearGroupId;
if(y=y.productId)Y().onProductSelected(y);else if(m)Y().onClearGroupSelected(m)},c=function(){var y=A(),m=y.clearGroupId;
if(y=y.productId){var T;return"group:"+(((T=Y().getProductById(y))==null?void 0:T.groupId)||"")}return m?"group:"+m:""},M=_.Y9(function(){return A().header},[]),N=_.Y9(function(){return A().body},[]);
return _.V("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.V(_.J,{cond:function(){return M().length>0||P()},
then:function(){return _.V("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.V("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.V(_.ni,{data:M},{containerLayoutViewModel:function(y){return _.V("div",{class:"ytPdpCardSectionViewModelContentItem"},_.V(JJ,{data:y.data}))},
styledTextViewModel:function(y){return _.V("div",{class:"ytPdpCardSectionViewModelContentItem"},_.V(oaf,{data:y.data}))}})),_.V(_.J,{cond:P,
then:function(){return _.V("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.V(_.At,{checked:E,name:c,onChange:z}))}}))}}),_.V(_.J,{cond:function(){return N().length>0},
then:function(){return _.V("div",null,_.V(_.ni,{data:N},{containerLayoutViewModel:function(y){return _.V("div",{class:"ytPdpCardSectionViewModelContentItem"},_.V(JJ,{data:y.data}))}}))}}))},"Lf");
G$N.idomCompat=!0;var ZKF=_.E5(function(R){var A=R.data;var Y=R.stateFns;return _.V("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.V(_.J,{cond:function(){return A().banner},
then:function(P){return _.V("div",{class:"ytPdpCardViewModelBanner"},_.V(_.NU,{text:P}))}}),_.V(_.ni,{data:function(){return A().sections}},{pdpCardSectionViewModel:function(P){P=P.data;
var E={};return _.V("div",{class:_.To("ytPdpCardViewModelSectionContainer",(E.ytPdpCardViewModelShowDividers=function(){return A().showDividers},E))},_.V(G$N,{data:P,
stateFns:Y}))}}))},"Mf");
ZKF.idomCompat=!0;var t_Y=_.E5(function(R){var A=R.data;var Y=R.isOverlay;R={};return _.V("pdp-masthead-view-model",{class:_.To("ytPdpMastheadViewModelHost",(R.ytPdpMastheadViewModelIsOverlay=Y,R))},_.V(_.ni,{data:function(){return A().image}},{contentPreviewImageViewModel:_.rw,
themedImageViewModel:function(P){return _.V(k$0,{data:P.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.V(_.J,{cond:function(){return A().title},
then:function(P){return _.V("h1",{class:"ytPdpMastheadViewModelHeading"},_.V(_.NU,{text:P,isOverlay:Y}))}}),_.V(_.Ue,{each:function(){var P;
return(P=A().finePrint)!=null?P:[]}},function(P){return _.V("div",{class:"ytPdpMastheadViewModelFinePrint"},_.V(_.NU,{text:P,
isOverlay:Y}))}))},"Nf");
t_Y.idomCompat=!0;var wjQ=_.E5(function(R){var A=R.data;var Y=R.stateFns;var P=function(){return"pdp-pricing-group-selector-"+A().pricingGroupAttributeIds},E=_.Y9(function(){return A().pricingGroupSelectorSectionHeader});
return _.V("pdp-pricing-group-selector-view-model",null,_.V(_.J,{cond:function(){return!!E()},
then:function(){return _.V(_.ni,{data:E},{sectionHeaderViewModel:function(z){z=z.data;var c={};return _.V("div",{class:_.To("ytPdpPricingGroupSelectorViewModelSectionHeader",(c.ytPdpPricingGroupSelectorViewModelFullBleed=!0,c.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,c))},_.V(_.Kv,{data:z}))}})}}),_.V("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.V(_.Ue,{each:function(){var z=Y().getSelectedProductByGroupId(A().groupId);
if(!z)return _.fK(Error("Oj`"+A().groupId)),[];var c,M=(c=A().pricingGroupAttributeIds)!=null?c:[],N;if((N=z.pricingGroups)==null||!N.length||!M.length)return[];c=z.pricingGroups.filter(function(Q){return M.length?Q.pricingGroupAttributes.every(function(g){return M.includes(g)}):!1});
z=[];if(M.length>0){c=[].concat(_.py(c));N=_.x(M);for(var y=N.next(),m={};!y.done;m={targetAttrId:void 0},y=N.next())m.targetAttrId=y.value,y=c.findIndex(function(Q){return function(g){return g.pricingGroupAttributes.includes(Q.targetAttrId)}}(m)),y!==-1&&(z.push(c[y]),c.splice(y,1))}var T=Y().getSelectedPricingGroupAttributesByGroupId(A().groupId);
return z.map(function(Q){var g=!1;T&&Q.pricingGroupAttributes&&(g=b1(Q.pricingGroupAttributes,T));return{pricingGroup:Q,isSelected:g}})},
keyBy:function(z){return z.pricingGroup.pricingGroupId}},function(z){return _.V("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.V("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.V(_.ni,{data:function(){return z().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:JJ})),_.V("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.V(_.At,{checked:function(){return z().isSelected},
name:P,onClick:function(){var c=z().pricingGroup;Y().onPricingGroupSelected(c.pricingGroupId);if(c=_.h7(c.onSelectPricingGroup)){var M;(M=_.is().resolve(_.ls))==null||M.resolveCommand(c)}}})))})))},"Of");
wjQ.idomCompat=!0;var u80=_.E5(function(R){var A=R.data;var Y=R.stateFns;var P=function(){var c=Y().getSelectedPricingOptions().map(function(y){return y.pricingOptionId}),M=Y().getSelectedProductByGroupId(A().groupId);
if(!M)return _.fK(Error("Pj`"+A().groupId)),[];var N=Y().getSelectedPricingGroupAttributesByGroupId(A().groupId);return R4g(M.pricingOptions,N,c)},E=_.Y9(function(){return A().pricingOptionSelectorSectionHeader}),z=function(){return P().length>1};
return _.V("pdp-pricing-option-selector-view-model",null,_.V(_.J,{cond:function(){return!!E()&&z()},
then:function(){return _.V(_.ni,{data:E},{sectionHeaderViewModel:function(c){c=c.data;var M={};return _.V("div",{class:_.To("ytPdpPricingOptionSelectorViewModelSectionHeader",(M.ytPdpPricingOptionSelectorViewModelFullBleed=!0,M.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,M))},_.V(_.Kv,{data:c}))}})}}),_.V(_.J,{cond:z,
then:function(){return _.V("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.V(_.Ue,{each:P,keyBy:"INDEX"},function(c){return _.V("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.V("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.V(_.ni,{data:function(){return c().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:JJ})),_.V("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.V(_.At,{checked:function(){return c().isSelected},
onClick:function(){Y().onPricingOptionSelected(c().pricingOption.pricingOptionId);var M=c().pricingOption.onSelectPricingOption;if(M=_.h7(M)){var N;(N=_.is().resolve(_.ls))==null||N.resolveCommand(M)}}})))}))}}))},"Pf");
u80.idomCompat=!0;var eyN=_.E5(function(R){var A=R.data;var Y=R.stateFns;return _.V("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.V(_.ni,{data:function(){var P,E;return(E=(P=Y().getSelectedPricingOptions()[0])==null?void 0:P.primaryButton)!=null?E:A().emptyStateButton}},{buttonViewModel:_.Is}))},"Qf");
eyN.idomCompat=!0;var qaG=_.E5(function(R){var A=R.stateFns;return _.V("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.V(_.ni,{data:function(){return A().getSelectedPricingOptions().flatMap(function(Y){return Y.summaryLines}).filter(function(Y){return!!Y})}},{containerLayoutViewModel:function(Y){return _.V("div",{class:"ytPdpSummaryViewModelLineItem"},_.V(JJ,{data:Y.data}))}}))},"Rf");
qaG.idomCompat=!0;var Lxg=_.E5(function(R){function A(b){var p=c();_.A7(_.I9("pdpStateEntity",p,{key:p,selectedPricingOptions:b}))}
var Y=R.data;var P=R.internalScrolling;var E=R.stateFnsForTesting;var z=_.Y9(function(){return Y().allProducts},[]),c=_.Y9(function(){return Y().pdpStateEntityKey},""),M=_.vT(ANH,c),N=_.gE(function(){_.pX(!0);
var b;return(b=E==null?void 0:E())!=null?b:PsQ(M,z,A)},void 0,"tAB69c"),y=_.Y9(function(){return Y().body},[]),m=_.Y9(function(){return Y().columnBreakHints},[]),T=function(){return Y().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Q=function(){return T()||Y().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},g=_.gE(function(){var b=_.h4(Y().background),p;
if(b==null?0:(p=b.sources)==null?0:p.length){var h=h===void 0?!0:h;b=_.Knu(void 0,b.sources,void 0,h,h?1E3:void 0,h?void 0:1E3)}else b=null;return b},void 0,"bHjkUb");
R=_.nY({"--pdp-view-model-background":function(){return g()?"url("+g()+")":void 0}});
var r={};P=_.To("ytPdpViewModelHost",(r.ytPdpViewModelHasBackground=function(){return Q()||!!g()},r.ytPdpViewModelHasDarkBackground=Q,r.ytPdpViewModelHasScrim=T,r.ytPdpViewModelInternalScrolling=_.Y9(P,!1),r));
var I=function(b){var p={};return _.To("ytPdpViewModelItem",(p.ytPdpViewModelFullBleed=function(){return ESN(b())==="dividerViewModel"||ESN(b())==="sectionHeaderViewModel"},p.ytPdpViewModelNoVerticalPadding=function(){return ESN(b())==="sectionHeaderViewModel"},p))};
_.jO(function(){var b=Y().onStartCommand;if(b&&(b=_.h7(b))){var p;(p=_.is().resolve(_.ls))==null||p.resolveCommand(b)}});
return _.V("pdp-view-model",{class:P,style:R},_.V("div",{class:"ytPdpViewModelColumnContainer"},_.V(_.Ue,{each:function(){return z4W(y(),m())},
keyBy:"INDEX"},function(b){return _.V("div",{class:"ytPdpViewModelColumn"},_.V(_.ni,{data:b},{containerLayoutViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(JJ,{data:p}))},
dividerViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(_.zDS,{data:p}))},
pdpCardViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(ZKF,{data:p,
stateFns:N}))},
pdpMastheadViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(t_Y,{data:p,
isOverlay:Q}))},
pdpPricingGroupSelectorViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(wjQ,{data:p,
stateFns:N}))},
pdpPricingOptionSelectorViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(u80,{data:p,
stateFns:N}))},
pdpPrimaryButtonViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(eyN,{data:p,
stateFns:N}))},
pdpSummaryViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(qaG,{data:p,
stateFns:N}))},
sectionHeaderViewModel:function(p,h){p=p.data;return _.V("div",{class:I(function(){return b()[h()]})},_.V(_.Kv,{data:p}))}}))})))},"Sf");
Lxg.idomCompat=!0;_.Ow(Lxg,"pdp-view-model",{props:{data:_.VY,stateFnsForTesting:_.xL,internalScrolling:_.xL}});var djo=_.E5(function(R){var A=R.data;var Y=R.className;var P=_.vT(_.wc,function(){return A().flowStateEntityKey});
return _.V("ytm-premium-purchase-button-renderer",{class:_.To("ytPremiumPurchaseButtonRendererHost",Y)},_.V(_.ni,{data:function(){var E;return(E=_.n(P(),lOQ))==null?void 0:E.primaryButtonOverride}},{buttonRenderer:function(E){return _.V(_.VO,{data:E.data,
className:Y})},
buttonViewModel:function(E){return _.V(_.Is,{data:E.data,className:Y})}}))},"Tf");
djo.idomCompat=!0;var ROj=_.E5(function(R){var A=R.data;R=R.className;var Y=function(){return iwm(A().style)},P=_.To("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",Y),E=_.To("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",Y);
return _.V("yt-flow-bottom-bar-renderer",{class:_.To("yt-flow-bottom-bar-renderer",R,Y)},_.V(_.ni,{data:function(){return A().secondaryButton}},{buttonRenderer:function(z){return _.V(_.VO,{data:z.data,
className:E})},
buttonViewModel:function(z){return _.V(_.Is,{data:z.data,className:E})},
premiumPurchaseButtonRenderer:function(z){return _.V(djo,{data:z.data,className:E})}}),_.V(_.ni,{data:function(){return A().primaryButton}},{buttonRenderer:function(z){return _.V(_.VO,{data:z.data,
className:P})},
buttonViewModel:function(z){return _.V(_.Is,{data:z.data,className:P})},
premiumPurchaseButtonRenderer:function(z){return _.V(djo,{data:z.data,className:P})}}))},"Uf");
ROj.idomCompat=!0;_.Ow(ROj,"yt-flow-bottom-bar-renderer",{props:{data:_.VY,className:_.VY}});var AwG=_.E5(function(R){var A=_.To(R.className,"ytOfferSummaryRendererHost");return _.V("yt-offer-summary-renderer",{class:A},_.V("div",{class:"ytOfferSummaryRendererTextContainer"},_.V("div",{class:"ytOfferSummaryRendererEyebrowText"},_.V(_.NU,{text:function(){return R.data().eyebrowText}})),_.V("div",{class:"ytOfferSummaryRendererTitle"},_.V(_.NU,{text:function(){return R.data().title}})),_.V("div",{class:"ytOfferSummaryRendererSubtitle"},_.V(_.NU,{text:function(){return R.data().subtitle}})),
_.V("div",{class:"ytOfferSummaryRendererFeatureListData"},_.V(_.Ue,{each:function(){var Y;
return(Y=R.data().featureListData)!=null?Y:[]}},function(Y){var P;
return _.V("div",{class:"ytOfferSummaryRendererFeatureList"},_.V(_.H1,{icon:(P=Y.icon)==null?void 0:P.iconType,active:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(Y.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.V("div",{class:"ytOfferSummaryRendererFeatureListText"},_.V(_.NU,{text:Y.text,
className:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.V("div",{class:"ytOfferSummaryRendererDescription"},_.V(_.NU,{text:function(){return R.data().description}}))))},"Vf");_.Ow(_.E5(function(R){var A={};A=_.To("ytOfferSummaryFlowStepRendererHost",(A.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=R.shouldDisableHeaderTopMargin,A));return _.V("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:A},_.V("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.V("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.V(_.NU,{text:function(){return R.data().header}})),_.V("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.V(_.NU,{text:function(){return R.data().subtitle}}))),_.V("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.V(_.ni,{data:function(){return R.data().offerSummary}},{offerSummaryRenderer:function(Y){return _.V(AwG,{data:Y.data,
className:R.flowClassName})}})))},"Wf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.xL,
flowClassName:_.xL,flowStateEntityKey:_.xL,shouldDisableHeaderTopMargin:_.xL}});var Y_o=_.E5(function(R){var A=R.data;var Y=R.className;var P=R.flowStateEntityKey;var E=R.selectionStepStyle;R=_.Qi(function(N){var y=A(),m=P==null?void 0:P();N.target&&(N.stopPropagation(),N=m||"",m=_.wc(_.RZ().getState(),N),y=Object.assign({},m,{premiumPurchaseFlowState:{selectedOptionId:y.optionId,primaryButtonOverride:y.primaryButtonOverride}}),_.RZ().dispatch(_.HT("flowStateEntity",N,y)));return!1});
var z=function(){return(P==null?void 0:P())||""},c=_.vT(_.wc,z);
_.jO(function(){var N=A(),y=z(),m=c();N.defaultSelected&&y!==""&&N.primaryButtonOverride&&x1G(N.optionId||"",y,N.primaryButtonOverride,m)});
var M={};return _.V("ytm-option-item-renderer",{"on:click":R,class:_.To(Y,"ytm-option-item-renderer",(M["ytm-option-item-renderer--lp2-style"]=function(){return(E==null?void 0:E())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},M))},_.V("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.V("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var N=A(),y=z(),m=c();m=_.n(m,lOQ);return(m?(m==null?void 0:m.selectedOptionId)||"":N.defaultSelected&&y!==""?(N==null?void 0:N.optionId)||"":"")===A().optionId},
name:("input"+_.hn(_.qe)).toString()})),_.V("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.V(_.ni,{data:function(){return A().titleBadge}},{badgeViewModel:function(N){return _.V(_.Ho,{data:N.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.V(_.J,{cond:function(){return A().eyebrowText},
then:function(){return _.V("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.V(_.NU,{text:function(){return A().eyebrowText}}))}}),_.V("div",{class:"ytm-option-item-renderer__option-item-title"},_.V(_.NU,{text:function(){return A().title}})),_.V("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.V(_.NU,{text:function(){return A().subtitle}})),_.V(_.J,{cond:function(){return A().featureListData},
then:function(){return _.V("div",{class:"ytm-option-item-renderer__feature-list-data"},_.V(_.Ue,{each:function(){return A().featureListData||[]}},function(N){var y,m=(y=N.icon)==null?void 0:y.iconType;
a:switch(N.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":y="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":y="ytm-option-item-renderer__feature-list-icon-small";break a;default:y="ytm-option-item-renderer__feature-list-icon-default"}return _.V("div",{class:"ytm-option-item-renderer__feature-list"},_.V(_.H1,{icon:m,className:y,active:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.V("div",{class:"ytm-option-item-renderer__feature-list-text"},_.V(_.NU,{text:N.text,
className:function(){return N.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.V("div",{class:"ytm-option-item-renderer__option-item-description"},_.V(_.NU,{text:function(){return A().description}}))))},"Xf");var PyH=_.E5(function(R){var A=R.data;var Y=R.flowClassName;var P=R.flowStateEntityKey;var E=R.selectionStepStyle;return _.V("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.V("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.V("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.V(_.NU,{text:function(){return A().title}}),_.V(_.ni,{data:function(){return A().titleBadge}},{badgeViewModel:function(z){return _.V(_.Ho,{data:z.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.V(_.J,{cond:function(){return A().subtitle},
then:function(){return _.V("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.V(_.NU,{text:function(){return A().subtitle}}))}}),_.V(_.J,{cond:function(){return A().featureListData},
then:function(z){return _.V("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.V(_.Ue,{each:z},function(c){var M;return _.V("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.V(_.H1,{icon:(M=c.icon)==null?void 0:M.iconType,active:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(c.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOptionSectionRendererOptionSectionFeatureItemIconSmall";default:return"ytOptionSectionRendererOptionSectionFeatureItemIconDefault"}}}),_.V("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.V(_.NU,{text:c.text,
className:function(){return c.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.V(_.J,{cond:function(){return A().secondaryTitle},
then:function(){return _.V("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.V(_.NU,{text:function(){return A().secondaryTitle}}))}}),_.V(_.Ue,{each:function(){return A().sectionDisclaimers||[]}},function(z){return _.V("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.V(_.NU,{text:z}))})),_.V(_.ni,{data:function(){return A().optionItems}},{optionItemRenderer:function(z){return _.V("div",{class:"ytOptionSectionRendererOptionItem"},_.V(Y_o,{data:z.data,
className:Y,flowStateEntityKey:P,selectionStepStyle:E}))}}),_.V(_.J,{cond:function(){return A().offerText},
then:function(){return _.V("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.V(_.NU,{text:function(){return A().offerText}}))}}))},"Yf");
PyH.idomCompat=!0;var EcQ=_.E5(function(R){var A=R.data;var Y=R.flowClassName;var P=R.flowStateEntityKey;R=R.isDesktop;var E=function(){var y;return(y=A().flowStateEntityKey)!=null?y:P==null?void 0:P()},z=function(){return(E==null?void 0:E())||""},c=function(){return A().style},M=_.vT(_.wc,z);
_.jO(function(){var y=A(),m=z(),T=M();!_.n(T,lOQ)&&y.noPreselect&&m!==""&&y.defaultButtonOverride&&x1G("default",m,y.defaultButtonOverride,T)});
var N={};return _.V("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.To("ytm-option-selection-flow-step-renderer",(N["ytm-option-selection-flow-step-renderer--desktop"]=R,N["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return A().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},N))},_.V("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"},
_.V("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.V(_.NU,{text:function(){return A().header}})),_.V("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.V(_.NU,{text:function(){return A().subtitle}}))),_.V(_.ni,{data:function(){return A().optionItems||[]}},{optionItemRenderer:function(y){return _.V("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.V(Y_o,{data:y.data,
className:Y,flowStateEntityKey:E,selectionStepStyle:c}))},
optionSectionRenderer:function(y){return _.V("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.V(PyH,{data:y.data,flowClassName:Y,flowStateEntityKey:E,selectionStepStyle:c}))}}))},"Zf");
EcQ.idomCompat=!0;_.Ow(EcQ,"yt-option-selection-flow-step-renderer",{props:{data:_.VY,flowClassName:_.VY,flowStateEntityKey:_.VY,isDesktop:_.VY}});_.ym=_.E5(function(R){var A=_.Pc(R,{type:1,disablePadding:!1,disablePrimaryButton:!1}),Y=A.data,P=A.type;R=A.disablePadding;var E=A.disablePrimaryButton,z=A.onClickPrimaryButton,c=function(){return Y().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},M=function(){return{disabled:E(),
state:E()?"disabled":"active"}},N=function(){return Y().leadingLabel||Y().trailingLabel};
A={};return _.V("yt-panel-footer-view-model",{class:_.To("yt-panel-footer-view-model-wiz",(A["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return Y().shouldHideDivider},A["yt-panel-footer-view-model-wiz--disable-padding"]=R,A))},_.V(_.J,{cond:N,
then:function(){var y={},m={};return _.V("div",{class:_.To("yt-panel-footer-view-model-wiz__text-row",(y["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var T=Y();return!(!T.leadingLabel&&!T.trailingLabel||!T.primaryButton&&!T.secondaryButton)},y))},_.V(_.NU,{text:function(){return Y().leadingLabel},
className:_.To((m["yt-panel-footer-view-model-wiz--text-padding"]=N,m))}),_.V(_.NU,{text:function(){return Y().trailingLabel}}))}}),_.V(_.J,{cond:c,
then:function(){var y={};return _.V("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.V("div",{class:_.To("yt-panel-footer-view-model-wiz__primary-button",(y["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return Y().secondaryButton},y))},_.V(_.ni,{data:function(){return Y().primaryButton}},{buttonViewModel:function(m){return _.V(_.Is,{data:m.data,
buttonOverrides:M,onClick:z})}})),_.V(_.ni,{data:function(){return Y().secondaryButton}},{buttonViewModel:_.Is}))}}),_.V(_.J,{cond:function(){return!c()},
then:function(){var y={},m={},T={};return _.V("div",{class:_.To("yt-panel-footer-view-model-wiz__button-row",(y["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===P()},y))},_.V("div",{class:_.To("yt-panel-footer-view-model-wiz__button-row--left-button",(m["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===P()},m["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!Y().secondaryButton||0===P()},m["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===P()},m))},_.V(_.ni,{data:function(){return Y().secondaryButton}},{buttonViewModel:_.Is})),_.V("div",{class:_.To("yt-panel-footer-view-model-wiz__primary-button",(T["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===P()||1===P()},T["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===P()},T))},_.V(_.ni,{data:function(){return Y().primaryButton}},{buttonViewModel:function(Q){return _.V(_.Is,{data:Q.data,
buttonOverrides:M,onClick:z})}})))}}))},"$f");
_.ym.idomCompat=!0;_.zOW=_.E5(function(R){R=_.Pc(R,{disablePadding:!1});var A=R.data,Y=R.disablePadding;R=_.WYV(function(){return A().formId});
var P=R.submitForm,E=R.isValid,z=R.isSubmitting;return _.V("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.V(_.ni,{data:function(){return A().panelFooter}},{panelFooterViewModel:function(c){return _.V(_.ym,{data:c.data,
onClickPrimaryButton:function(){P()},
disablePrimaryButton:function(){return!E()||z()},
disablePadding:Y})}}))},"ag");_.Ow(_.zOW,"yt-form-footer-view-model",{props:{data:_.VY,disablePadding:_.VY}});var igf=_.E5(function(R){var A=_.v("enable_user_rating_web");return _.V("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.V("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.V(_.J,{cond:function(){var Y;return(Y=R.data())==null?void 0:Y.image},
then:function(Y){return _.V(_.P1,{data:Y,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.V("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.V(_.NU,{text:function(){var Y;
return(Y=R.data())==null?void 0:Y.title}})),_.V("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.V(_.NU,{text:function(){var Y;
return(Y=R.data())==null?void 0:Y.subtitle}})),_.V(_.J,{cond:function(){return!A},
then:function(){return _.V(_.ni,{data:function(){var Y;return(Y=R.data())==null?void 0:Y.viewTipsButton}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"bg");_.Ow(igf,"yt-contributor-zero-state-view-model",{props:{data:_.VY}});var lNi=_.E5(function(R){var A=function(){var Y;return(Y=R.data())==null?void 0:Y.image};
return _.V("yt-featured-content-item-view-model",{class:_.To("ytFeaturedContentItemViewModelHost")},_.V("div",{class:_.To(function(){return A()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.V("div",{class:function(){return A()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.V(_.J,{cond:A,
then:function(){return _.V("div",{class:"ytFeaturedContentItemViewModelImage"},_.V(_.ni,{data:function(){return R.data().image}},{themedImageViewModel:function(Y){return _.V(k$0,{data:Y.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.V(_.J,{cond:function(){var Y;
return!A()&&((Y=R.data())==null?void 0:Y.iconName)},
then:function(){return _.V("div",{class:"ytFeaturedContentItemViewModelIcon"},_.V(_.H1,{icon:function(){return R.data().iconName}}))}}),_.V("div",{class:"ytFeaturedContentItemViewModelContent"},_.V(_.J,{cond:function(){var Y;
return(Y=R.data())==null?void 0:Y.title},
then:function(){return _.V("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.V(_.NU,{text:function(){return R.data().title}}))}}),_.V(_.J,{cond:function(){var Y;
return(Y=R.data())==null?void 0:Y.body},
then:function(){return _.V("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.V(_.NU,{text:function(){return R.data().body}}))}})))))},"cg");var xKj=_.E5(function(R){var A=function(){var E;return cN0((E=R.data())==null?void 0:E.titleFontSize)},Y=function(){var E;
return Owo((E=R.data())==null?void 0:E.descriptionFontSize)},P=function(){var E;
return((E=R.data())==null?void 0:E.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.V("yt-landing-page-view-model",{class:_.To("ytLandingPageViewModelHost",R.className)},_.V("div",{class:"ytLandingPageViewModelHeader"},_.V(_.J,{cond:function(){var E;return(E=R.data())==null?void 0:E.bannerImage},
then:function(E){return _.V("div",{class:"ytLandingPageViewModelHeaderImage"},_.V(_.ni,{data:function(){return E()}},{imageBannerViewModel:function(z){return _.V(_.iN,{data:z.data,
isPositionRelative:!0})}}))}}),_.V(_.J,{cond:function(){var E;
return(E=R.data())==null?void 0:E.bannerAnimation},
then:function(E){return _.V(_.pH,{data:function(){var z=E();if(z==null?0:z.url){var c;z={path:(c=z==null?void 0:z.url)!=null?c:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(z==null?0:z.payload){var M;z={animationData:JSON.parse((M=z==null?void 0:z.payload)!=null?M:""),autoplay:!0,loop:!0,renderer:"svg"}}else z=void 0;return{animationConfig:z}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.V("div",{class:"ytLandingPageViewModelHeaderTitle"},_.V(_.J,{cond:function(){var E;
return(E=R.data())==null?void 0:E.title},
then:function(E){return _.V("div",{class:_.To("ytLandingPageViewModelHeaderTitleContent",A)},_.V(_.NU,{text:function(){return E()}}))}}),_.V(_.J,{cond:function(){var E;
return(E=R.data())==null?void 0:E.description},
then:function(E){var z={};return _.V(_.NU,{className:_.To("ytLandingPageViewModelHeaderTitleDescription",Y,(z.ytLandingPageViewModelHeaderTitleDescriptionMargin=P,z)),text:function(){return E()}})}}))),_.V(_.J,{cond:function(){var E,z;
return(E=R.data())==null?void 0:(z=E.featuredContentList)==null?void 0:z.length},
then:function(){return _.V("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.V(_.ni,{data:function(){return R.data().featuredContentList}},{featuredContentItemViewModel:function(E){return _.V(lNi,{data:E.data})}}))}}),_.V(_.J,{cond:function(){var E,z;
return(E=R.data())==null?void 0:(z=E.expandableContentList)==null?void 0:z.length},
then:function(){return _.V("div",{class:"ytLandingPageViewModelFaqSection"},_.V(_.ni,{data:function(){return R.data().expandableContentList}},{faqEntryViewModel:function(E){return _.V("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.V(_.hif,{data:E.data}))}}))}}),_.V("div",{class:"ytLandingPageViewModelFooter"},_.V(_.J,{cond:function(){var E;
return(E=R.data())==null?void 0:E.legalCopy},
then:function(E){return _.V("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.V(_.NU,{text:function(){return E()}}))}}),_.V(_.J,{cond:function(){var E;
return(E=R.data())==null?void 0:E.actions},
then:function(E){return _.V("div",null,_.V(_.ni,{data:function(){return E()}},{flexibleActionsViewModel:function(z){return _.V(_.dy,{data:z.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"dg");_.Ow(_.E5(function(R){return _.V("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.V("div",{class:"ytLpSectionGroupViewModelContainer"},_.V(_.ni,{data:function(){return R.data().sections}},{landingPageViewModel:function(A){return _.V(xKj,{data:A.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"eg"),"yt-lp-section-group-view-model",{props:{data:_.VY}});var cwF=_.E5(function(R){var A=R.data;var Y=R.selectedKey;var P=R.onSelected;var E=R.groupName;var z=function(){return A().text},c=function(){return A().attributedText},M=function(){return A().subtext},N=function(){return A().attributedSubtext},y=_.V("div",{class:"ytRadioButtonItemViewModelLabel"},_.V(_.J,{cond:z,
then:function(){return _.V("div",null,z)}}),_.V(_.J,{cond:c,
then:function(){return _.V(_.NU,{text:c})}}),_.V(_.J,{cond:M,
then:function(){return _.V("div",{class:"ytRadioButtonItemViewModelSubText"},M)}}),_.V(_.J,{cond:N,
then:function(){return _.V("div",{class:"ytRadioButtonItemViewModelSubText"},_.V(_.NU,{text:N}))}})),m=function(){if(c()){var Q;
return(Q=c())==null?void 0:Q.content}return z()},T=function(){if(N()){var Q;
return(Q=N())==null?void 0:Q.content}return M()};
R={};return _.V("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.V(_.At,{name:E,checked:function(){return!(Y==null||!Y()||A().key!==(Y==null?void 0:Y()))},
onChange:function(Q){P==null||P(Q.target,A(),E==null?void 0:E())},
labelRenderable:function(){return y},
ariaLabel:function(){return T()?m()+", "+T():m()},
className:_.To((R.ytRadioButtonItemViewModelSubTitle=function(){return!!A().subtext},R))}))},"fg");_.Ogn=_.E5(function(R){var A=R.data;var Y=R.onSelected;var P=R.selectedKey;var E=R.groupName;var z=function(){return(E==null?void 0:E())||A().key};
return _.V("yt-radio-button-group-view-model",{class:"ytRadioButtonGroupViewModelHost"},_.V("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.V(_.ni,{data:function(){return A().radioButtons}},{radioButtonItemViewModel:function(c){return _.V(cwF,{data:c.data,
onSelected:Y,selectedKey:P,groupName:z})}})))},"gg");var Myi=_.E5(function(R){_.jO(function(){if(R.controlledMode()&&R.data().defaultSelected)_.bj(Error("Qj"));else{var z;!R.controlledMode()&&((z=R.selected)==null?0:z.call(R))&&_.bj(Error("Rj"))}});
var A=_.x(_.gl(function(){if(!R.controlledMode())return R.data().defaultSelected})),Y=A.next().value,P=A.next().value,E=function(){if(!R.controlledMode())return Y();
var z;return(z=R.selected)==null?void 0:z.call(R)};
return _.V("yt-checkbox-item-view-model",{class:_.To("ytCheckboxItemViewModelHost")},_.V(_.Yr,{data:function(){var z=R.data(),c=E();return{title:z.text,subtitle:z.subtext,superlabel:z.superlabel,isSelected:!!c,isDisabled:z.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!R.controlledMode()&&P(!Y());var z,c;(c=R.onTap)==null||c.call(R,!!E(),R.data(),(z=R.groupName)==null?void 0:z.call(R))}}))},"hg");var s$n=_.E5(function(R){var A=R.data;var Y=R.controlledMode;var P=R.selectedKeys;var E=R.onItemTap;var z=R.groupName;var c=function(){return(z==null?void 0:z())||A().key};
_.jO(function(){Y()&&A().defaultSelectedKeys?_.bj(Error("Sj")):!Y()&&(P==null?0:P())&&_.bj(Error("Tj"))});
R=_.x(_.gl(function(){if(!Y())return A().defaultSelectedKeys}));
var M=R.next().value,N=R.next().value,y=function(m,T,Q){m=[];!Y()&&T.key&&(m=Mxm(T.key,M()||[]),N(m));E==null||E(T,m,Q)};
return _.V("yt-checkbox-group-view-model",{class:_.To("ytCheckboxGroupViewModelHost")},_.V("fieldset",{class:_.To("ytCheckboxGroupViewModelFieldset")},_.V(_.ni,{data:function(){return A().checkboxes}},{checkboxItemViewModel:function(m){var T=m.data;
return _.V(Myi,{data:T,controlledMode:!0,selected:function(){var Q=Y()?(P==null?void 0:P())||[]:M()||[],g=T().key;return g?Q.includes(g):!1},
onTap:y,groupName:c})}})))},"ig");var mH=_.E5(function(R){var A=_.vT(sW0,_.Y9(function(){var M;return(M=R.data())==null?void 0:M.noteFeedEntityKey},"")),Y=_.vT(Sej,_.Y9(function(){var M;
return(M=R.data())==null?void 0:M.userRatingEntityKey},"")),P=_.v("enable_user_rating_web"),E=function(){var M,N,y;
return((M=A())==null?0:M.contributorNote)?(N=A())==null?void 0:N.contributorNote:(y=R.data())==null?void 0:y.existingNote},z=function(){var M,N;
return!!Y()&&!!NrY((M=Y())==null?void 0:M.helpfulnessValue,(N=R.data())==null?void 0:N.noteData)};
if(P){var c={};return _.V("yt-note-view-model",{class:_.To("ytNoteViewModelHostUserRating",(c.ytNoteViewModelHostUserRatingPublishedNote=function(){var M,N,y,m;return((M=R.data())==null?void 0:(N=M.noteData)==null?void 0:N.isPublished)&&!((y=R.data())==null?0:(m=y.noteData)==null?0:m.isUserRatingForm)},c))},_.V("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.V("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.V(_.J,{cond:function(){var M,N;
return(M=R.data())==null?void 0:(N=M.noteData)==null?void 0:N.isPinned},
then:function(){return _.V(_.H1,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.V(_.J,{cond:function(){var M,N;return(M=R.data())==null?void 0:(N=M.noteData)==null?void 0:N.isPublished},
then:function(){return _.V(_.H1,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.V(_.ni,{data:function(){var M;
return(M=R.data())==null?void 0:M.metadata}},{contentMetadataViewModel:_.Dq}),_.V("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var M,N;
return(N=_.n((M=R.data())==null?void 0:M.metadata,_.JQz))==null?void 0:N.delimiter}),_.V(_.NU,{text:function(){var M;
return(M=E())==null?void 0:M.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.V(_.J,{cond:function(){var M,N;return!((M=R.data())==null?0:(N=M.noteData)==null?0:N.isUserRatingForm)},
then:function(){return _.V(_.ni,{data:function(){var M,N,y,m,T,Q,g,r=!!((M=R.data())==null?0:(N=M.noteData)==null?0:N.isPinned);M=z();N=(y=R.data())==null?void 0:y.noteData;y=(m=A())==null?void 0:(T=m.contributorNote)==null?void 0:T.deleteAction;m=(Q=R.data())==null?void 0:Q.overflowButtonNoteWithRatingOnTapOverride;Q=(g=R.data())==null?void 0:g.overflowButton;return r?Vx0(N,y):M?{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",
buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",onTap:m}}:Q}},{buttonViewModel:function(M){return _.V(_.Is,{data:M.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.V("div",{class:"ytNoteViewModelNoteContent"},_.V(_.NU,{text:function(){var M;
return(M=E())==null?void 0:M.text}})),_.V(_.J,{cond:function(){var M,N,y,m;
return!((M=R.data())==null?0:(N=M.noteData)==null?0:N.isPinned)&&!((y=R.data())==null?0:(m=y.noteData)==null?0:m.isUserRatingForm)},
then:function(){return _.V(_.J,{cond:z,then:function(){return _.V("div",{class:"ytNoteViewModelUserRatingContainer"},_.V(_.NU,{text:function(){var M,N;return NrY((M=Y())==null?void 0:M.helpfulnessValue,(N=R.data())==null?void 0:N.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.V(_.ni,{data:function(){var M;return(M=R.data())==null?void 0:M.userRatingButton}},{buttonViewModel:function(M){return _.V(_.Is,{data:M.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.V(_.J,{cond:function(){var M,N,y,m;
return!((M=R.data())==null?0:(N=M.noteData)==null?0:N.ignoreDivider)&&!((y=R.data())==null?0:(m=y.noteData)==null?0:m.isUserRatingForm)},
then:function(){return _.V("div",{class:"ytNoteViewModelDivider"},_.V(_.ni,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(M){return _.V(_.zDS,{data:M.data})}}))}}))}return _.V("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.V("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.V("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.V(_.J,{cond:function(){var M,N;return(M=R.data())==null?void 0:(N=M.noteData)==null?void 0:N.isPinned},
then:function(){return _.V(_.H1,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.V(_.J,{cond:function(){var M,N;return(M=R.data())==null?void 0:(N=M.noteData)==null?void 0:N.isPublished},
then:function(){return _.V(_.H1,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.V(_.J,{cond:function(){return P},
then:function(){return _.V(_.ni,{data:function(){var M;return(M=R.data())==null?void 0:M.metadata}},{contentMetadataViewModel:function(M){return _.V(_.Dq,{data:M.data})}})}}),_.V(_.NU,{text:function(){var M,N;
return(M=R.data())==null?void 0:(N=M.noteData)==null?void 0:N.headerText}}),_.V("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.V(_.NU,{text:function(){var M,N;
return(M=R.data())==null?void 0:(N=M.noteData)==null?void 0:N.delimiter}})),_.V(_.NU,{text:function(){var M,N;
return(M=A())==null?void 0:(N=M.contributorNote)==null?void 0:N.publishedTimeText}})),_.V(_.ni,{data:function(){var M,N,y;
return Vx0((M=R.data())==null?void 0:M.noteData,(N=A())==null?void 0:(y=N.contributorNote)==null?void 0:y.deleteAction)}},{buttonViewModel:function(M){return _.V(_.Is,{data:M.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.V("div",{class:"ytNoteViewModelNoteContent"},_.V(_.NU,{text:function(){var M,N;
return(M=A())==null?void 0:(N=M.contributorNote)==null?void 0:N.text}})))},"jg");
mH.idomCompat=!0;_.Ow(_.E5(function(R){var A=_.vT(_.wc,_.Y9(function(){var b;return(b=R.data())==null?void 0:b.flowStateEntityKey},"")),Y=_.x(_.gl(function(){var b;
return(b=_.n(R.data().helpfulnessValue,_.Cb))==null?void 0:b.defaultSelectedKey})),P=Y.next().value,E=Y.next().value;
Y=_.x(_.gl(function(){var b,p,h;return(h=_.n((b=_.n(R.data().helpfulnessValue,_.Cb))==null?void 0:(p=b.radioButtons)==null?void 0:p.find(function(L){var Z;return((Z=_.n(L,K3G))==null?void 0:Z.key)===P()}),K3G))==null?void 0:h.value}));
var z=Y.next().value,c=Y.next().value,M=function(b,p){E(p.key);c(p.value)},N=function(){var b,p;
return((b=z())==null?void 0:b.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((p=z())==null?void 0:p.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},y=function(){var b,p;
return((b=z())==null?void 0:b.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((p=z())==null?void 0:p.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"};
Y=_.x(_.gl(function(){var b;return(b=_.n(R.data().helpfulReasons,IFW))==null?void 0:b.defaultSelectedKeys}));
var m=Y.next().value,T=Y.next().value,Q=function(b){JNi(b.key,m,T)};
Y=_.x(_.gl(function(){var b;return(b=_.n(R.data().notHelpfulReasons,IFW))==null?void 0:b.defaultSelectedKeys}));
var g=Y.next().value,r=Y.next().value,I=function(b){JNi(b.key,g,r)};
return _.V("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.V(_.ni,{data:function(){var b=_.n(A(),QBo);if(b){var p;var h={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:b==null?void 0:(p=b.note)==null?void 0:p.headerText}]}],delimiter:"\u2022"}},existingNote:b.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else h=void 0;return h}},{noteViewModel:function(b){return _.V("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.V(mH,{data:b.data}))}}),_.V(_.ni,{data:function(){var b;
return(b=R.data())==null?void 0:b.helpfulnessValue}},{radioButtonGroupViewModel:function(b){return _.V("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.V(_.Ogn,{data:b.data,
onSelected:M,selectedKey:P}))}}),_.V(_.J,{cond:N,
then:function(){return _.V("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.V("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.V(_.NU,{text:function(){var b;return(b=R.data())==null?void 0:b.helpfulReasonQuestion}})),_.V(_.ni,{data:function(){var b;
return(b=R.data())==null?void 0:b.helpfulReasons}},{checkboxGroupViewModel:function(b){return _.V(s$n,{data:b.data,
onItemTap:Q,selectedKeys:m,controlledMode:!0})}}))}}),_.V(_.J,{cond:y,
then:function(){return _.V("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.V("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.V(_.NU,{text:function(){var b;return(b=R.data())==null?void 0:b.notHelpfulReasonQuestion}})),_.V(_.ni,{data:function(){var b;
return(b=R.data())==null?void 0:b.notHelpfulReasons}},{checkboxGroupViewModel:function(b){return _.V(s$n,{data:b.data,
onItemTap:I,selectedKeys:g,controlledMode:!0})}}))}}),_.V(_.J,{cond:function(){return!N()&&!y()},
then:function(){return _.V(_.ni,{data:function(){var b;return(b=R.data())==null?void 0:b.helpfulNoteFeatures}},{alertBannerViewModel:function(b){return _.V("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.V(_.svZ,{data:b.data}))}})}}))},"kg"),"yt-note-user-rating-view-model",{props:{data:_.VY}});_.Ow(mH,"yt-note-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=_.vT(sW0,_.Y9(function(){var Y;return(Y=R.data())==null?void 0:Y.noteFeedEntityKey},""));
return _.V("yt-notes-wrapper-view-model",{class:_.To("ytNotesWrapperViewModelHost")},_.V(_.J,{cond:function(){var Y,P,E;return!((Y=R.data())==null||!Y.existingNotes)||!((P=R.data())==null||!P.currentNote)&&!((E=A())==null||!E.contributorNote)},
then:function(){return _.V(_.lI,null,_.V(_.ni,{data:function(){var Y,P,E,z;return((P=_.n((Y=R.data())==null?void 0:Y.currentNote,v_j))==null?0:(E=P.noteData)==null?0:E.isPublished)?(z=R.data())==null?void 0:z.currentNote:void 0}},{noteViewModel:function(Y){return _.V(mH,{data:Y.data})}}),_.V(_.ni,{data:function(){var Y;
return(Y=R.data())==null?void 0:Y.existingNotes}},{noteViewModel:function(Y){var P=Y.data;
return _.V(_.J,{cond:function(){var E,z;return(E=P())==null?void 0:(z=E.noteData)==null?void 0:z.isPublished},
then:function(){return _.V(mH,{data:P})}})}}),_.V(_.ni,{data:function(){var Y,P,E,z;
return((P=_.n((Y=R.data())==null?void 0:Y.currentNote,v_j))==null?0:(E=P.noteData)==null?0:E.isPublished)?void 0:(z=R.data())==null?void 0:z.currentNote}},{noteViewModel:function(Y){return _.V(mH,{data:Y.data})}}),_.V(_.ni,{data:function(){var Y;
return(Y=R.data())==null?void 0:Y.existingNotes}},{noteViewModel:function(Y){var P=Y.data;
return _.V(_.J,{cond:function(){var E,z;return!((E=P())==null?0:(z=E.noteData)==null?0:z.isPublished)},
then:function(){return _.V(mH,{data:P})}})}}))},
else:function(){return _.V(_.ni,{data:function(){var Y;return(Y=R.data())==null?void 0:Y.zeroStateData}},{contributorZeroStateViewModel:igf})}}))},"lg"),"yt-notes-wrapper-view-model",{props:{data:_.VY}});var TY=_.E5(function(R){var A=_.Pc(R,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),Y=A.label,P=A.text,E=A.placeholder,z=A.hint;R=A.rows;var c=A.overflowStyle,M=A.outline,N=A.disabled,y=A.disableNewLines,m=A.characterLimit,T=A.validation,Q=A.onInput,g=_.LK("textarea");A=_.x(_.gl(function(){return P()}));
var r=A.next().value,I=A.next().value;A=_.x(_.yy(!1,void 0,"u9PDq"));var b=A.next().value,p=A.next().value,h=function(){p(!0)},L=function(){p(!1)};
_.jO(function(){var hk=g.value,FV=c(),i8=r();FV==="expand-vertically"&&i8&&yNG(hk);g.value.addEventListener("focusin",h);g.value.addEventListener("focusout",L)});
_.bm(function(){g.value.removeEventListener("focusin",h);g.value.removeEventListener("focusout",L)});
var Z=function(){var hk;return(hk=T())==null?void 0:hk.validate(r())},w=function(){return m()&&!Z()&&r().length>m().maxChars},t=function(){return!!Z()||w()};
A=_.Qi(function(hk){if(!hk.currentTarget)return!1;hk=hk.currentTarget;I(hk.value);c()==="expand-vertically"&&yNG(hk);Q==null||Q(hk.value);return!0});
var d=_.Qi(function(hk){y()&&hk.key==="Enter"&&hk.preventDefault();return!1}),Jk=_.Qi(function(){g.value.focus()}),Nb=function(){return E()||Y()},Qk={},H3={},nu={};
return _.V("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.V("div",{class:_.To("ytStandardsTextareaShapeTextareaContainer",(Qk.ytStandardsTextareaShapeTextareaContainerOutline=M,Qk.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=N,Qk.ytStandardsTextareaShapeTextareaContainerOutlineError=t,Qk)),"on:click":Jk},_.V("label",{class:_.To("ytStandardsTextareaShapeLabel",(H3.ytStandardsTextareaShapeLabelFocused=b,H3.ytStandardsTextareaShapeLabelDisabled=N,H3.ytStandardsTextareaShapeLabelError=
function(){return t()&&!N()},H3.ytStandardsTextareaShapeLabelHidden=function(){return!b()&&!r()&&!!Nb()},H3))},Y),_.V("div",{class:_.To("ytStandardsTextareaShapePlaceholder",(nu.ytStandardsTextareaShapePlaceholderVisible=function(){return!b()&&!r()},nu)),
"aria-hidden":"true"},Nb),_.V("textarea",{el:g,class:"ytStandardsTextareaShapeTextarea",rows:R,disabled:N,placeholder:Nb,"on:input":A,"on:keydown":d},r)),_.V(_.J,{cond:function(){return z()&&!t()},
then:function(){var hk={};return _.V("div",{class:_.To("ytStandardsTextareaShapeHint",(hk.ytStandardsTextareaShapeHintDisabled=N,hk))},_.V("div",{class:"ytStandardsTextareaShapeHintHintMessage"},z))}}),_.V(_.J,{cond:Z,
then:function(){return _.V(Nvj,{disabled:N},_.V("div",{class:"ytStandardsTextareaShapeErrorMessage"},Z))}}),_.V(_.J,{cond:m,
then:function(hk){return _.V(_.J,{cond:w,then:function(){return _.V(Nvj,{disabled:N},_.V("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return hk().errorMessage}),_.V("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return r().length+"/"+hk().maxChars}))}})}}))},"mg");
TY.idomCompat={callbacks:{onInput:!0}};var Nvj=_.E5(function(R){var A={};return _.V("div",{class:_.To("ytStandardsTextareaShapeError",(A.ytStandardsTextareaShapeErrorDisabled=R.disabled,A)),role:"alert"},_.V(_.H1,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),R.children)},"ng");_.VyG=_.E5(function(R){var A=R.data;return _.V("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.V(TY,{text:R.text,label:function(){var Y;return(Y=A().contentProperties)==null?void 0:Y.labelText},
placeholder:function(){var Y;return(Y=A().contentProperties)==null?void 0:Y.placeholderText},
hint:function(){var Y;return(Y=A().contentProperties)==null?void 0:Y.hintText},
outline:function(){var Y;return!((Y=A().displayProperties)==null?0:Y.hideBorder)},
overflowStyle:function(){var Y;return((Y=A().displayProperties)==null?0:Y.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:R.disabled,disableNewLines:function(){var Y;return(Y=A().displayProperties)==null?void 0:Y.disableNewLines},
onInput:R.onInput,characterLimit:R.characterLimit,validation:R.validation,rows:function(){var Y;return(Y=A().displayProperties)==null?void 0:Y.rows}}))},"og");_.Jwg=_.E5(function(R){var A=R.data;return _.V("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.V(TY,{text:R.text,label:function(){var Y;return(Y=A().contentProperties)==null?void 0:Y.labelText},
placeholder:function(){var Y;return(Y=A().contentProperties)==null?void 0:Y.placeholderText},
hint:function(){var Y;return(Y=A().contentProperties)==null?void 0:Y.hintText},
outline:function(){var Y;return!((Y=A().displayProperties)==null?0:Y.hideBorder)},
overflowStyle:function(){var Y;return((Y=A().displayProperties)==null?0:Y.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var Y;return(Y=A().displayProperties)==null?void 0:Y.disableNewLines},
onInput:R.onInput,characterLimit:R.characterLimit,validation:R.validation,rows:function(){var Y;return(Y=A().displayProperties)==null?void 0:Y.rows}}))},"pg");var ywm=_.E5(function(R){var A=_.x(_.gl(function(){var Nb,Qk;return((Nb=R.data().structuredContextNoteFormSchema)==null?0:(Qk=Nb.initialValues)==null?0:Qk.noteBody)?R.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),Y=A.next().value,P=A.next().value;
A=_.x(_.gl(function(){R.data();return!1}));
var E=A.next().value,z=A.next().value;A=_.x(_.gl(function(){R.data();return!1}));
var c=A.next().value,M=A.next().value;A=_.x(_.gl(function(){var Nb,Qk;return((Nb=R.data().structuredContextNoteFormSchema)==null?0:(Qk=Nb.initialValues)==null?0:Qk.timestamp)?R.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var N=A.next().value,y=A.next().value;A=_.x(_.gl(function(){R.data();return!1}));
var m=A.next().value,T=A.next().value;A=_.x(_.gl(function(){var Nb,Qk;return((Nb=R.data().structuredContextNoteFormSchema)==null?0:(Qk=Nb.initialValues)==null?0:Qk.sources)?[R.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Q=A.next().value,g=A.next().value;A=_.x(_.gl(function(){R.data();return!1}));
var r=A.next().value,I=A.next().value;A=_.x(_.gl(function(){return!1}));
var b=A.next().value,p=A.next().value;_.jO(function(){var Nb;_.Ir0((Nb=R.data().structuredContextNoteFormSchema)==null?void 0:Nb.id,{isSubmitting:b,onSubmit:function(){p(!0);var Qk=D1f(Y(),N(),Q(),R.data()),H3=_.is().resolve(_.ls);Qk&&H3&&H3.resolveCommand(Qk,{commandController:{onSuccess:function(){p(!1)}}})},
isValid:function(){return E()&&!c()&&!m()&&!r()}})});
var h=function(Nb){if(Nb!==void 0&&(P(Nb),!E()&&Nb.length>0&&z(!0),E())){var Qk=QWQ(R.data());if(Qk){var H3=Qk.minLength;Qk=Qk.maxLength;H3&&Nb.length<H3?M(!0):Qk&&Nb.length>Qk?M(!0):M(!1)}}},L=function(Nb){if(Nb!==void 0){y(Nb);
if(Nb.length>0){var Qk,H3,nu,hk,FV=gSW((Qk=R.data())==null?void 0:(H3=Qk.structuredContextNoteFormSchema)==null?void 0:(nu=H3.fieldSchemas)==null?void 0:(hk=nu.timestamp)==null?void 0:hk.validationSchema);if(FV&&(Qk=FV.regex)&&!(new RegExp(Qk)).test(Nb)){T(!0);return}}T(!1)}},Z=function(Nb){if(Nb!==void 0){var Qk=Nb.split(/[ \n]/).map(function(H3){return H3.trim()});
g(Qk);if(Nb.length>0)for(Nb=_.x(Qk),Qk=Nb.next();!Qk.done;Qk=Nb.next())if(!rNi(Qk.value)){I(!0);return}I(!1)}},w=function(){return{validate:function(Nb){if(E()){var Qk=QWQ(R.data());
if(Qk){var H3=Qk.minLength;Qk=Qk.translations;if(H3&&Nb.length<H3)return Qk==null?void 0:Qk.minLengthErrorMessage}}}}},t=function(){var Nb=QWQ(R.data()),Qk=Nb==null?void 0:Nb.maxLength,H3;
Nb=Nb==null?void 0:(H3=Nb.translations)==null?void 0:H3.maxLengthErrorMessage;if(Qk&&Nb)return{maxChars:Qk,errorMessage:Nb}},d=function(){return{validate:function(Nb){if(Nb){var Qk,H3,nu,hk,FV=gSW((Qk=R.data())==null?void 0:(H3=Qk.structuredContextNoteFormSchema)==null?void 0:(nu=H3.fieldSchemas)==null?void 0:(hk=nu.timestamp)==null?void 0:hk.validationSchema);
if(FV&&(Qk=FV.regex,FV=FV.translations,Qk&&!(new RegExp(Qk)).test(Nb)))return FV==null?void 0:FV.regexErrorMessage}}}},Jk=function(){return{validate:function(Nb){if(Nb){var Qk,H3,nu,hk,FV=Hw0((Qk=R.data())==null?void 0:(H3=Qk.structuredContextNoteFormSchema)==null?void 0:(nu=H3.fieldSchemas)==null?void 0:(hk=nu.sources)==null?void 0:hk.validationSchema);
if(FV&&(Qk=FV.translations,Qk==null?0:Qk.selectedErrorMessage))for(Nb=Nb.split(/[ \n]/).map(function(i8){return i8.trim()}),Nb=_.x(Nb),H3=Nb.next();!H3.done;H3=Nb.next())if(!rNi(H3.value))return Nb=void 0,(Nb=Qk)==null?void 0:Nb.selectedErrorMessage}}}};
return _.V("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.V("div",{class:"ytStructuredContextNoteViewModelTextField"},_.V(_.ni,{data:function(){var Nb;return(Nb=R.data())==null?void 0:Nb.noteContents}},{textFormFieldViewModel:function(Nb){return _.V(_.Jwg,{data:Nb.data,
onInput:h,validation:w,characterLimit:t})},
textFieldViewModel:function(Nb){return _.V(_.VyG,{data:Nb.data,onInput:h,validation:w,characterLimit:t})}})),_.V("div",{class:"ytStructuredContextNoteViewModelTextField"},_.V(_.ni,{data:function(){var Nb;
return(Nb=R.data())==null?void 0:Nb.noteTimestamp}},{textFormFieldViewModel:function(Nb){return _.V(_.Jwg,{data:Nb.data,
onInput:L,validation:d})},
textFieldViewModel:function(Nb){return _.V(_.VyG,{data:Nb.data,onInput:L,validation:d})}})),_.V("div",{class:"ytStructuredContextNoteViewModelTextField"},_.V(_.ni,{data:function(){var Nb;
return(Nb=R.data())==null?void 0:Nb.noteSources}},{textFormFieldViewModel:function(Nb){return _.V(_.Jwg,{data:Nb.data,
onInput:Z,validation:Jk})},
textFieldViewModel:function(Nb){return _.V(_.VyG,{data:Nb.data,onInput:Z,validation:Jk})}})))},"qg");
ywm.idomCompat=!0;_.Ow(ywm,"yt-structured-context-note-view-model",{props:{data:_.VY}});var mKQ=_.E5(function(R){var A=_.x(_.gl(function(){var z;if((z=R.controlled)==null?0:z.call(R))return[];var c;return(((c=R.data())==null?void 0:c.chips)||[]).map(function(M){M=_.n(M,_.zA);if(M==null?0:M.selected)return U1g(M.chipValue)}).filter(function(M){return M!==void 0})})),Y=A.next().value,P=A.next().value,E=function(z){var c=U1g(z.chipValue);
if(c!==void 0){var M;if((M=R.controlled)==null?0:M.call(R))return void R.controlled().onTap(c);z=Y().includes(c)?[].concat(_.py(Y().filter(function(y){return y!==c}))):[].concat(_.py(Y()),[c]);
P(z);var N;if((N=R.uncontrolled)==null?0:N.call(R))R.uncontrolled().onUpdate(z)}};
return _.V("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.V(_.Ue,{each:function(){return R.data().chips||[]}},function(z){return _.V("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.V(_.P$A,{data:function(){return _.n(z,_.zA)},
selected:function(){var c;if(c=_.n(z,_.zA)){var M=U1g(c.chipValue);if(M!==void 0){var N;c=((N=R.controlled)==null?0:N.call(R))?R.controlled().selectedValues.includes(M):Y().includes(M)}else c=void 0}else c=!1;return c},
callback:E}))}))},"rg");var Tvi=_.E5(function(R){var A=R.data;var Y=function(){var M;return((M=A())==null?void 0:M.flowStateKey)||""},P=_.vT(_.wc,Y),E=function(){var M;
return(M=_.n(P(),g_Y))==null?void 0:M.chips},z=function(M){if(M!==void 0){var N=E()||[];
N=N.find(function(y){return y===M})?N.filter(function(y){return y!==M}):[].concat(_.py(N),[M]);
N=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.n(P(),g_Y),{chips:N})});_.A7(_.HT("flowStateEntity",Y(),N))}},c=function(){var M;
return _.n((M=A())==null?void 0:M.inputBox,n_N)};
R=_.$l(function(M){var N=c();N=!(N==null?0:N.maxChars)||M.length<=N.maxChars;M=Object.assign({},P(),{feedbackFormFlowState:Object.assign({},_.n(P(),g_Y),{detail:M}),abuseReportFlowState:Object.assign({},_.n(P(),ag),{navigationEnabled:N})});_.A7(_.HT("flowStateEntity",Y(),M))},150);
return _.V("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.V("div",{class:"ytFeedbackFormViewModelChips"},_.V(_.ni,{data:function(){var M;return(M=A())==null?void 0:M.chipSelection}},{chipSelectionFormFieldViewModel:function(M){return _.V(mKQ,{data:M.data,
controlled:function(){return{selectedValues:E()||[],onTap:z}}})}})),_.V("div",{class:"ytFeedbackFormViewModelInputBox"},_.V(TY,{text:function(){var M;
return(M=_.n(P(),g_Y))==null?void 0:M.detail},
placeholder:function(){var M;return((M=c())==null?void 0:M.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var M=c();if(M&&M.maxChars)return{maxChars:M.maxChars,errorMessage:M.maxCharsExceededErrorMessage||""}},
onInput:R})),_.V("div",{class:"ytFeedbackFormViewModelFooterText"},_.V(_.NU,{text:function(){return A().footerText}})))},"sg");
Tvi.idomCompat=!0;_.Ow(Tvi,"yt-feedback-form-view-model",{props:{data:_.VY}});var Q$n=_.E5(function(R){var A=R.data;var Y=function(){return A().flowStateKey||""},P=_.vT(XDg,Y),E=function(){return _.n(P(),ag)},z=function(){if(_.v("enable_gff_accessibility_fix")){var c=!0,M;
if((M=E())==null?0:M.navigationEnabled){var N;_.Zc((N=E())==null?void 0:N.navigationCommand);c=!1}M=Object.assign({},P(),{abuseReportFlowState:Object.assign({},E(),{isReportFormDirty:c})});_.A7(_.HT("flowStateEntity",Y(),M))}else _.Zc((c=E())==null?void 0:c.navigationCommand)};
return _.V("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.V("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.V(_.ni,{data:function(){return A().cancelButton}},{buttonViewModel:function(c){return _.V(_.Is,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}}),_.V(_.ni,{data:function(){var c;
if(A().navButton){var M=Object;var N=M.assign,y=_.n(A().navButton,_.E7),m=((c=E())==null?0:c.navigationEnabled)||_.v("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",T,Q;c=_.n((T=E())==null?void 0:T.navigationCommand,_.CC);T=(Q=_.n(c,_.G$))==null?void 0:Q.url;M={buttonViewModel:N.call(M,{},y,{state:m,iconName:T?"OPEN_IN_NEW":""})}}else M=void 0;return M}},{buttonViewModel:function(c){return _.V(_.Is,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}})))},"tg");
Q$n.idomCompat=!0;_.Ow(Q$n,"yt-report-form-bottom-bar-view-model",{props:{data:_.VY}});var vcm=_.E5(function(R){var A=R.nextStep;return _.V("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.V("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.V(_.H1,{icon:function(){return A().iconName||""}})),_.V("div",null,_.V(_.NU,{text:function(){return A().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"ug"),gcf=_.E5(function(R){var A=R.data;
var Y,P=(Y=_.is().resolve(_.z3(_.dU)))==null?void 0:Y(),E=_.vT(_.wc,function(){return A().flowStateKey||""});
return _.V("yt-report-form-confirmation-page-view-model",{class:function(){var z;return((z=_.n(E(),ag))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.V("div",{class:function(){var z;
return((z=_.n(E(),ag))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.V(_.P1,{data:function(){return P&&A().imageDark?A().imageDark:A().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.V("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.V("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return A().confirmationHeader}),_.V("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.V(_.NU,{text:function(){return A().confirmationText}})),_.V("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.V(_.NU,{text:function(){return A().lawEnforcementText}})),
_.V("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return A().whatToExpectHeader}),_.V(_.J,{cond:function(){return A().nextSteps},
then:function(z){return _.V("div",null,_.V(_.Ue,{each:z},function(c){return _.V(vcm,{nextStep:c})}))}}),_.V(_.J,{cond:function(){return A().legalReportText},
then:function(z){return _.V("div",null,_.V(_.NU,{text:z,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"vg");
gcf.idomCompat=!0;_.Ow(gcf,"yt-report-form-confirmation-page-view-model",{props:{data:_.VY}});var ncN=_.E5(function(R){var A=R.data;var Y=function(){var z;return((z=_.n(A().inputBox,n_N))==null?void 0:z.maxChars)||500},P=function(){return A().flowStateKey||""},E=_.vT(_.wc,P);
R=_.$l(function(z){z=Object.assign({},E(),{flowFormState:{isValid:z.length<=Y()},abuseReportFlowState:{userComments:z,navigationEnabled:!(z.length>Y()),isReportFormDirty:!0}});_.RZ().dispatch(_.I9("flowStateEntity",P(),z))},150);
_.jO(function(){var z=Object.assign({},E(),{flowFormState:{isValid:!0}});_.RZ().dispatch(_.I9("flowStateEntity",P(),z))});
return _.V("yt-report-form-details-page-view-model",{class:function(){var z;return((z=_.n(E(),ag))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.V("h1",{class:function(){var z;
return((z=_.n(E(),ag))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return A().detailsPageHeader}),_.V("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.V(_.NU,{text:function(){return A().bodyText}})),_.V("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.V(TY,{label:function(){var z;
return((z=_.n(A().inputBox,n_N))==null?void 0:z.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var z;return{errorMessage:((z=_.n(A().inputBox,n_N))==null?void 0:z.maxCharsExceededErrorMessage)||"",maxChars:Y()}},
onInput:R})))},"wg");
ncN.idomCompat=!0;_.Ow(ncN,"yt-report-form-details-page-view-model",{props:{data:_.VY}});var HgF=_.E5(function(R){var A=R.data;var Y=_.d5("div"),P=function(){return A().flowStateKey||""},E=_.vT(_.wc,P),z=function(){return _.n(E(),ag)};
_.jq(function(){var c,M;if(((c=z())==null?0:c.isReportFormDirty)&&((M=z())==null||!M.navigationEnabled)&&_.v("enable_gff_accessibility_fix")){var N;if(((N=z())==null?void 0:N.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var y;(y=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||y.scrollIntoView()}else{var m;(m=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||m.scrollIntoView()}}},"nktJfe");
return _.V("yt-report-form-reason-select-page-view-model",{class:function(){var c;return((c=z())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.V("h1",{class:function(){var c;
return((c=z())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return A().pageHeader}),_.V("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.V(_.NU,{text:function(){return A().bodyText}})),_.V("div",{class:function(){var c;
return((c=z())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.V(_.J,{cond:function(){var c,M;
return((c=z())==null?void 0:c.isReportFormDirty)&&!((M=z())==null?0:M.navigationEnabled)&&_.v("enable_gff_accessibility_fix")},
then:function(){return _.V("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:Y},_.V(_.H1,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.V("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return A().emptyReasonSelectErrorMessage}))}}),_.V(_.Ogn,{data:function(){return _.n(A().radioButtonGroup,_.Cb)},
onSelected:function(c,M){c=Object.assign({},E(),{abuseReportFlowState:Object.assign({},z(),{reasonKey:M.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:M.command})});_.A7(_.HT("flowStateEntity",P(),c))},
selectedKey:function(){var c;return(c=z())==null?void 0:c.reasonKey},
groupName:"report-form-reason-select-page"})))},"xg");
HgF.idomCompat=!0;_.Ow(HgF,"yt-report-form-reason-select-page-view-model",{props:{data:_.VY}});var rwH=_.E5(function(R){var A=R.data;var Y,P=(Y=_.is().resolve(_.z3(_.dU)))==null?void 0:Y();return _.V("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.V("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.V(_.P1,{data:function(){return P&&A().imageDark?A().imageDark:A().image},
alt:""})),_.V("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.V("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return A().header}),_.V(_.NU,{text:function(){return A().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"yg");
rwH.idomCompat=!0;_.Ow(rwH,"yt-report-form-sign-in-page-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=_.aE(_.$1H),P=function(){return A().titleSuperscript},E=function(){return A().answersShelf},z=function(){return A().videoShelf},c=function(){var t;
return(t=A().textInputPlaceholder)==null?void 0:t.content},M=function(){return A().showOpenTextInput&&!_.v("web_hide_explore_hub_until_user_navigates_back_to_home")},N=function(){var t;
return(t=A().textInputValue)==null?void 0:t.content},y=function(){return A().isMultiTurnFlow?A().resetButtonViewModel:void 0},m=!1;
R=_.x(_.yy(!1,void 0,"rWtIn"));var T=R.next().value,Q=R.next().value;R=_.x(_.yy("",void 0,"Vt3VX"));var g=R.next().value,r=R.next().value,I=function(){return{state:T()?"active":"disabled"}};
_.WD(function(){if(M()){N()&&r(N());var t;if(!y()&&((t=Y())==null?0:t.stepStates)){var d;t=Object.keys((d=Y())==null?void 0:d.stepStates);d=t[t.length-1];var Jk,Nb;(d=(Jk=Y().stepStates[d])==null?void 0:(Nb=Jk.userQuery)==null?void 0:Nb.userQuery)&&r(d)}}});
var b=function(t){var d=A().onUpdateText;d&&_.Zc(d,{form:{userQuery:t}});r(t)},p=_.$l(function(t){b(t.target.value.trim())},150),h=_.Qi(function(t){var d;
Q(!((d=t.target.value)==null||!d.trim())||m);p(t);return!1}),L=_.Qi(function(t){if(t.key==="Enter"&&T()){b(t.target.value.trim());
t=void 0;var d=_.n(A().nextButtonViewModel,_.E7),Jk,Nb;if(d==null?0:(Jk=d.loggingDirectives)==null?0:(Nb=Jk.clientVeSpec)==null?0:Nb.uiType){var Qk,H3;t=_.NV((Qk=d.loggingDirectives)==null?void 0:(H3=Qk.clientVeSpec)==null?void 0:H3.uiType)}(Jk=A().onNextStepCommand)&&_.Zc(Jk,{forceClickLogging:!0,clickedVisualElement:t})}return!1}),Z=function(t,d){m=d;
Q(d);if(A().isMultiTurnFlow&&d){var Jk;b((Jk=t==null?void 0:t.text)!=null?Jk:"")}if(_.v("web_hide_explore_hub_until_user_navigates_back_to_home")){var Nb,Qk,H3;(H3=(Qk=(Nb=w.value)==null?void 0:Nb.closest("ytd-flow-step-renderer"))==null?void 0:Qk.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||H3.click()}},w=_.LK("yt-talk-to-recs-view-model");
R={};return _.V("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:w},_.V("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.V(_.ni,{data:function(){return A().topCornerButton}},{buttonViewModel:_.Is})),_.V("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.V("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.V(_.NU,{text:function(){return A().title}}),_.V(_.J,{cond:P,
then:function(){return _.V("sup",{class:"ytwTalkToRecsSuperScript"},_.V(_.NU,{text:P}))}})),_.V("div",{class:"ytwTalkToRecsSubtitle"},_.V(_.NU,{text:function(){return A().subtitle}})),_.V("div",{class:"ytwTalkToRecsResultsShelf"},_.V(_.J,{cond:E,
then:function(){return _.V(_.ni,{data:E},{chipsShelfViewModel:function(t){return _.V("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.V(_.dj,{data:t.data,callback:Z,selectionBehavior:1}))}})}}),_.V(_.J,{cond:z,
then:function(){return _.V(_.ni,{data:z},{horizontalShelfViewModel:function(t){return _.V("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.V(_.ES,{data:t.data,includeMargin:!0,thumbnailAspectRatio:0}))}})}})),_.V("div",{class:_.To("ytwTalkToRecsRefinementContainer",(R.ytwTalkToRecsBottomMargin=function(){return A().isMultiTurnFlow},R))},_.V(_.J,{cond:M,
then:function(){return _.V("div",{class:"ytwTalkToRecsUserInputBox"},_.V("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:c,value:g,"on:input":h,"on:keyup":L,maxlength:200}))}}),_.V(_.ni,{data:function(){return A().isMultiTurnFlow?A().nextButtonViewModel:void 0}},{buttonViewModel:function(t){return _.V("div",{class:"ytwTalkToRecsFlowControlButtons"},_.V(_.Is,{data:t.data,
buttonOverrides:I}))}}),_.V(_.ni,{data:y},{buttonViewModel:function(t){return _.V("div",{class:"ytwTalkToRecsFlowControlButtons"},_.V(_.Is,{data:t.data,
onClick:function(){var d=_.n(A().resetButtonViewModel,_.E7);b(g());(d=d==null?void 0:d.onTap)&&_.Zc(d)}}))}}))))},"zg"),"yt-talk-to-recs-view-model",{props:{data:_.VY}});var XUm={sources:[{clientResource:{imageName:"CHECK"}}]};_.DKN=_.E5(function(R){var A=_.LK("div");R=_.Pc(R,{error:void 0});var Y=R.data,P=R.error,E=R.onSelected;R=_.x(_.gl(function(){return KTg(Y())}));
var z=R.next().value,c=R.next().value;fOn(Y,function(Q){c(Q);var g,r,I=IOW((g=Y().options)==null?void 0:(r=g[Q])==null?void 0:r.value,Y().type);E==null||E(I);A.value.focus()});
R=_.Qi(function(){if(!Y().disabled){var Q=Y(),g=z(),r=A.value;Q.options&&(Q=SKH(Q.options,g,Q.label),_.is().resolve(_.wy).openSheet({viewModel:Q},r))}});
var M=_.LH8(),N=function(){return!!P()},y=function(){return!!Y().disabled},m={},T={};
return _.V("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.V("div",{class:_.To("ytDropdownViewModelDropdownContainer",(m.ytDropdownViewModelDropdownContainerErrorBorder=N,m.ytDropdownViewModelDropdownContainerDisabled=y,m)),"on:click":R,el:A,role:"combobox",tabindex:0,"on:keydown":M,"aria-invalid":N,"aria-disabled":y,"aria-describedby":function(){return N()?"dropdown-view-model-error":void 0}},_.V("div",{class:"ytDropdownViewModelText"},WTY(Y,N,z),jWm(Y,z)),_.V("div",{class:_.To("ytDropdownViewModelChevronDown",
(T.ytDropdownViewModelChevronDownDisabled=y,T))},_.V(_.H1,{icon:"CHEVRON_DOWN"}))),bwH(Y,P))},"Ag");_.Ow(_.E5(function(R){var A=R.data;var Y=function(E){var z=FTf(A());z.videoMetadata||(z.videoMetadata={});z.videoMetadata.sponsorshipsMetadata||(z.videoMetadata.sponsorshipsMetadata={});z.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(E)},P=function(E){var z=FTf(A());
z.scheduledRedirectMetadata||(z.scheduledRedirectMetadata={});z.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(E)};
return _.V("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.V("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.V("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.V(_.NU,{text:function(){return A().title}}),_.V(_.H1,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.V(_.NU,{text:function(){return A().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.V(_.ni,{data:function(){return A().tierChoices}},{dropdownViewModel:function(E){return _.V("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.V(_.DKN,{data:E.data,
onSelected:Y}))}}),_.V(_.ni,{data:function(){return A().startTimeChoices}},{dropdownViewModel:function(E){return _.V("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.V(_.DKN,{data:E.data,
onSelected:P}))}}),_.V(_.NU,{text:function(){return A().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.V("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.V(_.ni,{data:function(){return A().scheduleButton}},{panelFooterViewModel:_.ym})))},"Bg"),"ytfz-schedule-fanzone-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;R=R.className===void 0?"":R.className;var Y=_.vT(XDg,function(){return A().flowStateEntityKey||""}),P={};
P=_.To("ytFlowBottomBarViewModelFlowBottomBarButtons",(P.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},P));
var E={},z=_.To("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",P,(E.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},E.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},E));
E={};var c=_.To("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",P,(E.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},E.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},E));
P={};P=_.To("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},P.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return A().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
P));
R=_.To("ytFlowBottomBarViewModelHost",R);return _.V("yt-flow-bottom-bar-view-model",{class:R},_.V(_.J,{cond:function(){var M;return(M=A())==null?void 0:M.textSection},
then:function(M){return _.V("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.V(_.NU,{text:M}))}}),_.V("div",{class:P},_.V(_.ni,{data:function(){return A().secondaryButton}},{buttonViewModel:function(M){return _.V(_.Is,{data:M.data,
className:c})}}),_.V(_.ni,{data:function(){return A().primaryButton}},{buttonViewModel:function(M){return _.V(_.Is,{data:M.data,
className:z,buttonOverrides:function(){var N;return{disabled:!((N=Y())==null||!N.primaryButtonDisabled)}}})}})))},"Cg"),"yt-flow-bottom-bar-view-model",{props:{data:_.VY,
className:_.xL}});var UKi="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),Qm=function(){var R=_.K.apply(this,arguments)||this;R.enableScrollingFix=!0;R.bottomBar=!1;R.hideBottomBar=!1;R.fitContent=!1;return R};
_.H(Qm,_.K);_.l=Qm.prototype;_.l.ready=function(){_.v("enable_pdp_icon_prefetch")&&_.TMH(_.is().resolve(_.oD),0,UKi)};
_.l.focus=function(R){this.topBar?_.qz(this.topBar,R):this.paperDialog.focus(R)};
_.l.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19072_scroller&&(this.JSC$19072_scroller.dialogElement=this.paperDialog,this.JSC$19072_scroller.attached&&typeof this.JSC$19072_scroller.attached==="function"&&this.JSC$19072_scroller.attached())};
_.l.onDataChanged=function(){var R;this.fitContent=!((R=this.data)==null||!R.fitContent);var A;this.bottomBar=!((A=this.data)==null||!A.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.l.onProgressChanged=function(){var R,A,Y=((A=(R=this.data)==null?void 0:R.progress)!=null?A:0)*100;this.progressElement.style.width=Y+"%"};
_.l.isProgressHidden=function(){var R;return!((R=this.data)==null?0:R.progress)};
_.l.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",lpSectionGroupViewModel:"yt-lp-section-group-view-model",noteUserRatingViewModel:"yt-note-user-rating-view-model",noteViewModel:"yt-note-view-model",
notesWrapperViewModel:"yt-notes-wrapper-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(R){return _.v("enable_wiz_next_lp2_msof")&&R&&!R.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Yh.Object.defineProperties(Qm.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var R;return _.v("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.n((R=this.data)==null?void 0:R.content,$zn)}}});
Qm.prototype.onProgressChanged=Qm.prototype.onProgressChanged;Qm.prototype.onDataChanged=Qm.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qm.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qm.prototype,"enableScrollingFix",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qm.prototype,"bottomBar",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qm.prototype,"hideBottomBar",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qm.prototype,"containsExploreHub",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qm.prototype,"fitContent",void 0);_.C([_.nG("#progress"),_.k("design:type",HTMLElement)],Qm.prototype,"progressElement",void 0);
_.C([_.nG("#scroller"),_.k("design:type",Object)],Qm.prototype,"JSC$19072_scroller",void 0);_.C([_.nG("ytd-flow-top-bar-renderer"),_.k("design:type",HTMLElement)],Qm.prototype,"topBar",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qm.prototype,"onDataChanged",null);_.C([_.vZ("data.progress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qm.prototype,"onProgressChanged",null);
_.C([_.F({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],Qm);
_.B(Qm,"ytd-flow-step-renderer",function(){if(Eaf!==void 0)return Eaf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Eaf=R},{mode:1});var $Kn=function(R){this.resolveCommand=R;this.steps={}},XuN=function(R,A){A=_.x(A||[]);
for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=Object.values(Y)[0],E=void 0;if((E=P)==null?0:E.stepId)R.steps[P.stepId]=Y}},KeH=function(R,A){var Y,P,E,z,c;
return _.O(function(M){if((Y=R.state)==null||!Y.currentStepId)return M.return(void 0);P=S_F(R);if(!P)return M.return(INm(R));if(E=_.n(P,_.Uzi)){var N;((N=E.screenLoggingData)==null?0:N.screenVeType)&&_.$5(_.rU(),E.screenLoggingData.screenVeType);((z=E)==null?0:z.onStepStartCommand)&&R.resolveCommand((c=E)==null?void 0:c.onStepStartCommand,{})}if(E&&A){N=E;var y,m,T,Q;((y=A.flowLoggingData)==null?0:y.eventNamespace)&&((m=N.flowEventData)==null?0:m.eventType)&&((T=N.flowEventData)==null?0:T.eventMetadata)&&
((Q=A.flowLoggingData)==null?0:Q.flowType)&&(y=_.mb(A.flowLoggingData.eventNamespace,N.flowEventData.eventType,N.flowEventData.eventMetadata),_.T9(_.Q2(),y,A.flowLoggingData.flowType));A.steps&&!A.steps.includes(P)&&A.steps.push(P)}return M.return(P)})};
$Kn.prototype.back=function(){var R;(R=this.state)!=null&&R.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
$Kn.prototype.handleUpdateFlowCommand=function(R){R.steps&&XuN(this,R.steps);R.entityUpdateCommand&&this.resolveCommand(R.entityUpdateCommand,{});R.flowContinuationCommand&&(R=R.flowContinuationCommand)&&(this.getFlowContinuationCommand=R);this.awaitFlowContinuation&&(this.awaitFlowContinuation(S_F(this)),this.awaitFlowContinuation=void 0)};
$Kn.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var INm=function(R){return _.O(function(A){return R.getFlowContinuationCommand?A.return(new Promise(function(Y){R.awaitFlowContinuation=Y;R.getFlowContinuationCommand&&R.resolveCommand(R.getFlowContinuationCommand,{flow_state:R.state})})):A.return(Promise.resolve(void 0))})},S_F=function(R){var A;
if((A=R.state)!=null&&A.currentStepId)return R.steps[R.state.currentStepId]};var vJ=function(){var R=_.K.apply(this,arguments)||this;R.flowState=new $Kn(function(A,Y){Y=Y===void 0?{}:Y;_.Qp.instance.resolveCommand(A,{form:{form:Y,element:R.hostElement}})});
R.initialState=!0;R.isLoading=!1;R.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"};R.containsTalkToRecs=!1;return R};
_.H(vJ,_.K);_.l=vJ.prototype;_.l.onPopupClosed=function(R){R&&this.hostElement!==R.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.l.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"}}}};
_.l.focus=function(R){var A=this;_.wg(function(){var Y=_.Mo(A.hostElement).querySelector("ytd-flow-step-renderer");(Y==null?0:Y.topBar)?Y.focus(R):A.topBar&&_.qz(A.topBar,R)},1)};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.l.computeTopBarHidden=function(R){var A;return!((A=_.n(R,_.Uzi))==null||!A.topBarOverride)};
_.l.dataChanged=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1){((A=R.data)==null?0:A.steps)&&XuN(R.flowState,R.data.steps);if((Y=R.data)==null?0:Y.flowContinuationCommand){var E=R.flowState,z=R.data.flowContinuationCommand;z&&(E.getFlowContinuationCommand=z)}return P.yield(KeH(R.flowState,R.data),2)}R.currentFlowStep=P.yieldResult;_.XH(P)})};
_.l.flowChanged=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1){if(!R.flow)return Y.return();R.flowState.state=R.flow;R.isLoading=!0;return Y.yield(KeH(R.flowState,R.data),2)}A=Y.yieldResult;if(!A||R.flow.isLoading)return Y.return();R.currentFlowStep=A;R.initialState=!1;R.isLoading=!1;R.autofocusAndRefit();R.updateContainsTalkToRecs();_.XH(Y)})};
_.l.updateContainsTalkToRecs=function(){var R,A=(R=_.n(this.currentFlowStep,_.Uzi))==null?void 0:R.content;this.containsTalkToRecs=!!A&&!!_.n(A,$zn)};
_.l.autofocusAndRefit=function(){var R=this,A=_.is().resolve(_.z3(_.rt)),Y=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),P=document.querySelector("yt-report-form-confirmation-page-view-model"),E=document.querySelector("yt-report-form-details-page-view-model"),z=document.querySelector("yt-report-form-reason-select-page-view-model"),c=document.querySelector("yt-contributor-zero-state-view-model"),
M=document.querySelector("yt-structured-context-note-view-model"),N=document.querySelector("yt-note-view-model");(!Y&&A&&A.isKeyBoardInUse()||P||!Y&&E||!Y&&z||c||M||N)&&_.Ln(this.hostElement);_.RK(this,function(){_.xo(R.hostElement,"yt-refit")})};
_.l.handleUpdateFlowCommand=function(R){this.data&&(R=_.n(R,Dzj),R.targetId===this.data.targetId&&(R.flowContinuationCommand&&(this.data.flowContinuationCommand=R.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(R),this.autofocusAndRefit()))};
_.l.handleFlowNextStepCommand=function(R){this.data&&this.flow&&this.flow.key&&(R=_.n(R,Hno),R.targetId===this.data.targetId&&(R=R.stepId||"",this.ytdReduxBehavior.dispatch(_.I9("flowStateEntity",this.flow.key,{currentStepId:R,stepIdStack:(this.flow.stepIdStack||[]).concat(R)}))))};
_.l.handleFlowPrevStepCommand=function(R){if(this.data&&this.flow&&this.flow.key&&(R=_.n(R,rZY),R.targetId===this.data.targetId)){var A=[].concat(_.py(this.flow.stepIdStack||[]));A.length>1?(A.pop(),this.ytdReduxBehavior.dispatch(_.I9("flowStateEntity",this.flow.key,{currentStepId:A[A.length-1],stepIdStack:A}))):R.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(R.onFirstStepCommand)}};
_.l.handleYpcCancelRecurrenceCommand=function(R){if(this.data&&this.flow&&this.flow.key&&(R=_.n(R,W3F),R.targetId===this.data.targetId&&R.endpointCommand)){var A=_.n(this.flow,jB9);A&&_.n(R.endpointCommand,_.Mtz)&&(_.n(R.endpointCommand,_.Mtz).feedbackData=A.surveyFeedback);this.ytComponentBehavior.resolveCommand(R.endpointCommand)}};
_.l.handlePartialUpdateFlowStateEntity=function(R){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.I9("flowStateEntity",this.flow.key,R,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
vJ.prototype.flowChanged=vJ.prototype.flowChanged;vJ.prototype.dataChanged=vJ.prototype.dataChanged;vJ.prototype.onPopupClosed=vJ.prototype.onPopupClosed;_.C([_.U(_.Pf),_.k("design:type",Object)],vJ.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vJ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],vJ.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],vJ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],vJ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vJ.prototype,"initialState",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vJ.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Object)],vJ.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],vJ.prototype,"currentFlowStep",void 0);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],vJ.prototype,"onPopupClosed",null);_.C([_.S({selectorArgs:["data.flowStateEntityKey"],selector:XDg}),_.k("design:type",Object)],vJ.prototype,"flow",void 0);_.C([_.nG("ytd-flow-top-bar-renderer"),_.k("design:type",HTMLElement)],vJ.prototype,"topBar",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],vJ.prototype,"dataChanged",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vJ.prototype,"containsTalkToRecs",void 0);_.C([_.Ul("flow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],vJ.prototype,"flowChanged",null);_.C([_.F({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],vJ);
_.Wej=_.s5()(vJ,"ytd-flow-root-renderer",function(){if(PjG!==void 0)return PjG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return PjG=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var j$i;var F$=null;_.Ow(_.E5(function(R){return _.V("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.V("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.V(_.NU,{text:function(){return R.data().text}}),_.V("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Dg"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.VY}});var bgg=_.E5(function(R){var A=R.playerControlsProps;var Y=R.isShortsPage;return _.V("yt-bigboard",null,_.V(_.J,{cond:function(){return A().isDragging},
then:function(){return _.V("div",{class:"ytBigboardStoryboardHost"},_.V(_.VKo,{progressBarProps:A,isShortsPage:Y}))}}))},"Eg");
bgg.idomCompat=!0;_.gp={ACCOUNT_LABEL:BY("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:BY("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:BY("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:BY("AD_BADGE_HINT"),AD_BADGE_TEXT:BY("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:BY("ALL_CHANNELS_LABEL"),AMBIENT_MODE:BY("AMBIENT_MODE"),AMBIENT_MODE_OFF:BY("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:BY("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:BY("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:BY("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:BY("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:BY("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:BY("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:BY("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:BY("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:BY("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:BY("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:BY("AUTO_ZOOM","Auto zoom"),BACK:BY("BACK"),CANCEL:BY("CANCEL"),CHANNEL_SWITCHER_LABEL:BY("CHANNEL_SWITCHER_LABEL"),CLOSE:BY("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:BY("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:BY("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:BY("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:BY("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:BY("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:BY("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:BY("COMMENT_MODAL_CONTENT"),CONFIRM_OK:BY("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:BY("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:BY("COPIED_TO_CLIPBOARD"),COPY:BY("COPY"),COPY_DEBUG_INFO:BY("COPY_DEBUG_INFO"),COPY_EMBED_CODE:BY("COPY_EMBED_CODE"),
COPY_LINK_LABEL:BY("COPY_LINK_LABEL"),COPY_VIDEO_URL:BY("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:BY("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:BY("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:BY("DELETE_FROM_DOWNLOADS"),DIALOG:BY("DIALOG"),DONE:BY("DONE"),DOWNLOAD:BY("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:BY("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:BY("FLAG_CONFIRM"),FLAG_CONTENT:BY("FLAG_CONTENT"),FLAG_LABEL:BY("FLAG_LABEL"),FLAG_TITLE:BY("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:BY("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:BY("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:BY("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:BY("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:BY("HIDE_SEARCH_FILTERS_LABEL"),HOME:BY("HOME","Home"),INVALID_RESPONSE_RECEIVED:BY("INVALID_RESPONSE_RECEIVED"),LIBRARY:BY("LIBRARY","Library"),LISTENING:BY("LISTENING"),LOADING:BY("LOADING"),LONG_PRESS_MIC_TO_SPEAK:BY("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:BY("LOOP"),MENU_DESKTOP:BY("MENU_DESKTOP"),
MENU_EXIT:BY("MENU_EXIT"),MENU_FEEDBACK:BY("MENU_FEEDBACK"),MENU_HELP:BY("MENU_HELP"),MENU_IMPRESSUM:BY("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:BY("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:BY("MENU_SETTINGS"),MENU_SIGN_IN:BY("MENU_SIGN_IN"),MENU_TITLE:BY("MENU_TITLE"),MENU_YOUR_DATA:BY("MENU_YOUR_DATA"),MORE_INFO:BY("MORE_INFO"),MORE_OPTIONS:BY("MORE_OPTIONS"),MUTE_VOLUME:BY("MUTE_VOLUME"),NEW_PLAYLIST:BY("NEW_PLAYLIST"),NEXT_VIDEO:BY("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:BY("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:BY("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:BY("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:BY("NOT_FOUND_TITLE"),NO_DOWNLOADS:BY("NO_DOWNLOADS"),NO_MIC_INPUT:BY("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:BY("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:BY("OOPS_MESSAGE"),OPEN_APP:BY("OPEN_APP"),OPEN_YOUTUBE:BY("OPEN_YOUTUBE"),PAUSE:BY("PAUSE"),PLAY:BY("PLAY"),PLAYER_CAPTION:BY("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:BY("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:BY("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:BY("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:BY("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:BY("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:BY("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:BY("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:BY("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:BY("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:BY("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:BY("PLAYER_MINIMIZE"),PLAYER_NEXT:BY("PLAYER_NEXT"),PLAYER_PAUSE:BY("PLAYER_PAUSE"),PLAYER_PLAY:BY("PLAYER_PLAY"),
PLAYER_PREVIOUS:BY("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:BY("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:BY("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:BY("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:BY("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:BY("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:BY("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:BY("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:BY("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:BY("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:BY("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:BY("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:BY("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:BY("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:BY("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:BY("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:BY("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:BY("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:BY("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:BY("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:BY("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:BY("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:BY("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:BY("PLAY_ALL"),PLEASE_FIX_ERRORS:BY("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:BY("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:BY("PREVIOUS_VIDEO"),PRIVACY_POLICY:BY("PRIVACY_POLICY"),RELOAD:BY("RELOAD"),REQUIRED_LABEL:BY("REQUIRED_LABEL"),SAVE_PLAYLIST:BY("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:BY("SCRUB_SLIDE_USER_EDU"),SEARCH:BY("SEARCH","Search"),
SEARCH_APPEND_LABEL:BY("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:BY("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:BY("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:BY("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:BY("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:BY("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:BY("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:BY("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:BY("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:BY("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:BY("SEEK_SLIDER"),SETTINGS_LABEL:BY("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:BY("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:BY("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:BY("SHOW_LESS"),SHOW_MORE:BY("SHOW_MORE"),SHOW_PLAYER_CONTROLS:BY("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:BY("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:BY("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:BY("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:BY("SIGN_IN_ON_WEB"),STABLE_VOLUME:BY("STABLE_VOLUME"),STABLE_VOLUME_OFF:BY("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:BY("STABLE_VOLUME_ON"),STATS_FOR_NERDS:BY("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:BY("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:BY("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:BY("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:BY("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:BY("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:BY("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:BY("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:BY("TIMESTAMP_SECONDS"),TOGGLE_OFF:BY("TOGGLE_OFF"),TOGGLE_ON:BY("TOGGLE_ON"),TRENDING:BY("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:BY("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:BY("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:BY("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:BY("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:BY("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:BY("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:BY("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:BY("VIDEO_LINK_LABEL")};var fNn=_.E5(function(R){var A=R.playerApi;R=_.LK("button",function(P){_.s4(P,36843)});
var Y=BY("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.V("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.V("button",{el:R,class:"ytPlayerControlsJumpForwardButtonButton",title:Y,"aria-label":Y,"on:click":_.Qi(function(){_.NF(36843);A&&A().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.V("span",null,_.V(_.H1,{icon:"FAST_FORWARD"}))))},"Fg");var puN=_.E5(function(R){var A=R.appApi;R=_.LK("button",function(P){_.s4(P,62946)});
var Y=BY("OPEN_IN_MINIPLAYER");return _.V("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.V("button",{el:R,class:"ytMiniplayerButtonButton",title:Y,"aria-label":Y,"on:click":_.Qi(function(){_.NF(62946);var P,E;(E=(P=A()).openInMiniplayer)==null||E.call(P);return!1})},_.V(_.H1,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Gg");var Fei=_.E5(function(R){var A=R.playerApi;R=_.LK("button",function(z){_.s4(z,142812)});
var Y=_.x(_.yy(!1,void 0,"I3VCyb")),P=Y.next().value,E=Y.next().value;Y=function(){return BY("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(P()?1:2)})};
return _.V("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.V("button",{el:R,class:"ytPlaybackSpeedButtonButton",title:Y,"aria-label":Y,"on:click":_.Qi(function(){_.NF(142812);if(A){var z=A(),c=P();z.setPlaybackRate(c?1:2);E(!P())}return!1})},_.V("span",null,_.V(_.H1,{icon:function(){return P()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Hg");var Bvf=_.E5(function(R){var A=R.title;var Y=R.ariaLabel;var P=R.icon;var E=R.command;var z=R.veType;R=_.LK("button",function(c){z&&_.s4(c,z())});
return _.V("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.V("button",{el:R,class:"ytdThumbnailOverlayButtonButton",title:A,"aria-label":Y,"on:click":_.Qi(function(){z&&_.NF(z());E&&_.is().resolve(_.ls).resolveCommand(E())})},_.V(_.H1,{icon:P})))},"Ig");var S1="";var aNF=_.E5(function(R){var A=R.playerControlsProps,Y=R.onClickFn;R=_.gE(function(){var z=A(),c=-1;z.captionsAvailable&&(c=z.captionsEnabled?1:0);return c},void 0,"WecR8e");
var P=_.gE(function(){var z=A();return z.captionsAvailable?_.vk(z.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.vk("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),E=_.gE(function(){var z=A();
z=z.captionsAvailable?z.captionsEnabled:void 0;return z},void 0,"Q17ly");
return _.V("yt-closed-captions-toggle-button",null,_.V(_.Lfi,{captionIconType:R,ariaLabel:P,ariaPressed:E,onClick:function(z){var c=A();if(c.captionsAvailable){var M=c.playerApi;if(M){var N=c.playerApi;if(N){var y=S1;if(y){N=N.getOption("captions","track");var m;S1=(m=N?N.displayName:null)!=null?m:y}else _.MF(N)?(y=_.nAJ(N),S1=y.length?(m=KJi(y))?m.displayName:y[0].displayName:""):S1=""}WJm(M);_.v("mweb_disable_set_state_captions_killswitch")&&c.setState({captionsEnabled:!c.captionsEnabled})}}var T,
Q;(Q=(T=c.appApi).showCaptionsToggleToast)==null||Q.call(T,c);Y==null||Y(z)},
isOverlay:!0}))},"Jg");var CyF=_.E5(function(R){var A=R.data;return _.V("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.V(_.Pl,{data:function(){return{type:17,text:_.wBJ(A().label)}}}))},"Kg");var hOf=_.E5(function(R){var A=_.To("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return R.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return R.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return R.size()==="small"?R.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
R.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.V("animated-seek-arrows",{class:_.To("ytPlayerControlsAnimatedSeekArrowsHost")},_.V("span",{class:A}),_.V("span",{class:A}),_.V("span",{class:A}))},"Lg");
hOf.idomCompat=!0;var ocG=_.E5(function(){var R=_.vk("PLAYER_SECONDS",{seconds_placeholder:"30"}),A=_.x(_.yy(!1,void 0,"iRJu8c")),Y=A.next().value,P=A.next().value,E=_.x(_.yy(!1,void 0,"MPnizf"));A=E.next().value;var z=E.next().value;E={};var c=_.To("jumpForwardOverlayOverlay",(E.jumpForwardOverlayOverlayHidden=A,E));_.jO(function(){var M=null,N=null,y=function(){M!==null&&_.n6().cancelJob(M);N!==null&&_.n6().cancelJob(N);z(!0);P(!0);_.JM(_.n6(),function(){z(!1)});
M=_.JM(_.n6(),function(){z(!0);N=_.JM(_.n6(),function(){P(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",y);_.bm(function(){window.removeEventListener("jump-forward-clicked",y)})});
return _.V("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.V(_.J,{cond:Y,then:function(){return _.V("div",{class:c},_.V(hOf,{direction:1,size:"large"}),_.V("div",null,R))}}))},"Mg");var kRm=_.gp.MUTE_VOLUME,GRH=_.gp.UNMUTE_VOLUME,ZgQ=_.E5(function(R){var A=R.muteIconType;var Y=R.onClick;var P=R.useOutlineIcon;var E=R.useDelhiIcons;R=_.LK("button",function(M){_.s4(M,28662)});
var z=function(){var M=A(),N=P==null?void 0:P(),y=E==null?void 0:E(),m="",T="";switch(M){case -1:case 0:m=N?"VOLUME_OFF":y?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";T=GRH;break;case 1:m=N?"VOLUME_UP_OUTLINE":y?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";T=kRm;break;case 2:m=N?"VOLUME_DOWN_OUTLINE":y?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";T=kRm;break;default:_.kZ(M)}return{iconName:m,ariaLabel:T}},c=function(){return z().ariaLabel};
return _.V("ytm-mute-button",{class:"ytmMuteButtonHost"},_.V("button",{el:R,class:"ytmMuteButtonButton",title:c,"aria-label":c,"on:click":_.Qi(function(M){_.NF(28662);Y==null||Y(M);return!1})},_.V("span",null,_.V(_.H1,{icon:function(){return z().iconName}}))))},"Ng");var tyn=_.E5(function(R){var A=R.volumeProps;var Y=R.onClickFn;var P=R.useOutlineIcon;var E=R.useDelhiIcons;return _.V("yt-mute-toggle-button",null,_.V(ZgQ,{muteIconType:function(){var z=A();return z.volumeMuted||z.volume===0?0:z.volume>50?1:2},
onClick:function(z){var c=A().playerApi;c&&(c.isMuted()?c.unMute():c.mute(!1));Y==null||Y(z)},
useOutlineIcon:function(){return!(P==null||!P())},
useDelhiIcons:function(){return!(E==null||!E())}}))},"Og");
tyn.idomCompat=!0;var wui=_.E5(function(R){var A=R.data;var Y=_.LK("ytm-paid-content-overlay-renderer");return _.V("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:Y,"on:animationend":_.Qi(function(){Y.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.V(_.DW,{command:function(){return A().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.V(_.J,{cond:function(){var P;return(P=A().icon)==null?void 0:P.iconType},
then:function(){return _.V("span",null,_.V(_.H1,{icon:function(){var P;return(P=A().icon)==null?void 0:P.iconType}}))}}),_.V("div",{class:"ytmPaidContentOverlayText"},_.V(_.NU,{text:function(){return A().text}})),_.V(_.J,{cond:function(){return A().navigationEndpoint},
then:function(){return _.V(_.H1,{icon:"CHEVRON_RIGHT"})}})))},"Pg");
wui.idomCompat=!0;var d1n=[].concat(_.py([{register:function(R){var A=cZm(R),Y;(Y=R().playerApi)==null||Y.addEventListener("onVolumeChange",A);return function(){}}},
{register:function(R){var A=Onf(R);R=R().playerApi;R==null||R.addEventListener("captionschanged",A);R==null||R.addEventListener("captionssettingschanged",A);R==null||R.addEventListener("onCaptionsTrackListChanged",A);return function(){}}},
{register:function(R){if(!_.v("mweb_screenreader_accessible_player"))return function(){};
var A=MXm(R),Y=document.querySelector("video");Y==null||Y.addEventListener("touchend",A);return function(){Y==null||Y.removeEventListener("touchend",A)}}},
{register:function(R){if(!_.v("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var A=MXm(R),Y=document.querySelector("video");Y==null||Y.addEventListener("focus",A);return function(){Y==null||Y.removeEventListener("focus",A)}}}]),[{register:function(R){var A=zsj(R),Y;
(Y=R().playerApi)==null||Y.addEventListener("onStateChange",A);return function(){}}},
{register:function(R){var A=inW(R),Y;(Y=R().playerApi)==null||Y.addEventListener("onPlaybackRateChange",A);return function(){}}},
{register:function(R){var A=lFN(R),Y;(Y=R().playerApi)==null||Y.addEventListener("onVideoDataChange",A);return function(){}}},
{register:function(R){var A=xzo(R),Y,P;(Y=R())==null||(P=Y.playerApi)==null||P.addEventListener("onVideoProgress",A);return function(){}}}]);var u40=_.E5(function(R){var A=R.data;var Y=function(){return _.vk("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+A().playbackRate})};
return _.V(_.J,{cond:function(){return A().playbackRate&&A().playbackRate!==1},
then:function(){return _.V("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.V("div",{class:"ytPlaybackRateOverlayOverlay"},_.V(hOf,{direction:1,size:"small"}),_.V("div",{class:"ytPlaybackRateOverlayLabel"},Y)))}})},"Qg");var eOo=_.E5(function(R){var A=R.data;return _.V("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.V(_.J,{cond:function(){var Y,P=(Y=A())==null?void 0:Y.playerResponse,E;return P==null?void 0:(E=P.paidContentOverlay)==null?void 0:E.paidContentOverlayRenderer},
then:function(Y){return _.V(wui,{data:Y})}}))},"Sg"),q_n=_.E5(function(R){var A=R.props;
var Y=R.data;var P=R.options;var E=function(){var y,m,T,Q;return(y=Y())==null?void 0:(m=y.playerResponse)==null?void 0:(T=m.playerConfig)==null?void 0:(Q=T.inlinePlaybackConfig)==null?void 0:Q.showAudioControls},z=function(){var y,m;
if(E()&&((y=P())==null?void 0:(m=y.additionalButton)==null?void 0:m.button)!==void 0){var T,Q,g;y=(T=Y())==null?void 0:(Q=T.playerApi)==null?void 0:(g=Q.getSize())==null?void 0:g.height;if(!(y===void 0||y<180)){var r,I;return(r=P())==null?void 0:(I=r.additionalButton)==null?void 0:I.button}}},c=function(){var y,m;
return(y=P())==null?void 0:(m=y.additionalButton)==null?void 0:m.thumbnailOverlayButtonRenderers},M=function(){var y,m;
return(y=P())==null?void 0:(m=y.additionalButton)==null?void 0:m.thumbnailOverlayButtonViewModels},N=function(){var y=[_.V(tyn,{volumeProps:A}),
_.V(aNF,{playerControlsProps:A})];z()===1&&y.push(_.V(fNn,{playerApi:function(){return A().playerApi}}));
z()===2&&y.push(_.V(puN,{appApi:function(){return A().appApi}}));
z()===3&&y.push(_.V(Fei,{playerApi:function(){return A().playerApi}}));
var m=c();if(z()===4&&m){m=_.x(m);for(var T=m.next(),Q={};!T.done;Q={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$50:void 0,command$jscomp$588:void 0},T=m.next()){T=T.value;Q.tooltip$jscomp$2=T.tooltip;var g=void 0,r=void 0;Q.ariaLabel$jscomp$20=((g=T.accessibility)==null?void 0:(r=g.accessibilityData)==null?void 0:r.label)||Q.tooltip$jscomp$2;g=void 0;Q.icon$jscomp$50=(g=T.icon)==null?void 0:g.iconType;Q.command$jscomp$588=T.command;Q.tooltip$jscomp$2&&Q.ariaLabel$jscomp$20&&Q.icon$jscomp$50&&
y.push(_.V(Bvf,{title:function(I){return function(){return I.tooltip$jscomp$2}}(Q),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$20}}(Q),
icon:function(I){return function(){return I.icon$jscomp$50}}(Q),
command:function(I){return function(){return I.command$jscomp$588}}(Q)}))}}m=M();
if(z()===4&&m)for(m=_.x(m),T=m.next(),Q={};!T.done;Q={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$51:void 0,command$jscomp$589:void 0},T=m.next())T=T.value,Q.tooltip$jscomp$3=T.title,Q.ariaLabel$jscomp$21=T.accessibilityText||Q.tooltip$jscomp$3,Q.icon$jscomp$51=T.iconName,Q.command$jscomp$589=_.h7(T.onTap),Q.tooltip$jscomp$3&&Q.ariaLabel$jscomp$21&&Q.icon$jscomp$51&&y.push(_.V(Bvf,{title:function(I){return function(){return I.tooltip$jscomp$3}}(Q),
ariaLabel:function(I){return function(){return I.ariaLabel$jscomp$21}}(Q),
icon:function(I){return function(){return I.icon$jscomp$51}}(Q),
command:function(I){return function(){return I.command$jscomp$589}}(Q)}));
return y};
return _.V(_.J,{cond:E,then:function(){return _.V("div",{class:"ytInlinePlayerControlsTopRightControls"},_.V(_.Ue,{each:N},function(y){return _.V("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.V("div",{class:"ytInlinePlayerControlsButtonIcon"},y))}))}})},"Tg"),RP9=_.E5(function(R){var A=R.props;
var Y=R.data;var P=R.options;R={};R=_.To("ytInlinePlayerControlsBottomRightControls",(R.ytInlinePlayerControlsBottomRightControlsHidden=function(){var E;return NMG(Y(),P())&&((E=P())==null?void 0:E.insetProgressBar)&&(A().isHovering||A().isDragging)},R));
return _.V("div",{class:R},_.V(LeG,{data:Y}),_.V(_.J,{cond:function(){var E;return!((E=P())==null?0:E.hideTimeDisplay)},
then:function(){return _.V(dK0,{props:A,data:Y})}}))},"Ug"),LeG=_.E5(function(R){var A=R.data;
return _.V(_.ni,{data:function(){var Y;return e4W((Y=A())==null?void 0:Y.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:CyF})},"Vg"),dK0=_.E5(function(R){var A=R.props;
var Y=R.data;return _.V(_.J,{cond:function(){return A().isLive},
then:function(){return _.V(A_o,null)},
else:function(){return _.V(YPQ,{props:A,data:Y})}})},"Wg"),YPQ=_.E5(function(R){var A=R.props;
var Y=R.data;var P=_.gE(function(){var E;return LT0((E=Y())==null?void 0:E.thumbnailOverlays)},void 0,"tLs0gd");
return _.V("div",{class:_.To("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.gp.PLAYER_TIME_ELAPSED+" "+_.K_q(A().playedTime)}},_.V(_.Pl,{data:function(){var E=_.K_q(A().videoDuration-A().playedTime);
return Object.assign({},{type:17,text:E},P())}}))},"Xg"),A_o=_.E5(function(){var R=_.To("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.V("div",{class:R},_.V(_.Pl,{data:{type:18,text:_.gp.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Yg"),PPj=_.E5(function(R){var A=R.props;
var Y=R.data;var P=R.options;return _.V(_.vtH,{progressBarProps:A,config:function(){var E,z=_.n((E=Y())==null?void 0:E.multiMarkersPlayerBar,_.pXf),c;E=((c=P())==null?0:c.insetProgressBar)?2:1;var M;c=(M=P())==null?void 0:M.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:E,chapterData:z,isInlinePlayback:!0,doSeekOnClick:c,playheadDotBehavior:c?1:0}}})},"Zg");_.Ow(_.E5(function(R){var A=R.data;var Y=R.appApi;var P=R.options;var E=E_G(A,sBi(Y));R={};Y={};return _.V("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.V("div",{class:_.To("ytInlinePlayerControlsDarkenedOverlay",(R.ytInlinePlayerControlsDarkenedOverlayShow=function(){return E().isHovering},R))}),_.V(ocG,null),_.V(u40,{data:E}),_.V(eOo,{data:A}),_.V(bgg,{playerControlsProps:E,
isShortsPage:!1}),_.V("div",{class:_.To((Y.ytInlinePlayerControlsControlsHidden=function(){return E().isDragging},Y))},_.V(q_n,{props:E,
data:A,options:P}),_.V(RP9,{props:E,data:A,options:P})),_.V(_.J,{cond:function(){return NMG(A(),P())},
then:function(){return _.V(PPj,{props:E,data:A,options:P})}}))},"Rg"),"yt-inline-player-controls",{props:{data:_.VY,
appApi:_.xL,options:_.VY}});var nh=function(){var R=_.K.apply(this,arguments)||this;R.opts=null;R.playerControlsData=null;R.playerControlsAppApi={openInMiniplayer:function(){R.openInMiniplayer()}};
R.playerControlsOptions={};R.noAnimation=!1;R.playbackIntentTriggered=!1;R.positionData=null;R.hidden=!0;R.active=!1;R.playing=!1;R.videoPreviewDataIndex=0;R.JSC$19128_playerPromise=null;R.player=null;R.enableAudioControls=!1;R.hasBeenUnmuted=!1;R.captionsHaveBeenTurnedOff=!1;R.JSC$19128_playerEvents=new Map;R.videoPreviewFetchRequest=null;R.scheduledPreviewEndJobId=null;R.JSC$19128_preventProgressSaveTimer=null;R.watchEndpointStartTimeUpdaterInterval=null;R.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};R.windowOnBlurFn=function(){R.deactivate()};
return R};
_.H(nh,_.K);_.l=nh.prototype;
_.l.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.v("web_enable_rich_item_on_focus_effect_client")?{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"}}}};
_.l.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19128_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19128_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19128_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19128_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.T2(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.T2(this,this.onScroll))};
_.l.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.T2(this,this.onScroll))};
_.l.onPageTypeChange=function(){this.deactivate()};
_.l.onWindowResized=function(){this.deactivate()};
_.l.onCaptionsChanged=function(R){R=!!R.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!R);this.setCaptionSize()};
_.l.setCaptionSize=function(){var R;if(this.active&&!this.captionsHaveBeenTurnedOff&&((R=this.player)==null?0:R.getCaptionWindowContainerId())){var A;(A=this.player)==null||A.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.l.currentPageAllowed=function(){return!this.isWatchPage};
_.l.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var R=this.positionData,A=R.initialTopPosition,Y=R.initialHorizontalPosition;_.ya(this.hostElement,{"--ytd-video-preview-translate-left":R.finalHorizontalPosition-Y+"px","--ytd-video-preview-translate-top":R.finalTopPosition-A+"px","--ytd-video-preview-original-top-position":A+"px","--ytd-video-preview-original-horizontal-position":Y+"px",
"--ytd-video-preview-initial-scale":"scale("+R.initialScale+")","--ytd-video-preview-width":R.videoPreviewWidth+"px","--ytd-video-preview-height":R.videoPreviewHeight+"px"});return!0};
_.l.handleOpenVideoPreviewAction=function(R){var A=this,Y;return _.O(function(P){if(!A.currentPageAllowed())return P.return(0);A.opts=R;return(Y=A.alignVideoPreviewForAnimation(R.thumbnail))?P.return(A.activate()):P.return(0)})};
_.l.onMouseLeave=function(R){this.shouldDeactivateOnMouseLeave(R)&&this.deactivate()};
_.l.onScroll=function(){var R,A;((R=this.opts)==null?0:R.isAutoplay)&&((A=this.opts)==null?0:A.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.l.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.fn.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.l.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.l.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",nh.JSC$19127_DEFAULT_CLICK_LOCATION_BEHAVIOR,nh.JSC$19127_CLICK_LOCATION_ID_MAP)};
_.l.shouldDeactivateOnMouseLeave=function(R){R=R.relatedTarget;if(!R)return!0;var A;return(A=this.opts)!=null&&A.mediaRenderer?!_.sl(this.opts.mediaRenderer).contains(R):!0};
_.l.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.l.onPlaybackStart=function(){var R=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$19128_preventProgressSaveTimer=
_.JM(_.fn,function(){R.resetPreventProgressSaveTimer()},1E4);
var A;if((A=this.opts)==null?0:A.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.JM(_.fn,function(){R.hasMultipleVideoPreviews()?R.startPlaybackForNextVideo():R.deactivate()},this.opts.videoPreviewDurationMs);
var Y;this.player.setGlobalCrop(((Y=this.opts)==null?0:Y.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.l.getRoundedCornersSize=function(){var R;if((R=this.opts)==null?0:R.roundedCornersSize){var A;return(A=this.opts)==null?void 0:A.roundedCornersSize}var Y;if((Y=this.opts)==null?0:Y.enableRounding){var P;if(((P=this.opts)==null?void 0:P.thumbnailSize)==="small")return 1;var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="medium")return 2;var z;if(((z=this.opts)==null?void 0:z.thumbnailSize)==="large")return 3}return _.v("web_imp_inset_progress_bar")?3:0};
_.l.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.l.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.l.onMediaContainerClick=function(R){this.isShortcutClick(R)||(this.navigateToWatch(R),R.preventDefault(),R.stopPropagation())};
_.l.activate=function(){var R=this,A,Y,P,E,z,c,M,N,y;return _.O(function(m){switch(m.nextAddress){case 1:if(!R.currentPageAllowed())return m.return(0);Y=(A=R.videoPreviewData)==null?void 0:A.inlinePlaybackEndpoint;P=_.tM.instance;if(!Y||!P)return m.return(0);R.playbackIntentTriggered=!0;((E=R.opts)==null?0:E.mediaRenderer)&&((z=R.opts)==null||!z.isAutoplay)&&wUQ(R.opts.mediaRenderer,function(){R.deactivate()});
_.RK(R,function(){R.revealPreviewUi()});
c={};_.v("enable_unknown_lact_fix_on_html5")&&(_.is().resolve(_.XW),c.lact=_.z$());R.videoPreviewFetchRequest=h4N(P,R.getInlinePlaybackRequestData(R.videoPreviewData),c);_.g2(m,2);return m.yield(R.videoPreviewFetchRequest,4);case 4:M=m.yieldResult;if(((N=M)==null?void 0:(y=N.playabilityStatus)==null?void 0:y.status)==="OK")return m.return(R.handlePlayerResponse(M));throw Error("Vj");case 2:_.UT(m),R.deactivate();case 3:return m.return(1)}})};
_.l.getInlinePlaybackRequestData=function(R){var A,Y=_.v("web_imp_player_mute_params")?((A=this.opts)==null?void 0:A.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:R.inlinePlaybackEndpoint,startPlaybackInMutedState:Y}};
_.l.handlePlayerResponse=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T;return _.O(function(Q){if(Q.nextAddress==1){Y=A.getInlinePlaybackVideoId();if(!(((P=R)==null?0:(E=P.videoDetails)==null?0:E.videoId)&&A.currentPageAllowed()&&A.playbackIntentTriggered&&A.opts&&Y))return A.deactivate(),Q.return(0);if(R.videoDetails.videoId!==Y)return Q.return(0);A.enableAudioControls=!!((z=R.playerConfig)==null?0:(c=z.inlinePlaybackConfig)==null?0:c.showAudioControls);R.trackingParams=A.getInlinePlaybackTrackingParams();
if(!A.inlinePlayer)return Q.return(0);M={};if(y=_.n((N=A.videoPreviewData)==null?void 0:N.inlinePlaybackEndpoint,_.LO))M.watch_endpoint=y;if(A.videoPreviewData){var g,r=(g=_.n(A.videoPreviewData.inlinePlaybackEndpoint,_.LO))==null?void 0:g.startTimeSeconds;r!==void 0&&(R.playerConfig||(R.playerConfig={}),R.playerConfig.playbackStartConfig||(R.playerConfig.playbackStartConfig={}),R.playerConfig.playbackStartConfig.startPosition||(R.playerConfig.playbackStartConfig.startPosition={}),R.playerConfig.playbackStartConfig.startSeconds=
r,R.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(r*1E3))}A.inlinePlayer.loadVideoWithPlayerResponse(R,M);if(A.JSC$19128_playerPromise)return Q.jumpTo(2);A.JSC$19128_playerPromise=A.inlinePlayer.getPlayerPromise();return Q.yield(A.JSC$19128_playerPromise,3)}Q.nextAddress!=2&&(m=Q.yieldResult,m.setInlinePreview(!0),m.setSizeStyle(!1,!0),A.ytPlayerListenerBehavior.listenToPlayerEvents(m,A.JSC$19128_playerEvents),A.player=m,_.xo(A.hostElement,"player-api-ready"));((T=A.opts)==
null?0:T.showPlayerControls)&&A.videoPreviewData&&A.player&&(A.playerControlsData={playerResponse:R,isInlinePlayback:!0,thumbnailOverlays:A.videoPreviewData.thumbnailOverlays,playerApi:A.player},A.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!A.unroundCornersForPlayback,additionalButton:A.getAdditionalButtonType(A.videoPreviewData.thumbnailOverlays)});return Q.return(2)})};
_.l.revealPreviewUi=function(){var R=this;this.playbackIntentTriggered&&_.tRS(this,function(){R.hasThumbnailPositionChangedSinceTriggered()||(R.updateActiveState(!0),R.noAnimation=!1)})};
_.l.hasThumbnailPositionChangedSinceTriggered=function(){var R=this.positionData,A=this.getThumbnailPositionData();return(R==null?void 0:R.initialTopPosition)!==(A==null?void 0:A.initialTopPosition)||(R==null?void 0:R.initialHorizontalPosition)!==(A==null?void 0:A.initialHorizontalPosition)};
_.l.getThumbnailPositionData=function(){var R,A;if((A=this.opts)==null||!A.thumbnail)return null;A=this.opts.thumbnail;var Y=((R=this.opts)==null?0:R.cropPlayerToFillThumbnailHorizontally)?!1:!0;var P=A.getBoundingClientRect();R=P.width;A=P.height;var E=P.top+window.scrollY;P=P.left+window.scrollX;var z=Y?Math.ceil(R):R;Y=Y?Math.ceil(A):A;var c=R/z;R={initialScale:c,initialTopPosition:E-12*c,finalTopPosition:E-12-(Y-A)/2,initialHorizontalPosition:P-(12+(z-R)/2),finalHorizontalPosition:P-12-(z-R)/
2,videoPreviewWidth:z,videoPreviewHeight:Y};return R};
_.l.updateActiveState=function(R){this.active=R;this.ytdReduxBehavior.dispatch(_.cK({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:R}))};
_.l.stopPlayer=function(R){R=R.resetWatchEndpointStartTime===void 0?!1:R.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(R)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.fn.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.l.deactivate=function(R){R=R===void 0?{}:R;R=R.resetWatchEndpointStartTime===void 0?!1:R.resetWatchEndpointStartTime;F$&&(F$.disconnect(),F$=null);this.stopPlayer({resetWatchEndpointStartTime:R});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.l.isValidThumbnailOverlayButton=function(R,A){R=R.thumbnailOverlayButtonRenderer;var Y;return!!R&&!!R.tooltip&&!((Y=R.icon)==null||!Y.iconType)&&A.includes(R.icon.iconType)};
_.l.isValidThumbnailOverlayButtonViewModel=function(R,A){var Y;R=_.n((Y=R.thumbnailOverlayButtonViewModel)==null?void 0:Y.overlayButton,_.E7);return!!R&&!!R.title&&!!R.iconName&&A.includes(R.iconName)};
_.l.getAdditionalButtonType=function(R){var A=this;if(_.v("web_imp_fastforward_button"))return{button:1};if(_.v("web_imp_miniplayer_button"))return{button:2};if(_.v("web_imp_playback_speed_button"))return{button:3};var Y=["BOX_STACK_3"],P=(R||[]).filter(function(z){return A.isValidThumbnailOverlayButton(z,Y)}).map(function(z){return z.thumbnailOverlayButtonRenderer});
if(P.length)return{button:4,thumbnailOverlayButtonRenderers:P};var E=["BOX_STACK_3"];R=(R||[]).filter(function(z){return A.isValidThumbnailOverlayButtonViewModel(z,E)}).map(function(z){return _.n(z.thumbnailOverlayButtonViewModel.overlayButton,_.E7)});
if(R.length)return{button:4,thumbnailOverlayButtonViewModels:R}};
_.l.allowCaptions=function(){var R;return!((R=this.opts)==null?0:R.forceCaptionsOff)};
_.l.allowUnmuting=function(){var R;return this.enableAudioControls&&!((R=this.opts)==null?0:R.forceMutedVolume)};
_.l.beginStartTimeUpdater=function(){var R=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.yQ(function(){R.updateWatchEndpointStartTime()},1E3)};
_.l.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.l.resetPreventProgressSaveTimer=function(){this.JSC$19128_preventProgressSaveTimer!==null&&(_.fn.cancelJob(this.JSC$19128_preventProgressSaveTimer),this.JSC$19128_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.l.updateWatchEndpointStartTime=function(R){var A=this.videoPreviewData;if(this.player&&A!=null&&A.inlinePlaybackEndpoint&&!this.JSC$19128_preventProgressSaveTimer){R=R?0:Math.floor(this.player.getCurrentTime());var Y=_.n(A.navigationEndpoint,_.LO);Y&&(Y.startTimeSeconds=R);if(A=_.n(A.inlinePlaybackEndpoint,_.LO))A.startTimeSeconds=R}};
_.l.isShortcutClick=function(R){return!!R&&(R.ctrlKey||R.shiftKey||R.metaKey)};
_.l.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.l.openInMiniplayer=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1){Y=(A=R.videoPreviewData)==null?void 0:A.navigationEndpoint;if(!Y)return P.return();_.f_().lockupActivation=!0;return P.yield(_.w6D(_.is().resolve(_.jv),Y),2)}_.f_().userActivation=!0;_.XH(P)})};
_.l.navigateToWatch=function(R){var A,Y=(A=this.videoPreviewData)==null?void 0:A.navigationEndpoint;if(Y){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(Y,R,!0);else{var P;_.v("web_thumbnail_to_watch_transition")&&((P=this.opts)==null?0:P.thumbnail)&&_.GMD(_.is().resolve(_.B8),this.opts.thumbnail);_.xo(this.hostElement,"yt-navigate",{endpoint:Y})}this.deactivate()}};
_.l.getInlinePlaybackVideoId=function(){var R,A;return(A=_.n((R=this.videoPreviewData)==null?void 0:R.inlinePlaybackEndpoint,_.LO))==null?void 0:A.videoId};
_.l.getInlinePlaybackTrackingParams=function(){var R,A;return(R=this.videoPreviewData)==null?void 0:(A=R.inlinePlaybackEndpoint)==null?void 0:A.clickTrackingParams};
_.l.hasMultipleVideoPreviews=function(){var R;return!!(((R=this.opts)==null?0:R.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.l.startPlaybackForNextVideo=function(){var R;(R=this.opts)!=null&&R.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())};
_.Yh.Object.defineProperties(nh.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.opts)==null?0:R.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.opts)==null||!R.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 R;if(Array.isArray((R=this.opts)==null?void 0:R.videoPreviewData)){var A;return(A=this.opts)==null?void 0:A.videoPreviewData[this.videoPreviewDataIndex]}var Y;return(Y=this.opts)==null?void 0:Y.videoPreviewData}}});
nh.prototype.onIsAdsVideoChange=nh.prototype.onIsAdsVideoChange;nh.prototype.onInlinePreviewIsEnabledChange=nh.prototype.onInlinePreviewIsEnabledChange;nh.prototype.optsChanged=nh.prototype.optsChanged;nh.prototype.onMouseLeave=nh.prototype.onMouseLeave;nh.JSC$19127_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);nh.JSC$19127_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"}];
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],nh.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],nh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],nh.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],nh.prototype,"componentBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],nh.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.Hf.YtSparklesClickLocationBehavior),_.k("design:type",Object)],nh.prototype,"ytSparklesClickLocationBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nh.prototype,"opts",void 0);_.C([_.S(),_.k("design:type",Object)],nh.prototype,"playerControlsData",void 0);
_.C([_.S(),_.k("design:type",Object)],nh.prototype,"playerControlsAppApi",void 0);_.C([_.S(),_.k("design:type",Object)],nh.prototype,"playerControlsOptions",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],nh.prototype,"noAnimation",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],nh.prototype,"hidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],nh.prototype,"active",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],nh.prototype,"playing",void 0);_.C([_.S({selector:_.Prk}),_.k("design:type",Boolean)],nh.prototype,"inlinePreviewIsEnabled",void 0);_.C([_.S(),_.k("design:type",String)],nh.prototype,"pagePath",void 0);_.C([_.S({selector:_.RR8}),_.k("design:type",Boolean)],nh.prototype,"isWatchPage",void 0);_.C([_.X("videoPreviewData"),_.k("design:type",Object),_.k("design:paramtypes",[])],nh.prototype,"thumbnailData",null);
_.C([_.X("opts","active"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nh.prototype,"hidePlayerControls",null);_.C([_.X("opts"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nh.prototype,"isAdsVideo",null);_.C([_.X("opts"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nh.prototype,"roundedCornersSmall",null);
_.C([_.X("opts"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nh.prototype,"roundedCornersMedium",null);_.C([_.X("opts"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nh.prototype,"roundedCornersLarge",null);_.C([_.X("opts"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nh.prototype,"unroundCornersForPlayback",null);
_.C([_.X("opts","videoPreviewDataIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],nh.prototype,"videoPreviewData",null);_.C([_.S(),_.k("design:type",Object)],nh.prototype,"videoPreviewDataIndex",void 0);_.C([_.nG("#inline-player"),_.k("design:type",Object)],nh.prototype,"inlinePlayer",void 0);_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[MouseEvent]),_.k("design:returntype")],nh.prototype,"onMouseLeave",null);
_.C([_.Ul("opts"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nh.prototype,"optsChanged",null);_.C([_.Ul("inlinePreviewIsEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nh.prototype,"onInlinePreviewIsEnabledChange",null);_.C([_.vZ("isAdsVideo"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nh.prototype,"onIsAdsVideoChange",null);
_.C([_.F({is:"ytd-video-preview",disableElementRegistration:!0})],nh);
_.B(nh,"ytd-video-preview",function(){if(j$i!==void 0)return j$i;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return j$i=R},{mode:2});
}catch(e){_._DumpException(e)}
try{
var thQ,wWN,uaG;thQ=function(R){return _.v("kevlar_watch_cinematics_invisible")||R.fullscreen&&_.v("kevlar_watch_cinematics_invisible_in_fullscreen")||R.theater&&!R.fullscreen&&_.v("kevlar_watch_cinematics_invisible_in_theater")};
wWN=function(){var R=document.createElement("canvas"),A=R.getContext("2d");if(!A)throw Error("zo");_.o7(R,{position:"absolute",width:"100%",height:"100%"});return{element:R,context:A}};
uaG=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.v("kevlar_watch_cinematics_css_blur")};
_.eNf=function(R,A,Y){return Math.abs(R-A)<=(Y||1E-6)};
_.qjY=function(R,A){return R==A?!0:R&&A?R.width==A.width&&R.height==A.height:!1};_.LGj=new _.lU("notificationActionRenderer");var d5W=function(R){var A=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.y2;this.element.addEventListener("load",function(){A.loaded=!0;A.resolver.resolve(A.element)});
this.element.addEventListener("error",function(){A.failed=!0});
this.element.src=R};var Rkx=function(R,A){this.image=R;this.frame=A};
Rkx.prototype.drawToCanvas=function(R,A){var Y=this.frame.width/this.frame.columns,P=this.frame.height/this.frame.rows,E=A.offsetX,z=A.offsetY;thQ(A)?(R.fillStyle=A.fullscreen?"#000":"#0f0f0f",R.fillRect(E,z,(A==null?void 0:A.width)||Y,(A==null?void 0:A.height)||P)):R.drawImage(this.image,this.frame.column*Y,this.frame.row*P,Y,P,E,z,(A==null?void 0:A.width)||Y,(A==null?void 0:A.height)||P)};
var Akb=function(R){this.color=R};
Akb.prototype.drawToCanvas=function(R,A){var Y=A.offsetX,P=A.offsetY,E=A.width,z=A.height;R.fillStyle=thQ(A)?A.fullscreen?"#000":"#0f0f0f":this.color;R.fillRect(Y,P,E,z)};var JU=function(R,A){_.$i.call(this);this.playerApi=A;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.Dg(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();Y6D(this,R);PJb(this);this.update()};
_.H(JU,_.$i);JU.prototype.addEventListeners=function(){var R=this,A=function(){R.update()},Y=function(E){R.paused||(E.type==="newdata"&&(R.mosaics.clear(),Eqf(R),yV(R)),PJb(R),R.update())},P=function(){R.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",A);this.playerApi.addEventListener("onVideoDataChange",Y);this.playerApi.addEventListener("onStateChange",P);this.addOnDisposeCallback(function(){R.playerApi.removeEventListener("onVideoProgress",A);R.playerApi.removeEventListener("onVideoDataChange",Y);R.playerApi.removeEventListener("onStateChange",P)})};
var Y6D=function(R,A){R.cinematicContainerRenderer!==A&&(R.cinematicContainerRenderer=A,Eqf(R),yV(R),R.colorStoreUpdateJobId=_.fn.addLowPriorityJob(function(){var Y;if((Y=R.cinematicContainerRenderer.colorStore)!=null&&Y.sampledColors){Y=Infinity;for(var P=_.x(R.cinematicContainerRenderer.colorStore.sampledColors),E=P.next();!E.done;E=P.next()){E=E.value;var z=Number(E.key);z!==0&&z<Y&&(Y=z);z=_.Zs(E.value);R.colorStore.set(E.key,z)}R.colorStoreTimeInterval=Y}}))},Eqf=function(R){R.colorStoreUpdateJobId&&
(_.fn.cancelJob(R.colorStoreUpdateJobId),R.colorStoreUpdateJobId=void 0);
R.colorStore.clear();R.currentStoryboardColor=void 0},zkc=function(R,A){var Y;
return(Y=R.getStoryboardFrame(A))==null?void 0:Y.url};
JU.prototype.onPlayerStateChange=function(){this.update()};
JU.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var PJb=function(R){var A=R.getStoryboardFrame(0);A&&(A=new _.Dg(A.width/A.columns,A.height/A.rows),_.qjY(R.currentStoryboardSize,A)||(R.currentStoryboardSize=A,R.publish("STORYBOARD_SIZE_CHANGED",R.currentStoryboardSize)))},iue=function(R,A){R.currentStoryboardIndex=A;
R.pendingStoryboardIndex=NaN;A=R.getStoryboardFrame(R.currentStoryboardIndex);R.currentStoryboard=new Rkx(R.mosaics.get(A.url).element,A);R.publish("STORYBOARD_CHANGED",R.currentStoryboard);R.lastUpdateTime=(0,_.iB)()};
JU.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var yV=function(R){R.currentStoryboardIndex=NaN;R.pendingStoryboardIndex=NaN;R.currentStoryboard&&(R.currentStoryboard=void 0,R.publish("STORYBOARD_CHANGED",void 0));R.lastUpdateTime=NaN};
JU.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)yV(this);else{var R=this.playerApi.getPlayerState(1);if(R===-1||R===5||R===0)yV(this);else if(isNaN(this.lastUpdateTime)||!((0,_.iB)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(R=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){R=""+Math.round(R*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var A=this.colorStore.get(R);A?A!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=A,this.currentStoryboard=new Akb(A),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.iB)()):(_.pK(new _.XN("Could not find color for timestamp: "+R,this.cinematicContainerRenderer)),yV(this))}else yV(this);else lIe(this,R)}};
var lIe=function(R,A){var Y=R.getStoryboardFrameIndex(A);if(Y!==R.currentStoryboardIndex&&Y!==R.pendingStoryboardIndex){A=zkc(R,Y);var P=R.mosaics.get(A);P?P.loaded&&iue(R,Y):(R.pendingStoryboardIndex=Y,Y=new d5W(A),R.mosaics.set(A,Y),Y.resolver.promise.then(function(){if(!R.isDisposed()&&!R.paused&&!isNaN(R.pendingStoryboardIndex)){var E=zkc(R,R.pendingStoryboardIndex);if(E){var z;(z=R.mosaics.get(E))!=null&&z.loaded&&iue(R,R.pendingStoryboardIndex)}else yV(R)}}))}};
JU.prototype.getStoryboardFrameIndex=function(R){var A=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(R,A)};
JU.prototype.getStoryboardFrame=function(R){var A=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,Y,P;return((P=(Y=this.playerApi).getStoryboardFrame)==null?void 0:P.call(Y,R,A))||null};
JU.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var T7=function(R,A,Y,P){P=P===void 0?!1:P;_.KJ.call(this);this.cinematicContainerRenderer=A;this.playerApi=Y;this.theater=this.fullscreen=!1;var E;this.ambientLightThemeEnabled=!P&&!!(A==null?0:(E=A.config)==null?0:E.enableInLightTheme);this.ambientFullscreenEnabled=P&&_.v("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=P&&_.v("web_cinematic_theater_mode");this.container=document.createElement("div");R.appendChild(this.container);var z;if(_.v("web_cinematic_theater_mode")||_.v("web_cinematic_fullscreen")||
(A==null?0:(z=A.config)==null?0:z.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);xb$(this);R=this.ambientV2Container||this.container;this.backCanvas=wWN();this.frontCanvas=wWN();R.appendChild(this.backCanvas.element);R.appendChild(this.frontCanvas.element);this.storyboardManager=new JU(A,this.playerApi);_.gz(this,this.storyboardManager);this.addEventListeners();ck$(this)?OuZ(this,100+mF(this)*3*2,100+mF(this)*3*2):MPg(this);
skg(this,this.storyboardManager.currentStoryboard)};
_.H(T7,_.KJ);var xb$=function(R){R.ambientV2Container?N8x(R):(_.o7(R.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+VPc(R)+", "+JkR(R)+")"}),uaG()&&_.o7(R.container,"filter","blur("+_.cU("cinematic_watch_css_filter_blur_strength",40)+"px)"))},N8x=function(R){if(R.ambientV2Container){var A=R.playerApi.getVideoAspectRatio();
_.o7(R.container,{"aspect-ratio":""+A,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.o7(R.ambientV2Container,{"aspect-ratio":""+A,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+VPc(R)+", "+JkR(R)+")"});uaG()&&_.o7(R.ambientV2Container,"filter","blur("+_.cU("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
T7.prototype.setFullscreen=function(R,A){this.fullscreen=R;this.theater=!!A;xb$(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),R=this.storyboardManager.currentStoryboard,ykZ(this),R&&mbb(this,R)};
T7.prototype.addEventListeners=function(){var R=this,A=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(E){skg(R,E)}),Y=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){MPg(R)});
this.addOnDisposeCallback(function(){R.storyboardManager.unsubscribeByKey(A);R.storyboardManager.unsubscribeByKey(Y)});
if(this.ambientV2Container){var P=function(){N8x(R)};
this.playerApi.addEventListener("onVideoDataChange",P);this.addOnDisposeCallback(function(){R.playerApi.removeEventListener("onVideoDataChange",P)})}};
var MPg=function(R){if(!ck$(R)){var A=R.storyboardManager.currentStoryboardSize;isNaN(A.width)||isNaN(A.height)||OuZ(R,Number(A.width)+mF(R)*3*2,Number(A.height)+mF(R)*3*2)}},OuZ=function(R,A,Y){R.backCanvas.element.width=A;
R.backCanvas.element.height=Y;R.frontCanvas.element.width=A;R.frontCanvas.element.height=Y},ck$=function(R){return R.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},skg=function(R,A,Y){Y=Y===void 0?!1:Y;
var P=R.frontCanvas.element.getAnimations()[0];P?(P.pause(),R.backCanvas.context.globalAlpha=Number(getComputedStyle(R.frontCanvas.element).opacity),R.frontCanvas.element.style.opacity="0",P.finish()):R.backCanvas.context.globalAlpha=1;R.backCanvas.context.drawImage(R.frontCanvas.element,0,0,R.backCanvas.element.width,R.backCanvas.element.height);ykZ(R);A&&mbb(R,A);A=A?R.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.cU("cinematic_watch_fade_out_duration",500);P=_.cU("cinematic_watch_transition_frame_rate")/
1E3;var E={};P&&(E={easing:"steps("+Math.round(A*P)+")"});(Y===void 0?0:Y)||R.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:A,iterations:1},E));R.frontCanvas.element.style.opacity="1"},ykZ=function(R){var A=R.ambientLightThemeEnabled||R.ambientTheaterModeEnabled,Y=R.ambientLightThemeEnabled||R.ambientFullscreenEnabled;
R.frontCanvas.context.fillStyle=R.theater&&A||R.fullscreen&&Y?"#000":"#0f0f0f";uaG()||(R.frontCanvas.context.filter="blur(0)");R.frontCanvas.context.fillRect(0,0,R.frontCanvas.element.width,R.frontCanvas.element.height)},mbb=function(R,A){uaG()||(R.frontCanvas.context.filter="blur("+mF(R)+"px)");
R.frontCanvas.context.globalAlpha=R.fullscreen&&R.ambientFullscreenEnabled||R.theater&&R.ambientTheaterModeEnabled?_.cU("cinematic_watch_effect_letterbox_opacity",.4):_.cU("cinematic_watch_effect_opacity",.4);var Y={offsetX:mF(R)*3,offsetY:mF(R)*3,theater:R.theater,fullscreen:R.fullscreen};ck$(R)&&(Y.width=100,Y.height=100);A.drawToCanvas(R.frontCanvas.context,Y);R.frontCanvas.context.globalAlpha=1},mF=function(R){var A;
return(A=R.cinematicContainerRenderer.config.blurStrength)!=null?A:5},VPc=function(R){var A,Y;
if((R.fullscreen||R.theater)&&((A=R.cinematicContainerRenderer.config)==null?0:(Y=A.watchFullscreenConfig)==null?0:Y.colorSourceWidthMultiplier))return R.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var P;return(P=R.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?P:R.cinematicContainerRenderer.config.colorSourceSizeMultiplier},JkR=function(R){var A,Y;
if((R.fullscreen||R.theater)&&((A=R.cinematicContainerRenderer.config)==null?0:(Y=A.watchFullscreenConfig)==null?0:Y.colorSourceHeightMultiplier))return R.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var P;return(P=R.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?P:R.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
T7.prototype.disposeInternal=function(){_.KJ.prototype.disposeInternal.call(this);this.container.remove()};
T7.prototype.clear=function(){skg(this,void 0,!0)};
T7.prototype.pause=function(){this.storyboardManager.pause()};var T8f;T8f=_.U3(function(){var R,A,Y=!((A=(R=document.createElement("canvas")).getContext)==null||!A.call(R,"2d")),P;R=!((P=CSS)==null||!P.supports("filter: blur(0)"));P=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var E;return Y&&R&&P&&!((E=CSS)==null||!E.supports("aspect-ratio: 1 / 1"))});
_.QV=function(R,A){_.$i.call(this);this.container=R;this.playerApi=A;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Qke(this);this.update()};
_.H(_.QV,_.$i);_.vqq=function(R){var A=document.documentElement.hasAttribute("dark");R.isDarkModeEnabled=A;R.update()};
_.gqx=function(R,A){R.settingEnabled=A;R.update()};
_.QV.prototype.setFullscreen=function(R,A){this.fullscreen=R;this.theater=!!A;this.update()};
_.nqb=function(R,A){R.cinematicContainerRenderer=A;R.cinematicContainerRenderer&&(R.cinematicsVe=_.NV(R.isShorts()?227858:159022),_.Xq(_.rU(),R.cinematicsVe),R.loggingClientData={watchCinematicContainerData:{presentationStyle:R.cinematicContainerRenderer.presentationStyle}});R.update()};
_.QV.prototype.isShorts=function(){var R,A;return((R=this.cinematicContainerRenderer)==null?void 0:(A=R.config)==null?void 0:A.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.QV.prototype.isAllowed=function(){var R;if(R=T8f()){var A,Y,P;R=((Y=this.cinematicContainerRenderer)==null?void 0:Y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((P=this.cinematicContainerRenderer)==null||!P.colorStore)||((A=this.cinematicContainerRenderer)==null?void 0:A.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(R)if(_.v("web_cinematics_pausing")){var E,z;R=this.isDarkModeEnabled||!!((E=this.cinematicContainerRenderer)==
null?0:(z=E.config)==null?0:z.enableInLightTheme)}else{var c,M;E=!!((c=this.cinematicContainerRenderer)==null?0:(M=c.config)==null?0:M.enableInLightTheme)&&(_.a1("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);R=this.isDarkModeEnabled||E}if(c=R){var N,y;c=!((y=(N=this.prefersReducedMotionQuery)==null?void 0:N.matches)!=null&&y)}return c};
_.Hue=function(R){(R=R.currentCinematicEffect)!=null&&(R=R.storyboardManager,R.paused=!1,PJb(R),R.update())};
_.QV.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Qke=function(R){if(!_.v("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var A=window.matchMedia("(prefers-reduced-motion: reduce)"),Y=function(){R.update()};
A.addListener(Y);R.addOnDisposeCallback(function(){A.removeListener(Y)});
return A}};
_.QV.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var R=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new T7(this.container,R,this.playerApi,this.isDarkModeEnabled),_.gz(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var A=this.currentCinematicEffect;A.cinematicContainerRenderer!==
R&&(A.cinematicContainerRenderer=R,Y6D(A.storyboardManager,R),xb$(A));R=_.Hk();_.rH(0,194,!0);R.save();R=_.F9();this.cinematicsVe&&R&&_.uE(R,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(R=_.F9(),this.cinematicsVe&&R&&_.eF(R,[this.cinematicsVe],!1,this.loggingClientData),_.lt(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Yh.Object.defineProperties(_.QV.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var H8o;var rpf;_.jz({_template:function(){if(rpf!==void 0)return rpf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=
R.content,Y=A.insertBefore;H8o===void 0&&(H8o=document.createElement("template"));var P=H8o;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return rpf=R},
is:"tp-yt-iron-pages",behaviors:[_.Cr,_.qo],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var $ZQ;_.X_m=function(){if(_.v("kevlar_home_skeleton")&&!$ZQ){var R=document.querySelector("#home-page-skeleton");R&&(_.Fh("hgcr"),_.UU(R),$ZQ=!0)}};
$ZQ=!1;_.kK=new _.lU("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var Otg,sT0,NKi,V6o,JLW,yLj,myQ,TKW,v6m,g6G,rLW,Uy0,$ym,Dy9,n6Y,HtG,IfG;_.cLg=function(R,A,Y){A=A===void 0?5:A;if(A!==0){var P=typeof R==="function"?R():document.querySelector(R);P?(Y==null?0:Y.enableSmartFocus)?_.LTS(P):P.focus():setTimeout(function(){_.cLg(R,A-1,Y)},500)}};
Otg=function(R){return String.raw.apply(String,[{raw:R}].concat(_.py(_.Ge.apply(1,arguments).map(function(A){return A instanceof Array?A.join(""):A}))))};
sT0=function(R){var A=_.Ge.apply(1,arguments),Y=A.length;if(!Array.isArray(R)||!Array.isArray(R.raw)||R.length!==R.raw.length||!_.T8b&&R===R.raw||!(_.T8b&&!_.QkN||_.Wx(R))||Y+1!==R.length)throw new TypeError("$");return new M6G(Object.freeze({strings:Object.freeze(R),args:Object.freeze(A)}))};
NKi=function(R){return _.vmk(_.Q_I(R&16777215))<.5};
V6o=function(R,A,Y){var P=Y.minimumRowsOfVideosBetweenSections===void 0?1:Y.minimumRowsOfVideosBetweenSections;return R<(Y.minimumRowsOfVideosAtStart===void 0?2:Y.minimumRowsOfVideosAtStart)||A!==null&&R-A<=P?!1:!0};
JLW=function(R,A){var Y=0,P=0;R=_.x(R);for(var E=R.next();!E.done;E=R.next()){var z=E.value;if(z.richItemRenderer)z.richItemRenderer.rowIndex=P,z.richItemRenderer.colIndex=Y++,Y===A&&(Y=0,P++);else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.rowIndex=P,z.richGroupRenderer.colIndex=Y,Y+=z.richGroupRenderer.numColumns,Y===A&&(Y=0,P++);else if(z.richSectionRenderer){var c=E=void 0;if(z=_.n((E=z)==null?void 0:(c=E.richSectionRenderer)==null?void 0:c.content,_.$dZ))z.rowIndex=
P++}}};
yLj=function(R,A){var Y=A.contentElement;A=A.rendererToTagNameMap;if(Y&&A&&A.size!==0){for(var P=new Map,E=_.x(Y.children),z=E.next();!z.done;z=E.next()){z=z.value;var c=z.tagName.toLowerCase(),M=P.get(c);M||(M=[],P.set(c,M));M.push(z)}if(P.size!==0)for(E=Math.min(R.length,Y.children.length),z=new Map,c=0;c<E;c++){M=Object.keys(R[c])[0];M=A.get(M);if(!M)break;var N=z.get(M);N===void 0&&(N=0,z.set(M,N));var y=P.get(M);if(!y||N>=y.length)break;z.set(M,N+1);M=y[N];N=Y.children[c];N!==M&&(_.MlV=!0,_.spP.set(M,
!0),Y.insertBefore(M,N),_.spP.delete(M),_.MlV=!1)}}};
myQ=function(R,A,Y,P,E,z,c){P=P===void 0?{}:P;if(!R||!R.length)return{orderedContent:[]};R=R.slice();var M=[],N=[];E=null;for(var y=0,m=function(L){N.sort(function(t,d){return d.skippedOnRow-t.skippedOnRow});
for(var Z,w=(Z=N.shift())==null?void 0:Z.content;w;)!w.richSectionRenderer&&L||M.push(w),Z=void 0,w=(Z=N.shift())==null?void 0:Z.content},T=void 0,Q=void 0,g=new Set;R.length>0||N.length>0;){for(var r=[],I=A;I>0;){var b=void 0,p=void 0,h=(p=N[0]&&N[0].skippedOnRow<y?(b=N.shift())==null?void 0:b.content:void 0)!=null?p:R.shift();
if(!h)break;if(h.richItemRenderer)b=h.richItemRenderer.targetId,p=void 0,b&&((p=c)==null?0:p.has(b))&&(p=c.get(b),!T||p&&p.timestamp>T.timestamp)&&(T=p,Q&&g.add(Q),Q=b),r.push(h),I--;else if(h.richGroupRenderer&&h.richGroupRenderer.numColumns!==void 0)h.richGroupRenderer.numColumns<=I?(r.push(h),I-=h.richGroupRenderer.numColumns):I===A&&h.richGroupRenderer.numColumns>A?(r.push({richGroupRenderer:Object.assign({},h.richGroupRenderer,{numColumns:A})}),I=0):N.push({content:h,skippedOnRow:y});else if(h.richSectionRenderer)if(V6o(y,
E,P)&&I===A){M.push(h);E=y;y++;continue}else N.push({content:h,skippedOnRow:y});else if(h.continuationItemRenderer){m(!0);M.push(h);I=0;break}if(I===0)M.push.apply(M,_.py(r));else if(!Y&&R.length===0){m(!1);M.push.apply(M,_.py(r));I=0;break}}y++;T&&(M.push(T.content),y++);Q=T=void 0}JLW(M,A);z&&yLj(M,z);return{orderedContent:M,pinnedContentNotShownTargetIds:g}};
TKW=function(){return _.Ge.apply(0,arguments).flat().filter(function(R){return R}).join(";")};
v6m=function(){return sT0(QTY,TKW.apply(null,_.py(_.Ge.apply(0,arguments))))};
g6G=function(R){switch(R){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
rLW=function(R,A){if(A){var Y=_.Yp().getState().entities.flowStateEntity,P=n6Y(R),E=[A];P&&P!==A&&E.push(P);var z=!0,c;if(Y&&R.flowStateEntityKey&&((c=Y[R.flowStateEntityKey])==null?void 0:c.primaryButtonDisabled)!==void 0){var M;z=!((M=Y[R.flowStateEntityKey])==null||!M.primaryButtonDisabled)}HtG(R,P!=null?P:A,E,z)}};
Uy0=function(R){return _.Fq(_.Yp(),function(A){return A.entities.flowStateEntity},function(A,Y){if(R.flowStateEntityKey){var P,E=A==null?void 0:(P=A[R.flowStateEntityKey])==null?void 0:P.currentStepId,z;
Y=Y==null?void 0:(z=Y[R.flowStateEntityKey])==null?void 0:z.currentStepId;z=_.Yp().getState().talkToRecs;if(E&&E!==Y){var c;A=(A==null?void 0:(c=A[R.flowStateEntityKey])==null?void 0:c.stepIdStack)||Object.keys(z.stepStates);c=!Dy9(z==null?void 0:z.stepStates[E]);HtG(R,E,A,c)}}})};
$ym=function(R){return _.Fq(_.Yp(),_.$1H,function(A){var Y=n6Y(R);if(Y){var P=Object.keys(A.stepStates);A=!Dy9(A==null?void 0:A.stepStates[Y]);HtG(R,Y,P,A)}})};
Dy9=function(R){var A=Object.keys((R==null?void 0:R.selectionStates)||{}).reduce(function(z,c){return z||(R==null?void 0:R.selectionStates[c].isSelected)},!1),Y,P,E=!!(R==null?0:(Y=R.userQuery)==null?0:(P=Y.userQuery)==null?0:P.trim());
return A||E};
n6Y=function(R){if(R.flowStateEntityKey){var A,Y,P=(A=_.Yp().getState().entities.flowStateEntity)==null?void 0:(Y=A[R.flowStateEntityKey])==null?void 0:Y.currentStepId;if(P)return P}};
HtG=function(R,A,Y,P){_.Yp().dispatch(_.HT("flowStateEntity",R.flowStateEntityKey,{currentStepId:A,stepIdStack:Y,key:R.flowStateEntityKey,primaryButtonDisabled:P}))};
_.X7m=function(R,A){return _.mc(R.entities,"youchatPendingResponseEntity",A)};
_.SBn=function(R){return function(A){_.A7(_.HT("youchatPendingResponseEntity",R,{entityKey:R,isPendingResponse:A}))}};
IfG=function(R){R==null||R.addEventListener("DOMLoaded",function(){R.goToAndPlay(R.totalFrames-48,!0)})};
_.zT=function(R){this.__isSoyCss=!0;this.css=Otg.apply(null,[R.strings].concat(_.py(R.args)))};
_.zT.prototype.toString=function(){return this.css};
var M6G=function(){_.zT.apply(this,arguments)};
_.H(M6G,_.zT);var QTY=_.Z7(["",""]);var KPW;var WPH;_.jz({_template:function(){if(WPH!==void 0)return WPH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
var A=R.content,Y=A.insertBefore;KPW===void 0&&(KPW=document.createElement("template"));var P=KPW;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return WPH=R},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var jTm=new _.lU("talkToRecsFlowRenderer");var btm=new _.lU("flowRootRenderer");var ffG=new _.lU("learningJourneyQuizViewModel");var p7n=new _.lU("chipsShelfViewModel");var FPF=new _.lU("responsiveContainerConfiguration");var BKH=new _.lU("horizontalShelfViewModel");_.aff=new _.lU("engagementPanelSectionListRenderer");var CHY=new _.lU("conversationResourceViewModel");var hTm=function(){this.horizontal=!1},o6W=function(R,A){R.horizontal=A};
hTm.prototype.position=function(R,A,Y,P){P=P===void 0?1:P;R=this.delta(R)*P+A;P=Math.max(A,Y);return R>=Math.min(A,Y)&&R<=P?R:Y};
hTm.prototype.axis=function(R){R=this.direction(R);return R==="up"||R==="down"?"Y":"X"};var Hg=function(R,A,Y){A=A===void 0?_.GD():A;this.target=R;this.manager=A;this.touchAction=Y;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Hg.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(_.py(this.events)));for(var R=_.x(this.events),A=R.next();!A.done;A=R.next())this.listen(A.value)}};
Hg.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.py(this.events)));for(var R=_.x(this.events),A=R.next();!A.done;A=R.next())this.unlisten(A.value)}};
Hg.prototype.listen=function(R){this.eventMap[R]&&this.target.addEventListener(R,this.eventMap[R])};
Hg.prototype.unlisten=function(R){this.eventMap[R]&&this.target.removeEventListener(R,this.eventMap[R])};var rd=function(){hTm.apply(this,arguments)};
_.H(rd,hTm);rd.prototype.direction=function(R){var A=R.detail;R=A.deltaY;A=A.deltaX;return R&&!this.horizontal?R>0?"down":"up":A&&this.horizontal?A>0?"right":"left":"none"};
rd.prototype.distance=function(R){return Math.abs(this.delta(R))};
rd.prototype.delta=function(R){var A=this.direction(R),Y=R.detail;R=Y.deltaX;Y=Y.deltaY;return A==="up"||A==="down"?Y||0:R||0};
rd.prototype.velocity=function(R){var A=this.direction(R),Y=R.detail;R=Y.velocityX;Y=Y.velocityY;return Math.abs(A==="up"||A==="down"?Y||0:R||0)};_.Dt=function(R,A,Y,P,E,z){E=E===void 0?new rd:E;z=z===void 0?_.GD():z;Hg.call(this,A,z,P);var c=this;this.element=R;this.target=A;this.config=Y;this.input=E;this.manager=z;this.events=["panstart","panmove","panend"];this.onPanStart=function(){c.config.draggingClass&&c.element.classList.add(c.config.draggingClass);c.config.startAction&&c.config.startAction()};
this.onPanMove=function(M){var N=kkW(c,M);if(N){c.move(M,N);N.fade&&c.fade(M,N);var y=c.input.direction(M);N.moveAction&&N.moveAction(Gkg(c,M,N),y)}};
this.onPanEnd=function(M){var N,y,m,T,Q,g;return _.O(function(r){if(r.nextAddress==1){c.animationRequestId&&cancelAnimationFrame(c.animationRequestId);c.animationRequestId=void 0;N=kkW(c,M);if(!N)return r.return();y=N;m=y.triggerAction;T=y.fade;Q=y.disableFinish;g=y.translateBack;var I=c.input.velocity(M),b=c.input.distance(M),p=c.threshold(N);return I>.3&&b>10||b>p?Q?r.jumpTo(6):T?r.yield(ZtF(c,M),6):r.yield(t6H(c,M,N),6):g?r.yield(c.translateBack(M),3):r.jumpTo(3)}r.nextAddress!=3&&m&&m();c.config.draggingClass&&
c.element.classList.remove(c.config.draggingClass);c.reset();_.XH(r)})};
R=Object.keys(Y.triggers);this.directions=new Set(R);o6W(this.input,this.directions.has("right")||this.directions.has("left"))};
_.H(_.Dt,Hg);_.Dt.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var kkW=function(R,A){A=R.input.direction(A);return R.config.triggers[A]};
_.Dt.prototype.move=function(R,A){var Y=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var P=Y.input.axis(R),E=Y.input.position(R,Y.config.startPosition,A.endPosition,A.moveRatio||1);Y.element.style.transform="translate"+P+"("+E+"px)";Y.animationRequestId=void 0}))};
var Gkg=function(R,A,Y){var P=Y.moveRatio||1;Y=Math.abs(R.config.startPosition-Y.endPosition);return Math.min(R.input.distance(A)*P,Y)/Y};
_.Dt.prototype.fade=function(R,A){var Y=A.endOpacity;R=Gkg(this,R,A);R>0&&(this.element.style.opacity=""+(((Y||0)-1)*R+1))};
_.Dt.prototype.threshold=function(R){return R.threshold?R.threshold:Math.abs(R.endPosition-this.config.startPosition)/3};
var t6H=function(R,A,Y){var P,E,z,c,M,N,y;return _.O(function(m){if(m.nextAddress==1)return P=R.input.delta(A)+R.config.startPosition,E=R.input.axis(A),z=Y,c=z.endPosition,M=z.transitionEndPosition,y=(N=M)!=null?N:c,m.yield(R.element.animate([{transform:"translate"+E+"("+P+"px)"},{transform:"translate"+E+"("+y+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);R.element.style.transform="translate"+E+"("+y+"px)";_.XH(m)})};
_.Dt.prototype.translateBack=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1){if(!A.element.style.transform)return E.return();Y=A.input.axis(R);P=A.config.startPosition;return E.yield(A.element.animate([{transform:A.element.style.transform},{transform:"translate"+Y+"("+P+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}A.element.style.transform="translate"+Y+"("+P+"px)";_.XH(E)})};
var ZtF=function(R,A){var Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return Y=R.input.delta(A)+R.config.startPosition,P=R.input.axis(A),E=Y+70,z=R.element.style.opacity===""?1:R.element.style.opacity,c.yield(R.element.animate([{transform:"translate"+P+"("+Y+"px)",opacity:z},{transform:"translate"+P+"("+E+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);R.element.style.transform="translate"+P+"("+E+"px)";R.element.style.opacity="0";_.XH(c)})};var Us=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;R.scrollRate=3;R.autoScrollAnimationStart=0;R.autoScrollPaused=!1;R.autoScrollRafId=0;return R};
_.H(Us,_.rg);_.l=Us.prototype;_.l.created=function(){var R=this;this.boundAutoScrollHandler=function(A){R.autoScroll(A)}};
_.l.detached=function(){this.hostElement.removeEventListener("mouseout",_.T2(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.T2(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.T2(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.l.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.T2(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.T2(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.T2(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.T2(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.T2(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.T2(this,this.endAutoScroll)),this.endAutoScroll())};
_.l.autoScroll=function(R){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=R);var A;if(A=!this.autoScrollPaused&&this.scrollTarget)A=this.scrollTarget,A=A.scrollHeight-A.scrollTop!==A.clientHeight;A&&(A=1E3/this.scrollRate,R-=this.autoScrollAnimationStart,R>A&&(this.scrollTarget.scrollTop+=Math.ceil(R/A),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.l.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.l.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
Us.prototype.autoScrollEnabledChanged=Us.prototype.autoScrollEnabledChanged;_.C([_.S(),_.k("design:type",Object)],Us.prototype,"scrollRate",void 0);_.C([_.S(),_.k("design:type",Object)],Us.prototype,"scrollTarget",void 0);_.C([_.S(),_.k("design:type",Boolean)],Us.prototype,"autoScrollEnabled",void 0);_.C([_.vZ("autoScrollEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Us.prototype,"autoScrollEnabledChanged",null);_.C([_.Do()],Us);_.w7o=[Us.prototype];var uRo;var $K=function(){var R=_.K.apply(this,arguments)||this;R.buttonUpdate=_.v("web_button_rework");R.dismissButtonOverrides=_.v("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;R.forceDarkTheme=!1;R.forceLightTheme=!1;R.dynamicTextHeight=94;R.hasOverflowButton=!1;R.isInfeedModernization=!1;return R};
_.H($K,_.K);_.l=$K.prototype;_.l.computeUrlImg=function(R){if(R)return _.sw(R.thumbnails)};
_.l.getLogoHeight=function(R){return this.logoWithPadding(R)?"31":"24"};
_.l.getLogoClassName=function(R){return this.logoWithPadding(R)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.l.logoWithPadding=function(R){var A,Y;return(R=(A=R.thumbnails)==null?void 0:(Y=A[0])==null?void 0:Y.height)&&R%31===0?!0:!1};
_.l.sendImpressionEndpoints=function(R){R.impressionEndpoints&&_.sC(this.hostElement,R.impressionEndpoints)};
_.l.observeBasicPalette=function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.colorData)==null?void 0:A.basicColorPaletteData;Y?_.W1(this.hostElement,Y):_.W1(this.hostElement,{})};
_.l.observeDataChanged=function(){var R;this.dynamicTextHeight=((R=this.data)==null?0:R.supplementalText)?74:94;var A;this.hasSupplementalText=!((A=this.data)==null||!A.supplementalText);if(_.v("web_button_rework")){var Y,P,E,z;R=(Y=this.data)==null?void 0:(P=Y.actionButton)==null?void 0:(E=P.buttonRenderer)==null?void 0:(z=E.colorData)==null?void 0:z.basicColorPaletteData;var c,M,N;if(!((c=this.data)==null?0:(M=c.actionButton)==null?0:(N=M.buttonRenderer)==null?0:N.style)&&R){this.computeIsInfeedModernization(this.data)||
(R.borderColor=R.foregroundTitleColor);var y,m;this.set("data.actionButton.buttonRenderer",_.BO.unsafeClone((y=this.data)==null?void 0:(m=y.actionButton)==null?void 0:m.buttonRenderer))}}};
_.l.observeDataForCounterfactual=function(){if(_.v("kevlar_banner_cf_extra_logging")){var R;((R=this.data)==null?0:R.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.l.computeSupplementalStyle=function(){var R;if((R=this.data)!=null&&R.supplementalText){var A,Y,P;if((A=this.data)==null?0:(Y=A.colorData)==null?0:(P=Y.basicColorPaletteData)==null?0:P.foregroundActivatedColor)return R=_.G9(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+R+"; --yt-endpoint-hover-color:"+R+"; --yt-endpoint-visited-color:"+R+"; --yt-formatted-string-bold-font-weight:700;"}};
_.l.computeForcedDarkTheme=function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.actionButton)==null?void 0:(Y=A.buttonRenderer)==null?void 0:Y.style,E,z,c;R=NKi(((E=this.data)==null?void 0:(z=E.colorData)==null?void 0:(c=z.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return P&&R};
_.l.computeForcedLightTheme=function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.actionButton)==null?void 0:(Y=A.buttonRenderer)==null?void 0:Y.style,E,z,c;R=!NKi(((E=this.data)==null?void 0:(z=E.colorData)==null?void 0:(c=z.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return P&&R};
_.l.computeHasOverflowButton=function(R){return!!R.overflowButton};
_.l.computeHasTitle=function(R){return!!R.title};
_.l.computeTitleMaxFontSize=function(R){return this.computeHasOverflowButton(R)?28:64};
_.l.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.l.computeIsInfeedModernization=function(){var R,A,Y,P,E=(R=this.data)==null?void 0:(A=R.actionButton)==null?void 0:(Y=A.buttonRenderer)==null?void 0:(P=Y.colorData)==null?void 0:P.basicColorPaletteData;return(E==null?void 0:E.backgroundColor)===452984831||(E==null?void 0:E.backgroundColor)===218103808};
$K.prototype.observeDataForCounterfactual=$K.prototype.observeDataForCounterfactual;$K.prototype.observeDataChanged=$K.prototype.observeDataChanged;$K.prototype.observeBasicPalette=$K.prototype.observeBasicPalette;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],$K.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],$K.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$K.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$K.prototype,"buttonUpdate",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],$K.prototype,"hasSupplementalText",void 0);_.C([_.S(),_.k("design:type",Object)],$K.prototype,"dismissButtonOverrides",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.k("design:type",Boolean)],$K.prototype,"hasTitle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.k("design:type",Object)],$K.prototype,"forceDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.k("design:type",Object)],$K.prototype,"forceLightTheme",void 0);_.C([_.S(),_.k("design:type",Object)],$K.prototype,"dynamicTextHeight",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.k("design:type",Object)],$K.prototype,"hasOverflowButton",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.k("design:type",Object)],$K.prototype,"isInfeedModernization",void 0);_.C([_.vZ("data.colorData.basicColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$K.prototype,"observeBasicPalette",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$K.prototype,"observeDataChanged",null);_.C([_.vZ("data.isVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$K.prototype,"observeDataForCounterfactual",null);_.C([_.F({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],$K);
_.B($K,"ytd-banner-promo-renderer",function(){if(uRo!==void 0)return uRo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return uRo=R},{mode:1});var eTY;var qB9;var LPF;var Xu=function(){return _.K.apply(this,arguments)||this};
_.H(Xu,_.K);_.C([_.S(),_.k("design:type",Object)],Xu.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.C([_.F({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Xu);
_.B(Xu,"ytd-hashtag-grid-tile-renderer",function(){if(LPF!==void 0)return LPF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return LPF=R},{mode:1});var Se=function(){return _.K.apply(this,arguments)||this};
_.H(Se,_.K);Se.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
Se.prototype.updateRichGridTrendingHashtagsVisibility=function(){var R,A;if(((R=this.data)==null||!R.isExpanded)&&(A=this.data)!=null&&A.tiles){R=this.data.tiles.length;A=R>this.richGridItemsPerRow?this.richGridItemsPerRow+1:R;var Y=Math.ceil(R/A);this.fullyVisibleRows=R%A===1&&Y===2?1:Math.min(Y,2);this.isShowMoreVisible=this.fullyVisibleRows<Y}};
Se.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
Se.prototype.updateRichGridTrendingHashtagsVisibility=Se.prototype.updateRichGridTrendingHashtagsVisibility;_.C([_.S(),_.k("design:type",Object)],Se.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Number)],Se.prototype,"fullyVisibleRows",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Se.prototype,"isShowMoreVisible",void 0);_.C([_.S({selector:_.FE,value:0}),_.k("design:type",Number)],Se.prototype,"richGridItemsPerRow",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Se.prototype,"ytdReduxBehavior",void 0);_.C([_.vZ("data","richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Se.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.C([_.F({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],Se);
_.B(Se,"ytd-hashtag-grid-shelf-renderer",function(){if(qB9!==void 0)return qB9;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qB9=R},{mode:1});var dyg;var RWo;var Iv=function(){var R=_.K.apply(this,arguments)||this;R.visibleVideos=[];R.hiddenVideos=[];R.modern=_.v("web_modern_buttons");R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(Iv,_.K);_.l=Iv.prototype;_.l.attached=function(){var R=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",R);this.onDarkModeToggledAction(R)};
_.l.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"}}}};
_.l.dataChanged=function(){var R=this;this.requestElementsPerRow();var A,Y;this.currentColorPalette=this.isDarkTheme?(A=this.data)==null?void 0:A.darkColorData:(Y=this.data)==null?void 0:Y.lightColorData;var P;if((P=this.currentColorPalette)==null?0:P.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.RK(this,function(){R.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.l.computeIsFirstFeedItem=function(R){return R};
_.l.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&this.set("isDarkTheme",R);this.data&&(this.currentColorPalette=R?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.l.getCurrentLogo=function(R,A){if(R)return A?R.darkLogoImage:R.lightLogoImage};
_.l.computeTitleStyle=function(R){var A;if((A=this.data)!=null&&A.title&&R&&R.textPrimary!==void 0)return"color:"+_.G9(R.textPrimary)+";"};
_.l.computeSubtitleStyle=function(R){var A;if((A=this.data)!=null&&A.subtitle&&R&&R.textSecondary!==void 0)return"color:"+_.G9(R.textSecondary)+";"};
_.l.computeDismissIconStyle=function(R){if(this.data&&this.data.dismissButton&&R&&R.textPrimary!==void 0)return"--yt-button-color:"+_.G9(R.textPrimary)+";"};
_.l.computeOverflowButtonStyle=function(R){if(this.data&&this.data.overflowButton&&R&&R.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.G9(R.textPrimary)+";--yt-spec-icon-active-other:"+_.G9(R.textPrimary)+";"};
_.l.computeBackgroundStyle=function(R){if(R&&this.data){var A="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var Y=_.sw((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);Y&&(A+='background-image:url("'+Y+'");')}R.backgroundColor!==void 0&&(A+="background-color:"+_.Zs(R.backgroundColor)+";");return A}};
_.l.computeButton=function(){var R,A=Object.assign({},_.n((R=this.data)==null?void 0:R.showMoreButton,_.RC));if(this.modern&&A){A.style="STYLE_MONO_OUTLINE";var Y;if(R=(Y=this.currentColorPalette)==null?void 0:Y.textPrimary)A.colorData={basicColorPaletteData:{foregroundTitleColor:R,borderColor:R}}}return A};
_.l.shouldShowBottomButton=function(R,A){return!(R==null?0:R.header)&&!(R==null||!R.primaryButton)&&A<3};
_.l.checkExpanded=function(R){this.isExpanded=R&&R.content?this.hiddenVideos.length===0:!0};
_.l.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.l.getLogoHeight=function(R){return this.logoWithPadding(R)?"26":"20"};
_.l.getLogoImageId=function(R){return this.logoWithPadding(R)?"logo-image-with-padding":"logo-image"};
_.l.computeHasSectionHeader=function(R){return!!R.header};
_.l.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var R;if((R=this.data.primaryButton)==null?0:R.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 A;((A=this.data.dismissButton)==null?0:A.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var Y,P;((Y=this.data)==null?0:(P=Y.primaryButton)==null?0:P.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.l.setVisibleVideos=function(R){if(this.data&&this.data.content)if(this.data.content.length){var A=this.data.content.length;this.data.header?R?(this.visibleVideos=this.data.content.slice(0,Math.min(A,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(A,this.slimItemsPerRow),A)):(this.visibleVideos=this.data.content.slice(0,Math.min(A,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(A,this.elementsPerRow),A)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(A,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(A,this.elementsPerRow),A)):(this.visibleVideos=this.data.content.slice(0,Math.min(A,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(A,this.elementsPerRow-1),A))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.l.setHasMovieRenderer=function(){var R;if((R=this.data)!=null&&R.content){var A;this.hasMovieRenderer=!!_.n((A=this.data)==null?void 0:A.content[0],_.IRz)}else this.hasMovieRenderer=!1};
_.l.requestElementsPerRow=function(){_.xo(this.hostElement,"yt-request-elements-per-row")};
_.l.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var R=_.x(this.hiddenMediaRenderers),A=R.next();!A.done;A=R.next())A.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(R=_.Mo(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&R.focus()}};
_.l.updateTitleSpec=function(){var R;(R=this.data)!=null&&R.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.l.logoWithPadding=function(R){var A,Y,P;return(R=(A=this.getCurrentLogo(R,this.isDarkTheme))==null?void 0:(Y=A.thumbnails)==null?void 0:(P=Y[0])==null?void 0:P.height)&&R%31===0?!0:!1};
_.l.onUpdateElementsPerRowAction=function(R,A,Y){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R);Y&&this.slimItemsPerRow!==Y&&(this.slimItemsPerRow=Y)};
Iv.prototype.slimItemsPerRowChanged=Iv.prototype.slimItemsPerRowChanged;Iv.prototype.elementsPerRowChanged=Iv.prototype.elementsPerRowChanged;Iv.prototype.dataChanged=Iv.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Iv.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Iv.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Iv.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Iv.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Iv.prototype,"currentColorPalette",void 0);_.C([_.S(),_.k("design:type",Array)],Iv.prototype,"visibleVideos",void 0);_.C([_.S(),_.k("design:type",Array)],Iv.prototype,"hiddenVideos",void 0);
_.C([_.S(),_.k("design:type",Object)],Iv.prototype,"primaryButton",void 0);_.C([_.S({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],Iv.prototype,"elementsPerRow",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Iv.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Iv.prototype,"isExpanded",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Iv.prototype,"largeTitle",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Iv.prototype,"hasMovieRenderer",void 0);_.C([_.S(),_.k("design:type",Number)],Iv.prototype,"slimItemsPerRow",void 0);_.C([_.S(),_.k("design:type",Boolean)],Iv.prototype,"showLightVideoMetadata",void 0);_.C([_.S(),_.k("design:type",Boolean)],Iv.prototype,"showDarkVideoMetadata",void 0);_.C([_.S(),_.k("design:type",Number)],Iv.prototype,"videoMetadataColor",void 0);
_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],Iv.prototype,"miniMode",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.k("design:type",Boolean)],Iv.prototype,"isFirstFeedItem",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.k("design:type",Boolean)],Iv.prototype,"hasSectionHeader",void 0);
_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],Iv.prototype,"roundedContainer",void 0);_.C([_.HZ("#visible-video-container ytd-rich-grid-media"),_.k("design:type",Array)],Iv.prototype,"visibleMediaRenderers",void 0);_.C([_.HZ("#hidden-video-container ytd-rich-grid-media"),_.k("design:type",Array)],Iv.prototype,"hiddenMediaRenderers",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iv.prototype,"modern",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iv.prototype,"dataChanged",null);_.C([_.vZ("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iv.prototype,"elementsPerRowChanged",null);_.C([_.vZ("slimItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iv.prototype,"slimItemsPerRowChanged",null);
_.C([_.F({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Iv);
_.B(Iv,"ytd-brand-video-shelf-renderer",function(){if(RWo!==void 0)return RWo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return RWo=R},{mode:1});var AUn;var K4=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(K4,_.K);_.l=K4.prototype;_.l.attached=function(){var R=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",R);this.onDarkModeToggledAction(R)};
_.l.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.l.dataChanged=function(){this.requestElementsPerRow();var R,A;this.currentColorPalette=this.isDarkTheme?(R=this.data)==null?void 0:R.darkColorData:(A=this.data)==null?void 0:A.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.l.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.l.computeIsFirstFeedItem=function(R){return R};
_.l.onDarkModeToggledAction=function(R){R!==this.isDarkTheme&&this.set("isDarkTheme",R);this.data&&(this.currentColorPalette=R?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(R),this.updateButtonPalette())};
_.l.shouldShowThumbnailInMetadata=function(R){return R<=1};
_.l.computeVideoMetadataColor=function(){if(this.data){var R;if((R=this.currentColorPalette)==null?0:R.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.l.computeTitleStyle=function(R){var A;if((A=this.data)!=null&&A.title&&R&&R.textPrimary!==void 0)return"color:"+_.G9(R.textPrimary)+";"};
_.l.computeSubtitleStyle=function(R){var A;if((A=this.data)!=null&&A.subtitle&&R&&R.textSecondary!==void 0)return"color:"+_.G9(R.textSecondary)+";"};
_.l.computeOverflowButtonStyle=function(R){if(this.data&&this.data.overflowButton&&R.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.G9(R.textPrimary)+";--yt-spec-icon-active-other:"+_.G9(R.textPrimary)+";"};
_.l.computeBackgroundStyle=function(R){if(R&&this.data){var A="";R.backgroundColor!==void 0&&(A+="background-color:"+_.Zs(R.backgroundColor)+";");return A}};
_.l.computeHasOverflowButton=function(R){return!!R.overflowButton};
_.l.updateButtonPalette=function(){if(this.data){var R;if((R=this.data.primaryButton)==null?0:R.buttonRenderer){var A;if((A=this.currentColorPalette)==null?0:A.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var Y;((Y=this.currentColorPalette)==null?0:Y.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.l.requestElementsPerRow=function(){_.xo(this.hostElement,"yt-request-elements-per-row")};
_.l.updateTitleSpec=function(){var R;(R=this.data)!=null&&R.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")};
_.l.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R)};
K4.prototype.elementsPerRowChanged=K4.prototype.elementsPerRowChanged;K4.prototype.dataChanged=K4.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],K4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],K4.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],K4.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],K4.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],K4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],K4.prototype,"currentColorPalette",void 0);_.C([_.S(),_.k("design:type",Object)],K4.prototype,"primaryButton",void 0);
_.C([_.S({reflectToAttribute:!0,value:3}),_.k("design:type",Number)],K4.prototype,"elementsPerRow",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],K4.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],K4.prototype,"titleSize",void 0);_.C([_.S(),_.k("design:type",Number)],K4.prototype,"videoMetadataColor",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],K4.prototype,"miniMode",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.k("design:type",Boolean)],K4.prototype,"isFirstFeedItem",void 0);_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],K4.prototype,"roundedContainer",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.k("design:type",Boolean)],K4.prototype,"hasOverflowButton",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],K4.prototype,"dataChanged",null);_.C([_.vZ("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],K4.prototype,"elementsPerRowChanged",null);_.C([_.F({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],K4);
_.B(K4,"ytd-brand-video-singleton-renderer",function(){if(AUn!==void 0)return AUn;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-brand-video-singleton-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n    <div id="thumbnail-container" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n      <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n    </div>\n    <div id="metadata-container" class="style-scope ytd-brand-video-singleton-renderer">\n      <div id="metadata-text-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="title-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="featured-badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n        </div>\n      </div>\n      <div id="metadata-video-container" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" class="style-scope ytd-brand-video-singleton-renderer">\n        <ytd-rich-grid-media data="[[data.content.videoRenderer]]" hidden="[[!shouldShowThumbnailInMetadata(elementsPerRow)]]" metadata-color="[[videoMetadataColor]]" class="style-scope ytd-brand-video-singleton-renderer"></ytd-rich-grid-media>\n      </div>\n      <div id="button-container" class="style-scope ytd-brand-video-singleton-renderer">\n        <div id="primary-button" class="style-scope ytd-brand-video-singleton-renderer"></div>\n      </div>\n    </div>\n  </div>\n  <div id="overflow-button" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="attached-survey" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return AUn=R},{mode:_.Nf("kevlar_poly_si_batch_j070")?1:2});var Ycj;var PTi=_.E5(function(R){var A=R.data;return _.V(_.P1,{data:function(){return A().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(A().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var Y=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":Y=88;break a;default:Y=88}return Y},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return A().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Sj"),zWj=_.E5(function(R){var A=R.metadataRow;
var Y=R.delimiter;return _.V(_.Ue,{each:function(){return A().textParts||[]},
keyBy:"INDEX"},function(P,E){return _.V(_.lI,null,_.V(_.NU,{text:P,noWrap:!0,userInput:!0}),_.V(EGH,{delimiter:Y,max:function(){return A().textParts.length},
index:E}))})},"Tj"),EGH=_.E5(function(R){var A=R.delimiter;
var Y=R.max;var P=R.index;return _.V(_.J,{cond:function(){return(A==null?void 0:A())&&Y()-1>P()},
then:function(){return _.V("span",null,A)}})},"Uj"),ieg=_.E5(function(R){var A=R.data;
R={};return _.V("yt-profile-page-header-information-view-model",{class:_.To("profile-page-header-information-view-model-wiz",(R["profile-page-header-information-view-model-wiz--mobile"]=!1,R))},_.V(_.J,{cond:function(){return A().onTap},
then:function(){return _.V(_.DW,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.h7(A().onTap)}},_.V(_.ni,{data:function(){return A().thumbnail}},{profilePageHeaderThumbnailViewModel:PTi}))},
else:function(){return _.V("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.V(_.ni,{data:function(){return A().thumbnail}},{profilePageHeaderThumbnailViewModel:PTi}))}}),_.V("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.V(_.J,{cond:function(){return A().onTap},
then:function(){return _.V(_.ni,{data:function(){return A().title}},{profilePageHeaderTitleViewModel:function(Y){var P=Y.data;
return _.V(_.DW,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.h7(P().onTap)}},_.V(_.NU,{text:function(){return P().title}}))}})},
else:function(){return _.V(_.ni,{data:function(){return A().title}},{profilePageHeaderTitleViewModel:function(Y){var P=Y.data;
return _.V(_.NU,{text:function(){return P().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.V(_.ni,{data:function(){return A().metadata}},{profilePageHeaderMetadataViewModel:function(Y){var P=Y.data;
return _.V(_.J,{cond:function(){return P().metadataRows},
then:function(E){return _.V("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.V(_.Ue,{each:E,keyBy:"INDEX"},function(z,c){return _.V(_.lI,null,_.V(zWj,{metadataRow:z,delimiter:" \u2022 "}),_.V(EGH,{delimiter:" \u2022 ",max:function(){return E().length},
index:c}))}))}})}})))},"Vj");
ieg.idomCompat=!0;_.Ow(ieg,"yt-profile-page-header-information-view-model",{props:{data:_.VY}});var Wg=function(){return _.K.apply(this,arguments)||this};
_.H(Wg,_.K);Wg.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Wg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Wg.prototype,"data",void 0);_.C([_.F({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Wg);
_.B(Wg,"ytd-effect-pivot-header-view-model",function(){if(Ycj!==void 0)return Ycj;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Ycj=
R},{mode:1});var lbm;var je=function(){return _.K.apply(this,arguments)||this};
_.H(je,_.K);je.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],je.prototype,"data",void 0);_.C([_.F({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],je);
_.B(je,"ytd-source-pivot-header-renderer",function(){if(lbm!==void 0)return lbm;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return lbm=R},{mode:1});_.xZN=_.E5(function(R){var A=R.data;var Y=function(){var P;return _.bc((P=A())==null?void 0:P.rendererContext)};
R={};return _.V("content-list-item-view-model",{el:_.zo(_.fi(function(){return A().rendererContext})),
class:_.To("ytContentListItemViewModelHost",(R.ytContentListItemViewModelTappable=Y,R)),role:function(){return Y()?"listitem":void 0},
tabindex:function(){return Y()?0:void 0}},_.V("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.V("div",{class:"ytContentListItemViewModelImageContainer"},_.V(_.J,{cond:function(){return A().image},
then:function(P){return _.V(_.P1,{data:P,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.V(_.ni,{data:function(){var P;
return(P=A())==null?void 0:P.avatar}},{avatarViewModel:_.qW})),_.V("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.V("div",{class:_.To("ytContentListItemViewModelTitle",function(){a:{switch(A().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var P="ytContentListItemViewModelProminentTitle";
break a}P=void 0}return P})},_.V(_.NU,{text:function(){return A().title}})),_.V("div",{class:"ytContentListItemViewModelMetadata"},_.V(_.ni,{data:function(){return A().metadata}},{contentMetadataViewModel:function(P){return _.V(_.Dq,{data:P.data,
layout:1})}})))),_.V("div",{class:"ytContentListItemViewModelActionButton"},_.V(_.ni,{data:function(){var P;
return(P=A())==null?void 0:P.actionButton}},{buttonViewModel:_.Is,
toggleButtonViewModel:_.uF})))},"Wj");_.Ow(_.E5(function(R){var A=function(){return R.data().background},Y=function(){return R.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},P=function(){return R.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"};
return _.V("yt-card-view-model",{class:_.To("ytCardViewModelHost",R.className)},_.V(_.Um,{contentId:function(){return R.data().contentId}},function(){return _.V("div",{class:_.To("ytCardViewModelCardViewModelInner",function(){return g6G(R.data().cardStyle)},function(){var E;
a:{switch((E=R.data().cardState)==null?void 0:E.selectionState){case "CARD_SELECTION_STATE_SELECTED":E="ytCardViewModelSelected";break a}E=void 0}return E})},_.V(_.ni,{data:A},{cinematicContainerViewModel:function(E){return _.V(_.L_G,{data:E.data})}}),_.V("div",{class:"ytCardViewModelContentWrapper"},_.V(_.J,{cond:function(){return!Y()},
then:function(){var E={};return _.V("div",{class:"ytCardViewModelTopContentContainer"},_.V("div",{class:"ytCardViewModelTopContent"},_.V(_.ni,{data:function(){return R.data().topContent}},{contentListItemViewModel:function(z){return _.V(_.xZN,{data:z.data})}})),_.V("div",{class:_.To("ytCardViewModelInlineTrailingAction",(E.ytCardViewModelInlineCenterTrailingAction=P,E))},_.V(_.ni,{data:function(){return R.data().trailingAction}},{buttonViewModel:function(z){return _.V(_.Is,{data:z.data})}})))}}),
_.V("div",{class:"ytCardViewModelBodyContent"},_.V(_.ni,{data:function(){return R.data().bodyContent}},{contentListItemViewModel:function(E){return _.V(_.xZN,{data:E.data})}}))),_.V(_.J,{cond:function(){return Y()},
then:function(){return _.V("div",{class:"ytCardViewModelOverlayTrailingAction"},_.V(_.ni,{data:function(){return R.data().trailingAction}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data})}}))}}))}))},"Xj"),"yt-card-view-model",{props:{data:_.VY,
className:_.VY}});_.Ow(_.E5(function(R){var A=function(){return _.n(R.data().flowRoot,btm)};
_.jO(function(){var Y=A(),P=function(){},E=function(){};
if(Y){var z,c,M,N=((M=_.n((z=A())==null?void 0:(c=z.steps)==null?void 0:c[0],_.Uzi))==null?void 0:M.stepId)||"";rLW(Y,N);P=Uy0(Y);E=$ym(Y)}_.bm(function(){var y=A();y&&_.Yp().dispatch(_.HT("flowStateEntity",y.flowStateEntityKey));P();P=function(){};
E();E=function(){}})});
return _.V("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.V(_.Um,{contentId:function(){return R.data().contentId}},function(){return _.V("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.V(_.J,{cond:A,
then:function(Y){return _.V(_.Wej,{data:Y})}}))}))},"Yj"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.VY}});_.Ow(_.E5(function(){return _.V("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.V("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.V("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.V(_.bOH,null)),_.V(_.EQq,{data:{rows:1},isExploreHub:!0}))},"Zj"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.Ow(_.E5(function(R){var A=R.data;var Y=R.standardUnitMinWidth;R=_.x((0,_.x0A)(A));var P=R.next().value,E=R.next().value,z=function(){var M,N=(M=P())==null?void 0:M.contents;return N==null||N.length===0},c=function(){E(Object.assign({},P(),{contents:[]}))};
return _.V("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.zo(_.zR({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var M=_.n(A().chipsShelf,p7n);if(M!=null&&M!=null&&M.autoselectChipOnVisible){var N,y,m=_.n(M==null?void 0:(N=M.contents)==null?void 0:N[(y=M.autoselectedChipIndex)!=null?y:0],_.zA);m&&m.tapCommand&&_.Zc(m.tapCommand)}}}))},_.V(_.Um,{contentId:function(){return A().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.V("div",null,_.V("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.V(_.ni,{data:function(){return A().header}},{sectionHeaderViewModel:function(M){return _.V(_.Kv,{data:M.data,
disableHorizontalPadding:!0})}})),_.V("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.V(_.ni,{data:function(){return A().chipsShelf}},{chipsShelfViewModel:function(M){return _.V(_.dj,{data:M.data,
callback:c,selectionBehavior:1})}})),_.V("div",null,_.V(_.J,{cond:z,
then:function(){return _.V("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.V(_.EQq,{data:{rows:1},isExploreHub:!0}))}}),_.V(_.ni,{data:function(){var M;
return(M=P())==null?void 0:M.contents}},{richShelfRenderer:function(M){return _.V(_.OcN,{data:M.data,
isInnerShelf:!0,standardUnitMinWidth:Y})}})))}))},"$j"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.VY,
standardUnitMinWidth:_.VY}});var b$=function(){return _.K.apply(this,arguments)||this};
_.H(b$,_.K);
b$.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",cardViewModel:"yt-card-view-model",chipsShelfWithVideoShelfRenderer:{component:"ytd-chips-shelf-with-video-shelf-renderer",properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0,disableGridStateAware:!0}},messageRenderer:"ytd-message-renderer",
alertBannerViewModel:{component:"yt-alert-banner-view-model",params:{isInRichGrid:!0}},chipsShelfWithVideoShelfGhostCardViewModel:"ytd-chips-shelf-with-video-shelf-ghost-card-view-model"},reuseComponents:!1}}};
b$.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.C([_.U(_.Pf),_.k("design:type",Object)],b$.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],b$.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],b$.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Number)],b$.prototype,"standardUnitMinWidth",void 0);_.C([_.F({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],b$);
_.B(b$,"ytd-rich-section-renderer",function(){if(dyg!==void 0)return dyg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return dyg=R},{mode:_.Nf("kevlar_poly_si_batch_j029")?
1:2});_.Ow(_.uX0,"yt-profile-identity-info-view-model",{props:{data:_.VY,hideDivider:_.VY,isChannelInfoCard:_.VY}});_.Ow(_.it8,"yt-page-header-view-model",{props:{data:_.VY,noPadding:_.VY,enableBanner:_.VY,cinematicContainerTopbarOffset:_.VY,allowCinematicContainerOverflow:_.VY,displayAsSidebar:_.VY,displayAsPanel:_.VY,alwaysUseMediumTextDescription:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=function(){var E;return(E=A().numColumns)!=null?E:2},P=function(){return Y()>1?3:2};
R={};return _.V("ytd-rich-grid-group",{class:_.To("ytdRichGridGroupHost",(R.ytdRichGridGroupHostFirstColumn=function(){return A().colIndex===0},R)),
style:_.nY({"--ytd-rich-grid-group-num-columns":Y,"--ytd-rich-grid-items-per-group":P})},_.V("div",{class:"ytdRichGridGroupContents"},_.V(_.ni,{data:function(){var E;return(E=A().contents)==null?void 0:E.slice(0,P())}},{richItemRenderer:function(E){return _.V(_.xXA,{data:E.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"ak"),"ytd-rich-grid-group",{props:{data:_.VY}});var f4=function(){var R=_.K.apply(this,arguments)||this;R.resizeOnObserverInit=!1;R.isInlinePreviewDisabled=_.v("web_disable_inline_preview");R.disableStickyFilterBar=!1;R.transparentBackgroundChipsBar=!1;R.hideChipsBar=!1;R.isWatchDefaultLayout=!0;R.continuationShowButton=!1;R.rowReducedHorizontalMargin=!1;R.useCompactList=!1;R.manualDownloadsPresent=!1;R.smartDownloadsPresent=!1;R.isOnline=!1;R.shouldRenderDownloadsBanner=!1;R.shouldRenderDownloadsBannerUpsell=!1;R.hasOptedIntoSmartDownloads=!1;
R.elementsPerRow=4;R.typographyBump=!1;R.showGnomeContents=!1;R.showExploreHubContents=!1;R.slimItemsPerRow=1;R.pageLoadingFromNavigation=!1;R.resizeObserver=null;R.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"};R.rendererToTagNameMap=
new Map(Object.entries(R.contentMapping()).map(function(A){var Y=_.x(A);A=Y.next().value;Y=Y.next().value;return[A,Y.component]}));
R.insertedContent=new Map;return R};
_.H(f4,_.K);_.l=f4.prototype;_.l.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var R=_.x(_.Mo(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),A=R.next();!A.done;A=R.next())A.value.useCompactList=this.useCompactList};
_.l.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var R=_.x(_.Mo(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),A=R.next();!A.done;A=R.next())A=A.value,A.sizing=this.sizing,A.typographyBump=this.typographyBump};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",
isHomeGrid:"[[isHomePage]]"},params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.l.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}}};
_.l.attached=function(){document.addEventListener("yt-page-type-changed",_.T2(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$21873_throttledOnResize=new _.kH(this.resizeObserved,_.cU("rich_grid_resize_delay_ms",50),this)};
_.l.detached=function(){var R;(R=this.resizeObserver)==null||R.disconnect();document.removeEventListener("yt-page-type-changed",_.T2(this,this.onPageChange))};
_.l.insertRichSection=function(R){var A=R.richItemTargetId;R=R.richSectionRendererToInsert;A&&R&&(this.insertedContent.set(A,{content:R,timestamp:Date.now()}),this.reflowContent())};
_.l.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.l.computeIsInlinePreviewEnabled=function(R,A,Y){return _.v("web_disable_inline_preview")?!1:!Y&&_.VXn({miniplayerIsActive:R,miniplayerPlaybackState:A})};
_.l.computeSizing=function(){var R=_.tfb(this.data);if(R||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return R?this.useCompactList?"COMPACT":R:this.miniMode?"COMPACT":_.v("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.l.updateItemMinAndMaxWidth=function(){var R=_.cU("rich_grid_max_item_width",500);R>0&&_.ya(this.hostElement,{"--ytd-rich-grid-item-max-width":R+"px"});var A;R=this.getRichItemMinWidth((A=this.hostElement)==null?void 0:A.clientWidth);R>0&&_.ya(this.hostElement,{"--ytd-rich-grid-item-min-width":R+"px"})};
_.l.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.l.resizeObserved=function(){_.MT(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.l.navigateBackToHome=function(){_.v("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.v("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var R=_.is().resolve(_.YH).isOnWatch(),A,Y=((A=_.Hr(location.pathname))==null?void 0:A.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(Y)||R)&&this.gnomeContents&&_.v("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);R&&this.exploreHubContents&&_.v("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Yp().dispatch(_.cK({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.l.onPageChange=function(){var R=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.MT(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.fn.addJob(function(){R.pageLoadingFromNavigation=!1;R.setMasthead();R.maybeSetBigYoodle();R.forceRefreshAndLog();R.terminateVideoPreview();_.v("web_hide_gnome_until_user_navigates_back_to_home")&&(R.dataChanged(),_.RK(R,function(){if(R.showGnomeContents){var A=Array.from(_.Mo(R.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(P){P=
_.Mo(P).querySelector("ytd-rich-shelf-renderer");return!!P&&P.isGnomeShelf()});
if(A){A=A.offsetTop-R.contentsElement.offsetTop;var Y=_.is().resolve(_.YH).getCurrentPage();Y&&Y.getPageScrollingElement().scrollTo({top:A,behavior:"smooth"})}}}));
_.v("web_hide_explore_hub_until_user_navigates_back_to_home")&&(R.dataChanged(),_.RK(R,function(){if(R.showExploreHubContents&&!_.v("web_explore_hub_no_scroll")){var A=Array.from(_.Mo(R.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(P){return!!P.querySelector("ytd-talk-to-recs-flow-renderer")});
if(A){A=A.offsetTop-R.contentsElement.offsetTop;var Y=_.is().resolve(_.YH).getCurrentPage();Y&&Y.getPageScrollingElement().scrollTo({top:A,behavior:"smooth"})}}}))},8)):((_.v("web_hide_gnome_until_user_navigates_back_to_home")||_.v("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.l.dataChanged=function(){var R=this;_.MT(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.RK(this,function(){R.updateRichItemGridPositions();R.contentsElement&&_.ya(R.hostElement,{"--ytd-rich-grid-content-offset-top":R.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.l.initResizeObserver=function(){var R=this;if(window.ResizeObserver){var A;(A=this.resizeObserver)==null||A.disconnect();var Y=!1;this.resizeObserver=new ResizeObserver(function(){if(Y){var P;(P=R.resizeObserver)==null||P.disconnect();var E;(E=R.JSC$21873_throttledOnResize)==null||E.fire();requestAnimationFrame(function(){var c;(c=R.JSC$21873_throttledOnResize)==null||c.fire();R.initResizeObserver()})}else if(Y=!0,R.resizeOnObserverInit){var z;
(z=R.JSC$21873_throttledOnResize)==null||z.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.l.contentLengthChanged=function(){if(_.v("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.MT(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.updateElementsPerRow=function(){_.MT(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.cK({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.cK({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.l.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.l.onRichShelfRendererCollapse=function(R){if(this.shownItems){var A=R.detail;R=this.shownItems.findIndex(function(P){var E,z;return((z=_.n(P==null?void 0:(E=P.richSectionRenderer)==null?void 0:E.content,_.$dZ))==null?void 0:z.trackingParams)===A});
var Y=R+1;R<0||Y>=this.contentsElement.children.length||!this.shownItems[Y].richItemRenderer||this.contentsElement.children[Y].scrollIntoView({behavior:"smooth",block:"start"})}};
_.l.onSoftReloadPage=function(){this.scrollUpToTop()};
_.l.handleRerenderDownloadsData=function(){_.v("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.l.handlePlaylistRemoveVideosAction=function(R){var A;if(((A=_.n(R,_.ZAb))==null?0:A.setVideoIds)&&this.data&&this.data.contents){R=_.n(R,_.ZAb).setVideoIds;for(A=this.data.contents.length-1;A>=0;){var Y=_.n(this.data.contents[A],_.aY);(Y=Y&&_.n(Y.content,_.d3))&&Y.setVideoId&&R.includes(Y.setVideoId)&&this.splice("data.contents",A,1);A--}this.updateIndices()}};
_.l.updateIndices=function(){if(this.data&&this.data.contents)for(var R=0;R<this.data.contents.length;R++)this.set("data.contents."+R+".richItemRenderer.index",_.dF(String(R+1)))};
_.l.hasTopRowInlinePlayableVideoWithEndorsement=function(R){var A;return!((A=R.slice(0,this.getItemsPerRow()))==null||!A.some(function(Y){var P;Y=_.n(Y==null?void 0:(P=Y.richItemRenderer)==null?void 0:P.content,_.Y5);var E;return(Y==null?void 0:Y.inlinePlaybackEndpoint)&&(Y==null?void 0:(E=Y.thumbnailOverlays)==null?void 0:E.some(function(z){return z.thumbnailOverlayEndorsementRenderer}))}))};
_.l.refreshGridLayoutNew=function(R,A,Y,P){var E=P.postsPerRow;var z=P.slimItemsPerRow;var c=P.gameCardsPerRow;P=P.miniGameCardsPerRow;var M;if((M=this.data)==null||!M.contents||!this.containerWidth)return!1;var N;if((N=this.data.responsiveContainerConfiguration)==null?0:N.responsiveSize){var y=_.H28(this.data.responsiveContainerConfiguration,this.containerWidth),m;M=_.Ci(Object.assign({},y,{standardUnitMinWidth:(m=this.data)==null?void 0:m.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&y.isCompactList)}else M=_.Ci({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(y=this.data)==null?void 0:y.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=M.typographyBump;m=!1;if(R||this.elementsPerRow!==M.numItems||this.postsPerRow!==E||this.slimItemsPerRow!==z||this.gameCardsPerRow!==
c||this.miniGameCardsPerRow!==P||this.gutter!==M.gutter)m=this.elementsPerRow!==M.numItems,this.elementsPerRow=M.numItems,this.postsPerRow=E,this.slimItemsPerRow=z,this.gameCardsPerRow=c,this.miniGameCardsPerRow=P,this.gutter=M.gutter,this.itemWidth=M.itemWidth,this.reflowContent(A),_.ya(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":M.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(Y);this.ytdReduxBehavior.dispatch(_.cK({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:M.maxContainerWidth}));return m};
_.l.refreshGridLayout=function(R,A){var Y,P=(Y=this.hostElement)==null?void 0:Y.clientWidth;this.containerWidth=this.adjustRichGridWidth(P,!0);var E;if((E=this.data)==null||!E.contents||!this.containerWidth)return R&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(R=!0,this.pendingForceReflow=!1);Y=this.getRichItemMinWidth(P);var z=this.isShortsPanel?146:194,c=this.getMiniGameCardMinWidth(),M=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;P=Y=this.calcElementsPerRow(Y,
M);(E=Y<=3&&this.miniModeAllowed())&&(Y=this.calcElementsPerRow(240,4));var N=this.calcMaxSlimElementsPerRow(Y,M,this.isDefaultGrid);M=this.calcElementsPerRow(z,N);var y=this.calcElementsPerRow(this.isCompactGrid?z:154,N);z=this.calcElementsPerRow(this.isCompactGrid?z:c,N);c=!1;if(this.sizing)return this.refreshGridLayoutNew(R,A,E,{postsPerRow:P,slimItemsPerRow:M,gameCardsPerRow:y,miniGameCardsPerRow:z});if(R||this.elementsPerRow!==Y||this.postsPerRow!==P||this.slimItemsPerRow!==M||this.gameCardsPerRow!==
y||this.miniGameCardsPerRow!==z)c=this.elementsPerRow!==Y,this.elementsPerRow=Y,this.postsPerRow=P,this.slimItemsPerRow=M,this.gameCardsPerRow=y,this.miniGameCardsPerRow=z,this.reflowContent(A),this.updateElementsPerRow(),_.ya(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)&&_.ya(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(E);_.MT(this.hostElement,"yt-rich-grid-layout-refreshed");return c};
_.l.getRichItemMinWidth=function(R){var A=_.cU("rich_grid_min_item_width",310);if(!_.v("kevlar_disable_min_width_override")){var Y,P;A=(P=(Y=this.data)==null?void 0:Y.minItemWidth)!=null?P:A}return A+_.a66(R)};
_.l.calcMaxSlimElementsPerRow=function(R,A,Y){return(Y===void 0?0:Y)?R===1?2:R%2===0?R/2*3:R+2:A*2};
_.l.adjustRichGridWidth=function(R,A){var Y=_.v("disable_rich_grid_guide_compensation");if(!this.isWatch&&!Y){Y=_.is().resolve(_.z3(_.xX));var P=Y==null?void 0:Y.guideElement;if(!(!Y||Y.getData()||P!=null&&P.opened||Y.getMiniGuideVisible()))if(Y.canFitPersistentGuide(R)&&Y.getGuideExpandsAutomatically()){var E,z,c=Number((E=window.getComputedStyle(this.hostElement))==null?void 0:(z=E.getPropertyValue("--app-drawer-width"))==null?void 0:z.replace("px",""));R-=c||0}else if(Y.canFitMiniGuide(R)){var M;
E=Number((c=window.getComputedStyle(this.hostElement))==null?void 0:(M=c.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:M.replace("px",""));R-=E||0}}R>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(R-=A?32:48));return R};
_.l.calcElementsPerRow=function(R,A){var Y=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),P=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((Y+P)/(R+P))||1,A)};
_.l.reflowContent=function(R){var A=this;if(!this.isReflowing){this.isReflowing=!0;var Y,P,E=!!((Y=this.data)==null?0:(P=Y.contents)==null?0:P.some(function(g){return _.n(g,_.eb)}));
Y=this.getItemsPerRow();var z;P=(z=this.data)==null?void 0:z.reflowOptions;R&&(_.Fh("rgr_s"),_.RK(this,function(){_.Fh("rgr_nrf")}));
R={};(z=_.Mo(this.hostElement).querySelector("#contents"))&&(R={contentElement:z,rendererToTagNameMap:this.rendererToTagNameMap});z=(z=this.data.contents)?z.slice():[];var c=(_.v("web_hide_gnome_behind_feed_filter_chip")||_.v("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,M=_.v("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,N=-1,y=-1;if(this.isHomePage&&M){for(M=0;M<z.length;M++){var m=void 0,T=void 0;_.n((m=z[M])==null?void 0:
(T=m.richSectionRenderer)==null?void 0:T.content,jTm)&&(y=M)}y>-1&&(this.exploreHubContents=z.splice(y,1))}if(this.isHomePage&&c){for(y=0;y<z.length;y++)T=m=void 0,(M=_.n((m=z[y])==null?void 0:(T=m.richSectionRenderer)==null?void 0:T.content,_.$dZ))&&c&&(T=m=void 0,M=_.n((m=M)==null?void 0:(T=m.contents)==null?void 0:T[0],_.aY),m=void 0,_.n((m=M)==null?void 0:m.content,_.$2E)&&(N=y));N>-1&&(this.gnomeContents=z.splice(N,1))}E=myQ(z,Y,E,P,this.getRichGridStyle(),R,this.insertedContent);var Q=E.orderedContent;
if(E=E.pinnedContentNotShownTargetIds)for(E=_.x(E),Y=E.next();!Y.done;Y=E.next())this.insertedContent.delete(Y.value);E=function(){A.shownItems=Q;A.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(Q),_.RK(this,E)):E()}};
_.l.getFirstRowItems=function(R){for(var A=[],Y=0;Y<R.length;Y++){var P=void 0,E=void 0,z=void 0,c=void 0,M=void 0,N=void 0;if(((P=R[Y])==null?void 0:(E=P.richItemRenderer)==null?void 0:E.rowIndex)===0||((z=R[Y])==null?void 0:(c=z.richGroupRenderer)==null?void 0:c.rowIndex)===0||((M=R[Y])==null?void 0:(N=M.richSectionRenderer)==null?void 0:N.rowIndex)===0)A.push(R[Y]);else break}return A};
_.l.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.l.resetInsertedContentIfNeeded=function(){(_.v("web_explore_hub_on_hover")||_.v("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.l.handleChipCloudChipSelectAction=function(R,A){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed();_.v("web_hide_gnome_behind_feed_filter_chip")&&(A?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.l.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.v("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.l.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();_.v("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.l.terminateVideoPreview=function(){_.MT(this.hostElement,"yt-terminate-video-preview-action")};
_.l.updateRichItemGridPositions=function(){var R={gridData:{gridColumnCount:this.elementsPerRow}},A;((A=this.data)==null?0:A.trackingParams)&&(A=_.F9())&&_.dH(A,_.S5(this.data.trackingParams),R);_.MT(this.hostElement,"ytd-rich-item-index-update-action")};
_.l.miniModeAllowed=function(){return this.isChannelPage};
_.l.getMiniGameCardMinWidth=function(){return 154};
_.l.updateMiniMode=function(R){this.miniMode=this.miniModeAllowed()&&R;this.ytdReduxBehavior.dispatch(_.cK({type:"SET_RICH_GRID_MINI_MODE",payload:R}))};
_.l.isCurrentPage=function(){return location.pathname===this.pagePath};
_.l.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var R=_.is().resolve(_.YH).getCurrentPage();R&&R.setScrollTop(0)}};
_.l.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.l.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.l.maybeSetBigYoodle=function(){var R,A=(R=this.data)==null?void 0:R.bigYoodle;this.bigYoodleData!==A&&(this.bigYoodleData=A)};
_.l.setMasthead=function(){var R;((R=this.data)==null?0:R.masthead)?this.mastheadData=this.data.masthead:_.v("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.l.getRichGridStyle=function(){var R,A;return(A=(R=this.data)==null?void 0:R.style)!=null?A:"RICH_GRID_STYLE_UNKNOWN"};
_.l.onIsShortsGridChange=function(){var R=this.ytdReduxBehavior,A=R.dispatch,Y=this.getRichGridStyle();A.call(R,_.cK({type:"SET_RICH_GRID_STYLE",payload:Y}))};
_.Yh.Object.defineProperties(f4.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var R=_.is().resolve(_.YH).getCurrentPage(),A,Y,P;return(((A=this.data)==null?void 0:A.targetId)==="browse-feedFEsfv_audio_pivot"||_.v("web_enable_channel_pivot_panel")&&((Y=this.data)==null?void 0:Y.targetId)==="browse-feedFEsfv_channel_pivot"||_.v("web_enable_effect_pivot_panel")&&((P=this.data)==null?void 0:P.targetId)==="browse-feedFEsfv_effect_pivot")&&(R==null?void 0:R.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.v("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 R;return!((R=this.data)==null?0:R.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var R;return((R=_.is().resolve(_.YH).getCurrentPage())==null?void 0:R.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var R;return((R=_.is().resolve(_.YH).getCurrentPage())==null?void 0:R.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"}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.targetId)||"")==="watch-next-feed"&&!_.v("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?0:R.enableContentSpecificAspectRatio)||((A=this.data)==null?0:(Y=A.responsiveContainerConfiguration)==null?0:Y.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.cU("web_continuation_handler_margin",0):0}}});
f4.prototype.onIsShortsGridChange=f4.prototype.onIsShortsGridChange;f4.prototype.onReloadContinuationFinish=f4.prototype.onReloadContinuationFinish;f4.prototype.reflowContent=f4.prototype.reflowContent;f4.prototype.handleRerenderDownloadsData=f4.prototype.handleRerenderDownloadsData;f4.prototype.onRichShelfRendererCollapse=f4.prototype.onRichShelfRendererCollapse;f4.prototype.onRequestElementsPerRow=f4.prototype.onRequestElementsPerRow;f4.prototype.contentLengthChanged=f4.prototype.contentLengthChanged;
f4.prototype.dataChanged=f4.prototype.dataChanged;f4.prototype.onSizingChange=f4.prototype.onSizingChange;f4.prototype.onUseCompactListChange=f4.prototype.onUseCompactListChange;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],f4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],f4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],f4.prototype,"ironResizableBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],f4.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],f4.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],f4.prototype,"componentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],f4.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],f4.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],f4.prototype,"miniMode",void 0);_.C([_.S({value:[]}),_.k("design:type",Array)],f4.prototype,"shownItems",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],f4.prototype,"isReflowing",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],f4.prototype,"isFilteredFeed",void 0);_.C([_.S({selector:_.LA3}),_.k("design:type",Boolean)],f4.prototype,"guideIsExpanded",void 0);
_.C([_.S({selectorArgs:["entitySelectorType"],selector:function(R,A){if(_.v("kevlar_modern_downloads_page")&&A&&A!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(A){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":A=R.entities;var Y=_.j9(A),P=_.bw(A),E=_.ydS(R),z=_.JdS(R),c=_.maP(R),M=_.hSI(A),N=_.$b(Y),y=_.fx(A);return _.yqI(Y,P,M,_.Z_k(A),E,z,N,y,c,_.Qmk(R),_.Cx(R));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return R=_.j9(R.entities),_.TQk(R);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return R=
_.BYb(R.entities),_.QOJ(R);default:_.pK(new _.XN("Error: entitySelectorType defined but not matched in selector.",R,A))}}}),
_.k("design:type",Object)],f4.prototype,"entityDrivenRichGridData",void 0);_.C([_.S(),_.k("design:type",Object)],f4.prototype,"resizeOnObserverInit",void 0);_.C([_.S(),_.k("design:type",Object)],f4.prototype,"bigYoodleData",void 0);_.C([_.S(),_.k("design:type",Object)],f4.prototype,"mastheadData",void 0);_.C([_.S(),_.k("design:type",Boolean)],f4.prototype,"isInlinePreviewDisabled",void 0);_.C([_.S(),_.k("design:type",Object)],f4.prototype,"disableStickyFilterBar",void 0);
_.C([_.S(),_.k("design:type",Object)],f4.prototype,"transparentBackgroundChipsBar",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],f4.prototype,"hideChipsBar",void 0);_.C([_.S(),_.k("design:type",Object)],f4.prototype,"isWatchDefaultLayout",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],f4.prototype,"continuationShowButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],f4.prototype,"rowReducedHorizontalMargin",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],f4.prototype,"useCompactList",void 0);_.C([_.S({selector:function(R){return _.bw(R.entities).length>0}}),
_.k("design:type",Object)],f4.prototype,"manualDownloadsPresent",void 0);_.C([_.S({selector:function(R){return _.j9(R.entities).length>0}}),
_.k("design:type",Object)],f4.prototype,"smartDownloadsPresent",void 0);_.C([_.S({selector:_.Cx}),_.k("design:type",Object)],f4.prototype,"isOnline",void 0);_.C([_.S({selector:_.JdS}),_.k("design:type",Object)],f4.prototype,"shouldRenderDownloadsBanner",void 0);_.C([_.S({selector:_.Qmk}),_.k("design:type",Object)],f4.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.C([_.S({selector:_.ydS}),_.k("design:type",Object)],f4.prototype,"hasOptedIntoSmartDownloads",void 0);
_.C([_.vZ("useCompactList"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"onUseCompactListChange",null);_.C([_.vZ("sizing","typographyBump"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"onSizingChange",null);_.C([_.S({selector:_.E7k}),_.k("design:type",Number)],f4.prototype,"miniplayerPlaybackState",void 0);_.C([_.S({selector:_.BK}),_.k("design:type",Boolean)],f4.prototype,"miniplayerIsActive",void 0);
_.C([_.S({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.k("design:type",Boolean)],f4.prototype,"isInlinePreviewEnabled",void 0);_.C([_.S({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.k("design:type",String)],f4.prototype,"sizing",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],f4.prototype,"elementsPerRow",void 0);
_.C([_.S(),_.k("design:type",Object)],f4.prototype,"typographyBump",void 0);_.C([_.S(),_.k("design:type",Number)],f4.prototype,"itemWidth",void 0);_.C([_.nG("#header"),_.k("design:type",HTMLElement)],f4.prototype,"headerElement",void 0);_.C([_.nG("#contents"),_.k("design:type",HTMLElement)],f4.prototype,"contentsElement",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"dataChanged",null);
_.C([_.Ul("data.contents.length"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"contentLengthChanged",null);_.C([_.Qa("yt-request-elements-per-row"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"onRequestElementsPerRow",null);
_.C([_.Qa("yt-rich-shelf-renderer-collapse"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],f4.prototype,"onRichShelfRendererCollapse",null);_.C([_.Ul("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"handleRerenderDownloadsData",null);
_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],f4.prototype,"entitySelectorType",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isSub",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isWatch",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data.targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isShortsPanel",null);_.C([_.S({reflectToAttribute:!0}),_.X("isWatch"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"reducedTopMargin",null);_.C([_.S({reflectToAttribute:!0}),_.X("data","isWatch","isWatchDefaultLayout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"noTopMargin",null);
_.C([_.S({reflectToAttribute:!0}),_.X("isInlinePreviewEnabled","shownItems"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"topRowEndorsement",null);_.C([_.X("data.header"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"hideHeader",null);_.C([_.Qa("yt-rich-grid-reflow"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],f4.prototype,"reflowContent",null);
_.C([_.Qa("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"onReloadContinuationFinish",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isSlimGrid",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isShortsGrid",null);
_.C([_.X("data","isSlimGrid","isShortsGrid"),_.S(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"noRichItemGutterMargins",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isShortsGridSlim",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isCompactGrid",null);
_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"isDefaultGrid",null);_.C([_.X("data.targetId"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"hideChipsBarOnWatch",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],f4.prototype,"onIsShortsGridChange",null);
_.C([_.X("data.enableContentSpecificAspectRatio"),_.S(),_.k("design:type",Boolean),_.k("design:paramtypes",[])],f4.prototype,"force16By9ThumbnailAspectRatio",null);_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],f4.prototype,"continuationTriggerOffset",null);_.C([_.F({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],f4);
_.B(f4,"ytd-rich-grid-renderer",function(){if(eTY!==void 0)return eTY;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return eTY=R},{mode:2});var cU0=_.E5(function(R){var A=R.thumbsUp,Y=R.thumbsDown,P=R.rightAlignThumbs;R=_.x(_.yy(!1,void 0,"OxPsH"));var E=R.next().value,z=R.next().value;R=_.x(_.yy(!1,void 0,"V5vWne"));var c=R.next().value,M=R.next().value;R={};return _.V("div",{class:_.To("ytwThumbsUpDownThumbs",(R.ytwThumbsUpDownRightAlign=function(){return P==null?void 0:P()},R))},_.V(_.uF,{data:A,
onToggle:function(N){z(N);c()&&M(!1)},
buttonShapeOverrides:function(){return{toggled:E()}}}),_.V(_.uF,{data:Y,
onToggle:function(N){M(N);E()&&z(!1)},
buttonShapeOverrides:function(){return{toggled:c()}}}))},"bk");
cU0.idomCompat=!0;var M2m=_.E5(function(R){var A=function(){return R.data().pendingStateEntityKey||""},Y=_.vT(_.X7m,A),P=function(){var M;
if(!(M=R.disabled())){var N;M=!((N=Y())==null||!N.isPendingResponse)}return M},E=_.x(_.yy(v6m(""),void 0,"NwQXfe")),z=E.next().value,c=E.next().value;
_.WD(function(){requestAnimationFrame(function(){var M=R.data().onShowAnimationMs||0;M=M>0?v6m("--chip-animation-duration: "+M+"ms;"):v6m("");c(M)})});
return _.V("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:z},_.V(_.Ue,{each:function(){return R.data().chipData||[]},
keyBy:"REFERENCE"},function(M){return _.V(Oeg,{data:M,disabled:P,pendingStateKey:A,onError:R.onError})}))},"ck"),Oeg=_.E5(function(R){var A=_.d5("button"),Y=_.x(_.yy(!0,void 0,"G4GPGe")),P=Y.next().value,E=Y.next().value,z=function(){return R.data().text.content},c=function(){return R.data().transparentWhenLoading},M=_.Qi(function(N){var y,m,T,Q,g,r,I,b;
return _.O(function(p){switch(p.nextAddress){case 1:N.stopPropagation();if(R.disabled())return p.return();m=String(Math.floor(((y=_.J4())==null?void 0:y.getCurrentTime())||0)*1E3);T="youchat-"+Date.now();Q=function(){_.oZ(R.data().onClick||{});var h={continuationCommand:{token:R.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},L={inputComposerFormData:{clientMessageId:T,playerOffsetMs:m}};return new Promise(function(Z,w){_.oZ(h,{form:{formData:L},commandController:{onSuccess:function(t,
d){Z(d)},
onServerError:function(t,d){w(d.error)}}})})};
g=_.SBn(R.pendingStateKey());g(!0);_.cLg("#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");E(!1);_.g2(p,2);return p.yield(Q(),4);case 4:_.us(p,3);break;case 2:r=_.UT(p),(b=(I=R).onError)==null||b.call(I,r);case 3:g(!1),_.XH(p)}})});
return _.V(_.J,{cond:P,then:function(){return _.V("div",{class:"ytwYouChatChipsDataChipWrapper"},_.V("button",{el:A,class:"ytwYouChatChipsDataChip","data-disabled":R.disabled,"data-transparent-loading":c,"on:click":M,tabindex:0},z))}})},"dk");var suH=_.E5(function(R){var A=R.data;var Y=R.initiallyExpanded;var P=function(){var y;return(y=A().conversationResourceData)==null?void 0:y.learningGuideData};
R=_.x(_.gl(function(){var y;return(y=Y==null?void 0:Y())!=null?y:!1}));
var E=R.next().value,z=R.next().value,c=function(){z(!0)},M=_.gE(function(){var y,m;
return(m=(y=P())==null?void 0:y.sections)!=null?m:[]},void 0,"aPRmH"),N=_.gE(function(){return M().length>4},void 0,"PUPDyc");
R=_.gE(function(){var y;return!E()&&N()&&(y=P())!=null&&y.expandButton?M().slice(0,4):M()},void 0,"wUz4Ud");
return _.V("yt-conversation-resource-view-model",{class:_.To("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.V(_.ni,{data:R},{expandableMetadataViewModel:_.nDN}),_.V(_.J,{cond:function(){return N()&&!E()},
then:function(){return _.V("div",{id:"showMoreButton"},_.V(_.ni,{data:function(){var y;return(y=P())==null?void 0:y.expandButton}},{buttonViewModel:function(y){return _.V(_.Is,{data:y.data,
onClick:c})}}))}}))},"ek");var NTf=_.E5(function(R){var A=function(){var t;return(t=R.data().text)==null?void 0:t.content},Y=function(){var t,d;
return(t=R.data().webData)==null?void 0:(d=t.textResult)==null?void 0:d.content},P=_.is().resolve(_.AM),E=_.yJ(),z=function(){return R.data().chatResponseStyle},c=function(){return!R.data().transparentBackground},M=function(){return R.data().rightAlignThumbs},N=function(){return R.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||R.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},y=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:N()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:R.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},m=function(){var t;
return R.data().webData||((t=R.data().text)==null?void 0:t.content)||R.data().videoResultsData||R.data().conversationResourceViewModel||R.data().quiz},T=function(){return!!R.data().sectionHeader||m()},Q=function(){var t;
return(t=R.data().videoResultsData)==null?void 0:t.videoShelf},g=function(){var t;
return _.n(((t=R.data().videoResultsData)==null?void 0:t.videoShelf)||{},BKH)},r=function(){var t;
return(t=R.data().webData)==null?void 0:t.sourcesShelf},I=function(){var t;
return _.n(((t=R.data().webData)==null?void 0:t.sourcesShelf)||{},BKH)},b=function(){return _.n(R.data().conversationResourceViewModel||{},CHY)},p=function(){return _.n(R.data().quiz||{},ffG)},h=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:R.data().thumbsDownViewModel&&R.data().thumbsUpViewModel},L=function(){return _.n(R.data().thumbsUpViewModel,_.iS)},Z=function(){return _.n(R.data().thumbsDownViewModel,_.iS)};
_.WD(function(){requestAnimationFrame(function(){var t;(t=R.shouldAnimateIcon)!=null&&t.call(R)&&IfG(E.lottieEl)})});
var w={};return _.V("you-chat-item-view-model",{class:_.To("ytwYouChatItemViewModelYouChatItemViewModel",(w.ytwYouChatItemViewModelColumnLayout=function(){return N()},w)),
"data-target-id":function(){return R.data().id||""}},_.V(_.J,{cond:function(){return R.data().removeIcon?!1:T()},
then:function(){var t={};return _.V("div",{"aria-hidden":"true"},_.V(_.pH,{className:_.To("ytwYouChatItemViewModelIcon",(t.ytwYouChatItemViewModelRtl=P==="rtl",t.ytwYouChatItemViewModelHidden=function(){return!(R.data().hideIcon||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:T())},t)),
animationName:"YOUCHAT_ICON",data:y,animationRef:E}))}}),_.V(_.J,{cond:T,
then:function(){var t={};return _.V("div",{class:_.To("ytwYouChatItemViewModelHost",(t.ytwYouChatItemViewModelHostNoPadding=function(){return!!R.data().sectionHeader&&!m()},t.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},t.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},t.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
t.ytwYouChatItemViewModelGradientBackground=c,t)),
role:"alert"},_.V(_.J,{cond:A,then:function(d){return _.V(_.lN,{text:d,wrapCodeBlocks:!0})}}),_.V(_.ni,{data:function(){return R.data().sectionHeader}},{sectionHeaderViewModel:function(d){var Jk={};
return _.V(_.Kv,{data:d.data,className:_.To("ytwYouChatItemViewModelSectionHeader",(Jk.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!R.data().sectionHeader&&!m()},Jk))})}}),_.V(_.J,{cond:Y,
then:function(d){return _.V(_.lN,{text:d,wrapCodeBlocks:!0})}}),_.V(_.J,{cond:Q,
then:function(){return _.V("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.V(_.ES,{data:g,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.V(_.J,{cond:r,
then:function(){return _.V("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.V(_.ES,{data:I,hasPeek:!0,disableArrows:!1}))}}),_.V(_.J,{cond:b,
then:function(){return _.V(suH,{data:b})}}),_.V(_.J,{cond:p,
then:function(){return _.V(_.F_H,{data:p})}}),_.V(_.J,{cond:h,
then:function(){return _.V(cU0,{thumbsUp:L,thumbsDown:Z,rightAlignThumbs:M})}}))}}),_.V(_.J,{cond:function(){return R.data().chipsData},
then:function(t){return _.V(M2m,{data:t,disabled:R.pending,onError:R.onError})}}))},"fk");
NTf.idomCompat={callbacks:{onError:!0,onSend:!0}};var V2i=_.E5(function(R){var A=function(){return R.data().choiceSelectedText},Y=function(){return R.data().hasGradientBackground},P={};
return _.V("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.V(_.J,{cond:A,then:function(){return _.V("div",{class:"ytYouChatUserTurnChoiceSelected"},_.V(_.NU,{text:A}))}}),_.V("div",{class:_.To("ytYouChatUserTurnUserMessage",(P.ytYouChatUserTurnGradientContainer=Y,P.ytYouChatUserTurnDefaultContainer=function(){return!Y()},P))},function(){return R.data().text}))},"gk");var JUQ=_.E5(function(R){var A=_.x((0,_.MUG)(R.data)).next().value;return _.V("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return R.data().targetId||""}},_.V(_.ni,{data:function(){return R.data().header}},{chipBarViewModel:_.EKA}),_.V(_.ni,{data:function(){return A().contents}},{accordionViewModel:_.hDz,
alertBannerViewModel:_.svZ,chatLoadingViewModel:_.fZ0,chatUserTurnViewModel:V2i,learningJourneyLoaderViewModel:_.jvq,lockupViewModel:function(Y){return _.V(_.SW,{data:Y.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:R.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
videoOverviewViewModel:_.qsH,youChatItemViewModel:function(Y){return _.V(NTf,{data:Y.data,pending:!1})}}))},"hk");_.Ow(_.E5(function(R){var A=_.x((0,_.MUG)(R.data)).next().value,Y=_.LK("yt-section-list-renderer"),P=_.x(_.yy(void 0,void 0,"boqAXd")),E=P.next().value,z=P.next().value,c=function(){var M;return _.n((M=R.data().sectionListLayoutConfiguration)==null?void 0:M.layoutConfiguration,FPF)};
_.jO(function(){var M,N=(M=Y.value)==null?void 0:M.clientWidth;if(c()){M=c();var y=M.responsiveSize;N=N<528?"CONTAINER_SIZE_NARROW":N<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var m=_.x(M.responsiveMap||[]);for(var T=m.next();!T.done;T=m.next())if(T=T.value,T.containerSize===N){m=T.containerType;break b}m=void 0}if(m&&y){b:{if(m==="CONTAINER_TYPE_VERTICAL_LIST")if(y==="RESPONSIVE_SIZE_STANDARD"){if(N!=="CONTAINER_SIZE_NARROW"){T="50%";break b}}else{T=N==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}T=void 0}M={responsiveSize:y,containerSize:N,containerType:m,force16By9ThumbnailAspectRatio:!M.enableContentSpecificAspectRatio,contentPreviewWidth:T,fullbleed:(m==="CONTAINER_TYPE_VERTICAL_LIST"||m==="CONTAINER_TYPE_GRID")&&N==="CONTAINER_SIZE_NARROW"&&!1}}else M=void 0}else M=void 0;z(M)});
return _.V("yt-section-list-renderer",{class:_.To("ytSectionListRendererHost",R.className),el:Y,"data-target-id":function(){return R.data().targetId||""}},_.V(_.ni,{data:function(){return A().contents}},{itemSectionRenderer:function(M){return _.V(JUQ,{data:M.data,
containerLayoutConfig:E})}}))},"ik"),"yt-section-list-renderer",{props:{data:_.VY,
className:_.xL}});var yU0;var mZ0;var TTo=function(){return _.K.apply(this,arguments)||this};
_.H(TTo,_.K);_.C([_.S(),_.k("design:type",Object)],TTo.prototype,"data",void 0);_.C([_.CG({is:"yt-alert-renderer",disableElementRegistration:!0})],TTo);
_.B(TTo,"yt-alert-renderer",function(){if(mZ0===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;yU0===void 0&&(yU0=document.createElement("template"));var P=yU0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);mZ0=R}R=mZ0;return R},{mode:2});
}catch(e){_._DumpException(e)}
try{
var U9m;U9m=function(R,A,Y,P){Y||(R?P&&(P.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||P.WINDOW_SIZE_CHANGED&&(A.width!==window.innerWidth||A.height!==window.innerHeight)||P.SAFARI_ABORTED_BY_NEW_TRANSITION&&R instanceof DOMException&&R.name==="AbortError"&&R.message.includes("Old view transition aborted by new view transition"))||_.bj(R):_.bj(Error("mj")))};
_.$9N=function(R,A){A=A===void 0?{}:A;var Y,P,E,z,c,M,N,y,m,T,Q,g,r;return _.O(function(I){switch(I.nextAddress){case 1:Y=A;P=Y.shouldWrap===void 0?!0:Y.shouldWrap;E=Y.skipTransitionTimeoutMs===void 0?300:Y.skipTransitionTimeoutMs;z=Y.beforeTransition;c=Y.afterTransition;if(!P||!document.startViewTransition||document.visibilityState==="hidden")return I.return(R());M={width:window.innerWidth,height:window.innerHeight};N=!1;(y=z)==null||y();_.g2(I,2);m=document.startViewTransition(R);T=setTimeout(function(){m.skipTransition();
N=!0},E);
return I.yield(m.ready,4);case 4:return clearTimeout(T),I.yield(m.finished,5);case 5:clearTimeout(T);(Q=c)==null||Q();_.us(I,0);break;case 2:g=_.UT(I),(r=c)==null||r(),U9m(g,M,N,A.ignoredErrors),_.XH(I)}})};
_.E4=function(){for(var R=Array(36),A=0,Y,P=0;P<36;P++)P==8||P==13||P==18||P==23?R[P]="-":P==14?R[P]="4":(A<=2&&(A=33554432+Math.random()*16777216|0),Y=A&15,A>>=4,R[P]=_.Wp8[P==19?Y&3|8:Y]);return R.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 XVj=_.Z7(['<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>']),
S90=_.Qa8(XVj);S90.setAttribute("style","display: none;");document.head.appendChild(S90.content);_.zc=_.v_I(function(R){var A=_.De("DIV");R&&(A.className=R);A.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";R=_.De("DIV");_.mgb(R,"200px","200px");A.appendChild(R);document.body.appendChild(A);R=A.offsetWidth-A.clientWidth;_.UU(A);return R});var Ii0;var KfQ;var i1=function(){var R=_.K.apply(this,arguments)||this;R.icon=null;return R};
_.H(i1,_.K);i1.prototype.dismiss=function(){_.xo(this.hostElement,"yt-live-chat-error-message-dismiss")};
i1.prototype.computeIcon=function(R){return R&&R.iconType?"yt-icons:"+R.iconType.toLowerCase():"yt-icons:close"};
_.C([_.S(),_.k("design:type",Object)],i1.prototype,"data",void 0);_.C([_.S({computed:"computeIcon(data.icon)"}),_.k("design:type",Object)],i1.prototype,"icon",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],i1);
_.B(i1,"yt-live-chat-error-message-renderer",function(){if(KfQ===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Ii0===void 0&&(Ii0=document.createElement("template"));var P=Ii0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);KfQ=R}R=KfQ;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var UGR,$GE,XSf,SAE,Ize,KSE,fzR,azR,C8e,hqf,oZf,hU,kN$,GNf,ou,ZDb,tHf,wSc,ubb,eqE,qAq,LSE,dGq,RQc,A9o,YWR,PiE,EnD,zQo,ifR,ljf,xgx,c9b,Ofq,MGo,sHf,NoR,VGf,J9e,Tob,vnb,nnE,Hfb,r9o,DgR,y9q,mgf,XFq,SWf,Ijb,KmE,Wmo,UgD,BfD,bfb;UGR=function(R){var A=_.LK("__slot-el");_.jO(function(){for(var Y=_.x(R.slotContent),P=Y.next();!P.done;P=Y.next())A.value.appendChild(P.value)});
return _.V("__slot-el",{el:A,skip:!0})};
$GE=function(R){return _.c1==="yt-animated-rolling-number"?(R.isInert=!0,_.c1="",!0):_.Tjk==="yt-animated-rolling-number"?(R.isInert=!0,_.Tjk="",!0):!1};
XSf=function(R,A){return _.mc(R.entities,"liveReactionsDataEntity",A)};
SAE=function(R,A){R=_.mc(R.entities,"booleanEntity",A);return!(!R||!R.value)};
Ize=function(R,A){var Y=_.F9();Y&&R&&_.ZM(Y,_.S5(R),A)};
KSE=function(R,A){return _.mc(R.entities,"timedMarkersListSyncEntity",A)};
_.WSR=function(R){return R.watch.isWatchActive};
_.jAo=function(R){return _.pY(R)||_.FW(R)||_.gf3(R)};
_.bDR=function(R){return!_.jAo(R)};
_.Ce=function(R){return R.watch.watchScrollTop};
fzR=function(R){return R.watch.isLiveChatCollapsed};
_.pSo=function(){_.v("web_watch_log_theater_mode")&&_.Bpu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.FSD=function(R,A,Y){if(!R.includes("START_TIME_PLACEHOLDER")||!R.includes("END_TIME_PLACEHOLDER"))return R;var P=new Date(0),E=new Date(0);P.setUTCMilliseconds(A);E.setUTCMilliseconds(Y);return R.replace("START_TIME_PLACEHOLDER",_.uw(P,7)).replace("END_TIME_PLACEHOLDER",_.uw(E,7))};
azR=function(){var R={propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]};R=R===void 0?BfD:R;_.O5.add("yt-animated-rolling-number");var A;(A=R).propNames!=null||(A.propNames=[]);var Y=new Set(R.propNames),P=_.xp6();A=function(){var M=P.call(this)||this;M.props={};M.isUpdating=!1;M.hasAttached=!1;M.isInert=!1;M.updateQueued=!1;M.initialClasses=[];$GE(M);return M};
_.H(A,P);A.prototype.forwardKebabCaseProp=function(M,N){M=_.nO(M);if(Y.has(M)||M==="children")this.props[M]=N};
A.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var M=_.x(this.initialClasses),N=M.next();!N.done;N=M.next())(N=N.value)&&this.classList.add(N);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
A.prototype.handleSlottedContent=function(){for(var M=new Map,N=_.x(this.children),y=N.next();!y.done;y=N.next()){y=y.value;var m=void 0,T=(m=y.getAttribute("slot"))!=null?m:"children";(m=M.get(T))?m.push(y):M.set(T,[y]);if(!y.getAttribute("key")){var Q=void 0,g=void 0;y.setAttribute("key",T+"_"+((g=(Q=m)==null?void 0:Q.length)!=null?g:0))}}M=_.x(M);for(N=M.next();!N.done;N=M.next())y=_.x(N.value),N=y.next().value,y=y.next().value,this.forwardKebabCaseProp(N,_.V(UGR,{slotContent:y}))};
A.prototype.connectedCallback=function(){var M=this;if(!$GE(this)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var N=_.x(this.attributes),y=N.next();!y.done;y=N.next())y=y.value,this.forwardKebabCaseProp(y.name,_.zm8(y));this.handleSlottedContent();R.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){M.afterFirstPatch()});
this.hasAttached=!0}};
A.prototype.attributeChangedCallback=function(M,N,y){this.isInert||this.isUpdating||this.isConnected||M!=="class"||this.initialClasses.push.apply(this.initialClasses,_.py(y.split(" ")))};
A.prototype.disconnectedCallback=function(){_.Bq8(this)};
A.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var M,N;_.Pxl(this,_.V(_.Yq7,Object.assign({},this.props,{idomKey:(N=(M=this.__incrementalDOMData)==null?void 0:M.key)!=null?N:"yt-animated-rolling-number"})),!0)}catch(m){var y=m instanceof Error?m:new _.XN("Wiz rendering error");y.args||(y.args=[]);y.args.push("Error in deprecated web component wrapper");y.args.push("yt-animated-rolling-number");_.bj(y);throw m;}finally{this.updateQueued=this.isUpdating=!1}}};
A.prototype.enqueueUpdate=function(){var M=this;return _.O(function(N){if(R.synchronous)return M.update(),N.return();if(M.updateQueued)return N.return();M.updateQueued=!0;return N.return(Promise.resolve().then(function(){M.update()}))})};
A.prototype.notifyPath=function(){R.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Yh.Object.defineProperties(A,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var E=_.x(R.propNames),z=E.next(),c={};!z.done;c={prop$jscomp$107:void 0},z=E.next())c.prop$jscomp$107=z.value,Object.defineProperty(A.prototype,c.prop$jscomp$107,{set:function(M){return function(N){this.isInert||N===this.props[M.prop$jscomp$107]||(this.props[M.prop$jscomp$107]=N,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(c)});
customElements.define("yt-animated-rolling-number",A)};
C8e=function(R,A){return _.mc(R.entities,"booleanEntity",A)};
hqf=function(){return function(R){_.A7(_.HT("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:R}))}};
oZf=function(R){switch(R){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}};
hU=function(R,A,Y){var P=_.h7(Y);R&&A&&P&&R.getPlayerPromise().then(function(E){_.GaP(P)&&_.j_();(new _.Zq(E)).executeCommand(P,A);_.v("continue_playback_on_desktop_companion_click")||E.pauseVideo()})};
kN$=function(R){var A=_.EJ(),Y;if(Y=_.Zr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;Y=(P=Y())==null?void 0:P.layoutId}else Y=null;hU(A,Y,R)};
GNf=function(R){var A=_.EJ(),Y;if(Y=_.Zr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;Y=(P=Y())==null?void 0:P.layoutId}else Y=null;hU(A,Y,R)};
ou=function(R,A){var Y=R<0?"-":"";R=Math.abs(R);var P=Math.floor(R/3600),E=Math.floor(R)%3600,z=Math.floor(E/60);E=Math.floor(E)%60;var c="";(A===void 0?0:A)&&(c="."+Math.round((R-Math.floor(R))*10));return P>0?Y+P+":"+(z<10?"0"+z:""+z)+":"+(E<10?"0"+E:""+E)+c:Y+z+":"+(E<10?"0"+E:""+E)+c};
ZDb=function(R){var A=R.match(/[^0-9:\.]/g);if(A&&A.length>0)return null;R=R.split(":");if(R.length===0||R.length>3)return null;A=1;for(var Y=0;R.length>0;){var P=R.pop();if(P===void 0)break;var E=Number(P);if(P===""||isNaN(E))return null;Y+=E*A;A*=60}return Y};
tHf=function(R,A,Y,P){R=Math.max(Y,R);A=Math.min(A,P-Y);R+A>P?(Y=P,R=Y-A):Y=R+A;return{start:R,end:Y}};
wSc=function(R,A,Y,P,E,z){R<Y?R=Y:R+E>P&&(R=P-E);A>P&&(A=P);A=Math.min(R+z,Math.max(R+E,A));return{start:R,end:A}};
ubb=function(R,A,Y,P,E,z){A>P?A=P:A-E<Y&&(A=Y+E);R<Y&&(R=Y);R=Math.min(A-E,Math.max(A-z,R));return{start:R,end:A}};
eqE=function(R){return _.v("web_transcript_cue_id_killswitch")?String(R):"ytd-transcript-renderer_"+R};
qAq=function(R){return _.v("web_transcript_cue_id_killswitch")?!0:R.startsWith("ytd-transcript-renderer")};
LSE=function(R){var A=_.EJ(),Y;if(Y=_.Zr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var P;Y=(P=Y())==null?void 0:P.layoutId}else Y=null;hU(A,Y,R)};
dGq=function(R){R.style.height="auto";R.style.height=Math.min(R.scrollHeight||20,80)+"px"};
RQc=function(R,A,Y){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:A,hasGradientBackground:Y}}],insertByPositionInSection:{sectionTargetId:R,position:"INSERTION_POSITION_LAST"}}}]}}}};
A9o=function(R){var A=_.EJ(),Y;Y=(Y=_.Zr("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.layoutId:null;hU(A,Y,R)};
YWR=function(R){var A=_.EJ(),Y;Y=(Y=_.Zr("yt.www.ads.eventcache.getLastCompanionData"))?(Y=Y())&&Y.layoutId:null;hU(A,Y,R)};
PiE=function(R,A){A=A===void 0?!1:A;if(R.simpleText)R=[{text:R.simpleText}];else{var Y;R=((Y=R.runs)!=null?Y:[]).map(function(P){return Object.assign({},P)})}if(A)for(A=_.x(R),Y=A.next();!Y.done;Y=A.next())Y.value.bold=!0;
return R};
EnD=function(R){var A=R.startEndTimeTemplate,Y=R.startTimeUtcMillis;R=R.endTimeUtcMillis;if(A&&Y&&R)return _.dF(_.FSD(_.R4(A),Number(Y),Number(R)))};
zQo=function(R,A){var Y,P,E=R==null?void 0:(Y=R.viewCount)==null?void 0:(P=Y.videoViewCountRenderer)==null?void 0:P.shortViewCount;if(!A&&E)return E;var z,c;return R==null?void 0:(z=R.viewCount)==null?void 0:(c=z.videoViewCountRenderer)==null?void 0:c.viewCount};
ifR=function(R,A){var Y=R==null?void 0:R.relativeDateText;return!A&&Y?[Y,!0]:[R==null?void 0:R.dateText,!1]};
ljf=function(R,A,Y,P,E){P=P===void 0?!0:P;E=E===void 0?"":E;var z=zQo(R,A),c=_.x(ifR(R,A)),M=c.next().value;c=c.next().value;A=A?R==null?void 0:R.sponsorsOnlyFirstTimeLongText:R==null?void 0:R.sponsorsOnlyFirstTimeShortText;var N=[];Y&&z&&N.push(z);!Y&&c||!M||N.push(M);R=[R==null?void 0:R.subtitle].concat(_.py(N),[A,R==null?void 0:R.stationName,R==null?void 0:R.rating,R?EnD(R):void 0,R==null?void 0:R.upNextProgramText,R==null?void 0:R.superTitleLink]).filter(function(y){return!!y});
Y={runs:[]};for(z=0;z<R.length;z++)Y.runs.push.apply(Y.runs,_.py(PiE(R[z],P))),z<R.length-1&&Y.runs.push({text:" "+E+" ",bold:P});return Y};
xgx=function(R){if(R)return{runs:[{text:R,bold:!0}]}};
c9b=function(R){return R.filter(function(A){return!_.n(A,_.w3)})};
Ofq=function(R){var A,Y,P,E;if(R=R==null?void 0:(A=R.contents)==null?void 0:(Y=A.twoColumnWatchNextResults)==null?void 0:(P=Y.results)==null?void 0:(E=P.results)==null?void 0:E.contents){var z,c;return(c=(z=R.find(function(M){return!!M.videoPrimaryInfoRenderer}))==null?void 0:z.videoPrimaryInfoRenderer)==null?void 0:c.updatedMetadataEndpoint}};
MGo=function(R,A){var Y;return(Y=R.sourceConfigs)==null?void 0:Y.find(function(P){return P.videoId===A})};
sHf=function(R){return R==="End of video"||R==="End of playlist"};
NoR=function(R){var A,Y,P,E;return(A=R.getWatchNextResponse())==null?void 0:(Y=A.contents)==null?void 0:(P=Y.twoColumnWatchNextResults)==null?void 0:(E=P.playlist)==null?void 0:E.playlist};
VGf=function(R){var A,Y,P,E,z,c;return(A=NoR(R))==null?void 0:(Y=A.playlistButtons)==null?void 0:(P=Y.menuRenderer)==null?void 0:(E=P.topLevelButtons)==null?void 0:(z=E[0])==null?void 0:(c=z.playlistLoopButtonRenderer)==null?void 0:c.playlistLoopStateEntityKey};
J9e=function(R){var A=_.is().resolve(_.Y7),Y;return(A=(Y=_.n(A.getAutoplayEndpoint(),_.LO))==null?void 0:Y.playlistId)&&A===R};
Tob=function(R,A,Y,P,E){function z(){_.fn.cancelJob(kG);var c=y9q(A,Y/R.getPlaybackRate()),M=c.hours,N=c.minutes;c=(c.seconds*1E3||6E4)/R.getPlaybackRate();R.setVideoTimeLeft(mgf(M,N));P&&R.getPlayerState()!==0&&R.setSleepTimerTimeLeft(mgf(M,N,!0));(M>0||N>0)&&!E&&(kG=_.$H(_.fn,z,c))}
_.fn.cancelJob(kG);kG=_.$H(_.fn,z)};
vnb=function(R,A,Y){function P(){_.fn.cancelJob(QHf);var E=y9q(A,Y),z=E.hours;E=E.minutes;var c=6E4/R.getPlaybackRate();if(z>0||E>0)R.setSleepTimerTimeLeft(mgf(z,E,!0)),QHf=_.$H(_.fn,P,c)}
_.fn.cancelJob(QHf);QHf=_.$H(_.fn,P)};
nnE=function(R,A){var Y=R.getVolume()/(A/500),P=function(E){_.fn.cancelJob(gnx);var z=Math.floor(E-Y);R.setVolume(z,!1);z>0&&(gnx=_.$H(_.fn,function(){P(z)},500))};
_.fn.cancelJob(gnx);gnx=_.$H(_.fn,function(){P(R.getVolume())})};
Hfb=function(R,A){_.fn.cancelJob(gnx);A&&R.syncVolume()};
r9o=function(){var R={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.vk("SLEEP_TIMER_DISRUPTED")}}}}};_.is().resolve(_.ls).resolveCommand(R)};
DgR=function(R){return(R.getDuration()-R.getProgressState().current)*1E3};
y9q=function(R,A){R=R+A-(0,_.iB)();if(R<=0)return{hours:0,minutes:0,seconds:0};var Y=new UgD(0,0,0,0,0,0,R);R=Y.getHours();A=Y.getMinutes();Y=Y.getSeconds();Y!==0&&A++;A!==0&&A%60===0&&(R++,A=0);return{hours:R,minutes:A,seconds:Y}};
mgf=function(R,A,Y){return R>0&&A>0?Y?_.vk("TIME_LEFT_HOURS_MINUTES",{hours:R.toString(),minutes:A.toString()}):_.vk("TIME_HOURS_MINUTES",{hours:R.toString(),minutes:A.toString()}):R>0?Y?_.gH("TIME_LEFT_HOURS",R):_.gH("TIME_HOURS",R):Y?_.vk("TIME_LEFT_MINUTES",{minutes:A.toString()}):_.vk("TIME_MINUTES",{minutes:A.toString()})};
XFq=function(R,A){if(R.timelyActions)return R.timelyActions.find(function(Y){var P;return((P=_.n(Y,$gR))==null?void 0:P.cueRangeId)===A})};
SWf=function(R){var A=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.yW(R);R.keyMap_.forEach(function(Y,P){_.B3(A,P)||this.remove(P)},R)};
UGR.componentType=_.XF;Ijb=function(R,A){R.reloadContinuationItemsCommandMatcher=A};
_.G7=function(R,A){R.insertBefore(A,R.childNodes[0]||null)};
KmE=function(R){if(R>=48&&R<=57||R>=96&&R<=106||R>=65&&R<=90||_.cb&&R==0)return!0;switch(R){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 _.xB;default:return!1}};
Wmo=function(R){if(R.altKey&&!R.ctrlKey||R.metaKey||R.keyCode>=112&&R.keyCode<=123)return!1;if(KmE(R.keyCode))return!0;switch(R.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!_.xB;default:return R.keyCode<166||R.keyCode>183}};
UgD=function(R,A,Y,P,E,z,c){this.date=typeof R==="number"?new Date(R,A||0,Y||1,P||0,E||0,z||0,c||0):new Date(R&&R.getTime?R.getTime():_.YB())};
_.Pb(UgD,_.bX);_.l=UgD.prototype;_.l.getHours=function(){return this.date.getHours()};
_.l.getMinutes=function(){return this.date.getMinutes()};
_.l.getSeconds=function(){return this.date.getSeconds()};
_.l.getMilliseconds=function(){return this.date.getMilliseconds()};
_.l.getUTCDay=function(){return this.date.getUTCDay()};
_.l.getUTCHours=function(){return this.date.getUTCHours()};
_.l.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.l.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.l.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.l.setHours=function(R){this.date.setHours(R)};
_.l.setMinutes=function(R){this.date.setMinutes(R)};
_.l.setSeconds=function(R){this.date.setSeconds(R)};
_.l.setMilliseconds=function(R){this.date.setMilliseconds(R)};
_.l.setUTCHours=function(R){this.date.setUTCHours(R)};
_.l.setUTCMinutes=function(R){this.date.setUTCMinutes(R)};
_.l.setUTCSeconds=function(R){this.date.setUTCSeconds(R)};
_.l.setUTCMilliseconds=function(R){this.date.setUTCMilliseconds(R)};
_.l.add=function(R){_.bX.prototype.add.call(this,R);R.hours&&this.setUTCHours(this.date.getUTCHours()+R.hours);R.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+R.minutes);R.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+R.seconds)};
_.l.JSC$11317_toIsoString=function(R){var A=_.bX.prototype.JSC$11317_toIsoString.call(this,R);return R?A+"T"+_.cs(this.getHours(),2)+":"+_.cs(this.getMinutes(),2)+":"+_.cs(this.getSeconds(),2):A+"T"+_.cs(this.getHours(),2)+_.cs(this.getMinutes(),2)+_.cs(this.getSeconds(),2)};
_.l.equals=function(R){return this.getTime()==R.getTime()};
_.l.toString=function(){return this.JSC$11317_toIsoString()};
_.l.clone=function(){var R=new UgD(this.date);R.firstDayOfWeek_=this.firstDayOfWeek_;R.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return R};
_.jHb=function(R){return _.cK({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:R}})};
BfD={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};bfb=new _.lU("imageTileRenderer");var fjf=new _.lU("adGridCardCollectionViewModel");var pFb=new _.lU("carouselTitleViewModel");var Fmo=new _.lU("ctaCarouselItemViewModel");var Boq=new _.lU("textFieldViewModel");_.ajb=new _.lU("engagementPanelHeaderShowNavigationButtonCommand");var Cie=new _.lU("hideEngagementPanelScrimAction");var hQb=new _.lU("setActivePanelItemAction");var onZ=new _.lU("showEngagementPanelScrimAction");var k0$=new _.lU("updateEngagementPanelAction");var G0$=new _.lU("updateSearchInVideoResultsAction");var Zfg=new _.lU("transcriptCueGroupRenderer");var tGq=new _.lU("transcriptCueRenderer");var wFx=new _.lU("transcriptFooterRenderer");var uYb=new _.lU("engagementPanelAdSubtitleRenderer");var eQ$=new _.lU("videoDescriptionFantasySectionViewModel");var qWc=new _.lU("deleteClipEngagementPanelCommand");var Lmb=new _.lU("loopCommand");var dgg=new _.lU("changeCreatorEndscreenVisibilityCommand");var Rbb=new _.lU("liveChatCallForQuestionsRenderer");var Abo=new _.lU("updateTimedMarkersSyncObserverCommand");var $gR=new _.lU("timelyActionViewModel");var Yg$=new _.lU("timelyActionsOverlayViewModel");var Pbc=new _.lU("repeatChapterCommand");var ED$=new _.lU("watchPlayerOverflowMenuCommand");var zbZ=new _.lU("compositeVideoOverlayRenderer");var iqq=new _.lU("sortFilterSubMenuRenderer");var lEe=new _.lU("switchListItemViewModel");var xLq=new _.lU("inputComposerViewModel");var cbx=new _.lU("transcriptEditSegmentCommand");var Oqb=new _.lU("transcriptUpdateSegmentTextCommand");var McR=new _.lU("transcriptSearchBoxRenderer");var sRc=new _.lU("transcriptSegmentListRenderer");var NZb=new _.lU("transcriptSegmentRenderer");_.VcE=new _.lU("updateDateTextAction");var Jbb=new _.lU("updateTitleAction");var ybg=new _.lU("updateViewershipAction");var mLD=new _.lU("carouselLockupRenderer");var Zb=new _.lU("expandableVideoDescriptionBodyRenderer");var TZ$=new _.lU("videoDescriptionHeaderRenderer");var QRb=new _.lU("videoDescriptionYouchatSectionViewModel");_.tU=_.cU("kevlar_watch_page_horizontal_margin",24);_.vDE=_.cU("kevlar_watch_page_columns_top_padding",24);_.gDb=426+_.tU*2;_.wT=_.cU("kevlar_watch_two_column_width_threshold",1E3);_.nD$=_.tU*2;_.Hqf=_.cU("kevlar_watch_secondary_width",402);_.rbL=_.cU("kevlar_watch_max_player_width",1280);_.DLe=_.cU("kevlar_watch_flexy_metadata_height",136);_.ULD=_.nD$+310+_.tU;_.$LR=_.nD$+360+_.tU;var Xxq={PAUSE_CHAT:18};var SgD;var IEb;var uT=function(){return _.K.apply(this,arguments)||this};
_.H(uT,_.K);uT.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
uT.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var R=_.n(this.data.button,_.E7);R&&(R.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Yh.Object.defineProperties(uT,{template:{configurable:!0,enumerable:!0,get:function(){if(IEb===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;SgD===void 0&&(SgD=document.createElement("template"));var P=SgD;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);IEb=R}R=IEb;return R}}});
_.C([_.U(_.Eh),_.k("design:type",Object)],uT.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({selectorArgs:["data.enabledEntityKey"],selector:SAE,observer:"onEnabledChange"}),_.k("design:type",Boolean)],uT.prototype,"enabled",void 0);_.C([_.S(),_.k("design:type",Object)],uT.prototype,"data",void 0);_.C([_.CG({is:"yt-disableable-button-view-model",noInjection:!0})],uT);var Koc;var Wof;var jRx=["transVert01","transVert02","transVert03"],bqc="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),e2=function(){var R=_.K.apply(this,arguments)||this;R.emojiManager=_.cw;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};R.reactionBuckets=[];R.noEmojiIdentifier="NO_EMOJI";return R};
_.H(e2,_.K);_.l=e2.prototype;_.l.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.l.desktopFountainEmojiSizePxChanged=function(){_.ya(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.l.createUserReactionAnimation=function(R){this.createEmojiAnimation(R,!0)};
_.l.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var R;((R=this.data)==null?0:R.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.HT("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.py(this.emojiContainer.children)).forEach(function(A){A.remove()})};
_.l.detached=function(){this.cleanupFountain()};
_.l.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var R;this.reactionBuckets=_.BO.unsafeClone((R=this.emojiFountainData)==null?void 0:R.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.l.processEmojiBucket=function(R){var A=this;if(this.reactionBuckets&&!(R>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var Y=this.reactionBuckets[R];this.generateEmojiAnimations(Y);if(R<this.reactionBuckets.length-1){var P;if(Y==null?0:(P=Y.duration)==null?0:P.seconds)this.emojiBucketTimerId=setTimeout(function(){A.processEmojiBucket(R+1)},Number(Y.duration.seconds)*1E3)}}};
_.l.generateEmojiAnimations=function(R){var A=this,Y=this.getRandomEmojiIdFromBucketWithOverride(R);if(Y&&Y!==this.noEmojiIdentifier){var P=0;R.targetEps?(P=this.linearInterpolateBounded(1,20,100,12,R.emojiSizeIndex||0),this.createEmojiAnimation(Y,!1,R.emojiAnimationMs,P),P=this.getEmojiDelayMsFromTargetEps(R.targetEps)):(this.createEmojiAnimation(Y),P=this.getEmojiDelayMsFromDistribution(R.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){A.generateEmojiAnimations(R)},P)}};
_.l.getRandomEmojiIdFromBucketWithOverride=function(R){if(!(R&&R.reactionsData&&R.reactionsData.length&&R.totalReactions))return this.noEmojiIdentifier;for(var A=R.totalReactions,Y=1,P=_.x(R.reactionsData),E=P.next();!E.done;E=P.next())E=E.value,(E.reactionWeightOverride||E.reactionWeightOverride===0)&&E.reactionCount&&(A-=E.reactionCount,Y-=E.reactionWeightOverride);P=!0;Y<0&&(P=!1,A=R.totalReactions,Y=1);if(P&&Y>0&&A===0)if(Y===1){E=0;for(var z=_.x(R.reactionsData),c=z.next();!c.done;c=z.next())c=
c.value,c.reactionCount&&c.reactionCount>0&&E++;E=1/E;z=_.x(R.reactionsData);for(c=z.next();!c.done;c=z.next())c.value.reactionWeightOverride=E}else for(E=1/(1-Y),z=_.x(R.reactionsData),c=z.next();!c.done;c=z.next())c=c.value,c.reactionWeightOverride&&(c.reactionWeightOverride*=E);E=Math.random();z=0;c=_.x(R.reactionsData);for(var M=c.next();!M.done;M=c.next())if(M=M.value,M.reactionCount&&(z=(M.reactionWeightOverride||M.reactionWeightOverride===0)&&P?z+M.reactionWeightOverride:z+Y*M.reactionCount/
A,z>E&&(M.reactionCount--,R.totalReactions--,M=this.reactionItemToEmojiString(M),M!==this.noEmojiIdentifier)))return M;return this.noEmojiIdentifier};
_.l.reactionItemToEmojiString=function(R){if(R.unicodeEmojiId)return R.unicodeEmojiId;if(R.emoteId)return R.emoteId;if(R.videoReactionType)switch(R.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.l.createEmojiAnimation=function(R,A,Y,P){A=A===void 0?!1:A;this.lastEmojiRequestedForTesting=R;var E=R.startsWith("yt-icons:"),z=_.lO(this.emojiManager,R);if(z||E){var c=document.createElement("emoji");c.classList.add("yt-emoji-fountain-view-model");c.classList.add(jRx[Math.floor(Math.random()*jRx.length)]);var M=document.createElement("div");M.classList.add("yt-emoji-fountain-view-model");M.classList.add("horizontal-container");M.classList.add(bqc[Math.floor(Math.random()*bqc.length)]);A?(Y=document.createElement("div"),
Y.classList.add("user-reaction-bubble"),Y.classList.add("yt-emoji-fountain-view-model"),M.appendChild(Y)):(Y&&(c.style.animationDuration=Y+"ms",M.style.animationDuration=Y+"ms"),P&&(c.style.width=P+"px",c.style.height=P+"px"));E?(E=document.createElement("yt-icon"),E.polymerController.icon=R,P&&(E.style.width=P+"px",E.style.height=P+"px"),R=E):R=this.emojiManager.createEmoji(z,!1);R.classList.add("yt-emoji-fountain-view-model");M.appendChild(R);c.appendChild(M);this.emojiContainer.appendChild(c);
c.addEventListener("animationend",function(){c.remove()});
var N,y;if((N=this.data)==null?0:(y=N.loggingDirectives)==null?0:y.trackingParams)A=A?_.NV(183501):_.NV(183500),Ize(this.data.loggingDirectives.trackingParams,A),_.UQb(A);setTimeout(function(){c&&c.remove()},2E3)}};
_.l.getEmojiDelayMsFromDistribution=function(R){return Math.random()*(R||1)*1E3};
_.l.getEmojiDelayMsFromTargetEps=function(R){return Math.random()*2*(1/R)*1E3};
_.l.linearInterpolateBounded=function(R,A,Y,P,E){E=Math.min(Math.max(E,R),Y);return(A*(Y-E)+P*(E-R))/(Y-R)};
e2.prototype.onEmojiFountainDataEntityUpdate=e2.prototype.onEmojiFountainDataEntityUpdate;e2.prototype.desktopFountainEmojiSizePxChanged=e2.prototype.desktopFountainEmojiSizePxChanged;e2.prototype.isActiveChanged=e2.prototype.isActiveChanged;_.C([_.S(),_.k("design:type",_.iO)],e2.prototype,"emojiManager",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],e2.prototype,"ytLiveChatReduxBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],e2.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],e2.prototype,"data",void 0);_.C([_.S({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(R,A){return _.mc(R.entities,"emojiFountainDataEntity",A)}}),
_.k("design:type",Object)],e2.prototype,"emojiFountainData",void 0);_.C([_.S(),_.k("design:type",Boolean)],e2.prototype,"isActive",void 0);_.C([_.vZ("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e2.prototype,"isActiveChanged",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],e2.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",String)],e2.prototype,"lastEmojiRequestedForTesting",void 0);
_.C([_.S({value:function(){return _.cU("desktop_fountain_emoji_size_px",20)}}),
_.k("design:type",Number)],e2.prototype,"desktopFountainEmojiSizePx",void 0);_.C([_.vZ("desktopFountainEmojiSizePx"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e2.prototype,"desktopFountainEmojiSizePxChanged",null);_.C([_.nG("#emoji-container"),_.k("design:type",HTMLElement)],e2.prototype,"emojiContainer",void 0);
_.C([_.vZ("emojiFountainData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],e2.prototype,"onEmojiFountainDataEntityUpdate",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],e2);
_.B(e2,"yt-emoji-fountain-view-model",function(){if(Wof===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Koc===void 0&&(Koc=document.createElement("template"));var P=Koc;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Wof=R}R=Wof;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var fEo;var pxL;var qZ=function(){return _.K.apply(this,arguments)||this};
_.H(qZ,_.K);qZ.prototype.onChoiceChanged=function(){this.data&&_.ya(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
qZ.prototype.onChoiceChanged=qZ.prototype.onChoiceChanged;_.C([_.S(),_.k("design:type",Object)],qZ.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qZ.prototype,"onChoiceChanged",null);_.C([_.F({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],qZ);
_.B(qZ,"yt-live-chat-banner-poll-choice",function(){if(pxL===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;fEo===void 0&&(fEo=document.createElement("template"));var P=fEo;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);pxL=R}R=pxL;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var Fob;var BZf;var Le=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_button_rework_with_live");R.small=!1;return R};
_.H(Le,_.K);Le.prototype.computeIsSmall=function(){var R;return((R=this.buttonOverrides)==null?void 0:R.size)==="S"};
Le.prototype.computeId=function(){return this.data&&this.data.targetId};
_.C([_.U(_.zu.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],Le.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.S({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",String)],Le.prototype,"id",void 0);_.C([_.S(),_.k("design:type",Object)],Le.prototype,"buttonOverrides",void 0);_.C([_.S(),_.k("design:type",Object)],Le.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Le.prototype,"modern",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.k("design:type",Object)],Le.prototype,"small",void 0);_.C([_.F({disableElementRegistration:!0,is:"yt-live-chat-button"})],Le);
_.B(Le,"yt-live-chat-button",function(){if(BZf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Fob===void 0&&(Fob=document.createElement("template"));var P=Fob;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);BZf=R}R=BZf;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var aEg;var Cbq;var dT=function(){var R=_.K.apply(this,arguments)||this;R.inCollapsedBanner=!1;R.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};R.questionButtonOverrides={style:"mono",type:"filled"};return R};
_.H(dT,_.K);_.l=dT.prototype;_.l.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]]"}}}}}};
_.l.onContextMenuButtonClick=function(R){this.ytLiveChatItemBehavior.showContextMenu(R)};
_.l.onYtRendererstamperFinished=function(){this.menuButton=_.Mo(this.hostElement).querySelector("#menu-button")};
_.l.dataChanged=function(){var R,A;if((A=_.n((R=this.data)==null?void 0:R.overflowMenuButton,_.RC))==null?0:A.command)this.data.contextMenuEndpoint=_.n(this.data.overflowMenuButton,_.RC).command};
_.l.onButtonClick=function(){var R,A=_.n((R=this.data)==null?void 0:R.askQuestionButton,_.RC);if(A){if(A.trackingParams&&(R=_.S5(A.trackingParams))){var Y=_.F9();Y&&_.qT(Y,R)}_.xo(this.hostElement,"innertube-command",A.command)}};
dT.prototype.onYtRendererstamperFinished=dT.prototype.onYtRendererstamperFinished;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],dT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],dT.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],dT.prototype,"ytLiveChatItemBehavior",void 0);_.C([_.S({observer:"dataChanged"}),_.k("design:type",Object)],dT.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dT.prototype,"inCollapsedBanner",void 0);_.C([_.S(),_.k("design:type",Object)],dT.prototype,"buttonOverrides",void 0);_.C([_.S(),_.k("design:type",Object)],dT.prototype,"questionButtonOverrides",void 0);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dT.prototype,"onYtRendererstamperFinished",null);
_.C([_.F({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],dT);
_.B(dT,"yt-live-chat-call-for-questions-renderer",function(){if(Cbq===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;aEg===void 0&&(aEg=document.createElement("template"));var P=aEg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Cbq=R}R=Cbq;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var hb$={};hb$.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 R=this;window.requestAnimationFrame(function(){R.restoreFocusNode_||(R.restoreFocusNode_=document.activeElement);var A=_.ktH(R.hostElement);A.length&&A[A.length-1].focus()})},
isAttachedChanged_:function(R,A){R?this.focusChild_():A&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(R){this.hidden||_.Ah(R).indexOf(this.hostElement)!==-1||(R.stopPropagation(),this.focusChild_())}};var oDe;var keb;var Rx=function(){return _.K.apply(this,arguments)||this};
_.H(Rx,_.K);Rx.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Rx.prototype.onClick=function(R){R.target!==this.confirmButton&&R.target!==this.cancelButton&&(this.hidden=!0)};
_.C([_.nG("#confirm_button"),_.k("design:type",Object)],Rx.prototype,"confirmButton",void 0);_.C([_.nG("#cancel_button"),_.k("design:type",Object)],Rx.prototype,"cancelButton",void 0);_.C([_.S(),_.k("design:type",GeD)],Rx.prototype,"data",void 0);_.C([_.S({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],Rx.prototype,"hidden",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(hb$.YtLiveChatDialogBehavior),_.k("design:type",Object)],Rx.prototype,"ytLiveChatDialogBehavior",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],Rx);
var GeD=_.B(Rx,"yt-live-chat-dialog-renderer",function(){if(keb===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;oDe===void 0&&(oDe=document.createElement("template"));var P=oDe;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);keb=R}R=keb;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var Zqo;var tcb,wxx=function(){if(tcb!==void 0)return tcb;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Zqo===void 0&&(Zqo=document.createElement("template"));var P=Zqo;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return tcb=R};var ufb;var ebZ;var A5=function(){var R=_.K.apply(this,arguments)||this;R.tooltip=null;R.data=null;R.id="";R.active=!1;R.icon="";R.disabled=!1;R.showTooltip=!1;R.useToggledActiveState=!0;R.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return R};
_.H(A5,_.K);_.l=A5.prototype;
_.l.dataChanged=function(){var R;((R=this.data)==null?0:R.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,_.Jh)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var A;if((A=this.data)==null?0:A.disabled)this.disabled=!0};
_.l.computeId=function(R){return R};
_.l.computeIcon=function(R,A){if(!R)return"";if(this.useToggledActiveState)return"yt-icons:"+R.toLowerCase();var Y,P;return A&&((Y=this.data)==null?0:(P=Y.toggledIcon)==null?0:P.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+R.toLowerCase()};
_.l.logPDGEntryPoint=function(){_.Ty6(_.mb("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")};
_.l.immediatelyShowTooltip=function(){var R=_.Mo(this.hostElement).querySelector("#tooltip");R.animationDelay=0;R.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};R.show()};
_.l.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.l.onClick=function(R){var A;((A=this.data)==null?0:A.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(),R.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.xo(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.l.computeShowTooltip=function(R,A){return!!(R&&R.tooltip&&A)};
_.l.maybeUpdateTooltipText=function(){var R=this,A;if((A=this.data)==null?0:A.tooltip){var Y=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.Jh)(R.tooltip).textContent=Y},250)}};
_.l.handleLiveChatActions=function(R){var A=this;R.length&&(this.id!=="creator"&&this.id!=="product-picker"||R.forEach(function(Y){(Y=A.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",Y))&&Y.durationSec===Y.fullDurationSec&&A.startBubble(A.colorFromDecimal(Y.startBackgroundColor))}))};
_.l.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.l.startBubble=function(R){_.ya(this.hostElement,{"--yt-live-chat-monetization-button-glow":R});this.hostElement.setAttribute("bubble","")};
_.l.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.l.colorFromDecimal=function(R){typeof R==="string"&&(R=Number(R));return"rgba("+[R>>16&255,R>>8&255,R&255,(R>>24&255)/255].join()+")"};
A5.prototype.onAnimationEnd=A5.prototype.onAnimationEnd;A5.prototype.disabledChanged=A5.prototype.disabledChanged;A5.prototype.dataChanged=A5.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],A5.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],A5.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.zu.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],A5.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],A5.prototype,"data",void 0);_.C([_.S({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",Object)],A5.prototype,"id",void 0);_.C([_.S({notify:!0,reflectToAttribute:!0}),_.k("design:type",Object)],A5.prototype,"active",void 0);
_.C([_.S({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.k("design:type",Object)],A5.prototype,"icon",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],A5.prototype,"disabled",void 0);_.C([_.S({computed:"computeShowTooltip(data, disabled)"}),_.k("design:type",Object)],A5.prototype,"showTooltip",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],A5.prototype,"useToggledActiveState",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A5.prototype,"dataChanged",null);_.C([_.vZ("disabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],A5.prototype,"disabledChanged",null);_.C([_.Qa("animationend"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],A5.prototype,"onAnimationEnd",null);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],A5);
_.B(A5,"yt-live-chat-icon-toggle-button-renderer",function(){if(ebZ===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;ufb===void 0&&(ufb=document.createElement("template"));var P=ufb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ebZ=R}R=ebZ;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var qgg;var Loo;var Y3=function(){return _.K.apply(this,arguments)||this};
_.H(Y3,_.K);Y3.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.C([_.S(),_.k("design:type",Object)],Y3.prototype,"data",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.F({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Y3);
_.B(Y3,"yt-live-chat-message-input-prompt-header-renderer",function(){if(Loo===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;qgg===void 0&&(qgg=document.createElement("template"));var P=qgg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Loo=R}R=Loo;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var dLb;var RKg;var AOb;var YTc;var Peb;var EUo;var zKe=function(){return _.K.apply(this,arguments)||this};
_.H(zKe,_.K);_.C([_.S(),_.k("design:type",Object)],zKe.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],zKe);
_.B(zKe,"yt-live-chat-message-subtext-renderer",function(){if(EUo===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Peb===void 0&&(Peb=document.createElement("template"));var P=Peb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);EUo=R}R=EUo;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var Pn=function(){var R=_.K.apply(this,arguments)||this;R.subtextOnBottom=!1;R.buttonOverrides={style:"mono",type:"tonal"};return R};
_.H(Pn,_.K);Pn.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Pn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Pn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Pn.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Pn.prototype,"subtextOnBottom",void 0);_.C([_.S(),_.k("design:type",Object)],Pn.prototype,"buttonOverrides",void 0);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],Pn);
_.B(Pn,"yt-live-chat-message-renderer",function(){if(YTc===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;AOb===void 0&&(AOb=document.createElement("template"));var P=AOb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);YTc=R}R=YTc;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var iyL;var l4$;var EI=function(){var R=_.K.apply(this,arguments)||this;R.isRemovable=!1;R.hasPrefilledText=!1;R.isInputDirty=!1;R.overCharacterLimit=!1;R.underCharacterLimit=!1;R.showErrorMessage=!1;return R};
_.H(EI,_.K);_.l=EI.prototype;_.l.computeId=function(){return this.data.id};
_.l.computeInputData=function(){return this.data.inputData};
_.l.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.l.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.l.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.l.getLiveChatRichMessageInput=function(){return _.Mo(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.l.clearInput=function(){_.Mo(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.l.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.l.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.l.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.l.handleTextInputCharCountChanged=function(R){R=R.detail&&R.detail.characterCount;R!==void 0&&(this.characterCount=R,R!==0&&(this.isInputDirty=!0))};
_.l.onInputFocusOut=function(){this.isInputDirty=!0};
_.l.onClickCloseButton=function(){_.xo(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
EI.prototype.handleTextInputCharCountChanged=EI.prototype.handleTextInputCharCountChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],EI.prototype,"data",void 0);_.C([_.S({computed:"computeId(data.id)"}),_.k("design:type",String)],EI.prototype,"id",void 0);_.C([_.S({computed:"computeInputData(data.inputData)"}),_.k("design:type",Object)],EI.prototype,"inputData",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.k("design:type",Object)],EI.prototype,"isRemovable",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.k("design:type",Object)],EI.prototype,"hasPrefilledText",void 0);_.C([_.S({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.k("design:type",Number)],EI.prototype,"charactersRemaining",void 0);
_.C([_.S(),_.k("design:type",Number)],EI.prototype,"characterCount",void 0);_.C([_.S(),_.k("design:type",Object)],EI.prototype,"isInputDirty",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.k("design:type",Object)],EI.prototype,"overCharacterLimit",void 0);_.C([_.S({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.k("design:type",Object)],EI.prototype,"underCharacterLimit",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.k("design:type",Object)],EI.prototype,"showErrorMessage",void 0);_.C([_.Qa("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EI.prototype,"handleTextInputCharCountChanged",null);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],EI);
_.B(EI,"yt-live-chat-poll-editor-input",function(){if(l4$===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;iyL===void 0&&(iyL=document.createElement("template"));var P=iyL;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);l4$=R}R=l4$;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var xRo;var cOg;var Oyx={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},zW=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_button_rework_with_live");R.closeButtonOverrides={iconPosition:"icon-only"};R.startButtonOverrides={style:"mono",type:"filled"};R.addOptionButtonOverrides={style:"mono",type:"text"};return R};
_.H(zW,_.K);_.l=zW.prototype;
_.l.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"}}}}};
_.l.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var R;_.n((R=this.data)==null?void 0:R.startButton,_.RC)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.computeId=function(){return this.data&&this.data.id||""};
_.l.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.l.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.l.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.l.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.l.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var R=0;R<this.pollEditorInfoWithDefaults.minPollOptions;R++)this.addPollOptionData()};
_.l.getIsValidPoll=function(){var R=this;if(!this.pollEditorInfoWithDefaults)return!1;var A=this.pollEditorInfoWithDefaults,Y=A.minPollOptionChars,P=A.maxPollOptionChars,E=A.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>A.maxPollQuestionChars)return!1;A=_.Mo(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(A).every(function(z,c){z=z.characterCount;!z&&E[c]&&(z=R.ytRendererBehavior.getSimpleString(E[c]).length);return z!==void 0&&z>=Y&&z<=P})};
_.l.isValidPollChanged=function(){var R;_.n((R=this.data)==null?void 0:R.startButton,_.RC)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.l.addPollOptionData=function(){var R=this.pollEditorInfoWithDefaults,A=R.maxPollOptionChars,Y=R.optionPlaceholderText,P=R.customOptionPlaceholderText,E=R.pollOptionData;this.currentNumPollOptions>=R.maxPollOptions||(R={liveChatPollOptionInput:{inputData:{placeholder:P[this.currentNumPollOptions]||Y,maxCharacterLimit:A},maxCharacterLimit:A,minCharacterLimit:R.minPollOptionChars,hasPrefilledText:!!P[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=R.minPollOptions}},E.charCountErrorText&&
(R.liveChatPollOptionInput.charCountErrorText=E.charCountErrorText),E.charsRemainingAltLabel&&(R.liveChatPollOptionInput.charsRemainingAltLabel=E.charsRemainingAltLabel),E.removeOptionAltText&&(R.liveChatPollOptionInput.removeOptionAltText=E.removeOptionAltText),this.push("pollOptionsData",R),E=Array.from(_.Mo(_.Mo(this.hostElement).querySelector("#poll-options")).children),E.forEach(function(z,c){z.polymerController.set("data.id",c)}),_.Mo(E[E.length-1]).querySelector("#input").focus())};
_.l.getPollOptionInputValues=function(){var R=this,A=[],Y=_.Mo(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),P=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(Y).forEach(function(E,z){var c=null;E=E.getLiveChatRichMessageInput();var M;(E==null?0:(M=E.textSegments)==null?0:M.length)?c=_.kL(E):P[z]&&(c=R.formattedStringToLiveChatRichMessageInput(P[z]));A.push(c)});
return A};
_.l.requestCreateAndStartPoll=function(R){var A=this.getPollOptionInputValues();if(!A.some(function(P){return!P})){A={optionText:A};
var Y=_.Mo(_.Mo(this.hostElement).querySelector("#poll-question")).firstChild;Y&&Y.liveChatRichMessageInput&&(A.questionText=_.kL(Y.liveChatRichMessageInput));_.sC(this.hostElement,[R,A])}};
_.l.selectedChanged=function(){if(this.selected){var R=_.Mo(_.Mo(this.hostElement).querySelector("#start-button")).firstElementChild;if(R){var A;(A=_.Mo(R).querySelector("#button")||_.sl(R).querySelector("button"))==null||A.focus()}}};
_.l.handleTextInputChanged=function(R){var A;((A=R.target)==null?void 0:A.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=R.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.l.handleStartButtonAction=function(R){R.detail.actionName==="yt-service-request"&&(R.stopPropagation(),(R=R.detail.args[1])&&this.requestCreateAndStartPoll(R))};
_.l.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(R){this.createPollRequestInFlight=!1;(R=R.detail&&R.detail.data)&&R.success&&(_.xo(this.hostElement,"picker-cancelled"),_.OC(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.l.onCloseClick=function(){_.xo(this.hostElement,"picker-cancelled");_.OC(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.l.handlePollEditorInputClosed=function(R){var A=this.pollOptionsData.findIndex(function(Y){return Y.liveChatPollOptionInput.id===R.detail.id});
this.splice("pollOptionsData",A,1);this.isValidPoll=this.getIsValidPoll()};
_.l.onPickerCancelled=function(){this.reset()};
_.l.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var R=_.Mo(_.Mo(this.hostElement).querySelector("#poll-question")).firstChild;R&&R.setLiveChatRichMessageInput(null);if(R=_.Mo(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){R=_.x(Array.from(R));for(var A=R.next();!A.done;A=R.next())A.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.l.formattedStringToLiveChatRichMessageInput=function(R){return R.simpleText?{text_segments:[R.simpleText]}:{text_segments:R.runs}};
_.Yh.Object.defineProperties(zW.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(Oyx,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
zW.prototype.onPickerCancelled=zW.prototype.onPickerCancelled;zW.prototype.handlePollEditorInputClosed=zW.prototype.handlePollEditorInputClosed;zW.prototype.handleServiceRequestCompleted=zW.prototype.handleServiceRequestCompleted;zW.prototype.handleServiceRequestSent=zW.prototype.handleServiceRequestSent;zW.prototype.handleTextInputChanged=zW.prototype.handleTextInputChanged;zW.prototype.selectedChanged=zW.prototype.selectedChanged;zW.prototype.isValidPollChanged=zW.prototype.isValidPollChanged;
zW.prototype.shouldInitializePollChanged=zW.prototype.shouldInitializePollChanged;zW.prototype.dataChanged=zW.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zW.prototype,"modern",void 0);
_.C([_.S(),_.k("design:type",Object)],zW.prototype,"closeButtonOverrides",void 0);_.C([_.S(),_.k("design:type",Object)],zW.prototype,"startButtonOverrides",void 0);_.C([_.S(),_.k("design:type",Object)],zW.prototype,"addOptionButtonOverrides",void 0);_.C([_.S({computed:"computeId(data.id)",reflectToAttribute:!0}),_.k("design:type",String)],zW.prototype,"id",void 0);_.C([_.S({value:function(){return[]}}),
_.k("design:type",Array)],zW.prototype,"pollOptionsData",void 0);_.C([_.X("pollEditorInfoWithDefaults"),_.k("design:type",Object),_.k("design:paramtypes",[])],zW.prototype,"pollQuestionData",null);_.C([_.S({value:0}),_.k("design:type",Number)],zW.prototype,"pollQuestionCharacterCount",void 0);_.C([_.X("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],zW.prototype,"pollQuestionCharactersRemaining",null);
_.C([_.S({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.k("design:type",Boolean)],zW.prototype,"overQuestionCharacterLimit",void 0);_.C([_.X("data.pollEditorInfo"),_.k("design:type",Object),_.k("design:paramtypes",[])],zW.prototype,"pollEditorInfoWithDefaults",null);_.C([_.S({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.k("design:type",Number)],zW.prototype,"currentNumPollOptions",void 0);
_.C([_.S({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.k("design:type",Boolean)],zW.prototype,"hasMaxNumPollOptions",void 0);_.C([_.X("pollEditorInfoWithDefaults","pollOptionsData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],zW.prototype,"shouldInitializePoll",null);_.C([_.S(),_.k("design:type",Object)],zW.prototype,"isValidPoll",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],zW.prototype,"createPollRequestInFlight",void 0);_.C([_.S(),_.k("design:type",Object)],zW.prototype,"selected",void 0);_.C([_.S({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.k("design:type",Boolean)],zW.prototype,"showQuestionErrorMessage",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zW.prototype,"dataChanged",null);_.C([_.vZ("shouldInitializePoll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zW.prototype,"shouldInitializePollChanged",null);_.C([_.vZ("isValidPoll"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zW.prototype,"isValidPollChanged",null);
_.C([_.vZ("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zW.prototype,"selectedChanged",null);_.C([_.Qa("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zW.prototype,"handleTextInputChanged",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zW.prototype,"handleServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zW.prototype,"handleServiceRequestCompleted",null);
_.C([_.Qa("yt-live-chat-poll-editor-input-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],zW.prototype,"handlePollEditorInputClosed",null);_.C([_.Qa("picker-cancelled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zW.prototype,"onPickerCancelled",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],zW);
_.B(zW,"yt-live-chat-poll-editor-panel-renderer",function(){if(cOg===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;xRo===void 0&&(xRo=document.createElement("template"));var P=xRo;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);cOg=R}R=cOg;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var MBg;var sGb;var iY=function(){return _.K.apply(this,arguments)||this};
_.H(iY,_.K);iY.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
iY.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Yh.Object.defineProperties(iY.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var R,A;return(R=this.data)==null?void 0:(A=R.title)==null?void 0:A.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var R;return _.h7((R=this.data)==null?void 0:R.onTapCommand)}}});
_.C([_.U(_.bF.YtEndpointBehavior),_.k("design:type",Object)],iY.prototype,"ytEndpointBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iY.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iY.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],iY.prototype,"itemId",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],iY.prototype,"hasPromotion",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],iY.prototype,"innertubeCommand",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],iY);
_.B(iY,"yt-live-chat-product-picker-panel-item-view-model",function(){if(sGb===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;MBg===void 0&&(MBg=document.createElement("template"));var P=MBg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);sGb=R}R=sGb;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var N2o;var VB$;var lY=function(){var R=_.K.apply(this,arguments)||this;R.id="product-picker";R.selected=!1;R.closeButtonId="close-button";R.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return R};
_.H(lY,_.K);_.l=lY.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var R=_.Mo(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");R.length&&R[0].focus()};
_.l.onCloseBuyFlow=function(){_.xo(this.hostElement,"picker-cancelled")};
_.l.onCloseClick=function(){_.xo(this.hostElement,"picker-cancelled");var R;((R=this.data)==null?0:R.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.closeButton,_.E7))};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.xo(this.hostElement,"picker-cancelled")};
lY.prototype.observeSelected=lY.prototype.observeSelected;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],lY.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lY.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lY.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],lY.prototype,"id",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],lY.prototype,"selected",void 0);_.C([_.S(),_.k("design:type",Object)],lY.prototype,"closeButtonId",void 0);_.C([_.vZ("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lY.prototype,"observeSelected",null);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],lY);
_.B(lY,"yt-live-chat-product-picker-panel-view-model",function(){if(VB$===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;N2o===void 0&&(N2o=document.createElement("template"));var P=N2o;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);VB$=R}R=VB$;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var JOg;var yOx;var x3=function(){var R=_.K.apply(this,arguments)||this;R.iconId="";R.icon="";R.disabled=!1;R.systemIcons=_.v("kevlar_system_icons");return R};
_.H(x3,_.K);_.l=x3.prototype;_.l.computeIconId=function(R){return R&&R.icon&&R.icon.iconType?R.icon.iconType.toLowerCase():""};
_.l.computeIcon=function(R){return R&&R.icon&&R.icon.iconType?(R=R.icon.iconType.toLowerCase(),(R.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+R):""};
_.l.computeDisabled=function(R){return!!R};
_.l.computeCommand=function(R,A){return A?void 0:R};
_.l.computeTooltip=function(R,A){return A&&R?R:""};
_.l.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Yh.Object.defineProperties(x3.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var R="",A,Y,P;if((A=this.data)==null?0:(Y=A.text)==null?0:(P=Y.runs)==null?0:P.length)R=this.data.text.runs[0].text||"";else{var E,z;if((E=this.data)==null?0:(z=E.text)==null?0:z.simpleText)R=this.data.text.simpleText}var c,M,N;if((c=this.data)==null?0:(M=c.subtext)==null?0:(N=M.runs)==null?0:N.length)R&&(R+=". "),R+=this.data.subtext.runs[0].text||"";else{var y,m;if((y=this.data)==null?0:(m=y.subtext)==
null?0:m.simpleText)R&&(R+=". "),R+=this.data.subtext.simpleText}return R}}});
_.C([_.U(_.bF.YtEndpointBehavior),_.k("design:type",Object)],x3.prototype,"ytEndpointBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],x3.prototype,"data",void 0);_.C([_.S({computed:"computeIconId(data)",reflectToAttribute:!0}),_.k("design:type",Object)],x3.prototype,"iconId",void 0);
_.C([_.S({computed:"computeIcon(data)",reflectToAttribute:!0}),_.k("design:type",Object)],x3.prototype,"icon",void 0);_.C([_.S({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.k("design:type",Object)],x3.prototype,"disabled",void 0);_.C([_.S({computed:"computeCommand(data.command, disabled)"}),_.k("design:type",Object)],x3.prototype,"command",void 0);_.C([_.S({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.k("design:type",String)],x3.prototype,"tooltip",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],x3.prototype,"systemIcons",void 0);_.C([_.X("data.text","data.subtext"),_.S(),_.k("design:type",String),_.k("design:paramtypes",[])],x3.prototype,"ariaLabel",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],x3);
_.B(x3,"yt-live-chat-product-button-renderer",function(){if(yOx===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" aria-label$="[[ariaLabel]]" disabled$="[[disabled]]" role="menuitem" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;JOg===void 0&&(JOg=document.createElement("template"));var P=JOg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);yOx=R}R=yOx;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var mRZ;var T2Z;var cn=function(){var R=_.K.apply(this,arguments)||this;R.selected=!1;R.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels","yt-signal-action-close-engage-with-audience-editor-panel":"onCloseEngageWithAudienceEditorPanels"};return R};
_.H(cn,_.K);_.l=cn.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.computeId=function(R){return R.id||""};
_.l.onCloseClick=function(){_.xo(this.hostElement,"picker-cancelled")};
_.l.observeSelected=function(){this.selected&&this.hostElement.focus();var R=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");R.length&&R[0].focus()};
_.l.onCloseBuyFlow=function(){_.xo(this.hostElement,"picker-cancelled")};
_.l.onCloseEngageWithAudienceEditorPanels=function(){_.xo(this.hostElement,"picker-cancelled")};
cn.prototype.observeSelected=cn.prototype.observeSelected;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],cn.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],cn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cn.prototype,"data",void 0);
_.C([_.S({computed:"computeId(data)",reflectToAttribute:!0}),_.k("design:type",String)],cn.prototype,"id",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cn.prototype,"selected",void 0);_.C([_.vZ("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],cn.prototype,"observeSelected",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],cn);
_.B(cn,"yt-live-chat-product-picker-renderer",function(){if(T2Z===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;mRZ===void 0&&(mRZ=document.createElement("template"));var P=mRZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);T2Z=R}R=T2Z;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var QGx;var vUE;var gUZ;var nUg;var OI=function(){return _.K.apply(this,arguments)||this};
_.H(OI,_.K);OI.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()};
OI.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
OI.prototype.created=function(){this.ids={background:_.E4(),maskOne:_.E4(),maskTwo:_.E4(),gradient:_.E4(),largeBackground:_.E4(),largeGradientOne:_.E4(),largeGradientTwo:_.E4(),largeGradientPath:_.E4()}};
OI.prototype.maybeLoadAnimationBackground=OI.prototype.maybeLoadAnimationBackground;_.C([_.S({value:!1}),_.k("design:type",Boolean)],OI.prototype,"useLargeBackground",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],OI.prototype,"useAnimationBackground",void 0);_.C([_.S({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.k("design:type",Boolean)],OI.prototype,"useRegularBackground",void 0);
_.C([_.S(),_.k("design:type",Object)],OI.prototype,"ids",void 0);_.C([_.S(),_.k("design:type",Object)],OI.prototype,"lottieAnimation",void 0);_.C([_.nG("#animation-background"),_.k("design:type",HTMLDivElement)],OI.prototype,"animationBackground",void 0);_.C([_.vZ("useAnimationBackground"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OI.prototype,"maybeLoadAnimationBackground",null);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],OI);
_.B(OI,"yt-live-interactivity-component-background",function(){if(nUg===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;gUZ===void 0&&(gUZ=document.createElement("template"));var P=gUZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);nUg=R}R=nUg;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var MO=function(){var R=_.K.apply(this,arguments)||this;R.characterCount=0;R.showInputErrorMessage=!1;R.startQnaRequestInFlight=!1;R.modern=_.v("web_button_rework_with_live");R.buttonOverrides={style:"mono",type:"filled"};R.closeButtonOverrides={iconPosition:"icon-only"};R.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return R};
_.H(MO,_.K);_.l=MO.prototype;
_.l.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]]"}}}}}};
_.l.onCharacterCountChanged=function(R){var A,Y,P,E,z=(Y=_.n(this==null?void 0:(A=this.data)==null?void 0:A.creatorCallForQuestions,Rbb))==null?void 0:(P=Y.inputField)==null?void 0:(E=P.liveChatTextInputFieldRenderer)==null?void 0:E.maxCharacterLimit,c,M;z!=null&&(R==null?void 0:(c=R.detail)==null?void 0:c.characterCount)!=null&&_.n(this==null?void 0:(M=this.data)==null?void 0:M.startButton,_.RC)&&(A=R.detail.characterCount>z,this.set("data.startButton.buttonRenderer.isDisabled",R.detail.characterCount===
0||A),this.showInputErrorMessage=A)};
_.l.onCloseClick=function(){_.xo(this.hostElement,"picker-cancelled");_.OC(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.onPickerCancelled=function(){var R=_.Mo(this.hostElement).querySelector("#qna-creator-text-input-field");R&&R.setLiveChatRichMessageInput(null)};
_.l.handleOpenQnaStartPanel=function(){var R=_.Mo(this.hostElement).querySelector("#qna-creator-text-input-field");R&&R.focus()};
_.l.handleStartButtonAction=function(R){var A=this;if(R.detail.actionName==="yt-service-request"&&(R.stopPropagation(),R=R.detail.args[1])){var Y=_.Mo(this.hostElement).querySelector("#qna-creator-text-input-field"),P;(Y==null?0:(P=Y.liveChatRichMessageInput)==null?0:P.textSegments)&&Y.liveChatRichMessageInput.textSegments.length!==0&&(P={rich_message:_.kL(Y.liveChatRichMessageInput)},_.sC(this.hostElement,[R,P]).then(function(){_.xo(A.hostElement,"picker-cancelled")}))}};
_.l.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.l.handleServiceRequestCompleted=function(R){var A;R=R==null?void 0:(A=R.detail)==null?void 0:A.data;(R==null?0:R.actions)&&R.actions.length>0?this.startQnaRequestInFlight=!1:_.OC(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.l.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
MO.prototype.handleServiceRequestError=MO.prototype.handleServiceRequestError;MO.prototype.handleServiceRequestCompleted=MO.prototype.handleServiceRequestCompleted;MO.prototype.handleServiceRequestSent=MO.prototype.handleServiceRequestSent;MO.prototype.onPickerCancelled=MO.prototype.onPickerCancelled;MO.prototype.onCharacterCountChanged=MO.prototype.onCharacterCountChanged;_.C([_.S(),_.k("design:type",Object)],MO.prototype,"characterCount",void 0);
_.C([_.S(),_.k("design:type",Object)],MO.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],MO.prototype,"showInputErrorMessage",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],MO.prototype,"startQnaRequestInFlight",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],MO.prototype,"modern",void 0);_.C([_.S(),_.k("design:type",Object)],MO.prototype,"buttonOverrides",void 0);
_.C([_.S(),_.k("design:type",Object)],MO.prototype,"closeButtonOverrides",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],MO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],MO.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.U(_.Ob.YtLiveChatItemBehavior),_.k("design:type",_.Mv)],MO.prototype,"ytLiveChatItemBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],MO.prototype,"ytActionHandlerBehavior",void 0);_.C([_.Qa("yt-live-chat-text-input-field-renderer-character-count-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],MO.prototype,"onCharacterCountChanged",null);_.C([_.Qa("picker-cancelled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MO.prototype,"onPickerCancelled",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MO.prototype,"handleServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],MO.prototype,"handleServiceRequestCompleted",null);
_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],MO.prototype,"handleServiceRequestError",null);_.C([_.F({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],MO);
_.B(MO,"yt-live-chat-qna-start-panel-renderer",function(){if(vUE===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;QGx===void 0&&(QGx=document.createElement("template"));var P=QGx;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);vUE=R}R=vUE;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var Hyc;var rOf;var sI=function(){return _.K.apply(this,arguments)||this};
_.H(sI,_.K);sI.prototype.dismiss=function(){_.xo(this.hostElement,"yt-live-chat-error-message-dismiss")};
sI.prototype.edit=function(){_.xo(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.C([_.S(),_.k("design:type",Object)],sI.prototype,"data",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],sI);
_.B(sI,"yt-live-chat-text-actions-error-message-renderer",function(){if(rOf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Hyc===void 0&&(Hyc=document.createElement("template"));var P=Hyc;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);rOf=R}R=rOf;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var DRx;var URx;var $Rb;var Xtc;var NO=function(){var R=_.K.apply(this,arguments)||this;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.newnessDotEligible=!1;return R};
_.H(NO,_.K);NO.prototype.sendReaction=function(){var R,A,Y=((R=this.data)==null?void 0:R.emojiId)||((A=this.data)==null?void 0:A.emoteId),P;Y&&((P=this.data)==null?0:P.shouldTriggerAnimation)&&_.OC(this.hostElement,"yt-create-user-reaction-animation",[Y]);var E;(R=_.h7((E=this.data)==null?void 0:E.onTap))&&_.vc(R,this.hostElement);this.showNewnessDot&&_.OC(this.hostElement,"yt-hide-newness-dot")};
NO.prototype.onClick=function(R){(!R||R.clientX||R.clientY)&&this.sendReaction()};
NO.prototype.onKeyDown=function(R){R.key!=="Enter"&&R.key!==" "||R.repeat||this.sendReaction()};
_.Yh.Object.defineProperties(NO.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var R,A;return!!(((R=this.data)==null?0:R.emojiId)||((A=this.data)==null?0:A.emoteId))}}});
_.C([_.S(),_.k("design:type",Object)],NO.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],NO.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],NO.prototype,"newnessDotEligible",void 0);_.C([_.X("data.maybeShowNewnessDot"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],NO.prototype,"showNewnessDot",null);_.C([_.X("data.emojiId","data.emoteId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],NO.prototype,"useYtImage",null);
_.C([_.CG({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],NO);
_.B(NO,"yt-reaction-control-panel-button-view-model",function(){if(Xtc===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;$Rb===void 0&&($Rb=document.createElement("template"));var P=$Rb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Xtc=R}R=Xtc;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var STZ;var I4o;var Vw=function(){var R=_.K.apply(this,arguments)||this;R.reactionControlPanelExpanded=!1;R.isDarkTheme=document.documentElement.hasAttribute("dark");R.newnessDotEligible=!1;return R};
_.H(Vw,_.K);_.l=Vw.prototype;_.l.expandedButtonsChanged=function(){var R,A;_.ya(this.hostElement,{"--expanded-buttons-height":((A=(R=this.expandedButtonsData)==null?void 0:R.length)!=null?A:0)*36+"px"})};
_.l.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}}};
_.l.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.l.onMouseLeave=function(){var R=this;this.collapseTimer=setTimeout(function(){R.reactionControlPanelExpanded=!1},500)};
_.l.onFocusIn=function(){this.onMouseEnter()};
_.l.onFocusOut=function(){this.onMouseLeave()};
_.l.onCollapsedButtonFocusIn=function(){var R=this;setTimeout(function(){var A;(A=R.expandedButtons.querySelector("button"))==null||A.focus()},100)};
_.l.onCollapsedButtonFocusOut=function(R){R.stopPropagation()};
_.Yh.Object.defineProperties(Vw.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var R,A;return _.BO.unsafeClone((R=this.liveReactionsData)==null?void 0:R.emojiButtonData)||((A=this.data)==null?void 0:A.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var R;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((R=this.data)==null||!R.maybeShowNewnessDot)}}});
Vw.prototype.expandedButtonsChanged=Vw.prototype.expandedButtonsChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Vw.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Vw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],Vw.prototype,"ytLiveChatReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Vw.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Vw.prototype,"reactionControlPanelExpanded",void 0);_.C([_.S({selectorArgs:["data.liveReactionsDataEntityKey"],selector:XSf}),_.k("design:type",Object)],Vw.prototype,"liveReactionsData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Vw.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],Vw.prototype,"newnessDotEligible",void 0);
_.C([_.X("liveReactionsData","data.expandedButtons"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vw.prototype,"expandedButtonsData",null);_.C([_.X("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.S({reflectToAttribute:!0}),_.k("design:type",Object),_.k("design:paramtypes",[])],Vw.prototype,"showNewnessDot",null);_.C([_.nG("#expanded-buttons"),_.k("design:type",HTMLElement)],Vw.prototype,"expandedButtons",void 0);
_.C([_.vZ("expandedButtonsData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Vw.prototype,"expandedButtonsChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],Vw);
_.B(Vw,"yt-reaction-control-panel-view-model",function(){if(I4o===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;STZ===void 0&&(STZ=document.createElement("template"));var P=STZ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);I4o=R}R=I4o;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var J5=new _.Cn("yt-live-chat"),K6f=Date.parse("2024-7-24"),yw=function(){var R=_.K.apply(this,arguments)||this;R.emojiManager=_.cw;R.newnessDotEligible=!1;R.newnessDotImpressionCounted=!1;R.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return R};
_.H(yw,_.K);_.l=yw.prototype;_.l.emojiCustomizationEnabledChanged=function(){var R;((R=this.data)==null?0:R.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((R=J5.getCreationTime("emoji-customization-count"))&&R<K6f&&J5.set("emoji-customization-count","0"),R=Number(J5.get("emoji-customization-count"))||0,R<3&&(this.newnessDotEligible=!0,J5.set("emoji-customization-count",(R+1).toString())),this.newnessDotImpressionCounted=!0)};
_.l.hideNewnessDot=function(){this.newnessDotEligible=!1;J5.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.l.handleReactionsMute=function(R){var A=_.F9(),Y=_.NV(206221),P={checkboxData:{state:R?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};A&&_.qT(A,Y,P);this.reactionsMuted=R};
_.l.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.l.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}}};
_.Yh.Object.defineProperties(yw.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var R;return(!((R=this.liveReactionsData)==null||!R.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
yw.prototype.liveReactionsSettingChanged=yw.prototype.liveReactionsSettingChanged;yw.prototype.emojiCustomizationEnabledChanged=yw.prototype.emojiCustomizationEnabledChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yw.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],yw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Eh),_.k("design:type",Object)],yw.prototype,"ytLiveChatReduxBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],yw.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yw.prototype,"data",void 0);_.C([_.S(),_.k("design:type",_.iO)],yw.prototype,"emojiManager",void 0);_.C([_.S(),_.k("design:type",Object)],yw.prototype,"newnessDotEligible",void 0);_.C([_.S(),_.k("design:type",Object)],yw.prototype,"newnessDotImpressionCounted",void 0);
_.C([_.S({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:SAE}),_.k("design:type",Boolean)],yw.prototype,"liveReactionsSetting",void 0);_.C([_.S({selectorArgs:["data.liveReactionsDataEntityKey"],selector:XSf}),_.k("design:type",Object)],yw.prototype,"liveReactionsData",void 0);_.C([_.S({value:function(){var R=_.v("enable_lwe_web_mute"),A=J5.get("allow-reactions");return A===void 0?!1:!A&&R}}),
_.k("design:type",Boolean)],yw.prototype,"reactionsMuted",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yw.prototype,"liveReactionsEnabled",null);_.C([_.vZ("data.emojiCustomizationEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"emojiCustomizationEnabledChanged",null);
_.C([_.vZ("liveReactionsEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yw.prototype,"liveReactionsSettingChanged",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],yw);
_.B(yw,"yt-reaction-control-panel-overlay-view-model",function(){if(URx===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;DRx===void 0&&(DRx=document.createElement("template"));var P=DRx;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);URx=R}R=URx;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var W6q={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(R){var A=this.$.pickers.selected;if(A){_.Mo(this.hostElement).removeAttribute(A+"-open");var Y="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(Y="#picker-buttons",A==="emoji"&&_.Mo(this.hostElement).querySelector("#emoji-picker-button")&&(Y="#emoji-picker-button"));if(Y=_.Mo(this.hostElement).querySelector(Y).querySelector("#"+A))Y.active=!1}Y=R;A==R&&(Y=null);A!=
R&&_.Mo(this.hostElement).setAttribute(R+"-open","");this.$.pickers.selected=Y;_.OC(this.hostElement,"yt-live-chat-picker-changed",[Y])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var mt=function(){var R=_.K.apply(this,arguments)||this;R.numSentMessages=0;R.timeoutDurationMs=0;R.timeoutMs=0;R.lastTimeoutTimeMs=0;R.pendingMessageId="";R.hasFiredInitialFocusActions=!1;R.isBeforeFocusEnabled=!0;R.id="";R.characterCount=0;R.maxCharacterLimit=0;R.remainingCharacterCount=0;R.inputExpanded=!1;R.buttonOverrides={iconPosition:"icon-only"};R.inReplyPanel=!1;R.countdownRatio=0;R.isTooltipVisible=!1;R.tooltipTimeout=1E4;R.systemIcons=_.v("kevlar_system_icons");R.tallerEmojiPicker=_.v("live_chat_taller_emoji_picker");
R.sendReplyMessageInFlight=!1;R.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"};R.onResize=function(){R.maybeToggleCharacterCount()};
return R};
_.H(mt,_.K);_.l=mt.prototype;
_.l.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"}}}};
_.l.attached=function(){window.addEventListener("resize",this.onResize)};
_.l.detached=function(){window.removeEventListener("resize",this.onResize)};
_.l.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.l.sendMessage=function(){var R=this,A,Y,P,E;return _.O(function(z){if(R.sendDisabled)return z.return();R.isTooltipVisible&&_.OC(R.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(R.data.sendButton&&R.data.sendButton.buttonRenderer){R.input.completeEmojis();A=R.data.sendButton.buttonRenderer.serviceEndpoint;if(!A)return z.return();P=((Y=_.n(A,_.TkA))==null?void 0:Y.clientIdPrefix)||"";E={client_message_id:P+String(R.numSentMessages++),rich_message:_.kL(R.input.liveChatRichMessageInput)};
R.pendingMessageId=E.client_message_id;R.inReplyPanel&&(R.sendReplyMessageInFlight=!0);_.sC(R.hostElement,[A,E]);R.input.setLiveChatRichMessageInput(null)}_.XH(z)})};
_.l.handleSendButtonAction=function(R){R.detail.actionName==="yt-service-request"&&(R.stopPropagation(),this.sendMessage())};
_.l.onSendCompleted=function(R,A){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(R=this.get("timeoutDurationUsec",A.data))&&this.handleTimeout(Number(R)/1E3);this.errorMessage=this.get("errorMessage",A.data);this.pendingMessageId=""};
_.l.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.OC(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.l.handlePickerButtonToggle=function(R){R=R.detail.targetId;this.ytPickerBehavior.togglePicker_(R);if(R==="emoji")this.input.focus();else if(R==="qna-start-panel"){var A,Y;(A=_.Mo(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(Y=A.querySelector("#qna-creator-text-input-field"))==null||Y.focus()}};
_.l.onComponentReplaced=function(R){var A,Y;R.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((A=R.replacement.liveChatMessageInputRenderer)==null?0:(Y=A.headerRenderer)==null?0:Y.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.l.onEmojiSelect=function(R){this.input.focus();this.input.insertEmoji(R.detail)};
_.l.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.l.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.OC(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.OC(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.l.onOpenPopupAction=function(R,A){var Y=this;A===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.OC(Y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.l.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.l.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.l.focusChanged=function(){this.maybeToggleCharacterCount()};
_.l.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var R=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",R>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.l.computeId=function(){return this.data&&this.data.targetId||""};
_.l.computeSendDisabled=function(R,A,Y,P){R=!!(!R||A&&R>A||P);(A=_.Mo(this.hostElement).querySelector("#send-button"))&&A.children.length&&(A.children[0].disabled=R);return R};
_.l.handleTimeout=function(R){this.timeoutDurationMs=this.timeoutMs=R;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.l.updateTimeout=function(R){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(R-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=R,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.l.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.l.onErrorMessageEdit=function(R){this.input.setLiveChatRichMessageInput(R.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.l.errorMessageChanged=function(){var R=this;_.wg(function(){_.OC(R.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.l.computeAuthorNameColor=function(R){var A;if(_.v("live_chat_author_name_color_usernames")&&(R==null?0:(A=R.authorName)==null?0:A.simpleText))return _.FNJ(_.BjP(R.authorName.simpleText));if(_.v("live_chat_seed_color_usernames")&&(R==null?0:R.authorSeedColorArgb))return _.FNJ(_.J7(R.authorSeedColorArgb));if(_.v("live_chat_colored_usernames"))return"#cc0000";var Y;return _.v("live_chat_simple_color_usernames")&&(R==null?0:(Y=R.authorName)==null?0:Y.simpleText)&&(R==null?0:R.authorUsernameColorLight)&&
(R==null?0:R.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.J7(R.authorUsernameColorDark):_.J7(R.authorUsernameColorLight):""};
_.l.onIsTooltipVisibleChanged=function(){var R=_.Mo(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){R.hidden=!1;R.setAttribute("role","alert")},0):(R.hidden=!0,R.removeAttribute("role"))};
_.l.onFocusedChanged=function(R){this.inputFocused=R.detail.value};
_.Yh.Object.defineProperties(mt.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 R;return!((R=this.data)==null||!R.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:(A=R.pickers)==null?void 0:A.find(function(Y){return Y.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var R=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return R?this.ytRendererBehavior.getSimpleString(R):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
mt.prototype.onIsTooltipVisibleChanged=mt.prototype.onIsTooltipVisibleChanged;mt.prototype.errorMessageChanged=mt.prototype.errorMessageChanged;mt.prototype.onErrorMessageEdit=mt.prototype.onErrorMessageEdit;mt.prototype.onErrorMessageDismiss=mt.prototype.onErrorMessageDismiss;mt.prototype.focusChanged=mt.prototype.focusChanged;mt.prototype.characterCountChanged=mt.prototype.characterCountChanged;mt.prototype.onEmojiSelect=mt.prototype.onEmojiSelect;mt.prototype.handlePickerButtonToggle=mt.prototype.handlePickerButtonToggle;
mt.prototype.onSendError=mt.prototype.onSendError;mt.prototype.onSendCompleted=mt.prototype.onSendCompleted;mt.prototype.sendMessage=mt.prototype.sendMessage;mt.prototype.dataChanged=mt.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mt.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],mt.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(W6q.YtPickerBehavior),_.k("design:type",Object)],mt.prototype,"ytPickerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mt.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zu.YtLiveChatTooltipTargetingBehavior),_.k("design:type",Object)],mt.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"hasFiredInitialFocusActions",void 0);
_.C([_.S(),_.k("design:type",Object)],mt.prototype,"isBeforeFocusEnabled",void 0);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"data",void 0);_.C([_.S({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.k("design:type",Object)],mt.prototype,"id",void 0);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"characterCount",void 0);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"maxCharacterLimit",void 0);
_.C([_.S(),_.k("design:type",Object)],mt.prototype,"remainingCharacterCount",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mt.prototype,"inputExpanded",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mt.prototype,"inputFocused",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],mt.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.C([_.S(),_.k("design:type",_.Vg)],mt.prototype,"participantsManager",void 0);
_.C([_.S(),_.k("design:type",Object)],mt.prototype,"buttonOverrides",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mt.prototype,"inReplyPanel",void 0);_.C([_.X("characterCount, maxCharacterLimit, countdownActive"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mt.prototype,"sendDisabled",null);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"countdownRatio",void 0);
_.C([_.X("countdownRatio"),_.k("design:type",Number),_.k("design:paramtypes",[])],mt.prototype,"countdownStrokeDashOffset",null);_.C([_.X("countdownRatio"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mt.prototype,"countdownActive",null);_.C([_.X("data.interactionMessage"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mt.prototype,"hasInteractionMessage",null);
_.C([_.X("data.emojiPickerButton"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mt.prototype,"hasEmojiPickerButton",null);_.C([_.X("data, characterCount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mt.prototype,"showAvatar",null);_.C([_.X("data.pickers"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],mt.prototype,"hasProductPickerPanelViewModel",null);
_.C([_.S(),_.k("design:type",Object)],mt.prototype,"errorMessage",void 0);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"genericErrorMessage",void 0);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"isTooltipVisible",void 0);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"tooltipTimeout",void 0);_.C([_.X("data.onInitialFocusCommand"),_.k("design:type",String),_.k("design:paramtypes",[])],mt.prototype,"tooltipMessage",null);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mt.prototype,"systemIcons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mt.prototype,"tallerEmojiPicker",void 0);_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],mt.prototype,"authorNameColor",null);_.C([_.S(),_.k("design:type",Object)],mt.prototype,"sendReplyMessageInFlight",void 0);_.C([_.nG("#input"),_.k("design:type",_.MT8)],mt.prototype,"input",void 0);
_.C([_.nG("#count"),_.k("design:type",HTMLElement)],mt.prototype,"count",void 0);_.C([_.nG("#input-container"),_.k("design:type",HTMLElement)],mt.prototype,"inputContainer",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mt.prototype,"dataChanged",null);_.C([_.Qa("yt-live-chat-send-message"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],mt.prototype,"sendMessage",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[Event,_.dl]),_.k("design:returntype")],mt.prototype,"onSendCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mt.prototype,"onSendError",null);
_.C([_.Qa("yt-live-chat-icon-toggle-button-renderer-toggle"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mt.prototype,"handlePickerButtonToggle",null);_.C([_.Qa("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mt.prototype,"onEmojiSelect",null);
_.C([_.vZ("characterCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mt.prototype,"characterCountChanged",null);_.C([_.vZ("inputFocused"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mt.prototype,"focusChanged",null);_.C([_.Qa("yt-live-chat-error-message-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mt.prototype,"onErrorMessageDismiss",null);
_.C([_.Qa("yt-live-chat-error-message-edit"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],mt.prototype,"onErrorMessageEdit",null);_.C([_.vZ("errorMessage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mt.prototype,"errorMessageChanged",null);_.C([_.vZ("isTooltipVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mt.prototype,"onIsTooltipVisibleChanged",null);
_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],mt);
_.B(mt,"yt-live-chat-message-input-renderer",function(){if(RKg===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;dLb===void 0&&(dLb=document.createElement("template"));var P=dLb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);RKg=R}R=RKg;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var jGx;var byx;var TW=function(){var R=_.K.apply(this,arguments)||this;R.systemIcons=_.v("kevlar_system_icons");R.firedOnClickCommand=!1;R.inReplyPanel=!1;return R};
_.H(TW,_.K);
TW.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"}}}};
TW.prototype.onButtonToggle=function(R){R.target.disabled||this.ytPickerBehavior.togglePicker_(R.detail.targetId)};
TW.prototype.onClick=function(){var R=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.OC(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return R.firedOnClickCommand=!1},5E3))};
_.Yh.Object.defineProperties(TW.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:(A=R.panels)==null?void 0:A.find(function(Y){return Y.liveChatProductPickerPanelViewModel}))!==void 0}}});
TW.prototype.onButtonToggle=TW.prototype.onButtonToggle;_.C([_.U(W6q.YtPickerBehavior),_.k("design:type",Object)],TW.prototype,"ytPickerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],TW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],TW.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],TW.prototype,"systemIcons",void 0);_.C([_.S({reflectToAttribute:!1}),_.k("design:type",Object)],TW.prototype,"firedOnClickCommand",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],TW.prototype,"inReplyPanel",void 0);_.C([_.X("data.pickers"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],TW.prototype,"hasProductPickerPanelViewModel",null);
_.C([_.Qa("yt-live-chat-icon-toggle-button-renderer-toggle"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],TW.prototype,"onButtonToggle",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],TW);
_.B(TW,"yt-live-chat-restricted-participation-renderer",function(){if(byx===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;jGx===void 0&&(jGx=document.createElement("template"));var P=jGx;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);byx=R}R=byx;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var Qw=function(){var R=_.K.apply(this,arguments)||this;R.genericErrorMessage=_.dF("Error, try again.");R.inReplyPanel=!1;R.hideBorder=!1;return R};
_.H(Qw,_.K);Qw.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}}}}}};
_.Yh.Object.defineProperties(Qw,{template:{configurable:!0,enumerable:!0,get:function(){return wxx()}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Qw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qw.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Qw.prototype,"genericErrorMessage",void 0);_.C([_.S(),_.k("design:type",Object)],Qw.prototype,"inReplyPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Qw.prototype,"hideBorder",void 0);
_.C([_.CG({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],Qw);_.B(Qw,"yt-live-chat-engagement-panel-input-renderer",function(){return wxx()},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var f4D,ptD;f4D=_.NV(115994);ptD=_.NV(115993);_.F6f=function(R,A,Y){var P=this;var E=Y.dragDownAction;this.layer=0;this.JSC$22519_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$22519_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.fullscreen=!1;var z=_.rU();_.Sm(z,f4D,this.layer);_.Sm(z,ptD,this.layer);this.dragDownAction=function(){E();_.ZL(z,{visualElement:P.fullscreen?f4D:ptD})};
this.gesture=new _.Dt(R,A,this.JSC$22519_watchConfig,"pandown");this.attach()};
_.F6f.prototype.attach=function(){this.gesture.attach()};
_.F6f.prototype.detach=function(){this.gesture.detach()};
_.F6f.prototype.update=function(R){this.fullscreen=R;this.gesture.config=R?this.JSC$22519_watchFullScreenConfig:this.JSC$22519_watchConfig};var B2$={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(R){if(R&&R.length==1&&Array.isArray(R[0].loggingUrls)){R=_.BO.unsafeClone(R[0]);var A=this.macros||{},Y=this.getAdModuleClient_();if(!Y)return _.Vn();R.loggingUrls.forEach(function(P){if(P.baseUrl){var E=P.baseUrl;var z=A;z=z===void 0?{}:z;E=Y.getOptions().includes("replaceUrlMacros")?_.Sib(Y,"replaceUrlMacros",{url:E,additionalMapping:z}):E;P.baseUrl=E}},this);
R=[R]}return _.sC(this.hostElement,R)},
getAdModuleClient_:function(){var R=_.EJ(this);return R?(R=R.getPlayer())?new _.Zq(R):null:null}}]};var a4$;var vn=function(){var R=_.K.apply(this,arguments)||this;R.isCollapsed=!1;R.modernPanels=_.v("kevlar_watch_modern_panels");R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return R};
_.H(vn,_.K);_.l=vn.prototype;_.l.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.onDonateTap=function(){var R=this.get("data.donateButton.buttonRenderer.command");if(R){var A=_.F9(),Y=this.get("data.donateButton.buttonRenderer.trackingParams");A&&Y&&_.qT(A,_.S5(Y));this.ytOpenPopupBehavior.openPopup(R)}};
_.l.onShowMore=function(){this.isCollapsed=!1;var R=_.F9(),A=this.get("data.expandButton.buttonRenderer.trackingParams");R&&A&&_.qT(R,_.S5(A))};
_.l.onShowLess=function(){this.isCollapsed=!0};
_.l.dataChanged=function(){_.ya(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.l.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.handleUpdate=function(R){if(R=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",R))this.set("data.startLabel",R.startLabel),this.set("data.endLabel",R.endLabel),this.set("data.progress",R.progress),this.set("data.amountRaisedLabel",R.amountRaisedLabel),this.dataChanged()};
_.l.handleOpenPopupAction=function(R){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",R)&&_.OC(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.l.computeHeaderBackgroundUrl=function(R,A){if(R)return A?R.headerBackgroundDarkUrl:R.headerBackgroundUrl};
_.l.isProgressBarVisible=function(R){return!(!R||R.progress===void 0)};
_.l.headerBackgroundClass=function(){return _.a1("HTML_DIR")==="rtl"?"flip":""};
vn.prototype.dataChanged=vn.prototype.dataChanged;_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],vn.prototype,"ytOpenPopupBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],vn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],vn.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],vn.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],vn.prototype,"isCollapsed",void 0);_.C([_.S({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.k("design:type",String)],vn.prototype,"headerBackgroundUrl",void 0);_.C([_.S(),_.k("design:type",Boolean)],vn.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vn.prototype,"modernPanels",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vn.prototype,"dataChanged",null);_.C([_.F({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],vn);
_.B(vn,"ytd-donation-shelf-renderer",function(){if(a4$!==void 0)return a4$;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return a4$=R},{mode:1});var Cec;var hKZ=function(){return _.K.apply(this,arguments)||this};
_.H(hKZ,_.K);_.C([_.S(),_.k("design:type",Object)],hKZ.prototype,"data",void 0);_.C([_.F({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],hKZ);
_.B(hKZ,"ytd-donation-unavailable-renderer",function(){if(Cec!==void 0)return Cec;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Cec=R},{mode:1});var oU$;var gX=function(){return _.K.apply(this,arguments)||this};
_.H(gX,_.K);gX.prototype.computeIconType=function(R){return R?"yt-icons:"+R.toLowerCase():null};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gX.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],gX.prototype,"data",void 0);_.C([_.F({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],gX);
_.B(gX,"ytd-limited-state-message-renderer",function(){if(oU$!==void 0)return oU$;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return oU$=R},{mode:1});var kOL;var nT=function(){return _.K.apply(this,arguments)||this};
_.H(nT,_.K);nT.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
nT.prototype.onTap=function(R){var A=this.data&&this.data.endpoint;A&&!_.RP(_.Ah(R),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.xo(this.hostElement,"yt-navigate",{endpoint:A})};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],nT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nT.prototype,"data",void 0);_.C([_.F({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],nT);
_.B(nT,"ytd-autotagging-metadata-renderer",function(){if(kOL!==void 0)return kOL;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return kOL=R},{mode:1});var GOe;var Hn=function(){return _.K.apply(this,arguments)||this};
_.H(Hn,_.K);Hn.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Hn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Hn.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Hn.prototype,"data",void 0);_.C([_.F({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Hn);
_.B(Hn,"ytd-autotagging-metadata-row-renderer",function(){if(GOe!==void 0)return GOe;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return GOe=R},{mode:1});var Zyo;var tBZ;var rX=function(){var R=_.K.apply(this,arguments)||this;R.engagementPanelContent=!1;return R};
_.H(rX,_.K);rX.prototype.computeHasDividerLine=function(R,A){return R&&!A};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rX.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.k("design:type",Boolean)],rX.prototype,"hasDividerLine",void 0);_.C([_.S(),_.k("design:type",Object)],rX.prototype,"engagementPanelContent",void 0);
_.C([_.F({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],rX);
_.B(rX,"ytd-metadata-row-header-renderer",function(){if(tBZ!==void 0)return tBZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return tBZ=R},{mode:1});var wte;var DD=function(){return _.K.apply(this,arguments)||this};
_.H(DD,_.K);DD.prototype.computeHasDividerLine=function(R){return R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],DD.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.k("design:type",Boolean)],DD.prototype,"hasDividerLine",void 0);_.C([_.F({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],DD);
_.B(DD,"ytd-metadata-row-renderer",function(){if(wte!==void 0)return wte;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return wte=R},{mode:1});var uHb;var eKb=function(){return _.K.apply(this,arguments)||this};
_.H(eKb,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],eKb.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],eKb.prototype,"data",void 0);_.C([_.F({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],eKb);
_.B(eKb,"ytd-metadata-with-image-row-renderer",function(){if(uHb!==void 0)return uHb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return uHb=R},{mode:1});var qTo;var UI=function(){var R=_.K.apply(this,arguments)||this;R.rounded=!0;R.fixie=!1;R.fullWidth=!1;return R};
_.H(UI,_.K);_.l=UI.prototype;_.l.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.l.onDataChanged=function(){var R=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(A){R.onEndpointLinkKeyPress(A)}))};
_.l.onEndpointLinkKeyPress=function(R){R.target===this.endpointLink&&R.keyCode===13&&_.xo(this.hostElement,"click")};
_.l.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var R;if((R=this.data)==null?0:R.endpoint)_.NT(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.l.onYtNavigate=function(R){this.endpointHref||(R.stopPropagation(),R.preventDefault())};
_.l.onInformationButtonContainerClick=function(R){R.target.id!=="information-button-container"&&(R.stopPropagation(),R.preventDefault())};
_.l.computeStyle=function(R){return R};
_.l.computeIsThumbnailStyle=function(R){return R==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.l.computeThumbnailWidth=function(R){switch(R){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}};
_.l.computeThumbnailObjectFit=function(R){switch(R){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Yh.Object.defineProperties(UI.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?0:R.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
UI.prototype.onYtNavigate=UI.prototype.onYtNavigate;UI.prototype.onClick=UI.prototype.onClick;UI.prototype.onDataChanged=UI.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],UI.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],UI.prototype,"componentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],UI.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],UI.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],UI.prototype,"componentStyle",void 0);_.C([_.S({computed:"computeIsThumbnailStyle(data.style)"}),_.k("design:type",Boolean)],UI.prototype,"isThumbnailStyle",void 0);_.C([_.S({computed:"computeThumbnailObjectFit(data.style)"}),_.k("design:type",String)],UI.prototype,"thumbnailObjectFit",void 0);
_.C([_.S({computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],UI.prototype,"thumbnailWidth",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],UI.prototype,"rounded",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],UI.prototype,"fixie",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],UI.prototype,"fullWidth",void 0);_.C([_.nG("#endpoint-link"),_.k("design:type",HTMLAnchorElement)],UI.prototype,"endpointLink",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],UI.prototype,"onDataChanged",null);_.C([_.X("data.endpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],UI.prototype,"endpointHref",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],UI.prototype,"onClick",null);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],UI.prototype,"onYtNavigate",null);_.C([_.F({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],UI);
_.B(UI,"ytd-rich-metadata-renderer",function(){if(qTo!==void 0)return qTo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qTo=R},{mode:_.Nf("kevlar_poly_si_batch_j075")?1:2});var L6b;var $3=function(){var R=_.K.apply(this,arguments)||this;R.fixie=!1;R.fullWidth=!1;return R};
_.H($3,_.K);$3.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
$3.prototype.computeHasDividerLine=function(R){return R};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],$3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$3.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.k("design:type",Boolean)],$3.prototype,"hasDividerLine",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$3.prototype,"fixie",void 0);_.C([_.S(),_.k("design:type",Object)],$3.prototype,"fullWidth",void 0);
_.C([_.F({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],$3);
_.B($3,"ytd-rich-metadata-row-renderer",function(){if(L6b!==void 0)return L6b;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return L6b=R},{mode:1});var XT=function(){var R=_.K.apply(this,arguments)||this;R.engagementPanelContent=!1;R.fixie=!1;R.fullWidth=!1;return R};
_.H(XT,_.K);
XT.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"}}}};
XT.prototype.computeCollapsibleItems=function(R,A,Y){return R===void 0||A===void 0||Y===void 0||Y?[]:R.slice(A)};
XT.prototype.computeAlwaysShownItems=function(R,A){return R&&R.length?R.slice(0,A):[]};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],XT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],XT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],XT.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],XT.prototype,"collapsed",void 0);
_.C([_.S({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.k("design:type",Array)],XT.prototype,"alwaysShownItems",void 0);_.C([_.S({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.k("design:type",Array)],XT.prototype,"collapsibleItems",void 0);_.C([_.S(),_.k("design:type",Object)],XT.prototype,"engagementPanelContent",void 0);_.C([_.S(),_.k("design:type",Object)],XT.prototype,"fixie",void 0);
_.C([_.S(),_.k("design:type",Object)],XT.prototype,"fullWidth",void 0);_.C([_.F({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],XT);
_.B(XT,"ytd-metadata-row-container-renderer",function(){if(Zyo!==void 0)return Zyo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Zyo=R},{mode:1});var dR$;var Sg=function(){var R=_.K.apply(this,arguments)||this;R.currentPageUrl="";R.baseUrl="";R.isHiddenByUser=null;R.hidden=!1;R.showAboveScrim=!1;R.watchNextGrid=_.v("kevlar_watch_grid");R.modernButtons=_.v("web_modern_buttons");R.roundedContainer=!0;R.noBorder=!1;R.roundBackground=!_.v("live_chat_round_background_killswitch");R.overflowHideChat=_.v("live_chat_overflow_hide_chat");R.forceDarkTheme=!1;R.theaterWatchWhile=!1;R.isListeningForPlayerProgress=!1;R.JSC$22555_playerEvents=new Map;R.isFrameReady=
!1;R.player=null;R.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 R};
_.H(Sg,_.K);_.l=Sg.prototype;_.l.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.MT(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.l.created=function(){var R=this;this.handleIframeEventListener=function(A){R.handleIframeEvent(A)};
this.handleKeyboardEventListener=function(A){R.handleKeyboardEvent(A)};
this.JSC$22555_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22555_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22555_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22555_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22555_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.l.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()};
_.l.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};
_.l.computeBaseUrl=function(R){var A="/live_chat";this.isChatReplay()&&(A="/live_chat_replay");return _.Md(_.O2(_.cm(_.eK(R),A),null),"").toString()};
_.l.dataChanged=function(){_.v("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.l.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var R=this.url;if(this.isChatReplay()&&this.player){var A=Math.floor(this.player.getProgressState().current*1E3);R=_.LJ(_.eK(R),"playerOffsetMs",A.toString()).toString()}A=this.chatframe;try{var Y=R==="about:blank"?_.vqD:_.oR(R),P=A.contentDocument.location,E=_.ZE(Y);E!==void 0&&P.replace(E)}catch(z){A.src=R}}};
_.l.collapsedChanged=function(){_.xo(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.l.handleIframeEvent=function(R){if(R&&this.baseUrl.startsWith(R.origin)&&R.source===this.chatframe.contentWindow&&_.ZI(R.data))if(R.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(R);else if(R.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(R.data["yt-show-feedback-dialog"]){var A=_.is().resolve(_.z3(_.fTD));if(A){var Y=R.ports,P;Y&&Y.length&&(P=function(){Y[0].postMessage({})});
R=R.data["yt-show-feedback-dialog"];A.showFeedbackDialog(R.customProductData,R.feedbackContent,P,R.bucket)}}else if(R.data["yt-show-survey"])_.xo(this.hostElement,"yt-show-survey",R.data["yt-show-survey"]);else if(R.data["yt-purchase-membership"])_.is().resolve(_.ls).resolveCommand(R.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(R.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(R.data["yt-tunnel-out-live-service-request"]);else if(R.data["yt-user-activity"])_.Ea();
else if(R.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(R.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(R.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(R.data["yt-open-popup"]);else if(R.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(R.data["yt-log-flow-logging-event-command"]);else if(R.data["yt-hide-live-chat"])this.onShowHideChat();else R.data["yt-report-moderation-state-log"]&&
this.player&&(A={cpn:this.player.getVideoData().cpn},_.Wj("liveChatBeingModerated",A))};
_.l.attachLiveChatResponseVeTrackingParams=function(R){R=_.S5(R);var A=_.F9(),Y=_.Zr("liveChatRenderer.trackingParams",this.data);A&&Y&&_.ZM(A,_.S5(Y),R)};
_.l.handleBuyflowMessages=function(R){var A=R.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,Y=R.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,P=R.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.F9P(_.qh(_.R6),A.replace(/-/g,"+").replace(/_/g,"/"),function(E){R.ports[0].postMessage({success:!0,buyFlowResponse:E})},void 0,function(E){R.ports[0].postMessage({success:!1,
error:E&&E.message||"Buyflow rejected without error."})},_.Hk().get("hl"),void 0,function(){R.ports[0].postMessage({closed:!0})},Y,P)};
_.l.setupPlayerProgressRelay=function(){var R=this;if(!this.isListeningForPlayerProgress){var A=_.zI();A!=null&&A.getPlayerPromise&&(A.getPlayerPromise().then(function(Y){R.playerApiReady(Y)}),this.isListeningForPlayerProgress=!0)}};
_.l.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.l.playerApiReady=function(R){this.setPlayer(R)};
_.l.playerProgressHandler=function(){if(this.player){var R=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":R.current})}};
_.l.playerAdStartHandler=function(R){this.postToContentWindow({"yt-player-ad-start":R})};
_.l.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.l.playerStateChangeHandler=function(R){this.postToContentWindow({"yt-player-state-change":R})};
_.l.setPlayer=function(R){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22555_playerEvents);R&&(this.player=R,this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22555_playerEvents),_.xo(this.hostElement,"player-api-ready"))};
_.l.liveChatPageUrl=function(R,A,Y,P){return!Y||A?"about:blank":Y.liveChatRenderer?(A=_.eK(this.currentPageUrl).JSC$10024_queryData_,SWf(A),R=_.eK(R),A.add("continuation",Y.liveChatRenderer.continuations[0].reloadContinuationData.continuation),Y=_.bk()==="USER_INTERFACE_THEME_DARK",(P||Y)&&A.add("dark_theme","true"),_.O2(R,A),P=_.eK(R.toString()),Y=P.JSC$10024_queryData_,"SESSION_INDEX"in _.Fc&&(Y.add("authuser",_.a1("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.Fc&&Y.add("pageId",_.a1("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.Fc&&Y.add("sdc",_.a1("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),P.toString()):""};
_.l.isCollapsed=function(R,A){return A!==null?A:this.isChatReplay()||R&&R.conversationBarRenderer&&R.conversationBarRenderer.availabilityMessage?!0:R?R.liveChatRenderer?R.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.v("live_chat_hide_premiere_replay_message")||R.conversationBarRenderer&&R.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.l.isHidden=function(R,A,Y){var P=A&&A.conversationBarRenderer&&A.conversationBarRenderer.availabilityMessage,E=A&&A.liveChatRenderer&&A.liveChatRenderer.showHideButton,z=A&&A.liveChatRenderer&&A.liveChatRenderer.showButton;return Y&&R&&!P&&!z||!Y&&R&&!P&&!E?!0:A&&A.liveChatRenderer&&A.liveChatRenderer.initialDisplayState?A.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.l.computeButtonOverride=function(R,A){if(R&&A)return{type:"outline"}};
_.l.setCollapsedState=function(R){_.n(R,_.fGS)&&(this.isHiddenByUser=!!_.n(R,_.fGS).collapsed,!this.isHiddenByUser&&_.v("enable_teaser_framework_web_client")&&_.OC(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.l.forwardReduxActionToIframe=function(R){this.postToContentWindow({"yt-live-chat-forward-redux-action":R})};
_.l.onLoopRangeChange=function(R){this.showAboveScrim=!(R==null||!R.postId)};
_.l.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.l.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.l.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.l.sendDarkThemePostMessage=function(R){this.postToContentWindow({"yt-live-chat-set-dark-theme":R})};
_.l.onLiveChatBuyFlowCallback=function(R){this.postToContentWindow({"yt-live-chat-buy-flow-callback":R})};
_.l.handleKeyboardEvent=function(R){(0,_.BO.containsValue)(Xxq,R.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:R.type,keyCode:R.keyCode}})};
_.l.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.l.postToContentWindow=function(R){if(this.isFrameReady)try{var A=window.location.protocol+"//"+window.location.host,Y;(Y=this.chatframe)!=null&&Y.contentWindow?this.chatframe.contentWindow.postMessage(R,A):_.pK(new _.XN("Tried posting a message to an iframe with no content window",R))}catch(P){_.bj(P)}};
_.l.shouldHideChatFrame=function(R){return R&&_.v("hide_live_chat_button_when_collapsed")};
_.Yh.Object.defineProperties(Sg.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.v("live_chat_overflow_hide_chat")||_.v("web_watch_chat_hide_button_killswitch"))return _.v("live_chat_overflow_hide_chat");var R,A,Y,P;return!!((R=this.data)==null?0:(A=R.liveChatRenderer)==null?0:(Y=A.header)==null?0:(P=Y.liveChatHeaderRenderer)==null?0:P.collapseButton)}}});
Sg.prototype.collapsedChanged=Sg.prototype.collapsedChanged;Sg.prototype.urlChanged=Sg.prototype.urlChanged;Sg.prototype.dataChanged=Sg.prototype.dataChanged;Sg.prototype.onShowHideChat=Sg.prototype.onShowHideChat;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Sg.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Sg.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Sg.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],Sg.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],Sg.prototype,"ytOpenPopupBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Sg.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Sg.prototype,"currentPageUrl",void 0);
_.C([_.S({computed:"computeBaseUrl(currentPageUrl,data)"}),_.k("design:type",Object)],Sg.prototype,"baseUrl",void 0);_.C([_.S({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.k("design:type",String)],Sg.prototype,"url",void 0);_.C([_.S(),_.k("design:type",Object)],Sg.prototype,"isHiddenByUser",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.k("design:type",Object)],Sg.prototype,"hidden",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.k("design:type",Boolean)],Sg.prototype,"collapsed",void 0);_.C([_.S({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.k("design:type",Boolean)],Sg.prototype,"hideChatFrame",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sg.prototype,"showAboveScrim",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sg.prototype,"watchNextGrid",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Sg.prototype,"modernButtons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sg.prototype,"roundedContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sg.prototype,"noBorder",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Sg.prototype,"roundBackground",void 0);
_.C([_.S({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.k("design:type",Object)],Sg.prototype,"toggleButtonOverride",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Sg.prototype,"overflowHideChat",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sg.prototype,"forceDarkTheme",void 0);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sg.prototype,"enableShowWithoutHideChatButton",null);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sg.prototype,"theaterWatchWhile",void 0);_.C([_.nG("#chatframe"),_.k("design:type",HTMLIFrameElement)],Sg.prototype,"chatframe",void 0);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sg.prototype,"onShowHideChat",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sg.prototype,"dataChanged",null);
_.C([_.vZ("url"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sg.prototype,"urlChanged",null);_.C([_.vZ("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sg.prototype,"collapsedChanged",null);_.C([_.F({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Sg);
_.B(Sg,"ytd-live-chat-frame",function(){if(dR$!==void 0)return dR$;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return dR$=R},{mode:1});var Rde;var Ix=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_modern_buttons");R.buttonOverrides={style:"call-to-action",type:"filled"};return R};
_.H(Ix,_.K);Ix.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=_.G9(this.data.backgroundColor)))};
Ix.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var R=this.getFormattedStringLoggingDirectives(this.data.headline);R&&this.rendererBehavior.logExplicitClick(R)}};
Ix.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var R=this.getFormattedStringLoggingDirectives(this.data.description);R&&this.rendererBehavior.logExplicitClick(R)}};
Ix.prototype.getFormattedStringLoggingDirectives=function(R){return R&&R.runs&&R.runs.length>0&&R.runs[0]&&R.runs[0].loggingDirectives?R.runs[0].loggingDirectives:null};
Ix.prototype.dataChanged=Ix.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ix.prototype,"rendererBehavior",void 0);_.C([_.U(B2$.YtMacroReplacementBehavior),_.k("design:type",Object)],Ix.prototype,"macroReplacementBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ix.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Ix.prototype,"navigationEndpoint",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ix.prototype,"enableColors",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ix.prototype,"modern",void 0);_.C([_.S(),_.k("design:type",Object)],Ix.prototype,"buttonOverrides",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ix.prototype,"dataChanged",null);_.C([_.F({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],Ix);
_.B(Ix,"ytd-action-basic-immersive-content-renderer",function(){if(Rde!==void 0)return Rde;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Rde=R},{mode:1});var Are;var Ypg;var KT=function(){return _.K.apply(this,arguments)||this};
_.H(KT,_.K);KT.prototype.dataChanged=function(){var R;((R=this.data)==null?void 0:R.backgroundColor)!==void 0&&_.ya(this.hostElement,{"--bgu-color":_.G9(this.data.backgroundColor)})};
KT.prototype.onImageTileClick=function(){var R;((R=this.data)==null?0:R.navigationEndpoint)&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var A;((A=this.data)==null?0:A.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Yh.Object.defineProperties(KT.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var R;if(((R=this.data)==null?void 0:R.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 R;return((R=this.data)==null?void 0:R.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;if(((R=this.data)==null?void 0:(A=R.detailsLine)==null?void 0:A.texts)!=null&&((Y=this.data)==null?void 0:Y.detailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.detailsLine.texts.map(function(E){return E.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;if(((R=this.data)==null?void 0:(A=R.optionalDetailsLine)==null?void 0:A.texts)!=null&&((Y=this.data)==null?void 0:Y.optionalDetailsLine.texts.length)>0){var P;return(P=this.data)==null?void 0:P.optionalDetailsLine.texts.map(function(E){return E.text}).join("")}return null}}});
KT.prototype.dataChanged=KT.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],KT.prototype,"rendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],KT.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],KT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.backgroundColor"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KT.prototype,"hasBackgroundColor",null);
_.C([_.X("data.objectFit"),_.k("design:type",Object),_.k("design:paramtypes",[])],KT.prototype,"getObjectFit",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.tileRenderingStyle"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],KT.prototype,"hasTileMetadata",null);_.C([_.X("data.detailsLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],KT.prototype,"getSecondaryDetails",null);
_.C([_.X("data.optionalDetailsLine"),_.k("design:type",Object),_.k("design:paramtypes",[])],KT.prototype,"getOptionalDetails",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],KT.prototype,"dataChanged",null);_.C([_.F({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],KT);
_.B(KT,"ytd-image-tile-renderer",function(){if(Ypg!==void 0)return Ypg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Ypg=R},{mode:1});var PGb;var Wn=function(){return _.K.apply(this,arguments)||this};
_.H(Wn,_.K);Wn.prototype.getOpenLinkIcon=function(){return _.v("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
Wn.prototype.onSitelinkTap=function(){_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.v("kevlar_command_handler_migration_killswitch"))_.NT(this.hostElement,this.data.clickCommands,this.hostElement);else for(var R=_.x(this.data.clickCommands),A=R.next();!A.done;A=R.next())this.ytComponentBehavior.resolveCommand(A.value)};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Wn.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Wn.prototype,"rendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Wn.prototype,"data",void 0);_.C([_.F({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],Wn);
_.B(Wn,"ytd-sitelink-renderer",function(){if(PGb!==void 0)return PGb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return PGb=R},{mode:1});var jg=function(){var R=_.K.apply(this,arguments)||this;R.paddingFix=_.v("enable_ads_web_ep_buenos_aires_and_padding_fix");return R};
_.H(jg,_.K);jg.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"}}}};
jg.prototype.dataChanged=function(){var R=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(A){A.clickTrackingParams&&delete A.clickTrackingParams;R.ytMacroReplacementBehavior.sendServiceRequestAction([A])})};
jg.prototype.shouldHideFooter=function(R){return!(R&&_.v("use_ads_engagement_panel_desktop_footer_cta"))};
_.Yh.Object.defineProperties(jg.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:R.imageTileRenderers)===void 0||((A=this.data)==null?void 0:A.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(Y){var P;return(P=_.n(Y,bfb))==null?void 0:P.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:R.imageTileRenderers)===void 0||((A=this.data)==null?void 0:A.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(Y){var P;return((P=_.n(Y,bfb))==null?void 0:P.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
jg.prototype.dataChanged=jg.prototype.dataChanged;_.C([_.U(B2$.YtMacroReplacementBehavior),_.k("design:type",Object)],jg.prototype,"ytMacroReplacementBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],jg.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],jg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],jg.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],jg.prototype,"paddingFix",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.imageTileRenderers"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"removeBorderFromImageTiles",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.imageTileRenderers"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],jg.prototype,"useFooteredMetadataRenderingStyle",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],jg.prototype,"dataChanged",null);_.C([_.F({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],jg);
_.B(jg,"ytd-action-engagement-panel-content-renderer",function(){if(Are!==void 0)return Are;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Are=R},{mode:1});var E2c;var zdc=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;return _.V("ad-grid-card-image-full-metadata-view-model",{class:function(){var P;return((P=A().interaction)==null?0:P.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(P){var E,z=(E=A().interaction)==null?void 0:E.onFirstVisible;P&&z&&_.Zc(z)},
showOption:_.vo}),_.aP(function(){return A().interaction},Y)),
"aria-label":function(){var P,E;return(P=A().interaction)==null?void 0:(E=P.accessibility)==null?void 0:E.label}},_.V("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.V(_.ni,{data:function(){return A().adImage}},{adImageViewModel:function(P){return _.V(_.b0,{data:P.data,
customCommandResolver:Y})}})),_.V("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.V(_.J,{cond:function(){return A().headline},
then:function(P){return _.V(_.NU,{text:P,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.V(_.J,{cond:function(){return A().detailsLine},
then:function(P){return _.V("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.V(_.ni,{data:P},{adDetailsLineViewModel:function(E){return _.V(_.X0,{data:E.data,customCommandResolver:Y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.V(_.J,{cond:function(){return A().secondaryDetailsLine},
then:function(P){return _.V("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.V(_.ni,{data:P},{adDetailsLineViewModel:function(E){return _.V(_.X0,{data:E.data,customCommandResolver:Y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"sk");var isx=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;return _.V("ad-grid-card-image-view-model",{class:function(){var P;return((P=A().interaction)==null?0:P.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(P){var E,z=(E=A().interaction)==null?void 0:E.onFirstVisible;P&&z&&_.Zc(z)},
showOption:_.vo}),_.aP(function(){return A().interaction},Y)),
"aria-label":function(){var P,E;return(P=A().interaction)==null?void 0:(E=P.accessibility)==null?void 0:E.label}},_.V(_.ni,{data:function(){return A().adImage}},{adImageViewModel:function(P){return _.V(_.b0,{data:P.data,
customCommandResolver:Y})}}),_.V("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.V(_.ni,{data:function(){return A().adCardBadge}},{adCardBadgeViewModel:_.d0N})))},"tk");var lge=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;return _.V("ad-grid-card-text-view-model",{class:function(){var P;return((P=A().interaction)==null?0:P.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(P){var E,z=(E=A().interaction)==null?void 0:E.onFirstVisible;P&&z&&_.Zc(z)},
showOption:_.vo}),_.aP(function(){return A().interaction},Y)),
"aria-label":function(){var P,E;return(P=A().interaction)==null?void 0:(E=P.accessibility)==null?void 0:E.label}},_.V("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.V(_.J,{cond:function(){return A().title},
then:function(P){return _.V(_.NU,{text:P,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.V("div",{class:function(){return _.v("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.V(_.Ue,{each:function(){var P;
return((P=A())==null?void 0:P.descriptions)||[]},
keyBy:"INDEX"},function(P){return _.V(_.NU,{text:P,className:function(){return _.v("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.V("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.V(_.ni,{data:function(){return A().moreInfoButton}},{adButtonViewModel:function(P){return _.V(_.nS,{data:P.data,
customCommandResolver:Y})}})))},"uk");var xMc=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;var P=R.adGridCardCollectionStyle;return _.V("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(E){var z,c=(z=A().interaction)==null?void 0:z.onFirstVisible;E&&c&&_.Zc(c)},
showOption:_.vo})),style:function(){return"grid-template-columns: repeat("+oZf(P?P():A().style)+", minmax(0, 1fr));"}},_.V(_.ni,{data:function(){var E;
return(E=A())==null?void 0:E.gridCards}},{adGridCardImageViewModel:function(E){return _.V(isx,{data:E.data,
customCommandResolver:Y})},
adGridCardImageFullMetadataViewModel:function(E){return _.V(zdc,{data:E.data,customCommandResolver:Y})},
adGridCardTextViewModel:function(E){return _.V(lge,{data:E.data,customCommandResolver:Y})}}))},"vk");_.Ow(_.E5(function(R){var A=R.data;return _.V("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.zo(_.zR({visibilityCallback:function(Y){var P,E=(P=A().interaction)==null?void 0:P.onFirstVisible;Y&&E&&_.Zc(E)},
showOption:_.vo}),_.aP(function(){return A().interaction},kN$))},_.V("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.V(_.J,{cond:_.mxk("(min-width: "+((0,_.zc)()+_.wT)+"px)"),
then:function(){return _.V(_.ni,{data:function(){return A().adGridCardCollection}},{adGridCardCollectionViewModel:function(Y){return _.V(xMc,{data:Y.data,
customCommandResolver:kN$})}})},
else:function(){return _.V(_.ni,{data:function(){return A().adGridCardCollection}},{adGridCardCollectionViewModel:function(Y){return _.V(xMc,{data:Y.data,
customCommandResolver:kN$,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.V("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.V(_.ni,{data:function(){return A().adButton}},{adButtonViewModel:function(Y){return _.V(_.nS,{data:Y.data,
customCommandResolver:kN$})}})))},"wk"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;return _.V("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.zo(_.zR({visibilityCallback:function(Y){var P,E=(P=A().interaction)==null?void 0:P.onFirstVisible;Y&&E&&_.Zc(E)},
showOption:_.vo}),_.aP(function(){return A().interaction},GNf))},_.V("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.V(_.ni,{data:function(){if(_.mxk("(min-width: "+((0,_.zc)()+_.wT)+"px)")())var Y=A().adGridCardCollection;
else{Y=Object.assign({},_.n(A().adGridCardCollection,fjf));var P;Y.gridCards!==void 0&&((P=Y.gridCards)==null?void 0:P.length)>1?Y.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":Y.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";Y={adGridCardCollectionViewModel:Y}}return Y}},{adGridCardCollectionViewModel:function(Y){return _.V(xMc,{data:Y.data,
customCommandResolver:GNf})}})),_.V("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.V(_.ni,{data:function(){return A().adButton}},{adButtonViewModel:function(Y){return _.V(_.nS,{data:Y.data,
customCommandResolver:GNf})}})))},"xk"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.VY}});var bY=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return R};
_.H(bY,_.K);_.l=bY.prototype;_.l.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"}}}};
_.l.attached=function(){this.getDataFromPlayerAndRender()};
_.l.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.l.getDataFromPlayerAndRender=function(){var R=this,A=_.EJ(this.hostElement);A&&A.getPlayerPromise().then(function(Y){R.getCachedDataAndListen(Y)})};
_.l.getCachedDataAndListen=function(R){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(R,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(R,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=R)};
_.l.resolveCachedActions=function(){var R=_.Zr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(R=R&&R())&&!_.BO.isEmpty(R)&&this.sendUpdateEngagementPanelAction(R);(R=(R=_.Zr("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&R())&&!_.BO.isEmpty(R)&&this.sendChangeEngagementPanelVisibilityAction(R);(R=(R=_.Zr("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&R())&&!_.BO.isEmpty(R)&&this.sendScrollToEngagementPanelCommand(R)};
_.l.sendUpdateEngagementPanelAction=function(R){var A;_.OC(this.hostElement,"yt-update-engagement-panel-action",[(A=_.BO.get(R,"action"))!=null?A:R])};
_.l.sendChangeEngagementPanelVisibilityAction=function(R){_.OC(this.hostElement,"yt-change-engagement-panel-visibility-action",[R])};
_.l.sendScrollToEngagementPanelCommand=function(R){_.OC(this.hostElement,"yt-scroll-to-engagement-panel-command",[R])};
_.l.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.v("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.pK(Error("Jo"))};
bY.prototype.dataChanged=bY.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],bY.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],bY.prototype,"componentBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],bY.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bY.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bY.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],bY.prototype,"player",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bY.prototype,"dataChanged",null);_.C([_.F({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],bY);
_.B(bY,"ytd-ads-engagement-panel-content-renderer",function(){if(E2c!==void 0)return E2c;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return E2c=R},{mode:1});var crf;var fT=function(){var R=_.K.apply(this,arguments)||this;R.player=null;R.JSC$22592_playerEvents=new Map;R.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return R};
_.H(fT,_.K);_.l=fT.prototype;_.l.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]]"}}}}}};
_.l.created=function(){this.player=null;this.JSC$22592_playerEvents=new Map;this.JSC$22592_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22592_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22592_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22592_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.attached=function(){var R=this,A=_.EJ();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));A&&A.getPlayerPromise().then(function(Y){R.setPlayer(Y);R.set("isPageLoad",!1)})};
_.l.setPlayer=function(R){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22592_playerEvents);this.set("player",R);R&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22592_playerEvents),R.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.l.onLoopRangeChange=function(R){var A=_.is().resolve(_.z3(_.YH));if((!A||A.isOnWatch())&&this.hostElement.clientHeight){var Y;!R&&((Y=this.data)==null?0:Y.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.l.onVideoProgress=function(R){var A,Y,P=((A=this.player)==null?void 0:(Y=A.getPresentingPlayerType)==null?void 0:Y.call(A))===2;this.isAdPlaying!==P&&this.set("isAdPlaying",P);var E;if(!P&&(E=this.player)!=null&&E.getLoopRange()){Y=this.player.getLoopRange();A=Y.startTimeMs;Y=Y.endTimeMs;P=this.player.getProgressState(1).seekableStart;var z;A<P*1E3&&((z=this.data)==null?0:z.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
R=Y<R*1E3;var c;((c=this.player)==null?0:c.getLoopRange())&&R&&this.player.seekTo(A/1E3)}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onYtDeleteClipEngagementPanelCommand=function(R){_.n(R,qWc).command&&this.ytComponentBehavior.resolveCommand(_.n(R,qWc).command)};
_.Yh.Object.defineProperties(fT.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.voteCount)||_.dF("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],fT.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],fT.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],fT.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],fT.prototype,"isAdPlaying",void 0);_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],fT.prototype,"isPageLoad",void 0);_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],fT.prototype,"isDarkTheme",void 0);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fT.prototype,"voteCount",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],fT.prototype,"channelEndpoint",null);_.C([_.X("channelEndpoint"),_.k("design:type",Object),_.k("design:paramtypes",[])],fT.prototype,"channelHref",null);_.C([_.F({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],fT);
_.B(fT,"ytd-clip-attribution-renderer",function(){if(crf!==void 0)return crf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return crf=R},{mode:1});var Osb;var pT=function(){var R=_.K.apply(this,arguments)||this;R.player=null;R.JSC$22597_playerEvents=new Map;return R};
_.H(pT,_.K);_.l=pT.prototype;_.l.created=function(){this.player=null;this.JSC$22597_playerEvents=new Map;this.JSC$22597_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22597_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22597_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.l.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.l.attached=function(){var R=this,A=_.EJ();A&&A.getPlayerPromise().then(function(Y){R.setPlayer(Y);R.set("isPageLoad",!1)})};
_.l.setPlayer=function(R){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22597_playerEvents);this.set("player",R);if(R){this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22597_playerEvents);var A;(R==null?void 0:(A=R.getPresentingPlayerType)==null?void 0:A.call(R))===2&&this.playerAdStartHandler()}};
_.l.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.l.onVideoProgress=function(){var R,A,Y=((R=this.player)==null?void 0:(A=R.getPresentingPlayerType)==null?void 0:A.call(R))===2;this.isAdPlaying!==Y&&this.set("isAdPlaying",Y)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],pT.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],pT.prototype,"isAdPlaying",void 0);
_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],pT.prototype,"isPageLoad",void 0);_.C([_.F({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],pT);
_.B(pT,"ytd-clip-section-footer-renderer",function(){if(Osb!==void 0)return Osb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Osb=R},{mode:1});var MpR;var sSg;var NLq=function(){return _.K.apply(this,arguments)||this};
_.H(NLq,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],NLq.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],NLq.prototype,"data",void 0);_.C([_.F({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],NLq);
_.B(NLq,"ytd-clip-ad-state-renderer",function(){if(sSg!==void 0)return sSg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return sSg=R},{mode:1});var VpR;var FT=function(){var R=_.K.apply(this,arguments)||this;R.value="";R.valid=!1;R.userChangedValue=!1;R.disabled=!1;R.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return R};
_.H(FT,_.K);_.l=FT.prototype;_.l.detached=function(){this.userChangedValue=!1};
_.l.handleKeyDown=function(R){if(_.xB)var A=13;else _.vGP&&_.cb?A=13:A=13;R.keyCode===A&&R.preventDefault()};
_.l.handleInput=function(){var R=_.Mo(this.hostElement).querySelector("#title");if(R){var A=(R.value||"").replace(/\r|\n/g," ");this.set("value",A);R.value=A;this.valid=R.validate();this.userChangedValue=!0}};
_.l.handleBlur=function(){this.valid=_.Mo(this.hostElement).querySelector("#title").validate()};
_.l.onValueChanged=function(){_.xo(this.hostElement,"title-changed",{title:this.value})};
_.l.onValidChanged=function(){_.xo(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.l.setInput=function(R,A){var Y=_.Mo(this.hostElement).querySelector("#title");Y&&(Y.value=R,this.handleInput(),A&&(Y.invalid=!1,this.valid=!0))};
_.l.onClipCreationDisable=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable=function(){this.set("disabled",!1)};
_.l.onClipCreationVisibilityChange=function(R){var A=this;R.visible?requestAnimationFrame(function(){var Y;((Y=_.Mo(A.hostElement).querySelector("#title"))==null?void 0:Y.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
FT.prototype.onValidChanged=FT.prototype.onValidChanged;FT.prototype.onValueChanged=FT.prototype.onValueChanged;FT.prototype.handleBlur=FT.prototype.handleBlur;FT.prototype.handleInput=FT.prototype.handleInput;FT.prototype.handleKeyDown=FT.prototype.handleKeyDown;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],FT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],FT.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],FT.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],FT.prototype,"value",void 0);_.C([_.S(),_.k("design:type",Object)],FT.prototype,"valid",void 0);_.C([_.S(),_.k("design:type",Object)],FT.prototype,"userChangedValue",void 0);_.C([_.S(),_.k("design:type",Object)],FT.prototype,"disabled",void 0);_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],FT.prototype,"handleKeyDown",null);
_.C([_.Qa("input"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FT.prototype,"handleInput",null);_.C([_.Qa("blur"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FT.prototype,"handleBlur",null);_.C([_.vZ("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FT.prototype,"onValueChanged",null);
_.C([_.vZ("valid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FT.prototype,"onValidChanged",null);_.C([_.F({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],FT);
_.B(FT,"ytd-clip-creation-text-input-renderer",function(){if(VpR!==void 0)return VpR;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return VpR=R},{mode:1});var Jrg;var yrf;var mMb;var TLg;var QSb;var Bn=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};R.pendingStoryboardImages_={};R.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];R.tickLabelInterval=30;R.mediumTickInterval=5;R.largeTickInterval=15;R.aboveRulerHeight=32;R.rulerHeight=50;R.smallTickHeight=4;R.mediumTickHeight=8;R.largeTickHeight=16;R.mediaListeners_=
{};return R};
_.H(Bn,_.K);_.l=Bn.prototype;_.l.attached=function(){var R=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(A){A=_.x(["screen and (min-resolution: "+A+")","screen and (max-resolution: "+A+")"]);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=window.matchMedia(Y);P&&(R.mediaListeners_[Y]=R.updatePixelRatio_.bind(R),P.addEventListener?P.addEventListener("change",R.mediaListeners_[Y]):P.addListener?P.addListener(R.mediaListeners_[Y]):delete R.mediaListeners_[Y])}})};
_.l.detached=function(){this.setPlayer(null);for(var R=_.x(Object.keys(this.mediaListeners_)),A=R.next();!A.done;A=R.next()){var Y=A.value;A=this.mediaListeners_[Y];(Y=window.matchMedia(Y))&&(Y.removeEventListener?Y.removeEventListener("change",A):Y.removeListener&&Y.removeListener(A))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.l.onVisibilityChangedAction_=function(R){var A=this;R.visible&&!this.player_&&(R=_.EJ())&&R.getPlayerPromise().then(function(Y){A.setPlayer(Y)})};
_.l.setPlayer=function(R){R&&this.set("player_",R)};
_.l.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.l.setUpCanvas_=function(){var R=this.rulerWidth,A=this.devicePixelRatio_,Y=this.visible;this.set("canvasReady_",!1);if(Y&&A!==0){Y=this.aboveRulerHeight+this.rulerHeight;var P=_.Mo(this.hostElement).querySelector("#ticks");P.width=R*A;P.height=Y*A;P.style.width=R+"px";P.style.height=Y+"px";P.getContext("2d").scale(A,A);this.set("canvasReady_",!0)}};
_.l.drawRuler_=function(R,A,Y,P,E,z,c,M,N,y,m,T){R&&Y&&A&&(R=_.Mo(this.hostElement).querySelector("#ticks"),A=R.getContext("2d"),A.clearRect(0,0,R.width,R.height),A.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),A.lineWidth=2,A.beginPath(),A.moveTo(0,this.aboveRulerHeight),A.lineTo(R.width,this.aboveRulerHeight),A.moveTo(0,R.height),A.lineTo(R.width,R.height),A.stroke(),this.drawRulerTicks_(R,z,E,P),this.drawStoryboardImages_(R,Y,z,E,P),A.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
A.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(c-z,P,!1),this.rulerHeight),Y=this.timeToPixels_(M-z,P,!1),A.fillRect(Y,this.aboveRulerHeight,R.width-Y,this.rulerHeight),this.drawSpeedLines_(R,z,T))};
_.l.drawRulerTicks_=function(R,A,Y,P){var E=R.getContext("2d");E.save();E.lineWidth=1;for(var z=Math.floor(Math.max(0,A-this.tickLabelInterval));z<A+Y;z++){E.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var c=(z-A)*P;E.beginPath();E.moveTo(c,R.height);var M=this.smallTickHeight;z%this.largeTickInterval===0?M=this.largeTickHeight:z%this.mediumTickInterval===0&&(M=this.mediumTickHeight);E.lineTo(c,R.height-M);E.stroke();z%this.tickLabelInterval===0&&(E.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),E.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),E.fillText(ou(z),c+4,12),E.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),E.moveTo(c,0),E.lineTo(c,this.aboveRulerHeight),E.stroke())}E.restore()};
_.l.percentToHex_=function(R){R=Math.round(R*255).toString(16);R.length<2&&(R="0"+R);return R};
_.l.drawSpeedLines_=function(R,A,Y){var P=R.getContext("2d");P.save();var E=Math.min(25,Math.abs(Y)-15)/25,z=R.width*.3*E,c=R.width*-.3,M=R.width*1.3,N=this.aboveRulerHeight;R=R.height;var y=Math.round(4*E),m=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");m.length<7&&(m="#"+m.substring(1,4).repeat(2));var T=this.percentToHex_(.5+E/2);T=m+T;m+="00";if(E>0)for(E=0;E<y;E++){var Q=c+Math.random()*(M-c),g=N+Math.random()*(R-N),r=z+A%z,I=P.createLinearGradient(Q,g,Q+r,g);
Y<0?(I.addColorStop(0,T),I.addColorStop(.4,T),I.addColorStop(.9,m)):(I.addColorStop(.1,m),I.addColorStop(.6,T),I.addColorStop(1,T));P.strokeStyle=I;P.lineWidth=1;P.beginPath();P.moveTo(Q,g);P.lineTo(Q+r,g);P.stroke()}P.restore()};
_.l.getStoryboardForTime_=function(R,A,Y){Y===void 0&&(Y=A.getNumberOfStoryboardLevels()-1);R=A.getStoryboardFrameIndex(R,Y);return A.getStoryboardFrame(R,Y)};
_.l.drawStoryboardImages_=function(R,A,Y,P,E){if(!this.disabled){R=R.getContext("2d");var z=this.getStoryboardForTime_(0,A);if(z){var c=z.width/z.columns;z=z.height/z.rows;var M=c/z,N=this.rulerHeight*M;N=this.tickLabelInterval*(M<this.tickLabelInterval*E/this.rulerHeight?1/Math.floor(this.tickLabelInterval*E/N):Math.round(N/(this.tickLabelInterval*E)));var y=N*E,m=this.rulerHeight,T=y/this.rulerHeight,Q=Math.floor(Math.max(0,Y-N));for(Q-=Q%N;Q<Y+P;Q+=N){var g=this.getStoryboardForTime_(Q,A),r=this.getPreloadedStoryboard_(g.url);
if(r){var I=(Q-Y)*E,b=this.aboveRulerHeight,p=g.column*c,h=g.row*z;if(M<T){var L=m/(y/M);g=c;L*=z;h+=(z-L)/2}else g=y/(m*M)*c,L=z,p+=(c-g)/2;R.drawImage(r,p,h,g,L,I,b,y,m)}else this.fetchStoryboardImage_(g)}}}};
_.l.getPreloadedStoryboard_=function(R){return this.storyboardImages_.find(function(A){if(A.src==R)return!0;var Y=A.src.indexOf(R);return Y!=-1&&Y==A.src.length-R.length})};
_.l.fetchStoryboardImage_=function(R){var A=this,Y=this.getPreloadedStoryboard_(R.url),P=this.pendingStoryboardImages_[R.url];Y||P!==void 0||(Y=new Promise(function(E){var z=new Image(R.width,R.height);z.src=R.url;z.onload=function(){E(z)};
z.onerror=function(){E(null)}}),this.pendingStoryboardImages_[R.url]=Y,Y.then(function(E){E&&A.push("storyboardImages_",E);
return E}).finally(function(){delete A.pendingStoryboardImages_[R.url]}))};
_.l.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.l.timeToPixels_=function(R,A,Y){R*=A;return Y===void 0||Y?R+"px":R};
_.l.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Bn.prototype.drawRuler_=Bn.prototype.drawRuler_;Bn.prototype.setUpCanvas_=Bn.prototype.setUpCanvas_;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Bn.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bn.prototype,"ytRendererBehavior",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],Bn.prototype,"start",void 0);_.C([_.S({value:30}),_.k("design:type",Number)],Bn.prototype,"end",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],Bn.prototype,"visible",void 0);_.C([_.S(),_.k("design:type",Object)],Bn.prototype,"player_",void 0);_.C([_.S(),_.k("design:type",Number)],Bn.prototype,"tickSpacing",void 0);_.C([_.S(),_.k("design:type",Number)],Bn.prototype,"windowSizeSec",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],Bn.prototype,"rulerWidth",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],Bn.prototype,"rulerShift",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],Bn.prototype,"canvasReady_",void 0);_.C([_.S({value:function(){return[]}}),
_.k("design:type",Array)],Bn.prototype,"storyboardImages_",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Bn.prototype,"disabled",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],Bn.prototype,"forceRender_",void 0);_.C([_.S({value:1}),_.k("design:type",Number)],Bn.prototype,"devicePixelRatio_",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],Bn.prototype,"windowSpeed",void 0);
_.C([_.vZ("visible","devicePixelRatio_","rulerWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bn.prototype,"setUpCanvas_",null);
_.C([_.vZ("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.k("design:returntype")],Bn.prototype,"drawRuler_",null);_.C([_.CG({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Bn);
_.B(Bn,"yt-clip-creation-scrubber-canvas",function(){if(QSb===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);QSb=R}R=QSb;return R},
{mode:2});var v2R;var g2$;var ax=function(){var R=_.K.apply(this,arguments)||this;R.start=0;R.end=30;R.visible=!1;R.draggingLeft_=!1;R.draggingRight_=!1;R.draggingRuler_=!1;R.draggingWindow_=!1;R.seekableStart=0;R.seekableEnd=0;R.rulerWidth_=0;R.rulerShift_=0;R.windowSlideSpeed=0;R.disabled=!1;R.initialized=!1;R.durationAccessibilityLabel="";R.activeLoopRange_=!1;R.rulerDragMouseStart_=0;R.rulerDragRulerStart_=0;R.rulerDragStartTime_=0;R.rulerDragEndTime_=0;R.dragMouseLastX_=0;R.scrollInterval_=null;R.scrubberVe_=null;R.boundHandlers_=
{};R.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return R};
_.H(ax,_.K);_.l=ax.prototype;
_.l.created=function(){var R=this;this.JSC$22610_playerEvents=new Map;this.JSC$22610_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22610_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22610_playerEvents.set("onStateChange",this.onStateChange_);var A={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(A).forEach(function(Y){R.boundHandlers_[Y]=A[Y].bind(R)})};
_.l.attached=function(){this.activeLoopRange_=!1;_.Mo(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Mo(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.NV(156731)};
_.l.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Mo(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Mo(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.l.onVisibilityChangedAction_=function(R){var A=this;R.visible&&!this.player_&&(R=_.EJ())&&R.getPlayerPromise().then(function(Y){A.setPlayer(Y)})};
_.l.setPlayer=function(R){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22610_playerEvents);R&&(this.set("player_",R),this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22610_playerEvents))};
_.l.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.l.beginHandleDrag_=function(R){this.disabled||(R.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=R.clientX,R.target===_.Mo(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():R.target===_.Mo(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.l.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.l.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.l.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.l.beginRulerDrag_=function(R){this.disabled||(R.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=R.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.l.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.l.beginWindowScroll_=function(){var R=this;this.scrollInterval_=setInterval(function(){var A=R.windowSlideSpeed;if(A=_.eNf(R.start,R.boundedRulerStartLimit_())?A-.1:_.eNf(R.end,R.boundedRulerEndLimit_())?A+.1:0){var Y=R.capRulerOffset_(R.rulerShift_+A);Y==R.rulerShift_?A=0:(R.set("rulerShift_",Y),_.xo(R.hostElement,"set-fixed-length-range",{start:R.start+A,duration:R.end-R.start}))}R.set("windowSlideSpeed",A)},33)};
_.l.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.l.endDrag_=function(){this.logClick();var R=void 0;this.draggingRight_?R=this.end-1:this.draggingLeft_&&(R=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,R);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))};
_.l.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.l.updateRulerSize_=function(){this.set("rulerWidth_",_.Mo(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.l.handleMouseDrag_=function(R){R.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(R):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(R):this.draggingWindow_&&this.handleWindowDrag_(R))};
_.l.handleRulerDrag_=function(R){R=this.pixelsToTime_(R.clientX-this.rulerDragMouseStart_);R=this.capRulerOffset_(this.rulerDragRulerStart_-R);this.set("rulerShift_",R);var A=this.rulerDragStartTime_-(this.rulerDragRulerStart_-R);_.xo(this.hostElement,"set-fixed-length-range",{start:A,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-R)-A})};
_.l.handleWindowDrag_=function(R){var A=R.clientX-this.dragMouseLastX_;this.dragMouseLastX_=R.clientX;R=this.pixelsToTime_(A);_.xo(this.hostElement,"set-fixed-length-range",{start:this.start+R,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.capRulerOffset_=function(R){var A=this.seekableStart-this.pixelsToTime_(16),Y=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(A,R),Y)};
_.l.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.l.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.l.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.l.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.l.handleWindowHandleDrag_=function(R){var A=R.clientX-this.dragMouseLastX_;this.dragMouseLastX_=R.clientX;R=this.pixelsToTime_(A);if(this.draggingLeft_){var Y=this.start+R;var P=this.end}else this.draggingRight_&&(Y=this.start,P=this.end+R);_.xo(this.hostElement,"set-range",{start:Y,end:P,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.l.onVideoProgress_=function(R){this.disabled||(R=this.timeToPixels_(R-this.rulerShift_,this.tickSpacing_),_.Mo(this.hostElement).querySelector("#playhead").style.transform="translateX("+R+")")};
_.l.onClipCreationDisable_=function(){this.endDrag_()};
_.l.timeToPixels_=function(R,A,Y){R*=A;return Y===void 0||Y?R+"px":R};
_.l.pixelsToTime_=function(R){return R/this.tickSpacing_};
_.l.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.centerRuler_=function(R,A,Y){this.set("rulerShift_",this.capRulerOffset_(R+(A-R)/2-Y/2))};
_.l.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.l.updateLoopRange_=function(R,A,Y,P,E,z,c){R&&(A&&P&&!Y?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(R.pauseVideo(),R.seekTo(E,!1,void 0,void 0,50)):this.draggingRight_?(R.pauseVideo(),R.seekTo(z-.1,!1,void 0,void 0,50)):(c!==void 0?R.seekTo(c,!0,void 0,void 0,50):(A=R.getCurrentTime(),A<E||A>z?R.seekTo(E,!0,void 0,void 0,50):R.seekTo(A,!0,void 0,void 0,50)),R.playVideo()),R.setLoopRange({startTimeMs:E*1E3,endTimeMs:z*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(R.getCurrentTime())):
this.activeLoopRange_&&(R.setLoopRange(null),this.activeLoopRange_=!1))};
_.l.updateHandles_=function(){_.Mo(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Mo(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.l.updateRuler_=function(){var R=this.end,A=this.start,Y=this.draggableStartLimit_(),P=this.draggableEndLimit_();(A<Y-.001||R>P+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.l.computeDurationLabel_=function(R,A){return R?R.replace("$clip_length",parseFloat(A).toFixed(1)):""};
_.l.computeDuration_=function(R,A){return this.isValidTime_(R)&&this.isValidTime_(A)&&R<A?A-R:0};
_.l.isValidTime_=function(R){return isNaN(parseFloat(R))||R<0?!1:this.player_?R>=this.seekableStart&&R<=this.seekableEnd:!0};
_.l.computeWindowSizeSec_=function(R,A,Y){return Math.min((R||12E4)/1E3,Y-A)};
_.l.computeTickSpacing_=function(R,A){return A?A/R:1};
_.l.onDragStateChanged_=function(){_.xo(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.l.centerRangeOnTime_=function(R){var A=this.duration;R=tHf(R-A/2,A,this.seekableStart,this.seekableEnd);_.xo(this.hostElement,"set-fixed-length-range",{start:R.start,duration:R.end-R.start})};
_.l.nearlyLessThan_=function(R,A,Y){return R+(Y===void 0?1E-6:Y)<A};
_.l.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var R=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(R,this.start)||this.nearlyLessThan_(this.end,R))&&this.centerRangeOnTime_(R)}};
_.l.onStateChange_=function(R){this.visible&&!this.disabled&&R==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.l.computeDragState_=function(R,A,Y,P){return R?"left":A?"right":Y?"ruler":P?"window":"none"};
_.l.logClick=function(){var R=_.F9(),A=_.pO();R&&A&&this.scrubberVe_&&(_.v("combine_ve_grafts")?_.Xq(_.rU(),this.scrubberVe_,A):_.ZM(R,A,this.scrubberVe_),_.qT(R,this.scrubberVe_))};
ax.prototype.onDragStateChanged_=ax.prototype.onDragStateChanged_;ax.prototype.updateRuler_=ax.prototype.updateRuler_;ax.prototype.updateHandles_=ax.prototype.updateHandles_;ax.prototype.onUpdateLoopRange=ax.prototype.onUpdateLoopRange;ax.prototype.onInitializedChanged_=ax.prototype.onInitializedChanged_;ax.prototype.onVisibleChanged_=ax.prototype.onVisibleChanged_;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ax.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",Object)],ax.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"start",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"end",void 0);_.C([_.S({computed:"computeDuration_(start, end)"}),_.k("design:type",Number)],ax.prototype,"duration",void 0);
_.C([_.S(),_.k("design:type",String)],ax.prototype,"lengthTemplate",void 0);_.C([_.S({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.k("design:type",String)],ax.prototype,"durationLabel",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"visible",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"player_",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"draggingLeft_",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"draggingRight_",void 0);
_.C([_.S(),_.k("design:type",Object)],ax.prototype,"draggingRuler_",void 0);_.C([_.S({value:!1}),_.k("design:type",Object)],ax.prototype,"draggingWindow_",void 0);_.C([_.S({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.k("design:type",Number)],ax.prototype,"tickSpacing_",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"seekableStart",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"seekableEnd",void 0);
_.C([_.S(),_.k("design:type",Number)],ax.prototype,"windowSizeMs",void 0);_.C([_.S({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.k("design:type",Number)],ax.prototype,"windowSizeSec_",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"rulerWidth_",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"rulerShift_",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"windowSlideSpeed",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ax.prototype,"disabled",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"initialized",void 0);_.C([_.S(),_.k("design:type",Object)],ax.prototype,"durationAccessibilityLabel",void 0);_.C([_.S({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.k("design:type",String)],ax.prototype,"dragState",void 0);
_.C([_.vZ("visible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ax.prototype,"onVisibleChanged_",null);_.C([_.vZ("initialized"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ax.prototype,"onInitializedChanged_",null);_.C([_.vZ("player_","visible","disabled","initialized","start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ax.prototype,"onUpdateLoopRange",null);
_.C([_.vZ("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ax.prototype,"updateHandles_",null);_.C([_.vZ("start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ax.prototype,"updateRuler_",null);
_.C([_.vZ("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ax.prototype,"onDragStateChanged_",null);_.C([_.CG({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],ax);
_.B(ax,"yt-clip-creation-scrubber-view",function(){if(g2$===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;v2R===void 0&&(v2R=document.createElement("template"));var P=v2R;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);g2$=R}R=g2$;return R},{mode:2});var CT=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};R.startHighlightTimeout=0;R.endHighlightTimeout=0;return R};
_.H(CT,_.K);_.l=CT.prototype;_.l.attached=function(){var R=this;this.startInput.addEventListener("input",function(A){return R.handleStartInput_(A)});
this.endInput.addEventListener("input",function(A){return R.handleEndInput_(A)});
this.startInput.addEventListener("focusout",function(A){return R.handleStartBlur_(A)});
this.endInput.addEventListener("focusout",function(A){return R.handleEndBlur_(A)})};
_.l.setPlayer=function(R){this.set("player_",R)};
_.l.onSetFixedLengthRange_=function(R){var A=R.detail;R=A.start;var Y=A.duration,P=A.startLimit;A=A.endLimit;P||(P=this.seekableStart_);A||(A=this.seekableEnd_);R=tHf(R,Y,P,A);this.start=R.start;this.end=R.end};
_.l.onSetRange_=function(R){var A=R.detail;R=A.start;var Y=A.end,P=A.startLimit;A=A.endLimit;P||(P=this.seekableStart_);A||(A=this.seekableEnd_);if(R=wSc(R,Y,P,A,this.minLengthSec,this.maxLengthSec))this.start=R.start,this.end=R.end};
_.l.updateInputs_=function(){var R=this.end,A=this.start;this.startInput.focused||(this.startInput.value=ou(A,!0));this.endInput.focused||(this.endInput.value=ou(R,!0))};
_.l.handleStartInput_=function(R){R=ZDb(R.target.value);if(R===null)this.set("startValid",!1);else{var A=this.end,Y=wSc(R,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);Y?(this.set("endWillUpdate",Y.end!==A),this.set("startValid",Y.start===R)):this.set("startValid",!1)}};
_.l.handleEndInput_=function(R){R=ZDb(R.target.value);if(R===null)this.set("endValid",!1);else{var A=this.start,Y=ubb(this.start,R,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);Y?(this.set("startWillUpdate",Y.start!==A),this.set("endValid",Y.end===R)):this.set("endValid",!1)}};
_.l.handleStartBlur_=function(R){R=ZDb(R.target.value);R===null?this.startInput.value=ou(this.start,!0):this.forceUpdateInputs_(wSc(R,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.handleEndBlur_=function(R){R=ZDb(R.target.value);R===null?this.endInput.value=ou(this.end,!0):this.forceUpdateInputs_(ubb(this.start,R,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.l.forceUpdateInputs_=function(R){R&&(this.start=R.start,this.end=R.end);this.startInput.value=ou(this.start,!0);this.endInput.value=ou(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.l.initializeClipRange_=function(){var R=this.seekableEnd_,A=this.seekableStart_,Y=this.visible_,P=this.player_;if(!P||!Y||A===null||!R)this.set("initialized",!1);else if(!this.initialized){var E=P.getCurrentTime(),z=this.getDefaultLengthSec_();Y=P.getVideoData();var c=P.getPlayerState()==1,M=Y.isLive;z=Math.min(z,R-A);E=Math.max(0,E);R=M?ubb(E-z,E,A,R,this.minLengthSec,this.maxLengthSec):c?tHf(E-z/2,z,A,R):tHf(E,z,A,R);this.start=R.start;this.end=R.end;this.set("initialized",!0);Y.isLive&&P.seekTo(R.start);
this.startInput.value=ou(this.start,!0);this.endInput.value=ou(this.end,!0)}};
_.l.onStartChanged_=function(){var R=this;_.xo(this.hostElement,"start-changed",{start:this.start});var A;isNaN((A=this.oldStart)!=null?A:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){R.set("highlightStart",!1);R.startHighlightTimeout=0;R.oldStart=R.start},3E3))};
_.l.onEndChanged_=function(){var R=this;_.xo(this.hostElement,"end-changed",{end:this.end});var A;isNaN((A=this.oldEnd)!=null?A:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){R.set("highlightEnd",!1);R.endHighlightTimeout=0;R.oldEnd=R.end},3E3))};
_.l.onVisibilityChangedAction_=function(R){var A=this;this.set("visible_",R.visible);this.visible_&&!this.player_&&(R=_.EJ())&&R.getPlayerPromise().then(function(Y){A.setPlayer(Y)})};
_.l.computeMinLengthSec_=function(R){return R/1E3||5};
_.l.computeMaxLengthSec_=function(R){return R/1E3||60};
_.l.computeDefaultLengthSec_=function(R){return R/1E3};
_.l.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.l.computeSeekableStart_=function(R,A){return R&&A?R.getProgressState(1).seekableStart:0};
_.l.computeSeekableEnd_=function(R,A){return R&&A?R.getProgressState(1).seekableEnd:0};
_.l.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.l.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.l.onDragState_=function(R){this.set("highlightStart",R.detail.startChanging);this.set("highlightEnd",R.detail.endChanging)};
CT.prototype.onDragState_=CT.prototype.onDragState_;CT.prototype.onEndChanged_=CT.prototype.onEndChanged_;CT.prototype.onStartChanged_=CT.prototype.onStartChanged_;CT.prototype.initializeClipRange_=CT.prototype.initializeClipRange_;CT.prototype.updateInputs_=CT.prototype.updateInputs_;CT.prototype.onSetRange_=CT.prototype.onSetRange_;CT.prototype.onSetFixedLengthRange_=CT.prototype.onSetFixedLengthRange_;
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],CT.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],CT.prototype,"data",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],CT.prototype,"start",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],CT.prototype,"startValid",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],CT.prototype,"startWillUpdate",void 0);_.C([_.S({value:30}),_.k("design:type",Number)],CT.prototype,"end",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],CT.prototype,"endValid",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],CT.prototype,"endWillUpdate",void 0);_.C([_.S({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.k("design:type",Number)],CT.prototype,"minLengthSec",void 0);
_.C([_.S({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.k("design:type",Number)],CT.prototype,"maxLengthSec",void 0);_.C([_.S({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.k("design:type",Number)],CT.prototype,"defaultLengthSec",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],CT.prototype,"visible_",void 0);_.C([_.S(),_.k("design:type",Object)],CT.prototype,"player_",void 0);
_.C([_.S({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.k("design:type",Number)],CT.prototype,"seekableStart_",void 0);_.C([_.S({computed:"computeSeekableEnd_(player_, visible_)"}),_.k("design:type",Number)],CT.prototype,"seekableEnd_",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],CT.prototype,"initialized",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],CT.prototype,"disabled",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],CT.prototype,"highlightStart",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],CT.prototype,"highlightEnd",void 0);_.C([_.nG("#start"),_.k("design:type",HTMLInputElement)],CT.prototype,"startInput",void 0);_.C([_.nG("#end"),_.k("design:type",HTMLInputElement)],CT.prototype,"endInput",void 0);
_.C([_.Qa("set-fixed-length-range"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],CT.prototype,"onSetFixedLengthRange_",null);_.C([_.Qa("set-range"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],CT.prototype,"onSetRange_",null);_.C([_.vZ("start","end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CT.prototype,"updateInputs_",null);
_.C([_.vZ("player_","visible_","seekableStart_","seekableEnd_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CT.prototype,"initializeClipRange_",null);_.C([_.vZ("start"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CT.prototype,"onStartChanged_",null);_.C([_.vZ("end"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CT.prototype,"onEndChanged_",null);
_.C([_.Qa("clips-drag-state"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],CT.prototype,"onDragState_",null);_.C([_.CG({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],CT);
_.B(CT,"yt-clip-creation-scrubber-renderer",function(){if(TLg===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;mMb===void 0&&(mMb=document.createElement("template"));var P=mMb;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);TLg=R}R=TLg;return R},{mode:2});var h5=function(){var R=_.K.apply(this,arguments)||this;R.player_=null;R.JSC$22624_playerEvents=new Map;R.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return R};
_.H(h5,_.K);_.l=h5.prototype;_.l.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"}}}};
_.l.created=function(){this.JSC$22624_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22624_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22624_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22624_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.l.detached=function(){this.setPlayer(null)};
_.l.onVisibilityChangedAction_=function(R){var A=this,Y;if((Y=this.data)==null?0:Y.externalVideoId){var P;this.videoId=(P=this.data)==null?void 0:P.externalVideoId}this.getPlayer().then(function(E){if(R.visible)A.returnTime=E.getCurrentTime(),A.isAtLiveHead=E.getProgressState().isAtLiveHead;else{var z=A.returnTime;A.isAtLiveHead&&(z=Number.POSITIVE_INFINITY);E.seekTo(z,void 0,void 0,void 0,51)}})};
_.l.getPlayer=function(){var R=this;if(!this.player_){var A=_.EJ();if(A)return A.getPlayerPromise().then(function(Y){R.setPlayer(Y);return Y})}return Promise.resolve(this.player_)};
_.l.setPlayer=function(R){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22624_playerEvents);if(R){this.player_=R;var A;((A=this.data)==null?0:A.externalVideoId)||this.set("videoId",R.getVideoData().video_id||"");var Y;(R==null?void 0:(Y=R.getPresentingPlayerType)==null?void 0:Y.call(R))===2&&(this.set("isAdPlaying",!0),_.OC(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(R,this.JSC$22624_playerEvents)}};
_.l.ready=function(){_.Mo(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.l.onTitleChanged_=function(R){this.set("titleValue",R.detail.title)};
_.l.onStartChanged_=function(R){this.set("start",R.detail.start)};
_.l.onEndChanged_=function(R){this.set("end",R.detail.end)};
_.l.onTitleValidChanged_=function(R){this.set("titleValid",R.detail.valid)};
_.l.onStartValidChanged_=function(R){this.set("startValid",R.detail.valid)};
_.l.onEndValidChanged_=function(R){this.set("endValid",R.detail.valid)};
_.l.onVideoDataChange_=function(){var R;if((R=this.data)==null||!R.externalVideoId){var A;this.set("videoId",((A=this.player_)==null?void 0:A.getVideoData().video_id)||"")}};
_.l.computeFormValid_=function(R,A,Y,P){return!!(R&&A&&Y&&P)};
_.l.computeCancelButton_=function(R,A,Y){return R&&_.n(R,_.RC)?{buttonRenderer:Object.assign({},_.n(R,_.RC),{isDisabled:A||Y})}:null};
_.l.computeSubmitButton_=function(R,A,Y){return R&&_.n(R,_.RC)?{buttonRenderer:Object.assign({},_.n(R,_.RC),{command:void 0,isDisabled:!this.formValid||A||Y})}:null};
_.l.computeSubmitCommand_=function(R){return R||null};
_.l.onSubmit_=function(R){var A=this;R.stopPropagation();R.preventDefault();this.submitCommand_&&(R={},R.comment_text=this.titleValue,R.clip_external_video_id=this.videoId,R.clip_offset_ms=parseInt(this.start*1E3,10),R.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.sC(this.hostElement,[this.submitCommand_,R]).then(function(){A.set("isLoading_",!1)},function(){A.set("isLoading_",!1)}))};
_.l.playerAdStartHandler_=function(){_.OC(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.l.playerAdEndHandler_=function(){_.OC(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.l.onVideoProgress_=function(){var R=this;this.getPlayer().then(function(A){var Y,P=(A==null?void 0:(Y=A.getPresentingPlayerType)==null?void 0:Y.call(A))===2;R.isAdPlaying!==P&&(P?R.playerAdStartHandler_():R.playerAdEndHandler_())})};
h5.prototype.onEndValidChanged_=h5.prototype.onEndValidChanged_;h5.prototype.onStartValidChanged_=h5.prototype.onStartValidChanged_;h5.prototype.onTitleValidChanged_=h5.prototype.onTitleValidChanged_;h5.prototype.onEndChanged_=h5.prototype.onEndChanged_;h5.prototype.onStartChanged_=h5.prototype.onStartChanged_;h5.prototype.onTitleChanged_=h5.prototype.onTitleChanged_;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],h5.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",Object)],h5.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],h5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],h5.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],h5.prototype,"data",void 0);_.C([_.S({value:""}),_.k("design:type",String)],h5.prototype,"titleValue",void 0);
_.C([_.S({value:!1}),_.k("design:type",Boolean)],h5.prototype,"titleValid",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],h5.prototype,"start",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],h5.prototype,"startValid",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],h5.prototype,"end",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],h5.prototype,"endValid",void 0);_.C([_.S({value:""}),_.k("design:type",String)],h5.prototype,"videoId",void 0);
_.C([_.S({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.k("design:type",Boolean)],h5.prototype,"formValid",void 0);_.C([_.S({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.k("design:type",Object)],h5.prototype,"submitButton_",void 0);_.C([_.S({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.k("design:type",Object)],h5.prototype,"submitCommand_",void 0);
_.C([_.S({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.k("design:type",Object)],h5.prototype,"cancelButton_",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],h5.prototype,"isLoading_",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],h5.prototype,"isAdPlaying",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],h5.prototype,"returnTime",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],h5.prototype,"isAtLiveHead",void 0);
_.C([_.Qa("title-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],h5.prototype,"onTitleChanged_",null);_.C([_.Qa("start-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],h5.prototype,"onStartChanged_",null);_.C([_.Qa("end-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],h5.prototype,"onEndChanged_",null);
_.C([_.Qa("title-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],h5.prototype,"onTitleValidChanged_",null);_.C([_.Qa("start-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],h5.prototype,"onStartValidChanged_",null);_.C([_.Qa("end-valid-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],h5.prototype,"onEndValidChanged_",null);
_.C([_.CG({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],h5);
_.B(h5,"yt-clip-creation-renderer",function(){if(yrf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Jrg===void 0&&(Jrg=document.createElement("template"));var P=Jrg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);yrf=R}R=yrf;return R},{mode:2});var ox=function(){return _.K.apply(this,arguments)||this};
_.H(ox,_.K);ox.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"}}}};
ox.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(R){return R.hasOwnProperty("clipCreationRenderer")})&&_.OC(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
ox.prototype.onPanelContentVisibleChanged=ox.prototype.onPanelContentVisibleChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.cX.YtVisibilityBehavior),_.k("design:type",Object)],ox.prototype,"ytVisibilityBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],ox.prototype,"ytdReduxBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],ox.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ox.prototype,"panelContentVisible",void 0);_.C([_.vZ("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ox.prototype,"onPanelContentVisibleChanged",null);_.C([_.F({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],ox);
_.B(ox,"ytd-clip-section-renderer",function(){if(MpR!==void 0)return MpR;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return MpR=R},{mode:1});var n2g;var k3=function(){return _.K.apply(this,arguments)||this};
_.H(k3,_.K);_.l=k3.prototype;
_.l.onKeyDown=function(R){if(this.snippetElements.length!==0&&(R=R.keyCode,R===38||R===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);R===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Sv(this.highlightedIndex,-1,this.snippetElements.length);R=this.snippetElements.length;var A=this.highlightedIndex%R;this.highlightedIndex=A*R<0?A+R:A;R=this.snippetElements[this.highlightedIndex];this.highlightSnippet(R);this.ensureVisible(R)}};
_.l.onKeyUp=function(R){var A=this;Wmo(R)&&(R.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.fn.cancelJob(this.inputTimerId),this.inputTimerId=_.fn.addLowPriorityJob(function(){A.typedValue&&(A.fetchSnippets(A.typedValue),A.logInputGesture(A.data))},1E3))};
_.l.onClick=function(R){(R=_.NoA(R.target,null,"snippet-item"))&&this.selectSnippet(R)};
_.l.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.l.ready=function(){var R=this;this.inputElement.addEventListener("focus",function(){R.snippetsWrapper.style.removeProperty("display")})};
_.l.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.l.getSourceTimelines=function(){if(!this.data)return[];var R=[];if(this.data.searchInVideoSources)for(var A=_.x(this.data.searchInVideoSources),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y==="SEARCH_IN_VIDEO_SOURCE_ASR"?R.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):Y==="SEARCH_IN_VIDEO_SOURCE_OCR"&&R.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return R};
_.l.fetchSnippets=function(R){var A=_.OC(this.hostElement,"yt-get-current-video-id-action")[0],Y=this.getSourceTimelines();R={getSearchInVideoCommand:{externalVideoId:A,query:R!=null?R:"",sourceTimelines:Y},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})};
_.l.filterSnippets=function(R,A){var Y=this;if(A){this.filteredSnippets=(0,_.BO.unsafeClone)(R);var P=RegExp(_.Ank(A),"i");this.filteredSnippets=this.filteredSnippets.filter(function(c){return P.test(Y.ytRendererBehavior.getSimpleString(c.snippet))});
R=_.x(this.filteredSnippets);for(var E=R.next();!E.done;E=R.next()){E=E.value;var z=this.ytRendererBehavior.getSimpleString(E.snippet);E.snippet={runs:[{text:z.substring(0,z.toLowerCase().indexOf(A))},{text:z.substring(z.toLowerCase().indexOf(A),z.toLowerCase().indexOf(A)+A.length),bold:!0},{text:z.substring(z.toLowerCase().indexOf(A)+A.length,z.length)}]}}}else this.filteredSnippets=R};
_.l.onUpdateSearchInVideoResults=function(R){if(!(this.snippets.length>0)){var A,Y,P;if((P=(A=_.n(R,G0$))==null?void 0:(Y=A.results)==null?void 0:Y.length)!=null&&P){var E;this.filteredSnippets=this.snippets=((E=_.n(R,G0$))==null?void 0:E.results).map(function(z){var c,M,N;return{startMs:z==null?void 0:(c=z.searchInVideoResultRenderer)==null?void 0:c.startMs,startTimeText:z==null?void 0:(M=z.searchInVideoResultRenderer)==null?void 0:M.startTimeText,snippet:z==null?void 0:(N=z.searchInVideoResultRenderer)==
null?void 0:N.snippet}})}}};
_.l.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};
_.l.highlightSnippet=function(R){R.classList.add("highlighted")};
_.l.removeSnippetHighlight=function(R){R.classList.remove("highlighted")};
_.l.selectSnippet=function(R){this.typedValue=String(R.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(R);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.l.ensureVisible=function(R){var A=this.snippetsWrapper.scrollTop,Y=A+this.snippetsWrapper.clientHeight,P=R.offsetTop-this.snippetsWrapper.offsetTop;R=P+R.clientHeight;P<A?this.snippetsWrapper.scrollTop-=A-P:R>Y&&(this.snippetsWrapper.scrollTop+=R-Y)};
_.l.seekPlayer=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1){if(!R)return P.jumpTo(0);A=Number(R.dataset.startOffset);return P.yield(_.zI().getPlayerPromise(),3)}Y=P.yieldResult;Y.seekTo(A/1E3,!0);Y.wakeUpControls();_.XH(P)})};
_.l.logInputGesture=function(R){var A=_.F9();A&&(R==null?0:R.trackingParams)&&_.Lj(A,_.S5(R.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.l.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("typed-value-changed",this.typedValue))};
_.l.updateTypedValueFromBinding=function(R){this.typedValue=R.currentTarget.value};
k3.prototype.typedValueChangedForBinding=k3.prototype.typedValueChangedForBinding;k3.prototype.dataChanged=k3.prototype.dataChanged;k3.prototype.panelContentVisibleChanged=k3.prototype.panelContentVisibleChanged;k3.prototype.onClick=k3.prototype.onClick;k3.prototype.onKeyUp=k3.prototype.onKeyUp;k3.prototype.onKeyDown=k3.prototype.onKeyDown;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],k3.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],k3.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],k3.prototype,"data",void 0);_.C([_.S({value:[]}),_.k("design:type",Array)],k3.prototype,"snippets",void 0);_.C([_.S({value:[]}),_.k("design:type",Array)],k3.prototype,"filteredSnippets",void 0);_.C([_.S({value:[]}),_.k("design:type",Array)],k3.prototype,"snippetElements",void 0);
_.C([_.nG("#siv-input"),_.k("design:type",HTMLElement)],k3.prototype,"inputElement",void 0);_.C([_.nG("#siv-snippets-wrapper"),_.k("design:type",HTMLElement)],k3.prototype,"snippetsWrapper",void 0);_.C([_.S(),_.k("design:type",String)],k3.prototype,"typedValue",void 0);_.C([_.S({value:-1}),_.k("design:type",Number)],k3.prototype,"highlightedIndex",void 0);_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[_.Du]),_.k("design:returntype")],k3.prototype,"onKeyDown",null);
_.C([_.Qa("keyup"),_.k("design:type",Function),_.k("design:paramtypes",[_.Du]),_.k("design:returntype")],k3.prototype,"onKeyUp",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],k3.prototype,"onClick",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],k3.prototype,"panelContentVisible",void 0);
_.C([_.vZ("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k3.prototype,"panelContentVisibleChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k3.prototype,"dataChanged",null);_.C([_.vZ("typedValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k3.prototype,"typedValueChangedForBinding",null);
_.C([_.F({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],k3);
_.B(k3,"ytd-search-in-video-renderer",function(){if(n2g!==void 0)return n2g;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return n2g=R},{mode:1});var Hsf;var GW=function(){return _.K.apply(this,arguments)||this};
_.H(GW,_.K);GW.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
GW.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]]"}}}}}};
GW.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var R,A,Y,P,E=(A=_.n((R=this.data)==null?void 0:R.onClickCommand,_.WM))==null?void 0:(Y=A.item)==null?void 0:(P=Y.notificationTextRenderer)==null?void 0:P.successResponseText;E&&_.DEJ(this.hostElement,E)}};
_.Yh.Object.defineProperties(GW.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;return this.isProductPlaceholder&&((R=this.data)==null?void 0:(A=R.hiddenProductOptions)==null?void 0:A.showDropCountdown)&&!!((Y=this.data)==null?0:(P=Y.hiddenProductOptions)==null?0:P.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var R;return!this.isProductPlaceholder&&!((R=this.data)==null?0:R.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null?0:R.priceReplacementText)&&!((A=this.data)==null||!A.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],GW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],GW.prototype,"componentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],GW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],GW.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"useCenterLayoutContainer",null);_.C([_.S({computed:"computeButtonOverride(data)"}),_.k("design:type",Object)],GW.prototype,"buttonOverride",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"isProductPlaceholder",null);
_.C([_.X("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"showDropCountdown",null);_.C([_.X("isProductPlaceholder","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"showBrandName",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"showPriceReplacementText",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"showPrice",null);
_.C([_.X("isProductPlaceholder"),_.k("design:type",Object),_.k("design:paramtypes",[])],GW.prototype,"showMetadata",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],GW);
_.B(GW,"ytd-product-list-item-renderer",function(){if(Hsf!==void 0)return Hsf;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Hsf=R},{mode:1});var rrx;var ZD=function(){return _.K.apply(this,arguments)||this};
_.H(ZD,_.K);ZD.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
ZD.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
ZD.prototype.panelContentVisibleChanged=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return R.playerApi?Y.jumpTo(2):Y.yield(_.zI().getPlayerPromise(),3);Y.nextAddress!=2&&(R.playerApi=Y.yieldResult);(A=R.playerApi)==null||A.productsInVideoVisibilityUpdated(!!R.panelContentVisible);_.XH(Y)})};
ZD.prototype.panelContentVisibleChanged=ZD.prototype.panelContentVisibleChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ZD.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ZD.prototype,"panelContentVisible",void 0);_.C([_.S(),_.k("design:type",Object)],ZD.prototype,"data",void 0);
_.C([_.vZ("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],ZD.prototype,"panelContentVisibleChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],ZD);
_.B(ZD,"ytd-product-list-renderer",function(){if(rrx!==void 0)return rrx;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return rrx=R},{mode:1});var DMZ;var t5=function(){var R=_.K.apply(this,arguments)||this;R.hideTimestamps=!!_.K1("hide-transcript-timestamps");R.currentCueIndex=-1;R.flatCues=[];R.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};R.TEST_ONLY={getFlatCues:function(){return R.flatCues}};
return R};
_.H(t5,_.K);_.l=t5.prototype;_.l.hideTimestampsChanged=function(){_.Im("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.dataChanged=function(){var R;if((R=this.data)!=null&&R.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;R=_.x(this.data.cueGroups);for(var A=R.next();!A.done;A=R.next()){A=_.x(_.n(A.value,Zfg).cues);for(var Y=A.next();!Y.done;Y=A.next())this.flatCues.push(Number(_.n(Y.value,tGq).startOffsetMs))}}};
_.l.onYtPlayerTimeChanged=function(R){if(!(R<0)){for(var A=this.currentCueIndex,Y=A;;){var P=Y>=0?this.flatCues[Y]/1E3:-1;if(R+.5<P)--Y;else if(P=Y+1<this.flatCues.length?this.flatCues[Y+1]/1E3:Infinity,R+.5>P)Y+=1;else break}Y!==A&&(A>=0&&((R=this.getCueElement(A))&&R.classList.remove("active"),(A=this.getCueGroupElement(A))&&A.classList.remove("active")),(A=this.getCueElement(Y))&&A.classList.add("active"),(A=this.getCueGroupElement(Y))&&A.classList.add("active"),this.currentCueIndex=Y,this.isHovered||
this.scrollElementToTop(Y))}};
_.l.scrollElementToTop=function(R){R=this.getCueElement(R>=3?R-3:0);this.hostElement.scrollTop=Math.min(R.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.getCueElement=function(R){return _.Mo(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[R]+'"]')};
_.l.getCueGroupElement=function(R){return(R=this.getCueElement(R))&&R.parentElement?R.parentElement.parentElement:null};
_.l.onTap=function(R){var A=_.Yw(R);R.target.classList.contains("cue")&&this.seekCueElement(A)};
_.l.onKeyPress=function(R){R.keyCode==13&&(R=_.NoA(R.target,null,"cue"))&&this.seekCueElement(R)};
_.l.seekCueElement=function(R){R=Number(R.getAttribute("start-offset"));_.OC(this.hostElement,"yt-transcript-player-seek",[R/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
t5.prototype.onMouseLeave=t5.prototype.onMouseLeave;t5.prototype.onMouseEnter=t5.prototype.onMouseEnter;t5.prototype.onKeyPress=t5.prototype.onKeyPress;t5.prototype.onTap=t5.prototype.onTap;t5.prototype.dataChanged=t5.prototype.dataChanged;t5.prototype.hideTimestampsChanged=t5.prototype.hideTimestampsChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],t5.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],t5.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],t5.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],t5.prototype,"hideTimestamps",void 0);_.C([_.S(),_.k("design:type",Boolean)],t5.prototype,"isHovered",void 0);_.C([_.vZ("hideTimestamps"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t5.prototype,"hideTimestampsChanged",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t5.prototype,"dataChanged",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],t5.prototype,"onTap",null);_.C([_.Qa("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],t5.prototype,"onKeyPress",null);
_.C([_.Qa("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t5.prototype,"onMouseEnter",null);_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],t5.prototype,"onMouseLeave",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],t5);
_.B(t5,"ytd-transcript-body-renderer",function(){if(DMZ!==void 0)return DMZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return DMZ=R},{mode:1});var UMg;var wX=function(){var R=_.K.apply(this,arguments)||this;R.darkerPanels=_.v("web_watch_darker_panels");return R};
_.H(wX,_.K);wX.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wX.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wX.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wX.prototype,"darkerPanels",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],wX);
_.B(wX,"ytd-transcript-footer-renderer",function(){if(UMg!==void 0)return UMg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return UMg=R},{mode:1});var $Me;var XOe;var uY=function(){var R=_.K.apply(this,arguments)||this;R.systemIcons=_.v("kevlar_system_icons");R.showClearButton=!1;return R};
_.H(uY,_.K);_.l=uY.prototype;_.l.handleInput=function(R){var A=this;R.target.value.length?_.u5(this,"ytdTranscriptSearchBoxSearch",function(){A.emitSearchEvent(R)},500):(_.klS(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=R.target.value.length>0};
_.l.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.l.handleClick=function(){var R,A=(R=this.data)==null?void 0:R.trackingParams;A&&_.K_(_.rU(),A)};
_.l.handleClear=function(){_.klS(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var R,A,Y=(A=_.n((R=this.data)==null?void 0:R.clearButton,_.RC))==null?void 0:A.trackingParams;Y&&_.K_(_.rU(),Y);this.clear()};
_.l.emitSearchEvent=function(R){_.xo(this.hostElement,"yt-transcript-search-box-search",{query:R.target.value});var A,Y;(R=(Y=_.n((A=this.data)==null?void 0:A.searchButton,_.RC))==null?void 0:Y.trackingParams)&&_.K_(_.rU(),R)};
_.l.emitClearEvent=function(){_.xo(this.hostElement,"yt-transcript-search-box-clear")};
_.Yh.Object.defineProperties(uY.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Mo(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uY.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uY.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uY.prototype,"systemIcons",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],uY);
_.B(uY,"ytd-transcript-search-box-renderer",function(){if(XOe!==void 0)return XOe;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return XOe=R},{mode:1});var Sp$;var IgE;var eg=function(){return _.K.apply(this,arguments)||this};
_.H(eg,_.K);eg.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var R,A;this.sectionHeaderAriaLabel=(R=this.data)==null?void 0:(A=R.accessibility)==null?void 0:A.accessibilityData.label}};
eg.prototype.fireSelectedEvent=function(R){_.xo(this.hostElement,"ytd-transcript-section-header",{startMs:R})};
eg.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
eg.prototype.handleKeyPress=function(R){this.data&&R.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Yh.Object.defineProperties(eg.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=(R=this.data)==null?void 0:R.enableTappableTranscriptHeader)!=null?A:!1}}});
eg.prototype.dataChanged=eg.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],eg.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],eg.prototype,"sectionHeaderAriaLabel",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],eg.prototype,"enableTappableTranscriptHeader",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eg.prototype,"dataChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],eg);
_.B(eg,"ytd-transcript-section-header-renderer",function(){if(IgE!==void 0)return IgE;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return IgE=R},{mode:1});var KMg;var WMx;var qO=function(){var R=_.K.apply(this,arguments)||this;R.isEditMode=!1;R.touchCaptionsEnabled=!1;R.deleteCaptionCorrectionPopupCommand=null;R.voteCaptionCorrectionPopupCommand=null;R.roundedContainer=!0;R.mouseOver=!1;R.textChanged=!1;R.messages={suggest_correction:_.vk("suggest_correction",void 0,"Edit caption"),suggested_caption:_.vk("suggested_caption",void 0,"Suggested caption"),submit_correction:_.vk("submit_correction",void 0,"Submit for review"),cancel_correction:_.vk("cancel_correction",
void 0,"Cancel"),replay_segment:_.vk("replay_segment",void 0,"Re-play segment"),delete_correction:_.vk("delete_correction",void 0,"Delete correction")};R.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return R};
_.H(qO,_.K);_.l=qO.prototype;_.l.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)};
_.l.handleDelete=function(R){if(this.deleteCaptionCorrectionPopupCommand){var A=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);A&&this.ytdOpenPopupBehavior.openPopup(A);R.stopPropagation()}};
_.l.handleSubmit=function(R){if(this.data&&this.data.submitCaptionCorrectionCommand&&(R.stopPropagation(),this.textChanged)){var A;R=(A=_.n(this.data.submitCaptionCorrectionCommand,_.XXb))==null?void 0:A.params;A=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:R,correctionText:String(this.ironTextAreaElement.value),originalText:_.R4(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(A);this.isEditMode=!1}};
_.l.handleUpdateSegmentText=function(R){(R=_.n(R,Oqb))&&R.targetId&&this.data&&R.targetId===this.data.targetId&&(R.userCorrection&&(this.editedText=R.userCorrection),R.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.R4(this.data.snippet)),R.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=R.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=R.voteCaptionCorrectionPopupCommand?
R.voteCaptionCorrectionPopupCommand:null,R.accessibility&&(this.segmentAriaLabel=R.accessibility.accessibilityData.label))};
_.l.handleCancel=function(R){this.isEditMode=!1;R.stopPropagation();this.logClientVe(159409)};
_.l.handleEditSegmentCommand=function(R){(R=_.n(R,cbx))&&R.targetId&&this.data&&R.targetId===this.data.targetId&&this.handleEdit()};
_.l.handleEditButtonClick=function(R){this.data&&(this.handleEdit(),R.stopPropagation())};
_.l.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var R;(R=this.ironTextAreaElement.textarea)==null||R.focus();this.logClientVe(159407)}};
_.l.handleMouseEnter=function(){this.mouseOver=!0};
_.l.handleMouseLeave=function(){this.mouseOver=!1};
_.l.handleReplay=function(R){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),R.stopPropagation(),this.logClientVe(159408))};
_.l.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()))};
_.l.handleKeypress=function(R){this.data&&(this.isEditMode?R.stopPropagation():this.isEnterPress(R)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(R)&&this.logClientVe(138758))};
_.l.handleTextboxClick=function(R){R.stopPropagation()};
_.l.handleTextboxKeydown=function(R){this.isControlEnterPress(R)?this.handleSubmit(R):R.key==="Escape"&&this.handleCancel(R)};
_.l.handleTextboxKeyup=function(){this.textChanged=_.R4(this.latestText)!==String(this.ironTextAreaElement.value)};
_.l.fireSelectedEvent=function(R){_.xo(this.hostElement,"yt-transcript-segment-selected",{startMs:R})};
_.l.fireReplayEvent=function(R,A){_.xo(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(R-100,0),endMs:A})};
_.l.fireEditEvent=function(R,A){_.xo(this.hostElement,"yt-transcript-segment-edit",{startMs:R,endMs:A})};
_.l.isEnterPress=function(R){return R.key==="Enter"||R.code==="Enter"||R.code==="NumpadEnter"||R.keyCode===13?!0:!1};
_.l.isControlEnterPress=function(R){var A=R.key==="Enter"||R.code==="Enter"||R.code==="NumpadEnter"||R.keyCode===13;return(R.ctrlKey||R.metaKey)&&A};
_.l.isCopyPress=function(R){var A=R.ctrlKey;return R.key==="c"&&A};
_.l.logClick=function(){var R,A=(R=this.data)==null?void 0:R.trackingParams;A&&_.K_(_.rU(),A)};
_.l.logClientVe=function(R){_.IC(_.rU(),_.NV(R))};
_.Yh.Object.defineProperties(qO.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}}});
qO.prototype.handleMouseLeave=qO.prototype.handleMouseLeave;qO.prototype.handleMouseEnter=qO.prototype.handleMouseEnter;qO.prototype.dataChanged=qO.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],qO.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],qO.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],qO.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],qO.prototype,"isEditMode",void 0);_.C([_.S(),_.k("design:type",Object)],qO.prototype,"touchCaptionsEnabled",void 0);_.C([_.S(),_.k("design:type",Object)],qO.prototype,"editedText",void 0);_.C([_.S(),_.k("design:type",Object)],qO.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.C([_.S(),_.k("design:type",Object)],qO.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.C([_.S(),_.k("design:type",String)],qO.prototype,"segmentAriaLabel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],qO.prototype,"roundedContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],qO.prototype,"mouseOver",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],qO.prototype,"textChanged",void 0);_.C([_.S(),_.k("design:type",Object)],qO.prototype,"messages",void 0);
_.C([_.nG("#suggestion"),_.k("design:type",Object)],qO.prototype,"ironTextAreaElement",void 0);_.C([_.X("data","editedText"),_.k("design:type",Object),_.k("design:paramtypes",[])],qO.prototype,"latestText",null);_.C([_.X("touchCaptionsEnabled","isEditMode"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],qO.prototype,"enableEditButton",null);
_.C([_.X("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],qO.prototype,"enableUndoButton",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qO.prototype,"dataChanged",null);_.C([_.Qa("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qO.prototype,"handleMouseEnter",null);
_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qO.prototype,"handleMouseLeave",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],qO);
_.B(qO,"ytd-transcript-segment-renderer",function(){if(WMx!==void 0)return WMx;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return WMx=R},{mode:1});var LT=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};R.isError=!1;R.darkerPanels=_.v("web_watch_darker_panels");R.useParentMaxHeight=_.v("web_watch_transscript_use_parent_max_height");R.segmentOffsets=[];R.segmentIndex=-1;return R};
_.H(LT,_.K);_.l=LT.prototype;_.l.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"}}}}};
_.l.segmentsChanged=function(){this.updateOffsets()};
_.l.onYtPlayerTimeChanged=function(R){for(var A=this.segmentIndex,Y=A;;){if(Y>=0){var P=this.segmentOffsets[Y].start;var E=this.segmentOffsets[Y].isAutoScrollable}else P=-1,E=!0;var z=R+.5;if(!E){P=Y+1<this.segmentOffsets.length?this.segmentOffsets[Y+1].start:Infinity;if(z>=P){Y+=1;continue}Y=-1;break}if(z<P)P=Y-1>=0&&this.segmentOffsets[Y-1].isAutoScrollable,E=Y===0||P?1:2,Y-=E;else if(E=Y+1<this.segmentOffsets.length&&this.segmentOffsets[Y+1].isAutoScrollable?1:2,P=Y+E<this.segmentOffsets.length?
this.segmentOffsets[Y+E].start:Infinity,z>P)Y+=E;else{if(Y<0)break;Y<this.segmentOffsets.length&&z>this.segmentOffsets[Y].end&&(Y=-1);break}}if(A!==Y){if(A>=0){var c;(c=this.getSegmentElement(A))==null||c.classList.remove("active")}this.segmentIndex=Y;if(!(Y<0)){var M;(M=this.getSegmentElement(Y))==null||M.classList.add("active");this.isHovered||this.scrollElementToTop(Y)}}};
_.l.handleSegmentEdit=function(R){R.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=R.target,_.OC(this.hostElement,"yt-transcript-player-edit",[R.detail.startMs/1E3,R.detail.endMs/1E3]))};
_.l.handleSegmentSelected=function(R){_.OC(this.hostElement,"yt-transcript-player-seek",[R.detail.startMs/1E3])};
_.l.handleSegmentReplay=function(R){_.OC(this.hostElement,"yt-transcript-player-replay",[R.detail.startMs/1E3,R.detail.endMs/1E3])};
_.l.handleSectionHeaderSelected=function(R){_.OC(this.hostElement,"yt-transcript-player-seek",[R.detail.startMs/1E3])};
_.l.onMouseEnter=function(){this.isHovered=!0};
_.l.onMouseLeave=function(){this.isHovered=!1};
_.l.onRetryButtonClick=function(){_.xo(this.hostElement,"transcript-retry-button-click")};
_.l.getSegmentElement=function(R){return _.Mo(this.hostElement).querySelector(":nth-child("+(R+1)+")")};
_.l.scrollElementToTop=function(R){R=this.getSegmentElement(R>=2?R-2:0);this.hostElement.scrollTop=Math.min(R.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.l.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(R){var A,Y=(A=R.transcriptSegmentRenderer)!=null?A:R.transcriptSectionHeaderRenderer;return{start:Number(Y.startMs)/1E3,end:Number(Y.endMs)/1E3,isAutoScrollable:R.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.l.clearHighlightedSegments=function(){var R=_.Mo(this.hostElement);R=_.x(R.querySelectorAll("ytd-transcript-segment-renderer"));for(var A=R.next();!A.done;A=R.next())A.value.classList.remove("active")};
_.Yh.Object.defineProperties(LT.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:R.searchResultSegments)||((A=this.data)==null?void 0:A.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
LT.prototype.onMouseLeave=LT.prototype.onMouseLeave;LT.prototype.onMouseEnter=LT.prototype.onMouseEnter;LT.prototype.handleSectionHeaderSelected=LT.prototype.handleSectionHeaderSelected;LT.prototype.handleSegmentReplay=LT.prototype.handleSegmentReplay;LT.prototype.handleSegmentSelected=LT.prototype.handleSegmentSelected;LT.prototype.handleSegmentEdit=LT.prototype.handleSegmentEdit;LT.prototype.segmentsChanged=LT.prototype.segmentsChanged;
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],LT.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],LT.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],LT.prototype,"isError",void 0);
_.C([_.S(),_.k("design:type",Object)],LT.prototype,"noResultLabel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],LT.prototype,"darkerPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],LT.prototype,"useParentMaxHeight",void 0);_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],LT.prototype,"segments",null);
_.C([_.X("segments","noResultLabel"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],LT.prototype,"displayNoResults",null);_.C([_.vZ("segments"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LT.prototype,"segmentsChanged",null);_.C([_.Qa("yt-transcript-segment-edit"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],LT.prototype,"handleSegmentEdit",null);
_.C([_.Qa("yt-transcript-segment-selected"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],LT.prototype,"handleSegmentSelected",null);_.C([_.Qa("yt-transcript-segment-replay"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],LT.prototype,"handleSegmentReplay",null);
_.C([_.Qa("ytd-transcript-section-header"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],LT.prototype,"handleSectionHeaderSelected",null);_.C([_.Qa("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LT.prototype,"onMouseEnter",null);_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],LT.prototype,"onMouseLeave",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],LT);
_.B(LT,"ytd-transcript-segment-list-renderer",function(){if(KMg!==void 0)return KMg;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return KMg=R},{mode:1});var dX=function(){var R=_.K.apply(this,arguments)||this;R.hideTimestamps=!!_.K1("hide-transcript-timestamps");R.isLoadingTranscripts=!1;R.darkerPanels=_.v("web_watch_darker_panels");R.isError=!1;R.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return R};
_.H(dX,_.K);_.l=dX.prototype;_.l.headerChanged=function(){var R,A;this.baseGetTranscriptsCommand=(A=_.n((R=this.data)==null?void 0:R.header,McR))==null?void 0:A.onTextChangeCommand};
_.l.bodyChanged=function(){var R=this.getBodyRenderer();R&&(R.initialSegments&&(this.initialTranscriptsRenderer=R),R.noResultLabel&&(this.noResultLabel=R.noResultLabel),R.retryLabel&&(this.retryLabel=R.retryLabel))};
_.l.detached=function(){this.clearSearchBoxText()};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.l.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"}}}};
_.l.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.l.fireSearch=function(R){var A=this;if(R){var Y=R.detail.query;if(this.baseGetTranscriptsCommand){var P;R=(P=_.n(this.baseGetTranscriptsCommand,_.b$A))==null?void 0:P.params;var E;P=_.n((E=this.data)==null?void 0:E.footer,wFx);var z;if((E=(z=_.n(P==null?void 0:P.languageMenu,iqq))==null?void 0:z.subMenuItems)&&E.length>0&&(z=E.find(function(N){return N.selected}))){var c,M;
R=(c=z.continuation)==null?void 0:(M=c.reloadContinuationData)==null?void 0:M.continuation}c=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:R,searchQuery:Y}});this.ytComponentBehavior.resolveCommand(c,{commandController:{onServerError:function(){A.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});Ijb(this.ytContinuationHandlerBehavior,function(){return Y===A.getCurrentSearchBoxText()})}}};
_.l.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.l.onRetryButtonClick=function(){this.isError=!1;var R={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:R}))};
_.l.hideTimestampsChanged=function(){_.Im("hide-transcript-timestamps",this.hideTimestamps)};
_.l.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.l.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.l.handleSignalActionCopyTranscript=function(){var R=this,A=this.getBodyRenderer();A&&(A=((A==null?void 0:A.searchResultSegments)||(A==null?void 0:A.initialSegments)||[]).map(function(Y){return _.n(Y,NZb)}).filter(function(Y){return!!Y}).map(function(Y){return{snippet:Y.snippet||{runs:[{text:""}]},
startTimeText:Y.startTimeText||{simpleText:""}}}).map(function(Y){var P=(Y.snippet.runs||[]).reduce(function(E,z){return E+z.text},"");
return R.hideTimestamps?P:Y.startTimeText.simpleText+" "+P}).join("\n"),this.copyToClipboard(A))};
_.l.copyToClipboard=function(R){navigator.clipboard&&navigator.clipboard.writeText(R)};
_.l.getCurrentSearchBoxText=function(){var R;return(R=this.searchBox)==null?void 0:R.value};
_.l.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.l.getBodyRenderer=function(){var R;return _.n((R=this.data)==null?void 0:R.body,sRc)};
_.l.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Yh.Object.defineProperties(dX.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Mo(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
dX.prototype.hideTimestampsChanged=dX.prototype.hideTimestampsChanged;dX.prototype.searchCleared=dX.prototype.searchCleared;dX.prototype.fireSearch=dX.prototype.fireSearch;dX.prototype.onReloadContinuationFinish=dX.prototype.onReloadContinuationFinish;dX.prototype.bodyChanged=dX.prototype.bodyChanged;dX.prototype.headerChanged=dX.prototype.headerChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dX.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],dX.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],dX.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],dX.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dX.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dX.prototype,"hideTimestamps",void 0);
_.C([_.S(),_.k("design:type",Object)],dX.prototype,"isLoadingTranscripts",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dX.prototype,"darkerPanels",void 0);_.C([_.S(),_.k("design:type",Object)],dX.prototype,"isError",void 0);_.C([_.vZ("data.header"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dX.prototype,"headerChanged",null);
_.C([_.Ul("data.body"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dX.prototype,"bodyChanged",null);_.C([_.Qa("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dX.prototype,"onReloadContinuationFinish",null);_.C([_.Qa("yt-transcript-search-box-search"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],dX.prototype,"fireSearch",null);
_.C([_.Qa("yt-transcript-search-box-clear"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dX.prototype,"searchCleared",null);_.C([_.vZ("hideTimestamps"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dX.prototype,"hideTimestampsChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],dX);
_.B(dX,"ytd-transcript-search-panel-renderer",function(){if(Sp$!==void 0)return Sp$;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Sp$=R},{mode:1});var Rh=function(){var R=_.K.apply(this,arguments)||this;R.player=null;R.playerPollJobId=0;return R};
_.H(Rh,_.K);_.l=Rh.prototype;_.l.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.l.onLoadReloadContinuation=function(R){_.v("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:R.target.data.continuation}}):(R={clickTrackingParams:R.target.data.clickTrackingParams,getTranscriptEndpoint:{params:R.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}}))};
_.l.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"}}}};
_.l.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.l.attached=function(){this.updatePlayerListening()};
_.l.detached=function(){this.updatePlayerListening()};
_.l.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.l.startPlayerListening=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return(A=_.EJ())?Y.yield(A.getPlayerPromise(),2):Y.return();R.player=Y.yieldResult;R.playerPollJobId=_.fn.addLowPriorityJob(function(){R.getPlayerVideoProgress()},1E3);
R.player.addEventListener("onCueRangeEnter",function(P){R.onCueRangeEnter(P)});
R.player.addEventListener("onCueRangeExit",function(P){R.onCueRangeExit(P)});
R.player.addEventListener("onStateChange",function(P){R.onPlayerStateChange(P)});
R.player.addEventListener("SEEK_TO",function(P){R.onPlayerSeek(P)});
_.XH(Y)})};
_.l.getPlayerVideoProgress=function(){var R=this;_.fn.cancelJob(this.playerPollJobId);if(this.player){var A=this.player.getCurrentTime();_.OC(this.hostElement,"yt-player-time-changed",[A])}this.playerPollJobId=_.fn.addLowPriorityJob(function(){R.getPlayerVideoProgress()},1E3)};
_.l.stopPlayerListening=function(){this.player=null;_.fn.cancelJob(this.playerPollJobId)};
_.l.onPlayerStateChange=function(R){R===2&&this.removePendingCue()};
_.l.onPlayerSeek=function(R){var A;if(A=this.pendingReplayCueId)A=this.pendingReplayCueId,A=R===(_.v("web_transcript_cue_id_killswitch")?Number(A):Number(A.split("_")[1]));A||this.removePendingCue()};
_.l.onCueRangeEnter=function(R){qAq(R)&&(this.pendingReplayCueId=R)};
_.l.onCueRangeExit=function(R){qAq(R)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.l.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.l.onYtTranscriptPlayerSeek=function(R){this.player&&this.player.seekTo(R,!0)};
_.l.onYtTranscriptPlayerReplay=function(R,A){this.player&&(this.player.addCueRange(eqE(R),R,A),this.player.seekTo(R,!0),this.player.playVideo())};
_.l.onYtTranscriptPlayerEdit=function(R,A){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(eqE(R),R,A),this.player.seekTo(R,!0))};
Rh.prototype.onLoadReloadContinuation=Rh.prototype.onLoadReloadContinuation;Rh.prototype.panelContentVisibleChanged=Rh.prototype.panelContentVisibleChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Rh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Rh.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Rh.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Rh.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Rh.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Rh.prototype,"panelContentVisible",void 0);_.C([_.vZ("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Rh.prototype,"panelContentVisibleChanged",null);
_.C([_.Qa("yt-load-reload-continuation"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],Rh.prototype,"onLoadReloadContinuation",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Rh);
_.B(Rh,"ytd-transcript-renderer",function(){if($Me!==void 0)return $Me;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $Me=R},{mode:1});var jSx;var bsq;var Ap=function(){return _.K.apply(this,arguments)||this};
_.H(Ap,_.K);Ap.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.NT(this.hostElement,[this.data.clickCommand],this.hostElement))};
Ap.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.zc)()+_.wT)+"px)"};
Ap.prototype.updateShouldHideFromBinding=function(R){this.shouldHide=R.detail.value};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ap.prototype,"rendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ap.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],Ap.prototype,"shouldHide",void 0);_.C([_.F({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Ap);
_.B(Ap,"ytd-ad-engagement-panel-banner-renderer",function(){if(bsq!==void 0)return bsq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return bsq=R},{mode:_.Nf("kevlar_poly_si_batch_j070")?1:2});var fgx;var YY=function(){var R=_.K.apply(this,arguments)||this;R.modernPanels=_.v("kevlar_watch_modern_panels");R.buttonUpdate=_.v("web_modern_buttons");R.adsSemanticText=_.v("enable_ads_web_ep_buenos_aires_and_padding_fix");return R};
_.H(YY,_.K);YY.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.C([_.S(),_.k("design:type",Object)],YY.prototype,"data",void 0);_.C([_.S({computed:"computeHideDefaultAdBadge(data)"}),_.k("design:type",Boolean)],YY.prototype,"hideDefaultAdBadge",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],YY.prototype,"modernPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],YY.prototype,"buttonUpdate",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],YY.prototype,"adsSemanticText",void 0);
_.C([_.F({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],YY);
_.B(YY,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(fgx!==void 0)return fgx;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fgx=R},{mode:1});var pOL;var PW=function(){var R=_.K.apply(this,arguments)||this;R.darkerPanels=_.v("web_watch_darker_panels");R.enableSqueezebackPanels=_.v("web_shorts_enable_squeezeback_panels");R.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");R.modernPanels=_.v("kevlar_watch_modern_panels");R.headerClickListener=function(A){R.onHeaderClick(A)};
R.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return R};
_.H(PW,_.K);_.l=PW.prototype;_.l.computeAdsInfoButton=function(){if(_.v("web_modern_buttons")){var R,A;return(A=_.n((R=this.data)==null?void 0:R.subtitleComplex,uYb))==null?void 0:A.adInfoRenderer}};
_.l.updateHeaderClickListener=function(){var R,A,Y;((R=this.data)==null?0:R.navigationEndpoint)||((A=this.data)==null?0:A.onClickCommand)||_.n((Y=this.data)==null?void 0:Y.visibilityButton,_.As)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.l.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}}}}}};
_.l.collapsedChanged=function(){var R;(R=this.data)!=null&&R.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.v("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.l.focus=function(R){var A=this;this.titleElement&&_.fn.addJob(function(){_.qz(A.titleElement,R)},0,500)};
_.l.computeTitleAriaLabel=function(R){var A=[];if(R.title){var Y,P;A.push(this.ytRendererBehavior.getSimpleString(R.title)||((Y=R.title.accessibility)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label))}R.contextualInfo&&A.push(this.ytRendererBehavior.getSimpleString(R.contextualInfo));return A.join(" ")};
_.l.onHeaderClick=function(R){this.shouldTriggerHeaderClick(R)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.NT(this.hostElement,[this.data.onClickCommand],this.hostElement)):(R=this.getVisibilityToggleButton())&&R.click())};
_.l.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var R=_.n(this.data.visibilityButton,_.RC)||_.n(this.data.visibilityButton,_.As);R&&this.ytRendererBehavior.logExplicitClick(R)}};
_.l.getVisibilityToggleButton=function(){var R=_.Mo(this.hostElement).querySelector("#visibility-button").firstElementChild;return(R==null?void 0:R.is)==="ytd-toggle-button-renderer"?R:null};
_.l.shouldTriggerHeaderClick=function(R){return!_.RP(_.Ah(R),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.l.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(R){R=_.n(R,_.ajb);this.targetId&&(R==null?void 0:R.targetId)===this.targetId&&(R=R.navigationButton)&&this.set("data.navigationButton",R)};
_.Yh.Object.defineProperties(PW.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var R;return!!(((R=this.entity)==null?0:R.isActionButtonHidden)||this.hideActionButton)}}});
PW.prototype.collapsedChanged=PW.prototype.collapsedChanged;PW.prototype.updateHeaderClickListener=PW.prototype.updateHeaderClickListener;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],PW.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],PW.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],PW.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],PW.prototype,"targetId",void 0);_.C([_.S(),_.k("design:type",Boolean)],PW.prototype,"collapsed",void 0);_.C([_.S(),_.k("design:type",Boolean)],PW.prototype,"hideActionButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],PW.prototype,"shortsPanel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],PW.prototype,"liveChatEngagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],PW.prototype,"learningChatEngagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],PW.prototype,"darkerPanels",void 0);_.C([_.nG("#title"),_.k("design:type",HTMLElement)],PW.prototype,"titleElement",void 0);_.C([_.nG("#header"),_.k("design:type",HTMLElement)],PW.prototype,"headerElement",void 0);
_.C([_.S({computed:"computeAdsInfoButton(data)"}),_.k("design:type",Object)],PW.prototype,"adsInfoButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],PW.prototype,"enableSqueezebackPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],PW.prototype,"enableAnchoredPanel",void 0);_.C([_.S({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(R,A){return _.mc(R.entities,"engagementPanelTitleHeaderEntity",A)}}),
_.k("design:type",Object)],PW.prototype,"entity",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],PW.prototype,"modernPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("targetId"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],PW.prototype,"adsSemanticText",null);_.C([_.vZ("data","data.navigationEndpoint","data.onClickCommand"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PW.prototype,"updateHeaderClickListener",null);
_.C([_.Ul("collapsed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],PW.prototype,"collapsedChanged",null);_.C([_.X("entity","hideActionButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],PW.prototype,"isActionButtonHidden",null);_.C([_.F({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],PW);
_.B(PW,"ytd-engagement-panel-title-header-renderer",function(){if(pOL!==void 0)return pOL;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return pOL=R},{mode:1});var FMg;var Ej=function(){return _.K.apply(this,arguments)||this};
_.H(Ej,_.K);Ej.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ej.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ej.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ej.prototype,"data",void 0);_.C([_.F({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Ej);
_.B(Ej,"ytd-macro-markers-info-item-renderer",function(){if(FMg!==void 0)return FMg;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return FMg=R},{mode:1});var BLx;var hdE=function(R,A,Y,P,E,z){_.KJ.call(this);var c=this;this.JSC$22726_containerElement=R;this.hostElement=A;this.supportedSyncItems=Y;this.syncEntityKey=P;this.options=E;this.renderLazyListItems=z;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;agD(this);CGe(this);this.JSC$22726_scrollAnimation=new _.ch(function(M){R.scrollTop=M});
_.gz(this,this.JSC$22726_scrollAnimation);this.addOnDisposeCallback(function(){c.exitBrowsingMode(!1);c.activeItem&&c.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.H(hdE,_.KJ);var agD=function(R){var A=_.Fq(_.is().resolve(_.PX),function(Y){return Y.entities.markersEngagementPanelSyncEntity||{}},function(Y,P){var E;
Y[R.syncEntityKey]!==P[R.syncEntityKey]&&((E=Y[R.syncEntityKey])==null?void 0:E.activeItemIndex)!==void 0&&R.updatePanelActiveItem(Y[R.syncEntityKey].activeItemIndex)});
R.unsubscribeFromTimedMarkersListSyncEntity=A;R.addOnDisposeCallback(A);o2$(R)},o2$=function(R){var A=_.is().resolve(_.PX);
A=_.hnP(A.getState(),R.syncEntityKey);(A==null?void 0:A.activeItemIndex)!==void 0&&(A=R.getItemByIndex(A.activeItemIndex))&&R.setActiveItem(A)},CGe=function(R){var A=new _.kH(R.onScroll,50,R);
_.gz(R,A);var Y=function(){A.fire()};
R.JSC$22726_containerElement.addEventListener("scroll",Y);R.addOnDisposeCallback(function(){R.JSC$22726_containerElement.removeEventListener("scroll",Y)})};
_.l=hdE.prototype;
_.l.updatePanelActiveItem=function(R){var A=this.getItemByIndex(R);if(A){if(this.setActiveItem(A),this.contentVisible)if(this.browsingMode){var Y;((Y=this.options)==null?void 0:Y.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(R=kEb(this),A.offsetTop<this.JSC$22726_containerElement.clientHeight+this.JSC$22726_containerElement.scrollTop&&R&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));GED(this)}else this.scrollToItem(A)}else _.pK(new _.XN("Could not find "+this.supportedSyncItems+
" sync child to set active.",R,this.JSC$22726_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.l.getItemByIndex=function(R){var A;(A=this.renderLazyListItems)==null||A.call(this,R);A=this.JSC$22726_containerElement.querySelectorAll(this.supportedSyncItems);if(A.length>R)return A[R]};
_.l.setActiveItem=function(R){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));R.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=R};
_.l.scrollToItem=function(R){R=this.getScrollPositionForItem(R);this.JSC$22726_containerElement.scrollTop!==R&&this.JSC$22726_scrollAnimation.start(this.JSC$22726_containerElement.scrollTop,R,300)};
_.l.getScrollPositionForItem=function(R){if(this.JSC$22726_containerElement.querySelectorAll(this.supportedSyncItems)[0]===R)return 0;var A,Y=((A=this.options)==null?0:A.percentOffset)?this.JSC$22726_containerElement.clientHeight*this.options.percentOffset:0;R=_.k2(R).y+this.JSC$22726_containerElement.scrollTop-(_.k2(this.JSC$22726_containerElement).y+Y);return Math.max(0,Math.min(R,this.JSC$22726_containerElement.scrollHeight-this.JSC$22726_containerElement.offsetHeight))};
_.l.onScroll=function(){this.activeItemBelowSyncPosition=kEb(this);if(this.activeItem&&!this.JSC$22726_scrollAnimation.isAnimating()&&Math.abs(this.JSC$22726_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var R;switch((R=this.options)==null?void 0:R.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!ZsZ(this));GED(this);break;default:this.enterBrowsingMode(!0)}}};
_.l.enterBrowsingMode=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1){if(A.browsingMode)return E.return();A.browsingMode=!0;R&&A.hostElement.classList.add("browsing-mode");A.playerExitBrowsingModeListener=function(){A.exitBrowsingMode(!1)};
return E.yield(_.VJ(),2)}Y=E.yieldResult;(P=Y)==null||P.addEventListener("SEEK_TO",A.playerExitBrowsingModeListener);_.XH(E)})};
_.l.exitBrowsingMode=function(R){R=R===void 0?!0:R;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),R&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1)return R.playerExitBrowsingModeListener?P.yield(_.VJ(),3):P.jumpTo(0);A=P.yieldResult;(Y=A)==null||Y.removeEventListener("SEEK_TO",R.playerExitBrowsingModeListener);R.playerExitBrowsingModeListener=void 0;_.XH(P)})};
var GED=function(R){var A;((A=R.options)==null?void 0:A.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(ZsZ(R)?R.hostElement.classList.remove("browsing-mode"):R.activeItem&&R.hostElement.classList.add("browsing-mode"))},kEb=function(R){if(!R.activeItem)return!1;
var A,Y=((A=R.options)==null?0:A.percentOffset)?R.JSC$22726_containerElement.clientHeight*R.options.percentOffset:0;return R.activeItem.offsetTop>=R.JSC$22726_containerElement.scrollTop+Y},ZsZ=function(R){if(!R.activeItem)return!1;
var A=R.activeItem.offsetTop+14<=R.JSC$22726_containerElement.scrollTop+R.JSC$22726_containerElement.clientHeight;return R.activeItem.offsetTop+R.activeItem.clientHeight-14>=R.JSC$22726_containerElement.scrollTop&&A};
hdE.prototype.panelContentVisibleChanged=function(R){(this.contentVisible=R)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var tpe=function(R,A){R.syncEntityKey=A;var Y;(Y=R.unsubscribeFromTimedMarkersListSyncEntity)==null||Y.call(R);agD(R)},wOx=function(R,A){R.options=A};var zw=function(){var R=_.K.apply(this,arguments)||this;R.browsingMode=!1;R.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return R};
_.H(zw,_.K);_.l=zw.prototype;_.l.activeItemChanged=function(){if(!_.v("synced_panel_scrolling_controller")){var R;((R=this.syncEntity)==null?void 0:R.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.l.created=function(){var R=this;_.v("synced_panel_scrolling_controller")||(this.JSC$22730_scrollAnimation=new _.ch(function(A){R.contents.scrollTop=A}),this.boundExitBrowsingMode=function(){R.exitBrowsingMode(!1)})};
_.l.detached=function(){if(_.v("synced_panel_scrolling_controller")){var R;(R=this.scrollController)==null||R.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.l.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"}}}};
_.l.dataChanged=function(){var R=this;_.v("synced_panel_scrolling_controller")?_.RK(this,function(){if(R.scrollController){var A;(A=R.scrollController)==null||A.exitBrowsingMode(!1);var Y,P,E;(P=R.scrollController)==null||tpe(P,(E=(Y=R.data)==null?void 0:Y.syncModelEntityKey)!=null?E:"default-macro-markers-list-renderer-entity-key");var z,c,M;(M=R.scrollController)==null||wOx(M,{percentOffset:(z=R.data)==null?void 0:z.selectedItemAlignmentPercentOffset,floatingPillType:(c=R.data)==null?void 0:c.floatingPillType})}else{var N,
y,m,T;R.scrollController=new hdE(R.contents,R.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(T=(N=R.data)==null?void 0:N.syncModelEntityKey)!=null?T:"default-macro-markers-list-renderer-entity-key",{percentOffset:(y=R.data)==null?void 0:y.selectedItemAlignmentPercentOffset,floatingPillType:(m=R.data)==null?void 0:m.floatingPillType},function(Q){R.renderLazyListItems(Q)})}R.scrollController.panelContentVisibleChanged(!!R.panelContentVisible)}):this.exitBrowsingMode()};
_.l.computeButtonShape=function(){var R=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){R.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.l.computeSyncEnabled=function(R){return!(R==null||!R.syncButtonLabel)};
_.l.renderLazyListItems=function(R){for(var A=this.contents.children,Y=0,P=0;P<A.length;P++){var E=void 0;(E=A[P].ytLazyListBehavior)==null||E.fillRemainingListItems();var z=void 0,c=void 0;E=_.n((z=this.data)==null?void 0:(c=z.contents)==null?void 0:c[P],_.O_f);c=z=void 0;if((z=E)==null?0:(c=z.contents)==null?0:c.length)Y+=E.contents.length;if(Y>=R)break}};
_.l.getItemByIndex=function(R){this.renderLazyListItems(R);var A=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(A.length>R)return A[R]};
_.l.setActiveItem=function(R){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);R.active!==void 0&&(R.active=!0);this.currentActiveItem=R};
_.l.handleSetActivePanelItemAction=function(R){if((R=_.n(R,hQb))&&this.panelTargetId===R.panelTargetId){R=R.itemIndex;if(_.v("synced_panel_scrolling_controller")){var A,Y;var P=(Y=(A=this.data)==null?void 0:A.syncModelEntityKey)!=null?Y:"default-macro-markers-list-renderer-entity-key"}else{var E;P=(E=this.data)==null?void 0:E.syncModelEntityKey}if(P){var z;((z=this.syncEntity)==null?void 0:z.activeItemIndex)!==R&&this.ytdReduxBehavior.dispatch(_.HT("markersEngagementPanelSyncEntity",P,{key:P,activeItemIndex:R}))}else this.updatePanelActiveItem(R)}};
_.l.updatePanelActiveItem=function(R){var A=this.getItemByIndex(R);A?(this.setActiveItem(A),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(A)):_.pK(new _.XN("Could not find ytd-macro-markers-list-renderer sync child to set active.",R,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.l.scrollToItem=function(R){R=this.getScrollPositionForItem(R);this.contents.scrollTop!==R&&this.JSC$22730_scrollAnimation.start(this.contents.scrollTop,R,300)};
_.l.getScrollPositionForItem=function(R){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===R)return 0;R=_.k2(R).y+this.contents.scrollTop-_.k2(this.contents).y-this.getStickyHeaderHeight(R);return Math.min(R,this.contents.scrollHeight-this.contents.offsetHeight)};
_.l.getStickyHeaderHeight=function(R){if(R.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var A,Y,P;return(P=(A=R.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(Y=A.header)==null?void 0:Y.offsetHeight)!=null?P:0}return 0};
_.l.onScroll=function(){_.v("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$22730_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.l.enterBrowsingMode=function(){var R=this;return _.O(function(A){if(A.nextAddress==1){if(R.browsingMode)return A.return();R.browsingMode=!0;return A.yield(_.zI().getPlayerPromise(),2)}R.player=A.yieldResult;R.player.addEventListener("SEEK_TO",R.boundExitBrowsingMode);_.XH(A)})};
_.l.exitBrowsingMode=function(R){this.browsingMode&&(this.browsingMode=!1,(R===void 0||R)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.l.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.l.onSyncClick=function(){if(_.v("synced_panel_scrolling_controller")){var R;(R=this.scrollController)==null||R.exitBrowsingMode()}else this.exitBrowsingMode()};
_.l.panelContentVisibleChanged=function(){if(_.v("synced_panel_scrolling_controller")){var R;(R=this.scrollController)==null||R.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
zw.prototype.panelContentVisibleChanged=zw.prototype.panelContentVisibleChanged;zw.prototype.dataChanged=zw.prototype.dataChanged;zw.prototype.activeItemChanged=zw.prototype.activeItemChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],zw.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zw.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],zw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],zw.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zw.prototype,"data",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],zw.prototype,"useCustomColors",void 0);_.C([_.S({computed:"computeSyncEnabled(data)"}),_.k("design:type",Boolean)],zw.prototype,"syncEnabled",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],zw.prototype,"panelTargetId",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],zw.prototype,"panelContentVisible",void 0);_.C([_.nG("#contents"),_.k("design:type",HTMLElement)],zw.prototype,"contents",void 0);_.C([_.nG("#sync-container"),_.k("design:type",HTMLElement)],zw.prototype,"syncContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],zw.prototype,"browsingMode",void 0);
_.C([_.S({selectorArgs:["data.syncModelEntityKey"],selector:_.hnP}),_.k("design:type",Object)],zw.prototype,"syncEntity",void 0);_.C([_.vZ("syncEntity.activeItemIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zw.prototype,"activeItemChanged",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zw.prototype,"dataChanged",null);
_.C([_.vZ("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zw.prototype,"panelContentVisibleChanged",null);_.C([_.F({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],zw);
_.B(zw,"ytd-macro-markers-list-renderer",function(){if(BLx!==void 0)return BLx;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return BLx=R},{mode:1});var ur$;var iv=function(){return _.K.apply(this,arguments)||this};
_.H(iv,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iv.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],iv.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iv.prototype,"data",void 0);_.C([_.F({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],iv);
_.B(iv,"ytd-error-corrections-section-item-renderer",function(){if(ur$!==void 0)return ur$;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ur$=R},{mode:1});var edo;var lv=function(){return _.K.apply(this,arguments)||this};
_.H(lv,_.K);lv.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],lv.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lv.prototype,"data",void 0);_.C([_.F({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],lv);
_.B(lv,"ytd-error-corrections-section-renderer",function(){if(edo!==void 0)return edo;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return edo=R},{mode:1});var qpR;var xY=function(){return _.K.apply(this,arguments)||this};
_.H(xY,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xY.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],xY.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xY.prototype,"data",void 0);_.C([_.F({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],xY);
_.B(xY,"ytd-topic-link-renderer",function(){if(qpR!==void 0)return qpR;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qpR=R},{mode:1});var LMg;var cW=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("kevlar_modern_sd_v2");R.modernLockupV2=_.v("modernize_structured_description_playlist_lockups_v2");R.modernTypography=_.v("web_modern_typography");return R};
_.H(cW,_.K);cW.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cW.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cW.prototype,"modernLockupV2",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cW.prototype,"modernTypography",void 0);_.C([_.F({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],cW);
_.B(cW,"ytd-video-description-course-section-renderer",function(){if(LMg!==void 0)return LMg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return LMg=R},{mode:1});var dMq;var Oj=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("kevlar_modern_sd_v2");R.modernTypography=_.v("web_modern_typography");return R};
_.H(Oj,_.K);Oj.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Oj.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Oj.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Oj.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Oj.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Oj.prototype,"modernTypography",void 0);
_.C([_.F({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],Oj);
_.B(Oj,"ytd-video-description-files-section-renderer",function(){if(dMq!==void 0)return dMq;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return dMq=R},{mode:1});var Roo;var M5=function(){return _.K.apply(this,arguments)||this};
_.H(M5,_.K);M5.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],M5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],M5.prototype,"data",void 0);_.C([_.F({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],M5);
_.B(M5,"ytd-video-description-gaming-section-renderer",function(){if(Roo!==void 0)return Roo;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Roo=R},{mode:1});var Alx;var sj=function(){var R=_.K.apply(this,arguments)||this;R.isExpanded=!1;return R};
_.H(sj,_.K);sj.prototype.computeHasDefaultMetadataEndpoint=function(R){var A;R=R==null?void 0:(A=R.defaultMetadata)==null?void 0:A.runs;return!(!R||R.length!==1||!R[0].navigationEndpoint)};
sj.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Yh.Object.defineProperties(sj.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sj.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sj.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],sj.prototype,"isExpanded",void 0);_.C([_.S({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],sj.prototype,"hasDefaultMetadataEndpoint",void 0);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sj.prototype,"isExpandable",null);_.C([_.X("data","isExpandable","isExpanded"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],sj.prototype,"showExpandedMetadata",null);_.C([_.F({is:"ytd-info-row-renderer",disableElementRegistration:!0})],sj);
_.B(sj,"ytd-info-row-renderer",function(){if(Alx!==void 0)return Alx;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Alx=R},{mode:1});var YU$;var N5=function(){var R=_.K.apply(this,arguments)||this;R.currentIndex=0;R.supportComponentResize=!0;R.modern=_.v("kevlar_modern_sd_v2");R.JSC$22756_lastScrollContainerWidth=NaN;return R};
_.H(N5,_.K);_.l=N5.prototype;
_.l.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"}}}};
_.l.getItemsPath=function(){return"videoLockups"};
_.l.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.l.onIronResize=function(){this.updateVideoLockupStyles()};
_.l.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.l.updateVideoLockupStyles=function(){var R;this.JSC$22756_scrollContainer!==void 0&&(R=this.videoLockups)!=null&&R.length&&(R=this.JSC$22756_scrollContainer.clientWidth,R!==this.JSC$22756_lastScrollContainerWidth&&(this.JSC$22756_lastScrollContainerWidth=R,_.ya(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(R*.8,415)+"px"}),_.xo(this.hostElement,"iron-resize")))};
_.Yh.Object.defineProperties(N5.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var R=[],A;if((A=this.data)==null||!A.carouselLockups)return R;A=_.x(this.data.carouselLockups);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0;((P=_.n(Y,mLD))==null?0:P.videoLockup)&&R.push(_.n(Y,mLD).videoLockup)}return R}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.videoLockups)==null||!R.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var R=[],A;if((A=this.data)==null||!A.carouselLockups)return R;var Y;return(Y=_.n(this.data.carouselLockups[this.scrollCount],mLD))==null?void 0:Y.infoRows}}});
N5.prototype.dataChanged=N5.prototype.dataChanged;N5.prototype.onIronResize=N5.prototype.onIronResize;N5.prototype.hiddenChanged=N5.prototype.hiddenChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],N5.prototype,"componentBehavior",void 0);_.C([_.U(_.DP.YtdHorizontalListBehavior),_.k("design:type",Object)],N5.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],N5.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],N5.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],N5.prototype,"inlineStructuredDescription",void 0);_.C([_.S({value:2}),_.k("design:type",Number)],N5.prototype,"initialCount",void 0);_.C([_.S(),_.k("design:type",Object)],N5.prototype,"currentIndex",void 0);
_.C([_.S(),_.k("design:type",Number)],N5.prototype,"scrollCount",void 0);_.C([_.S(),_.k("design:type",Object)],N5.prototype,"supportComponentResize",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],N5.prototype,"contentHidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],N5.prototype,"modern",void 0);_.C([_.nG("#scroll-container"),_.k("design:type",HTMLDivElement)],N5.prototype,"JSC$22756_scrollContainer",void 0);
_.C([_.vZ("contentHidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N5.prototype,"hiddenChanged",null);_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],N5.prototype,"videoLockups",null);_.C([_.X("videoLockups"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],N5.prototype,"hasVideoLockups",null);
_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N5.prototype,"onIronResize",null);_.C([_.X("data","scrollCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],N5.prototype,"infoRows",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],N5.prototype,"dataChanged",null);_.C([_.F({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],N5);
_.B(N5,"ytd-video-description-music-section-renderer",function(){if(YU$!==void 0)return YU$;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return YU$=R},{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var Pto;var Vx=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("kevlar_modern_sd_v2");R.modernTypography=_.v("web_modern_typography");return R};
_.H(Vx,_.K);Vx.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Vx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Vx.prototype,"ytRendererBehavior",void 0);_.C([_.S({}),_.k("design:type",Object)],Vx.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Vx.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Vx.prototype,"modernTypography",void 0);
_.C([_.F({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Vx);
_.B(Vx,"ytd-video-description-transcript-section-renderer",function(){if(Pto!==void 0)return Pto;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Pto=R},{mode:1});var Et$;_.Ow(_.E5(function(R){var A=_.vT(_.IU6,function(){return R.data().firstProviderLinkStatusEntityKey}),Y=_.vT(_.IU6,function(){return R.data().secondProviderLinkStatusEntityKey}),P=function(){var E,z;
return((E=A())==null?void 0:E.linked)||((z=Y())==null?void 0:z.linked)};
return _.V("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.V(_.NU,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return R.data().sectionTitle}}),_.V(_.NU,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return P()?R.data().connectedMessage:R.data().notConnectedMessage}}),_.V(_.J,{cond:P,
then:function(){return _.V(_.ni,{data:function(){return R.data().connectedButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.V(_.J,{cond:function(){return!P()},
then:function(){return _.V(_.ni,{data:function(){return R.data().notConnectedButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"yk"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;return _.V("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.V("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.V(_.NU,{text:function(){return A().sectionTitle}})),_.V("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.V(_.NU,{text:function(){return A().bodyHeader}})),_.V("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.V(_.NU,{text:function(){return A().bodyText}})),_.V(_.J,
{cond:function(){return A().attributionText},
then:function(){return _.V("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.V(_.NU,{text:function(){return A().attributionText}}))}}))},"zk"),"how-this-was-made-section-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){return _.V("yt-video-description-youchat-section-view-model",{class:_.To("ytVideoDescriptionYouchatSectionViewModelHost")},_.V("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.V(_.NU,{text:function(){return R.data().sectionTitle}})),_.V("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.V(_.NU,{text:function(){return R.data().subHeaderText}})),_.V("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.V(_.Is,{data:function(){return _.n(R.data().primaryButton,
_.E7)}})))},"Ak"),"yt-video-description-youchat-section-view-model",{props:{data:_.VY}});var Jp=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return R};
_.H(Jp,_.K);_.l=Jp.prototype;
_.l.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}}}}}};
_.l.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.l.dataChanged=function(){var R,A;this.hasDescriptionOnly=!(((R=this.data)==null?void 0:(A=R.items)==null?void 0:A.length)!==1||!_.n(this.data.items[0],Zb))};
_.l.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.l.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.l.autoFocusDescription=function(){var R;((R=_.is().resolve(_.z3(_.rt)))==null?0:R.isKeyBoardInUse())&&this.description&&_.Ln(this.description)};
_.l.resize=function(){if(_.v("kevlar_disable_sd_resize"))this.JSC$22765_cardList&&_.xo(this.JSC$22765_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.xo(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.xo(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.l.scrollToSection=function(R){if(R=this.getSectionElement(R))_.OC(this.hostElement,"yt-scroll-to-watch-element",[R]),R.focus()};
_.l.getSectionElement=function(R){switch(R){case "infocards-item-section":var A;return(A=this.infocardsSection)!=null?A:null;case "transcript-item-section":var Y;return(Y=this.transcriptSection)!=null?Y:null;case "how-this-was-made-section-item-section":var P;return(P=this.howThisWasMadeSection)!=null?P:null;case "files-item-section":var E;return(E=this.filesSection)!=null?E:null;default:return null}};
_.l.handleSetActiveItemAction=function(R){var A=_.n(R,hQb),Y=A&&(A==null?void 0:A.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$22765_cardList;if(A&&Y){R=this.currentActiveChapter;var P=this.currentActiveProblem;A=Y==null?void 0:Y.getItemByIndex(A.itemIndex);var E=Y=!0;A&&(A.active=!0,A.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(Y=R!==A,E=!1,this.currentActiveChapter=A):(A==null?void 0:A.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(Y=!1,E=P!==A,this.currentActiveProblem=A));R&&Y&&(R.active=!1);P&&E&&(P.active=!1)}};
_.Yh.Object.defineProperties(Jp.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.v("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
Jp.prototype.onYtExpanderMoreTapped=Jp.prototype.onYtExpanderMoreTapped;Jp.prototype.onHiddenChanged=Jp.prototype.onHiddenChanged;Jp.prototype.dataChanged=Jp.prototype.dataChanged;Jp.prototype.panelContentVisibleChanged=Jp.prototype.panelContentVisibleChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Jp.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Jp.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Jp.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],Jp.prototype,"ironResizableBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Jp.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],Jp.prototype,"panelContentVisible",void 0);_.C([_.S(),_.k("design:type",Boolean)],Jp.prototype,"hasDescriptionOnly",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jp.prototype,"inlineStructuredDescription",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jp.prototype,"hidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jp.prototype,"shortsPanel",void 0);_.C([_.S(),_.k("design:type",Object)],Jp.prototype,"videoSummary",void 0);_.C([_.S(),_.k("design:type",Object)],Jp.prototype,"merchShelf",void 0);
_.C([_.X("videoSummary"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Jp.prototype,"showVideoSummary",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jp.prototype,"engagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Jp.prototype,"watchWhileSdp",void 0);_.C([_.nG("ytd-expandable-video-description-body-renderer"),_.k("design:type",Object)],Jp.prototype,"description",void 0);
_.C([_.nG("ytd-horizontal-card-list-renderer"),_.k("design:type",Object)],Jp.prototype,"JSC$22765_cardList",void 0);_.C([_.nG("ytd-horizontal-card-list-renderer[center-items]"),_.k("design:type",Object)],Jp.prototype,"problemWalkthroughCardList",void 0);_.C([_.nG("ytd-shelf-renderer"),_.k("design:type",Object)],Jp.prototype,"shelfSection",void 0);_.C([_.nG("ytd-video-description-music-section-renderer"),_.k("design:type",Object)],Jp.prototype,"musicMetadataSection",void 0);
_.C([_.nG("ytd-video-description-infocards-section-renderer"),_.k("design:type",Object)],Jp.prototype,"infocardsSection",void 0);_.C([_.nG("ytd-video-description-transcript-section-renderer"),_.k("design:type",Object)],Jp.prototype,"transcriptSection",void 0);_.C([_.nG("how-this-was-made-section-view-model"),_.k("design:type",Object)],Jp.prototype,"howThisWasMadeSection",void 0);_.C([_.nG("ytd-video-description-files-section-renderer"),_.k("design:type",Object)],Jp.prototype,"filesSection",void 0);
_.C([_.vZ("panelContentVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jp.prototype,"panelContentVisibleChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jp.prototype,"dataChanged",null);_.C([_.vZ("hidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jp.prototype,"onHiddenChanged",null);
_.C([_.Qa("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jp.prototype,"onYtExpanderMoreTapped",null);_.C([_.F({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],Jp);
_.B(Jp,"ytd-structured-description-content-renderer",function(){if(Et$!==void 0)return Et$;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Et$=R},{mode:2});var zoc;var iJR;var yx=function(){return _.K.apply(this,arguments)||this};
_.H(yx,_.K);yx.prototype.computeAriaLabel=function(R){var A,Y;return(R==null?void 0:(A=R.accessibility)==null?void 0:(Y=A.accessibilityData)==null?void 0:Y.label)||_.vk("LOADING",void 0,"Loading")};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yx.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yx.prototype,"data",void 0);_.C([_.S({computed:"computeAriaLabel(data)"}),_.k("design:type",String)],yx.prototype,"ariaLabel",void 0);_.C([_.CG({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],yx);
_.B(yx,"yt-content-loading-renderer",function(){if(iJR===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;zoc===void 0&&(zoc=document.createElement("template"));var P=zoc;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);iJR=R}R=iJR;return R},{mode:_.Nf("kevlar_poly_si_batch_j043")?1:2});_.Ow(_.E5(function(R){var A=_.x(_.yy(!1,void 0,"OZMtVb")),Y=A.next().value,P=A.next().value;A=_.x(_.yy(!1,void 0,"qWERsf"));var E=A.next().value,z=A.next().value;_.jO(function(){var N=_.n(R.data().collaboratePlaylistCollaborationSetting,lEe);N&&P(N.switchedOnByDefault);var y=_.n(R.data().allowNewCollaboratorsPlaylistCollaborationSetting,lEe);y&&z(y.switchedOnByDefault);if(!N&&!y||!N&&R.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")P(!0),z(!0)});
var c=function(N){P(N);z(N);var y=R.data().playlistCollaborationEntityKey||"";var m=_.RZ().getState();(m=_.mc(m.entities,"playlistCollaborationEntity",y))&&(m==null?void 0:m.isCollaborative)===N||_.RZ().dispatch(_.HT("playlistCollaborationEntity",y,Object.assign({},m,{isCollaborative:N})))},M=function(N){z(N)};
return _.V("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.V("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.V(_.ni,{data:function(){return R.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(N){return _.V(_.vKN,{data:N.data,
onSwitch:c})}})),_.V(_.J,{cond:Y,
then:function(){return _.V(_.lI,null,_.V("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.V(_.ni,{data:function(){return R.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(N){return _.V(_.vKN,{data:N.data,
onSwitch:M,overrideDisabled:!1})}})),_.V(_.J,{cond:E,
then:function(){return _.V("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.V(_.ni,{data:function(){return R.data().copyLinkButton}},{buttonViewModel:_.Is}))}}),_.V("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.V(_.ni,{data:function(){return R.data().playlistCollaborators}},{contentListItemViewModel:_.xZN})))}}))},"Bk"),"playlist-collaboration-view-model",{props:{data:_.VY}});var leo=_.E5(function(R){var A=R.data;var Y=R.customCommandResolver;return _.V(_.lI,null,_.V("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.V(_.ni,{data:function(){return A().adAvatar}},{adAvatarViewModel:function(P){return _.V(_.A37,{data:P.data,
customCommandResolver:Y})}})),_.V("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.V(_.J,{cond:function(){return A().headline},
then:function(P){return _.V(_.NU,{text:P,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.V("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.V(_.ni,{data:function(){return A().adBadge}},{adBadgeViewModel:function(P){return _.V(_.$E,{data:P.data,
hasDot:function(){return A().primaryDetailsLine!==void 0},
customCommandResolver:Y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.V(_.ni,{data:function(){return A().primaryDetailsLine}},{adDetailsLineViewModel:function(P){return _.V(_.X0,{data:P.data,
customCommandResolver:Y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"Ck"),x_R=_.E5(function(R){var A=R.data;
var Y=R.customCommandResolver;return _.V("ad-avatar-lockup-view-model",{class:function(){var P;return((P=A().interaction)==null?0:P.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.zo(_.zR({visibilityCallback:function(P){var E,z=(E=A().interaction)==null?void 0:E.onFirstVisible;P&&z&&_.Zc(z)},
showOption:_.vo}),_.aP(function(){return A().interaction},Y)),
"aria-label":function(){var P,E;return(P=A().interaction)==null?void 0:(E=P.accessibility)==null?void 0:E.label}},_.V(_.SO,null,_.V(_.$W,{when:function(){return A().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.V(leo,{data:A,
customCommandResolver:Y})}),_.V(_.Xc,null,function(){return null})))},"Dk");_.Ow(_.E5(function(R){var A=R.data;var Y=R.panelContentVisibility;R=_.zR({visibilityCallback:function(z){var c,M=(c=A().interaction)==null?void 0:c.onFirstVisible;z&&M&&_.Zc(M)},
showOption:_.vo});var P=_.aP(function(){return A().interaction},LSE);
_.FF(function(){var z,c;if(c=_.Zr("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var M;c=(M=c())==null?void 0:M.onLayoutVisibleCallback}else c=null;(z=c)==null||z()});
var E=function(){return Y()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.V("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.zo(R,P)},_.V("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.V("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.V(_.J,{cond:_.mxk("(min-width: "+((0,_.zc)()+_.wT)+"px) or (max-width: 600px)"),then:function(){return _.V(_.ni,{data:function(){return A().adImage}},{adImageViewModel:function(z){return _.V(_.b0,{data:z.data,
targetHeight:80,customCommandResolver:LSE})}})}})),_.V("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.V("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.V(_.ni,{data:function(){return A().adAvatarLockup}},{adAvatarLockupViewModel:function(z){return _.V(x_R,{data:z.data,
customCommandResolver:LSE})}})),_.V(_.J,{cond:E,
then:function(){return _.V(_.ni,{data:function(){return A().adButton}},{adButtonViewModel:function(z){return _.V(_.nS,{data:z.data,
customCommandResolver:LSE})}})},
else:function(){return _.V(_.ni,{data:function(){return A().menu}},{buttonViewModel:_.Is})}}),_.V("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.V(_.ni,{data:function(){var z=_.n(A().toggleButton,_.iS);
return{toggleButtonViewModel:Object.assign({},z,{isTogglingDisabled:!0,isToggled:E()})}}},{toggleButtonViewModel:_.uF})))))},"Ek"),"panel-ad-header-image-lockup-view-model",{props:{data:_.VY,
panelContentVisibility:_.VY}});_.Ow(_.E5(function(R){var A=function(){return _.n(R.data().inputComposerViewModel,xLq)},Y=function(){var r;
return((r=A())==null?void 0:r.youchatPendingResponseEntityKey)||""},P=_.vT(_.X7m,Y),E=function(){var r;
return!((r=P())==null||!r.isPendingResponse)},z=_.x(_.yy(!0,void 0,"UmKX1e")),c=z.next().value,M=z.next().value,N=function(){return A().sectionTargetId||"youchat_messages_section"};
z=_.d5("yt-chat-input-view-model");var y=_.LK("textarea"),m=_.vT(C8e,"chat_input_view_model_state"),T=hqf(),Q=function(){var r;return!((r=m())==null||!r.value)};
_.jO(function(){var r;if(!Q()&&((r=A())==null?0:r.welcomeFeatureContinuation)){var I;((I=A())==null?0:I.setPendingResponseOnWelcome)&&_.SBn(Y())(!0);r={continuationCommand:{token:A().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var b;I=String(Math.floor(((b=_.J4())==null?void 0:b.getCurrentTime())||0)*1E3);b={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:I}};_.oZ(r,{form:{formData:b}});T(!0)}var p=N(),h;(h=_.is().resolve(_.z3(_.om)))==null||
h.addEventListener("yt-navigate-start",function(){_.g0.remove(p);T(!1)},{once:!0})});
var g=function(){var r=y.value.value;y.value.value="";dGq(y.value);var I,b=((I=A())==null?void 0:I.enableGradientColorBg)||!1;I=RQc(N(),r,b);_.oZ(I);var p=_.SBn(Y()),h;_.Zc(((h=A())==null?void 0:h.onSubmitCommand)||{});p(!0);var L;h=String(Math.floor(((L=_.J4())==null?void 0:L.getCurrentTime())||0)*1E3);var Z;L={continuationCommand:{token:(Z=A())==null?void 0:Z.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};r={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:r,
playerOffsetMs:h}};_.oZ(L,{form:{formData:r},commandController:{onSuccess:function(){p(!1)},
onServerError:function(){var w=N();_.oZ({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:w}}]}}});p(!1)}}})};
return _.V("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:z},_.V("div",{class:"chatInputViewModelChatInputWrapper"},_.V("form",{class:"chatInputViewModelChatInputForm"},_.V("textarea",{class:"chatInputViewModelChatInput",el:y,"on:keydown":_.Qi(function(r){var I=E()||!1;dGq(y.value);I||r.key!=="Enter"||r.shiftKey||(r.preventDefault(),g());return!1}),
"on:keyup":_.Qi(function(){M(y.value.value.length===0);return!1}),
placeholder:function(){var r,I;var b=_.n((I=A())==null?void 0:I.inputFormField,Boq);return b==null?void 0:(r=b.contentProperties)==null?void 0:r.placeholderText},
rows:1}),_.V(_.Is,{data:function(){return _.n(R.data().sendButton,_.E7)},
onClick:function(r){r.preventDefault();g();M(y.value.value.length===0)},
buttonOverrides:function(){return{disabled:c()||E()}}})),_.V(_.NU,{className:"chatInputViewModelChatDisclaimer",
text:function(){var r;return(r=_.n(R.data().disclaimer,_.MmA))==null?void 0:r.text}})))},"Fk"),"yt-chat-input-view-model",{props:{data:_.VY}});var cl$=["engagement-panel-clip-create","engagement-panel-clip-view"],OJD=0,mG=function(){var R=_.K.apply(this,arguments)||this;var A;R.headerData=(A=R.data)==null?void 0:A.header;R.darkerPanels=_.v("web_watch_darker_panels");R.matchContentTheme=_.v("web_watch_panel_content_match_theme");R.disableAutoFill=!1;R.isFullscreen=!1;R.isTheaterMode=!1;R.modernPanels=_.v("kevlar_watch_modern_panels");R.liveChatReplyPanel=!1;R.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");R.disableBackdropFilter=
_.v("web_disable_backdrop_filter");R.trackEngagementPanelVisibility=_.v("web_watch_track_engagement_panel_visibility");R.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 R};
_.H(mG,_.K);_.l=mG.prototype;
_.l.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]",learningChatEngagementPanel:"[[learningChatEngagementPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},
"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(R){var A;return(R==null?void 0:(A=R.webComponentHint)==null?void 0:A.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.l.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var R;if((R=this.hostElement.parentElement)==null?0:R.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.l.detached=function(){this.updateTheaterDisablement()};
_.l.showPanel=function(){var R=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.fn.addJob(function(){R.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.l.maybeScrollToItemSection=function(R){var A=this,Y,P=R==null?void 0:(Y=R.sectionListEngagementPanelExtras)==null?void 0:Y.scrollToItemSectionIdentifier;P&&_.fn.addJob(function(){var E;(E=A.sectionListRendererElement)==null||E.scrollToItemSection(P)},8)};
_.l.hidePanel=function(){var R=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.fn.addJob(function(){R.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.l.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.l.updatePanel=function(R,A,Y,P){var E=this;if((R=R==null?void 0:R.engagementPanelSectionListRenderer)||P){if(R){P=R.header;var z=R.content,c=R.footer;(R=R.targetId)&&this.set("data.targetId",R);P&&this.set("data.header",P);z&&this.set("data.content",z);c&&this.set("data.footer",c)}else P&&(R=P.content,z=P.secondaryHeaderContent,(P=P.targetId)&&this.set("data.targetId",P),R&&this.set("data.content",R),z&&(this.secondaryHeaderData=z));this.updateChildVisibilityProperties();if(A){var M;_.v("kevlar_update_panel_focus_scroll_killswitch")||
(M={preventScroll:!0});this.focus(M)}_.RK(this,function(){_.xo(E.hostElement,"yt-refit");E.maybeScrollToItemSection(Y)})}};
_.l.computeHeaderData=function(){var R,A=(0,_.BO.unsafeClone)((R=this.data)==null?void 0:R.header);if(A){R=new _.lU(Object.keys(A)[0]);var Y=_.n(A,R),P=_.n(this.secondaryHeaderData,R);P&&_.pC(A,R,Object.assign({},P,Y))}return A};
_.l.getReloadContinuation=function(){var R,A,Y,P=_.x(((R=this.data)==null?void 0:(A=R.content)==null?void 0:(Y=A.sectionListRenderer)==null?void 0:Y.continuations)||[]);for(R=P.next();!R.done;R=P.next())if(R=R.value,R.reloadContinuationData)return R.reloadContinuationData.continuation};
_.l.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var R;((R=this.data)==null?0:R.targetId)&&(R=this.contentElement.firstElementChild)&&R.setAttribute("panel-target-id",this.data.targetId)};
_.l.forwardPopupClosedToFlowRootRenderer=function(){var R=_.Mo(this.hostElement).querySelector("ytd-flow-root-renderer");if(R)R.onPopupClosed()};
_.l.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var R;if(!cl$.includes((R=this.theaterDisablementPanelIdentifier)!=null?R:""))if(R=_.v("web_watch_imax_theater_mode")&&this.isTheaterMode,R=_.v("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||R,_.v("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||R){var A;this.visibility=(A=this.data)==null?void 0:A.visibility;var Y;this.trackEngagementPanelVisibility&&((Y=this.data)==null?void 0:Y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var P,E,z,c;this.contentEmpty=!!(((P=this.data)==null?0:(E=P.content)==null?0:E.structuredDescriptionContentRenderer)&&Object.keys((z=this.data)==null?void 0:(c=z.content)==null?void 0:
c.structuredDescriptionContentRenderer).length===0);(A=_.is().resolve(_.tC))&&A.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.l.isTheaterModeChanged=function(){_.v("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.l.isFullscreenChanged=function(){_.v("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.l.focus=function(R){if(this.header)this.header.focus(R);else{var A;(A=_.Mo(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||A.focus(R)}};
_.l.visibilityChanged=function(){if(!_.v("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var R=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",A=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Y=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",P=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",E=P||!this.lastVisibility,z,c,M,N=((z=this.data)==null?void 0:(c=z.identifier)==null?void 0:
c.tag)||((M=this.data)==null?void 0:M.panelIdentifier);if(R&&E){var y;((y=this.data)==null?0:y.onShowCommands)&&_.NT(this.hostElement,this.data.onShowCommands,this.hostElement);N&&_.Yp().dispatch(_.cK({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:N}}))}else if(A&&Y){var m;((m=this.data)==null?0:m.onHideCommands)&&_.NT(this.hostElement,this.data.onHideCommands,this.hostElement);N&&_.Yp().dispatch(_.cK({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:N}}))}R&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*OJD++));_.v("kevlar_watch_focus_on_engagement_panels")&&R&&P&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.l.notifyVisibilityChanged=function(R){var A;_.MT(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,R,(A=this.data)==null?void 0:A.targetId])};
_.l.updateTheaterDisablement=function(){if(!_.v("kevlar_watch_theater_disablement_killswitch")){var R=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&cl$.includes(R)&&!_.v("watch_next_grid_ignore_disallowed_panels")){var A=_.pY(_.Yp().getState()),Y=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";R!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():Y?(this.originalTheaterState===void 0&&(this.originalTheaterState=A,this.theaterDisablementPanelIdentifier=
R),A&&_.OC(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.l.clearTheaterDisablement=function(){_.OC(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.l.updateChildVisibilityProperties=function(){this.hostElement||_.v("kevlar_panel_property_init_killswitch")||this._enableProperties();var R=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=R);var A,Y=(A=this.headerElement)==null?void 0:A.firstElementChild;if(Y&&!this.adHeaderImageLockupViewModel){A=R==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";Y.collapsed=A;Y=_.Mo(Y).querySelector("#visibility-button");if(!Y)return;(Y=Y.firstElementChild)&&
Y.polymerController.is==="ytd-toggle-button-renderer"&&Y.polymerController.data.isToggled!==A&&Y.polymerController.set("data.isToggled",A)}var P;if(A=(P=this.contentElement)==null?void 0:P.firstElementChild)if(R&&R!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")A.removeAttribute("panel-content-visible");else{A.setAttribute("panel-content-visible","");var E;(E=A.markDirty)==null||E.call(A)}};
_.l.onYtChangeEngagementPanelVisibilityAction=function(R){var A=this,Y,P=(Y=this.data)==null?void 0:Y.targetId,E,z,c;Y=((E=this.data)==null?void 0:(z=E.identifier)==null?void 0:z.tag)||((c=this.data)==null?void 0:c.panelIdentifier);var M=_.n(R,_.hMG),N;R=P&&(M==null?void 0:M.targetId)===P||Y&&(M==null?void 0:(N=M.panelIdentifier)==null?void 0:N.tag)===Y;this.dialog&&R&&(M==null?void 0:M.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(P==="engagement-panel-comments-section"?_.OC(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.OC(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",Y]));!_.v("kevlar_use_engagement_panel_management_component")&&R&&(P=M.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!P?_.fn.addJob(function(){A.visibility=M.visibility},2,this.hideDelayMs):this.visibility=M.visibility,M.visibility&&this.notifyVisibilityChanged(M.visibility))};
_.l.onYtScrollToEngagementPanelCommand=function(R){var A,Y=(A=this.data)==null?void 0:A.targetId,P,E,z;A=((P=this.data)==null?void 0:(E=P.identifier)==null?void 0:E.tag)||((z=this.data)==null?void 0:z.panelIdentifier);R=_.n(R,_.RuD);var c;(Y&&(R==null?void 0:R.targetId)===Y||A&&(R==null?void 0:(c=R.panelIdentifier)==null?void 0:c.tag)===A)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.OC(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.l.attachVEs=function(R){var A,Y;(R==null?0:(A=R.content)==null?0:(Y=A.productListRenderer)==null?0:Y.trackingParams)&&_.rU().graftServerVe(R.content.productListRenderer.trackingParams);var P,E;(R==null?0:(P=R.content)==null?0:(E=P.transcriptRenderer)==null?0:E.trackingParams)&&_.rU().graftServerVe(R.content.transcriptRenderer.trackingParams)};
_.l.onYtUpdateEngagementPanelAction=function(R){var A,Y=(A=this.data)==null?void 0:A.targetId;R=_.n(R,k0$);Y&&(R==null?void 0:R.targetId)===Y&&(this.updatePanel({engagementPanelSectionListRenderer:{header:R==null?void 0:R.header,content:R==null?void 0:R.content}},!1),this.attachVEs(R))};
_.l.onYtShowEngagementPanelScrimAction=function(R){var A,Y=(A=this.data)==null?void 0:A.targetId;R=_.n(R,onZ);Y&&(R==null?void 0:R.engagementPanelTargetId)===Y&&(this.scrimmed=!0)};
_.l.onYtHideEngagementPanelScrimAction=function(R){var A,Y=(A=this.data)==null?void 0:A.targetId;R=_.n(R,Cie);Y&&(R==null?void 0:R.engagementPanelTargetId)===Y&&(this.scrimmed=!1)};
_.l.getIdentifier=function(){var R,A,Y;return((R=this.data)==null?void 0:R.panelIdentifier)||((A=this.data)==null?void 0:(Y=A.identifier)==null?void 0:Y.tag)};
_.l.getSurface=function(){var R,A;return(R=this.data)==null?void 0:(A=R.identifier)==null?void 0:A.surface};
_.Yh.Object.defineProperties(mG.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var R=this.getIdentifier();return R==="engagement-panel-youchat"||R==="PAyouchat"}}});
mG.prototype.visibilityChanged=mG.prototype.visibilityChanged;mG.prototype.isFullscreenChanged=mG.prototype.isFullscreenChanged;mG.prototype.isTheaterModeChanged=mG.prototype.isTheaterModeChanged;mG.prototype.dataChanged=mG.prototype.dataChanged;mG.prototype.forwardPopupClosedToFlowRootRenderer=mG.prototype.forwardPopupClosedToFlowRootRenderer;mG.prototype.onYtRendererstamperFinished=mG.prototype.onYtRendererstamperFinished;
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],mG.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],mG.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],mG.prototype,"ytEventForwardingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mG.prototype,"data",void 0);
_.C([_.S({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.k("design:type",Object)],mG.prototype,"headerData",void 0);_.C([_.S(),_.k("design:type",Object)],mG.prototype,"secondaryHeaderData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"visibility",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"contentEmpty",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"scrimmed",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"dialog",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"dropdown",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"darkerPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"matchContentTheme",void 0);_.C([_.S(),_.k("design:type",Object)],mG.prototype,"disableAutoFill",void 0);
_.C([_.S({reflectToAttribute:!0,value:_.v("optimal_reading_width_comments_ep")}),_.k("design:type",Boolean)],mG.prototype,"optimalReadingWidthComments",void 0);_.C([_.S(),_.k("design:type",Number)],mG.prototype,"hideDelayMs",void 0);_.C([_.S({selector:_.FW,reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"isFullscreen",void 0);_.C([_.S({selector:_.pY,reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"isTheaterMode",void 0);
_.C([_.S(),_.k("design:type",Number)],mG.prototype,"showDelayMs",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.targetId"),_.k("design:type",Object),_.k("design:paramtypes",[])],mG.prototype,"targetId",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],mG.prototype,"webSize",null);_.C([_.S(),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],mG.prototype,"hideFooterBorder",null);
_.C([_.S(),_.k("design:type",Object)],mG.prototype,"isWatch",void 0);_.C([_.S(),_.k("design:type",Object)],mG.prototype,"originalTheaterState",void 0);_.C([_.S(),_.k("design:type",Object)],mG.prototype,"theaterDisablementPanelIdentifier",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"modernPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"isWatchWhilePanel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"shortsPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"liveChatEngagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],mG.prototype,"learningChatEngagementPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"liveChatReplyPanel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"enableAnchoredPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mG.prototype,"disableBackdropFilter",void 0);_.C([_.S(),_.k("design:type",Object)],mG.prototype,"trackEngagementPanelVisibility",void 0);_.C([_.nG("#header"),_.k("design:type",HTMLElement)],mG.prototype,"headerElement",void 0);_.C([_.nG("#header > *"),_.k("design:type",HTMLElement)],mG.prototype,"header",void 0);
_.C([_.nG("ytd-section-list-renderer"),_.k("design:type",Object)],mG.prototype,"sectionListRendererElement",void 0);_.C([_.nG("panel-ad-header-image-lockup-view-model"),_.k("design:type",HTMLElement)],mG.prototype,"adHeaderImageLockupViewModel",void 0);_.C([_.nG("#content"),_.k("design:type",HTMLElement)],mG.prototype,"contentElement",void 0);
_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mG.prototype,"onYtRendererstamperFinished",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mG.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.C([_.Ul("data","isFullscreen","isTheaterMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mG.prototype,"dataChanged",null);
_.C([_.vZ("isTheaterMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mG.prototype,"isTheaterModeChanged",null);_.C([_.vZ("isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mG.prototype,"isFullscreenChanged",null);_.C([_.vZ("visibility"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mG.prototype,"visibilityChanged",null);
_.C([_.F({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],mG);
_.B(mG,"ytd-engagement-panel-section-list-renderer",function(){if(jSx!==void 0)return jSx;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return jSx=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var MK$;var Tw=function(){var R=_.K.apply(this,arguments)||this;R.lastRenderedPanelIds=new Set;R.visiblePanels=[];R.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return R};
_.H(Tw,_.K);_.l=Tw.prototype;_.l.dataChanged=function(){if(this.data){for(var R=[],A=_.x(this.data),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0,E=void 0,z=(P=Y)==null?void 0:(E=P.engagementPanelSectionListRenderer)==null?void 0:E.visibility;E=P=void 0;((P=Y)==null?0:(E=P.engagementPanelSectionListRenderer)==null?0:E.targetId)&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&R.push(Y)}this.visiblePanels=R}else this.visiblePanels=[]};
_.l.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}}};
_.l.withoutVisiblePanelById=function(R){return this.visiblePanels.filter(function(A){var Y;return((Y=A.engagementPanelSectionListRenderer)==null?void 0:Y.targetId)!==R})};
_.l.onYtChangeEngagementPanelVisibilityAction=function(R){var A=this,Y=_.n(R,_.hMG);if(this.data&&(Y==null?0:Y.targetId)&&(Y==null?0:Y.visibility)){var P,E=(P=this.data.find(function(c){var M;return((M=c.engagementPanelSectionListRenderer)==null?void 0:M.targetId)===Y.targetId}))==null?void 0:P.engagementPanelSectionListRenderer;
if(E){var z=this.withoutVisiblePanelById(Y.targetId);Y.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(R=this.data.find(function(c){var M;return((M=c.engagementPanelSectionListRenderer)==null?void 0:M.targetId)===Y.targetId}))&&(z=[R].concat(_.py(z)));
this.hideDelayMs&&Y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&z.length===0?_.fn.addJob(function(){E.visibility=Y.visibility;A.visiblePanels=z},10,this.hideDelayMs):(E.visibility=Y.visibility,this.visiblePanels=z);
_.MT(this.hostElement,"yt-engagement-panels-visible-changed",[z])}}};
_.l.onRendererstamperFinished=function(){var R=new Set(this.visiblePanels.map(function(A){var Y;return(Y=A.engagementPanelSectionListRenderer)==null?void 0:Y.targetId}));
this.handlePanelVisibilityChange(R,this.lastRenderedPanelIds);this.lastRenderedPanelIds=R};
_.l.handlePanelVisibilityChange=function(R,A){R=R===void 0?new Set:R;A=A===void 0?new Set:A;if(this.data)for(var Y=_.x(this.data),P=Y.next();!P.done;P=Y.next()){P=P.value;var E=void 0,z=void 0,c=(E=P)==null?void 0:(z=E.engagementPanelSectionListRenderer)==null?void 0:z.targetId;if(c&&(E=A.has(c),z=R.has(c),c=void 0,!E&&z?(z=E=void 0,c=(E=P)==null?void 0:(z=E.engagementPanelSectionListRenderer)==null?void 0:z.onShowCommands):E&&!z&&(z=E=void 0,c=(E=P)==null?void 0:(z=E.engagementPanelSectionListRenderer)==
null?void 0:z.onHideCommands),c))for(P=_.x(c),c=P.next();!c.done;c=P.next())this.ytComponentBehavior.resolveCommand(c.value)}};
Tw.prototype.onRendererstamperFinished=Tw.prototype.onRendererstamperFinished;Tw.prototype.dataChanged=Tw.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Tw.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Tw.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Tw.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Tw.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Tw.prototype,"lastRenderedPanelIds",void 0);_.C([_.S(),_.k("design:type",Number)],Tw.prototype,"hideDelayMs",void 0);_.C([_.S(),_.k("design:type",Array)],Tw.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Array)],Tw.prototype,"visiblePanels",void 0);_.C([_.S(),_.k("design:type",Boolean)],Tw.prototype,"isWatchWhilePanel",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tw.prototype,"dataChanged",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Tw.prototype,"onRendererstamperFinished",null);_.C([_.F({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],Tw);
_.B(Tw,"ytd-watch-engagement-panels",function(){if(MK$!==void 0)return MK$;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return MK$=R},{mode:1});var sXg;var Qx=function(){return _.K.apply(this,arguments)||this};
_.H(Qx,_.K);Qx.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.zO(_.Mo(this.hostElement).querySelector("#text"),_.$Gz(_.IzN,this.data.companionLegalText))};
Qx.prototype.computeAutoScrollEnabled=function(R,A){return R&&!A};
Qx.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
Qx.prototype.onToggleTap=function(){this.expanded=!this.expanded};
Qx.prototype.expandedChanged=Qx.prototype.expandedChanged;Qx.prototype.dataChanged=Qx.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qx.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.w7o),_.k("design:type",Object)],Qx.prototype,"ytdAutoScrollBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qx.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Qx.prototype,"expanded",void 0);
_.C([_.S({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.k("design:type",Boolean)],Qx.prototype,"autoScrollEnabled",void 0);_.C([_.S(),_.k("design:type",String)],Qx.prototype,"expanderIcon",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qx.prototype,"dataChanged",null);
_.C([_.vZ("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qx.prototype,"expandedChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],Qx);
_.B(Qx,"ytd-companion-legal-text-renderer",function(){if(sXg!==void 0)return sXg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return sXg=R},{mode:1});var NzZ;var vW=function(){var R=_.K.apply(this,arguments)||this;R.buttonUpdate=_.v("web_modern_buttons");R.kevlarWatchGrid=_.v("kevlar_watch_grid");R.centerAlignDescription=_.v("action_companion_center_align_description");R.truncateDomain=_.v("action_companion_truncate_domain");return R};
_.H(vW,_.K);_.l=vW.prototype;_.l.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.l.getOnLayoutVisibleCallback=function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
_.l.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",vW.JSC$22811_DEFAULT_AD_BADGE_RENDERER);var R=this.getOnLayoutVisibleCallback();R&&R()}};
_.l.getButtonRenderer=function(R){return R.actionButton&&_.n(R.actionButton,_.RC)?(delete _.n(R.actionButton,_.RC).navigationEndpoint,_.n(R.actionButton,_.RC)):{}};
_.l.onClick=function(R){var A=this;if((!_.v("web_modern_buttons")||!_.RP(_.Ah(R),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){R=_.EJ();var Y=this.getLayoutId();R&&Y&&_.v("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?R.getPlayerPromise().then(function(P){(new _.Zq(P)).executeCommand(A.data.navigationEndpoint,Y)}):_.v("kevlar_companion_resolve_command_killswitch")?_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.OC(this.hostElement,"yt-companion-ad-clicked",["action-companion",Y])}};
_.Yh.Object.defineProperties(vW.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?0:(A=R.detailsLine)==null?0:(Y=A.adRating)==null?0:Y.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 R,A,Y,P;return((R=this.data)==null?0:(A=R.detailsLine)==null?0:(Y=A.adRating)==null?0:(P=Y.ratingIcon)==null?0:P.iconType)?_.m0(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;return((R=this.data)==null?0:(A=R.detailsLine)==null?0:(Y=A.texts)==null?0:(P=Y[0])==null?0:P.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 R,A;return((R=this.data)==null?0:(A=R.description)==null?0:A.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var R=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return R?R.indexOf("/default_banner")!==-1:!0}}});
vW.prototype.onClick=vW.prototype.onClick;vW.prototype.dataChanged=vW.prototype.dataChanged;vW.JSC$22811_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],vW.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vW.prototype,"rendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vW.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vW.prototype,"buttonUpdate",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vW.prototype,"kevlarWatchGrid",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vW.prototype,"centerAlignDescription",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],vW.prototype,"truncateDomain",void 0);
_.C([_.S({computed:"computeButtonOverride(buttonUpdate)"}),_.k("design:type",Object)],vW.prototype,"buttonOverride",void 0);_.C([_.X("data.detailsLine.adRating.ratingText"),_.k("design:type",Object),_.k("design:paramtypes",[])],vW.prototype,"getRating",null);_.C([_.X("getRating"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vW.prototype,"computeRatingHidden",null);
_.C([_.X("data.detailsLine.adRating.ratingIcon.iconType"),_.k("design:type",Object),_.k("design:paramtypes",[])],vW.prototype,"iconType",null);_.C([_.X("data.detailsLine.texts.0.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],vW.prototype,"getDetailsLine",null);_.C([_.X("getDetailsLine"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vW.prototype,"computeDetailsLineHidden",null);
_.C([_.X("data.description.text"),_.k("design:type",Object),_.k("design:paramtypes",[])],vW.prototype,"getDescriptionText",null);_.C([_.X("getDescriptionText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vW.prototype,"computeDescriptionTextHidden",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],vW.prototype,"interactionLoggingClientData",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],vW.prototype,"hideBanner",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vW.prototype,"dataChanged",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],vW.prototype,"onClick",null);_.C([_.F({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],vW);
_.B(vW,"ytd-action-companion-ad-renderer",function(){if(NzZ!==void 0)return NzZ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return NzZ=R},{mode:_.Nf("kevlar_poly_si_batch_j067")?1:2});var VKZ;var JlR;var gN=function(){var R=_.K.apply(this,arguments)||this;R.buttonUpdate=_.v("web_modern_buttons");R.hideLegacyBanner=_.v("enable_dsa_one_click_ata_translators_infeed_elements");R.adInfoButtonStyle="mono";R.adInfoButtonType="text";R.noDotAdBadge=!0;return R};
_.H(gN,_.K);_.l=gN.prototype;_.l.getOnLayoutVisibleCallback=function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
_.l.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 R=this.data.image.thumbnail.thumbnails[0];this.imageSrc=R.url?_.oR(R.url):void 0;this.imageWidth=R.width||0;this.imageHeight=R.height||0}this.data.clickthroughEndpoint&&_.n(this.data.clickthroughEndpoint,_.G$)&&(R=_.n(this.data.clickthroughEndpoint,_.G$).url,_.v("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
R||"":R?(R=_.oR(R),this.clickThroughUrl=_.Ff(R)):this.clickThroughUrl=void 0);(R=this.getOnLayoutVisibleCallback())&&R()}};
_.l.onClick=function(R){_.RP(_.Ah(R),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(R)};
_.l.handleClick=function(){var R=this;this.data&&this.data.clickthroughEndpoint&&(_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(A){R.macroReplacementBehavior.sendServiceRequestAction([A])}),_.OC(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.l.onLoad=function(){_.MT(this.hostElement,"yt-refit-popups-action")};
_.Yh.Object.defineProperties(gN.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.interactionLoggingClientData:null}}});
gN.prototype.onLoad=gN.prototype.onLoad;gN.prototype.onClick=gN.prototype.onClick;gN.prototype.dataChanged=gN.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gN.prototype,"rendererBehavior",void 0);_.C([_.U(B2$.YtMacroReplacementBehavior),_.k("design:type",Object)],gN.prototype,"macroReplacementBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],gN.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gN.prototype,"buttonUpdate",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gN.prototype,"hideLegacyBanner",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gN.prototype,"adInfoButtonStyle",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gN.prototype,"adInfoButtonType",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],gN.prototype,"macros",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],gN.prototype,"interactionLoggingClientData",null);_.C([_.S(),_.k("design:type",String)],gN.prototype,"clickThroughUrl",void 0);_.C([_.S(),_.k("design:type",_.bb)],gN.prototype,"imageSrc",void 0);_.C([_.S(),_.k("design:type",Number)],gN.prototype,"imageWidth",void 0);_.C([_.S(),_.k("design:type",Number)],gN.prototype,"imageHeight",void 0);_.C([_.S(),_.k("design:type",Object)],gN.prototype,"noDotAdBadge",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gN.prototype,"dataChanged",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],gN.prototype,"onClick",null);_.C([_.Qa("load"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gN.prototype,"onLoad",null);_.C([_.F({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],gN);
_.B(gN,"ytd-image-companion-renderer",function(){if(JlR!==void 0)return JlR;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return JlR=R},{mode:_.Nf("kevlar_poly_si_batch_j067")?1:2});var ylb;var n8=function(){return _.K.apply(this,arguments)||this};
_.H(n8,_.K);_.l=n8.prototype;_.l.dataChanged=function(){this.set("data.adBadge",n8.JSC$22820_DEFAULT_AD_BADGE_RENDERER);if(this.data){var R=this.getOnLayoutVisibleCallback();R&&R()}};
_.l.getOnLayoutVisibleCallback=function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.onLayoutVisibleCallback:null};
_.l.getLayoutId=function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.layoutId:null};
_.l.onCompanionClicked=function(R){this.data&&(R.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.OC(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.l.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var R=_.EJ(),A=this.getLayoutId(),Y=this.data.clickToAdvSiteEndpoint;R&&A&&_.v("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?R.getPlayerPromise().then(function(P){(new _.Zq(P)).executeCommand(Y,A)}):_.xo(this.hostElement,"yt-navigate",{endpoint:Y})}};
_.l.sendTrackingPings=function(R){if(R&&R.length!==0&&R[0].loggingUrls&&(R=R[0].loggingUrls.map(this.getBaseUrl)))for(var A=0;A<R.length;A++)_.ZF(R[A])};
_.l.getBaseUrl=function(R){return R.baseUrl||""};
_.Yh.Object.defineProperties(n8.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var R=_.Zr("yt.www.ads.eventcache.getLastCompanionData");return R?(R=R())&&R.interactionLoggingClientData:null}}});
n8.prototype.onCompanionClicked=n8.prototype.onCompanionClicked;n8.prototype.dataChanged=n8.prototype.dataChanged;n8.JSC$22820_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.vk("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],n8.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],n8.prototype,"data",void 0);_.C([_.nG("#title"),_.k("design:type",HTMLElement)],n8.prototype,"shopTitle",void 0);
_.C([_.Ul("data.impressionEndpoints"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],n8.prototype,"dataChanged",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],n8.prototype,"interactionLoggingClientData",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],n8.prototype,"onCompanionClicked",null);
_.C([_.F({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],n8);
_.B(n8,"ytd-shopping-companion-renderer",function(){if(ylb!==void 0)return ylb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ylb=R},{mode:1});_.Ow(_.E5(function(R){var A=R.data;R=_.zR({visibilityCallback:function(P){var E,z=(E=A().interaction)==null?void 0:E.onFirstVisible;P&&z&&_.Zc(z)},
showOption:_.vo});var Y=_.aP(function(){return A().interaction},A9o);
_.FF(function(){var P,E;E=(E=_.Zr("yt.www.ads.eventcache.getLastCompanionData"))?(E=E())&&E.onLayoutVisibleCallback:null;(P=E)==null||P()});
return _.V("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.Qi(function(P){_.MT(P.currentTarget,"yt-refit-popups-action")}),
el:_.zo(R,Y),"aria-label":function(){var P,E;return(P=A().interaction)==null?void 0:(E=P.accessibility)==null?void 0:E.label}},_.V("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.V(_.ni,{data:function(){return A().adImage}},{adImageViewModel:function(P){return _.V(_.b0,{data:P.data,
targetHeight:80,customCommandResolver:A9o})}})),_.V("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.V("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.V(_.ni,{data:function(){return A().adBadge}},{adBadgeViewModel:function(P){return _.V(_.$E,{data:P.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.V("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.V(_.ni,{data:function(){return A().menu}},{buttonViewModel:_.Is}))))},"Gk"),"banner-image-layout-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;R=_.zR({visibilityCallback:function(P){var E,z=(E=A().interaction)==null?void 0:E.onFirstVisible;P&&z&&_.Zc(z)},
showOption:_.vo});var Y=_.aP(function(){return A().interaction},YWR);
_.FF(function(){var P,E;E=(E=_.Zr("yt.www.ads.eventcache.getLastCompanionData"))?(E=E())&&E.onLayoutVisibleCallback:null;(P=E)==null||P()});
return _.V("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.zo(R,Y)},_.V("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.V(_.ni,{data:function(){return A().adImage}},{adImageViewModel:function(P){return _.V(_.b0,{data:P.data,
targetHeight:80,customCommandResolver:YWR})}})),_.V("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.V("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.V(_.ni,{data:function(){return A().adAvatarLockup}},{adAvatarLockupViewModel:function(P){return _.V(x_R,{data:P.data,
customCommandResolver:YWR})}})),_.V(_.ni,{data:function(){return A().adButton}},{adButtonViewModel:function(P){return _.V(_.nS,{data:P.data,
customCommandResolver:YWR})}}),_.V("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.V(_.ni,{data:function(){return A().menu}},{buttonViewModel:_.Is}))))},"Hk"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.VY}});var m_b={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"},HW=function(){var R=_.K.apply(this,arguments)||this;R.updateCompanionDataJobId=0;R.contentVideoId=null;R.player=null;R.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return R};
_.H(HW,_.K);_.l=HW.prototype;_.l.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:m_b}}};
_.l.attached=function(){var R=this,A=_.EJ();A&&A.getPlayerPromise().then(function(Y){R.getCachedDataAndListen(Y)})};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.l.updateRendererStamper=function(){var R={};if(this.data)for(var A in m_b)if(this.data[A]){R[A]=this.data[A];break}if(this.oneofRenderer!=void 0||Object.keys(R).length)this.oneofRenderer=R};
_.l.getCachedDataAndListen=function(R){var A=this.retrieveCachedCompanionData();A&&Object.keys(A).length&&this.receiveCompanionData(A);this.ytPlayerListenerBehavior.listenToPlayerEvent(R,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=R};
_.l.retrieveCachedCompanionData=function(){return _.P3.yt&&_.P3.yt.www&&_.P3.yt.www.ads&&_.P3.yt.www.ads.eventcache&&_.P3.yt.www.ads.eventcache.getLastCompanionData?_.P3.yt.www.ads.eventcache.getLastCompanionData():null};
_.l.receiveCompanionData=function(R){R&&Object.keys(R).length?(this.contentVideoId=R.contentVideoId,this.setCompanionData(R)):this.setCompanionData(R)};
_.l.setCompanionData=function(R){this.cancelPendingCompanionAdJobs();if(R){this.updateCompanionDataJobId=0;for(var A in m_b)m_b.hasOwnProperty(A)&&(this.data[A]=void 0);R.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",R.shoppingCompanionCarouselRenderer):R.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",R.imageCompanionAdRenderer):R.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",R.actionCompanionAdRenderer),_.MT(this.hostElement,
"yt-hide-unlimited-offer-module"),_.MT(this.hostElement,"yt-hide-tvfilm-offer-module")):R.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",R.bannerImageLayoutViewModel):R.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",R.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.l.dataChanged=function(){var R=this,A=_.EJ();A?A.getPlayerPromise().then(function(Y){R.contentVideoId&&Y.getVideoUrl().includes("v="+R.contentVideoId)||(R.cancelPendingCompanionAdJobs(),R.updateRendererStamper())}):_.tv(Error("Ko"))};
_.l.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.fn.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.l.handleCompanionAdClicked=function(R,A){this.player.onAdUxClicked(R,A);this.player.pauseVideo()};
HW.prototype.dataChanged=HW.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],HW.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],HW.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],HW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],HW.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],HW.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],HW.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],HW.prototype,"oneofRenderer",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],HW.prototype,"dataChanged",null);_.C([_.F({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],HW);
_.B(HW,"ytd-companion-slot-renderer",function(){if(VKZ!==void 0)return VKZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return VKZ=R},{mode:_.Nf("kevlar_poly_si_batch_j067")?
1:2});var TzZ;var rN=function(){return _.K.apply(this,arguments)||this};
_.H(rN,_.K);rN.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
rN.prototype.dataChanged=rN.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rN.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rN.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],rN.prototype,"companionSlotData",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rN.prototype,"dataChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],rN);
_.B(rN,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(TzZ!==void 0)return TzZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return TzZ=R},{mode:1});var QXo;var DT=function(){var R=_.K.apply(this,arguments)||this;R.skinnyMode=!1;R.COMPACT_EVENT_COUNT=4;R.onShelfToggleButtonTap=function(){R.logTap(R.data);R.showingMore=!R.showingMore};
R.onShelfToggleButtonFocus=function(){R.showingMore||(R.logTap(R.data),R.showingMore=!0,_.RK(R,function(){var A=R.COMPACT_EVENT_COUNT-1,Y;(Y=_.Mo(R.hostElement).querySelector("#event-"+A))==null||Y.focus()}))};
return R};
_.H(DT,_.K);_.l=DT.prototype;_.l.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.l.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.l.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.T2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.T2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.T2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.T2(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.T2(this.infoTooltip,this.infoTooltip.hide))};
_.l.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.T2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.T2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.T2(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.T2(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.T2(this.infoTooltip,this.infoTooltip.hide))};
_.l.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)};
_.l.onShowingMoreChanged=function(){var R;this.showingMoreChanged((R=this.showingMore)!=null?R:!1)};
_.l.showingMoreChanged=function(R){var A=this.get("data.events")||[];this.set("restEvents",A.slice(1,R?A.length:this.COMPACT_EVENT_COUNT).map(function(Y){return Y.ticketEventRenderer}));
A.slice(0,R?A.length:this.COMPACT_EVENT_COUNT).forEach(function(Y){var P=_.F9();Y=Y.ticketEventRenderer.trackingParams;_.pO()&&P&&Y&&(Y=_.S5(Y),P&&_.wH(P,Y))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.l.computeAriaLabel=function(R){return R.subtitle1+", "+R.subtitle2};
_.l.logTap=function(R){_.pO()&&this.ytRendererBehavior.logExplicitClick(R)};
_.l.isKeyboardAction=function(R){return this.get("detail.x",R)===0&&this.get("detail.y",R)===0};
_.l.onFirstEventTap=function(R){R.target&&this.handleTap(R.target,this.firstEvent,this.isKeyboardAction(R))};
_.l.onTicketLinkTap=function(R){R.target&&this.handleTap(R.target,R.model.item,this.isKeyboardAction(R))};
_.l.handleTap=function(R,A,Y){if(A.buttonCommand)if(A.hasMultipleOffers)Object.assign(_.n(A.buttonCommand,_.Fe),{properties:{source:Y?"keyboard":"tap"}}),this.logTap(A),this.popupPositionTarget=R,_.NT(this.hostElement,[A.buttonCommand],this.hostElement);else{var P;if((P=_.n(A.buttonCommand,_.G$))==null?0:P.url)this.logTap(A),_.dZ(window,_.n(A.buttonCommand,_.G$).url)}};
DT.prototype.onShowingMoreChanged=DT.prototype.onShowingMoreChanged;DT.prototype.dataChanged=DT.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],DT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],DT.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],DT.prototype,"firstEvent",void 0);_.C([_.S(),_.k("design:type",Object)],DT.prototype,"restEvents",void 0);_.C([_.S(),_.k("design:type",String)],DT.prototype,"imageUrl",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],DT.prototype,"showingMore",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],DT.prototype,"canShowMore",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],DT.prototype,"skinnyMode",void 0);_.C([_.S(),_.k("design:type",HTMLElement)],DT.prototype,"popupPositionTarget",void 0);_.C([_.nG("#banner-info-tooltip"),_.k("design:type",Object)],DT.prototype,"infoTooltip",void 0);
_.C([_.nG("#info-container"),_.k("design:type",HTMLElement)],DT.prototype,"infoContainer",void 0);_.C([_.nG("#shelf-toggler"),_.k("design:type",HTMLElement)],DT.prototype,"shelfToggleButton",void 0);_.C([_.nG("#separator"),_.k("design:type",HTMLDivElement)],DT.prototype,"separator",void 0);_.C([_.S(),_.k("design:type",String)],DT.prototype,"shelfTogglerLabelText",void 0);_.C([_.S(),_.k("design:type",String)],DT.prototype,"shelfTogglerIcon",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DT.prototype,"dataChanged",null);_.C([_.Ul("showingMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DT.prototype,"onShowingMoreChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],DT);
_.B(DT,"ytd-ticket-shelf-renderer",function(){if(QXo!==void 0)return QXo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QXo=R},{mode:1});var vtR;var gt$;var ntD=function(){return _.K.apply(this,arguments)||this};
_.H(ntD,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ntD.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ntD.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],ntD);
_.B(ntD,"ytd-comments-entry-point-message-renderer",function(){if(gt$!==void 0)return gt$;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gt$=R},{mode:1});var HJx;var Uj=function(){return _.K.apply(this,arguments)||this};
_.H(Uj,_.K);_.Yh.Object.defineProperties(Uj.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.teaserAvatar)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Uj.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Uj.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Uj.prototype,"hasAvatar",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],Uj);
_.B(Uj,"ytd-comments-entry-point-teaser-renderer",function(){if(HJx!==void 0)return HJx;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return HJx=R},{mode:1});var rlD;var D_g=function(){return _.K.apply(this,arguments)||this};
_.H(D_g,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],D_g.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],D_g.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],D_g);
_.B(D_g,"ytd-comments-simplebox-renderer",function(){if(rlD!==void 0)return rlD;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return rlD=R},{mode:1});var $Y=function(){var R=_.K.apply(this,arguments)||this;R.fullHeight=!_.v("comment_teaser_full_height_kill_switch")&&_.v("kevlar_watch_grid");return R};
_.H($Y,_.K);$Y.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"}}}};
$Y.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
$Y.prototype.onTap=function(){var R=this.tapCommand;R&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(R))};
$Y.prototype.onKeyUp=function(R){if(R.keyCode===13)this.onTap()};
_.Yh.Object.defineProperties($Y.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.onTap)return this.data.onTap;var A,Y;if(((A=this.data)==null?0:A.teaserContent)||((Y=this.data)==null?0:Y.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)!=null&&R.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
$Y.prototype.onKeyUp=$Y.prototype.onKeyUp;$Y.prototype.onTap=$Y.prototype.onTap;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],$Y.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$Y.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],$Y.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$Y.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$Y.prototype,"fullHeight",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$Y.prototype,"tapCommand",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$Y.prototype,"simpleboxPlaceholder",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$Y.prototype,"hasSimpleboxPlaceholder",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$Y.prototype,"simpleboxAvatar",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$Y.prototype,"teaserContent",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$Y.prototype,"hasTeaserContent",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$Y.prototype,"teaserAvatar",null);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$Y.prototype,"hasTeaserAvatar",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$Y.prototype,"messageText",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$Y.prototype,"contentRenderer",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$Y.prototype,"hasContents",null);
_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],$Y.prototype,"hasContentRenderer",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$Y.prototype,"onTap",null);_.C([_.Qa("keypress"),_.k("design:type",Function),_.k("design:paramtypes",[_.Du]),_.k("design:returntype")],$Y.prototype,"onKeyUp",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],$Y);
_.B($Y,"ytd-comments-entry-point-header-renderer",function(){if(vtR!==void 0)return vtR;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return vtR=R},{mode:1});var U_b;_.v("web_enable_sink_animated_rolling_character_and_number")||!_.v("web_watched_wcw_rolling_number_ks")?_.Ow(_.Pqb,"yt-animated-rolling-number",{props:{numberText:_.VY,numberValue:_.VY,heightPx:_.VY,fontSizeMultiplier:_.VY,shouldAnimate:_.VY,forceRollUp:_.VY}}):azR();var $_b=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),Xvb={numberText:"",heightPx:2*$_b,shouldAnimate:!1},Xa=function(){var R=_.K.apply(this,arguments)||this;R.usingAnimatedComponents=!0;R.wasDetailed=!1;R.JSC$22858_browserSupportsAnimation=_.v("web_supports_animations_api");R.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};R.detailed=!1;R.shouldAnimate=!1;R.viewCountProps=Xvb;R.dateTextProps=
Xvb;R.metadataBadgesInDescription=_.v("web_metadata_badges_in_description");return R};
_.H(Xa,_.K);_.l=Xa.prototype;_.l.resetAnimationState=function(){this.shouldAnimate=!1};
_.l.updateDynamicMetadata=function(){if(this.JSC$22858_browserSupportsAnimation){if(!this.detailed){var R,A,Y,P;var E=(R=this.videoPrimaryInfoRenderer)==null?void 0:(A=R.viewCount)==null?void 0:(Y=A.videoViewCountRenderer)==null?void 0:(P=Y.extraShortViewCount)==null?void 0:P.simpleText;var z,c,M,N;var y=(z=this.videoPrimaryInfoRenderer)==null?void 0:(c=z.viewCount)==null?void 0:(M=c.videoViewCountRenderer)==null?void 0:(N=M.shortViewCount)==null?void 0:N.simpleText}if(!y){var m,T,Q,g;E=(m=this.videoPrimaryInfoRenderer)==
null?void 0:(T=m.viewCount)==null?void 0:(Q=T.videoViewCountRenderer)==null?void 0:(g=Q.unlabeledViewCountValue)==null?void 0:g.simpleText;var r,I,b,p;y=(r=this.videoPrimaryInfoRenderer)==null?void 0:(I=r.viewCount)==null?void 0:(b=I.videoViewCountRenderer)==null?void 0:(p=b.viewCount)==null?void 0:p.simpleText}var h,L,Z;R=Number((h=this.videoPrimaryInfoRenderer)==null?void 0:(L=h.viewCount)==null?void 0:(Z=L.videoViewCountRenderer)==null?void 0:Z.originalViewCount);var w,t;h=(w=this.videoPrimaryInfoRenderer)==
null?void 0:(t=w.relativeDateText)==null?void 0:t.simpleText;var d;w=!((d=this.videoPrimaryInfoRenderer)==null||!d.relativeDateText);if(E&&y&&R&&(h||!w)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;d=y.split(new RegExp("("+E+")"));E=xgx(d[0]);var Jk;y={numberText:(Jk=d[1])!=null?Jk:"",numberValue:R,heightPx:2*$_b,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Nb;Jk=((Nb=d[2])!=null?Nb:"")+"  ";this.setViewCount(y,E,xgx(Jk));if(!this.detailed&&
w){E=h.split(/(\d+)/);Nb=xgx(E[0]);var Qk;Jk={numberText:(Qk=E[1])!=null?Qk:"",heightPx:2*$_b,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var H3;Qk=((H3=E[2])!=null?H3:"")+"  ";this.setDateText(Jk,Nb,xgx(Qk))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.l.setViewCount=function(R,A,Y){_.R4(A)!==_.R4(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=A);this.viewCountProps.numberText!==(R==null?void 0:R.numberText)&&(this.viewCountProps=R||Xvb);_.R4(Y)!==_.R4(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=Y)};
_.l.setDateText=function(R,A,Y){_.R4(A)!==_.R4(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=A);this.dateTextProps.numberText!==(R==null?void 0:R.numberText)&&(this.dateTextProps=R||Xvb);_.R4(Y)!==_.R4(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=Y)};
_.l.onYtUpdateViewershipAction=function(R){this.videoPrimaryInfoRenderer&&(_.n(R,ybg).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.n(R,ybg).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.n(R,ybg).viewCount)))};
_.l.onYtUpdateDateTextAction=function(R){if(this.videoPrimaryInfoRenderer){R=_.n(R,_.VcE).dateText;this.shouldAnimate=!0;var A;((A=this.videoPrimaryInfoRenderer)==null?0:A.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",R):this.set("videoPrimaryInfoRenderer.dateText",R)}};
_.Yh.Object.defineProperties(Xa.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return ljf(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.R4(ljf(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.R4(this.viewCountPreNumberText),this.viewCountProps.numberText,_.R4(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.R4(this.dateTextPreNumberText),this.dateTextProps.numberText,_.R4(this.dateTextPostNumberText)].join("")}}});
Xa.prototype.updateDynamicMetadata=Xa.prototype.updateDynamicMetadata;Xa.prototype.resetAnimationState=Xa.prototype.resetAnimationState;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Xa.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Xa.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Xa.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Xa.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Xa.prototype,"videoPrimaryInfoRenderer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"detailed",void 0);_.C([_.S(),_.k("design:type",Object)],Xa.prototype,"shouldAnimate",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"viewCountPreNumberText",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"viewCountProps",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"viewCountPostNumberText",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"dateTextPreNumberText",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"dateTextProps",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"dateTextPostNumberText",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Xa.prototype,"metadataBadgesInDescription",void 0);_.C([_.X("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xa.prototype,"infoText",null);
_.C([_.X("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.k("design:type",String),_.k("design:paramtypes",[])],Xa.prototype,"descriptionInfoTooltipText",null);_.C([_.X("detailed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Xa.prototype,"showDescriptionInfoTooltip",null);
_.C([_.X("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.k("design:type",String),_.k("design:paramtypes",[])],Xa.prototype,"animatedViewCountAccessibilityLabel",null);_.C([_.X("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.k("design:type",String),_.k("design:paramtypes",[])],Xa.prototype,"animatedDateTextAccessibilityLabel",null);
_.C([_.vZ("videoPrimaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xa.prototype,"resetAnimationState",null);_.C([_.vZ("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xa.prototype,"updateDynamicMetadata",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Xa);
_.B(Xa,"ytd-watch-info-text",function(){if(U_b!==void 0)return U_b;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<template is="dom-if" restamp="" if="[[showDescriptionInfoTooltip]]" class="style-scope ytd-watch-info-text">\n  <tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n</template>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return U_b=R},{mode:1});var SUR;var Ieg="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var KEf=_.E5(function(R){var A=R.data;var Y=R.setTapCommand;_.jq(function(){var P=_.h7(A().onTap);Y(P)},"Hj6Srd");
return _.V("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW}),_.V("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.V("span",null,function(){return A().simpleboxText})))},"Ik");var WEL=_.E5(function(R){return _.V("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.V(_.J,{cond:function(){return _.n(R.data().avatar,_.pi)},
then:function(A){return _.V(_.qW,{data:A,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.V("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.V(_.NU,{text:function(){return R.data().teaserText}})))},"Jk");var jXR=_.E5(function(R){var A=R.data;var Y=R.setTapCommand;_.jq(function(){var P=_.h7(A().onTap);Y(P)},"IlZFqc");
return _.V("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.V(_.ni,{data:function(){return A().teasers}},{commentsEntryPointTeaserViewModel:WEL}))},"Kk");var bJ$=_.E5(function(R){var A=R.data;var Y=R.setTapCommand;_.jq(function(){var P=_.h7(A().onTap);Y(P)},"sYe8ye");
return _.V("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.V(_.NU,{text:function(){return A().messageText}}))},"Lk");var fee=_.E5(function(R){var A=R.data;var Y=R.setTapCommand;var P=R.isDisabled;_.jq(function(){var E=(P==null?0:P())?void 0:_.h7(A().onTap);Y(E)},"GZxRqd");
return _.V("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.V(_.H1,{icon:function(){return A().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.V(_.J,{cond:function(){return A().image},
then:function(E){return _.V(_.P1,{data:E,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.V(_.NU,{text:function(){return A().text},
className:function(){return A().image||A().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.V(_.ni,{data:function(){return A().button}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:P==null?void 0:P()}}})}}))},"Mk");var pvL=_.E5(function(R){var A=R.data;var Y=R.itemIndex;var P=R.selectedIndex;var E=R.indexUpdatedCallback;var z=R.observer;R=R.title;var c=_.LK("yt-carousel-item-view-model",function(T){z&&z().observe(T)}),M=function(T){Y()===P()&&E(T)},N=_.aE(fzR),y=_.aE(_.nfJ),m=function(){var T,Q,g;
return((T=A())==null?void 0:T.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!N()||((Q=A())==null?void 0:Q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&y().includes("PAposts_by_host")||((g=A())==null?void 0:g.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&y().includes("PAyouchat")};
return _.V("yt-carousel-item-view-model",{el:c,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":R},_.V(_.ni,{data:function(){var T,Q;return(Q=(T=_.n(A().carouselItem,Fmo))==null?void 0:T.textCarousel)!=null?Q:A().carouselItem}},{textCarouselItemViewModel:function(T){return _.V(fee,{data:T.data,
setTapCommand:M,isDisabled:m})},
commentTeaserCarouselItemViewModel:function(T){return _.V(jXR,{data:T.data,setTapCommand:M})},
commentInputBoxCarouselItemViewModel:function(T){return _.V(KEf,{data:T.data,setTapCommand:M})},
commentsEntryPointMessageViewModel:function(T){return _.V(bJ$,{data:T.data,setTapCommand:M})}}))},"Nk");var FEx=_.E5(function(R){var A=R.numDots;var Y=R.activeIndex;return _.V("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.V(_.Ue,{each:function(){return Array.from({length:A()})},
keyBy:"INDEX"},function(P,E){return _.V("div",{class:function(){var z={};return _.IP("ytCarouselDotsShapeDot",(z.ytCarouselDotsShapeDotActive=E===Y(),z))}})}))},"Ok");var Bzb=_.E5(function(R){var A=R.data;var Y=R.handleCarouselNavigation;var P=R.numItems;var E=R.selectedIndex;var z=function(){return{disabled:E()===0}},c=function(){return{disabled:E()===P()-1}};
return _.V("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.V("div",null,_.V("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return A().title}),_.V(_.J,{cond:function(){return A().subtitle},
then:function(M){return _.V("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return A().subtitleAccessibilityText}},M)}})),_.V(_.J,{cond:function(){return P()>1},
then:function(){return _.V("div",{class:"ytCarouselTitleViewModelNavigation"},_.V(FEx,{numDots:P,activeIndex:E}),_.V(_.J,{cond:function(){return A().previousButton},
then:function(M){return _.V(_.ni,{data:M},{buttonViewModel:function(N){return _.V(_.Is,{data:N.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return Y(-1)},
buttonOverrides:z})}})}}),_.V(_.J,{cond:function(){return A().nextButton},
then:function(M){return _.V(_.ni,{data:M},{buttonViewModel:function(N){return _.V(_.Is,{data:N.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return Y(1)},
buttonOverrides:c})}})}}))}}))},"Pk");_.Ow(_.E5(function(R){var A=R.data;var Y,P=_.LK("yt-video-metadata-carousel-view-model"),E=_.LK("div",function(w){var t=function(){var d=w.offsetWidth*I(),Jk=24*(I()-1);Q(d+Jk)};
t();window.ResizeObserver&&(Y=new ResizeObserver(t),Y.observe(w))}),z=_.a1("HTML_DIR")==="rtl",c=!1,M=0,N=0;
R=_.x(_.yy(0,void 0,"M49TDf"));var y=R.next().value,m=R.next().value;R=_.x(_.yy(0,void 0,"zLIok"));var T=R.next().value,Q=R.next().value;R=_.x(_.yy(!1,void 0,"bhelhc"));var g=R.next().value,r=R.next().value,I=function(){var w,t,d;return(d=(w=A())==null?void 0:(t=w.carouselTitles)==null?void 0:t.length)!=null?d:0},b=function(){E.value&&E.value.scrollLeft!==M&&m((z?E.value.scrollLeft<M:E.value.scrollLeft>M)?Math.min(y()+1,I()-1):Math.max(y()-1,0))},p;
window.IntersectionObserver&&(p=new IntersectionObserver(function(w){w=_.x(w);for(var t=w.next();!t.done;t=w.next())if(t.value.isIntersecting){if(c){c=!1;break}b()}else m(N)},{threshold:.2}));
_.jq(function(){if(E.value){var w=(z?-1:1)*(T()/I()+12)*(g()&&p?N:y());typeof E.value.scrollTo==="function"?E.value.scrollTo({left:w,behavior:"smooth"}):E.value.scrollLeft=w;M=w;N=g()&&p?N:y()}},"s9rbgc");
var h,L=function(w){h=w};
_.bm(function(){var w;(w=Y)==null||w.disconnect();var t;(t=p)==null||t.disconnect()});
var Z=function(w){w=y()+w;w>=0&&w<I()&&(c=!0,m(w))};
return _.V("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:P,"on:click":_.Qi(function(w){if(_.WT(_.Ki(w),P.value,["BUTTON".toString()])||!h)return!1;_.is().resolve(_.ls).resolveCommand(h,{forceClickLogging:!0});return!1}),
"on:touchstart":_.Qi(function(){r(!0);return!1}),
"on:touchend":_.Qi(function(){p||b();r(!1);return!1}),
hidden:function(){var w,t;return!((w=A())==null?0:(t=w.carouselItems)==null?0:t.length)}},_.V("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.V(_.J,{cond:function(){return A().carouselTitles},
then:function(w){return _.V(_.ni,{data:function(){return w()[g()&&p?N:y()]}},{carouselTitleViewModel:function(t){return _.V(Bzb,{data:t.data,
handleCarouselNavigation:Z,numItems:I,selectedIndex:y})}})}})),_.V("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:E},_.V("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+T()+"px;"}},_.V(_.J,{cond:function(){return A().carouselItems},
then:function(w){return _.V(_.Ue,{each:w},function(t,d){return _.V(_.ni,{data:function(){return t}},{carouselItemViewModel:function(Jk){return _.V(pvL,{data:Jk.data,
itemIndex:d,selectedIndex:y,indexUpdatedCallback:L,observer:p,title:function(){a:{var Nb=d();var Qk,H3=(Qk=A())==null?void 0:Qk.carouselTitles;if(H3&&(Nb=H3[Nb])){var nu;Nb=(nu=_.n(Nb,pFb))==null?void 0:nu.title;break a}Nb=void 0}return Nb}})}})})}}))))},"Qk"),"yt-video-metadata-carousel-view-model",{props:{data:_.VY}});var aef=_.v("web_action_buttons_update_owner_width")?32:12,Sh=function(){var R=_.K.apply(this,arguments)||this;R.isHovering=!1;R.enableColorSampling=_.v("web_delhi_colorful_sd");R.metadataBadgesInDescription=_.v("web_metadata_badges_in_description");R.descriptionCollapsed=!0;R.useFadedScrimDescription=_.v("kevlar_enable_faded_scrim_on_description");R.skinnyMode=!1;R.playlist=!1;R.isDark=document.documentElement.hasAttribute("dark");R.disableVideoOwnerOnTap=_.v("swatchie_video_owner_on_tap_ks");R.swatcherooDelayLoad=
_.v("swatcheroo_enable_ghost_cards");R.primaryMenuWidth=0;R.videoId="";R.titleHeadlineXs=_.v("web_watch_typography_title_headline_xs");R.titleHeadlineS=_.v("web_watch_typography_title_headline_s");R.titleHeadlineM=_.v("web_watch_typography_title_headline_m");R.titleHashtagBlackLinkified=_.v("web_title_hashtag_black_linkified");R.titleHashtagGreyLinkified=_.v("web_title_hashtag_grey_linkified");R.actionButtonsUpdateOwnerWidth=_.v("web_action_buttons_update_owner_width");R.shouldForceIconOnly=!1;R.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};R.isFullscreen=!1;R.isTheaterMode=!1;return R};
_.H(Sh,_.K);_.l=Sh.prototype;_.l.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.l.updateOwnerAndDescriptionPosition=function(){_.v("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.G7(this.bottomRowElement,this.ownerElement)):(_.G7(this.bottomRowElement,this.descriptionElement),_.G7(this.topRowElement,this.ownerElement)))};
_.l.titleOnTap=function(R){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var A;((A=window.getSelection())==null?0:A.toString().length)||this.handleExpandDescriptionCommands()}};
_.l.videoOwnerOnTap=function(R){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.l.detached=function(){var R=this,A;return _.O(function(Y){(A=R.resizeObserver)==null||A.disconnect();_.XH(Y)})};
_.l.maybeAttachResizeObserver=function(){var R=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.kH(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){R.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.l.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var R=this.hostElement.clientWidth,A=Math.max(this.largerItemWrap?400:350,R/2-aef);if(_.v("web_action_buttons_update_owner_width")){var Y;A=(((Y=document.getElementById("owner"))==null?void 0:Y.clientWidth)||0)+aef}this.actionsOnSeparateLine=this.primaryMenuWidth>R-A?!0:!1}};
_.l.stripAttributedDescription=function(R){return{content:R.content.replace(/[\r\n]{2,}/g,"\n")}};
_.l.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.v("web_modern_buttons"),forceIconButton:!_.v("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:_.v("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"}}}};
_.l.videoPrimaryInfoRendererChanged=function(){var R;if((R=this.videoPrimaryInfoRenderer)==null?0:R.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.l.videoSecondaryInfoRendererChanged=function(){var R,A;(A=(R=this.descriptionInlineExpander).collapse)==null||A.call(R);this.descriptionExpandClientVe=_.NV(110509);this.descriptionCollapseClientVe=_.NV(110510);R=_.F9();A=_.pO();R&&A&&(_.v("combine_ve_grafts")?(_.Xq(_.rU(),this.descriptionExpandClientVe,A),_.Xq(_.rU(),this.descriptionCollapseClientVe,A)):_.tg(R,A,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.l.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.l.updateTopLevelIconsOnly=function(){var R=this;_.v("top_level_update_killswitch")||this.menu&&_.fn.addLowPriorityJob(function(){R.menu.topLevelIconsOnly=R.skinnyMode},_.cU("swathceroo_delay_flexible_menu_update",100))};
_.l.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.v("web_action_buttons_minimize_subscribe")};
_.l.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.l.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.l.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.l.onYtTextInlineExpanderExpandedChanged=function(){if(!_.v("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var R,A;(A=(R=this.structuredDescriptionContentRendererElement).resize)==null||A.call(R)}};
_.l.onRenderStamperFinished=function(R){(R==null?void 0:R.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.l.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.l.onYtExpanderLessTapped=function(){var R,A=(R=this.videoSecondaryInfoRenderer)==null?void 0:R.showLessCommand;A&&this.ytComponentBehavior.resolveCommand(A)};
_.l.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.l.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.l.onDescriptionClick=function(R){if(!_.RP(_.Ah(R)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var A;((A=window.getSelection())==null?0:A.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.v("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.l.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.l.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.l.logCollapseClick=function(){var R=_.F9();R&&this.descriptionCollapseClientVe&&_.qT(R,this.descriptionCollapseClientVe)};
_.l.logExpandClick=function(){var R=_.F9();R&&this.descriptionExpandClientVe&&_.qT(R,this.descriptionExpandClientVe)};
_.l.collapseDescription=function(){this.descriptionCollapsed=!0};
_.l.scrollToTopOfContainer=function(){_.OC(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.l.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.l.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.l.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.l.resize=function(){if(this.descriptionInlineExpander){var R,A;(A=(R=this.descriptionInlineExpander).resize)==null||A.call(R)}else _.pK(new _.XN("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var Y;(Y=this.menu)==null||Y.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.l.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var R,A,Y,P,E=_.v("web_action_buttons_update_owner_width")?(Y=(R=_.Mo(this.menu).querySelector("#button-shape"))==null?void 0:R.clientWidth)!=null?Y:0:(P=(A=_.Mo(this.menu).querySelector("#button"))==null?void 0:A.clientWidth)!=null?P:0,z,c;R=((c=(z=_.Mo(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:z.clientWidth)!=null?c:0)+8+E;var M,N;E=(N=(M=_.Mo(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:M.children.length)!=null?N:2;R<=8*E||(this.primaryMenuWidth=R)}};
_.l.onYtUpdateTitleAction=function(R){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.n(R,Jbb).title)};
_.l.onYtUpdateDescriptionAction=function(R){if(R=_.n(R,_.jsS)){var A,Y=!((A=this.videoSecondaryInfoRenderer)==null||!A.attributedDescription);R.isEmpty||!R.description&&!R.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):R.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",R.attributedDescription):R.description&&(Y?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.FS(R.description)):this.set("videoSecondaryInfoRenderer.description",R.description))}};
_.l.onYtDarkModeToggledAction=function(R){this.isDark=R};
_.l.registerPanel=function(){if(!_.v("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var R=_.v("web_watch_imax_theater_mode")&&this.isTheaterMode;R=_.v("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||R;var A=_.is().resolve(_.tC);A&&!R&&A.registerPanel("engagement-panel-structured-description",this)}};
_.l.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.l.parseColorSamplingData=function(){var R;if(_.v("web_delhi_colorful_sd")&&((R=this.structuredDescriptionContentRenderer)==null?0:R.items)&&(R=this.structuredDescriptionContentRenderer.items.find(function(E){return!!_.n(E,Zb)}))){var A,Y;
this.hoverColor={lightTheme:(A=_.n(R,Zb))==null?void 0:A.lightThemeColorPalette,darkTheme:(Y=_.n(R,Zb))==null?void 0:Y.darkThemeColorPalette};var P;this.hoverText=(P=_.n(R,Zb))==null?void 0:P.colorSampledDescriptionBodyText}};
_.l.updateHoverColor=function(){if(_.v("web_delhi_colorful_sd")){var R=this.hoverColor,A={},Y;R=(Y=this.isDark?R==null?void 0:R.darkTheme:R==null?void 0:R.lightTheme)!=null?Y:{};Y=_.x(Ieg);for(var P=Y.next();!P.done;P=Y.next()){P=P.value;var E=R[P];A["--yt-saturated-"+_.gq(P)]=E?_.Zs(E):"initial"}_.ya(this.hostElement,A)}};
_.l.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.l.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.l.showPanel=function(R){this.expandDescription();var A=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;A.resize();var Y,P=R==null?void 0:(Y=R.sectionListEngagementPanelExtras)==null?void 0:Y.scrollToItemSectionIdentifier;P?_.fn.addJob(function(){A==null||A.scrollToSection(P)},8):this.scrollToTopOfContainer()};
_.l.isVisible=function(){return!this.descriptionCollapsed};
_.l.getReloadContinuation=function(){};
_.l.hidePanel=function(){};
_.l.updatePanel=function(){};
_.Yh.Object.defineProperties(Sh.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var R;return _.v("web_delhi_colorful_sd")&&(R=this.structuredDescriptionContentRenderer)!=null&&R.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(A){return!_.n(A,Zb)&&!_.n(A,TZ$)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.structuredDescriptionContentRendererComputed)!=null&&R.items){var A;R=_.x((A=this.structuredDescriptionContentRendererComputed)==null?void 0:A.items);for(A=R.next();!A.done;A=R.next())if(A=_.n(A.value,_.X9H))return A}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.videoPrimaryInfoRenderer)==null?0:R.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!!((R=this.videoSecondaryInfoRenderer)==null?0:(A=R.owner)==null?0:(Y=A.videoOwnerRenderer)==null?0:Y.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var R,A;if((R=this.videoSecondaryInfoRenderer)==null?0:(A=R.attributedDescription)==null?0:A.content){var Y,P;return(P=this.stripAttributedDescription((Y=this.videoSecondaryInfoRenderer)==null?void 0:Y.attributedDescription))!=null?P:{runs:[]}}}if(_.v("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var E,z,c,M;return(M=(c=(E=this.videoSecondaryInfoRenderer)==
null?void 0:E.description)!=null?c:(z=this.videoSecondaryInfoRenderer)==null?void 0:z.attributedDescription)!=null?M:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=(R=this.videoSecondaryInfoRenderer)==null?void 0:R.headerRuns)!=null?A:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.commentsEntryPointHeaderRenderer)==null||!R.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.videoMetadataCarousel)==null||!R.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.cU("swatchie_desc_lines",3):this.hasTeaserCarousel?_.cU("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=Object.assign({},(R=this.videoSecondaryInfoRenderer)==null?void 0:(A=R.metadataRowContainer)==null?void 0:A.metadataRowContainerRenderer);if(Y&&Y.rows&&Y.collapsedItemCount!==void 0&&!(Y.rows.length<=Y.collapsedItemCount))return Y.rows=Y.rows.slice(Y.collapsedItemCount),Y.collapsedItemCount=0,Y}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var R,A,Y=Object.assign({},(R=this.videoSecondaryInfoRenderer)==null?void 0:(A=R.metadataRowContainer)==null?void 0:A.metadataRowContainerRenderer);if(Y&&Y.rows&&Y.collapsedItemCount!==void 0)return Y.rows=Y.rows.slice(0,Y.collapsedItemCount),Y.collapsedItemCount=Y.rows.length,Y}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var R,A;return!!((R=this.structuredDescriptionContentRendererComputed)==null?0:(A=R.items)==null?0:A.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRendererComputed)return null;var R;return(R=this.videoSecondaryInfoRenderer)==null?void 0:R.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.videoSecondaryInfoRenderer)==null?0:(A=R.owner)==null?0:(Y=A.videoOwnerRenderer)==null?0:Y.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;return!!((R=this.videoPrimaryInfoRenderer)==null?0:(A=R.videoActions)==null?0:(Y=A.menuRenderer)==null?0:(P=Y.flexibleItems)==null?0:P.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.RE(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.RE(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var R=this;if(_.v("web_title_hashtag_grey_delinkified")){var A,Y=_.BO.unsafeClone((A=this.videoPrimaryInfoRenderer)==null?void 0:A.title);(A=Y==null?void 0:Y.runs)&&A.forEach(function(P){if(P==null?0:P.navigationEndpoint)P.textColor=4284506208,R.isDark&&(P.textColor=4289374890)});
return Y}return(Y=this.videoPrimaryInfoRenderer)==null?void 0:Y.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.v("web_title_hashtag_black_delinkified")||_.v("web_title_hashtag_grey_delinkified")}}});
Sh.prototype.updateHoverColor=Sh.prototype.updateHoverColor;Sh.prototype.parseColorSamplingData=Sh.prototype.parseColorSamplingData;Sh.prototype.resetDescriptionState=Sh.prototype.resetDescriptionState;Sh.prototype.registerPanel=Sh.prototype.registerPanel;Sh.prototype.onYtExpanderLessTapped=Sh.prototype.onYtExpanderLessTapped;Sh.prototype.onYtExpanderMoreTapped=Sh.prototype.onYtExpanderMoreTapped;Sh.prototype.onRenderStamperFinished=Sh.prototype.onRenderStamperFinished;
Sh.prototype.onYtTextInlineExpanderExpandedChanged=Sh.prototype.onYtTextInlineExpanderExpandedChanged;Sh.prototype.onYtTextInlineExpanderCollapseClicked=Sh.prototype.onYtTextInlineExpanderCollapseClicked;Sh.prototype.onYtTextInlineExpanderExpandClicked=Sh.prototype.onYtTextInlineExpanderExpandClicked;Sh.prototype.moveActionsElement=Sh.prototype.moveActionsElement;Sh.prototype.updateShouldForceIconOnly=Sh.prototype.updateShouldForceIconOnly;Sh.prototype.updateTopLevelIconsOnly=Sh.prototype.updateTopLevelIconsOnly;
Sh.prototype.structuredDescriptionContentRendererChanged=Sh.prototype.structuredDescriptionContentRendererChanged;Sh.prototype.videoSecondaryInfoRendererChanged=Sh.prototype.videoSecondaryInfoRendererChanged;Sh.prototype.videoPrimaryInfoRendererChanged=Sh.prototype.videoPrimaryInfoRendererChanged;Sh.prototype.maybeUpdateActionsOnSeparateLine=Sh.prototype.maybeUpdateActionsOnSeparateLine;Sh.prototype.updateOwnerAndDescriptionPosition=Sh.prototype.updateOwnerAndDescriptionPosition;
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Sh.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Sh.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Sh.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],Sh.prototype,"ytdReduxBehavior",void 0);_.C([_.nG("#above-the-fold"),_.k("design:type",HTMLElement)],Sh.prototype,"aboveTheFoldContainer",void 0);_.C([_.nG("#menu ytd-menu-renderer"),_.k("design:type",Object)],Sh.prototype,"menu",void 0);_.C([_.nG("#description-inline-expander"),_.k("design:type",Object)],Sh.prototype,"descriptionInlineExpander",void 0);
_.C([_.nG("#faded-structured-description"),_.k("design:type",Object)],Sh.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.C([_.nG("#structured-description"),_.k("design:type",Object)],Sh.prototype,"structuredDescriptionContentRendererElement",void 0);_.C([_.nG("#title"),_.k("design:type",HTMLElement)],Sh.prototype,"titleElement",void 0);_.C([_.nG("#description"),_.k("design:type",HTMLElement)],Sh.prototype,"descriptionElement",void 0);
_.C([_.nG("#description-interaction"),_.k("design:type",Object)],Sh.prototype,"descriptionInteraction",void 0);_.C([_.nG("#owner"),_.k("design:type",HTMLElement)],Sh.prototype,"ownerElement",void 0);_.C([_.nG("#top-row"),_.k("design:type",HTMLElement)],Sh.prototype,"topRowElement",void 0);_.C([_.nG("#bottom-row"),_.k("design:type",HTMLElement)],Sh.prototype,"bottomRowElement",void 0);_.C([_.nG("#actions"),_.k("design:type",HTMLElement)],Sh.prototype,"actionsElement",void 0);
_.C([_.nG("#bottom-actions"),_.k("design:type",HTMLElement)],Sh.prototype,"bottomActionsElement",void 0);_.C([_.nG("#ytd-watch-info-text"),_.k("design:type",Object)],Sh.prototype,"watchInfoTextElement",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"videoPrimaryInfoRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"videoSecondaryInfoRenderer",void 0);
_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"commentsEntryPointHeaderRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"videoMetadataCarousel",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"structuredDescriptionContentRenderer",void 0);_.C([_.X("structuredDescriptionContentRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"structuredDescriptionContentRendererComputed",null);
_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"videoSummary",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"merchShelf",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"infoPanelBelowMetadata",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"hoverColor",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"hoverText",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"isHovering",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"enableColorSampling",void 0);_.C([_.X("structuredDescriptionContentRendererComputed"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"productShelf",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"metadataBadgesInDescription",void 0);_.C([_.X("videoPrimaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"shouldHideBadges",null);
_.C([_.X("productShelf","descriptionCollapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"shouldShowProductShelf",null);_.C([_.S(),_.k("design:type",Boolean)],Sh.prototype,"isWatchFlexy",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"descriptionCollapsed",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Sh.prototype,"useFadedScrimDescription",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"skinnyMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("videoSecondaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"largerItemWrap",null);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"playlist",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"clarifyBox",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"playerAds",void 0);
_.C([_.S(),_.k("design:type",Boolean)],Sh.prototype,"isDark",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Sh.prototype,"actionsOnSeparateLine",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"disableVideoOwnerOnTap",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"swatcherooDelayLoad",void 0);_.C([_.S(),_.k("design:type",Boolean)],Sh.prototype,"suppressTopLevelMetadataRows",void 0);
_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"primaryMenuWidth",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"videoId",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"titleHeadlineXs",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"titleHeadlineS",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"titleHeadlineM",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"titleHashtagBlackLinkified",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"titleHashtagGreyLinkified",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.C([_.S(),_.k("design:type",Object)],Sh.prototype,"shouldForceIconOnly",void 0);
_.C([_.Ul("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"updateOwnerAndDescriptionPosition",null);_.C([_.Ul("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.C([_.X("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"descriptionText",null);_.C([_.X("videoSecondaryInfoRenderer.headerRuns"),_.k("design:type",Array),_.k("design:paramtypes",[])],Sh.prototype,"headerRuns",null);
_.C([_.S({value:!1}),_.X("commentsEntryPointHeaderRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"hasTeaser",null);_.C([_.S({value:!1,reflectToAttribute:!0}),_.X("videoMetadataCarousel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"hasTeaserCarousel",null);_.C([_.S({value:3}),_.X("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"descriptionMaxLines",null);
_.C([_.X("videoSecondaryInfoRenderer.metadataRowContainer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"collapsibleMetadataRows",null);_.C([_.X("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"alwaysVisibleMetadataRows",null);
_.C([_.X("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"hasInlineStructuredDescription",null);_.C([_.X("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"showInlineStructuredDescription",null);
_.C([_.X("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"descriptionExpandCommand",null);_.C([_.X("videoSecondaryInfoRenderer.owner"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"videoOwnerCommand",null);_.C([_.S({reflectToAttribute:!0}),_.X("videoPrimaryInfoRenderer.videoActions"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"flexMenuEnabled",null);
_.C([_.S({selector:_.FW,reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"isFullscreen",void 0);_.C([_.S({selector:_.pY,reflectToAttribute:!0}),_.k("design:type",Object)],Sh.prototype,"isTheaterMode",void 0);_.C([_.X("descriptionText","useFadedScrimDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"showAttributedStringDescription",null);
_.C([_.X("descriptionText","useFadedScrimDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"showFormattedStringDescription",null);_.C([_.X("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Sh.prototype,"showFadedStructuredDescription",null);
_.C([_.Ul("videoPrimaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"videoPrimaryInfoRendererChanged",null);_.C([_.X("videoPrimaryInfoRenderer.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"videoTitle",null);_.C([_.X("videoPrimaryInfoRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],Sh.prototype,"noEndpoints",null);
_.C([_.Ul("videoSecondaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"videoSecondaryInfoRendererChanged",null);_.C([_.vZ("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"structuredDescriptionContentRendererChanged",null);
_.C([_.vZ("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"updateTopLevelIconsOnly",null);_.C([_.vZ("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"updateShouldForceIconOnly",null);_.C([_.vZ("skinnyMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"moveActionsElement",null);
_.C([_.Qa("yt-text-inline-expander-expand-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"onYtTextInlineExpanderExpandClicked",null);_.C([_.Qa("yt-text-inline-expander-collapse-clicked"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.C([_.Qa("yt-text-inline-expander-expanded-changed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Sh.prototype,"onRenderStamperFinished",null);
_.C([_.Qa("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"onYtExpanderMoreTapped",null);_.C([_.Qa("yt-expander-less-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"onYtExpanderLessTapped",null);
_.C([_.vZ("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"registerPanel",null);_.C([_.vZ("videoSecondaryInfoRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"resetDescriptionState",null);
_.C([_.vZ("structuredDescriptionContentRenderer"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"parseColorSamplingData",null);_.C([_.vZ("hoverColor","isDark"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sh.prototype,"updateHoverColor",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Sh);
_.B(Sh,"ytd-watch-metadata",function(){if(SUR!==void 0)return SUR;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick" on-mouseenter="onDescriptionMouseEnter" on-mouseleave="onDescriptionMouseLeave">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata"> </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRendererComputed]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRendererComputed]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return SUR=R},{mode:2});_.wvf=function(R){_.KJ.call(this);this.JSC$22883_watchApi=R;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;Ct$(this);hoe(this);otq(this);kZ$(this);GZb(this);ZJL(this);tKb(this)};
_.H(_.wvf,_.KJ);var otq=function(R){var A=function(){_.v("kevlar_is_pupi_enabled")||Ih(R)};
R.JSC$22883_watchApi.getRoot().addEventListener("yt-player-updated",A);R.addOnDisposeCallback(function(){R.JSC$22883_watchApi.getRoot().removeEventListener("yt-player-updated",A)})},GZb=function(R){if(_.v("kevlar_endscreen_auto_theater_mode")){var A=R.JSC$22883_watchApi.subscribeToActiveChanged(function(){uLD(R)},!1);
R.addOnDisposeCallback(A)}},Ct$=function(R){var A,Y,P,E,z;
_.O(function(c){if(c.nextAddress==1)return c.yield(R.JSC$22883_watchApi.playerApi,2);A=c.yieldResult;Y=function(M){M=!!M;eoE(R)&&(M=M?2:1,_.mA.getInstance().setState(M,!0,!1))};
P=function(M){M&&_.bDR(_.Yp().getState())&&(_.OC(R.JSC$22883_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),R.temporaryTheaterMode=!0)};
E=function(M){_.v("kevlar_player_update_autonav_on_new_data")&&M.type==="newdata"&&(_.v("kevlar_is_pupi_enabled")||Ih(R))};
z=function(M){R.onPlayerStateChange(M)};
_.v("kevlar_endscreen_auto_theater_mode")&&A.addEventListener("onAutonavCancelled",P);A.addEventListener("onAutonavChangeRequest",Y);A.addEventListener("onVideoDataChange",E);A.addEventListener("onStateChange",z);R.addOnDisposeCallback(function(){A.removeEventListener("onAutonavChangeRequest",Y);A.removeEventListener("onVideoDataChange",E);A.removeEventListener("onStateChange",z);_.v("kevlar_endscreen_auto_theater_mode")&&A.removeEventListener("onAutonavCancelled",P)});
_.XH(c)})},hoe=function(R){R.JSC$22883_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){R.autonavCancelledBySignal=!0;
_.v("kevlar_is_pupi_enabled")||Ih(R)});
R.JSC$22883_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(A,Y,P){Y&&Ih(R,P)});
R.JSC$22883_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){eoE(R)&&_.mA.getInstance().setState(2,!0,!0)});
R.JSC$22883_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){eoE(R)&&_.mA.getInstance().setState(1,!0,!0)});
R.addOnDisposeCallback(function(){R.JSC$22883_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");R.JSC$22883_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");R.JSC$22883_watchApi.unregisterActionHandler("yt-enable-autoplay-command");R.JSC$22883_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},kZ$=function(R){var A=R.JSC$22883_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){tKb(R)}),Y=R.JSC$22883_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){ZJL(R)});
R.addOnDisposeCallback(function(){R.JSC$22883_watchApi.unsubscribeByKey(A);R.JSC$22883_watchApi.unsubscribeByKey(Y)})},tKb=function(R){R.autonavCancelledBySignal=!1;
_.v("kevlar_is_pupi_enabled")||Ih(R)},ZJL=function(R){var A=R.JSC$22883_watchApi.getWatchNextResponse(),Y,P;
var E=(A=(P=_.n(A==null?void 0:(E=A.playerOverlays)==null?void 0:(Y=E.playerOverlayRenderer)==null?void 0:Y.autonavToggle,_.fWq))==null?void 0:P.enabled)?2:1;_.v("kevlar_is_pupi_enabled")?_.mA.getInstance().setState(E,!1,!1):Ih(R);_.v("web_persist_server_autonav_state_on_client")&&typeof A==="boolean"&&_.FCb(E===2)},eoE=function(R){if(R.autonavCancelledBySignal)return!1;
var A,Y,P,E;return!!((A=R.JSC$22883_watchApi.getWatchNextResponse())==null?0:(Y=A.contents)==null?0:(P=Y.twoColumnWatchNextResults)==null?0:(E=P.autoplay)==null?0:E.autoplay)};
_.wvf.prototype.onPlayerStateChange=function(R){if(R===0){R=!_.mA.getInstance().isAutoplaySetExplicitly();var A=this.JSC$22883_watchApi.getWatchNextResponse(),Y,P,E,z;A=_.n(A==null?void 0:(Y=A.contents)==null?void 0:(P=Y.twoColumnWatchNextResults)==null?void 0:(E=P.autoplay)==null?void 0:(z=E.autoplay)==null?void 0:z.autoplayExplicitChoiceDialogRenderer,_.AsH);eoE(this)&&R&&A&&_.Qp.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:A},popupType:"DIALOG"}})}else uLD(this)};
var uLD=function(R){R.temporaryTheaterMode&&(R.temporaryTheaterMode=!1,_.OC(R.JSC$22883_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Ih=function(R,A){A=A===void 0?!1:A;
var Y;_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22883_watchApi.playerApi,2);Y=P.yieldResult;eoE(R)?Y.setAutonavState(_.mA.getInstance().getState(),A):Y.setAutonavState(1,A);_.XH(P)})};var qUb={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.d_b=function(R){_.KJ.call(this);var A=this;this.JSC$22888_watchApi=R;var Y=this.JSC$22888_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){LEZ(A)});
this.addOnDisposeCallback(function(){A.JSC$22888_watchApi.unsubscribeByKey(Y)});
LEZ(this)};
_.H(_.d_b,_.KJ);var LEZ=function(R){var A=R.JSC$22888_watchApi.getPlayerResponse(),Y=R.JSC$22888_watchApi.getWatchNextResponse();if(!_.jMV(A==null?void 0:A.playabilityStatus,Y==null?void 0:Y.playerOverlays)){var P;var E=A==null?void 0:(P=A.playabilityStatus)==null?void 0:P.errorScreen}R.JSC$22888_watchApi.provideRenderingData("ERROR_SCREEN",E)};var RUb=_.E5(function(R){var A=R.data;R=_.v("web_watch_video_details_hide_subtitle");var Y=_.v("web_watch_video_details_single_line_title"),P=_.Qi(function(){var M=A().onTap;M&&_.is().resolve(_.ls).resolveCommand(M)}),E={},z={},c={};
return _.V("yt-player-overlay-video-details-renderer",{class:_.To("ytPlayerOverlayVideoDetailsRendererHost",(E.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.v("web_watch_video_details_transparent_background"),E)),"on:click":P,role:"button"},_.V("h2",{class:_.To("ytPlayerOverlayVideoDetailsRendererTitle",(z.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return Y},z))},_.V(_.NU,{text:function(){return A().title}})),_.V("div",{class:_.To("ytPlayerOverlayVideoDetailsRendererSubtitle",
(c.ytPlayerOverlayVideoDetailsRendererHideSubtitle=R,c))},_.V(_.NU,{text:function(){return A().subtitle}})))},"Rk");var K8={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},A6$=_.E5(function(R){var A=R.data;var Y=_.aE(_.FW),P=_.v("web_watch_action_bar_resize_buttons"),E=_.v("web_watch_video_action_dsdvb"),z=_.v("delhi_modern_web_player_icons")&&!_.v("enable_web_delhi_icons");R=_.v("delhi_modern_web_player_disable_frosted_glass");var c=function(){return P&&!Y()?{size:"M"}:void 0},M={};
return _.V("yt-player-quick-action-buttons",{class:_.To("ytPlayerQuickActionButtonsHost",(M.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!Y()},M.ytPlayerQuickActionButtonsHostDisableBackdropFilter=R,M))},_.V(_.Ue,{each:function(){var N=A();
if(z){N=JSON.parse(JSON.stringify(N));for(var y=_.x(N),m=y.next();!m.done;m=y.next()){var T=m.value,Q=void 0;m=_.n((Q=_.n(T,_.uo))==null?void 0:Q.toggleButtonViewModel,_.iS);var g=void 0;Q=_.n((g=_.n(T,_.w3))==null?void 0:g.toggleButtonViewModel,_.iS);g=_.n(T,_.E7);T=_.n(T,_.iS);if(m)Q=_.n(m.defaultButtonViewModel,_.E7),m=_.n(m.toggledButtonViewModel,_.E7),Q&&Q.iconName&&(Q.iconName=K8[Q.iconName]),m&&m.iconName&&(m.iconName=K8[m.iconName]);else if(Q)m=_.n(Q.defaultButtonViewModel,_.E7),Q=_.n(Q.toggledButtonViewModel,
_.E7),m&&m.iconName&&(m.iconName=K8[m.iconName]),Q&&Q.iconName&&(Q.iconName=K8[Q.iconName]);else if(g)g.iconName&&(g.iconName=K8[g.iconName]);else if(T){m=_.n(T.defaultButtonViewModel,_.E7);Q=_.n(T.toggledButtonViewModel,_.E7);T=void 0;if((T=m)==null?0:T.iconName)m.iconName=K8[m.iconName];m=void 0;if((m=Q)==null?0:m.iconName)Q.iconName=K8[Q.iconName]}}}E&&(N=c9b(N));return N}},function(N){return _.V(_.ni,{data:function(){return N}},{buttonViewModel:function(y){return _.V(_.Is,{data:y.data,
buttonOverrides:c})},
likeButtonViewModel:function(y){return _.V(_.Ai,{data:y.data,buttonShapeOverrideables:c})},
dislikeButtonViewModel:function(y){return _.V(_.R_,{data:y.data,buttonShapeOverrideables:c})},
toggleButtonViewModel:function(y){return _.V(_.uF,{data:y.data,buttonShapeOverrides:c})}})}))},"Sk");_.Pmc=function(R){_.KJ.call(this);var A=this;this.JSC$22892_watchApi=R;R=_.x(_.yy({},void 0,"n9wCVe"));this.quickActionsViewModel=R.next().value;this.setQuickActionsViewModel=R.next().value;R=_.x(_.yy({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=R.next().value;this.setPlayerOverlayVideoDetailsRenderer=R.next().value;var Y=this.JSC$22892_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Y9o(A)});
this.addOnDisposeCallback(function(){A.JSC$22892_watchApi.unsubscribeByKey(Y)});
Y9o(this)};
_.H(_.Pmc,_.KJ);
var Y9o=function(R){var A,Y,P,E,z,c,M,N,y,m,T,Q,g,r;_.O(function(I){if(I.nextAddress==1)return I.yield(R.JSC$22892_watchApi.playerApi,2);A=I.yieldResult;Y=R.JSC$22892_watchApi.getWatchNextResponse();z=(P=Y)==null?void 0:(E=P.playerOverlays)==null?void 0:E.playerOverlayRenderer;M=_.n((c=z)==null?void 0:c.fullscreenQuickActionsBar,_.fXZ);(y=(N=R).setQuickActionsViewModel)==null||y.call(N,M||{});M&&E0f(R,A);Q=(m=z)==null?void 0:(T=m.videoDetails)==null?void 0:T.playerOverlayVideoDetailsRenderer;(r=(g=
R).setPlayerOverlayVideoDetailsRenderer)==null||r.call(g,Q||{});Q&&zUf(R,A);_.XH(I)})},E0f=function(R,A){if(!R.quickActionButtonsContainer)if(A.setFullscreenQuickActions){R.quickActionButtonsContainer=document.createElement("div");
A.setFullscreenQuickActions(R.quickActionButtonsContainer);var Y=function(){return R.quickActionsViewModel().quickActionButtons||[]},P=_.KQ(R.quickActionButtonsContainer,function(){return _.V(A6$,{data:Y})},"Tk");
R.addOnDisposeCallback(function(){A.setFullscreenQuickActions(void 0);P()})}else _.pK(new _.XN("setFullscreenQuickActions not defined",{playerApi:Object.keys(A),
isReady:A.isReady(),appState:A.getAppState()}))},zUf=function(R,A){if(!R.playerOverlayVideoDetailsRendererContainer)if(A.setPlayerOverlayVideoDetailsRenderer){R.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
A.setPlayerOverlayVideoDetailsRenderer(R.playerOverlayVideoDetailsRendererContainer);var Y=_.KQ(R.playerOverlayVideoDetailsRendererContainer,function(){return _.V(RUb,{data:R.playerOverlayVideoDetailsRenderer})},"Uk");
R.addOnDisposeCallback(function(){A.setPlayerOverlayVideoDetailsRenderer(void 0);Y()})}else _.pK(new _.XN("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(A),
isReady:A.isReady(),appState:A.getAppState()}))};_.WW=function(R){_.KJ.call(this);var A=this;this.JSC$22898_watchApi=R;this.JSC$22898_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;R=_.Fq(_.Yp(),_.FW,function(Y){A.onFullscreenChanged(Y)});
this.addOnDisposeCallback(R);R=_.Fq(_.Yp(),_.Ce,function(Y){A.onWatchScroll(Y)});
this.addOnDisposeCallback(R);_.v("kevlar_watch_while_v2")&&(R=_.Fq(_.Yp(),_.BK,function(Y){iXo(A,Y)}),this.addOnDisposeCallback(R));
lix(this);x9$(this);c6x();this.onWatchScroll(_.Ce(_.Yp().getState()));_.CQ("START_IN_FULL_WINDOW_MODE")&&this.JSC$22898_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.H(_.WW,_.KJ);var lix=function(R){R.JSC$22898_watchApi.registerActionHandler("yt-fullscreen-change-action",function(A){var Y=R.JSC$22898_watchApi.isActive();A&&!Y||_.Yp().dispatch(_.cK({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!A}}))});
R.addOnDisposeCallback(function(){R.JSC$22898_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},x9$=function(R){var A,Y;
_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22898_watchApi.playerApi,2);A=P.yieldResult;Y=function(){R.onFullerscreenEduClicked()};
A.addEventListener("onFullerscreenEduClicked",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onFullerscreenEduClicked",Y)});
_.XH(P)})};
_.WW.prototype.onFullscreenChanged=function(R){var A=this,Y;return _.O(function(P){if(P.nextAddress==1)return A.isFullscreen=!!_.EC(),P.yield(A.JSC$22898_watchApi.playerApi,2);Y=P.yieldResult;A.JSC$22898_miniplayerActive||Y.setFauxFullscreen(A.isFullscreen);if(R&&(A.JSC$22898_watchApi.focusOnPlayer(),!A.fullerscreenEduButtonShownThisPlayback)){A.fullerscreenEduButtonShownThisPlayback=!0;var E=_.K1("yt-fullerscreen-edu-button-shown-count")||0;_.Im("yt-fullerscreen-edu-button-shown-count",E+1,31536E3);
A.updateFullerscreenEduButtonSubtleModeState()}_.XH(P)})};
var iXo=function(R,A){var Y;_.O(function(P){if(P.nextAddress==1)return R.JSC$22898_miniplayerActive=A,P.yield(R.JSC$22898_watchApi.playerApi,2);Y=P.yieldResult;Y.setFauxFullscreen(!R.JSC$22898_miniplayerActive&&R.isFullscreen);_.XH(P)})};
_.WW.prototype.onWatchScroll=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1)return _.v("external_fullscreen_with_edu")?E.yield(A.JSC$22898_watchApi.playerApi,2):E.return();Y=E.yieldResult;P=R<=0;A.shouldShowFullerscreenEdu!==P&&(A.shouldShowFullerscreenEdu=P,Y.updateFullerscreenEduButtonVisibility(!A.shouldShowFullerscreenEdu));_.XH(E)})};
_.WW.prototype.onFullerscreenEduClicked=function(){this.JSC$22898_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var R=_.K1("yt-fullerscreen-edu-button-click-count")||0;_.Im("yt-fullerscreen-edu-button-click-count",R+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.WW.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var R=this,A,Y,P,E,z,c;return _.O(function(M){if(M.nextAddress==1)return A=_.K1("yt-fullerscreen-edu-button-click-count")||0,Y=_.K1("yt-fullerscreen-edu-button-shown-count")||0,P=_.cU("external_fullscreen_button_click_threshold"),E=_.cU("external_fullscreen_button_shown_threshold"),z=A>=P||Y>=E,M.yield(R.JSC$22898_watchApi.playerApi,2);c=M.yieldResult;c.updateFullerscreenEduButtonSubtleModeState(z);_.XH(M)})};
_.WW.prototype.disposeInternal=function(){_.KJ.prototype.disposeInternal.call(this);var R=_.EC();_.v("kevlar_exit_fullscreen_leaving_watch")&&R&&_.zi(R)};
var c6x=function(){if(_.v("web_watch_add_viewport_meta_tag")){var R=document.querySelector("meta[name=viewport]"),A=document.head;A&&!R&&(R=document.createElement("meta"),R.name="viewport",R.content="width=device-width, initial-scale=1.0, viewport-fit=cover",A.appendChild(R))}};_.Mqb=function(R){_.KJ.call(this);var A=this;this.JSC$22902_watchApi=R;this.jobId=0;this.pendingRequestId=void 0;var Y=this.JSC$22902_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){OXD(A)});
this.addOnDisposeCallback(function(){A.JSC$22902_watchApi.unsubscribeByKey(Y)});
OXD(this)};
_.H(_.Mqb,_.KJ);var sNx=function(R){_.fn.cancelJob(R.jobId);R.pendingRequestId=void 0},OXD=function(R){sNx(R);
var A=Ofq(R.JSC$22902_watchApi.getWatchNextResponse());if(A){var Y=250,P,E=(P=_.n(A,_.b_A))==null?void 0:P.initialDelayMs;_.v("web_watch_updated_metadata_server_initial_delay")&&E&&(Y=E);R.jobId=_.fn.addLowPriorityJob(function(){return R.fetchUpdatedMetadata(A)},Y)}};
_.Mqb.prototype.fetchUpdatedMetadata=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p;return _.O(function(h){switch(h.nextAddress){case 1:A&&(P={continuation:A});if(!_.v("web_get_updated_metadata_fantasy_panel_continuation_params")){h.jumpTo(2);break}E=_.is().resolve(_.tC);z="PAsports_fantasy";return h.yield(E.isVisible(z,!0),3);case 3:h.yieldResult&&(y=(M=(c=E).getUpdatePanelContinuationData)==null?void 0:(N=M.call(c,z))==null?void 0:N.updatePanelContinuationRequest)&&(P||(P={}),P.clientParams=
{panelContinuationParams:{panelContinuation:y}});case 2:m=_.is().resolve(_.Co);if(!m)return _.bj(Error("Lo")),h.return();T={};Y.pendingRequestId=T;return h.yield(_.uh(m,R,P),4);case 4:Q=h.yieldResult;if(T!==Y.pendingRequestId)return h.return();I=(g=Q)==null?void 0:(r=g.continuation)==null?void 0:r.timedContinuationData;((b=I)==null?0:b.continuation)&&((p=I)==null?0:p.timeoutMs)&&(Y.jobId=_.fn.addLowPriorityJob(function(){return Y.fetchUpdatedMetadata(R,I.continuation)},I.timeoutMs));
_.XH(h)}})};
_.Mqb.prototype.disposeInternal=function(){_.KJ.prototype.disposeInternal.call(this);sNx(this)};var NEZ=_.E5(function(R){var A=_.Qi(function(){var P=R.data().videoId;if(R.active())P=_.zX(P),_.is().resolve(_.ls).resolveCommand(P);else{var E=R.playerApi(),z=E.getAvailableAudioTracks(),c,M,N=(c=R.sourceVideoConfig().audioTracks)==null?void 0:(M=c.find(function(y){return y.isDefaultForSource}))==null?void 0:M.id;
if(z=z.find(function(y){return y.getLanguageInfo().getId()===N}))E.setAudioTrack(z,!0),E.setCompositeParam({activeVideoId:P}),R.setActiveSourceId(P)}}),Y={};
return _.V("ytw-composite-source-video-overlay",{class:_.To("ytwCompositeSourceVideoOverlayHost",(Y.ytwCompositeSourceVideoOverlayActive=R.active,Y.ytwCompositeSourceVideoOverlayInteracting=R.interacting,Y)),style:_.nY({left:function(){var P;return((P=R.data().topLeftCornerX)!=null?P:0)*100+"%"},
top:function(){var P;return((P=R.data().topLeftCornerY)!=null?P:0)*100+"%"},
width:function(){var P;return((P=R.data().width)!=null?P:0)*100+"%"},
height:function(){var P;return((P=R.data().height)!=null?P:0)*100+"%"}}),
"on:click":A},_.V("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Vk");var Vqb=_.E5(function(R){var A=_.x(_.gl(function(){var c,M=(c=R.data().sources)==null?void 0:c.find(function(N){return N.isActive});
if(M)return M.videoId})),Y=A.next().value,P=A.next().value;
A=_.x(_.yy(!1,void 0,"WI4BUb"));var E=A.next().value,z=A.next().value;return _.V("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.Qi(function(){z(!0)}),
"on:mouseout":_.Qi(function(){z(!1)})},_.V(_.J,{cond:function(){return R.data().sources},
then:function(c){return _.V(_.Ue,{each:c},function(M){return _.V(NEZ,{data:M,active:function(){return M.videoId===Y()},
setActiveSourceId:P,interacting:E,playerApi:R.playerApi,sourceVideoConfig:function(){return MGo(R.compositeVideoConfig(),M.videoId)}})})}}))},"Wk");_.m9b=function(R){_.KJ.call(this);this.JSC$22918_watchApi=R;R=_.x(_.yy({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=R.next().value;this.setCompositeVideoOverlayRenderer=R.next().value;R=_.x(_.yy({},void 0,"OlaJpc"));this.compositeVideoConfig=R.next().value;this.setCompositeVideoConfig=R.next().value;J6Z(this);y6x(this)};
_.H(_.m9b,_.KJ);var J6Z=function(R){var A=R.JSC$22918_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){y6x(R)});
R.addOnDisposeCallback(function(){R.JSC$22918_watchApi.unsubscribeByKey(A)})},TED=function(R){var A;
return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.JSC$22918_watchApi.playerApi,2);A=Y.yieldResult;A.setCompositeVideoOverlayRendererComponent(R.container);_.XH(Y)})},QNR=function(R){var A;
return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.JSC$22918_watchApi.playerApi,2);A=Y.yieldResult;A.setCompositeVideoOverlayRendererComponent(void 0);_.XH(Y)})},v0E=function(R){var A,Y;
return _.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22918_watchApi.playerApi,2);A=P.yieldResult;R.container=document.createElement("div");Y=_.KQ(R.container,function(){return _.V(Vqb,{data:R.compositeVideoOverlayRenderer,compositeVideoConfig:R.compositeVideoConfig,playerApi:A})},"Xk");
R.addOnDisposeCallback(Y);_.XH(P)})},y6x=function(R){var A,Y,P,E,z,c,M,N;
_.O(function(y){return y.nextAddress==1?(A=R.JSC$22918_watchApi.getPlayerResponse(),z=_.n((Y=A)==null?void 0:(P=Y.overlay)==null?void 0:(E=P.playerControlsOverlayRenderer)==null?void 0:E.compositeVideoOverlay,zbZ),N=(c=A)==null?void 0:(M=c.playerConfig)==null?void 0:M.compositeVideoConfig,z&&R.setCompositeVideoOverlayRenderer(z),N&&R.setCompositeVideoConfig(N),z&&N?R.container?y.jumpTo(6):y.yield(v0E(R),6):g0f(R)?y.yield(QNR(R),0):y.jumpTo(0)):g0f(R)?y.jumpTo(0):y.yield(TED(R),0)})},g0f=function(R){var A;
return!((A=R.container)==null||!A.parentElement)};
_.m9b.prototype.disposeInternal=function(){g0f(this)&&QNR(this);_.KJ.prototype.disposeInternal.call(this)};_.U9o=function(R){_.KJ.call(this);var A=this;this.JSC$22924_watchApi=R;var Y=this.JSC$22924_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var P=A.JSC$22924_watchApi.getPlayerResponse();if(P){var E,z;if(P=_.n((E=P.endscreen)==null?void 0:(z=E.endscreenRenderer)==null?void 0:z.hideButton,_.iS)){var c;(c=A.setEndscreenHideButton)==null||c.call(A,P);n0b(A)}}});
this.addOnDisposeCallback(function(){A.JSC$22924_watchApi.unsubscribeByKey(Y)});
R=_.x(_.yy({},void 0,"ER3tqb"));this.endscreenHideButton=R.next().value;this.setEndscreenHideButton=R.next().value;HXD(this);r6g(this);D9g(this)};
_.H(_.U9o,_.KJ);
var n0b=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return R.creatorEndscreenHideButtonContainer?P.return():P.yield(R.JSC$22924_watchApi.playerApi,2);A=P.yieldResult;R.creatorEndscreenHideButtonContainer=document.createElement("div");_.dz(R.creatorEndscreenHideButtonContainer,!1);A.setCreatorEndscreenHideButton(R.creatorEndscreenHideButtonContainer);Y=_.KQ(R.creatorEndscreenHideButtonContainer,function(){return _.V(_.uF,{data:R.endscreenHideButton,useOutlinedIcon:!0})},"Yk");
R.addOnDisposeCallback(function(){Y();var E;(E=A)==null||E.setCreatorEndscreenHideButton(void 0)});
_.XH(P)})},HXD=function(R){var A,Y;
_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22924_watchApi.playerApi,2);A=P.yieldResult;Y=function(){R.creatorEndscreenHideButtonContainer&&_.dz(R.creatorEndscreenHideButtonContainer,!0)};
A.addEventListener("endscreenelementshown",Y);R.addOnDisposeCallback(function(){var E;(E=A)==null||E.removeEventListener("endscreenelementshown",Y)});
_.XH(P)})},r6g=function(R){var A=function(){R.creatorEndscreenHideButtonContainer&&_.dz(R.creatorEndscreenHideButtonContainer,!1)},Y=R.JSC$22924_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",A),P=R.JSC$22924_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",A);
R.addOnDisposeCallback(function(){R.JSC$22924_watchApi.unsubscribeByKey(Y);R.JSC$22924_watchApi.unsubscribeByKey(P)})},D9g=function(R){R.JSC$22924_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(A){var Y=_.n(A,dgg);
R.JSC$22924_watchApi.playerApi.then(function(P){P==null||P.setCreatorEndscreenVisibility(!!Y.hide)})});
R.addOnDisposeCallback(function(){R.JSC$22924_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.XVE=function(R){_.KJ.call(this);this.JSC$22930_watchApi=R;$9$(this)};
_.H(_.XVE,_.KJ);var $9$=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22930_watchApi.playerApi,2);A=P.yieldResult;Y=function(E){_.Yp().dispatch(_.cK({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:E}}))};
A.addEventListener("onRetroModeChanged",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onRetroModeChanged",Y)});
_.XH(P)})};var QHf=0,kG=0,gnx=0;var S9e;S9e=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.jh=function(R){_.KJ.call(this);this.JSC$22943_watchApi=R;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;Iie(this)};
_.H(_.jh,_.KJ);
var Iie=function(R){var A,Y,P;_.O(function(E){if(E.nextAddress==1)return E.yield(R.JSC$22943_watchApi.playerApi,2);A=E.yieldResult;if(R.isDisposed())return E.return();R.sessionStorage=_.XtG("yt-sleep-timer");R.sessionStorage||_.pK(new _.XN("SessionStorage for Sleep Timer is undefined."));((Y=R.sessionStorage)==null?void 0:Y.get("yt-sleep-timer"))==="true"&&(r9o(),(P=R.sessionStorage)==null||P.remove("yt-sleep-timer"),A.syncVolume());Kfb(R,A);Wfo(R,A);jN$(R,A);_.XH(E)})},Kfb=function(R,A){var Y=function(y){R.onSleepTimerSettingsChanged(y,
A)},P=function(y){R.onPlayerStateChange(y,A)},E=function(){R.onLoopChange(A)},z=function(){R.onCloseMiniplayer(A)},c=function(){Tob(A,(0,_.iB)(),DgR(A),R.selectedOption==="End of video",A.getPlayerState()!==1)},M=function(){R.onSeekComplete(A)},N=function(){_.fn.cancelJob(kG);
var y=A.getCurrentTime()>=A.getDuration(),m=R.selectedOption==="End of video"||R.selectedOption==="End of playlist"&&!J9e(R.playlistId);y&&m&&bXq(R,A)};
A.addEventListener("onSleepTimerSettingsChanged",Y);A.addEventListener("onLoopChange",E);A.addEventListener("onLoopRangeChange",E);A.addEventListener("onStateChange",P);A.addEventListener("onCloseMiniplayer",z);A.addEventListener("onSleepTimerFeatureAvailable",c);A.addEventListener("SEEK_COMPLETE",M);A.addEventListener("onAdStart",N);R.addOnDisposeCallback(function(){A.removeEventListener("onSleepTimerSettingsChanged",Y);A.removeEventListener("onLoopChange",E);A.removeEventListener("onLoopRangeChange",
E);A.removeEventListener("onStateChange",P);A.removeEventListener("onCloseMiniplayer",z);A.removeEventListener("onSleepTimerFeatureAvailable",c);A.removeEventListener("SEEK_COMPLETE",M);A.removeEventListener("onAdStart",N)})},Wfo=function(R,A){var Y=R.JSC$22943_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var P=A.getVideoData().video_id,E,z=(E=NoR(R.JSC$22943_watchApi))==null?void 0:E.playlistId;
R.pauseAutonavPlayback&&(A.pauseVideo(),A.syncVolume(),R.pauseAutonavPlayback=!1);if(R.selectedOption==="End of video"&&P!==R.videoId)bv(R,A);else{if(R.selectedOption==="End of playlist"){E=J9e(R.playlistId);if(z!==R.playlistId){bv(R,A);break a}E?E&&fib(R,A):pVb(R,A)}R.videoId=P;R.playlistId=z}}});
R.addOnDisposeCallback(function(){R.JSC$22943_watchApi.unsubscribeByKey(Y)})},jN$=function(R,A){var Y=_.is().resolve(_.PX),P=_.Fq(Y,_.AdP,function(z){z&&R.selectedOption!=="Off"&&bv(R,A)}),E=R.JSC$22943_watchApi.subscribeToActiveChanged(function(z){var c,M;
return _.O(function(N){if(N.nextAddress==1)return N.yield(_.f_().navigationFinishPromise,2);c=!_.LKH();M=_.is().resolve(_.jv).isMiniplayerActive();z||!sHf(R.selectedOption)||M||c||bv(R,A);_.XH(N)})},!1);
Y=_.Fq(Y,function(z){return z.entities.playlistLoopStateEntity||{}},function(z){z=z===void 0?{}:z;
var c=VGf(R.JSC$22943_watchApi);if(c){var M;((M=z[c])==null?void 0:M.state)==="PLAYLIST_LOOP_STATE_ALL"&&sHf(R.selectedOption)&&bv(R,A)}});
R.addOnDisposeCallback(P);R.addOnDisposeCallback(Y);R.addOnDisposeCallback(E)};
_.jh.prototype.onSleepTimerSettingsChanged=function(R,A){switch(R){case "Off":this.selectedOption!=="Off"&&bv(this,A);break;case "End of video":case "End of playlist":FfR(this,R,A);break;default:FfR(this,R,A,S9e.get(R))}};
_.jh.prototype.onLoopChange=function(R){(R.getLoopVideo()||R.getLoopRange())&&sHf(this.selectedOption)&&bv(this,R)};
_.jh.prototype.onCloseMiniplayer=function(R){sHf(this.selectedOption)&&bv(this,R)};
var FfR=function(R,A,Y,P){BEe(R,Y);R.selectedOption=A;R.videoId=Y.getVideoData().video_id;R.playlistId="";var E;(E=R.sessionStorage)==null||E.set("yt-sleep-timer","true");R.adjustmentsCount++;Tob(Y,(0,_.iB)(),DgR(Y),R.selectedOption==="End of video");if(R.selectedOption==="End of video")pVb(R,Y),aib(R,Y);else if(R.selectedOption==="End of playlist"){aib(R,Y);var z,c;R.playlistId=(c=(z=NoR(R.JSC$22943_watchApi))==null?void 0:z.playlistId)!=null?c:"";J9e(R.playlistId)||pVb(R,Y)}else P&&(R.presetFadeSchedulerId=
_.$H(_.fn,function(){nnE(Y,15E3)},P-15E3),R.presetPauseSchedulerId=_.$H(_.fn,function(){bXq(R,Y)},P),vnb(Y,(0,_.iB)(),P))},bXq=function(R,A){if(R.JSC$22943_watchApi.isActive()){var Y={dismissDialogEndpoint:{}};
var P={commandExecutorCommand:{commands:[Y,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};Y={buttonViewModel:{title:_.vk("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Y}}};P={buttonViewModel:{title:_.vk("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:P}}};var E={dialogHeaderViewModel:{headline:{content:_.vk("SLEEP_TIMER_ENDED_TITLE")}}},
z={basicContentViewModel:{paragraphs:[{text:{content:_.vk("SLEEP_TIMER_ENDED_TEXT")}}]}};Y={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:E,content:z,footer:{panelFooterViewModel:{primaryButton:Y,secondaryButton:P,shouldHideDivider:!0}}}}}}};_.is().resolve(_.ls).resolveCommand(Y,{form:{element:R}})}else r9o();CmL(R,!1);hUL(R,A);A.pauseVideo();_.mA.getInstance().getState()===2&&A.getPlayerState()===5&&(R.pauseAutonavPlayback=!0)},bv=function(R,A){CmL(R,!0);
hUL(R,A);r9o()},hUL=function(R,A){BEe(R,A);
R.selectedOption="Off";R.videoId="";R.playlistId="";R.adjustmentsCount=0;var Y;(Y=R.sessionStorage)==null||Y.remove("yt-sleep-timer");_.fn.cancelJob(QHf);A.resetSleepTimerMenuSettings()},CmL=function(R,A){A={timer_length_adjustment_times_during_session:R.adjustmentsCount-1,
is_session_cancelled:A};switch(R.selectedOption){case "Off":A.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":A.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":A.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:A.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",A.option_duration_in_minutes=S9e.get(R.selectedOption)/6E4}_.Wj("sleepTimerSessionFinishEvent",A)};
_.jh.prototype.onPlayerStateChange=function(R,A){R===1?Tob(A,(0,_.iB)(),DgR(A),this.selectedOption==="End of video"):R===0?(_.fn.cancelJob(kG),A.setVideoTimeLeft(mgf(0,0))):R===2&&_.fn.cancelJob(kG);this.selectedOption==="End of video"?R===0?bXq(this,A):R===2&&Hfb(A):this.selectedOption!=="End of playlist"||J9e(this.playlistId)||(R===0?bXq(this,A):R===2&&Hfb(A))};
_.jh.prototype.onSeekComplete=function(R){R.getPlayerState()===2&&Tob(R,(0,_.iB)(),DgR(R),this.selectedOption==="End of video",!0)};
_.jh.prototype.onCueRangeEnter=function(R,A){R==="sleep-timer-fade-audio"&&nnE(A,(A.getDuration()-A.getProgressState().current)*1E3)};
_.jh.prototype.onCueRangeExit=function(R,A){R==="sleep-timer-fade-audio"&&A.getPlayerState()!==0&&Hfb(A,!0)};
var pVb=function(R,A){A.addCueRange("sleep-timer-fade-audio",A.getDuration()-15,A.getDuration());A.addEventListener("onCueRangeEnter",function(Y){R.onCueRangeEnter(Y,A)});
A.addEventListener("onCueRangeExit",function(Y){R.onCueRangeExit(Y,A)})},fib=function(R,A){A.removeCueRange("sleep-timer-fade-audio");
A.removeEventListener("onCueRangeEnter",function(Y){R.onCueRangeEnter(Y,A)});
A.removeEventListener("onCueRangeExit",function(Y){R.onCueRangeExit(Y,A)})},BEe=function(R,A){sHf(R.selectedOption)?fib(R,A):(_.fn.cancelJob(R.presetPauseSchedulerId),_.fn.cancelJob(R.presetFadeSchedulerId),R.presetPauseSchedulerId=0,R.presetFadeSchedulerId=0);
Hfb(A,!0)},aib=function(R,A){A.setLoop(!1);
A.setLoopVideo(!1);A.setLoopRange(null);(R=VGf(R.JSC$22943_watchApi))&&_.is().resolve(_.PX).dispatch(_.HT("playlistLoopStateEntity",R,{key:R,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.ZXf=function(R){_.KJ.call(this);this.JSC$22946_watchApi=R;o0b(this);k8L(this);G8f(this);R=R.getRoot();if(R.is==="ytd-watch-flexy"||R.is==="ytd-watch-grid")R.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.pSo();_.v("web_watch_log_theater_mode_cookie_state")&&_.HU.get("wide","0")==="1"&&_.Bpu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.H(_.ZXf,_.KJ);var o0b=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22946_watchApi.playerApi,2);A=P.yieldResult;Y=function(E){tqq(R,!!E)};
A.addEventListener("SIZE_CLICKED",Y);R.addOnDisposeCallback(function(){A.removeEventListener("SIZE_CLICKED",Y)});
_.XH(P)})},k8L=function(R){R.JSC$22946_watchApi.registerActionHandler("yt-toggle-theater-mode",function(A,Y){tqq(R,A,Y===void 0?!0:Y)});
R.addOnDisposeCallback(function(){R.JSC$22946_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.ZXf.prototype.getState=function(){return _.pY(_.Yp().getState())};
var tqq=function(R,A,Y){Y=Y===void 0?!0:Y;var P,E,z,c=_.v("enable_player_resize_transition")&&!!R.JSC$22946_watchApi.getWatchNextResponse()&&!((P=R.JSC$22946_watchApi.getWatchNextResponse())==null?0:(E=P.contents)==null?0:(z=E.twoColumnWatchNextResults)==null?0:z.conversationBar);_.$9N(function(){_.Yp().dispatch(_.cK({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:A}}));_.v("theater_mode_scroll_to_top_killswitch")||R.JSC$22946_watchApi.scrollWatchTo(0,!1);_.EC()&&_.v("external_fullscreen")&&_.zi(document.documentElement);
G8f(R);Y&&_.rr("wide",A?"1":"0",-1);_.OC(R.JSC$22946_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);R.JSC$22946_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:A});A&&_.pSo()},{shouldWrap:c})},G8f=function(R){var A;
_.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.JSC$22946_watchApi.playerApi,2);A=Y.yieldResult;A.setSizeStyle(!0,R.getState());_.XH(Y)})};var eUc=function(R){_.KJ.call(this);var A=this;this.playerApi=R;this.timeToPanelSyncKeyMap={};var Y;if(R==null?0:(Y=R.isReady)==null?0:Y.call(R)){Y=_.Fq(_.is().resolve(_.PX),function(E){return E.entities.timedMarkersListSyncEntity||{}},function(E,z){E=E===void 0?{}:E;
z=z===void 0?{}:z;for(var c=_.x(Object.keys(z)),M=c.next();!M.done;M=c.next())M=M.value,E[M]!==z[M]&&wVx(A,z[M]);z=_.x(Object.keys(E));for(c=z.next();!c.done;c=z.next())c=c.value,M=E[c],A.timeToPanelSyncKeyMap[c]&&uFD(A,M)});
this.addOnDisposeCallback(Y);var P=function(E){A.onCueRangeEnter(E)};
R.addEventListener("onCueRangeEnter",P);this.addOnDisposeCallback(function(){var E;(E=R.removeEventListener)==null||E.call(R,"onCueRangeEnter",P)})}};
_.H(eUc,_.KJ);
var uFD=function(R,A){var Y,P;if((Y=R.playerApi)==null?0:(P=Y.isReady)==null?0:P.call(Y)){var E;if((Y=A==null?void 0:(E=A.timedListData)==null?void 0:E.sections)&&A!=null&&A.key)for(E=_.x(Y),Y=E.next();!Y.done;Y=E.next())if(Y=Y.value,Y.timedSyncDataList&&Y.sectionId)for(P=0;P<Y.timedSyncDataList.length;P++){var z=Y.timedSyncDataList[P];z.syncItemId&&R.playerApi.addCueRange(Y.sectionId+"_"+A.key+"_"+z.syncItemId,Number(z.videoTimeMs)/1E3,P===Y.timedSyncDataList.length-1?0x8000000000000:Number(Y.timedSyncDataList[P+
1].videoTimeMs)/1E3)}}},wVx=function(R,A){var Y,P;
if((Y=R.playerApi)==null?0:(P=Y.isReady)==null?0:P.call(Y)){var E;if((Y=A==null?void 0:(E=A.timedListData)==null?void 0:E.sections)&&A!=null&&A.key)for(E=_.x(Y),Y=E.next();!Y.done;Y=E.next())if(Y=Y.value,Y.timedSyncDataList&&Y.sectionId){P=_.x(Y.timedSyncDataList);for(var z=P.next();!z.done;z=P.next())z=z.value,z.syncItemId&&R.playerApi.removeCueRange(Y.sectionId+"_"+A.key+"_"+z.syncItemId)}}};
eUc.prototype.onCueRangeEnter=function(R){for(var A=_.x(Object.keys(this.timeToPanelSyncKeyMap)),Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=_.x(R.split("_"+Y+"_")),E=P.next().value;P=P.next().value;if(E&&P){R=_.is().resolve(_.PX);A=this.timeToPanelSyncKeyMap[Y];var z=_.hnP(R.getState(),A);Y=q9E(Y,E,P);if(Y===-1)break;Y={activeSyncId:P,activeItemIndex:Y,activeSectionInfo:{sectionIdentifier:E}};z?R.dispatch(_.I9("markersEngagementPanelSyncEntity",A,Y)):R.dispatch(_.HT("markersEngagementPanelSyncEntity",
A,Object.assign({},{key:A},Y)));break}}};
var q9E=function(R,A,Y){var P=_.is().resolve(_.PX),E,z;R=(E=KSE(P.getState(),R))==null?void 0:(z=E.timedListData)==null?void 0:z.sections;if(!R)return-1;E=0;z=_.x(R);for(R=z.next();!R.done;R=z.next()){R=R.value;P=R.timedSyncDataList||[];if(R.sectionId===A)return A=P.findIndex(function(c){return c.syncItemId===Y}),A===-1?A:E+A;
E+=P.length}return-1};_.RAo=function(R){_.KJ.call(this);var A=this;this.JSC$22959_watchApi=R;this.unresolvedCommands=[];this.JSC$22959_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(Y){Lfb(A,Y)});
this.addOnDisposeCallback(function(){A.JSC$22959_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
d9q(this)};
_.H(_.RAo,_.KJ);var d9q=function(R){var A;_.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.JSC$22959_watchApi.playerApi,2);A=Y.yieldResult;if(R.isDisposed())return Y.return();R.timedSyncObserver=new eUc(A);R.unresolvedCommands.length&&(R.unresolvedCommands.forEach(function(P){return Lfb(R,P)}),R.unresolvedCommands=[]);
_.gz(R,R.timedSyncObserver);_.XH(Y)})},Lfb=function(R,A){if(R.timedSyncObserver){var Y=_.n(A,Abo);
if(Y&&Y.timedSyncEntityKey&&Y.panelSyncEntityKey){R=R.timedSyncObserver;A=Y.timedSyncEntityKey;var P=Y.panelSyncEntityKey;Y=!!Y.isEnabled;Y=Y===void 0?!0:Y;var E=_.is().resolve(_.PX);E=KSE(E.getState(),A);Y?R.timeToPanelSyncKeyMap[A]||(R.timeToPanelSyncKeyMap[A]=P,uFD(R,E)):(delete R.timeToPanelSyncKeyMap[A],wVx(R,E))}}else R.unresolvedCommands.push(A)};var Av$=_.E5(function(R){var A=R.data,Y=R.maybeLogSmartSkipClientData,P=null,E=null,z=_.v("web_enable_auto_focus_for_timely_action_button"),c=function(){P=document.activeElement},M=function(){A().smartSkipMetadata&&(P=document.activeElement,_.cLg(function(){return E}))},N=function(m){if(A().smartSkipMetadata&&(!m||m.key!=="Enter")){P&&P.isConnected&&(_.cLg(function(){return P}),P=null);
var T;(T=E)==null||T.blur()}};
R=_.Qi(function(){Y==null||Y(!0,A());return!1});
var y=_.zo(_.fi(function(){return A().rendererContext},{onTap:function(m,T){T({disableClickTracking:!0})}}),_.zR({visibilityCallback:function(m){if(z)m?E&&A().smartSkipMetadata&&(M(),document.addEventListener("focusin",c)):(document.removeEventListener("focusin",c),N());
else if(m){m=_.jd(A().rendererContext);var T=Number(A().maxVisibleDurationMilliseconds),Q,g=(Q=_.n(A().rendererContext,_.Kd))==null?void 0:Q.label;m&&T&&g&&(Q={label:g,command:m,durationMs:T},_.is().resolve(_.Ga).enqueue(Q))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.WD(function(){if(z){var m;if((E=(m=y.value)==null?void 0:m.querySelector("button"))&&A().smartSkipMetadata){var T;(T=y.value)==null||T.addEventListener("keydown",N)}}});
_.bm(function(){z&&(E&&A().smartSkipMetadata&&E.removeEventListener("keydown",N),document.removeEventListener("focusin",c),N())});
return _.V("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:y,"on:click":R},_.V(_.ni,{data:function(){return A().content}},{buttonViewModel:_.Is}))},"Zk");var Yeb=_.E5(function(R){var A=R.data,Y=R.playerApi,P=_.is().resolve(_.Nf9);R=_.x(_.gl(function(){A()}));
var E=R.next().value,z=R.next().value,c=function(){return XFq(A(),E())},M=function(y,m){var T,Q,g=(T=_.n(m==null?void 0:m.rendererContext,_.Dc))==null?void 0:(Q=T.loggingDirectives)==null?void 0:Q.trackingParams;
if((m=m==null?void 0:m.smartSkipMetadata)&&m.loggingData&&(Q=m.loggingData,m=Q.algorithmId,T=Q.startMilliseconds,Q=Q.endMilliseconds,m&&T!==void 0&&Q!==void 0)){var r,I;y={smartSkipData:Object.assign({},{versionName:m,startMediaTimeMs:T,endMediaTimeMs:Q},y&&{userInteractionMediaTimeMs:(Math.floor(((r=_.EJ())==null?void 0:(I=r.getPlayer())==null?void 0:I.getCurrentTime())||0)*1E3).toString()})};r=_.F9();var b;g&&(b=_.S5(g));r&&b&&_.dH(r,b,y)}},N=function(y,m){var T=XFq(A(),y);
if(T){var Q=_.n(T,$gR),g;if(g=m)g=Y(),T=_.n(T,$gR),g=T!=null&&T.smartSkipMetadata?!(g==null?0:g.isSameMarkerTypeVisible((T==null?void 0:T.smartSkipMetadata.markerKey)||"")):!0;if(g){var r,I;(Q==null?0:(r=Q.smartSkipMetadata)==null?0:(I=r.loggingData)==null?0:I.isCounterfactual)||(M(!1,Q),z(y))}else m||E()!==y||z(void 0)}};
_.jq(function(){var y=A().timelyActions;if(y){y=_.x(y);for(var m=y.next();!m.done;m=y.next()){m=_.n(m.value,$gR);var T=void 0;(T=m)!=null&&T.cueRangeId&&P.timelyActionsMap.set(m.cueRangeId,N)}_.bm(function(){P.timelyActionsMap.clear()})}},"PSaw4c");
return _.V("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.V(_.ni,{data:c},{timelyActionViewModel:function(y){return _.V(Av$,{data:y.data,maybeLogSmartSkipClientData:function(){M(!0,_.n(c(),$gR))}})}}))},"$k");_.EWx=function(R){_.KJ.call(this);this.JSC$22971_watchApi=R;R=_.x(_.yy({},void 0,"UN7k5e"));this.timelyActionsOverlay=R.next().value;this.setTimelyActionsOverlay=R.next().value;PIR(this)};
_.H(_.EWx,_.KJ);var PIR=function(R){var A,Y,P,E;_.O(function(z){if(z.nextAddress==1)return zAD(R),iQD(R),R.timelyActionsContainer=document.createElement("div"),z.yield(R.JSC$22971_watchApi.playerApi,2);A=z.yieldResult;(P=(Y=A).insertTimelyActionUi)==null||P.call(Y,R.timelyActionsContainer);E=_.KQ(R.timelyActionsContainer,function(){return _.V(Yeb,{data:R.timelyActionsOverlay,playerApi:A})},"al");
R.addOnDisposeCallback(E);_.XH(z)})},iQD=function(R){var A=R.JSC$22971_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){zAD(R)});
R.addOnDisposeCallback(function(){R.JSC$22971_watchApi.unsubscribeByKey(A)})},zAD=function(R){var A=R.JSC$22971_watchApi.getWatchNextResponse();
if(A){var Y,P;if(A=_.n((Y=A.playerOverlays)==null?void 0:(P=Y.playerOverlayRenderer)==null?void 0:P.timelyActionsOverlayViewModel,Yg$)){var E;(E=R.setTimelyActionsOverlay)==null||E.call(R,A)}}};_.xIx=function(R){_.KJ.call(this);this.JSC$22975_watchApi=R;lrD(this)};
_.H(_.xIx,_.KJ);var lrD=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22975_watchApi.playerApi,2);A=P.yieldResult;Y=function(E){_.Qp.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.n(E,_.LGj)},popupType:"TOAST"}})};
A.addEventListener("onYtShowToast",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onYtShowToast",Y)});
_.XH(P)})};var cvf,s1Z,mIe,OQR,MOL,yvo,VOZ,Jvx,TuE,Q1g;cvf=!1;_.NuR=function(R){_.KJ.call(this);this.JSC$22978_watchApi=R;this.fullscreen=this.theater=!1;OQR(this);MOL(this);s1Z(this)};
_.H(_.NuR,_.KJ);s1Z=function(R){var A,Y,P;_.O(function(E){if(E.nextAddress==1)return E.yield(R.JSC$22978_watchApi.playerApi,2);A=E.yieldResult;if(R.isDisposed())return E.return();Y=R.JSC$22978_watchApi.getElement("CINEMATICS");if(!Y)return E.return();R.JSC$22978_cinematicController=new _.QV(Y,A);_.gz(R,R.JSC$22978_cinematicController);_.vqq(R.JSC$22978_cinematicController);VOZ(R,_.Kuk());P=R.JSC$22978_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(z){Jvx(R,z)});
R.addOnDisposeCallback(function(){R.JSC$22978_watchApi.unsubscribeByKey(P)});
yvo(R);Jvx(R,R.JSC$22978_cinematicController.isAllowed());_.v("web_cinematic_manager_redux_killswitch")?_.f8(R,R.fullscreen,R.theater):mIe(R);TuE(R);_.XH(E)})};
mIe=function(R){R.fullscreen=_.FW(_.Yp().getState());R.theater=_.pY(_.Yp().getState());_.f8(R,R.fullscreen,R.theater);var A=_.Fq(_.Yp(),_.FW,function(P){R.fullscreen=P;_.f8(R,R.fullscreen,R.theater)}),Y=_.Fq(_.Yp(),_.pY,function(P){R.theater=P;
_.f8(R,R.fullscreen,R.theater)});
R.addOnDisposeCallback(A);R.addOnDisposeCallback(Y)};
OQR=function(R){var A=R.JSC$22978_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yvo(R)});
R.addOnDisposeCallback(function(){R.JSC$22978_watchApi.unsubscribeByKey(A)})};
MOL=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22978_watchApi.playerApi,2);A=P.yieldResult;Y=function(E){VOZ(R,E)};
A.addEventListener("cinematicSettingsToggleChange",Y);R.addOnDisposeCallback(function(){A.removeEventListener("cinematicSettingsToggleChange",Y)});
_.XH(P)})};
yvo=function(R){var A=R.JSC$22978_watchApi.getWatchNextResponse(),Y;A=_.n(A==null?void 0:(Y=A.pageVisualEffects)==null?void 0:Y[0],_.kK);var P;(P=R.JSC$22978_cinematicController)==null||_.nqb(P,A)};
VOZ=function(R,A){var Y;(Y=R.JSC$22978_cinematicController)==null||_.gqx(Y,A);Q1g(R)};
Jvx=function(R,A){var Y;_.O(function(P){if(P.nextAddress==1)return _.v("kevlar_watch_cinematics_invisible")&&(A=!1),P.yield(R.JSC$22978_watchApi.playerApi,2);Y=P.yieldResult;Y.updateCinematicSettings(A);Q1g(R);_.XH(P)})};
TuE=function(R){var A=_.Hk();if(_.v("kevlar_measure_ambient_mode_idle")&&!A.getFlag(192)&&!cvf){cvf=!0;var Y=_.Ua(_.fn,function(){_.is().resolve(_.URF).start(1E4)},5E3);
R.addOnDisposeCallback(function(){_.fn.cancelJob(Y);_.is().resolve(_.URF).stop()})}};
_.f8=function(R,A,Y){R.fullscreen=A;R.theater=Y;var P;(P=R.JSC$22978_cinematicController)==null||P.setFullscreen(R.fullscreen,R.theater);if(_.v("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(R.theater||R.fullscreen){var E;(E=R.JSC$22978_cinematicController)==null||_.Hue(E)}else if((R=R.JSC$22978_cinematicController)!=null){var z;(z=R.currentCinematicEffect)==null||z.pause()}};
Q1g=function(R){if(_.v("web_cinematic_theater_mode")||_.v("web_cinematic_fullscreen")){var A;R.JSC$22978_watchApi.getRoot().toggleCinematicsActive(!((A=R.JSC$22978_cinematicController)==null||!A.isEnabled()))}};_.HQg=function(R){_.KJ.call(this);var A=this;this.JSC$22981_watchApi=R;this.commentsReady=!1;this.setCommentsJobId=0;R=_.Fq(_.Yp(),_.Ce,function(){vWE(A)});
this.addOnDisposeCallback(R);var Y=this.JSC$22981_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gWq(A)}),P=this.JSC$22981_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){gWq(A)});
this.addOnDisposeCallback(function(){A.JSC$22981_watchApi.unsubscribeByKey(Y);A.JSC$22981_watchApi.unsubscribeByKey(P)});
var E=function(){_.v("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&nWD(A,"false")};
this.JSC$22981_watchApi.getRoot().addEventListener("yt-page-data-will-update",E);this.addOnDisposeCallback(function(){A.JSC$22981_watchApi.getRoot().removeEventListener("yt-page-data-will-update",E)});
gWq(this)};
_.H(_.HQg,_.KJ);var gWq=function(R){R.commentsReady=!1;_.fn.cancelJob(R.setCommentsJobId);R.setCommentsJobId=_.Ua(_.fn,function(){vWE(R)},1E3)},vWE=function(R){if(!R.commentsReady){_.Fh("cmi");
_.fn.cancelJob(R.setCommentsJobId);var A,Y,P,E,z=(A=R.JSC$22981_watchApi.getWatchNextResponse())==null?void 0:(Y=A.contents)==null?void 0:(P=Y.twoColumnWatchNextResults)==null?void 0:(E=P.results)==null?void 0:E.results.contents;A=void 0;if(z&&z.length)for(z=_.x(z),Y=z.next();!Y.done;Y=z.next())if(Y=Y.value,E=P=void 0,((P=Y)==null?void 0:(E=P.itemSectionRenderer)==null?void 0:E.sectionIdentifier)==="comment-item-section"){_.v("web_watch_provide_undefined_comments")?A=Y.itemSectionRenderer:R.JSC$22981_watchApi.provideRenderingData("COMMENTS",
Y.itemSectionRenderer);nWD(R,"true");break}_.v("web_watch_provide_undefined_comments")&&R.JSC$22981_watchApi.provideRenderingData("COMMENTS",A);R.commentsReady=!0;R.JSC$22981_watchApi.dispatchEvent("yt-watch-comments-ready")}},nWD=function(R,A){var Y;
(Y=R.JSC$22981_watchApi.getElement("COMMENTS"))==null||Y.setAttribute("canScheduleJobs",A)};_.XDL=function(R){_.KJ.call(this);var A=this;this.JSC$22984_watchApi=R;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.v("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.v("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.v("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.cU("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)rvf(this);
else{var Y=this.JSC$22984_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){DIE(A);p8(A)}),P=this.JSC$22984_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Fa(A);
p8(A)});
this.JSC$22984_watchApi.getRoot().is==="ytd-watch-grid"&&_.v("swatcheroo_pbs_load_grid")&&(UIx(this),$Ib(this));this.addOnDisposeCallback(function(){A.JSC$22984_watchApi.unsubscribeByKey(Y);A.JSC$22984_watchApi.unsubscribeByKey(P);_.fn.cancelJob(A.provideRichGridJobId)});
DIE(this);Fa(this)}};
_.H(_.XDL,_.KJ);var rvf=function(R){var A=R.JSC$22984_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){R.providePlayerJobId=_.cC(_.fn,function(){DIE(R);p8(R)},R.provideAllDataDelayMs)}),Y=R.JSC$22984_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){R.provideWatchNextJobId=_.cC(_.fn,function(){Fa(R);
p8(R)},R.provideAllDataDelayMs)}),P=R.JSC$22984_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){R.provideWatchNextJobId=_.cC(_.fn,function(){Fa(R);
p8(R)},R.provideAllDataDelayMs)});
R.JSC$22984_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Ua(_.fn,function(){DIE(R);Fa(R);p8(R)},100)});
R.JSC$22984_watchApi.addPageDisposeJob(function(){_.fn.cancelJob(R.provideWatchNextJobId);_.fn.cancelJob(R.providePlayerJobId)});
R.addOnDisposeCallback(function(){R.JSC$22984_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");R.JSC$22984_watchApi.unsubscribeByKey(A);R.JSC$22984_watchApi.unsubscribeByKey(Y);R.JSC$22984_watchApi.unsubscribeByKey(P);_.fn.cancelJob(R.providePlayerJobId);_.fn.cancelJob(R.provideWatchNextJobId)});
DIE(R);Fa(R)},DIE=function(R){var A=R.JSC$22984_watchApi.getPlayerResponse(),Y,P,E=(P=A==null?void 0:(Y=A.playabilityStatus)==null?void 0:Y.messageRenderers)!=null?P:[],z,c;
A=(c=A==null?void 0:(z=A.playabilityStatus)==null?void 0:z.messages)!=null?c:[];z=_.x(A);for(c=z.next();!c.done;c=z.next())E.push({alertRenderer:{text:_.dF(c.value),type:"WARNING"}});R.JSC$22984_watchApi.provideRenderingData("ALERTS",E)},Fa=function(R){var A=[],Y,P,E,z=R.JSC$22984_watchApi.getWatchNextResponse(),c,M,N,y,m=z==null?void 0:(c=z.contents)==null?void 0:(M=c.twoColumnWatchNextResults)==null?void 0:(N=M.results)==null?void 0:(y=N.results)==null?void 0:y.contents;
if(m)for(c=_.x(m),M=c.next();!M.done;M=c.next())if(M=M.value,M.videoPrimaryInfoRenderer)var T=M;else if(M.videoSecondaryInfoRenderer){var Q=M;y=N=void 0;M=Object.assign({},(N=M.videoSecondaryInfoRenderer)==null?void 0:(y=N.metadataRowContainer)==null?void 0:y.metadataRowContainerRenderer);if(M.rows&&M.collapsedItemCount!==void 0){M.rows=M.rows.slice(0,M.collapsedItemCount).filter(function(A9){return!!A9.richMetadataRowRenderer});
M.collapsedItemCount=M.rows.length;var g={metadataRowContainerRenderer:M}}}else if(M.merchandiseShelfRenderer)var r=M;else if(M.ticketShelfRenderer)var I=M;else if(M.expandableMetadataRenderer)var b=M;else if(M.itemSectionRenderer)if(N=M.itemSectionRenderer.contents,y=void 0,R.directlyProvideComments&&((y=M.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section")_.Fh("cmi"),R.JSC$22984_watchApi.provideRenderingData("COMMENTS",M.itemSectionRenderer);else if(N)for(M=_.x(N),N=
M.next();!N.done;N=M.next())if(N=N.value,N.commentsEntryPointHeaderRenderer)var p=N;else if(N.clarificationRenderer||N.infoPanelContainerRenderer||N.infoPanelContentRenderer||N.emergencyOneboxRenderer){A.push(N);var h=h||!!Q}else N.limitedStateMessageRenderer?P=N:N.videoMetadataCarouselViewModel&&(E=N);if(_.v("web_watch_merch_in_sd_when_ticket_shelf_present")&&r&&I){var L=r;r=void 0}if(R.provideWatchNextSecondaryResults){var Z,w,t;R.JSC$22984_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
z==null?void 0:(Z=z.contents)==null?void 0:(w=Z.twoColumnWatchNextResults)==null?void 0:(t=w.secondaryResults)==null?void 0:t.secondaryResults)}if(R.JSC$22984_watchApi.getRoot().is==="ytd-watch-grid"){var d,Jk;R.JSC$22984_watchApi.provideRenderingData("LIVE_CHAT",z==null?void 0:(d=z.contents)==null?void 0:(Jk=d.twoColumnWatchNextResults)==null?void 0:Jk.conversationBar)}var Nb,Qk,H3,nu;(Z=z==null?void 0:(Nb=z.contents)==null?void 0:(Qk=Nb.twoColumnWatchNextResults)==null?void 0:(H3=Qk.secondaryResults)==
null?void 0:(nu=H3.secondaryResults)==null?void 0:nu.offerModule)&&(Z.donationShelfRenderer||Z.donationUnavailableRenderer)&&R.JSC$22984_watchApi.getRoot().is!=="ytd-watch-grid"&&(Y=Z);Nb=R.JSC$22984_watchApi.getPlayerResponse();if(!Nb||!_.jMV(Nb.playabilityStatus,z==null?void 0:z.playerOverlays)){var hk;if(z==null?0:(hk=z.contents)==null?0:hk.singleColumnWatchNextResults){var FV,i8;var fD=z==null?void 0:(FV=z.contents.singleColumnWatchNextResults.results)==null?void 0:(i8=FV.results)==null?void 0:
i8.contents}else{var NG,d8,mS,V7;hk=!!(m==null?0:(NG=m[0])==null?0:(d8=NG.itemSectionRenderer)==null?0:(mS=d8.contents)==null?0:(V7=mS[0])==null?0:V7.backgroundPromoRenderer);var KD,UW;NG=!!(z==null?0:(KD=z.contents)==null?0:(UW=KD.twoColumnWatchNextResults)==null?0:UW.secondaryResults);hk&&!NG&&(fD=m)}}m=A[0];KD=A[1];h&&A.length===1&&(KD=m,m=void 0);R.JSC$22984_watchApi.provideRenderingData("PRIMARY_INFO",T);R.JSC$22984_watchApi.provideRenderingData("SECONDARY_INFO",Q);R.JSC$22984_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
p);R.JSC$22984_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",E);R.JSC$22984_watchApi.provideRenderingData("CLARIFICATION",m);R.JSC$22984_watchApi.provideRenderingData("RICH_METADATA",g);R.JSC$22984_watchApi.provideRenderingData("MERCH_SHELF",r);_.v("web_watch_merch_in_sd_when_ticket_shelf_present")&&R.JSC$22984_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",L);R.JSC$22984_watchApi.provideRenderingData("TICKET_SHELF",I);R.JSC$22984_watchApi.provideRenderingData("LIMITED_STATE",P);R.JSC$22984_watchApi.getRoot().is!==
"ytd-watch-grid"&&R.JSC$22984_watchApi.provideRenderingData("DONATION_SHELF",Y);R.JSC$22984_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",fD);R.JSC$22984_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",KD);R.JSC$22984_watchApi.provideRenderingData("EXPANDABLE_METADATA",b);if(R.swatcherooProvideAllDataOnScheduledJob){var eH,zS,RA,vS,Mg,gf;T=z==null?void 0:(eH=z.contents)==null?void 0:(zS=eH.twoColumnWatchNextResults)==null?void 0:(RA=zS.secondaryResults)==null?void 0:(vS=RA.secondaryResults)==
null?void 0:(Mg=vS.results)==null?void 0:(gf=Mg[0])==null?void 0:gf.richGridRenderer;R.JSC$22984_watchApi.provideRenderingData("RICH_GRID_RENDERER",T)}};
_.XDL.prototype.hasCompanionAds=function(R){var A,Y;return(Y=R==null?void 0:(A=R.adPlacements)==null?void 0:A.some(function(P){var E,z,c,M;return(P==null?void 0:(E=P.adPlacementRenderer)==null?void 0:(z=E.renderer)==null?void 0:z.actionCompanionAdRenderer)||(P==null?void 0:(c=P.adPlacementRenderer)==null?void 0:(M=c.renderer)==null?void 0:M.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?Y:!1};
var p8=function(R){if(!_.v("swaterdoo_ps_wn_handle_ks")){R.swatcherooProvideAllDataOnScheduledJob||$Ib(R,3E3);var A=R.JSC$22984_watchApi.getPlayerResponse(),Y,P,E,z,c,M=(Y=R.JSC$22984_watchApi.getWatchNextResponse())==null?void 0:(P=Y.contents)==null?void 0:(E=P.twoColumnWatchNextResults)==null?void 0:(z=E.secondaryResults)==null?void 0:(c=z.secondaryResults)==null?void 0:c.offerModule;A=R.hasCompanionAds(A);var N,y;Y=(M==null?void 0:(N=M.tvfilmOfferModuleRenderer)==null?void 0:N.clientShouldSuppressIfCompanionAdDisplayed)||
(M==null?void 0:(y=M.unlimitedOfferModuleRenderer)==null?void 0:y.suppressIfCompanionAds);N=A&&Y;R.JSC$22984_watchApi.getRoot().is==="ytd-watch-grid"&&R.JSC$22984_watchApi.provideRenderingData("OFFER_MODULE",N?void 0:M)}},$Ib=function(R,A){_.v("swatcheroo_pbs_load_grid")&&(R.provideRichGridJobId&&_.fn.cancelJob(R.provideRichGridJobId),R.provideRichGridJobId=_.cC(_.fn,function(){R.provideRichGridJobId=0;
var Y,P,E,z,c,M,N,y=(Y=R.JSC$22984_watchApi.getWatchNextResponse())==null?void 0:(P=Y.contents)==null?void 0:(E=P.twoColumnWatchNextResults)==null?void 0:(z=E.secondaryResults)==null?void 0:(c=z.secondaryResults)==null?void 0:(M=c.results)==null?void 0:(N=M[0])==null?void 0:N.richGridRenderer;y&&R.JSC$22984_watchApi.provideRenderingData("RICH_GRID_RENDERER",y)},A))},UIx=function(R){var A,Y;
_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$22984_watchApi.playerApi,2);A=P.yieldResult;Y=function(){R.onPlaybackStart()};
A.addEventListener("onPlaybackStartExternal",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onPlaybackStartExternal",Y)});
_.XH(P)})};
_.XDL.prototype.onPlaybackStart=function(){$Ib(this)};_.Ire=function(R){_.KJ.call(this);var A=this;this.JSC$22994_watchApi=R;R.playerApi.then(function(Y){A.player=Y});
this.gestures=new _.F6f(this.JSC$22994_watchApi.getRoot(),R.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.WSR(_.Yp().getState())&&_.Ce(_.Yp().getState())<=0)if(_.FW(_.Yp().getState())){var Y;(Y=A.player)==null||Y.toggleFullscreen()}else _.OC(A.JSC$22994_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
SeE(this)};
_.H(_.Ire,_.KJ);var SeE=function(R){var A=_.Fq(_.Yp(),_.FW,function(Y){R.onFullscreenChanged(Y)});
R.addOnDisposeCallback(A);A=_.Fq(_.Yp(),_.Ce,function(Y){R.gestures&&(Y>0?R.gestures.detach():R.gestures.attach())});
R.addOnDisposeCallback(A)};
_.Ire.prototype.onFullscreenChanged=function(R){this.gestures&&this.gestures.update(R)};_.WJo=function(R){_.KJ.call(this);var A=this;this.JSC$22997_watchApi=R;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(R.subscribeToActiveChanged(function(Y){A.onActiveChanged(Y)}));
KJb(this)};
_.H(_.WJo,_.KJ);var j1b=function(R){if(_.v("swatcheroo_page_dispose_all_watch_data"))R.pageDisposalDataTypes=Object.values(qUb).filter(function(Y){return Y!=="PLAYLIST"});
else if(_.v("swatcheroo_page_dispose_rich_grid")){var A;(A=R.pageDisposalDataTypes)==null||A.push("RICH_GRID_RENDERER")}},KJb=function(R){_.v("swatcheroo_enable_ghost_cards")&&(j1b(R),R.JSC$22997_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.fn.cancelJob(R.clearDataJobId);
R.clearDataJobId=0}),R.runPageDisposeJob=function(){var A=_.is().resolve(_.YH).getDestinationPageType()==="watch";
R.clearDataJobId=_.cC(_.fn,R.runClearDataJob,A?0:_.cU("web_watch_delay_page_dispose_ms",1E4))},R.runClearDataJob=function(){bQL(R)},R.runOnYtNavigateAwayFinish=function(){R.clearDataJobId&&(_.fn.cancelJob(R.clearDataJobId),R.clearDataJobId=0,bQL(R))},document.addEventListener("yt-navigate-finish",R.runOnYtNavigateAwayFinish),R.JSC$22997_watchApi.addPageDisposeJob(R.runPageDisposeJob),R.addOnDisposeCallback(function(){R.JSC$22997_watchApi.removePageDisposeJob(R.runPageDisposeJob);
R.JSC$22997_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",R.runOnYtNavigateAwayFinish)}))},bQL=function(R){R.pageDisposalDataTypes.forEach(function(A){R.JSC$22997_watchApi.provideRenderingData(A,void 0)});
R.clearDataJobId=0};
_.WJo.prototype.onActiveChanged=function(R){R&&((R=document.querySelector("#watch-page-skeleton"))&&_.UU(R),frR(this),document.body.removeAttribute("no-y-overflow"),_.CQ("IS_SHELL_LOAD")&&_.X_m())};
var frR=function(R){_.O(function(A){if(A.nextAddress==1)return A.yield(R.JSC$22997_watchApi.playerApi,2);_.C0();_.XH(A)})};var pD$;pD$=_.v("kevlar_watch_while_counterfactual")?0:.25;_.CIx=function(R){_.KJ.call(this);this.JSC$23000_watchApi=R;this.JSC$23000_watchWhileEnabled=_.v("kevlar_watch_while_v2");this.pipEnabled=_.v("web_enable_pip_on_miniplayer");FJg(this);Bu$(this);arb(this)};
_.H(_.CIx,_.KJ);var FJg=function(R){R.JSC$23000_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){hAL(R)});
R.addOnDisposeCallback(function(){R.JSC$23000_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},Bu$=function(R){var A,Y;
_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$23000_watchApi.playerApi,2);A=P.yieldResult;Y=function(){hAL(R)};
A.addEventListener("onCollapseMiniplayer",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onCollapseMiniplayer",Y)});
_.XH(P)})},arb=function(R){var A=R.JSC$23000_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&A&&R.JSC$23000_watchWhileEnabled&&(R.playerIntersectionObserver=new IntersectionObserver(function(Y){R.handleIntersect(Y)},{threshold:[pD$]}),R.playerIntersectionObserver.observe(A),R.addOnDisposeCallback(function(){var Y;
(Y=R.playerIntersectionObserver)==null||Y.disconnect()}))},hAL=function(R){var A,Y,P;
_.O(function(E){if(E.nextAddress==1){A=_.is().resolve(_.YH);Y=A.data;P=_.X2(Y.response,!1,Y.playerResponse);_.f_().miniplayerButtonActivation=!0;if(R.pipEnabled)return _.f_().watchPipActivation=!0,E.jumpTo(2);_.is().resolve(_.jv).collapse();return E.yield(_.f_().navigationFinishPromise,2)}if(E.nextAddress!=4)return _.f_().currentEndpoint=P.watchEndpoint||null,E.yield(_.is().resolve(_.jv).activate(R.JSC$23000_watchApi.getElement("PLAYER"),P,Y),4);_.f_().userActivation=!0;_.XH(E)})};
_.CIx.prototype.handleIntersect=function(R){oWD(this,R[R.length-1])};
var oWD=function(R,A){R.watchWhileJobId&&_.fn.cancelJob(R.watchWhileJobId);R.watchWhileJobId=_.fn.addLowPriorityJob(function(){var Y,P;return _.O(function(E){if(E.nextAddress==1)return R.watchWhileJobId=void 0,Y=_.is().resolve(_.jv),A.intersectionRatio>pD$?Y.isMiniplayerActive()?E.yield(Y.deactivate(),0):E.jumpTo(0):(P=!Y.isMiniplayerActive())?E.yield(kTe(R),5):E.jumpTo(4);E.nextAddress!=4&&(P=E.yieldResult);if(!P)return E.jumpTo(0);_.f_().watchWhileActivation=!0;return E.yield(GTo(R),0)})},100)},
kTe=function(R){return _.O(function(A){return A.nextAddress==1?_.v("kevlar_watch_while_paused")?A.return(!0):A.yield(R.isPlayerPlaying(),2):A.return(A.yieldResult)})};
_.CIx.prototype.isPlayerPlaying=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.JSC$23000_watchApi.playerApi,2);A=Y.yieldResult;return Y.return(A.getPlayerStateObject().isPlaying)})};
var GTo=function(R){var A,Y;return _.O(function(P){A=_.is().resolve(_.YH).data;Y=_.X2(A.response,!1,A.playerResponse);_.f_().currentEndpoint=Y.watchEndpoint||null;return P.yield(_.is().resolve(_.jv).activate(R.JSC$23000_watchApi.getElement("PLAYER"),Y,A),0)})};_.wDL=function(R){_.KJ.call(this);this.JSC$23004_watchApi=R;ZQq(this);tOx(this)};
_.H(_.wDL,_.KJ);var tOx=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$23004_watchApi.playerApi,2);A=P.yieldResult;Y=function(E){var z;E.sessionData&&E.sessionData.itct&&(z=E.sessionData.itct);var c=E.watchEndpoint;if(c&&E.sessionData&&E.sessionData.autonav)c=_.iMJ(c,z);else{var M;c=_.zX(E.videoId,(M=E.listId)!=null?M:void 0,z)}z={endpoint:c};E.sessionData&&(z.tempData=E.sessionData);R.JSC$23004_watchApi.dispatchEvent("yt-navigate",z)};
A.addEventListener("onPlayVideo",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onPlayVideo",Y)});
_.XH(P)})},ZQq=function(R){var A=function(Y){R.onYtNavigate(Y)};
R.JSC$23004_watchApi.getRoot().addEventListener("yt-navigate",A);R.addOnDisposeCallback(function(){R.JSC$23004_watchApi.getRoot().removeEventListener("yt-navigate",A)})};
_.wDL.prototype.onYtNavigate=function(R){var A=this,Y,P,E,z,c,M,N,y,m;return _.O(function(T){if(T.nextAddress==1){if(!((Y=R.detail)==null?0:(P=Y.endpoint)==null?0:P.watchEndpoint))return T.return();E=R.detail.endpoint.watchEndpoint;z=A.JSC$23004_watchApi.getWatchNextResponse();M=_.n((c=z)==null?void 0:c.currentVideoEndpoint,_.LO);if(!M)return T.return();if(E.videoId!==M.videoId||E.playlistId&&E.playlistId!==M.playlistId||typeof E.startTimeSeconds!=="number")return T.jumpTo(0);R.stopPropagation();
(N=_.v("kevlar_watch_while_v2")&&!_.v("kevlar_watch_while_counterfactual"))&&_.is().resolve(_.jv).isMiniplayerActive()||A.JSC$23004_watchApi.scrollWatchTo(0,!0);return T.yield(A.JSC$23004_watchApi.playerApi,3)}y=T.yieldResult;m=E.startTimeSeconds;y.seekTo(m,void 0,void 0,void 0,84);y.wakeUpControls();m<y.getDuration()&&y.playVideo();_.XH(T)})};_.eAx=function(R){_.KJ.call(this);var A=this;this.JSC$23007_watchApi=R;var Y=this.JSC$23007_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ucR(A)});
this.addOnDisposeCallback(function(){A.JSC$23007_watchApi.unsubscribeByKey(Y)});
ucR(this)};
_.H(_.eAx,_.KJ);var ucR=function(R){var A=R.JSC$23007_watchApi.getWatchNextResponse();if(A){var Y,P=[].concat(_.py((Y=A==null?void 0:A.engagementPanels)!=null?Y:[]));P.unshift.apply(P,_.py(qeL(A)));R.JSC$23007_watchApi.provideRenderingData("ENGAGEMENT_PANELS",P)}},LJb=function(R){var A,Y,P,E=(A=R.engagementPanels)==null?void 0:(Y=A.find(function(g){var r;
return((r=g.engagementPanelSectionListRenderer)==null?void 0:r.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(P=Y.engagementPanelSectionListRenderer.content)==null?void 0:P.structuredDescriptionContentRenderer,z;
if(_.n(E==null?void 0:(z=E.items)==null?void 0:z.find(function(g){return!!_.n(g,QRb)}),QRb))return!0;
var c,M,N,y;if(R=(((c=R.contents)==null?void 0:(M=c.twoColumnWatchNextResults)==null?void 0:(N=M.results)==null?void 0:(y=N.results)==null?void 0:y.contents)||[]).find(function(g){return g.videoPrimaryInfoRenderer})){var m,T,Q;
return(((m=R.videoPrimaryInfoRenderer)==null?void 0:(T=m.videoActions)==null?void 0:(Q=T.menuRenderer)==null?void 0:Q.flexibleItems)||[]).some(function(g){g=_.n(g,_.PSZ);if(!g)return!1;var r,I;g=(r=g.topLevelButton)==null?void 0:(I=r.buttonViewModel)==null?void 0:I.onTap;if(!g)return!1;r=_.h7(g);if(!r)return!1;var b;return((b=_.n(r,_.D7))==null?void 0:b.panelIdentifier)==="PAyouchat"})}return!1},qeL=function(R){var A=[];
if(!_.v("web_watch_inject_placeholder_fantasy_panel_killswitch")){var Y,P,E,z=(Y=R.engagementPanels)==null?void 0:(P=Y.find(function(M){var N;return((N=M.engagementPanelSectionListRenderer)==null?void 0:N.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(E=P.engagementPanelSectionListRenderer.content)==null?void 0:E.structuredDescriptionContentRenderer,c;
_.n(z==null?void 0:(c=z.items)==null?void 0:c.find(function(M){return!!_.n(M,eQ$)}),eQ$)&&(Y=_.Q0l("PAsports_fantasy"),Y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",A.push(Y))}LJb(R)&&(R=_.Q0l("PAyouchat"),R.engagementPanelSectionListRenderer.targetId="PAyouchat",R.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",A.push(R));
return A};_.R4L=function(R){_.KJ.call(this);this.JSC$23010_watchApi=R;dIb(this)};
_.H(_.R4L,_.KJ);var dIb=function(R){R.JSC$23010_watchApi.registerActionHandler("yt-loop-command",function(A){ANR(R,A)});
R.JSC$23010_watchApi.registerActionHandler("yt-repeat-chapter-command",function(A){YK$(R,A)});
R.addOnDisposeCallback(function(){R.JSC$23010_watchApi.unregisterActionHandler("yt-loop-command");R.JSC$23010_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},ANR=function(R,A){var Y;
_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$23010_watchApi.playerApi,2);Y=P.yieldResult;_.n(A,Lmb).loop?(Y.setLoopRange({startTimeMs:Number(_.n(A,Lmb).startTimeMs),endTimeMs:Number(_.n(A,Lmb).endTimeMs),postId:_.n(A,Lmb).postId,type:"clips"}),Y.playVideo()):Y.setLoopRange(null);_.XH(P)})},YK$=function(R,A){var Y,P;
_.O(function(E){if(E.nextAddress==1)return E.yield(R.JSC$23010_watchApi.playerApi,2);Y=E.yieldResult;P=_.n(A,Pbc).repeat;P==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(Y.setLoopRange({startTimeMs:Number(_.n(A,Pbc).startTimeMs),endTimeMs:Number(_.n(A,Pbc).endTimeMs),type:"repeatChapter"}),Y.playVideo()):P==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&Y.setLoopRange(null);_.XH(E)})};_.ES$=function(R){_.KJ.call(this);this.JSC$23015_watchApi=R;Psb(this)};
_.H(_.ES$,_.KJ);var Psb=function(R){R.JSC$23015_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(A){z4g(R,A)});
R.addOnDisposeCallback(function(){R.JSC$23015_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},z4g=function(R,A){var Y,P,E,z,c,M,N,y,m,T,Q;
_.O(function(g){if(g.nextAddress==1)return g.yield(R.JSC$23015_watchApi.playerApi,2);Y=g.yieldResult;if(z=(E=(P=_.n(A,ED$))==null?void 0:P.highlightedMenuItemKey)!=null?E:"")(M=(c=Y).highlightSettingsMenuItem)==null||M.call(c,z);if(m=(y=(N=_.n(A,ED$))==null?void 0:N.openMenuItemKey)!=null?y:"")(Q=(T=Y).openSettingsMenuItem)==null||Q.call(T,m);_.XH(g)})};var iwo=_.yS("/youtube/app/watch/player_state","playerStateEntity");_.x1c=function(R){_.KJ.call(this);this.JSC$23018_watchApi=R;lOb(this)};
_.H(_.x1c,_.KJ);var cNe=function(R){switch(R){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"}},lOb=function(R){var A,Y;
_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$23018_watchApi.playerApi,2);A=P.yieldResult;Y=function(E){R.onPlayerStateChange(E)};
A.addEventListener("onStateChange",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onStateChange",Y)});
_.XH(P)})};
_.x1c.prototype.onPlayerStateChange=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1)return E.yield(A.JSC$23018_watchApi.playerApi,2);Y=E.yieldResult;P=Y.getVideoData().video_id;_.RZ().dispatch(_.HT("playerStateEntity",iwo,{key:iwo,playerState:cNe(R),videoId:P}));_.XH(E)})};_.Mxo=function(R){_.KJ.call(this);var A=this;this.JSC$23022_watchApi=R;this.enableExternalPlaylistPanelInPlayer=_.v("delhi_web_player_use_external_playlist_panel");_.is().resolve(_.Y7).setPlayer(this.JSC$23022_watchApi.getElement("PLAYER"));R=this.JSC$23022_watchApi.subscribeToActiveChanged(function(Y){A.onActiveChanged(Y)});
this.addOnDisposeCallback(R);OwZ(this)};
_.H(_.Mxo,_.KJ);var OwZ=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return R.enableExternalPlaylistPanelInPlayer?P.yield(R.JSC$23022_watchApi.playerApi,2):P.return();A=P.yieldResult;Y=function(){if(R.playlistPanelElement)R.playlistPanelElement.onToggleExpanded()};
A.addEventListener("onToggleExternalPlaylistPanel",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onToggleExternalPlaylistPanel",Y)});
_.XH(P)})};
_.Mxo.prototype.onActiveChanged=function(R){var A=this,Y=_.is().resolve(_.Y7),P=function(){sWe(A)};
R?(this.playlistPanelElement=this.JSC$23022_watchApi.getElement("PLAYLIST_PANEL"))?(Y.setPlaylistComponent(this.playlistPanelElement),Y.addEventListener("yt-playlist-data-updated",P),this.addOnDisposeCallback(function(){Y.removeEventListener("yt-playlist-data-updated",P)}),sWe(this)):_.tv(Error("Mo")):(Y.removeEventListener("yt-playlist-data-updated",P),Y.cancelVideoSkip())};
var sWe=function(R){var A=_.is().resolve(_.Y7);R.JSC$23022_watchApi.provideRenderingData("PLAYLIST",A.getPlaylistData())};_.BW=function(R){_.KJ.call(this);var A=this;this.JSC$23025_watchApi=R;this.onPageScroll=function(){A.scrollThrottle.fire();A.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.kH(this.onThrottledScroll,200,this);_.gz(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.kH(this.onMastheadThrottledScroll,50,this);_.gz(this,this.mastheadScrollThrottle);this.animation=new _.ch(function(Y){A.JSC$23025_watchApi.getRoot().setScrollTop(Y)});
R=_.Fq(_.Yp(),_.FW,function(){A.onFullscreenChanged()});
this.addOnDisposeCallback(R);Nrf(this);Vxe(this);this.onThrottledScroll()};
_.H(_.BW,_.KJ);
_.BW.prototype.onFullscreenChanged=function(){var R=this,A=this.JSC$23025_watchApi.getRoot();!this.pageScrollElement&&A.pageScrollElement?(this.pageScrollElement=A.pageScrollElement,A.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){R.pageScrollElement&&R.pageScrollElement.removeEventListener("scroll",R.onPageScroll)})):this.pageScrollElement&&!A.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var Nrf=function(R){window.addEventListener("scroll",R.onPageScroll);R.addOnDisposeCallback(function(){window.removeEventListener("scroll",R.onPageScroll)})},Vxe=function(R){R.JSC$23025_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(A){a:{var Y;
if(Y=R.JSC$23025_watchApi.getRoot().contains(A)&&!R.animation.isAnimating()){Y=A.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var P,E,z=(A==null?void 0:(P=A.parentElement)==null?void 0:(E=P.parentElement)==null?void 0:E.id)==="fixed-secondary";Y=!(Y&&z)}if(Y){if(_.v("kevlar_watch_scroll_manager_absolute_offset_killswitch"))P=A.offsetTop;else for(P=0,E=A;E!==null;)P+=E.offsetTop,P-=E.scrollTop,E=E.offsetParent;E=P;P=E-24;A=E+A.offsetHeight+24;E=R.JSC$23025_watchApi.getRoot().getPageScrollingElement();
Y=R.JSC$23025_watchApi.getRoot().getScrollTop();z=Y+E.clientHeight-56;if(P<Y+56)A=P-56;else if(A>z)A-=E.clientHeight;else break a;R.scrollWatchTo(Math.max(0,A),!0)}}});
R.addOnDisposeCallback(function(){R.JSC$23025_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.BW.prototype.onThrottledScroll=function(){var R=_.Yp(),A=R.dispatch,Y=this.JSC$23025_watchApi.getRoot().getScrollTop();A.call(R,_.cK({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:Y}}))};
_.BW.prototype.onMastheadThrottledScroll=function(){this.JSC$23025_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23025_watchApi.getRoot().getScrollTop())};
_.BW.prototype.scrollWatchTo=function(R,A){(A===void 0?0:A)?this.animation.start(this.JSC$23025_watchApi.getRoot().getScrollTop(),Math.max(0,R),500):this.JSC$23025_watchApi.getRoot().setScrollTop(R)};_.m1c=function(R){_.KJ.call(this);var A=this;this.JSC$23028_watchApi=R;var Y=this.JSC$23028_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){JNb(A)}),P=this.JSC$23028_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){yNc(A)});
this.addOnDisposeCallback(function(){A.JSC$23028_watchApi.unsubscribeByKey(Y);A.JSC$23028_watchApi.unsubscribeByKey(P)});
JNb(this);yNc(this)};
_.H(_.m1c,_.KJ);
var JNb=function(R){var A,Y,P,E=(P=(A=R.JSC$23028_watchApi.getPlayerResponse())==null?void 0:(Y=A.videoDetails)==null?void 0:Y.title)!=null?P:"";R.JSC$23028_watchApi.dispatchEvent("yt-update-title",E)},yNc=function(R){var A,Y,P,E,z,c,M,N=(M=((c=(A=R.JSC$23028_watchApi.getWatchNextResponse())==null?void 0:(Y=A.contents)==null?void 0:(P=Y.twoColumnWatchNextResults)==null?void 0:(E=P.results)==null?void 0:(z=E.results)==null?void 0:z.contents)!=null?c:[]).find(function(y){return!!y.videoPrimaryInfoRenderer}))==null?
void 0:M.videoPrimaryInfoRenderer;
(A=_.R4(N==null?void 0:N.title))&&R.JSC$23028_watchApi.dispatchEvent("yt-update-title",A)};_.QWb=function(R){_.KJ.call(this);this.JSC$23031_watchApi=R;Trg(this)};
_.H(_.QWb,_.KJ);var Trg=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$23031_watchApi.playerApi,2);A=P.yieldResult;Y=function(){R.onYpcContentRequest()};
A.addEventListener("onYpcContentRequest",Y);R.addOnDisposeCallback(function(){A.removeEventListener("onYpcContentRequest",Y)});
_.XH(P)})};
_.QWb.prototype.onYpcContentRequest=function(){var R,A,Y,P,E,z=(R=this.JSC$23031_watchApi.getWatchNextResponse())==null?void 0:(A=R.contents)==null?void 0:(Y=A.twoColumnWatchNextResults)==null?void 0:(P=Y.secondaryResults)==null?void 0:(E=P.secondaryResults)==null?void 0:E.offerModule,c,M,N,y;R=(y=(N=(M=(c=z==null?void 0:z.episodeOfferModuleRenderer)!=null?c:z==null?void 0:z.movieOfferModuleRenderer)!=null?M:z==null?void 0:z.unlimitedOfferModuleRenderer)!=null?N:z==null?void 0:z.liveOfferModuleRenderer)!=
null?y:z==null?void 0:z.tvfilmOfferModuleRenderer;var m,T,Q;z=(Q=z==null?void 0:(m=z.tvfilmOfferModuleRenderer)==null?void 0:(T=m.actionButtons)==null?void 0:T.length)!=null?Q:0;T=Math.max(z-1,0);var g,r,I;m=(I=R==null?void 0:(g=R.offerButton)==null?void 0:g.buttonRenderer)!=null?I:R==null?void 0:(r=R.actionButtons)==null?void 0:r[T].buttonRenderer;var b,p;(g=(p=(b=m==null?void 0:m.navigationEndpoint)!=null?b:m==null?void 0:m.serviceEndpoint)!=null?p:m==null?void 0:m.command)&&_.Qp.instance.resolveCommand(g)};
}catch(e){_._DumpException(e)}
try{
var M0j,x4N,iOj;_.lZ9=function(){var R=_.BO.clone(zPG),A;return(new _.yR(function(Y,P){R.onSuccess=function(E){_.CEk(E)?Y(new iOj(E)):P(new _.HJ("Request failed, status="+_.VQ(E),"net.badstatus",E))};
R.onError=function(E){P(new _.HJ("Unknown request error","net.unknown",E))};
R.onTimeout=function(E){P(new _.HJ("Request timed out","net.timeout",E))};
A=_.QQ("//googleads.g.doubleclick.net/pagead/id",R)})).thenCatch(function(Y){if(Y instanceof _.Fn){var P;
(P=A)==null||P.abort()}return _.j5(Y)})};
_.c_F=function(R){a:{var A="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(A="EMBEDDED_PLAYER_MODE_PFL");var Y=R.raw_embedded_player_response;if(!Y&&(R=R.embedded_player_response))try{Y=JSON.parse(R)}catch(E){break a}if(Y)b:for(var P in x4N)if(x4N[P]==Y.embeddedPlayerMode){A=x4N[P];break b}}return A==="EMBEDDED_PLAYER_MODE_PFL"};
_.OOf=function(){if(_.v("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("pf");if(!_.Tk6())return Error("qf");var R=_.a1("PLAYER_VARS",{});if(_.BO.get(R,"privembed",!1)=="1")return Error("rf");if(_.c_F(R))return Error("sf")};
M0j=function(R){switch(R){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:_.kZ(R,"unknown result type")}};
_.sK9=function(R,A,Y){A=_.yCV[A];Y={detected:R===0,source:A.nen,detectionResult:M0j(R),contentCpn:Y};_.Wj("biscottiBasedDetection",Y);_.heA.increment(A.nen,R);A.tPz!==void 0&&_.BD("CATSTAT",_.VLk(R,A))};
_.rp=function(R,A){var Y={};Y.key=R;Y.value=A;return _.evu().then(function(P){return new Promise(function(E,z){try{var c=P.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(Y);c.onsuccess=function(){E()};
c.onerror=function(){z()}}catch(M){z(M)}})})};
_.V0G=function(){var R=_.cU("user_engagement_experiments_rate_limit_ms"),A=NqH.get("last-user-engagement-exp-trigger-timestamp");return!A||(0,_.iB)()>=A+R?(NqH.set("last-user-engagement-exp-trigger-timestamp",(0,_.iB)()),!0):!1};
_.DU=function(R,A,Y,P,E){A=A===void 0?null:A;Y=Y===void 0?null:Y;P=P===void 0?null:P;E=E===void 0?null:E;R={youThereEventType:R};Y&&(R.lactThresholdMs=Y.lactThresholdMs,R.mediaPosSec=Y.promptDelaySec,R.lactServerRequestMs=Y.lactServerRequestMs,R.triggerReason=Y.triggerReason);E!=null&&(R.renderingMediaPosSec=Math.round(E));A||(A=_.F9());A&&(R.clientScreenNonce=A);P&&(R.clientPlaybackNonce=P);_.Wj("youThere",R)};
x4N={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"};iOj=function(R){this.xhr=R};
_.HJ=function(R,A,Y){_.Rk.call(this,R+", errorCode="+A);this.errorCode=A;this.xhr=Y;this.name="PromiseAjaxError"};
_.H(_.HJ,_.Rk);var zPG={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var NqH=new _.Cn("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.EhQ=function(R){return _.cK({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:R})};
}catch(e){_._DumpException(e)}
try{
var oh,G3R,tx$,wUb,uNe,e4g,LTe,lF$,xzZ,cZo,qKg,Zwe,YFc,AZx,sBb;_.k3Z=function(){var R=window.location.hash;R.charAt(0)==="#"&&(R=R.charAt(1)==="!"?R.substring(2):R.substring(1));return _.eO(R)};
oh=function(R,A,Y){var P;return _.O(function(E){if(E.nextAddress==1)return E.yield(A(),2);P=E.yieldResult;Y(P,R);_.XH(E)})};
G3R=function(){return _.O(function(R){return R.nextAddress==1?R.yield((_.OOf()!==void 0?_.j5(Error("tf")):_.lZ9()).then(function(){return 1},function(A){if(A.message==="Biscotti id is disabled")return 3;
_.pK("Failed fetching bid");return 0}),2):R.return(R.yieldResult)})};
tx$=function(){var R=_.ik("ZW4tZW1iZWQtcGxheWVyI2t1bHBqNGg5cXlkYnl0LWhhdg=="),A=_.ik("ZDF2ODNwcGFnaWZyYW1lI3VwNQ==");return document.querySelector(A+Zwe+R)?0:1};
wUb=function(){return _.ACP(_.OV)};
uNe=function(){return _.YHb()===0?0:_.PgJ()};
e4g=function(){return _.xub(_.Hlk([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
LTe=function(){return _.tt6(qKg)};
_.d1D=function(R){_.O(function(A){switch(A.nextAddress){case 1:return A.yield(oh("b.f_",G3R,R),2);case 2:return A.yield(oh("j.s_",_.GVb,R),3);case 3:return A.yield(oh("r.s_",_.hEl,R),4);case 4:return A.yield(oh("e.h_",LTe,R),5);case 5:if(!_.v("ab_det_sc_inj")){A.jumpTo(6);break}return A.yield(oh("s.i_",_.dvb,R),6);case 6:if(_.v("ab_deg_unex_thr")){A.jumpTo(8);break}return A.yield(oh("a.o_",_.qbk,R),8);case 8:if(_.v("ks_get_o_pp")){A.jumpTo(10);break}return A.yield(oh("g.o_",_.eEb,R),10);case 10:if(_.v("ks_det_gpbl")){A.jumpTo(12);
break}return A.yield(oh("p.i_",_.uP8,R),12);case 12:return A.yield(oh("f.i_",_.Imb,R),14);case 14:return A.yield(oh("a.b_",_.am8,R),15);case 15:return A.yield(oh("p.m_",_.jJ3,R),16);case 16:if(!_.v("ab_det_el_h_v2")){A.jumpTo(17);break}return A.yield(oh("n.h_",e4g,R),17);case 17:return A.yield(oh("o.p_",wUb,R),19);case 19:return A.yield(oh("e.i_",tx$,R),20);case 20:if(_.v("ab_det_apm"))return A.yield(oh("o.a_",uNe,R),0);A.jumpTo(0)}})};
_.Rsb=function(R,A){R={videoId:R};A&&(R.playlistId=A);return R};
_.PBo=function(){if(_.Tk6()){var R=_.a1("PLAYER_VARS",{});if(_.BO.get(R,"privembed",!1)!="1"&&!_.c_F(R)){var A=function(){AZx=!0;"google_ad_status"in window?_.BD("DCLKSTAT",1):_.BD("DCLKSTAT",2)};
try{_.Gr(_.uaH,A)}catch(Y){}YFc.push(_.fn.addLowPriorityJob(function(){if(!(AZx||"google_ad_status"in window)){try{_.OUV(_.uaH.toString(),A)}catch(Y){}AZx=!0;_.BD("DCLKSTAT",3)}},5E3))}}};
_.E_c=function(R,A,Y){Y=Y===void 0?!1:Y;var P=Math.max(R.width,_.gDb);if(_.v("kevlar_watch_feed_big_thumbs")&&R.width>=1550-_.zc()&&R.height>=800)P-=_.$LR;else if(R.width>=_.wT){var E=_.nD$+_.Hqf+_.tU;_.v("kevlar_watch_feed_big_thumbs")&&(E=_.ULD);P-=E}else P-=_.nD$;P=Math.min(P,_.rbL);E=240;Y&&(E=380);A<.5624||(!_.v("kevlar_watch_flexy_disable_small_window_sizing")&&(R.height<630&&R.width>=657||R.height>=630&&R.width>=_.wT&&R.width<1327)?E=360:!_.v("kevlar_watch_flexy_disable_large_window_sizing")&&
R.height>=630&&R.width>=1327&&(E=480));var z=Math.min(P*A,R.height-(56+_.vDE+_.DLe));z=Math.max(z,E);A<1?P=z/A:R.width>=_.wT&&(P=_.E_c(R,.5625,Y).width);return new _.Dg(Math.round(P),Math.round(z))};
_.zsE=function(R){var A=0;R.indexOf("h")!=-1&&(R=R.split("h"),A=R[0]*60*60,R=R[1]);R.indexOf("m")!=-1&&(R=R.split("m"),A=R[0]*60+A,R=R[1]);R.indexOf("s")!=-1?(R=R.split("s"),A=R[0]*1+A):A=R*1+A;return A};
_.ing=function(){_.cU("service_worker_push_logged_out_prompt_watches")!=-1&&_.X$("WatchCount").then(function(R){R>=100||_.rp("WatchCount",R+1)})};
lF$=function(R){var A=R.externalVideoId||"";return A?R.isShortsEligible?"https://www.youtube.com/shorts/"+A:"https://www.youtube.com/watch?v="+A:""};
xzZ=function(R){var A=[];R.viewCount&&A.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:R.viewCount});R.likeCount&&A.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:R.likeCount});return A};
cZo=function(R){var A,Y,P={"@context":"https://schema.org","@type":"VideoObject",description:_.R4(R.description),duration:"PT"+(R.lengthSeconds||"0")+"S",embedUrl:R.embed?R.embed.iframeUrl:"",name:_.R4(R.title),thumbnailUrl:((A=R.thumbnail)==null?void 0:(Y=A.thumbnails)==null?void 0:Y.map(function(m){return m&&m.url||""}))||[],
uploadDate:R.publishDate};_.v("mweb_video_schema_id_killswitch")||(P["@id"]=lF$(R));A=xzZ(R);A.length&&(P.interactionStatistic=A);R.category&&(P.genre=R.category);R.ownerChannelName&&(P.author=R.ownerChannelName);R.liveBroadcastDetails&&(P.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:R.liveBroadcastDetails.startTimestamp,endDate:R.liveBroadcastDetails.endTimestamp}]);if(R.learningResource){R=R.learningResource;P["@type"]=["VideoObject","LearningResource"];var E;if((E=R.learningResourceType)==
null?0:E.length)P.learningResourceType=R.learningResourceType[0];var z;if((z=R.educationalAlignment)==null?0:z.length)P.educationalAlignment={"@type":"AlignmentObject",targetName:R.educationalAlignment[0]};var c;if((c=R.educationalLevel)==null?0:c.length){E=R.educationalLevel[0];var M;if((M=R.educationalLevelCountry)==null?0:M.length)E+=" ("+R.educationalLevelCountry+")";P.educationalLevel=E}var N,y;if(((N=R.learningResourceType)==null?0:N.length)&&R.learningResourceType[0]==="Problem walkthrough"&&
((y=R.problemDescriptions)==null?0:y.length))for(P.hasPart=[],M=_.x(R.problemDescriptions),N=M.next();!N.done;N=M.next())E=N.value,N=E.problemDescriptionText,y=E.startOffset,E=E.url,N&&y!==void 0&&E&&P.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:N,text:N,startOffset:y,url:E})}return P};
_.Onq=function(R){return _.cK({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:R}})};
qKg=[[["ajJsNTF4YzFwcmltYXJ5I2lmajQ=",null,null],[null,["ZXN1bHRzLXJlbmRlcmVyI2NrY3preWlidnRxenl0ZC10d28tY29sdW1uLWJyb3dzZS1y","dG9oZ3N0eWxlLXNjb3BlI3lscXMwM2Jl"],null],["M2N2djdtYXN0aGVhZC1hZCMzeTlwbGY=",["aC1ncmlkLXJlbmRlcmVyI29vZHFydGY0MzB6bXl0ZC1yaWM="],null],[null,["aC1ncmlkLXJlbmRlcmVyI2xjNmd3d3M2MWJmbnl0ZC1yaWM=","NXV1ZHNzdHlsZS1zY29wZSNsYWdtZ2Y="],null],[null,["LXByb21vLXJlbmRlcmVyIzdha2d5MHdsbnQxZ3l0ZC1iYW5uZXI=","dGE5Z3N0eWxlLXNjb3BlIzE3emdkdXNr"],null],[null,["ZC1zbG90LXJlbmRlcmVyI25xNjVteXBidmFoOXl0ZC1h"],
null]],[["Z2Qza2RwbGF5ZXItYWRzIzl5dmRqMm0=",null,null]],[["c2NyaXB0aW9uLWlubmVyI3NlYXc5aXI5eXR4cmRl",null,null],[null,null,"LXNoZWxmLXJlbmRlcmVyIzdiZTJ4a3RrbnF5aXl0ZC1tZXJjaA=="],["ZjlodWN3dGN4ZjltYWluIzI=",["LXNoZWxmLXJlbmRlcmVyI3EzNXhrNXZ5c3Nydnl0ZC1tZXJjaA=="],null]]];Zwe="#";YFc=[];AZx=!1;_.MXo=["engagement-panel-ads"];sBb=new _.lU("updateSentimentBarStateCommand");_.NMc=new _.lU("showSurveyCommand");_.kY=new _.lU("changeMarkersVisibilityCommand");var JZZ,yZf,v_E,QBZ,TMR,Gw;_.VXD=function(R,A){this.playerProvider_=R;this.actionSenderElement_=A;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.VXD.prototype.reset=function(){JZZ(this);this.isUserPredictedAbsent_=!1};
JZZ=function(R,A){!R.youThereData_||R.showWarningJob_||A!==void 0&&A||(_.DU("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.F9(),R.youThereData_,R.clientPlaybackNonce_),_.j_());_.fn.cancelJob(R.showWarningJob_);R.showWarningJob_=0;_.fn.cancelJob(R.showBlockingWarningJob_);R.showBlockingWarningJob_=0;_.fn.cancelJob(R.pausePlaybackJob_);R.pausePlaybackJob_=0;R.youThereData_=null;R.clientPlaybackNonce_=void 0;R.inYouThereFlow_=!1};
_.mze=function(R,A){var Y,P,E;_.O(function(z){if(z.nextAddress==1)return R.reset(),z.yield(R.playerProvider_().getPlayerPromise(),2);Y=z.yieldResult;R.clientPlaybackNonce_=Y.getVideoData().cpn;R.youThereData_=A.configData.youThereData;if(!R.youThereData_)return z.return();if(R.youThereData_.triggerReason&&R.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.V0G())return _.DU("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.F9(),R.youThereData_,R.clientPlaybackNonce_),z.return();P=R.youThereData_.promptDelaySec;
E=Y.getCurrentTime();R.showWarningJob_=_.fn.addLowPriorityJob(function(){return _.O(function(c){R.showWarningJob_=0;return c.yield(yZf(R),0)})},Math.max(P-E,0)*1E3);
_.XH(z)})};
yZf=function(R){var A,Y,P,E,z,c;return _.O(function(M){if(M.nextAddress==1)return M.yield(R.playerProvider_().getPlayerPromise(),2);if(M.nextAddress!=3)return A=M.yieldResult,Y=A.getCurrentTime(),M.yield(TMR(R),3);P=M.yieldResult;if(!P||!R.youThereData_)return M.return();if(_.v("check_user_lact_at_prompt_shown_time_on_web")&&(E=parseInt(R.youThereData_.lactThresholdMs,10),_.z$()<E))return _.DU("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.F9(),R.youThereData_,R.clientPlaybackNonce_),M.return();if(R.youThereData_.playbackPauseDelayMs<=
0)return QBZ(R),M.return();!_.v("external_fullscreen")&&(z=_.EC())&&(R.ignoreFullscreenExitUserActivity_=!0,_.fn.addLowPriorityJob(function(){R.ignoreFullscreenExitUserActivity_=!1},2E3),_.zi(z));
R.youThereData_.showToastWarningPrompt&&(Gw(R,R.youThereData_.showWarningActions),R.inYouThereFlow_=!0,_.DU("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.F9(),R.youThereData_,R.clientPlaybackNonce_,Y),_.DU("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.F9(),R.youThereData_,R.clientPlaybackNonce_,Y));c=0;R.youThereData_.blockingPromptDelayMs&&(c=R.youThereData_.blockingPromptDelayMs);R.showBlockingWarningJob_=_.fn.addLowPriorityJob(function(){return _.O(function(N){R.showBlockingWarningJob_=0;return N.yield(v_E(R),
0)})},c);
_.XH(M)})};
v_E=function(R){var A,Y,P;return _.O(function(E){if(E.nextAddress==1)return E.yield(TMR(R),2);A=E.yieldResult;if(!R.youThereData_)return E.return();A&&(R.youThereData_.showBlockingWarningAction&&(_.DU("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.F9(),R.youThereData_,R.clientPlaybackNonce_),(Y=_.n(R.youThereData_.showBlockingWarningAction,_.Jg))?Gw(R,Y.commands):Gw(R,[R.youThereData_.showBlockingWarningAction]),R.inYouThereFlow_=!0),P=R.youThereData_.playbackPauseDelayMs,R.pausePlaybackJob_=
_.fn.addLowPriorityJob(function(){return _.O(function(z){R.pausePlaybackJob_=0;return z.yield(QBZ(R),0)})},P));
_.XH(E)})};
QBZ=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(TMR(R),2);A=Y.yieldResult;if(!R.youThereData_)return Y.return();A&&(_.DU("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.F9(),R.youThereData_,R.clientPlaybackNonce_),Gw(R,R.youThereData_.showPausedActions),R.inYouThereFlow_=!0);_.XH(Y)})};
_.VXD.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var R=_.n(this.youThereData_.userActiveDuringFlowAction,_.Jg);R?Gw(this,R.commands):Gw(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.DU("YOU_THERE_EVENT_TYPE_LACT_RESET",_.F9(),this.youThereData_,this.clientPlaybackNonce_),_.j_());JZZ(this,!0)}_.g_f(this,!1)};
_.n_$=function(R){_.DU("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.F9(),R.youThereData_,R.clientPlaybackNonce_)};
TMR=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(R.playerProvider_().getPlayerPromise(),2);A=P.yieldResult;Y=A.getPlayerState();return P.return(Y==-1||Y==1||Y==3)})};
_.g_f=function(R,A){var Y;_.O(function(P){if(P.nextAddress==1){if(R.isUserPredictedAbsent_==A)return P.jumpTo(0);R.isUserPredictedAbsent_=A;return P.yield(R.playerProvider_().getPlayerPromise(),3)}Y=P.yieldResult;Y.setUserEngagement(A);A&&_.DU("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.F9(),R.youThereData_,R.clientPlaybackNonce_);_.XH(P)})};
Gw=function(R,A){if(_.v("handle_service_request_actions")||_.v("kevlar_youthere_service_endpoint_actions_killswitch"))_.NT(R.actionSenderElement_,A,R.actionSenderElement_);else{A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.commandMetadata&&Y.commandMetadata.webCommandMetadata&&Y.commandMetadata.webCommandMetadata.sendPost?_.sC(R.actionSenderElement_,[Y]):_.NT(R.actionSenderElement_,[Y],R.actionSenderElement_)}};var HnZ;var rZf;var ZT=function(){var R=_.K.apply(this,arguments)||this;R.systemIcons=_.v("kevlar_system_icons");R.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return R};
_.H(ZT,_.K);ZT.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var R=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(R=this.data.percentIfLiked||0,this.activated=!0):(R=this.data.percentIfIndifferent||0,this.activated=!1);_.Mo(this.hostElement).querySelector("#like-bar").style.width=R+"%"}};
ZT.prototype.handleUpdateSentimentBarStateCommand=function(R){this.data&&this.set("data.likeStatus",_.n(R,sBb).likeStatus)};
ZT.prototype.observeLikeStatus=ZT.prototype.observeLikeStatus;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ZT.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ZT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ZT.prototype,"activated",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ZT.prototype,"systemIcons",void 0);_.C([_.vZ("data.likeStatus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZT.prototype,"observeLikeStatus",null);_.C([_.F({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],ZT);
_.B(ZT,"ytd-sentiment-bar-renderer",function(){if(rZf!==void 0)return rZf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return rZf=R},{mode:1});var DzE;var tp=function(){var R=_.K.apply(this,arguments)||this;R.small=!0;return R};
_.H(tp,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],tp.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tp.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],tp.prototype,"small",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],tp);
_.B(tp,"ytd-video-view-count-renderer",function(){if(DzE!==void 0)return DzE;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return DzE=R},{mode:_.Nf("kevlar_poly_si_batch_j080")?1:2});var wN=function(){var R=_.K.apply(this,arguments)||this;R.infoFormattedStrings=[];R.wrapVideoActions=_.v("kevar_watch_wrap_video_actions");R.hideSentimentBar=_.v("kevlar_watch_hide_sentiment_bar");R.actionMap={};return R};
_.H(wN,_.K);_.l=wN.prototype;_.l.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.v("web_modern_buttons"),forceIconButton:!_.v("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.l.dataChanged=function(){_.v("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.l.computeInfoFormattedStrings=function(R){if(!R)return[];var A=[];R.dateText&&A.push(R.dateText);R.stationName&&A.push(R.stationName);R.rating&&A.push(R.rating);R.startEndTimeTemplate&&R.startTimeUtcMillis&&R.endTimeUtcMillis&&A.push(_.dF(_.FSD(_.R4(R.startEndTimeTemplate),Number(R.startTimeUtcMillis),Number(R.endTimeUtcMillis))));R.upNextProgramText&&A.push(R.upNextProgramText);return A};
_.l.scheduleInitialUpdatedMetadataRequest=function(){var R,A=(R=this.data)==null?void 0:R.updatedMetadataEndpoint;if(A){var Y;R=Number((Y=_.n(A,_.b_A))==null?void 0:Y.initialDelayMs);Y=isNaN(R)?250:R;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),Y)}};
_.l.setSentimentBarWidth=function(){var R=this;_.RK(this,function(){var A=_.Mo(R.hostElement).querySelector("ytd-menu-renderer");if(A){A=A.topLevelButtons;for(var Y=0,P=0;P<A.length;P++){var E=A[P],z=R.get("toggleButtonSupportedData.toggleButtonIdData.id",E.data);if(z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||z==="TOGGLE_BUTTON_ID_TYPE_LIKE")Y+=E.clientWidth+8;else break}Y&&(R.sentiment.style.width=Y-8+" px")}})};
_.l.fetchUpdatedMetadata=function(R){var A;R&&(A={continuation:R});var Y;(R=(Y=this.data)==null?void 0:Y.updatedMetadataEndpoint)&&_.is().resolve(_.ls).resolveCommand(R,{form:Object.assign({},A,{element:this.hostElement})})};
_.l.onYtServiceRequestSent=function(R,A){A.endpoint&&_.n(A.endpoint,_.p0)&&(this.hasUpdateSentimentBarStateCommands()&&!_.v("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.n(A.endpoint,_.p0).status),this.setSentimentBarWidth())};
_.l.hasUpdateSentimentBarStateCommands=function(){var R,A,Y,P,E=(P=(R=this.data)==null?void 0:(A=R.videoActions)==null?void 0:(Y=A.menuRenderer)==null?void 0:Y.topLevelButtons)!=null?P:[];R=_.x(E);for(A=R.next();!A.done;A=R.next()){A=A.value;E=P=Y=void 0;var z=(Y=A.toggleButtonRenderer)==null?void 0:(P=Y.toggleButtonSupportedData)==null?void 0:(E=P.toggleButtonIdData)==null?void 0:E.id;if(z==="TOGGLE_BUTTON_ID_TYPE_LIKE"||z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){P=Y=void 0;A=(P=_.n((Y=A.toggleButtonRenderer)==
null?void 0:Y.defaultServiceEndpoint,_.Jg))==null?void 0:P.commands;if(!A)break;A=_.x(A);for(Y=A.next();!Y.done;Y=A.next())if(_.n(Y.value,sBb))return!0}}return!1};
_.l.onYtServiceRequestCompleted=function(R,A){var Y;(R=(Y=A.data)==null?void 0:Y.loggingDirectives)&&_.Idq(_.rU(),R);this.get("continuation.timedContinuationData",A.data)&&this.data&&this.data.updatedMetadataEndpoint&&(A=A.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,A.continuation),A.timeoutMs))};
_.l.computeHasDateText=function(R){return!!R&&!!R.dateText};
_.Yh.Object.defineProperties(wN.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;return!((P=(R=this.data)==null?void 0:(A=R.videoActions)==null?void 0:(Y=A.menuRenderer)==null?void 0:Y.flexibleItems)==null||!P.length)}}});
wN.prototype.onYtServiceRequestCompleted=wN.prototype.onYtServiceRequestCompleted;wN.prototype.onYtServiceRequestSent=wN.prototype.onYtServiceRequestSent;wN.prototype.dataChanged=wN.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],wN.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wN.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.QY.YtTaskEmitterBehavior),_.k("design:type",Object)],wN.prototype,"ytTaskEmitterBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wN.prototype,"data",void 0);_.C([_.S({computed:"computeInfoFormattedStrings(data)"}),_.k("design:type",Array)],wN.prototype,"infoFormattedStrings",void 0);
_.C([_.S({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],wN.prototype,"hasDateText",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wN.prototype,"wrapVideoActions",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wN.prototype,"hideSentimentBar",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wN.prototype,"flexMenuEnabled",null);
_.C([_.nG("#sentiment"),_.k("design:type",Object)],wN.prototype,"sentiment",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wN.prototype,"dataChanged",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],wN.prototype,"onYtServiceRequestSent",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],wN.prototype,"onYtServiceRequestCompleted",null);
_.B(wN,"ytd-video-primary-info-renderer",function(){if(HnZ===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);HnZ=R}R=HnZ;return R},{mode:1});var Uzb;var uv=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return R};
_.H(uv,_.K);_.l=uv.prototype;_.l.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"}}}};
_.l.dataChanged=function(){var R;this.descriptionToggled=!((R=this.data)==null||!R.defaultExpanded);var A;this.collapsed=this.descriptionAlwaysCollapsed||!((A=this.data)==null?0:A.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.NV(110509);this.showLessClientVe=_.NV(110510);R=_.F9();A=_.pO();R&&A&&_.tg(R,A,[this.showMoreClientVe,this.showLessClientVe])};
_.l.onYtExpanderMoreTapped=function(){var R,A=(R=this.data)==null?void 0:R.showMoreCommand;A&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(A);(R=_.F9())&&this.showMoreClientVe&&_.qT(R,this.showMoreClientVe)};
_.l.onYtExpanderLessTapped=function(){var R=_.F9();R&&this.showLessClientVe&&_.qT(R,this.showLessClientVe);var A;(R=(A=this.data)==null?void 0:A.showLessCommand)&&this.componentBehavior.resolveCommand(R)};
_.l.handleUpdateDateTextAction=function(R){this.data&&this.data.dateText&&this.set("data.dateText",_.n(R,_.VcE).dateText)};
_.l.handleUpdateDescriptionAction=function(R){if(R=_.n(R,_.jsS))R.isEmpty||!R.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.FS(R.description)):this.set("data.description",R.description)};
_.l.onYtChangeEngagementPanelVisibilityAction=function(R){if(_.v("web_structured_description_show_more")||_.v("web_engagement_panel_open_description")){var A,Y=(A=_.n(R,_.hMG))==null?void 0:A.targetId,P;R=((P=_.n(R,_.hMG))==null?void 0:P.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";Y==="engagement-panel-structured-description"&&R&&(this.descriptionToggled=!0)}};
_.l.updateCollapsedFromBinding=function(R){this.collapsed=R.detail.value};
_.l.updateDescriptionToggledFromBinding=function(R){this.descriptionToggled=R.detail.value};
_.l.updateCanCollapseFromBinding=function(R){this.canCollapse=R.detail.value};
_.Yh.Object.defineProperties(uv.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.metadataRowContainer)==null?void 0:A.metadataRowContainerRenderer;return!!Y&&!!Y.rows&&Y.rows.length>Y.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.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}}});
uv.prototype.onYtExpanderLessTapped=uv.prototype.onYtExpanderLessTapped;uv.prototype.onYtExpanderMoreTapped=uv.prototype.onYtExpanderMoreTapped;uv.prototype.dataChanged=uv.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],uv.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uv.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],uv.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],uv.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uv.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],uv.prototype,"collapsed",void 0);_.C([_.S(),_.k("design:type",Boolean)],uv.prototype,"descriptionToggled",void 0);
_.C([_.S(),_.k("design:type",Boolean)],uv.prototype,"canCollapse",void 0);_.C([_.S(),_.k("design:type",Object)],uv.prototype,"subscribeButtonData",void 0);_.C([_.S(),_.k("design:type",Number)],uv.prototype,"descriptionCollapsedHeight",void 0);_.C([_.S(),_.k("design:type",Object)],uv.prototype,"structuredDescriptionContentRenderer",void 0);_.C([_.S({value:function(){return _.v("web_watch_description_always_collapsed")}}),
_.k("design:type",Boolean)],uv.prototype,"descriptionAlwaysCollapsed",void 0);_.C([_.nG("#description"),_.k("design:type",HTMLDivElement)],uv.prototype,"description",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uv.prototype,"dataChanged",null);_.C([_.Qa("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uv.prototype,"onYtExpanderMoreTapped",null);
_.C([_.Qa("yt-expander-less-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uv.prototype,"onYtExpanderLessTapped",null);_.C([_.X("data.metadataRowContainer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],uv.prototype,"metadataCollapsible",null);_.C([_.X("data","structuredDescriptionContentRenderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],uv.prototype,"hasInlineStructuredDescription",null);
_.C([_.X("data.attributedDescription"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],uv.prototype,"hasAttributedDescription",null);_.C([_.X("hasInlineStructuredDescription","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],uv.prototype,"loadStructuredDescription",null);_.C([_.X("data","structuredDescriptionContentRenderer","collapsed"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],uv.prototype,"showInlineStructuredDescription",null);
_.C([_.X("data","hasInlineStructuredDescription","metadataCollapsible"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],uv.prototype,"descriptionAlwaysCollapsible",null);
_.B(uv,"ytd-video-secondary-info-renderer",function(){if(Uzb===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);Uzb=R}R=Uzb;return R},{mode:2});var $zD;var eh=function(){return _.K.apply(this,arguments)||this};
_.H(eh,_.K);eh.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:_.v("web_modern_buttons"),forceIconButton:!_.v("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
eh.prototype.activate=function(R){R.appendTo(this.player);R.getPlayerPromise().then(function(A){A.setMinimized(!0)});
this.active=!0};
eh.prototype.deactivate=function(){var R=this.player.firstElementChild;R.getPlayerPromise().then(function(A){A.setMinimized(!1)});
this.active=!1;return R};
eh.prototype.onScrollUpTap=function(){var R=_.is().resolve(_.YH).getCurrentPage();R&&R.setScrollTop(0)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],eh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],eh.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],eh.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],eh.prototype,"active",void 0);
_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.k("design:type",Boolean)],eh.prototype,"darkLaunch",void 0);_.C([_.nG("#player"),_.k("design:type",HTMLDivElement)],eh.prototype,"player",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],eh);
_.B(eh,"ytd-miniplayer-bar-renderer",function(){if($zD!==void 0)return $zD;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $zD=R},{mode:1});_.Ow(_.E5(function(R){var A=_.LK("script");_.jq(function(){var Y;if(Y=JSON)Y=cZo(R.data()),Y=_.YU(JSON.stringify(Y).replace(/</g,"\\u003C"));var P=R.data(),E=_.R4(P.title).trim().length===0,z=!P.publishDate||P.publishDate.trim().length===0,c,M,N,y,m=!((c=P.thumbnail)==null?0:(M=c.thumbnails)==null?0:M.length)||!((N=P.thumbnail)==null?0:N.thumbnails[0].url)||((y=P.thumbnail)==null?void 0:y.thumbnails[0].url.trim().length)===0;A.value&&Y&&!(E||z||m)&&_.Pt(A.value,Y)},"I9AhLd");
return _.V("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.V("script",{el:A,type:"application/ld+json"}))},"bl"),"player-microformat-renderer",{props:{data:_.xL}});
}catch(e){_._DumpException(e)}
try{
var gSg,Hwe;_.vSq=function(R){return R.watch.watchWindowSize};
gSg=function(R,A,Y,P){if(R.isLockupToWatchTransitionEnabled){if(A){var E={};R.viewTransitionCoordinator.registerElement(A,(E["lockup-to-watch"]="player-lockup-to-watch",E["watch-next-appears"]="player-watch-next-loaded",E))}Y&&(A={},R.viewTransitionCoordinator.registerElement(Y,(A["lockup-to-watch"]="below-lockup-to-watch",A["watch-next-appears"]="below-watch-next-loaded",A)));P&&(Y={},R.viewTransitionCoordinator.registerElement(P,(Y["watch-next-appears"]="secondary-watch-next-loaded",Y)))}};
_.nSZ=function(R){return _.cK({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:R}})};
Hwe=new _.lU("webWatchNextResponseExtensionData");var D1q=function(R){_.KJ.call(this);var A=this;this.JSC$23035_watchApi=R;var Y=this.JSC$23035_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){rNb(A)});
this.addOnDisposeCallback(function(){A.JSC$23035_watchApi.unsubscribeByKey(Y)});
rNb(this)};
_.H(D1q,_.KJ);var rNb=function(R){var A,Y,P,E;_.O(function(z){if(z.nextAddress==1){A=R.JSC$23035_watchApi.getWatchNextResponse();if(!A)return z.return();Y=_.n(A,Hwe);return(P=Y)!=null&&P.enableCreatorChatbot?z.yield((0,_.j9k)("NSzT5"),3):z.jumpTo(0)}E=_.D49;E();_.XH(z)})};var $1R=function(R){_.KJ.call(this);this.JSC$23039_watchApi=R;U1L(this)};
_.H($1R,_.KJ);var U1L=function(R){_.O(function(A){if(A.nextAddress==1)return A.yield(XUo(R),2);SKR(R);_.XH(A)})},XUo=function(R){var A,Y,P,E;
return _.O(function(z){if(z.nextAddress==1)return z.yield(R.JSC$23039_watchApi.playerApi,2);A=z.yieldResult;R.JSC$23039_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){IOg(R)});
Y=R.JSC$23039_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SKR(R)});
P=function(c){R.onCueRangeEnter(c)};
A.addEventListener("onCueRangeEnter",P);E=function(c){R.onCueRangeExit(c)};
A.addEventListener("onCueRangeExit",E);R.addOnDisposeCallback(function(){R.JSC$23039_watchApi.unsubscribeByKey(Y);A.removeEventListener("onCueRangeEnter",P);A.removeEventListener("onCueRangeExit",E)});
_.XH(z)})},KTL=function(R){var A,Y,P,E,z,c,M,N,y;
return(z=(A=R.contents)==null?void 0:(Y=A.twoColumnWatchNextResults)==null?void 0:(P=Y.results)==null?void 0:(E=P.results)==null?void 0:E.contents)==null?void 0:(c=z.find(function(m){var T,Q,g;return(T=m.itemSectionRenderer)==null?void 0:(Q=T.contents)==null?void 0:(g=Q[0])==null?void 0:g.shoppingTimelyShelfViewModel}))==null?void 0:(M=c.itemSectionRenderer)==null?void 0:(N=M.contents)==null?void 0:(y=N[0])==null?void 0:y.shoppingTimelyShelfViewModel},SKR=function(R){var A;
_.O(function(Y){if(Y.nextAddress==1)return(A=R.JSC$23039_watchApi.getWatchNextResponse())?Y.yield(IOg(R),2):Y.return();R.shoppingTimelyShelfViewModel=KTL(A);WTf(R);jWo(R);_.XH(Y)})},WTf=function(R){var A,Y=(A=R.shoppingTimelyShelfViewModel)==null?void 0:A.offerIdToVariants;
Y&&(A=Y.filter(function(P){return P.key&&P.value}).map(function(P){return[P.key,
P.value]}),R.variantsMap=new Map(A))},jWo=function(R){var A,Y,P,E,z,c;
_.O(function(M){if(M.nextAddress==1)return(Y=(A=R.shoppingTimelyShelfViewModel)==null?void 0:A.cueRanges)?M.yield(R.JSC$23039_watchApi.playerApi,2):M.return();P=M.yieldResult;R.cueRanges=Y;E=_.x(Y);for(z=E.next();!z.done;z=E.next())c=z.value,c.startTime!==void 0&&c.endTime!==void 0&&c.id!==void 0&&P.addCueRange("shopping_timely_shelf"+c.id,bwR(c.startTime),bwR(c.endTime));_.XH(M)})},bwR=function(R){return Number(R.seconds||0)+(R.nanos||0)/1E9};
$1R.prototype.onCueRangeEnter=function(R){if(R.startsWith("shopping_timely_shelf")){var A=R.substring(21),Y,P;R=(Y=this.variantsMap)==null?void 0:(P=Y.get(A))==null?void 0:P.shelf;if(_.v("web_enable_shopping_timely_shelf_client_overwrite")){var E,z,c,M,N;Y=R==null?void 0:(E=R.shoppingTimelyShelfContentViewModel)==null?void 0:(z=E.button)==null?void 0:(c=z[1])==null?void 0:(M=c.buttonViewModel)==null?void 0:(N=M.onTap)==null?void 0:N.innertubeCommand;var y,m;if(Y==null?0:(y=Y.menuEndpoint)==null?0:
(m=y.menu)==null?0:m.menuRenderer)Y.openPopupAction=Y.menuEndpoint,Y.openPopupAction.popup=Y.openPopupAction.menu,Y.openPopupAction.popup.menuPopupRenderer=Y.openPopupAction.popup.menuRenderer,Y.openPopupAction.popupType="DROPDOWN",delete Y.menuEndpoint,delete Y.openPopupAction.menu,delete Y.openPopupAction.popup.menuRenderer}R&&this.JSC$23039_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",R)}};
$1R.prototype.onCueRangeExit=function(R){R.startsWith("shopping_timely_shelf")&&this.JSC$23039_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{})};
var IOg=function(R){var A,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return c.yield(R.JSC$23039_watchApi.playerApi,2);A=c.yieldResult;if(R.cueRanges)for(Y=_.x(R.cueRanges),P=Y.next();!P.done;P=Y.next())E=P.value,E.id&&(z="shopping_timely_shelf"+E.id,A.removeCueRange(z));R.JSC$23039_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});R.shoppingTimelyShelfViewModel=void 0;R.cueRanges=void 0;R.variantsMap=void 0;_.XH(c)})};var aOE=function(R){_.KJ.call(this);var A=this;this.JSC$23046_watchApi=R;R=_.Fq(_.Yp(),_.gf3,function(){fOD(A)});
this.addOnDisposeCallback(R);R=_.Fq(_.Yp(),_.vSq,function(){fOD(A)});
this.addOnDisposeCallback(R);pU$(this);FTq(this);Brf()};
_.H(aOE,_.KJ);var pU$=function(R){var A=function(P){_.Yp().dispatch(_.jHb(P.matches))},Y=window.matchMedia("(max-width: "+(999+_.zc())+"px)");
Y.addListener(A);R.addOnDisposeCallback(function(){Y.removeListener(A)});
A(Y)},FTq=function(R){R.JSC$23046_watchApi.registerActionHandler("yt-window-resized",function(){Brf()});
R.addOnDisposeCallback(function(){R.JSC$23046_watchApi.unregisterActionHandler("yt-window-resized")})},Brf=function(){var R=_.XI();
_.Yp().dispatch(_.cK({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:R.width,height:R.height}}}))},fOD=function(R){var A;
_.O(function(Y){if(Y.nextAddress==1)return Y.yield(R.JSC$23046_watchApi.playerApi,2);A=Y.yieldResult;A.setSize(NaN,NaN);_.XH(Y)})};var CsR=function(R){_.KJ.call(this);var A=_.is().resolve(_.B8);gSg(A,R.getElement("PLAYER_CONTAINER"),R.getElement("BELOW_THE_PLAYER"),R.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var Y=R.getElement("PLAYER_CONTAINER"),P=R.getElement("BELOW_THE_PLAYER"),E=R.getElement("SECONDARY");A.isLockupToWatchTransitionEnabled&&(Y&&_.BT(A.viewTransitionCoordinator,Y),P&&_.BT(A.viewTransitionCoordinator,P),E&&_.BT(A.viewTransitionCoordinator,E))})};
_.H(CsR,_.KJ);_.ah=function(R){_.$i.call(this);var A=this;this.rootElement=R;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return A.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(Y){A.initOrDisposeActiveModules(Y)}));
this.onAttached()};
_.H(_.ah,_.$i);_.l=_.ah.prototype;_.l.getRoot=function(){return this.rootElement};
_.l.getElement=function(R){return this.rootElement.getElement(R)};
_.l.setPlayerResponse=function(R){this.playerResponse=R;this.publish("PLAYER_RESPONSE_UPDATED",R)};
_.l.getPlayerResponse=function(){return this.playerResponse};
_.l.setWatchNextResponse=function(R){this.watchNextResponse===R?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=R,this.publish("WATCH_NEXT_RESPONSE_UPDATED",R))};
_.l.getWatchNextResponse=function(){return this.watchNextResponse};
_.l.registerActionHandler=function(R,A){var Y=this;if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.t$(_.ZA.getInstance(),(P[R]=A,P),this.getRoot())}else this.actionHandlers.has(R)||(this.actionHandlers.set(R,[]),P={},_.t$(_.ZA.getInstance(),(P[R]=function(){var E=_.Ge.apply(0,arguments);return(Y.actionHandlers.get(R)||[]).map(function(z){return z.apply(null,_.py(E))})},P),this.getRoot())),this.actionHandlers.get(R).push(A)};
_.l.unregisterActionHandler=function(R){if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var A={};_.e_(_.ZA.getInstance(),(A[R]=!0,A),this.getRoot())}else(A=this.actionHandlers.get(R))?(A.pop(),A.length===0&&(A={},_.e_(_.ZA.getInstance(),(A[R]=!0,A),this.getRoot()),this.actionHandlers.delete(R))):_.pK(new _.XN("Attempted to unregister an action handler which is not registered.",R))};
_.l.addPageDisposeJob=function(R){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.nqk(this.rootElement.pageDisposeJobs,R)};
_.l.removePageDisposeJob=function(R){this.rootElement.pageDisposeJobs&&_.ak(this.rootElement.pageDisposeJobs,R)};
_.l.dispatchEvent=function(R,A){_.xo(this.rootElement,R,A)};
_.l.provideRenderingData=function(R,A){this.rootElement.provideRenderingData(R,A)};
_.l.scrollWatchTo=function(R,A){var Y;(Y=this.watchScrollManager)==null||Y.scrollWatchTo(R,A)};
_.l.focusOnPlayer=function(){var R=this.getElement("PLAYER");_.RK(R,function(){if(R&&R.firstElementChild){var A=R.querySelector(".html5-video-player");A&&(_.gy(_.is().resolve(_.XW)),A.focus())}else _.pK(Error("No"))})};
_.l.updateCinematicFullscreenConfig=function(){if(_.v("web_cinematic_manager_redux_killswitch")){var R=!!this.rootElement.theater,A=!!this.rootElement.fullscreen,Y;(Y=this.watchCinematicManager)==null||_.f8(Y,A,R)}};
_.l.subscribeToActiveChanged=function(R,A){A=A===void 0?!0:A;var Y=_.Fq(_.Yp(),_.WSR,function(P){R(P)});
A&&R(_.WSR(_.Yp().getState()));return Y};
_.l.isActive=function(){return _.WSR(_.Yp().getState())};
_.l.onAttached=function(){var R=_.v("external_fullscreen");_.v("use_unified_flag_accessor")&&(R=_.is().resolve(_.zK0).retriever.getFlag(_.PmH));(R||_.CQ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var h4$=function(R){return R.getRoot().is==="ytd-watch-flexy"||R.getRoot().is==="ytd-watch-grid"},C8=function(R){return R.getRoot().is==="ytd-watch-fixie"};
_.ah.prototype.initPersistentModules=function(){if(C8(this)||h4$(this)&&_.v("kevlar_watch_flexy_theater_manager")){var R=new _.ZXf(this);_.gz(this,R)}R=new _.WJo(this);_.gz(this,R);R=new _.WW(this);_.gz(this,R);R=new _.XDL(this);_.gz(this,R);R=new _.x1c(this);_.gz(this,R);R=new _.jh(this);_.gz(this,R);if(C8(this)||h4$(this)&&_.v("kevlar_watch_flexy_playlist_manager"))R=new _.Mxo(this),_.gz(this,R);_.v("web_thumbnail_to_watch_transition")&&(R=new CsR(this),_.gz(this,R))};
_.ah.prototype.initOrDisposeActiveModules=function(R){R?(this.watchScrollManager=new _.BW(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.wDL(this)),_.v("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new $1R(this)),this.activeModules.push(new _.wvf(this)),C8(this)&&this.activeModules.push(new aOE(this)),this.activeModules.push(new _.m1c(this)),this.activeModules.push(new _.CIx(this)),(C8(this)||_.v("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.d_b(this)),this.activeModules.push(new _.R4L(this)),(C8(this)||_.v("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.QWb(this)),(C8(this)||_.v("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.xIx(this)),_.v("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.NuR(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.v("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.ES$(this)),
_.v("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Ire(this)),R=_.v("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.v("kevlar_watch_flexy_comments_manager")&&!R&&this.activeModules.push(new _.HQg(this)),_.v("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Mqb(this)),this.activeModules.push(new _.RAo(this)),this.activeModules.push(new _.eAx(this)),_.v("web_enable_timely_actions")&&this.activeModules.push(new _.EWx(this)),
_.v("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.U9o(this)),_.v("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.m9b(this)),_.v("web_fullscreen_components")&&this.activeModules.push(new _.Pmc(this)),_.v("web_player_rtr_ctrls")&&this.activeModules.push(new _.XVE(this)),_.v("enable_creator_chatbot")&&this.activeModules.push(new D1q(this))):(_.xt(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.ah.prototype.disposeInternal=function(){_.$i.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Yh.Object.defineProperties(_.ah.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var Ibf,Zt,KFo,WFm,beo,fbW,jum,p_o;Ibf=function(){var R=_.DM();R.info||(R.info={});return R.info};
Zt=function(R){return Math.round(_.SF()+R)};
KFo=function(){var R;if(_.v("csi_use_performance_navigation_timing")){var A,Y,P,E=_.Xh==null?void 0:(R=_.Xh.getEntriesByType)==null?void 0:(A=R.call(_.Xh,"navigation"))==null?void 0:(Y=A[0])==null?void 0:(P=Y.toJSON)==null?void 0:P.call(Y);E?(E.requestStart=Zt(E.requestStart),E.responseEnd=Zt(E.responseEnd),E.redirectStart=Zt(E.redirectStart),E.redirectEnd=Zt(E.redirectEnd),E.domainLookupEnd=Zt(E.domainLookupEnd),E.connectStart=Zt(E.connectStart),E.connectEnd=Zt(E.connectEnd),E.responseStart=Zt(E.responseStart),
E.secureConnectionStart=Zt(E.secureConnectionStart),E.domainLookupStart=Zt(E.domainLookupStart),E.isPerformanceNavigationTiming=!0,R=E):R=_.Xh.timing}else R=_.v("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Xh.timing)):_.Xh.timing;return R};
WFm=function(){if(_.Xh.getEntriesByType){var R=_.Xh.getEntriesByType("paint");if(R=_.jP(R,function(Y){return Y.name==="first-paint"}))return Zt(R.startTime)}var A;
_.v("csi_use_performance_navigation_timing")?A=_.Xh.getEntriesByType("first-paint")[0].startTime:A=_.Xh.timing.msFirstPaint;return A?Math.max(0,A):0};
beo=function(){var R=window.location.protocol,A=_.Xh.getEntriesByType("resource");A=_.zx(A,function(Y){return Y.name.indexOf(R+"//fonts.gstatic.com/s/")===0});
(A=jum(A,function(Y,P){return P.duration>Y.duration?P:Y}))&&A.startTime>0&&A.responseEnd>0&&(_.Io("wffs",Zt(A.startTime)),_.Io("wffe",Zt(A.responseEnd)))};
fbW=function(R,A){R=document.querySelector(R);if(!R)return!1;var Y="",P=R.nodeName;P==="SCRIPT"?(Y=R.src,Y||(Y=R.getAttribute("data-timing-href"))&&(Y=window.location.protocol+Y)):P==="LINK"&&(Y=R.href);_.RG(document)&&R.setAttribute("nonce",_.RG(document));return Y?(R=_.Xh.getEntriesByName(Y))&&R[0]&&(R=R[0],Y=_.SF(),_.Io("rsf_"+A,Y+Math.round(R.fetchStart)),_.Io("rse_"+A,Y+Math.round(R.responseEnd)),R.transferSize!==void 0&&R.transferSize===0)?!0:!1:!1};
_.ta=function(R,A){_.o1(function(){_.$o("").info.actionType=R;A&&_.BD("TIMING_AFT_KEYS",A);_.BD("TIMING_ACTION",R);var Y=_.cXk(_.a1("TIMING_INFO",{}));Object.keys(Y).length>0&&_.Kj(Y);Y={isNavigation:!0,actionType:_.eVP(_.a1("TIMING_ACTION"))};var P=_.a1("PREVIOUS_ACTION");P&&(Y.previousAction=_.eVP(P));if(P=_.a1("CLIENT_PROTOCOL"))Y.httpProtocol=P;if(P=_.a1("CLIENT_TRANSPORT"))Y.transportProtocol=P;(P=_.F9())&&P!=="UNDEFINED_CSN"&&(Y.clientScreenNonce=P);P=_.xYS();if(P===1||P===-1)Y.isVisible=!0;
P=_.hVk().loadType==="cold";var E=Ibf();P||(P=E.yt_lt==="cold");if(P){Y.loadType="cold";P=Ibf();E=KFo();var z=_.SF(),c=_.a1("CSI_START_TIMESTAMP_MILLIS",0);c>0&&!_.v("embeds_web_enable_csi_start_override_killswitch")&&(z=c);z&&(_.Io("srt",E.responseStart),P.prerender!==1&&_.AXJ(z));P=WFm();P>0&&_.Io("fpt",P);P=KFo();P.isPerformanceNavigationTiming&&_.Kj({performanceNavigationTiming:!0},void 0);_.Io("nreqs",P.requestStart,void 0);_.Io("nress",P.responseStart,void 0);_.Io("nrese",P.responseEnd,void 0);
P.redirectEnd-P.redirectStart>0&&(_.Io("nrs",P.redirectStart,void 0),_.Io("nre",P.redirectEnd,void 0));P.domainLookupEnd-P.domainLookupStart>0&&(_.Io("ndnss",P.domainLookupStart,void 0),_.Io("ndnse",P.domainLookupEnd,void 0));P.connectEnd-P.connectStart>0&&(_.Io("ntcps",P.connectStart,void 0),_.Io("ntcpe",P.connectEnd,void 0));P.secureConnectionStart>=_.SF()&&P.connectEnd-P.secureConnectionStart>0&&(_.Io("nstcps",P.secureConnectionStart,void 0),_.Io("ntcpe",P.connectEnd,void 0));_.Xh&&"getEntriesByType"in
_.Xh&&beo();P=[];if(document.querySelector&&_.Xh&&_.Xh.getEntriesByName)for(var M in p_o)p_o.hasOwnProperty(M)&&(E=p_o[M],fbW(M,E)&&P.push(E));if(P.length>0)for(Y.resourceInfo=[],M=_.x(P),P=M.next();!P.done;P=M.next())Y.resourceInfo.push({resourceCache:P.value})}_.Kj(Y);Y=_.UC();Y.preLoggedGelInfos||(Y.preLoggedGelInfos=[]);M=Y.preLoggedGelInfos;Y=_.kJb();P=void 0;for(E=0;E<M.length;E++)if(z=M[E],z.loadType){P=z.loadType;break}if(_.hVk().loadType==="cold"&&(Y.loadType==="cold"||P==="cold")){P=_.oIJ();
E=_.UC();E=E.gelTicks?E.gelTicks:E.gelTicks={};for(var N in P)if(!(N in E))if(typeof P[N]==="number")_.Io(N,_.Wk(N));else if(_.v("log_repeated_ytcsi_ticks"))for(z=_.x(P[N]),c=z.next();!c.done;c=z.next())c=c.value,_.Io(N.slice(1),c);N={};P=!1;M=_.x(M);for(E=M.next();!E.done;E=M.next())P=E.value,_.h_(Y,P),_.h_(N,P),P=!0;P&&_.Kj(N)}_.NSk(!0);N=_.a1("TIMING_ACTION");_.Zr("ytglobal.timingready_")&&N&&_.ngV()&&_.sjl()&&_.irP()})()};
jum=function(R,A){return Array.prototype.reduce.call(R,A,{duration:0})};
p_o={'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 FFg={};FFg.YtVisibilityRootBehavior=[_.fl7.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.lt(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.a1("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var R=_.a1("INNERTUBE_CLIENT_NAME")!=="WEB";_.v("kevlar_use_vimio_behavior")&&R&&_.WKA()}}];_.wd={};_.wd.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(R){R.detail.contextProvider=this;R.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
FFg.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.ei();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(R){var A=this;this.pageCount+=1;_.v("kevlar_use_vimio_behavior")&&(_.a1("INNERTUBE_CLIENT_NAME")==="WEB"?_.fn.addJob(function(){A.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(R)},
loadPage_:function(R){this.data=R},
ytPageBehaviorActiveObserver_:function(R){var A=this;_.v("kevlar_use_vimio_behavior")&&(R?_.a1("INNERTUBE_CLIENT_NAME")==="WEB"?_.fn.addJob(function(){A.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(R){if(!this.setScrollTopJobId_){var A=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){A.setScrollTopJobId_=0;var Y=_.is().resolve(_.z3(_.XW));Y&&_.gy(Y);this.getPageScrollingElement().scrollTop=R}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.Ws(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var Scf;var Gd=function(){var R=_.K.apply(this,arguments)||this;R.playerListenerConfig=null;R.actionMap={"yt-show-watch-page-survey":"openSurvey"};return R};
_.H(Gd,_.K);_.l=Gd.prototype;_.l.dataChanged=function(){var R=this,A=_.EJ();A&&A.getPlayerPromise().then(function(P){R.maybeRemovePlayerListeners(P)});
var Y=this.data&&this.data.survey;Y&&((Y=(Y=Y.singleOptionSurveyRenderer||Y.checkboxSurveyRenderer||Y.multiStageSurveyRenderer)&&Y.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(A,Y):this.openSurvey())};
_.l.triggerWatchPageSurvey=function(R,A){var Y=this,P,E,z,c,M,N,y,m,T;return _.O(function(Q){if(Q.nextAddress==1)return R?Q.yield(R.getPlayerPromise(),2):Q.return();Y.player=Q.yieldResult;if(!Y.player)return Q.return();P={};E=_.x(A);for(z=E.next();!z.done;z=E.next())c=z.value,M=_.x(Y.createEventListenerPair(c)),N=M.next().value,y=M.next().value,m=N,T=y,m&&T&&(P[m]=T,Y.ytPlayerListenerBehavior.listenToPlayerEvent(Y.player,m,T));Y.playerListenerConfig=P;_.XH(Q)})};
_.l.createEventListenerPair=function(R){var A=R.playbackEventTrigger;return A?this.handlePlaybackTrigger(A):(R=R.watchTimeTrigger)?this.handleWatchTimeTrigger(R):[void 0,void 0]};
_.l.handleWatchTimeTrigger=function(R){var A=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var Y=R.videoWatchFraction,P=R.watchTimeSec;return P&&Y?["onVideoProgress",function(){A.player&&A.isWatchTimeConditionMet(A.player,Y,P)&&A.showSurvey()}]:[void 0,
void 0]};
_.l.isWatchTimeConditionMet=function(R,A,Y){var P=R.getProgressState(),E=P.current-this.lastKnownPlaybackPosition;E<5&&(this.accumulatedMediaTime+=E);this.lastKnownPlaybackPosition=P.current;P=Math.round(this.accumulatedMediaTime/P.duration*1E3)/1E3;return R.getPresentingPlayerType&&R.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>Y||P>A)};
_.l.handlePlaybackTrigger=function(R){var A=this;R=R.playbackEvent;if(R==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var Y="onStateChange";var P=function(E){E===0&&A.showSurvey()}}else R==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(Y="onVideoProgress",P=function(E){A.player&&A.player.getPresentingPlayerType&&A.player.getPresentingPlayerType()===1&&E&&A.showSurvey()}):R==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(Y="onAdEnd",P=this.showSurvey);
return[Y,P]};
_.l.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.l.openSurvey=function(){var R=this,A=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.EhQ(!!A));_.fn.addJob(function(){R.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:A}})},0,0)};
_.l.maybeRemovePlayerListeners=function(R){if(this.playerListenerConfig){for(var A=_.x(Object.keys(this.playerListenerConfig)),Y=A.next();!Y.done;Y=A.next())Y=Y.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(R,Y,this.playerListenerConfig[Y]);this.playerListenerConfig=null}};
Gd.prototype.dataChanged=Gd.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],Gd.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],Gd.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Gd.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],Gd.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Gd.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Gd.prototype,"playerListenerConfig",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],Gd.prototype,"lastKnownPlaybackPosition",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],Gd.prototype,"accumulatedMediaTime",void 0);_.C([_.S(),_.k("design:type",Object)],Gd.prototype,"player",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gd.prototype,"dataChanged",null);_.C([_.F({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Gd);
_.B(Gd,"ytd-survey-trigger-renderer",function(){if(Scf!==void 0)return Scf;var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Scf=R},{mode:1});
}catch(e){_._DumpException(e)}
try{
var VHb=new _.lU("promotedSparklesWebRenderer");var JEe=new _.lU("relatedChipCommand");var yED;var mGx;var Ke=function(){return _.K.apply(this,arguments)||this};
_.H(Ke,_.K);Ke.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ke.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ke.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ke.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Ke);
_.B(Ke,"ytd-compact-tvfilm-entry-point-renderer",function(){if(mGx!==void 0)return mGx;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return mGx=R},{mode:1});var TfR;var QAc;var vZb;var W_=function(){return _.K.apply(this,arguments)||this};
_.H(W_,_.K);W_.prototype.ready=function(){this.initializeDefs()};
W_.prototype.initializeDefs=function(){var R=this.meta.byKey("yt-icons"),A=_.Mo(R).querySelector("#star"),Y=_.Mo(R).querySelector("#star_half");R=_.Mo(R).querySelector("#star_border");A&&this.defs.appendChild(A.cloneNode(!0));Y&&this.defs.appendChild(Y.cloneNode(!0));R&&this.defs.appendChild(R.cloneNode(!0))};
W_.prototype.percentChanged=function(){for(var R=this.rating;R.firstChild;)R.removeChild(R.firstChild);var A=Math.round(this.percent/10);R=Math.floor(A/2);A%=2;var Y=5-R-A;this.appendStars("star",R,0);this.appendStars("star_half",A,R);this.appendStars("star_border",Y,R+A)};
W_.prototype.appendStars=function(R,A,Y){for(var P=0;P<A;P++){var E=(18+this.spacing)*(P+Y),z=document.createElementNS("http://www.w3.org/2000/svg","use");_.$IQ(z,"#"+R);z.setAttribute("x",""+E);z.setAttribute("y","0");this.rating.appendChild(z)}};
W_.prototype.percentChanged=W_.prototype.percentChanged;_.C([_.nG("#defs"),_.k("design:type",HTMLElement)],W_.prototype,"defs",void 0);_.C([_.nG("#rating"),_.k("design:type",HTMLElement)],W_.prototype,"rating",void 0);_.C([_.S(),_.k("design:type",Number)],W_.prototype,"percent",void 0);_.C([_.S({value:6}),_.k("design:type",Number)],W_.prototype,"spacing",void 0);_.C([_.S({value:_.jJ.create("iron-meta",{type:"iconset"})}),_.k("design:type",_.pr)],W_.prototype,"meta",void 0);
_.C([_.vZ("percent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W_.prototype,"percentChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-ratings"})],W_);
_.B(W_,"ytd-ratings",function(){if(vZb!==void 0)return vZb;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return vZb=R},{mode:1});var j2=function(){return _.K.apply(this,arguments)||this};
_.H(j2,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],j2.prototype,"data",void 0);_.C([_.F({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],j2);
_.B(j2,"ytd-offer-review-renderer",function(){if(QAc!==void 0)return QAc;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QAc=R},{mode:1});var bT=function(){var R=_.K.apply(this,arguments)||this;R.badges=[{textBadge:{label:_.dF("CC")}}];return R};
_.H(bT,_.K);_.l=bT.prototype;_.l.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.l.dataChanged=function(){var R=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(R&&R.commandMetadata&&_.n(R.commandMetadata,_.BM)&&_.n(R.commandMetadata,_.BM).fireAutomatically)_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}});else{var A;R&&((A=_.n(R,_.BM))==null?0:A.fireAutomatically)&&_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})}};
_.l.isEmptyContent=function(R){return this.isStorefrontEntryPointEmpty(R)&&this.shouldHideOfferModule(R)};
_.l.isStorefrontEntryPointEmpty=function(R){return!R||!R.storefrontEntryPoint};
_.l.shouldHideOfferModule=function(R){return!!R.hideVideoDetails};
_.l.isOfferModuleNavigationInactive=function(R){return!R.navigationEndpoint&&!R.serviceEndpoint};
_.l.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
bT.prototype.dataChanged=bT.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.k("design:type",Boolean)],bT.prototype,"hidden",void 0);
_.C([_.S(),_.k("design:type",Object)],bT.prototype,"badges",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bT.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],bT);
_.B(bT,"ytd-movie-offer-module-renderer",function(){if(TfR!==void 0)return TfR;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return TfR=R},{mode:1});var gZZ;var fe=function(){return _.K.apply(this,arguments)||this};
_.H(fe,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],fe.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fe.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],fe);
_.B(fe,"ytd-media-masthead-renderer",function(){if(gZZ!==void 0)return gZZ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gZZ=R},{mode:1});var nZf;_.Ow(_.YBG,"course-metadata-view-model",{props:{data:_.xL,isOverlay:_.xL}});var pe=function(){var R=_.K.apply(this,arguments)||this;R.isMetadataVisible=!1;R.modernPanels=_.v("kevlar_watch_modern_panels");R.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return R};
_.H(pe,_.K);_.l=pe.prototype;
_.l.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"}}}}};
_.l.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.l.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.l.expanderChanged=function(){var R;if((R=this.data)==null?0:R.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.l.isExpandButtonToggled=function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.expandMetadataButton,_.iS))==null?void 0:A.isToggled};
_.l.onVisibilityButtonClick=function(){var R;if((R=this.data)==null?0:R.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.l.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
pe.prototype.expanderChanged=pe.prototype.expanderChanged;pe.prototype.dataChanged=pe.prototype.dataChanged;pe.prototype.descriptionChanged=pe.prototype.descriptionChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pe.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pe.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U([_.fH.YtActionHandlerBehavior]),_.k("design:type",Object)],pe.prototype,"actionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],pe.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],pe.prototype,"isMetadataVisible",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],pe.prototype,"modernPanels",void 0);_.C([_.nG("#expander"),_.k("design:type",Object)],pe.prototype,"expander",void 0);_.C([_.vZ("data.description"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"descriptionChanged",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"dataChanged",null);_.C([_.vZ("isMetadataVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pe.prototype,"expanderChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],pe);
_.B(pe,"ytd-tvfilm-offer-module-renderer",function(){if(nZf!==void 0)return nZf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return nZf=R},{mode:2});var HDf;var FK=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return R};
_.H(FK,_.K);FK.prototype.dataChanged=function(){this.hostElement.hidden=!1};
FK.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
FK.prototype.onThumbnailTap=function(R){this.data&&this.data.serviceEndpoint&&(_.is().resolve(_.ls).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),R.stopPropagation())};
FK.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
FK.prototype.dataChanged=FK.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],FK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],FK.prototype,"rendererBehaviors",void 0);_.C([_.U([_.fH.YtActionHandlerBehavior]),_.k("design:type",Object)],FK.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],FK.prototype,"data",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FK.prototype,"dataChanged",null);_.C([_.F({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],FK);
_.B(FK,"ytd-unlimited-offer-module-renderer",function(){if(HDf!==void 0)return HDf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return HDf=R},{mode:1});var rEo;var DGo;var B_=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return R};
_.H(B_,_.K);B_.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
B_.prototype.handleRelatedChipCommand=function(R){R=_.n(R,JEe);var A=R.contents;A?_.MT(this.hostElement,"yt-item-section-replace-action",[A,R.targetSectionIdentifier]):_.MT(this.hostElement,"yt-item-section-continuation-action",[R.continuationData,R.targetSectionIdentifier])};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],B_.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],B_.prototype,"data",void 0);_.C([_.CG({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],B_);
_.B(B_,"yt-related-chip-cloud-renderer",function(){if(DGo===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;rEo===void 0&&(rEo=document.createElement("template"));var P=rEo;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);DGo=R}R=DGo;return R},{mode:2});var au=function(){var R=_.K.apply(this,arguments)||this;R.isTwoColumns=!0;R.hideOfferModules=!1;R.watchFeedBigThumbs=_.v("kevlar_watch_feed_big_thumbs");R.watchFeedBigThumbsOnLockup=_.v("web_watch_next_big_thumbs");R.watchNextGridHideChips=_.v("kevlar_watch_grid_hide_chips");R.eligibleToSwitchToGrid=_.v("web_watch_eligible_to_switch_to_grid");R.disableShortsShelfHeightOverride=_.v("web_shorts_wn_shelf_ratio_tuning");R.isWatchNextGrid=!1;R.reuseComponents=!_.v("kevlar_watch_grid");R.nextContinuation=
{continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return R};
_.H(au,_.K);_.l=au.prototype;
_.l.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]",
useBigThumbs:"[[watchFeedBigThumbsOnLockup]]"}},reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.v("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}}};
_.l.getItemsPath=function(){return"data.results"};
_.l.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.l.created=function(){this.ytLazyListBehavior.initialCount=1};
_.l.ready=function(){_.ya(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%"})};
_.l.resultsChanged=function(){if(this.data&&this.data.results){for(var R=this.data.results,A=null,Y=null,P=0;P<R.length;P++)R[P].relatedChipCloudRenderer?A=R[P].relatedChipCloudRenderer:R[P].itemSectionRenderer&&(Y=R[P].itemSectionRenderer);if(A&&Y)for(this.set("data.continuations",[]),R=_.n(A.content,_.i_N).chips,A=0;A<R.length;A++)if(P=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",R[A]),P.loadCached||!P.contents){P.contents=Y.contents;break}}};
_.l.dataChanged=function(){var R=this,A;if((A=this.data)!=null&&A.results&&this.hasAllowedInstreamAd(this.playerData)){if(A=this.data.results.filter(function(M){return!!M.promotedSparklesWebRenderer})){for(var Y=0;Y<A.length;Y++){var P=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",A[Y]);
if(P)for(var E=0;E<P.length;E++)P[E]&&P[E].baseUrl&&_.ZF(P[E].baseUrl)}this.set("data.results",this.data.results.filter(function(M){return!M.promotedSparklesWebRenderer}))}if(A=this.data.results.filter(function(M){return!!R.getSparklesAd(M)})){A=_.x(A);
for(E=A.next();!E.done;E=A.next())if(P=Y=void 0,E=(Y=this.getSparklesAd(E.value))==null?void 0:(P=Y.errorCommand)==null?void 0:P.loggingUrls)for(Y=_.x(E),P=Y.next();!P.done;P=Y.next())(P=P.value)&&P.baseUrl&&_.ZF(P.baseUrl);var z,c;this.set("data.results",(z=this.data)==null?void 0:(c=z.results)==null?void 0:c.filter(function(M){return!M.adSlotRenderer}))}}};
_.l.getSparklesAd=function(R){var A,Y;R=_.n((A=R.adSlotRenderer)==null?void 0:(Y=A.fulfillmentContent)==null?void 0:Y.fulfilledLayout,_.ax7);return _.n(R==null?void 0:R.renderingContent,VHb)};
_.l.hasAllowedInstreamAd=function(R){R=this.get("adPlacements",R)||[];for(var A=0;A<R.length;A++){var Y=this.get("adPlacementRenderer.config.adPlacementConfig",R[A]);if(Y&&Y.suppressDisplayAd)return!0}return!1};
_.l.computeHideUnlimitedOfferModule=function(R,A){return R&&R.offerModule&&A&&R.offerModule.unlimitedOfferModuleRenderer&&R.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(A)?!0:!1};
_.l.hideUnlimitedOfferModuleChanged=function(){var R=_.Mo(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");R&&(R.hidden=this.hideUnlimitedOfferModule)};
_.l.updateLockupContainerTypes=function(R){if(this.eligibleToSwitchToGrid){var A;(A=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||A.forEach(function(Y){Y.containerType=R})}};
_.l.computeHideTvfilmOfferModule=function(R,A){var Y,P;return!!((R==null?0:(Y=R.offerModule)==null?0:(P=Y.tvfilmOfferModuleRenderer)==null?0:P.clientShouldSuppressIfCompanionAdDisplayed)&&A&&this.hasCompanionAds(A))};
_.l.hideTvfilmOfferModuleChanged=function(){var R=_.Mo(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");R&&(R.hidden=this.hideTvfilmOfferModule)};
_.l.hasCompanionAds=function(R){R=this.get("adPlacements",R)||[];for(var A=0;A<R.length;A++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",R[A]))return!0;var Y=void 0,P=void 0,E=void 0;if(!_.v("web_watch_top_banner_companion_check_killswitch")&&((Y=R[A])==null?0:(P=Y.adPlacementRenderer)==null?0:(E=P.renderer)==null?0:E.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.l.hasSuppressedResults=function(R){return R==null?!0:R.filter(function(A){return!A.continuationItemRenderer&&!A.compactPromotedVideoRenderer&&!A.promotedSparklesWebRenderer}).length===0};
_.l.computeShowButton=function(R,A){return this.isWatchNextGrid?R:R||this.hasSuppressedResults(A)};
_.l.showButtonChanged=function(){if(this.isWatchNextGrid){var R=_.Mo(this.hostElement).querySelector("ytd-rich-grid-renderer");R&&this.showButton!==null&&(R.continuationShowButton=this.showButton)}else{R=_.Mo(this.hostElement).querySelector("yt-next-continuation");var A=_.Mo(this.hostElement).querySelector("ytd-continuation-item-renderer"),Y=_.Mo(this.hostElement).querySelector("ytd-item-section-renderer");R&&(R.showButton=this.showButton);A&&(A.showButton=this.showButton);Y&&(Y.continuationShowButton=
this.showButton)}};
_.l.continuationTap=function(R){var A;if(((A=this.data)==null?void 0:A.continuations)!=null&&R.target.tagName==="TP-YT-PAPER-BUTTON")for(R=this.data.continuations,A=0;A<R.length;A++)R[A].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(R[A].nextContinuationData||{})};
_.l.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("shown-items-changed",this.shownItems))};
_.Yh.Object.defineProperties(au.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.watchFeedBigThumbsOnLockup?2:this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.shownItems)==null||!R.some(function(A){return!!A.lockupViewModel||A.compactVideoRenderer}))}}});
au.prototype.shownItemsChangedForBinding=au.prototype.shownItemsChangedForBinding;au.prototype.showButtonChanged=au.prototype.showButtonChanged;au.prototype.hideTvfilmOfferModuleChanged=au.prototype.hideTvfilmOfferModuleChanged;au.prototype.updateLockupContainerTypes=au.prototype.updateLockupContainerTypes;au.prototype.hideUnlimitedOfferModuleChanged=au.prototype.hideUnlimitedOfferModuleChanged;au.prototype.dataChanged=au.prototype.dataChanged;au.prototype.resultsChanged=au.prototype.resultsChanged;
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],au.prototype,"ytLazyListBehavior",void 0);_.C([_.U(_.Oo.YtNextContinuationBehavior),_.k("design:type",Object)],au.prototype,"ytNextContinuationBehavior",void 0);
_.C([_.U(_.cA),_.k("design:type",Object)],au.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],au.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],au.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],au.prototype,"playerData",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],au.prototype,"autoFill",void 0);_.C([_.S({value:60}),_.k("design:type",Number)],au.prototype,"targetFramerate",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],au.prototype,"isTwoColumns",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],au.prototype,"hideOfferModules",void 0);_.C([_.S(),_.k("design:type",Object)],au.prototype,"shownItems",void 0);_.C([_.S({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.k("design:type",Boolean)],au.prototype,"hideUnlimitedOfferModule",void 0);
_.C([_.S({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.k("design:type",Boolean)],au.prototype,"hideTvfilmOfferModule",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],au.prototype,"watchFeedBigThumbs",void 0);_.C([_.S(),_.k("design:type",Object)],au.prototype,"watchFeedBigThumbsOnLockup",void 0);_.C([_.S(),_.k("design:type",Object)],au.prototype,"watchNextGridHideChips",void 0);_.C([_.S(),_.k("design:type",Object)],au.prototype,"eligibleToSwitchToGrid",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],au.prototype,"disableShortsShelfHeightOverride",void 0);_.C([_.S({selector:_.B1,reflectToAttribute:!0}),_.k("design:type",Object)],au.prototype,"isGridViewEnabled",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],au.prototype,"showMoreButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],au.prototype,"isWatchNextGrid",void 0);
_.C([_.S({computed:"computeShowButton(showMoreButton, data.results)"}),_.k("design:type",Boolean)],au.prototype,"showButton",void 0);_.C([_.Ul("data.results.*"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],au.prototype,"resultsChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],au.prototype,"dataChanged",null);
_.C([_.vZ("hideUnlimitedOfferModule"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],au.prototype,"hideUnlimitedOfferModuleChanged",null);_.C([_.X("isGridViewEnabled","containsLockups","data"),_.S({reflectToAttribute:!0}),_.k("design:type",Number),_.k("design:paramtypes",[])],au.prototype,"lockupContainerType",null);
_.C([_.vZ("lockupContainerType","data"),_.k("design:type",Function),_.k("design:paramtypes",[Number]),_.k("design:returntype")],au.prototype,"updateLockupContainerTypes",null);_.C([_.vZ("hideTvfilmOfferModule"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],au.prototype,"hideTvfilmOfferModuleChanged",null);_.C([_.vZ("showButton"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],au.prototype,"showButtonChanged",null);
_.C([_.vZ("shownItems"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],au.prototype,"shownItemsChangedForBinding",null);_.C([_.X("shownItems"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],au.prototype,"containsLockups",null);
_.B(au,"ytd-watch-next-secondary-results-renderer",function(){if(yED===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);yED=R}R=yED;return R},{mode:1});
}catch(e){_._DumpException(e)}
try{
var QuN=new _.lU("replaceFeedContentAction");var vGG;var gGo;var p4=function(){return _.K.apply(this,arguments)||this};
_.H(p4,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],p4.prototype,"data",void 0);_.C([_.F({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],p4);
_.B(p4,"ytd-sub-feed-option-renderer",function(){if(gGo!==void 0)return gGo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gGo=R},{mode:1});var nGm;var Fu=function(){return _.K.apply(this,arguments)||this};
_.H(Fu,_.K);Fu.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Fu.prototype,"ytRendererStamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Fu.prototype,"data",void 0);_.C([_.F({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],Fu);
_.B(Fu,"ytd-sub-feed-selector-renderer",function(){if(nGm!==void 0)return nGm;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return nGm=R},{mode:1});var Bg=function(){return _.K.apply(this,arguments)||this};
_.H(Bg,_.K);
Bg.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}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bg.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Bg.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Bg.prototype,"data",void 0);_.C([_.F({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Bg);
_.B(Bg,"ytd-browse-feed-actions-renderer",function(){if(vGG!==void 0)return vGG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return vGG=R},{mode:1});var HeG;var rUi;var av=function(){return _.K.apply(this,arguments)||this};
_.H(av,_.K);av.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],av.prototype,"data",void 0);_.C([_.F({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],av);
_.B(av,"ytd-mini-channel-renderer",function(){if(rUi!==void 0)return rUi;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return rUi=R},{mode:1});var DZH;var C4=function(){return _.K.apply(this,arguments)||this};
_.H(C4,_.K);C4.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],C4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],C4.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],C4);
_.B(C4,"ytd-vertical-channel-section-renderer",function(){if(DZH!==void 0)return DZH;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return DZH=R},{mode:1});var ha=function(){return _.K.apply(this,arguments)||this};
_.H(ha,_.K);ha.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ha.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ha.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ha.prototype,"data",void 0);_.C([_.F({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],ha);
_.B(ha,"ytd-browse-secondary-contents-renderer",function(){if(HeG!==void 0)return HeG;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return HeG=R},{mode:1});var UZH;var ov=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};R.notActive=!1;R.isConstrainedList=!1;return R};
_.H(ov,_.K);_.l=ov.prototype;
_.l.configureRendererStamper=function(){return{content:{id:"primary",mapping:{richGridRenderer:{component:"ytd-rich-grid-renderer"},sectionListRenderer:{component:"ytd-section-list-renderer",properties:{initialCount:"[[initialCount]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"},matcher:function(R){var A;return(R==null?void 0:(A=R.webComponentHint)==null?void 0:A.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.l.getPath=function(R,A){var Y="data.tabs.#"+A+".";R.tabs[A].tabRenderer?Y+="tabRenderer.":R.tabs[A].expandableTabRenderer&&(Y+="expandableTabRenderer.");return Y+"content.sectionListRenderer"};
_.l.computeDisplayedContent=function(R){this.unlinkPaths("content");if(R&&R.tabs)for(var A=R.tabs.length,Y=0;Y<A;Y++){var P=R.tabs[Y].tabRenderer||R.tabs[Y].expandableTabRenderer;if(P.selected&&P.content)return this.linkPaths("content",this.getPath(R,Y)),P.content}return null};
_.l.computeHasSecondaryColumnData=function(R){return!!R&&!!R.secondaryContents};
_.l.onRetrieveLocation=function(R,A){A.locationRetrieved(A.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);R.stopPropagation()};
_.l.onYtServiceRequestSent=function(R,A){_.v("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(A)};
_.l.onYtServiceRequestCompleted=function(R,A){_.v("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(A)};
_.l.onReplaceFeedContentAction=function(R){if(!_.v("replace_feed_content_action_killswitch")&&!this.notActive){var A;(R=(A=_.n(R,QuN))==null?void 0:A.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(R)}};
_.l.handleServiceRequestActions=function(R){if(R=R.actions){R=_.x(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;var Y=void 0;((Y=_.n(A,QuN))==null?0:Y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.n(A,QuN).items)}}};
ov.prototype.onYtServiceRequestCompleted=ov.prototype.onYtServiceRequestCompleted;ov.prototype.onYtServiceRequestSent=ov.prototype.onYtServiceRequestSent;ov.prototype.onRetrieveLocation=ov.prototype.onRetrieveLocation;_.C([_.U(_.lg),_.k("design:type",Object)],ov.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ov.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ov.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ov.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ov.prototype,"data",void 0);_.C([_.S({computed:"computeDisplayedContent(data)"}),_.k("design:type",Object)],ov.prototype,"content",void 0);
_.C([_.S({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],ov.prototype,"hasSecondaryColumnData",void 0);_.C([_.S({value:function(){return window.outerHeight>1024?3:2}}),
_.k("design:type",Number)],ov.prototype,"initialCount",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],ov.prototype,"pageSubtype",void 0);_.C([_.nG("ytd-section-list-renderer"),_.k("design:type",Object)],ov.prototype,"listRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],ov.prototype,"notActive",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ov.prototype,"isConstrainedList",void 0);
_.C([_.S(),_.k("design:type",String)],ov.prototype,"responsiveSizing",void 0);_.C([_.Qa("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],ov.prototype,"onRetrieveLocation",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],ov.prototype,"onYtServiceRequestSent",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],ov.prototype,"onYtServiceRequestCompleted",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],ov);
_.B(ov,"ytd-two-column-browse-results-renderer",function(){if(UZH!==void 0)return UZH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return UZH=R},{mode:2});
}catch(e){_._DumpException(e)}
try{
var XGc=function(R){if((R==null?void 0:R.value)===void 0||R==null||!R.unit)return"initial";a:{switch(R.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var A="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":A="%";break a}A=void 0}return A?""+R.value+A:"initial"},SFE=new _.lU("shoppingContentLineItemViewModel");var IFg=_.E5(function(R){var A=_.Pc(R,{}).data;return _.V("yt-shopping-content-line-item-view-model",{class:_.To("ytShoppingContentLineItemViewModelHost")},_.V(_.NU,{text:function(){var Y;return(Y=A().text)==null?void 0:Y.attributedString}}))},"cl");var K3c=_.E5(function(R){R=_.Pc(R,{});var A=R.data,Y={};return _.V("yt-shopping-content-line-view-model",{class:_.To("ytShoppingContentLineViewModelHost",R.className,(Y.ytShoppingContentLineViewModelTruncateText=function(){return!A().wrapContent},Y)),
style:_.nY({"--shopping-content-line-gap":function(){return A().itemGap?A().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return A().lineHeight?A().lineHeight+"px":void 0}})},_.V(_.Ue,{each:function(){return(A().items||[]).map(function(P){return _.n(P,SFE)}).filter(function(P){return!!P})}},function(P){return _.V(IFg,{data:P})}))},"dl");_.Ow(_.E5(function(R){var A=_.Pc(R,{}).data,Y=function(){var P;return((P=A().image)==null?void 0:P.height)||40};
return _.V("yt-shopping-timely-shelf-content-view-model",{el:_.zo(_.fi(function(){var P;return(P=A())==null?void 0:P.rendererContext},void 0,void 0,["BUTTON".toString(),
"A".toString()])),class:_.To("ytShoppingTimelyShelfContentViewModelHost"),style:_.nY({"--shopping-timely-shelf-content-padding-top":function(){var P;return XGc((P=A().padding)==null?void 0:P.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var P;return XGc((P=A().padding)==null?void 0:P.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var P;return XGc((P=A().padding)==null?void 0:P.start)},
"--shopping-timely-shelf-content-padding-end":function(){var P;return XGc((P=A().padding)==null?void 0:P.end)}})},_.V(_.J,{cond:function(){var P;
return(P=A().image)==null?void 0:P.image},
then:function(P){return _.V(_.P1,{preserveHeight:!0,preserveWidth:!0,height:Y,data:P,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW}),_.V("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.V(_.ni,{data:function(){return A().line1}},{shoppingContentLineViewModel:function(P){return _.V(K3c,{data:P.data})}}),_.V(_.ni,{data:function(){return A().line2}},{shoppingContentLineViewModel:function(P){return _.V(K3c,
{data:P.data})}})),_.V("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.V(_.Ue,{each:function(){var P;
return(P=A().button)!=null?P:[]}},function(P){return _.V(_.ni,{data:function(){return P}},{buttonViewModel:_.Is})})))},"el"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.VY}});_.W3x={};
_.W3x.YtdWatchBehavior=[_.u.YtRendererBehavior,_.VC.YtPlayerListenerBehavior,_.HX.YtRendererstamperBehavior,_.fH.YtActionHandlerBehavior,_.wd.YtPageBehavior,_.bF.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.CQ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.v("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 _.CQ("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerUnavailableFixedVisibility:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_error_screen_fix")}},
playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,
value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isTwoColumnsInitialized:{type:Boolean,
value:!1},isSingleColumn:{type:Boolean,computed:"computeIsSingleColumn(isTwoColumns_, isTwoColumnsInitialized)"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,
value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.v("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.cU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cU("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!_.v("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.v("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 _.v("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.v("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, isSingleColumn)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.v("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.v("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("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 _.v("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("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 _.v("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);updatePanelsLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var R={info:{id:"info-contents",mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},
offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",
properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},
donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},shoppingTimelyShelf:{id:"shopping-timely-shelf",mapping:{shoppingTimelyShelfContentViewModel:"yt-shopping-timely-shelf-content-view-model"}},clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},
limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},initialRenderPriority:3,waitForSignal:_.xR(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.xR(["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"||_.v("swa_prov_panels_ks")?R.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(R.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},R.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return R},
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 R=this;this.watchController=void 0;this.pageDisposeJobs=[function(){R.showMetadataPlaceholder_()},
function(){_.v("web_watch_dont_clear_comments")||R.clearComments_()},
function(){R.clearPlayerAds_()},
function(){R.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;_.v("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.v("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.VXD(function(){return _.PT(R)},this.hostElement);
this.pageDisposeJobs.push(function(){R.youThereManager_.reset()});
_.v("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){R.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Qo;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.v("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));_.v("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.T2(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(R){R&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:R}),R.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(R){_.v("kevlar_watch_flexy_theater_manager")&&(this.theater=R,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(R){!_.v("kevlar_watch_while_v2")&&!_.v("web_watch_pip")||R||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(R){this.active!==void 0&&(this.fullscreen=R,_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(R){this.active!==void 0&&(_.xo(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(R>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(R){this.initCsi_();this.updatePageData_(R)},
updatePageData_:function(R){var A=this;if(R)if(this.data===R){this.onPageLoadWithSameData_();var Y;(Y=this.watchController)==null||Y.setWatchNextResponse(this.data)}else this.data=R;this.playlist&&_.bE({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fh("nw");this.loading=!1;_.Ua(_.fn,function(){A.initDclkstatus_();var P,E=((P=A.player)==null?void 0:P.getVideoData().cpn)||"";_.d1D(function(z,c){_.sK9(z,c,E)})})},
onPageLoadWithSameData_:function(){_.v("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 R=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!R);this.set("loadingData.playlistLoading",R&&R!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),R=this.watchNextSkeletonEl_.firstElementChild;R;)R.classList.remove("hidden"),R=R.nextElementSibling;if(_.v("kevlar_watch_frame0_loading_state")){var A,Y,P;R=(A=this.loadingData)==null?void 0:(Y=A.endpoint)==null?void 0:(P=Y.watchEndpoint)==null?void 0:P.videoId;var E;R&&(E="https://i.ytimg.com/vi/"+R+"/frame0.jpg");_.Mo(this.hostElement).querySelector("#player").style.backgroundImage=E?"url("+E+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var R=_.Mo(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&R&&(R.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var A,Y;(Y=(A=this.watchMetadata).updateSentimentBarWidth)==
null||Y.call(A);var P,E;(E=(P=this.watchMetadata).resize)==null||E.call(P)}_.v("kevlar_watch_frame0_loading_state")&&(_.Mo(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(R){var A=_.Mo(this.hostElement).querySelector(R);A?_.iE(A,!1):_.pK(new _.XN("Overscroll monitor not found for component: ",R))},
removeSplitScrollMouseTrap:function(R){var A=_.Mo(this.hostElement).querySelector(R);A?_.lE(A):_.pK(new _.XN("Disposal component for  overscroll monitoring not found: ",R))},
onLoadingChanged_:function(R){R?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.v("web_thumbnail_to_watch_transition")&&!_.XO0||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.v("web_thumbnail_to_watch_transition")&&!_.XO0||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(R){var A=this;R?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.fn.addLowPriorityJob(function(){A.onWindowResized_(_.XI(!0))})},
updateTheaterModeState_:function(R){if(!_.v("kevlar_watch_flexy_theater_manager")){R=R||this.fullWindowMode_;if(this.theater!==void 0||R)this.theater=R;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();R&&_.pSo()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();_.v("web_watch_error_screen_fix")&&this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var R=this.fullBleedPlayer;_.v("external_fullscreen")&&this.fullscreen&&(R=!0);_.v("web_watch_error_screen_fix")&&(R=this.fullBleedPlayer);R=R?_.Mo(this.hostElement).querySelector("#player-full-bleed-container"):_.Mo(this.hostElement).querySelector("#player-container-inner");var A=this.getPlayerContainer(),Y=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip");A.parentElement!==R&&(Y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.PT(this).appendTo(R,
A),_.v("web_watch_error_screen_fix")||R.appendChild(_.Mo(this.hostElement).querySelector("#error-screen"))))},
updateErrorScreenLocation:function(){var R=_.Mo(this.hostElement).querySelector("#error-screen"),A=this.fullBleedPlayer?_.Mo(this.hostElement).querySelector("#player-full-bleed-container"):_.Mo(this.hostElement).querySelector("#player");R.parentElement!==A&&A.appendChild(R)},
deactivateMiniplayerAndResetPlayer:function(){var R=this;return _.O(function(A){if(A.nextAddress==1)return A.yield(_.is().resolve(_.jv).deactivate(),2);R.updatePlayerLocation();_.XH(A)})},
updateCinematicsLocation:function(){var R=this.getElement("CINEMATICS");if(R){var A=this.getCinematicsLocationContainer();R.parentElement!==A&&A.appendChild(R);var Y;(Y=this.watchController)==null||Y.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.Mo(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Mo(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(R,A,Y){var P=document.documentElement.hasAttribute("dark"),E=P&&_.v("web_cinematic_theater_mode"),z=P&&_.v("web_cinematic_fullscreen");P=!P&&this.cinematicLightTheme;return Y||R&&E||A&&z||(A||R)&&P},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var R=this,A;(A=this.watchController)==null||A.setWatchNextResponse(this.data);_.v("kevlar_watch_flexy_comments_manager")||this.initComments_();_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.is().resolve(_.Y7).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,_.v("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.fn.addLowPriorityJob(function(){_.MT(R.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.v("web_watch_start_chat_in_theater_mode")){var Y,P,E;if((Y=this.data)==null?0:(P=Y.contents)==null?0:(E=P.twoColumnWatchNextResults)==null?0:E.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var z,c;((z=this.data)==null?0:(c=z.contents)==null?0:c.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(R){var A;(A=this.watchController)==null||A.setPlayerResponse(this.playerData);R&&R.playabilityStatus&&(A=this.isVideoPlayable_(R.playabilityStatus,this.getPlayerOverlays_(this.data)),R=this.isLiveStreamOffline_(R.playabilityStatus),A&&!R||_.RK(this,function(){_.Fh("pbu")}));
this.setPlayerAds_();_.MT(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(R,A){if((_.v("kevlar_watch_while_v2")||_.v("web_watch_pip"))&&this.playerData&&A)return this.playerData.videoDetails},
watchPageActiveChanged_:function(R){_.Yp().dispatch(_.nSZ(this.active));R?this.activate_():this.deactivate_()},
attached:function(){var R=this;this.watchController=new _.ah(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.v("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var A=_.PT(this);_.v("kevlar_disable_prepare_player")||
A.preparePlayer();_.v("kevlar_watch_flexy_playlist_manager")||_.is().resolve(_.Y7).setPlayer(A);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();A={"--ytd-watch-flexy-scrollbar-width":_.zc()+"px"};this.is==="ytd-watch-grid"&&(A["--ytd-watch-flexy-sidebar-width"]=_.Hqf+"px",A["--ytd-watch-grid-horizontal-page-margins"]=_.tU+"px",A["--ytd-watch-grid-columns-top-margins"]=_.vDE+"px",A["--ytd-watch-grid-min-player-height-medium"]="360px");!_.cU("kv_pl_mx_sz_ks")&&
_.cU("kevlar_watch_max_player_width")&&(A["--ytd-watch-flexy-max-player-width-wide-screen"]=_.rbL+"px");_.cU("kevlar_watch_flexy_metadata_height")&&(A["--ytd-watch-flexy-space-below-player"]=_.DLe+"px");this.safeUpdateStyles(A);_.v("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.F6f(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return R.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Mo(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var R=_.zc(),A=_.wT+R,Y=A;this.fixedPanels&&(A+=_.Hqf);var P=657+R;R=1327+R;_.Mo(this.hostElement).querySelector("#two-column-query").query="(min-width: "+A+"px)";_.Mo(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(A+"px) and (max-width: ")+(R+"px)");_.Mo(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(R+"px)");
_.Mo(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+Y+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var R=_.Mo(this.hostElement).querySelector("#miniplayer-bar").firstChild,A=this.squeezeback&&!_.v("web_watch_squeezeback_player_size_killswitch");return R&&R.active||this.theater||_.v("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||A||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.Dg(NaN,NaN):_.E_c(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.E_c(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.lt(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var R=this;this.onWindowResized_(_.XI());_.v("browse_skeleton_removal_on_watch_killswitch")||_.CQ("IS_SHELL_LOAD")&&_.X_m();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var A=_.PT(this);A.addEventListener("yt-player-updated",_.T2(this,this.onPlayerUpdated_));A.getPlayerPromise().then(function(Y){R.playerApiReady_(Y)});
_.v("kevlar_watch_flexy_playlist_manager")||(A=_.is().resolve(_.Y7),_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&A.addEventListener("yt-navigate",_.T2(this,this.onYtNavigate_)),A.setPlaylistComponent(_.Mo(this.hostElement).querySelector("#playlist")),A.addEventListener("yt-playlist-data-updated",_.T2(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.fn.addLowPriorityJob(function(){_.xo(R.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.PT(this).removeEventListener("yt-player-updated",_.T2(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.v("kevlar_watch_flexy_playlist_manager")){var R=_.is().resolve(_.Y7);_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&R.removeEventListener("yt-navigate",_.T2(this,this.onYtNavigate_));
R.cancelVideoSkip();R.removeEventListener("yt-playlist-data-updated",_.T2(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.xo(this.hostElement,"yt-autonav-pause-player",!1);R=_.EC();_.v("kevlar_exit_fullscreen_leaving_watch")&&R&&_.zi(R)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(R){this.player&&this.player.updateVideoData({rvs:R.rvs})},
getPageContents:function(R){return R&&R.contents&&R.contents.twoColumnWatchNextResults&&R.contents.twoColumnWatchNextResults.results&&R.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(R){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",R)},
onRetrieveLocation_:function(R,A){A.hasComments?A.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):A.locationRetrieved("/related_ajax",void 0);R.stopPropagation()},
onSubscriptionChanged_:function(R,A){this.player&&(A?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ta("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Mo(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Mo(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(R){this.player=R;this.setPlayerState(R.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.v("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.v("kevlar_unified_player")||_.v("kevlar_player_new_bootstrap_adoption"))&&_.C0()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(R,A){A=A===void 0?!0:A;_.EC()&&_.v("external_fullscreen")&&_.zi(document.documentElement);this.theaterRequested_=R;A&&_.rr("wide",R?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.OC(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.xo(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(R){_.F8(R,typeof this.player),this.player&&_.F8(R,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var R;((R=this.player)==null?0:R.isFullscreen())?this.player.toggleFullscreen():_.OC(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(R,A){return this.loading?A:!!Object.keys(R).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(R){if(R){R=_.x(R);for(var A=R.next();!A.done;A=R.next())A=A.value,A.youThereRenderer&&_.mze(this.youThereManager_,A.youThereRenderer)}},
setPlaylistData_:function(R){return R||{}},
userEngagementConfigDataChanged_:function(R){if(R)if(R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var A=this.youThereManager_;_.z$()<R.lowEngagementThresholdMs||_.g_f(A,!0)}else R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OC(this.hostElement,"yt-autonav-pause-user-engagement",[R])},
isPlayerUnavailable_:function(R,A,Y){return!!R&&!this.isVideoPlayable_(R,Y)&&!A},
getPlayerOverlays_:function(R){return(R==null?void 0:R.playerOverlays)||null},
isVideoPlayable_:function(R,A){if(!R)return!1;var Y=R.status==="OK"||R.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",R)||this.get("errorScreen.ypcTrailerRenderer",R);R=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",R);var E;A=A==null?void 0:(E=A.playerOverlayRenderer)==null?void 0:E.gatedActionsOverlayRenderer;return!!Y||!!P||!!R||!!A},
hasWatchNextResponseErrorRenderer:function(R){var A=this.getPageContents(R),Y,P,E,z,c;return!(R==null?0:(Y=R.contents)==null?0:(P=Y.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((E=A[0])==null?0:(z=E.itemSectionRenderer)==null?0:(c=z.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(R){return R?R.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(R,A,Y){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A),E=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];E=_.v("web_no_skip_video_on_verification_checks")?(R==null?void 0:R.status)&&E.includes(R.status):R&&R.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",R);z==void 0&&(z=!0);!Y||this.isVideoPlayable_(R,this.getPlayerOverlays_(A))||
P||E||!z||_.is().resolve(_.Y7).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ing()},
onPlayerFeedbackStartRequest_:function(R){_.OC(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:R}])},
onPlayerFeedbackArticleRequest_:function(R){_.OC(this.hostElement,"yt-help-dialog-requested",[R])},
onPlayerYpcContentRequest_:function(){var R,A,Y,P,E,z,c,M,N=((R=this.data)==null?NaN:(A=R.contents)==null?NaN:(Y=A.twoColumnWatchNextResults)==null?NaN:(P=Y.secondaryResults)==null?NaN:(E=P.secondaryResults)==null?NaN:(z=E.offerModule)==null?NaN:(c=z.tvfilmOfferModuleRenderer)==null?NaN:(M=c.actionButtons)==null?NaN:M.length)-1;R=[".offerButton.buttonRenderer.",".actionButtons."+(N>=0?N:0)+".buttonRenderer."];A=_.x(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(Y=A.next();!Y.done;Y=A.next())for(Y=Y.value,P=_.x(R),E=P.next();!E.done;E=P.next())if(E="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+Y+E.value,E=this.get(E+"navigationEndpoint",this.data)||this.get(E+"serviceEndpoint",this.data)||this.get(E+"command",this.data)){_.vc(E,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(R){_.xo(this.hostElement,"yt-autonav-pause-player",R)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(R){R()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(R){switch(R){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(R){switch(R){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.xo(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(R)},
setPlayerState:function(R){_.Yp().dispatch(_.wof(R))},
onPlayerSubscribe_:function(R){_.OC(this.hostElement,"yt-player-subscribe",[R])},
onPlayerUnsubscribe_:function(R){_.OC(this.hostElement,"yt-player-unsubscribe",[R])},
onPlayerAdYtShowToast_:function(R){_.OC(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:R.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(R){if(R)return R},
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(R){return!_.v("web_watch_move_summary_to_sd")&&!!R},
computeWatchMetadataRefresh:function(){return _.v("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.v("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var R,A,Y,P;this.watchNextSecondaryResults=(R=this.data)==null?void 0:(A=R.contents)==null?void 0:(Y=A.twoColumnWatchNextResults)==null?void 0:(P=Y.secondaryResults)==null?void 0:P.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.v("swatcheroo_pbs_load_grid")&&!_.v("swatcheroo_provide_all_data_on_scheduled_job")){_.fn.cancelJob(this.setRichGridJobId_);var R,A,Y,P,E,z,c;this.setRichGridRendererData((R=this.data)==null?void 0:(A=R.contents)==null?void 0:(Y=A.twoColumnWatchNextResults)==null?void 0:(P=Y.secondaryResults)==null?void 0:(E=P.secondaryResults)==null?void 0:(z=E.results)==null?void 0:(c=z[0])==null?
void 0:c.richGridRenderer)}},
setRichGridRendererData:function(R){this.richGridRendererData=R},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var R,A=(R=this.data)==null?void 0:R.engagementPanels;if(A==null?0:A.length){R=null;A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0;if(((P=Y.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){R=Y;break}}var E,z,c;R=(E=R)==null?void 0:(z=E.engagementPanelSectionListRenderer)==null?void 0:(c=z.content)==null?void 0:c.structuredDescriptionContentRenderer;if(R==null?0:R.items){E=
[];z=_.x(R.items);for(c=z.next();!c.done;c=z.next()){c=c.value;if(!_.v("sd_horizontal_list_show_nav_killswitch")){var M=P=Y=A=R=void 0,N=void 0,y=(R=c.horizontalCardListRenderer)==null?void 0:(A=R.header)==null?void 0:(Y=A.richListHeaderRenderer)==null?void 0:(P=Y.navigationButton)==null?void 0:(M=P.buttonRenderer)==null?void 0:(N=M.command)==null?void 0:N.commandExecutorCommand;y&&y.commands&&(y.commands=y.commands.filter(function(m){return!_.n(m,_.ajb)}))}(!c.expandableVideoDescriptionBodyRenderer&&
!c.videoDescriptionHeaderRenderer||_.v("web_delhi_colorful_sd"))&&E.push(c)}return{items:E}}}},
constructWarning_:function(R){return{text:_.dF(R),type:"WARNING"}},
isPlaShelfEnabled_:function(R){if((this.get("adPlacements",R)||[]).length)return!0;R=this.get("playerAds",R)||[];return!(!R.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",R[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var R=this;_.xo(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var A=this.getScrollTop()>0;this.gestures_&&(A?this.gestures_.detach():this.gestures_.attach());A!==this.showFullerscreenEdu_&&_.v("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=A,_.PT(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonVisibility(R.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.xo(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var R=this;this.commentsReady=!1;_.fn.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ua(_.fn,function(){R.setComments_()},1E3)},
setComments_:function(){if(!_.v("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fh("cmi");_.fn.cancelJob(this.setCommentsJobId_);var R=this.getPageContents(this.data);if(R&&R.length){R=_.x(R);for(var A=R.next();!A.done;A=R.next())if(A=A.value,this.get("itemSectionRenderer.sectionIdentifier",A)==="comment-item-section"){this.comments=A.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.xo(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.v("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fh("cmc")},
doRemoveComments_:function(){this.comments={};_.v("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.fn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.fn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(R,A){var Y=_.n(A.endpoint,_.LO);Y&&(!(A=this.get("data.currentVideoEndpoint.watchEndpoint"))||Y.videoId!==A.videoId||Y.playlistId&&Y.playlistId!==A.playlistId||Y.index!==void 0&&Y.index!==A.index||typeof Y.startTimeSeconds!=="number"||(R.stopPropagation(),this.setScrollTop(0),_.PT(this).getPlayerPromise().then(function(P){var E=Y.startTimeSeconds;P.seekTo(E);P.wakeUpControls();E<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var R=_.k3Z();"t"in R&&(R=_.zsE(R.t),this.player.seekTo(R,!0))},
updateTitleFromWatchNext:function(R){R=this.getPageContents(R);var A,Y;(R=_.R4(R==null?void 0:(A=R[0])==null?void 0:(Y=A.videoPrimaryInfoRenderer)==null?void 0:Y.title))&&_.xo(this.hostElement,"yt-update-title",R)},
updateTitle_:function(R){R=this.get("videoDetails.title",R)||"";_.xo(this.hostElement,"yt-update-title",R)},
syncWithRemoteVideo_:function(R,A,Y){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===Y&&(Y=P.list,_.v("polymer_enable_mdx_queue")&&Y&&Y.startsWith("RQ")&&(Y=void 0),P.video_id!==R||Y!=A)){var E;_.v("kevlar_player_watch_endpoint_navigation")?E=_.iMJ(_.Rsb(R,A)):E=this.buildWatchEndpoint_(R,A);_.xo(this.hostElement,"yt-navigate",{endpoint:E,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(R,A,Y){return _.zX(R,A,Y)},
initDclkstatus_:function(){_.PBo()},
attachWatchPageSkeleton_:function(){var R=document.querySelector("#watch-page-skeleton");if(R){var A=R.querySelector("#primary-info"),Y=R.querySelector("#secondary-info"),P=R.querySelector("#related");A&&_.Mo(this.hostElement).querySelector("#info-skeleton").appendChild(A);Y&&_.Mo(this.hostElement).querySelector("#meta-skeleton").appendChild(Y);P&&(_.Mo(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.UU(R)}},
handlePlayerUpdated_:function(){_.PT(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(R,A){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof A!=="undefined"){var Y=this.watchNextSkeletonEl_.children,P=R&&R.indexSplices.length?R.indexSplices[0].index:0;R=Math.min(this.watchNextShownItems.length,Y.length);A||(P=0,R=Y.length);for(A=P;A<R;A++)Y[A].classList.add("hidden")}},
onPlayerFullscreenChange_:function(R){_.v("external_fullscreen")||_.OC(this.hostElement,"yt-player-fullscreen",[R.fullscreen])},
onFullscreenChange_:function(R){this.fullscreen=R;this.gestures_&&this.gestures_.update(this.fullscreen);var A=_.PT(this);A.getPlayerPromise().then(function(Y){Y.setFauxFullscreen(!!_.EC())});
this.updateFullBleedElementLocations();R&&(A.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(R,A){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!A},
computeIsDonationShelfCollapsed_:function(R){return R},
computeShouldShowMerchShelf:function(R,A){return A&&!!R},
computeResponseHasComments:function(R){var A,Y,P,E,z;return!!(R==null?0:(A=R.contents)==null?0:(Y=A.twoColumnWatchNextResults)==null?0:(P=Y.results)==null?0:(E=P.results)==null?0:(z=E.contents)==null?0:z.some(function(c){var M;return(c==null?void 0:(M=c.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(R,A,Y,P){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&P?!1:!!R&&!!Object.keys(R).length&&!A},
identity:_.bJ,onWindowResized_:function(R){this.windowSize_=R;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(R){var A=this;R&&R.type!=="dataloaded"&&R.type!=="dataupdated"||_.PT(this).getPlayerPromise().then(function(Y){var P=Y.getPlayerState();P!==5&&P!==0&&(Y=1/Y.getVideoAspectRatio(),A.videoHeightToWidthRatio_!==Y&&(A.videoHeightToWidthRatio_=Y))})},
schedulePlayerSizeUpdate_:function(R){var A=this,Y=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip"),P=function(){if(A.watchMetadata){var E,z;(z=(E=A.watchMetadata).resize)==null||z.call(E)}_.PT(A).getPlayerPromise().then(function(c){if(_.v("kevlar_set_internal_player_size")){if(!Y||!A.isMiniplayerActive()){var M=A.calculateCurrentPlayerSize_();c.setInternalSize(M.width,M.height)}}else c.setSize(NaN,NaN);_.v("kevlar_watch_while")&&A.updateWatchWhileScrollThreshold_()})};
R?P():_.cC(_.fn,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(R){this.set("data.survey",R.detail)},
onYtShowSurveyCommand_:function(R){this.set("data.survey",_.n(R,_.NMc).survey)},
onDownloadedVideoDeleted:function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1){if(!A.active||(Y=A.playerData)==null||!Y.offlineState||A.videoId!==R)return E.return();(P=A.player)==null||P.stopVideo();_.f_().navigatingAwayFromWatchDeletedVideo=!0;_.vc(_.AqI,A.hostElement);return E.yield(_.f_().navigationFinishPromise,2)}_.f_().navigatingAwayFromWatchDeletedVideo=!1;_.XH(E)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var R;this.theater?R=_.Sv(.5625*this.windowSize_.width,480,this.windowSize_.height-185):R=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==R&&(this.watchWhileScrollThreshold_=R,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var R=_.Mo(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&R){var A=this.windowSize_.height>=624,Y=this.active?this.getScrollTop():0;!R.active&&A&&Y>=this.watchWhileScrollThreshold_?(R.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):R.active&&(!A||Y<this.watchWhileScrollThreshold_&&!_.EC())&&(R.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var R=_.Mo(this.hostElement).querySelector("#secondary-inner");if(R){var A=_.Mo(this.hostElement).querySelector("#below"),Y=_.Mo(this.hostElement).querySelector("#secondary"),P=_.Mo(this.hostElement).querySelector("#comments");P&&Y&&A&&(this.defaultTwoColumnLayout?(R.appendChild(P),Y.appendChild(R)):(A.appendChild(P),_.G7(A,R)))}}},
isTwoColumnsChanged_:function(R,A){if(R!==!0||A!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(R=_.Mo(this.hostElement).querySelector("#secondary-inner"))){A=_.Mo(this.hostElement).querySelector("#below");var Y=_.Mo(this.hostElement).querySelector("#secondary"),P=_.Mo(this.hostElement).querySelector("#comments");P&&Y&&A&&(this.isTwoColumns_?(R.appendChild(P),Y.appendChild(R)):(A.appendChild(P),_.G7(A,R)))}}else{R=!_.v("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);A=_.Mo(this.hostElement).querySelector("#panels");var E=_.Mo(this.hostElement).querySelector("#alerts");Y=_.Mo(this.hostElement).querySelector("#playlist");P=_.Mo(this.hostElement).querySelector("#related");var z=_.Mo(this.hostElement).querySelector("#donation-shelf"),c=_.Mo(this.hostElement).querySelector("#comments");this.isTwoColumns_?(E=_.Mo(this.hostElement).querySelector("#secondary-inner"),R&&(E.appendChild(A),E.appendChild(Y)),E.appendChild(z),
E.appendChild(P)):(R&&(_.Fw(A,E),_.Fw(Y,E)),_.Fw(z,E),c&&_.Fw(P,c));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.v("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.v("web_watch_enable_fs_squeezeback_panels")&&_.v("web_watch_theater_chat")){var R=_.Mo(this.hostElement).querySelector("#chat-container"),A=this.theater&&!this.fullscreen||_.v("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&A?(A=_.Mo(this.hostElement).querySelector("#columns"),(R==null?void 0:R.parentElement)!==A&&A.append(R),this.fixedPanels=!0):(this.fixedPanels=
!1,A=_.Mo(this.hostElement).querySelector("#playlist"),R&&A?_.Bs(R,A):_.pK(new _.XN("Missing element when updating chat location",{"chatContainer defined":!!R,"playlist defined":!!A})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(R,A){return _.v("sw_metadata_vis_toggle_ks")?!0:!!R||!!A},
computeForceDarkPanelTheme:function(R){return _.v("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&R:!1},
safeUpdateStyles:function(R){try{_.ya(this.hostElement,R)}catch(A){_.pK(A)}},
videoHeightToWidthRatioChanged_:function(R,A){A&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(R){this.videoHeightToWidthRatio_=1/R},
computeIsVerticalVideo_:function(R){return R>=1},
computeIsFourThreeToSixteenNineVideo_:function(R){return R<=.7501&&R>=.5624},
computeIsExtraWideVideo_:function(R){return R<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.PT(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.PT(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.n_$(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(R){var A=_.K1(R)||0;_.Im(R,A+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var R=_.K1("yt-fullerscreen-edu-button-click-count")||0,A=_.K1("yt-fullerscreen-edu-button-shown-count")||0,Y=_.cU("external_fullscreen_button_shown_threshold"),P=R>=_.cU("external_fullscreen_button_click_threshold")||A>=Y;_.PT(this).getPlayerPromise().then(function(E){E.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(R,A){return A},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.is().resolve(_.Y7).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var R=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.fn.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.fn.addLowPriorityJob(function(){R.fullHeightPanelPositionUpdateJobId=0;var A=_.Mo(R.hostElement).querySelector("#secondary"),Y=_.Mo(R.hostElement).querySelector("#fixed-secondary");A=A.getBoundingClientRect();var P=A.width;R.swatcherooSqueezeback&&
(P+=_.tU);if(R.swatcherooSqueezeback){var E=_.Mo(R.hostElement).querySelector("#squeezeback-constraining-container");E.style.width=P+"px";E.style.flex="0 0 "+P+"px"}Y.style.width=P+"px";Y.style.left=A.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var R=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.fn.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.fn.addLowPriorityJob(function(){R.panelMaxHeightUpdateJob_=0;var A;!R.isTwoColumns_||R.theater||R.fullscreen?A=460:A=R.calculateNormalPlayerSize_().height;var Y=A+"px";_.v("live_chat_taller_height")&&!R.theater&&(Y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.v("live_chat_medium_height")&&!R.theater&&(Y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.v("live_chat_scaled_height")&&!R.theater&&(Y="calc(100vh - var(--ytd-toolbar-height) - 238px)");R.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":A+"px","--ytd-watch-flexy-chat-max-height":Y,"--ytd-watch-flexy-structured-description-max-height":A+"px","--ytd-watch-flexy-comments-panel-max-height":A+"px","--ytd-comments-engagement-panel-content-height":A+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(R){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",R)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.NT(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(R){var A=_.Mo(this.hostElement).querySelector("#engagement-panel-scrim");R?A.addEventListener("tap",_.T2(this,this.onEngagementPanelScrimClick_)):A.removeEventListener("tap",_.T2(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(R){if(this.hostElement.contains(R)&&!this.scrollToAnimation_.isAnimating()){var A=R.offsetTop-24;R=R.offsetTop+R.offsetHeight+24;var Y=this.getPageScrollingElement(),P=this.getScrollTop(),E=P+Y.clientHeight-56;if(A<P+56)A-=56;else if(R>E)A=R-Y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtSignalActionScrollToComments:function(){var R=this.hostElement.querySelector("#comments");if(R&&!this.scrollToAnimation_.isAnimating()){R=R.offsetTop-56-24;if(_.v("kevlar_comment_teaser_scroll_to_midpoint")&&(R-=_.$2().height/3,R<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtEngagementPanelVisibleChanged:function(R,A,Y){if(this.active&&this.trackEngagementPanelVisibility&&!_.MXo.includes(Y)){if(A==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.MT(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var P=_.is().resolve(_.tC);this.visiblePanelIdentifiers_.forEach(function(E){E!==Y&&P.hidePanel(E)})}this.visiblePanelIdentifiers_.add(Y)}A!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&A!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(Y);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(R){return R?"":"watch-active-metadata"},
computeNewMetadataClass:function(R){return R?"watch-active-metadata":""},
computeIsSingleColumn:function(R,A){return A&&!R},
computeFullBleedPlayer:function(R,A,Y){return _.v("web_watch_error_screen_fix")?_.v("external_fullscreen")&&R||A||Y:R||A||Y},
computeDefaultLayout:function(R){return!R},
computeDefaultTwoColumnLayout:function(R,A){return!R&&A},
updatePanelsLocation:function(){if(_.v("web_watch_enable_fs_squeezeback_panels")){var R=_.Mo(this.hostElement).querySelector("#below"),A=_.Mo(this.hostElement).querySelector("#panels"),Y=_.Mo(this.hostElement).querySelector("#playlist"),P=_.Mo(this.hostElement).querySelector("#chat-container"),E=_.Mo(this.hostElement).querySelector("#panels-full-bleed-container"),z=_.Mo(this.hostElement).querySelector("#secondary-inner");if(R&&A&&Y&&P&&E&&z){var c=this.fullscreen||this.theater&&this.iMaxTheaterMode,
M=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;c?(E.appendChild(A),E.appendChild(P),E.appendChild(Y)):this.isTwoColumns_?(M?(R=_.Mo(this.hostElement).querySelector("#columns"),(P==null?void 0:P.parentElement)!==R&&R.append(P),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):_.G7(z,P),_.G7(z,A),_.G7(z,Y)):(R.appendChild(A),R.appendChild(P),R.appendChild(Y))}}},
swatcherooUpdatePanelsLocation:function(R,A,Y,P,E,z){if(this.is==="ytd-watch-grid"){A=R&&!A;this.swatcherooSplitScroll&&(A?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));Y=_.Mo(this.hostElement).querySelector("#panels");var c=_.Mo(this.hostElement).querySelector("#playlist"),M=_.Mo(this.hostElement).querySelector("#fixed-secondary"),N=_.Mo(this.hostElement).querySelector("#fixed-below"),
y=_.Mo(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),m=_.Mo(this.hostElement).querySelector("#chat-container");z&&(R?M.appendChild(Y):N.appendChild(Y));E?R?M.appendChild(m):N.appendChild(m):_.Bs(m,y);P?R?M.appendChild(c):N.appendChild(c):_.Bs(c,y);this.swatcherooSplitScroll&&(R=_.Mo(this.hostElement).querySelector("#secondary"),P=_.Mo(this.hostElement).querySelector("#columns"),E=_.Mo(this.hostElement).querySelector("#fixed-columns-secondary"),A?
E.appendChild(R):P.appendChild(R))}},
computeMetadataSkinnyMode:function(R,A,Y){return this.is!=="ytd-watch-grid"?!1:R?Y:A},
computeWatchWhilePanelsActive:function(R,A){return R||A},
computeNoBorderOnChat:function(R){return _.v("web_watch_theater_chat_no_border")&&R},
computeLiveChatPresentAndExpanded:function(R,A){return R&&!A},
computePanelExpanded:function(R,A,Y){return R||A||Y},
computeSqueezeback:function(R,A,Y,P){if(_.v("web_watch_enable_fs_squeezeback_panels")){var E=this.iMaxTheaterMode&&this.theater;return(R||A||Y)&&(P||E)}},
computeSwatcherooSqueezeback:function(R,A,Y){return this.is!=="ytd-watch-grid"||_.v("ww_squeezeback_killswitch")?!1:R&&A&&Y},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(R){_.PT(this).getPlayerPromise().then(function(A){var Y;(Y=A.changeMarkerVisibility)==null||Y.call(A,_.n(R,_.kY).isVisible||!1,_.n(R,_.kY).entityKeys||[],_.n(R,_.kY).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(R){this.liveChatCollapsed=R.detail;_.Yp().dispatch(_.Onq(R.detail));if(!this.liveChatCollapsed&&this.squeezeback){var A=_.is().resolve(_.tC);this.visiblePanelIdentifiers_.forEach(function(Y){A.hidePanel(Y)})}},
onSetPlaylistCollapsed:function(R){_.v("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!R)},
provideRenderingData:function(R,A){switch(R){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=A;break;case "PRIMARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=A);this.videoPrimaryInfoRendererValue=A==null?void 0:A.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=A);this.videoSecondaryInfoRendererValue=A==null?void 0:A.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
A;break;case "CLARIFICATION":this.clarifyBoxValue=A;break;case "LIVE_CHAT":this.conversationBar=A;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=A;break;case "PLAYLIST":this.externalPlaylistData_=A!=null?A:{};break;case "MERCH_SHELF":this.merchShelfValue=A==null?void 0:A.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=A;break;case "TICKET_SHELF":this.ticket=A;break;case "OFFER_MODULE":this.offerModule=A;break;case "LIMITED_STATE":this.limitedStateValue=
A;break;case "DONATION_SHELF":this.donation=A;break;case "ALERTS":this.alertsValue=A;break;case "COMMENTS":this.comments=A;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=A;break;case "ENGAGEMENT_PANELS":this.engagementPanels=A;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=A;break;case "RICH_GRID_RENDERER":this.richGridRendererData=A;break;case "EXPANDABLE_METADATA":this.expandableMetadata=A;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
A;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=A}},
toggleCinematicsActive:function(R){this.cinematicsActive=R},
isMiniplayerActive:function(){return _.is().resolve(_.jv).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var y_o;_.J_n=function(R){if(!(0,_.w_k)(R))throw Error("K``"+String(R));};
_.m4F=function(R){return R.findIndex(function(A){return y_o.indexOf(A.tagName)>-1})>-1};
_.TqF=function(){var R=_.is().resolve(_.Bd);_.kjk(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(R.isFullscreenEnabled()?_.zi(document.documentElement):_.DBb(document.documentElement))};
y_o=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.XA=new Map;_.XA.set(32,59972);_.XA.set(27,50765);_.XA.set(70,60102);_.XA.set(76,60221);_.XA.set(77,60222);_.XA.set(74,60223);_.XA.set(84,60224);_.XA.set(38,61941);_.XA.set(40,61942);_.XA.set(73,62521);_.XA.set(67,62522);_.XA.set(80,63390);_.XA.set(78,63397);_.XA.set(75,59972);_.XA.set(188,63385);_.XA.set(190,63384);_.XA.set(36,63387);
_.XA.set(35,63386);_.XA.set(37,63388);_.XA.set(39,63389);_.XA.set(79,63423);_.XA.set(87,63424);_.XA.set(107,63426);_.XA.set(109,63425);_.XA.set(65,63428);_.XA.set(83,63430);_.XA.set(68,63429);_.XA.set(221,63431);_.XA.set(219,63432);_.XA.set(97,63439);_.XA.set(98,63440);_.XA.set(99,63441);_.XA.set(100,63442);_.XA.set(101,63443);_.XA.set(102,63444);_.XA.set(103,63445);_.XA.set(104,63446);_.XA.set(105,63447);_.SZ=new Map;_.SZ.set(80,63390);_.SZ.set(78,63397);_.SZ.set(188,63400);_.SZ.set(190,63401);
_.SZ.set(191,60765);_.SZ.set(13,247917);_.II=new Map;_.Kh=new Map;
}catch(e){_._DumpException(e)}
try{
var PIH,iQn,lrn,xIF;_.d9f=function(R){return R.ui.guideIsVisibleButNotPersistent};
_.RAm=function(R){return R.ui.tabGesturesIsActive};
_.AvN=function(){var R=_.OK("service_worker_scope");try{return navigator.serviceWorker.getRegistration(R)}catch(A){return Promise.reject(A)}};
_.Ye9=function(R){return!(!R||!R.pushManager)};
PIH=function(){return _.AvN().then(_.Ye9).catch(function(){return!1})};
_.EWF=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?PIH():Promise.resolve(!1)};
_.zAn=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
iQn=function(){var R,A,Y;return _.O(function(P){switch(P.nextAddress){case 1:return P.yield(_.GA.getInstance(),2);case 2:R=P.yieldResult;if(!R){A=void 0;P.jumpTo(3);break}return P.yield(R.get("lmqf"),4);case 4:A=P.yieldResult;case 3:switch((Y=A)||(Y="SD"),Y){case "HD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return P.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
lrn=function(R){var A,Y,P;return _.O(function(E){if(E.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.v("disable_av1_setting")){var z=window.localStorage["yt-player-av1-pref"];z=z==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":z==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else z="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(A=R===z)return E.jumpTo(2);P=Y=R;return E.yield(iQn(),3)}E.nextAddress!=2&&(A=P===E.yieldResult);return E.return(A)})};var cvY;var OQH=_.bV.IronButtonState,MOg=(0,_.Wy)(HTMLElement);
_.jz({_template:function(){if(cvY!==void 0)return cvY;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_dropdown_menu.tp.yt.paper.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate="" allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]" expand-sizing-target-for-scrollbars="[[expandSizingTargetForScrollbars]]" fit-into="[[fitInto]]" class="style-scope tp-yt-paper-dropdown-menu">\n  \n  <div class="dropdown-trigger style-scope tp-yt-paper-dropdown-menu" slot="dropdown-trigger">\n    <tp-yt-paper-ripple class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-paper-ripple>\n    \n    <tp-yt-paper-input id="input" type="text" invalid="[[invalid]]" readonly="" disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]" input-role="button" input-aria-haspopup="listbox" autocomplete="off" style-target="input" class="style-scope tp-yt-paper-dropdown-menu">\n      \n      \n      \n      \n      <tp-yt-iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix="" slot="suffix" aria-hidden="true" class="style-scope tp-yt-paper-dropdown-menu"></tp-yt-iron-icon>\n    </tp-yt-paper-input>\n  </div>\n  <slot id="content" name="dropdown-content" slot="dropdown-content" class="style-scope tp-yt-paper-dropdown-menu"></slot>\n</tp-yt-paper-menu-button>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;xIF===void 0&&(xIF=document.createElement("template"));var P=xIF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return cvY=R},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[OQH,_.W9,_.fr,_.B9],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,
value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0},expandSizingTargetForScrollbars:{type:Boolean,value:!1},fitInto:{type:Object}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},observers:["_selectedItemChanged(selectedItem)"],_attachDom:function(R){var A=(0,_.gv)(this);A.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:R});A.shadowRoot.appendChild(R);return MOg.prototype._attachDom.call(this,R)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var R=this.contentElement;R&&R.selectedItem&&this._setSelectedItem(R.selectedItem)},
get contentElement(){for(var R=_.S0(this.$.content).getDistributedNodes(),A=0,Y=R.length;A<Y;A++)if(R[A].nodeType===Node.ELEMENT_NODE)return R[A]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(R){this._setSelectedItem(R.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(R){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(R)===this&&this.open()},
_selectedItemChanged:function(R){var A="";R?A=R.label||R.getAttribute("label")||R.textContent.trim():A="";this.value=A;this._setSelectedItemLabel(A)},
_computeMenuVerticalOffset:function(R,A){return A?A:R?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var R=this.opened?"true":"false",A=this.contentElement;A&&A.setAttribute("aria-expanded",R)}});_.Tc=new _.lU("navigateAction");var s1o=new _.lU("formRenderer");var Q8=function(){var R=_.rg.apply(this,arguments)||this;R.showInput=!1;return R};
_.H(Q8,_.rg);_.l=Q8.prototype;_.l.detached=function(){this.showInput&&window.removeEventListener("click",_.T2(this,this.closeOnOutsideClick_))};
_.l.stopPropagation_=function(R){this.showInput&&R.stopPropagation()};
_.l.closeOnOutsideClick_=function(R){this.closeOnOutsideClickCondition(R)&&(this.showInput=!1,window.removeEventListener("click",_.T2(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.l.closeOnOutsideClickCondition=function(){return!0};
_.l.closeOnOutsideClickHandler=function(){};
_.l.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.T2(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.l.openOnClickHandler=function(){};
_.l.showInputChanged=function(){};
_.l.setShowInput=function(R){this.showInput=R};
Q8.prototype.setShowInput=Q8.prototype.setShowInput;Q8.prototype.showInputChanged=Q8.prototype.showInputChanged;Q8.prototype.openOnClickHandler=Q8.prototype.openOnClickHandler;Q8.prototype.openOnClick_=Q8.prototype.openOnClick_;Q8.prototype.closeOnOutsideClickHandler=Q8.prototype.closeOnOutsideClickHandler;Q8.prototype.closeOnOutsideClickCondition=Q8.prototype.closeOnOutsideClickCondition;Q8.prototype.closeOnOutsideClick_=Q8.prototype.closeOnOutsideClick_;Q8.prototype.stopPropagation_=Q8.prototype.stopPropagation_;
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Q8.prototype,"showInput",void 0);_.C([_.Qa("click"),_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],Q8.prototype,"stopPropagation_",null);_.C([_.vZ("showInput"),_.k("design:type",Function),_.k("design:paramtypes",[Boolean]),_.k("design:returntype")],Q8.prototype,"showInputChanged",null);_.C([_.Do()],Q8);_.NuH=[Q8.prototype];var VOo;var JvF;var vY=function(){return _.K.apply(this,arguments)||this};
_.H(vY,_.K);_.l=vY.prototype;_.l.computePreselectedOption=function(R,A){return A===this.itemSelected_?R:void 0};
_.l.dataChanged_=function(){var R=this;this.preselectedSubreason=this.itemSelected_=-1;var A;(A=this.data)!=null&&A.key&&_.RK(this,function(){var Y,P=Number((Y=R.data)==null?void 0:Y.key);!Number.isNaN(P)&&(R.itemSelected_=P,Y=(Y=(R.data.items||[])[P])&&Y.optionSelectableItemRenderer&&Y.optionSelectableItemRenderer.preselectedIndex)&&(R.preselectedSubreason=Y)})};
_.l.isSubReasonHidden_=function(R,A){return R!=A};
_.l.onTopItemSelected_=function(R,A){for(var Y=_.Mo(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),P=0,E=Y.length;P<E;P++)Y[P].select(0);_.OC(this.hostElement,"yt-report-form-update",[A.item.value]);R.stopPropagation()};
_.l.onItemSelected_=function(R,A){_.OC(this.hostElement,"yt-report-form-update",[A.item.value]);R.stopPropagation()};
_.l.getItem_=function(R){return R.serviceItem?R.serviceItem:R.navigationItem?R.navigationItem:R.optionSelectableItemRenderer?R.optionSelectableItemRenderer:null};
_.l.computeText_=function(R){return(R=this.getItem_(R))?this.ytRendererBehavior.getSimpleString(R.text):null};
_.l.validate=function(){return this.itemSelected_!==-1};
_.l.computeAriaLabel_=function(R){var A=_.R4(R.text);(R=R.accessibility&&R.accessibility.accessibilityData&&R.accessibility.accessibilityData.label)&&(A+=". "+R);return A};
_.l.computeItemSelected_=function(R){return R};
_.l.preventSelection_=function(R){R.stopPropagation();this.tooltipTapped=!0};
_.l.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.l.updateItemSelectedFromBinding=function(R){this.itemSelected_=R.detail.value};
_.l.save=function(){var R;this.validate()&&(R=this.data)!=null&&R.items&&(R=this.data.items[this.itemSelected_],R!=null&&R.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(R.optionSelectableItemRenderer.submitEndpoint)||_.sC(this.hostElement,[R.optionSelectableItemRenderer.submitEndpoint])))};
vY.prototype.onPaperRippleTransitionEnd_=vY.prototype.onPaperRippleTransitionEnd_;vY.prototype.dataChanged_=vY.prototype.dataChanged_;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],vY.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vY.prototype,"data",void 0);_.C([_.S({value:-1}),_.k("design:type",Number)],vY.prototype,"itemSelected_",void 0);
_.C([_.S({computed:"computeItemSelected_(itemSelected_)"}),_.k("design:type",Number)],vY.prototype,"value",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],vY.prototype,"restoreFocusOnClose",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],vY.prototype,"tooltipTapped",void 0);_.C([_.S({value:-1}),_.k("design:type",Number)],vY.prototype,"preselectedSubreason",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vY.prototype,"dataChanged_",null);_.C([_.Qa("transitionend"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vY.prototype,"onPaperRippleTransitionEnd_",null);_.C([_.CG({is:"yt-options-renderer",disableElementRegistration:!0})],vY);
_.B(vY,"yt-options-renderer",function(){if(JvF===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;VOo===void 0&&(VOo=document.createElement("template"));var P=VOo;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);JvF=R}R=JvF;return R},{mode:2});var yvm;var mI0;var Tuj;var Q1W;var vWj;var gWf;var gn=function(){return _.K.apply(this,arguments)||this};
_.H(gn,_.K);gn.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
gn.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
gn.prototype.onTap=function(R){if(this.hostElement.classList.contains("selected")||_.OC(this.hostElement,"yt-share-panel-can-select-contact-action")[0])R&&R.detail&&(R.detail.x||R.detail.y)&&_.Mo(this.hostElement).querySelector("#target").blur(),(R=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),R={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:R?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.OC(this.hostElement,"yt-share-panel-select-contact-action",[R])};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.C([_.S({observer:"onDataChanged"}),_.k("design:type",Object)],gn.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.k("design:type",String)],gn.prototype,"componentTitle",void 0);_.C([_.nG("#thumbnail"),_.k("design:type",Object)],gn.prototype,"thumbnail",void 0);_.C([_.CG({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],gn);
_.B(gn,"yt-enrolled-contact-renderer",function(){if(gWf===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;vWj===void 0&&(vWj=document.createElement("template"));var P=vWj;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);gWf=R}R=gWf;return R},{mode:2});var nWn;var HQW;var nb=function(){return _.K.apply(this,arguments)||this};
_.H(nb,_.K);nb.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
nb.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
nb.prototype.onTap=function(R){if(this.hostElement.classList.contains("selected")||_.OC(this.hostElement,"yt-share-panel-can-select-contact-action")[0])R&&R.detail&&(R.detail.x||R.detail.y)&&_.Mo(this.hostElement).querySelector("#target").blur(),(R=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),R={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:R?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.OC(this.hostElement,"yt-share-panel-select-contact-action",[R])};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.C([_.S({observer:"onDataChanged"}),_.k("design:type",Object)],nb.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.k("design:type",String)],nb.prototype,"componentTitle",void 0);_.C([_.nG("#thumbnail"),_.k("design:type",Object)],nb.prototype,"thumbnail",void 0);_.C([_.CG({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],nb);
_.B(nb,"yt-suggested-contact-renderer",function(){if(HQW===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;nWn===void 0&&(nWn=document.createElement("template"));var P=nWn;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);HQW=R}R=HQW;return R},{mode:2});var HY=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-share-panel-reset-action":"onReset"};return R};
_.H(HY,_.K);HY.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"}}}}}};
HY.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.OC(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
HY.prototype.onReset=function(){for(var R=_.Mo(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),A=R.length-1;A>=0;A--)R[A].classList.toggle("selected")};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],HY.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],HY.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({observer:"onDataChanged"}),_.k("design:type",Object)],HY.prototype,"data",void 0);
_.C([_.CG({is:"yt-contact-section-renderer",disableElementRegistration:!0})],HY);
_.B(HY,"yt-contact-section-renderer",function(){if(Q1W===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Tuj===void 0&&(Tuj=document.createElement("template"));var P=Tuj;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Q1W=R}R=Q1W;return R},{mode:2});var rn=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return R};
_.H(rn,_.K);_.l=rn.prototype;_.l.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"}}}};
_.l.onYtRefreshFormCommand=function(R){var A;(R=_.n((A=_.n(R,_.LLZ))==null?void 0:A.formRenderer,s1o))&&this.set("data",R)};
_.l.reset=function(){var R=_.Mo(this.hostElement).querySelector("#fields").children;R=_.x(R);for(var A=R.next();!A.done;A=R.next())A=A.value,A.reset&&A.reset()};
_.l.getForm=function(){var R={},A=_.Mo(this.hostElement).querySelector("#fields").children;A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;if(!Y.validate())return null;R[Y.data.key]=Y.value}return R};
_.l.submitFormFields=function(){if(this.fields)for(var R=_.x(this.fields),A=R.next();!A.done;A=R.next())A=A.value,A.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?A.save():A.nodeName==="YT-OPTIONS-RENDERER"&&A.save()};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],rn.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],rn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rn.prototype,"data",void 0);_.C([_.HZ("#fields > *"),_.k("design:type",Array)],rn.prototype,"fields",void 0);
_.C([_.CG({is:"yt-form-renderer",disableElementRegistration:!0})],rn);
_.B(rn,"yt-form-renderer",function(){if(mI0===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;yvm===void 0&&(yvm=document.createElement("template"));var P=yvm;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);mI0=R}R=mI0;return R},{mode:2});var rvY;var DS=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return R};
_.H(DS,_.K);DS.prototype.onCheckboxChange=function(R){this.data&&(R=(this.checked=_.Yw(R).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})};
DS.prototype.handleUpdateCheckboxCommand=function(R){(R=_.n(R,_.JnS))&&this.data&&this.data.id===R.id&&(this.set("data.disabled",R.disabled),this.set("data.title",R.title))};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],DS.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],DS.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],DS.prototype,"checked",void 0);_.C([_.F({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],DS);
_.B(DS,"ytd-settings-checkbox-renderer",function(){if(rvY!==void 0)return rvY;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return rvY=R},{mode:1});var DIj;var U4=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return R};
_.H(U4,_.K);U4.prototype.dataChanged=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return R.radio.removeAttribute("checked"),!R.data||!R.data.id||R.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.zAn()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(A=R.data&&R.data.id)?Y.yield(lrn(R.data.id),4):Y.jumpTo(3):(R.set("data.hidden",!0),Y.jumpTo(0));Y.nextAddress!=3&&(A=Y.yieldResult);A&&_.OC(R.hostElement,"yt-select-settings-radio-option",[R.data.id]);_.XH(Y)})};
U4.prototype.onButtonChanged=function(R){_.Yw(R).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.OC(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
U4.prototype.onSelectOption=function(R){this.data&&this.data.id&&(this.data.id===R?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
U4.prototype.dataChanged=U4.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],U4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],U4.prototype,"ytActionHandlerBehavior",void 0);_.C([_.nG("#radio"),_.k("design:type",Object)],U4.prototype,"radio",void 0);_.C([_.S(),_.k("design:type",Object)],U4.prototype,"data",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],U4.prototype,"dataChanged",null);_.C([_.F({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],U4);
_.B(U4,"ytd-settings-radio-option-renderer",function(){if(DIj!==void 0)return DIj;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return DIj=R},{mode:1});var UIF;var $R=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return R};
_.H($R,_.K);
$R.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"}}}};
$R.prototype.handleUpdateTextCommand=function(R){(R=_.n(R,_.ynf))&&this.data&&this.data.id===R.id&&this.set("data",R)};
$R.prototype.handleUpdateConnectedAppRendererCommand=function(R){if(_.n(R,_.QFA)&&this.data){var A,Y;if(R=(A=_.n(R,_.QFA))==null?void 0:(Y=A.newConnectedAppRenderer)==null?void 0:Y.connectedAppRenderer)this.data=R}};
$R.prototype.computeConnectedAppStyle=function(R){return R.style?R.style.toLowerCase().replace(/_/g,"-"):""};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],$R.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$R.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.k("design:type",String)],$R.prototype,"connectedAppStyle",void 0);_.C([_.F({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],$R);
_.B($R,"ytd-connected-app-renderer",function(){if(UIF!==void 0)return UIF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return UIF=R},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Bv("iuT5Oc");

_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("L3n37");
var aFe=function(R){return R.watch.isLearningJourneyActive},CBo=_.NV(115994),hsg=_.NV(115993),o_f=function(R,A,Y){var P=this;
var E=Y.dragDownAction;this.layer=0;this.JSC$23115_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.JSC$23115_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return P.dragDownAction()}}}};
this.fullscreen=!1;var z=_.rU();_.Sm(z,CBo,this.layer);_.Sm(z,hsg,this.layer);this.dragDownAction=function(){E();_.ZL(z,{visualElement:P.fullscreen?CBo:hsg})};
this.gesture=new _.Dt(R,A,this.JSC$23115_watchConfig,"pandown");this.attach()};
o_f.prototype.attach=function(){this.gesture.attach()};
o_f.prototype.detach=function(){this.gesture.detach()};
o_f.prototype.update=function(R){this.fullscreen=R;this.gesture.config=R?this.JSC$23115_watchFullScreenConfig:this.JSC$23115_watchConfig};var k5x=function(R){_.$i.call(this);var A=this;this.rootElement=R;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return A.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(Y){A.initOrDisposeActiveModules(Y)}));
this.onAttached()};
_.H(k5x,_.$i);_.l=k5x.prototype;_.l.getRoot=function(){return this.rootElement};
_.l.getElement=function(R){return this.rootElement.getElement(R)};
_.l.setPlayerResponse=function(R){this.playerResponse=R;this.publish("PLAYER_RESPONSE_UPDATED",R)};
_.l.getPlayerResponse=function(){return this.playerResponse};
_.l.setWatchNextResponse=function(R){this.watchNextResponse===R?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=R,this.publish("WATCH_NEXT_RESPONSE_UPDATED",R))};
_.l.getWatchNextResponse=function(){return this.watchNextResponse};
_.l.registerActionHandler=function(R,A){var Y=this;if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var P={};_.t$(_.ZA.getInstance(),(P[R]=A,P),this.getRoot())}else this.actionHandlers.has(R)||(this.actionHandlers.set(R,[]),P={},_.t$(_.ZA.getInstance(),(P[R]=function(){var E=_.Ge.apply(0,arguments);return(Y.actionHandlers.get(R)||[]).map(function(z){return z.apply(null,_.py(E))})},P),this.getRoot())),this.actionHandlers.get(R).push(A)};
_.l.unregisterActionHandler=function(R){if(_.v("web_watch_controller_reg_multiple_handlers_killswitch")){var A={};_.e_(_.ZA.getInstance(),(A[R]=!0,A),this.getRoot())}else(A=this.actionHandlers.get(R))?(A.pop(),A.length===0&&(A={},_.e_(_.ZA.getInstance(),(A[R]=!0,A),this.getRoot()),this.actionHandlers.delete(R))):_.pK(new _.XN("Attempted to unregister an action handler which is not registered.",R))};
_.l.addPageDisposeJob=function(R){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.nqk(this.rootElement.pageDisposeJobs,R)};
_.l.removePageDisposeJob=function(R){this.rootElement.pageDisposeJobs&&_.ak(this.rootElement.pageDisposeJobs,R)};
_.l.dispatchEvent=function(R,A){_.xo(this.rootElement,R,A)};
_.l.provideRenderingData=function(R,A){this.rootElement.provideRenderingData(R,A)};
_.l.scrollWatchTo=function(R,A){var Y;(Y=this.watchScrollManager)==null||Y.scrollWatchTo(R,A)};
_.l.focusOnPlayer=function(){var R=this.getElement("PLAYER");_.RK(R,function(){if(R&&R.firstElementChild){var A=R.querySelector(".html5-video-player");A&&(_.gy(_.is().resolve(_.XW)),A.focus())}else _.pK(Error("No"))})};
_.l.updateCinematicFullscreenConfig=function(){var R=!!this.rootElement.theater,A=!!this.rootElement.fullscreen,Y;(Y=this.watchCinematicManager)==null||_.f8(Y,A,R)};
_.l.subscribeToActiveChanged=function(R,A){A=A===void 0?!0:A;var Y=_.Fq(_.Yp(),aFe,function(P){R(P)});
A&&R(aFe(_.Yp().getState()));return Y};
_.l.isActive=function(){return aFe(_.Yp().getState())};
_.l.onAttached=function(){var R=_.v("external_fullscreen");_.v("use_unified_flag_accessor")&&(R=_.is().resolve(_.zK0).retriever.getFlag(_.PmH));(R||_.CQ("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.l.initPersistentModules=function(){if(_.v("kevlar_watch_flexy_theater_manager")){var R=new _.ZXf(this);_.gz(this,R)}R=new _.WJo(this);_.gz(this,R);R=new _.WW(this);_.gz(this,R);R=new _.XDL(this);_.gz(this,R);R=new _.x1c(this);_.gz(this,R);R=new _.jh(this);_.gz(this,R);_.v("kevlar_watch_flexy_playlist_manager")&&(R=new _.Mxo(this),_.gz(this,R))};
_.l.initOrDisposeActiveModules=function(R){R?(this.watchScrollManager=new _.BW(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.wDL(this)),this.activeModules.push(new _.wvf(this)),this.activeModules.push(new _.m1c(this)),this.activeModules.push(new _.CIx(this)),_.v("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.d_b(this)),this.activeModules.push(new _.R4L(this)),_.v("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.QWb(this)),
_.v("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.xIx(this)),_.v("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.NuR(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.v("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.ES$(this)),_.v("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.Ire(this)),R=_.v("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.v("kevlar_watch_flexy_comments_manager")&&!R&&this.activeModules.push(new _.HQg(this)),_.v("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.Mqb(this)),this.activeModules.push(new _.RAo(this)),this.activeModules.push(new _.eAx(this)),_.v("web_enable_timely_actions")&&this.activeModules.push(new _.EWx(this)),_.v("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.U9o(this)),_.v("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.m9b(this)),
_.v("web_fullscreen_components")&&this.activeModules.push(new _.Pmc(this)),_.v("web_player_rtr_ctrls")&&this.activeModules.push(new _.XVE(this))):(_.xt(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.l.disposeInternal=function(){_.$i.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Yh.Object.defineProperties(k5x.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var G5f={},ZnL=["learning-journey-engagement-panel","PAlearning_chat"];
G5f.YtdLearningJourneyWatchBehavior=[_.u.YtRendererBehavior,_.VC.YtPlayerListenerBehavior,_.HX.YtRendererstamperBehavior,_.fH.YtActionHandlerBehavior,_.wd.YtPageBehavior,_.bF.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},
limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},
externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.CQ("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.v("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 _.CQ("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 _.v("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.v("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.cU("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.cU("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.v("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.v("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 _.v("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_rounded_player_large")||_.v("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.v("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.v("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("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 _.v("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.v("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.xR(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.xR(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var R=this;this.watchController=void 0;this.pageDisposeJobs=[function(){R.showMetadataPlaceholder_()},
function(){_.v("web_watch_dont_clear_comments")||R.clearComments_()},
function(){R.clearPlayerAds_()},
function(){R.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.v("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.v("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.VXD(function(){return _.PT(R)},this.hostElement);
this.pageDisposeJobs.push(function(){R.youThereManager_.reset()});
_.v("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){R.resetFullerscreenEduButtonForNewPlayback_()}));
_.v("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Qo;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;_.v("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.v("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));_.v("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.T2(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(R){R&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:R}),R.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(R){_.v("kevlar_watch_flexy_theater_manager")&&(this.theater=R,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.v("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(R){!_.v("kevlar_watch_while_v2")&&!_.v("web_watch_pip")||R||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(R){this.active!==void 0&&(this.fullscreen=R,_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(R){this.active!==void 0&&(_.xo(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.v("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(R>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(R){this.initCsi_();this.updatePageData_(R)},
updatePageData_:function(R){var A=this;if(R)if(this.data===R){this.onPageLoadWithSameData_();var Y;(Y=this.watchController)==null||Y.setWatchNextResponse(this.data)}else this.data=R;this.playlist&&_.bE({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Fh("nw");this.loading=!1;_.Ua(_.fn,function(){A.initDclkstatus_();var P,E=((P=A.player)==null?void 0:P.getVideoData().cpn)||"";_.d1D(function(z,c){_.sK9(z,c,E)})})},
onPageLoadWithSameData_:function(){_.v("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 R=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!R);this.set("loadingData.playlistLoading",R&&R!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),R=this.watchNextSkeletonEl_.firstElementChild;R;)R.classList.remove("hidden"),R=R.nextElementSibling;var A,Y,P;R=(A=this.loadingData)==null?void 0:(Y=A.endpoint)==null?void 0:(P=Y.watchEndpoint)==null?void 0:P.videoId;var E;R&&(E="https://i.ytimg.com/vi/"+R+"/frame0.jpg");_.Mo(this.hostElement).querySelector("#player").style.backgroundImage=E?"url("+E+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var R=_.Mo(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&R&&(R.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var A,Y;(Y=(A=this.watchMetadata).updateSentimentBarWidth)==
null||Y.call(A);var P,E;(E=(P=this.watchMetadata).resize)==null||E.call(P)}_.Mo(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(R){var A=_.Mo(this.hostElement).querySelector(R);A?_.iE(A,!1):_.pK(new _.XN("Overscroll monitor not found for component: ",R))},
removeSplitScrollMouseTrap:function(R){var A=_.Mo(this.hostElement).querySelector(R);A?_.lE(A):_.pK(new _.XN("Disposal component for  overscroll monitoring not found: ",R))},
onLoadingChanged_:function(R){R?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(R){var A=this;R?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.fn.addLowPriorityJob(function(){A.onWindowResized_(_.XI(!0))})},
updateTheaterModeState_:function(R){if(!_.v("kevlar_watch_flexy_theater_manager")){R=R||this.fullWindowMode_;if(this.theater!==void 0||R)this.theater=R;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();R&&_.pSo()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var R=this.theater;_.v("external_fullscreen")&&this.fullscreen&&(R=!0);R=R?_.Mo(this.hostElement).querySelector("#player-full-bleed-container"):_.Mo(this.hostElement).querySelector("#player-container-inner");var A=this.getPlayerContainer(),Y=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip");A.parentElement!==R&&(Y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.PT(this).appendTo(R,A),R.appendChild(_.Mo(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var R=this;return _.O(function(A){if(A.nextAddress==1)return A.yield(_.is().resolve(_.jv).deactivate(),2);R.updatePlayerLocation();_.XH(A)})},
updateCinematicsLocation:function(){var R=this.getElement("CINEMATICS");if(R){var A=this.getCinematicsLocationContainer();R.parentElement!==A&&A.appendChild(R);var Y;(Y=this.watchController)==null||Y.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Mo(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Mo(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(R,A){var Y=document.documentElement.hasAttribute("dark"),P=Y&&_.v("web_cinematic_theater_mode"),E=Y&&_.v("web_cinematic_fullscreen");Y=!Y&&this.cinematicLightTheme;return R&&P||A&&E||(A||R)&&Y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var R;(R=this.watchController)==null||R.setWatchNextResponse(this.data);_.v("kevlar_watch_flexy_comments_manager")||this.initComments_();_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.is().resolve(_.Y7).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.v("web_watch_start_chat_in_theater_mode")){var A,
Y,P;if((A=this.data)==null?0:(Y=A.contents)==null?0:(P=Y.twoColumnWatchNextResults)==null?0:P.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var E,z;((E=this.data)==null?0:(z=E.contents)==null?0:z.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(R){var A;(A=this.watchController)==null||A.setPlayerResponse(this.playerData);R&&R.playabilityStatus&&(A=this.isVideoPlayable_(R.playabilityStatus,this.getPlayerOverlays_(this.data)),R=this.isLiveStreamOffline_(R.playabilityStatus),A&&!R||_.RK(this,function(){_.Fh("pbu")}));
this.setPlayerAds_();_.MT(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(R){_.Yp().dispatch(_.cK({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));R?this.activate_():this.deactivate_()},
attached:function(){var R=this;this.watchController=new k5x(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.v("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var A=_.PT(this);_.v("kevlar_disable_prepare_player")||A.preparePlayer();_.v("kevlar_watch_flexy_playlist_manager")||_.is().resolve(_.Y7).setPlayer(A);this.updatePageMediaQueries();A={"--ytd-watch-flexy-scrollbar-width":_.zc()+
"px"};!_.cU("kv_pl_mx_sz_ks")&&_.cU("kevlar_watch_max_player_width")&&(A["--ytd-watch-flexy-max-player-width-wide-screen"]=_.rbL+"px");_.cU("kevlar_watch_flexy_metadata_height")&&(A["--ytd-watch-flexy-space-below-player"]=_.DLe+"px");this.safeUpdateStyles(A);_.v("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new o_f(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return R.onPlayerTouchPanDown_()}}));
_.v("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Mo(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var R=_.zc(),A=_.wT+R,Y=A;this.fixedPanels&&(A+=_.Hqf);var P=657+R;R=1327+R;_.Mo(this.hostElement).querySelector("#two-column-query").query="(min-width: "+A+"px)";_.Mo(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(P+"px), (min-height: 630px) and (min-width: ")+(A+"px) and (max-width: ")+(R+"px)");_.Mo(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(R+"px)");
_.Mo(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+Y+"px)"},
calculateCurrentPlayerSize_:function(){var R=_.Mo(this.hostElement).querySelector("#miniplayer-bar").firstChild;return R&&R.active||this.theater||_.v("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.Dg(NaN,NaN):_.E_c(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.E_c(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.lt(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var R=this;this.onWindowResized_(_.XI());_.v("browse_skeleton_removal_on_watch_killswitch")||_.CQ("IS_SHELL_LOAD")&&_.X_m();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var A=_.PT(this);A.addEventListener("yt-player-updated",_.T2(this,this.onPlayerUpdated_));A.getPlayerPromise().then(function(Y){R.playerApiReady_(Y)});
_.v("kevlar_watch_flexy_playlist_manager")||(A=_.is().resolve(_.Y7),_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&A.addEventListener("yt-navigate",_.T2(this,this.onYtNavigate_)),A.setPlaylistComponent(_.Mo(this.hostElement).querySelector("#playlist")),A.addEventListener("yt-playlist-data-updated",_.T2(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.fn.addLowPriorityJob(function(){_.xo(R.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.PT(this).removeEventListener("yt-player-updated",_.T2(this,this.onPlayerUpdated_));if(!_.v("kevlar_watch_flexy_playlist_manager")){var R=_.is().resolve(_.Y7);_.v("kevlar_watch_observe_playlist_navigations_killswitch")&&R.removeEventListener("yt-navigate",_.T2(this,this.onYtNavigate_));R.cancelVideoSkip();R.removeEventListener("yt-playlist-data-updated",_.T2(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.v("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.xo(this.hostElement,"yt-autonav-pause-player",!1);R=_.EC();_.v("kevlar_exit_fullscreen_leaving_watch")&&R&&_.zi(R)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(R){this.player&&this.player.updateVideoData({rvs:R.rvs})},
getPageContents:function(R){return R&&R.contents&&R.contents.twoColumnWatchNextResults&&R.contents.twoColumnWatchNextResults.results&&R.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(R){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",R)},
onRetrieveLocation_:function(R,A){A.hasComments?A.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):A.locationRetrieved("/related_ajax",void 0);R.stopPropagation()},
onSubscriptionChanged_:function(R,A){this.player&&(A?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.ta("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Mo(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Mo(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(R){this.player=R;this.setPlayerState(R.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.v("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.v("kevlar_unified_player")||_.v("kevlar_player_new_bootstrap_adoption"))&&_.C0()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(R,A){A=A===void 0?!0:A;_.EC()&&_.v("external_fullscreen")&&_.zi(document.documentElement);this.theaterRequested_=R;A&&_.rr("wide",R?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.v("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.OC(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.xo(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(R){_.F8(R,typeof this.player),this.player&&_.F8(R,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var R;((R=this.player)==null?0:R.isFullscreen())?this.player.toggleFullscreen():_.OC(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(R,A){return this.loading?A:!!Object.keys(R).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(R){if(R){R=_.x(R);for(var A=R.next();!A.done;A=R.next())A=A.value,A.youThereRenderer&&_.mze(this.youThereManager_,A.youThereRenderer)}},
setPlaylistData_:function(R){return R||{}},
userEngagementConfigDataChanged_:function(R){if(R)if(R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var A=this.youThereManager_;_.z$()<R.lowEngagementThresholdMs||_.g_f(A,!0)}else R.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.OC(this.hostElement,"yt-autonav-pause-user-engagement",[R])},
isPlayerUnavailable_:function(R,A,Y){return!!R&&!this.isVideoPlayable_(R,Y)&&!A},
getPlayerOverlays_:function(R){return(R==null?void 0:R.playerOverlays)||null},
isVideoPlayable_:function(R,A){if(!R)return!1;var Y=R.status==="OK"||R.status==="LIVE_STREAM_OFFLINE",P=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",R)||this.get("errorScreen.ypcTrailerRenderer",R);R=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",R);var E;A=A==null?void 0:(E=A.playerOverlayRenderer)==null?void 0:E.gatedActionsOverlayRenderer;return!!Y||!!P||!!R||!!A},
hasWatchNextResponseErrorRenderer:function(R){var A=this.getPageContents(R),Y,P,E,z,c;return!(R==null?0:(Y=R.contents)==null?0:(P=Y.twoColumnWatchNextResults)==null?0:P.secondaryResults)&&!!((E=A[0])==null?0:(z=E.itemSectionRenderer)==null?0:(c=z.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(R){return R?R.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(R,A,Y){var P=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",A),E=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];E=_.v("web_no_skip_video_on_verification_checks")?(R==null?void 0:R.status)&&E.includes(R.status):R&&R.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",R);z==void 0&&(z=!0);!Y||this.isVideoPlayable_(R,this.getPlayerOverlays_(A))||
P||E||!z||_.is().resolve(_.Y7).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.ing()},
onPlayerFeedbackStartRequest_:function(R){_.OC(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:R}])},
onPlayerFeedbackArticleRequest_:function(R){_.OC(this.hostElement,"yt-help-dialog-requested",[R])},
onPlayerYpcContentRequest_:function(){var R,A,Y,P,E,z,c,M,N=((R=this.data)==null?NaN:(A=R.contents)==null?NaN:(Y=A.twoColumnWatchNextResults)==null?NaN:(P=Y.secondaryResults)==null?NaN:(E=P.secondaryResults)==null?NaN:(z=E.offerModule)==null?NaN:(c=z.tvfilmOfferModuleRenderer)==null?NaN:(M=c.actionButtons)==null?NaN:M.length)-1;R=[".offerButton.buttonRenderer.",".actionButtons."+(N>=0?N:0)+".buttonRenderer."];A=_.x(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(Y=A.next();!Y.done;Y=A.next())for(Y=Y.value,P=_.x(R),E=P.next();!E.done;E=P.next())if(E="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+Y+E.value,E=this.get(E+"navigationEndpoint",this.data)||this.get(E+"serviceEndpoint",this.data)||this.get(E+"command",this.data)){_.vc(E,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(R){_.xo(this.hostElement,"yt-autonav-pause-player",R)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(R){R()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(R){switch(R){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(R){switch(R){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.xo(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(R)},
setPlayerState:function(R){_.Yp().dispatch(_.wof(R))},
onPlayerSubscribe_:function(R){_.OC(this.hostElement,"yt-player-subscribe",[R])},
onPlayerUnsubscribe_:function(R){_.OC(this.hostElement,"yt-player-unsubscribe",[R])},
onPlayerAdYtShowToast_:function(R){_.OC(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:R.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(R){if(R)return R},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(R){return!_.v("web_watch_move_summary_to_sd")&&!!R},
computeWatchMetadataRefresh:function(){return _.v("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var R,A,Y,P;this.watchNextSecondaryResults=(R=this.data)==null?void 0:(A=R.contents)==null?void 0:(Y=A.twoColumnWatchNextResults)==null?void 0:(P=Y.secondaryResults)==null?void 0:P.secondaryResults}},
setRichGridRendererData:function(R){this.richGridRendererData=R},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var R,A=(R=this.data)==null?void 0:R.engagementPanels;if(A==null?0:A.length){R=null;A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0;if(((P=Y.engagementPanelSectionListRenderer)==null?void 0:P.targetId)==="engagement-panel-structured-description"){R=Y;break}}var E,z,c;R=(E=R)==null?void 0:(z=E.engagementPanelSectionListRenderer)==null?void 0:(c=z.content)==null?void 0:c.structuredDescriptionContentRenderer;if(R==null?0:R.items){E=
[];z=_.x(R.items);for(c=z.next();!c.done;c=z.next()){c=c.value;if(!_.v("sd_horizontal_list_show_nav_killswitch")){var M=P=Y=A=R=void 0,N=void 0,y=(R=c.horizontalCardListRenderer)==null?void 0:(A=R.header)==null?void 0:(Y=A.richListHeaderRenderer)==null?void 0:(P=Y.navigationButton)==null?void 0:(M=P.buttonRenderer)==null?void 0:(N=M.command)==null?void 0:N.commandExecutorCommand;y&&y.commands&&(y.commands=y.commands.filter(function(m){return!_.n(m,_.ajb)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||E.push(c)}return{items:E}}}},
constructWarning_:function(R){return{text:_.dF(R),type:"WARNING"}},
isPlaShelfEnabled_:function(R){if((this.get("adPlacements",R)||[]).length)return!0;R=this.get("playerAds",R)||[];return!(!R.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",R[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var R=this;_.xo(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var A=this.getScrollTop()>0;this.gestures_&&(A?this.gestures_.detach():this.gestures_.attach());A!==this.showFullerscreenEdu_&&_.v("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=A,_.PT(this).getPlayerPromise().then(function(Y){Y.updateFullerscreenEduButtonVisibility(R.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.xo(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var R=this;this.commentsReady=!1;_.fn.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Ua(_.fn,function(){R.setComments_()},1E3)},
setComments_:function(){if(!_.v("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Fh("cmi");_.fn.cancelJob(this.setCommentsJobId_);var R=this.getPageContents(this.data);if(R&&R.length){R=_.x(R);for(var A=R.next();!A.done;A=R.next())if(A=A.value,this.get("itemSectionRenderer.sectionIdentifier",A)==="comment-item-section"){this.comments=A.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.xo(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.v("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.v("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Fh("cmc")},
doRemoveComments_:function(){this.comments={};_.v("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.fn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.fn.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(R,A){var Y=_.n(A.endpoint,_.LO);Y&&(!(A=this.get("data.currentVideoEndpoint.watchEndpoint"))||Y.videoId!==A.videoId||Y.playlistId&&Y.playlistId!==A.playlistId||Y.index!==void 0&&Y.index!==A.index||typeof Y.startTimeSeconds!=="number"||(R.stopPropagation(),this.setScrollTop(0),_.PT(this).getPlayerPromise().then(function(P){var E=Y.startTimeSeconds;P.seekTo(E);P.wakeUpControls();E<P.getDuration()&&P.playVideo()})))},
updatePlayerStartTime_:function(){var R=_.k3Z();"t"in R&&(R=_.zsE(R.t),this.player.seekTo(R,!0))},
updateTitleFromWatchNext:function(R){R=this.getPageContents(R);var A,Y;(R=_.R4(R==null?void 0:(A=R[0])==null?void 0:(Y=A.videoPrimaryInfoRenderer)==null?void 0:Y.title))&&_.xo(this.hostElement,"yt-update-title",R)},
updateTitle_:function(R){R=this.get("videoDetails.title",R)||"";_.xo(this.hostElement,"yt-update-title",R)},
syncWithRemoteVideo_:function(R,A,Y){if(this.active&&this.player){var P=this.player.getVideoData();if(P.video_id===Y&&(Y=P.list,_.v("polymer_enable_mdx_queue")&&Y&&Y.startsWith("RQ")&&(Y=void 0),P.video_id!==R||Y!=A)){var E;_.v("kevlar_player_watch_endpoint_navigation")?E=_.iMJ(_.Rsb(R,A)):E=this.buildWatchEndpoint_(R,A);_.xo(this.hostElement,"yt-navigate",{endpoint:E,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(R,A,Y){return _.zX(R,A,Y)},
initDclkstatus_:function(){_.PBo()},
attachWatchPageSkeleton_:function(){var R=document.querySelector("#watch-page-skeleton");if(R){var A=R.querySelector("#primary-info"),Y=R.querySelector("#secondary-info"),P=R.querySelector("#related");A&&_.Mo(this.hostElement).querySelector("#info-skeleton").appendChild(A);Y&&_.Mo(this.hostElement).querySelector("#meta-skeleton").appendChild(Y);P&&(_.Mo(this.hostElement).querySelector("#related-skeleton").appendChild(P),this.watchNextSkeletonEl_=P);_.UU(R)}},
handlePlayerUpdated_:function(){_.PT(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(R,A){if(this.watchNextSkeletonEl_&&typeof A!=="undefined"){var Y=this.watchNextSkeletonEl_.children,P=R&&R.indexSplices.length?R.indexSplices[0].index:0;R=Math.min(this.watchNextShownItems.length,Y.length);A||(P=0,R=Y.length);for(A=P;A<R;A++)Y[A].classList.add("hidden")}},
onPlayerFullscreenChange_:function(R){_.v("external_fullscreen")||_.OC(this.hostElement,"yt-player-fullscreen",[R.fullscreen])},
onFullscreenChange_:function(R){this.fullscreen=R;this.gestures_&&this.gestures_.update(this.fullscreen);var A=_.PT(this);A.getPlayerPromise().then(function(Y){Y.setFauxFullscreen(!!_.EC())});
this.updateFullBleedElementLocations();R&&(A.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(R,A){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!A},
computeIsDonationShelfCollapsed_:function(R){return R},
computeShouldShowMerchShelf:function(R,A){return A&&!!R},
computeResponseHasComments:function(R){var A,Y,P,E,z;return!!(R==null?0:(A=R.contents)==null?0:(Y=A.twoColumnWatchNextResults)==null?0:(P=Y.results)==null?0:(E=P.results)==null?0:(z=E.contents)==null?0:z.some(function(c){var M;return(c==null?void 0:(M=c.itemSectionRenderer)==null?void 0:M.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(R,A){this.responseHasComments=this.computeResponseHasComments(this.data);return!!R&&!!Object.keys(R).length&&!A},
identity:_.bJ,onWindowResized_:function(R){this.windowSize_=R;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.v("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.v("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(R){var A=this;R&&R.type!=="dataloaded"&&R.type!=="dataupdated"||_.PT(this).getPlayerPromise().then(function(Y){var P=Y.getPlayerState();P!==5&&P!==0&&(Y=1/Y.getVideoAspectRatio(),A.videoHeightToWidthRatio_!==Y&&(A.videoHeightToWidthRatio_=Y))})},
schedulePlayerSizeUpdate_:function(R){var A=this,Y=_.v("kevlar_watch_while_v2")||_.v("web_watch_pip"),P=function(){if(A.watchMetadata){var E,z;(z=(E=A.watchMetadata).resize)==null||z.call(E)}_.PT(A).getPlayerPromise().then(function(c){if(_.v("kevlar_set_internal_player_size")){if(!Y||!A.isMiniplayerActive()){var M=A.calculateCurrentPlayerSize_();c.setInternalSize(M.width,M.height)}}else c.setSize(NaN,NaN);_.v("kevlar_watch_while")&&A.updateWatchWhileScrollThreshold_()})};
R?P():_.cC(_.fn,P)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(R){this.set("data.survey",R.detail)},
onYtShowSurveyCommand_:function(R){this.set("data.survey",_.n(R,_.NMc).survey)},
onDownloadedVideoDeleted:function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1){if(!A.active||(Y=A.playerData)==null||!Y.offlineState||A.videoId!==R)return E.return();(P=A.player)==null||P.stopVideo();_.f_().navigatingAwayFromWatchDeletedVideo=!0;_.vc(_.AqI,A.hostElement);return E.yield(_.f_().navigationFinishPromise,2)}_.f_().navigatingAwayFromWatchDeletedVideo=!1;_.XH(E)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var R;this.theater?R=_.Sv(.5625*this.windowSize_.width,480,this.windowSize_.height-185):R=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==R&&(this.watchWhileScrollThreshold_=R,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var R=_.Mo(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&R){var A=this.windowSize_.height>=624,Y=this.active?this.getScrollTop():0;!R.active&&A&&Y>=this.watchWhileScrollThreshold_?(R.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):R.active&&(!A||Y<this.watchWhileScrollThreshold_&&!_.EC())&&(R.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(R,A){if(R!==!0||A!==void 0){R=!_.v("live_chat_over_engagement_panels");A=_.Mo(this.hostElement).querySelector("#chat-container");var Y=_.Mo(this.hostElement).querySelector("#plj-sidebar"),P=_.Mo(this.hostElement).querySelector("#panels"),E=_.Mo(this.hostElement).querySelector("#plj-panels"),z=_.Mo(this.hostElement).querySelector("#plj-playlist"),c=_.Mo(this.hostElement).querySelector("#alerts"),M=_.Mo(this.hostElement).querySelector("#playlist"),N=_.Mo(this.hostElement).querySelector("#related"),
y=_.Mo(this.hostElement).querySelector("#donation-shelf"),m=_.Mo(this.hostElement).querySelector("#comments");this.isTwoColumns_?(c=_.Mo(this.hostElement).querySelector("#secondary-inner"),c.appendChild(Y),Y.appendChild(z),z.appendChild(M),Y.appendChild(E),R&&c.appendChild(P),_.v("web_watch_theater_chat")||c.appendChild(A),R||c.appendChild(P),c.appendChild(y),c.appendChild(N)):(R&&_.Fw(P,c),_.Fw(M,c),_.v("web_watch_theater_chat")||_.Fw(A,c),R||_.Fw(P,c),_.Fw(y,c),m&&(E&&_.Fw(E,m),_.Fw(N,m)));_.v("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.v("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.v("web_watch_theater_chat")){var R=_.Mo(this.hostElement).querySelector("#chat-container"),A=this.theater&&!this.fullscreen||_.v("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&A?_.v("web_watch_theater_chat_beside_player")?(A=_.Mo(this.hostElement).querySelector("#panels-full-bleed-container"),(R==null?void 0:R.parentElement)!==A&&A.append(R),this.panelsBesidePlayer=!0):_.v("web_watch_theater_fixed_chat")&&
(A=_.Mo(this.hostElement).querySelector("#columns"),(R==null?void 0:R.parentElement)!==A&&A.append(R),this.fixedPanels=!0):(_.v("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.v("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),A=_.Mo(this.hostElement).querySelector("#playlist"),R&&A?_.Bs(R,A):_.pK(new _.XN("Missing element when updating chat location",{"chatContainer defined":!!R,"playlist defined":!!A})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(R,A){return _.v("sw_metadata_vis_toggle_ks")?!0:!!R||!!A},
computeForceDarkPanelTheme:function(R){return _.v("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&R:!1},
safeUpdateStyles:function(R){try{_.ya(this.hostElement,R)}catch(A){_.pK(A)}},
videoHeightToWidthRatioChanged_:function(R,A){A&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.v("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(R){this.videoHeightToWidthRatio_=1/R},
computeIsVerticalVideo_:function(R){return R>=1},
computeIsFourThreeToSixteenNineVideo_:function(R){return R<=.7501&&R>=.5624},
computeIsExtraWideVideo_:function(R){return R<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.PT(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.PT(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.n_$(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(R){var A=_.K1(R)||0;_.Im(R,A+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var R=_.K1("yt-fullerscreen-edu-button-click-count")||0,A=_.K1("yt-fullerscreen-edu-button-shown-count")||0,Y=_.cU("external_fullscreen_button_shown_threshold"),P=R>=_.cU("external_fullscreen_button_click_threshold")||A>=Y;_.PT(this).getPlayerPromise().then(function(E){E.updateFullerscreenEduButtonSubtleModeState(P)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(R,A){return A},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.is().resolve(_.Y7).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var R=this;this.panelMaxHeightUpdateJob_&&_.fn.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.fn.addLowPriorityJob(function(){R.panelMaxHeightUpdateJob_=0;var A;!R.isTwoColumns_||R.theater||R.fullscreen?A=460:A=R.calculateNormalPlayerSize_().height;var Y=A+"px";_.v("live_chat_taller_height")&&!R.theater&&(Y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.v("live_chat_medium_height")&&
!R.theater&&(Y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.v("live_chat_scaled_height")&&!R.theater&&(Y="calc(100vh - var(--ytd-toolbar-height) - 238px)");R.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":A+"px","--ytd-watch-flexy-chat-max-height":Y,"--ytd-watch-flexy-structured-description-max-height":A+"px","--ytd-watch-flexy-comments-panel-max-height":A+"px","--ytd-comments-engagement-panel-content-height":A+"px"})})},
onYtShowEngagementPanelScrimAction_:function(R){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",R)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.NT(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(R){var A=_.Mo(this.hostElement).querySelector("#engagement-panel-scrim");R?A.addEventListener("tap",_.T2(this,this.onEngagementPanelScrimClick_)):A.removeEventListener("tap",_.T2(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(R){if(this.hostElement.contains(R)&&!this.scrollToAnimation_.isAnimating()){var A=R.offsetTop-24;R=R.offsetTop+R.offsetHeight+24;var Y=this.getPageScrollingElement(),P=this.getScrollTop(),E=P+Y.clientHeight-56;if(A<P+56)A-=56;else if(R>E)A=R-Y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,A),500)}},
onYtSignalActionScrollToComments:function(){var R=this.hostElement.querySelector("#comments");if(R&&!this.scrollToAnimation_.isAnimating()){R=R.offsetTop-56-24;if(_.v("kevlar_comment_teaser_scroll_to_midpoint")&&(R-=_.$2().height/3,R<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,R),500)}},
onYtEngagementPanelVisibleChanged:function(R,A,Y){this.active&&this.trackEngagementPanelVisibility&&!_.MXo.includes(Y)&&(A==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(Y),A!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&A!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(Y),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(R){return R?"":"watch-active-metadata"},
computeNewMetadataClass:function(R){return R?"watch-active-metadata":""},
computeFullBleedPlayer:function(R,A){return R||A},
computeDefaultLayout:function(R){return!R},
computeDefaultTwoColumnLayout:function(R,A){return!R&&A},
computeWatchWhilePanelsActive:function(R,A){return R||A},
computeNoBorderOnChat:function(R){return _.v("web_watch_theater_chat_no_border")&&R},
computeLiveChatPresentAndExpanded:function(R,A){return R&&!A},
computePanelExpanded:function(R,A,Y){return R||A||Y},
onChangeMarkersVisibility:function(R){_.PT(this).getPlayerPromise().then(function(A){var Y;(Y=A.changeMarkerVisibility)==null||Y.call(A,_.n(R,_.kY).isVisible||!1,_.n(R,_.kY).entityKeys||[],_.n(R,_.kY).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(R){this.liveChatCollapsed=R.detail;_.Yp().dispatch(_.Onq(R.detail))},
provideRenderingData:function(R,A){switch(R){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=A;break;case "PRIMARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=A);this.videoPrimaryInfoRendererValue=A==null?void 0:A.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.v("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=A);this.videoSecondaryInfoRendererValue=A==null?void 0:A.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
A;break;case "CLARIFICATION":this.clarifyBoxValue=A;break;case "LIVE_CHAT":this.conversationBar=A;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=A;break;case "PLAYLIST":this.externalPlaylistData_=A!=null?A:{};break;case "MERCH_SHELF":this.merchShelfValue=A==null?void 0:A.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=A;break;case "OFFER_MODULE":this.offerModule=A;break;case "LIMITED_STATE":this.limitedStateValue=A;break;case "DONATION_SHELF":this.donation=A;break;
case "ALERTS":this.alertsValue=A;break;case "COMMENTS":this.comments=A;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=A;break;case "ENGAGEMENT_PANELS":this.engagementPanels=A;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=A;break;case "RICH_GRID_RENDERER":this.richGridRendererData=A;break;case "EXPANDABLE_METADATA":this.expandableMetadata=A;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=A}},
toggleCinematicsActive:function(R){this.cinematicsActive=R},
isMiniplayerActive:function(){return _.is().resolve(_.jv).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(R){return ZnL.map(function(A){return R.find(function(Y){var P;return(Y==null?void 0:(P=Y.engagementPanelSectionListRenderer)==null?void 0:P.targetId)===A})}).filter(function(A){return A!==void 0})},
getNonLearningJourneyEngagementPanels:function(R){return R.filter(function(A){var Y;return!ZnL.includes((A==null?void 0:(Y=A.engagementPanelSectionListRenderer)==null?void 0:Y.targetId)||"")})}}];var tXc;var dN=function(){var R=_.K.apply(this,arguments)||this;R.flexy=!0;R.learningJourney=!0;R.roundedInfoPanel=!0;R.viewTransitionEnabled=_.v("enable_player_resize_transition");R.smallerChatMinHeight=_.v("live_chat_smaller_min_height");R.cinematicTheaterMode=_.v("web_cinematic_theater_mode");R.transparentTheaterMode=_.v("web_transparent_theater_mode");R.cinematicFullscreen=_.v("web_cinematic_fullscreen");R.useLargerMaxPlayerValue=_.v("kevlar_flexy_use_larger_player_value");R.cinematicFullscreenV2=_.v("web_cinematic_fullscreen_v2");
R.isDarkTheme=document.documentElement.hasAttribute("dark");R.theaterLargerPlayer=_.v("web_watch_theater_larger_player");R.defaultCollapsePlaylist=_.v("web_watch_default_collapse_playlist");R.enableCanvasLayout=_.v("web_enable_canvas_on_learning_journey");return R};
_.H(dN,_.K);_.l=dN.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var R=this,A=function(){R.onColumnScroll()};
this.primary.addEventListener("scroll",A);this.secondary.addEventListener("scroll",A)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(R){_.v("web_watch_update_narrow_width_killswitch")||_.Yp().dispatch(_.jHb(!R.detail.value));this.ytdWatchBehavior.isTwoColumns_=R.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(R){this.ytdWatchBehavior.flexySmallWindow_=R.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(R){this.ytdWatchBehavior.flexyLargeWindow_=R.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(R){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=R.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(R){this.ytdWatchBehavior.watchNextCanShowMore=R.detail.value};
_.l.updateShownItemsFromBinding=function(R){R.detail.path?this.set(R.detail.path,R.detail.value):this.ytdWatchBehavior.watchNextShownItems=R.detail.value};
_.l.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23124_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23124_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Yh.Object.defineProperties(dN.prototype,{showBrowseResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.browseData&&!this.playerData&&this.enableCanvasLayout}},
showWatchResponse:{configurable:!0,enumerable:!0,get:function(){return!!this.playerData||!this.enableCanvasLayout}},
cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.pageVisualEffects)return!1;for(var A=0;A<this.data.pageVisualEffects.length;A++)if(R=_.n(this.data.pageVisualEffects[A],_.kK))return A=void 0,(A=R.config)==null?void 0:A.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.learningJourneyEngagementPanels)==null?void 0:R.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var R,A=(R=this.learningJourneyEngagementPanels)==null?void 0:R.find(function(Q){var g;return(Q==null?void 0:(g=Q.engagementPanelSectionListRenderer)==null?void 0:g.panelIdentifier)==="learning-journey-engagement-panel"});
if(A){var Y,P,E,z,c,M,N,y,m;if(R=(y=((N=(c=((z=A==null?void 0:(Y=A.engagementPanelSectionListRenderer)==null?void 0:(P=Y.content)==null?void 0:(E=P.sectionListRenderer)==null?void 0:E.contents)!=null?z:[])[0])==null?void 0:(M=c.itemSectionRenderer)==null?void 0:M.contents)!=null?N:[])[0])==null?void 0:(m=y.accordionViewModel)==null?void 0:m.onTitleTap){var T=_.h7(R);if(T)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.Qp.instance.resolveCommand(T)}}}}}}});
_.Yh.Object.defineProperties(dN,{template:{configurable:!0,enumerable:!0,get:function(){if(tXc===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);tXc=R}R=tXc;return R}}});
dN.prototype.updateMiniplayerIsActiveValue=dN.prototype.updateMiniplayerIsActiveValue;dN.prototype.updateScrollTopValue=dN.prototype.updateScrollTopValue;dN.prototype.updateFullscreenValue=dN.prototype.updateFullscreenValue;dN.prototype.updateTheaterValue=dN.prototype.updateTheaterValue;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dN.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],dN.prototype,"ytComponentBehavior",void 0);
_.C([_.U(G5f.YtdLearningJourneyWatchBehavior),_.k("design:type",Object)],dN.prototype,"ytdWatchBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],dN.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dN.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],dN.prototype,"playerData",void 0);_.C([_.S(),_.k("design:type",Object)],dN.prototype,"browseData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"flexy",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"learningJourney",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"roundedInfoPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"viewTransitionEnabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"smallerChatMinHeight",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"cinematicTheaterMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"transparentTheaterMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"cinematicFullscreen",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"useLargerMaxPlayerValue",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"cinematicFullscreenV2",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"isDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],dN.prototype,"theaterLargerPlayer",void 0);_.C([_.S(),_.k("design:type",Object)],dN.prototype,"defaultCollapsePlaylist",void 0);_.C([_.S(),_.k("design:type",Object)],dN.prototype,"enableCanvasLayout",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("playerData","browseData","enableCanvasLayout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],dN.prototype,"showBrowseResponse",null);_.C([_.S({reflectToAttribute:!0}),_.X("playerData","enableCanvasLayout"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],dN.prototype,"showWatchResponse",null);_.C([_.S({selector:_.pY}),_.k("design:type",Object)],dN.prototype,"theaterValue",void 0);
_.C([_.S({selector:_.FW}),_.k("design:type",Object)],dN.prototype,"fullscreenValue",void 0);_.C([_.S({selector:_.Ce}),_.k("design:type",Object)],dN.prototype,"scrollTopValue",void 0);_.C([_.S({selector:_.BK}),_.k("design:type",Object)],dN.prototype,"miniplayerIsActiveValue",void 0);_.C([_.nG("#ytd-plj-player"),_.k("design:type",HTMLElement)],dN.prototype,"ytdPlayer",void 0);_.C([_.nG("#playlist"),_.k("design:type",HTMLElement)],dN.prototype,"JSC$23124_ytdPlaylistPanelRenderer",void 0);
_.C([_.Uy("ytd-comments"),_.k("design:type",HTMLElement)],dN.prototype,"ytdComments",void 0);_.C([_.nG("#primary"),_.k("design:type",HTMLElement)],dN.prototype,"primary",void 0);_.C([_.nG("#secondary"),_.k("design:type",HTMLElement)],dN.prototype,"secondary",void 0);_.C([_.nG("#player-container"),_.k("design:type",HTMLElement)],dN.prototype,"playerContainer",void 0);_.C([_.nG("#cinematics"),_.k("design:type",HTMLElement)],dN.prototype,"JSC$23124_cinematics",void 0);
_.C([_.vZ("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dN.prototype,"updateTheaterValue",null);_.C([_.vZ("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dN.prototype,"updateFullscreenValue",null);_.C([_.vZ("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dN.prototype,"updateScrollTopValue",null);
_.C([_.vZ("miniplayerIsActiveValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dN.prototype,"updateMiniplayerIsActiveValue",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],dN.prototype,"cinematicLightTheme",null);_.C([_.S({reflectToAttribute:!0}),_.X("learningJourneyEngagementPanels"),_.k("design:type",Object),_.k("design:paramtypes",[])],dN.prototype,"hasLearningJourneyPanels",null);
_.C([_.X("learningJourneyEngagementPanels"),_.k("design:type",Object),_.k("design:paramtypes",[])],dN.prototype,"backButtonData",null);_.C([_.F({is:"ytd-watch-learning-journey"})],dN);_.UV.registerService(_.qsP,dN);
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("Tm0L3c");
var bnD;var fFL;var pGE=function(){return _.K.apply(this,arguments)||this};
_.H(pGE,_.K);_.C([_.F({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],pGE);
_.B(pGE,"ytd-ghost-comments-renderer",function(){if(fFL===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);fFL=R}R=fFL;return R},{mode:1});var F3e;var BMx=function(){return _.K.apply(this,arguments)||this};
_.H(BMx,_.K);_.C([_.F({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],BMx);
_.B(BMx,"ytd-ghost-watch-metadata-renderer",function(){if(F3e===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);F3e=R}R=F3e;return R},{mode:1});var L8=function(){var R=_.K.apply(this,arguments)||this;R.ghostGridRenderer={rows:6};R.roundedInfoPanel=!0;R.hideOfferModules=!0;R.smallerChatMinHeight=_.v("live_chat_smaller_min_height");R.cinematicTheaterMode=_.v("web_cinematic_theater_mode");R.transparentTheaterMode=_.v("web_transparent_theater_mode");R.darkerPanels=_.v("web_watch_darker_panels");R.cinematicFullscreen=_.v("web_cinematic_fullscreen");R.cinematicFullscreenV2=_.v("web_cinematic_fullscreen_v2");R.isDarkTheme=document.documentElement.hasAttribute("dark");
return R};
_.H(L8,_.K);_.l=L8.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.l.ready=function(){var R=this,A=function(){R.onColumnScroll()};
this.primary.addEventListener("scroll",A);this.secondary.addEventListener("scroll",A)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(R){this.ytdWatchBehavior.isTwoColumns_=R.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(R){this.ytdWatchBehavior.flexySmallWindow_=R.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(R){this.ytdWatchBehavior.flexyLargeWindow_=R.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(R){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=R.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(R){this.ytdWatchBehavior.watchNextCanShowMore=R.detail.value};
_.l.updateShownItemsFromBinding=function(R){_.v("swatcheroo_direct_use_rich_grid")||(R.detail.path?this.set(R.detail.path,R.detail.value):this.ytdWatchBehavior.watchNextShownItems=R.detail.value)};
_.l.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23112_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23112_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Yh.Object.defineProperties(L8.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.pageVisualEffects)return!1;for(var A=0;A<this.data.pageVisualEffects.length;A++)if(R=_.n(this.data.pageVisualEffects[A],_.kK))return A=void 0,(A=R.config)==null?void 0:A.enableInLightTheme;return!1}}});
L8.prototype.updateMiniplayerIsActiveValue=L8.prototype.updateMiniplayerIsActiveValue;L8.prototype.updateScrollTopValue=L8.prototype.updateScrollTopValue;L8.prototype.updateFullscreenValue=L8.prototype.updateFullscreenValue;L8.prototype.updateTheaterValue=L8.prototype.updateTheaterValue;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],L8.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],L8.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.W3x.YtdWatchBehavior),_.k("design:type",Object)],L8.prototype,"ytdWatchBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],L8.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],L8.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],L8.prototype,"ghostGridRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],L8.prototype,"playerData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"roundedInfoPanel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"hideOfferModules",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"smallerChatMinHeight",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"cinematicTheaterMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"transparentTheaterMode",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"darkerPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"cinematicFullscreen",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"cinematicFullscreenV2",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],L8.prototype,"isDarkTheme",void 0);_.C([_.S({selector:_.pY}),_.k("design:type",Object)],L8.prototype,"theaterValue",void 0);
_.C([_.S({selector:_.FW}),_.k("design:type",Object)],L8.prototype,"fullscreenValue",void 0);_.C([_.S({selector:_.Ce}),_.k("design:type",Object)],L8.prototype,"scrollTopValue",void 0);_.C([_.S({selector:_.BK}),_.k("design:type",Object)],L8.prototype,"miniplayerIsActiveValue",void 0);_.C([_.nG("#ytd-player"),_.k("design:type",HTMLElement)],L8.prototype,"ytdPlayer",void 0);_.C([_.nG("#playlist"),_.k("design:type",HTMLElement)],L8.prototype,"JSC$23112_ytdPlaylistPanelRenderer",void 0);
_.C([_.nG("#ytd-comments"),_.k("design:type",HTMLElement)],L8.prototype,"ytdComments",void 0);_.C([_.nG("#primary"),_.k("design:type",HTMLElement)],L8.prototype,"primary",void 0);_.C([_.nG("#secondary"),_.k("design:type",HTMLElement)],L8.prototype,"secondary",void 0);_.C([_.nG("#player-container"),_.k("design:type",HTMLElement)],L8.prototype,"playerContainer",void 0);_.C([_.nG("#cinematics"),_.k("design:type",HTMLElement)],L8.prototype,"JSC$23112_cinematics",void 0);
_.C([_.vZ("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L8.prototype,"updateTheaterValue",null);_.C([_.vZ("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L8.prototype,"updateFullscreenValue",null);_.C([_.vZ("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L8.prototype,"updateScrollTopValue",null);
_.C([_.vZ("miniplayerIsActiveValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],L8.prototype,"updateMiniplayerIsActiveValue",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],L8.prototype,"cinematicLightTheme",null);
_.B(L8,"ytd-watch-grid",function(){if(bnD===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);bnD=R}R=bnD;return R},{mode:2});_.UV.registerService(_.eDS,L8);
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("CF909");
var jBb;var q5=function(){var R=_.K.apply(this,arguments)||this;R.flexy=!0;R.roundedInfoPanel=!0;R.viewTransitionEnabled=_.v("enable_player_resize_transition");R.smallerChatMinHeight=_.v("live_chat_smaller_min_height");R.cinematicTheaterMode=_.v("web_cinematic_theater_mode");R.transparentTheaterMode=_.v("web_transparent_theater_mode");R.cinematicFullscreen=_.v("web_cinematic_fullscreen");R.useLargerMaxPlayerValue=_.v("kevlar_flexy_use_larger_player_value");R.isDarkTheme=document.documentElement.hasAttribute("dark");
R.defaultCollapsePlaylist=_.v("web_watch_default_collapse_playlist");R.retroModeReduxValue=!1;return R};
_.H(q5,_.K);_.l=q5.prototype;_.l.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.l.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.l.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.l.updateRetroModeReduxValue=function(){_.v("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.l.ready=function(){var R=this,A=function(){R.onColumnScroll()};
this.primary.addEventListener("scroll",A);this.secondary.addEventListener("scroll",A)};
_.l.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.l.updateIsTwoColumnsFromBinding=function(R){_.v("web_watch_update_narrow_width_killswitch")||_.Yp().dispatch(_.jHb(!R.detail.value));this.ytdWatchBehavior.isTwoColumns_=R.detail.value};
_.l.updateFlexySmallWindowFromBinding=function(R){this.ytdWatchBehavior.flexySmallWindow_=R.detail.value};
_.l.updateFlexyLargeWindowFromBinding=function(R){this.ytdWatchBehavior.flexyLargeWindow_=R.detail.value};
_.l.updateWatchWhileWindowSizeSufficientFromBinding=function(R){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=R.detail.value};
_.l.updateWatchNextCanShowMoreFromBinding=function(R){this.ytdWatchBehavior.watchNextCanShowMore=R.detail.value};
_.l.updateShownItemsFromBinding=function(R){R.detail.path?this.set(R.detail.path,R.detail.value):this.ytdWatchBehavior.watchNextShownItems=R.detail.value};
_.l.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23107_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23107_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments;case "BELOW_THE_PLAYER":return this.below;case "SECONDARY":return this.secondary}};
_.Yh.Object.defineProperties(q5.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.pageVisualEffects)return!1;for(var A=0;A<this.data.pageVisualEffects.length;A++)if(R=_.n(this.data.pageVisualEffects[A],_.kK))return A=void 0,(A=R.config)==null?void 0:A.enableInLightTheme;return!1}}});
_.Yh.Object.defineProperties(q5,{template:{configurable:!0,enumerable:!0,get:function(){if(jBb===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);jBb=R}R=jBb;return R}}});
q5.prototype.updateRetroModeReduxValue=q5.prototype.updateRetroModeReduxValue;q5.prototype.updateScrollTopValue=q5.prototype.updateScrollTopValue;q5.prototype.updateFullscreenValue=q5.prototype.updateFullscreenValue;q5.prototype.updateTheaterValue=q5.prototype.updateTheaterValue;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],q5.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.W3x.YtdWatchBehavior),_.k("design:type",Object)],q5.prototype,"ytdWatchBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],q5.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],q5.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],q5.prototype,"playerData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"flexy",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"roundedInfoPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"viewTransitionEnabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"smallerChatMinHeight",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"cinematicTheaterMode",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"transparentTheaterMode",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"cinematicFullscreen",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"useLargerMaxPlayerValue",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],q5.prototype,"isDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],q5.prototype,"defaultCollapsePlaylist",void 0);
_.C([_.S({selector:_.pY}),_.k("design:type",Object)],q5.prototype,"theaterValue",void 0);_.C([_.S({selector:_.FW}),_.k("design:type",Object)],q5.prototype,"fullscreenValue",void 0);_.C([_.S({selector:_.Ce}),_.k("design:type",Object)],q5.prototype,"scrollTopValue",void 0);_.C([_.S({selector:_.BK}),_.k("design:type",Object)],q5.prototype,"miniplayerIsActive",void 0);_.C([_.S({selector:function(R){return R.watch.isWatchRetroMode}}),
_.k("design:type",Object)],q5.prototype,"retroModeReduxValue",void 0);_.C([_.Uy("ytd-player"),_.k("design:type",HTMLElement)],q5.prototype,"ytdPlayer",void 0);_.C([_.nG("#playlist"),_.k("design:type",HTMLElement)],q5.prototype,"JSC$23107_ytdPlaylistPanelRenderer",void 0);_.C([_.Uy("ytd-comments"),_.k("design:type",HTMLElement)],q5.prototype,"ytdComments",void 0);_.C([_.nG("#primary"),_.k("design:type",HTMLElement)],q5.prototype,"primary",void 0);
_.C([_.nG("#secondary"),_.k("design:type",HTMLElement)],q5.prototype,"secondary",void 0);_.C([_.nG("#player-container"),_.k("design:type",HTMLElement)],q5.prototype,"playerContainer",void 0);_.C([_.nG("#below"),_.k("design:type",HTMLElement)],q5.prototype,"below",void 0);_.C([_.nG("#cinematics"),_.k("design:type",HTMLElement)],q5.prototype,"JSC$23107_cinematics",void 0);
_.C([_.vZ("theaterValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q5.prototype,"updateTheaterValue",null);_.C([_.vZ("fullscreenValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q5.prototype,"updateFullscreenValue",null);_.C([_.vZ("scrollTopValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q5.prototype,"updateScrollTopValue",null);
_.C([_.vZ("retroModeReduxValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q5.prototype,"updateRetroModeReduxValue",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],q5.prototype,"cinematicLightTheme",null);_.C([_.F({is:"ytd-watch-flexy"})],q5);_.UV.registerService(_.uuS,q5);
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("nmfa2d");
var oSf;var hp=function(){var R=_.K.apply(this,arguments)||this;R.hidden=!1;R.errorScreen=null;R.playlistData={};return R};
_.H(hp,_.K);_.l=hp.prototype;_.l.getPlayer=function(){return this.ytdPlayer};
_.l.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:_.xR(["aa","eocs"])}}};
_.l.onActiveChanged=function(){_.Yp().dispatch(_.nSZ(this.ytPageBehavior.active))};
_.l.playerDataChanged=function(){var R;(R=this.watchController)==null||R.setPlayerResponse(this.playerData)};
_.l.dataChanged=function(){var R;(R=this.watchController)==null||R.setWatchNextResponse(this.data)};
_.l.sizeChanged=function(){var R,A;(A=(R=this.metadata).resize)==null||A.call(R)};
_.l.attached=function(){this.watchController=new _.ah(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.l.detached=function(){_.lt(this.watchController);this.watchController=void 0};
_.l.getPlayerContainer=function(){return this.playerContainer};
_.l.getElement=function(R){switch(R){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.l.provideRenderingData=function(R,A){switch(R){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=A;break;case "ERROR_SCREEN":this.errorScreen=A!=null?A:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=A;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=A;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=A;break;case "RICH_METADATA":this.richMetadataRowContainer=A;break;case "CLARIFICATION":this.clarificationData=A;break;case "PLAYLIST":this.playlistData=
A!=null?A:{};break;case "MERCH_SHELF":this.merchShelf=A;break;case "TICKET_SHELF":this.ticketShelf=A;break;case "LIMITED_STATE":this.limitedState=A;break;case "DONATION_SHELF":this.donationShelf=A;break;case "ALERTS":this.alerts=A}};
_.Yh.Object.defineProperties(hp.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return!this.hidden&&!!((R=this.data)==null?0:(A=R.contents)==null?0:(Y=A.twoColumnWatchNextResults)==null?0:Y.conversationBar)}}});
hp.prototype.sizeChanged=hp.prototype.sizeChanged;hp.prototype.dataChanged=hp.prototype.dataChanged;hp.prototype.playerDataChanged=hp.prototype.playerDataChanged;hp.prototype.onActiveChanged=hp.prototype.onActiveChanged;_.C([_.U(_.wd.YtPageBehavior),_.k("design:type",Object)],hp.prototype,"ytPageBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],hp.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hp.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],hp.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"playerData",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],hp.prototype,"hidden",void 0);_.C([_.nG("#ytd-player"),_.k("design:type",HTMLElement)],hp.prototype,"ytdPlayer",void 0);_.C([_.nG("#player-container"),_.k("design:type",HTMLElement)],hp.prototype,"playerContainer",void 0);_.C([_.nG("#metadata"),_.k("design:type",Object)],hp.prototype,"metadata",void 0);_.C([_.nG("#playlist"),_.k("design:type",HTMLElement)],hp.prototype,"playlistPanel",void 0);
_.C([_.S({selector:_.bDR,reflectToAttribute:!0}),_.k("design:type",Object)],hp.prototype,"fixie",void 0);_.C([_.S({selector:_.jAo,reflectToAttribute:!0}),_.k("design:type",Object)],hp.prototype,"singleColumn",void 0);_.C([_.S({selector:function(R){return _.pY(R)&&!_.FW(R)},
reflectToAttribute:!0}),_.k("design:type",Object)],hp.prototype,"theater",void 0);_.C([_.S({selector:_.FW,reflectToAttribute:!0}),_.k("design:type",Object)],hp.prototype,"fullscreen",void 0);_.C([_.S({selector:_.vSq}),_.k("design:type",Object)],hp.prototype,"windowSize",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"singleColumnContents",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"errorScreen",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"playlistData",void 0);
_.C([_.S(),_.k("design:type",Object)],hp.prototype,"videoPrimaryInfoRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"videoSecondaryInfoRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"richMetadataRowContainer",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"clarificationData",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"commentsEntryPointHeaderRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"ticketShelf",void 0);
_.C([_.S(),_.k("design:type",Object)],hp.prototype,"merchShelf",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"donationShelf",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"limitedState",void 0);_.C([_.S(),_.k("design:type",Object)],hp.prototype,"alerts",void 0);_.C([_.X("playlistData"),_.k("design:type",Object),_.k("design:paramtypes",[])],hp.prototype,"hasPlaylistData",null);
_.C([_.X("data","hidden"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],hp.prototype,"hasChat",null);_.C([_.vZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hp.prototype,"onActiveChanged",null);_.C([_.vZ("playerData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hp.prototype,"playerDataChanged",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hp.prototype,"dataChanged",null);_.C([_.vZ("windowSize","singleColumn"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hp.prototype,"sizeChanged",null);
_.B(hp,"ytd-watch-fixie",function(){if(oSf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);oSf=R}R=oSf;return R},{mode:1});_.UV.registerService(_.wgk,hp);
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("xwEKAe");
var rk$=function(R){return _.dM(R)?R.getAttribute("jsname")==="coFSxe":!1},Db$=function(R,A){A.id||(A.id="ow"+_.tk(A));
R.setAttribute("jsowner",A.id);R.__owner=A;var Y=_.GE(A,rk$);Y&&(_.mjD.has(Y)||_.mjD.set(Y,[]),_.mjD.get(Y).push(R));(Y=_.y$7.get(A))||_.y$7.set(A,Y=[]);Y.includes(R)||Y.push(R);A.setAttribute("__IS_OWNER",!0)},Ubo=function(){var R=_.UzJ(1);
R=_.z8(R,_.W33);if(!(_.DzI(R)||R[_.LrI]&&!R.__hasBeenSet))return R.value},$bx=function(R){var A=_.Hk();
if(A.getFlag(202))A=A.getFlag(201);else{var Y;A=(R==null?void 0:(Y=R.config)==null?void 0:Y.settingOnByDefault)!==void 0?R.config.settingOnByDefault:!_.v("web_shorts_cinematics_disabled_by_default")}return A},X3o=function(R){var A=_.Hk();
_.rH(0,201,R);_.rH(0,202,!0);A.save()},S6c=function(R){return(R=_.Dk3(R))?_.$kS(R):0},IIe=function(R){return R.shorts.isSmallScreenSqueezeback},Klb=function(R){return R.shorts.isPlaybackStarted},bu$=function(R){var A=_.UzJ(2),Y=new Set;
_.bm(function(){return void Y.forEach(function(P){return void P()})});
return function(P){var E=_.E9(A);try{var z=Wlq(jkf(R),P);Y.add(z);return function(){z();Y.delete(z)}}finally{_.E9(E)}}},fIq=function(R){var A=R.children;
var Y=R.root;_.WD(function(){var P=bu$(Y)(A);_.bm(P)});
return document.createTextNode("")},Wlq=function(R,A){var Y=p3b(R);
(R=Ubo())&&Db$(Y,R);A=_.x(_.nsS(A,!0));R=A.next().value;var P=A.next().value;Y.append.apply(Y,_.py(R));return function(){P();Y.remove()}},jkf=function(R){if(typeof R==="string")return R=document.querySelector(R),_.J_n(R),R;
if(_.cD(R)&&R.nodeType===Node.ELEMENT_NODE)return R;if(!R.__value&&!R.__optional){var A=_.RY6.USE_ELEMENT_NOT_ASSIGNED(R.__expectedTagName);R.__hasErrored=!0;throw A;}return R.value},p3b=function(R){var A=document.createElementNS(R.namespaceURI,R.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return R.appendChild(A)},Flb=function(R,A,Y,P){R=A-R;
Y=P-Y;return Math.sqrt(R*R+Y*Y)},B8L=function(R,A){R&&_.is().resolve(_.ls).resolveCommand(R,{forceClickLogging:!0,
form:{element:A}})},aIx=function(R,A,Y,P){R=A-R;
Y=P-Y;return Math.sqrt(R*R+Y*Y)},CJb=function(R,A){R&&_.is().resolve(_.ls).resolveCommand(R,{forceClickLogging:!0,
form:{element:A}})},hkD=function(){return _.is().resolve(_.Bd).dismissedIndices},oqE=function(R,A){var Y,P,E,z,c,M,N,y,m;
return _.O(function(T){if(T.nextAddress==1){Y=_.is().resolve(_.KSj);z=(P=Y)==null?void 0:(E=P.reelWatchEndpointMap)==null?void 0:E.reelWatchSequence;M=(c=R.innertubeTransportService)!=null?c:_.is().resolve(_.Co);if(!z)return T.jumpTo(2);N=z();return(y=N.JSC$13099_getRequest(A,{}))?T.yield(_.Ad(M,y.innerTubeRequest,y.input,A.clickTrackingParams,y.config),4):T.jumpTo(2)}return T.nextAddress!=2?(m=T.yieldResult,T.return(m)):T.return(void 0)})},kS$=function(R){return _.cK({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:R}})},GSg=function(R){return _.cK({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:R}})},v_=function(R){return _.cK({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:R}})};var gT=function(R,A){if(R instanceof gT)this.array_=R.array_;else{var Y;if(Y=_.ok(R))a:{for(var P=Y=0;P<R.length;P++){if(!_.ok(R[P])||Y>0&&R[P].length!=Y){Y=!1;break a}for(var E=0;E<R[P].length;E++)if(typeof R[P][E]!=="number"){Y=!1;break a}Y==0&&(Y=R[P].length)}Y=Y!=0}if(Y)this.array_=_.Cu(R);else if(R instanceof _.Dg)this.array_=Zuq(R.height,R.width);else if(typeof R==="number"&&typeof A==="number"&&R>0&&A>0)this.array_=Zuq(R,A);else throw Error("Ao");}this.size_=new _.Dg(this.array_[0].length,
this.array_.length)},tPc=function(R,A,Y){for(var P=0;P<R.getSize().height;P++)for(var E=0;E<R.getSize().width;E++)A.call(Y,R.array_[P][E],P,E,R)},w3L=function(R,A){var Y=new gT(R.getSize());
tPc(R,function(P,E,z){Y.array_[E][z]=A.call(void 0,P,E,z,R)});
return Y},Zuq=function(R,A){for(var Y=[],P=0;P<R;P++){Y[P]=[];
for(var E=0;E<A;E++)Y[P][E]=0}return Y};
gT.prototype.add=function(R){if(!_.qjY(this.size_,R.getSize()))throw Error("Bo");return w3L(this,function(A,Y,P){return A+R.array_[Y][P]})};
gT.prototype.equals=function(R,A){if(this.size_.width!=R.size_.width||this.size_.height!=R.size_.height)return!1;A=A||0;for(var Y=0;Y<this.size_.height;Y++)for(var P=0;P<this.size_.width;P++)if(!_.eNf(this.array_[Y][P],R.array_[Y][P],A))return!1;return!0};
gT.prototype.getSize=function(){return this.size_};
var ne=function(R,A,Y){return A>=0&&A<R.size_.height&&Y>=0&&Y<R.size_.width?R.array_[A][Y]:null};
gT.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var H_=function(R,A,Y,P){if(!(A>=0&&A<R.size_.height&&Y>=0&&Y<R.size_.width))throw Error("Co`"+A+"`"+Y+"`"+R.size_.height+"`"+R.size_.width);R.array_[A][Y]=P};
gT.prototype.multiply=function(R){if(R instanceof gT){if(this.size_.width!=R.getSize().height)throw Error("Do");return uVZ(this,R)}if(typeof R==="number")return ekq(this,R);throw Error("Eo");};
var uVZ=function(R,A){var Y=new gT(R.size_.height,A.getSize().width);tPc(Y,function(P,E,z){for(var c=P=0;c<this.size_.width;c++)P+=ne(this,E,c)*ne(A,c,z);H_(Y,E,z,P)},R);
return Y},ekq=function(R,A){return w3L(R,function(Y){return Y*A})};var q6b=new _.lU("inlineSurveyRenderer");var LlD=new _.lU("interstitialViewModel");var dbo=new _.lU("reelNavigateCommand");var RqD=new _.lU("reelNonVideoContentDismissalCommand");var AEL=new _.lU("showReelsCommentsOverlayCommand");var YAE=new _.lU("shortsSuggestedActionViewModel");var P8g=new _.lU("videoInteractionPopUpRenderer");var EZ$;var zqg;var iDo;var rT=function(){var R=_.K.apply(this,arguments)||this;R.ctaVisualElement=null;R.currentCsn=null;return R};
_.H(rT,_.K);_.l=rT.prototype;_.l.onDataChanged=function(){this.maybeLogShows()};
_.l.computeButtonShape=function(){var R=this;if(this.data)return{buttonText:_.R4(this.data.text),state:"active",onTap:function(){R.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.l.maybeCreateCtaVe=function(){var R;if((R=this.data)!=null&&R.badgeInteractionLogging){var A;if(R=(A=this.data.badgeInteractionLogging)==null?void 0:A.trackingParams)this.ctaVisualElement=_.S5(R)}};
_.l.maybeLogClicks=function(){this.currentCsn=_.F9(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.qT(this.currentCsn,this.ctaVisualElement)};
_.l.maybeLogShows=function(){this.currentCsn=_.F9(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.uE(this.currentCsn,[this.ctaVisualElement])};
_.l.onTap=function(){var R;if((R=this.data)!=null&&R.onClickCommand){var A;this.ytComponentBehavior.resolveCommand((A=this.data)==null?void 0:A.onClickCommand);this.maybeLogClicks()}};
rT.prototype.onDataChanged=rT.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],rT.prototype,"ytComponentBehavior",void 0);_.C([_.S({}),_.k("design:type",Object)],rT.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rT.prototype,"onDataChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],rT);
_.B(rT,"ytd-shopping-overlay-badge-renderer",function(){if(iDo!==void 0)return iDo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return iDo=R},{mode:1});_.Ow(_.rbg,"reel-sound-metadata-view-model",{props:{data:_.xL,overlayDensity:_.xL}});_.Ow(_.rln,"player-disclosure-view-model",{props:{data:_.VY}});_.Ow(_.EVN,"pivot-button-view-model",{props:{data:_.xL,className:_.xL}});_.Ow(_.zaE,"reel-action-bar-view-model",{props:{data:_.VY,buttonShapeOverrideables:_.VY}});_.Ow(_.E5(function(R){function A(){var Jk,Nb,Qk,H3,nu=(Nb=_.n((Jk=L())==null?void 0:Jk.command,_.WM))==null?void 0:(Qk=Nb.item)==null?void 0:(H3=Qk.notificationTextRenderer)==null?void 0:H3.successResponseText;if(nu)_.OC(P.value,"yt-open-popup-action",[_.Ed(nu),P.value]);else if(Z())B8L(Z(),r.value);else{var hk;B8L((hk=L())==null?void 0:hk.command,r.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var Y=R.data;var P=_.LK("yt-player-overlay-video-interactions");R=_.x(_.yy("0px",void 0,"O3ow6c"));var E=R.next().value,z=R.next().value;R=_.x(_.yy("0px",void 0,"V0TSYd"));var c=R.next().value,M=R.next().value;R=_.x(_.yy(0,void 0,"ipRdDf"));var N=R.next().value,y=R.next().value;R=_.x(_.yy(0,void 0,"ztYEKb"));var m=R.next().value,T=R.next().value,Q=function(){var Jk;if(((Jk=_.J4())==null?void 0:Jk.getPlayerState())!==-1){P.value.style.display="inherit";var Nb;(Nb=_.J4())==null||Nb.removeEventListener("onStateChange",
Q)}g()},g=function(){var Jk=document.querySelector("video");
if(Jk){y(Jk.getBoundingClientRect().width);T(Jk.getBoundingClientRect().height);var Nb;z((Jk==null?void 0:(Nb=Jk.style)==null?void 0:Nb.left)||"0px");var Qk;M((Jk==null?void 0:(Qk=Jk.style)==null?void 0:Qk.top)||"0px")}};
_.jq(function(){var Jk,Nb,Qk;if(((Jk=_.J4())==null?void 0:Jk.getPlayerState())===-1&&Math.round(((Qk=(Nb=_.J4())==null?void 0:Nb.getVideoAspectRatio())!=null?Qk:0)*100)!==Math.round(N()/m()*100)){P.value.style.display="none";var H3,nu;T(N()/((nu=(H3=_.J4())==null?void 0:H3.getVideoAspectRatio())!=null?nu:1))}},"ikzYW");
_.WD(function(){var Jk;(Jk=_.J4())==null||Jk.addEventListener("onStateChange",Q);window.addEventListener("resize",g);g();var Nb,Qk,H3;if((H3=(Nb=Y())==null?void 0:(Qk=Nb.regions)==null?void 0:Qk[0])==null||!H3.transformationMatrix)throw Error("Io");var nu;if((nu=Y())==null?0:nu.trackingParams){var hk;_.rU().graftServerVe((hk=Y().trackingParams)!=null?hk:"")}_.bm(function(){var FV;(FV=_.J4())==null||FV.removeEventListener("onStateChange",Q);window.removeEventListener("resize",g)})});
var r=_.LK("svg"),I=_.x(_.yy(!1,void 0,"Thzfnf"));R=I.next().value;var b=I.next().value,p=_.x(_.yy(!1,void 0,"nsniPd"));I=p.next().value;var h=p.next().value,L=function(){var Jk;return _.n((Jk=Y())==null?void 0:Jk.popUp,P8g)},Z=function(){var Jk;
return(Jk=Y())==null?void 0:Jk.command},w=function(){return _.n(Z(),_.r0)!==void 0};
p=_.Qi(function(){A();return!1});
var t={},d={};return _.V("yt-player-overlay-video-interactions",{el:P},_.V("svg",{"on:mouseover":_.Qi(function(){w()&&b(!0);h(!0);return!1}),
"on:mouseout":_.Qi(function(){b(!1);h(!1);return!1}),
"on:keydown":_.Qi(function(Jk){Jk.key==="Enter"&&A();return!1}),
"on:focus":_.Qi(function(){w()&&b(!0);return!1}),
"on:blur":_.Qi(function(){w()&&b(!1);return!1}),
el:r,tabindex:0,"aria-label":function(){var Jk;return(Jk=Y())==null?void 0:Jk.a11yString},
id:"player-overlay-video-interaction-svg",class:_.To("ytPlayerOverlayVideoInteractionsInteractionsSvg",(t.ytPlayerOverlayVideoInteractionsInteractionsSvgHover=R,t),(d.ytPlayerOverlayVideoInteractionsInteractionsSvgHideOutline=I,d)),role:"button",style:function(){var Jk,Nb,Qk,H3=(Qk=(Jk=Y())==null?void 0:(Nb=Jk.regions)==null?void 0:Nb[0].transformationMatrix)!=null?Qk:[];Jk=N();Nb=m();Qk=[];for(var nu=0,hk=-1;nu<H3.length;nu++)nu%3===0&&(hk++,Qk[hk]=[]),Qk[hk].push(H3[nu]);H3=new gT(Qk);Qk=new gT([[0,
1,1,0],[0,0,1,1],[1,1,1,1]]);Qk=H3.multiply(Qk);H3=new gT([[0,0],[0,0],[0,0],[0,0]]);for(nu=0;nu<Qk.getSize().width;nu++){hk=ne(Qk,0,nu);var FV=ne(Qk,1,nu);if(hk===null||FV===null)throw Error("Ho`"+(nu+1).toString());H_(H3,nu,0,hk*Jk);H_(H3,nu,1,FV*Nb)}Jk=ne(H3,0,0);nu=ne(H3,1,0);Nb=ne(H3,0,1);hk=ne(H3,1,1);if(Jk===null||nu===null||Nb===null||hk===null)throw Error("Fo");Qk=Flb(Jk,nu,Nb,hk);FV=ne(H3,3,0);H3=ne(H3,3,1);if(FV===null||H3===null)throw Error("Go");H3=Flb(Jk,FV,Nb,H3);hk=(Number((hk*-1).toFixed(2))-
Number((Nb*-1).toFixed(2)))/(Number(nu.toFixed(2))-Number(Jk.toFixed(2)));FV=Math.atan(hk)*180/Math.PI;nu=hk===Number.POSITIVE_INFINITY?-90:hk===Number.NEGATIVE_INFINITY?90:Object.is(hk,-0)?180:hk===0?0:hk>0?FV*-1:Jk<nu?FV*-1:Math.abs(FV)+180;return"left:calc("+Jk+"px + "+E()+"); top:calc("+(Nb+"px + "+c()+"); width:")+(Qk+"px; height:")+(H3+"px; transform:rotate(")+(nu+"deg);")},
"on:click":p}))},"nk"),"yt-player-overlay-video-interactions",{props:{data:_.VY}});_.Ow(_.SUH,"yt-reel-metapanel-view-model",{props:{data:_.VY,overlayDensity:_.VY}});var lze=_.E5(function(R){var A=R.children;var Y=R.region;R=_.x(_.yy(void 0,void 0,"MsSyte"));var P=R.next().value,E=R.next().value;R=_.x(_.yy("0px",void 0,"U9Yihd"));var z=R.next().value,c=R.next().value;R=_.x(_.yy("0px",void 0,"UO1H6d"));var M=R.next().value,N=R.next().value;R=_.x(_.yy(0,void 0,"sMVTKb"));var y=R.next().value,m=R.next().value;R=_.x(_.yy(0,void 0,"kZZV8b"));var T=R.next().value,Q=R.next().value,g=function(){var L=P();if(L){var Z;if(((Z=_.J4())==null?void 0:Z.getPlayerState())!==-1){L.style.display=
"inherit";var w;(w=_.J4())==null||w.removeEventListener("onStateChange",g)}I()}},r=function(){var L=document.querySelectorAll("video");
return Array.from(L).find(function(Z){var w;return Z==null?void 0:(w=Z.style)==null?void 0:w.width})},I=function(){var L=r();
if(L){m(L.getBoundingClientRect().width);Q(L.getBoundingClientRect().height);var Z;c((L==null?void 0:(Z=L.style)==null?void 0:Z.left)||"0px");var w;N((L==null?void 0:(w=L.style)==null?void 0:w.top)||"0px")}};
_.jq(function(){var L=P();if(L){var Z,w,t;if(((Z=_.J4())==null?void 0:Z.getPlayerState())===-1&&Math.round(((t=(w=_.J4())==null?void 0:w.getVideoAspectRatio())!=null?t:0)*100)!==Math.round(y()/T()*100)){L.style.display="none";var d,Jk;Q(y()/((Jk=(d=_.J4())==null?void 0:d.getVideoAspectRatio())!=null?Jk:1))}}},"jJLfwe");
var b=function(){I()},p;
_.WD(function(){I();var L;if(!(Y==null?0:(L=Y())==null?0:L.transformationMatrix))throw Error("Io");var Z;(Z=_.J4())==null||Z.addEventListener("onStateChange",g);if(window.ResizeObserver){if(L=r())p=new ResizeObserver(b),p.observe(L)}else window.addEventListener("resize",I);_.bm(function(){var w;(w=_.J4())==null||w.removeEventListener("onStateChange",g);p?p.disconnect():window.removeEventListener("resize",I)})});
var h=function(){var L,Z,w=(Z=Y==null?void 0:(L=Y())==null?void 0:L.transformationMatrix)!=null?Z:[];L=y();Z=T();for(var t=[],d=0,Jk=-1;d<w.length;d++)d%3===0&&(Jk++,t[Jk]=[]),t[Jk].push(w[d]);w=new gT(t);t=new gT([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);t=w.multiply(t);w=new gT([[0,0],[0,0],[0,0],[0,0]]);for(d=0;d<t.getSize().width;d++){Jk=ne(t,0,d);var Nb=ne(t,1,d);if(Jk===null||Nb===null)throw Error("Ho`"+(d+1).toString());H_(w,d,0,Jk*L);H_(w,d,1,Nb*Z)}L=ne(w,0,0);d=ne(w,1,0);Z=ne(w,0,1);Jk=ne(w,1,1);
if(L===null||d===null||Z===null||Jk===null)throw Error("Fo");t=aIx(L,d,Z,Jk);Nb=ne(w,3,0);w=ne(w,3,1);if(Nb===null||w===null)throw Error("Go");w=aIx(L,Nb,Z,w);Jk=(Number((Jk*-1).toFixed(2))-Number((Z*-1).toFixed(2)))/(Number(d.toFixed(2))-Number(L.toFixed(2)));Nb=Math.atan(Jk)*180/Math.PI;d=Jk===Number.POSITIVE_INFINITY?-90:Jk===Number.NEGATIVE_INFINITY?90:Object.is(Jk,-0)?180:Jk===0?0:Jk>0?Nb*-1:L<d?Nb*-1:Math.abs(Nb)+180;return"left:calc("+L+"px + "+z()+"); top:calc("+(Z+"px + "+M()+"); width:")+
(t+"px; height:")+(w+"px; transform:rotate(")+(d+"deg);")};
return _.V(fIq,{root:"#sticker-layer"},function(){return _.V("yt-overlay-sticker",{el:_.zo(E),style:h,class:"ytOverlayStickerHost"},A)})},"ok");var xG$=_.E5(function(R){function A(){var g,r,I,b,p=(r=_.n((g=N())==null?void 0:g.command,_.WM))==null?void 0:(I=r.item)==null?void 0:(b=I.notificationTextRenderer)==null?void 0:b.successResponseText;if(p)_.OC(P.value,"yt-open-popup-action",[_.Ed(p),P.value]);else if(y())CJb(y(),P.value);else{var h;CJb((h=N())==null?void 0:h.command,P.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var Y=R.data;var P=_.LK("svg"),E=_.x(_.yy(!1,void 0,"i4BL1"));R=E.next().value;var z=E.next().value,c=_.x(_.yy(!1,void 0,"FzRJKd"));E=c.next().value;var M=c.next().value,N=function(){var g;return _.n((g=Y())==null?void 0:g.popUp,P8g)},y=function(){var g;
return(g=Y())==null?void 0:g.command},m=function(){return _.n(y(),_.r0)!==void 0};
c=_.Qi(function(){A();return!1});
var T={},Q={};return _.V("svg",{"on:mouseover":_.Qi(function(){m()&&z(!0);M(!0);return!1}),
"on:mouseout":_.Qi(function(){z(!1);M(!1);return!1}),
"on:keydown":_.Qi(function(g){g.key==="Enter"&&A();return!1}),
"on:focus":_.Qi(function(){m()&&z(!0);return!1}),
"on:blur":_.Qi(function(){m()&&z(!1);return!1}),
el:P,tabindex:0,"aria-label":function(){var g;return(g=Y())==null?void 0:g.a11yString},
id:"player-overlay-video-interaction-svg",class:_.To("ytPlayerOverlayInteractionInteractionsSvg",(T.ytPlayerOverlayInteractionInteractionsSvgHover=R,T),(Q.ytPlayerOverlayInteractionInteractionsSvgHideOutline=E,Q)),role:"button","on:click":c})},"qk");_.Ow(_.E5(function(R){var A=R.data;_.WD(function(){var Y;if((Y=A())==null?0:Y.trackingParams){var P;_.rU().graftServerVe((P=A().trackingParams)!=null?P:"")}});
return _.V("yt-player-overlay-interaction",null,_.V(lze,{region:function(){var Y,P;return(Y=A())==null?void 0:(P=Y.regions)==null?void 0:P[0]}},_.V(xG$,Object.assign({},R))))},"pk"),"yt-player-overlay-interaction",{props:{data:_.VY}});var Db=function(){var R=_.K.apply(this,arguments)||this;R.showScrubber=!1;R.isWatchWhileMode=!1;R.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");R.enableNewStickers=_.v("use_shorts_sticker_overlay_web");R.anchoredPanelActive=!1;R.enableLivingroomLayout=_.v("reels_enable_livingroom_layout");R.enablePlayerMetadataContainer=_.v("reels_web_enable_metadata_container");R.enableSqueezebackPanels=_.v("web_shorts_enable_squeezeback_panels");R.useAspectRatio=_.v("web_use_aspect_ratio");R.isSqueezebackActive=
!1;R.smallScreenSqueezeback=!1;R.isPlayerStarted=!1;R.overlayDensity=0;R.isOverlay=!1;R.isImmersive=!1;R.isImmersiveHorizontal=!1;R.isFullscreen=!1;R.onWindowResized=function(){var A;R.set("isImmersive",((A=window.getComputedStyle(R.hostElement))==null?void 0:A.getPropertyValue("--immersive-mode-on"))==="1");R.set("isImmersiveHorizontal",R.isImmersive&&R.enableLivingroomLayout&&!R.isWatchWhileMode)};
return R};
_.H(Db,_.K);_.l=Db.prototype;_.l.updateIsOverlay=function(R){this.isOverlay=R.detail.value};
_.l.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.v("web_enable_flexible_overlay")||_.v("web_enable_format_first")||_.v("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.l.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.l.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.l.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.l.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.l.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.l.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.l.ready=function(){(_.v("enable_reel_action_bar_view_model")||this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer"))&&(!_.v("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.OK("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.OK("reels_action_justified_content")||"flex-start")};
_.l.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}}};
_.l.setFakeLoadingButtons=function(){_.v("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.vk("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.vk("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.vk("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.vk("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.vk("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()};
_.l.setEmptyOverlayMetadata=function(){_.v("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}))};
_.Yh.Object.defineProperties(Db.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.infoPanel)}}});
Db.prototype.onIsActiveChanged=Db.prototype.onIsActiveChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Db.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Db.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Db.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Db.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],Db.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],Db.prototype,"isActive",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],Db.prototype,"hidden",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],Db.prototype,"useShortsIcon",void 0);_.C([_.S({value:"left"}),_.k("design:type",String)],Db.prototype,"buttonTooltipPosition",void 0);
_.C([_.S({value:_.v("reels_enable_livingroom_layout")?"top":"left"}),_.k("design:type",String)],Db.prototype,"likeButtonTooltipPosition",void 0);_.C([_.S({value:"none"}),_.k("design:type",String)],Db.prototype,"textTransform",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"showScrubber",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"isWatchWhileMode",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.infoPanel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Db.prototype,"hasInfoPanel",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"enableAnchoredPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"enableNewStickers",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"anchoredPanelActive",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"enableLivingroomLayout",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Db.prototype,"enablePlayerMetadataContainer",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"enableSqueezebackPanels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"useAspectRatio",void 0);
_.C([_.S({selector:_.E$k,reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"isSqueezebackActive",void 0);_.C([_.S({selector:IIe,reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"smallScreenSqueezeback",void 0);_.C([_.S({selector:Klb}),_.k("design:type",Object)],Db.prototype,"isPlayerStarted",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"overlayDensity",void 0);_.C([_.S(),_.k("design:type",Object)],Db.prototype,"isOverlay",void 0);
_.C([_.S({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.k("design:type",Boolean)],Db.prototype,"isShortsOverlay",void 0);_.C([_.S(),_.k("design:type",Object)],Db.prototype,"isImmersive",void 0);_.C([_.S(),_.k("design:type",Object)],Db.prototype,"isImmersiveHorizontal",void 0);_.C([_.S({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.k("design:type",Boolean)],Db.prototype,"isShortsImmersive",void 0);
_.C([_.S({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.k("design:type",Object)],Db.prototype,"buttonOverride",void 0);_.C([_.S({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.k("design:type",Object)],Db.prototype,"actionBarButtonOverride",void 0);_.C([_.S({selector:_.zt,reflectToAttribute:!0}),_.k("design:type",Object)],Db.prototype,"isFullscreen",void 0);
_.C([_.vZ("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Db.prototype,"onIsActiveChanged",null);_.C([_.F({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],Db);
_.B(Db,"ytd-reel-player-overlay-renderer",function(){if(zqg!==void 0)return zqg;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[!enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    </template>\n    <template is="dom-if" if="[[enableNewStickers]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-interaction data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-interaction>\n      </template>\n    </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[actionBarButtonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return zqg=R},{mode:1});var cEZ;var Uc=function(){var R=_.K.apply(this,arguments)||this;R.videoDuration=0;R.playedTime=0;R.isActive=!1;R.JSC$22299_playerEvents=new Map;return R};
_.H(Uc,_.K);_.l=Uc.prototype;_.l.created=function(){this.JSC$22299_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22299_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.l.attached=function(){this.getPlayerAndInitializeListeners()};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22299_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.T2(this,this.onPageChanged))};
_.l.getPlayerAndInitializeListeners=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return A=_.EJ(),A?Y.yield(A.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.T2(R,R.onPageChanged)),Y.jumpTo(0));R.player=Y.yieldResult;R.initializePlayerListeners();_.XH(Y)})};
_.l.onPageChanged=function(R){var A=this;return _.O(function(Y){if(Y.nextAddress==1)return R.detail.newPageType!=="ytd-shorts"?Y.return():Y.yield(_.zI().getPlayerPromise(),2);A.player=Y.yieldResult;A.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.T2(A,A.onPageChanged));_.XH(Y)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22299_playerEvents)};
_.l.onVideoDataChange=function(R){var A=this;return _.O(function(Y){if(!A.player||R.type!=="newdata")return Y.return();A.videoDuration=_.v("web_shorts_use_progress_state_for_gapless")?A.player.getProgressState(R.playertype).seekableEnd:A.player.getDuration(R.playertype);A.playedTime=0;_.XH(Y)})};
_.l.onVideoProgress=function(R){var A=this,Y,P;return _.O(function(E){if(!A.player)return E.return();Y=A.player.getPresentingPlayerType();P=A.player.getPlayerState();A.videoDuration=_.v("web_shorts_use_progress_state_for_gapless")?A.player.getProgressState(Y).seekableEnd:A.player.getDuration(Y);A.playedTime=P===0?A.videoDuration:R;_.XH(E)})};
_.l.getPercentPlayed=function(R,A){return R?_.Sv(A/R,0,1):0};
_.Yh.Object.defineProperties(Uc.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 R="";return R=this.videoDuration&&this.playedTime?R+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):R+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Uc.prototype,"componentBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],Uc.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Uc.prototype,"player",void 0);_.C([_.S(),_.k("design:type",Object)],Uc.prototype,"videoDuration",void 0);_.C([_.S(),_.k("design:type",Object)],Uc.prototype,"playedTime",void 0);_.C([_.S(),_.k("design:type",Object)],Uc.prototype,"isActive",void 0);
_.C([_.X("videoDuration","playedTime"),_.k("design:type",Number),_.k("design:paramtypes",[])],Uc.prototype,"percentPlayed",null);_.C([_.X("videoDuration","playedTime"),_.k("design:type",Object),_.k("design:paramtypes",[])],Uc.prototype,"percentPlayedStyle",null);_.C([_.X("videoDuration","isActive"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Uc.prototype,"hideProgressBar",null);
_.B(Uc,"ytd-progress-bar-line",function(){if(cEZ===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);cEZ=R}R=cEZ;return R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var ODb;_.Ow(_.Lfi,"ytm-closed-captioning-button",{props:{captionIconType:_.VY,onClick:_.xL,ariaLabel:_.VY,ariaPressed:_.VY,isOverlay:_.xL,isModern:_.xL}});_.Ow(_.HJF,"desktop-shorts-volume-controls",{props:{orientation:_.VY}});var $G=function(){var R=_.K.apply(this,arguments)||this;R.playerState=null;R.isMuted=!1;R.shortsModernControlsEnabled=_.v("web_shorts_modern_controls");R.volumeControlsOrientationState=_.v("web_shorts_modern_controls")?"vertical_down":"horizontal_right";R.isOverlay=!0;R.captionIconType=-1;R.ariaLabel="";R.overlayDensity=0;R.JSC$22302_playerEvents=new Map;R.onClosedCaptionsButtonClick=function(){R.player&&_.MF(R.player)&&(R.player.toggleSubtitles(),R.updateCaptionIconType())};
return R};
_.H($G,_.K);_.l=$G.prototype;_.l.created=function(){this.JSC$22302_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22302_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22302_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.l.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.NV(28662);this.playPauseButtonClientVE=_.NV(36842);this.fullscreenButtonToggleOffClientVE=_.NV(222256);this.fullscreenButtonToggleOnClientVE=_.NV(222257);var R=_.F9(),A=_.pO();R&&A&&(_.v("combine_ve_grafts")?(_.Xq(_.rU(),this.muteButtonClientVE,A),_.Xq(_.rU(),this.playPauseButtonClientVE,A)):_.tg(R,A,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.l.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22302_playerEvents),this.player=null)};
_.l.updateCaptionIconType=function(){var R=-1,A=void 0,Y=_.vk("CLOSED_CAPTIONS_DISABLED");this.player&&_.MF(this.player)&&(_.aiQ(this.player)?(A=!0,Y=_.vk("CLOSED_CAPTIONS_ON"),R=1):(A=!1,Y=_.vk("CLOSED_CAPTIONS_OFF"),R=0));this.captionIconType=R;this.ariaPressedState=A;this.ariaLabel=Y};
_.l.getPlayerAndInitializeListeners=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return A=_.EJ(),A?Y.yield(A.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.T2(R,R.onPageChanged)),Y.jumpTo(0));R.player=Y.yieldResult;R.initializePlayerListeners();_.XH(Y)})};
_.l.onPageChanged=function(R){var A=this;return _.O(function(Y){if(Y.nextAddress==1)return R.detail.newPageType!=="ytd-shorts"?Y.return():Y.yield(_.zI().getPlayerPromise(),2);A.player=Y.yieldResult;A.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.T2(A,A.onPageChanged));_.XH(Y)})};
_.l.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22302_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.l.onPlayerStateChange=function(R){this.playerState=R};
_.l.onPlayerVolumeChange=function(R){this.isMuted=R.muted};
_.l.onPlayPauseButtonClick=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(_.zI().getPlayerPromise(),2);A=P.yieldResult;(Y=_.F9())&&R.playPauseButtonClientVE&&_.qT(Y,R.playPauseButtonClientVE);A.getPlayerState()!==1?A.playVideo():A.pauseVideo();_.XH(P)})};
_.l.computePlayPauseIcon=function(R){return R===2||R===-1||R===5?_.v("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.v("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.v("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.l.computeFullscreenLabel=function(R){return R?_.vk("FULLSCREEN_EXIT_LABEL"):_.vk("FULLSCREEN_ENTER_LABEL")};
_.l.computePlayPauseLabel=function(R){return R===1||R===3?_.vk("PLAYER_LABEL_PAUSE"):_.vk("PLAYER_LABEL_PLAY")};
_.l.onMuteButtonClick=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(_.zI().getPlayerPromise(),2);A=P.yieldResult;(Y=_.F9())&&R.muteButtonClientVE&&_.qT(Y,R.muteButtonClientVE);A.isMuted()?A.unMute(!0):A.mute(!0);_.XH(P)})};
_.l.computeMuteIcon=function(R){return R?"miniplayer:volume-off":"miniplayer:volume-up"};
_.l.computeMuteLabel=function(R){return R?_.vk("PLAYER_LABEL_UNMUTE"):_.vk("PLAYER_LABEL_MUTE")};
_.l.onFullscreenButtonClick=function(){var R=_.F9();R&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.qT(R,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.qT(R,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.TqF()};
_.Yh.Object.defineProperties($G.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var R=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(){R.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.v("web_shorts_modern_controls")?"player_full_exit_alt":_.v("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.v("web_shorts_modern_controls")?"player_full_enter_alt":_.v("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],$G.prototype,"componentBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],$G.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],$G.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"player",void 0);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"playerState",void 0);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"isMuted",void 0);
_.C([_.S({computed:"computePlayPauseIcon(playerState)"}),_.k("design:type",String)],$G.prototype,"playPauseIcon",void 0);_.C([_.S({computed:"computeMuteIcon(isMuted)"}),_.k("design:type",String)],$G.prototype,"muteIcon",void 0);_.C([_.S({selector:_.zt}),_.k("design:type",Boolean)],$G.prototype,"isFullscreen",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$G.prototype,"shortsModernControlsEnabled",void 0);
_.C([_.S(),_.k("design:type",Object)],$G.prototype,"volumeControlsOrientationState",void 0);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"isOverlay",void 0);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"captionIconType",void 0);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"ariaLabel",void 0);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"ariaPressedState",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$G.prototype,"overlayDensity",void 0);
_.C([_.X("playerState"),_.k("design:type",Object),_.k("design:paramtypes",[])],$G.prototype,"playPauseButtonData",null);_.C([_.X("isFullscreen"),_.k("design:type",Object),_.k("design:paramtypes",[])],$G.prototype,"fullscreenButtonData",null);_.C([_.S(),_.k("design:type",Object)],$G.prototype,"onClosedCaptionsButtonClick",void 0);_.C([_.X("isFullscreen"),_.k("design:type",String),_.k("design:paramtypes",[])],$G.prototype,"fullscreenIcon",null);
_.B($G,"ytd-shorts-player-controls",function(){if(ODb===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <div id="right-controls" class="style-scope ytd-shorts-player-controls">\n    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n    <div id="closed-captioning-button-container" class="style-scope ytd-shorts-player-controls">\n      <ytm-closed-captioning-button aria-label="[[ariaLabel]]" aria-pressed="[[ariaPressedState]]" caption-icon-type="[[captionIconType]]" is-modern="[[shortsModernControlsEnabled]]" is-overlay="[[isOverlay]]" on-click="[[onClosedCaptionsButtonClick]]" class="style-scope ytd-shorts-player-controls">\n      </ytm-closed-captioning-button>\n    </div>\n    <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n    </yt-button-shape>\n  </div>\n</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);ODb=R}R=ODb;return R},{mode:1});var MHx;_.Ow(_.oYq,"yt-interstitial-view-model",{props:{data:_.VY}});var sAE=_.E5(function(R){var A=R.data;return _.V("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.V("h1",{class:"reelWatchBreakViewModelHostTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V("h2",{class:"reelWatchBreakViewModelHostBody"},_.V(_.NU,{text:function(){return A().body},
isOverlay:!0})),_.V(_.ni,{data:function(){return A().buttons}},{buttonViewModel:function(Y,P){return _.V("div",{class:function(){return P()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.V(_.Is,{data:Y.data}))}}))},"rk");
sAE.idomCompat=!0;_.Ow(sAE,"reel-watch-break-view-model",{props:{data:_.VY}});var XK=function(){return _.K.apply(this,arguments)||this};
_.H(XK,_.K);XK.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}}};
_.Yh.Object.defineProperties(XK.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.n((R=this.data)==null?void 0:R.renderer,q6b)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var R;return!!_.n((R=this.data)==null?void 0:R.renderer,LlD)}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],XK.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],XK.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],XK.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.renderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XK.prototype,"isSurvey",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.renderer"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],XK.prototype,"isInterstitialViewModel",null);_.C([_.F({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],XK);
_.B(XK,"ytd-reel-non-video-content-renderer",function(){if(MHx!==void 0)return MHx;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return MHx=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var Nfb;_.Ow(_.ntn,"desktop-shorts-player-controls",{});var S2=function(){var R=_.K.apply(this,arguments)||this;R.isPlayerPaused=!1;R.isPlayerStarted=!1;R.showPlayerControls=!1;R.showScrubber=!1;R.autoHideJobId=0;R.modern=_.v("web_button_rework");R.overlayType=_.OK("web_shorts_expanded_overlay_type");R.panelData=void 0;R.isWatchWhileMode=!1;R.hasError=!1;R.panelShowDelayMs=1;R.scrubberComponent={};R.isFullscreen=!1;R.shouldHideOverlay=!1;R.enableAnchoredPanel=_.v("desktop_shorts_v2_anchored_panel");R.enablePersistentAnchoredPanel=_.v("desktop_shorts_v2_persistent_anchored_panel");
R.hideWatchWhilePanel=_.v("web_shorts_hide_watch_while_panel");R.useAspectRatio=_.v("web_use_aspect_ratio");R.isPersistentPanelActive=!1;R.anchoredPanelActive=!1;R.isShortsPipActive=!1;R.smallScreenSqueezeback=!1;R.enableFlexibleOverlay=_.v("web_enable_flexible_overlay");R.overlayDensity=0;R.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};R.onWindowResized=function(){_.u5(R,
"calculateOverlayDensity",function(){R.calculateOverlayDensity()},100)};
return R};
_.H(S2,_.K);_.l=S2.prototype;_.l.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.l.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.l.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var R=_.is().resolve(_.tC);this.isWatchWhileMode&&(_.v("web_enable_shorts_new_carousel")?_.fn.addJob(function(){R.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):R.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.l.handleShowReelsCommentsOverlayCommand=function(R){R=_.n(R,AEL);this.isActive&&(R==null?0:R.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))};
_.l.updateEngagementPanelVisibility=function(R,A){R&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:A?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:R}})};
_.l.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.l.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.is().resolve(_.Bd).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.l.handleWatchWhilePanelScrimClick=function(){var R=_.is().resolve(_.tC);this.activeWatchWhilePanel&&(R.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.l.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.l.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:_.v("web_enable_shorts_new_carousel")?0:void 0}}};
_.l.handlePlayerClick=function(R){var A=this,Y,P;if((P=(Y=window).matchMedia)!=null&&P.call(Y,"(any-pointer: coarse)").matches||!R)this.showPlayerControls=!0,_.fn.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Ua(_.fn,function(){A.showPlayerControls=!1},4E3)};
_.l.isFirstReel=function(){return this.index===0};
_.l.handleMouseenter=function(){_.fn.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.l.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.l.handleScrubberEnter=function(){this.showScrubber=!0};
_.l.handleScrubberLeave=function(){this.showScrubber=!1};
_.l.maybeLogNonDefaultAspectRatio=function(){var R;(R=this.data)!=null&&R.thumbnail&&this.isActive&&.5625!==S6c(this.data.thumbnail)&&_.Bpu("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.l.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var R=document.querySelector("#shorts-container");if(R){R=R.offsetWidth/2-this.playerContainer.offsetWidth/2;R=R>=368?1:R>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&R===1&&(R=0);this.isPersistentPanelActive&&(R=0);window.innerWidth<=599&&(R=2);this.overlayDensity=R;var A;(A=this.onOverlayDensityChanged)==null||A.call(this,this.index,this.overlayDensity)}}};
_.l.onOverlayDensityChange=function(){var R;(R=this.onOverlayDensityChanged)==null||R.call(this,this.index,this.overlayDensity);(R=_.Mo(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&R.set("overlayDensity",this.overlayDensity);if(R=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))R.overlayDensity=this.overlayDensity};
_.l.isVideoContent=function(R){_.is().resolve(_.Bd);return!!_.n(R,_.SI)};
_.l.isNonVideoContent=function(R){_.is().resolve(_.Bd);return!!_.n(R,_.Ld)};
_.l.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Yh.Object.defineProperties(S2.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var R,A;return _.v("web_enable_format_first")||((R=this.data)==null?void 0:R.adsOverlay)&&_.v("web_enable_format_first_ads_only")||((A=this.data)==null?void 0:A.reelPlayerOverlayRenderer)&&_.v("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.v("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var R;return!this.isActive||!this.isPlayerStarted||(R=this.data)!=null&&R.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var R;if(((R=this.data)==null?0:R.command)&&this.isVideoContent(this.data.command)){var A,Y;if(((A=this.data)==null?0:A.adsOverlay)&&Object.keys((Y=this.data)==null?void 0:Y.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var P,E;if(((P=this.data)==null?0:P.reelPlayerOverlayRenderer)&&Object.keys((E=this.data)==null?void 0:E.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
S2.prototype.onOverlayDensityChange=S2.prototype.onOverlayDensityChange;S2.prototype.calculateOverlayDensity=S2.prototype.calculateOverlayDensity;S2.prototype.maybeLogNonDefaultAspectRatio=S2.prototype.maybeLogNonDefaultAspectRatio;S2.prototype.onEngagementPanelsChanged=S2.prototype.onEngagementPanelsChanged;S2.prototype.onScrubberDataChange=S2.prototype.onScrubberDataChange;S2.prototype.updateShouldHideOverlay=S2.prototype.updateShouldHideOverlay;
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],S2.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],S2.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],S2.prototype,"index",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],S2.prototype,"isActive",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],S2.prototype,"isHiddenInDom",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"isPlayerPaused",void 0);_.C([_.S({selector:Klb}),_.k("design:type",Object)],S2.prototype,"isPlayerStarted",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"showPlayerControls",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"showScrubber",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"autoHideJobId",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"overlayType",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],S2.prototype,"ytdReduxBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],S2.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"watchWhileEngagementPanels",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"panelData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"isWatchWhileMode",void 0);_.C([_.S(),_.k("design:type",String)],S2.prototype,"activeWatchWhilePanel",void 0);
_.C([_.S(),_.k("design:type",Object)],S2.prototype,"hasError",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"panelShowDelayMs",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"scrubberComponent",void 0);_.C([_.S({selector:_.zt,reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"isFullscreen",void 0);_.C([_.S(),_.k("design:type",Object)],S2.prototype,"shouldHideOverlay",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"enableAnchoredPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"enablePersistentAnchoredPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"hideWatchWhilePanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"useAspectRatio",void 0);
_.C([_.S({selector:_.E$k,reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"isPersistentPanelActive",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"anchoredPanelActive",void 0);_.C([_.S({selector:_.ix,reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"isShortsPipActive",void 0);_.C([_.S({selector:IIe,reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"smallScreenSqueezeback",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],S2.prototype,"enableFormatFirst",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"enableFlexibleOverlay",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],S2.prototype,"overlayDensity",void 0);_.C([_.S(),_.k("design:type",Function)],S2.prototype,"onOverlayDensityChanged",void 0);
_.C([_.S(),_.X("isActive","hasError","isPlayerStarted"),_.k("design:type",Object),_.k("design:paramtypes",[])],S2.prototype,"shouldRenderPlayerElements",null);_.C([_.S(),_.X("isActive","isWatchWhileMode"),_.k("design:type",Object),_.k("design:paramtypes",[])],S2.prototype,"watchWhileOrPersistentActive",null);_.C([_.vZ("isActive","hasError","showingExpandedOverlay"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S2.prototype,"updateShouldHideOverlay",null);
_.C([_.S({reflectToAttribute:!0}),_.X("isActive","isPlayerStarted","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],S2.prototype,"shouldRenderScrubber",null);_.C([_.vZ("shouldRenderScrubber"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S2.prototype,"onScrubberDataChange",null);_.C([_.X("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.k("design:type",Object),_.k("design:paramtypes",[])],S2.prototype,"overlayComponent",null);
_.C([_.vZ("watchWhileEngagementPanels"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S2.prototype,"onEngagementPanelsChanged",null);_.C([_.nG("#player-container"),_.k("design:type",HTMLElement)],S2.prototype,"playerContainer",void 0);_.C([_.nG("#cinematic-container"),_.k("design:type",HTMLElement)],S2.prototype,"cinematicContainer",void 0);
_.C([_.vZ("isPersistentPanelActive","data.thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S2.prototype,"maybeLogNonDefaultAspectRatio",null);_.C([_.vZ("isPersistentPanelActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S2.prototype,"calculateOverlayDensity",null);_.C([_.vZ("overlayDensity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],S2.prototype,"onOverlayDensityChange",null);
_.C([_.F({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],S2);
_.B(S2,"ytd-reel-video-renderer",function(){if(Nfb!==void 0)return Nfb;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Nfb=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var Iu=function(){var R=_.K.apply(this,arguments)||this;R.isPreviousPageShorts=!1;R.index=0;R.delayedActiveIndex=0;R.playablePreviousIndex=null;R.isPlayerPaused=!1;R.isPlayerStarted=!1;R.intersectionObserverThreshold=.6;R.fitToVisibleBounds=!1;R.pageSubtype="shorts";R.enablePreviousContinuation=_.v("shorts_in_playlists_web");R.shortsPipEnabled=_.v("web_shorts_pip");R.isDark=document.documentElement.hasAttribute("dark");R.shortsViewTransitions=_.v("web_shorts_view_transitions");R.isFullscreen=!1;R.isShortsPipActive=
!1;R.buttonOverride={iconPosition:"icon-only",size:"XL"};R.anchoredPanelActive=!1;R.isActive=!1;R.smallScreenPersistentPanel=!1;R.isPersistentPanelActive=!1;R.smallScreenSqueezeBack=!1;R.enableScrollIntoViewCenter=_.v("web_scroll_into_view_center");R.formatFirst=_.v("web_enable_format_first")||_.v("web_enable_format_first_ads_only")||_.v("web_enable_format_first_organic_only");R.enableFlexibleOverlay=_.v("web_enable_flexible_overlay");R.useAspectRatio=_.v("web_use_aspect_ratio");R.isShortsInitialized=
!1;R.hidePreviousButtonImmediately=!1;R.showPreviousButtonImmediately=!1;R.endOfNextContinuation=!1;R.currentPlayerIndex=0;R.nextReelVe=_.NV(56921);R.prevReelVe=_.NV(56922);R.loopToggleOffVe=_.NV(198013);R.loopToggleOnVe=_.NV(198014);R.ambientModeToggleVe=_.NV(227860);R.reelPlayerPausedStateRendererVe=_.NV(141313);R.storedPlaybackSpeed=null;R.actionMap={"yt-append-reel-watch-sequence-continuation-entries-action":"processAppendReelWatchSequenceContinuationEntriesAction","yt-reel-navigate-command":"handleReelNavigateCommand",
"yt-reel-non-video-content-dismissal-command":"processReelNonVideoContentDismissalCommand","yt-signal-action-toggle-cinematic-shorts-on":"handleSignalActionToggleCinematicShortsOn","yt-signal-action-toggle-cinematic-shorts-off":"handleSignalActionToggleCinematicShortsOff","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged","yt-signal-action-toggle-loop-shorts-on":"handleSignalActionToggleLoopShortsOn","yt-signal-action-toggle-loop-shorts-off":"handleSignalActionToggleLoopShortsOff",
"yt-miniplayer-navigate-shorts":"handleMiniplayerNavigateShorts","yt-signal-action-toggle-shorts-picture-in-picture":"handleSignalActionToggleShortsPictureInPicture"};R.onOverlayDensityChanged=function(A,Y){var P;(P=R.getActiveReelVideo(A))==null||P.setAttribute("overlay-density",String(Y))};
return R};
_.H(Iu,_.K);_.l=Iu.prototype;_.l.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.l.deflateInactivePreviousSlides=function(){var R=_.cU("web_shorts_deflate_inactive_slides_aggressive_distance");if(R>0&&this.shortsProcessedSequence&&this.activeIndex){R=this.activeIndex-R;for(var A=0;A<=R;A++){var Y=void 0;((Y=this.shortsProcessedSequence[A].reelPlayerOverlayRenderer)==null?0:Y.metapanel)&&this.set("shortsProcessedSequence."+A+".reelPlayerOverlayRenderer",{});Y=void 0;((Y=this.shortsProcessedSequence[A].adsOverlay)==null?0:Y.adSlotMetadata)&&this.set("shortsProcessedSequence."+
A+".adsOverlay",{})}}};
_.l.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.l.onResize=function(){var R=_.Yp(),A=R.dispatch,Y=this.calculateIsSmallWidth();A.call(R,_.cK({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:Y}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.l.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:_.v("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.l.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var R=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,A=R,Y=0;R<250&&(A=R+this.shortsInnerContainer.clientWidth,Y=24);_.ya(this.hostElement,{"--ytd-shorts-header-width":A+"px","--ytd-shorts-top-spacing":Y+"px"})}};
_.l.isFirstShorts=function(R){return R?this.index===-R.length:this.index===0};
_.l.isActiveReel=function(R,A,Y){Y&&(A=this.calculatePrevIndex(A,Y));return R===A};
_.l.onFullscreenChange=function(){if(_.v("web_fullscreen_shorts")){var R;(R=this.getActiveReelVideo(this.activeIndex))==null||R.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.is().resolve(_.jv).close(!0)}};
_.l.engagementPanelsChanged=function(){var R;this.watchWhileEngagementPanels=(R=this.data)==null?void 0:R.engagementPanels};
_.l.unregisterPanels=function(){var R=_.is().resolve(_.tC);if(this.watchWhileEngagementPanels)for(var A=_.x(this.watchWhileEngagementPanels),Y=A.next();!Y.done;Y=A.next()){var P=Y.value,E=void 0,z=void 0;Y=(E=P.engagementPanelSectionListRenderer)==null?void 0:(z=E.identifier)==null?void 0:z.tag;P=this.getPanelContentIdentifier(P.engagementPanelSectionListRenderer);R&&(Y&&R.panelMap.delete(Y),P&&_.v("web_shorts_panel_caching_bugfix")&&(E=Y=void 0,(E=(Y=R).unregisterPanelContent)==null||E.call(Y,P)))}};
_.l.isVideoContent=function(R){return this.isVideoContentCommand(R==null?void 0:R.command)};
_.l.getActiveReelVideo=function(R){return _.Mo(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+R+'"]')};
_.l.calculatePrevIndex=function(R,A){return A?R-((A==null?void 0:A.length)||0):-1};
_.l.onKeydown=function(R){var A=_.Ah(R)||[];if(!_.m4F(A))if(R.code==="ArrowUp")R.preventDefault(),this.handlePrevButtonClick();else if(R.code==="ArrowDown")R.preventDefault(),this.handleNextButtonClick();else if(R.code==="KeyM")this.toggleMuteUnmuteVideo();else if(R.code==="KeyK"||R.code==="Space")this.togglePlayPauseVideo();else if((R.code==="KeyA"||R.code==="ArrowLeft")&&_.v("web_shorts_keyboard_enable_seek_shortcuts")){var Y;(Y=this.player)==null||Y.seekBy(-5)}else if((R.code==="KeyD"||R.code===
"ArrowRight")&&_.v("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var P;(P=this.player)==null||P.seekBy(5)}};
_.l.onServiceRequestCompleted=function(R,A){R=A.data;R.continuationEndpoint&&R.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:R.entries,continuationEndpoint:R.continuationEndpoint}}):R.prevContinuationEndpoint&&R.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:R.prevEntries,prevContinuationEndpoint:R.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.l.handleEngagementPanelVisibilityChanged=function(R,A){var Y=_.is().resolve(_.tC);if(R&&Y){var P=this.getPanelIdentifier(R);if(A==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==P){Y.hidePanel(this.activePanel);var E;this.activePanel=((E=R.identifier)==null?void 0:E.tag)||R.panelIdentifier}else this.isPersistentPanelActive=!0,_.Yp().dispatch(kS$(!0)),this.anchoredPanelActive=!0,this.activePanel=P;else A==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&this.activePanel===
P&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Yp().dispatch(kS$(!1)))}};
_.l.handlePanelScrimClick=function(){var R=_.is().resolve(_.tC);this.activePanel&&(R.hidePanel(this.activePanel),_.Yp().dispatch(kS$(!1)))};
_.l.getShortsLoopSetting=function(){var R,A,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:return _.v("kevlar_shorts_auto_advance")?z.yield(_.GA.getInstance(),2):z.return(!0);case 2:return(R=z.yieldResult)?z.yield(R.get("sfvles"),3):z.return(!0);case 3:return Y=(A=z.yieldResult)!=null?A:!1,z.yield(R.get("sfvle"),4);case 4:return E=(P=z.yieldResult)!=null?P:!0,Y?z.return(E):z.return(!0)}})};
_.l.handleSignalActionToggleLoopShortsOff=function(){var R=this,A,Y,P;return _.O(function(E){switch(E.nextAddress){case 1:if(!R.player)return E.return();R.player.setLoopVideo(!1);A=_.rU();_.IC(A,R.loopToggleOffVe);return E.yield(_.GA.getInstance(),2);case 2:return(Y=E.yieldResult)?E.yield(Y.set("sfvle",!1),3):E.return();case 3:return E.yield(Y.set("sfvles",!0),4);case 4:P=_.Hk(),_.rH(0,203,!1),_.rH(0,204,!0),P.save(),_.XH(E)}})};
_.l.handleSignalActionToggleLoopShortsOn=function(){var R=this,A,Y,P;return _.O(function(E){switch(E.nextAddress){case 1:if(!R.player)return E.return();R.player.setLoopVideo(!0);A=_.rU();_.IC(A,R.loopToggleOnVe);return E.yield(_.GA.getInstance(),2);case 2:return(Y=E.yieldResult)?E.yield(Y.set("sfvle",!0),3):E.return();case 3:return E.yield(Y.set("sfvles",!0),4);case 4:P=_.Hk(),_.rH(0,203,!0),_.rH(0,204,!0),P.save(),_.XH(E)}})};
_.l.handleSignalActionToggleCinematicShortsOn=function(){X3o(!0);var R;(R=this.JSC$22326_cinematicController)==null||_.gqx(R,!0);_.IC(_.rU(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.l.handleSignalActionToggleCinematicShortsOff=function(){X3o(!1);var R;(R=this.JSC$22326_cinematicController)==null||_.gqx(R,!1);_.IC(_.rU(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.l.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.l.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.l.unhideCurrentOverlay=function(){if(this.overlayContainer){var R=this.overlayContainer.querySelector("#experiment-overlay");R&&_.fn.addLowPriorityJob(function(){R.style.display="unset"},100)}};
_.l.getCurrentShort=function(){if(this.currentEndpoint){var R=this.currentEndpoint;if(this.isNonVideoContentCommand(R)){var A=_.n(R,_.Ld);return{reelNonVideoContentRenderer:_.n(A==null?void 0:A.renderer,_.ueA),command:R}}if(this.data){var Y;A=(Y=_.n(this.currentEndpoint,_.SI))==null?void 0:Y.thumbnail;var P;Y=(P=this.data.overlay)==null?void 0:P.reelPlayerOverlayRenderer;_.is().resolve(_.Bd);R=this.data;var E,z;P=(E=R.overlay)==null?void 0:(z=E.shortsAdsRenderer)==null?void 0:z.adSlots;if(P!==void 0)P.length===
0?(_.GI("Shorts ads returned no ad slots."),R=void 0):(P.length>1&&_.GI("Shorts ads has more than one ad slots."),R=_.n(P[0],_.h57));else{var c,M;R=_.n((c=R.overlay)==null?void 0:(M=c.shortsAdsRenderer)==null?void 0:M.overlay,_.h57)}c=R;R=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.n(this.currentEndpoint,_.SI),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:Y,thumbnail:A,command:R,adsOverlay:c}}}};
_.l.created=function(){var R=this;this.scrollToVideoThrottle=new _.kH(function(A){var Y;(Y=R.getActiveReelVideo(A))==null||Y.scrollIntoView({behavior:"smooth",block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.kH(function(A){var Y;(Y=R.getActiveReelVideo(A))==null||Y.scrollIntoView({behavior:"auto",block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.l.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.l.attached=function(){var R=this;_.is().resolve(_.Bd).registerRootElement(this);this.pageScrollElement=_.Mo(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.T2(this,this.processResetAction));_.v("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var A=R.getActiveReelVideo(R.activeIndex);R.maybeCreateIntersectionObserver();A==null||A.scrollIntoView({behavior:"instant",
block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"});R.shortsContainer.style.overflowY="scroll"}))};
_.l.updateReelWatchSequenceResponse=function(){var R=this,A;_.v("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((A=_.n(this.currentEndpoint,_.SI))==null?0:A.sequenceParams)&&!this.reelWatchSequenceResponse&&(A=_.is().resolve(_.Bd))&&oqE(A,this.currentEndpoint).then(function(Y){Y&&(R.reelWatchSequenceResponse=Y,_.fn.addLowPriorityJob(function(){R.maybeCreateIntersectionObserver(!0)}))})};
_.l.calculateSqueezebackPanelSize=function(){var R=this,A=window.innerWidth-456-(window.innerHeight-106)*.5625;_.fn.addLowPriorityJob(function(){A<360?_.Yp().dispatch(GSg(!0)):(R.hostElement.style.setProperty("--anchored-panel-width",Math.min(A,480)+"px"),_.Yp().dispatch(GSg(!1)))})};
_.l.detached=function(){var R=_.is().resolve(_.Bd);R.rootElement=void 0;var A;(A=R.unsubscribeFromStore)==null||A.call(R);R.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.T2(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.l.onResizeFinished=function(R,A){var Y=this,P=new ResizeObserver(function(){Y.shortsContainer.style.overflowY="hidden";_.fn.addLowPriorityJob(function(){A()},100)});
P.observe(R);return P};
_.l.resetDocumentScrollTop=function(){var R,A;if((R=document)==null?0:(A=R.scrollingElement)==null?0:A.scrollTop)document.scrollingElement.scrollTop=0};
_.l.loadPage_=function(R){var A=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),R){var Y;!_.v("web_enable_delay_shorts_sequence_call")&&((Y=_.n(this.currentEndpoint,_.SI))==null?0:Y.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=R;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){A.isPlayerStarted&&(A.handleOnPlaybackCommand(),A.afterPlayerStarted=function(){})};
this.registerPanel(R)}};
_.l.afterPlayerStarted=function(){};
_.l.handleOnPlaybackCommand=function(){if(_.v("web_shorts_comment_stickers")&&this.isPlayerStarted){var R,A=(R=_.n(this.currentEndpoint,_.SI))==null?void 0:R.onPlaybackCommand;A&&this.ytComponentBehavior.resolveCommand(A)}};
_.l.maybeCreateIntersectionObserver=function(R){var A=this;R=R===void 0?!1:R;var Y=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==Y||R){this.intersectionObserverThreshold=Y;R={rootMargin:"0px",threshold:Y};var P;(P=this.intersectionObserver)==null||P.disconnect();this.intersectionObserver=new IntersectionObserver(function(E){E=_.x(E);for(var z=E.next();!z.done;z=E.next())if(z=z.value,z.intersectionRatio>Y){z=Number(z.target.id);if(isNaN(z))break;
if(z===A.index)break;_.Qj3();A.loadVideo(z);_.ao("r_vtc")}},R);
this.observeShorts()}};
_.l.observeShorts=function(){var R=[].concat(_.py(_.Mo(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));R=_.x(R);for(var A=R.next();!A.done;A=R.next()){A=A.value;var Y=void 0;(Y=this.intersectionObserver)==null||Y.observe(A)}};
_.l.initCsi=function(){_.ta("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var R={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"}},A,Y;if((A=this.playerData)==null?0:(Y=A.cacheMetadata)==null?0:Y.isCacheHit)R.isCacheHit=!0;var P;if(A=(P=_.n(this.currentEndpoint,_.SI))==null?void 0:
P.prefetchTaskId)R.prefetchInfo={taskId:A};_.bE(R)};
_.l.isAd=function(){var R,A;return!!((R=_.n(this.currentEndpoint,_.SI))==null?0:(A=R.adClientParams)==null?0:A.isAd)};
_.l.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.l.getPlayerContainer=function(){var R;return(R=_.Mo(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:R.playerContainer};
_.l.onPlayerStateChange=function(R){var A=this;this.isPlayerPaused=R===2;R!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?R===1&&this.index===0&&(this.isPlayerStarted||_.Yp().dispatch(v_(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Yp().dispatch(v_(!0)));this.player&&!this.player.getLoopVideo()&&_.fn.addLowPriorityJob(function(){A.getShortsLoopSetting().then(function(Y){var P;(P=A.player)==null||P.setLoopVideo(Y)})});
this.isPlayerPaused&&_.v("web_shorts_paused_state_logging")&&_.uE(_.F9(),[this.reelPlayerPausedStateRendererVe])};
_.l.isInBackground=function(){var R=window.document.visibilityState;return!(!R||R==="visible")};
_.l.isShortPlayable=function(){if(_.v("kevlar_playable_short_killswitch"))return!0;var R;return(R=this.playerData)!=null&&R.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.l.setNormalPlaybackSpeed=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(R.getPlayer().getPlayerPromise(),2);A=P.yieldResult;Y=A.getPlaybackRate();Y!==1&&(R.storedPlaybackSpeed=Y,A.setPlaybackRate(1));_.XH(P)})};
_.l.restorePlaybackSpeed=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1)return R.storedPlaybackSpeed===null?Y.jumpTo(0):Y.yield(R.getPlayer().getPlayerPromise(),3);A=Y.yieldResult;A.setPlaybackRate(R.storedPlaybackSpeed);R.storedPlaybackSpeed=null;_.XH(Y)})};
_.l.playerDataChanged=function(){var R=this,A,Y,P,E,z,c,M,N,y;return _.O(function(m){if(m.nextAddress==1){A=R.getPlayer();(Y=R.intersectionObserver)==null||Y.disconnect();if(R.playerData){if(((P=R.playerData.videoDetails)==null?void 0:P.videoId)!==((E=A.getPlayer())==null?void 0:E.getVideoData().video_id)){z={};if(c=_.n(R.currentEndpoint,_.SI))z.watch_endpoint=c,c.endTimeSeconds&&(z.end=c.endTimeSeconds);A.loadVideoWithPlayerResponse(R.playerData,z)}}else return m.return();return R.player?m.jumpTo(2):
m.yield(A.getPlayerPromise(),3)}m.nextAddress!=2&&(R.player=m.yieldResult,R.JSC$22326_playerStateChangeListener=R.onPlayerStateChange.bind(R),R.player.addEventListener("onStateChange",R.JSC$22326_playerStateChangeListener),_.v("kevlar_client_enable_shorts_player_bootstrap")&&_.C0(),R.scrollToVideoThrottle.fire(R.index),R.movePlayerToVideo(R.index),_.fn.addLowPriorityJob(function(){R.getShortsLoopSetting().then(function(T){var Q;(Q=R.player)==null||Q.setLoopVideo(T)})}),_.BwA.resolve(R.player),R.player.syncVolume(),
R.getPlayer().focusOnPlayer());
_.fn.addLowPriorityJob(function(){R.observeShorts()},100);
M=R.player.getPlayerState(R.player.getPresentingPlayerType());M!==1||R.isPlayerStarted||_.Yp().dispatch(v_(!0));R.updateBackNavContainerWidth();N=_.n(R.currentEndpoint,_.SI);((y=N)==null?0:y.startTimeSeconds)&&R.player.seekTo(N.startTimeSeconds);if(R.JSC$22326_cinematicController||R.cinematicsInitializeJobId)return m.return();R.cinematicsInitializeJobId=_.fn.addLowPriorityJob(function(){R.initCinematicController();R.cinematicsInitializeJobId=void 0});
_.XH(m)})};
_.l.onShortUndoDismiss=function(){var R=this,A=hkD().pop();A!==void 0&&(_.RK(this,function(){R.showCardWithIndex(A)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.l.onShortsDismiss=function(R){if(R=R.detail.reelDismissalActionRenderer)(R=_.n(R.onDismissalCompletionRenderer,_.LGj))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:R}}}),this.scrollAndDismissCard()};
_.l.processReelNonVideoContentDismissalCommand=function(R){var A=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);R=_.n(R,RqD);this.activeDimissalTimeout=setTimeout(function(){A.scrollAndDismissCard()},Number(R==null?void 0:R.delayMs))};
_.l.scrollAndDismissCard=function(){var R=this,A=this.index;hkD().push(A);_.RK(this,function(){var Y=R.getPlayableNextIndex();Y!==null&&(Y=R.getActiveReelVideo(Y),R.hideCardWithIndex(A),Y==null||Y.scrollIntoView({behavior:"smooth",block:"nearest",inline:R.enableScrollIntoViewCenter?"center":"start"}))})};
_.l.hideCardWithIndex=function(R){if(R=this.getActiveReelVideo(R))R.hidden=!0};
_.l.showCardWithIndex=function(R){if(R=this.getActiveReelVideo(R))R.hidden=!1};
_.l.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.l.activeChanged=function(R){_.Yp().dispatch(_.cK({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:R}}));if(R)document.addEventListener("keydown",_.T2(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var A;(A=this.player)==null||A.sendAbandonmentPing()}var Y;(Y=this.player)==null||Y.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.T2(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.l.graftClientVisualElements=function(){if(this.data){var R=_.rU();_.plG(R,_.Vn({response:this.reelWatchSequenceResponse}));_.Xq(R,this.nextReelVe);_.Xq(R,this.prevReelVe);_.v("kevlar_shorts_auto_advance")&&(_.Xq(R,this.loopToggleOffVe),_.Xq(R,this.loopToggleOnVe));_.Xq(R,this.ambientModeToggleVe);_.uE(_.F9(),[this.nextReelVe,this.prevReelVe]);_.v("web_shorts_paused_state_logging")&&_.Xq(R,this.reelPlayerPausedStateRendererVe)}};
_.l.graftNvcRenderer=function(){var R,A,Y,P,E=this.index<0?(R=this.shortsProcessedPrevSequence)==null?void 0:(A=R[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:A.command:(Y=this.shortsProcessedSequence)==null?void 0:(P=Y[this.index])==null?void 0:P.command;if(E&&this.isNonVideoContentCommand(E)){R=_.n(E,_.Ld);var z,c;(R=(z=_.n(R==null?void 0:R.renderer,_.ueA))==null?void 0:(c=z.loggingDirectives)==null?void 0:c.trackingParams)&&_.rU().graftServerVe(R)}};
_.l.setActiveIndex=function(){_.is().resolve(_.Bd).setActiveIndex(this.index)};
_.l.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.l.lazyUpdateMiniplayerData=function(){var R=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.fn.addLowPriorityJob(function(){R.updateMiniplayerData();R.updateMiniplayerDataJobId=void 0}))};
_.l.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.fn.cancelJob(this.updateMiniplayerDataJobId)};
_.l.updateMiniplayerData=function(){var R,A,Y,P=_.is().resolve(_.jv),E={shortsData:this.getCurrentShort(),previousButtonDisabled:!((R=this.prevButtonData)==null||!R.isDisabled),nextButtonDisabled:!((A=this.nextButtonData)==null||!A.isDisabled),playabilityStatus:(Y=this.playerData)==null?void 0:Y.playabilityStatus};_.PY(P,E)};
_.l.resetPlayerLocation=function(){var R=this.getPlayer();this.initialPlayerContainer&&R.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.l.movePlayerToVideo=function(R,A){var Y=this;A=A===void 0?!0:A;var P=this.getActiveReelVideo(R),E=this.getPlayer();if(P){this.overlayContainer?P.appendChild(this.overlayContainer):(this.overlayContainer=_.Mo(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,P.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||E.appendTo(this.overlayContainer.playerContainer,void 0,!0));var z;(z=this.player)==null||z.setSize(NaN,NaN);this.isActive||_.Ua(_.fn,function(){Y.isActive=
!0});
E.style.visibility="visible";_.v("reels_web_disable_rtr_tick")||_.v("reels_web_use_pbs_first_shorts")&&R===0||_.Fh("r_tr");this.currentPlayerIndex=R;P.appendChild(this.errorScreenContainer);var c;(c=this.JSC$22326_cinematicController)==null||_.Hue(c)}else A?_.fn.addLowPriorityJob(function(){Y.movePlayerToVideo(Y.index,!1)}):Math.random()<=_.cU("web_shorts_error_logging_threshold")&&_.fK(new _.XN("Trying to movePlayerToVideo with undefined container.",{firstAttempt:A,
index:R}))};
_.l.enableFormatFirst=function(R){return _.v("web_enable_format_first")||R.adsOverlay&&_.v("web_enable_format_first_ads_only")||R.reelPlayerOverlayRenderer&&_.v("web_enable_format_first_organic_only")};
_.l.getAspectRatio=function(R){if(R!=null&&R.thumbnail&&this.enableFormatFirst(R))return"--ytd-shorts-player-ratio: "+S6c(R.thumbnail)};
_.l.getBackgroundImage=function(R){if(R!=null&&R.thumbnail)return(R=_.sw(R.thumbnail.thumbnails))?'background-image:url("'+R+'");':"background-color:black;"};
_.l.onPersistentPanelActiveChanged=function(){var R=this.getCurrentShort();if(R&&this.enableFormatFirst(R)&&(R==null?0:R.thumbnail)&&S6c(R.thumbnail)!==.5625){var A;(A=this.player)==null||A.setSize(NaN,NaN)}};
_.l.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.l.moveCinematicsToVideo=function(){var R=_.Mo(this.hostElement).querySelector("ytd-reel-video-renderer");(R==null?0:R.cinematicContainer)&&R.cinematicContainer!==this.shortsCinematicContainer.parentElement&&R.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.l.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.l.updatePrevButtonData=function(){var R=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(R){var A;this.prevButtonData=R=Object.assign({},R,{accessibility:{label:_.vk("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:R.isDisabled||this.index===-(((A=this.shortsProcessedPrevSequence)==null?void 0:A.length)||0),tooltip:this.isUpArrowHidden?"":_.vk("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=R=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.l.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.l.updateNextButtonData=function(){var R=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(R){var A;this.nextButtonData=R=Object.assign({},R,{accessibility:{label:_.vk("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:R.isDisabled||this.index===((A=this.shortsProcessedSequence)==null?void 0:A.length),tooltip:_.vk("NEXT_VIDEO_LABEL")||""})}};
_.l.getPlayablePreviousIndex=function(){for(var R,A=this.index-1;A>=-(((R=this.prevShortsSequence)==null?void 0:R.length)||0);A--)if(!hkD().includes(A))return A;return null};
_.l.getIndexInSequence=function(R,A){return R.findIndex(function(Y){var P;return((P=_.n(Y.command,_.SI))==null?void 0:P.videoId)===A})};
_.l.handlePrevButtonClick=function(R){var A=this,Y,P;return _.O(function(E){Y=A.getPlayablePreviousIndex();if(Y===null)return E.return();A.gestureType=((P=R)==null?void 0:P.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Y===0&&(A.hidePreviousButtonImmediately=!0);if(A.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){A.transitionToVideoThrottle.fire(Y)}),E.return();
A.scrollToVideoThrottle.fire(Y);_.XH(E)})};
_.l.getPlayableNextIndex=function(){for(var R,A=this.index+1;A<(((R=this.shortsProcessedSequence)==null?void 0:R.length)||0);A++)if(!hkD().includes(A))return A;return null};
_.l.handleNextButtonClick=function(R,A){var Y=this,P,E;return _.O(function(z){P=Y.getPlayableNextIndex();if(P===null)return z.return();P===1&&(Y.showPreviousButtonImmediately=!0);Y.gestureType=((E=R)==null?void 0:E.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";A&&(Y.gestureType=A);if(Y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Y.transitionToVideoThrottle.fire(P)}),z.return();
Y.scrollToVideoThrottle.fire(P);_.XH(z)})};
_.l.handleReelNavigateCommand=function(R,A,Y){(R=_.n(R,dbo))&&A&&R.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(Y)};
_.l.loadVideo=function(R,A){A=A===void 0?!1:A;if(R!==this.currentPlayerIndex){_.Yp().dispatch(v_(!1));if(this.isAd()&&!A){var Y;(Y=this.player)==null||Y.notifyShortsAdSwipeEvent()}if((A=this.JSC$22326_cinematicController)!=null){var P;(P=A.currentCinematicEffect)==null||P.pause()}if((P=this.JSC$22326_cinematicController)!=null){var E;(E=P.currentCinematicEffect)==null||E.clear()}P=R>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(P));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var z,c,M,N;E=R<0?(z=this.shortsProcessedPrevSequence)==null?void 0:(c=z[this.shortsProcessedPrevSequence.length+R])==null?void 0:c.command:(M=this.shortsProcessedSequence)==null?void 0:(N=M[R])==null?void 0:N.command;this.index=R;this.gestureType||(this.gestureType=P?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
E&&this.isVideoContentCommand(E)&&(this.ytComponentBehavior.resolveCommand(E,{form:{createScreenConfig:{clickedVisualElement:P?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(E&&this.isNonVideoContentCommand(E)){this.currentEndpoint=E;this.data=void 0;z=_.rU();c=_.n(E,_.Ld);var y,m;(c=(y=_.n(c==null?void 0:c.renderer,_.ueA))==null?void 0:(m=y.screenLoggingData)==null?void 0:m.screenVeType)&&_.$5(z,c);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(y=this.getActiveReelVideo(R))&&y.appendChild(this.overlayContainer)}var T,Q;if(((T=this.reelWatchSequenceResponse)==null?0:T.continuationEndpoint)&&((Q=this.reelWatchSequenceResponse)==null?0:Q.entries)&&R===this.reelWatchSequenceResponse.entries.length-1){var g,r;T={contentPlaybackContext:_.Wr({},(r=_.n((g=this.currentEndpoint)==null?void 0:g.commandMetadata,_.Ti))==null?void 0:r.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:T})}var I,b,p;((I=this.reelWatchSequenceResponse)==null?0:I.prevContinuationEndpoint)&&R===-(((b=this.reelWatchSequenceResponse)==null?void 0:(p=b.prevEntries)==null?void 0:p.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.l.setMiniplayerPreview=function(R){R=(R===void 0?0:R)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var A,Y,P=_.is().resolve(_.jv),E={shortsData:void 0,shortsPreviewThumbnail:R?(A=this.shortsProcessedSequence)==null?void 0:(Y=A[R])==null?void 0:Y.thumbnail:void 0};_.PY(P,E)};
_.l.updateTitle=function(R){var A,Y;R=(R==null?0:R.adSlots)?"":(Y=R==null?void 0:(A=R.videoDetails)==null?void 0:A.title)!=null?Y:"";_.xo(this.hostElement,"yt-update-title",R)};
_.l.registerPanel=function(R){var A=_.is().resolve(_.tC);if(A){R=_.x(R.engagementPanels||[]);for(var Y=R.next();!Y.done;Y=R.next()){Y=Y.value;var P=this.getPanelContentIdentifier(Y.engagementPanelSectionListRenderer),E=void 0,z=void 0;(z=(E=A).registerPanelContent)==null||z.call(E,P,Y)}}};
_.l.getPanelIdentifier=function(R){var A;return(R==null?void 0:(A=R.identifier)==null?void 0:A.tag)||(R==null?void 0:R.panelIdentifier)||(R==null?void 0:R.targetId)};
_.l.getPanelContentIdentifier=function(R){var A;return(R==null?void 0:R.targetId)||(R==null?void 0:R.panelIdentifier)||(R==null?void 0:(A=R.identifier)==null?void 0:A.tag)};
_.l.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;_.Yp().dispatch(v_(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.Yp().dispatch(kS$(!1));var R=_.is().resolve(_.Bd);R.dismissedIndices=[];R.watchWhileIndices.clear();
this.isShortsMiniplayerActive()&&_.is().resolve(_.jv).close(!0)};
_.l.processAppendReelWatchSequenceContinuationEntriesAction=function(R){var A=this,Y;(Y=this.intersectionObserver)==null||Y.disconnect();R=R.appendReelWatchSequenceContinuationEntriesAction;if(R==null?0:R.entries){var P;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.py(((P=this.reelWatchSequenceResponse)==null?void 0:P.entries)||[]),_.py(R.entries)),continuationEndpoint:R.continuationEndpoint})}else if(R==null?0:R.prevEntries){var E;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.py(((E=this.reelWatchSequenceResponse)==null?void 0:E.prevEntries)||[]),_.py(R.prevEntries)),prevContinuationEndpoint:R.prevContinuationEndpoint});_.fn.addLowPriorityJob(function(){A.movePlayerToVideo(A.index);var z;(z=A.getActiveReelVideo(A.index))==null||z.scrollIntoView({block:"nearest",inline:A.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.fn.addLowPriorityJob(function(){A.observeShorts()},100)};
_.l.processWatchSequence=function(R){var A=this;return R.map(function(Y){Y=Y.command;if(A.isVideoContentCommand(Y)){var P=_.n(Y,_.SI);return{reelPlayerOverlayRenderer:_.n(P==null?void 0:P.overlay,_.el7),thumbnail:P.thumbnail,command:Y}}return A.isNonVideoContentCommand(Y)?(P=_.n(Y,_.Ld),{reelNonVideoContentRenderer:_.n(P==null?void 0:P.renderer,_.ueA),command:Y}):{command:Y}})};
_.l.calculateIntersectionObserverThreshold=function(){var R=_.Mo(this.hostElement).querySelector("ytd-reel-video-renderer"),A=1;(R==null?0:R.offsetHeight)&&(R==null?0:R.offsetWidth)&&(A=Math.min(R.offsetHeight,this.shortsContainer.offsetHeight)/R.offsetHeight*(Math.min(R.offsetWidth,this.shortsContainer.offsetWidth)/R.offsetWidth));return Math.round(A*.6*10)/10};
_.l.isVideoContentCommand=function(R){_.is().resolve(_.Bd);return!!_.n(R,_.SI)};
_.l.isNonVideoContentCommand=function(R){_.is().resolve(_.Bd);return!!_.n(R,_.Ld)};
_.l.initCinematicController=function(){var R=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22326_cinematicController=new _.QV(this.shortsCinematicContainer,this.player);var A,Y=_.n((A=this.data)==null?void 0:A.background,_.kK);_.nqb(this.JSC$22326_cinematicController,Y);_.gqx(this.JSC$22326_cinematicController,$bx(Y));_.vqq(this.JSC$22326_cinematicController);_.fn.addLowPriorityJob(function(){R.moveCinematicsToVideo()})}};
_.l.handleMiniplayerNavigateShorts=function(R){R==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():R==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.l.handleSignalActionToggleShortsPictureInPicture=function(){if(_.is().resolve(_.jv).pictureInPictureSupported()){var R=_.is().resolve(_.Bd);if(_.v("web_shorts_pip")){var A=_.is().resolve(_.jv);R.isShortsPipActive()?A.deactivate():A.isMiniplayerActive()||(_.f_().shortsPipActivation=!0,_.jXH(A))}}else(R=this.player)==null||R.togglePictureInPicture()};
_.Yh.Object.defineProperties(Iu.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.reelWatchSequenceResponse)!=null&&R.prevEntries)return this.processWatchSequence([].concat(_.py(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){if(_.v("web_enable_shorts_sequence_refactor"))return this.index>0?this.shortsProcessedPrevSequence:this.shortsProcessedPrevSequence&&this.prevShortsSequence&&this.shortsProcessedPrevSequence.length===this.prevShortsSequence.length?this.shortsProcessedPrevSequence:[].concat(_.py(this.prevShortsSequence));var R=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!R)return this.shortsProcessedPrevSequence;
if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var A=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.py(this.prevShortsSequence.slice(0,A)),[R],_.py(this.prevShortsSequence.slice(A+1)))}A=this.index+this.shortsProcessedPrevSequence.length;R.thumbnail=this.shortsProcessedPrevSequence[A].thumbnail;return[].concat(_.py(this.shortsProcessedPrevSequence.slice(0,A)),[R],_.py(this.shortsProcessedPrevSequence.slice(A+
1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.reelWatchSequenceResponse)!=null&&R.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var R=this;if(_.v("web_enable_shorts_sequence_refactor")){if(this.firstShortsData||this.shortsSequence){if(!this.shortsSequence&&this.firstShortsData)return[this.firstShortsData];var A;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((A=this.shortsProcessedSequence)==null?void 0:A.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var Y,P=this.getIndexInSequence(this.shortsSequence,_.n((Y=
this.firstShortsData)==null?void 0:Y.command,_.SI).videoId);if(P!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=P,_.fn.addLowPriorityJob(function(){R.transitionToVideoThrottle.fire(R.index);R.movePlayerToVideo(R.index)}));
return[].concat(_.py(this.shortsSequence))}return[this.firstShortsData].concat(_.py(this.shortsSequence))}}else if(this.data||this.shortsSequence){Y=this.getCurrentShort();if(!Y||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[Y];if(Y==null||!Y.reelNonVideoContentRenderer)if(A=this.getIndexInSequence(this.shortsSequence,_.n(this.currentEndpoint,_.SI).videoId),this.index===0&&A!==-1)return this.currentPlayerIndex=this.index=A,this.scrollToVideoThrottle.fire(this.index),
this.movePlayerToVideo(this.index),[].concat(_.py(this.shortsSequence.slice(0,this.index)),[Y],_.py(this.shortsSequence.slice(this.index+1)));if(this.shortsProcessedSequence){Y.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var E,z,c;A=((E=_.n((P=this.shortsProcessedSequence[0])==null?void 0:P.command,_.SI))==null?void 0:E.videoId)===((c=_.n((z=this.shortsSequence[0])==null?void 0:z.command,_.SI))==null?void 0:c.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.py(this.shortsProcessedSequence.slice(0,
this.index)),[Y],_.py(this.shortsSequence.slice(A)))}return[Y].concat(_.py(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var R=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;R&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(R)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 R,A;return this.index===((R=this.reelWatchSequenceResponse)==null?void 0:(A=R.entries)==null?void 0:A.length)}var Y;return!((Y=this.reelWatchSequenceResponse)==null?0:Y.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var R;(R=this.delayedActiveIndexUpdateDebouncer)==null||R.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return this.isShortPlayable()||((A=_.n((R=this.data)==null?void 0:R.watchStatus,_.zSZ))==null?void 0:(Y=A.style)==null?void 0:Y.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var R=this,A=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),Y;if((this.data||A)&&(((Y=this.data)==null?0:Y.engagementPanels)||this.isAd()||A)){A=!1;this.activePanel="shorts-comments-panel";var P;Y=_.x(((P=this.data)==null?void 0:P.engagementPanels)||[]);for(P=Y.next();!P.done;P=Y.next())if(this.getPanelIdentifier(P.value.engagementPanelSectionListRenderer)===this.activePanel){A=!0;break}if(this.isPersistentPanelActive){var E=
_.is().resolve(_.tC);_.Ua(_.fn,function(){E.showPanel(R.activePanel,void 0,void 0,void 0,null)},100)}var z;
P=[].concat(_.py(Object.values(((z=this.data)==null?void 0:z.engagementPanels)||{})));if(_.v("enable_preview_panel_for_shorts_search_suggested_action")){var c,M,N,y,m;((y=_.n((c=this.data)==null?void 0:(M=c.overlay)==null?void 0:(N=M.reelPlayerOverlayRenderer)==null?void 0:N.metapanel,_.wMS))==null?void 0:(m=y.metadataItems)==null?void 0:m.find(function(T){var Q,g;return((Q=_.n(T,YAE))==null?void 0:(g=Q.icon)==null?void 0:g.iconType)==="SEARCH"}))!==void 0&&P.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}z=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);c=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return z===void 0&&c===void 0||(z==null?0:z.isDisabled)||(c==null?void 0:c.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!A?(A=P==null?void 0:P.findIndex(function(T){var Q,
g;return((Q=T.engagementPanelSectionListRenderer)==null?void 0:(g=Q.identifier)==null?void 0:g.tag)==="shorts-comments-panel"}),A===-1||A===void 0||P!=null&&P.splice(A,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.vk("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.vk("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:_.vk("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.vk("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(_.py(Object.values(P||
{})))):P}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.shortsProcessedSequence)==null?void 0:R[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var R=this,A,Y,P;if((A=this.playerData)==null?0:(Y=A.playabilityStatus)==null?0:(P=Y.errorScreen)==null?0:P.playerInterstitialRenderer)return _.fn.addLowPriorityJob(function(){R.movePlayerToVideo(R.index)}),this.playerData.playabilityStatus.errorScreen;
var E,z;return((E=this.data)==null?void 0:E.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((z=this.data)==null?0:z.watchStatus)&&_.n(this.data.watchStatus,_.S0A)?(_.fn.addLowPriorityJob(function(){R.movePlayerToVideo(R.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Yh.Object.defineProperties(Iu,{template:{configurable:!0,enumerable:!0,get:function(){if(EZ$===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-backgrounds="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);EZ$=R}R=EZ$;return R}}});
Iu.prototype.onNextButtonDataChange=Iu.prototype.onNextButtonDataChange;Iu.prototype.onPrevButtonDataChange=Iu.prototype.onPrevButtonDataChange;Iu.prototype.onPersistentPanelActiveChanged=Iu.prototype.onPersistentPanelActiveChanged;Iu.prototype.lazyUpdateMiniplayerData=Iu.prototype.lazyUpdateMiniplayerData;Iu.prototype.onShortsPipActiveChanged=Iu.prototype.onShortsPipActiveChanged;Iu.prototype.setActiveIndex=Iu.prototype.setActiveIndex;Iu.prototype.graftNvcRenderer=Iu.prototype.graftNvcRenderer;
Iu.prototype.graftClientVisualElements=Iu.prototype.graftClientVisualElements;Iu.prototype.onActiveChanged=Iu.prototype.onActiveChanged;Iu.prototype.onShortsDismiss=Iu.prototype.onShortsDismiss;Iu.prototype.onShortUndoDismiss=Iu.prototype.onShortUndoDismiss;Iu.prototype.playerDataChanged=Iu.prototype.playerDataChanged;Iu.prototype.afterPlayerStarted=Iu.prototype.afterPlayerStarted;Iu.prototype.updateReelWatchSequenceResponse=Iu.prototype.updateReelWatchSequenceResponse;
Iu.prototype.unhideCurrentOverlay=Iu.prototype.unhideCurrentOverlay;Iu.prototype.onServiceRequestCompleted=Iu.prototype.onServiceRequestCompleted;Iu.prototype.engagementPanelsChanged=Iu.prototype.engagementPanelsChanged;Iu.prototype.onFullscreenChange=Iu.prototype.onFullscreenChange;Iu.prototype.onResize=Iu.prototype.onResize;Iu.prototype.setFirstShortsData=Iu.prototype.setFirstShortsData;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Iu.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.wd.YtPageBehavior),_.k("design:type",Object)],Iu.prototype,"ytPageBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Iu.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],Iu.prototype,"ironResizableBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],Iu.prototype,"ytdDismissibleItemBehavior",void 0);
_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Iu.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Iu.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"playerData",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"reelWatchSequenceResponse",void 0);
_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"cachedReelWatchSequenceResponse",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"cachedSequenceParams",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"cachedSequenceProvider",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"currentEndpoint",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"nextButtonData",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"prevButtonData",void 0);
_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"isPreviousPageShorts",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"index",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"delayedActiveIndex",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"playablePreviousIndex",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"player",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"isPlayerPaused",void 0);
_.C([_.S({selector:Klb}),_.k("design:type",Object)],Iu.prototype,"isPlayerStarted",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"intersectionObserver",void 0);_.C([_.S(),_.k("design:type",Number)],Iu.prototype,"cinematicsInitializeJobId",void 0);_.C([_.S(),_.k("design:type",Number)],Iu.prototype,"updateMiniplayerDataJobId",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"fitToVisibleBounds",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"pageSubtype",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Iu.prototype,"enablePreviousContinuation",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"shortsPipEnabled",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"isDark",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"shortsViewTransitions",void 0);
_.C([_.S({selector:_.zt,reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"isFullscreen",void 0);_.C([_.S({selector:_.ix,reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"isShortsPipActive",void 0);_.C([_.nG("#shorts-inner-container"),_.k("design:type",HTMLElement)],Iu.prototype,"shortsInnerContainer",void 0);_.C([_.nG("#back-nav-button ytd-button-renderer"),_.k("design:type",_.gI)],Iu.prototype,"backNavButton",void 0);
_.C([_.nG("#shorts-container"),_.k("design:type",HTMLElement)],Iu.prototype,"shortsContainer",void 0);_.C([_.Uy("error-screen"),_.k("design:type",HTMLElement)],Iu.prototype,"errorScreenContainer",void 0);_.C([_.Uy("player"),_.k("design:type",Object)],Iu.prototype,"playerElement",void 0);_.C([_.Uy("shorts-cinematic-container"),_.k("design:type",HTMLElement)],Iu.prototype,"shortsCinematicContainer",void 0);
_.C([_.Uy("initial-player-container"),_.k("design:type",HTMLElement)],Iu.prototype,"initialPlayerContainer",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"buttonOverride",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"anchoredPanelActive",void 0);_.C([_.S(),_.k("design:type",String)],Iu.prototype,"activePanel",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"isActive",void 0);
_.C([_.S({selector:IIe,reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"smallScreenPersistentPanel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"isPersistentPanelActive",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"smallScreenSqueezeBack",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"enableScrollIntoViewCenter",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"formatFirst",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"enableFlexibleOverlay",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Iu.prototype,"useAspectRatio",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"panelContainer",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"overlayContainer",void 0);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"isShortsInitialized",void 0);
_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"firstShortsData",void 0);_.C([_.X("reelWatchSequenceResponse"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iu.prototype,"prevShortsSequence",null);_.C([_.X("data","prevShortsSequence"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iu.prototype,"shortsProcessedPrevSequence",null);_.C([_.X("reelWatchSequenceResponse"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iu.prototype,"shortsSequence",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"setFirstShortsData",null);_.C([_.X("data","shortsSequence","firstShortsData"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iu.prototype,"shortsProcessedSequence",null);
_.C([_.S({reflectToAttribute:!0}),_.X("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Iu.prototype,"isUpArrowHidden",null);_.C([_.S({reflectToAttribute:!0}),_.X("reelWatchSequenceResponse","index","endOfNextContinuation"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Iu.prototype,"isDownArrowHidden",null);
_.C([_.S(),_.X("index"),_.k("design:type",Number),_.k("design:paramtypes",[])],Iu.prototype,"activeIndex",null);_.C([_.X("isShortPlayable","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Iu.prototype,"shouldRenderOfflineContent",null);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onResize",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iu.prototype,"anchoredEngagementPanels",null);
_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"watchWhileEngagementPanels",void 0);_.C([_.vZ("isFullscreen"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onFullscreenChange",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"engagementPanelsChanged",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],Iu.prototype,"onServiceRequestCompleted",null);_.C([_.X("data","shortsSequence","index"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iu.prototype,"activeReel",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"unhideCurrentOverlay",null);
_.C([_.vZ("currentEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"updateReelWatchSequenceResponse",null);_.C([_.vZ("isPlayerStarted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"afterPlayerStarted",null);_.C([_.X("playerData","reelWatchSequenceResponse","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Iu.prototype,"errorScreen",null);
_.C([_.X("errorScreen"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Iu.prototype,"hasError",null);_.C([_.vZ("playerData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Iu.prototype,"playerDataChanged",null);_.C([_.Qa("yt-dismissible-item-undo-feedback"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onShortUndoDismiss",null);
_.C([_.Qa("yt-disable-lockup-interaction"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],Iu.prototype,"onShortsDismiss",null);_.C([_.Ul("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onActiveChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"graftClientVisualElements",null);
_.C([_.vZ("currentPlayerIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"graftNvcRenderer",null);_.C([_.vZ("index"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"setActiveIndex",null);_.C([_.vZ("isShortsPipActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onShortsPipActiveChanged",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"lazyUpdateMiniplayerData",null);_.C([_.S(),_.k("design:type",Object)],Iu.prototype,"onOverlayDensityChanged",void 0);_.C([_.vZ("isPersistentPanelActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onPersistentPanelActiveChanged",null);
_.C([_.vZ("index","data","isUpArrowHidden"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onPrevButtonDataChange",null);_.C([_.vZ("index","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Iu.prototype,"onNextButtonDataChange",null);_.C([_.F({is:"ytd-shorts"})],Iu);_.UV.registerService(_.te3,Iu);
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("JzFVk");
var D5G;var U5F;var uH=function(){return _.K.apply(this,arguments)||this};
_.H(uH,_.K);uH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
uH.prototype.computeBlueBottomLink=function(R){return R};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],uH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uH.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uH.prototype,"data",void 0);_.C([_.S({computed:"computeIcon_(data.bottomIcon)"}),_.k("design:type",String)],uH.prototype,"bottomIcon",void 0);
_.C([_.S({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.k("design:type",Boolean)],uH.prototype,"enableBlueBottomLink",void 0);_.C([_.F({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],uH);
_.B(uH,"ytd-web-answer-renderer",function(){if(U5F!==void 0)return U5F;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return U5F=R},{mode:_.Nf("kevlar_poly_si_batch_j035")?1:2});var $5o;var e6=function(){var R=_.K.apply(this,arguments)||this;R.hasChipBar=!1;return R};
_.H(e6,_.K);e6.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}}};
e6.prototype.computeHasChipBar=function(R){return!(R==null||!R.chipBar)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],e6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],e6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],e6.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.k("design:type",Object)],e6.prototype,"hasChipBar",void 0);_.C([_.F({is:"ytd-search-header-renderer",disableElementRegistration:!0})],e6);
_.B(e6,"ytd-search-header-renderer",function(){if($5o!==void 0)return $5o;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return $5o=R},{mode:1});var XWN;var qy=function(){return _.K.apply(this,arguments)||this};
_.H(qy,_.K);qy.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],qy.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-page-continuation"})],qy);
_.B(qy,"ytd-page-continuation",function(){if(XWN!==void 0)return XWN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return XWN=R},{mode:1});var SjG;var ITf;var KGf;var Lt=function(){return _.K.apply(this,arguments)||this};
_.H(Lt,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Lt.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Lt.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Lt);
_.B(Lt,"ytd-watch-card-one-vs-one-event",function(){if(KGf!==void 0)return KGf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return KGf=R},{mode:1});var dK=function(){return _.K.apply(this,arguments)||this};
_.H(dK,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dK.prototype,"data",void 0);_.C([_.F({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],dK);
_.B(dK,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(ITf!==void 0)return ITf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ITf=R},{mode:1});var WG9;var Ru=function(){return _.K.apply(this,arguments)||this};
_.H(Ru,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ru.prototype,"data",void 0);_.C([_.F({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],Ru);
_.B(Ru,"ytd-banner-and-box-hero-image-renderer",function(){if(WG9!==void 0)return WG9;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return WG9=R},{mode:1});var jhQ;var AU=function(){var R=_.K.apply(this,arguments)||this;R.modern=_.v("web_modern_buttons");return R};
_.H(AU,_.K);AU.prototype.computeIcon=function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.icon)==null?void 0:A.iconType;if(Y)return _.m0(Y)};
AU.prototype.computeButtonShape=function(){var R;return{buttonText:_.R4((R=this.data)==null?void 0:R.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Yh.Object.defineProperties(AU.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"}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],AU.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],AU.prototype,"modern",void 0);_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.X("data.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],AU.prototype,"buttonColor",null);
_.C([_.F({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],AU);
_.B(AU,"ytd-call-to-action-button-renderer",function(){if(jhQ!==void 0)return jhQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return jhQ=R},{mode:1});var b80;var YG=function(){return _.K.apply(this,arguments)||this};
_.H(YG,_.K);YG.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Mo(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.MH(this.data.leftThumbnail.thumbnails,216)+")")};
YG.prototype.onLeftThumbnailChanged=YG.prototype.onLeftThumbnailChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],YG.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],YG.prototype,"data",void 0);_.C([_.vZ("data.leftThumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YG.prototype,"onLeftThumbnailChanged",null);_.C([_.F({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],YG);
_.B(YG,"ytd-collage-hero-image-renderer",function(){if(b80!==void 0)return b80;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return b80=R},{mode:1});var fTf;var P_=function(){return _.K.apply(this,arguments)||this};
_.H(P_,_.K);P_.prototype.computeStyle=function(R){return R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],P_.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.k("design:type",String)],P_.prototype,"componentStyle",void 0);_.C([_.F({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],P_);
_.B(P_,"ytd-single-hero-image-renderer",function(){if(fTf!==void 0)return fTf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fTf=R},{mode:1});var pWQ;var Ec=function(){return _.K.apply(this,arguments)||this};
_.H(Ec,_.K);_.l=Ec.prototype;
_.l.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:_.v("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.l.computeSubtitle=function(R){if(this.data){var A;if(this.data.upcomingEventData){R=_.R4(R.subtitle);var Y=Number(this.data.upcomingEventData.startTime);isNaN(Y)||(A=_.dF(_.Xk(R,Y)))}else A=R.subtitle;return A}};
_.l.onHeroTap=function(R){R.preventDefault();var A=this.data&&this.data.navigationEndpoint;!A||!_.RP(_.Ah(R),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.RP(_.Ah(R),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.v("kevlar_watchcard_hero_video_renderer_killswitch")?_.xo(this.hostElement,"yt-navigate",{navigationEndpoint:A}):this.ytComponentBehavior.resolveCommand(A))};
_.l.computeHeroTabIndex=function(R){return R&&R.simpleText?-1:0};
_.l.computeHeroRole=function(R){return R&&R.simpleText?"":"link"};
_.l.computeIsReminderButtonPresent=function(R){return!(!R||!R.reminderButton)};
_.l.computeHideBottomItems=function(R){return!(this.computeIsReminderButtonPresent(R)||R.subtitle)};
_.l.dataChanged=function(){var R=this.get("data.buttons.buttonRenderer.serviceEndpoint"),A;((A=_.n(R==null?void 0:R.commandMetadata,_.BM))==null?0:A.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(R)};
Ec.prototype.dataChanged=Ec.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ec.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ec.prototype,"data",void 0);
_.C([_.S({computed:"computeSubtitle(data)"}),_.k("design:type",String)],Ec.prototype,"subtitle",void 0);_.C([_.S({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ec.prototype,"isReminderButtonPresent",void 0);_.C([_.S({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ec.prototype,"hideBottomItems",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ec.prototype,"dataChanged",null);_.C([_.F({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],Ec);
_.B(Ec,"ytd-watch-card-hero-video-renderer",function(){if(pWQ!==void 0)return pWQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return pWQ=R},{mode:1});var FGi;var z7=function(){return _.K.apply(this,arguments)||this};
_.H(z7,_.K);_.l=z7.prototype;_.l.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"}}}};
_.l.computeTitleBadges=function(R){return R?[R]:[]};
_.l.computeHeaderStyle=function(R){return R?R.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.l.computeAvatarAriaLabel=function(R){if(R){var A,Y,P,E;return(E=(A=R.avatar)==null?void 0:(Y=A.accessibility)==null?void 0:(P=Y.accessibilityData)==null?void 0:P.label)!=null?E:_.R4(R==null?void 0:R.title)}};
_.l.computeAvatarHeight=function(R){return R==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.l.computeBadgeRowClass=function(R){return(R==null?0:R[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],z7.prototype,"data",void 0);_.C([_.S({computed:"computeTitleBadges(data.titleBadge)"}),_.k("design:type",Array)],z7.prototype,"titleBadges",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.k("design:type",String)],z7.prototype,"headerStyle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.k("design:type",String)],z7.prototype,"badgeRowClass",void 0);_.C([_.F({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],z7);
_.B(z7,"ytd-watch-card-rich-header-renderer",function(){if(FGi!==void 0)return FGi;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return FGi=R},{mode:1});var BN0;var aTn;var iT=function(){return _.K.apply(this,arguments)||this};
_.H(iT,_.K);iT.prototype.onMetadataTap=function(R){var A=this.data&&this.data.navigationEndpoint;A&&!_.RP(_.Ah(R),this.hostElement,["A".toString()])&&_.xo(this.hostElement,"yt-navigate",{endpoint:A})};
_.Yh.Object.defineProperties(iT.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 R;if(this.data.upcomingEventData){var A=_.R4(this.data.subtitle),Y=Number(this.data.upcomingEventData.startTime);isNaN(Y)||(R=_.dF(_.Xk(A,Y)))}else R=this.data.subtitle;return R}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data.style"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],iT.prototype,"isCondensed",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],iT.prototype,"subtitle",null);
_.C([_.F({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],iT);
_.B(iT,"ytd-watch-card-compact-video-renderer",function(){if(aTn!==void 0)return aTn;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return aTn=R},{mode:1});var Cvi;var lT=function(){return _.K.apply(this,arguments)||this};
_.H(lT,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lT.prototype,"data",void 0);_.C([_.F({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],lT);
_.B(lT,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(Cvi!==void 0)return Cvi;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Cvi=R},{mode:1});var xG=function(){return _.K.apply(this,arguments)||this};
_.H(xG,_.K);xG.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}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],xG.prototype,"ytRendererStamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xG.prototype,"data",void 0);_.C([_.F({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],xG);
_.B(xG,"ytd-vertical-watch-card-list-renderer",function(){if(BN0!==void 0)return BN0;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return BN0=R},{mode:1});var hNf;var c_=function(){var R=_.K.apply(this,arguments)||this;R.ariaExpanded="false";return R};
_.H(c_,_.K);_.l=c_.prototype;_.l.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.l.dataChanged=function(){var R;this.currentSeasonIndex=((R=this.data)==null?void 0:R.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.l.computeEpisodesInfo=function(R,A,Y){if(R!==void 0&&A.length===R.length)return R[Y]};
_.l.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.l.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.l.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.l.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.l.getUppercaseSimpleString=function(R){return this.ytRendererBehavior.getSimpleString(R).toUpperCase()};
_.l.updateCurrentSeasonIndexFromBinding=function(R){this.currentSeasonIndex=R.detail.value};
c_.prototype.onIronOverlayClosed=c_.prototype.onIronOverlayClosed;c_.prototype.currentSeasonIndexChanged=c_.prototype.currentSeasonIndexChanged;c_.prototype.dataChanged=c_.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],c_.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",String)],c_.prototype,"label",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],c_.prototype,"currentSeasonIndex",void 0);_.C([_.S({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.k("design:type",Object)],c_.prototype,"episodesInfo",void 0);_.C([_.S({value:"false"}),_.k("design:type",Object)],c_.prototype,"ariaExpanded",void 0);_.C([_.nG("#lists"),_.k("design:type",Object)],c_.prototype,"lists",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c_.prototype,"dataChanged",null);_.C([_.Ul("currentSeasonIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c_.prototype,"currentSeasonIndexChanged",null);_.C([_.Qa("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],c_.prototype,"onIronOverlayClosed",null);
_.C([_.F({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],c_);
_.B(c_,"ytd-watch-card-section-dropdown-renderer",function(){if(hNf!==void 0)return hNf;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="EXPAND" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return hNf=R},{mode:1});var oYQ;var Oc=function(){var R=_.K.apply(this,arguments)||this;R.isSearch=!1;return R};
_.H(Oc,_.K);Oc.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}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Oc.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Oc.prototype,"isSearch",void 0);_.C([_.F({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Oc);
_.B(Oc,"ytd-watch-card-section-sequence-renderer",function(){if(oYQ!==void 0)return oYQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return oYQ=R},{mode:1});var kwW=_.E5(function(R){return _.V("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.V(_.ni,{data:function(){return R.data().ctaButton}},{buttonViewModel:_.Is}),_.V(_.NU,{text:function(){return R.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"lk");
kwW.idomCompat=!0;_.Ow(kwW,"ytd-button-banner-view-model",{props:{data:_.VY}});var MZ=function(){var R=_.K.apply(this,arguments)||this;R.isSearch=!1;return R};
_.H(MZ,_.K);
MZ.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"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],MZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],MZ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],MZ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],MZ.prototype,"rounded",void 0);_.C([_.S(),_.k("design:type",Object)],MZ.prototype,"isSearch",void 0);
_.C([_.F({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],MZ);
_.B(MZ,"ytd-universal-watch-card-renderer",function(){if(SjG!==void 0)return SjG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return SjG=R},{mode:1});var GwG;_.Ow(_.E5(function(R){var A=R.data;var Y;R=!((Y=_.is().resolve(_.z3(_.dU)))==null||!Y());Y={};return _.V("overview-message-view-model",{class:_.To("ytwOverviewMessageViewModelHost",(Y.ytwOverviewMessageViewModelDarkBackground=R,Y.ytwOverviewMessageViewModelLightBackground=!R,Y))},_.V(_.J,{cond:function(){return A().primaryImage},
then:function(P){return _.V(_.P1,{data:P,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.V(_.J,{cond:function(){return A().primaryText},
then:function(){return _.V("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.V(_.NU,{text:function(){return A().primaryText}}))}}),_.V(_.J,{cond:function(){return A().secondaryText},
then:function(){return _.V("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.V(_.NU,{text:function(){return A().secondaryText}}))}}))},"mk"),"overview-message-view-model",{props:{data:_.VY}});_.Ow(_.sTN,"ytd-overview-answer-view-model",{props:{data:_.VY}});var sc=function(){return _.K.apply(this,arguments)||this};
_.H(sc,_.K);sc.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"}}}};
sc.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],sc.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sc.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],sc.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sc.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],sc.prototype,"isSearch",void 0);
_.C([_.F({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],sc);
_.B(sc,"ytd-secondary-search-container-renderer",function(){if(GwG!==void 0)return GwG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return GwG=R},{mode:1});var Z8j;var NZ=function(){var R=_.K.apply(this,arguments)||this;R.renderSecondarySearchContainer=!1;R.isSearch=!1;return R};
_.H(NZ,_.K);_.l=NZ.prototype;_.l.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.l.created=function(){var R=this;this.boundStampSecondarySearchContainerIfFits=function(){R.stampSecondarySearchContainerIfFits()};
_.BD("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.l.computeIsSearchFrictionPage=function(R){var A,Y,P,E,z;R=R==null?void 0:(A=R.primaryContents)==null?void 0:(Y=A.sectionListRenderer)==null?void 0:(P=Y.contents)==null?void 0:(E=P[0])==null?void 0:(z=E.itemSectionRenderer)==null?void 0:z.contents;if(!R)return!1;A=_.x(R);for(Y=A.next();!Y.done;Y=A.next())if(P=void 0,(P=Y.value)==null?0:P.searchFrictionViewModel)return!0;return!1};
_.l.computeShowSecondaryColumn=function(R,A){return!!(A&&A.secondaryContents&&R)};
_.l.activeChanged=function(){var R=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.T2(this,this.debounceStampSecondarySearchContainerIfFits)),_.wg(function(){R.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.T2(this,this.debounceStampSecondarySearchContainerIfFits))};
_.l.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.l.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.l.debounceStampSecondarySearchContainerIfFits=function(){_.u5(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.l.onRetrieveLocation=function(R,A){A.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);R.stopPropagation()};
_.l.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
NZ.prototype.dataChanged=NZ.prototype.dataChanged;NZ.prototype.onRetrieveLocation=NZ.prototype.onRetrieveLocation;NZ.prototype.persistentGuideChanged=NZ.prototype.persistentGuideChanged;NZ.prototype.activeChanged=NZ.prototype.activeChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],NZ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],NZ.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],NZ.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],NZ.prototype,"ironResizableBehavior",void 0);_.C([_.S(),_.k("design:type",Boolean)],NZ.prototype,"active",void 0);_.C([_.S(),_.k("design:type",Object)],NZ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.v("enable_desktop_search_bigger_thumbs")}}),
_.k("design:type",Boolean)],NZ.prototype,"useBiggerThumbs",void 0);_.C([_.S({reflectToAttribute:!0,value:function(){return _.OK("desktop_search_bigger_thumbs_style")}}),
_.k("design:type",String)],NZ.prototype,"biggerThumbsStyle",void 0);_.C([_.S(),_.k("design:type",Object)],NZ.prototype,"renderSecondarySearchContainer",void 0);_.C([_.S({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.k("design:type",Boolean)],NZ.prototype,"showSecondaryColumn",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.k("design:type",Boolean)],NZ.prototype,"isSearchFrictionPage",void 0);
_.C([_.S(),_.k("design:type",Object)],NZ.prototype,"isSearch",void 0);_.C([_.vZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NZ.prototype,"activeChanged",null);_.C([_.vZ("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NZ.prototype,"persistentGuideChanged",null);
_.C([_.Qa("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],NZ.prototype,"onRetrieveLocation",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NZ.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],NZ);
_.B(NZ,"ytd-two-column-search-results-renderer",function(){if(Z8j!==void 0)return Z8j;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Z8j=R},{mode:1});var VV=function(){var R=_.K.apply(this,arguments)||this;R.hasSearchHeader=!1;R.hasSecondaryContent=!1;R.hasBiggerThumbs=_.v("enable_desktop_search_bigger_thumbs");R.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return R};
_.H(VV,_.K);_.l=VV.prototype;_.l.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:_.xR(["aa","eocs"])}}};
_.l.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.l.loadPage_=function(R){this.initCsi();R&&(this.data=R,_.BD("REFINEMENTS_TUPLE",["FromSearchResponse",R.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.Ln(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.l.initCsi=function(){_.ta("results",["ol","cpt"])};
_.l.updateTitle=function(){var R=_.wz(window.location.href,"q");R||(R=_.wz(window.location.href,"search_query"));_.xo(this.hostElement,"yt-update-title",R||"")};
_.l.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.l.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.v("web_srp_data_changed_terminate_imp_killswitch")||_.OC(this.hostElement,"yt-terminate-video-preview-action")};
_.l.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.l.computeHasSearchHeader=function(R){var A;R=R==null?void 0:(A=R.header)==null?void 0:A.searchHeaderRenderer;return!!R&&(!!R.searchFilterButton||!!R.chipBar)};
_.l.computeHasSecondaryContent=function(R){var A,Y;return!!(R==null?0:(A=R.contents)==null?0:(Y=A.twoColumnSearchResultsRenderer)==null?0:Y.secondaryContents)};
_.Yh.Object.defineProperties(VV,{template:{configurable:!0,enumerable:!0,get:function(){if(D5G===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);D5G=R}R=D5G;return R}}});
VV.prototype.onReloadContinuationFinish=VV.prototype.onReloadContinuationFinish;VV.prototype.dataChanged=VV.prototype.dataChanged;_.C([_.U(_.wd.YtPageBehavior),_.k("design:type",Object)],VV.prototype,"ytPageBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],VV.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],VV.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],VV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],VV.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],VV.prototype,"data",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],VV.prototype,"monitorScroll",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],VV.prototype,"hasSearchHeader",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],VV.prototype,"hasSecondaryContent",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],VV.prototype,"hasBiggerThumbs",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VV.prototype,"dataChanged",null);
_.C([_.Qa("yt-reload-continuation-finish"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VV.prototype,"onReloadContinuationFinish",null);_.C([_.F({is:"ytd-search"})],VV);_.UV.registerService(_.Z4J,VV);
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("h8y2qb");
var BTf=function(R){if(R=_.Dk3(R)){var A;(A=R.sources)!=null&&A[0]?(A=_.$kS(R),A=A<1?"VERTICAL":A>1?"HORIZONTAL":"SQUARE"):A=void 0;return A}},u$=function(R){_.K$.call(this,"upload");
this.opts.query=R},CTW=function(R,A){return _.V(abm,{data:R,
onYtNavigate:A})},hW0=function(R,A){return _.mc(R.entities,"pageHeaderEntity",A)},k7o=function(R,A){return R.map(function(Y){if(Y.tabRenderer)return oGW(Y.tabRenderer);
if(Y.expandableTabRenderer&&A){var P=Y.expandableTabRenderer;return{customTabRenderable:function(){return A(P)}}}return{}})},oGW=function(R){return{identifier:R.tabIdentifier,
aTagConfig:_.k9({innertubeCommand:R.endpoint,forceNewState:!0}),title:R.title,selected:R.selected,disabled:R.unselectable,icon:R.icon}},G7G=function(R){return _.cK({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:R})},ZeW=function(R){if(!_.ic(document,"gtm-noscript")){var A=document.createElement("noscript");
A.id="gtm-noscript";A.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+R+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(A)}};_.Pb(u$,_.K$);u$.prototype.JSC$10066_setLabel=function(R){u$.superClass_.JSC$10066_setLabel.call(this,R);return this};
u$.prototype.addUploadMetadata=function(R,A){u$.superClass_.addUploadMetadata.call(this,R,A);return this};var t2Y=function(R){if(R!=="youtubebanner"&&R!=="youtube-channel-banner")throw Error("wo");u$.call(this,R)};
_.H(t2Y,u$);t2Y.prototype.JSC$10066_setLabel=function(R){u$.prototype.JSC$10066_setLabel.call(this,R);return this};
t2Y.prototype.addUploadMetadata=function(R,A){u$.prototype.addUploadMetadata.call(this,R,A);return this};var w_Q=[_.Cr,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(R){_.S0(R).path[0]!==this&&(this.resetLayout(),R.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var R=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.TJ(this._layoutDebouncer,_.Wc,R);_.QH(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var R=this;requestAnimationFrame(function(){R.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(R){this.resizerShouldNotify(R)&&this._notifyDescendant(R)},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 uK9=[_.UVA,{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(R,A){var Y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[R];if(!Y)throw new ReferenceError(this._getUndefinedMsg(R));R=this._boundEffect(Y,A||{});R.setUp();return R},
_effectsChanged:function(R,A,Y){this._tearDownEffects();R&&Y&&(R.split(" ").forEach(function(P){var E;P!==""&&((E=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[P])?this._effects.push(this._boundEffect(E,A[P])):console.warn(this._getUndefinedMsg(P)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(R,A){A=A||{};var Y=parseFloat(A.startsAt||0),P=parseFloat(A.endsAt||1),E=P-Y,z=function(){};
P=Y===0&&P===1?R.run:function(c,M){R.run.call(this,Math.max(0,(c-Y)/E),M)};
return{setUp:R.setUp?R.setUp.bind(this,A):z,run:R.run?P.bind(this):z,tearDown:R.tearDown?R.tearDown.bind(this):z}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(R){R.setUp()!==!1&&this._effectsRunFn.push(R.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(R){R.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(R,A){this._effectsRunFn&&this._effectsRunFn.forEach(function(Y){Y(R,A)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var R=this._clampedScrollTop;this._updateScrollState(R);this.threshold>0&&this._setThresholdTriggered(R>=this.threshold)}},
_getDOMRef:function(R){console.warn("_getDOMRef","`"+R+"` is undefined")},
_getUndefinedMsg:function(R){return"Scroll effect `"+R+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+R+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("xo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(R){var A={};R=parseFloat(R.scalar);A.background=this._getDOMRef("background");A.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");A.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");A.deltaBg=A.backgroundFrontLayer.offsetHeight-A.background.offsetHeight;A.deltaBg===0?(isNaN(R)&&(R=.8),A.deltaBg=(this._dHeight||0)*R):(isNaN(R)&&(R=
1),A.deltaBg*=R);this._fxParallaxBackground=A},
run:function(R){var A=this._fxParallaxBackground;this.transform("translate3d(0px, "+A.deltaBg*Math.min(1,R)+"px, 0px)",A.backgroundFrontLayer);A.backgroundRearLayer&&this.transform("translate3d(0px, "+A.deltaBg*Math.min(1,R)+"px, 0px)",A.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var eWW;var qcG;var LFg=function(){};
_.l=LFg.prototype;_.l._scrollTargetChanged=function(){};
_.l.scroll=function(){};
_.l._isValidScrollTarget=function(){};
_.l._toggleScrollListener=function(){};
_.l.toggleScrollListener=function(){};
_.l.createEffect=function(){};
_.l._effectsChanged=function(){};
_.l._layoutIfDirty=function(){};
_.l._boundEffect=function(){};
_.l._setUpEffect=function(){};
_.l._tearDownEffects=function(){};
_.l._runEffects=function(){};
_.l._scrollHandler=function(){};
_.l._scrollStateChanged=function(){};
_.l._getUndefinedMsg=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l._appResetLayoutHandler=function(){};
_.l.resetLayout=function(){};
_.l._notifyLayoutChanged=function(){};
_.l._notifyDescendantResize=function(){};
_.l._setThresholdTriggered=function(){};
LFg=_.jz({_template:function(){if(qcG!==void 0)return qcG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;eWW===void 0&&(eWW=document.createElement("template"));var P=eWW;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return qcG=R},
is:"tp-yt-app-header",behaviors:[uK9,w_Q],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 R=_.S0(this.$.slot).getDistributedNodes(),A=0,Y;Y=R[A];A++)if(Y.nodeType===Node.ELEMENT_NODE)if(Y.hasAttribute("sticky")){this._stickyElRef=Y;break}else this._stickyElRef||(this._stickyElRef=Y);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var R=this._clampedScrollTop,A=this._height===0||R===0,Y=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;A||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();A?this._updateScrollState(R,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=Y}},
_updateScrollState:function(R,A){if(this._height!==0){var Y=0,P=this._top;var E=this._maxHeaderTop;var z=R-this._lastScrollTop,c=Math.abs(z),M=R>this._lastScrollTop,N=performance.now();this._mayMove()&&(Y=this._clamp(this.reveals?P+z:R,0,E));R>=this._dHeight&&(Y=this.condenses&&!this.fixed?Math.max(this._dHeight,Y):Y,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&c<100){if(N-this._initTimestamp>300||this._wasScrollingDown!==M)this._initScrollTop=R,this._initTimestamp=N;R>=E&&
(Math.abs(this._initScrollTop-R)>30||c>10?(M&&R>=E?Y=E:!M&&R>=this._dHeight&&(Y=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((Y-P)/(z/(N-this._lastTimestamp)),0,300)+"ms"):Y=this._top)}E=this._dHeight===0?R>0?1:0:Y/this._dHeight;A||(this._lastScrollTop=R,this._top=Y,this._wasScrollingDown=M,this._lastTimestamp=N);if(A||E!==this._progress||P!==Y||R===0)this._progress=E,this._runEffects(E,Y),this._transformHeader(Y)}},
_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(R){this.translate3d(0,-R+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&R>=this._stickyElTop?Math.min(R,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(R,A,Y){return Math.min(Y,Math.max(A,R))},
_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),_.S0(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(R){switch(R){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.S0(this).querySelector("[main-title]");case "condensedTitle":return _.S0(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var dZj;var RZY;_.jz({_template:function(){if(RZY!==void 0)return RZY;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;dZj===void 0&&(dZj=document.createElement("template"));var P=dZj;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return RZY=R},
is:"tp-yt-app-header-layout",behaviors:[w_Q],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.S0(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var R=this.header;if(this.isAttached&&R){this.$.wrapper.classList.remove("initializing");R.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)R.style.left=
"",R.style.right="";else{var A=this.getBoundingClientRect(),Y=document.documentElement.clientWidth-A.right;R.style.left=A.left+"px";R.style.right=Y+"px"}A=this.$.contentContainer.style;Y=R.offsetHeight;R.fixed&&!R.condenses&&this.hasScrollingRegion?(A.marginTop=Y+"px",A.paddingTop=""):(A.paddingTop=Y+"px",A.marginTop="")}}});var A5i=new _.lU("alertCommand");var YIj=new _.lU("manageLabsStateCommand");var PYG=new _.lU("inlineFormRenderer");var ee=new _.lU("playlistSidebarPrimaryInfoRenderer");var E3f=new _.lU("productDetailsThumbnailRenderer"),zZN=new _.lU("productDetailsVariantRenderer"),iTi=new _.lU("productDetailsVariantOptionRenderer"),lDi=new _.lU("productDetailsOffersContainerRenderer"),xO9=new _.lU("productDetailsOfferRenderer");var c5F=new _.lU("shoppingFlaggingRenderer");var OT0=new _.lU("playlistBylineRenderer");var MgQ=new _.lU("insertChannelTabCommand");var qD=function(){return _.rg.apply(this,arguments)||this};
_.H(qD,_.rg);_.l=qD.prototype;_.l.activeChanged=function(){if(this.active){var R=_.Mo(this.hostElement).querySelector("#header");R&&_.xo(R,"iron-resize");window.addEventListener("scroll",_.T2(this,this.onScroll))}else window.removeEventListener("scroll",_.T2(this,this.onScroll)),_.xo(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.l.guideVisibleChanged=function(){var R=_.Mo(this.hostElement).querySelector("#header");R&&_.xo(R,"iron-resize")};
_.l.onScroll=function(){var R=this;_.u5(this,"onScroll",function(){var A=_.Mo(R.hostElement).querySelector("#header");A&&A.polymerController&&(A=A.polymerController.getScrollState().progress===1?"standard":"seamed",_.xo(R.hostElement,"yt-request-panel-mode-change",{mode:A}))},10)};
_.l.tabsChanged=function(){if(this.tabs){for(var R=null,A=0,Y=this.tabs.length;A<Y;++A){var P=this.tabs[A].tabRenderer;if(P&&P.selected){R=A;break}}this.selected=R}};
_.l.onTabsActivate=function(R){_.xo(this.hostElement,"yt-navigate",{endpoint:this.tabs[R.detail.selected].tabRenderer.endpoint})};
qD.prototype.tabsChanged=qD.prototype.tabsChanged;qD.prototype.guideVisibleChanged=qD.prototype.guideVisibleChanged;qD.prototype.activeChanged=qD.prototype.activeChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qD.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],qD.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.S(),_.k("design:type",Array)],qD.prototype,"tabs",void 0);
_.C([_.S(),_.k("design:type",Object)],qD.prototype,"selected",void 0);_.C([_.S(),_.k("design:type",Boolean)],qD.prototype,"active",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],qD.prototype,"disableHeaderFluidWidth",void 0);_.C([_.vZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qD.prototype,"activeChanged",null);
_.C([_.vZ("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qD.prototype,"guideVisibleChanged",null);_.C([_.vZ("tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qD.prototype,"tabsChanged",null);_.C([_.Do()],qD);var sxo=[_.u.YtRendererBehavior,_.cf.YtdGuideStateAwareBehavior,qD.prototype];var NXY=2/3,Vgg=_.NV(130749),J50=function(R,A){var Y=this;this.element=R;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){Y.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:NXY,moveAction:function(P){Y.moveAction(P)},
triggerAction:function(){Y.element.isReloading=!0;_.ZL(_.rU(),{visualElement:Vgg});_.Qp.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:Y.element}})}}}};
_.Sm(_.rU(),Vgg,this.layer);this.gesture=new _.Dt(R,A,this.refreshConfig,"pan-down");this.attach()};
_.l=J50.prototype;_.l.attach=function(){this.gesture.attach()};
_.l.detach=function(){this.gesture.detach()};
_.l.reset=function(){this.element.close()};
_.l.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.l.moveAction=function(R){this.element.rotation=R*360};var y5f=_.NV(130750),L4=function(R,A,Y,P,E){var z=this;this.element=R;this.parent=Y;this.channelHeader=P;this.ytdReduxDispatch=E;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){z.tabsStartAtInPx=z.channelHeader.clientHeight-48;var c;(c=z.selectedTab)!=null&&c.title&&(c=_.is().resolve(_.z3(_.YH)))&&(c=c.getCurrentPage(),z.lastVisitedTabScrollPosition=c.getScrollTop(),z.previousTab&&
((z.lastVisitedTabScrollPosition===void 0?0:z.lastVisitedTabScrollPosition<z.channelHeader.clientHeight-48)?z.scrollPositionForTabs.has(z.selectedTab.title)&&z.scrollPositionForTabs.delete(z.selectedTab.title):z.scrollPositionForTabs.set(z.selectedTab.title,c.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:mOf(),triggerAction:function(){z.navigate(z.previousTab)},
moveAction:function(c,M){z.moveAction(c,M)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-mOf(),triggerAction:function(){z.navigate(z.nextTab)},
moveAction:function(c,M){z.moveAction(c,M)}}}};
_.Sm(_.rU(),y5f,this.layer);this.gesture=new _.Dt(R,A,this.tabConfig);this.attach()};
L4.prototype.attach=function(){this.gesture.attach()};
L4.prototype.detach=function(){this.gesture.detach()};
L4.prototype.tabsChanged=function(R){if(R){var A=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next()){Y=Y.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=Y);var P=void 0;if((P=Y)==null?0:P.selected)this.previousTab=A,this.selectedTab=Y;A=Y}A=this.gesture;R=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}});
A.config=R;this.scrollPositionNeedsUpdate=!0}};
L4.prototype.moveAction=function(R,A){if(!this.tabsElement){var Y;this.tabsElement=(Y=this.parent.header)==null?void 0:Y.tabsElement;A==="right"&&this.previousTab?_.b5D(_.C1.instance,this.previousTab.endpoint,{},""):A==="left"&&this.nextTab&&_.b5D(_.C1.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}Y=this.tabsElement._pos;A==="right"&&(R*=-1);this.tabsElement._positionBar(Y.width,Y.left*1+Y.width*R)};
var mOf=function(){var R,A;return(A=(R=_.is().resolve(_.YH).getCurrentPage())==null?void 0:R.clientWidth)!=null?A:0};
L4.prototype.navigate=function(R){this.element.data=void 0;if(R=R==null?void 0:R.endpoint)this.ytdReduxDispatch(G7G(!0)),_.ZL(_.rU(),{visualElement:y5f}),_.Qp.instance.resolveCommand({navigateAction:{endpoint:R}},{form:{element:this.element}})};var TXQ;var QxQ;var dd=function(){return _.K.apply(this,arguments)||this};
_.H(dd,_.K);dd.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],dd.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dd.prototype,"data",void 0);_.C([_.F({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],dd);
_.B(dd,"ytd-labs-edit-renderer",function(){if(QxQ!==void 0)return QxQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QxQ=R},{mode:1});var v39;var RT=function(){var R=_.K.apply(this,arguments)||this;R.dark=!1;R.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";R.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(RT,_.K);RT.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
RT.prototype.ready=function(){var R=document.documentElement.hasAttribute("dark");this.setBackgroundImage(R);this.dark=R};
RT.prototype.onDarkModeToggledAction=function(R){this.setBackgroundImage(R);this.dark=R};
RT.prototype.setBackgroundImage=function(R){_.ya(this.hostElement,{"--yt-labs-header-background":"url("+(R?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],RT.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],RT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],RT.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],RT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],RT.prototype,"dark",void 0);
_.C([_.F({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],RT);
_.B(RT,"ytd-labs-header-renderer",function(){if(v39!==void 0)return v39;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return v39=R},{mode:1});var g3G;var AL=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return R};
_.H(AL,_.K);AL.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"}}}}}};
AL.prototype.onYtToggleButton=function(R){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",R.detail.toggled)};
AL.prototype.onManageLabsState=function(R){if(R=_.n(R,YIj))R.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?R.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&R.labsItemId===this.data.labsItemId&&(R.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.OC(this.hostElement,"yt-check-labs-opted-in-state").some(function(A){return A})&&this.data.confirmationDialogCommand?_.NT(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.is().resolve(_.ls).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&R.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.is().resolve(_.ls).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
AL.prototype.onCheckLabsOptedInState=function(){var R=this.get("data.primaryButton.toggleButtonRenderer");return R?R.isToggled:!1};
_.Yh.Object.defineProperties(AL.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
AL.prototype.onYtToggleButton=AL.prototype.onYtToggleButton;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],AL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],AL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],AL.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],AL.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],AL.prototype,"itemStyle",null);_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],AL.prototype,"onYtToggleButton",null);_.C([_.F({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],AL);
_.B(AL,"ytd-labs-item-renderer",function(){if(g3G!==void 0)return g3G;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return g3G=R},{mode:1});var n3n;var HTF;var Y6=function(){return _.K.apply(this,arguments)||this};
_.H(Y6,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Y6.prototype,"data",void 0);_.C([_.F({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],Y6);
_.B(Y6,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(HTF!==void 0)return HTF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return HTF=R},{mode:1});var r5i;var P7=function(){return _.K.apply(this,arguments)||this};
_.H(P7,_.K);P7.prototype.observeSuperchatChip=function(){if(this.data){var R={"--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)};_.ya(this.hostElement,R)}};
P7.prototype.colorFromDecimal=function(R){return _.Zs(Number(R||0))};
P7.prototype.observeSuperchatChip=P7.prototype.observeSuperchatChip;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],P7.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],P7.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],P7.prototype,"observeSuperchatChip",null);_.C([_.F({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],P7);
_.B(P7,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(r5i!==void 0)return r5i;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return r5i=R},{mode:1});var EB=function(){return _.K.apply(this,arguments)||this};
_.H(EB,_.K);EB.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"}}}};
_.Yh.Object.defineProperties(EB.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],EB.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],EB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.zF),_.k("design:type",Object)],EB.prototype,"ytdDismissibleItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],EB.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],EB.prototype,"hideMessageBlock",null);
_.C([_.F({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],EB);
_.B(EB,"ytd-live-chat-history-entry-renderer",function(){if(n3n!==void 0)return n3n;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return n3n=R},{mode:1});var DOg;var zk=function(){return _.K.apply(this,arguments)||this};
_.H(zk,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zk.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zk.prototype,"data",void 0);_.C([_.F({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],zk);
_.B(zk,"ytd-channel-options-renderer",function(){if(DOg!==void 0)return DOg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return DOg=R},{mode:1});var UO9;var iH=function(){return _.K.apply(this,arguments)||this};
_.H(iH,_.K);iH.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iH.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],iH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iH.prototype,"data",void 0);_.C([_.F({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],iH);
_.B(iH,"ytd-settings-email-item-renderer",function(){if(UO9!==void 0)return UO9;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return UO9=R},{mode:1});var $OF;var lH=function(){return _.K.apply(this,arguments)||this};
_.H(lH,_.K);lH.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"}}}};
lH.prototype.getExpansionIcon=function(R){return R?"COLLAPSE":"EXPAND"};
lH.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Yh.Object.defineProperties(lH.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lH.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lH.prototype,"data",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],lH.prototype,"expanded",void 0);_.C([_.X("expanded"),_.k("design:type",String),_.k("design:paramtypes",[])],lH.prototype,"emailListExpanded",null);
_.C([_.nG("#options"),_.k("design:type",Object)],lH.prototype,"options",void 0);_.C([_.F({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],lH);
_.B(lH,"ytd-settings-email-list-renderer",function(){if($OF!==void 0)return $OF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $OF=R},{mode:1});var XnH;var x6=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return R};
_.H(x6,_.K);x6.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"}}}};
x6.prototype.handleSignalActionSubmitForm=function(){var R,A=(R=this.formRenderer)==null?void 0:R.getForm();A&&this.data.serviceEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},A,{element:this.hostElement})})};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],x6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],x6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],x6.prototype,"data",void 0);_.C([_.nG("yt-form-renderer"),_.k("design:type",Object)],x6.prototype,"formRenderer",void 0);
_.C([_.F({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],x6);
_.B(x6,"ytd-settings-gaia-link-renderer",function(){if(XnH!==void 0)return XnH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return XnH=R},{mode:1});var SIF;var c7=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return R};
_.H(c7,_.K);c7.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.zAn()&&this.set("data.hidden",!1)};
c7.prototype.onSwitchReady=function(){var R=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.v("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.EWF().then(function(A){A&&(Notification.permission==="default"?R.set("data.hidden",!1):Notification.permission==="granted"&&_.X$("NotificationsDisabled").then(function(Y){Y||_.OC(R.hostElement,"yt-toggle-settings-switch",[R.data.id,!Y]);R.set("data.hidden",!1)}).catch(function(){}))})})};
c7.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}}}}};
c7.prototype.handleUpdateOptionsCommand=function(R){(R=_.n(R,_.mdA))&&this.data&&this.data.id===R.id&&(this.set("data.hidden",R.hidden),R.text!==void 0&&this.set("data.text",R.text),R.clearOptions&&this.set("data.options",[]))};
c7.prototype.onSwitchReady=c7.prototype.onSwitchReady;c7.prototype.dataChanged=c7.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],c7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],c7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],c7.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],c7.prototype,"data",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c7.prototype,"dataChanged",null);_.C([_.Qa("yt-settings-switch-ready"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c7.prototype,"onSwitchReady",null);_.C([_.F({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],c7);
_.B(c7,"ytd-settings-options-renderer",function(){if(SIF!==void 0)return SIF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return SIF=R},{mode:1});var IDY;var OB=function(){return _.K.apply(this,arguments)||this};
_.H(OB,_.K);OB.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
OB.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
OB.prototype.onYtExpanderMoreTapped=OB.prototype.onYtExpanderMoreTapped;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],OB.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],OB.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],OB.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],OB.prototype,"data",void 0);
_.C([_.Qa("yt-expander-more-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],OB.prototype,"onYtExpanderMoreTapped",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],OB);
_.B(OB,"ytd-product-details-description-renderer",function(){if(IDY!==void 0)return IDY;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return IDY=R},{mode:1});var Kti;var My=function(){var R=_.K.apply(this,arguments)||this;R.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";R.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";R.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";R.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return R};
_.H(My,_.K);My.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Yh.Object.defineProperties(My.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:(A=R.offerData)==null?void 0:A.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?void 0:R.purchaseButtonRenderers)!==void 0&&((A=this.data)==null?void 0:A.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.formattedFromMerchantText)&&(!((A=this.data)==null||!A.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],My.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],My.prototype,"data",void 0);
_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],My.prototype,"shippingIcon",void 0);_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],My.prototype,"shippingAddressIcon",void 0);_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],My.prototype,"googleGuaranteeIcon",void 0);
_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?String:void 0}),_.k("design:type",Object)],My.prototype,"returnPolicyIcon",void 0);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],My.prototype,"showAdditionalFees",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],My.prototype,"showMultiPurchaseButtons",null);
_.C([_.X("data","showMultiPurchaseButtons"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],My.prototype,"showPurchaseData",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],My);
_.B(My,"ytd-product-details-hero-offer-renderer",function(){if(Kti!==void 0)return Kti;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Kti=R},{mode:1});var Wto;var jxm;var sB=function(){return _.K.apply(this,arguments)||this};
_.H(sB,_.K);_.l=sB.prototype;_.l.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.l.onKeyDown=function(R){R=R.keyCode;R!==13&&R!==32||this.handleSelection()};
_.l.onMouseEnterImage=function(){var R;((R=this.data)==null?void 0:R.thumbnailDetails)!==void 0&&_.MT(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.l.onMouseLeaveImage=function(){_.MT(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.l.handleSelection=function(){this.data&&_.xo(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Yh.Object.defineProperties(sB.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.isSelected)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sB.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],sB.prototype,"isSelected",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],sB);
_.B(sB,"ytd-product-details-thumbnail-renderer",function(){if(jxm!==void 0)return jxm;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return jxm=R},{mode:1});var Ny=function(){var R=_.K.apply(this,arguments)||this;var A={};R.actionMap=(A["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",A["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",A);R.selectedThumbnailIndex=0;R.selectItem=function(Y){Y.target.onKeyDown(Y)};
return R};
_.H(Ny,_.K);_.l=Ny.prototype;_.l.handlePreviewImageSelect=function(R){this.hoverThumbnail=R};
_.l.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.l.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.l.onThumbnailSelected=function(R,A){this.selectedThumbnailIndex=A};
_.l.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.l.updateOffset=function(){var R=_.Mo(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-R));this.ytdHorizontalListBehavior.reposition_()};
_.Yh.Object.defineProperties(Ny.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.imageRenderer){var A,Y;return((A=this.data)==null?void 0:(Y=A.imageRenderer)==null?void 0:Y.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var R;if((R=this.data)==null?0:R.imageRenderer){var A;return(A=_.n(this.data.imageRenderer[this.selectedThumbnailIndex],E3f))==null?void 0:A.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var R=this,A,Y,P,E=(P=(A=this.data)==null?void 0:(Y=A.imageRenderer)==null?void 0:Y.map(function(z,c){return{productDetailsThumbnailRenderer:Object.assign({},_.n(z,E3f),{index:c,isSelected:c===R.selectedThumbnailIndex})}}))!=null?P:[];
return Object.assign({},this.data,{imageRenderer:E})}}});
Ny.prototype.updateOffset=Ny.prototype.updateOffset;Ny.prototype.dataChanged=Ny.prototype.dataChanged;Ny.prototype.onThumbnailSelected=Ny.prototype.onThumbnailSelected;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.DP.YtdHorizontalListBehavior),_.k("design:type",Object)],Ny.prototype,"ytdHorizontalListBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ny.prototype,"componentBehavior",void 0);_.C([_.U([_.fH.YtActionHandlerBehavior]),_.k("design:type",Object)],Ny.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ny.prototype,"data",void 0);_.C([_.S({value:"$.items.children"}),_.k("design:type",String)],Ny.prototype,"itemsPath",void 0);_.C([_.S({value:3}),_.k("design:type",Number)],Ny.prototype,"initialCount",void 0);
_.C([_.nG("#items"),_.k("design:type",Object)],Ny.prototype,"items",void 0);_.C([_.S(),_.k("design:type",Object)],Ny.prototype,"selectedThumbnailIndex",void 0);_.C([_.S(),_.k("design:type",Object)],Ny.prototype,"hoverThumbnail",void 0);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ny.prototype,"showThumbnails",null);
_.C([_.Qa("ytd-product-details-thumbnail-renderer-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Number]),_.k("design:returntype")],Ny.prototype,"onThumbnailSelected",null);_.C([_.X("data","selectedThumbnailIndex","hoverThumbnail"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ny.prototype,"thumbnailDetails",null);_.C([_.X("data","selectedThumbnailIndex"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ny.prototype,"populatedData",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ny.prototype,"dataChanged",null);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ny.prototype,"updateOffset",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],Ny);
_.B(Ny,"ytd-product-details-image-carousel-renderer",function(){if(Wto!==void 0)return Wto;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Wto=R},{mode:_.Nf("kevlar_poly_si_batch_j079")?1:2});var bTW;var VM=function(){return _.K.apply(this,arguments)||this};
_.H(VM,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],VM.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],VM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],VM.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],VM.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],VM);
_.B(VM,"ytd-product-details-offer-renderer",function(){if(bTW!==void 0)return bTW;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return bTW=R},{mode:1});var fDW;var JL=function(){var R=_.K.apply(this,arguments)||this;R.isOffersHidden=!0;return R};
_.H(JL,_.K);JL.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var R,A=_.n((R=this.data)==null?void 0:R.viewOffersButton,_.RC);A&&this.ytRendererBehavior.logExplicitClick(A)};
JL.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Yh.Object.defineProperties(JL.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P;return(Y=_.n((R=this.data)==null?void 0:(A=R.offers)==null?void 0:A[0],xO9))==null?void 0:(P=Y.offerData)==null?void 0:P.vendorLogoUrl}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],JL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],JL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],JL.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],JL.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],JL.prototype,"isOffersHidden",void 0);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],JL.prototype,"firstOfferVendorLogoUrl",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],JL);
_.B(JL,"ytd-product-details-offers-container-renderer",function(){if(fDW!==void 0)return fDW;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fDW=R},{mode:1});var pni;var FtY;var yM=function(){return _.K.apply(this,arguments)||this};
_.H(yM,_.K);yM.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
yM.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.MT(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
yM.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.MT(this,"ytd-product-details-variant-image-unselect")};
_.Yh.Object.defineProperties(yM.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 R;return((R=this.data)==null?void 0:R.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?void 0:R.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((A=this.data)==null?void 0:A.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((Y=this.data)==null?void 0:Y.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var R;if(((R=this.data)==null?void 0:R.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var R,A;return this.isUnavailable?(R=this.data)==null?void 0:R.variantOptionUnavailableAccessibilityLabel:(A=this.data)==null?void 0:A.variantOptionAccessibilityLabel}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yM.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],yM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],yM.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yM.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],yM.prototype,"displayType",void 0);
_.C([_.X("displayType","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yM.prototype,"isImageButton",null);_.C([_.X("displayType","data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yM.prototype,"isPillButton",null);_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yM.prototype,"isActive",null);
_.C([_.X("data"),_.S({reflectToAttribute:!0}),_.k("design:type",Boolean),_.k("design:paramtypes",[])],yM.prototype,"isUnavailable",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yM.prototype,"thumbnailDetails",null);_.C([_.X("isUnavailable","data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yM.prototype,"accessibilityLabel",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],yM);
_.B(yM,"ytd-product-details-variant-option-renderer",function(){if(FtY!==void 0)return FtY;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return FtY=R},{mode:1});var BXf;var mP=function(){var R=_.K.apply(this,arguments)||this;R.variantsExpanded=!1;R.hideShowMoreLessVariantButton=!0;R.initialized=!1;R.computeVariantsDebouncer=null;R.computeVariants=function(A){A=A===void 0?!1:A;R.variantsExpanded||R.showOptions()||!A||(R.variantsExpanded=!0);if(R.variantsExpanded){A=_.x(R.items.children);for(var Y=A.next();!Y.done;Y=A.next())Y.value.hidden=!1}R.initialized=!0};
return R};
_.H(mP,_.K);_.l=mP.prototype;_.l.ready=function(){var R=this;setTimeout(function(){R.computeVariants(!0)})};
_.l.showOptions=function(){for(var R=_.x(this.items.children),A=R.next();!A.done;A=R.next())A.value.hidden=!0;var Y=this.container.getBoundingClientRect().width,P=0,E=R=0;A=!1;for(var z=_.x(this.items.children),c=z.next();!c.done;c=z.next()){c=c.value;c.hidden=!1;var M=c.getBoundingClientRect().width;if(P+M<Y)P+=M;else if(++E<2)P=M;else break;R+=1;c.hasAttribute("is-active")&&(A=!0)}for(Y=R;Y<this.items.children.length;Y++)this.items.children[Y].hidden=!0;this.hideShowMoreLessVariantButton=R===this.items.children.length;
return A};
_.l.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.TJ(this.computeVariantsDebouncer,_.iX.after(100),this.computeVariants)};
_.l.onShowMoreLessVariantsButtonClick=function(){var R;(R=this.data)!=null&&R.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.l.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Yh.Object.defineProperties(mP.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.variantOptionRenderers)==null?void 0:A.find(function(z){return _.n(z,iTi).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),P,E;
return(E=(P=_.n(Y,iTi))==null?void 0:P.name)!=null?E:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.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"}}}});
mP.prototype.debouncedComputeVariants=mP.prototype.debouncedComputeVariants;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mP.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],mP.prototype,"componentBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],mP.prototype,"ironResizableBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],mP.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],mP.prototype,"variantsExpanded",void 0);_.C([_.S(),_.k("design:type",Object)],mP.prototype,"hideShowMoreLessVariantButton",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mP.prototype,"initialized",void 0);_.C([_.nG("#items"),_.k("design:type",HTMLDivElement)],mP.prototype,"items",void 0);_.C([_.nG("#container"),_.k("design:type",HTMLDivElement)],mP.prototype,"container",void 0);
_.C([_.nG("#more-variants-button"),_.k("design:type",HTMLElement)],mP.prototype,"moreVariantsButton",void 0);_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],mP.prototype,"selectedOptionName",null);_.C([_.vZ("data","variantsExpanded"),_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mP.prototype,"debouncedComputeVariants",null);
_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],mP.prototype,"displayType",null);_.C([_.X("displayType"),_.k("design:type",Object),_.k("design:paramtypes",[])],mP.prototype,"variantItemsClassname",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],mP);
_.B(mP,"ytd-product-details-variant-renderer",function(){if(BXf!==void 0)return BXf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return BXf=R},{mode:1});var Tk=function(){return _.K.apply(this,arguments)||this};
_.H(Tk,_.K);
Tk.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"}}}};
_.Yh.Object.defineProperties(Tk.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(A=_.n((R=this.data)==null?void 0:R.offersContainerRenderer,lDi))==null?void 0:A.offers;return Y!==void 0&&(Y==null?void 0:Y.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 R,A,Y;return((Y=(R=this.data)==null?void 0:(A=R.variants)==null?void 0:A.map(function(P){var E,z;P=(z=(E=_.n(P,zZN))==null?void 0:E.variantOptionRenderers)==null?void 0:z.find(function(M){var N;return((N=_.n(M,iTi))==null?void 0:N.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var c;return(c=_.n(P,iTi))==null?void 0:c.name}).filter(function(P){return typeof P==="string"}))!=null?Y:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var R,A,Y,P=(A=_.n((R=this.data)==null?void 0:R.shoppingFlaggingRenderer,c5F))==null?void 0:(Y=A.reportButton)==null?void 0:Y.buttonRenderer;if(P)return{text:P.text,command:P.command,icon:{iconType:"FLAG"},accessibilityData:P.accessibilityData,trackingParams:P.trackingParams,loggingDirectives:P.loggingDirectives}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Tk.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Tk.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Tk.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Tk.prototype,"data",void 0);_.C([_.nG("#image-carousel-renderer"),_.k("design:type",Object)],Tk.prototype,"imageCarouselRenderer",void 0);
_.C([_.nG("#hero-offer-renderer"),_.k("design:type",Object)],Tk.prototype,"productDetailsHeroOfferRenderer",void 0);_.C([_.nG("#variants"),_.k("design:type",Object)],Tk.prototype,"productDetailsVariantRenderer",void 0);_.C([_.nG("#offers"),_.k("design:type",Object)],Tk.prototype,"productDetailsOffersContainerRenderer",void 0);_.C([_.nG("#description-renderer"),_.k("design:type",Object)],Tk.prototype,"productDetailsDescriptionRenderer",void 0);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tk.prototype,"showPurchaseData",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tk.prototype,"showHeroOfferRenderer",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tk.prototype,"showBrandText",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tk.prototype,"showOffers",null);
_.C([_.X("showOffers","showPurchaseData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tk.prototype,"showBuySeparator",null);_.C([_.X("showOffers","showPurchaseData"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Tk.prototype,"showBuyCard",null);_.C([_.X("data"),_.k("design:type",String),_.k("design:paramtypes",[])],Tk.prototype,"selectedVariantsText",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Tk.prototype,"shoppingReportingButtonData",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],Tk);
_.B(Tk,"ytd-product-details-renderer",function(){if(pni!==void 0)return pni;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return pni=R},{mode:1});var aDG;var CY9;var hZo;var QM=function(){return _.K.apply(this,arguments)||this};
_.H(QM,_.K);QM.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Yh.Object.defineProperties(QM.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],QM.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],QM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],QM.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],QM.prototype,"formattedAmount",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],QM.prototype,"ariaLabel",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.style"),_.k("design:type",String),_.k("design:paramtypes",[])],QM.prototype,"vcBalanceWidgetStyle",null);_.C([_.CG({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],QM);
_.B(QM,"yt-vc-balance-renderer",function(){if(hZo===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;CY9===void 0&&(CY9=document.createElement("template"));var P=CY9;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);hZo=R}R=hZo;return R},{mode:2});_.bh("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var v7=function(){return _.K.apply(this,arguments)||this};
_.H(v7,_.K);_.Yh.Object.defineProperties(v7.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:""}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],v7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],v7.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],v7.prototype,"data",void 0);_.C([_.S({selectorArgs:["data.vcBalanceEntityKey"],selector:function(R,A){return _.mc(R.entities,"vcBalanceEntity",A)}}),
_.k("design:type",Object)],v7.prototype,"vcBalanceEntity",void 0);_.C([_.X("vcBalanceEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],v7.prototype,"formattedAmount",null);_.C([_.X("vcBalanceEntity"),_.k("design:type",String),_.k("design:paramtypes",[])],v7.prototype,"vcBalanceAriaLabel",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],v7);
_.B(v7,"ytd-vc-balance-renderer",function(){if(aDG!==void 0)return aDG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return aDG=R},{mode:1});var o30;var gK=function(){var R=_.K.apply(this,arguments)||this;R.rotation=0;R.isReloading=!1;return R};
_.H(gK,_.K);gK.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
gK.prototype.reset=function(){this.hostElement.style.opacity=""};
gK.prototype.close=function(){var R=this;return _.O(function(A){if(A.nextAddress==1)return A.yield(R.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);R.hostElement.style.opacity="0";_.XH(A)})};
gK.prototype.rotationChanged=gK.prototype.rotationChanged;_.C([_.S(),_.k("design:type",Object)],gK.prototype,"rotation",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],gK.prototype,"isReloading",void 0);_.C([_.nG("#icon"),_.k("design:type",HTMLElement)],gK.prototype,"icon",void 0);_.C([_.vZ("rotation"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gK.prototype,"rotationChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-refresh"})],gK);
_.B(gK,"ytd-refresh",function(){if(o30!==void 0)return o30;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return o30=R},{mode:1});var kWj;var nt=function(){return _.K.apply(this,arguments)||this};
_.H(nt,_.K);nt.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"}}}};
nt.prototype.dataChanged=function(){if(this.data){var R=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var A=_.MH(this.data.banner.thumbnails,this.hostElement.clientWidth);A&&(A.indexOf("//")===0&&(A="https:"+A),this.hasBannerArt=!0,_.ya(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+A+")"}))}this.hasBannerArt!==R&&_.Mo(this.hostElement).querySelector("#header").fire("iron-resize")}};
nt.prototype.updateSelectedFromBinding=function(R){this.selected=R.detail.value};
nt.prototype.dataChanged=nt.prototype.dataChanged;_.C([_.U(sxo),_.k("design:type",Object)],nt.prototype,"ytdTabbedHeaderBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],nt.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.lg),_.k("design:type",Object)],nt.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],nt.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],nt.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nt.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],nt.prototype,"selected",void 0);_.C([_.S(),_.k("design:type",Boolean)],nt.prototype,"active",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],nt.prototype,"hasBannerArt",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nt.prototype,"dataChanged",null);_.C([_.F({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],nt);
_.B(nt,"ytd-interactive-tabbed-header-renderer",function(){if(kWj!==void 0)return kWj;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return kWj=R},{mode:1});var GW0;var H7=function(){return _.K.apply(this,arguments)||this};
_.H(H7,_.K);H7.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
H7.prototype.computeActionsAlignment=function(R){return(R==null?void 0:R.actionsAlignment)||""};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],H7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],H7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],H7.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.k("design:type",String)],H7.prototype,"actionsAlignment",void 0);_.C([_.F({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],H7);
_.B(H7,"ytd-page-footer-renderer",function(){if(GW0!==void 0)return GW0;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return GW0=R},{mode:1});var ZTG;var tgY;var rK=function(){var R=_.K.apply(this,arguments)||this;R.isEditing=!1;R.useSlot=!1;R.isMultiline=!1;return R};
_.H(rK,_.K);_.l=rK.prototype;_.l.onKeydown=function(R){if(R.keyCode===13&&!this.isMultiline)this.onSave();else if(R.keyCode===27)this.onCancel()};
_.l.computeComponentStyle=function(R){return(R==null?0:R.style)?R.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.l.computeisMultiline=function(R){if(this.multilineOverride!==void 0)return this.multilineOverride;var A,Y;return!!(R==null?0:(A=R.formField)==null?0:(Y=A.textInputFormFieldRenderer)==null?0:Y.isMultiline)};
_.l.computeTextDisplayed=function(R,A){if(R)return R;if(A)return A};
_.l.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.l.onSave=function(){if(this.textForm.validate()){this.textForm.save();var R=this.textForm.value;if(R)this.set("data.textDisplayed",_.dF(R));else{var A;((A=this.data)==null?0:A.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Nv("inline-form-changed",this.data));this.isEditing=!1}};
_.l.onCancel=function(){var R=_.R4(this.data.textDisplayed);R===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(R);this.isEditing=!1};
rK.prototype.onKeydown=rK.prototype.onKeydown;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],rK.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rK.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rK.prototype,"isEditing",void 0);_.C([_.S(),_.k("design:type",Object)],rK.prototype,"useSlot",void 0);_.C([_.S(),_.k("design:type",Boolean)],rK.prototype,"multilineOverride",void 0);_.C([_.S(),_.k("design:type",Boolean)],rK.prototype,"enableOverlayTheme",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.k("design:type",String)],rK.prototype,"componentStyle",void 0);
_.C([_.S({computed:"computeisMultiline(data)"}),_.k("design:type",Object)],rK.prototype,"isMultiline",void 0);_.C([_.nG("#text-form"),_.k("design:type",Object)],rK.prototype,"textForm",void 0);_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],rK.prototype,"onKeydown",null);_.C([_.F({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],rK);
_.B(rK,"ytd-inline-form-renderer",function(){if(tgY!==void 0)return tgY;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return tgY=R},{mode:1});var wnn;var Df=function(){var R=_.K.apply(this,arguments)||this;R.previousSelectValue=void 0;R.selectedItemMessage=void 0;return R};
_.H(Df,_.K);Df.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
Df.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var R,A,Y,P,E=(R=this.data)==null?void 0:(A=R.dropdown)==null?void 0:(Y=A.dropdownRenderer)==null?void 0:(P=Y.entries)==null?void 0:P.map(function(M){return M.privacyDropdownItemRenderer});
R=_.x(E!=null?E:[]);for(A=R.next();!A.done;A=R.next())if((A=A.value)&&A.int32Value===this.selectedValue){this.selectedItemMessage=A.itemMessage;break}}else this.selectedItemMessage=void 0;var z;(z=this.onValueChanged)==null||z.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var c;(c=this.data)!=null&&c.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
Df.prototype.onValueChangedForSelectedValue=function(R){this.selectedValue=R.detail.value};
Df.prototype.selectedValueChanged=Df.prototype.selectedValueChanged;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],Df.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Df.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Df.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Df.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Df.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],Df.prototype,"theme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Number)],Df.prototype,"selectedValue",void 0);_.C([_.S(),_.k("design:type",Function)],Df.prototype,"onValueChanged",void 0);
_.C([_.Ul("selectedValue"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Df.prototype,"selectedValueChanged",null);_.C([_.F({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],Df);
_.B(Df,"ytd-dropdown-form-field-renderer",function(){if(wnn!==void 0)return wnn;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return wnn=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var uT9;var UB=function(){return _.K.apply(this,arguments)||this};
_.H(UB,_.K);_.Yh.Object.defineProperties(UB.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var R=[],A=_.x(this.data||[]),Y=A.next();!Y.done;Y=A.next())(Y=_.n(Y.value,OT0))&&R.push(Y);return R}}});
_.C([_.S(),_.k("design:type",Array)],UB.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],UB.prototype,"byline",null);_.C([_.F({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],UB);
_.B(UB,"ytd-playlist-byline-renderer",function(){if(uT9!==void 0)return uT9;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return uT9=R},{mode:1});var eZf;var $6=function(){var R=_.K.apply(this,arguments)||this;R.rtlBullet=_.v("web_playlist_stats_rtl_bullet_icon_killswitch");R.modern=_.v("web_modern_buttons");R.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return R};
_.H($6,_.K);_.l=$6.prototype;_.l.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"}}}}};
_.l.attached=function(){};
_.l.computeIsCustomThumbnail=function(R){return R?!!R.playlistCustomThumbnailRenderer:!1};
_.l.onYtNavigate=function(R,A){if(A&&A.actions&&A.actions.indexOf("shuffle")>-1){R=_.is().resolve(_.Y7);var Y=A.tempData||{};Y.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);A.tempData=Y;R.isShuffleNextPlaylist=!0}};
_.l.onUpdatePlaylistAction=function(R){var A;R=(A=_.n(R,_.tSZ))==null?void 0:A.updatedRenderer;if(A=_.n(R,ee))this.data=A};
_.l.computeStyleType=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.l.computeThumbnailWidth=function(R){return R==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.l.computeHideThumbnailAria=function(R){if(R==null?0:R.thumbnailOverlays)for(var A=0;A<R.thumbnailOverlays.length;A++){var Y=void 0;if((Y=R.thumbnailOverlays[A])==null?0:Y.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
$6.prototype.onYtNavigate=$6.prototype.onYtNavigate;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],$6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],$6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],$6.prototype,"ytComponentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],$6.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$6.prototype,"rtlBullet",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.k("design:type",String)],$6.prototype,"styleType",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.k("design:type",Number)],$6.prototype,"thumbnailWidth",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$6.prototype,"modern",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.k("design:type",Boolean)],$6.prototype,"isCustomThumbnail",void 0);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],$6.prototype,"onYtNavigate",null);_.C([_.F({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],$6);
_.B($6,"ytd-playlist-sidebar-primary-info-renderer",function(){if(eZf!==void 0)return eZf;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return eZf=R},{mode:1});var qIW;var S6=function(){return _.K.apply(this,arguments)||this};
_.H(S6,_.K);S6.prototype.computeOwnerVisibility=function(R){return!(!R.videoOwner&&!R.button)};
S6.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],S6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],S6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],S6.prototype,"data",void 0);_.C([_.F({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],S6);
_.B(S6,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(qIW!==void 0)return qIW;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return qIW=R},{mode:1});var LtW;var IT=function(){var R=_.K.apply(this,arguments)||this;R.expanded=!1;R.isCompact=!1;return R};
_.H(IT,_.K);_.l=IT.prototype;_.l.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.l.dataChanged=function(){this.data&&_.zO(_.Mo(this.text),_.$Gz(_.IzN,_.R4(this.data.text||null)))};
_.l.computeAutoScrollEnabled=function(R,A){return R&&!A};
_.l.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.l.toggleOnTap=function(){this.expanded=!this.expanded};
IT.prototype.expandedChanged=IT.prototype.expandedChanged;IT.prototype.dataChanged=IT.prototype.dataChanged;_.C([_.U(_.w7o),_.k("design:type",Object)],IT.prototype,"ytdAutoScrollBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],IT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],IT.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],IT.prototype,"expanded",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],IT.prototype,"isCompact",void 0);_.C([_.S({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.k("design:type",Boolean)],IT.prototype,"autoScrollEnabled",void 0);_.C([_.nG("#text"),_.k("design:type",Object)],IT.prototype,"text",void 0);_.C([_.nG("#expander-icon"),_.k("design:type",Object)],IT.prototype,"expanderIcon",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IT.prototype,"dataChanged",null);_.C([_.vZ("expanded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IT.prototype,"expandedChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],IT);
_.B(IT,"ytd-channel-legal-info-renderer",function(){if(LtW!==void 0)return LtW;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return LtW=R},{mode:1});var dON;var RN0=_.vk("DOWNLOAD",{},"Download"),ApN=_.vk("DOWNLOADING",{},"Downloading"),YjF=_.vk("DOWNLOADED",{},"Downloaded"),Kt=function(){var R=_.K.apply(this,arguments)||this;R.downloadProgress=0;R.isDownloadComplete=!1;R.transferState="TRANSFER_STATE_UNKNOWN";return R};
_.H(Kt,_.K);_.l=Kt.prototype;_.l.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.l.dataChanged=function(){var R;(R=this.data)!=null&&R.tooltip||(R=_.oa(_.Yp().getState(),this.playlistId),this.updateButtonState(R))};
_.l.computePlaylistId=function(R){return R};
_.l.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.l.updateButtonState=function(R){if(this.data&&(this.data.tooltip!==ApN||!_.UQ(R))){this.isDownloadComplete=!1;switch(R){case "TRANSFER_STATE_UNKNOWN":R=RN0;var A="OFFLINE_DOWNLOAD";var Y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":R=YjF;A="OFFLINE_PIN";Y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":R=ApN;A="OFFLINE_DOWNLOADING_ZERO";Y="ACTION_REMOVE_WITH_PROMPT";
break;default:R=RN0,A="OFFLINE_DOWNLOAD",Y="ACTION_ADD"}var P=Object.assign({},this.data);P.tooltip=R;P.accessibilityData={accessibilityData:{label:R}};P.icon={iconType:A};P.size="SIZE_DEFAULT";_.n(P.command,_.QJ)&&(_.n(P.command,_.QJ).action=Y);this.set("data",P)}};
_.l.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var R="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?R="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?R="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?R="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?R="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?R="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(R="OFFLINE_PIN",this.isDownloadComplete=!0);var A;R!==((A=this.data.icon)==null?void 0:A.iconType)&&(A=Object.assign({},this.data),A.tooltip=ApN,A.accessibilityData={accessibilityData:{label:ApN}},A.icon={iconType:R},_.n(A.command,_.QJ)&&(_.n(A.command,_.QJ).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",A))}};
Kt.prototype.updateProgress=Kt.prototype.updateProgress;Kt.prototype.onTransferStateChanged=Kt.prototype.onTransferStateChanged;Kt.prototype.dataChanged=Kt.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Kt.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Kt.prototype,"ytdReduxBehavior",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Kt.prototype,"forceIconButton",void 0);
_.C([_.S({value:!0}),_.k("design:type",Boolean)],Kt.prototype,"forceIconOnly",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Kt.prototype,"overrides",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Kt.prototype,"buttonTooltipPosition",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Kt.prototype,"styleActionButton",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Kt.prototype,"disableTextTransform",void 0);
_.C([_.S({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.k("design:type",String)],Kt.prototype,"playlistId",void 0);_.C([_.S(),_.k("design:type",Object)],Kt.prototype,"data",void 0);_.C([_.S({selector:_.MwV,selectorArgs:["playlistId"]}),_.k("design:type",Object)],Kt.prototype,"downloadProgress",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Kt.prototype,"isDownloadComplete",void 0);
_.C([_.S({selector:_.oa,selectorArgs:["playlistId"]}),_.k("design:type",String)],Kt.prototype,"transferState",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],Kt.prototype,"showTooltips",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],Kt.prototype,"sendCommandWhenDisabled",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Kt.prototype,"disabled",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kt.prototype,"dataChanged",null);_.C([_.Ul("transferState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kt.prototype,"onTransferStateChanged",null);_.C([_.Ul("downloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Kt.prototype,"updateProgress",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],Kt);
_.B(Kt,"ytd-download-playlist-button-renderer",function(){if(dON!==void 0)return dON;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return dON=R},{mode:1});var PvQ;_.Ow(_.KDz,"thumbnail-overlay-button-view-model",{props:{data:_.VY,lockupExperiments:_.VY}});var W7=function(){var R=_.K.apply(this,arguments)||this;R.isSquare=!1;R.isVertical=!1;return R};
_.H(W7,_.K);W7.prototype.computeIsSquare=function(R){return R!=null&&R.thumbnail?BTf(R.thumbnail)==="SQUARE":!1};
W7.prototype.computeIsVertical=function(R){return R!=null&&R.thumbnail?BTf(R.thumbnail)==="VERTICAL":!1};
W7.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],W7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],W7.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.k("design:type",Object)],W7.prototype,"isSquare",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.k("design:type",Object)],W7.prototype,"isVertical",void 0);
_.C([_.S(),_.k("design:type",Object)],W7.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],W7);
_.B(W7,"ytd-hero-playlist-thumbnail-renderer",function(){if(PvQ!==void 0)return PvQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return PvQ=R},{mode:1});var j6=function(){var R=_.K.apply(this,arguments)||this;R.isDarkTheme=!1;R.isUltraWide=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return R};
_.H(j6,_.K);_.l=j6.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.is();var R;(R=_.is().resolve(_.z3(_.rs)))!=null&&(R.headerElement=this.hostElement)};
_.l.detached=function(){var R;(R=_.is().resolve(_.z3(_.rs)))!=null&&(R.headerElement=void 0)};
_.l.onUpdateHeader=function(R){(R=R.detail)&&this.set("data",R)};
_.l.computeTextDisplayed=function(R){if(R)return R.textDisplayed?R.textDisplayed:R.placeholder};
_.l.gradientColorToLinearGradientStop=function(R){var A=this.isDarkTheme?R.darkThemeColor:R.lightThemeColor;return A?_.Zs(A)+" "+((R==null?void 0:R.startLocation)||0)*100+"%":"transparent"};
_.l.onWindowResize=function(){var R;((R=this.data)==null?0:R.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.l.onIronResize=function(R){this.isUltraWide=!R.detail.value};
_.l.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.onUpdatePlaylistName=function(R){var A=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},R.detail.value));_.RK(this,function(){var Y;(Y=A.editableTitle)==null||Y.resize()})};
_.l.onUpdatePlaylistDescription=function(R){var A=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},R.detail.value));_.RK(this,function(){var Y;(Y=A.editableDescriptionInlineExpander)==null||Y.resize()})};
_.l.getCinematicData=function(R){return _.n(R==null?void 0:R.cinematicContainer,_.kK)};
_.Yh.Object.defineProperties(j6.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 R,A=(R=this.getCinematicData(this.data))==null?void 0:R.config;return(R=this.isDarkTheme?A==null?void 0:A.darkThemeBackgroundColor:A==null?void 0:A.lightThemeBackgroundColor)?"background-color:"+_.G9(R)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var R;return _.n((R=this.data)==null?void 0:R.descriptionForm,PYG)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var R=this,A,Y,P;return"background:linear-gradient(to bottom, "+(((P=(A=this.getCinematicData(this.data))==null?void 0:(Y=A.gradientColorConfig)==null?void 0:Y.map(function(E){return R.gradientColorToLinearGradientStop(E)}))==null?void 0:P.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var R;return _.R4((R=this.data)==null?void 0:R.descriptionTapText)}}});
j6.prototype.onUpdateHeader=j6.prototype.onUpdateHeader;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],j6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],j6.prototype,"actionHandlerBehavior",void 0);_.C([_.nG("#description-inline-expander"),_.k("design:type",Object)],j6.prototype,"descriptionInlineExpander",void 0);
_.C([_.nG("#editable-description-inline-expander"),_.k("design:type",Object)],j6.prototype,"editableDescriptionInlineExpander",void 0);_.C([_.S(),_.k("design:type",Object)],j6.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],j6.prototype,"isUltraWide",void 0);_.C([_.nG("#editable-title-display"),_.k("design:type",Object)],j6.prototype,"editableTitle",void 0);_.C([_.X("isUltraWide"),_.k("design:type",Object),_.k("design:paramtypes",[])],j6.prototype,"maxDescriptionLines",null);
_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],j6.prototype,"noCinematicData",null);_.C([_.Qa("yt-new-playlist-header"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],j6.prototype,"onUpdateHeader",null);_.C([_.X("data","isDarkTheme"),_.k("design:type",Object),_.k("design:paramtypes",[])],j6.prototype,"backgroundStyle",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],j6.prototype,"descriptionFormData",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],j6.prototype,"getDropdownTheme",null);_.C([_.X("data","isDarkTheme"),_.k("design:type",String),_.k("design:paramtypes",[])],j6.prototype,"gradientStyle",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],j6.prototype,"descriptionTapText",null);
_.C([_.F({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],j6);
_.B(j6,"ytd-playlist-header-renderer",function(){if(ZTG!==void 0)return ZTG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ZTG=R},{mode:_.Nf("kevlar_poly_si_batch_j078")?1:2});var EYj;var zN0;var bH=function(){return _.K.apply(this,arguments)||this};
_.H(bH,_.K);bH.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bH.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bH.prototype,"data",void 0);_.C([_.F({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],bH);
_.B(bH,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(zN0!==void 0)return zN0;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return zN0=R},{mode:1});var ft=function(){return _.K.apply(this,arguments)||this};
_.H(ft,_.K);
ft.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}}}}};
ft.prototype.computeUsePremiumShowStyle=function(R){if(!R||!R.items)return!1;for(var A=0;A<R.items.length;A++)if(_.n(R.items[A],ee)){var Y=void 0;return((Y=_.n(R.items[A],ee))==null?void 0:Y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ft.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ft.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ft.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.k("design:type",Boolean)],ft.prototype,"usePremiumShowStyle",void 0);
_.C([_.F({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],ft);
_.B(ft,"ytd-playlist-sidebar-renderer",function(){if(EYj!==void 0)return EYj;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return EYj=R},{mode:1});var i8G;var lTN;var x5o=function(R,A,Y,P,E,z,c,M){this.minWidth=R;this.minHeight=A;this.recommendedWidth=Y;this.recommendedHeight=P;this.JSC$22108_maxFileSize=E;this.title=z;this.bannerGalleryTitle=c;this.channelId=M;this.picker_=null;R=_.Cgu("yt-banner");A=R.addView;Y=(new t2Y("youtubebanner")).addUploadMetadata("silo_id","19");Y.opts.ytMaxFileSize=this.JSC$22108_maxFileSize;P=this.recommendedHeight;Y.opts.ytRecWidth=this.recommendedWidth;Y.opts.ytRecHeight=P;A.call(R,Y);R.addView(new _.bd);A=R.addView;Y=new _.bd;
Y.opts.type="ytbanner";A.call(R,Y.JSC$10066_setLabel(this.bannerGalleryTitle));A=R.setTitle(this.title).setSize(1E3);A.urlParamMap_.set("thumbs","orig");Y=this.minWidth;P=this.minHeight;if(isNaN(Y)||isNaN(P))throw Error("gb`"+Y+"`"+P);A.urlParamMap_.set("minSize",Y+"x"+P);A.urlParamMap_.set("cropMode","ytcb");this.builder_=R};
x5o.prototype.open=function(){var R=this;return new _.yR(function(A,Y){_.JN8(R.builder_,function(P){P.action=="picked"?A(P):P.action=="cancel"&&Y(Error("yo"))});
R.picker_&&R.picker_.dispose();R.picker_=R.builder_.build();R.picker_.setVisible(!0)})};
x5o.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var cpf=function(R){this.channelId=R};
cpf.prototype.upload=function(R){var A="";R.viewToken&&(A=R.viewToken[2].type);var Y=R.docs[0];R=Y.crop;A={channel_id:this.channelId,fife_url:Y.thumbnails[0].url,photo_id:Y.id,is_gallery_image:A=="ytbanner"};R&&(A.crop_top=R.top,A.crop_right=R.right,A.crop_bottom=R.bottom,A.crop_left=R.left);return _.N1S("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:A})};var pt=function(){var R=_.K.apply(this,arguments)||this;R.ariaLabel=null;return R};
_.H(pt,_.K);_.l=pt.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.l.detached=function(){this.picker&&this.picker.dispose()};
_.l.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.l.computeAriaLabel=function(R){return R};
_.l.onTap=function(){var R=this,A;if((A=this.data)==null||!A.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new x5o(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 Y;(Y=this.picker)==null||Y.open().then(function(P){R.handleBannerPicked(P)},function(){})}};
_.l.handleBannerPicked=function(R){var A=this;this.uploader||(this.uploader=new cpf(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(R).then(function(Y){A.handleBannerUploadSucceeded(Y)},function(Y){A.handleBannerUploadFailed(Y)})};
_.l.handleBannerUploadSucceeded=function(R){R&&R.errors?this.handleBannerUploadFailed(R):(_.xo(this.hostElement,"yt-banner-updated",R),this.message=null)};
_.l.handleBannerUploadFailed=function(R){this.message=R&&R.errors&&R.errors.length?R.errors[0]:null};
pt.prototype.dataChanged=pt.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],pt.prototype,"componentBehavior",void 0);_.C([_.U(_.oj),_.k("design:type",Object)],pt.prototype,"ironButtonState",void 0);_.C([_.S(),_.k("design:type",Object)],pt.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.k("design:type",Object)],pt.prototype,"ariaLabel",void 0);
_.C([_.S(),_.k("design:type",Object)],pt.prototype,"message",void 0);_.C([_.S(),_.k("design:type",Object)],pt.prototype,"picker",void 0);_.C([_.S(),_.k("design:type",Object)],pt.prototype,"uploader",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pt.prototype,"dataChanged",null);_.C([_.F({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],pt);
_.B(pt,"ytd-channel-banner-editor-renderer",function(){if(lTN!==void 0)return lTN;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return lTN=R},{mode:1});var O8Q;var MhH=_.Z7(["#"]),FR=function(){return _.K.apply(this,arguments)||this};
_.H(FR,_.K);FR.prototype.computeHrefWithDefault=function(R){return this.ytComponentBehavior.computeHref_(R,!0)||_.AOk(MhH)};
FR.prototype.dataChanged=function(){var R=this.data;R&&R.targetId&&_.q$Z(_.k7(),R.targetId,this.moreIcon)};
FR.prototype.dataChanged=FR.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],FR.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],FR.prototype,"data",void 0);_.C([_.nG("#more-icon"),_.k("design:type",Object)],FR.prototype,"moreIcon",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FR.prototype,"dataChanged",null);
_.C([_.F({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],FR);
_.B(FR,"ytd-channel-tagline-renderer",function(){if(O8Q!==void 0)return O8Q;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return O8Q=R},{mode:1});var shF;var B7=function(){return _.K.apply(this,arguments)||this};
_.H(B7,_.K);_.l=B7.prototype;_.l.ready=function(){var R=this;_.Mo(this.hostElement).querySelector("#form").addEventListener("submit",function(A){R.onSubmit(A)})};
_.l.onDataChanged=function(){var R;((R=this.data)==null?0:R.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.l.onIconButtonKeydown=function(R){R.keyCode===13&&this.iconButton.click()};
_.l.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.l.openOnClickHandler=function(){this.input.focus()};
_.l.onSubmit=function(R){R.preventDefault();return!1};
_.l.submitOnEnterKeyUp=function(R){var A;if(R.keyCode===13&&((A=this.data)==null?0:A.expandedText)){R=this.data.endpoint;A=_.BO.unsafeClone(R);var Y;((Y=_.n(A==null?void 0:A.commandMetadata,_.Ti))==null?0:Y.url)?(_.n(A.commandMetadata,_.Ti).url=_.an(_.n(A.commandMetadata,_.Ti).url,"query",this.data.expandedText),_.n(A,_.Ds)&&(_.n(A,_.Ds).query=this.data.expandedText),_.xo(this.hostElement,"yt-navigate",{endpoint:A,tempData:{disableCache:!0}})):(Y=new _.XN("Error: Trying to navigate to an endpoint without url",
R),_.bj(Y))}};
_.l.updateDataExpandedTextFromBinding=function(R){this.set("data.expandedText",R.detail.value)};
_.Yh.Object.defineProperties(B7.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
B7.prototype.onDataChanged=B7.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],B7.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.NuH),_.k("design:type",Object)],B7.prototype,"ytdExpandableInputBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],B7.prototype,"data",void 0);_.C([_.nG("#input"),_.k("design:type",Object)],B7.prototype,"input",void 0);_.C([_.nG("#icon-button"),_.k("design:type",HTMLElement)],B7.prototype,"iconButton",void 0);
_.C([_.S(),_.k("design:type",String),_.k("design:paramtypes",[])],B7.prototype,"searchIcon",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B7.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],B7);
var abm=_.s5()(B7,"ytd-expandable-tab-renderer",function(){if(shF===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="[[searchIcon]]" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);shF=R}R=shF;return R},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var NNW;var aT=function(){var R=_.K.apply(this,arguments)||this;R.avatarSize=80;R.ariaLabel=_.vk("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return R};
_.H(aT,_.K);aT.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
aT.prototype.computeHref=function(R){var A;return((A=_.n(R,_.G$))==null?0:A.url)?this.componentBehavior.computeHref_(R):null};
aT.prototype.onTap=function(){var R,A;(R=this.data)==null||!R.editAvatarServiceEndpoint||((A=_.n(this.data.editAvatarServiceEndpoint,_.G$))==null?0:A.url)||_.is().resolve(_.ls).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.C([_.U(_.oj),_.k("design:type",Object)],aT.prototype,"ironButtonState",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],aT.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],aT.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],aT.prototype,"avatarSize",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],aT.prototype,"ariaLabel",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],aT);
_.B(aT,"ytd-channel-avatar-editor",function(){if(NNW!==void 0)return NNW;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return NNW=R},{mode:1});var VhG=_.E5(function(R){var A=R.data;var Y=R.noPadding;var P=R.enableBanner;var E=R.cinematicContainerTopbarOffset;var z=R.allowCinematicContainerOverflow;var c=R.displayAsSidebar;R=R.className;_.jq(function(){A().tagManagerId&&(_.wR(A().tagManagerId,_.a1("GL")),ZeW(A().tagManagerId))},"vUc8md");
var M=_.vT(hW0,function(){return A().pageHeaderEntityKey});
return _.V("yt-page-header-renderer",{class:_.To("pageHeaderRendererHost",R)},_.V(_.ni,{data:function(){var N;return((N=M())==null?0:N.header)?M().header:(c==null?0:c())&&A().sidebarContent?A().sidebarContent:A().content}},{pageHeaderViewModel:function(N){return _.V(_.it8,{data:N.data,
noPadding:Y,enableBanner:P,cinematicContainerTopbarOffset:E,allowCinematicContainerOverflow:z,displayAsSidebar:function(){return(c==null?void 0:c())&&A().enableSidebarView}})}}))},"jk");
VhG.idomCompat=!0;_.Ow(VhG,"yt-page-header-renderer",{props:{data:_.VY,noPadding:_.VY,enableBanner:_.VY,cinematicContainerTopbarOffset:_.VY,allowCinematicContainerOverflow:_.VY,displayAsSidebar:_.VY,className:_.VY}});_.Ow(_.iN,"yt-image-banner-view-model",{props:{data:_.VY,isPositionRelative:_.VY}});_.Ow(_.HtH,"yt-tab-group-shape",{props:{shape:_.VY}});var Ct=function(){var R=_.K.apply(this,arguments)||this;R.expandableCustomTabRenderable=function(A){return CTW(A,function(){return void R.onSearchNavigate()})};
R.isRichGrid=!1;R.isConstrainedList=!1;R.richGridMiniMode=!1;R.richGridStyle="RICH_GRID_STYLE_UNKNOWN";R.isRichGridShorts=!1;R.responsiveSizing="COMPACT";R.disableGridStateAware=!1;R.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return R};
_.H(Ct,_.K);_.l=Ct.prototype;_.l.computeHeaderDisabled=function(R,A){return A||!R||this.tabsHidden};
_.l.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.l.computeIsRichGridShorts=function(R){return R==="RICH_GRID_STYLE_SHORTS_GRID"||R==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.l.computeImageBannerViewModel=function(){var R,A;return _.n((A=_.n((R=this.data)==null?void 0:R.content,_.mUA))==null?void 0:A.banner,_.OHA)};
_.l.computeHasCinematicContainer=function(){var R,A;return!((A=_.n((R=this.data)==null?void 0:R.content,_.mUA))==null||!A.background)};
_.l.handleHeaderResize=function(){var R=_.Mo(this.hostElement).querySelector("#header");R&&_.xo(R,"iron-resize")};
_.l.handleInsertTabCommand=function(R){var A=_.n(R,MgQ);A&&(A.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(Y){return Y.tabRenderer&&Y.tabRenderer.tabIdentifier===A.tabIdentifier})||this.splice("tabs",A.tabIndex||-1,0,A.tab))};
_.l.handleRefreshChannelTabAction=function(R){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===R&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.l.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.ya(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.l.observerRichGridSlimItemsPerRow=function(){_.ya(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.l.updateCssVars=function(){this.richGridItemsPerRow&&_.ya(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cU("rich_grid_max_item_width",500))+16)-16+"px"})};
_.l.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.ya(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.l.onDataChanged=function(){this.handleHeaderResize()};
_.l.onWindowResize=function(){this.handleHeaderResize()};
_.l.onFocusedChanged=function(R){(R=_.Yw(R))&&R.is==="tp-yt-paper-tab"&&R.hasRipple()&&(R.getRipple().holdDown=!R.pointerDown&&R.focused)};
_.l.updateSelectedFromBinding=function(R){this.ytdTabbedHeaderBehavior.selected=R.detail.value};
_.l.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Yh.Object.defineProperties(Ct.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:k7o(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.imageBannerViewModel)==null?void 0:R.style)==="IMAGE_BANNER_STYLE_INSET"}}});
Ct.prototype.onDataChanged=Ct.prototype.onDataChanged;Ct.prototype.updateCssVarsForResponsiveGrid=Ct.prototype.updateCssVarsForResponsiveGrid;Ct.prototype.updateCssVars=Ct.prototype.updateCssVars;Ct.prototype.observerRichGridSlimItemsPerRow=Ct.prototype.observerRichGridSlimItemsPerRow;Ct.prototype.observerRichGridItemsPerRow=Ct.prototype.observerRichGridItemsPerRow;_.C([_.U(_.lg),_.k("design:type",Object)],Ct.prototype,"ytdGridStateAwareBehavior",void 0);
_.C([_.U(sxo),_.k("design:type",Object)],Ct.prototype,"ytdTabbedHeaderBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ct.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ct.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Ct.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],Ct.prototype,"ytdReduxBehavior",void 0);_.C([_.nG("#tabs"),_.k("design:type",Object)],Ct.prototype,"tabsElement",void 0);_.C([_.S(),_.k("design:type",Array)],Ct.prototype,"tabs",void 0);_.C([_.S(),_.k("design:type",Object)],Ct.prototype,"expandableCustomTabRenderable",void 0);_.C([_.X("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ct.prototype,"tabGroupShape",null);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ct.prototype,"isRichGrid",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ct.prototype,"isConstrainedList",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Object)],Ct.prototype,"richGridMiniMode",void 0);_.C([_.S({selector:function(R){return R.ui.richGridStyle}}),
_.k("design:type",Object)],Ct.prototype,"richGridStyle",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.k("design:type",Object)],Ct.prototype,"isRichGridShorts",void 0);_.C([_.S({selector:_.FE}),_.k("design:type",Number)],Ct.prototype,"richGridItemsPerRow",void 0);_.C([_.S({selector:function(R){return R.ui.richGridContainerWidth}}),
_.k("design:type",Number)],Ct.prototype,"richGridContainerWidth",void 0);_.C([_.S({selector:_.q7S}),_.k("design:type",Number)],Ct.prototype,"richGridSlimItemsPerRow",void 0);_.C([_.S(),_.k("design:type",Object)],Ct.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ct.prototype,"responsiveSizing",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ct.prototype,"disableGridStateAware",void 0);
_.C([_.S({computed:"computeImageBannerViewModel(data)"}),_.k("design:type",Object)],Ct.prototype,"imageBannerViewModel",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.k("design:type",Boolean)],Ct.prototype,"hasCinematicContainer",void 0);_.C([_.S({selector:_.d9f,reflectToAttribute:!0}),_.k("design:type",Boolean)],Ct.prototype,"guideIsVisibleButNotPersistent",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("imageBannerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ct.prototype,"hasBanner",null);_.C([_.S({reflectToAttribute:!0}),_.X("imageBannerViewModel"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ct.prototype,"hasInsetBanner",null);_.C([_.S({computed:"computeTabsHidden(tabs)",value:!0}),_.k("design:type",Boolean)],Ct.prototype,"tabsHidden",void 0);
_.C([_.vZ("richGridItemsPerRow","isRichGrid"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ct.prototype,"observerRichGridItemsPerRow",null);_.C([_.vZ("richGridSlimItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ct.prototype,"observerRichGridSlimItemsPerRow",null);
_.C([_.vZ("richGridItemsPerRow","richGridMiniMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ct.prototype,"updateCssVars",null);_.C([_.vZ("richGridContainerWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ct.prototype,"updateCssVarsForResponsiveGrid",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ct.prototype,"onDataChanged",null);
_.C([_.F({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],Ct);
_.B(Ct,"ytd-tabbed-page-header",function(){if(i8G!==void 0)return i8G;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return i8G=R},{mode:1});var JpG;var hL=function(){return _.K.apply(this,arguments)||this};
_.H(hL,_.K);hL.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.ya(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Yh.Object.defineProperties(hL.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var R,A;return this.componentBehavior.computeIcon_(((A=_.n((R=this.data)==null?void 0:R.badge,_.XmD))==null?void 0:A.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.badge,_.XmD))==null?void 0:A.label}}});
hL.prototype.observerRichGridItemsPerRow=hL.prototype.observerRichGridItemsPerRow;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],hL.prototype,"componentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],hL.prototype,"ytdReduxBehavior",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.px}),_.k("design:type",Boolean)],hL.prototype,"richGridMiniMode",void 0);
_.C([_.S({selector:_.FE}),_.k("design:type",Number)],hL.prototype,"richGridItemsPerRow",void 0);_.C([_.S(),_.k("design:type",Object)],hL.prototype,"data",void 0);_.C([_.vZ("richGridItemsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hL.prototype,"observerRichGridItemsPerRow",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],hL.prototype,"badgeIconName",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],hL.prototype,"badgeLabel",null);_.C([_.F({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],hL);
_.B(hL,"ytd-member-hub-profile-renderer",function(){if(JpG!==void 0)return JpG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return JpG=R},{mode:1});var yp0;var oT=function(){return _.K.apply(this,arguments)||this};
_.H(oT,_.K);oT.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],oT.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oT.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],oT.prototype,"data",void 0);_.C([_.F({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],oT);
_.B(oT,"ytd-settings-sidebar-renderer",function(){if(yp0!==void 0)return yp0;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return yp0=R},{mode:1});var m5N;var k6=function(){var R=_.K.apply(this,arguments)||this;R.expandableCustomTabRenderable=function(A){return CTW(A,function(){return void R.onSearchNavigate()})};
return R};
_.H(k6,_.K);k6.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
k6.prototype.onSearchNavigate=function(){this.selected=void 0};
k6.prototype.onTabsChange=function(){var R,A=(R=this.tabs)==null?void 0:R.findIndex(function(Y){var P;return Y==null?void 0:(P=Y.tabRenderer)==null?void 0:P.selected});
A!==void 0&&(this.selected=A)};
k6.prototype.onTabsActive=function(R){if(this.tabs!==void 0){var A,Y;(R=(A=this.tabs[R.detail.selected])==null?void 0:(Y=A.tabRenderer)==null?void 0:Y.endpoint)&&_.xo(this.hostElement,"yt-navigate",{endpoint:R})}};
_.Yh.Object.defineProperties(k6.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:k7o(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
k6.prototype.onTabsChange=k6.prototype.onTabsChange;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.lg),_.k("design:type",Object)],k6.prototype,"ytdGridStateAwareBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],k6.prototype,"ytdGuideStateAwareBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],k6.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Array)],k6.prototype,"tabs",void 0);_.C([_.S(),_.k("design:type",Number)],k6.prototype,"selected",void 0);_.C([_.X("tabs.*"),_.k("design:type",Object),_.k("design:paramtypes",[])],k6.prototype,"tabGroupShape",null);_.C([_.S(),_.k("design:type",Object)],k6.prototype,"expandableCustomTabRenderable",void 0);
_.C([_.X("tabs"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],k6.prototype,"tabsEnabled",null);_.C([_.Ul("tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],k6.prototype,"onTabsChange",null);_.C([_.F({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],k6);
_.B(k6,"ytd-topic-channel-details-renderer",function(){if(m5N!==void 0)return m5N;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <template is="dom-if" if="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer">\n          <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n        </template>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return m5N=R},{mode:1});var TNH;var Gk=function(){var R=_.K.apply(this,arguments)||this;R.disableGridStateAware=!1;return R};
_.H(Gk,_.K);Gk.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]]"}}}}}};
Gk.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Gk.prototype.updateCssVars=function(){_.ya(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.cU("rich_grid_max_item_width",500))+16)-16+"px"})};
Gk.prototype.updateCssVars=Gk.prototype.updateCssVars;Gk.prototype.activeChanged=Gk.prototype.activeChanged;_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],Gk.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Gk.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Gk.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Gk.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Gk.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Array)],Gk.prototype,"tabs",void 0);_.C([_.S(),_.k("design:type",Boolean)],Gk.prototype,"active",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Gk.prototype,"disableGridStateAware",void 0);
_.C([_.S({selector:_.FE}),_.k("design:type",Number)],Gk.prototype,"richGridItemsPerRow",void 0);_.C([_.S({selector:_.px}),_.k("design:type",Boolean)],Gk.prototype,"richGridMiniMode",void 0);_.C([_.nG("ytd-carousel-item-renderer"),_.k("design:type",Object)],Gk.prototype,"carousel",void 0);_.C([_.vZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gk.prototype,"activeChanged",null);
_.C([_.vZ("richGridItemsPerRow","richGridMiniMode"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Gk.prototype,"updateCssVars",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Gk);
_.B(Gk,"ytd-carousel-header-renderer",function(){if(TNH!==void 0)return TNH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return TNH=R},{mode:1});var QhW;var vYN=_.Z7(["https://www.google-analytics.com/analytics.js"]),Zf=function(){var R=_.K.apply(this,arguments)||this;R.scriptAnalyticsAdded=!1;return R};
_.H(Zf,_.K);Zf.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var R,A=(R=this.data)==null?void 0:R.tagManagerId;A&&(_.wR(A,_.a1("GL")),ZeW(A))};
Zf.prototype.sendGoogleAnalyticsPageview=function(R){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var Y=_.Ge.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(Y)};
var A=window.ga;A("set","page",window.location.pathname);A.l=+new Date;A("set","forceSSL",!0);A("create",R,"'auto'");A("send","pageview")};
Zf.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var R=_.De("SCRIPT");R.name="ga-analytics";var A=_.Jr(vYN);_.ET(R,A);R.async=!0;_.Mo(this.hostElement).appendChild(R)};
Zf.prototype.dataChanged=Zf.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],Zf.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Zf.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],Zf);
_.B(Zf,"ytd-channel-metadata-renderer",function(){if(QhW!==void 0)return QhW;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QhW=R},{mode:1});var gYF;var nYH;var tL=function(){var R=_.K.apply(this,arguments)||this;R.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"]);R.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"]);R.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return R};
_.H(tL,_.K);_.l=tL.prototype;_.l.attached=function(){this.requestElementsPerRow()};
_.l.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_]]"}}}}}};
_.l.onUpdateElementsPerRowAction=function(R){R&&this.elementsPerRow!==R&&(this.elementsPerRow=R)};
_.l.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.l.computeAlertStyle_=function(R){return R};
_.l.observerElementsPerRow=function(){this.elementsPerRow&&_.ya(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.l.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.l.requestElementsPerRow=function(){_.xo(this.hostElement,"yt-request-elements-per-row")};
tL.prototype.onIsVisibleChanged_=tL.prototype.onIsVisibleChanged_;tL.prototype.observerElementsPerRow=tL.prototype.observerElementsPerRow;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],tL.prototype,"actionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],tL.prototype,"data",void 0);_.C([_.S({value:6,reflectToAttribute:!0}),_.k("design:type",Number)],tL.prototype,"elementsPerRow",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],tL.prototype,"wrapButtons",void 0);_.C([_.S({value:_.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.k("design:type",Boolean)],tL.prototype,"isMusic",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.k("design:type",String)],tL.prototype,"alertStyle",void 0);_.C([_.S({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.k("design:type",Function)],tL.prototype,"dismissBoundButtonTap_",void 0);_.C([_.S({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.k("design:type",Function)],tL.prototype,"acceptBoundButtonTap_",void 0);_.C([_.vZ("elementsPerRow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tL.prototype,"observerElementsPerRow",null);_.C([_.vZ("data.isVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tL.prototype,"onIsVisibleChanged_",null);_.C([_.CG({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],tL);
_.B(tL,"yt-alert-with-actions-renderer",function(){if(nYH===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;gYF===void 0&&(gYF=document.createElement("template"));var P=gYF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);nYH=R}R=nYH;return R},{mode:2});_.Ow(_.E5(function(R){function A(Q){var g={};return _.V(_.NU,{text:Q,className:_.To("ytPersonalGreetingViewModelHeadline",(g.ytPersonalGreetingViewModelHeadlineSmall=function(){return M()===48},g))})}
function Y(Q,g){return _.V("span",{el:Q,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},A(g))}
var P=_.zo(_.fi(function(){var Q;return(Q=R.data())==null?void 0:Q.rendererContext},void 0,void 0,void 0,!0)),E=_.LK("span"),z=_.LK("span"),c=function(){return R.data().canvasPromoData},M=function(){var Q;
return(Q=R.data().bannerHeight)!=null?Q:56},N=_.Z26(P,{throttleMs:100}),y=_.Z26(E,{throttleMs:100}),m=_.Z26(z,{throttleMs:100}),T=function(){return y.width()-N.width()>1};
return _.V("yt-personal-greeting-view-model",{el:P,"aria-hidden":T,class:_.To(R.className,"ytPersonalGreetingViewModelHost"),style:_.nY({height:(0,_.Lv)(function(){return T()?0:M()})})},_.V(_.J,{cond:function(){return R.data().avatar&&!(m.width()+(R.data().avatar?48:0)-N.width()>1)},
then:function(){return _.V(_.ni,{data:function(){return R.data().avatar}},{decoratedAvatarViewModel:function(Q){return _.V(_.LP,{data:Q.data,
className:_.To("ytPersonalGreetingViewModelAvatar")})}})}}),_.V("h1",null,A(function(){var Q;
return(c==null?void 0:(Q=c())==null?void 0:Q.headline)||(m.width()+(R.data().avatar?48:0)-N.width()>1?R.data().shorterGreeting:R.data().greeting)})),Y(z,function(){return R.data().greeting}),Y(E,function(){return R.data().shorterGreeting}))},"kk"),"yt-personal-greeting-view-model",{props:{data:_.VY,
className:_.VY}});var wK=function(){var R=_.K.apply(this,arguments)||this;R.hidden=!1;R.isConstrainedList=!1;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.responsiveSizing="COMPACT";R.attachedPlayers=_.v("kevlar_channel_trailer_multi_attach")?[]:void 0;R.player=null;R.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return R};
_.H(wK,_.K);_.l=wK.prototype;
_.l.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},
interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},
"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.l.created=function(){var R=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){R.disposeMastheadAd()}]};
_.l.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new J50(this.refresh,this.contents))};
_.l.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.l.activeChanged=function(){var R=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=R)};
_.l.tabsChanged=function(){var R=this,A,Y;if(this.pageSubtype==="channels"||_.v("kevlar_tab_gestures_for_tabbed_header_data")&&((A=this.data)==null?0:(Y=A.header)==null?0:Y.carouselHeaderRenderer))this.tabGestures=new L4(this.contents,this.contents,this.hostElement,this.header,function(c){R.ytdReduxBehavior.dispatch(c)});
var P,E,z;A=(P=this.data)==null?void 0:(E=P.contents)==null?void 0:(z=E.twoColumnBrowseResultsRenderer)==null?void 0:z.tabs;this.tabGestures&&this.tabGestures.tabsChanged(A)};
_.l.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.l.engagementPanelsChanged=function(){var R=_.is().resolve(_.tC);if(R){if(this.engagementPanels)for(var A=_.x(this.engagementPanels),Y=A.next();!Y.done;Y=A.next()){var P=void 0;(Y=(P=Y.value.identifier)==null?void 0:P.tag)&&R.panelMap.delete(Y)}this.engagementPanels=[];var E;A=_.x(((E=this.data)==null?void 0:E.panels)||[]);for(E=A.next();!E.done;E=A.next()){E=_.n(E.value,_.aff);var z=Y=void 0,c=void 0,M=void 0;if(P=((Y=E)==null?void 0:Y.targetId)||((z=E)==null?void 0:z.panelIdentifier)||((c=E)==
null?void 0:(M=c.identifier)==null?void 0:M.tag))z=Y=void 0,(z=(Y=R).registerPanelContent)==null||z.call(Y,P,{engagementPanelSectionListRenderer:E}),this.engagementPanels.push(E)}}};
_.l.onStampFinished=function(){var R=this;_.RK(this,function(){if(R.tabGestures){var A=R.tabGestures;if(A.scrollPositionNeedsUpdate){var Y=_.is().resolve(_.z3(_.YH)),P;if((P=A.selectedTab)!=null&&P.title&&Y&&(P=Y.getCurrentPage())){if(A.scrollPositionForTabs.has(A.selectedTab.title)){var E,z;Y=(z=(E=Y.getCurrentPage())==null?void 0:E.clientHeight)!=null?z:0;E=A.scrollPositionForTabs.get(A.selectedTab.title);P.setScrollTop(E);Y>E+100&&(A.scrollPositionNeedsUpdate=!1)}else P.setScrollTop(Math.min(A.lastVisitedTabScrollPosition!==
void 0?A.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,A.tabsStartAtInPx)),A.scrollPositionNeedsUpdate=!1;A.ytdReduxDispatch(G7G(!1))}}}})};
_.l.loadPage_=function(R){this.initCsi();R&&(this.data=R);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.l.getTitle=function(R){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",R))return this.get("microformat.microformatDataRenderer.title",R);if(this.get("header.feedTabbedHeaderRenderer.title",R))return _.R4(this.get("header.feedTabbedHeaderRenderer.title",R));if(this.get("header.interactiveTabbedHeaderRenderer.title",R))return this.get("header.interactiveTabbedHeaderRenderer.title",R);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
R))return _.R4(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",R));var A,Y;return(R==null?0:(A=R.header)==null?0:(Y=A.pageHeaderRenderer)==null?0:Y.pageTitle)?R.header.pageHeaderRenderer.pageTitle:""};
_.l.updateTitle=function(R){_.xo(this.hostElement,"yt-update-title",this.getTitle(R))};
_.l.initCsi=function(){_.ta(this.pageSubtype||"browse",["ol","cpt"])};
_.l.getPlayer=function(){if(_.v("kevlar_channel_trailer_multi_attach")){for(var R=_.x(this.attachedPlayers),A=R.next();!A.done;A=R.next())if(A=A.value,A.isConnected||_.tl(this.hostElement,A))return A;return null}return this.player};
_.l.getPlayerContainer=function(){return null};
_.l.onPlayerAttached=function(R,A){_.v("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(A):this.player=A};
_.l.onPlayerDetached=function(R,A){_.v("kevlar_channel_trailer_multi_attach")?(R=this.attachedPlayers.indexOf(A),R<0||this.attachedPlayers.splice(R,1)):this.player=null};
_.l.getServiceTrackingParams=function(){var R,A;return((R=this.data)==null?void 0:(A=R.responseContext)==null?void 0:A.serviceTrackingParams)||[]};
_.l.setMastheadAd=function(R){R&&R.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=R&&R.mastheadAd};
_.l.dataChanged=function(){var R=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.X_m();_.RK(this,function(){_.MT(R.hostElement,"ytd-update-grid-state-action")})};
_.l.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.l.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var R=this.data.alerts;return R&&R.find(function(A){return!!A.alertWithActionsRenderer})}};
_.l.computeGreetingData=function(){if(this.data&&this.data.alerts){var R=this.data.alerts;return R&&R.find(function(A){return!!A.personalGreetingViewModel})}};
_.l.computeHasMemberHubProfileRenderer=function(R){var A;return!!(R==null?0:(A=R.header)==null?0:A.memberHubProfileRenderer)};
_.l.handleAlertCommand=function(R){this.get("alertCommand.alert.alertWithActionsRenderer",R)&&(R=_.n(R,A5i),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",R.alert))};
_.l.handleYtPlaylistDeletionRedirect=function(R){R=this.get("playlistDeletionRedirectCommand.redirectEndpoint",R);_.xo(this.hostElement,"yt-navigate",{endpoint:R})};
_.l.computeFluidWidth=function(R,A,Y){if(A==="mini_app"||Y)return!0;var P,E,z;R=R==null?void 0:(P=R.contents)==null?void 0:(E=P.twoColumnBrowseResultsRenderer)==null?void 0:(z=E.tabs)==null?void 0:z.find(function(N){var y;return N==null?void 0:(y=N.tabRenderer)==null?void 0:y.selected});
if(!R)return!1;var c,M;return!!((c=R.tabRenderer)==null?0:(M=c.content)==null?0:M.richGridRenderer)&&!["channel","channels","playables"].includes(A)};
_.l.computeHeaderFluidWidth=function(R){return R==="hashtag-landing-page"};
_.l.computeHasSidebar=function(R){var A;return!!(R.sidebar||((A=R.header)==null?0:A.playlistHeaderRenderer))};
_.l.computeHasPageHeaderSidebar=function(R){var A,Y;return!!((A=R.header)==null?0:(Y=A.pageHeaderRenderer)==null?0:Y.enableSidebarView)};
_.l.computeUseUnifiedShowPageLayout=function(R){if(!R||this.pageSubtype!=="show"||!R.sidebar||!R.sidebar.playlistSidebarRenderer)return!1;R=R.sidebar.playlistSidebarRenderer;if(!R.items)return!1;for(var A=0;A<R.items.length;A++)if(_.n(R.items[A],ee)){var Y=void 0;return((Y=_.n(R.items[A],ee))==null?void 0:Y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.l.computeIsConstrainedList=function(R){return _.v("web_enable_constrained_list_subscriptions_channels")&&R==="subscriptions-channels"};
_.l.computeResponsiveSizing=function(R){return R==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Yh.Object.defineProperties(wK.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var R,A;return((R=this.data)==null?0:(A=R.header)==null?0:A.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var R,A;if(!((R=this.data)==null?0:(A=R.sidebar)==null?0:A.playlistSidebarRenderer))return!1;var Y;return(Y=this.data)!=null&&Y.header?!1:!0}}});
_.Yh.Object.defineProperties(wK,{template:{configurable:!0,enumerable:!0,get:function(){if(TXQ===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-browse--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="alert-banner" class="style-scope ytd-browse"></div>\n<div id="personal-greeting" class="style-scope ytd-browse"></div>\n<div id="masthead-ad" class="style-scope ytd-browse"></div>\n<div id="header" class="style-scope ytd-browse"></div>\n<div id="alerts" class="style-scope ytd-browse"></div>\n\n<ytd-channel-legal-info-renderer data="[[data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" disable-upgrade$="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" hidden="[[!data.contents.twoColumnBrowseResultsRenderer.secondaryContents.browseSecondaryContentsRenderer.contents.0.channelLegalInfoRenderer]]" class="style-scope ytd-browse">\n</ytd-channel-legal-info-renderer>\n<ytd-playlist-sidebar-renderer data="[[data.sidebar.playlistSidebarRenderer]]" disable-upgrade$="[[!useOldPlaylistSidebarRenderer]]" hidden="[[!useOldPlaylistSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-sidebar-renderer>\n<ytd-playlist-header-renderer data="[[data.header.playlistHeaderRenderer]]" disable-upgrade$="[[!usePlaylistHeaderRenderer]]" hidden="[[!usePlaylistHeaderRenderer]]" class="style-scope ytd-browse">\n</ytd-playlist-header-renderer>\n<ytd-settings-sidebar-renderer data="[[data.sidebar.settingsSidebarRenderer]]" disable-upgrade$="[[!data.sidebar.settingsSidebarRenderer]]" hidden="[[!data.sidebar.settingsSidebarRenderer]]" class="style-scope ytd-browse">\n</ytd-settings-sidebar-renderer>\n<template is="dom-if" if="[[hasPageHeaderSidebar]]" class="style-scope ytd-browse">\n    <yt-page-header-renderer class="page-header-sidebar style-scope ytd-browse" data="[[data.header.pageHeaderRenderer]]" display-as-sidebar="">\n    </yt-page-header-renderer>\n</template>\n<ytd-two-column-browse-results-renderer data="[[data.contents.twoColumnBrowseResultsRenderer]]" disable-grid-state-aware="[[fluidWidth]]" is-constrained-list="[[isConstrainedList]]" not-active="[[hidden]]" page-subtype="[[pageSubtype]]" responsive-sizing="[[responsiveSizing]]" class="style-scope ytd-browse">\n</ytd-two-column-browse-results-renderer>\n<div id="survey" class="style-scope ytd-browse"></div>\n<div id="metadata" class="style-scope ytd-browse"></div>\n<div id="footer" class="style-scope ytd-browse"></div>\n<ytd-refresh id="refresh" class="style-scope ytd-browse"></ytd-refresh>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);TXQ=R}R=TXQ;return R}}});
wK.prototype.dataChanged=wK.prototype.dataChanged;wK.prototype.onPlayerDetached=wK.prototype.onPlayerDetached;wK.prototype.onPlayerAttached=wK.prototype.onPlayerAttached;wK.prototype.onStampFinished=wK.prototype.onStampFinished;wK.prototype.engagementPanelsChanged=wK.prototype.engagementPanelsChanged;wK.prototype.scrollAtTopChanged=wK.prototype.scrollAtTopChanged;wK.prototype.tabsChanged=wK.prototype.tabsChanged;wK.prototype.activeChanged=wK.prototype.activeChanged;
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],wK.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],wK.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],wK.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.wd.YtPageBehavior),_.k("design:type",Object)],wK.prototype,"ytPageBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],wK.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],wK.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wK.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wK.prototype,"hidden",void 0);
_.C([_.S(),_.k("design:type",Object)],wK.prototype,"mastheadAdData",void 0);_.C([_.S({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.k("design:type",Object)],wK.prototype,"alertBannerData",void 0);_.C([_.S({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.k("design:type",Object)],wK.prototype,"greetingData",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],wK.prototype,"pageSubtype",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.k("design:type",Boolean)],wK.prototype,"hasMemberHubProfileRenderer",void 0);_.C([_.S({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],wK.prototype,"hasSidebar",void 0);_.C([_.S({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],wK.prototype,"hasPageHeaderSidebar",void 0);
_.C([_.S({reflectToAttribute:!0,value:!0}),_.k("design:type",Boolean)],wK.prototype,"roundedContainer",void 0);_.C([_.S({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],wK.prototype,"useUnifiedShowPageLayout",void 0);_.C([_.S({computed:"computeIsConstrainedList(pageSubtype)"}),_.k("design:type",Object)],wK.prototype,"isConstrainedList",void 0);
_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wK.prototype,"usePlaylistHeaderRenderer",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],wK.prototype,"useOldPlaylistSidebarRenderer",null);_.C([_.S({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.k("design:type",Boolean)],wK.prototype,"fluidWidth",void 0);_.C([_.S({selector:function(R){return R.ui.scrollAtTop}}),
_.k("design:type",Boolean)],wK.prototype,"scrollAtTop",void 0);_.C([_.S({selector:_.RAm}),_.k("design:type",Boolean)],wK.prototype,"tabGesturesIsActive",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],wK.prototype,"darkerDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.k("design:type",Boolean)],wK.prototype,"disableHeaderFluidWidth",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.k("design:type",String)],wK.prototype,"responsiveSizing",void 0);_.C([_.nG("ytd-two-column-browse-results-renderer"),_.k("design:type",HTMLElement)],wK.prototype,"contents",void 0);_.C([_.nG("#header"),_.k("design:type",HTMLElement)],wK.prototype,"header",void 0);_.C([_.nG("ytd-refresh"),_.k("design:type",Object)],wK.prototype,"refresh",void 0);
_.C([_.vZ("active"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wK.prototype,"activeChanged",null);_.C([_.vZ("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wK.prototype,"tabsChanged",null);_.C([_.vZ("scrollAtTop"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wK.prototype,"scrollAtTopChanged",null);
_.C([_.S(),_.k("design:type",Object)],wK.prototype,"engagementPanels",void 0);_.C([_.vZ("data.panels"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wK.prototype,"engagementPanelsChanged",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wK.prototype,"onStampFinished",null);
_.C([_.Qa("yt-player-attached"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Element]),_.k("design:returntype")],wK.prototype,"onPlayerAttached",null);_.C([_.Qa("yt-player-detached"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Element]),_.k("design:returntype")],wK.prototype,"onPlayerDetached",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wK.prototype,"dataChanged",null);
_.C([_.F({is:"ytd-browse"})],wK);_.UV.registerService(_.Gd3,wK);
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("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 FA,peG,FrQ,Bqo,aZi,CPW,hPN,oh0,krF,Grj,ZOj,t0m,u9G,ePg,Lrj,d4Y,RYW,YCW,PEf,Eog,zY9,BJ,lMG,aI,xTo,cgY,Oj9,MFi,so0,VFm,ygW,NHH,weG,mTH,THj,QoQ,voN,goY,noo,DTn,UTW,$T0,Xk0,IMn,KZW,jo9,fMj,pkY,FZj,aMG,hYF,ooi,kiW,GiQ,ZjY,tFi,wkf,uhY,eYg,qCo,LZ0,dTi,R2W,A0N,YQN,Pwi,Ebn,z2Q,ixo,x6W,c00,Ox0,M90,sa9,NFG,V99,J0H,y0Y,m6W,TFo,Qai,vb9,gbG,nbi,Hxo,r0n,D6i,U6H,$6Y,XKn,SQQ,InH,KcY,Wco,uZ,jaj,bxm,fnN,Fc0,BFf,ang,CwG,h2m,obi,kXF,t9Y,YdW,ioQ,lsf,s4f,Na0,MIi,cfH,mij,vpN,UiW,xiQ,npn,Tai,AP,XrH,KbW,boY,WbQ,j4F,fsW,
asF,Fb0,Cki,hpm,Bag,prG,opG,zB,iz,uIY,epF,lz,qdH,LbW,diG,zxm,iGN,x1,cQ,xom,loN,ch9,OGi,Mz9,OG,M$,sG,Q6m,vwQ,gwG,VD,Uog,nwo,Don,$of,HGf,SlQ,rhQ,WyN,Io0,Kyo,JP,bGH,j6i,Bgo,owN,QD,vQ,C5o,G2j,hxW,k2W,nE,rO,D6,UG,sZi,Y5F,J7g,y79,mfm,TUG,v9n,qlY,Ly9,Sf,Rwg,$1,XU,A7i,QZY,NUG,do0,KE,n9W,HCn,r7Y,UfF,XcQ,S5n,Ic9,K0o,jZN,W0j,fcf,pco,BUo,acH,hwW,o9N,kjQ,Gjj,ZCW,t5g,wcH,ewf,uSf,q5j,L09,WQ,dfn,Rc9,jf,AMi,Ywg,PhN,ELY,zcQ,iYF,lLY,xHQ,OYN,bz,Mig,sEF,JMn,mHj,Tl9,vLm,QEW,gLF,nL9,HYi,DHf,UHQ,$Hf,X1g,SwY,ILg,KBQ,WBN,
jEf,bYo,fLQ,p1g,Chj,hc0,Blj,aLm,FBG,oLH,ZYH,koo,GoQ,uWo,tim,w1m,ecN,qwf,LBG,dHN,A4i,YJ0,Pco,zH9,iii,xV9,Oii,sPn,Vdf,y4n,T0G,vH0,nHi,DVg,UVH,$VQ,SJF,XTn,Kp9,Wpi,jPH,biG,pE,fkW,pTY,FpY,wTi,eHY,qJn,Amf,Yro,Pxm,EsF,i00,z8n,l5G,xh0,cm0,O09,MbG,eZ,s9H,hP,N0m,NcQ,VbY;
FA=function(R){if(!R)return"browse";var A=R.page,Y=R.url,P,E,z,c=(P=R.response)==null?void 0:(E=P.responseContext)==null?void 0:(z=E.webResponseContextExtensionData)==null?void 0:z.pageTheme;if(c)A=c.toLowerCase().replace(/_/g,"-");else if(A!=="watch"&&A!=="learning_journey_watch"){var M,N;if((A==="browse"||A==="settings")&&((M=R.response)==null?0:(N=M.sidebar)==null?0:N.settingsSidebarRenderer))A="WEB_PAGE_TYPE_SETTINGS";else{var y,m;A==="browse"&&((y=R.response)==null?0:(m=y.metadata)==null?0:m.channelMetadataRenderer)?
A="channel":Y&&(A=_.Hr(Y)||A)}}return A};
peG=function(){var R=_.Zr("yt.aba.att");return R?R:_.X5.instance!==void 0?_.X5.instance.e8n.bind(_.X5.instance):null};
FrQ=function(R,A){var Y;return _.O(function(P){return(Y=peG())?P.return(Y(R,A,6E4)):P.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
Bqo=function(R,A,Y,P,E){A=A===void 0?[]:A;E=E?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:E}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.iw(R),dialogMessages:A.map(function(z){return _.iw(z)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iw(Y),serviceEndpoint:E}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iw(P)}}}}}};
aZi=function(R){var A=!!_.lr().queueProxy;var Y,P,E;R=R==null?void 0:(Y=R.response)==null?void 0:(P=Y.currentVideoEndpoint)==null?void 0:(E=P.watchEndpoint)==null?void 0:E.playlistId;return!(!A&&!R)};
CPW=function(R,A){var Y=_.f_();if(aZi(R))return Y.playlistWatchPageActivation=!0;switch(FA(A)){case "yts-products":return Y.productDetailsPageActivation=!0;case "mini_app":return Y.miniAppPageActivation=!0;case "playables":return Y.playablesDestPageActivation=!0;default:return!1}};
hPN=function(R,A,Y){for(var P=typeof R==="string"?R.split(""):R,E=R.length-1;E>=0;--E)E in P&&A.call(Y,P[E],E,R)};
oh0=function(R,A){A=_.vqu(R,A);A>=0&&_.HuS(R,A)};
krF=function(R){return Array.prototype.concat.apply([],arguments)};
Grj=function(R){var A=0;A=A===void 0?0:A;if(!_.LD(R))throw _.Lu("uint64");var Y=typeof R;switch(A){case 512:switch(Y){case "string":return _.$GI(R);case "bigint":return String((0,_.VN)(64,R));default:return _.DGl(R)}case 1024:switch(Y){case "string":return _.XSV(R);case "bigint":return _.jH((0,_.VN)(64,R));default:return _.UGk(R)}case 0:switch(Y){case "string":return _.$GI(R);case "bigint":return _.jH((0,_.VN)(64,R));default:return _.rEl(R)}default:return _.kZ(A,"Unknown format requested type for int64")}};
ZOj=function(R){R!=null&&(R=R.JSC$8812_value_||"",R=typeof R==="string"?R:new Uint8Array(R));return R};
t0m=function(R,A){if(/-[a-z]/.test(A))return null;if(_.ZfA&&R.dataset){if(_.MP6()&&!(A in R.dataset))return null;R=R.dataset[A];return R===void 0?null:R}return R.getAttribute("data-"+_.gq(A))};
u9G=function(){var R=weG;_.Zr("yt.ads.biscotti.getId_")||_.PG("yt.ads.biscotti.getId_",R)};
ePg=function(R){_.PG("yt.ads.biscotti.lastId_",R)};
Lrj=function(){var R={};for(_.jx=new qPg(R.handleError===void 0?_.fK:R.handleError,R.logEvent===void 0?_.Wj:R.logEvent);_.bs.length>0;)switch(R=_.bs.shift(),R.type){case "ERROR":_.jx.logError(R.payload);break;case "EVENT":_.jx.logEvent(R.eventType,R.payload)}};
d4Y=function(R,A,Y){return _.GXP(function(P){return Y?P.userIdentifier!==void 0&&!R.includes(P.userIdentifier)&&Y.includes(P.publicName):P.userIdentifier!==void 0&&!R.includes(P.userIdentifier)},A)};
RYW=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1)return A=_.UK("YtIdbMeta hasAnyMeta other"),P.yield(_.GXP(function(E){return E.userIdentifier!==void 0&&E.userIdentifier!==A},R),2);
Y=P.yieldResult;return P.return(Y.length>0)})};
YCW=function(R,A){AgH||(AgH=_.fn.addLowPriorityJob(function(){var Y,P,E,z,c;return _.O(function(M){switch(M.nextAddress){case 1:return M.yield(_.EF(),2);case 2:Y=M.yieldResult;if(!Y)return M.return();P=!0;_.g2(M,3);return M.yield(d4Y(R,Y,A),5);case 5:E=M.yieldResult;if(!E.length){P=!1;M.jumpTo(6);break}z=E[0];return M.yield(_.ex(z.actualName),7);case 7:return M.yield(_.dr(z.actualName,Y),6);case 6:_.us(M,4);break;case 3:c=_.UT(M),_.fw(c),P=!1;case 4:_.fn.cancelJob(AgH),AgH=0,P&&YCW(R,A),_.XH(M)}})}))};
PEf=function(){var R;return _.O(function(A){return A.nextAddress==1?A.yield(_.EF(),2):(R=A.yieldResult)?A.return(RYW(R)):A.return(!1)})};
Eog=function(R){var A=100;A=A===void 0?500:A;var Y,P,E,z,c,M;return _.O(function(N){return N.nextAddress==1?(Y=_.a1("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[Y,(0,_.iB)()-2592E6],E=[Y,(0,_.iB)()],z=IDBKeyRange.bound(P,E),N.yield(_.mfl(R),2)):N.nextAddress!=3?(c=N.yieldResult,M=[],N.yield(_.Lw(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(y){M.length=0;return _.lB(y.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:z,direction:"prev"},function(m){if(m.getValue()&&M.length<
A)return M.push(m.getValue()),m.delete().then(function(){return m.continue()})})}),3)):N.return(M)})};
zY9=function(){var R;return _.O(function(A){if(A.nextAddress==1)return A.yield(_.EF(),2);R=A.yieldResult;if(!R||!_.$S()&&!_.v("nwl_init_require_datasync_id_killswitch")||!_.pc8())return A.jumpTo(0);_.BU8=!0;_.F0k.isNwlInitialized=_.BU8;return A.yield(_.x47().awaitInitialization(),0)})};
BJ=function(R,A){_.AMJ[R]=!0;var Y=_.lj();Y&&Y.publish.apply(Y,arguments);_.AMJ[R]=!1};
lMG=function(){if(_.Wyk()&&!ijH){var R=function(Y){Y=Y.data;if(Y.op==="serializedGelBatch"){var P=_.YJS.get(Y.key);P&&(_.EHV(Y.serializedBatch,P.client,P.resolve,P.networklessOptions,P.isIsolated,P.useVSSEndpoint,P.dangerousLogToVisitorSession,P.requestsOutstanding),_.YJS.delete(Y.key))}},A=_.Ky8();
A&&(A.addEventListener("message",R),A.onerror=function(){_.YJS.clear()});
ijH=!0}};
aI=function(){this.relativeTimeStart_=_.YB()};
xTo=function(R,A){R!=null&&this.append.apply(this,arguments)};
cgY=function(){return _.oK("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
Oj9=function(R,A,Y){Y=Y===void 0?!1:Y;var P,E,z,c,M;return _.O(function(N){switch(N.nextAddress){case 1:_.rr("SOCS",R,34128E3,"youtube.com",!0);if(_.Mc)return E=fetch(A,{method:"POST",mode:_.uP(A),credentials:_.wq(A),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),z=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.uP("/upgrade_visitor_cookie?eom=1"),credentials:_.wq("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),N.yield(Promise.all([E,z]).then(function(y){return y[1]}),5);
fetch(A,{method:"POST",mode:_.uP(A),credentials:_.wq(A),cache:"no-store",headers:{"Content-Type":"text/plain"}});return N.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.uP("/upgrade_visitor_cookie?eom=1"),credentials:_.wq("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:P=N.yieldResult;N.jumpTo(3);break;case 5:P=c=N.yieldResult;case 3:if(!P.ok)throw Error("of");return N.yield(P.text(),7);case 7:M=N.yieldResult,
!M.includes('"state_switch":true')&&!Y||M.includes("skip_reload_for_test")||window.location.reload(),_.XH(N)}})};
MFi=function(R){return _.O(function(A){return A.nextAddress==1?A.yield(Oj9(R.socsCookie,R.savePreferenceUrl,!0),2):A.return()})};
so0=function(R){return _.O(function(A){return A.nextAddress==1?A.yield(Oj9(R.socsCookie,R.savePreferenceUrl),2):A.return()})};
VFm=function(R){R=R.xhr.responseText;if(!_.iJ(R,")]}'"))throw new Ch;R=JSON.parse(R.substr(4));if((R.type||1)>1)throw new Ch;R=R.id;ePg(R);hJ=_.MJ(R);NHH(18E5,2);return R};
ygW=function(R,A){A=new JgW(A);ePg("");hJ=_.XwH(A);R>0&&NHH(12E4,R-1);throw A;};
NHH=function(R,A){_.JN(function(){_.lZ9().then(VFm,function(Y){return ygW(A,Y)}).thenCatch(_.r$)},R)};
weG=function(){var R=_.OOf();if(R!==void 0)return _.j5(R);hJ||(hJ=_.lZ9().then(VFm).thenCatch(function(A){return ygW(2,A)}));
return hJ};
mTH=function(){var R=document;return _.jP(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(A){return"on"+A.toLowerCase()in R})};
THj=function(R){R.addEventListener("click",function(A){var Y=A.target;Y&&Y.getAttribute("href")&&(Y=Y.getAttribute("href"),_.dZ(window,Y,"_blank"),A.preventDefault(),A.stopImmediatePropagation())})};
QoQ=function(R){var A,Y,P,E=(P=(Y=((A=R.mainDownloadsListEntity)!=null?A:{})[_.o56])==null?void 0:Y.refresh)!=null?P:"",z;R=(z=R.refresh)==null?void 0:z[E];E=R!=null?R:{};return(E==null?0:E.refreshTime)?Number(E==null?void 0:E.refreshTime):0};
voN=function(R,A){var Y=_.Kx(R);return A.every(function(P){var E;P=P==null?void 0:(E=P.playbackDataEntity)==null?void 0:E.key;if(!P)return!1;E=_.yS(_.M6(P).entityId,"mainVideoEntity");return!!Y[E]})};
goY=function(R){R=_.XE(R.entities);return _.PSq(R).length};
noo=function(R,A){if(A){var Y;R=(Y=_.mc(R.entities,"downloadQualityPickerEntity",A))!=null?Y:void 0}else R=void 0;return R};
DTn=function(){Hj9||(_.Lx=_.hRk,Hj9=new rgG);return Hj9};
UTW=function(R){var A=document.getElementsByTagName("ytd-enforcement-message-view-model");A.length===0||getComputedStyle(A[0]).display==="none"?R(0,"p.h_"):R(1,"p.h_")};
$T0=function(){oI=0;var R=[_.XI(!0)];ki&&_.MT(ki,"yt-window-resized",R)};
Xk0=function(){oI||(oI=_.fn.addLowPriorityJob($T0,200))};
IMn=function(){GY=0;SCG=_.tHb(document);var R=[SCG];ki&&_.MT(ki,"yt-window-scrolled",R)};
KZW=function(){GY||(GY=_.fn.addLowPriorityJob(IMn,200))};
jo9=function(R){R=R===void 0?null:R;WZQ.push(_.Ya(window,"resize",Xk0));WZQ.push(_.Ya(window,"scroll",KZW));R&&(ki=R)};
fMj=function(){var R={isWide:_.HU.get("wide","0")==="1"},A=_.Hk();if(A=A.getFlag(165)||A.getFlag(174))R.theme=_.bk(!0);if(_.bpk()){var Y=_.jI()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";R.systemTheme=Y}!A&&_.v("parent_tools_enable_app_settings")&&_.qI(window.location.href).theme!==void 0&&(R.theme=_.bk());if((A=ZU)?!_.BO.equals(A,R):R)A={currentValue:R},bjo&&(A.timeSinceLastSnapshotSecs=Math.round(((0,_.iB)()-bjo)/1E3)),ZU&&(A.previousValue=ZU),_.Wj("appSettingsCaptured",A),ZU=R,bjo=
(0,_.iB)()};
pkY=function(R){_.O(function(A){if(A.nextAddress==1)return A.yield(R.delete("yt-appshell-assets"),2);_.XH(A)})};
FZj=function(R){return _.q1((0,_.iID)(),R)};
aMG=function(){var R;_.O(function(A){return A.nextAddress==1?A.yield(tJ.getInstance(),2):(R=A.yieldResult)?A.yield(BHY(R),0):A.jumpTo(0)})};
hYF=function(){var R;_.O(function(A){return A.nextAddress==1?A.yield(wp.getInstance(),2):(R=A.yieldResult)?A.yield(CEQ(R),0):A.jumpTo(0)})};
ooi=function(R){pkY(R);aMG();hYF()};
kiW=function(R){var A,Y;return _.O(function(P){if(P.nextAddress==1)return P.yield(_.PMk(R),2);if(A=P.yieldResult){var E;a:{if(A.headers&&(E=A.headers.get("date"))&&(E=Date.parse(E),!isNaN(E))){E=Math.round((0,_.iB)()-E);break a}E=-1}Y=E;if(Y>-1)return P.return(Y)}return P.return(-1)})};
GiQ=function(){var R=_.P3.caches,A=_.CQ("IS_SHELL_LOAD"),Y,P;_.O(function(E){if(E.nextAddress==1)return Y=-1,A?E.yield(kiW(R),3):(P=_.SF(),Y=Math.round((0,_.iB)()-P),E.jumpTo(2));E.nextAddress!=2&&(Y=E.yieldResult);Y>=0&&Y<2147483648&&_.bE({appInstallDataAgeMs:Y});_.XH(E)})};
ZjY=function(R){var A=_.eK(_.P3.location.href),Y={};"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(P){var E=A.JSC$10024_queryData_.getValues(P);if(E==null?0:E.length)Y[P]=E});
return _.mM(R,new Map(Object.entries(Y)))};
tFi=function(R){R=R.match(/(.*)::.*::.*/);if(R!==null)return R[1]};
wkf=function(R){if(_.gmq()){var A=Object.keys(window.localStorage);A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=tFi(Y);P===void 0||R.includes(P)||self.localStorage.removeItem(Y)}}};
uhY=function(){if(!_.gmq())return!1;var R=_.UK(),A=Object.keys(window.localStorage);A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())if(Y=tFi(Y.value),Y!==void 0&&Y!==R)return!0;return!1};
eYg=function(R){return _.rp("NotificationsDisabled",R)};
qCo=function(){return Notification.permission!="granted"?Promise.resolve():_.AvN().then(function(R){return R?R.pushManager.getSubscription().then(function(A){if(A)return Promise.resolve();A={userVisibleOnly:!0,applicationServerKey:_.eP("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return R.pushManager.subscribe(A).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
LZ0=function(R){return _.AvN().then(function(A){if(!A||!A.active)return Promise.reject(new _.XN("serviceworker.postMessage",R,A));try{return A.active.postMessage(R),Promise.resolve()}catch(Y){return Promise.reject(Y)}})};
dTi=function(){LZ0({type:"notifications_register",data:_.a1("ID_TOKEN")})};
R2W=function(){if(!_.CQ("LOGGED_IN"))return Promise.resolve(!1);var R=_.OK("service_worker_push_force_notification_prompt_tag");return R?_.X$("PromptTags").then(function(A){if(!A)return!0;var Y=[];try{Y=JSON.parse(A)}catch(P){return!1}return Y&&Y.indexOf(R)==-1}):Promise.resolve(!1)};
A0N=function(){var R=_.cU("service_worker_push_prompt_delay_microseconds");return R?_.X$("PromptTime").then(function(A){return Promise.resolve(Date.now()-R>(A||0))}):Promise.resolve(!0)};
YQN=function(){var R=_.cU("service_worker_push_logged_out_prompt_watches");return R==-1?Promise.resolve(!1):_.X$("WatchCount").then(function(A){return A>=R})};
Pwi=function(){var R=_.ic(document,"yt-push-prompt-modal-bg");R&&_.UU(R)};
Ebn=function(){return _.cU("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.X$("PromptCount").then(function(R){R||(R=0);return Promise.resolve(R<_.cU("service_worker_push_prompt_cap"))})};
z2Q=function(R){return _.CQ("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.CQ("LOGGED_IN")&&(R===void 0?0:R)?R2W().then(function(A){if(A)return!0;A=[Ebn(),A0N()];_.CQ("LOGGED_IN")||A.push(YQN());return Promise.all(A).then(function(Y){return Y.every(function(P){return P})})}):Promise.resolve(!1)};
ixo=function(){_.X$("PromptCount").then(function(R){return _.rp("PromptCount",R+1)}).then(function(){return _.rp("PromptTime",Date.now())}).then(function(){var R=_.OK("service_worker_push_force_notification_prompt_tag");
if(R)return _.X$("PromptTags").then(function(A){var Y=[];if(A)try{Y=JSON.parse(A)}catch(P){return!1}Y||(Y=[]);Y.push(R);return _.rp("PromptTags",JSON.stringify(Y))})})};
x6W=function(){lnf||Pwi()};
c00=function(R){R.style.zIndex=2147483648;R.style.pointerEvents="auto";R.style.backgroundColor="rgba(0, 0, 0, 0.6)";R.style.width="100%";R.style.height="100vh";R.style.position="absolute";R.style.top="0";R.style.left="0";R.style.border="none"};
Ox0=function(){var R=_.ic(document,"yt-push-prompt-modal-bg");lnf=_.v("service_worker_push_prompt_modal_ignore_click");R?c00(R):(R=_.jN("div",{id:"yt-push-prompt-modal-bg"}),c00(R),document.body.appendChild(R),_.q5I(document,"click",x6W))};
M90=function(){var R=arguments;_.v("service_worker_push_prompt_modal_enable")&&Ox0();return Notification.requestPermission().then(function(A){Pwi();var Y=document.getElementById("ticker");Y&&(Y.className=Y.classList.remove("show"));if(A=="granted")return qCo().then(function(){eYg(!1);dTi();return Promise.resolve(!0)});
A=="denied"&&dTi();return Promise.resolve(!1)}).catch(function(){Pwi();
return Promise.reject.apply(Promise,_.py(R))})};
sa9=function(R){R=R===void 0?!1:R;var A=_.aPk().client;if(A&&A.browserVersion){var Y=A.browserVersion,P=A.browserName=="CHROME"&&_.Vk(Y,"50.0.0")<0;A=A.browserName=="OPERA"&&_.Vk(Y,"42.0.0")<0;if(P||A)return Promise.resolve()}return _.EWF().then(function(E){if(!E)return Promise.resolve();E=qCo().then(function(){return LZ0({type:"notifications_check_registration",data:_.a1("ID_TOKEN")})});
return Notification.permission!="default"?E.catch(function(){}):E.then(function(){return z2Q(R)}).then(function(z){if(z)return ixo(),M90().then(function(){})}).catch(function(){})})};
NFG=function(R){return _.Ye9(R)?sa9():Promise.resolve()};
V99=function(R){var A=R.installing||R.waiting;return R.active||!A?Promise.resolve(R):new Promise(function(Y){var P=function(E){E=E.target;if(E.state==="activated"||E.state==="redundant")A.removeEventListener("statechange",P),Y(R)};
A.addEventListener("statechange",P)})};
J0H=function(){var R=new _.q0S("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.iD(R,{mainAppWeb:_.qi()});var A=_.HIS;_.v("service_worker_forward_exp_params")&&(A=ZjY(A));try{var Y=_.h_J(A).catch(function(){_.lD(R,"FAILURE");return new Promise(function(){})});
_.v("service_worker_push_enabled")&&Y.then(function(P){_.lD(R,"SUCCESS");return P}).then(V99).then(NFG)}catch(P){if(_.lD(R,"FAILURE"),P.name!=="SecurityError")throw P;
}};
y0Y=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&J0H()};
m6W=function(R,A){var Y={};A&&(Y.serializedYpcFamilyCreateLoggingParams=A);_.Wj(R,Y);_.j_()};
TFo=function(R,A){var Y={};Y.serializedYpcRefundFlowLoggingParams=A;R&&(Y.eventType=R);_.Wj("ypcRefundFlowEvent",Y);_.j_()};
Qai=function(R){R&&_.kP8("transactionFlowSucceeded",R)};
vb9=function(R){R&&_.l1("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",R,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
gbG=function(R){var A,Y,P,E,z,c,M;_.O(function(N){if(N.nextAddress==1)return N.yield(_.DpS(),2);if(N.nextAddress!=3){if(!N.yieldResult)return N.return(!1);A=[];return N.yield(_.yi.keys(),3)}Y=N.yieldResult;P=_.x(Y);for(E=P.next();!E.done;E=P.next())z=E.value,c=_.HZV(z),M=c.datasyncId,!M||R.includes(M)||A.push(_.yi.delete(z));return N.return(Promise.all(A).then(function(y){return y.some(function(m){return m})}))})};
nbi=function(){var R,A,Y,P,E,z,c;return _.O(function(M){if(M.nextAddress==1)return M.yield(_.DpS(),2);if(M.nextAddress!=3){if(!M.yieldResult)return M.return(!1);R=_.UK("cache contains other");return M.yield(_.yi.keys(),3)}A=M.yieldResult;Y=_.x(A);for(P=Y.next();!P.done;P=Y.next())if(E=P.value,z=_.HZV(E),(c=z.datasyncId)&&c!==R)return M.return(!0);return M.return(!1)})};
Hxo=function(){var R=_.is().resolve(_.z3(_.vCS));return R?R.getCurrentTime():0};
r0n=function(){var R,A,Y,P,E,z,c,M,N,y,m,T,Q,g;return _.O(function(r){switch(r.nextAddress){case 1:R={},A=_.rY8(),Y=_.x(Object.entries(A)),P=Y.next();case 4:if(P.done){r.jumpTo(3);break}E=P.value;z=_.x(E);c=z.next().value;M=z.next().value;N=c;y=M;if(!y){r.jumpTo(5);break}return r.yield(y(),8);case 8:R[N]=r.yieldResult;case 5:P=Y.next();r.jumpTo(4);break;case 2:m=_.x(void 0),T=m.next();case 9:if(T.done){r.jumpTo(3);break}Q=T.value;g=A[Q];if(!g){r.jumpTo(10);break}return r.yield(g(),13);case 13:R[Q]=
r.yieldResult;case 10:T=m.next();r.jumpTo(9);break;case 3:return r.return(R)}})};
D6i=function(){var R;_.O(function(A){if(A.nextAddress==1)return A.yield(r0n(),2);R=A.yieldResult;return A.yield(navigator.clipboard.writeText(JSON.stringify(R,null,2)),0)})};
U6H=function(R,A){return _.mc(R.entities,"superThanksSelectedTierEntity",A)};
$6Y=function(R,A){return{popup:{searchSuggestionReportDialog:{searchQuery:R,title:_.vk("SBOX_INAPPROPRIATE_TITLE"),suggestions:A,categoryLabel:_.vk("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.vk("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.vk("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.vk("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.vk("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.vk("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.vk("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.vk("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.vk("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.vk("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
XKn=function(R){var A,Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L;return _.O(function(Z){switch(Z.nextAddress){case 1:return Z.yield(_.vK(),2);case 2:return(A=Z.yieldResult)?Z.yield(_.lHV(A),3):Z.return();case 3:Y=Z.yieldResult;if(!Y)return Z.return();E=((P=Y.offlineVideos)==null?void 0:P.length)||0;c=((z=Y.offlinePlaylists)==null?void 0:z.length)||0;if(E===0&&c===0)return Z.return();M=0;if(Y.offlineVideos)for(N=_.x(Y.offlineVideos),y=N.next();!y.done;y=N.next())m=y.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
m.videoState&&(M+=1);R.offline_videos_count=E.toString();_.v("kevlar_log_offline_current_network_type_ks")||(R.offline_current_network_type=(T=_.TF8())!=null?T:"CONN_INVALID");_.v("kevlar_log_updated_time_for_smart_downloads")&&(Q=_.Yp().getState().entities,g=_.fx(Q),r=QoQ(Q),R.offline_smart_downloads_last_sync_time_ms=g.toString(),R.offline_smart_downloads_next_sync_time_ms=r.toString());R.offline_videos_playable=M.toString();R.offline_playlists_count=c.toString();Y.offlineVideos&&(I=Y.offlineVideos.reduce(function(w,
t){t.downloadedBytes&&(w+=Number(t.downloadedBytes));return w},0).toString())&&(R.offline_used_disk_space_bytes=I);
if(!((b=navigator)==null?0:(p=b.storage)==null?0:p.estimate)){Z.jumpTo(4);break}return Z.yield(navigator.storage.estimate(),5);case 5:h=Z.yieldResult,R.offline_free_disk_space_bytes=(((L=h)==null?void 0:L.quota)||0).toString();case 4:R.offline_client_state=JSON.stringify(Y),_.XH(Z)}})};
SQQ=function(R){R=_.x(R);for(var A=R.next(),Y={};!A.done;Y={setter$jscomp$5:void 0},A=R.next()){var P=A.value;A=P.params;P=P.service;A&&P&&(Y.setter$jscomp$5=_.cOW[P],Y.setter$jscomp$5&&A.forEach(function(E){return function(z){var c=z.key;z=z.value;c&&z&&(0,E.setter$jscomp$5)(c,z)}}(Y)))}};
InH=function(R){R=R.match(/(.*)::.*::.*/);if(R!==null)return R[1]};
KcY=function(R){if(_.mPq()){var A=Object.keys(window.sessionStorage);A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=InH(Y);P===void 0||R.includes(P)||self.sessionStorage.removeItem(Y)}}};
Wco=function(){if(!_.mPq())return!1;var R=_.UK(),A=Object.keys(window.sessionStorage);A=_.x(A);for(var Y=A.next();!Y.done;Y=A.next())if(Y=InH(Y.value),Y!==void 0&&Y!==R)return!0;return!1};
uZ=function(R,A,Y){(_.v("desktop_keyboard_shortcut_usage_log")||Y&&_.v("web_shorts_keyboard_shortcut_usage_log"))&&(A?_.SZ.get(R):_.XA.get(R))&&(R=A?_.Kh.get(R):_.II.get(R))&&_.qT(_.F9(),R)};
jaj=function(R,A){return R.findIndex(function(Y){return Y.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(A.keyCode):!1};
bxm=function(){var R,A;return typeof CSS!=="undefined"&&((A=(R=CSS).supports)==null?void 0:A.call(R,"selector(:has(*))"))};
fnN=function(R){return R.visibility!=="hidden"&&R.display!=="none"};
Fc0=function(R){if(bxm()||R.tagName!=="DETAILS"?!R.matches(pKo):R.querySelector("summary")!==null)return-1;R=R.getAttribute("tabindex")||"0";return Number(R)};
BFf=function(R){return R.some(function(A){return Fc0(A)>0})};
ang=function(R){if(R.textContent)return!0;if(R instanceof HTMLInputElement){if(!R.labels)return!1;R=_.x(R.labels);for(var A=R.next();!A.done;A=R.next())if(A.value.textContent)return!0}return!1};
CwG=function(R){return R.sort(function(A,Y){return Fc0(Y)-Fc0(A)})};
h2m=function(R){R=Array.from(R.querySelectorAll(pKo)).filter(function(A){return(fnN(A.style)?fnN(window.getComputedStyle(A)):!1)&&ang(A)});
return BFf(R)?CwG(R):R};
obi=function(R){R=h2m(R);R.length>0&&R[0].focus()};
kXF=function(R,A){A.stack&&(R.stack+="\n"+A.stack);return R};
t9Y=function(R){var A=eZ(R,"Content-Type");if(!A)return null;A=A.toLowerCase();if(A.startsWith("application/json"))return A.startsWith("application/json+protobuf")?new GXG:new _.yo;if(A.startsWith("application/x-protobuf")){R=eZ(R,"Content-Transfer-Encoding");if(!R)return new qC;if(R.toLowerCase()=="base64")return new ZxN}return null};
YdW=function(R,A,Y,P){var E=new wKN(function(M,N){return uEW.has(N)?M.sentinel==="gal"&&M.event!==void 0:!1},function(M){M.event?(M=e2i(M.event),M=!M||qQN(P,M)?!0:_.Tx(R.lastEvent,Lh,2,dp)?!_.Tx(M,R5,1,dp)&&!_.Tx(M,Lh,2,dp):!_.Tx(M,R5,1,dp)&&!_.Tx(M,Lh,3,dp)):M=!0;
return M});
Y=_.mM(R.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",Lcf(Y)]]));if(R.nestedOrigins!==void 0)for(var z=_.x(R.nestedOrigins),c=z.next();!c.done;c=z.next())Y=_.mM(Y,new Map([["origin",c.value]]));return d6o(E,Y,A).then(function(M){M=RpG(M.event);if(_.Tx(M,R5,1,dp)){var N,y=(N=_.Wb(M,R5,1,dp))==null?void 0:_.SR(N,2);y&&P.JSC$19353_logErrorEvent(Afm(y));N=_.Wb(M,R5,1,dp);_.SR(N,2)===4?(M=_.Wb(M,R5,1,dp),M={statusCode:11,statusMessage:_.X1(M,
3)}):(M=_.Wb(M,R5,1,dp),M={statusCode:12,statusMessage:_.X1(M,3)});return M}_.Tx(M,Lh,3,dp)?(M=_.Wb(M,Lh,3,dp),M={statusCode:1,consentLanguageKeys:_.X1(M,2)}):M={statusCode:1};return M}).catch(function(M){return M.errorCode!==void 0?{statusCode:M.errorCode,
statusMessage:M.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
ioQ=function(R){var A={};if(R===void 0||R===null)return A;R.getToken()!==void 0&&PkH(R.getToken())&&PkH(R.getToken()).length>0&&(A.scopes=new Set(PkH(R.getToken())));R.getToken()!==void 0&&EpQ(R.getToken())&&EpQ(R.getToken()).length>0&&(A.capabilities=new Set(EpQ(R.getToken())));_.X1(R,3)!==void 0&&(A.consistencyKey=_.X1(R,3));R.getName()!==void 0&&R.getName()!==""&&(A.linkName=R.getName());_.mh(R,zp9,4)&&(R=_.cG(R,zp9,4),R=Object.assign({},_.X1(R,1)&&{userId:_.X1(R,1)},_.X1(R,2)&&{displayName:_.X1(R,
2)},_.X1(R,3)&&{email:_.X1(R,3)},_.X1(R,5)&&{username:_.X1(R,5)},_.X1(R,4)&&{profilePicture:_.X1(R,4)}),A.profile=R);return A};
lsf=function(R,A){var Y=R.flowParams,P;return{serviceId:Y.serviceId,sessionId:Y.sessionId,currentFlow:R.currentFlow,googleScopesString:A,linkingSessionSerialized:R.session.serialize(),consentLanguageKeys:Y.consentLanguageKeys,callerState:R.callerState,dynamicUrlParameters:Y.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(P=Y.partnerConfigMinReadTimestamp)==null?void 0:P.serialize()}};
s4f=function(R){var A=R.googleScopes!==void 0?Array.from(R.googleScopes).join(","):"";xiQ(lsf(R,A));A=cfH(R);return A===null?Promise.resolve(OoH):A.start().then(function(Y){var P,E=(P=Y.link)==null?void 0:P.consistencyKey;return Y.statusCode===1&&R.googleScopes!==void 0&&R.googleScopes.size>0&&E!==void 0?(P=R.flowParams,MIi(P.serviceId,P.sessionId,R.googleScopes,E,P.galService,R.config,Y)):Y})};
Na0=function(R){var A=cfH(R);return A===null?Promise.resolve(AP({statusCode:7,statusMessage:"Failed to create flow object"},R.callerState)):A.complete().then(function(Y){var P,E=(P=Y.link)==null?void 0:P.consistencyKey;return Y.statusCode===1&&R.googleScopes!==void 0&&R.googleScopes.size>0&&E!==void 0?(P=R.flowParams,MIi(P.serviceId,P.sessionId,R.googleScopes,E,P.galService,R.config,Y)):AP(Y,R.callerState)},function(Y){return AP({statusCode:12,
statusMessage:"Failed to complete the flow: "+Y.message},R.callerState)})};
MIi=function(R,A,Y,P,E,z,c){return VIN(E,{serviceId:R,sessionId:A,googleScopes:Y,consistencyKey:P}).then(function(){return c},function(M){return E.deleteLink({serviceId:R,
sessionId:A,accountLinkingEntryPoint:z.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+M.message}},function(N){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+N.message}})})};
cfH=function(R){switch(R.currentFlow){case 1:var A=R.flowParams;R=_.cG(R.session,Jf0,1);return Y1.createOAuthFlow(A,R);case 2:case 3:return A=R.flowParams,R=_.cG(R.session,yff,6),PQ.createStreamlinedFlow(A,R);default:return null}};
mij=function(R,A){R===2&&(R=3);var Y=0;EG.indexOf(R)!==-1&&(Y=EG.indexOf(R)+1);for(R=Y;R<EG.length;R++)if(A.has(EG[R]))return EG[R]};
vpN=function(R){var A=R.serviceId;var Y=R.sessionId;var P=R.config;var E=R.galService;var z=R.capabilities;var c=R.scopes;var M=R.loginHint;var N=R.callerState;var y=R.consentLanguageKeys;var m=R.linkName;var T=R.dynamicUrlParameters;var Q=R.partnerConfigMinReadTimestamp;R=P.dataUsageNoticeConfig?P.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return E.startLinkingSession({serviceId:A,sessionId:Y,capabilities:z,scopes:c,loginHint:M,callerState:N,supportedFlows:Tai(P.supportedFlows),completionUrl:P.completionUrl,
accountLinkingEntryPoint:P.accountLinkingEntryPoint,consentLanguageKeys:y,dataUsageNoticeConfig:R,linkName:m,dynamicUrlParameters:T,partnerConfigMinReadTimestamp:Q}).then(function(g){return new Q4o(A,Y,P,E,g,void 0,N,y,T,Q)})};
UiW=function(R,A,Y){var P=(new gpW).getSession(R);if(P===null)return Promise.resolve({statusCode:2});npn(R);var E=Hom(P.linkingSessionSerialized),z=P.googleScopesString!==""&&P.googleScopesString!==void 0?new Set(P.googleScopesString.split(",")):void 0,c=P.partnerConfigMinReadTimestampSerialized?rfi(P.partnerConfigMinReadTimestampSerialized):void 0;return Dii(new Q4o(R,P.sessionId,A,Y,E,z,P.callerState,P.consentLanguageKeys,P.dynamicUrlParameters,c),P.currentFlow,P.consentLanguageKeys)};
xiQ=function(R){var A=new gpW;A.storage!==null&&A.storage.set("SAVED_SESSION",R)};
npn=function(R){var A=new gpW;if(A.storage!==null){var Y=A.storage.get("SAVED_SESSION");Y!==void 0&&Y.serviceId===R&&A.storage.remove("SAVED_SESSION")}};
Tai=function(R){var A=new Set;R=_.x(R);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,Y!==1&&$ii.has(Y)&&A.add($ii.get(Y));return A};
AP=function(R,A){A!==void 0&&(R.callerState=A);return R};
XrH=function(R){switch(R){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
KbW=function(R){return new Sdo(R,new Iso(R))};
boY=function(R,A){A=A===void 0?!1:A;var Y=document.createElement("div");R&&(Y.style.transform="scaleX(-1)");Y.style.backgroundColor=A?"rgba(138,180,248,.24)":"#e8f0fe";Y.style.height="4px";Y.style.overflow="hidden";Y.style.position="absolute";Y.style.top="0";Y.style.width="100%";Y.style.zIndex="1500";Y.setAttribute("aria-label","Loading");Y.setAttribute("aria-live","polite");R=document.createElement("style");R.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  }";
Y.appendChild(R);R=WbQ();R.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";R.style.left="-145.166611%";var P=j4F(A);P.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";R.appendChild(P);Y.appendChild(R);R=WbQ();R.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";R.style.left="-54.888891%";A=j4F(A);A.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
R.appendChild(A);Y.appendChild(R);return Y};
WbQ=function(){var R=document.createElement("div");R.style.height="100%";R.style.position="absolute";R.style.transformOrigin="top left";R.style.width="100%";return R};
j4F=function(R){var A=document.createElement("span");A.style.borderTop=R?"4px solid #669df6":"4px solid #4285f4";A.style.display="inline-block";A.style.position="absolute";A.style.width="100%";return A};
fsW=function(R){return R==null?void 0:_.Rb8(R).valueOf()};
asF=function(R){var A=document.body,Y=!1,P=function(){Y||(Y=!0,prG(E,z),setTimeout(function(){A.removeChild(z);A.removeChild(E)},150))},E=Fb0(R,getComputedStyle(A).direction==="rtl",P),z=Bag(P);
prG(E,z);A.appendChild(z);A.appendChild(E);window.requestAnimationFrame(function(){z.style.opacity="1";E.style.opacity="1";E.style.transform="translate(-50%, -50%) scale(1)";E.children[0].focus()})};
Fb0=function(R,A,Y){var P=document.createElement("div");P.style.position="fixed";P.style.alignItems="center";P.style.backgroundColor=R?"rgb(32, 33, 36)":"white";P.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";P.style.display="flex";P.style.flexDirection="column";P.style.justifyContent="center";P.style.left="50%";P.style.top="50%";P.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";P.style.zIndex="2002";document.body.clientWidth>=
660?(P.style.borderRadius="8px",P.style.minHeight="220px",P.style.maxHeight="90%",P.style.maxWidth="90%",P.style.minWidth="540px"):(P.style.height="100%",P.style.width="100%");P.setAttribute("aria-label","Error");P.setAttribute("aria-modal","true");P.setAttribute("role","alertdialog");P.addEventListener("keydown",function(z){z.key==="Escape"&&Y()});
A=Cki(R,A,Y);P.appendChild(hpm(A));P.appendChild(A);var E=document.createElement("img");E.src=R?"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";E.style.height="72px";E.style.width="72px";E.style.color="#9aa0a6";E.setAttribute("alt","");P.appendChild(E);E=document.createElement("h1");E.textContent="Something went wrong.  Try again.";
E.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";E.style.lineHeight="24px";E.style.fontSize="16px";E.style.textAlign="center";E.style.letterSpacing="0.1px";E.style.color=R?"rgb(232,234,237)":"#3c4043";P.appendChild(E);P.appendChild(hpm(A));return P};
Cki=function(R,A,Y){var P=document.createElement("button");P.style.backgroundColor="transparent";P.style.border="none";P.style.borderRadius="50%";P.style.cursor="pointer";P.style.outline="none";P.style.padding="12px";P.setAttribute("aria-label","Close dialog");P.style.position="absolute";P.style.top="0";A?P.style.right="0":P.style.left="0";P.addEventListener("focus",function(){P.style.backgroundColor=R?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
P.addEventListener("blur",function(){P.style.backgroundColor="transparent"});
P.addEventListener("mouseenter",function(){P.style.backgroundColor=R?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
P.addEventListener("mouseleave",function(){P.style.backgroundColor="transparent"});
P.addEventListener("click",Y);P.addEventListener("keydown",function(E){E.key!=="Enter"&&E.key!=="Space"||Y()});
A=document.createElement("img");A.src=R?"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";A.style.display="block";A.style.height="24px";A.style.width="24px";A.setAttribute("alt","");P.appendChild(A);return P};
hpm=function(R){var A=document.createElement("div");A.setAttribute("tabindex","0");A.setAttribute("aria-hidden","true");A.addEventListener("focus",function(){return void R.focus()});
return A};
Bag=function(R){var A=document.createElement("div");A.style.backgroundColor="rgba(32,33,36,0.6)";A.style.bottom="0";A.style.left="0";A.style.position="fixed";A.style.right="0";A.style.top="0";A.style.transition=" opacity 150 ms linear";A.style.zIndex="2001";A.addEventListener("click",R);return A};
prG=function(R,A){A.style.opacity="0";R.style.opacity="0";R.style.transform="translate(-50%, -50%) scale(0.8)"};
opG=function(R,A){R.sandbox&&R.sandbox.add&&(R.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),R.sandbox.add("allow-downloads"));R.src=A};
zB=function(R){k99.call(this,R)};
iz=function(R,A){A=A===void 0?!1:A;this.parsedImageUrl_=null;R instanceof G9W||(ZoY==void 0&&(ZoY=new tIf),R=ZoY.parse(R.toString(),A));R=this.parsedImageUrl_=R;R.JSC$19565_parsedOptions_==void 0&&((A=R.getOptions())||(A=""),R.JSC$19565_parsedOptions_=(new wrm).parse(A));k99.call(this,R.JSC$19565_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;R=this.parsedImageUrl_;A=R.uri_.JSC$10024_port_;this.JSC$19567_domain_=R.uri_.JSC$10024_domain_+(A?":"+A:"");this.JSC$19567_query_=
this.parsedImageUrl_.uri_.JSC$10024_queryData_.toString()};
uIY=function(R){this.mode=4;this.data=R;this.parsedData=[];R=0;for(var A=this.data.length;R<A;R++){var Y=[],P=this.data.charCodeAt(R);P>65536?(Y[0]=240|(P&1835008)>>>18,Y[1]=128|(P&258048)>>>12,Y[2]=128|(P&4032)>>>6,Y[3]=128|P&63):P>2048?(Y[0]=224|(P&61440)>>>12,Y[1]=128|(P&4032)>>>6,Y[2]=128|P&63):P>128?(Y[0]=192|(P&1984)>>>6,Y[1]=128|P&63):Y[0]=P;this.parsedData.push(Y)}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))};
epF=function(R){this.typeNumber=0;this.errorCorrectLevel=R===void 0?2:R;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
lz=function(R,A){if(R.length==void 0)throw Error("Ek`"+R.length+"`"+A);for(var Y=0;Y<R.length&&R[Y]==0;)Y++;this.num=Array(R.length-Y+A);for(A=0;A<R.length-Y;A++)this.num[A]=R[A+Y]};
qdH=function(R,A){this.totalCount=R;this.dataCount=A};
LbW=function(){this.buffer=[];this.length=0};
diG=function(){var R=!1;if(_.Jkk()){R=_.yk();var A="";_.T8V()?(A=/Windows (?:NT|Phone) ([0-9.]+)/,A=(R=A.exec(R))?R[1]:"0.0"):_.Ik()?(A=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,A=(R=A.exec(R))&&R[1].replace(/_/g,".")):_.mbk()?(A=/Mac OS X ([0-9_.]+)/,A=(R=A.exec(R))?R[1].replace(/_/g,"."):"10"):_.Mb(_.yk(),"KaiOS")?(A=/(?:KaiOS)\/(\S+)/i,A=(R=A.exec(R))&&R[1]):_.Jkk()?(A=/Android\s+([^\);]+)(\)|;)/,A=(R=A.exec(R))&&R[1]):_.QkS()&&(A=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,A=(R=A.exec(R))&&R[1]);R=
A||""}return R};
zxm=function(R,A){this.JSC$19590__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(A)for(var Y in A)this.JSC$19590__htOption[Y]=A[Y];this.JSC$19590__htOption.useSVG&&(RxN=AhN);this.JSC$19590__android=diG();this.JSC$19590__el=R;this._oQRCode=null;this._oDrawing=new RxN(this.JSC$19590__el,this.JSC$19590__htOption);this.JSC$19590__htOption.text&&(R=this.JSC$19590__htOption.text,this._oQRCode=new epF(this.JSC$19590__htOption.correctLevel),YlW(this._oQRCode,
R),A=this._oQRCode,P5i(A,!1,Ew0(A)),this.JSC$19590__el.title=R,this._oDrawing.draw(this._oQRCode),this.makeImage())};
iGN=function(R,A,Y,P,E){R.save();var z=new Path2D;z.roundRect(A,Y,P*7,P*7,P*2);z.roundRect(A+P,Y+P,P*5,P*5,P*1.3);z.roundRect(A+2*P,Y+2*P,P*3,P*3,P);R.clip(z,"evenodd");R.fillStyle=E;R.fillRect(0,0,R.canvas.width,R.canvas.height);R.restore()};
x1=function(R,A){if(typeof R!=="function")throw Error("Hk");return _.P3.setTimeout(function(){R()},A)};
cQ=function(){};
xom=function(R,A,Y,P,E){(new cQ).debug("TestLoadImageWithRetries: "+E);if(P==0)Y(!1);else{var z=E||0;P--;loN(R,A,function(c){c?Y(!0):_.P3.setTimeout(function(){xom(R,A,Y,P,z)},z)})}};
loN=function(R,A,Y){var P=new cQ;P.debug("TestLoadImage: loading "+R);var E=new Image;E.onload=function(){try{P.debug("TestLoadImage: loaded"),ch9(E),Y(!0)}catch(z){}};
E.onerror=function(){try{P.debug("TestLoadImage: error"),ch9(E),Y(!1)}catch(z){}};
E.onabort=function(){try{P.debug("TestLoadImage: abort"),ch9(E),Y(!1)}catch(z){}};
E.ontimeout=function(){try{P.debug("TestLoadImage: timeout"),ch9(E),Y(!1)}catch(z){}};
_.P3.setTimeout(function(){if(E.ontimeout)E.ontimeout()},A);
E.src=R};
ch9=function(R){R.onload=null;R.onerror=null;R.onabort=null;R.ontimeout=null};
OGi=function(){this.front_=[];this.back_=[]};
Mz9=function(R,A){_.KJ.call(this);this.delay_=new _.jK(this.JSC$19716_onTick_,0,this);_.gz(this,this.delay_);this.JSC$19714_interval_=5E3;this.nextTickTime_=0;if(typeof R==="function")A&&(R=(0,_.Wv)(R,A));else if(R&&typeof R.handleEvent==="function")R=(0,_.Wv)(R.handleEvent,R);else throw Error("ya");this.JSC$19716_listener_=R};
OG=function(R,A,Y,P,E,z,c,M,N,y,m,T,Q,g){Y=Y===void 0?!1:Y;P=P===void 0?function(){return""}:P;
E=E===void 0?!1:E;z=z===void 0?!1:z;c=c===void 0?!1:c;M=M===void 0?function(){return _.Vn({})}:M;
N=N===void 0?!1:N;m=m===void 0?!1:m;T=T===void 0?!1:T;Q=Q===void 0?!1:Q;g=g===void 0?!1:g;this.JSC$19717_pathPrefix_=R;this.defaultQueryParams_=A;this.pubsub_=new _.gr;this.reconnectTimer_=new Mz9(this.safeReconnect_,this);this.JSC$19717_channel_=null;this.JSC$19717_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$19717_pendingMessages_=[];this.enableAsyncTest_=Y;this.JSC$19717_getXsrfToken_=P;this.useAsyncBrowserChannelHandler_=z;this.getAuthorizationHeader_=
M;this.getAuthorizationHeaderSync_=y;this.enableCachedUpdateAuthorizationHeader_=c;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.Vn();this.enableLoungeTokenRefresh_=E;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=N;this.disableMdxAuthForNonPlaybackMessages_=m;this.disableMdxAuthForAdMessages_=T;this.enableMdxAuthForConnectionOnly_=Q;this.disableMdxAuthForShortsMessages_=g;this.JSC$19717_channelOpenedCounter=new s6n;this.JSC$19717_channelClosedCounter=new NgW;this.channelMessageSentCounter=
new Vzm;this.JSC$19717_channelMessageReceivedCounter=new Jho;this.JSC$19717_channelErrorCounter=new yh9;this.pendingMapsOnClosedCounter=new moH;this.undeliveredMapsOnClosedCounter=new Tg9};
M$=function(R){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;R=R||document.location.href;var A=Number(_.RW(R)[4]||null)||"";A&&(this.port=":"+A);this.domain=_.AN(R)||"";R=_.yk();R.search("MSIE")>=0&&_.Vk(R.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
sG=function(R){R=R||{};this.name=R.name||"";this.id=R.id||R.screenId||"";this.token=R.token||R.loungeToken||"";this.uuid=R.uuid||R.dialId||"";this.idType=R.screenIdType||"normal"};
Q6m=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(R){var A=Math.random()*16|0;return(R=="x"?A:A&3|8).toString(16)})};
vwQ=function(R){return _.aS(R,function(A){return{key:A.id,name:A.name}})};
gwG=function(R,A){return _.jP(R,function(Y){return Y||A?!Y!=!A?!1:Y.id==A.id:!0})};
VD=function(R,A){return _.jP(R,function(Y){return N$(Y,A)})};
Uog=function(){var R=nwo(),A=HGf();if(rhQ()){var Y=R,P=_.X3l(Y,A);P<0&&_.Dbk(Y,-(P+1),0,A)}R=Don(R);if(R.length==0)try{_.V9k("remote_sid")}catch(E){}else try{_.rr("remote_sid",R.join(","),-1)}catch(E){}};
nwo=function(){var R=_.K1("yt-remote-connected-devices")||[];R.sort(_.$b3);return R};
Don=function(R){if(R.length==0)return[];var A=R[0].indexOf("#"),Y=A==-1?R[0]:R[0].substring(0,A);return _.aS(R,function(P,E){return E==0?P:P.substring(Y.length)})};
$of=function(R){_.Im("yt-remote-connected-devices",R,86400)};
HGf=function(){if(XZi)return XZi;var R=_.K1("yt-remote-device-id");R||(R=Q6m(),_.Im("yt-remote-device-id",R,31536E3));for(var A=nwo(),Y=1,P=R;_.B3(A,P);)Y++,P=R+"#"+Y;return XZi=P};
SlQ=function(){return _.K1("yt-remote-session-browser-channel")};
rhQ=function(){return _.K1("yt-remote-session-screen-id")};
WyN=function(R){R.length>5&&(R=R.slice(R.length-5));var A=_.aS(Io0(),function(P){return P.loungeToken}),Y=_.aS(R,function(P){return P.loungeToken});
_.T7S(Y,function(P){return!_.B3(A,P)})&&Kyo();
_.Im("yt-remote-local-screens",R,31536E3)};
Io0=function(){return _.K1("yt-remote-local-screens")||[]};
Kyo=function(){_.Im("yt-remote-lounge-token-expiration",!0,86400)};
JP=function(R){R||(_.Wd("yt-remote-session-screen-id"),_.Wd("yt-remote-session-video-id"));Uog();R=nwo();_.ak(R,HGf());$of(R)};
bGH=function(){j6i();return yD?!!yD.get("yt-remote-use-staging-server"):!1};
j6i=function(){if(!yD){var R=_.Hx8();R&&(yD=new _.Sx(R))}};
Bgo=function(R,A,Y,P,E){Y=Y===void 0?function(){return""}:Y;
var z=function(){return new OG(mW(R,"/bc"),A,!1,Y,P)};
return _.v("enable_mdx_web_channel_desktop")?new fo9(function(){return new pZW(mW(R,"/wc"),A,Y)}):new FyY(z,E)};
owN=function(){var R=aoG;C5o();TB.push(R);hxW()};
QD=function(R,A){C5o();var Y=k2W(R,String(A));TB.length==0?G2j(Y):(hxW(),_.uI(TB,function(P){P(Y)}))};
vQ=function(R){QD("CP",R)};
C5o=function(){TB||(TB=_.Zr("yt.mdx.remote.debug.handlers_")||[],_.PG("yt.mdx.remote.debug.handlers_",TB))};
G2j=function(R){var A=(gO+1)%50;gO=A;ZGF[A]=R;tzf||(tzf=A==49)};
hxW=function(){var R=TB;if(ZGF[0]){var A=tzf?gO:-1,Y={};do Y={record$jscomp$15:void 0},A=(A+1)%50,Y.record$jscomp$15=ZGF[A],_.uI(R,function(P){return function(E){E(P.record$jscomp$15)}}(Y));
while(A!=gO);ZGF=Array(50);gO=-1;tzf=!1}};
k2W=function(R,A){var Y=(Date.now()-wZH)/1E3;Y.toFixed&&(Y=Y.toFixed(3));var P=[];P.push("[",Y+"s","] ");P.push("[","yt.mdx.remote","] ");P.push(R+": "+A,"\n");return P.join("")};
nE=function(R){_.$i.call(this);this.JSC$19741_logName_=R;this.screens=[]};
rO=function(R){nE.call(this,"LocalScreenService");this.JSC$19748_http_=R;this.loungeTokenRefreshTimer_=NaN;HQ(this);this.info("Initializing with "+u7f(this.screens))};
D6=function(R,A){A=A===void 0?!1:A;nE.call(this,"ScreenService");this.JSC$19754_http_=R;this.disableAutomaticScreenCache_=A;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};exi(this)};
UG=function(R,A,Y){_.$i.call(this);this.JSC$19758_logName_=Y;this.JSC$19758_screenService_=R;this.receiver_=A;this.screen_=null};
sZi=function(R,A,Y){Y.disableCastApi?$1("Cannot initialize because disabled by Mdx config."):qlY()?Ly9(R,Y)&&(do0(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?Rwg(A):(window.__onGCastApiAvailable=function(P,E){P?Rwg(A):(XU("Failed to load cast API: "+E),A7i(!1),do0(!1),_.Wd("yt-remote-cast-available"),_.Wd("yt-remote-cast-receiver"),Y5F(),A(!1))},Y.loadCastApiSetupScript?_.Gr(P4Q):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
E90()>=60&&zwQ():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?iCo():E90()>=89?lco():(xfm(),c7o(OCQ.map(M5g))))):$1("Cannot initialize because not running Chrome")};
Y5F=function(){$1("dispose");var R=Sf();R&&R.dispose();_.PG("yt.mdx.remote.cloudview.instance_",null);NUG(!1);_.Ywb(V5Y);V5Y.length=0};
J7g=function(){return!!_.K1("yt-remote-cast-installed")};
y79=function(){var R=_.K1("yt-remote-cast-receiver");return R?R.friendlyName:null};
mfm=function(){$1("clearCurrentReceiver");_.Wd("yt-remote-cast-receiver")};
TUG=function(){return J7g()?Sf()?Sf().getCastSession():(XU("getCastSelector: Cast is not initialized."),null):(XU("getCastSelector: Cast API is not installed!"),null)};
v9n=function(R,A){QZY()?Sf().setConnectedScreenStatus(R,A):XU("setConnectedScreenStatus called before ready.")};
qlY=function(){var R=_.yk().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.sk||R};
Ly9=function(R,A){var Y=!1;Sf()||(R=new I5(R,A),R.subscribe("yt-remote-cast2-availability-change",function(P){_.Im("yt-remote-cast-available",P);BJ("yt-remote-cast2-availability-change",P)}),R.subscribe("yt-remote-cast2-receiver-selected",function(P){$1("onReceiverSelected: "+P.friendlyName);
_.Im("yt-remote-cast-receiver",P);BJ("yt-remote-cast2-receiver-selected",P)}),R.subscribe("yt-remote-cast2-receiver-resumed",function(P){$1("onReceiverResumed: "+P.friendlyName);
_.Im("yt-remote-cast-receiver",P);BJ("yt-remote-cast2-receiver-resumed",P)}),R.subscribe("yt-remote-cast2-session-change",function(P){$1("onSessionChange: "+g99(P));
P||_.Wd("yt-remote-cast-receiver");BJ("yt-remote-cast2-session-change",P)}),_.PG("yt.mdx.remote.cloudview.instance_",R),Y=!0);
$1("cloudview.createSingleton_: "+Y);return Y};
Sf=function(){return _.Zr("yt.mdx.remote.cloudview.instance_")};
Rwg=function(R){A7i(!0);do0(!1);Sf().init(!1,function(A){A?(NUG(!0),_.Phk("yt-remote-cast2-api-ready")):(XU("Failed to initialize cast API."),A7i(!1),_.Wd("yt-remote-cast-available"),_.Wd("yt-remote-cast-receiver"),Y5F());R(A)})};
$1=function(R){QD("cloudview",R)};
XU=function(R){QD("cloudview",R)};
A7i=function(R){$1("setCastInstalled_ "+R);_.Im("yt-remote-cast-installed",R)};
QZY=function(){return!!_.Zr("yt.mdx.remote.cloudview.apiReady_")};
NUG=function(R){$1("setApiReady_ "+R);_.PG("yt.mdx.remote.cloudview.apiReady_",R)};
do0=function(R){_.PG("yt.mdx.remote.cloudview.initializing_",R)};
KE=function(R){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(R)};
n9W=function(){var R,A;return _.O(function(Y){if(Y.nextAddress==1)return(_.ack()||_.v("use_new_nwl"))&&_.fcu().isNetworkAvailable()?Y.yield(_.EF(),2):Y.return();if(Y.nextAddress!=3)return(R=Y.yieldResult)?Y.yield(Eog(R),3):Y.return();A=Y.yieldResult;if(!A.length)return Y.return();A.forEach(function(P){var E={timestamp:P.timestamp};P=P.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:P.appShellAssetLoadReport,options:E}:P.clientError?{payloadName:"clientError",payload:P.clientError,
options:E}:void 0;P&&_.Wj(P.payloadName,P.payload,P.options)});
A.length===100&&_.fn.addLowPriorityJob(n9W);_.XH(Y)})};
HCn=function(R){if(R.playerResponse){if(R=R.playerResponse,R.messages&&R.messages.length>0&&(R=R.messages.find(function(A){return!(!A||!A.mealbarPromoRenderer)}))&&R.mealbarPromoRenderer)return R.mealbarPromoRenderer}else if(R.response&&(R=R.response)&&R.overlay&&R.overlay.mealbarPromoRenderer)return R.overlay.mealbarPromoRenderer};
r7Y=function(R){if(R.response){var A=R.response;if(A&&A.overlay&&A.overlay.tooltipRenderer)return A.overlay.tooltipRenderer}if(R.playerResponse&&(R=R.playerResponse,R.messages&&R.messages.length>0&&(R=R.messages.find(function(Y){return!(!Y||!Y.tooltipRenderer)}))&&R.tooltipRenderer))return R.tooltipRenderer};
UfF=function(R){if(!Dfm&&(R=R||_.a1("ZWIEBACK_PING_URLS"))&&R.length){Dfm=!0;for(var A=0;A<R.length;A++)_.ZF(R[A])}};
XcQ=function(R){if(_.BO.get(_.a1("PLAYER_VARS",{}),"privembed",!1)!="1"){R&&u9G();try{$f9().then(function(){},function(){}),_.JN(XcQ,18E5)}catch(A){_.hv(A)}}};
S5n=function(){var R=_.Hk(),A=R.getFlag(119),Y=window.devicePixelRatio>1;document.body&&_.eS(document.body,"exp-invert-logo")&&(Y&&!_.eS(document.body,"inverted-hdpi")?_.Ew(document.body,"inverted-hdpi"):!Y&&_.eS(document.body,"inverted-hdpi")&&_.YL(document.body,"inverted-hdpi"));A!=Y&&(_.rH(0,119,Y),R.save())};
Ic9=function(R){return R.filter(function(A){return"ypcGetCartEndpoint"in A||"ypcFixInstrumentEndpoint"in A})};
K0o=function(R){return R.filter(function(A){return!_.n(A,_.NI7)})};
jZN=function(R,A){var Y,P,E,z,c,M,N;_.O(function(y){switch(y.nextAddress){case 1:Y=_.FI.getInstance();P=_.Qp.instance;E=_.tM.instance;if(!E)return W0j(R,P,A),y.return();_.g2(y,2);R.onLoadingCommand&&P.resolveCommand(R.onLoadingCommand);return y.yield(Y.getCurrentPositionFromGeolocation(),4);case 4:z=y.yieldResult;if(!R.resolveLocationCommand){y.jumpTo(5);break}c=Y.createLocationInfo(z);return y.yield(_.uh(E,R.resolveLocationCommand,{locationInfo:c}),6);case 6:M=y.yieldResult;if(!M||"error"in M&&M.error||
M.errorMetadata)return W0j(R,P,A),y.return();var m;if(M==null?0:(m=M.onResponseReceivedActions)==null?0:m.length){m=_.x(M.onResponseReceivedActions);for(var T=m.next();!T.done;T=m.next())P.resolveCommand(T.value)}(_.n(R.onSuccessCommand,_.LO)||_.n(R.onSuccessCommand,_.Ds))&&_.xo(A.hostElement,"yt-navigate",{endpoint:R.onSuccessCommand,reload:!0});case 5:_.us(y,0);break;case 2:N=_.UT(y);if(N instanceof GeolocationPositionError&&N.code===GeolocationPositionError.PERMISSION_DENIED)return R.onDeniedCommand&&
P.resolveCommand(R.onDeniedCommand),y.return();W0j(R,P,A);_.XH(y)}})};
W0j=function(R,A,Y){R.onFailureCommand&&(A.resolveCommand(R.onFailureCommand),_.OC(Y.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
fcf=function(R,A){var Y=_.n(R,_.w$N);if(Y&&A){R=Y.videoIds||[Y.videoId];var P;A=(P=_.xo(A,"yt-lockup-requested",{videoIds:R}).detail)==null?void 0:P.returnValue;var E;Y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?E=A?A:R.map(function(z){return{videoId:z,navigationEndpoint:Y.videoCommand}}):A&&(E=A);
E&&(P=E.map(function(z){var c=Object,M=c.assign;var N=z.navigationEndpoint;if(!_.n(N,_.SI)){var y=_.n(N,_.LO);if(y){if(delete y.index,delete y.playlistId,y=_.n(N==null?void 0:N.commandMetadata,_.Ti),y==null?0:y.url){var m=y.url;m=_.Pk(m,"list");m=_.Pk(m,"index");y.url=m}}else N=void 0}return M.call(c,{},z,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:N})}),bCg(P,Y))}};
pco=function(R){var A=_.lr();if(R=_.n(R,_.uQb))R.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&A.clearQueue(),R.closeMiniplayer&&_.is().resolve(_.jv).close(!0)};
BUo=function(R){F0Q(_.lr(),R)};
acH=function(R){var A;(R=(A=_.n(R,_.ZAb))==null?void 0:A.setVideoIds)&&R.forEach(function(Y){_.UrA(_.lr(),Y)})};
hwW=function(R){C4W(_.lr(),R)};
o9N=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(R){return!1}};
kjQ=function(R){var A=["h","m","s"],Y=_.Cu(A);Y.reverse();var P={};R=(R.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(c){var M=(c.match(/[hms]/)||[""])[0];return M?(P[M]=parseInt(c.match(/\d+/)[0],10),!1):!0});
for(R.reverse();R.length&&Y.length;){var E=Y.shift();E in P||(P[E]=parseInt(R.shift(),10))}if(R.length||P.s>59||P.m>59||P.h>9)return null;var z="";A.forEach(function(c){P[c]&&(z+=""+P[c]+c)});
return z||null};
Gjj=function(R,A){var Y=_.mAS(A,{},R,!0);return new Promise(function(P,E){Y.listenOnce("n",function(){E(Error("sl`"+Y.JSC$29428_getErrorDescription()))});
Y.listenOnce("l",function(){var z=Y.getResponseCode();if(z!==200)E(Error("tl`"+A+"`"+R.type+"`"+R.size+"`"+z));else try{P(JSON.parse(Y.getResponseText()).encryptedBlobId)}catch(c){E(c)}});
Y.run()})};
ZCW=function(R){return R.substring(R.indexOf(":")+1,R.indexOf(";"))};
t5g=function(R){return new Promise(function(A,Y){var P=new FileReader;P.onloadend=function(){try{var E=new Uint8Array(P.result);E.length<8&&Y(void 0);var z=E.subarray(0,8);E="";for(var c=0;c<z.length;c++)E+=("0"+z[c].toString(16)).substr(-2);E.startsWith("ffd8ff")?A("image/jpeg"):E.startsWith("47494638")?A("image/gif"):E.startsWith("89504e470d0a1a0a")?A("image/png"):E.startsWith("424d")?A("image/bmp"):A(void 0)}catch(M){Y(M)}};
P.onerror=Y;P.readAsArrayBuffer(R)})};
wcH=function(R){return new Promise(function(A,Y){var P=new Image;P.crossOrigin="anonymous";P.onload=function(){var E=document.createElement("canvas");E.width=P.naturalWidth;E.height=P.naturalHeight;var z=E.getContext("2d");if(!z)throw Error("ul");z.drawImage(P,0,0);z=ZCW(R);E.toBlob(function(c){c?A(c):Y()},z)};
P.src=R})};
ewf=function(R,A){var Y;if(((Y=_.n(R,_.SI))==null?void 0:Y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var P;_.xo((P=A.hostElement)!=null?P:A,"yt-shorts-reset");_.IBG(_.is().resolve(_.Bd),R).then(function(z){uSf(z,A,R)})}else{var E;
_.sC((E=A.hostElement)!=null?E:A,[R]).then(function(z){z&&uSf(z.data,A,R)})}};
uSf=function(R,A,Y){if(R){var P=_.n(R.replacementEndpoint,_.SI);if(P){R.sequenceContinuation&&(P.sequenceParams=R.sequenceContinuation);var E;_.xo((E=A.hostElement)!=null?E:A,"yt-navigate",{endpoint:R.replacementEndpoint})}else if((R==null?void 0:R.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(R==null?0:R.watchStatus)&&_.n(R.watchStatus,_.S0A)){var z;_.xo((z=A.hostElement)!=null?z:A,"yt-navigate",{endpoint:Y})}}};
q5j=function(R){var A=_.is().resolve(_.PX),Y=_.oP.currentPageTypeSelector(A.getState())||"";A=_.oP.currentPageSubTypeSelector(A.getState())||"";Y=Y==="ytd-browse"&&A==="home";return _.v("web_guide_entry_enable_cache_for_non_home_pages")?(R=(R==null?void 0:R.navigationEndpoint)&&_.ra(R.navigationEndpoint)==="home",{disableCache:Y&&R}):{disableCache:Y}};
L09=function(R){if(!R)return!1;try{if(R.host&&R.host.tagName==="YT-FORMATTED-STRING"&&R.host.id==="contenteditable-textarea"||R.nodeType===Node.ELEMENT_NODE&&R.tagName==="YTD-COMMENT-INPUT")return!0}catch(A){return!1}return L09(R.parentNode)};
WQ=function(R){return R?R.tagName==="A"&&R.href&&R.classList.contains("yt-simple-endpoint"):!1};
dfn=function(R){return R?R.tagName==="IMG"&&R.classList.contains("emoji"):!1};
Rc9=function(R,A,Y){if(!R)return null;var P=WQ(R);if(P&&Y)return A=R.pathname.substring(R.pathname.indexOf("/channel/")+9),document.createTextNode("@"+A);if(P&&!Y)return document.createTextNode("");if(dfn(R))return Y=R.alt,R=R.dataset.emojiId,!R&&A&&(A=_.xs(A,Y))&&A.isCustomEmoji&&(R=A.emojiId),R?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+R+">"):document.createTextNode(Y);P=R.cloneNode(!1);for(var E=0;E<R.childNodes.length;++E){var z=Rc9(R.childNodes[E],A,Y);z&&P.appendChild(z)}return P};
jf=function(R){return R?WQ(R)?R:jf(R.lastChild):null};
AMi=function(R){return R?WQ(R)?R:AMi(R.firstChild):null};
Ywg=function(R){if(!R)return null;for(var A=R.previousSibling;A;)if(A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="BR")A=A.previousSibling;else if(A.nodeType===Node.TEXT_NODE&&/\s+/.test(A.textContent))A=A.previousSibling;else break;(A=jf(A))?R=A:R=(R=R.parentNode)?jf(R.previousElementSibling):null;return R};
PhN=function(R){if(!R)return null;for(var A=R.nextSibling;A;)if(A.nodeType===Node.ELEMENT_NODE&&A.nodeName==="BR")A=A.nextSibling;else if(A.nodeType===Node.TEXT_NODE&&/\s+/.test(A.textContent))A=A.nextSibling;else break;return(A=AMi(A))?A:PhN(R.parentNode)};
ELY=function(R){var A=_.Or(),Y=A.JSC$11334_getStartNode();if(!L09(Y.parentNode))return null;A=A.JSC$11334_getStartOffset();if(Y.nodeType===Node.TEXT_NODE){var P=_.GE(Y,WQ);if(P){if(R&&A===0||!R&&A===Y.length)return P}else{if(R&&A===Y.length)return!Y||Y.nodeName==="BR"||Y.nextElementSibling&&_.Mh(Y.nextElementSibling,"display")==="block"?null:AMi(Y.nextElementSibling);if(!R&&A===0)return Y?jf(Y.previousElementSibling):null}}if(Y.nodeType===Node.ELEMENT_NODE)if(R){if(0<=A&&A<Y.childNodes.length)return AMi(Y.childNodes[A])}else if(0<
A&&A<=Y.childNodes.length)return jf(Y.childNodes[A-1]);return null};
zcQ=function(R,A,Y){if(!R)return null;if(R.nodeType===Node.TEXT_NODE)if(Y){var P=Ywg(R);if(P&&!/^\s+\S/.test(R.wholeText.substr(0,A)))return P}else if((P=PhN(R))&&!/\S\s+/.test(R.wholeText.substr(A,R.wholeText.length)))return P;return R.nodeType===Node.ELEMENT_NODE?Y?Ywg(R.childNodes[A]):PhN(R.childNodes[A]):zcQ(R.parentNode,A,Y)};
iYF=function(R){if(R.hasChildNodes())switch(R.tagName){case "DIV":case "A":case "SPAN":var A="";for(R=R.firstChild;R;R=R.nextSibling)A+=iYF(R);return A;default:return""}else switch(R.nodeType){case 3:return R.textContent;default:return""}};
lLY=function(R){switch(R){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"}};
xHQ=function(R){return R.map(function(A){return{settingsRadioOptionRenderer:{title:_.xb(A.name),asideText:_.xb(A.approximateSize),id:lLY(A.format)}}})};
OYN=function(R){if(R&&R.length!==0)return R.filter(cMj()).map(function(A){return{settingsRadioOptionRenderer:{title:A.name,asideText:A.approximateSize,id:lLY(A.formatType)}}})};
bz=function(R){if(R)return R.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Mig=function(R,A){R=new Set(R!=null?R:[]);if(R.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(R.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(R.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(R.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(R.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(A)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
sEF=function(R){var A=R.indexOf("(");return A!==-1?R.substring(A+1,R.length-1):R};
_.Vi0=function(R,A,Y,P,E){Y||(Y=NlY);var z;(z=_.n(Y.commandMetadata,_.Ti))!=null&&z.url||(Y=Error("zl`"+JSON.stringify(Y)),_.bj(Y),Y=NlY);Y=_.BO.unsafeClone(Y);z=_.an(_.n(Y.commandMetadata,_.Ti).url,"search_query",R);_.wz(location.href,"sv")==="1"&&(_.n(Y,_.Ud).params="EgOAAgE%3D",z=_.an(z,"sv","1"));_.n(Y,_.Ud)&&(_.n(Y,_.Ud).query=R);z=z.replace(/%20/g,"+");_.n(Y.commandMetadata,_.Ti).url=z;E=_.v("desktop_enable_entity_suggest")?{entityMid:E}:{};_.is().resolve(_.ls).resolveCommand(Y,{form:{tempData:Object.assign({},
{gs_l:A,oq:P!=null?P:R},E)}})};
JMn=function(R){switch(R){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
mHj=function(R,A,Y,P,E,z){var c=_.BO.clone(yMm);c.locale=_.a1("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;c.report={description:E||"<empty>"};E=_.a1("SBOX_SETTINGS",{});A=A.join(",");var M=Date.now();R={choice_cc:P,choice_id_cc:Y,choices_sc:A,gl:E.REQUEST_DOMAIN,hl:E.REQUEST_LANGUAGE,query:R,time:M};z&&(R.choice_additional_comment_cc=z);_.HFS(c,R)};
Tl9=function(R){var A=new Map;A.set("authuser",_.a1("SESSION_INDEX","0"));return _.mM(R,A)};
vLm=function(R){var A;return _.O(function(Y){switch(Y.nextAddress){case 1:if(!R||!QEW(R))return Y.return(null);A=null;switch(_.a1("INNERTUBE_CLIENT_NAME")){case "WEB":return Y.jumpTo(2);case "WEB_REMIX":A=R.getPlayer()}Y.jumpTo(3);break;case 2:return Y.yield(R.getPlayerPromise(),4);case 4:A=Y.yieldResult;Y.jumpTo(3);break;case 3:return Y.return(A)}})};
QEW=function(R){return["ytd-player","ytmusic-player"].includes(String(R.tagName||"").toLowerCase())};
gLF=function(R){R=Math.round(R);return R%2?R-1:R};
nL9=function(R){R=Math.round(R);return R%2===0?R-1:R};
HYi=function(R){var A,Y,P;if(R=(A=R.createPlaylistDialogFormSchema)==null?void 0:(Y=A.fieldSchemas)==null?void 0:(P=Y.title)==null?void 0:P.validationSchema)for(A=[R.syncStep,R.asyncStep].filter(function(E){return E!==void 0}),A=_.x(A),Y=A.next();!Y.done;Y=A.next()){Y=Y.value.rules;
if(!Y)break;Y=_.x(Y);for(Y=Y.next();!Y.done;Y=Y.next())return _.n(Y.value,_.TrW)}};
DHf=function(R){var A,Y,P;if(R=(A=R.createPlaylistDialogFormSchema)==null?void 0:(Y=A.fieldSchemas)==null?void 0:(P=Y.visibility)==null?void 0:P.validationSchema)for(A=[R.syncStep,R.asyncStep].filter(function(E){return E!==void 0}),A=_.x(A),Y=A.next();!Y.done;Y=A.next()){Y=Y.value.rules;
if(!Y)break;Y=_.x(Y);for(P=Y.next();!P.done;P=Y.next())if(P=_.n(P.value,rMj))return A=void 0,(A=P.translations)==null?void 0:A.visibilityNotValidErrorMessage}};
UHQ=function(){var R,A;return(A=(R=_.is().resolve(_.z3(_.dU)))==null?void 0:R())!=null?A:!1};
$Hf=function(R){var A=21;if(!R)return A;A+=R.headerTitle?27:0;A+=R.headerTitle&&R.hasHeaderActionHeader?4:0;return A+=R.headerTitle&&R.headerSubtitle?16:0};
X1g=function(R){var A=0;if(!R)return A;A+=R.hasFooterPrimaryButton||R.hasFooterSecondaryButton?48:0;A+=R.footerTrailingLabel||R.footerLeadingLabel?30:0;return A+=R.hasFooterPrimaryButton||R.hasFooterSecondaryButton||!R.footerTrailingLabel&&!R.footerLeadingLabel?0:12};
SwY=function(R){var A=new _.gr,Y=R;return{subscribe:function(P){A.subscribe("changed",P)},
dispatch:function(P,E){var z=Y;P==="Touch Start"?Y=Object.assign({},z,{isAnimating:!1,initialY:E.event.touches[0].clientY}):P==="Touch Move"?(P=Math.min(E.fullContentWrapperHeight,E.contentHeightMap[E.contentWrapperId]+$Hf(E.header)-X1g(E.footer)),Y=Object.assign({},z,{currentY:Math.max(E.contentScrollable?-1*(z.initialY-24):0,E.event.touches[0].clientY-z.initialY),maxHeightForContentWrapper:Math.min(P,Math.max(0,(z.isFullScreen?P:E.contentWrapperHeight)-z.currentY))})):Y=P==="Snap To Full Screen"?
Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:E.maxHeight}):P==="Snap To Neutral Position"?Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:E.maxHeight}):P==="Close Sheet"?Object.assign({},z,{isAnimating:!0,currentY:E.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:E.maxHeight}):z;A.publish("changed",Y)}}};
ILg=function(R){return _.Qi(function(A){R(A);return!1})};
KBQ=function(){_.is().resolve(_.wy).closeSheet()};
WBN=function(R){var A,Y,P,E,z,c,M,N,y,m,T;return{headerTitle:(A=R.headerTitle)==null?void 0:A.call(R),headerSubtitle:(Y=R.headerSubtitle)==null?void 0:Y.call(R),headerActionHeader:R.headerActionHeader,footerPrimaryButton:R.footerPrimaryButton,footerSecondaryButton:R.footerSecondaryButton,footerButtonType:(P=R.footerButtonType)==null?void 0:P.call(R),footerLeadingLabel:(E=R.footerLeadingLabel)==null?void 0:E.call(R),footerTrailingLabel:(z=R.footerTrailingLabel)==null?void 0:z.call(R),shouldShowIcons:(c=
R.shouldShowIcons)==null?void 0:c.call(R),skipContentClick:(M=R.skipContentClick)==null?void 0:M.call(R),additionalClassName:(N=R.additionalClassName)==null?void 0:N.call(R),onClosedCallback:R.onClosedCallback,focusOnClose:(y=R.focusOnClose)==null?void 0:y.call(R),isDisabled:(m=R.isDisabled)==null?void 0:m.call(R),disabledCommand:(T=R.disabledCommand)==null?void 0:T.call(R),headerFn:R.headerFn,contentFn:R.contentFn,footerFn:R.footerFn,hasHeaderFn:R.hasHeaderFn(),hasContentFn:R.hasContentFn(),hasFooterFn:R.hasFooterFn(),
hasFooterPrimaryButton:R.hasFooterPrimaryButton(),hasFooterSecondaryButton:R.hasFooterSecondaryButton(),hasHeaderActionHeader:R.hasHeaderActionHeader()}};
jEf=function(R){switch(R){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""}};
bYo=function(R){switch(R){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""}};
fLQ=function(R){switch(R){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""}};
p1g=function(R,A,Y){A.forEach(function(P){_.K_(_.is().resolve(_.wt),P)});
_.OC(R,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",Y])};
Chj=function(R,A,Y,P){var E=_.n(Y,_.lS).commandLifeCycleConfig;E&&E.onStartCommand&&_.NT(R,[E.onStartCommand],A);_.BL(A);var z=_.tM.instance;z&&_.wl(z,Y)?_.uh(z,Y,P).then(function(c){if(!c||(c==null?0:c.error))return c=_.n(Y,_.lS).serializedTransactionFlowLoggingParams,_.a9(A),_.j5(new fE("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",c));_.a9(A);return{data:c}}).then(function(c){_.a9(A);
FBG(c.data);var M=c.data.command;M&&_.NT(R,[M],A);M=Blj(Y,c.data);if(!M){var N=c.data;c=!1;if(N&&N.command&&_.n(N.command,_.Jg)){var y;N=((y=_.n(N.command,_.Jg))==null?void 0:y.commands)||[];for(y=0;y<N.length;y++)if(_.n(N[y],_.e1A)){c=!0;break}}c||_.ur('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!M&&E&&E.onSuccessCommand?_.NT(R,[E.onSuccessCommand],A):M&&E&&E.onFailureCommand&&_.NT(R,[E.onFailureCommand],A)},function(){_.a9(A);
E&&E.onFailureCommand&&_.NT(R,[E.onFailureCommand],A);aLm(Y)}):_.bj(Error("Ll"),"ERROR")};
hc0=function(R,A,Y){var P=[A];Y&&P.push(Y);return _.sC(R,P).then(function(E){var z=_.n(A,_.lS).serializedTransactionFlowLoggingParams,c=E.data,M=Blj(A,c);M?E=_.j5(new fE(M,z)):FBG(c);return E},function(){var E=_.n(A,_.lS).serializedTransactionFlowLoggingParams;
aLm(A);return _.j5(new fE("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",E))})};
Blj=function(R,A){R=_.n(R,_.lS).serializedTransactionFlowLoggingParams;var Y=null;switch(A.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":Y="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":Y="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":Y="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}Y?_.da(Y,R):Qai(R);return Y};
aLm=function(R){_.da("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.n(R,_.lS).serializedTransactionFlowLoggingParams)};
FBG=function(R){if(R.trackingParams){var A=_.F9(),Y=_.pO();A&&Y&&_.ZM(A,Y,_.S5(R.trackingParams))}};
oLH=function(R,A,Y){var P=_.tM.instance,E=_.bkk(_.a1("YPC_MB_URL")),z=(new _.W93).init(),c=_.j0J(),M=_.n(Y,_.ZHN).languageCode;M===void 0?_.bj(Error("Hi"),"ERROR"):_.W$([z,E]).then(function(){var N={ctk:payments.business.integration.ClientTokenFactory.createClientToken(M,c)};P&&_.wl(P,Y)?_.uh(P,Y,N).then(function(y){return{data:y}}).then(function(y){_.xo(A,"yt-service-request-completed",y);
y.code!=="ERROR"&&(y=y.data.command)&&_.NT(R,[y],A)}):_.bj(Error("Ll"),"ERROR")})};
ZYH=function(R,A,Y,P){var E=_.tM.instance;E&&_.wl(E,Y)?_.uh(E,Y,P).then(function(z){return{data:z}}).then(function(z){koo(R,A,Y,z)},function(){GoQ(Y)}):(E=_.is().resolve(_.z3(_.a4)))&&E.requestDataForServiceEndpoint(Y,P).then(function(z){koo(R,A,Y,z)},function(){GoQ(Y)})};
koo=function(R,A,Y,P){_.xo(A,"yt-service-request-completed",P);if(P.code&&P.code=="ERROR")GoQ(Y);else{(P=P.data.commands)&&_.NT(R,P,A);var E;(R=(E=_.n(Y,_.L4S))==null?void 0:E.serializedYpcPauseFlowLoggingParams)&&R&&_.l1("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",R)}};
GoQ=function(R){var A;(R=(A=_.n(R,_.L4S))==null?void 0:A.serializedYpcPauseFlowLoggingParams)&&R&&_.l1("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",R,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
uWo=function(R,A,Y){var P=_.tM.instance;P&&_.wl(P,Y)?_.uh(P,Y).then(function(E){return{data:E}}).then(function(E){tim(R,A,Y,E)},function(){w1m(Y)}):(P=_.is().resolve(_.z3(_.a4)))&&P.requestDataForServiceEndpoint(Y).then(function(E){tim(R,A,Y,E)},function(){w1m(Y)})};
tim=function(R,A,Y,P){_.xo(A,"yt-service-request-completed",P);P.code&&P.code=="ERROR"?w1m(Y):((P=P.data.commands)&&_.NT(R,P,A),(R=_.n(Y,_.dUf).serializedYpcResumeFlowLoggingParams)&&R&&_.l1("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",R))};
w1m=function(R){(R=_.n(R,_.dUf).serializedYpcResumeFlowLoggingParams)&&R&&_.l1("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",R,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
ecN=function(R){R=R===void 0?{}:R;_.is().resolve(_.fTD).showFeedbackDialog(R.customProductData,R.feedbackContent,R.onFeedbackSubmitted,R.bucket)};
qwf=function(R){R=R===void 0?{}:R;_.is().resolve(_.fTD).showHelpDialog(R.helpContext,R.articleId,R.productData)};
LBG=function(){qwf()};
dHN=function(){ecN()};
A4i=function(R,A,Y){var P,E,z,c,M,N,y;return _.O(function(m){switch(m.nextAddress){case 1:P=_.n(R,RH9);if((E=P)==null?0:E.productId){N={productId:P.productId,bucket:P.bucket,enableAnonymousFeedback:(M=P.enableAnonymousFeedback)!=null?M:!0,allowNonLoggedInFeedback:!0};y={feedbackChoice:Y.feedbackChoice};if(!_.v("web_collect_offline_state")){m.jumpTo(8);break}_.g2(m,9);return m.yield(XKn(y),11)}c={bucket:(z=P)==null?void 0:z.bucket};if(!_.v("web_collect_offline_state")){m.jumpTo(4);break}c.customProductData=
{};_.g2(m,5);return m.yield(XKn(c.customProductData),7);case 7:_.us(m,4);break;case 5:_.UT(m);case 4:ecN(c);m.jumpTo(0);break;case 11:_.us(m,8);break;case 9:_.UT(m);case 8:_.vdS(y),_.Q3I("GFEEDBACK",y),P.productId==="5295751"&&(y.client_attestation=Number(_.a1("CATSTAT",0))),P.productId==="5295751"&&(y.client_time=Date.now()/1E3/3600),P.productId==="5295751"&&(y.original_playback_id=_.FIz||""),_.HFS(N,y),_.XH(m)}})};
YJ0=function(R){if(R=_.n(R,_.p56)){var A={bucket:R.bucketIdentifier};R.additionalDatas&&(A.customProductData={},R.additionalDatas.forEach(function(Y){if(Y=Y.userFeedbackEndpointProductSpecificValueData)A.customProductData[Y.key]=Y.value}));
ecN(A)}};
Pco=function(R){var A=_.ZA.getInstance();var Y=_.vk("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var P=_.vk("DELETE",void 0,"Delete"),E=_.vk("CANCEL",void 0,"Cancel");Y=Bqo(Y,void 0,P,E,{signal:"DELETE_ALL_DOWNLOADS"});_.Gf(A,[{openPopupAction:Y}],R)};
zH9=function(){return _.O(function(R){return R.nextAddress==1?R.yield(_.is().resolve(_.KM),2):R.yield(EHY(),0)})};
iii=function(R){var A,Y;return _.O(function(P){return P.nextAddress==1?(Y=(A=_.n(R,_.h$))==null?void 0:A.targetId)?P.yield(_.is().resolve(_.KM),3):P.jumpTo(0):P.yield(_.is().resolve(_.ID).deleteVideo(Y),0)})};
xV9=function(R){var A,Y;return _.O(function(P){return P.nextAddress==1?(Y=(A=_.n(R,_.h$))==null?void 0:A.targetId)?P.yield(_.is().resolve(_.KM),3):P.jumpTo(0):P.yield(lkn(_.is().resolve(_.ID),Y),0)})};
Oii=function(R){var A,Y;return _.O(function(P){return(Y=(A=_.n(R,_.h$))==null?void 0:A.targetId)?P.yield(c4G(Y),0):P.jumpTo(0)})};
sPn=function(){_.v("kevlar_woffle_refresh_dl_load_killswitch")||MdN()};
Vdf=function(){_.v("kevlar_woffle")&&_.po.instance&&N0m()};
y4n=function(R){var A;if((A=_.n(R,_.TI))==null||!A.videoId)return!1;J4o(_.is().resolve(_.ID),_.n(R,_.TI),R.clickTrackingParams);return!0};
T0G=function(R){var A;if((A=_.n(R,_.QJ))==null||!A.playlistId)return!1;mVm(_.is().resolve(_.ID),_.n(R,_.QJ),R.clickTrackingParams);return!0};
vH0=function(R){var A=_.n(R,_.piS);(A==null?void 0:A.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(A==null?void 0:A.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||QPm(_.is().resolve(_.ID),_.n(R,_.piS))};
nHi=function(R){R=_.n(R,_.N3A);var A;(R==null?0:(A=R.actions)==null?0:A.length)&&gHf(R)};
DVg=function(R){var A,Y;return _.O(function(P){A=_.n(R,HiW);return(Y=A)!=null&&Y.localWatchHistoryCommandType?P.yield(r4n(A),0):P.return()})};
UVH=function(R){setTimeout(function(){requestAnimationFrame(R)},80)};
$VQ=function(R){return Object.entries(R).map(function(A){return A.join(":")}).join(";")};
SJF=function(R){var A,Y,P;_.O(function(E){if(E.nextAddress==1)return E.yield(XTn(),2);A=E.yieldResult;Y=_.Qp.instance;switch(A){case "granted":P=R.getLocationCommand;break;case "denied":P=R.openDeniedDialogAction;break;case "prompt":P=R.openCollectionDialogAction;break;default:P=R.openCollectionDialogAction}P&&Y.resolveCommand(P);_.XH(E)})};
XTn=function(){var R,A;return _.O(function(Y){if(Y.nextAddress==1)return R="prompt",navigator.permissions?Y.yield(navigator.permissions.query({name:"geolocation"}),3):Y.jumpTo(2);Y.nextAddress!=2&&(A=Y.yieldResult,R=A.state);return Y.return(R)})};
Kp9=function(){_.O(function(R){return R.yield(_.Ikn(),0)})};
Wpi=function(){var R,A,Y;return _.O(function(P){if(P.nextAddress==1)return R=_.is().resolve(_.Co),R?P.yield(_.uh(R,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.pK(Error("Ol")),P.return(void 0));if(A=P.yieldResult){if(A.errorMetadata)return _.pK(Error("Pl`"+A.errorMetadata.status+"`"+A.error)),P.return(void 0);Y=A.datasyncIds;_.B8g=Y.length;return P.return(Y)}_.pK(Error("Ql"));return P.return(void 0)})};
jPH=function(){Wpi().then(function(R){R&&(YCW(R),gbG(R),wkf(R),KcY(R))})};
biG=function(R){_.fn.addLowPriorityJob(function(){var A,Y,P,E,z;return _.O(function(c){switch(c.nextAddress){case 1:if(_.v("ytidb_clear_optimizations_killswitch")){c.jumpTo(2);break}A=_.UK("clear");if(A.startsWith("V")&&A.endsWith("||")){var M=[A];YCW(M);gbG(M);wkf(M);KcY(M);return c.return()}Y=uhY();P=Wco();return c.yield(nbi(),3);case 3:return E=c.yieldResult,c.yield(PEf(),4);case 4:if(z=c.yieldResult,!(Y||P||E||z))return c.return();case 2:R.isNetworkAvailable()?jPH():R.listenOnce("publicytnetworkstatus-online",
jPH),_.XH(c)}})})};
pE=function(R){R={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.dF(R)}}}};_.Qp.instance&&_.Qp.instance.resolveCommand(R)};
fkW=function(R){if(R){var A=_.rU();_.$5(A,3854,void 0,{layer:0,parentLayer:4});switch(R){case 1:var Y=238708;break;case 2:Y=238715;break;case 3:Y=238710;break;case 6:Y=238709}Y&&(R=_.Hc(A,{veType:Y}))&&_.IC(A,R)}};
pTY=function(R){if(R){var A=_.rU();_.$5(A,3854,void 0,{layer:0,parentLayer:4});switch(R){case 1:var Y=238714;break;case 2:Y=238711;break;case 8:Y=238709;break;case 7:Y=238713;break;case 3:case 4:case 5:Y=238712}Y&&(R=_.Hc(A,{veType:Y}))&&_.IC(A,R)}};
FpY=function(R){switch(R.latencyType){case 0:_.pj("consent_primitive_flow");_.Fh("cpit",R.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Fh("cpist",R.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Fh("cprtif",R.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Fh("cprtli",R.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Fh("cprt",R.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Fh("cpdt",R.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.Fh("cpjct",R.timestampEpochMillis,"consent_primitive_flow")}};
wTi=function(R,A){var Y,P,E,z,c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z,w;return _.O(function(t){switch(t.nextAddress){case 1:_.g2(t,2);(P=(Y=_.n(R,B0N))==null?void 0:Y.serializedConsentRequest)||(P=(E=_.n(R,ako))==null?void 0:E.serializedConsentRequest);P&&(z=CcY(_.eP(P)));if(z===void 0)return t.return();c=hHm(z);c.latencyCallback=FpY;A&&oHF(c,function(){A.then(function(d){d.pauseVideo();(new kIf).increment()})});
return((M=_.n(R,B0N))==null?void 0:M.consentAction)==="CONSENT_ACTION_PREWARM"||((N=_.n(R,ako))==null?void 0:N.consentAction)==="CONSENT_ACTION_PREWARM"?t.yield(GIH(c),5):t.yield(Zii(c),6);case 6:y=t.yieldResult;m=_.gA(y,FU);if(m===1){if(((T=_.Wb(y,BQ,1,FU))==null?void 0:_.SR(T,1))===1||((Q=_.Wb(y,BQ,1,FU))==null?void 0:_.SR(Q,1))===2||((g=_.Wb(y,BQ,1,FU))==null?void 0:_.SR(g,1))===3)_.n(R,ako)?pE(_.vk("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
pE(_.vk("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));fkW((r=_.Wb(y,BQ,1,FU))==null?void 0:_.SR(r,1),_.OU(y,tdN,3,_.M_()))}else m===2?(((I=a5(y))==null?void 0:_.SR(I,1))===5?_.n(R,ako)?pE(_.vk("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):pE(_.vk("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((b=a5(y))==null?void 0:_.SR(b,1))===1||((p=a5(y))==null?void 0:_.SR(p,1))===4?pE(_.vk("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((h=a5(y))==null?void 0:_.SR(h,1))===7&&((L=z)==null?void 0:(Z=_.cG(L,CE,4))==null?void 0:_.SR(Z,4))!==1&&pE(_.vk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),pTY((w=a5(y))==null?void 0:_.SR(w,1))):pE(_.vk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));t.jumpTo(5);break;case 5:_.us(t,0);break;case 2:_.UT(t),pE(_.vk("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.XH(t)}})};
eHY=function(){if(!ukY.has("Worker")){ukY.set("Worker",!0);var R={api:"BROWSER_API_WEB_WORKER"};R.available="Worker"in window?!0:!1;_.Wj("apiTest",R)}};
qJn=function(R){return typeof R==="undefined"?"-1":String(Math.ceil(R/1048576))};
Amf=function(R,A){LpN(new dVm(_.n(A,R8H).addToken,_.n(A,R8H).commonToken)).then(function(){_.xo(R,"yt-invoke-instrument-manager-action-completed")},function(Y){_.xo(R,"yt-invoke-instrument-manager-action-error",Y)})};
Yro=function(){var R,A;return(A=(R=window).matchMedia)==null?void 0:A.call(R,"(prefers-reduced-motion: reduce)").matches};
Pxm=function(R){var A=_.is().resolve(_.z3(_.B8));if(A&&A.isAnyTransitionEnabled){var Y={};A.viewTransitionCoordinator.registerElement(R,(Y.slide="miniplayer-page-transition",Y["lockup-to-watch"]="miniplayer-page-transition",Y["learning-journey"]="miniplayer-page-transition",Y))}};
EsF=function(R,A,Y){return{horizontalAlignment:R.x+Y.width/2<A.width/2?"west":"east",verticalAlignment:R.y+Y.height/2<A.height/2?"north":"south"}};
i00=function(R,A,Y,P,E){E=E===void 0?new _.Cs(0,0):E;R=z8n(R,A,Y,P);return new _.Cs(R.x+E.x,R.y+E.y)};
z8n=function(R,A,Y,P){return new _.Cs(R==="west"?16:Y.width-P.width-16,A==="north"?16:Y.height-P.height-16)};
l5G=function(R,A){var Y=0;R&&(Y+=76);A&&(Y+=285);return Y};
xh0=function(R){return _.F1(R)};
cm0=function(R){var A=1;R=R.split(":");for(var Y=[];A>0&&R.length;)Y.push(R.shift()),A--;R.length&&Y.push(R.join(":"));return Y};
O09=function(R){var A=new _.mL;return _.jR(A,11,R)};
MbG=function(R){var A={};R=R.getAllResponseHeaders().split("\r\n");for(var Y=0;Y<R.length;Y++)if(!_.c3(R[Y])){var P=cm0(R[Y]),E=P[0];P=P[1];if(typeof P==="string"){P=P.trim();var z=A[E]||[];A[E]=z;z.push(P)}}return _.BO.map(A,function(c){return c.join(", ")})};
eZ=function(R,A){return R.JSC$9789_xhr_?R.JSC$9789_xhr_.getResponseHeader(A):null};
s9H=function(R,A){if(R.isDisposed())throw Error("Ea");R.tT.pG("n");var Y=_.CA(R.tT,function(){return R.mqp([A.v6,A.qKn,A.lnD,A.ckL])},"n");
R.tT.y6l(Y.length);R.tT.i4();return Y};
hP=function(R,A,Y){Array.isArray(Y)||(Y=[String(Y)]);_.Lf8(R.JSC$10024_queryData_,A,Y);return R};
N0m=function(){var R=_.po.instance;_.O(function(A){return R.deferredInstallPrompt?A.yield(R.deferredInstallPrompt.prompt(),0):A.jumpTo(0)})};
NcQ=function(R,A,Y){if(_.ok(R))_.uI(R,A,Y);else for(R=_.lN8(R);;){var P=R.next();if(P.done)break;A.call(Y,P.value,void 0,R)}};
VbY={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}"]};
VbY={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 Jmi=function(R,A){var Y=[];NcQ(A,function(P){try{var E=_.M4.prototype.getWrapper.call(this,P,!0)}catch(z){if(z=="Storage: Invalid value was encountered")return;throw z;}E===void 0?Y.push(P):_.igD(E)&&Y.push(P)},R);
return Y},ymg=function(R,A){Jmi(R,A).forEach(function(Y){_.M4.prototype.remove.call(this,Y)},R)},mhW=function(R){var A=_.dS;
A._minimumZ=Math.max(A._minimumZ,R)},Tc9=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],Q90=function(R,A){_.lt(R.vm);R.vm=A},vsN=function(R,A,Y,P){R.setState(5);
var E=!!R.yKc&&Tc9.includes(_.AN(R.yKc)||"");try{var z=new _.hA({program:A,globalName:Y,eBM:{disable:!_.v("att_web_record_metrics")||!_.v("att_skip_metrics_for_cookieless_domains_ks")&&E,iL:"aGIf"}});z.qHK.then(function(){R.setState(6);P&&P(A)});
Q90(R,z)}catch(c){R.setState(7),c instanceof Error&&_.pK(c)}},gsm=function(R,A,Y,P,E,z){var c=c===void 0?"trayride":c;
Y?(R.setState(2),_.Gr(_.bt(Y),function(){if(window[c])vsN(R,P,c,E);else{R.setState(3);var M=_.MJb(Y),N=document.getElementById(M);N&&(_.zck(M),N.parentNode.removeChild(N));_.pK(new _.XN("BL:ULB",Y))}},z)):A?(z=_.De("SCRIPT"),A instanceof _.AO?_.Pt(z,A):z.textContent=A,z.nonce=_.RG(document),document.head.appendChild(z),document.head.removeChild(z),window[c]?vsN(R,P,c,E):(R.setState(4),_.pK(new _.XN("BL:ULBJ")))):_.pK(new _.XN("BL:ULV"))},ns0=function(){this.state=1;
this.vm=null;this.yKc=void 0};
_.l=ns0.prototype;_.l.initialize=function(R,A,Y,P){this.yKc=P;if(R.program){var E;P=(E=R.interpreterUrl)!=null?E:null;if(R.interpreterSafeScript)E=_.$ou(R.interpreterSafeScript);else{var z;E=(z=R.interpreterScript)!=null?z:null}R.interpreterSafeUrl&&(P=_.pn(R.interpreterSafeUrl).toString());gsm(this,E,P,R.program,A,Y)}else _.pK(Error("mf"))};
_.l.isInitialized=function(){return!!this.vm};
_.l.getState=function(){return this.state};
_.l.isLoading=function(){return this.state===2};
_.l.invoke=function(R){R=R===void 0?{}:R;var A;this.vm?A=s9H(this.vm,{v6:R}):A=null;return A};
_.l.dispose=function(){Q90(this,null);this.setState(8)};
_.l.setState=function(R){this.state=R};
var H09=function(R,A){return R.vm.snapshot(A)},rmQ=function(R,A){var Y=_.cU("botguard_async_snapshot_timeout_ms",3E3);
A=A===void 0?{}:A;Y=Y===void 0?3E3:Y;return R.vm?new Promise(function(P,E){var z=!1,c=_.fn.addJob(function(){z=!0;E(Error("nf"))},1,Y);
R.vm?H09(R,{v6:A}).then(function(M){_.fn.cancelJob(c);z||P(M)}).catch(function(M){_.fn.cancelJob(c);
z||E(M)}):(_.fn.cancelJob(c),P(null))}):Promise.resolve(null)},Dhi=["att/log"],NlY;
NlY={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var UhN={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},$hY=function(R,A){return _.HK(R,{mode:"readwrite",enableRetries:!0},function(Y){return _.hlk(Y,A,"settingEntity")})},XLm=function(R,A,Y){return _.HK(R,{mode:"readonly",
enableRetries:!0},function(P){return _.gEA(P,A,Y)})},Srm=function(R){if(!R.storage)return!1;
a:{if(R.storage){try{var A=R.storage.get("TLPQtimestamp")}catch(Y){}R=Number(A);if(!isNaN(R))break a}R=void 0}return R?Date.now()-R<864E5:!1},I5n=function(R){if(R.storage){try{var A=R.storage.get("TLPQindex")}catch(Y){}R=Number(A);
if(!isNaN(R))return R}},KOF=function(R,A){R.queueProxy&&A.forEach(function(Y){if(Y.videoId&&Y.trackingParams&&R.queueProxy instanceof _.dY){var P=_.F9();
R.queueProxy.attributionData.set(Y.videoId,{enqueueingVe:_.S5(Y.trackingParams).getAsJson(),enqueueingCsn:P?P:void 0,clientEnqueueingTimeMs:Math.floor((0,_.iB)()).toString()})}})},WOQ=function(R){var A=_.Y$A(R);
A!=R.currentSnapState_&&(R.currentSnapState_=A,R.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},o5=function(R){this.JSC$13151_networkManager_=R;
this.partCallbacks_=[]};
o5.prototype.getCacheKeyForEndpoint=function(R){return _.UuV(R,!1)};
o5.prototype.onPartsCallback_=function(R){this.partCallbacks_.forEach(function(A){R&&A(R)})};
var k1=function(R,A,Y){o5.call(this,R);this.player_=A;this.autoplayData_=Y};
_.H(k1,o5);k1.prototype.getCacheKeyForEndpoint=function(R){return _.UuV(R,!!this.autoplayData_)};
k1.prototype.getTempData=function(R,A){A=A.timeBeforeNextVideo;R={itct:R.clickTrackingParams,lact:_.z$(),pbis:A,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(R.autonav=1);return R};
k1.prototype.getXhrParams=function(R){return Object.assign({pbj:"prefetch"},R)};
k1.prototype.getParams=function(R){R={frags:R.fragmentsRequested.join(",")};_.v("kevlar_droppable_prefetchable_requests")&&(R.prefetch=1);return R};
var j9H=function(R){R.playerEvents_.forEach(function(A){R.player.removeEventListener(A.eventName,A.callback)});
R.playerEvents_.length=0},GB=function(R,A,Y){this.player=R;
this.JSC$13161_taskManager=A;this.prefetchDelay=Y;this.completionResolver_=null;this.playerEvents_=[]};
GB.prototype.start=function(){var R=this;this.completionResolver_=_.ei();_.jS(this.completionResolver_.promise,function(){j9H(R);R.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var b0i=function(R,A,Y){R.player.addEventListener(A,Y);R.playerEvents_.push({eventName:A,callback:Y})},f5i={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},pLN={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},FOf=function(R,A,Y){GB.call(this,R,A,Y);this.cueId_="playbackTrigger-"+Math.random()};
_.H(FOf,GB);
FOf.prototype.prepareTrigger=function(R){var A=this,Y=this.player.getDuration(),P=this.player.getVideoData(),E=P.isLive&&P.hasProgressBarBoundaries;if(E&&P.progressBarEndPositionUtcTimeMillis){var z=P.progressBarEndPositionUtcTimeMillis/1E3;isNaN(z)||(Y=z)}var c=0;this.prefetchDelay>=0?E?P.progressBarStartPositionUtcTimeMillis&&(P=P.progressBarStartPositionUtcTimeMillis/1E3,isNaN(P)||(c=P+this.prefetchDelay)):c=this.prefetchDelay:c=Y+this.prefetchDelay;E?this.player.addUtcCueRange(this.cueId_,c,Y):
this.player.addCueRange(this.cueId_,c,Y);_.jS(R.promise,function(){A.player.removeCueRange(A.cueId_)});
b0i(this,"onCueRangeEnter",function(M){M==A.cueId_&&R.resolve(Y-c)})};
var Bcj=function(R,A){R.fragmentConfiguration_[A].requiredKeys.every(function(Y){return!!R.prefetchedData_[Y]})&&(R.validatedFragments_.push(A),A=R.missingFragments_.indexOf(A),A!==-1&&R.missingFragments_.splice(A,1))},a5o=function(R){R.prefetchedFragments_.forEach(function(A){Bcj(R,A)})},CxQ=function(R,A,Y){this.pageFragments_=R;
this.prefetchedFragments_=A;this.fragmentConfiguration_=pLN;this.prefetchedData_=Y;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;a5o(this)},h8Q=function(){},os9=function(R){this.JSC$13175_playlistManager_=R};
_.H(os9,h8Q);os9.prototype.getPrefetchEndpoint=function(){return this.JSC$13175_playlistManager_.getAutoplayEndpoint()};
var ktG=function(R){this.autonavEndpoints_=R};
_.H(ktG,h8Q);ktG.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Gtg=function(R,A,Y,P,E){this.autonavEndpoints=R;this.foregroundTrigger=A;this.backgroundTrigger=Y;this.pageType=P;this.isInPlaylist=E},Z0W=function(R,A){if(R.webPrefetchData&&R.webPrefetchData.navigationEndpoints&&R.webPrefetchData.navigationEndpoints.length){R=R.webPrefetchData.navigationEndpoints;
var Y=_.n(R[0],_.LO);if(Y.watchEndpointSupportedPrefetchConfig&&Y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var P=Y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;Y=P.playbackRelativeSecondsPrefetchCondition;Y=typeof Y==="number"&&Math.abs(Y)<A.videoDuration?Y:void 0;P=P.countdownUiRelativeSecondsPrefetchCondition;P=typeof P!=="number"||_.v("prefetch_job_config_cleanup_ks")&&A.inPlaylist?void 0:P;if(typeof P==="number")return new Gtg(R,A.makeUpNextTrigger(P),A.makePlaybackTrigger(P),
"watch",A.inPlaylist);if(typeof Y==="number")return new Gtg(R,A.makePlaybackTrigger(Y),null,"watch",A.inPlaylist)}}},tbF=function(R){return R.prefetchJobConfig_.backgroundTrigger?_.o1(_.xYS)()==0?R.prefetchJobConfig_.backgroundTrigger:R.prefetchJobConfig_.foregroundTrigger:R.prefetchJobConfig_.foregroundTrigger},wLG=function(R){_.XQ(document,"visibilitychange",R.onVisibilityChange_,!1,R)},Z6=function(R){o5.call(this,R)};
_.H(Z6,o5);Z6.prototype.getCacheKeyForEndpoint=function(R){return o5.prototype.getCacheKeyForEndpoint.call(this,R)};
Z6.prototype.getTempData=function(){return{}};
Z6.prototype.getXhrParams=function(R){return R};
Z6.prototype.getParams=function(){return{}};
var unG=function(R,A,Y){var P=R.prefetchDelay*1E3;if(Math.abs(P)>A)Y.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var E=P,z=A-P;P<0&&(E=A+P,z=Math.abs(P));var c=R.JSC$13161_taskManager.addJob(function(){Y.resolve(z/1E3)},10,E);
Y.promise.thenCatch(function(){R.JSC$13161_taskManager.cancelJob(c)})}},e8W=function(R,A,Y){GB.call(this,R,A,Y)};
_.H(e8W,GB);e8W.prototype.prepareTrigger=function(R){var A=this;b0i(this,"onAutonavCoundownStarted",function(Y){unG(A,Y,R)})};
var qrW=function(R){R.pendingPrefetchJob_&&(R.pendingPrefetchJob_.cancel(),R.pendingPrefetchJob_=null)},LOG=function(R,A,Y){if(!R.triggeredTargets.has(A)){var P=_.e6G(R,A);
P.action=Y;_.wRq(R,A,P)}},dhF=function(R){_.fhS();
_.ggI("cpt")&&_.pK(Error("mh"));_.P3.requestAnimationFrame(function(){_.P3.setTimeout(function(){_.Fh("cpt");var A=_.Cj("vpl"),Y=_.Cj("cpt");A&&Y&&_.Fh("ol",Math.max(A,Y))})});
try{_.Fh("fr_s"),R()}catch(A){_.bj(A)}_.P3.requestAnimationFrame(function(){_.Fh("bcp")})},R30=function(R,A){R.serviceEndpointHandlers.push(A)},AV0=function(R,A){A=R.pendingPages_.indexOf(A);
A>-1&&R.pendingPages_.splice(A,1)},YRW=function(R,A){var Y=_.iM8.indexOf(A);
Y>-1&&_.iM8.splice(Y,1);R.targetPage_==A?(R.abort(),_.xn7(R)):AV0(R,A)},PDg=function(R,A,Y,P){A={challenge:A};
Y&&(A.webResponse=Y);return _.Ad(R.innertubeTransportService,A,_.Pr(Dhi),P)},EjF=function(R,A,Y){if(!A.challenge)throw Error("pi");
if(A.botguardData&&A.botguardData.program){var P=new ns0;P.initialize(A.botguardData,function(){rmQ(P,{atr_challenge:A.challenge}).then(function(E){if(!E)throw Error("qi");return PDg(R,A.challenge,E,Y)}).catch(function(E){_.pK(E);
return PDg(R,A.challenge,void 0,Y)})},void 0)}else PDg(R,A.challenge,void 0,Y)},z3f=function(R,A,Y){var P={};
A.ids&&(P.ids=[].concat(_.py(A.ids)));A.engagementType&&(P.engagementType=A.engagementType);return _.Ad(R.innertubeTransportService,P,_.Pr(_.FXZ),Y).then(function(E){if(!E)throw new _.XN("GetAttestationChallenge returned falsy");EjF(R,E,Y)}).thenCatch(function(E){_.bj(E)})},i6Y=function(R,A,Y){return new _.yR(function(P,E){var z;
return _.O(function(c){if(c.nextAddress==1){var M=c.yield,N=A.engagementType,y=A.ids,m={};y=_.x(y!=null?y:[]);for(var T=y.next();!T.done;T=y.next())T=T.value,T.encryptedVideoId?m.encryptedVideoId=T.encryptedVideoId:T.externalChannelId?m.externalChannelId=T.externalChannelId:T.commentId?m.commentId=T.commentId:T.externalOwnerId?m.externalOwnerId=T.externalOwnerId:T.artistId?m.artistId=T.artistId:T.playlistId?m.playlistId=T.playlistId:T.externalPostId?m.externalPostId=T.externalPostId:T.shareId&&(m.shareId=
T.shareId);return M.call(c,FrQ(N,m),2)}z=c.yieldResult;if(!z.challenge)return _.pK(Error("ri")),z3f(R,A,Y).then(P,E),c.return();M=z;N={challenge:M.challenge};N.webResponse=M.webResponse;N.engagementType=A.engagementType;N.ids=A.ids;_.Ad(R.innertubeTransportService,N,_.Pr(Dhi),Y).then(P,E);_.XH(c)})})},C4W=function(R,A){var Y,P,E,z;
_.O(function(c){if(c.nextAddress==1){Y=_.n(A,_.qXS);if(!(Y&&Y.listId&&R.response&&R.response.playingVideoId)||R.listId!==Y.listId)return c.return();R.index===void 0&&(R.index=0);return c.yield(_.E4N(R.JSC$12903_playlistNetworkManager,Y.listId,R.index,R.response.playingVideoId),2)}P=c.yieldResult;if(!P)return c.return();E=P.playlistId;z=P.playlistPanelRenderer;R.setPlaylistData(E,z,P.autoplayRenderer);_.XH(c)})},l7o=function(R,A,Y){var P=R.getParams(Y),E=_.pTV(A,P),z=R.getTempData(A,Y);
z.endpoint=JSON.stringify(A);_.v("enable_unknown_lact_fix_on_html5")&&(_.is().resolve(_.XW),z.lact=_.z$());var c={headers:{"X-YouTube-STS":_.a1("STS"),"x-youtube-csoc":1}};_.Yo(E,z);return new _.yR(function(M,N){var y=R.getXhrParams(P),m;_.v("kevlar_cache_on_ttl_player")&&(m=_.C1.instance);m&&_.U8S(m,A)?_.b5D(m,A,z,window.location.href).then(function(T){T?M(T):N()},N):_.YNS(R.JSC$13151_networkManager_,A,y,R.onPartsCallback_.bind(R),c).then(function(T){T?M(T):N()},N)})},xmn=function(R,A){R.triggerPromise_=
A.start();
R.triggerPromise_.then(function(Y){var P=R.prefetchEndpointProvider_.getPrefetchEndpoint();if(P){var E=f5i[R.prefetchJobConfig_.pageType].prefetchedFragments;R.prefetchRequestPromise_=l7o(R.JSC$13187_networkPrefetchRequest_,P,{fragmentsRequested:E,timeBeforeNextVideo:Y});R.prefetchResponseCacheKey_=R.JSC$13187_networkPrefetchRequest_.getCacheKeyForEndpoint(P);wLG(R);R.prefetchRequestPromise_.then(function(z){R.storePrefetchedDataCallback_(R.prefetchResponseCacheKey_,z);if(_.v("web_prefetch_preload_video")&&
E.length===1&&E[0]==="pl"&&z&&!z.playerAds&&!z.adPlacements){var c=_.n(P,_.SI),M=c!=null,N={raw_player_response:z,watch_endpoint:c};(z=_.is().resolve(M?_.aqZ:_.cT))&&P&&z.then(function(y){M&&_.v("web_queue_preload_video")?(N.prefer_gapless=!0,y.queueNextVideo(N)):y.preloadVideoByPlayerVars(N)})}})}})},tP=function(R,A,Y,P){this.prefetchEndpointProvider_=R;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=A;this.prefetchJobConfig_=Y;this.JSC$13187_networkPrefetchRequest_=P;this.prefetchResponseCacheKey_=null};
tP.prototype.enqueue=function(){this.triggerPromise_||(xmn(this,tbF(this)),_.KC(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
tP.prototype.resolve=function(){this.cancel()};
tP.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.");wLG(this)};
tP.prototype.onVisibilityChange_=function(){var R=this;_.o1(_.xYS)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){R.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||xmn(this,tbF(this))};
var cVo=function(R,A,Y,P,E){A&&(A==null?0:A.videoId)&&Y&&Y.entries&&_.v("kevlar_enable_shorts_prefetch_in_sequence")&&(qrW(R),A=Y.entries.map(function(z){var c;return(c=_.n(z.command,_.SI))==null?void 0:c.videoId}).indexOf(A.videoId),Y=Y.entries[A+1],Y!=null&&Y.command&&!_.n(Y==null?void 0:Y.command,_.Ld)&&(P=new Gtg([Y.command],new FOf(P,_.fn,1),null,"shorts",!1),R.pendingPrefetchJob_=new tP(new ktG(P.autonavEndpoints),function(){return!1},P,new Z6(E)),R.pendingPrefetchJob_.enqueue()))},O6i=function(R,
A,Y,P,E,z){var c=_.mA.getInstance();
if(!_.v("block_all_player_prefetch_requests")){qrW(R);var M=!!Y.getPlaylistId(),N=Y.getVideoData().isLive&&Y.getVideoData().hasProgressBarBoundaries;if((c.getState()==2||M||N)&&(!Y.getVideoData().isLive||N)){c={inPlaylist:M,videoDuration:Y.getDuration(),makeUpNextTrigger:function(m){return new e8W(Y,_.fn,m)},
makePlaybackTrigger:function(m){return new FOf(Y,_.fn,m)}};
var y=Z0W(A,c);y&&(R.pendingPrefetchJob_=new tP(y.isInPlaylist?new os9(E):new ktG(y.autonavEndpoints),function(m,T){T=new CxQ(f5i[y.pageType].pageFragments,f5i[y.pageType].prefetchedFragments,T);return _.BCz(T)?(R.prefetchCache_.set(m,T),!0):!1},y,new k1(P,Y,z,E)),R.pendingPrefetchJob_.enqueue())}}},Mvm=function(){var R=_.lr();
R.signals.parkOrScheduleJob(function(){var A=R.storage;if(A.storage)if(Srm(A)){var Y=A.getPlaylistId();A=I5n(A);Y=!!Y&&A!==void 0}else A.clear(),Y=!1;else Y=!1;if(Y){Y=R.pageManager.isOnWatch();a:{var P=R.storage;if(P.storage&&Srm(P)&&(A=P.getPlaylistId(),P=I5n(P),A&&P!==void 0)){Y={recoverPlaylistCommand:{listId:A,index:P,openMiniplayer:!Y,openListPanel:Y,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}Y=void 0}Y&&_.Gf(R.JSC$12903_actionRouter,[Y],null)}},0,"ma")},sL0=function(R,A,Y,P,E,z){var c=
_.NV(7111);
_.Xq(R.JSC$18301_screenManager,c,z?_.S5(z):void 0);_.IC(R.JSC$18301_screenManager,c,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:P,offlineId:A,offlineabilityFormatType:Y,isDefaultFormatType:E==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:E}})},Nen=function(R,A,Y,P,E){var z,c,M,N,y;
return _.O(function(m){if(m.nextAddress==1)return m.yield(R.JSC$18301_playerApiPromise,2);z=m.yieldResult;sL0(R,A,Y,"OFFLINE_OBJECT_TYPE_PLAYLIST",P,E);if(M=_.XoN[R.entityTypeMap.listEntityType])y={},c=(y[M]={maximumDownloadQuality:(N=Y)!=null?N:void 0},y);return m.yield(z.queueOfflineAction(A,R.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)})},Vvf=function(R,A){var Y,P,E,z;
return _.O(function(c){if(c.nextAddress==1)return c.yield(R.JSC$18301_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){Y=c.yieldResult;if(!Y)return _.pK(new _.XN("PES is undefined")),c.return();P=_.yS(A,"downloadStatusEntity");return c.yield(XLm(Y,P,"downloadStatusEntity"),3)}E=c.yieldResult;return c.return((z=E)==null?void 0:z.downloadState)})},JVW=function(R,A,Y,P,E){var z,c,M,N,y,m;
return _.O(function(T){switch(T.nextAddress){case 1:return T.yield(R.JSC$18301_playerApiPromise,2);case 2:z=T.yieldResult;sL0(R,A,Y,"OFFLINE_OBJECT_TYPE_VIDEO",P,E);if(M=_.XoN[R.entityTypeMap.singleEntityType])y={},c=(y[M]={maximumDownloadQuality:(N=Y)!=null?N:void 0},y);return T.yield(Vvf(R,A),3);case 3:m=T.yieldResult;if(m!=="DOWNLOAD_STATE_USER_DELETED"){T.jumpTo(4);break}return T.yield(R.deleteVideo(A),4);case 4:return T.yield(z.queueOfflineAction(A,R.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
c),0)}})},yVf=function(R,A,Y,P,E){return _.O(function(z){return z.nextAddress==1?z.yield(R.deleteVideo(A,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):z.yield(JVW(R,A,Y,P,E),0)})},mmG=function(R,A,Y){var P,E;
return _.O(function(z){if(z.nextAddress==1)return z.yield(R.JSC$18301_playerApiPromise,2);P=z.yieldResult;E=_.yS(A,"mainVideoDownloadStateEntity");return z.yield(P.updateDownloadState(E,Y),0)})},c4G=function(R){var A=_.is().resolve(_.ID);
return _.O(function(Y){if(Y.nextAddress==1)return A.previousDownloadStateForVideo[R]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&A.previousDownloadStateForVideo[R]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?Y.jumpTo(2):Y.yield(A.resumeVideoDownload(R),2);if(Y.nextAddress!=4)return Y.yield(mmG(A,R,A.previousDownloadStateForVideo[R]),4);delete A.previousDownloadStateForVideo[R];_.XH(Y)})},lkn=function(R,A){var Y;
return _.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$18301_playerApiPromise,2);Y=P.yieldResult;return P.yield(Y.queueOfflineAction(A,R.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},EHY=function(){var R=_.is().resolve(_.ID),A,Y;
return _.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$18301_playerApiPromise,2);if(P.nextAddress!=3)return A=P.yieldResult,Y={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},P.yield(A.queueOfflineAction("!*$_ALL_ENTITIES_!*$",R.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",Y),3);var E=R.JSC$18301_commandHandler,z=E.resolveCommand,c=_.vk("DELETING_ALL",void 0,"Downloads are being deleted");z.call(E,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iw(c)}},
popupType:"TOAST"}});_.XH(P)})},Te0=function(R,A){var Y,P,E,z,c,M;
return _.O(function(N){if(N.nextAddress==1)return N.yield(R.JSC$18301_persistentStorePromiseAccessor(),2);if(N.nextAddress!=3)return Y=N.yieldResult,Y?N.yield(XLm(Y,_.WK,"downloadsPageViewConfigurationEntity"),3):(_.pK(new _.XN("PES is undefined")),N.return());E=(P=N.yieldResult)!=null?P:{};M=(c=(z=E)==null?void 0:z.downloadsUpsellBannerVisibility)!=null?c:{};return M.visibleWithConnection?N.yield(A.refreshAllStaleEntities(0),0):N.jumpTo(0)})},QL9=function(R){var A,Y;
return _.O(function(P){if(P.nextAddress==1)return P.yield(R.JSC$18301_prefStorage,2);A=P.yieldResult;return P.return((Y=A)==null?void 0:Y.get("sdois"))})},vjW=function(R){var A,Y,P,E,z,c;
return _.O(function(M){if(M.nextAddress==1)return M.yield(R.JSC$18301_persistentStorePromiseAccessor(),2);if(M.nextAddress!=3){A=M.yieldResult;if(!A)return _.pK(new _.XN("PES is undefined")),M.return();Y=_.yS("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return M.yield(XLm(A,Y,"settingEntity"),3)}P=M.yieldResult;return M.return((c=(E=P)==null?void 0:(z=E.settingOptionValue)==null?void 0:z.boolValue)!=null?c:!1)})},gjj=function(R,A){var Y,P,E,z;
return _.O(function(c){switch(c.nextAddress){case 1:return((Y=A)==null?void 0:Y.formatType)===void 0?c.return():c.yield(R.JSC$18301_prefStorage,2);case 2:P=c.yieldResult;if(P===void 0)return c.return();if(((E=A)==null?void 0:E.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return c.yield(P.set("lmqf",A.formatType),8);if(((z=A)==null?void 0:z.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){c.jumpTo(0);break}return c.yield(P.set("lmqf",A.formatType),6);case 6:return c.yield(P.set("lmqflst",
Math.floor((0,_.iB)())),0);case 8:return c.yield(P.remove("lmqflst"),0)}})},njj=function(R){var A,Y;
return _.O(function(P){switch(P.nextAddress){case 1:return P.yield(R.JSC$18301_prefStorage,2);case 2:A=P.yieldResult;if(!A){P.jumpTo(3);break}return P.yield(A.get("lmqflst"),4);case 4:if(Y=P.yieldResult,Y!==void 0)return P.return(Y);case 3:return P.return(0)}})},H6f=function(R){var A,Y;
return _.O(function(P){switch(P.nextAddress){case 1:return P.yield(R.JSC$18301_prefStorage,2);case 2:A=P.yieldResult;if(A===void 0){P.jumpTo(3);break}return P.yield(A.get("lmqf"),4);case 4:if(Y=P.yieldResult,Y!==void 0)return P.return(Y);case 3:return P.return("SD")}})},mVm=function(R,A,Y){var P,E,z,c,M,N,y,m;
_.O(function(T){switch(T.nextAddress){case 1:return T.yield(gjj(R,(P=A)==null?void 0:P.actionParams),2);case 2:E=A.playlistId;if(!E)return T.return();if(A.action==="ACTION_ADD")return((c=A.actionParams)==null?0:c.formatType)?T.yield(Nen(R,E,A.actionParams.formatType,(m=A.actionParams)==null?void 0:m.settingsAction,Y),0):T.yield(R.offlineWebClientEligibility,14);if(A.action==="ACTION_REMOVE_WITH_PROMPT"){var Q=R.JSC$18301_commandHandler,g=Q.resolveCommand,r=_.a1("INNERTUBE_CLIENT_NAME");var I=r===
"WEB_REMIX"?_.vk("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.vk("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var b=r==="WEB_REMIX"?[_.vk("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];r=r==="WEB_REMIX"?_.vk("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.vk("DELETE",void 0,"Delete");var p=_.vk("CANCEL",void 0,"Cancel");I=Bqo(I,b,r,p,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:E});g.call(Q,{openPopupAction:I});return T.return()}if(A.action===
"ACTION_REMOVE")return T.yield(lkn(R,E),0);if(A.action!=="ACTION_SYNC"){T.jumpTo(0);break}return T.yield(R.JSC$18301_playerApiPromise,9);case 9:return z=T.yieldResult,T.yield(z.queueOfflineAction(E,R.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return M=T.yieldResult,T.yield(H6f(R),15);case 15:return N=T.yieldResult,T.yield(njj(R),16);case 16:y=T.yieldResult,A.onAddCommand&&R.JSC$18301_commandHandler.resolveCommand(A.onAddCommand,{form:{preferredFormatType:N,
offlineWebClientEligibility:M,lastOfflineQualitySettingsSavedMs:y.toString()}}),T.jumpTo(0)}})},J4o=function(R,A,Y){var P,E,z,c,M,N,y,m,T,Q,g,r,I,b;
_.O(function(p){switch(p.nextAddress){case 1:return p.yield(gjj(R,(P=A)==null?void 0:P.actionParams),2);case 2:E=A.videoId;if(!E)return p.return();if(A.action==="ACTION_REMOVE_WITH_PROMPT"){var h=R.JSC$18301_commandHandler,L=h.resolveCommand,Z=_.a1("INNERTUBE_CLIENT_NAME");var w=Z==="WEB_REMIX"?_.vk("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.vk("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var t=Z==="WEB_REMIX"?[_.vk("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];Z=Z==="WEB_REMIX"?_.vk("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.vk("DELETE",void 0,"Delete");var d=_.vk("CANCEL",void 0,"Cancel");w=Bqo(w,t,Z,d,{signal:"DELETE_DOWNLOAD",targetId:E});L.call(h,{openPopupAction:w});return p.return()}if(A.action==="ACTION_ADD")return((Q=A.actionParams)==null?0:Q.formatType)?p.yield(JVW(R,E,A.actionParams.formatType,(b=A.actionParams)==null?void 0:b.settingsAction,Y),0):p.yield(R.offlineWebClientEligibility,23);if(A.action==="ACTION_RETRY")return p.yield(H6f(R),
19);if(A.action==="ACTION_PAUSE")return p.yield(R.pauseVideoDownload(E),0);if(A.action==="ACTION_RESUME")return p.yield(R.resumeVideoDownload(E),0);if(A.action!=="ACTION_REMOVE"){p.jumpTo(0);break}return p.yield(Vvf(R,E),13);case 13:return z=p.yieldResult,R.previousDownloadStateForVideo[E]=(c=z)!=null?c:"DOWNLOAD_STATE_UNKNOWN",p.yield(mmG(R,E,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(R.previousDownloadStateForVideo[E]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&R.previousDownloadStateForVideo[E]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){p.jumpTo(15);break}return p.yield(R.pauseVideoDownload(E),15);case 15:h=_.vk("DELETED_VIDEO",void 0,"Video deleted from downloads.");L=_.vk("UNDO_ACTION",void 0,"Undo");w=_.vk("CLOSE",void 0,"Close");M={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.iw(h),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.iw(L),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:E}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:h+" "+L}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:E}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:w}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};R.JSC$18301_commandHandler.resolveCommand(M);
p.jumpTo(0);break;case 19:N=p.yieldResult;N==="UNKNOWN_FORMAT_TYPE"&&(N="SD");y="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((m=A.actionParams)==null?0:m.formatType)N=A.actionParams.formatType,y=(T=A.actionParams)==null?void 0:T.settingsAction;return p.yield(yVf(R,E,N,y,Y),20);case 20:return p.return();case 23:return g=p.yieldResult,p.yield(H6f(R),24);case 24:return r=p.yieldResult,p.yield(njj(R),25);case 25:I=p.yieldResult,A.onAddCommand&&R.JSC$18301_commandHandler.resolveCommand(A.onAddCommand,
{form:{preferredFormatType:r,offlineWebClientEligibility:g,lastOfflineQualitySettingsSavedMs:I.toString()}}),p.jumpTo(0)}})},rVW=function(R,A){var Y,P,E,z,c,M,N;
return _.O(function(y){if(y.nextAddress==1)return y.yield(R.JSC$18301_persistentStorePromiseAccessor(),2);Y=y.yieldResult;if(!Y)return _.pK(new _.XN("PES is undefined")),y.return();if((P=A)==null||!P.settingItemId)return y.return();E=A;z=E.settingItemId;c=E.boolValue;M=_.yS(z,"settingEntity");N={key:M,settingOptionValue:{boolValue:c}};return y.yield($hY(Y,N),0)})},DmH=function(R,A){var Y,P,E,z,c,M,N;
return _.O(function(y){switch(y.nextAddress){case 1:return y.yield(R.JSC$18301_prefStorage,2);case 2:return Y=y.yieldResult,P=_.Hk(),y.yield(R.JSC$18301_persistentStorePromiseAccessor(),3);case 3:return E=y.yieldResult,Y?E?y.yield(Y.get("sdois"),4):(_.pK(new _.XN("PES is undefined")),y.return()):(_.pK(new _.XN("prefStorage is undefined")),y.return());case 4:z=y.yieldResult;M=(c=A)==null?void 0:c.boolValue;M===void 0||_.v("kevlar_set_sd_enabled_flag_killswitch")||_.rH(0,197,!0);z===void 0&&M===void 0&&
(M=!1);if(M===void 0){y.jumpTo(0);break}return y.yield(Y.set("sdois",M),6);case 6:return _.v("kevlar_set_sd_enabled_flag_killswitch")||(_.rH(0,196,M),P.save()),N={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:M},y.yield(rVW(R,N),0)}})},Umi=function(R,A,Y){var P,E,z,c,M;
return _.O(function(N){switch(N.nextAddress){case 1:return N.yield(QL9(R),2);case 2:return P=N.yieldResult,N.yield(DmH(R,Y),3);case 3:return N.yield(QL9(R),4);case 4:return E=N.yieldResult,z=E!==P,N.yield(vjW(R),5);case 5:c=N.yieldResult&&!_.v("kevlar_modern_downloads_page");if((M=!E&&!c)||z)return N.yield(A.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);N.jumpTo(0)}})},MdN=function(){var R=_.is().resolve(_.ID),
A;
_.O(function(Y){switch(Y.nextAddress){case 1:return Y.yield(R.JSC$18301_playerApiPromise,2);case 2:A=Y.yieldResult;if(!_.v("kevlar_force_refresh_smart_downloads")){Y.jumpTo(3);break}return Y.yield(A.refreshAllStaleEntities(0),4);case 4:return Y.return();case 3:return Y.yield(A.refreshAllStaleEntities(),5);case 5:return Y.yield(Umi(R,A),6);case 6:if(_.v("enable_download_pep_for_premium_countries_web"))return Y.yield(Te0(R,A),0);Y.jumpTo(0)}})},QPm=function(R,A){var Y,P;
_.O(function(E){switch(E.nextAddress){case 1:return E.yield(R.JSC$18301_playerApiPromise,2);case 2:Y=E.yieldResult;switch((P=A)==null?void 0:P.settingItemId){case "SMART_DOWNLOADS_ENABLED":return E.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return E.jumpTo(4)}E.jumpTo(0);break;case 3:return E.yield(Umi(R,Y,A),6);case 6:E.jumpTo(0);break;case 4:return E.yield(rVW(R,A),7);case 7:E.jumpTo(0)}})},$mj=function(R,A){var Y,P,E;
return _.O(function(z){if(z.nextAddress==1)return z.yield(R.JSC$18301_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){Y=z.yieldResult;if(!Y)return _.pK(new _.XN("PES is undefined")),z.return(!1);if(!A)return z.return(!1);P=_.yS(A,"mainVideoEntity");return z.yield(XLm(Y,P,"mainVideoEntity"),3)}E=z.yieldResult;return z.return(E!==void 0)})},gHf=function(R){var A=_.is().resolve(_.ID),Y,P,E,z,c,M,N,y,m,T,Q;
_.O(function(g){switch(g.nextAddress){case 1:return g.yield(A.JSC$18301_playerApiPromise,2);case 2:Y=g.yieldResult;E=(P=R)==null?void 0:P.actions;if(!E)return g.return();z=_.x(E);c=z.next();case 3:if(c.done){g.jumpTo(0);break}M=c.value;y=N=void 0;if(!(((N=M)==null?0:N.entityKey)&&((y=M)==null?0:y.actionType))){g.jumpTo(4);break}m=_.M6(M.entityKey);T=m.entityId;Q=m.entityType;return g.yield(Y.queueOfflineAction(T,Q,M.actionType),4);case 4:c=z.next(),g.jumpTo(3)}})},XCm=function(R,A){var Y,P,E,z,c;
return _.O(function(M){if(M.nextAddress==1)return M.yield(R.JSC$18301_prefStorage,2);if(M.nextAddress!=3)return(Y=M.yieldResult)?M.yield(Y.get("psi"),3):M.return();P=M.yieldResult;c={isPaused:A,lastSyncTimestamp:(z=(E=P)==null?void 0:E.lastSyncTimestamp)!=null?z:"0"};return M.yield(Y.set("psi",c),0)})},r4n=function(R){var A=_.is().resolve(_.ID),Y,P,E,z,c,M,N,y;
return _.O(function(m){switch(m.nextAddress){case 1:return m.yield(A.JSC$18301_playerApiPromise,2);case 2:Y=m.yieldResult;E=((P=R)==null?void 0:P.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((M=R)==null?void 0:M.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":z="!*$_ALL_ENTITIES_!*$";c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return m.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return m.jumpTo(4)}m.jumpTo(5);break;case 3:return m.yield(XCm(A,E),6);case 6:m.jumpTo(5);break;case 4:return m.yield($mj(A,(N=R)==null?void 0:N.videoId),7);case 7:m.yieldResult&&(z=(y=R)==null?void 0:y.videoId,c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");m.jumpTo(5);break;case 5:if(z&&c)return m.yield(Y.queueOfflineAction(z,"videoPlaybackPositionEntity",c),0);m.jumpTo(0)}})},SRf=function(R,A){var Y;
A!==1||((Y=R.currentPersistentToast)==null?0:Y.isOpened())?R.openToast():R.currentPersistentToast=void 0},I7n=function(R,A){var Y;
return(Y=R.transitionTasksMap.get(A))!=null?Y:[]},K8W=function(R,A){var Y=[];
R.elementTasksMap.forEach(function(P){(P=P.get(A))&&Y.push(P)});
return Y},W8o=function(R,A,Y,P,E){E=E===void 0?{}:E;
var z=A.defaultViewTransitionOptions;return Object.assign({},z,E,{beforeTransition:function(){P.forEach(function(y){y.beforeTransition()});
var c;(c=z.beforeTransition)==null||c.call(z);var M,N;(N=(M=E).beforeTransition)==null||N.call(M);Y.forEach(function(y){y.beforeTransition()})},
afterTransition:function(){P.forEach(function(y){y.afterTransition()});
var c;(c=z.afterTransition)==null||c.call(z);var M,N;(N=(M=E).afterTransition)==null||N.call(M);Y.forEach(function(y){y.afterTransition()})},
ignoredErrors:R.config.ignoredErrors})},jLN=function(R,A,Y){R.transitionTasksMap.has(A)?R.transitionTasksMap.get(A).push(Y):(R=new _.XN("Transition task registered for unknown transition type",A),_.bj(R))},b6F=function(R,A,Y){if(R.transitionTasksMap.has(A)){var P=R.transitionTasksMap.get(A).filter(function(E){return E!==Y});
R.transitionTasksMap.set(A,P)}},f7i=function(R,A){var Y=I7n(R,A);
Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next())P=P.value,P.runOnce&&b6F(R,A,P);R.elementTasksMap.forEach(function(E,z){E.forEach(function(c,M){c.runOnce&&A===M&&(E.delete(M),E.size===0&&R.elementTasksMap.delete(z))})})},pC0=function(R,A,Y){var P,E,z,c,M,N,y,m,T;
_.O(function(Q){if(Q.nextAddress==1){if(R.config.disableAllTransitions)return Q.return(A());if((P=Y)==null||!P.transitionType)return Q.return(_.$9N(A,Object.assign({},(E=Y)==null?void 0:E.viewTransitionOptions,{ignoredErrors:R.config.ignoredErrors})));z=Y;c=z.transitionType;M=z.viewTransitionOptions;N=R.config.transitionConfigs.get(c);if(!N)return Q.return(A());y=I7n(R,c);m=K8W(R,c);T=_.$9N(A,W8o(R,N,y,m,M));return Q.yield(T,2)}f7i(R,c);_.XH(Q)})},F8G=function(){var R,A,Y,P;
return _.O(function(E){if(E.nextAddress==1)return R=navigator,(A=R.storage)!=null&&A.persisted?E.yield((Y=R.storage)==null?void 0:Y.persisted(),2):E.return("PERSISTED_STATE_NOT_SUPPORTED");P=E.yieldResult;return E.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Bem=function(){var R,A,Y,P;
return _.O(function(E){if(E.nextAddress==1)return R=navigator,(A=R.storage)!=null&&A.persist?E.yield((Y=R.storage)==null?void 0:Y.persist(),2):E.return("PERSISTED_STATE_NOT_SUPPORTED");P=E.yieldResult;return E.return(P?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},a7f=function(){var R,A;
return _.O(function(Y){switch(Y.nextAddress){case 1:return R="PERSISTED_STATE_NOT_SUPPORTED",_.g2(Y,2),Y.yield(F8G(),4);case 4:R=Y.yieldResult;if(R!=="PERSISTED_STATE_NOT_GRANTED"){Y.jumpTo(5);break}return Y.yield(Bem(),6);case 6:R=Y.yieldResult;case 5:_.us(Y,3);break;case 2:A=_.UT(Y),A instanceof Error&&_.bj(A);case 3:return _.Wj("persistentStorageStateChecked",{persistedState:R}),Y.return(R)}})},CDo=function(R,A){var Y=[],P=!1;
A=_.x(A);for(var E=A.next();!E.done;E=A.next()){E=R.moduleRegistry[E.value];var z=void 0,c=void 0;((z=E)==null?0:z.isFetching)&&((c=E)==null?0:c.resolver)?(Y.push(E.resolver.promise),P=!0):(E=new _.y2,E.resolve(void 0),Y.push(E.promise))}return P?Promise.all(Y):void 0},h3N=function(R,A,Y){if(R.isAnyTransitionEnabled){var P={beforeTransition:function(){Y(!0);
A.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){A.style.viewTransitionName&&(A.style.viewTransitionName="",Y(!1))}};
jLN(R.viewTransitionCoordinator,"slide",P);jLN(R.viewTransitionCoordinator,"lockup-to-watch",P);jLN(R.viewTransitionCoordinator,"watch-next-appears",P);jLN(R.viewTransitionCoordinator,"learning-journey",P)}},ojW=function(R,A){R.isBrowseTransitionEnabled?pC0(R.viewTransitionCoordinator,A,{transitionType:"slide"}):(A(),Promise.resolve())},kGY=function(R,A){R.isLockupToWatchTransitionEnabled?pC0(R.viewTransitionCoordinator,A,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){R.registeredLockupThumbnail=void 0;R.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(A(),Promise.resolve())},GGi=function(R,A){R.isLockupToWatchTransitionEnabled?pC0(R.viewTransitionCoordinator,A,{transitionType:"watch-next-appears"}):(A(),Promise.resolve())},Z6N=function(R,A){R.isLearningJourneyTransitionEnabled?pC0(R.viewTransitionCoordinator,A,{transitionType:"learning-journey"}):(A(),Promise.resolve())},tv9=function(R,A,Y){if(R.isInitialized()){var P=
FA(Y),E=P==="watch";
P=P==="shorts";var z=FA(A)==="watch";if(E)z||(R.backgroundPageData=A),R.watchPipMode&&z||R.deactivate(Y.endpoint);else if(P){if(FA(A)!=="shorts"){var c;(c=R.getPlayerElement())==null||c.pause()}}else z&&!R.watchPipMode&&(CPW(A,Y)?(R.watchWhileMode&&_.Bz9(R,!1),_.WEg(R,A)):R.isMiniplayerActive()&&R.watchWhileMode&&R.deactivate());z&&_.CtN(R);R.shortsPipMode&&!P&&(window.focus(),R.deactivate());if(R.pictureInPictureEnabled())if(P&&R.shortsPipEnabled||E&&R.watchPipEnabled)_.JIS(R.handleMediaSessionPipActivation);
else if(!R.isMiniplayerActive()&&(R.shortsPipEnabled||R.watchPipEnabled)&&window.documentPictureInPicture&&_.$q()&&_.VPP("Chromium")>=120){R=_.Vol().mediaSession;try{R.setActionHandler("enterpictureinpicture",null)}catch(M){}}}},wC9=function(R,A){var Y,P;
_.O(function(E){if(E.nextAddress==1){if(!R||!R.navigationEndpoint)return E.return();_.f_().lockupActivation=!0;var z;A?z=_.dF(_.vk("QUEUE",void 0,"Queue")):z=R.longBylineText;P=(Y=z)&&R.title?{miniplayerTitle:R.title,miniplayerSubtitle:Y,playlistData:null}:void 0;return E.yield(_.w6D(_.is().resolve(_.jv),R.navigationEndpoint,!0,P),2)}_.f_().userActivation=!0;_.XH(E)})},F0Q=function(R,A){var Y,P,E,z,c,M;
_.O(function(N){if(N.nextAddress==1){Y=_.n(A,_.eMf);if(!Y||!Y.listId)return N.return();R.index=Y.index||R.index||0;P=R.response&&R.response.playingVideoId||void 0;return N.yield(_.E4N(R.JSC$12903_playlistNetworkManager,Y.listId,R.index,P),2)}E=N.yieldResult;if(!E)return N.return();z=E.playlistId;c=E.playlistPanelRenderer;!R.queueProxy&&z&&c&&z.startsWith("TLPQ")&&(R.queueProxy=new _.dY(R.JSC$12903_playlistNetworkManager,z,R.setPlaylistData.bind(R),R.clearQueue.bind(R),_.TIV(c),R.storage));if(Y.openMiniplayer&&
(M=_.QJ6(c))&&!R.pageManager.isOnWatch()){var y=M,m=Y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";R.isMiniplayerActive()?R.openToast(y):wC9(y,m)}R.setPlaylistData(z,c,E.autoplayRenderer);_.XH(N)})},bCg=function(R,A){var Y=_.lr();
Y.index===void 0&&(Y.index=0);Y.temporaryItems.push.apply(Y.temporaryItems,_.py(R));if((A.videoId||A.videoIds)&&Y.index!==void 0&&A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!Y.queueProxy){var P=[];if(Y.response){var E=_.is().resolve(_.jv).isMiniplayerActive();if(Y.response.playlistPanelRenderer&&Y.response.playlistId&&!Y.response.playlistId.startsWith("TLPQ")){if(Y.pageManager.isOnWatch()||E)P=_.TIV(Y.response.playlistPanelRenderer)}else Y.response.playingVideoId&&!A.openMiniplayer?P.push(Y.response.playingVideoId):
E&&Y.response.playingVideoId&&A.openMiniplayer&&P.push(Y.response.playingVideoId)}Y.queueProxy=new _.dY(Y.JSC$12903_playlistNetworkManager,"",Y.setPlaylistData.bind(Y),Y.clearQueue.bind(Y),P,Y.storage);Y.queueProxy.JSC$12849_setCurrentIndex(Y.index)}Y.queueProxy.addVideos(A.videoIds||[A.videoId],A)}KOF(Y,R);Y.response&&_.x7(Y,_.cd(Y,Y.response.autoplayRenderer));Y.pageManager.isOnWatch()?Y.isMiniplayerActive()&&Y.openToast(R[0]):(R=R[0],A=A.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",Y.isMiniplayerActive()?
Y.openToast(R):wC9(R,A))},u2F=function(R){var A=_.tE(R);
if(A=="object"||A=="array"){if(typeof R.clone==="function")return R.clone();if(typeof Map!=="undefined"&&R instanceof Map)return new Map(R);if(typeof Set!=="undefined"&&R instanceof Set)return new Set(R);A=A=="array"?[]:{};for(var Y in R)A[Y]=u2F(R[Y]);return A}return R},wO=function(R,A){return _.MH3(_.yT(R,A,void 0,_.JR))},uz=function(R,A){return _.EW(_.yT(R,A,void 0,_.JR))},ef=function(R,A){return _.WSk(_.yT(R,A,void 0,_.JR))},q$=function(R,A){return _.yT(R,A,void 0,_.JR,_.Zz)},e3o=_.ML(function(R,
A,Y){if(R.nextWireType_!==0)return!1;
_.sg(A,Y,_.p7(R.decoder_,_.cE8));return!0},_.y$,_.hR),qRo=_.ML(function(R,A,Y,P){if(R.nextWireType_!==0)return!1;
_.vb(A,Y,P,_.p7(R.decoder_,_.cE8));return!0},_.y$,_.hR),L8n=_.ML(function(R,A,Y){if(R.nextWireType_!==1)return!1;
var P=R.decoder_;R=_.Bb(P);P=_.Bb(P);R=_.BS(R,P);_.sg(A,Y,R);return!0},_.IEk,_.pnJ),dmY=_.ML(function(R,A,Y){if(R.nextWireType_!==5)return!1;
_.sg(A,Y,_.Bb(R.decoder_));return!0},function(R,A,Y){A=_.VHJ(A);
A!=null&&(_.NL(R,Y,5),_.V$(R.encoder_,A))},_.jxl),RzW=_.ML(function(R,A,Y){if(R.nextWireType_!==2)return!1;
R=_.Qxk(R);_.sg(A,Y,R===_.Dz()?void 0:R);return!0},_.fEl,_.aDP),ARQ=_.HqV(function(R,A,Y){if(R.nextWireType_!==0&&R.nextWireType_!==2)return!1;
A=_.RR(A,A[_.zN]|0,Y);R.nextWireType_==2?_.v3k(R,xh0,A):A.push(_.F1(R.decoder_));return!0},function(R,A,Y){A=_.nDk(_.EW,A,!0);
if(A!=null&&A.length){Y=_.$O3(R,Y);for(var P=0;P<A.length;P++)_.$Lk(R.encoder_,A[P]);_.Xnk(R,Y)}},_.CYk),Ykm=_.ML(function(R,A,Y,P){if(R.nextWireType_!==0)return!1;
_.vb(A,Y,P,_.F1(R.decoder_));return!0},_.FoJ,_.CYk),PuH=function(R){return R.previousElementSibling!==void 0?R.previousElementSibling:_.RQH(R.previousSibling,!1)},EBH=function(R,A){var Y=[];
for(A=A||0;A<R.length;A+=2)_.onf(R[A],R[A+1],Y);return Y.join("&")},zz9=function(R,A){var Y=arguments.length==2?EBH(arguments[1],0):EBH(arguments,1);
return _.hQ8(R,Y)},rfi=_.Hx(_.K0),i7H=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(i7H,_.lb);i7H.prototype.getTypeName=function(){return _.X1(this,1).split("/").pop()};
i7H.prototype.getValue=function(){var R=_.yT(this,2);if(Array.isArray(R)||R instanceof _.lb)throw Error("W");return _.QT(this,2)};
var s6n=function(){var R=_.sd();this.JSC$9910_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Jl("channel_type"))};
s6n.prototype.increment=function(R){this.JSC$9910_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",R)};
var NgW=function(){var R=_.sd();this.JSC$9913_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Jl("channel_type"))};
NgW.prototype.increment=function(R){this.JSC$9913_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",R)};
var Jho=function(){var R=_.sd();this.JSC$9916_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Jl("channel_type"))};
Jho.prototype.increment=function(R){this.JSC$9916_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",R)};
var Vzm=function(){var R=_.sd();this.JSC$9919_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
Vzm.prototype.increment=function(){this.JSC$9919_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var yh9=function(){var R=_.sd();this.JSC$9922_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Jl("channel_type"),_.Jl("error_type"))};
yh9.prototype.increment=function(R,A){this.JSC$9922_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",R,A)};
var moH=function(){var R=_.sd();this.JSC$9925_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
moH.prototype.increment=function(){this.JSC$9925_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var Tg9=function(){var R=_.sd();this.JSC$9928_streamzService=R;R.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
Tg9.prototype.increment=function(){this.JSC$9928_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var kIf=function(){var R=_.sd();this.JSC$9934_streamzService=R;R.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
kIf.prototype.increment=function(){this.JSC$9934_streamzService.JSC$9780_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var l0Y=function(R){return R.getCount&&typeof R.getCount=="function"?R.getCount():_.ok(R)||typeof R==="string"?R.length:_.BO.getCount(R)},xc0=function(R,A){if(typeof R.every=="function")return R.every(A,void 0);
if(_.ok(R)||typeof R==="string")return Array.prototype.every.call(R,A,void 0);for(var Y=_.o0E(R),P=_.zp(R),E=P.length,z=0;z<E;z++)if(!A.call(void 0,P[z],Y&&Y[z],R))return!1;return!0},cR0=function(R,A,Y,P){var E=new _.dq(null);
R&&_.id(E,R);A&&_.ld(E,A);Y&&_.xP(E,Y);P&&_.cm(E,P);return E},O7j=function(){var R=_.hN&&_.Vk(_.PBS,10)>=0,A;
if(A=_.UZk)A=_.Vk(_.YFH,10)>=0;var Y=_.sk&&_.Vk(_.PBS,85)>=0;return _.xB||R||A||Y},MRf=function(R){var A=_.nnz(R);
return A&&O7j()?-R.scrollLeft:A&&_.Ze(R,"overflowX")!="visible"?R.scrollWidth-R.clientWidth-R.scrollLeft:R.scrollLeft},s2W=function(R,A){A=Math.max(A,0);
_.nnz(R)?O7j()?R.scrollLeft=-A:R.scrollLeft=R.scrollWidth-A-R.clientWidth:R.scrollLeft=A},AgH=0,ijH=!1;
aI.prototype.set=function(R){this.relativeTimeStart_=R};
aI.prototype.reset=function(){this.set(_.YB())};
aI.prototype.get=function(){return this.relativeTimeStart_};
var NAn=null,VRN=function(){NAn||(NAn=new aI)},JRj=function(){NAn||(NAn=new aI)};
_.Pb(JRj,VRN);_.l=xTo.prototype;_.l.JSC$11343_buffer_="";_.l.set=function(R){this.JSC$11343_buffer_=""+R};
_.l.append=function(R,A,Y){this.JSC$11343_buffer_+=String(R);if(A!=null)for(var P=1;P<arguments.length;P++)this.JSC$11343_buffer_+=arguments[P];return this};
_.l.clear=function(){this.JSC$11343_buffer_=""};
_.l.getLength=function(){return this.JSC$11343_buffer_.length};
_.l.toString=function(){return this.JSC$11343_buffer_};
var yRj=function(){var R={type:"unit",style:"narrow"};this.listType_=R&&R.type?R.type:"conjunction";this.listStyle_=R&&R.style?R.style:"long";this.listSymbols_=VbY;R=0;switch(this.listStyle_){case "short":R=1;break;case "narrow":R=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[R];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[R];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[R];this.listEndPattern_=
this.listSymbols_.AND_END[R];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[R];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[R];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[R];this.listEndPattern_=this.listSymbols_.OR_END[R];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[R],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[R],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[R],this.listEndPattern_=this.listSymbols_.UNIT_END[R]}};
yRj.prototype.format=function(R){return mco(this,R)};
var mco=function(R,A){var Y=A.length;switch(Y){case 0:return"";case 1:return String(A[0]);case 2:return R.listTwoPattern_.replace("{0}",String(A[0])).replace("{1}",String(A[1]))}for(var P=R.listStartPattern_.replace("{0}",String(A[0])).replace("{1}",String(A[1])),E=2;E<Y-1;++E)P=R.listMiddlePattern_.replace("{0}",P).replace("{1}",String(A[E]));return R.listEndPattern_.replace("{0}",P).replace("{1}",String(A[Y-1]))},rgG=function(){var R={style:1};
this.style_=(R==null?void 0:R.style)||0;this.durationSymbols_=_.Iq7||_.k2A},TAj=function(R,A){switch(A){default:case "years":return R.durationSymbols_.YEAR;
case "months":return R.durationSymbols_.MONTH;case "weeks":return R.durationSymbols_.WEEK;case "days":return R.durationSymbols_.DAY;case "hours":return R.durationSymbols_.HOUR;case "minutes":return R.durationSymbols_.MINUTE;case "seconds":return R.durationSymbols_.SECOND}},LE=function(R,A,Y){a:{Y=TAj(R,Y);
switch(R.style_){case 1:if(Y.LONG!=void 0){R=Y.LONG;break a}case 2:if(Y.NARROW!=void 0){R=Y.NARROW;break a}default:R=Y.SHORT;break a}R=void 0}return R?(new _.sZ8("{DURATION_VALUE,plural,"+R+"}")).format({DURATION_VALUE:A}):""};
rgG.prototype.format=function(R){var A=[],Y=R.years,P=R.months,E=R.weeks,z=R.days,c=R.hours,M=R.minutes;R=R.seconds;Y!=null&&A.push(LE(this,Y,"years"));P!=null&&A.push(LE(this,P,"months"));E!=null&&A.push(LE(this,E,"weeks"));z!=null&&A.push(LE(this,z,"days"));c!=null&&A.push(LE(this,c,"hours"));M!=null&&A.push(LE(this,M,"minutes"));R!=null&&A.push(LE(this,R,"seconds"));return(new yRj).format(A)};
var Q29=!1,JgW=function(R){_.Rk.call(this,R.message||R.description||R.name);this.isMissing=R instanceof Ch;this.isTimeout=R instanceof _.HJ&&R.errorCode=="net.timeout";this.isCanceled=R instanceof _.Fn};
_.H(JgW,_.Rk);JgW.prototype.name="BiscottiError";var Ch=function(){_.Rk.call(this,"Biscotti ID is missing from server")};
_.H(Ch,_.Rk);Ch.prototype.name="BiscottiMissingError";var hJ=null,$f9=function(){try{var R=_.Zr("yt.ads.biscotti.getId_");return R?R():weG()}catch(A){return _.j5(A)}},Hj9,vBn=function(R,A){return _.cK({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:R,command:A}})},gBo=function(R){return _.cK({type:"SET_GUIDE_IS_EXPANDED",
payload:R})},nBH=function(R){return _.cK({type:"SET_ONLINE_STATUS",
payload:R})},H7N=function(R,A){return _.cK({type:"SET_TRANSCRIPTION_STATE",
payload:{high:R,low:A}})},rR9=function(R){return _.cK({type:"SET_OVERLAY_STATE",
payload:R})},Dcj=0,Uc9=function(R,A,Y){var P=this;
this.priority=A;this.delay=Y;this.jobId=0;this.completionCallback=_.r$;this.wrappedJob=function(){R();P.completionCallback()};
this.id=++Dcj};
Uc9.prototype.enqueue=function(R){this.completionCallback=R;this.jobId=_.fn.addJob(this.wrappedJob,this.priority,this.delay)};
var dO=function(){_.s0.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.H(dO,_.s0);dO.prototype.addJob=function(R,A,Y){R=new Uc9(R,A,Y);this.taskIdToTask.set(R.id,R);this.isActive?$ci(this,R):this.suspendedTasks.add(R);return R.id};
var $ci=function(R,A){R.scheduledTasks.add(A);A.enqueue(function(){R.scheduledTasks.delete(A)})};
dO.prototype.cancelJob=function(R){(R=this.taskIdToTask.get(R))&&(this.scheduledTasks.delete(R)?_.fn.cancelJob(R.jobId):this.suspendedTasks.delete(R))};
dO.prototype.pause=function(){var R=this;this.isActive=!1;this.scheduledTasks.forEach(function(A){_.fn.cancelJob(A.jobId);R.suspendedTasks.add(A)});
this.scheduledTasks.clear()};
dO.prototype.start=function(){var R=this;this.isActive=!0;this.suspendedTasks.forEach(function(A){$ci(R,A)});
this.suspendedTasks.clear()};
dO.prototype.reset=function(){this.scheduledTasks.forEach(function(R){_.fn.cancelJob(R.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Re=function(R,A){this.JSC$13035_networkService_=R;this.pageRequestPromise=A};
Re.prototype.fetchData=function(R){XbY(this,this.JSC$13035_networkService_.fetchData(R))};
Re.prototype.postData=function(R,A){XbY(this,this.JSC$13035_networkService_.postData(R,A))};
Re.prototype.requestDataForServiceEndpoint=function(R,A){XbY(this,this.JSC$13035_networkService_.requestDataForServiceEndpoint(R,A))};
var XbY=function(R,A){A.then(R.pageRequestPromise.onSuccess,R.pageRequestPromise.onFailure,R.pageRequestPromise)};
Re.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var AF=function(R){this.buildNetworkRequest_=R;this.pendingRequests_=new Set};
AF.prototype.reset=function(){this.pendingRequests_.forEach(function(R){R.cancel()});
this.pendingRequests_.clear()};
AF.prototype.fetchData=function(R){var A=Skf(this);A.fetchData(R);return A.pageRequestPromise};
AF.prototype.postData=function(R,A){var Y=Skf(this);Y.postData(R,A);return Y.pageRequestPromise};
AF.prototype.requestDataForServiceEndpoint=function(R,A){var Y=Skf(this);Y.requestDataForServiceEndpoint(R,A);return Y.pageRequestPromise};
var Skf=function(R){var A=R.buildNetworkRequest_();R.pendingRequests_.add(A);var Y=function(){R.pendingRequests_.delete(A)};
A.pageRequestPromise.then(Y,Y);return A},I0G=function(R){var A=new dO;
this.JSC$13042_networkService_=R;this.JSC$13042_taskManager_=A;this.JSC$13042_networkManager_=new AF(this.networkRequestFactory_.bind(this))};
_.l=I0G.prototype;_.l.networkRequestFactory_=function(){return new Re(this.JSC$13042_networkService_,new _.Hd(this.JSC$13042_taskManager_))};
_.l.reset=function(){this.JSC$13042_taskManager_.reset();this.JSC$13042_networkManager_.reset()};
_.l.start=function(){this.JSC$13042_taskManager_.start()};
_.l.pause=function(){this.JSC$13042_taskManager_.pause()};
_.l.getTaskManager=function(){return this.JSC$13042_taskManager_};
_.l.getNetworkManager=function(){return this.JSC$13042_networkManager_};
var SCG=null,WZQ=[],oI=0,GY=0,ki=null,Khn=!1,ZU=null,bjo=void 0,WhF=function(){var R=(0,_.m8D)();R&&ymg(R,R.mechanism.__iterator__(!0))},wp=function(R){this.token=R};
wp.getInstance=function(){var R;return _.O(function(A){if(A.nextAddress==1)return A.yield(_.EF(),2);R=A.yieldResult;if(!R)return A.return();wp.instance||(wp.instance=new wp(R));return A.return(wp.instance)})};
var CEQ=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(FZj(R.token),2);A=Y.yieldResult;return Y.return(A.clear("resource-manifest-assets"))})},tJ=function(R){this.token=R};
tJ.getInstance=function(){var R;return _.O(function(A){if(A.nextAddress==1)return A.yield(_.EF(),2);R=A.yieldResult;if(!R)return A.return();tJ.instance||(tJ.instance=new tJ(R));return A.return(tJ.instance)})};
var BHY=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(FZj(R.token),2);A=Y.yieldResult;return Y.yield(A.clear("auth"),0)})},lnf=!1,j2F=function(R){_.Rk.call(this,R)};
_.H(j2F,_.qi8);var b7g="a[href] a[tabindex] area[href] iframe [tabindex] [contentEditable] summary input:not([disabled]) select:not([disabled]) textarea:not([disabled]) button:not([disabled]) object:not([disabled])".split(" ");bxm()&&b7g.push("details:not(:has(summary))");var pKo=b7g.join(",");var E90=function(){var R=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return R?parseInt(R[1],10):0},f0Q=function(R){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+R)!=-1||document.currentScript.src.indexOf("&"+R)!=-1)},pbQ=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},c7o=function(R){R.length?Fhg(R.shift(),function(){c7o(R)}):iCo()},M5g=function(R){return"chrome-extension://"+R+"/cast_sender.js"},Fhg=function(R,
A,Y){var P=document.createElement("script");
P.onerror=A;Y&&(P.onload=Y);_.ET(P,_.bt(R));(document.head||document.documentElement).appendChild(P)},BAG=function(){var R=E90(),A=[];
if(R>1){var Y=R-1;A.push("//www.gstatic.com/eureka/clank/"+R+"/cast_sender.js");A.push("//www.gstatic.com/eureka/clank/"+Y+"/cast_sender.js")}return A},iCo=function(){var R=pbQ();
R&&R(!1,"No cast extension found")},xfm=function(){if(a0W){var R=2,A=pbQ(),Y=function(){R--;
R==0&&A&&A(!0)};
window.__onGCastApiAvailable=Y;Fhg("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",iCo,Y)}},zwQ=function(){xfm();
var R=BAG();R.push("//www.gstatic.com/eureka/clank/cast_sender.js");c7o(R)},lco=function(){xfm();
var R=BAG();R.push.apply(R,_.py(OCQ.map(M5g)));R.push("//www.gstatic.com/eureka/clank/cast_sender.js");c7o(R)},a0W=f0Q("loadCastFramework")||f0Q("loadCastApplicationFramework"),OCQ=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var CuW=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(CuW,_.lb);var hzN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(hzN,_.lb);var oBo=function(){var R=new hzN;return _.bu(R,1,3)};var YJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(YJ,_.lb);var zp9=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(zp9,_.lb);var kxY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(kxY,_.lb);kxY.prototype.getToken=function(){return _.X1(this,1)};
kxY.prototype.setToken=function(R){return _.o9(this,1,R)};
var PkH=function(R){return _.wo(R,3,_.vF,_.M_())},EpQ=function(R){return _.wo(R,6,_.vF,_.M_())};var P2=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(P2,_.lb);P2.prototype.getToken=function(){return _.cG(this,kxY,2)};
P2.prototype.setToken=function(R){return _.DE(this,2,R)};
P2.prototype.getName=function(){return _.X1(this,6)};
var Gxf=_.Hx(P2);var Z7G=function(R,A,Y){this.requestMessage=R;this.methodDescriptor=A;this.metadata=Y};
Z7G.prototype.getMetadata=function(){return this.metadata};var tR0=function(R,A){A=A===void 0?{}:A;this.responseMessage=R;this.metadata=A;this.status=null};
tR0.prototype.getMetadata=function(){return this.metadata};
tR0.prototype.getStatus=function(){return this.status};var Ez=function(R,A,Y,P,E){this.name=R;this.methodType="unary";this.requestType=A;this.responseType=Y;this.requestSerializeFn=P;this.responseDeserializeFn=E},wbm=function(R,A,Y){Y=Y===void 0?{}:Y;
return new Z7G(A,R,Y)};
Ez.prototype.getName=function(){return this.name};var zn=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(zn,_.lb);zn.prototype.getHeader=function(){return _.cG(this,YJ,1)};
zn.prototype.setHeader=function(R){return _.DE(this,1,R)};
zn.prototype.hasHeader=function(){return _.mh(this,YJ,1)};var u1o=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(u1o,_.lb);var ezW=new Ez("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",zn,u1o,function(R){return R.serialize()},_.Hx(u1o));var ia=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(ia,_.lb);ia.prototype.getHeader=function(){return _.cG(this,YJ,1)};
ia.prototype.setHeader=function(R){return _.DE(this,1,R)};
ia.prototype.hasHeader=function(){return _.mh(this,YJ,1)};var qko=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(qko,_.lb);var Lhf=new Ez("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",ia,qko,function(R){return R.serialize()},_.Hx(qko));var la=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(la,_.lb);la.prototype.getHeader=function(){return _.cG(this,YJ,1)};
la.prototype.setHeader=function(R){return _.DE(this,1,R)};
la.prototype.hasHeader=function(){return _.mh(this,YJ,1)};var dcf=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(dcf,_.lb);dcf.prototype.getLink=function(){return _.cG(this,P2,1)};var R5N=new Ez("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",la,dcf,function(R){return R.serialize()},_.Hx(dcf));var xJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(xJ,_.lb);xJ.prototype.getHeader=function(){return _.cG(this,YJ,1)};
xJ.prototype.setHeader=function(R){return _.DE(this,1,R)};
xJ.prototype.hasHeader=function(){return _.mh(this,YJ,1)};var A8G=new Ez("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",xJ,P2,function(R){return R.serialize()},Gxf);var Y3H=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Y3H,_.lb);var PKn=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(PKn,_.lb);PKn.prototype.getUrl=function(){return _.X1(this,2)};
PKn.prototype.setUrl=function(R){return _.o9(this,2,R)};var El9=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(El9,_.lb);var z5n=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(z5n,_.lb);var iFG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(iFG,_.lb);var yff=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(yff,_.lb);var Jf0=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Jf0,_.lb);var lxN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(lxN,_.lb);var Hom=_.Hx(lxN);var xA9=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(xA9,_.lb);var c8m=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(c8m,_.lb);_.l=c8m.prototype;_.l.getHeader=function(){return _.cG(this,YJ,1)};
_.l.setHeader=function(R){return _.DE(this,1,R)};
_.l.hasHeader=function(){return _.mh(this,YJ,1)};
_.l.getCompletionUrl=function(){return _.X1(this,6)};
_.l.getDeviceId=function(){return _.X1(this,11)};var OFH=new Ez("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",c8m,lxN,function(R){return R.serialize()},Hom);var MNg=new Set(["SAPISIDHASH","APISIDHASH"]);var s7o=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(s7o,_.lb);s7o.prototype.getMessage=function(){return _.X1(this,2)};
var N$W=_.Hx(s7o);var c2=function(R,A){this.xhrNodeReadableStream_=R.nodeReadableStream;this.grpcResponseDeserializeFn_=A;this.JSC$19280_xhr_=R.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$19280_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&VNF(this)},vlo=function(R,A){var Y=new J8N;
_.KC(R.JSC$19280_xhr_,"complete",function(){if(R.JSC$19280_xhr_.isSuccess()){var P=R.JSC$19280_xhr_.getResponseText();var E;if(E=A)E=R.JSC$19280_xhr_,E.JSC$9789_xhr_&&E.isComplete()?(E=E.JSC$9789_xhr_.getResponseHeader("Content-Type"),E=E===null?void 0:E):E=void 0,E=E==="text/plain";if(E){if(!atob)throw Error("Yj");P=atob(P)}try{var z=R.grpcResponseDeserializeFn_(P)}catch(M){Oz(R,kXF(new _.fA(13,"Error when deserializing response data; error: "+M+(", response: "+P)),Y));return}P=_.dIJ(R.JSC$19280_xhr_.getStatus());
y8W(R,mAm(R));P==0?T$0(R,z):Oz(R,kXF(new _.fA(P,"Xhr succeeded but the status code is not 200"),Y))}else{P=R.JSC$19280_xhr_.getResponseText();z=mAm(R);if(P){var c=Q7n(R,P);P=c.code;E=c.details;c=c.metadata}else P=2,E="Rpc failed due to xhr error. uri: "+String(R.JSC$19280_xhr_.JSC$9789_lastUri_)+", error code: "+R.JSC$19280_xhr_.JSC$9789_lastErrorCode_+", error: "+R.JSC$19280_xhr_.getLastError(),c=z;y8W(R,z);Oz(R,kXF(new _.fA(P,E,c),Y))}})},VNF=function(R){R.xhrNodeReadableStream_.on("data",function(A){if("1"in
A){var Y=A["1"];
try{var P=R.grpcResponseDeserializeFn_(Y)}catch(E){Oz(R,new _.fA(13,"Error when deserializing response data; error: "+E+(", response: "+Y)))}P&&T$0(R,P)}if("2"in A)for(A=Q7n(R,A["2"]),Y=0;Y<R.onStatusCallbacks_.length;Y++)R.onStatusCallbacks_[Y](A)});
R.xhrNodeReadableStream_.on("end",function(){y8W(R,mAm(R));for(var A=0;A<R.onEndCallbacks_.length;A++)R.onEndCallbacks_[A]()});
R.xhrNodeReadableStream_.on("error",function(){if(R.JSC$19280_onErrorCallbacks_.length!=0){var A=R.JSC$19280_xhr_.JSC$9789_lastErrorCode_;A!==0||R.JSC$19280_xhr_.isSuccess()||(A=6);var Y=-1;switch(A){case 0:var P=2;break;case 7:P=10;break;case 8:P=4;break;case 6:Y=R.JSC$19280_xhr_.getStatus();P=_.dIJ(Y);break;default:P=14}y8W(R,mAm(R));A=_.v2A(A)+", error: "+R.JSC$19280_xhr_.getLastError();Y!=-1&&(A+=", http status code: "+Y);Oz(R,new _.fA(P,A))}})},mAm=function(R){var A={},Y=MbG(R.JSC$19280_xhr_);
Object.keys(Y).forEach(function(P){A[P]=Y[P]});
return A},Q7n=function(R,A){var Y=2,P={};
try{var E=N$W(A);Y=_.sU(E,1);var z=E.getMessage();_.OU(E,i7H,3,_.M_()).length&&(P["grpc-web-status-details-bin"]=A)}catch(c){R.JSC$19280_xhr_&&R.JSC$19280_xhr_.getStatus()===404?(Y=5,z="Not Found: "+String(R.JSC$19280_xhr_.JSC$9789_lastUri_)):(Y=14,z="Unable to parse RpcStatus: "+c)}return{code:Y,details:z,metadata:P}};
c2.prototype.on=function(R,A){R=="data"?this.onDataCallbacks_.push(A):R=="metadata"?this.onMetadataCallbacks_.push(A):R=="status"?this.onStatusCallbacks_.push(A):R=="end"?this.onEndCallbacks_.push(A):R=="error"&&this.JSC$19280_onErrorCallbacks_.push(A);return this};
var ME=function(R,A){A=R.indexOf(A);A>-1&&R.splice(A,1)};
c2.prototype.removeListener=function(R,A){R=="data"?ME(this.onDataCallbacks_,A):R=="metadata"?ME(this.onMetadataCallbacks_,A):R=="status"?ME(this.onStatusCallbacks_,A):R=="end"?ME(this.onEndCallbacks_,A):R=="error"&&ME(this.JSC$19280_onErrorCallbacks_,A);return this};
c2.prototype.cancel=function(){this.JSC$19280_xhr_.abort()};
var T$0=function(R,A){for(var Y=0;Y<R.onDataCallbacks_.length;Y++)R.onDataCallbacks_[Y](A)},y8W=function(R,A){for(var Y=0;Y<R.onMetadataCallbacks_.length;Y++)R.onMetadataCallbacks_[Y](A)},Oz=function(R,A){for(var Y=0;Y<R.JSC$19280_onErrorCallbacks_.length;Y++)R.JSC$19280_onErrorCallbacks_[Y](A)};
c2.prototype.cancel=c2.prototype.cancel;c2.prototype.removeListener=c2.prototype.removeListener;c2.prototype.on=c2.prototype.on;var J8N=function(){var R=Error.call(this);this.message=R.message;"stack"in R&&(this.stack=R.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.H(J8N,Error);var sz=function(R){this.JSC$19289_worker_=R.worker||null;this.JSC$19289_streamBinaryChunks_=R.streamBinaryChunks||!1;this.JSC$19289_credentialsMode_=void 0};
_.Pb(sz,_.ANk);sz.prototype.createInstance=function(){var R=new NE(this.JSC$19289_worker_,this.JSC$19289_streamBinaryChunks_);this.JSC$19289_credentialsMode_&&R.setCredentialsMode(this.JSC$19289_credentialsMode_);return R};
sz.prototype.setCredentialsMode=function(R){this.JSC$19289_credentialsMode_=R};
var NE=function(R,A){_.SS.call(this);this.JSC$19293_worker_=R;this.JSC$19293_streamBinaryChunks_=A;this.JSC$19293_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$19293_responseHeaders_=null;this.JSC$19293_method_="GET";this.JSC$19293_url_="";this.inProgress_=!1;this.JSC$19293_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Pb(NE,_.SS);NE.prototype.open=function(R,A){if(this.readyState!=0)throw this.abort(),Error("Zj");this.JSC$19293_method_=R;this.JSC$19293_url_=A;this.readyState=1;Vb(this)};
NE.prototype.send=function(R){if(this.readyState!=1)throw this.abort(),Error("$j");if(this.abortController_.signal.aborted)throw this.abort(),Error("ak");this.inProgress_=!0;var A={headers:this.requestHeaders_,method:this.JSC$19293_method_,credentials:this.JSC$19293_credentialsMode_,cache:void 0,signal:this.abortController_.signal};R&&(A.body=R);(this.JSC$19293_worker_||_.P3).fetch(new Request(this.JSC$19293_url_,A)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
NE.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.abortController_.abort();this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,JF(this));this.readyState=0};
NE.prototype.handleResponse_=function(R){if(this.inProgress_&&(this.fetchResponse_=R,this.JSC$19293_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19293_responseHeaders_=R.headers,this.readyState=2,Vb(this)),this.inProgress_&&(this.readyState=3,Vb(this),this.inProgress_)))if(this.responseType==="arraybuffer")R.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.P3.ReadableStream!==
"undefined"&&"body"in R){this.currentReader_=R.body.getReader();if(this.JSC$19293_streamBinaryChunks_){if(this.responseType)throw Error("bk");this.response=[]}else this.response=this.responseText="",this.JSC$19293_textDecoder_=new TextDecoder;glY(this)}else R.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var glY=function(R){R.currentReader_.read().then(R.handleDataFromStream_.bind(R)).catch(R.handleSendFailure_.bind(R))};
NE.prototype.handleDataFromStream_=function(R){if(this.inProgress_){if(this.JSC$19293_streamBinaryChunks_&&R.value)this.response.push(R.value);else if(!this.JSC$19293_streamBinaryChunks_){var A=R.value?R.value:new Uint8Array(0);if(A=this.JSC$19293_textDecoder_.decode(A,{stream:!R.done}))this.response=this.responseText+=A}R.done?JF(this):Vb(this);this.readyState==3&&glY(this)}};
NE.prototype.handleResponseText_=function(R){this.inProgress_&&(this.response=this.responseText=R,JF(this))};
NE.prototype.handleResponseArrayBuffer_=function(R){this.inProgress_&&(this.response=R,JF(this))};
NE.prototype.handleSendFailure_=function(){this.inProgress_&&JF(this)};
var JF=function(R){R.readyState=4;R.fetchResponse_=null;R.currentReader_=null;R.JSC$19293_textDecoder_=null;Vb(R)};
NE.prototype.setRequestHeader=function(R,A){this.requestHeaders_.append(R,A)};
NE.prototype.getResponseHeader=function(R){return this.JSC$19293_responseHeaders_?this.JSC$19293_responseHeaders_.get(R.toLowerCase())||"":""};
NE.prototype.getAllResponseHeaders=function(){if(!this.JSC$19293_responseHeaders_)return"";for(var R=[],A=this.JSC$19293_responseHeaders_.entries(),Y=A.next();!Y.done;)Y=Y.value,R.push(Y[0]+": "+Y[1]),Y=A.next();return R.join("\r\n")};
NE.prototype.setCredentialsMode=function(R){this.JSC$19293_credentialsMode_=R};
var Vb=function(R){R.onreadystatechange&&R.onreadystatechange.call(R)};
Object.defineProperty(NE.prototype,"withCredentials",{get:function(){return this.JSC$19293_credentialsMode_==="include"},
set:function(R){this.setCredentialsMode(R?"include":"same-origin")}});var nlj=function(R){var A="";_.BO.forEach(R,function(Y,P){A+=P;A+=":";A+=Y;A+="\r\n"});
return A},HFF=function(R,A,Y){if(_.BO.isEmpty(Y))return R;
Y=nlj(Y);if(typeof R==="string")return _.uK(R,_.wu(A),Y);_.LJ(R,A,Y);return R};var r8f=function(){this.isInputValid_=!0;this.JSC$19298_streamPos_=0;this.leftoverInput_=""};
r8f.prototype.isInputValid=function(){return this.isInputValid_};
r8f.prototype.decode=function(R){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("ck`"+this.JSC$19298_streamPos_+"`stream already broken`"+R);this.leftoverInput_+=R;R=Math.floor(this.leftoverInput_.length/4);if(R==0)return null;try{var A=_.fQV(this.leftoverInput_.slice(0,R*4))}catch(Y){throw A=this.leftoverInput_,R=Y.message,this.isInputValid_=!1,Error("ck`"+this.JSC$19298_streamPos_+"`"+R+"`"+A);}this.JSC$19298_streamPos_+=R*4;this.leftoverInput_=this.leftoverInput_.slice(R*4);return A};var qC=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19301_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
qC.prototype.isInputValid=function(){return this.state_!=3};
var yb=function(R,A,Y,P){R.state_=3;R.errorMessage_="The stream is broken @"+R.JSC$19301_streamPos_+"/"+Y+". Error: "+P+". With input:\n"+A;throw Error(R.errorMessage_);};
qC.prototype.acceptsBinaryInput=function(){return!0};
qC.prototype.parse=function(R){function A(N){N&128&&yb(z,c,M,"invalid tag");(N&7)!=2&&yb(z,c,M,"invalid wire type");z.tag_=N>>>3;z.tag_!=1&&z.tag_!=2&&z.tag_!=15&&yb(z,c,M,"unexpected tag");z.state_=1;z.length_=0;z.countLengthBytes_=0}
function Y(N){z.countLengthBytes_++;z.countLengthBytes_==5&&N&240&&yb(z,c,M,"message length too long");z.length_|=(N&127)<<(z.countLengthBytes_-1)*7;N&128||(z.state_=2,z.countMessageBytes_=0,typeof Uint8Array!=="undefined"?z.messageBuffer_=new Uint8Array(z.length_):z.messageBuffer_=Array(z.length_),z.length_==0&&E())}
function P(N){z.messageBuffer_[z.countMessageBytes_++]=N;z.countMessageBytes_==z.length_&&E()}
function E(){if(z.tag_<15){var N={};N[z.tag_]=z.messageBuffer_;z.result_.push(N)}z.state_=0}
for(var z=this,c=R instanceof Array?R:new Uint8Array(R),M=0;M<c.length;){switch(z.state_){case 3:yb(z,c,M,"stream already broken");break;case 0:A(c[M]);break;case 1:Y(c[M]);break;case 2:P(c[M]);break;default:throw Error("dk`"+z.state_);}z.JSC$19301_streamPos_++;M++}R=z.result_;z.result_=[];return R.length>0?R:null};var ZxN=function(){this.errorMessage_=null;this.JSC$19304_streamPos_=0;this.base64Decoder_=new r8f;this.pbParser_=new qC};
ZxN.prototype.isInputValid=function(){return this.errorMessage_===null};
var DAj=function(R,A,Y){R.errorMessage_="The stream is broken @"+R.JSC$19304_streamPos_+". Error: "+Y+". With input:\n"+A;throw Error(R.errorMessage_);};
ZxN.prototype.acceptsBinaryInput=function(){return!1};
ZxN.prototype.parse=function(R){this.errorMessage_!==null&&DAj(this,R,"stream already broken");var A=null;try{var Y=this.base64Decoder_.decode(R);A=Y===null?null:this.pbParser_.parse(Y)}catch(P){DAj(this,R,P.message)}this.JSC$19304_streamPos_+=R.length;return A};var GXG=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19307_streamPos_=0;this.result_=[];this.statusParsed_=!1};
GXG.prototype.isInputValid=function(){return this.errorMessage_===null};
GXG.prototype.acceptsBinaryInput=function(){return!1};
GXG.prototype.parse=function(R){function A(N){z.state_=6;z.errorMessage_="The stream is broken @"+z.JSC$19307_streamPos_+"/"+c+". Error: "+N+". With input:\n";throw Error(z.errorMessage_);}
function Y(){z.jsonStreamParser_=new _.yo({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function P(N){if(N)for(var y=0;y<N.length;y++){var m={};m[1]=N[y];z.result_.push(m)}}
function E(N){if(N){(z.statusParsed_||N.length>1)&&A("extra status: "+N);z.statusParsed_=!0;var y={};y[2]=N[0];z.result_.push(y)}}
for(var z=this,c=0;c<R.length;){var M;if(M=z.state_!==2){a:{for(;c<R.length;){if(!_.JX(R[c])){M=!0;break a}c++;z.JSC$19307_streamPos_++}M=!1}M=!M}if(M)return null;switch(z.state_){case 6:A("stream already broken");break;case 0:R[c]==="["?(z.state_=1,c++,z.JSC$19307_streamPos_++):A("unexpected input token");break;case 1:R[c]==="["?(z.state_=2,Y()):R[c]===","||R.slice(c,c+5)=="null,"?z.state_=3:R[c]==="]"?(z.state_=5,c++,z.JSC$19307_streamPos_++):A("unexpected input token");break;case 2:M=z.jsonStreamParser_.parse(R.substring(c));
P(M);z.jsonStreamParser_.done()?(z.state_=3,M=z.jsonStreamParser_.JSC$11470_buffer_,z.JSC$19307_streamPos_+=R.length-c-M.length,R=M,c=0):(z.JSC$19307_streamPos_+=R.length-c,c=R.length);break;case 3:R[c]===","||R.slice(c,c+5)=="null,"?(z.state_=4,Y(),z.jsonStreamParser_.parse("["),c+=R[c]===","?1:5,z.JSC$19307_streamPos_++):R[c]==="]"&&(z.state_=5,c++,z.JSC$19307_streamPos_++);break;case 4:M=z.jsonStreamParser_.parse(R.substring(c));E(M);z.jsonStreamParser_.done()?(z.state_=5,M=z.jsonStreamParser_.JSC$11470_buffer_,
z.JSC$19307_streamPos_+=R.length-c-M.length,R=M,c=0):(z.JSC$19307_streamPos_+=R.length-c,c=R.length);break;case 5:A("extra input after stream end")}}return z.result_.length>0?(R=z.result_,z.result_=[],R):null};var UAY=function(R){this.JSC$19310_xhr_=R;this.JSC$19310_parser_=null;this.status_=this.JSC$19310_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19310_textDecoder_=null;this.JSC$19310_eventHandler_=new _.ce(this);this.JSC$19310_eventHandler_.listen(this.JSC$19310_xhr_,"readystatechange",this.JSC$19312_readyStateChangeHandler_)},mD=function(R,A){R.status_!=A&&(R.status_=A,R.statusHandler_&&R.statusHandler_())},Tn=function(R){R.JSC$19310_eventHandler_.removeAll();
if(R.JSC$19310_xhr_){var A=R.JSC$19310_xhr_;R.JSC$19310_xhr_=null;A.abort();A.dispose()}};
UAY.prototype.getStatus=function(){return this.status_};
UAY.prototype.JSC$19312_readyStateChangeHandler_=function(R){R=R.target;try{if(R==this.JSC$19310_xhr_)a:{var A=_.B$(this.JSC$19310_xhr_),Y=this.JSC$19310_xhr_.JSC$9789_lastErrorCode_,P=this.JSC$19310_xhr_.getStatus(),E=this.JSC$19310_xhr_.getResponseText();R=[];if(this.JSC$19310_xhr_.getResponse()instanceof Array){var z=this.JSC$19310_xhr_.getResponse();z.length>0&&z[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,R=z)}if(!(A<3||A==3&&!E&&R.length==0))if(P=P==200||P==206,A==4&&(Y==8?mD(this,
7):Y==7?mD(this,8):P||mD(this,3)),this.JSC$19310_parser_||(this.JSC$19310_parser_=t9Y(this.JSC$19310_xhr_),this.JSC$19310_parser_==null&&mD(this,5)),this.status_>2)Tn(this);else{if(R.length>this.JSC$19310_pos_){var c=R.length;Y=[];try{if(this.JSC$19310_parser_.acceptsBinaryInput())for(var M=0;M<c;M++){var N=this.JSC$19310_parser_.parse(Array.from(R[M]));N&&(Y=Y.concat(N))}else{N="";if(!this.JSC$19310_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("ek");this.JSC$19310_textDecoder_=new TextDecoder}for(M=
0;M<c;M++)N+=this.JSC$19310_textDecoder_.decode(R[M],{stream:A==4&&M==c-1});Y=this.JSC$19310_parser_.parse(N)}R.splice(0,c);Y&&this.dataHandler_(Y)}catch(m){mD(this,5);Tn(this);break a}}else if(E.length>this.JSC$19310_pos_){M=E.slice(this.JSC$19310_pos_);this.JSC$19310_pos_=E.length;try{var y=this.JSC$19310_parser_.parse(M);y!=null&&this.dataHandler_&&this.dataHandler_(y)}catch(m){mD(this,5);Tn(this);break a}}A==4?(E.length!=0||this.hasStreamingResponseData_?mD(this,2):mD(this,4),Tn(this)):mD(this,
1)}}}catch(m){mD(this,6),Tn(this)}};var $Af=function(R){R=this.xhrReader_=R;var A=(0,_.Wv)(this.onData_,this);R.dataHandler_=A;R=this.xhrReader_;A=(0,_.Wv)(this.onStatusChange_,this);R.statusHandler_=A;this.JSC$19314_callbackMap_={};this.callbackOnceMap_={}};
_.l=$Af.prototype;_.l.on=function(R,A){var Y=this.JSC$19314_callbackMap_[R];Y||(Y=[],this.JSC$19314_callbackMap_[R]=Y);Y.push(A);return this};
_.l.addListener=function(R,A){this.on(R,A);return this};
_.l.removeListener=function(R,A){var Y=this.JSC$19314_callbackMap_[R];Y&&_.ak(Y,A);(R=this.callbackOnceMap_[R])&&_.ak(R,A);return this};
_.l.once=function(R,A){var Y=this.callbackOnceMap_[R];Y||(Y=[],this.callbackOnceMap_[R]=Y);Y.push(A);return this};
_.l.onData_=function(R){var A=this.JSC$19314_callbackMap_.data;A&&Xsg(R,A);(A=this.callbackOnceMap_.data)&&Xsg(R,A);this.callbackOnceMap_.data=[]};
var Xsg=function(R,A){for(var Y={},P=0;P<R.length;Y={message$jscomp$1007:void 0},P++)Y.message$jscomp$1007=R[P],A.forEach(function(E){return function(z){try{z(E.message$jscomp$1007)}catch(c){}}}(Y))};
$Af.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:S3j(this,"readable");break;case 5:case 6:case 4:case 7:case 3:S3j(this,"error");break;case 8:S3j(this,"close");break;case 2:S3j(this,"end")}};
var S3j=function(R,A){var Y=R.JSC$19314_callbackMap_[A];Y&&Y.forEach(function(P){try{P()}catch(E){}});
(Y=R.callbackOnceMap_[A])&&Y.forEach(function(P){P()});
R.callbackOnceMap_[A]=[]};var Ixn=function(){var R={format:"jspb"};R=R===void 0?{}:R;this.suppressCorsPreflight=R.suppressCorsPreflight||_.Zr("suppressCorsPreflight",R)||!1;this.withCredentials=R.withCredentials||_.Zr("withCredentials",R)||!1;this.streamInterceptors=R.streamInterceptors||[];this.unaryInterceptors=R.unaryInterceptors||[];this.workerScope=R.workerScope;this.chunkedServerStreaming=R.useFetchDownloadStreams||!1},j7N=function(R,A,Y,P,E,z){z=z===void 0?{}:z;
var c=A.substring(0,A.length-E.name.length),M,N=(M=z)==null?void 0:M.signal;return K5G(function(y){return new Promise(function(m,T){if(N==null?0:N.aborted){var Q=new _.fA(1,"Aborted");Q.cause=N.reason;T(Q)}else{var g={},r=W5j(R,y,c);r.on("error",function(I){return void T(I)});
r.on("metadata",function(I){g=I});
r.on("data",function(I){var b=g;b=b===void 0?{}:b;m(new tR0(I,b))});
N&&N.addEventListener("abort",function(){r.cancel();var I=new _.fA(1,"Aborted");I.cause=N.reason;T(I)})}})},R.unaryInterceptors).call(R,wbm(E,Y,P)).then(function(y){return y.responseMessage})},Qb=function(R,A,Y,P,E,z){z=z===void 0?{}:z;
return j7N(R,A,Y,P,E,z)};
Ixn.prototype.serverStreaming=function(R,A,Y,P){var E=this,z=R.substring(0,R.length-P.name.length);return bFN(function(c){var M=c.methodDescriptor,N=c.getMetadata(),y=fxY(E,!1);N=pso(E,N,y,z+M.getName());var m=F59(y,M.responseDeserializeFn,!0);c=M.requestSerializeFn(c.requestMessage);y.send(N,"POST",c);return m},this.streamInterceptors).call(this,wbm(P,A,Y))};
var W5j=function(R,A,Y){var P=A.methodDescriptor,E=A.getMetadata(),z=fxY(R,!0);R=pso(R,E,z,Y+P.getName());Y=F59(z,P.responseDeserializeFn,!1);vlo(Y,E["X-Goog-Encode-Response-If-Executable"]==="base64");A=P.requestSerializeFn(A.requestMessage);z.send(R,"POST",A);return Y},fxY=function(R,A){A=R.chunkedServerStreaming&&!A;
return R.workerScope||A?new _.FQ(new sz({worker:R.workerScope,streamBinaryChunks:A})):new _.FQ},pso=function(R,A,Y,P){A["Content-Type"]="application/json+protobuf";
A["X-User-Agent"]="grpc-web-javascript/0.1";var E=A.Authorization;if(E&&MNg.has(E.split(" ")[0])||R.withCredentials)Y.JSC$9789_withCredentials_=!0;if(R.suppressCorsPreflight)P=HFF(P,"$httpHeaders",A);else for(R=_.x(Object.keys(A)),E=R.next();!E.done;E=R.next())E=E.value,Y.headers.set(E,A[E]);return P},F59=function(R,A,Y){if(Y){Y=new UAY(R);
var P=new $Af(Y)}return new c2({xhr:R,nodeReadableStream:P},A)},bFN=function(R,A){return A.reduce(function(Y,P){return function(E){return P.intercept(E,Y)}},R)},K5G=function(R,A){return A.reduce(function(Y,P){return function(E){return P.intercept(E,Y)}},R)};var B$i=function(R){this.client_=new Ixn;this.hostname_=R==void 0?R:R.replace(/\/+$/,"")};
_.l=B$i.prototype;_.l.JSC$19332_depositGoogleCredential=function(R,A,Y){return Qb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",R,A||{},Lhf,Y)};
_.l.deleteLink=function(R,A,Y){return Qb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",R,A||{},ezW,Y)};
_.l.JSC$19332_finishOAuth=function(R,A,Y){return Qb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",R,A||{},R5N,Y)};
_.l.getLink=function(R,A,Y){return Qb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",R,A||{},A8G,Y)};
_.l.startLinkingSession=function(R,A,Y){return Qb(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",R,A||{},OFH,Y)};var axN=[0,_.uu,1,ARQ,[0,_.dA,[0,_.qc,-1]],[0,RzW],[0,_.Yl,-1]];var CKG=function(){this.storage=new Map},olW=function(R,A,Y,P,E){if(!R.storage.has(A))return null;
R=_.x(R.storage.get(A));for(A=R.next();!A.done;A=R.next())if(A=A.value,!E||A.linkName===E)if(Y&&A.scopes&&h5N(A.scopes,Y)||P&&A.capabilities&&h5N(A.capabilities,P))return A;return null},ksg=function(R,A,Y){if(!Y)R.storage.delete(A);
else if(R.storage.has(A)){var P=R.storage.get(A).filter(function(E){return E.linkName!==Y});
P.length>0?R.storage.set(A,P):R.storage.delete(A)}},h5N=function(R,A){A=_.x(A);
for(var Y=A.next();!Y.done;Y=A.next())if(!R.has(Y.value))return!1;return!0};var GsG=function(){var R=_.a1("LINK_GAL_DOMAIN");this.alsDomain1p=_.a1("LINK_GAL_DOMAIN");this.alsDomain3p=R;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},ZFf=function(R,A){R.apiKey=A;
return R};
GsG.prototype.build=function(){var R={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("fk");R.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("gk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("hk");R.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(R.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)R.apiKey=
this.apiKey,R.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("ik");R.oauthToken=this.oauthToken;R.alsDomain=this.alsDomain3p}R.clientXd3=this.clientXd3;R.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(R.authUser=this.authUser);this.bucket!==void 0&&(R.bucket=this.bucket);this.completionUrl!==void 0&&(R.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(R.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(R.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(R.locale=this.locale);R.loggerType=this.loggerType;R.clientEnvironment=this.clientEnvironment;R.colorScheme=this.colorScheme;R.showCloseOption=this.showCloseOption;return R};var Lh=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Lh,_.lb);var tNN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(tNN,_.lb);var ws9=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(ws9,_.lb);var R5=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(R5,_.lb);var uwQ=function(R){return _.SR(R,1)};var e5H=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(e5H,_.lb);var RpG=_.Hx(e5H),dp=[1,2,3,4,5];var e2i=function(R){try{return RpG(R)}catch(A){return null}},q3F=function(){},qQN=function(R,A){switch(_.gA(A,dp)){case 4:return(A=_.Wb(A,ws9,4,dp))&&R.logStateTransition(_.SR(A,1)),!0;
case 5:return(A=_.Wb(A,tNN,5,dp))&&R.logInternalEvent(_.SR(A,1)),!0}return!1},Afm=function(R){switch(R){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.kZ(R)}};var wKN=function(R,A){var Y=this;this.validator=R;this.messageListener=A;this.dismissCallback=function(){L5m(Y,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19361_receiveMessage=function(P){P.type==="message"&&(P=P.event_,P!==null&&(new URL(Y.iframe.src)).origin===P.origin&&Y.validator(P.data,P.origin)&&!Y.messageListener(P.data)&&(Y.JSC$19361_resolveCb!==void 0&&Y.JSC$19361_resolveCb(P.data),dAY(Y)))}},d6o=function(R,A,Y){R.uiHandler!==void 0&&L5m(R,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(P,E){R.JSC$19361_resolveCb=P;R.JSC$19361_rejectCb=E;R.iframe=document.createElement("iframe");_.Lq(R.iframe,A);R.uiHandler=Y.displayContent(R.iframe,R.dismissCallback);_.KC(window,"message",R.JSC$19361_receiveMessage,!1,R)})},L5m=function(R,A){R.JSC$19361_rejectCb!==void 0&&R.JSC$19361_rejectCb(A);
dAY(R)},dAY=function(R){R.uiHandler!==void 0&&R.uiHandler.hideContent();
_.XQ(window,"message",R.JSC$19361_receiveMessage,!1,R);R.JSC$19361_resolveCb=void 0;R.JSC$19361_rejectCb=void 0;R.uiHandler=void 0;R.iframe=void 0};var RM0=function(R){if(R===2){var A;R=((A=window)==null?0:A.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return R},Lcf=function(R){R=RM0(R);
switch(R){case 0:return"light";case 1:return"dark";default:_.kZ(R)}};var uEW=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),AAm=function(R,A){this.JSC$19373_linkingSession=R;this.noticeConfig=A;this.displayInfoMap=new Map;var Y=new Map;if(_.mh(this.JSC$19373_linkingSession,El9,7))for(R=_.cG(this.JSC$19373_linkingSession,El9,7),R=_.OU(R,PKn,1,_.M_()),R=_.x(R),A=R.next();!A.done;A=R.next())A=A.value,Y.set(_.SR(A,1),_.JNJ(_.cG(A,_.CLb,3)));if(Y.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){A=this.noticeConfig.enabledDataUsageNoticeUis;R=A.has(0)?Y.get(1):void 0;A=A.has(1)?Y.get(2):void 0;Y=R!==void 0&&A!==void 0?Y.get(3):void 0;var P=this.noticeConfig.nestedOrigins;var E=new e5H;var z=new Lh;E=_.Ug(E,2,dp,z);z=new e5H;var c=new Lh;z=_.Ug(z,3,dp,c);c=[];R!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:R,lastEvent:E,nestedOrigins:P}]),c.push({trustedUrl:R,lastEvent:E,nestedOrigins:P}));A!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:A,lastEvent:z,nestedOrigins:P}]),c.push({trustedUrl:A,lastEvent:z,nestedOrigins:P}));Y!==void 0?this.displayInfoMap.set(3,[{trustedUrl:Y,lastEvent:z,nestedOrigins:P}]):this.displayInfoMap.set(3,c)}};var YXQ=function(R){var A=new CKG;this.galService=R;this.galCache=A};
YXQ.prototype.getLink=function(R){var A=R.serviceId;var Y=R.scopes;var P=R.capabilities;var E=R.linkName;var z=this,c;return _.O(function(M){if(P!==void 0&&Y!==void 0)throw Error("jk");c=olW(z.galCache,A,Y,P,E);return c!==null?M.return(c):M.return(z.galService.getLink({serviceId:A,sessionId:Math.floor(Math.random()*2147483648),scopes:Y,capabilities:P,linkName:E}).then(function(N){N=ioQ(N);var y=z.galCache;y.storage.has(A)?y.storage.get(A).push(N):y.storage.set(A,[N]);return N}))})};
YXQ.prototype.deleteLink=function(R,A,Y){var P=this;return _.O(function(E){ksg(P.galCache,R,Y);return E.return(P.galService.deleteLink({serviceId:R,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:A,linkName:Y}).then(function(){return!0}))})};var Eyn=function(R,A){var Y=this;this.validator=R;this.msgHandler=A;this.closedPopupTimeout=this.JSC$19395_rejectCb=this.JSC$19395_resolveCb=this.popup=null;this.JSC$19395_receiveMessage=function(P){if(P!==null&&(P=P.event_,P.source===Y.popup)){var E=P.data;if(Y.validator(E,P.origin)){var z;(z=Y.msgHandler)!=null&&z.call(Y,E)||(Y.JSC$19395_resolveCb!==null&&Y.JSC$19395_resolveCb(E),P6m(Y))}}}};
Eyn.prototype.open=function(R,A){var Y=this;this.popup!==null&&zMn(this);return new Promise(function(P,E){Y.JSC$19395_resolveCb=P;Y.JSC$19395_rejectCb=E;Y.popup=_.dZ(window,R,"",A);_.KC(window,"message",Y.JSC$19395_receiveMessage,!1,Y);iAW(Y)})};
var zMn=function(R,A){R.JSC$19395_rejectCb!==null&&R.JSC$19395_rejectCb(A);P6m(R)},P6m=function(R){R.closedPopupTimeout&&(R.closedPopupTimeout.cancel(),R.closedPopupTimeout=null);
R.popup&&R.popup.close();_.XQ(window,"message",R.JSC$19395_receiveMessage,!1,R);R.popup=null;R.JSC$19395_resolveCb=null;R.JSC$19395_rejectCb=null},iAW=function(R){R.closedPopupTimeout=_.JrA(100).then(function(){R.popup?R.popup.closed?luj(R):iAW(R):zMn(R,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},luj=function(R){R.closedPopupTimeout=_.JrA(100).then(function(){zMn(R,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var xlQ=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),cAG=function(R,A,Y,P,E,z,c,M,N,y){var m=this;this.serviceId=R;this.sessionId=A;this.galService=Y;this.oauthDetails=P;this.galLogger=E;this.interactionMode=z;this.redirectServiceUrl=c;this.consentLanguageKeys=M;this.dynamicUrlParameters=N;this.partnerConfigMinReadTimestamp=y;this.started=!1;this.JSC$19401_dataValidator=function(T,
Q){var g=xlQ.has(Q);g||m.redirectServiceUrl===void 0||(g=m.redirectServiceUrl===Q);return g?T.sentinel==="gdi":!1}};
cAG.prototype.complete=function(){var R=this,A;return _.O(function(Y){if(R.interactionMode!==1)return Y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));A=Y1.getRedirectStateFromUri();return A===null?Y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):Y.return(OAN(R,A))})};
cAG.prototype.start=function(){var R=this,A;return _.O(function(Y){if(R.started)return Y.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.X1(R.oauthDetails,1))return Y.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(R.interactionMode===1)return Y1.setLocation(_.X1(R.oauthDetails,1)),Y.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));R.started=!0;R.galLogger.logStateTransition(5);
A=Y1.getPostMessagePopup(R.JSC$19401_dataValidator);return Y.return(A.open(_.X1(R.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(P){R.started=!1;var E=R.galLogger;if((P==null?void 0:P.error)!==void 0)throw E.logInternalEvent(59),Error("kk");if((P==null?void 0:P.redirect_state)===void 0)throw E.logInternalEvent(131),Error("lk");return OAN(R,P.redirect_state)}).catch(function(P){R.started=
!1;
return P.errorCode!==void 0?{statusCode:P.errorCode,statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var OAN=function(R,A){return _.O(function(Y){return Y.return(MSQ(R.galService,{serviceId:R.serviceId,sessionId:R.sessionId,dynamicUrlParameters:R.dynamicUrlParameters,redirectState:A,consentLanguageKeys:R.consentLanguageKeys,partnerConfigMinReadTimestamp:R.partnerConfigMinReadTimestamp}).then(function(P){var E={statusCode:1,link:ioQ(P.getLink())};ZOj(_.QT(P,3))!==void 0&&(E.callerState=ZOj(_.QT(P,3)));R.galLogger.logInternalEvent(134);return E}))})},Y1={getPostMessagePopup:function(R){return new Eyn(R)},
getRedirectStateFromUri:function(){var R=_.eK(Y1.getLocation()).fragment_;return(new _.Nd(R)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(R){_.N2l(window.location,_.oR(R))},
createOAuthFlow:function(R,A){return new cAG(R.serviceId,R.sessionId,R.galService,A,R.galLogger,R.interactionMode,R.redirectServiceUrl,R.consentLanguageKeys,R.dynamicUrlParameters,R.partnerConfigMinReadTimestamp)}};var s8o=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(s8o,_.lb);var N4Y=_.Hx(s8o);var VSY=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),JAW=function(R,A,Y,P,E,z,c,M,N){var y=this;this.serviceId=R;this.sessionId=A;this.galService=Y;this.gsiWebFlowDetails=P;this.colorScheme=E;this.showCloseOption=z;this.galLogger=c;this.interactionMode=M;this.redirectServiceUrl=N;this.started=!1;this.JSC$19413_dataValidator=function(m,T){var Q=VSY.has(T);Q||y.redirectServiceUrl===
void 0||(Q=y.redirectServiceUrl===T);return Q?m.sentinel==="gal":!1};
this.logEventProcessor=function(m){return m.result?(m=e2i(m.result))?qQN(y.galLogger,m):!1:!1}};
JAW.prototype.complete=function(){var R=this,A,Y;return _.O(function(P){if(R.interactionMode!==1)return P.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));A=PQ.getRedirectStateFromUri();if(A===void 0)return R.galLogger.JSC$19353_logErrorEvent(131),P.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return Y=yAj(R,A),P.return(mlg(R,Y))}catch(E){return P.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
JAW.prototype.start=function(){var R=this,A;return _.O(function(Y){if(R.started)return Y.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.X1(R.gsiWebFlowDetails,1))return Y.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(R.interactionMode===1)return PQ.setLocation(T4n(R,_.X1(R.gsiWebFlowDetails,1))),Y.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
R.started=!0;A=PQ.getPostMessagePopup(R.JSC$19413_dataValidator,R.logEventProcessor);return Y.return(A.open(T4n(R,_.X1(R.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(P){R.started=!1;if((P==null?void 0:P.result)===void 0)throw R.galLogger.JSC$19353_logErrorEvent(131),Error("lk");P=yAj(R,P.result);return mlg(R,P)}).catch(function(P){R.started=!1;
return P.errorCode!==void 0?{statusCode:P.errorCode,statusMessage:P.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var T4n=function(R,A){R=["result_channel",R.interactionMode===1?"2":"1","color_scheme",Lcf(R.colorScheme),"show_close_option",R.showCloseOption];return zz9(A,R)},mlg=function(R,A){if(A!==null&&_.mh(A,R5,2)){var Y,P=A==null?void 0:(Y=_.cG(A,R5,2))==null?void 0:_.SR(Y,2);
P&&R.galLogger.JSC$19353_logErrorEvent(Afm(P));return uwQ(_.cG(A,R5,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 R.galService.getLink({serviceId:R.serviceId,sessionId:R.sessionId,consistencyKey:_.X1(A,1)}).then(function(E){E=ioQ(E);R.galLogger.logInternalEvent(134);return{statusCode:1,link:E}})},yAj=function(R,A){A=N4Y(A);
if(!_.mh(A,R5,2)&&_.X1(A,1)==="")throw R.galLogger.JSC$19353_logErrorEvent(5),Error("mk");return A},PQ={getPostMessagePopup:function(R,A){return new Eyn(R,A)},
getRedirectStateFromUri:function(){return _.q_(_.eK(PQ.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(R){_.N2l(window.location,_.oR(R))},
createStreamlinedFlow:function(R,A){return new JAW(R.serviceId,R.sessionId,R.galService,A,R.colorScheme,R.showCloseOption,R.galLogger,R.interactionMode,R.redirectServiceUrl)}};var gpW=function(){var R=_.r0q("GAL");this.storage=R?new _.Sx(R):null};
gpW.prototype.getSession=function(R){if(this.storage!==null)try{var A=this.storage.get("SAVED_SESSION");if(A===void 0)return null;if(A.serviceId===R)return A}catch(Y){}return null};var v2=function(){};
_.H(v2,q3F);v2.prototype.logStateTransition=function(){};
v2.prototype.logInternalEvent=function(){};
v2.prototype.JSC$19353_logErrorEvent=function(){};var Q8i=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Q8i,_.lb);Q8i.prototype.getCompletionUrl=function(){return _.X1(this,15)};var gJ=function(R,A,Y,P,E,z){this.serviceId=R;this.environment=A;this.sessionId=Y;this.colorSchemeSelected=P;this.colorThemeDisplayed=E;this.JSC$19426_transport=z;this.currentState=1};
_.H(gJ,q3F);gJ.prototype.logStateTransition=function(R){var A=vyQ(this);A=_.OF(A,3,this.currentState);A=_.OF(A,1,R);this.currentState=R;R=O09(1);this.dispatch(A,R)};
gJ.prototype.logInternalEvent=function(R){R=O09(R);this.dispatch(vyQ(this),R)};
gJ.prototype.JSC$19353_logErrorEvent=function(R){var A=vyQ(this);A=_.OF(A,1,10);R=O09(R);this.dispatch(A,R)};
var vyQ=function(R){var A=new Q8i;A=_.OF(A,1,R.currentState);A=_.IS(A,7,R.serviceId);var Y,P;var E=((Y=window)==null?0:(P=Y.location)==null?0:P.href)?_.eK(window.location.href).JSC$10024_domain_:"NO_PACKAGE_NAME";Y=_.IS(A,8,E);Y=_.OF(Y,6,R.environment);Y=_.IS(Y,5,"100");Y=_.OF(Y,11,R.colorSchemeSelected);return _.OF(Y,12,R.colorThemeDisplayed)};
gJ.prototype.dispatch=function(R,A){A===void 0&&(A=new _.mL);var Y=A;R=R.serialize();Y=_.IS(Y,8,R);_.r5(Y,12,this.sessionId);this.JSC$19426_transport.dispatch(A)};var gyj=function(R,A){this.loggerType=R;this.sessionIndex=A!=null?A:0},nyW;
gyj.prototype.create=function(R,A,Y,P,E){switch(this.loggerType){case 0:return new v2;case 1:return nyW||(nyW=(new _.Q6(555,this.sessionIndex.toString())).build()),new gJ(R,A,Y,P,E,nyW);default:_.kZ(this.loggerType,"unknown logger type")}};var EG=[6,2,3,1],$ii=new Map([[4,1],[1,6],[2,2],[3,3]]),OoH={statusCode:7,statusMessage:"Failed to create flow object"},Q4o=function(R,A,Y,P,E,z,c,M,N,y){this.serviceId=R;this.sessionId=A;this.config=Y;this.galService=P;this.JSC$19433_linkingSession=E;this.googleScopes=z;this.callerState=c;this.consentLanguageKeys=M;this.dynamicUrlParameters=N;this.partnerConfigMinReadTimestamp=y;this.currentFlow=0;P=this.JSC$19433_linkingSession;E=new Set;_.mh(P,Jf0,1)&&E.add(1);_.mh(P,iFG,2)&&_.mh(P,yff,6)&&E.add(2);
_.mh(P,z5n,3)&&_.mh(P,yff,6)&&E.add(3);_.mh(P,Y3H,4)&&E.add(6);this.supportedFlows=E;P=Y.loggerType;E=Y.clientEnvironment;a:{z=Y.colorScheme;switch(z){case 0:z=1;break a;case 1:z=2;break a;case 2:z=3;break a;default:_.kZ(z)}z=void 0}a:{c=Y.colorScheme;c=RM0(c);switch(c){case 0:c=1;break a;case 1:c=2;break a;default:_.kZ(c)}c=void 0}this.galLogger=(new gyj(P,Y.authUser)).create(R,E,A,z,c)},rA0=function(R){return new Promise(function(A){var Y,P,E,z,c,M,N,y,m,T;
return _.O(function(Q){switch(Q.nextAddress){case 1:Y=mij(R.currentFlow,R.supportedFlows),P=!1,E=new AAm(R.JSC$19433_linkingSession,R.config.dataUsageNoticeConfig);case 2:if(Y===void 0){Q.jumpTo(4);break}_.g2(Q,5);var g=E,r=Y,I=void 0;P?r===1&&(I=g.displayInfoMap.get(2)):r===2||r===3?I=g.displayInfoMap.get(1):r===1&&(I=g.displayInfoMap.get(3));z=I?I:[];c=R.consentLanguageKeys;M=_.x(z);N=M.next();case 7:if(N.done)return R.currentFlow=Y,Q.yield(s4f(HAf(R,c)),11);y=N.value;return Q.yield(YdW(y,R.config.dataUsageNoticeConfig.uiAdapter,
R.config.colorScheme,R.galLogger),10);case 10:m=Q.yieldResult;if(m.statusCode!==1)return npn(R.serviceId),R.currentFlow=0,A(AP({statusCode:m.statusCode,statusMessage:m.statusMessage},R.callerState)),Q.return();m.consentLanguageKeys!==void 0&&(c=m.consentLanguageKeys);N=M.next();Q.jumpTo(7);break;case 11:T=Q.yieldResult;if(T.statusCode!==10)return T.statusCode!==6&&(npn(R.serviceId),R.currentFlow=0),T.statusCode!==1&&R.callerState!==void 0&&(T.callerState=R.callerState),A(T),Q.return();_.us(Q,6);break;
case 5:_.UT(Q);case 6:Y=mij(R.currentFlow,R.supportedFlows);P=!0;Q.jumpTo(2);break;case 4:npn(R.serviceId),R.currentFlow=0,A(AP({statusCode:12,statusMessage:"Linking failed"},R.callerState)),_.XH(Q)}})})},Dii=function(R,A,Y){R.currentFlow=A;
return Na0(HAf(R,Y)).then(function(P){return P.statusCode===10&&R.config.interactionMode===1&&mij(R.currentFlow,R.supportedFlows)!==void 0?rA0(R):P})},HAf=function(R,A){return{flowParams:{serviceId:R.serviceId,
sessionId:R.sessionId,galService:R.galService,galLogger:R.galLogger,interactionMode:R.config.interactionMode,redirectServiceUrl:R.config.redirectServiceUrl,colorScheme:R.config.colorScheme,consentLanguageKeys:A,dynamicUrlParameters:R.dynamicUrlParameters,showCloseOption:R.config.showCloseOption,partnerConfigMinReadTimestamp:R.partnerConfigMinReadTimestamp},currentFlow:R.currentFlow,config:R.config,session:R.JSC$19433_linkingSession,googleScopes:R.googleScopes,callerState:R.callerState}};var Sdo=function(R,A){this.config=R;this.galService=A.getService();this.JSC$19446_galRepository=A.JSC$19464_galRepository};
Sdo.prototype.getLink=function(R,A){return DlG(this,R,A)};
var DlG=function(R,A,Y){return R.JSC$19446_galRepository.getLink({serviceId:A,scopes:void 0,capabilities:void 0,linkName:Y}).then(function(P){return{statusCode:1,link:P}}).catch(function(P){return{statusCode:XrH(P.code),
statusMessage:P.message}})};
Sdo.prototype.deleteLink=function(R,A){return this.JSC$19446_galRepository.deleteLink(R,this.config.accountLinkingEntryPoint,A).then(function(){return{statusCode:1}}).catch(function(Y){return{statusCode:XrH(Y.code),
statusMessage:Y.message}})};
Sdo.prototype.startLinkingSession=function(R){var A=R.serviceId;var Y=R.sessionId;return vpN({serviceId:A,sessionId:Y!==void 0?Y:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:R.loginHint,callerState:R.callerState,consentLanguageKeys:R.consentLanguageKeys,linkName:R.linkName,dynamicUrlParameters:R.dynamicUrlParameters,partnerConfigMinReadTimestamp:R.partnerConfigMinReadTimestamp})};var nB=function(R,A,Y,P,E,z,c){this.apiKey=A;this.authUser=Y;this.oauthToken=P;this.bucket=E;this.locale=z;this.galSdkEventHandler=c;if(P===void 0){if(A===void 0)throw Error("nk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new B$i(R)};
nB.prototype.deleteLink=function(R){var A=R.serviceId;var Y=R.sessionId;var P=R.accountLinkingEntryPoint;var E=R.linkName;var z=this,c;return _.O(function(M){var N=(new zn).setHeader(z.getHeader(Y));var y=UlH({serviceId:A,linkName:E});N=_.DE(N,2,y);c=_.bu(N,3,P);return M.return(z.makeRequest(z.galServiceClient.deleteLink,c,[1,3],[2,4]))})};
var MSQ=function(R,A){var Y=A.serviceId;var P=A.sessionId;var E=A.dynamicUrlParameters;var z=A.redirectState;var c=A.consentLanguageKeys;var M=A.partnerConfigMinReadTimestamp;var N;return _.O(function(y){var m=(new la).setHeader(R.getHeader(P,E));m=_.o9(m,2,Y);N=_.o9(m,4,z);c!==void 0&&_.o9(N,5,c);M!==void 0&&_.DE(N,6,M);return y.return(R.makeRequest(R.galServiceClient.JSC$19332_finishOAuth,N,[1,3],[2,4]))})};
nB.prototype.getLink=function(R){var A=R.serviceId;var Y=R.sessionId;var P=R.scopes;var E=R.capabilities;var z=R.consistencyKey;var c=R.linkName;var M=this,N;return _.O(function(y){var m=(new xJ).setHeader(M.getHeader(Y)),T=UlH({serviceId:A,scopes:P,capabilities:E,linkName:c});N=_.DE(m,2,T);z!==void 0&&(m=oBo(),m=_.o9(m,2,z),_.DE(N,3,m));return y.return(M.makeRequest(M.galServiceClient.getLink,N,[1,3],[2,4]))})};
var VIN=function(R,A){var Y=A.serviceId;var P=A.sessionId;var E=A.googleScopes;var z=A.consistencyKey;var c;return _.O(function(M){var N=(new ia).setHeader(R.getHeader(P));N=_.o9(N,2,Y);var y=Array.from(E.values());N=_.qg(N,3,y,_.J9);y=oBo();y=_.o9(y,2,z);c=_.DE(N,4,y);return M.return(R.makeRequest(R.galServiceClient.JSC$19332_depositGoogleCredential,c,[1,3],[2,4]))})};
nB.prototype.startLinkingSession=function(R){var A=R.serviceId;var Y=R.sessionId;var P=R.scopes;var E=R.capabilities;var z=R.loginHint;var c=R.supportedFlows;var M=R.completionUrl;var N=R.usePingPong;var y=R.twoWayLinking;var m=R.accountLinkingEntryPoint;var T=R.callerState;var Q=R.consentLanguageKeys;var g=R.googleScopes;var r=R.dataUsageNoticeConfig;var I=R.linkName;var b=R.dynamicUrlParameters;var p=R.partnerConfigMinReadTimestamp;var h=this,L,Z;return _.O(function(w){if(E!==void 0&&P!==void 0)throw Error("jk");
var t=(new c8m).setHeader(h.getHeader(Y,b));L=_.o9(t,2,A);I!==void 0&&_.o9(L,14,I);if(E!==void 0){t=L;var d=Array.from(E.values());_.qg(t,5,d,_.J9)}else P!==void 0&&(t=L,d=Array.from(P.values()),_.qg(t,3,d,_.J9));M!==void 0&&_.o9(L,6,M);N!==void 0&&_.j0(L,15,N);c!==void 0&&(t=L,d=Array.from(c.values()),_.qg(t,4,d,_.df));if(y!==void 0){if(y&&(!g||g.size===0))throw Error("ok");_.j0(L,8,y)}m!==void 0&&_.bu(L,9,m);z!==void 0&&_.o9(L,13,z);T!==void 0&&(t=L,d=(new TextEncoder).encode(T),_.Lf(t,12,_.UA(d,
!1),_.Dz()));Q!==void 0&&_.o9(L,16,Q);p!==void 0&&_.DE(L,18,p);if(r!==void 0&&r.size>0||g!==void 0&&g.size>0)Z=new xA9,g!==void 0&&g.size>0&&(t=Z,d=Array.from(g.values()),_.qg(t,1,d,_.J9)),r!==void 0&&(r.has(0)&&_.pFk(Z,2,_.df,1,_.Yn),r.has(1)&&_.pFk(Z,2,_.df,2,_.Yn)),_.DE(L,17,Z);return w.return(h.makeRequest(h.galServiceClient.startLinkingSession,L,[1],[2]))})};
nB.prototype.getMetadata=function(){var R=this,A,Y;return _.O(function(P){A={};R.useFpa?(A["X-Goog-Api-Key"]=R.apiKey,A["X-Goog-AuthUser"]=R.authUser!==void 0?R.authUser.toString():"0",(Y=_.qlV([]))&&(A.Authorization=Y)):A.Authorization="Bearer "+R.oauthToken;R.locale&&(A["accept-language"]=R.locale);return P.return(A)})};
nB.prototype.makeRequest=function(R,A,Y,P){var E=this,z;return _.O(function(c){if(c.nextAddress==1)return c.yield(E.getMetadata(),2);z=c.yieldResult;$lN(E,Y);return c.return(R.bind(E.galServiceClient)(A,z).finally(function(){$lN(E,P)}))})};
var $lN=function(R,A){R.galSdkEventHandler!==void 0&&A.forEach(function(Y){R.galSdkEventHandler.onEvent(Y)})};
nB.prototype.getHeader=function(R,A){var Y=new YJ;R=_.Lf(Y,2,_.PF(R),0);R=_.bu(R,5,3);A=_.qg(R,8,A,_.J9);this.bucket!==void 0&&_.o9(A,1,this.bucket);return A};
var UlH=function(R){var A=R.serviceId;var Y=R.scopes;var P=R.capabilities;R=R.linkName;if(P!==void 0&&Y!==void 0)throw Error("jk");var E=new CuW;A=_.o9(E,1,A);P!==void 0?(Y=Array.from(P.values()),_.qg(A,5,Y,_.J9)):Y!==void 0&&(Y=Array.from(Y.values()),_.qg(A,3,Y,_.J9));R!==void 0&&_.o9(A,6,R);return A};var Iso=function(R){this.galService=new nB(R.alsDomain,R.apiKey,R.authUser,R.oauthToken,R.bucket,R.locale,R.galSdkEventHandler);this.JSC$19464_galRepository=new YXQ(this.galService)};
Iso.prototype.getService=function(){return this.galService};var X$n=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(X$n,_.lb);var SXW=function(R){var A=new X$n;return _.OF(A,1,R)};
X$n.prototype.setErrorMessage=function(R){return _.IS(this,2,R)};var IuH=[0,_.A8,_.eR,_.A8];var H2=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(H2,_.lb);var KLF=[0,[1,2,3],_.R7,[0,e3o,dmY,-1],_.R7,[0,L8n,-1],_.L7];var WLo=[0,_.tR,1,_.A8,_.eR,-1,1,_.Apk,_.kB,_.A8,-1,KLF];var j8n=[0,_.A8,[0,_.Apk,_.kB,[0,_.eR]],_.wA,[0,_.A8,-1]];var CE=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(CE,_.lb);var bAH=[0,_.eR,_.A8,-2,_.tR,_.A8,_.tR,_.A8,-2,1,_.wA];var fun=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(fun,_.lb);var p$G=[0,_.tR];var FLG=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(FLG,_.lb);var B4G=[0,_.A8,j8n,p$G,bAH,WLo];var CcY=_.Te(FLG,B4G);var auG=[0,axN];var tdN=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(tdN,_.lb);var C6G=[0,[1,3],Ykm,_.A8,Ykm];var BQ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(BQ,_.lb);var hMg=[0,_.A8];var oyY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(oyY,_.lb);var a5=function(R){return _.Wb(R,X$n,2,FU)},kbf=function(R){var A=new oyY;
return _.Ug(A,2,FU,R)},FU=[1,
2];var Gb9=[0,FU,_.R7,hMg,_.R7,IuH,_.dA,C6G,1,_.A8,auG];var ZAY=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(ZAY,_.lb);var w$0=function(R){var A=new ZAY;return _.Ug(A,3,tSn,R)},tSn=[2,
3];var rJ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(rJ,_.lb);var uQY=function(R,A){return _.DE(R,2,A)},eMo=function(R,A){return _.DE(R,8,A)},qXm=function(R,A){return _.DE(R,3,A)};var LLn=[0,_.A8,Gb9,B4G,_.l6,[0,[5,6,7],[0,_.A8,-2],[0,_.tR,_.A8,_.eR],[0,KLF],[0,_.eR,_.A8,-1,_.i6,_.A8],_.R7,[0,[0,_.tR],_.A8,-1],_.R7,[0,[3,4],_.A8,-1,_.R7,[0,[0,_.A8,_.wA]],_.R7,[0,[0,[0,[1,2],_.R7,[0],_.R7,[0]]]]],_.R7,[0]],_.l6,-1,[0,tSn,_.A8,_.R7,hMg,_.R7,IuH,_.dA,C6G,[0,axN]]];var dlF=_.Te(rJ,LLn),Ruf=_.gZ(LLn);var AnN=function(){_.KJ.call(this)};
_.H(AnN,_.KJ);AnN.prototype.init=function(){};
new AnN;var Y2m=_.Z7(["data-"]),PdF=_.Z7(["aria-"]),EPH=_.Z7(["aria-"]),D2=function(R,A){this.isLatencyMeasurementExperiment=R===void 0?!1:R;this.enableDialogA11yFix=A===void 0?!1:A;this.JSC$19493_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.FmS(_.P3.location.href)},oHF=function(R,A){R.onConsentPrimitiveShownCallback=A},zui=function(R,A){return R.overriddenIframeLoadTimeout?R.overriddenIframeLoadTimeout:A!==void 0?A:5E3},GIH=function(R){if(R.prewarmPromise!==void 0)return R.prewarmPromise;
R.prewarmPromise=new Promise(function(A,Y){Uz(R,1);i$m(R,lwF(R,!0),xdY(R));R.iframe?R.prewarmChannel||cnn(R,R.iframe,A):Y(Error("pk"))});
R.prewarmPromise.finally(function(){R.prewarmPromise=void 0});
return R.prewarmPromise};
D2.prototype.showPrimitive=function(){var R=this;if(this.consentPromise!==void 0)return this.consentPromise;var A=Date.now();O$g(this,A);this.consentPromise=new Promise(function(Y,P){Uz(R,0,A);var E=R.isDarkTheme();R.isLatencyMeasurementExperiment||R.initialLoadingStrategy===1||R.initialLoadingStrategy===2||(R.loadingBar||(R.loadingBar=boY(getComputedStyle(document.body).direction==="rtl",E),R.loadingBar.style.position="fixed",R.loadingBar.style.zIndex="15000"),document.body.appendChild(R.loadingBar));
i$m(R,lwF(R),xdY(R));R.iframe?R.channel||MEW(R,R.iframe,Y,P):(sFQ(R),P(Error("pk")))});
this.consentPromise.finally(function(){R.consentPromise=void 0});
return this.consentPromise};
var MEW=function(R,A,Y,P){var E,z;_.O(function(c){switch(c.nextAddress){case 1:Uz(R,3);E=!1;setTimeout(function(){if(!E){sFQ(R);Nb0(R);VEn(R);var M=SXW(7).setErrorMessage("Timeout connecting to iframe");Y(eMo(uQY(new rJ,kbf(M)),w$0(M)))}},zui(R,Jnm(R)));
if(!R.prewarmPromise){c.jumpTo(2);break}_.g2(c,3);return c.yield(R.prewarmPromise,5);case 5:_.us(c,2);break;case 3:_.UT(c),z=SXW(4).setErrorMessage("Error while prewarming."),Y(eMo(uQY(new rJ,kbf(z)),w$0(z)));case 2:R.prewarmChannel&&R.prewarmChannel.send(Ruf(qXm(new rJ,R.consentPrimitiveRequest))),R.channel=_.zs({destination:R.JSC$19493_win,iframe:A,origin:yno(R),channelName:"cpw",onEstablished:function(){E=!0;sFQ(R);R.isLatencyMeasurementExperiment||(R.JSC$19493_previousBodyOverflow=document.body.style.overflow,
R.JSC$19493_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,R.JSC$19493_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",R.enableDialogA11yFix&&window.addEventListener("blur",R.focusChangeListener));var M=R.iframe;M.style.bottom="0";M.style.position="fixed";M.style.right="0";M.style.border="none";M.style.left="0";M.style.top=
"0";M.style.zIndex="5000";M.style.pointerEvents="";M.style.visibility="";R.initialLoadingStrategy===2||R.initialLoadingStrategy===3?Uz(R,4):Uz(R,6);var N;(N=R.onConsentPrimitiveShownCallback)==null||N.call(R)},
onMessage:function(M){M=dlF(M.data);switch(_.SR(M,1)){case 1:Nb0(R);var N=fsW(_.cG(M,_.K0,7));N&&(R.initialLoadingStrategy!==2&&R.initialLoadingStrategy!==3||Uz(R,6,N),Uz(R,5,N));if(N=fsW(_.cG(M,_.K0,6)))Uz(R,7,N),Uz(R,8);var y,m;((y=_.cG(M,oyY,2))==null?void 0:_.gA(y,FU))!==0&&((m=_.cG(M,ZAY,8))==null?void 0:_.gA(m,tSn))!==0||P(Error("qk"));Y(M);break;case 2:VEn(R)}}}),_.XH(c)}})},cnn=function(R,A,Y){R.prewarmChannel=_.zs({destination:R.JSC$19493_win,
iframe:A,origin:yno(R),channelName:"pwcp",onEstablished:function(){Uz(R,2);Y()}})},yno=function(R){var A=_.Kq(R.src).toString();
return A&&A.indexOf("://")<0&&A.indexOf("//")!==0?R.origin:_.FmS(A)},lwF=function(R,A){A=A===void 0?!1:A;
var Y,P=new Map([["origin",R.origin],["hl",(Y=mdW(R))!=null?Y:null]]);A&&P.set("pw","1");A=_.x([["cpr",R.consentPrimitiveRequest.serialize()]]);for(Y=A.next();!Y.done;Y=A.next()){var E=_.x(Y.value);Y=E.next().value;E=E.next().value;P.set(Y,E)}R.isDarkTheme()&&P.set("color_scheme","dark");return _.mM(R.src,P)},sFQ=function(R){R.isLatencyMeasurementExperiment||R.loadingBar&&document.body.removeChild(R.loadingBar)};
D2.prototype.getSrc=function(){var R=_.AN(this.origin),A;var Y=(A=_.cG(this.consentPrimitiveRequest,fun,3))==null?void 0:_.sU(A,1);A="consent.google.com";Y=Y?"/u/"+encodeURIComponent(Y.toString()):"";(R==null?0:R.endsWith("youtube.com"))?A="consent.youtube.com":(R=R==null?void 0:R.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(A="consent.google."+((R[1]?"co.":"")+encodeURIComponent(R[2])));return _.IR("https://"+A+"/signedin"+Y+"/landing")};
var i$m=function(R,A,Y){R.iframe||(R.iframe=document.createElement("iframe"),R.iframe.style.width="100%",R.iframe.style.height="100%",Y!==112496729&&(R.iframe.style.colorScheme="auto"),R.isLatencyMeasurementExperiment&&(R.iframe.style.display="none"),_.Lq(R.iframe,A),R.iframe.setAttribute("jsname","C5o1O"),Tbg(R.iframe),document.body.appendChild(R.iframe))},Tbg=function(R){R.style.bottom="-200vh";
R.style.position="fixed";R.style.right="-200vw";R.style.border="";R.style.left="";R.style.top="";R.style.zIndex="";R.style.pointerEvents="none";R.style.visibility="hidden"},Nb0=function(R){R.iframe&&(R.isLatencyMeasurementExperiment||(R.JSC$19493_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=R.JSC$19493_previousHtmlOverscroll),R.JSC$19493_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=R.JSC$19493_previousBodyOverscroll),R.JSC$19493_previousBodyOverflow!==
void 0&&(document.body.style.overflow=R.JSC$19493_previousBodyOverflow),R.enableDialogA11yFix&&QFW(R,!1)),Tbg(R.iframe))};
D2.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(QFW(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var QFW=function(R,A){var Y,P,E=(Y=R.iframe)==null?void 0:(P=Y.parentElement)==null?void 0:P.children;if(E)for(Y=0;Y<E.length;Y++)P=E[Y],P!==R.iframe&&(A?(P.hasAttribute("aria-hidden")&&_.ie([_.Op(Y2m)],P,"data-old-aria-hidden",P.getAttribute("aria-hidden")),_.ie([_.Op(PdF)],P,"aria-hidden","true")):(P.removeAttribute("aria-hidden"),P.hasAttribute("data-old-aria-hidden")&&(_.ie([_.Op(EPH)],P,"aria-hidden",P.getAttribute("data-old-aria-hidden")),P.removeAttribute("data-old-aria-hidden"))))},Uz=function(R,
A,Y){var P;
(P=R.latencyCallback)==null||P.call(R,{latencyType:A,timestampEpochMillis:Y!=null?Y:Date.now()})};var vPN=function(R,A,Y){D2.call(this,A,Y===void 0?!1:Y);this.consentPrimitiveRequest=R;R=mdW(this);_.J_n(R);this.src=this.getSrc();var P;this.initialLoadingStrategy=(P=_.cG(this.consentPrimitiveRequest,CE,4))==null?void 0:_.SR(P,4)},gPi;
_.H(vPN,D2);var hHm=function(R){var A=_.v("enable_primitive_dialog_aria_hide_siblings");R={request:R,enableDialogA11yFix:A===void 0?!1:A};gPi||(gPi=new vPN(R.request,R.isLatencyMeasurementExperiment||_.SR(R.request,1)===2,R.enableDialogA11yFix));return gPi},mdW=function(R){var A;
return(A=_.cG(R.consentPrimitiveRequest,CE,4))==null?void 0:_.X1(A,1)},O$g=function(R,A){if(!_.mh(R.consentPrimitiveRequest,H2,5)){var Y=R.consentPrimitiveRequest,P=new H2;
_.DE(Y,5,P)}var E;if((E=_.cG(R.consentPrimitiveRequest,H2,5))==null||_.IzS(_.yT(E,8))==null){var z;(z=_.cG(R.consentPrimitiveRequest,H2,5))!=null&&_.r5(z,8,A)}},xdY=function(R){var A;
return(A=_.cG(R.consentPrimitiveRequest,H2,5))==null?void 0:_.sU(A,1)};
vPN.prototype.isDarkTheme=function(){var R;return((R=_.cG(this.consentPrimitiveRequest,CE,4))==null?void 0:_.SR(R,2))===2};
var Jnm=function(R){var A;return((A=_.cG(R.consentPrimitiveRequest,CE,4))==null?void 0:_.sU(A,5))||void 0},VEn=function(R){R.channel=void 0;
R.prewarmChannel=void 0;R.iframe&&(document.body.contains(R.iframe)&&document.body.removeChild(R.iframe),R.iframe=void 0);gPi=void 0},Zii=function(R){return D2.prototype.showPrimitive.call(R).then(function(A){return _.cG(A,oyY,2)})};for(var $J={},nPG=($J[64]="ma",$J[73]="ogb",$J[89]="cr",$J[21]="test",$J[0]="unkn",$J[137]="con",$J[155]="hl",$J[78]="yt",$J[171]="lp",$J[172]="ap",$J[177]="amo",$J[178]="pqe",$J[74]="gg",$J[1]="gm",$J[140]="am",$J[193]="sc",$J),H$Y=_.x(Object.keys(nPG)),rnW=H$Y.next();!rnW.done;rnW=H$Y.next());var Ddm=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(Ddm,_.lb);var UdH=[0,[2,3,4],_.A8,qRo,Ykm,_.L7];var $dn=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H($dn,_.lb);var Xmf=_.Te($dn,[0,_.Yl,_.eR,_.A8,_.eR,_.A8,UdH]);var S20=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(S20,_.lb);S20.prototype.getCommand=function(){return _.SR(this,1)};
var Iwi=function(){var R=new S20;return _.bu(R,1,0)};var Ks0=_.gZ([0,_.Yl,_.eR,[0,_.A8,_.eR,-1]]);var Wsm=new _.H$("s"),jFQ=new _.H$("t"),b$H=new _.H$("u"),fwN=new _.H$("v"),pmY=function(R,A,Y){_.r4.call(this,Wsm);this.mediaKey=R;this.photoUrl=A;this.photoSource=Y};
_.H(pmY,_.r4);var FsY=function(){_.r4.call(this,jFQ)};
_.H(FsY,_.r4);var BbY=function(R){R=R===void 0?!1:R;_.r4.call(this,b$H);this.isError=R};
_.H(BbY,_.r4);var awm=function(){_.r4.call(this,fwN)};
_.H(awm,_.r4);var CdN=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,Gp0=function(R){if(typeof R=="string"){if(R.charAt(0)==".")return huW(R.substr(1));if(R.charAt(0)=="["){var A=CdN.exec(R);R=R.indexOf("=")==-1?void 0:A[3];return oPN(A[1],R)}return kpg(R)}return R},huW=function(R){return function(A){return A.getAttribute&&_.eS(A,R)}},oPN=function(R,A){return function(Y){return A!==void 0?Y.getAttribute&&Y.getAttribute(R)==A:Y.hasAttribute&&Y.hasAttribute(R)}},kpg=function(R){R=R.toUpperCase();
return function(A){return(A=A.tagName)&&A.toUpperCase()==R}},Z$9=function(){return!0};var XJ=function(R,A){this.JSC$19521_key_=R;this.JSC$19521_value_=A},SD=function(R){throw Error("rk`"+R.JSC$19521_key_);
},tEi=function(R,A){return new TypeError("sk`"+A+"`"+R.JSC$19521_key_+"`"+R.JSC$19521_value_+"`"+typeof R.JSC$19521_value_)};
XJ.prototype.string=function(R){return arguments.length==0?wmo(this):uOn(this,R)};
var uOn=function(R,A){var Y;return(Y=eun(R))!=null?Y:A},wmo=function(R){var A=eun(R);
A===null&&SD(R);return A},eun=function(R){var A=R.JSC$19521_value_;
if(A==null)return null;if(typeof A==="string")return A;throw tEi(R,"string");};
XJ.prototype.bool=function(R){if(arguments.length==0){var A=this.optionalBool();A===null&&SD(this)}else{var Y;A=(Y=this.optionalBool())!=null?Y:R}return A};
XJ.prototype.optionalBool=function(){var R=this.JSC$19521_value_;if(R==null)return null;if(typeof R==="boolean")return R;if(typeof R==="string"){R=R.toLowerCase();if(R==="true"||R==="1")return!0;if(R==="false"||R==="0")return!1}throw tEi(this,"boolean");};
XJ.prototype.number=function(R){if(arguments.length==0){var A=q2H(this);A===null&&SD(this)}else A=LsY(this,R);return A};
var LsY=function(R,A){var Y;return(Y=q2H(R))!=null?Y:A},q2H=function(R){var A=R.JSC$19521_value_;
if(A==null)return null;if(typeof A==="number")return A;if(typeof A==="string"){var Y=Number(A);if(!isNaN(Y)&&(Y!==0||A.trim().length!==0))return Y}throw tEi(R,"number");};
XJ.prototype.toString=function(){return wmo(this)};
XJ.prototype.enum=function(R,A){var Y=!0,P=void 0,E;for(E in R){var z=R[E];Y&&(Y=!1,P=typeof z==="number"?LsY(this,A):uOn(this,A));if(z==P)return P}JSON.stringify(R);return P};
XJ.prototype.array=function(R){if(arguments.length==0){var A=ddm(this);A===null&&SD(this);return A}A=ddm(this);return A==null?R:A};
var ddm=function(R){var A=R.JSC$19521_value_;if(A==null)return null;Array.isArray(A)||(typeof A!=="string"?A=[A]:(A=A.trim(),A=A==""?[]:A.split(",").map(function(Y){return Y.trim()})));
return R$H(R,A)},R$H=function(R,A){var Y=R.JSC$19521_key_+"[";
return Array.from(A,function(P,E){return new XJ(Y+E+"]",P)})};
XJ.prototype.object=function(R){var A=this.JSC$19521_value_;if(A==null)return R===void 0&&SD(this),R;if(typeof A==="object"&&A.constructor===Object){R={};var Y=this.JSC$19521_key_+".",P;for(P in A)R[P]=new XJ(Y+P,A[P]);return R}throw tEi(this,"object");};var Ie=function(R){this.list_=AHm(R)},AHm=function(R){if(R instanceof Ie)R=R.list_;
else if(R[0]instanceof Ie){for(var A=new Set,Y=0;Y<R.length;Y++)for(var P=_.x(R[Y].list_),E=P.next();!E.done;E=P.next())A.add(E.value);R=A}return[].concat(_.py(R))};
_.l=Ie.prototype;_.l.each=function(R,A,Y){((Y===void 0?0:Y)?hPN:_.uI)(this.list_,R,A);return this};
_.l.size=function(){return this.list_.length};
_.l.isEmpty=function(){return this.list_.length===0};
_.l.get=function(R){return this.list_[R]||null};
_.l.el=function(){return this.list_[0]||null};
_.l.map=function(R,A){return _.aS(this.list_,R,A)};
_.l.equals=function(R){return this===R||_.uJ(this.list_,R.list_)};
_.l.first=function(){return this.list_.length==0?null:new KB(this.list_[0])};
_.l.last=function(){return this.list_.length==0?null:new KB(this.list_[this.list_.length-1])};
_.l.find=function(R){var A=[];this.each(function(Y){Y=Y.querySelectorAll(String(R));for(var P=0;P<Y.length;P++)A.push(Y[P])});
return new Ie(A)};
_.l.parent=function(){var R=[];this.each(function(A){(A=A.parentElement||null)&&!_.B3(R,A)&&R.push(A)});
return new Ie(R)};
_.l.children=function(){var R=[];this.each(function(A){A=_.a7(A);for(var Y=0;Y<A.length;Y++)R.push(A[Y])});
return new Ie(R)};
_.l.filter=function(R){R=_.zx(this.list_,Gp0(R));return new Ie(R)};
_.l.closest=function(R){var A=[],Y=Gp0(R),P=function(E){return _.dM(E)&&Y(E)};
this.each(function(E){(E=_.GE(E,P,!0))&&!_.B3(A,E)&&A.push(E)});
return new Ie(A)};
_.l.next=function(R){return Y0G(this,_.A9S,R)};
_.l.prev=function(R){return Y0G(this,PuH,R)};
var Y0G=function(R,A,Y){var P=[];var E=Y?Gp0(Y):Z$9;R.each(function(z){(z=A(z))&&E(z)&&P.push(z)});
return new Ie(P)};
Ie.prototype.setClass=function(R){return this.each(function(A){_.u6(A,R)})};
var PU9=function(R,A){return R.each(function(Y){_.Ew(Y,A)})},Ekf=function(R,A){return R.each(function(Y){_.YL(Y,A)})};
Ie.prototype.toggleClass=function(R,A){return A===!0?PU9(this,R):A===!1?Ekf(this,R):this.each(function(Y){_.eS(Y,R)?_.YL(Y,R):_.Ew(Y,R)})};
Ie.prototype.setText=function(R){return this.each(function(A){_.CF(A,R)})};
var z$m=function(R){R.each(function(A){A.removeAttribute("aria-hidden")})};
Ie.prototype.getStyle=function(R){if(this.list_.length>0){var A=this.list_[0],Y=A.style[_.nO(R)];return typeof Y!=="undefined"?Y:A.style[_.VGb(A,R)]||""}};
Ie.prototype.getData=function(R){if(this.list_.length===0)return new XJ(R,null);var A=t0m(this.list_[0],R);return new XJ(R,A)};
Ie.prototype.focus=function(R){try{R?this.el().focus(R):this.el().focus()}catch(A){}return this};
Ie.prototype.click=function(){var R=_.oS(this.el());if(R.createEvent){var A=R.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,R.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(A)}else R=R.createEventObject(),R.clientX=0,R.clientY=0,R.screenX=0,R.screenY=0,R.altKey=!1,R.ctrlKey=!1,R.shiftKey=!1,R.button=0,this.el().fireEvent("onclick",R)};
var W2=function(R,A,Y,P){function E(M,N,y){var m=N;N&&N.parentNode&&(m=N.cloneNode(!0));M(m,y)}
P=P===void 0?!1:P;if(R.list_.length==1){var z=R.list_[0],c=function(M){return A(M,z)};
Y instanceof Ie?Y.each(c,void 0,P):Array.isArray(Y)?(P?hPN:_.uI)(Y,c):c(Y);return R}return R.each(function(M){Y instanceof Ie?Y.each(function(N){E(A,N,M)}):Array.isArray(Y)?_.uI(Y,function(N){E(A,N,M)}):E(A,Y,M)})};
_.l=Ie.prototype;_.l.append=function(R){return W2(this,function(A,Y){A&&Y.appendChild(A)},R)};
_.l.appendTo=function(R){(new Ie([R])).append(this);return this};
_.l.remove=function(){return W2(this,function(R,A){_.UU(A)},null)};
_.l.empty=function(){return W2(this,function(R,A){_.pF(A)},null)};
_.l.after=function(R,A){return W2(this,function(Y,P){Y&&_.Bs(Y,P)},R,!(A===void 0||A))};
_.l.before=function(R){return W2(this,function(A,Y){A&&_.Fw(A,Y)},R)};
_.l.replaceWith=function(R){return W2(this,function(A,Y){A&&_.LSz(A,Y)},R)};
_.l.toggle=function(R){return this.each(function(A){_.dz(A,R)})};
_.l.show=function(){return this.toggle(!0)};
_.l.hide=function(){return this.toggle(!1)};
_.l.trigger=function(R,A,Y,P){return i9i(this,R,A,Y,P)};
var i9i=function(R,A,Y,P,E){return R.each(function(z){_.Hn8(_.oS(z)).triggerWizEventInternal(z,A,Y,P,E)})},KB=function(R,A){R instanceof Ie&&(A=R.list_,R=null);
this.list_=AHm(R!=null?[R]:A)};
_.Pb(KB,Ie);_.l=KB.prototype;_.l.children=function(){return new Ie(Array.prototype.slice.call(_.a7(this.list_[0])))};
_.l.each=function(R,A){R.call(A,this.list_[0],0);return this};
_.l.size=function(){return 1};
_.l.el=function(){return this.list_[0]};
_.l.first=function(){return this};var jD=function(R,A){A=A===void 0?window:A;this.hostId=R;this.JSC$19532_win=A;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$19532_previousHtmlOverscroll=this.JSC$19532_previousBodyOverscroll=this.JSC$19532_previousBodyOverflow="";this.eventTarget=new _.SS;this.JSC$19532_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
cHN=function(R){var A=lGW(lGW(lGW(new x2W(78),"po"),"hppp"),"hhc");
A.authUser=Number(_.a1("SESSION_INDEX","0"));A.colorScheme=R;return A};
jD.prototype.getOrigin=function(){return this.origin?this.origin:_.xP(_.ld(_.id(new _.dq,this.JSC$19532_win.location.protocol),this.JSC$19532_win.location.hostname),this.JSC$19532_win.location.port).toString()};
jD.prototype.getTargetOrigin=function(){return _.xP(_.ld(_.id(new _.dq,this.scheme),this.domain),this.port)};
jD.prototype.preloadIframe=function(R){var A=this;if(this.iframeLoadPromise===void 0){var Y=document.createElement("iframe");this.iframe=Y;opG(Y,R);this.iframeLoadPromise=new Promise(function(P,E){var z=!1,c=function(M){M.stopPropagation();Y.removeEventListener("error",c);Y.removeEventListener("securitypolicyviolation",c);E(Error("tk",{cause:M}))};
Y.addEventListener("error",c);Y.addEventListener("securitypolicyviolation",c);setTimeout(function(){z||E(Error("uk"))},3E4);
O9N(A,Y,function(){z=!0;Y.removeEventListener("error",c);Y.removeEventListener("securitypolicyviolation",c);P()})});
MYQ(this);R=this.getTargetOrigin().toString();Y.setAttribute("allow","camera "+R+"; display-capture "+R);this.parentElement.appendChild(Y)}return this.iframeLoadPromise};
var VYi=function(R,A){var Y,P;return _.O(function(E){if(E.nextAddress==1)return Y=boY(getComputedStyle(R.parentElement).direction==="rtl"),R.parentElement.appendChild(Y),document.activeElement instanceof HTMLElement&&(R.elementToFocusAfterClose=document.activeElement),_.g2(E,2),E.yield(R.preloadIframe(A),4);if(E.nextAddress!=2){R.parentElement.removeChild(Y);R.JSC$19532_previousBodyOverflow=R.parentElement.style.overflow;R.JSC$19532_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
R.JSC$19532_previousBodyOverscroll=R.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";R.parentElement.style.overscrollBehavior="contain";R.parentElement.style.overflow="hidden";var z=R.iframe;z.style.bottom="0";z.style.border="none";z.style.height="100%";z.style.left="0";z.style.position=R.iframePosition;z.style.right="0";z.style.top="0";z.style.width="100%";z.style.zIndex="2202";z.setAttribute("aria-hidden","false");z.setAttribute("aria-modal","true");
R.opened=!0;scN(R);return _.us(E,0)}P=_.UT(E);R.parentElement.removeChild(Y);asF(R.isDarkTheme());Nxi(R,!1);throw Error("vk",{cause:P});})},Nxi=function(R,A){A=A===void 0?!0:A;
R.iframe!==void 0&&(JHo(R),document.documentElement.style.overscrollBehavior=R.JSC$19532_previousHtmlOverscroll,R.parentElement.style.overscrollBehavior=R.JSC$19532_previousBodyOverscroll,R.parentElement.style.overflow=R.JSC$19532_previousBodyOverflow,R.elementToFocusAfterClose!==void 0&&(R.elementToFocusAfterClose.focus(),R.elementToFocusAfterClose=void 0),A?MYQ(R):(R.parentElement.removeChild(R.iframe),R.iframe=void 0,R.iframeLoadPromise=void 0,R.mainChannel=void 0),R.opened=!1)},JHo=function(R){R.backgroundElementsAriaHiddenIsNull&&
(z$m(R.backgroundElementsAriaHiddenIsNull),R.backgroundElementsAriaHiddenIsNull=void 0);
R.backgroundElementsAriaHiddenIsFalse&&(R.backgroundElementsAriaHiddenIsFalse.each(function(A){A.setAttribute("aria-hidden","false")}),R.backgroundElementsAriaHiddenIsFalse=void 0);
R.backgroundElementsWithoutInert&&(R.backgroundElementsWithoutInert.each(function(A){A.removeAttribute("inert")}),R.backgroundElementsWithoutInert=void 0)},scN=function(R){R.backgroundElementsAriaHiddenIsNull=(new KB(R.iframe.parentElement)).children().filter(function(A){return A.getAttribute("aria-hidden")===null&&A!==R.iframe});
R.backgroundElementsAriaHiddenIsNull.each(function(A){A.setAttribute("aria-hidden","true")});
R.backgroundElementsAriaHiddenIsFalse=(new KB(R.iframe.parentElement)).children().filter(function(A){return A.getAttribute("aria-hidden")==="false"&&A!==R.iframe});
R.backgroundElementsAriaHiddenIsFalse.each(function(A){A.setAttribute("aria-hidden","true")});
R.backgroundElementsWithoutInert=(new KB(R.iframe.parentElement)).children().filter(function(A){return!A.hasAttribute("inert")&&A!==R.iframe});
R.backgroundElementsWithoutInert.each(function(A){A.setAttribute("inert","true")})},MYQ=function(R){R=R.iframe;
R.style.bottom="-1000px";R.style.position="fixed";R.style.right="-1000px";R.style.border="";R.style.height="";R.style.left="";R.style.top="";R.style.width="";R.style.zIndex="";R.setAttribute("aria-hidden","true");R.setAttribute("aria-modal","false")};
jD.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var x2W=function(R,A){jD.call(this,nPG[R],A);this.options=[];this.style=""};
_.H(x2W,jD);var yHo=function(R){R.style="youtube";return R},m2g=function(R,A){R.eventTarget.listen(b$H,A);
return R},Txf=function(R,A){R.eventTarget.listen(Wsm,A);
return R},lGW=function(R,A){R.options.push(A);
return R},Qc0=function(R){var A=[R.getOrigin()];
R.ancestorOrigins&&A.push.apply(A,_.py(R.ancestorOrigins));var Y=new _.dq(R.JSC$19532_win.location.href),P=R.startUrl?R.startUrl:R.options.includes("po")?"profile-picture/art":"profile-picture";A=hP(_.cm(R.getTargetOrigin(),P),"origin",A);R.startUrl&&_.LJ(A,"startPath",R.startUrl);R.authUser>0&&_.LJ(A,"authuser",R.authUser);R.pageId!==void 0&&_.LJ(A,"pageId",R.pageId);_.LJ(A,"hostId",R.hostId);R.jsMode!==void 0&&_.LJ(A,"jsmode",R.jsMode);R.rectangleRatio!==void 0&&_.LJ(A,"rectangleRatio",R.rectangleRatio);
R.options.length>0&&_.LJ(A,"opts",R.options.join(","));try{for(var E=_.x(["utm_source","utm_medium","utm_campaign","utm_content"]),z=E.next();!z.done;z=E.next()){var c=z.value;_.q_(Y,c)&&_.LJ(A,c,_.q_(Y,c))}var M,N=(M=R.hl)!=null?M:_.q_(Y,"hl");N!==void 0&&_.LJ(A,"hl",N)}catch(y){if(!(y instanceof URIError))throw y;}R.colorScheme&&_.LJ(A,"theme",R.colorScheme);R.style&&_.LJ(A,"style",R.style);return A},vkW=function(R,A){R.mainChannel=_.zs({destination:R.JSC$19532_win,
iframe:A,origin:R.getTargetOrigin().toString(),channelName:"ow",onMessage:function(Y){Y=Xmf(Y.data);if(A===R.iframe)switch(_.SR(Y,1)){case 1:R.eventTarget.dispatchEvent(new BbY);Nxi(R);break;case 2:R.eventTarget.dispatchEvent(new pmY(_.X1(Y,4),_.X1(Y,2),_.SR(Y,5),_.cG(Y,Ddm,6)));break;case 0:var P;R.eventTarget.dispatchEvent(new FsY(_.X1(Y,2),(P=_.SR(Y,3))!=null?P:0));break;case 3:R.eventTarget.dispatchEvent(new BbY(!0));Nxi(R,!1);break;case 4:R.eventTarget.dispatchEvent(new awm)}}})},O9N=function(R,
A,Y){_.zs({destination:R.JSC$19532_win,
iframe:A,origin:_.xP(_.ld(_.id(new _.dq,R.scheme),R.domain),R.port).toString(),channelName:"owi",onMessage:function(P){A===R.iframe&&(Y!==void 0&&Y(),vkW(R,A),R.opened&&R.mainChannel.send(Ks0(Iwi())),P.reply(),O9N(R,A))}})};
x2W.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?jD.prototype.preloadIframe.call(this,Qc0(this).toString()):this.iframeLoadPromise};
x2W.prototype.openPicker=function(R){var A=this;return _.O(function(Y){if(Y.nextAddress==1)return A.startUrl=R?R:A.options.includes("po")?"profile-picture/art":"profile-picture",Y.yield(VYi(A,Qc0(A).toString()),2);if(A.mainChannel){var P=A.mainChannel,E=P.send;var z=Iwi();z=_.IS(z,2,A.startUrl);E.call(P,Ks0(z))}_.XH(Y)})};var gkQ=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(gkQ,_.lb);_.l=gkQ.prototype;_.l.getSize=function(){return uz(this,1)};
_.l.setSize=function(R){return _.jR(this,1,R)};
_.l.getWidth=function(){return uz(this,12)};
_.l.getHeight=function(){return uz(this,13)};
_.l.setCenterCrop=function(R){return _.y6(this,20,R)};
_.l.getHtml=function(){return _.D0(this,4)};
_.l.getToken=function(){return _.rz(this,24)};
_.l.setToken=function(R){return _.IS(this,24,R)};
_.l.getBackgroundColor=function(){return uz(this,87)};
_.l.hasBackgroundColor=function(){return _.EW(_.yT(this,87))!=null};
_.l.getStoryboardLevel=function(){return uz(this,109)};var ba=function(R){this.JSC$19540_value_=void 0;this.childNodes_={};if(R){var A=_.o0E(R);R=_.zp(R);for(var Y=0;Y<A.length;Y++)this.set(A[Y],R[Y])}};
ba.prototype.set=function(R,A){nko(this,R,A,!1)};
ba.prototype.add=function(R,A){nko(this,R,A,!0)};
var nko=function(R,A,Y,P){for(var E=0;E<A.length;E++){var z=A.charAt(E);R.childNodes_[z]||(R.childNodes_[z]=new ba);R=R.childNodes_[z]}if(P&&R.JSC$19540_value_!==void 0)throw Error("wk`"+A);R.JSC$19540_value_=Y},H9H=function(R,A){for(var Y=0;Y<A.length;Y++)if(R=R.childNodes_[A.charAt(Y)],!R)return;
return R};
ba.prototype.get=function(R){return(R=H9H(this,R))?R.JSC$19540_value_:void 0};
ba.prototype.getValues=function(){var R=[];rH9(this,R);return R};
var rH9=function(R,A){R.JSC$19540_value_!==void 0&&A.push(R.JSC$19540_value_);for(var Y in R.childNodes_)rH9(R.childNodes_[Y],A)};
ba.prototype.getKeys=function(R){var A=[];if(R){for(var Y=this,P=0;P<R.length;P++){var E=R.charAt(P);if(!Y.childNodes_[E])return[];Y=Y.childNodes_[E]}D2F(Y,R,A)}else D2F(this,"",A);return A};
var D2F=function(R,A,Y){R.JSC$19540_value_!==void 0&&Y.push(A);for(var P in R.childNodes_)D2F(R.childNodes_[P],A+P,Y)};
_.l=ba.prototype;_.l.containsKey=function(R){return this.get(R)!==void 0};
_.l.containsValue=function(R){if(this.JSC$19540_value_===R)return!0;for(var A in this.childNodes_)if(this.childNodes_[A].containsValue(R))return!0;return!1};
_.l.clear=function(){this.childNodes_={};this.JSC$19540_value_=void 0};
_.l.remove=function(R){for(var A=this,Y=[],P=0;P<R.length;P++){var E=R.charAt(P);if(!A.childNodes_[E])throw Error("xk`"+R);Y.push([A,E]);A=A.childNodes_[E]}R=A.JSC$19540_value_;for(delete A.JSC$19540_value_;Y.length>0;)if(P=Y.pop(),A=P[0],P=P[1],A.childNodes_[P].isEmpty())delete A.childNodes_[P];else break;return R};
_.l.clone=function(){return new ba(this)};
_.l.getCount=function(){return l0Y(this.getValues())};
_.l.isEmpty=function(){return this.JSC$19540_value_===void 0&&_.BO.isEmpty(this.childNodes_)};var wrm=function(){if(!U2g){var R=U2g=new ba,A;for(A in $29)R.add(A,$29[A])}},U2g,fB=function(R,A){this.types=R;
this.setters=A},$29={a:new fB([3,
0],[function(R,A){_.y6(R,21,A)},
function(R,A){_.jR(R,56,A)}]),
al:new fB([3],[function(R,A){_.y6(R,74,A)}]),
b:new fB([3,0],[function(R,A){_.y6(R,23,A)},
function(R,A){_.jR(R,38,A)}]),
ba:new fB([0],[function(R,A){_.jR(R,85,A)}]),
bc:new fB([0],[function(R,A){_.jR(R,87,A)}]),
br:new fB([0],[function(R,A){_.jR(R,86,A)}]),
c:new fB([3,0],[function(R,A){_.y6(R,2,A)},
function(R,A){_.jR(R,39,A)}]),
cc:new fB([3],[function(R,A){_.y6(R,51,A)}]),
ci:new fB([3],[function(R,A){_.y6(R,32,A)}]),
ckm:new fB([3],[function(R,A){_.y6(R,104,A)}]),
cp:new fB([0],[function(R,A){_.jR(R,92,A)}]),
cr:new fB([3],[function(R,A){_.y6(R,108,A)}]),
cv:new fB([0],[function(R,A){_.jR(R,94,A)}]),
d:new fB([3],[function(R,A){_.y6(R,3,A)}]),
dc:new fB([5],[function(R,A){_.IS(R,99,A)}]),
df:new fB([3],[function(R,A){_.y6(R,80,A)}]),
dv:new fB([3],[function(R,A){_.y6(R,90,A)}]),
e:new fB([0],[function(R,A){_.jR(R,15,A)}]),
em:new fB([0],[function(R,A){_.jR(R,107,A)}]),
f:new fB([4],[function(R,A){_.IS(R,16,A)}]),
fg:new fB([3],[function(R,A){_.y6(R,34,A)}]),
fh:new fB([3],[function(R,A){_.y6(R,30,A)}]),
fm:new fB([3],[function(R,A){_.y6(R,84,A)}]),
fo:new fB([2],[function(R,A){_.Mz(R,79,_.GN(A))}]),
ft:new fB([3],[function(R,A){_.y6(R,50,A)}]),
fv:new fB([3],[function(R,A){_.y6(R,31,A)}]),
g:new fB([3],[function(R,A){_.y6(R,14,A)}]),
gce:new fB([4],[function(R,A){_.IS(R,112,A)}]),
gd:new fB([3],[function(R,A){_.y6(R,83,A)}]),
gm:new fB([3],[function(R,A){_.y6(R,105,A)}]),
h:new fB([3,0],[function(R,A){_.y6(R,4,A)},
function(R,A){_.jR(R,13,A)}]),
i:new fB([3],[function(R,A){_.y6(R,22,A)}]),
ic:new fB([0],[function(R,A){_.jR(R,71,A)}]),
id:new fB([3],[function(R,A){_.y6(R,70,A)}]),
il:new fB([3],[function(R,A){_.y6(R,96,A)}]),
ip:new fB([3],[function(R,A){_.y6(R,54,A)}]),
iv:new fB([0],[function(R,A){_.r5(R,75,A)}]),
j:new fB([1],[function(R,A){A=A==null?A:Grj(A);_.Mz(R,29,A)}]),
k:new fB([3,0],[function(R,A){_.y6(R,17,A)},
function(R,A){_.jR(R,42,A)}]),
l:new fB([0],[function(R,A){_.jR(R,44,A)}]),
lf:new fB([3],[function(R,A){_.y6(R,65,A)}]),
lo:new fB([3],[function(R,A){_.y6(R,97,A)}]),
m:new fB([0],[function(R,A){_.jR(R,63,A)}]),
md:new fB([3],[function(R,A){_.y6(R,91,A)}]),
mm:new fB([4],[function(R,A){_.IS(R,81,A)}]),
mo:new fB([3],[function(R,A){_.y6(R,73,A)}]),
mp:new fB([0],[function(R,A){_.jR(R,115,A)}]),
mv:new fB([3],[function(R,A){_.y6(R,66,A)}]),
n:new fB([3],[function(R,A){R.setCenterCrop(A)}]),
nc:new fB([3],[function(R,A){_.y6(R,55,A)}]),
nd:new fB([3],[function(R,A){_.y6(R,53,A)}]),
ng:new fB([3],[function(R,A){_.y6(R,95,A)}]),
ngm:new fB([3],[function(R,A){_.y6(R,106,A)}]),
no:new fB([3],[function(R,A){_.y6(R,37,A)}]),
ns:new fB([3],[function(R,A){_.y6(R,40,A)}]),
nt0:new fB([4],[function(R,A){_.IS(R,36,A)}]),
ntm:new fB([3],[function(R,A){_.y6(R,114,A)}]),
nu:new fB([3],[function(R,A){_.y6(R,46,A)}]),
nw:new fB([3],[function(R,A){_.y6(R,48,A)}]),
o:new fB([1,3],[function(R,A){A=A==null?A:Grj(A);_.Mz(R,7,A)},
function(R,A){_.y6(R,27,A)}]),
p:new fB([3,0],[function(R,A){_.y6(R,19,A)},
function(R,A){_.jR(R,43,A)}]),
pa:new fB([3],[function(R,A){_.y6(R,61,A)}]),
pc:new fB([0],[function(R,A){_.jR(R,88,A)}]),
pd:new fB([3],[function(R,A){_.y6(R,60,A)}]),
pf:new fB([3],[function(R,A){_.y6(R,67,A)}]),
pg:new fB([3],[function(R,A){_.y6(R,72,A)}]),
pi:new fB([2],[function(R,A){_.Mz(R,76,_.GN(A))}]),
pp:new fB([3],[function(R,A){_.y6(R,52,A)}]),
pt:new fB([4],[function(R,A){_.IS(R,111,A)}]),
q:new fB([4],[function(R,A){_.IS(R,28,A)}]),
r:new fB([3,0],[function(R,A){_.y6(R,6,A)},
function(R,A){_.jR(R,26,A)}]),
ra:new fB([3],[function(R,A){_.y6(R,103,A)}]),
rf:new fB([3],[function(R,A){_.y6(R,100,A)}]),
rg:new fB([3],[function(R,A){_.y6(R,59,A)}]),
rh:new fB([3],[function(R,A){_.y6(R,49,A)}]),
rj:new fB([3],[function(R,A){_.y6(R,57,A)}]),
ro:new fB([2],[function(R,A){_.Mz(R,78,_.GN(A))}]),
rp:new fB([3],[function(R,A){_.y6(R,58,A)}]),
rw:new fB([3],[function(R,A){_.y6(R,35,A)}]),
rwa:new fB([3],[function(R,A){_.y6(R,64,A)}]),
rwu:new fB([3],[function(R,A){_.y6(R,41,A)}]),
s:new fB([3,0],[function(R,A){_.y6(R,33,A)},
function(R,A){R.setSize(A)}]),
sb:new fB([0],[function(R,A){_.jR(R,110,A)}]),
sc:new fB([0],[function(R,A){_.jR(R,89,A)}]),
sg:new fB([3],[function(R,A){_.y6(R,82,A)}]),
sl:new fB([0],[function(R,A){_.jR(R,109,A)}]),
sm:new fB([3],[function(R,A){_.y6(R,93,A)}]),
t:new fB([4],[function(R,A){R.setToken(A)}]),
tm:new fB([3],[function(R,A){_.y6(R,113,A)}]),
u:new fB([3],[function(R,A){_.y6(R,18,A)}]),
ut:new fB([3],[function(R,A){_.y6(R,45,A)}]),
v:new fB([0],[function(R,A){_.jR(R,62,A)}]),
vb:new fB([0],[function(R,A){_.r5(R,68,A)}]),
vf:new fB([4],[function(R,A){_.IS(R,102,A)}]),
vl:new fB([0],[function(R,A){_.r5(R,69,A)}]),
vm:new fB([3],[function(R,A){_.y6(R,98,A)}]),
w:new fB([0],[function(R,A){_.jR(R,12,A)}]),
x:new fB([0],[function(R,A){_.jR(R,9,A)}]),
y:new fB([0],[function(R,A){_.jR(R,10,A)}]),
ya:new fB([2],[function(R,A){_.Mz(R,77,_.GN(A))}]),
z:new fB([0],[function(R,A){_.jR(R,11,A)}])};
wrm.prototype.parse=function(R){var A=new gkQ,Y=new gkQ;if(R=="")R=!0;else{R=R.split("-");for(var P=!0,E=0;E<R.length;E++){var z=R[E];if(z.length==0)P=!1;else{var c=z,M=!1;var N=c;var y=c.charAt(0);y!=y.toLowerCase()&&(M=!0,N=c.charAt(0).toLowerCase()+c.substring(1));var m=U2g;for(y=1;y<=N.length;++y){var T=m,Q=N.substring(0,y);if(Q.length==0?T.isEmpty():!H9H(T,Q))break}N=y==1?null:(N=m.get(N.substring(0,y-1)))?{option:c.substring(0,y-1),value:c.substring(y-1),signed:M,attributes:N}:null;if(N){c=
[];M=[];y=!1;for(m=0;m<N.attributes.types.length;m++){T=N.attributes.types[m];var g=N.value;Q=E;if(N.signed&&T==1)for(var r=g.length;r<12&&Q<R.length-1;)g+="-"+R[Q+1],r=g.length,++Q;else if(T==2)for(;Q<R.length-1&&R[Q+1].match(/^[\d\.]/);)g+="-"+R[Q+1],++Q;r=N.attributes.setters[m];g=XP9(this,T)(N.option,g,A,Y,r);if(g===null){y=!0;E=Q;break}else c.push(T),M.push(g)}if(!y)for(N=0;N<M.length;N++)m=c[N],g=M[N],S0W(this,m)(z,g);P=P&&y}else P=!1}}R=P}return new IGW(A,Y,R)};
var pB=function(R,A,Y,P,E,z){E(Y,A);R=R.charAt(0);z=z(R==R.toUpperCase());E(P,z)};
_.l=wrm.prototype;_.l.parseAndSetIntOption_=function(R,A,Y,P,E){if(A=="")return 0;isFinite(A)&&(A=String(A));A=typeof A==="string"?/^\s*-?0x/i.test(A)?parseInt(A,16):parseInt(A,10):NaN;if(isNaN(A))return 1;pB(R,A,Y,P,E,Number);return null};
_.l.logIntParseError_=function(){};
_.l.parseAndSetFloatOption_=function(R,A,Y,P,E){if(A=="")return 0;var z=Number(A);A=z==0&&_.c3(A)?NaN:z;if(isNaN(A))return 1;pB(R,A,Y,P,E,Number);return null};
_.l.logFloatParseError_=function(){};
_.l.parseAndSetBoolOption_=function(R,A,Y,P,E){if(A!="")return 2;pB(R,!0,Y,P,E,Boolean);return null};
_.l.logBoolParseError_=function(){};
_.l.parseAndSetStringOption_=function(R,A,Y,P,E){if(A=="")return 0;pB(R,A,Y,P,E,function(z){return z?"1":""});
return null};
_.l.logStringParseError_=function(){};
_.l.parseAndSetUint64Base64Option_=function(R,A,Y,P,E){if(A=="")return 0;pB(R,A,Y,P,E,function(z){return z?1:0});
return null};
var XP9=function(R,A){switch(A){case 0:return(0,_.Wv)(R.parseAndSetIntOption_,R);case 2:return(0,_.Wv)(R.parseAndSetFloatOption_,R);case 3:return(0,_.Wv)(R.parseAndSetBoolOption_,R);case 4:return(0,_.Wv)(R.parseAndSetStringOption_,R);case 1:return(0,_.Wv)(R.parseAndSetUint64Base64Option_,R);default:return function(){}}},S0W=function(R,A){switch(A){case 0:return(0,_.Wv)(R.logIntParseError_,R);
case 2:return(0,_.Wv)(R.logFloatParseError_,R);case 3:return(0,_.Wv)(R.logBoolParseError_,R);case 4:case 1:return(0,_.Wv)(R.logStringParseError_,R);default:return function(){}}},IGW=function(R,A,Y){this.valueProto_=R;
this.signatureFlagProto_=A;this.JSC$19552_valid_=Y};
IGW.prototype.isValid=function(){return this.JSC$19552_valid_};var k99=function(R){this.JSC$19553_parser_=null;this.JSC$19553_components_=[];this.JSC$19553_parsedOptions_=null;KwW(this,R)},Wwj=function(R){R.JSC$19553_parser_==null&&(R.JSC$19553_parser_=new wrm);
return R.JSC$19553_parser_},KwW=function(R,A){R.JSC$19553_parsedOptions_=A?typeof A==="string"?Wwj(R).parse(A):A:Wwj(R).parse("")},FJ=function(R,A){return R==A?!1:!0};
_.l=k99.prototype;_.l.JSC$19555_setCrop=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,_.D0(Y,2),_.D0(A.signatureFlagProto_,2))&&_.y6(Y,2,R);return this};
_.l.JSC$19555_setCircleCrop=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,wO(Y,51),wO(A.signatureFlagProto_,51))&&_.y6(Y,51,R);return this};
_.l.JSC$19555_setImageCrop=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,wO(Y,32),wO(A.signatureFlagProto_,32))&&_.y6(Y,32,R);return this};
_.l.JSC$19555_setHeight=function(R){var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,Y.getHeight(),A.signatureFlagProto_.getHeight())&&_.jR(Y,13,R);return this};
_.l.setCenterCrop=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,_.D0(Y,20),_.D0(A.signatureFlagProto_,20))&&Y.setCenterCrop(R);return this};
_.l.JSC$19555_setSmartCrop=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,_.D0(Y,19),_.D0(A.signatureFlagProto_,19))&&_.y6(Y,19,R);return this};
_.l.JSC$19555_setPad=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,wO(Y,60),wO(A.signatureFlagProto_,60))&&_.y6(Y,60,R);return this};
_.l.JSC$19555_setSmartCropUseFace=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,_.D0(Y,67),_.D0(A.signatureFlagProto_,67))&&_.y6(Y,67,R);return this};
_.l.JSC$19555_setSmartCropNoClip=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,_.D0(Y,52),_.D0(A.signatureFlagProto_,52))&&_.y6(Y,52,R);return this};
_.l.setSize=function(R){var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,Y.getSize(),A.signatureFlagProto_.getSize())&&Y.setSize(R);return this};
_.l.setToken=function(R){R=R||void 0;var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,Y.getToken(),A.signatureFlagProto_.getToken())&&Y.setToken(R);return this};
_.l.JSC$19555_setWidth=function(R){var A=this.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(R,Y.getWidth(),A.signatureFlagProto_.getWidth())&&_.jR(Y,12,R);return this};
_.l.clearOptions=function(){KwW(this,"");return this};
_.l.build=function(){this.JSC$19553_components_.length=0;var R=this.JSC$19553_parsedOptions_,A=R.valueProto_;R=R.signatureFlagProto_;B2(this,"s",A.getSize(),R.getSize());B2(this,"w",A.getWidth(),R.getWidth());ae(this,"c",_.D0(A,2),_.D0(R,2));ae(this,"d",_.D0(A,3),_.D0(R,3));B2(this,"h",A.getHeight(),R.getHeight());ae(this,"s",wO(A,33),wO(R,33));ae(this,"h",A.getHtml(),R.getHtml());ae(this,"p",_.D0(A,19),_.D0(R,19));ae(this,"pp",_.D0(A,52),_.D0(R,52));ae(this,"pf",_.D0(A,67),_.D0(R,67));ae(this,"n",
_.D0(A,20),_.D0(R,20));B2(this,"r",uz(A,26),uz(R,26));ae(this,"r",_.D0(A,6),_.D0(R,6));ae(this,"o",wO(A,27),wO(R,27));var Y=_.rA(A,7,_.JR);CB(this,"o",Y,_.rA(R,7,_.JR));Y=_.rA(A,29,_.JR);CB(this,"j",Y,_.rA(R,29,_.JR));B2(this,"x",uz(A,9),uz(R,9));B2(this,"y",uz(A,10),uz(R,10));B2(this,"z",uz(A,11),uz(R,11));ae(this,"g",_.D0(A,14),_.D0(R,14));B2(this,"e",uz(A,15),uz(R,15));CB(this,"f",_.rz(A,16),_.rz(R,16));ae(this,"k",wO(A,17),wO(R,17));ae(this,"u",wO(A,18),!0);ae(this,"ut",wO(A,45),!0);ae(this,"i",
wO(A,22),!0);ae(this,"a",wO(A,21),wO(R,21));ae(this,"b",_.D0(A,23),_.D0(R,23));B2(this,"b",uz(A,38),uz(R,38));B2(this,"c",uz(A,39),uz(R,39),16,8);CB(this,"q",_.rz(A,28),_.rz(R,28));ae(this,"fh",wO(A,30),wO(R,30));ae(this,"fv",wO(A,31),wO(R,31));ae(this,"fg",_.D0(A,34),_.D0(R,34));ae(this,"ci",wO(A,32),wO(R,32));CB(this,"t",A.getToken(),R.getToken());CB(this,"nt0",_.rz(A,36),_.rz(R,36));ae(this,"rw",_.D0(A,35),_.D0(R,35));ae(this,"rwu",_.D0(A,41),_.D0(R,41));ae(this,"rwa",_.D0(A,64),_.D0(R,64));ae(this,
"nw",_.D0(A,48),_.D0(R,48));ae(this,"rh",_.D0(A,49),_.D0(R,49));ae(this,"no",_.D0(A,37),_.D0(R,37));ae(this,"ns",wO(A,40),wO(R,40));B2(this,"k",uz(A,42),uz(R,42));B2(this,"p",uz(A,43),uz(R,43));B2(this,"l",uz(A,44),uz(R,44));B2(this,"v",uz(A,62),uz(R,62));ae(this,"nu",wO(A,46),wO(R,46));ae(this,"ft",wO(A,50),wO(R,50));ae(this,"cc",wO(A,51),wO(R,51));ae(this,"nd",wO(A,53),wO(R,53));ae(this,"ip",wO(A,54),wO(R,54));ae(this,"nc",wO(A,55),wO(R,55));B2(this,"a",uz(A,56),uz(R,56));ae(this,"rj",wO(A,57),
wO(R,57));ae(this,"rp",wO(A,58),wO(R,58));ae(this,"rg",wO(A,59),wO(R,59));ae(this,"pd",wO(A,60),wO(R,60));ae(this,"pa",wO(A,61),wO(R,61));B2(this,"m",uz(A,63),uz(R,63));B2(this,"vb",ef(A,68),ef(R,68));B2(this,"vl",ef(A,69),ef(R,69));ae(this,"lf",wO(A,65),wO(R,65));ae(this,"mv",wO(A,66),wO(R,66));ae(this,"id",wO(A,70),wO(R,70));B2(this,"ic",uz(A,71),!0);ae(this,"pg",_.D0(A,72),_.D0(R,72));ae(this,"mo",wO(A,73),wO(R,73));ae(this,"al",wO(A,74),wO(R,74));B2(this,"iv",ef(A,75),ef(R,75));B2(this,"pi",q$(A,
76),q$(R,76));B2(this,"ya",q$(A,77),q$(R,77));B2(this,"ro",q$(A,78),q$(R,78));B2(this,"fo",q$(A,79),q$(R,79));ae(this,"df",wO(A,80),wO(R,80));CB(this,"mm",_.rz(A,81),_.rz(R,81));ae(this,"sg",wO(A,82),wO(R,82));ae(this,"gd",wO(A,83),wO(R,83));ae(this,"fm",wO(A,84),wO(R,84));B2(this,"ba",uz(A,85),uz(R,85));B2(this,"br",uz(A,86),uz(R,86));B2(this,"bc",A.getBackgroundColor(),R.getBackgroundColor(),16,8);B2(this,"pc",uz(A,88),uz(R,88),16,8);B2(this,"sc",uz(A,89),uz(R,89),16,8);ae(this,"dv",wO(A,90),wO(R,
90));ae(this,"md",wO(A,91),wO(R,91));B2(this,"cp",uz(A,92),uz(R,92));ae(this,"sm",wO(A,93),wO(R,93));B2(this,"cv",uz(A,94),uz(R,94));ae(this,"ng",wO(A,95),wO(R,95));ae(this,"il",wO(A,96),wO(R,96));ae(this,"lo",wO(A,97),wO(R,97));ae(this,"vm",wO(A,98),wO(R,98));CB(this,"dc",_.rz(A,99),_.rz(R,99));ae(this,"rf",wO(A,100),wO(R,100));CB(this,"vf",_.rz(A,102),_.rz(R,102));ae(this,"ra",_.D0(A,103),_.D0(R,103));ae(this,"ckm",wO(A,104),wO(R,104));ae(this,"gm",wO(A,105),wO(R,105));ae(this,"ngm",wO(A,106),wO(R,
106));B2(this,"em",uz(A,107),uz(R,107));ae(this,"cr",wO(A,108),wO(R,108));B2(this,"sl",A.getStoryboardLevel(),R.getStoryboardLevel());B2(this,"sb",uz(A,110),uz(R,110));CB(this,"pt",_.rz(A,111),_.rz(R,111));CB(this,"gce",_.rz(A,112),_.rz(R,112));ae(this,"tm",wO(A,113),wO(R,113));ae(this,"ntm",wO(A,114),wO(R,114));B2(this,"mp",uz(A,115),uz(R,115));return this.JSC$19553_components_.join("-")};
var B2=function(R,A,Y,P,E,z){if(Y!=null){var c=E==void 0||E!=10&&E!=16?10:E;Y=Number(Y).toString(c);E=new xTo;E.append(c==16?"0x":"");c=E.append;z==void 0?z="":(z-=Y.length,z=z<=0?"":(0,_.Fl8)("0",z));c.call(E,z);E.append(Y);jc9(R,A,E.toString(),!!Number(P))}},ae=function(R,A,Y,P){Y&&jc9(R,A,"",!!P)},CB=function(R,A,Y,P){Y&&jc9(R,A,String(Y),!!Number(P))},jc9=function(R,A,Y,P){P&&(A=A.charAt(0).toUpperCase()+A.substring(1));
R.JSC$19553_components_.push(A+Y)};_.Pb(zB,k99);_.l=zB.prototype;_.l.JSC$19555_setCrop=function(R){R&&hF(this);return zB.superClass_.JSC$19555_setCrop.call(this,R)};
_.l.JSC$19555_setHeight=function(R){R=R==null||R<0?void 0:R;R!=null&&this.setSize();return zB.superClass_.JSC$19555_setHeight.call(this,R)};
_.l.JSC$19555_setImageCrop=function(R){R&&hF(this);return zB.superClass_.JSC$19555_setImageCrop.call(this,R)};
_.l.JSC$19555_setCircleCrop=function(R){R&&hF(this);return zB.superClass_.JSC$19555_setCircleCrop.call(this,R)};
_.l.setSize=function(R){_.ZI(R)&&(R=Math.max(R.width,R.height));R=R==null||R<0?void 0:R;R!=null&&(this.JSC$19555_setWidth(),this.JSC$19555_setHeight());return zB.superClass_.setSize.call(this,R)};
_.l.JSC$19555_setSmartCrop=function(R){R&&hF(this);return zB.superClass_.JSC$19555_setSmartCrop.call(this,R)};
_.l.JSC$19555_setSmartCropNoClip=function(R){R&&hF(this);return zB.superClass_.JSC$19555_setSmartCropNoClip.call(this,R)};
_.l.JSC$19555_setSmartCropUseFace=function(R){R&&hF(this);return zB.superClass_.JSC$19555_setSmartCropUseFace.call(this,R)};
_.l.setCenterCrop=function(R){R&&hF(this);return zB.superClass_.setCenterCrop.call(this,R)};
_.l.JSC$19555_setPad=function(R){R&&hF(this);return zB.superClass_.JSC$19555_setPad.call(this,R)};
_.l.JSC$19555_setWidth=function(R){R=R==null||R<0?void 0:R;R!=null&&this.setSize();return zB.superClass_.JSC$19555_setWidth.call(this,R)};
var b9n=function(R){R.clearOptions();var A=R.JSC$19553_parsedOptions_,Y=A.valueProto_;FJ(!0,_.D0(Y,3),_.D0(A.signatureFlagProto_,3))&&_.y6(Y,3,!0);return R},hF=function(R){R.setCenterCrop();
R.JSC$19555_setCircleCrop();R.JSC$19555_setCrop();R.JSC$19555_setImageCrop();R.JSC$19555_setPad();R.JSC$19555_setSmartCrop();R.JSC$19555_setSmartCropNoClip();R.JSC$19555_setSmartCropUseFace()};
zB.prototype.build=function(){var R=this.JSC$19553_parsedOptions_.valueProto_;wO(R,18)||wO(R,45)?R.getSize()||this.setSize(0):(R=this.JSC$19553_parsedOptions_.valueProto_,R.getSize()||R.getWidth()||R.getHeight()||(this.setSize(),this.JSC$19555_setHeight(),this.JSC$19555_setWidth(),hF(this)));return zB.superClass_.build.call(this)};var fGm=/^[^\/]*\/\//,oe=function(R,A){A=A===void 0?!1:A;this.original_=R;this.originalPrefix_="";(R=this.original_.match(fGm))&&R[0]?(this.originalPrefix_=R[0],R=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):R="http://"+this.original_;this.uri_=_.eK(R,!0);this.isFreeformUrl_=A;this.JSC$19559_valid_=!0;this.obfuscated_=!1},pPN=function(R,A){R.JSC$19561_pathPrefix_=R.JSC$19561_pathPrefix_?R.JSC$19561_pathPrefix_+("/"+A):A},kJ=function(R){if(R.JSC$19561_components_==
void 0){var A=R.uri_.getPath().substring(1);
R.JSC$19561_pathPrefix_=null;if(R.isFreeformUrl_){R.JSC$19561_components_=[];if((A.match(/=/g)||[]).length>1)return R.JSC$19559_valid_=!1,R.JSC$19561_components_;var Y=A.indexOf("=");Y!=-1?(R.JSC$19561_components_.push(A.substr(0,Y)),R.JSC$19561_components_.push(A.substr(Y+1))):R.JSC$19561_components_.push(A);return R.JSC$19561_components_}R.JSC$19561_components_=A.split("/");A=R.JSC$19561_components_.length;A>2&&R.JSC$19561_components_[0]=="u"&&(pPN(R,R.JSC$19561_components_[0]+"/"+R.JSC$19561_components_[1]),
R.JSC$19561_components_.shift(),R.JSC$19561_components_.shift(),A-=2);if(A==0||A==4||A>7)return R.JSC$19559_valid_=!1,R.JSC$19561_components_;if(A==2)pPN(R,R.JSC$19561_components_[0]);else if(R.JSC$19561_components_[0]=="image")pPN(R,R.JSC$19561_components_[0]);else if(A==7||A==3)return R.JSC$19559_valid_=!1,R.JSC$19561_components_;if(A<=3){R.obfuscated_=!0;A==3&&(pPN(R,R.JSC$19561_components_[1]),R.JSC$19561_components_.shift(),--A);--A;Y=R.JSC$19561_components_[A];var P=Y.indexOf("=");P!=-1&&(R.JSC$19561_components_[A]=
Y.substr(0,P),R.JSC$19561_components_.push(Y.substr(P+1)))}}return R.JSC$19561_components_};
oe.prototype.isValid=function(){kJ(this);return this.JSC$19559_valid_};
oe.prototype.isObfuscated=function(){kJ(this);return this.obfuscated_};
var FwG=function(R){kJ(R);return R.isFreeformUrl_},Gn=function(R){kJ(R);
R.JSC$19561_pathPrefix_==void 0&&(R.JSC$19561_pathPrefix_=null);return R.JSC$19561_pathPrefix_},BxG=function(R){switch(kJ(R).length){case 7:return!0;
case 6:return Gn(R)==null;case 5:return!1;case 3:return!0;case 2:return Gn(R)==null;case 1:return!1;default:return!1}},Z2=function(R,A){if(FwG(R))a:{switch(A){case 7:A=0;
break;case 4:if(!BxG(R)){R=null;break a}A=1;break;default:R=null;break a}R=kJ(R)[A]}else if(R.isObfuscated())a:{var Y=Gn(R)!=null?1:0;switch(A){case 6:A=Y;break;case 4:if(!BxG(R)){R=null;break a}A=1+Y;break;default:R=null;break a}R=kJ(R)[A]}else a:{Y=Gn(R)!=null?1:0;switch(A){case 0:A=Y;break;case 1:A=1+Y;break;case 2:A=2+Y;break;case 3:A=3+Y;break;case 4:if(!BxG(R)){R=null;break a}A=4+Y;break;case 5:A=BxG(R)?1:0;A=4+Y+A;break;default:R=null;break a}R=kJ(R)[A]}return R};
oe.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Z2(this,4));return this.options_};var tIf=function(){};
tIf.prototype.parse=function(R,A){return new G9W(R,A===void 0?!1:A)};
var G9W=function(R,A){oe.call(this,R,A===void 0?!1:A)};
_.H(G9W,oe);_.Pb(iz,zB);var ZoY;iz.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
iz.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var R=iz.superClass_.build.call(this),A=[];Gn(this.parsedImageUrl_)!=null&&A.push(Gn(this.parsedImageUrl_));var Y=FwG(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var P=this.parsedImageUrl_;P.obfuscatedData_==void 0&&(P.obfuscatedData_=Z2(P,6));A.push(P.obfuscatedData_+(R?"="+R:""))}else if(Y){P=A.push;var E=this.parsedImageUrl_;E.freeformUrlPath_===void 0&&(E.freeformUrlPath_=Z2(E,
7));P.call(A,E.freeformUrlPath_);R&&A.push(R)}else P=A.push,E=this.parsedImageUrl_,E.obfuscatedGaiaId_==void 0&&(E.obfuscatedGaiaId_=Z2(E,0)),P.call(A,E.obfuscatedGaiaId_),P=A.push,E=this.parsedImageUrl_,E.photoId_==void 0&&(E.photoId_=Z2(E,1)),P.call(A,E.photoId_),P=A.push,E=this.parsedImageUrl_,E.imageVersion_==void 0&&(E.imageVersion_=Z2(E,2)),P.call(A,E.imageVersion_),P=A.push,E=this.parsedImageUrl_,E.signature_==void 0&&(E.signature_=Z2(E,3)),P.call(A,E.signature_),R&&A.push(R),R=A.push,P=this.parsedImageUrl_,
P.filename_==void 0&&(P.filename_=Z2(P,5)),R.call(A,P.filename_);A=Y?A.join("="):A.join("/");A=_.eK(this.protocolPrefix_+this.JSC$19567_domain_+"/"+A+(this.JSC$19567_query_?"?"+this.JSC$19567_query_:"")).toString();A.startsWith("%3a//")&&(A=A.replace("%3a//","://"));return A};var aGj=_.Z7(["viewBox"]),CUn=_.Z7(["width"]),h$m=_.Z7(["height"]),okn=_.Z7(["fill"]),kfW=_.Z7(["id"]),GfG=_.Z7(["x"]),Z9m=_.Z7(["y"]);uIY.prototype.getLength=function(){return this.parsedData.length};
uIY.prototype.write=function(R){for(var A=0,Y=this.parsedData.length;A<Y;A++)R.put(this.parsedData[A],8)};
var YlW=function(R,A){var Y=new uIY(A);R.dataList.push(Y);Y=R.errorCorrectLevel;var P=1,E=encodeURI(A).toString().replace(/%[0-9a-fA-F]{2}/g,"a");A=E.length+(E.length!=A?3:0);E=0;for(var z=tF.length;E<=z;E++){var c=0;switch(Y){case 1:c=tF[E][0];break;case 0:c=tF[E][1];break;case 3:c=tF[E][2];break;case 2:c=tF[E][3]}if(A<=c)break;else P++}if(P>tF.length)throw Error("Gk");R.typeNumber=P;R.dataCache=null};
epF.prototype.isDark=function(R,A){if(R<0||this.moduleCount<=R||A<0||this.moduleCount<=A)throw Error("yk`"+R+"`"+A);return this.modules[R][A]};
for(var P5i=function(R,A,Y){R.moduleCount=R.typeNumber*4+17;R.modules=Array(R.moduleCount);for(var P=0;P<R.moduleCount;P++){R.modules[P]=Array(R.moduleCount);for(var E=0;E<R.moduleCount;E++)R.modules[P][E]=null}tY9(R,0,0);tY9(R,R.moduleCount-7,0);tY9(R,0,R.moduleCount-7);P=wPj[R.typeNumber-1];for(E=0;E<P.length;E++)for(var z=0;z<P.length;z++){var c=P[E],M=P[z];if(R.modules[c][M]==null)for(var N=-2;N<=2;N++)for(var y=-2;y<=2;y++)R.modules[c+N][M+y]=N==-2||N==2||y==-2||y==2||N==0&&y==0?!0:!1}for(P=
8;P<R.moduleCount-8;P++)R.modules[P][6]==null&&(R.modules[P][6]=P%2==0);for(P=8;P<R.moduleCount-8;P++)R.modules[6][P]==null&&(R.modules[6][P]=P%2==0);P=R.errorCorrectLevel<<3|Y;for(E=P<<10;wJ(E)-wJ(1335)>=0;)E^=1335<<wJ(E)-wJ(1335);P=(P<<10|E)^21522;for(E=0;E<15;E++)z=!A&&(P>>E&1)==1,E<6?R.modules[E][8]=z:E<8?R.modules[E+1][8]=z:R.modules[R.moduleCount-15+E][8]=z;for(E=0;E<15;E++)z=!A&&(P>>E&1)==1,E<8?R.modules[8][R.moduleCount-E-1]=z:E<9?R.modules[8][15-E-1+1]=z:R.modules[8][15-E-1]=z;R.modules[R.moduleCount-
8][8]=!A;if(R.typeNumber>=7){P=R.typeNumber;for(E=P<<12;wJ(E)-wJ(7973)>=0;)E^=7973<<wJ(E)-wJ(7973);P=P<<12|E;for(E=0;E<18;E++)z=!A&&(P>>E&1)==1,R.modules[Math.floor(E/3)][E%3+R.moduleCount-8-3]=z;for(E=0;E<18;E++)z=!A&&(P>>E&1)==1,R.modules[E%3+R.moduleCount-8-3][Math.floor(E/3)]=z}if(R.dataCache==null){E=R.typeNumber;z=R.dataList;A=R.errorCorrectLevel;P=utn(E,A);if(P==void 0)throw Error("Fk`"+E+"`"+A);c=P.length/3;A=[];for(M=0;M<c;M++){N=P[M*3];y=P[M*3+1];for(var m=P[M*3+2],T=0;T<N;T++)A.push(new qdH(y,
m))}P=new LbW;for(c=0;c<z.length;c++)M=z[c],P.put(M.mode,4),P.put(M.getLength(),e$i(M.mode,E)),M.write(P);for(c=E=0;c<A.length;c++)E+=A[c].dataCount;if(P.length>E*8)throw Error("zk`"+P.length+"`"+E*8);for(P.length+4<=E*8&&P.put(0,4);P.length%8!=0;)q00(P,!1);for(;!(P.length>=E*8);){P.put(236,8);if(P.length>=E*8)break;P.put(17,8)}z=E=y=0;c=Array(A.length);M=Array(A.length);for(N=0;N<A.length;N++){T=A[N].dataCount;var Q=A[N].totalCount-T;E=Math.max(E,T);z=Math.max(z,Q);c[N]=Array(T);for(m=0;m<c[N].length;m++)c[N][m]=
255&P.buffer[m+y];y+=T;m=Q;T=new lz([1],0);for(Q=0;Q<m;Q++)T=T.multiply(new lz([1,LwF(Q)],0));m=T;T=(new lz(c[N],m.getLength()-1)).mod(m);M[N]=Array(m.getLength()-1);for(m=0;m<M[N].length;m++)Q=m+T.getLength()-M[N].length,M[N][m]=Q>=0?T.get(Q):0}for(m=P=0;m<A.length;m++)P+=A[m].totalCount;P=Array(P);for(m=y=0;m<E;m++)for(N=0;N<A.length;N++)m<c[N].length&&(P[y++]=c[N][m]);for(m=0;m<z;m++)for(N=0;N<A.length;N++)m<M[N].length&&(P[y++]=M[N][m]);R.dataCache=P}A=R.dataCache;P=-1;E=R.moduleCount-1;z=7;c=
0;for(M=R.moduleCount-1;M>0;M-=2)for(M==6&&M--;;){for(N=0;N<2;N++)R.modules[E][M-N]==null&&(y=!1,c<A.length&&(y=(A[c]>>>z&1)==1),d2Y(Y,E,M-N)&&(y=!y),R.modules[E][M-N]=y,z--,z==-1&&(c++,z=7));E+=P;if(E<0||R.moduleCount<=E){E-=P;P=-P;break}}},tY9=function(R,A,Y){for(var P=-1;P<=7;P++)if(!(A+P<=-1||R.moduleCount<=A+P))for(var E=-1;E<=7;E++)Y+E<=-1||R.moduleCount<=Y+E||(R.modules[A+P][Y+E]=0<=P&&P<=6&&(E==0||E==6)||0<=E&&E<=6&&(P==0||P==6)||2<=P&&P<=4&&2<=E&&E<=4?!0:!1)},Ew0=function(R){for(var A=0,
Y=0,P=0;P<8;P++){P5i(R,!0,P);
var E=R;for(var z=E.moduleCount,c=0,M=0;M<z;M++)for(var N=0;N<z;N++){for(var y=0,m=E.isDark(M,N),T=-1;T<=1;T++)if(!(M+T<0||z<=M+T))for(var Q=-1;Q<=1;Q++)N+Q<0||z<=N+Q||(T!=0||Q!=0)&&m==E.isDark(M+T,N+Q)&&y++;y>5&&(c+=3+y-5)}for(M=0;M<z-1;M++)for(N=0;N<z-1;N++)if(y=0,E.isDark(M,N)&&y++,E.isDark(M+1,N)&&y++,E.isDark(M,N+1)&&y++,E.isDark(M+1,N+1)&&y++,y==0||y==4)c+=3;for(M=0;M<z;M++)for(N=0;N<z-6;N++)E.isDark(M,N)&&!E.isDark(M,N+1)&&E.isDark(M,N+2)&&E.isDark(M,N+3)&&E.isDark(M,N+4)&&!E.isDark(M,N+5)&&
E.isDark(M,N+6)&&(c+=40);for(N=0;N<z;N++)for(M=0;M<z-6;M++)E.isDark(M,N)&&!E.isDark(M+1,N)&&E.isDark(M+2,N)&&E.isDark(M+3,N)&&E.isDark(M+4,N)&&!E.isDark(M+5,N)&&E.isDark(M+6,N)&&(c+=40);for(N=y=0;N<z;N++)for(M=0;M<z;M++)E.isDark(M,N)&&y++;E=c+=Math.abs(100*y/z/z-50)/5*10;if(P==0||A>E)A=E,Y=P}return Y},wPj=[[],
[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]],wJ=function(R){for(var A=0;R!=0;)A++,R>>>=1;return A},d2Y=function(R,A,Y){switch(R){case 0:return(A+Y)%2==0;
case 1:return A%2==0;case 2:return Y%3==0;case 3:return(A+Y)%3==0;case 4:return(Math.floor(A/2)+Math.floor(Y/3))%2==0;case 5:return A*Y%2+A*Y%3==0;case 6:return(A*Y%2+A*Y%3)%2==0;case 7:return(A*Y%3+(A+Y)%2)%2==0;default:throw Error("Ak`"+R);}},e$i=function(R,A){if(1<=A&&A<10)switch(R){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Bk`"+R);}else if(A<27)switch(R){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Bk`"+R);}else if(A<41)switch(R){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Bk`"+R);}else throw Error("Ck`"+A);},ua=function(R){if(R<1)throw Error("Dk`"+R);
return RVm[R]},LwF=function(R){for(;R<0;)R+=255;
for(;R>=256;)R-=255;return eD[R]},eD=Array(256),RVm=Array(256),ASi=0;ASi<8;ASi++)eD[ASi]=1<<ASi;
for(var qE=8;qE<256;qE++)eD[qE]=eD[qE-4]^eD[qE-5]^eD[qE-6]^eD[qE-8];for(var YuY=0;YuY<255;YuY++)RVm[eD[YuY]]=YuY;lz.prototype.get=function(R){return this.num[R]};
lz.prototype.getLength=function(){return this.num.length};
lz.prototype.multiply=function(R){for(var A=Array(this.getLength()+R.getLength()-1),Y=0;Y<this.getLength();Y++)for(var P=0;P<R.getLength();P++)A[Y+P]^=LwF(ua(this.get(Y))+ua(R.get(P)));return new lz(A,0)};
lz.prototype.mod=function(R){if(this.getLength()-R.getLength()<0)return this;for(var A=ua(this.get(0))-ua(R.get(0)),Y=Array(this.getLength()),P=0;P<this.getLength();P++)Y[P]=this.get(P);for(P=0;P<R.getLength();P++)Y[P]^=LwF(ua(R.get(P))+A);return(new lz(Y,0)).mod(R)};
var PXW=[[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]],utn=function(R,A){switch(A){case 1:return PXW[(R-1)*4];case 0:return PXW[(R-1)*4+1];case 3:return PXW[(R-1)*4+2];case 2:return PXW[(R-1)*4+3]}};
LbW.prototype.get=function(R){return(this.buffer[Math.floor(R/8)]>>>7-R%8&1)==1};
LbW.prototype.put=function(R,A){for(var Y=0;Y<A;Y++)q00(this,(R>>>A-Y-1&1)==1)};
var q00=function(R,A){var Y=Math.floor(R.length/8);R.buffer.length<=Y&&R.buffer.push(0);A&&(R.buffer[Y]|=128>>>R.length%8);R.length++},tF=[[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]],AhN=function(){var R=function(A,Y){this.JSC$19587__el=A;this.JSC$19587__htOption=Y};
R.prototype.draw=function(A){function Y(m,T){m=document.createElementNS("http://www.w3.org/2000/svg",m);for(var Q in T)T.hasOwnProperty(Q)&&(Q==="href"?_.$IQ(m,T[Q]):_.ie([_.Op(aGj),_.Op(CUn),_.Op(h$m),_.Op(okn),_.Op(kfW),_.Op(GfG),_.Op(Z9m)],m,Q,T[Q]));return m}
var P=this.JSC$19587__htOption,E=this.JSC$19587__el,z=A.moduleCount;this.clear();var c=Y("svg",{viewBox:"0 0 "+String(z)+" "+String(z),width:"100%",height:"100%",fill:P.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});E.appendChild(c);c.appendChild(Y("rect",{fill:P.colorLight,width:"100%",height:"100%"}));c.appendChild(Y("rect",{fill:P.colorDark,width:"1",height:"1",id:"template"}));for(var M=0;M<z;M++)for(var N=0;N<z;N++)if(A.isDark(M,N)){var y=Y("use",{x:String(M),y:String(N),href:"#template"});
c.appendChild(y)}};
R.prototype.clear=function(){for(;this.JSC$19587__el.hasChildNodes();)this.JSC$19587__el.removeChild(this.JSC$19587__el.lastChild)};
return R}(),RxN=document.documentElement.tagName.toLowerCase()==="svg"?AhN:typeof CanvasRenderingContext2D!="undefined"?function(){var R=function(A,Y){this._bIsPainted=!1;
diG();this.JSC$19587__htOption=Y;this._elCanvas=document.createElement("canvas");this._elCanvas.width=Y.width;this._elCanvas.height=Y.height;A.appendChild(this._elCanvas);this.JSC$19587__el=A;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$19587__el.appendChild(this._elImage);this._bSupportDataURI=null};
R.prototype._onMakeImage=function(){var A=this._elCanvas.toDataURL("image/png");this._elImage.src=A;this._elImage.style.display="block";this._elCanvas.style.display="none"};
R.prototype._safeSetDataURI=function(A,Y){var P=this;P._fFail=Y;P._fSuccess=A;P._bSupportDataURI===null?(A=_.De("IMG"),Y=function(){P._bSupportDataURI=!1;P._fFail&&P._fFail.call(P)},A.onabort=Y,A.onerror=Y,A.onload=function(){P._bSupportDataURI=!0;
P._fSuccess&&P._fSuccess.call(P)},A.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):P._bSupportDataURI===!0&&P._fSuccess?P._fSuccess.call(P):P._bSupportDataURI===!1&&P._fFail&&P._fFail.call(P)};
R.prototype.draw=function(A){var Y=this._oContext,P=this.JSC$19587__htOption,E=A.moduleCount,z=P.width/E,c=P.height/E,M=Math.round(z),N=Math.round(c);this._elImage.style.display="none";this.clear();for(var y=0;y<E;y++)for(var m=0;m<E;m++){var T=A.isDark(y,m),Q=m*z,g=y*c;Y.strokeStyle=T?P.colorDark:P.colorLight;Y.lineWidth=1;Y.fillStyle=T?P.colorDark:P.colorLight;Y.fillRect(Q,g,z,c);Y.strokeRect(Math.floor(Q)+.5,Math.floor(g)+.5,M,N);Y.strokeRect(Math.ceil(Q)-.5,Math.ceil(g)-.5,M,N)}this._bIsPainted=
!0};
R.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
R.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
R.prototype.round=function(A){return A?Math.floor(A*1E3)/1E3:A};
return R}():function(){var R=function(A,Y){this.JSC$19587__el=A;
this.JSC$19587__htOption=Y};
R.prototype.draw=function(A){for(var Y=this.JSC$19587__htOption,P=this.JSC$19587__el,E=A.moduleCount,z=Math.floor(Y.width/E),c=Math.floor(Y.height/E),M=['<table style="border:0;border-collapse:collapse;">'],N=0;N<E;N++){M.push("<tr>");for(var y=0;y<E;y++)M.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+z+"px;height:"+c+"px;background-color:"+(A.isDark(N,y)?Y.colorDark:Y.colorLight)+';"></td>');M.push("</tr>")}M.push("</table>");A=M.join("");A=_.$Gz(_.SAz,A);_.zO(P,A);
A=P.childNodes[0];E=(Y.width-A.offsetWidth)/2;z=(Y.height-A.offsetHeight)/2;E>0&&z>0&&(A.style.margin=z+"px "+E+"px")};
R.prototype.clear=function(){this.JSC$19587__el.textContent=""};
return R}();
zxm.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19590__android||this.JSC$19590__android>=3)&&this._oDrawing.makeImage()};
zxm.prototype.clear=function(){this._oDrawing.clear()};
_.P3.QRCode=zxm;var EIW={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var LB=function(){};
LB.prototype.stringify=function(R){return _.P3.JSON.stringify(R,void 0)};
LB.prototype.parse=function(R){return _.P3.JSON.parse(R,void 0)};var zVg=function(){_.r4.call(this,"z")};
_.Pb(zVg,_.r4);var iUf=function(){_.r4.call(this,"y")};
_.Pb(iUf,_.r4);var lVW=null,xBY=function(){return lVW=lVW||new _.SS},cSn=function(R){_.r4.call(this,"serverreachability",R)};
_.Pb(cSn,_.r4);var dJ=function(R){var A=xBY();A.dispatchEvent(new cSn(A,R))},OUY=function(R,A){_.r4.call(this,"statevent",R);
this.stat=A};
_.Pb(OUY,_.r4);var Rl=function(R){var A=xBY();A.dispatchEvent(new OUY(A,R))},MJg=function(R,A,Y,P){_.r4.call(this,"timingevent",R);
this.size=A;this.rtt=Y;this.retries=P};
_.Pb(MJg,_.r4);var syo=function(R,A,Y){var P=xBY();P.dispatchEvent(new MJg(P,R,A,Y))},A3=function(R,A){if(typeof R!=="function")throw Error("Hk");
return _.P3.setTimeout(function(){R()},A)};var Y$=function(){this.redactEnabled_=!0};
Y$.prototype.disableRedact=function(){this.redactEnabled_=!1};
var Nkm=function(R,A,Y,P,E,z){R.info(function(){if(R.redactEnabled_)if(z){var c="";for(var M=z.split("&"),N=0;N<M.length;N++){var y=M[N].split("=");if(y.length>1){var m=y[0];y=y[1];var T=m.split("_");c=T.length>=2&&T[1]=="type"?c+(m+"="+y+"&"):c+(m+"=redacted&")}}}else c=null;else c=z;return"XMLHTTP REQ ("+P+") [attempt "+E+"]: "+A+"\n"+Y+"\n"+c})},VJg=function(R,A,Y,P,E,z,c){R.info(function(){return"XMLHTTP RESP ("+P+") [ attempt "+E+"]: "+A+"\n"+Y+"\n"+z+" "+c})},PB=function(R,A,Y,P){R.info(function(){return"XMLHTTP TEXT ("+
A+"): "+JSo(R,Y)+(P?" "+P:"")})},ySY=function(R,A){R.info(function(){return"TIMEOUT: "+A})};
Y$.prototype.debug=function(){};
Y$.prototype.info=function(){};
Y$.prototype.warning=function(){};
var JSo=function(R,A){if(!R.redactEnabled_)return A;if(!A)return null;try{var Y=JSON.parse(A);if(Y)for(var P=0;P<Y.length;P++)if(Array.isArray(Y[P])){var E=Y[P];if(!(E.length<2)){var z=E[1];if(Array.isArray(z)&&!(z.length<1)){var c=z[0];if(c!="noop"&&c!="stop"&&c!="close")for(var M=1;M<z.length;M++)z[M]=""}}}return(0,_.pA)(Y)}catch(N){return R.debug("Exception parsing expected JS array - probably was not JS"),A}};var Ei=function(R,A,Y,P,E){this.JSC$19612_channel_=R;this.JSC$19612_channelDebug_=A;this.sid_=Y;this.JSC$19612_rid_=P;this.JSC$19612_retryId_=E||1;this.JSC$19612_eventHandler_=new _.ce(this);this.timeout_=45E3;this.JSC$19612_extraHeaders_=null;this.JSC$19612_successful_=!1;this.JSC$19612_postData_=this.JSC$19612_requestUri_=this.JSC$19612_baseUri_=this.JSC$19612_type_=this.JSC$19612_requestStartTime_=this.JSC$19612_watchDogTimeoutTime_=this.JSC$19612_watchDogTimerId_=null;this.JSC$19612_pendingMessages_=
[];this.JSC$19612_xmlHttp_=null;this.JSC$19612_xmlHttpChunkStart_=0;this.JSC$19612_lastError_=this.JSC$19612_verb_=null;this.JSC$19612_lastStatusCode_=-1;this.JSC$19612_cancelled_=!1;this.JSC$19612_readyStateChangeThrottleMs_=0;this.JSC$19612_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new mB0},mB0=function(){this.JSC$19614_textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},TkW=function(R,A){switch(R){case 0:return"Non-200 return code ("+A+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},QyG={},vI0={};
Ei.prototype.setTimeout=function(R){this.timeout_=R};
var nIG=function(R,A,Y){R.JSC$19612_type_=1;R.JSC$19612_baseUri_=_.Jn(A.clone());R.JSC$19612_postData_=Y;R.decodeChunks_=!0;gIn(R,null)},gIn=function(R,A){R.JSC$19612_requestStartTime_=Date.now();
HU9(R);R.JSC$19612_requestUri_=R.JSC$19612_baseUri_.clone();hP(R.JSC$19612_requestUri_,"t",R.JSC$19612_retryId_);R.JSC$19612_xmlHttpChunkStart_=0;var Y=R.JSC$19612_channel_.JSC$19631_supportsCrossDomainXhrs_;R.fetchResponseState_=new mB0;R.JSC$19612_xmlHttp_=rSY(R.JSC$19612_channel_,Y?A:null,!R.JSC$19612_postData_);R.JSC$19612_readyStateChangeThrottleMs_>0&&(R.JSC$19612_readyStateChangeThrottle_=new _.kH((0,_.Wv)(R.JSC$19616_xmlHttpHandler_,R,R.JSC$19612_xmlHttp_),R.JSC$19612_readyStateChangeThrottleMs_));
R.JSC$19612_eventHandler_.listen(R.JSC$19612_xmlHttp_,"readystatechange",R.JSC$19616_readyStateChangeHandler_);A=R.JSC$19612_extraHeaders_?_.BO.clone(R.JSC$19612_extraHeaders_):{};R.JSC$19612_postData_?(R.JSC$19612_verb_||(R.JSC$19612_verb_="POST"),A["Content-Type"]="application/x-www-form-urlencoded",R.JSC$19612_xmlHttp_.send(R.JSC$19612_requestUri_,R.JSC$19612_verb_,R.JSC$19612_postData_,A)):(R.JSC$19612_verb_="GET",R.JSC$19612_xmlHttp_.send(R.JSC$19612_requestUri_,R.JSC$19612_verb_,null,A));dJ(1);
Nkm(R.JSC$19612_channelDebug_,R.JSC$19612_verb_,R.JSC$19612_requestUri_,R.JSC$19612_rid_,R.JSC$19612_retryId_,R.JSC$19612_postData_)};
Ei.prototype.JSC$19616_readyStateChangeHandler_=function(R){R=R.target;var A=this.JSC$19612_readyStateChangeThrottle_;A&&_.B$(R)==3?(this.JSC$19612_channelDebug_.debug("Throttling readystatechange."),A.fire()):this.JSC$19616_xmlHttpHandler_(R)};
Ei.prototype.JSC$19616_xmlHttpHandler_=function(R){try{R==this.JSC$19612_xmlHttp_?DBg(this):this.JSC$19612_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(A){this.JSC$19612_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),UB0(this)}finally{}};
var DBg=function(R){var A=_.B$(R.JSC$19612_xmlHttp_),Y=R.JSC$19612_xmlHttp_.JSC$9789_lastErrorCode_,P=R.JSC$19612_xmlHttp_.getStatus();if(!(A<3||A==3&&!UB0(R))){R.JSC$19612_cancelled_||A!=4||Y==7||(Y==8||P<=0?dJ(3):dJ(2));$B9(R);var E=R.JSC$19612_xmlHttp_.getStatus();R.JSC$19612_lastStatusCode_=E;Y=XyG(R);UB0(R)||R.JSC$19612_channelDebug_.debug(function(){return"No response text for uri "+R.JSC$19612_requestUri_+" status "+E});
R.JSC$19612_successful_=E==200;VJg(R.JSC$19612_channelDebug_,R.JSC$19612_verb_,R.JSC$19612_requestUri_,R.JSC$19612_rid_,R.JSC$19612_retryId_,A,E);if(R.JSC$19612_successful_){if(R.decodeInitialResponse_&&!R.initialResponseDecoded_)if(P=Sui(R))PB(R.JSC$19612_channelDebug_,R.JSC$19612_rid_,P,"Initial handshake response via X-HTTP-Initial-Response"),R.initialResponseDecoded_=!0,IVW(R,P);else{R.JSC$19612_successful_=!1;R.JSC$19612_lastError_=3;Rl(12);R.JSC$19612_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
R.JSC$19612_rid_+")");zh(R);i7(R);return}R.decodeChunks_?KCj(R,A,Y):(PB(R.JSC$19612_channelDebug_,R.JSC$19612_rid_,Y,null),IVW(R,Y));A==4&&zh(R);R.JSC$19612_successful_&&!R.JSC$19612_cancelled_&&(A==4?WCj(R.JSC$19612_channel_,R):(R.JSC$19612_successful_=!1,HU9(R)))}else MbG(R.JSC$19612_xmlHttp_),E==400&&Y.indexOf("Unknown SID")>0?(R.JSC$19612_lastError_=3,Rl(12),R.JSC$19612_channelDebug_.warning("XMLHTTP Unknown SID ("+R.JSC$19612_rid_+")")):(R.JSC$19612_lastError_=0,Rl(13),R.JSC$19612_channelDebug_.warning("XMLHTTP Bad status "+
E+" ("+R.JSC$19612_rid_+")")),zh(R),i7(R)}},Sui=function(R){return R.JSC$19612_xmlHttp_&&(R=eZ(R.JSC$19612_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.c3(R)?R:null},XyG=function(R){if(!jy0(R))return R.JSC$19612_xmlHttp_.getResponseText();
var A=R.JSC$19612_xmlHttp_.getResponse();if(A==="")return"";var Y="",P=A.length,E=_.B$(R.JSC$19612_xmlHttp_)==4;if(!R.fetchResponseState_.JSC$19614_textDecoder){if(typeof TextDecoder==="undefined")return zh(R),i7(R),"";R.fetchResponseState_.JSC$19614_textDecoder=new _.P3.TextDecoder}for(var z=0;z<P;z++)R.fetchResponseState_.responseArrivedForFetch=!0,Y+=R.fetchResponseState_.JSC$19614_textDecoder.decode(A[z],{stream:!(E&&z==P-1)});A.length=0;R.fetchResponseState_.responseBuffer+=Y;R.JSC$19612_xmlHttpChunkStart_=
0;return R.fetchResponseState_.responseBuffer},UB0=function(R){return R.JSC$19612_xmlHttp_?R.fetchResponseState_.responseArrivedForFetch?!0:!(!R.JSC$19612_xmlHttp_.getResponseText()&&!R.JSC$19612_xmlHttp_.getResponse()):!1},jy0=function(R){return R.JSC$19612_xmlHttp_?R.JSC$19612_verb_=="GET"&&R.JSC$19612_type_!=2&&R.JSC$19612_channel_.usesFetchStreams_:!1},KCj=function(R,A,Y){for(var P=!0,E;!R.JSC$19612_cancelled_&&R.JSC$19612_xmlHttpChunkStart_<Y.length;)if(E=bUG(R,Y),E==vI0){A==4&&(R.JSC$19612_lastError_=
4,Rl(14),P=!1);
PB(R.JSC$19612_channelDebug_,R.JSC$19612_rid_,null,"[Incomplete Response]");break}else if(E==QyG){R.JSC$19612_lastError_=4;Rl(15);PB(R.JSC$19612_channelDebug_,R.JSC$19612_rid_,Y,"[Invalid Chunk]");P=!1;break}else PB(R.JSC$19612_channelDebug_,R.JSC$19612_rid_,E,null),IVW(R,E);jy0(R)&&R.JSC$19612_xmlHttpChunkStart_!=0&&(R.fetchResponseState_.responseBuffer=R.fetchResponseState_.responseBuffer.slice(R.JSC$19612_xmlHttpChunkStart_),R.JSC$19612_xmlHttpChunkStart_=0);A!=4||Y.length!=0||R.fetchResponseState_.responseArrivedForFetch||
(R.JSC$19612_lastError_=1,Rl(16),P=!1);R.JSC$19612_successful_=R.JSC$19612_successful_&&P;P?Y.length>0&&!R.firstByteReceived_&&(R.firstByteReceived_=!0,A=R.JSC$19612_channel_,A.JSC$19631_backChannelRequest_==R&&A.detectBufferingProxy_&&!A.bpDetectionDone_&&(A.JSC$19631_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+Y.length),fVQ(A),A.bpDetectionDone_=!0,Rl(11))):(PB(R.JSC$19612_channelDebug_,R.JSC$19612_rid_,Y,"[Invalid Chunked Response]"),zh(R),i7(R))},bUG=function(R,A){var Y=
R.JSC$19612_xmlHttpChunkStart_,P=A.indexOf("\n",Y);
if(P==-1)return vI0;Y=Number(A.substring(Y,P));if(isNaN(Y))return QyG;P+=1;if(P+Y>A.length)return vI0;A=A.slice(P,P+Y);R.JSC$19612_xmlHttpChunkStart_=P+Y;return A};
Ei.prototype.cancel=function(){this.JSC$19612_cancelled_=!0;zh(this)};
var HU9=function(R){R.JSC$19612_watchDogTimeoutTime_=Date.now()+R.timeout_;pyf(R,R.timeout_)},pyf=function(R,A){if(R.JSC$19612_watchDogTimerId_!=null)throw Error("Ik");
R.JSC$19612_watchDogTimerId_=A3((0,_.Wv)(R.JSC$19616_onWatchDogTimeout_,R),A)},$B9=function(R){R.JSC$19612_watchDogTimerId_&&(_.P3.clearTimeout(R.JSC$19612_watchDogTimerId_),R.JSC$19612_watchDogTimerId_=null)};
Ei.prototype.JSC$19616_onWatchDogTimeout_=function(){this.JSC$19612_watchDogTimerId_=null;var R=Date.now();R-this.JSC$19612_watchDogTimeoutTime_>=0?(ySY(this.JSC$19612_channelDebug_,this.JSC$19612_requestUri_),this.JSC$19612_type_!=2&&(dJ(3),Rl(17)),zh(this),this.JSC$19612_lastError_=2,i7(this)):(this.JSC$19612_channelDebug_.warning("WatchDog timer called too early"),pyf(this,this.JSC$19612_watchDogTimeoutTime_-R))};
var i7=function(R){R.JSC$19612_channel_.state_==0||R.JSC$19612_cancelled_||WCj(R.JSC$19612_channel_,R)},zh=function(R){$B9(R);
_.lt(R.JSC$19612_readyStateChangeThrottle_);R.JSC$19612_readyStateChangeThrottle_=null;R.JSC$19612_eventHandler_.removeAll();if(R.JSC$19612_xmlHttp_){var A=R.JSC$19612_xmlHttp_;R.JSC$19612_xmlHttp_=null;A.abort();A.dispose()}};
Ei.prototype.getLastError=function(){return this.JSC$19612_lastError_};
var IVW=function(R,A){try{var Y=R.JSC$19612_channel_;if(Y.state_!=0&&(Y.JSC$19631_backChannelRequest_==R||FCg(Y.forwardChannelRequestPool_,R)))if(!R.initialResponseDecoded_&&FCg(Y.forwardChannelRequestPool_,R)&&Y.state_==3){try{var P=Y.wireCodec_.JSC$19626_parser_.parse(A)}catch(M){P=null}if(Array.isArray(P)&&P.length==3){A=P;if(A[0]==0)a:if(Y.JSC$19631_channelDebug_.debug("Server claims our backchannel is missing."),Y.JSC$19631_backChannelTimerId_)Y.JSC$19631_channelDebug_.debug("But we are currently starting the request.");
else{if(Y.JSC$19631_backChannelRequest_)if(Y.JSC$19631_backChannelRequest_.JSC$19612_requestStartTime_+3E3<R.JSC$19612_requestStartTime_)BkW(Y),aVQ(Y);else break a;else Y.JSC$19631_channelDebug_.warning("We do not have a BackChannel established");CXY(Y);Rl(18)}else{Y.JSC$19631_lastPostResponseArrayId_=A[1];var E=Y.JSC$19631_lastPostResponseArrayId_-Y.JSC$19631_lastArrayId_;if(0<E){var z=A[2];Y.JSC$19631_channelDebug_.debug(z+" bytes (in "+E+" arrays) are outstanding on the BackChannel");z<37500&&
Y.enableStreaming_&&Y.JSC$19631_backChannelRetryCount_==0&&!Y.JSC$19631_deadBackChannelTimerId_&&(Y.JSC$19631_deadBackChannelTimerId_=A3((0,_.Wv)(Y.JSC$19633_onBackChannelDead_,Y),6E3))}}if(hVH(Y.forwardChannelRequestPool_)<=1&&Y.forwardChannelFlushedCallback_){try{Y.forwardChannelFlushedCallback_()}catch(M){}Y.forwardChannelFlushedCallback_=void 0}}else Y.JSC$19631_channelDebug_.debug("Bad POST response data returned"),l7(Y,11)}else if((R.initialResponseDecoded_||Y.JSC$19631_backChannelRequest_==
R)&&BkW(Y),!_.c3(A)){var c=Y.wireCodec_.JSC$19626_parser_.parse(A);Y.onInput_(c,R)}dJ(4)}catch(M){}};var oIi=function(R,A){this.JSC$19619_mapId=R;this.map=A;this.context=null};var kJg=function(R){this.maxPoolSizeConfigured_=R||10;_.P3.PerformanceNavigationTiming?(R=_.P3.performance.getEntriesByType("navigation"),R=R.length>0&&(R[0].nextHopProtocol=="hq"||R[0].nextHopProtocol=="h2")):R=!!(_.P3.chrome&&_.P3.chrome.loadTimes&&_.P3.chrome.loadTimes()&&_.P3.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19622_maxSize_=R?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19622_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19622_request_=null;this.JSC$19622_pendingMessages_=
[]},GJg=function(R){return R.JSC$19622_request_?!0:R.requestPool_?R.requestPool_.size>=R.JSC$19622_maxSize_:!1},hVH=function(R){return R.JSC$19622_request_?1:R.requestPool_?R.requestPool_.size:0},FCg=function(R,A){return R.JSC$19622_request_?R.JSC$19622_request_==A:R.requestPool_?R.requestPool_.has(A):!1},ZUo=function(R,A){R.requestPool_?R.requestPool_.add(A):R.JSC$19622_request_=A},tJm=function(R,A){R.JSC$19622_request_&&R.JSC$19622_request_==A?R.JSC$19622_request_=null:R.requestPool_&&R.requestPool_.has(A)&&
R.requestPool_.delete(A)};
kJg.prototype.cancel=function(){this.JSC$19622_pendingMessages_=wyY(this);if(this.JSC$19622_request_)this.JSC$19622_request_.cancel(),this.JSC$19622_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var R=_.x(this.requestPool_.values()),A=R.next();!A.done;A=R.next())A.value.cancel();this.requestPool_.clear()}};
var wyY=function(R){if(R.JSC$19622_request_!=null)return R.JSC$19622_pendingMessages_.concat(R.JSC$19622_request_.JSC$19612_pendingMessages_);if(R.requestPool_!=null&&R.requestPool_.size!==0){var A=R.JSC$19622_pendingMessages_;R=_.x(R.requestPool_.values());for(var Y=R.next();!Y.done;Y=R.next())A=A.concat(Y.value.JSC$19612_pendingMessages_);return A}return _.Cu(R.JSC$19622_pendingMessages_)},uiN=function(R,A){R.JSC$19622_pendingMessages_=R.JSC$19622_pendingMessages_.concat(A)};var eVG=function(R,A){var Y=new Y$;Y.debug("TestLoadImage: loading "+R);if(_.P3.Image){var P=new Image;P.onload=_.nj(x$,Y,"TestLoadImage: loaded",!0,A,P);P.onerror=_.nj(x$,Y,"TestLoadImage: error",!1,A,P);P.onabort=_.nj(x$,Y,"TestLoadImage: abort",!1,A,P);P.ontimeout=_.nj(x$,Y,"TestLoadImage: timeout",!1,A,P);_.P3.setTimeout(function(){if(P.ontimeout)P.ontimeout()},1E4);
P.src=R}else A(!1)},quN=function(R,A){var Y=new Y$,P=new AbortController,E=setTimeout(function(){P.abort();
x$(Y,"TestPingServer: timeout",!1,A)},1E4);
fetch(R,{signal:P.signal}).then(function(z){clearTimeout(E);z.ok?x$(Y,"TestPingServer: ok",!0,A):x$(Y,"TestPingServer: server error",!1,A)}).catch(function(){clearTimeout(E);
x$(Y,"TestPingServer: error",!1,A)})},x$=function(R,A,Y,P,E){try{R.debug(A),E&&(E.onload=null,E.onerror=null,E.onabort=null,E.ontimeout=null),P(Y)}catch(z){}};var LCW=function(){this.JSC$19626_parser_=new LB};var cB=function(R,A,Y){return Y&&Y.internalChannelParams?Y.internalChannelParams[R]||A:A},Oi=function(R){this.serverVersion_=0;
this.JSC$19631_outgoingMaps_=[];this.JSC$19631_channelDebug_=new Y$;this.JSC$19631_hostPrefix_=this.JSC$19631_backChannelUri_=this.JSC$19631_forwardChannelUri_=this.JSC$19631_path_=this.JSC$19631_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19631_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19631_extraHeaders_=null;this.JSC$19631_nextMapId_=this.JSC$19631_nextRid_=0;this.JSC$19631_failFast_=cB("failFast",!1,R);this.enableStreaming_=this.JSC$19631_deadBackChannelTimerId_=
this.JSC$19631_backChannelTimerId_=this.JSC$19631_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19631_lastPostResponseArrayId_=this.JSC$19631_lastArrayId_=-1;this.JSC$19631_backChannelAttemptId_=this.JSC$19631_backChannelRetryCount_=this.JSC$19631_forwardChannelRetryCount_=0;this.JSC$19631_baseRetryDelayMs_=cB("baseRetryDelayMs",5E3,R);this.JSC$19631_retryDelaySeedMs_=cB("retryDelaySeedMs",1E4,R);this.JSC$19631_forwardChannelMaxRetries_=
cB("forwardChannelMaxRetries",2,R);this.JSC$19631_forwardChannelRequestTimeoutMs_=cB("forwardChannelRequestTimeoutMs",2E4,R);this.JSC$19631_xmlHttpFactory_=R&&R.xmlHttpFactory||void 0;this.networkTestUrl_=R&&R.networkTestUrl||void 0;this.usesFetchStreams_=R&&R.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19631_supportsCrossDomainXhrs_=R&&R.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new kJg(R&&R.concurrentRequestLimit);this.wireCodec_=new LCW;this.fastHandshake_=
R&&R.fastHandshake||!1;this.encodeInitMessageHeaders_=R&&R.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19631_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=R&&R.blockingHandshake||!1;R&&R.disableRedact&&this.JSC$19631_channelDebug_.disableRedact();R&&R.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
R&&R.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;R&&R.longPollingTimeout&&R.longPollingTimeout>0&&(this.longPollingTimeout_=R.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Oi.prototype.JSC$19633_channelVersion_=8;Oi.prototype.state_=1;
Oi.prototype.connect=function(R,A,Y,P){this.JSC$19631_channelDebug_.debug("connect()");Rl(0);this.JSC$19631_path_=R;this.JSC$19631_extraParams_=A||{};Y&&P!==void 0&&(this.JSC$19631_extraParams_.OSID=Y,this.JSC$19631_extraParams_.OAID=P);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19631_channelDebug_.debug("connectChannel_()");R=dBY(this,null,this.JSC$19631_path_);this.JSC$19631_channelDebug_.debug("GetForwardChannelUri: "+R);this.JSC$19631_forwardChannelUri_=R;RgG(this)};
Oi.prototype.disconnect=function(){this.JSC$19631_channelDebug_.debug("disconnect()");AXi(this);if(this.state_==3){var R=this.JSC$19631_nextRid_++,A=this.JSC$19631_forwardChannelUri_.clone();_.LJ(A,"SID",this.sid_);_.LJ(A,"RID",R);_.LJ(A,"TYPE","terminate");M3(this,A);R=new Ei(this,this.JSC$19631_channelDebug_,this.sid_,R);R.JSC$19612_type_=2;R.JSC$19612_baseUri_=_.Jn(A.clone());A=!1;if(_.P3.navigator&&_.P3.navigator.sendBeacon)try{A=_.P3.navigator.sendBeacon(R.JSC$19612_baseUri_.toString(),"")}catch(Y){}!A&&
_.P3.Image&&((new Image).src=R.JSC$19612_baseUri_,A=!0);A||(R.JSC$19612_xmlHttp_=rSY(R.JSC$19612_channel_,null),R.JSC$19612_xmlHttp_.send(R.JSC$19612_baseUri_));R.JSC$19612_requestStartTime_=Date.now();HU9(R)}Y8n(this)};
var aVQ=function(R){R.JSC$19631_backChannelRequest_&&(fVQ(R),R.JSC$19631_backChannelRequest_.cancel(),R.JSC$19631_backChannelRequest_=null)},AXi=function(R){aVQ(R);
R.JSC$19631_backChannelTimerId_&&(_.P3.clearTimeout(R.JSC$19631_backChannelTimerId_),R.JSC$19631_backChannelTimerId_=null);BkW(R);R.forwardChannelRequestPool_.cancel();R.JSC$19631_forwardChannelTimerId_&&(typeof R.JSC$19631_forwardChannelTimerId_==="number"&&_.P3.clearTimeout(R.JSC$19631_forwardChannelTimerId_),R.JSC$19631_forwardChannelTimerId_=null)};
Oi.prototype.getState=function(){return this.state_};
var RgG=function(R){GJg(R.forwardChannelRequestPool_)||R.JSC$19631_forwardChannelTimerId_||(R.JSC$19631_forwardChannelTimerId_=!0,_.KA(R.JSC$19633_onStartForwardChannelTimer_,R),R.JSC$19631_forwardChannelRetryCount_=0)},Eg0=function(R,A){if(hVH(R.forwardChannelRequestPool_)>=R.forwardChannelRequestPool_.JSC$19622_maxSize_-(R.JSC$19631_forwardChannelTimerId_?1:0))return!1;
if(R.JSC$19631_forwardChannelTimerId_)return R.JSC$19631_channelDebug_.debug("Use the retry request that is already scheduled."),R.JSC$19631_outgoingMaps_=A.JSC$19612_pendingMessages_.concat(R.JSC$19631_outgoingMaps_),!0;if(R.state_==1||R.state_==2||R.JSC$19631_forwardChannelRetryCount_>=(R.JSC$19631_failFast_?0:R.JSC$19631_forwardChannelMaxRetries_))return!1;R.JSC$19631_channelDebug_.debug("Going to retry POST");R.JSC$19631_forwardChannelTimerId_=A3((0,_.Wv)(R.JSC$19633_onStartForwardChannelTimer_,
R,A),PVW(R,R.JSC$19631_forwardChannelRetryCount_));R.JSC$19631_forwardChannelRetryCount_++;return!0};
Oi.prototype.JSC$19633_onStartForwardChannelTimer_=function(R){if(this.JSC$19631_forwardChannelTimerId_)if(this.JSC$19631_forwardChannelTimerId_=null,this.JSC$19631_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!R){this.JSC$19631_channelDebug_.debug("open_()");this.JSC$19631_nextRid_=Math.floor(Math.random()*1E5);R=this.JSC$19631_nextRid_++;var A=new Ei(this,this.JSC$19631_channelDebug_,"",R),Y=this.JSC$19631_extraHeaders_;this.initHeaders_&&(Y?(Y=_.BO.clone(Y),_.BO.extend(Y,this.initHeaders_)):
Y=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(A.JSC$19612_extraHeaders_=Y,Y=null);var P;if(this.fastHandshake_)a:{for(var E=P=0;E<this.JSC$19631_outgoingMaps_.length;E++){b:{var z=this.JSC$19631_outgoingMaps_[E];if("__data__"in z.map&&(z=z.map.__data__,typeof z==="string")){z=z.length;break b}z=void 0}if(z===void 0)break;P+=z;if(P>4096){P=E;break a}if(P===4096||E===this.JSC$19631_outgoingMaps_.length-1){P=E+1;break a}}P=1E3}else P=1E3;P=zgn(this,A,P);
E=this.JSC$19631_forwardChannelUri_.clone();_.LJ(E,"RID",R);_.LJ(E,"CVER",22);this.httpSessionIdParam_&&_.LJ(E,"X-HTTP-Session-Id",this.httpSessionIdParam_);M3(this,E);Y&&(this.encodeInitMessageHeaders_?P="headers="+_.wu(nlj(Y))+"&"+P:this.httpHeadersOverwriteParam_&&HFF(E,this.httpHeadersOverwriteParam_,Y));ZUo(this.forwardChannelRequestPool_,A);this.blockingHandshake_&&_.LJ(E,"TYPE","init");this.fastHandshake_?(_.LJ(E,"$req",P),_.LJ(E,"SID","null"),A.decodeInitialResponse_=!0,nIG(A,E,null)):nIG(A,
E,P);this.state_=2}}else this.state_==3&&(R?irG(this,R):this.JSC$19631_outgoingMaps_.length==0?this.JSC$19631_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):GJg(this.forwardChannelRequestPool_)||(irG(this),this.JSC$19631_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var irG=function(R,A){var Y;A?Y=A.JSC$19612_rid_:Y=R.JSC$19631_nextRid_++;var P=R.JSC$19631_forwardChannelUri_.clone();_.LJ(P,"SID",R.sid_);_.LJ(P,"RID",Y);_.LJ(P,"AID",R.JSC$19631_lastArrayId_);M3(R,P);R.httpHeadersOverwriteParam_&&R.JSC$19631_extraHeaders_&&HFF(P,R.httpHeadersOverwriteParam_,R.JSC$19631_extraHeaders_);Y=new Ei(R,R.JSC$19631_channelDebug_,R.sid_,Y,R.JSC$19631_forwardChannelRetryCount_+1);R.httpHeadersOverwriteParam_===null&&(Y.JSC$19612_extraHeaders_=R.JSC$19631_extraHeaders_);A&&
(R.JSC$19631_outgoingMaps_=A.JSC$19612_pendingMessages_.concat(R.JSC$19631_outgoingMaps_));A=zgn(R,Y,1E3);Y.setTimeout(Math.round(R.JSC$19631_forwardChannelRequestTimeoutMs_*.5)+Math.round(R.JSC$19631_forwardChannelRequestTimeoutMs_*.5*Math.random()));ZUo(R.forwardChannelRequestPool_,Y);nIG(Y,P,A)},M3=function(R,A){R.JSC$19631_extraParams_&&_.BO.forEach(R.JSC$19631_extraParams_,function(Y,P){_.LJ(A,P,Y)});
R.handler_&&_.BO.forEach({},function(Y,P){_.LJ(A,P,Y)})},zgn=function(R,A,Y){Y=Math.min(R.JSC$19631_outgoingMaps_.length,Y);
var P=R.handler_?(0,_.Wv)(R.handler_.JSC$19637_badMapError,R.handler_,R):null;a:{for(var E=R.JSC$19631_outgoingMaps_,z=-1;;){var c=["count="+Y];z==-1?Y>0?(z=E[0].JSC$19619_mapId,c.push("ofs="+z)):z=0:c.push("ofs="+z);for(var M=!0,N=0;N<Y;N++){var y=E[N].JSC$19619_mapId,m=E[N].map;y-=z;if(y<0)z=Math.max(0,E[N].JSC$19619_mapId-100),M=!1;else try{y="req"+y+"_"||"";try{var T=m instanceof Map?m:Object.entries(m);for(var Q=_.x(T),g=Q.next();!g.done;g=Q.next()){var r=_.x(g.value),I=r.next().value,b=r.next().value,
p=b;_.ZI(b)&&(p=(0,_.pA)(b));c.push(y+I+"="+encodeURIComponent(p))}}catch(h){throw c.push(y+"type="+encodeURIComponent("_badmap")),h;}}catch(h){P&&P(m)}}if(M){T=c.join("&");break a}}T=void 0}R=R.JSC$19631_outgoingMaps_.splice(0,Y);A.JSC$19612_pendingMessages_=R;return T},lRH=function(R){R.JSC$19631_backChannelRequest_||R.JSC$19631_backChannelTimerId_||(R.JSC$19631_backChannelAttemptId_=1,_.KA(R.JSC$19633_onStartBackChannelTimer_,R),R.JSC$19631_backChannelRetryCount_=0)},CXY=function(R){if(R.JSC$19631_backChannelRequest_||
R.JSC$19631_backChannelTimerId_||R.JSC$19631_backChannelRetryCount_>=3)return!1;
R.JSC$19631_channelDebug_.debug("Going to retry GET");R.JSC$19631_backChannelAttemptId_++;R.JSC$19631_backChannelTimerId_=A3((0,_.Wv)(R.JSC$19633_onStartBackChannelTimer_,R),PVW(R,R.JSC$19631_backChannelRetryCount_));R.JSC$19631_backChannelRetryCount_++;return!0};
Oi.prototype.JSC$19633_onStartBackChannelTimer_=function(){this.JSC$19631_backChannelTimerId_=null;xY0(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19631_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19631_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19631_backChannelRequest_+" "+this.handshakeRttMs_);else{var R=4*this.handshakeRttMs_;this.JSC$19631_channelDebug_.info("BP detection timer enabled: "+R);this.bpDetectionTimerId_=A3((0,_.Wv)(this.onBpDetectionTimer_,
this),R)}};
Oi.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19631_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19631_backChannelRequest_.JSC$19612_xmlHttp_!=null){var R=this.JSC$19631_backChannelRequest_.JSC$19612_xmlHttp_.getResponseText();R&&this.JSC$19631_channelDebug_.warning("Timer should have been cancelled : "+R)}this.JSC$19631_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;Rl(10);aVQ(this);xY0(this)}else this.JSC$19631_channelDebug_.warning("Invalid operation.")};
var fVQ=function(R){R.bpDetectionTimerId_!=null&&(R.JSC$19631_channelDebug_.debug("Cancel the BP detection timer."),_.P3.clearTimeout(R.bpDetectionTimerId_),R.bpDetectionTimerId_=null)},xY0=function(R){R.JSC$19631_channelDebug_.debug("Creating new HttpRequest");
R.JSC$19631_backChannelRequest_=new Ei(R,R.JSC$19631_channelDebug_,R.sid_,"rpc",R.JSC$19631_backChannelAttemptId_);R.httpHeadersOverwriteParam_===null&&(R.JSC$19631_backChannelRequest_.JSC$19612_extraHeaders_=R.JSC$19631_extraHeaders_);R.JSC$19631_backChannelRequest_.JSC$19612_readyStateChangeThrottleMs_=0;var A=R.JSC$19631_backChannelUri_.clone();_.LJ(A,"RID","rpc");_.LJ(A,"SID",R.sid_);_.LJ(A,"AID",R.JSC$19631_lastArrayId_);_.LJ(A,"CI",R.enableStreaming_?"0":"1");!R.enableStreaming_&&R.longPollingTimeout_&&
_.LJ(A,"TO",R.longPollingTimeout_);_.LJ(A,"TYPE","xmlhttp");M3(R,A);R.httpHeadersOverwriteParam_&&R.JSC$19631_extraHeaders_&&HFF(A,R.httpHeadersOverwriteParam_,R.JSC$19631_extraHeaders_);R.backChannelRequestTimeoutMs_&&R.JSC$19631_backChannelRequest_.setTimeout(R.backChannelRequestTimeoutMs_);var Y=R.JSC$19631_backChannelRequest_,P=R.JSC$19631_hostPrefix_;Y.JSC$19612_type_=1;Y.JSC$19612_baseUri_=_.Jn(A.clone());Y.JSC$19612_postData_=null;Y.decodeChunks_=!0;gIn(Y,P);R.JSC$19631_channelDebug_.debug("New Request created")};
Oi.prototype.JSC$19633_onBackChannelDead_=function(){this.JSC$19631_deadBackChannelTimerId_!=null&&(this.JSC$19631_deadBackChannelTimerId_=null,aVQ(this),CXY(this),Rl(19))};
var BkW=function(R){R.JSC$19631_deadBackChannelTimerId_!=null&&(_.P3.clearTimeout(R.JSC$19631_deadBackChannelTimerId_),R.JSC$19631_deadBackChannelTimerId_=null)},WCj=function(R,A){R.JSC$19631_channelDebug_.debug("Request complete");
var Y=null;if(R.JSC$19631_backChannelRequest_==A){BkW(R);fVQ(R);R.JSC$19631_backChannelRequest_=null;var P=2}else if(FCg(R.forwardChannelRequestPool_,A))Y=A.JSC$19612_pendingMessages_,tJm(R.forwardChannelRequestPool_,A),P=1;else return;if(R.state_!=0)if(A.JSC$19612_successful_)P==1?(syo(A.JSC$19612_postData_?A.JSC$19612_postData_.length:0,Date.now()-A.JSC$19612_requestStartTime_,R.JSC$19631_forwardChannelRetryCount_),RgG(R)):lRH(R);else{var E=A.JSC$19612_lastStatusCode_,z=A.getLastError();if(z==3||
z==0&&E>0)R.JSC$19631_channelDebug_.debug("Not retrying due to error type"),E>200&&(R.errorResponseStatusCode_=A.JSC$19612_lastStatusCode_);else{R.JSC$19631_channelDebug_.debug(function(){return"Maybe retrying, last error: "+TkW(z,R.errorResponseStatusCode_)});
if(P==1&&Eg0(R,A)||P==2&&CXY(R))return;R.JSC$19631_channelDebug_.debug("Exceeded max number of retries")}Y&&Y.length>0&&uiN(R.forwardChannelRequestPool_,Y);R.JSC$19631_channelDebug_.debug("Error: HTTP request failed");switch(z){case 1:l7(R,5);break;case 4:l7(R,10);break;case 3:l7(R,6);break;default:l7(R,2)}}},PVW=function(R,A){var Y=R.JSC$19631_baseRetryDelayMs_+Math.floor(Math.random()*R.JSC$19631_retryDelaySeedMs_);
R.isActive()||(R.JSC$19631_channelDebug_.debug("Inactive channel"),Y*=2);return Y*A};
Oi.prototype.onInput_=function(R,A){for(var Y=0;Y<R.length;Y++){var P=R[Y];this.JSC$19631_lastArrayId_=P[0];P=P[1];if(this.state_==2)if(P[0]=="c"){this.sid_=P[1];this.JSC$19631_hostPrefix_=P[2];var E=P[3];E!=null&&(this.JSC$19633_channelVersion_=E,this.JSC$19631_channelDebug_.info("VER="+this.JSC$19633_channelVersion_));E=P[4];E!=null&&(this.serverVersion_=E,this.JSC$19631_channelDebug_.info("SVER="+this.serverVersion_));P=P[5];P!=null&&typeof P==="number"&&P>0&&(this.backChannelRequestTimeoutMs_=
P*=1.5,this.JSC$19631_channelDebug_.info("backChannelRequestTimeoutMs_="+P));if(P=A.JSC$19612_xmlHttp_){var z=eZ(P,"X-Client-Wire-Protocol");z&&(E=this.forwardChannelRequestPool_,!E.requestPool_&&(_.O6(z,"spdy")||_.O6(z,"quic")||_.O6(z,"h2"))&&(E.JSC$19622_maxSize_=E.maxPoolSizeConfigured_,E.requestPool_=new Set,E.JSC$19622_request_&&(ZUo(E,E.JSC$19622_request_),E.JSC$19622_request_=null)));this.httpSessionIdParam_&&((P=eZ(P,"X-HTTP-Session-Id"))?(this.httpSessionId_=P,_.LJ(this.JSC$19631_forwardChannelUri_,
this.httpSessionIdParam_,P)):this.JSC$19631_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$19637_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-A.JSC$19612_requestStartTime_,this.JSC$19631_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));P=A;E=dBY(this,this.JSC$19631_supportsCrossDomainXhrs_?this.JSC$19631_hostPrefix_:null,this.JSC$19631_path_);this.JSC$19631_channelDebug_.debug("GetBackChannelUri: "+
E);this.JSC$19631_backChannelUri_=E;P.initialResponseDecoded_?(this.JSC$19631_channelDebug_.debug("Upgrade the handshake request to a backchannel."),tJm(this.forwardChannelRequestPool_,P),E=P,(z=this.backChannelRequestTimeoutMs_)&&E.setTimeout(z),E.JSC$19612_watchDogTimerId_&&($B9(E),HU9(E)),this.JSC$19631_backChannelRequest_=P):lRH(this);this.JSC$19631_outgoingMaps_.length>0&&RgG(this)}else P[0]!="stop"&&P[0]!="close"||l7(this,7);else this.state_==3&&(P[0]=="stop"||P[0]=="close"?P[0]=="stop"?l7(this,
7):this.disconnect():P[0]!="noop"&&this.handler_&&this.handler_.JSC$19637_channelHandleArray(P),this.JSC$19631_backChannelRetryCount_=0)}};
var l7=function(R,A){R.JSC$19631_channelDebug_.info("Error code "+A);if(A==2){var Y=(0,_.Wv)(R.testNetworkCallback_,R),P=R.networkTestUrl_,E=!P;P=new _.dq(P||"//www.google.com/images/cleardot.gif");_.P3.location&&_.P3.location.protocol=="http"||_.id(P,"https");_.Jn(P);E?eVG(P.toString(),Y):quN(P.toString(),Y)}else Rl(2);R.onError_(A)};
Oi.prototype.testNetworkCallback_=function(R){R?(this.JSC$19631_channelDebug_.info("Successfully pinged google.com"),Rl(2)):(this.JSC$19631_channelDebug_.info("Failed to ping google.com"),Rl(1))};
Oi.prototype.onError_=function(R){this.JSC$19631_channelDebug_.debug("HttpChannel: error - "+R);this.state_=0;this.handler_&&this.handler_.JSC$19637_channelError(R);Y8n(this);AXi(this)};
var Y8n=function(R){R.state_=0;R.nonAckedMapsAtChannelClose_=[];if(R.handler_){var A=wyY(R.forwardChannelRequestPool_);if(A.length!=0||R.JSC$19631_outgoingMaps_.length!=0)R.JSC$19631_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+A.length+", outgoing: "+R.JSC$19631_outgoingMaps_.length}),_.kq(R.nonAckedMapsAtChannelClose_,A),_.kq(R.nonAckedMapsAtChannelClose_,R.JSC$19631_outgoingMaps_),R.forwardChannelRequestPool_.JSC$19622_pendingMessages_.length=0,_.Cu(R.JSC$19631_outgoingMaps_),
R.JSC$19631_outgoingMaps_.length=0;
R.handler_.JSC$19637_channelClosed()}},cXH=function(R){if(R.state_==0)return R.nonAckedMapsAtChannelClose_;
var A=[];_.kq(A,wyY(R.forwardChannelRequestPool_));_.kq(A,R.JSC$19631_outgoingMaps_);return A},dBY=function(R,A,Y){var P=_.eK(Y);
P.JSC$10024_domain_!=""?(A&&_.ld(P,A+"."+P.JSC$10024_domain_),_.xP(P,P.JSC$10024_port_)):(P=_.P3.location,P=cR0(P.protocol,A?A+"."+P.hostname:P.hostname,+P.port,Y));A=R.httpSessionIdParam_;Y=R.httpSessionId_;A&&Y&&_.LJ(P,A,Y);_.LJ(P,"VER",R.JSC$19633_channelVersion_);M3(R,P);return P},rSY=function(R,A,Y){if(A&&!R.JSC$19631_supportsCrossDomainXhrs_)throw Error("Jk");
A=R.usesFetchStreams_&&!R.JSC$19631_xmlHttpFactory_?new _.FQ(new sz({streamBinaryChunks:Y})):new _.FQ(R.JSC$19631_xmlHttpFactory_);A.JSC$9789_withCredentials_=R.JSC$19631_supportsCrossDomainXhrs_;return A};
Oi.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var Ori=function(){};
_.l=Ori.prototype;_.l.JSC$19637_channelOpened=function(){};
_.l.JSC$19637_channelHandleArray=function(){};
_.l.JSC$19637_channelError=function(){};
_.l.JSC$19637_channelClosed=function(){};
_.l.isActive=function(){return!0};
_.l.JSC$19637_badMapError=function(){};var MQW=function(){},N3=function(R,A){_.SS.call(this);
this.JSC$19640_channel_=new Oi(A);this.JSC$19640_url_=R;this.messageUrlParams_=A&&A.messageUrlParams||null;R=A&&A.messageHeaders||null;A&&A.clientProtocolHeaderRequired&&(R?_.BO.set(R,"X-Client-Protocol","webchannel"):R=_.BO.create("X-Client-Protocol","webchannel"));this.JSC$19640_channel_.JSC$19631_extraHeaders_=R;R=A&&A.initMessageHeaders||null;A&&A.messageContentType&&(R?_.BO.set(R,"X-WebChannel-Content-Type",A.messageContentType):R=_.BO.create("X-WebChannel-Content-Type",A.messageContentType));
A&&A.clientProfile&&(R?_.BO.set(R,"X-WebChannel-Client-Profile",A.clientProfile):R=_.BO.create("X-WebChannel-Client-Profile",A.clientProfile));this.JSC$19640_channel_.initHeaders_=R;(R=A&&A.httpHeadersOverwriteParam)&&!_.c3(R)&&(this.JSC$19640_channel_.httpHeadersOverwriteParam_=R);this.supportsCrossDomainXhr_=A&&A.supportsCrossDomainXhr||!1;this.sendRawJson_=A&&A.sendRawJson||!1;(A=A&&A.httpSessionIdParam)&&!_.c3(A)&&(this.JSC$19640_channel_.httpSessionIdParam_=A,_.BO.containsKey(this.messageUrlParams_,
A)&&_.BO.remove(this.messageUrlParams_,A));this.channelHandler_=new si(this)};
_.Pb(N3,_.SS);N3.prototype.open=function(){this.JSC$19640_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19640_channel_.JSC$19631_supportsCrossDomainXhrs_=!0);this.JSC$19640_channel_.connect(this.JSC$19640_url_,this.messageUrlParams_||void 0)};
N3.prototype.close=function(){this.JSC$19640_channel_.disconnect()};
N3.prototype.send=function(R){var A=this.JSC$19640_channel_;if(typeof R==="string"){var Y={};Y.__data__=R;R=Y}else this.sendRawJson_&&(Y={},Y.__data__=(0,_.pA)(R),R=Y);A.JSC$19631_outgoingMaps_.push(new oIi(A.JSC$19631_nextMapId_++,R));A.state_==3&&RgG(A)};
N3.prototype.disposeInternal=function(){this.JSC$19640_channel_.handler_=null;delete this.channelHandler_;this.JSC$19640_channel_.disconnect();delete this.JSC$19640_channel_;N3.superClass_.disposeInternal.call(this)};
var sjm=function(R){zVg.call(this);R.__headers__&&(this.headers=R.__headers__,this.statusCode=R.__status__,delete R.__headers__,delete R.__status__);var A=R.__sm__;A?this.data=(this.metadataKey=_.BO.getAnyKey(A))?_.BO.get(A,this.metadataKey):A:this.data=R};
_.Pb(sjm,zVg);var NSQ=function(R){iUf.call(this);this.status=1;this.errorCode=R};
_.Pb(NSQ,iUf);var si=function(R){this.JSC$19647_channel_=R};
_.Pb(si,Ori);si.prototype.JSC$19637_channelOpened=function(){this.JSC$19647_channel_.dispatchEvent("w")};
si.prototype.JSC$19637_channelHandleArray=function(R){this.JSC$19647_channel_.dispatchEvent(new sjm(R))};
si.prototype.JSC$19637_channelError=function(R){this.JSC$19647_channel_.dispatchEvent(new NSQ(R))};
si.prototype.JSC$19637_channelClosed=function(){this.JSC$19647_channel_.dispatchEvent("x")};
var VQF=function(R,A){this.transportChannel_=R;this.JSC$19650_channel_=A},JXm=function(R){return cXH(R.JSC$19650_channel_).map(function(A){var Y=R.transportChannel_;
A=A.map;"__data__"in A?(A=A.__data__,Y=Y.sendRawJson_?(0,_.QS8)(A):A):Y=A;return Y})};
VQF.prototype.commit=function(R){this.JSC$19650_channel_.forwardChannelFlushedCallback_=R};var VP=function(R){yXQ.dispatchEvent(new mYW(yXQ,R))},yXQ=new _.SS,mYW=function(R,A){_.r4.call(this,"statevent",R);
this.stat=A};
_.H(mYW,_.r4);var J3=function(R,A,Y,P,E){this.JSC$19655_channel_=R;this.JSC$19655_channelDebug_=A;this.sid_=Y;this.JSC$19655_rid_=P;this.JSC$19655_retryId_=E||1;this.timeout_=45E3;this.JSC$19655_eventHandler_=new _.ce(this);this.pollingTimer_=new _.xh;this.pollingTimer_.setInterval(250)};
_.l=J3.prototype;_.l.JSC$19657_extraHeaders_=null;_.l.JSC$19657_successful_=!1;_.l.JSC$19657_watchDogTimerId_=null;_.l.JSC$19657_watchDogTimeoutTime_=null;_.l.JSC$19657_requestStartTime_=null;_.l.JSC$19657_type_=null;_.l.JSC$19657_baseUri_=null;_.l.JSC$19657_requestUri_=null;_.l.JSC$19657_postData_=null;_.l.JSC$19657_xmlHttp_=null;_.l.JSC$19657_xmlHttpChunkStart_=0;_.l.trident_=null;_.l.JSC$19657_verb_=null;_.l.JSC$19657_lastError_=null;_.l.JSC$19657_lastStatusCode_=-1;_.l.sendClose_=!0;
_.l.JSC$19657_cancelled_=!1;_.l.JSC$19657_readyStateChangeThrottleMs_=0;_.l.JSC$19657_readyStateChangeThrottle_=null;var TSW=function(R,A){switch(R){case 0:return"Non-200 return code ("+A+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},QjF={},vgW={};
J3.prototype.setTimeout=function(R){this.timeout_=R};
var ngY=function(R,A,Y){R.JSC$19657_type_=1;R.JSC$19657_baseUri_=_.Jn(A.clone());R.JSC$19657_postData_=Y;R.decodeChunks_=!0;ggj(R,null)},HrN=function(R,A,Y,P,E){R.JSC$19657_type_=1;
R.JSC$19657_baseUri_=_.Jn(A.clone());R.JSC$19657_postData_=null;R.decodeChunks_=Y;E&&(R.sendClose_=!1);ggj(R,P)},ggj=function(R,A){R.JSC$19657_requestStartTime_=Date.now();
rXH(R);R.JSC$19657_requestUri_=R.JSC$19657_baseUri_.clone();hP(R.JSC$19657_requestUri_,"t",R.JSC$19655_retryId_);R.JSC$19657_xmlHttpChunkStart_=0;R.JSC$19657_xmlHttp_=R.JSC$19655_channel_.JSC$19664_createXhrIo(R.JSC$19655_channel_.JSC$19664_shouldUseSecondaryDomains()?A:null);R.JSC$19657_readyStateChangeThrottleMs_>0&&(R.JSC$19657_readyStateChangeThrottle_=new _.kH((0,_.Wv)(R.JSC$19657_xmlHttpHandler_,R,R.JSC$19657_xmlHttp_),R.JSC$19657_readyStateChangeThrottleMs_));R.JSC$19655_eventHandler_.listen(R.JSC$19657_xmlHttp_,
"readystatechange",R.JSC$19657_readyStateChangeHandler_);A=R.JSC$19657_extraHeaders_?_.BO.clone(R.JSC$19657_extraHeaders_):{};R.JSC$19657_postData_?(R.JSC$19657_verb_="POST",A["Content-Type"]="application/x-www-form-urlencoded",R.JSC$19657_xmlHttp_.send(R.JSC$19657_requestUri_,R.JSC$19657_verb_,R.JSC$19657_postData_,A)):(R.JSC$19657_verb_="GET",R.sendClose_&&!_.cb&&(A.Connection="close"),R.JSC$19657_xmlHttp_.send(R.JSC$19657_requestUri_,R.JSC$19657_verb_,null,A));R.JSC$19655_channel_.notifyServerReachabilityEvent(1);
A=R.JSC$19655_channelDebug_;var Y=R.JSC$19657_postData_;if(Y){var P="";Y=Y.split("&");for(var E=0;E<Y.length;E++){var z=Y[E].split("=");if(z.length>1){var c=z[0];z=z[1];var M=c.split("_");P=M.length>=2&&M[1]=="type"?P+(c+"="+z+"&"):P+(c+"=redacted&")}}}else P=null;A.info("XMLHTTP REQ ("+R.JSC$19655_rid_+") [attempt "+R.JSC$19655_retryId_+"]: "+R.JSC$19657_verb_+"\n"+R.JSC$19657_requestUri_+"\n"+P)};
J3.prototype.JSC$19657_readyStateChangeHandler_=function(R){R=R.target;var A=this.JSC$19657_readyStateChangeThrottle_;A&&_.B$(R)==3?(this.JSC$19655_channelDebug_.debug("Throttling readystatechange."),A.fire()):this.JSC$19657_xmlHttpHandler_(R)};
J3.prototype.JSC$19657_xmlHttpHandler_=function(R){try{if(R==this.JSC$19657_xmlHttp_)a:{var A=_.B$(this.JSC$19657_xmlHttp_),Y=this.JSC$19657_xmlHttp_.JSC$9789_lastErrorCode_,P=this.JSC$19657_xmlHttp_.getStatus();if(_.cb&&!_.Ok("420+")){if(A<4)break a}else if(A<3||A==3&&!this.JSC$19657_xmlHttp_.getResponseText())break a;this.JSC$19657_cancelled_||A!=4||Y==7||(Y==8||P<=0?this.JSC$19655_channel_.notifyServerReachabilityEvent(3):this.JSC$19655_channel_.notifyServerReachabilityEvent(2));DYo(this);var E=
this.JSC$19657_xmlHttp_.getStatus();this.JSC$19657_lastStatusCode_=E;var z=this.JSC$19657_xmlHttp_.getResponseText();z||this.JSC$19655_channelDebug_.debug("No response text for uri "+this.JSC$19657_requestUri_+" status "+E);this.JSC$19657_successful_=E==200;this.JSC$19655_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19655_rid_+") [ attempt "+this.JSC$19655_retryId_+"]: "+this.JSC$19657_verb_+"\n"+this.JSC$19657_requestUri_+"\n"+A+" "+E);if(this.JSC$19657_successful_){A==4&&yP(this);if(this.decodeChunks_){for(R=
!0;!this.JSC$19657_cancelled_&&this.JSC$19657_xmlHttpChunkStart_<z.length;){var c=UYY(this,z);if(c==vgW){A==4&&(this.JSC$19657_lastError_=4,VP(15),R=!1);mV(this.JSC$19655_channelDebug_,this.JSC$19655_rid_,null,"[Incomplete Response]");break}else if(c==QjF){this.JSC$19657_lastError_=4;VP(16);mV(this.JSC$19655_channelDebug_,this.JSC$19655_rid_,z,"[Invalid Chunk]");R=!1;break}else mV(this.JSC$19655_channelDebug_,this.JSC$19655_rid_,c,null),$YN(this,c)}A==4&&z.length==0&&(this.JSC$19657_lastError_=1,
VP(17),R=!1);this.JSC$19657_successful_=this.JSC$19657_successful_&&R;R||(mV(this.JSC$19655_channelDebug_,this.JSC$19655_rid_,z,"[Invalid Chunked Response]"),yP(this),X9G(this))}else mV(this.JSC$19655_channelDebug_,this.JSC$19655_rid_,z,null),$YN(this,z);this.JSC$19657_successful_&&!this.JSC$19657_cancelled_&&(A==4?this.JSC$19655_channel_.JSC$19664_onRequestComplete(this):(this.JSC$19657_successful_=!1,rXH(this)))}else E==400&&z.indexOf("Unknown SID")>0?(this.JSC$19657_lastError_=3,VP(13),this.JSC$19655_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19655_rid_+")")):(this.JSC$19657_lastError_=0,VP(14),this.JSC$19655_channelDebug_.warning("XMLHTTP Bad status "+E+" ("+this.JSC$19655_rid_+")")),yP(this),X9G(this)}else this.JSC$19655_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(M){this.JSC$19655_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var UYY=function(R,A){var Y=R.JSC$19657_xmlHttpChunkStart_,P=A.indexOf("\n",Y);if(P==-1)return vgW;Y=Number(A.substring(Y,P));if(isNaN(Y))return QjF;P+=1;if(P+Y>A.length)return vgW;A=A.slice(P,P+Y);R.JSC$19657_xmlHttpChunkStart_=P+Y;return A};
J3.prototype.cancel=function(){this.JSC$19657_cancelled_=!0;yP(this)};
var rXH=function(R){R.JSC$19657_watchDogTimeoutTime_=Date.now()+R.timeout_;S8g(R,R.timeout_)},S8g=function(R,A){if(R.JSC$19657_watchDogTimerId_!=null)throw Error("Ik");
R.JSC$19657_watchDogTimerId_=x1((0,_.Wv)(R.JSC$19657_onWatchDogTimeout_,R),A)},DYo=function(R){R.JSC$19657_watchDogTimerId_&&(_.P3.clearTimeout(R.JSC$19657_watchDogTimerId_),R.JSC$19657_watchDogTimerId_=null)};
J3.prototype.JSC$19657_onWatchDogTimeout_=function(){this.JSC$19657_watchDogTimerId_=null;var R=Date.now();R-this.JSC$19657_watchDogTimeoutTime_>=0?(this.JSC$19655_channelDebug_.info("TIMEOUT: "+this.JSC$19657_requestUri_),this.JSC$19657_type_!=2&&this.JSC$19655_channel_.notifyServerReachabilityEvent(3),yP(this),this.JSC$19657_lastError_=2,VP(18),X9G(this)):(this.JSC$19655_channelDebug_.warning("WatchDog timer called too early"),S8g(this,this.JSC$19657_watchDogTimeoutTime_-R))};
var X9G=function(R){R.JSC$19655_channel_.JSC$19664_isClosed()||R.JSC$19657_cancelled_||R.JSC$19655_channel_.JSC$19664_onRequestComplete(R)},yP=function(R){DYo(R);
_.lt(R.JSC$19657_readyStateChangeThrottle_);R.JSC$19657_readyStateChangeThrottle_=null;R.pollingTimer_.stop();R.JSC$19655_eventHandler_.removeAll();if(R.JSC$19657_xmlHttp_){var A=R.JSC$19657_xmlHttp_;R.JSC$19657_xmlHttp_=null;A.abort();A.dispose()}R.trident_&&(R.trident_=null)};
J3.prototype.getLastError=function(){return this.JSC$19657_lastError_};
var $YN=function(R,A){try{R.JSC$19655_channel_.JSC$19664_onRequestData(R,A),R.JSC$19655_channel_.notifyServerReachabilityEvent(4)}catch(Y){}};var mV=function(R,A,Y,P){var E=R.info;a:if(Y&&Y!="y2f%"){try{var z=JSON.parse(Y);if(z)for(var c=0;c<z.length;c++)if(Array.isArray(z[c])){var M=z[c];if(!(M.length<2)){var N=M[1];if(Array.isArray(N)&&!(N.length<1)){var y=N[0];if(y!="noop"&&y!="stop")for(var m=1;m<N.length;m++)N[m]=""}}}var T=(0,_.pA)(z);break a}catch(Q){R.debug("Exception parsing expected JS array - probably was not JS");T=Y;break a}T=void 0}else T=Y;E.call(R,"XMLHTTP TEXT ("+A+"): "+T+(P?" "+P:""))};
cQ.prototype.debug=function(R){this.info(R)};
cQ.prototype.info=function(){};
cQ.prototype.warning=function(){};var IRj=function(R,A){this.JSC$19662_channel_=R;this.JSC$19662_channelDebug_=A;this.JSC$19662_parser_=new LB};
_.l=IRj.prototype;_.l.JSC$19664_extraHeaders_=null;_.l.JSC$19664_request_=null;_.l.receivedIntermediateResult_=!1;_.l.JSC$19664_path_=null;_.l.state_=null;_.l.JSC$19664_lastStatusCode_=-1;_.l.JSC$19664_hostPrefix_=null;_.l.blockedPrefix_=null;
_.l.connect=function(R){this.JSC$19664_path_=R;R=Kvi(this.JSC$19662_channel_,this.JSC$19664_path_);VP(3);Date.now();var A=this.JSC$19662_channel_.firstTestResults_;A!=null?(this.JSC$19664_hostPrefix_=A[0],(this.blockedPrefix_=A[1])?(this.state_=1,Wvo(this)):(this.state_=2,jji(this))):(hP(R,"MODE","init"),this.JSC$19664_request_=new J3(this,this.JSC$19662_channelDebug_),this.JSC$19664_request_.JSC$19657_extraHeaders_=this.JSC$19664_extraHeaders_,HrN(this.JSC$19664_request_,R,!1,null,!0),this.state_=
0)};
var Wvo=function(R){var A=brQ(R.JSC$19662_channel_,R.blockedPrefix_,"/mail/images/cleardot.gif");_.Jn(A);xom(A.toString(),5E3,(0,_.Wv)(R.checkBlockedCallback_,R),3,2E3);R.notifyServerReachabilityEvent(1)};
IRj.prototype.checkBlockedCallback_=function(R){if(R)this.state_=2,jji(this);else{VP(4);var A=this.JSC$19662_channel_;A.JSC$19665_channelDebug_.debug("Test Connection Blocked");A.JSC$19669_lastStatusCode_=A.connectionTest_.JSC$19664_lastStatusCode_;Th(A,9)}R&&this.notifyServerReachabilityEvent(2)};
var jji=function(R){R.JSC$19662_channelDebug_.debug("TestConnection: starting stage 2");var A=R.JSC$19662_channel_.secondTestResults_;A!=null?(R.JSC$19662_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+A?"Buffered":"Unbuffered"),VP(5),A?(VP(11),QP(R.JSC$19662_channel_,R,!1)):(VP(12),QP(R.JSC$19662_channel_,R,!0))):(R.JSC$19664_request_=new J3(R,R.JSC$19662_channelDebug_),R.JSC$19664_request_.JSC$19657_extraHeaders_=R.JSC$19664_extraHeaders_,A=fRn(R.JSC$19662_channel_,
R.JSC$19664_hostPrefix_,R.JSC$19664_path_),VP(5),hP(A,"TYPE","xmlhttp"),HrN(R.JSC$19664_request_,A,!1,R.JSC$19664_hostPrefix_,!1))};
_.l=IRj.prototype;_.l.JSC$19664_createXhrIo=function(R){return this.JSC$19662_channel_.JSC$19664_createXhrIo(R)};
_.l.abort=function(){this.JSC$19664_request_&&(this.JSC$19664_request_.cancel(),this.JSC$19664_request_=null);this.JSC$19664_lastStatusCode_=-1};
_.l.JSC$19664_isClosed=function(){return!1};
_.l.JSC$19664_onRequestData=function(R,A){this.JSC$19664_lastStatusCode_=R.JSC$19657_lastStatusCode_;if(this.state_==0)if(this.JSC$19662_channelDebug_.debug("TestConnection: Got data for stage 1"),A){try{var Y=this.JSC$19662_parser_.parse(A)}catch(P){p9i(this.JSC$19662_channel_,this);return}this.JSC$19664_hostPrefix_=Y[0];this.blockedPrefix_=Y[1]}else this.JSC$19662_channelDebug_.debug("TestConnection: Null responseText"),p9i(this.JSC$19662_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(VP(7),Date.now()):A=="11111"?(VP(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19664_lastStatusCode_=200,this.JSC$19664_request_.cancel(),this.JSC$19662_channelDebug_.debug("Test connection succeeded; using streaming connection"),VP(12),QP(this.JSC$19662_channel_,this,!0)):(VP(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.l.JSC$19664_onRequestComplete=function(){this.JSC$19664_lastStatusCode_=this.JSC$19664_request_.JSC$19657_lastStatusCode_;this.JSC$19664_request_.JSC$19657_successful_?this.state_==0?(this.JSC$19662_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,Wvo(this)):(this.state_=2,jji(this))):this.state_==2&&(this.JSC$19662_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19662_channelDebug_.debug("Test connection succeeded; using streaming connection"),
VP(12),QP(this.JSC$19662_channel_,this,!0)):(this.JSC$19662_channelDebug_.debug("Test connection failed; not using streaming"),VP(11),QP(this.JSC$19662_channel_,this,!1))):(this.JSC$19662_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?VP(9):this.state_==2&&VP(10),p9i(this.JSC$19662_channel_,this,this.JSC$19664_request_.getLastError()))};
_.l.JSC$19664_shouldUseSecondaryDomains=function(){return this.JSC$19662_channel_.JSC$19664_shouldUseSecondaryDomains()};
_.l.isActive=function(){return this.JSC$19662_channel_.isActive()};
_.l.notifyServerReachabilityEvent=function(R){this.JSC$19662_channel_.notifyServerReachabilityEvent(R)};var vB=function(R,A,Y){this.state_=1;this.JSC$19665_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19665_channelDebug_=new cQ;this.JSC$19665_parser_=new LB;this.firstTestResults_=R||null;this.secondTestResults_=A!=null?A:null;this.asyncTest_=Y||!1},Fvi=function(R,A){this.JSC$19667_mapId=R;
this.map=A;this.context=null};
_.l=vB.prototype;_.l.JSC$19669_extraHeaders_=null;_.l.JSC$19669_extraParams_=null;_.l.forwardChannelRequest_=null;_.l.JSC$19669_backChannelRequest_=null;_.l.JSC$19669_path_=null;_.l.JSC$19669_forwardChannelUri_=null;_.l.JSC$19669_backChannelUri_=null;_.l.JSC$19669_hostPrefix_=null;_.l.JSC$19669_nextRid_=0;_.l.JSC$19669_nextMapId_=0;_.l.handler_=null;_.l.JSC$19669_forwardChannelTimerId_=null;_.l.JSC$19669_backChannelTimerId_=null;_.l.JSC$19669_deadBackChannelTimerId_=null;_.l.connectionTest_=null;
_.l.useChunked_=null;_.l.JSC$19669_lastArrayId_=-1;_.l.JSC$19669_lastPostResponseArrayId_=-1;_.l.JSC$19669_lastStatusCode_=-1;_.l.JSC$19669_forwardChannelRetryCount_=0;_.l.JSC$19669_backChannelRetryCount_=0;_.l.JSC$19669_channelVersion_=8;var BSj={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},aRm=function(R,A,Y,P){_.r4.call(this,"timingevent",R);this.size=A;this.rtt=Y;this.retries=P};
_.Pb(aRm,_.r4);var CVF=function(R){_.r4.call(this,"serverreachability",R)};
_.Pb(CVF,_.r4);vB.prototype.connect=function(R,A,Y,P,E){this.JSC$19665_channelDebug_.debug("connect()");VP(0);this.JSC$19669_path_=A;this.JSC$19669_extraParams_=Y||{};P&&E!==void 0&&(this.JSC$19669_extraParams_.OSID=P,this.JSC$19669_extraParams_.OAID=E);this.asyncTest_?(x1((0,_.Wv)(this.connectTest_,this,R),100),hgm(this)):this.connectTest_(R)};
vB.prototype.disconnect=function(){this.JSC$19665_channelDebug_.debug("disconnect()");ogn(this);if(this.state_==3){var R=this.JSC$19669_nextRid_++,A=this.JSC$19669_forwardChannelUri_.clone();_.LJ(A,"SID",this.sid_);_.LJ(A,"RID",R);_.LJ(A,"TYPE","terminate");gG(this,A);R=new J3(this,this.JSC$19665_channelDebug_,this.sid_,R);R.JSC$19657_type_=2;R.JSC$19657_baseUri_=_.Jn(A.clone());(new Image).src=R.JSC$19657_baseUri_.toString();R.JSC$19657_requestStartTime_=Date.now();rXH(R)}kLH(this)};
vB.prototype.connectTest_=function(R){this.JSC$19665_channelDebug_.debug("connectTest_()");this.connectionTest_=new IRj(this,this.JSC$19665_channelDebug_);this.connectionTest_.JSC$19664_extraHeaders_=this.JSC$19669_extraHeaders_;this.connectionTest_.JSC$19662_parser_=this.JSC$19665_parser_;this.connectionTest_.connect(R)};
var hgm=function(R){R.JSC$19665_channelDebug_.debug("connectChannel_()");R.JSC$19669_ensureInState_(1,0);R.JSC$19669_forwardChannelUri_=Kvi(R,R.JSC$19669_path_);GLf(R)},ogn=function(R){R.connectionTest_&&(R.connectionTest_.abort(),R.connectionTest_=null);
R.JSC$19669_backChannelRequest_&&(R.JSC$19669_backChannelRequest_.cancel(),R.JSC$19669_backChannelRequest_=null);R.JSC$19669_backChannelTimerId_&&(_.P3.clearTimeout(R.JSC$19669_backChannelTimerId_),R.JSC$19669_backChannelTimerId_=null);Zrm(R);R.forwardChannelRequest_&&(R.forwardChannelRequest_.cancel(),R.forwardChannelRequest_=null);R.JSC$19669_forwardChannelTimerId_&&(_.P3.clearTimeout(R.JSC$19669_forwardChannelTimerId_),R.JSC$19669_forwardChannelTimerId_=null)},tQ9=function(R,A){if(R.state_==0)throw Error("Lk");
R.JSC$19665_outgoingMaps_.length==1E3&&R.JSC$19665_parser_.stringify(A);R.JSC$19665_outgoingMaps_.push(new Fvi(R.JSC$19669_nextMapId_++,A));R.state_!=2&&R.state_!=3||GLf(R)};
vB.prototype.JSC$19664_isClosed=function(){return this.state_==0};
vB.prototype.getState=function(){return this.state_};
var GLf=function(R){R.forwardChannelRequest_||R.JSC$19669_forwardChannelTimerId_||(R.JSC$19669_forwardChannelTimerId_=x1((0,_.Wv)(R.JSC$19669_onStartForwardChannelTimer_,R),0),R.JSC$19669_forwardChannelRetryCount_=0)};
vB.prototype.JSC$19669_onStartForwardChannelTimer_=function(R){this.JSC$19669_forwardChannelTimerId_=null;w9N(this,R)};
var w9N=function(R,A){R.JSC$19665_channelDebug_.debug("startForwardChannel_");if(R.state_==1){if(!A){R.JSC$19665_channelDebug_.debug("open_()");R.JSC$19669_nextRid_=Math.floor(Math.random()*1E5);A=R.JSC$19669_nextRid_++;var Y=new J3(R,R.JSC$19665_channelDebug_,"",A);Y.JSC$19657_extraHeaders_=R.JSC$19669_extraHeaders_;var P=BRg(R),E=R.JSC$19669_forwardChannelUri_.clone();_.LJ(E,"RID",A);_.LJ(E,"CVER","1");gG(R,E);ngY(Y,E,P);R.forwardChannelRequest_=Y;R.state_=2}}else R.state_==3&&(A?api(R,A):R.JSC$19665_outgoingMaps_.length==
0?R.JSC$19665_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):R.forwardChannelRequest_||(api(R),R.JSC$19665_channelDebug_.debug("startForwardChannel_ finished, sent request")))},api=function(R,A){if(A)if(R.JSC$19669_channelVersion_>6){R.JSC$19665_outgoingMaps_=R.pendingMaps_.concat(R.JSC$19665_outgoingMaps_);
R.pendingMaps_.length=0;var Y=R.JSC$19669_nextRid_-1;A=BRg(R)}else Y=A.JSC$19655_rid_,A=A.JSC$19657_postData_;else Y=R.JSC$19669_nextRid_++,A=BRg(R);var P=R.JSC$19669_forwardChannelUri_.clone();_.LJ(P,"SID",R.sid_);_.LJ(P,"RID",Y);_.LJ(P,"AID",R.JSC$19669_lastArrayId_);gG(R,P);Y=new J3(R,R.JSC$19665_channelDebug_,R.sid_,Y,R.JSC$19669_forwardChannelRetryCount_+1);Y.JSC$19657_extraHeaders_=R.JSC$19669_extraHeaders_;Y.setTimeout(1E4+Math.round(1E4*Math.random()));R.forwardChannelRequest_=Y;ngY(Y,P,A)},
gG=function(R,A){R.handler_&&(R=R.handler_.JSC$19676_getAdditionalParams())&&_.BO.forEach(R,function(Y,P){_.LJ(A,P,Y)})},BRg=function(R){var A=Math.min(R.JSC$19665_outgoingMaps_.length,1E3),Y=["count="+A];
if(R.JSC$19669_channelVersion_>6&&A>0){var P=R.JSC$19665_outgoingMaps_[0].JSC$19667_mapId;Y.push("ofs="+P)}else P=0;for(var E={},z=0;z<A;E={mapId$jscomp$3:void 0},z++){E.mapId$jscomp$3=R.JSC$19665_outgoingMaps_[z].JSC$19667_mapId;var c=R.JSC$19665_outgoingMaps_[z].map;E.mapId$jscomp$3=R.JSC$19669_channelVersion_<=6?z:E.mapId$jscomp$3-P;try{_.BO.forEach(c,function(M){return function(N,y){Y.push("req"+M.mapId$jscomp$3+"_"+y+"="+encodeURIComponent(N))}}(E))}catch(M){Y.push("req"+E.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}R.pendingMaps_=R.pendingMaps_.concat(R.JSC$19665_outgoingMaps_.splice(0,A));
return Y.join("&")},Cr0=function(R){R.JSC$19669_backChannelRequest_||R.JSC$19669_backChannelTimerId_||(R.JSC$19669_backChannelAttemptId_=1,R.JSC$19669_backChannelTimerId_=x1((0,_.Wv)(R.JSC$19669_onStartBackChannelTimer_,R),0),R.JSC$19669_backChannelRetryCount_=0)},o7Y=function(R){if(R.JSC$19669_backChannelRequest_||R.JSC$19669_backChannelTimerId_||R.JSC$19669_backChannelRetryCount_>=3)return!1;
R.JSC$19665_channelDebug_.debug("Going to retry GET");R.JSC$19669_backChannelAttemptId_++;R.JSC$19669_backChannelTimerId_=x1((0,_.Wv)(R.JSC$19669_onStartBackChannelTimer_,R),hRN(R,R.JSC$19669_backChannelRetryCount_));R.JSC$19669_backChannelRetryCount_++;return!0};
vB.prototype.JSC$19669_onStartBackChannelTimer_=function(){this.JSC$19669_backChannelTimerId_=null;this.JSC$19665_channelDebug_.debug("Creating new HttpRequest");this.JSC$19669_backChannelRequest_=new J3(this,this.JSC$19665_channelDebug_,this.sid_,"rpc",this.JSC$19669_backChannelAttemptId_);this.JSC$19669_backChannelRequest_.JSC$19657_extraHeaders_=this.JSC$19669_extraHeaders_;this.JSC$19669_backChannelRequest_.JSC$19657_readyStateChangeThrottleMs_=0;var R=this.JSC$19669_backChannelUri_.clone();_.LJ(R,
"RID","rpc");_.LJ(R,"SID",this.sid_);_.LJ(R,"CI",this.useChunked_?"0":"1");_.LJ(R,"AID",this.JSC$19669_lastArrayId_);gG(this,R);_.LJ(R,"TYPE","xmlhttp");HrN(this.JSC$19669_backChannelRequest_,R,!0,this.JSC$19669_hostPrefix_,!1);this.JSC$19665_channelDebug_.debug("New Request created")};
var QP=function(R,A,Y){R.JSC$19665_channelDebug_.debug("Test Connection Finished");R.useChunked_=R.secondTestResults_==null?Y:!R.secondTestResults_;R.JSC$19669_lastStatusCode_=A.JSC$19664_lastStatusCode_;R.asyncTest_||hgm(R)},p9i=function(R,A){R.JSC$19665_channelDebug_.debug("Test Connection Failed");
R.JSC$19669_lastStatusCode_=A.JSC$19664_lastStatusCode_;Th(R,2)};
vB.prototype.JSC$19664_onRequestData=function(R,A){if(this.state_!=0&&(this.JSC$19669_backChannelRequest_==R||this.forwardChannelRequest_==R))if(this.JSC$19669_lastStatusCode_=R.JSC$19657_lastStatusCode_,this.forwardChannelRequest_==R&&this.state_==3)if(this.JSC$19669_channelVersion_>7){try{var Y=this.JSC$19665_parser_.parse(A)}catch(P){Y=null}if(Array.isArray(Y)&&Y.length==3)if(A=Y,A[0]==0)a:if(this.JSC$19665_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19669_backChannelTimerId_)this.JSC$19665_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19669_backChannelRequest_)if(this.JSC$19669_backChannelRequest_.JSC$19657_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19657_requestStartTime_)Zrm(this),this.JSC$19669_backChannelRequest_.cancel(),this.JSC$19669_backChannelRequest_=null;else break a;else this.JSC$19665_channelDebug_.warning("We do not have a BackChannel established");o7Y(this);VP(19)}else this.JSC$19669_lastPostResponseArrayId_=A[1],R=this.JSC$19669_lastPostResponseArrayId_-this.JSC$19669_lastArrayId_,0<
R&&(A=A[2],this.JSC$19665_channelDebug_.debug(A+" bytes (in "+R+" arrays) are outstanding on the BackChannel"),A<37500&&this.useChunked_&&this.JSC$19669_backChannelRetryCount_==0&&!this.JSC$19669_deadBackChannelTimerId_&&(this.JSC$19669_deadBackChannelTimerId_=x1((0,_.Wv)(this.JSC$19669_onBackChannelDead_,this),6E3)));else this.JSC$19665_channelDebug_.debug("Bad POST response data returned"),Th(this,11)}else A!="y2f%"&&(this.JSC$19665_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Th(this,11));else this.JSC$19669_backChannelRequest_==R&&Zrm(this),_.c3(A)||(R=this.JSC$19665_parser_.parse(A),this.onInput_(R))};
vB.prototype.JSC$19669_onBackChannelDead_=function(){this.JSC$19669_deadBackChannelTimerId_!=null&&(this.JSC$19669_deadBackChannelTimerId_=null,this.JSC$19669_backChannelRequest_.cancel(),this.JSC$19669_backChannelRequest_=null,o7Y(this),VP(20))};
var Zrm=function(R){R.JSC$19669_deadBackChannelTimerId_!=null&&(_.P3.clearTimeout(R.JSC$19669_deadBackChannelTimerId_),R.JSC$19669_deadBackChannelTimerId_=null)};
vB.prototype.JSC$19664_onRequestComplete=function(R){this.JSC$19665_channelDebug_.debug("Request complete");if(this.JSC$19669_backChannelRequest_==R){Zrm(this);this.JSC$19669_backChannelRequest_=null;var A=2}else if(this.forwardChannelRequest_==R)this.forwardChannelRequest_=null,A=1;else return;this.JSC$19669_lastStatusCode_=R.JSC$19657_lastStatusCode_;if(this.state_!=0)if(R.JSC$19657_successful_)if(A==1){A=R.JSC$19657_postData_?R.JSC$19657_postData_.length:0;R=Date.now()-R.JSC$19657_requestStartTime_;
var Y=yXQ;Y.dispatchEvent(new aRm(Y,A,R,this.JSC$19669_forwardChannelRetryCount_));GLf(this);this.handler_&&this.handler_.JSC$19676_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else Cr0(this);else{Y=R.getLastError();if(Y==3||Y==7||Y==0&&this.JSC$19669_lastStatusCode_>0)this.JSC$19665_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19665_channelDebug_.debug("Maybe retrying, last error: "+TSW(Y,this.JSC$19669_lastStatusCode_));var P;if(P=A==1)this.forwardChannelRequest_||
this.JSC$19669_forwardChannelTimerId_||this.state_==1||this.JSC$19669_forwardChannelRetryCount_>=2?P=!1:(this.JSC$19665_channelDebug_.debug("Going to retry POST"),this.JSC$19669_forwardChannelTimerId_=x1((0,_.Wv)(this.JSC$19669_onStartForwardChannelTimer_,this,R),hRN(this,this.JSC$19669_forwardChannelRetryCount_)),this.JSC$19669_forwardChannelRetryCount_++,P=!0);if(P||A==2&&o7Y(this))return;this.JSC$19665_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19665_channelDebug_.debug("Error: HTTP request failed");
switch(Y){case 1:Th(this,5);break;case 4:Th(this,10);break;case 3:Th(this,6);break;case 7:Th(this,12);break;default:Th(this,2)}}};
var hRN=function(R,A){var Y=5E3+Math.floor(Math.random()*1E4);R.isActive()||(R.JSC$19665_channelDebug_.debug("Inactive channel"),Y*=2);return Y*A};
vB.prototype.onInput_=function(R){for(var A=0;A<R.length;A++){var Y=R[A];this.JSC$19669_lastArrayId_=Y[0];Y=Y[1];this.state_==2?Y[0]=="c"?(this.sid_=Y[1],this.JSC$19669_hostPrefix_=Y[2],Y=Y[3],Y!=null?this.JSC$19669_channelVersion_=Y:this.JSC$19669_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19676_channelOpened(),this.JSC$19669_backChannelUri_=fRn(this,this.JSC$19669_hostPrefix_,this.JSC$19669_path_),Cr0(this)):Y[0]=="stop"&&Th(this,7):this.state_==3&&(Y[0]=="stop"?Th(this,7):
Y[0]!="noop"&&this.handler_&&this.handler_.JSC$19676_channelHandleArray(Y),this.JSC$19669_backChannelRetryCount_=0)}};
vB.prototype.JSC$19669_ensureInState_=function(R){if(!_.B3(arguments,this.state_))throw Error("Mk`"+this.state_);};
var Th=function(R,A){R.JSC$19665_channelDebug_.info("Error code "+A);if(A==2||A==9){var Y=null;R.handler_&&(Y=null);var P=(0,_.Wv)(R.testGoogleComCallback_,R);Y||(Y=new _.dq("//www.google.com/images/cleardot.gif"),_.Jn(Y));loN(Y.toString(),1E4,P)}else VP(2);R.onError_(A)};
vB.prototype.testGoogleComCallback_=function(R){R?(this.JSC$19665_channelDebug_.info("Successfully pinged google.com"),VP(2)):(this.JSC$19665_channelDebug_.info("Failed to ping google.com"),VP(1),this.onError_(8))};
vB.prototype.onError_=function(R){this.JSC$19665_channelDebug_.debug("HttpChannel: error - "+R);this.state_=0;this.handler_&&this.handler_.JSC$19676_channelError(R);kLH(this);ogn(this)};
var kLH=function(R){R.state_=0;R.JSC$19669_lastStatusCode_=-1;if(R.handler_)if(R.pendingMaps_.length==0&&R.JSC$19665_outgoingMaps_.length==0)R.handler_.JSC$19676_channelClosed();else{R.JSC$19665_channelDebug_.debug("Number of undelivered maps, pending: "+R.pendingMaps_.length+", outgoing: "+R.JSC$19665_outgoingMaps_.length);var A=_.Cu(R.pendingMaps_),Y=_.Cu(R.JSC$19665_outgoingMaps_);R.pendingMaps_.length=0;R.JSC$19665_outgoingMaps_.length=0;R.handler_.JSC$19676_channelClosed(A,Y)}},Kvi=function(R,
A){A=brQ(R,null,A);
R.JSC$19665_channelDebug_.debug("GetForwardChannelUri: "+A);return A},fRn=function(R,A,Y){A=brQ(R,R.JSC$19664_shouldUseSecondaryDomains()?A:null,Y);
R.JSC$19665_channelDebug_.debug("GetBackChannelUri: "+A);return A},brQ=function(R,A,Y){var P=_.eK(Y);
if(P.JSC$10024_domain_!="")A&&_.ld(P,A+"."+P.JSC$10024_domain_),_.xP(P,P.JSC$10024_port_);else{var E=window.location;P=cR0(E.protocol,A?A+"."+E.hostname:E.hostname,+E.port,Y)}R.JSC$19669_extraParams_&&_.BO.forEach(R.JSC$19669_extraParams_,function(z,c){_.LJ(P,c,z)});
_.LJ(P,"VER",R.JSC$19669_channelVersion_);gG(R,P);return P};
vB.prototype.JSC$19664_createXhrIo=function(R){if(R)throw Error("Jk");R=new _.FQ;R.JSC$9789_withCredentials_=!1;return R};
vB.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
vB.prototype.notifyServerReachabilityEvent=function(R){var A=yXQ;A.dispatchEvent(new CVF(A,R))};
vB.prototype.JSC$19664_shouldUseSecondaryDomains=function(){return!1};
new JRj;var kDg=function(){};
_.l=kDg.prototype;_.l.JSC$19676_channelOpened=function(){};
_.l.JSC$19676_channelHandleArray=function(){};
_.l.JSC$19676_channelSuccess=function(){};
_.l.JSC$19676_channelError=function(){};
_.l.JSC$19676_channelClosed=function(){};
_.l.JSC$19676_getAdditionalParams=function(){return{}};
_.l.isActive=function(){return!0};var GD0=function(R){R.front_.length===0&&(R.front_=R.back_,R.front_.reverse(),R.back_=[])};
_.l=OGi.prototype;_.l.enqueue=function(R){this.back_.push(R)};
_.l.peek=function(){GD0(this);return _.Ku(this.front_)};
_.l.getCount=function(){return this.front_.length+this.back_.length};
_.l.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.l.clear=function(){this.front_=[];this.back_=[]};
_.l.contains=function(R){return _.B3(this.front_,R)||_.B3(this.back_,R)};
_.l.remove=function(R){var A=this.front_;var Y=Array.prototype.lastIndexOf.call(A,R,A.length-1);Y>=0?(_.HuS(A,Y),A=!0):A=!1;return A||_.ak(this.back_,R)};
_.l.getValues=function(){for(var R=[],A=this.front_.length-1;A>=0;--A)R.push(this.front_[A]);A=this.back_.length;for(var Y=0;Y<A;++Y)R.push(this.back_[Y]);return R};var n3=function(R){this.JSC$19680_map_=new _.Qo;this.size=0;R&&this.addAll(R)},Z1N=function(R){var A=typeof R;
return A=="object"&&R||A=="function"?"o"+_.tk(R):A.charAt(0)+R};
_.l=n3.prototype;_.l.getCount=function(){return this.JSC$19680_map_.size};
_.l.add=function(R){this.JSC$19680_map_.set(Z1N(R),R);this.size=this.JSC$19680_map_.size};
_.l.addAll=function(R){R=_.zp(R);for(var A=R.length,Y=0;Y<A;Y++)this.add(R[Y]);this.size=this.JSC$19680_map_.size};
_.l.removeAll=function(R){R=_.zp(R);for(var A=R.length,Y=0;Y<A;Y++)this.remove(R[Y]);this.size=this.JSC$19680_map_.size};
_.l.delete=function(R){R=this.JSC$19680_map_.remove(Z1N(R));this.size=this.JSC$19680_map_.size;return R};
_.l.remove=function(R){return this.delete(R)};
_.l.clear=function(){this.JSC$19680_map_.clear();this.size=0};
_.l.isEmpty=function(){return this.JSC$19680_map_.size===0};
_.l.has=function(R){return this.JSC$19680_map_.containsKey(Z1N(R))};
_.l.contains=function(R){return this.JSC$19680_map_.containsKey(Z1N(R))};
_.l.getValues=function(){return this.JSC$19680_map_.getValues()};
_.l.values=function(){return this.JSC$19680_map_.values()};
_.l.clone=function(){return new n3(this)};
_.l.equals=function(R){return this.getCount()==l0Y(R)&&twQ(this,R)};
var twQ=function(R,A){var Y=l0Y(A);if(R.getCount()>Y)return!1;!(A instanceof n3)&&Y>5&&(A=new n3(A));return xc0(R,function(P){var E=A;return E.contains&&typeof E.contains=="function"?E.contains(P):E.containsValue&&typeof E.containsValue=="function"?E.containsValue(P):_.ok(E)||typeof E==="string"?_.B3(E,P):_.BO.containsValue(E,P)})};
n3.prototype.__iterator__=function(){return this.JSC$19680_map_.__iterator__(!1)};
n3.prototype[Symbol.iterator]=function(){return this.values()};var wdj={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(R){return(this._clampValue(R)-this.min)/(this.max-this.min)},
_clampValue:function(R){return Math.min(this.max,Math.max(this.min,this._calcStep(R)))},
_calcStep:function(R){R=parseFloat(R);if(!this.step)return R;R=Math.round((R-this.min)/this.step);return this.step<1?R/(1/this.step)+this.min:R*this.step+this.min},
_validateValue:function(){var R=this._clampValue(this.value);this.value=this.oldValue=isNaN(R)?this.oldValue:R;return this.value!==R},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var usm;var eRF;_.jz({_template:function(){if(eRF!==void 0)return eRF;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;usm===void 0&&(usm=document.createElement("template"));var P=usm;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return eRF=R},
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(){_.RK(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(R){R.keyCode===27&&(R.preventDefault(),this.close())},
_track:function(R){if(!this.persistent&&!this.disableSwipe)switch(R.preventDefault(),R.detail.state){case "start":this._trackStart(R);break;case "track":this._trackMove(R);break;case "end":this._trackEnd(R)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var R=this.$.contentContainer.getBoundingClientRect();this._savedWidth=R.width;this._translateOffset=this.position==="left"?R.left:R.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(R){this._trackDetails&&(this._translateDrawer(R.detail.dx+this._translateOffset),this._trackDetails.push({dx:R.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(R){if(this._trackDetails){var A=R.detail.dx+this._translateOffset,Y=this.getWidth();A=this.position==="left"?A>=0||A<=-Y:A<=0||A>=Y;if(!A){var P=this._trackDetails;this._trackDetails=null;this._flingDrawer(R,P);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}Y/=2;R.detail.dx<-Y?this.opened=this.position==="right":R.detail.dx>Y&&(this.opened=this.position==="left");A?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(R,A){for(var Y=Date.now(),P=Y-100,E,z=0,c=A.length-1;z<=c;){var M=z+c>>1,N=A[M];N.timeStamp>=P?(E=N,c=M-1):z=M+1}return E?(R.detail.dx-E.dx)/(Y-E.timeStamp||1):0},
_flingDrawer:function(R,A){A=this._calculateVelocity(R,A);if(!(Math.abs(A)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;R=R.detail.dx+this._translateOffset;var Y=this.getWidth(),P=this.position==="left",E=A>0;E?(A=Math.max(A,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(A=Math.min(A,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");A=this._FLING_INITIAL_SLOPE*(!E&&P?-(R+Y):E&&!P?Y-R:-R)/A;this._styleTransitionDuration(A);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,A)}},
_styleTransitionDuration:function(R){this.style.transitionDuration=R+"ms";this.$.contentContainer.style.transitionDuration=R+"ms";this.$.scrim.style.transitionDuration=R+"ms"},
_styleTransitionTimingFunction:function(R){this.$.contentContainer.style.transitionTimingFunction=R;this.$.scrim.style.transitionTimingFunction=R},
_translateDrawer:function(R){var A=this.getWidth();this.position==="left"?(R=Math.max(-A,Math.min(R,0)),this.$.scrim.style.opacity=1+R/A):(R=Math.max(0,Math.min(R,A)),this.$.scrim.style.opacity=1-R/A);this.translate3d(R+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var R=this._drawerState;R===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;R!==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=""),R!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var R=_.S0(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"])');R.length>0?(this._firstTabStop=R[0],this._lastTabStop=R[R.length-1]):
this._lastTabStop=this._firstTabStop=null;(R=this.getAttribute("tabindex"))&&parseInt(R,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(R){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||R.keyCode!==9||(R.shiftKey?this._firstTabStop&&_.S0(R).localTarget===this._firstTabStop&&(R.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.S0(R).localTarget===this._lastTabStop&&(R.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(R,A){this.toggleClass("visible",R&&!A,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 qVF;var L$n;_.jz({_template:function(){if(L$n!==void 0)return L$n;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;qVF===void 0&&(qVF=document.createElement("template"));var P=qVF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return L$n=R},
is:"tp-yt-paper-progress",behaviors:[wdj],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(R){this.toggleClass("indeterminate",R,this.$.primaryProgress)},
_transformProgress:function(R,A){R.style.transform=R.style.webkitTransform="scaleX("+A/100+")"},
_mainRatioChanged:function(R){this._transformProgress(this.$.primaryProgress,R)},
_progressChanged:function(R,A,Y,P,E){R=this._clampValue(R);A=this._clampValue(A);var z=this._calcRatio(R)*100,c=this._calcRatio(A)*100;this._setSecondaryRatio(z);this._transformProgress(this.$.secondaryProgress,z);this._transformProgress(this.$.primaryProgress,c);this.secondaryProgress=R;E?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",A);this.setAttribute("aria-valuemin",Y);this.setAttribute("aria-valuemax",P)},
_disabledChanged:function(R){this.setAttribute("aria-disabled",R?"true":"false")},
_hideSecondaryProgress:function(R){return R===0}});var daf;var R1F;var AQ9=function(){};
_.l=AQ9.prototype;_.l.registered=function(){};
_.l.addOwnKeyBinding=function(){};
_.l.removeOwnKeyBindings=function(){};
_.l.keyboardEventMatchesKeys=function(){};
_.l._collectKeyBindings=function(){};
_.l._prepKeyBindings=function(){};
_.l._addKeyBinding=function(){};
_.l._resetKeyEventListeners=function(){};
_.l._listenKeyEventListeners=function(){};
_.l._unlistenKeyEventListeners=function(){};
_.l._onKeyBindingEvent=function(){};
_.l._triggerKeyHandler=function(){};
_.l._tapHandler=function(){};
_.l._focusChanged=function(){};
_.l._detectKeyboardFocus=function(){};
_.l._userActivate=function(){};
_.l._upHandler=function(){};
_.l._spaceKeyDownHandler=function(){};
_.l._spaceKeyUpHandler=function(){};
_.l._asyncClick=function(){};
_.l._pressedChanged=function(){};
_.l._ariaActiveAttributeChanged=function(){};
_.l._activeChanged=function(){};
_.l._controlStateChanged=function(){};
_.l._changedButtonState=function(){};
_.l._focusBlurHandler=function(){};
_.l._disabledChanged=function(){};
_.l._changedControlState=function(){};
_.l._buttonStateChanged=function(){};
_.l._downHandler=function(){};
_.l.ensureRipple=function(){};
_.l.getRipple=function(){};
_.l.hasRipple=function(){};
_.l._noinkChanged=function(){};
_.l._calcRatio=function(){};
_.l._clampValue=function(){};
_.l._calcStep=function(){};
_.l._validateValue=function(){};
_.l._update=function(){};
_.l._setImmediateValue=function(){};
_.l._setExpand=function(){};
_.l._setDragging=function(){};
_.l._setTransiting=function(){};
_.l._setMarkers=function(){};
_.l._setPressed=function(){};
_.l._setPointerDown=function(){};
_.l._setReceivedFocusFromKeyboard=function(){};
_.l._setFocused=function(){};
_.l._setRatio=function(){};
AQ9=_.jz({_template:function(){if(R1F!==void 0)return R1F;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;daf===void 0&&(daf=document.createElement("template"));var P=daf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return R1F=R},
is:"tp-yt-paper-slider",behaviors:[_.Kr,_.fr,_.O68,wdj],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&&_.Bu(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(R,A,Y){this.setAttribute("aria-valuemin",A);this.setAttribute("aria-valuemax",Y);this.setAttribute("aria-valuenow",R);this._positionKnob(this._calcRatio(R)*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(R){this._setImmediateValue(this._calcStep(this._calcKnobPosition(R)));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(R){return(this.max-this.min)*R/100+this.min},
_onTrack:function(R){R.stopPropagation();switch(R.detail.state){case "start":this._trackStart(R);break;case "track":this._trackX(R);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(R){this.dragging||this._trackStart(R);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,R.detail.dx*(this._isRTL?-1:1)));R=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(R);R=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(R+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var R=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;R.transform=R.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(R){this._expandKnob();R.preventDefault();this.focus()},
_bartrack:function(R){this._allowBarEvent(R)&&this._onTrack(R)},
_barclick:function(R){this._w=this.$.sliderBar.offsetWidth;var A=this.$.sliderBar.getBoundingClientRect();A=(R.detail.x-A.left)/this._w*100;this._isRTL&&(A=100-A);var Y=this.ratio;this._setTransiting(!0);this._positionKnob(A);Y===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
R.preventDefault();this.focus()},
_bardown:function(R){this._allowBarEvent(R)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(R))},
_knobTransitionEnd:function(R){R.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(R,A,Y,P){P||this._setMarkers([]);A=Math.round((Y-A)/this.step);A>R&&(A=R);if(A<0||!isFinite(A))A=0;this._setMarkers(Array(A))},
_mergeClasses:function(R){return Object.keys(R).filter(function(A){return R[A]}).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(R){return!this.ignoreBarTouch||R.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(R){this._isRTL?this._incrementKey(R):this._decrementKey(R)},
_rightKey:function(R){this._isRTL?this._decrementKey(R):this._incrementKey(R)},
_incrementKey:function(R){this.disabled||(R.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),R.preventDefault())},
_decrementKey:function(R){this.disabled||(R.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),R.preventDefault())},
_changeValue:function(R){this.value=R.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(R){R.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.cVf._createRipple.call(this)},
_focusedChanged:function(R){R&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=R?"":"none",this._ripple.holdDown=R)}});var Yhg;var PFY;var HB=null,Euf=function(){};
_.l=Euf.prototype;_.l.fit=function(){};
_.l._discoverInfo=function(){};
_.l.resetFit=function(){};
_.l.refit=function(){};
_.l.position=function(){};
_.l.constrain=function(){};
_.l._sizeDimension=function(){};
_.l.__sizeDimension=function(){};
_.l.center=function(){};
_.l.__getNormalizedRect=function(){};
_.l.__getOffscreenArea=function(){};
_.l.__getPosition=function(){};
_.l.notifyResize=function(){};
_.l.assignParentResizable=function(){};
_.l.stopResizeNotificationsFor=function(){};
_.l._subscribeIronResize=function(){};
_.l._unsubscribeIronResize=function(){};
_.l.resizerShouldNotify=function(){};
_.l._onDescendantIronResize=function(){};
_.l._fireResize=function(){};
_.l._onIronRequestResizeNotifications=function(){};
_.l._parentResizableChanged=function(){};
_.l._notifyDescendant=function(){};
_.l._requestResizeNotifications=function(){};
_.l._findParent=function(){};
_.l.toggle=function(){};
_.l.open=function(){};
_.l.close=function(){};
_.l.cancel=function(){};
_.l.invalidateTabbables=function(){};
_.l._ensureSetup=function(){};
_.l._canceledChanged=function(){};
_.l._withBackdropChanged=function(){};
_.l._prepareRenderOpened=function(){};
_.l._finishRenderOpened=function(){};
_.l._finishRenderClosed=function(){};
_.l._preparePositioning=function(){};
_.l._finishPositioning=function(){};
_.l._applyFocus=function(){};
_.l._onCaptureClick=function(){};
_.l._onCaptureFocus=function(){};
_.l._onCaptureEsc=function(){};
_.l._onCaptureTab=function(){};
_.l._onIronResize=function(){};
_.l._onNodesChange=function(){};
_.l.__ensureFirstLastFocusables=function(){};
_.l.__openedChanged=function(){};
_.l.__deraf=function(){};
_.l.__updateScrollObservers=function(){};
_.l.__addScrollListeners=function(){};
_.l.__removeScrollListeners=function(){};
_.l.__isValidScrollAction=function(){};
_.l.__onCaptureScroll=function(){};
_.l.__saveScrollPosition=function(){};
_.l.__restoreScrollPosition=function(){};
_.l._setCanceled=function(){};
Euf=_.jz({_template:function(){if(PFY!==void 0)return PFY;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Yhg===void 0&&(Yhg=document.createElement("template"));var P=Yhg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);return PFY=R},
is:"tp-yt-paper-toast",behaviors:[_.Ae],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(){_.jJ._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.eQ.requestAvailability()},
show:function(R){typeof R=="string"&&(R={text:R});for(var A in R)A.indexOf("_")===0?_.jJ._warn('The property "'+A+'" is private and was not set.'):A in this?this[A]=R[A]:_.jJ._warn('The property "'+A+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(R){R&&R.target===this&&R.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(HB&&HB!==this&&HB.close(),HB=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):HB===this&&(HB=null);_.RY._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(R){this.positionTarget=R},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var z1f=new _.lU("disablePersonalizationAction");var B0N=new _.lU("showDmaConsentFlowCommand");var ako=new _.lU("showMmgNoticeCommand");var iH9=new _.lU("saveConsentAction");var lWf=function(R){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.pf(R)};
_.H(lWf,_.lb);var xUN=_.Cbu(lWf);var cQY=new _.lU("updateTopbarAvatarAction");var OHW=new _.lU("channelHandleValidationResultRenderer");var MVY=new _.lU("generateHandleFromNameResultRenderer");var ssH=new _.lU("channelHandleInputRenderer");var NtQ=new _.lU("copyLinkRenderer");var VVY=new _.lU("timedCommand");var JQj=new _.lU("clearCookieAction");var yQj=new _.lU("getMultiPageMenuAction");var mUW=new _.lU("addToGuideSectionAction"),Tt9=new _.lU("removeFromGuideSectionAction");var Qsm=new _.lU("updateNotificationsUnseenCountAction");var vuQ=new _.lU("resetChannelUnreadCountCommand");var guH=new _.lU("resetSubscriptionsUnreadDotCommand");var nuj=new _.lU("selectLanguageCommand");var RH9=new _.lU("sendFeedbackAction");var HH0=new _.lU("uploadImageToScottyCommand");var rQG=new _.lU("registerPromoCommand");var DU9=new _.lU("setPushNotificationsEnabledCommand");var UU0=new _.lU("desktopTopbarRenderer");var $UQ=new _.lU("surveyFollowUpRenderer");var XXY=new _.lU("handlesClaimingRadioOptionRenderer");var ShG=new _.lU("hotkeyDialogRenderer");var IWj=new _.lU("modifyReportFormCommand");var K49=new _.lU("accountLinkCommand");var W4G=new _.lU("accountUnlinkCommand");var jsF=new _.lU("logAccountLinkingEventCommand");var bH9=new _.lU("guideCollapsibleEntryRenderer");var fWQ=new _.lU("guideDownloadsEntryRenderer");var rG=new _.lU("guideEntryRenderer");var pXo=new _.lU("getLocationCommand");var F40=new _.lU("locationCollectionCommand");var Btg=new _.lU("storiesItemViewModel");var aWo=new _.lU("addToRemoteQueueAction");var CFF=new _.lU("insertInRemoteQueueAction");var h1i=new _.lU("removeFromRemoteQueueAction");var oun=new _.lU("notificationRenderer");var HiW=new _.lU("localWatchHistoryCommand");var kui=new _.lU("pdgBuyFlowHeaderRenderer");var GuF=new _.lU("pdgColorSliderRenderer");var ZH0=new _.lU("pdgCommentOptionRenderer");var tVQ=new _.lU("pdgCommentPreviewRenderer");var wXQ=new _.lU("superVodSelectableItemButtonRenderer");var umf=new _.lU("switchButtonRenderer");var e1H=new _.lU("upsellDialogRenderer");var qhm=new _.lU("feedbackQuestionRenderer"),L4F=new _.lU("feedbackOptionRenderer");var dUo=new _.lU("sponsorshipsTierRenderer"),RE9=new _.lU("sponsorshipsPromotionChannelRenderer");var AB0=new _.lU("simpleSurveyMessageRenderer");var R8H=new _.lU("invokeInstrumentManagerAction");var Ybn=new _.lU("logYpcFlowDismissCommand");var POf=new _.lU("logYpcFlowStartCommand");var EMQ=new _.lU("unlimitedCreateFamilyEndpoint");var zE0=new _.lU("iconBadgeRenderer");var rMj=new _.lU("collaborativePlaylistVisibilityValidationRule");var il9=function(R){_.r4.call(this,"channelMessage");this.message=R};
_.H(il9,_.r4);var lmG=function(R){_.r4.call(this,"channelError");this.error=R};
_.H(lmG,_.r4);var xvG={AUTOPLAY:"atp",SKA_SKIPPABLE_ADS:"ska",QUEUE_SUPPORT:"que",MULTI_USER_SESSIONS:"mus",SINGLE_USER_SESSIONS:"sus",HAS_DISPLAY:"dsp",SCREEN_EXTENDED_QUEUE_SUPPORT:"seq",MIC:"mic",DPAD:"dpa",MULTISTATE_LOOP_MODE:"mlm",DISCONNECT_STRATEGY_DEFFERRED_TO_RECEIVER:"dsdtr",NATIVE_BROWSE:"ntb",VARIABLE_SPEED:"vsp",ENABLE_VIDEO_SOURCE_CLIENT_NAME:"scn",RECEIVER_PLAYLIST_EXPANSION:"rpe",DISABLE_CURRENTINDEX_IN_NOWPLAYING:"dcn",DISABLE_CURRENTINDEX_IN_PLAYLISTMODIFIED:"dcp",PAUSE_AT_START:"pas",DISABLE_QUEUE_FOR_RECEIVER_ONLY_SESSION:"drq",
ONUSERACTIVITY_POLLING_FREQUENCY:"opf",ENABLE_LOUNGE_STATUS_PLAYBACK:"els",ENABLE_IDENTITY_SWITCH_TO_GUEST:"isg",SERVER_QUEUES:"svq",MULTIVIEW_PLAYBACK:"mvp",ACTIVE_DEVICE_STORE_WRITES:"ads",STREAM_TRANSFER_CREATE_PLAYLIST:"stcp",SHORTS_ACTIVE_DEVICE_STORE_WRITES:"sads",DISABLE_LOGGED_OUT_CASTING:"dloc",DUAL_CTT_WRITES:"dcw",ACTIVE_STREAM_WRITES_FOR_CONNECTED_REMOTES:"asw",ACTIVE_PLAYBACK_WRITES_FOR_CONNECTED_REMOTES:"apw",PUNCTUAL_WATCH:"pcw",IP_VALIDATION:"ipv"},cBg={UNKNOWN_THEME:"u",CLASSIC:"cl",
KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},OlQ={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},Mtj={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},sJY={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var Dy=function(R){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 _.Qo;this.localChannelEncryptionKey=this.remoteControllerUrl="";this.deviceContext=void 0;this.model=this.brand="";this.year=0;this.chipset=this.osVersion=this.os="";this.mdxDialServerType=
"MDX_DIAL_SERVER_TYPE_UNKNOWN";this.pairingType="unknown";this.castUserId=void 0;R&&(this.id=R.id||R.name,this.name=R.name,this.clientName=R.clientName?R.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=R.app,this.type=R.type||"REMOTE_CONTROL",this.username=R.user||"",this.avatar=R.userAvatarUri||"",this.obfuscatedGaiaId=R.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=R.ownerObfuscatedGaiaId||"",this.castUserId=R.castUserId||"",this.theme=R.theme||"u",NIN(this,R.capabilities||""),Vtg(this,
R.compatibleSenderThemes||""),JBf(this,R.experiments||""),this.remoteControllerUrl=R.remoteControllerUrl||"",this.localChannelEncryptionKey=R.localChannelEncryptionKey||"",this.deviceContext=R.deviceContext,this.brand=R.brand||"",this.model=R.model||"",this.year=R.year||0,this.os=R.os||"",this.osVersion=R.osVersion||"",this.chipset=R.chipset||"",this.mdxDialServerType=R.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=R.pairingType||"unknown",R=R.deviceInfo)&&(R=JSON.parse(R),this.brand=
R.brand||"",this.model=R.model||"",this.year=R.year||0,this.os=R.os||"",this.osVersion=R.osVersion||"",this.chipset=R.chipset||"",this.clientName=R.clientName?R.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=R.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
Dy.prototype.copy=function(){var R={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&&(R.brand=this.brand);
this.model&&(R.model=this.model);this.year&&(R.year=this.year);this.os&&(R.os=this.os);this.osVersion&&(R.osVersion=this.osVersion);this.chipset&&(R.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(R.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(R.mdxDialServerType=this.mdxDialServerType);R=new Dy(R);R.connected=this.connected;R.remoteControllerUrl=this.remoteControllerUrl;R.localChannelEncryptionKey=this.localChannelEncryptionKey;R.deviceContext=
this.deviceContext;R.castUserId=this.castUserId;return R};
Dy.prototype.equals=function(R){return R?this.id==R.id:!1};
var NIN=function(R,A){R.capabilities.clear();_.zx(A.split(","),_.nj(_.BO.contains,xvG)).forEach(function(Y){R.capabilities.add(Y)})},Vtg=function(R,A){R.compatibleSenderThemes.clear();
_.zx(A.split(","),_.nj(_.BO.contains,cBg)).forEach(function(Y){R.compatibleSenderThemes.add(Y)})},JBf=function(R,A){R.experiments.clear();
A.split(",").forEach(function(Y){R.experiments.add(Y)})};var yBN=function(R,A){this.action=R;this.params=A||{}};_.Pb(Mz9,_.KJ);_.l=Mz9.prototype;_.l.JSC$19716_onTick_=function(){this.JSC$19714_interval_=Math.min(3E5,this.JSC$19714_interval_*2);this.JSC$19716_listener_();this.nextTickTime_&&this.start()};
_.l.start=function(){var R=this.JSC$19714_interval_+15E3*Math.random(),A=this.delay_;A.isActive()||A.start(R);this.nextTickTime_=Date.now()+R};
_.l.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.l.isActive=function(){return this.delay_.isActive()};
_.l.reset=function(){this.delay_.stop();this.JSC$19714_interval_=5E3};_.Pb(OG,kDg);_.l=OG.prototype;_.l.subscribe=function(R,A,Y){return this.pubsub_.subscribe(R,A,Y)};
_.l.unsubscribe=function(R,A,Y){return this.pubsub_.unsubscribe(R,A,Y)};
_.l.unsubscribeByKey=function(R){return this.pubsub_.unsubscribeByKey(R)};
_.l.publish=function(R,A){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.l.dispose=function(){this.JSC$19717_disposed_||(this.JSC$19717_disposed_=!0,_.lt(this.pubsub_),this.disconnect(),_.lt(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$19717_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.Vn({})})};
_.l.isDisposed=function(){return this.JSC$19717_disposed_};
_.l.connect=function(R,A,Y){var P=this,E,z,c,M;return _.O(function(N){if(N.nextAddress==1)return _.r2(N,2),P.useAsyncBrowserChannelHandler_?N.yield(P.connectPromise_,2):N.jumpTo(2);_.Ht(N);if(P.JSC$19717_disposed_||P.JSC$19717_channel_&&P.JSC$19717_channel_.getState()==2)return N.return();P.sCookie_="";P.reconnectTimer_.stop();P.connectionParams_=R||null;P.connectUi_=A||0;E=P.JSC$19717_pathPrefix_+"/test";z=P.JSC$19717_pathPrefix_+"/bind";c=new vB(Y?Y.firstTestResults:null,Y?Y.secondTestResults:null,
P.enableAsyncTest_);if(M=P.JSC$19717_channel_)M.handler_=null;c.handler_=P;P.JSC$19717_channel_=c;if(P.useAsyncBrowserChannelHandler_)return P.connectPromise_=mvN(P).then(function(){return TIY(P,E,z,M,Y)}),N.return(P.connectPromise_.then(function(){P.connectPromise_=_.Vn()}));
TIY(P,E,z,M,Y);return _.D4(N,0)})};
var TIY=function(R,A,Y,P,E){QJW(R);if(R.JSC$19717_channel_){var z=_.a1("ID_TOKEN"),c=R.JSC$19717_channel_.JSC$19669_extraHeaders_||{};z?c["x-youtube-identity-token"]=z:delete c["x-youtube-identity-token"];R.JSC$19717_channel_.JSC$19669_extraHeaders_=c}vMm(R);P?(P.getState(),R.JSC$19717_channel_.connect(A,Y,R.defaultQueryParams_,P.sid_,P.JSC$19669_lastArrayId_)):E?R.JSC$19717_channel_.connect(A,Y,R.defaultQueryParams_,E.sessionId,E.arrayId):R.JSC$19717_channel_.connect(A,Y,R.defaultQueryParams_)};
OG.prototype.disconnect=function(R){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.Vn())}finally{this.disconnectUi_=R||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),QJW(this),this.JSC$19717_channel_&&(this.JSC$19717_channel_.getState()==3&&w9N(this.JSC$19717_channel_),this.JSC$19717_channel_.disconnect()),this.disconnectUi_=0}};
OG.prototype.sendMessage=function(R,A){var Y=this,P;return _.O(function(E){switch(E.nextAddress){case 1:_.r2(E,2);if(!Y.useAsyncBrowserChannelHandler_){E.jumpTo(2);break}return E.yield(Y.connectPromise_,2);case 2:_.Ht(E);if(Y.JSC$19717_disposed_)return E.return();P={_sc:R};A&&_.BO.extend(P,A);if(Y.reconnectTimer_.isActive()||(Y.JSC$19717_channel_?Y.JSC$19717_channel_.getState():0)==2){Y.JSC$19717_pendingMessages_.push(P);E.jumpTo(6);break}if(!Y.isChannelOpened()){E.jumpTo(6);break}_.r2(E,8);if(!Y.useAsyncBrowserChannelHandler_||
gMi(Y,R)){E.jumpTo(8);break}return E.yield(mvN(Y),8);case 8:_.Ht(E,0,0,1);Y.isChannelOpened()&&(gMi(Y,R)||vMm(Y),QJW(Y),tQ9(Y.JSC$19717_channel_,P));_.D4(E,6,1);break;case 6:_.D4(E,0)}})};
var gMi=function(R,A){return R.enableMdxAuthForConnectionOnly_?!0:R.disableMdxAuthForAdMessages_?Object.values(OlQ).includes(A):R.disableMdxAuthForNonPlaybackMessages_?!Object.values(Mtj).includes(A):R.disableMdxAuthForShortsMessages_?Object.values(sJY).includes(A):!1};
OG.prototype.JSC$19676_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$19717_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)nMW(this);else{var R=this.JSC$19717_pendingMessages_;this.JSC$19717_pendingMessages_=[];var A=R.length;vMm(this);HlH(this,R,A);rBo(this)}else rBo(this)};
var nMW=function(R){var A,Y;_.O(function(P){if(P.nextAddress==1)return _.r2(P,2),P.yield(mvN(R),2);_.Ht(P);A=R.JSC$19717_pendingMessages_;R.JSC$19717_pendingMessages_=[];Y=A.length;HlH(R,A,Y);rBo(R);return _.D4(P,0)})},HlH=function(R,A,Y){for(var P=0;P<Y;++P)tQ9(R.JSC$19717_channel_,A[P]);
rBo(R)},rBo=function(R){R.publish("handlerOpened");
R.JSC$19717_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.l=OG.prototype;_.l.JSC$19676_channelError=function(R){var A=R==2&&this.JSC$19717_channel_.JSC$19669_lastStatusCode_==401;R==4||A||this.reconnectTimer_.start();this.publish("handlerError",R,A);A=Object.keys(BSj).find(function(Y){return BSj[Y]===R});
this.JSC$19717_channelErrorCounter.increment("BROWSER_CHANNEL",A!=null?A:"UNKNOWN")};
_.l.JSC$19676_channelClosed=function(R,A){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(A)for(var Y=A.length,P=0;P<Y;++P){var E=A[P].map;E&&this.JSC$19717_pendingMessages_.push(E)}this.JSC$19717_channelClosedCounter.increment("BROWSER_CHANNEL");R&&this.pendingMapsOnClosedCounter.JSC$9925_streamzService.JSC$9780_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",R.length);A&&this.undeliveredMapsOnClosedCounter.JSC$9928_streamzService.JSC$9780_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
A.length)};
_.l.JSC$19676_channelSuccess=function(R,A){A!=null&&R!=null&&this.channelMessageSentCounter.increment()};
_.l.JSC$19676_getAdditionalParams=function(){var R={v:2};this.sCookie_&&(R.gsessionid=this.sCookie_);this.connectUi_!=0&&(R.ui=""+this.connectUi_);this.disconnectUi_!=0&&(R.ui=""+this.disconnectUi_);this.connectionParams_&&_.BO.extend(R,this.connectionParams_);return R};
_.l.JSC$19676_channelHandleArray=function(R){R[0]=="S"?this.sCookie_=R[1]:R[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$19717_channel_.disconnect()):this.publish("handlerMessage",new yBN(R[0],R[1]));this.JSC$19717_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.l.isChannelOpened=function(){return!!this.JSC$19717_channel_&&this.JSC$19717_channel_.getState()==3};
var QJW=function(R){if(R.JSC$19717_channel_){var A=R.JSC$19717_getXsrfToken_(),Y=R.JSC$19717_channel_.JSC$19669_extraHeaders_||{};A?Y["x-youtube-lounge-xsrf-token"]=A:delete Y["x-youtube-lounge-xsrf-token"];R.JSC$19717_channel_.JSC$19669_extraHeaders_=Y}},mvN=function(R){if(R.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.Vn();
if(!R.enableCachedUpdateAuthorizationHeader_)return Dv9(R);R.updateAuthorizationHeaderPromise_===null&&(R.updateAuthorizationHeaderPromise_=Dv9(R));return R.updateAuthorizationHeaderPromise_},Dv9=function(R){return _.jS(R.getAuthorizationHeader_().then(function(A){Uvn(R,A)}).thenCatch(function(){}),function(){R.updateAuthorizationHeaderPromise_=null})},Uvn=function(R,A){if(R.JSC$19717_channel_){var Y=R.JSC$19717_channel_.JSC$19669_extraHeaders_||{};
A&&Object.keys(A).length>0?Y=Object.assign({},Y,A):delete Y.Authorization;R.JSC$19717_channel_.JSC$19669_extraHeaders_=Y}},vMm=function(R){R.getAuthorizationHeaderSync_&&!R.useAsyncBrowserChannelHandler_&&Uvn(R,R.getAuthorizationHeaderSync_())};
_.l=OG.prototype;_.l.setLoungeToken=function(R){(this.defaultQueryParams_.loungeIdToken=R)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$19717_channel_){var A=this.JSC$19717_channel_.JSC$19669_extraHeaders_||{};R?A["X-YouTube-LoungeId-Token"]=R:delete A["X-YouTube-LoungeId-Token"];this.JSC$19717_channel_.JSC$19669_extraHeaders_=A}};
_.l.getDeviceId=function(){return this.defaultQueryParams_.id};
_.l.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var R=this.reconnectTimer_;R.delay_.fire();R.start()};
_.l.safeReconnect_=function(){var R=this.JSC$19717_channel_,A=0;R.JSC$19669_backChannelRequest_&&A++;R.forwardChannelRequest_&&A++;A==0&&this.connect(this.connectionParams_,this.connectUi_)};var mW=function(R,A){var Y=R.basePath;R.supportCors&&(Y=R.scheme+"://"+R.domain+R.port+R.basePath);return _.du(Y+A,{})};
M$.prototype.sendRequest=function(R,A,Y,P,E,z,c){R={format:z?"RAW":"JSON",method:R,context:this,timeout:5E3,withCredentials:!!c,onSuccess:_.nj(this.JSC$19722_onSuccess_,P,!z),onError:_.nj(this.onError_,E),onTimeout:_.nj(this.JSC$19722_onTimeout_,E)};Y&&(R.postParams=Y,R.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.QQ(A,R)};
M$.prototype.JSC$19722_onSuccess_=function(R,A,Y,P){A?R(P):R({text:Y.responseText})};
M$.prototype.onError_=function(R,A){R(Error("Nk`"+A.status))};
M$.prototype.JSC$19722_onTimeout_=function(R){R(Error("Ok"))};var N$=function(R,A){return!!A&&(R.id==A||R.uuid==A)},$vj=function(R){return{name:R.name,
screenId:R.id,loungeToken:R.token,dialId:R.uuid,screenIdType:R.idType}},XwG=function(R){return new sG(R)},Sbj=function(R){return Array.isArray(R)?_.aS(R,XwG):[]},g99=function(R){if(!R)return"null";
var A=R.token?".."+R.token.slice(-6):"-",Y=R.uuid?".."+R.uuid.slice(-6):"-";return'{name:"'+R.name+'",id:'+R.id.substr(0,6)+"..,token:"+(A+",uuid:"+Y+",idType:"+R.idType+"}")},u7f=function(R){return Array.isArray(R)?"["+_.aS(R,g99).join(",")+"]":"null"};var XZi="",yD=null;var FyY=function(R,A){_.SS.call(this);var Y=this;this.handler=R();this.handler.subscribe("handlerOpened",this.JSC$19729_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(P,E){Y.onError(E)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=A};
_.H(FyY,_.SS);_.l=FyY.prototype;_.l.connect=function(R,A,Y){this.handler.connect(R,A,Y)};
_.l.disconnect=function(R){this.handler.disconnect(R)};
_.l.reconnect=function(){this.handler.reconnect()};
_.l.getDeviceId=function(){return this.handler.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.l.JSC$19729_onOpened=function(){this.dispatchEvent("channelOpened");var R=this.handler,A=this.currentScreenId;_.Im("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!R.JSC$19717_channel_.useChunked_,sessionId:R.JSC$19717_channel_.sid_,arrayId:R.JSC$19717_channel_.JSC$19669_lastArrayId_});_.Im("yt-remote-session-screen-id",A);R=nwo();A=HGf();_.B3(R,A)||R.push(A);$of(R);Uog()};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(R){this.dispatchEvent(new il9(R))};
_.l.onError=function(R){this.dispatchEvent(new lmG(R?1:0))};
_.l.sendMessage=function(R,A){this.handler.sendMessage(R,A)};
_.l.setLoungeToken=function(R){this.handler.setLoungeToken(R)};
_.l.dispose=function(){this.handler.dispose()};var pZW=function(R,A,Y){var P=this;Y=Y===void 0?function(){return""}:Y;
var E=E===void 0?new MQW:E;var z=z===void 0?new _.gr:z;this.pathPrefix=R;this.defaultQueryParams=A;this.getXsrfToken=Y;this.JSC$19732_pubsub=z;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new Mz9(function(){var c;((c=P.channel)==null?void 0:hVH((new VQF(c,c.JSC$19640_channel_)).JSC$19650_channel_.forwardChannelRequestPool_))===0&&P.connect(P.connectionParams,P.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$19732_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$19732_channelOpenedCounter=new s6n;this.JSC$19732_channelClosedCounter=new NgW;this.JSC$19732_channelMessageReceivedCounter=new Jho;this.JSC$19732_channelErrorCounter=new yh9};
pZW.prototype.connect=function(R,A){R=R===void 0?{}:R;A=A===void 0?0:A;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=R,this.connectUi=A,Img(this),(R=_.a1("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=R: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 N3(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,KXF(this))};
var KXF=function(R){_.KC(R.channel,"w",function(){R.channelState=3;R.reconnectTimer.reset();R.connectionParams=null;R.connectUi=0;for(var A=_.x(R.nonAckedMessagesOnChannelClosed),Y=A.next();!Y.done;Y=A.next())Y=Y.value,R.channel&&R.channel.send(Y);R.nonAckedMessagesOnChannelClosed=[];R.publish("webChannelOpened");R.JSC$19732_channelOpenedCounter.increment("WEB_CHANNEL")});
_.KC(R.channel,"x",function(){R.channelState=0;R.reconnectTimer.isActive()||R.publish("webChannelClosed");var A,Y=(A=R.channel)==null?void 0:JXm(new VQF(A,A.JSC$19640_channel_));Y&&(R.nonAckedMessagesOnChannelClosed=[].concat(_.py(Y)));R.JSC$19732_channelClosedCounter.increment("WEB_CHANNEL")});
_.KC(R.channel,"z",function(A){var Y=A.data;Y[0]==="gracefulReconnect"?(R.reconnectTimer.start(),R.channel&&R.channel.close()):R.publish("webChannelMessage",new yBN(Y[0],Y[1]));R.lastStatusCode=A.statusCode;R.JSC$19732_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.KC(R.channel,"y",function(){R.lastStatusCode===401||R.reconnectTimer.start();R.publish("webChannelError");R.JSC$19732_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.l=pZW.prototype;_.l.disconnect=function(R){this.disconnectUi=R===void 0?0:R;this.reconnectTimer.stop();Img(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.l.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.l.reconnect=function(){var R=this.reconnectTimer;R.delay_.fire();R.start()};
_.l.sendMessage=function(R,A){this.channel&&(Img(this),R=Object.assign({},{_sc:R},A),this.channel.send(R))};
_.l.setLoungeToken=function(R){R||this.reconnectTimer.stop();R?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=R:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var Img=function(R){var A=R.getXsrfToken();A?R.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=A:delete R.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.l=pZW.prototype;_.l.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.l.publish=function(R){return this.JSC$19732_pubsub.publish.apply(this.JSC$19732_pubsub,[R].concat(_.py(_.Ge.apply(1,arguments))))};
_.l.subscribe=function(R,A,Y){return this.JSC$19732_pubsub.subscribe(R,A,Y)};
_.l.unsubscribe=function(R,A,Y){return this.JSC$19732_pubsub.unsubscribe(R,A,Y)};
_.l.unsubscribeByKey=function(R){return this.JSC$19732_pubsub.unsubscribeByKey(R)};
_.l.dispose=function(){this.JSC$19732_disposed||(this.JSC$19732_disposed=!0,_.lt(this.JSC$19732_pubsub),this.disconnect(),_.lt(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.l.isDisposed=function(){return this.JSC$19732_disposed};var fo9=function(R){_.SS.call(this);this.webChannelService=R();this.webChannelService.subscribe("webChannelOpened",this.JSC$19740_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.H(fo9,_.SS);_.l=fo9.prototype;_.l.connect=function(R,A){this.webChannelService.connect(R,A)};
_.l.disconnect=function(R){this.webChannelService.disconnect(R)};
_.l.reconnect=function(){this.webChannelService.reconnect()};
_.l.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.l.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.l.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.l.JSC$19740_onOpened=function(){this.dispatchEvent("channelOpened")};
_.l.onClosed=function(){this.dispatchEvent("channelClosed")};
_.l.onMessage=function(R){this.dispatchEvent(new il9(R))};
_.l.onError=function(){this.dispatchEvent(new lmG(this.webChannelService.lastStatusCode===401?1:0))};
_.l.sendMessage=function(R,A){this.webChannelService.sendMessage(R,A)};
_.l.setLoungeToken=function(R){this.webChannelService.setLoungeToken(R)};
_.l.dispose=function(){this.webChannelService.dispose()};var wZH=Date.now(),TB=null,ZGF=Array(50),gO=-1,tzf=!1;_.Pb(nE,_.$i);nE.prototype.getScreens=function(){return this.screens};
nE.prototype.contains=function(R){return!!gwG(this.screens,R)};
nE.prototype.get=function(R){return R?VD(this.screens,R):null};
var WXY=function(R,A){var Y=R.get(A.uuid)||R.get(A.id);if(Y)return R=Y.name,Y.id=A.id||Y.id,Y.name=A.name,Y.token=A.token,Y.uuid=A.uuid||Y.uuid,Y.name!=R;R.screens.push(A);return!0},jJF=function(R,A){var Y=R.screens.length!=A.length;
R.screens=_.zx(R.screens,function(z){return!!gwG(A,z)});
for(var P=A.length,E=0;E<P;E++)Y=WXY(R,A[E])||Y;return Y},blF=function(R,A){var Y=R.screens.length;
R.screens=_.zx(R.screens,function(P){return!(P||A?!P!=!A?0:P.id==A.id:1)});
return R.screens.length<Y};
nE.prototype.info=function(R){QD(this.JSC$19741_logName_,R)};var fmi=function(R,A,Y,P,E){_.$i.call(this);this.JSC$19744_http_=R;this.pairingCode_=A;this.deviceId_=Y;this.friendlyName_=P;this.enableShortLivedLoungeToken_=E;this.pollIndex_=0;this.JSC$19744_xhr_=null;this.JSC$19744_timer_=NaN};
_.H(fmi,_.$i);_.l=fmi.prototype;_.l.start=function(){!this.JSC$19744_xhr_&&isNaN(this.JSC$19744_timer_)&&this.poll_()};
_.l.stop=function(){this.JSC$19744_xhr_&&(this.JSC$19744_xhr_.abort(),this.JSC$19744_xhr_=null);isNaN(this.JSC$19744_timer_)||(_.mT(this.JSC$19744_timer_),this.JSC$19744_timer_=NaN)};
_.l.disposeInternal=function(){this.stop();_.$i.prototype.disposeInternal.call(this)};
_.l.poll_=function(){this.JSC$19744_timer_=NaN;this.JSC$19744_xhr_=_.QQ(mW(this.JSC$19744_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Wv)(this.JSC$19746_onSuccess_,this),onError:(0,_.Wv)(this.onError_,this),onTimeout:(0,_.Wv)(this.JSC$19746_onTimeout_,this)})};
_.l.JSC$19746_onSuccess_=function(R,A){this.JSC$19744_xhr_=null;R=A.screen||{};R.dialId=this.deviceId_;R.name=this.friendlyName_;A=-1;this.enableShortLivedLoungeToken_&&R.shortLivedLoungeToken&&R.shortLivedLoungeToken.value&&R.shortLivedLoungeToken.refreshIntervalMs&&(R.screenIdType="shortLived",R.loungeToken=R.shortLivedLoungeToken.value,A=R.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new sG(R),A)};
_.l.onError_=function(R){this.JSC$19744_xhr_=null;R.status&&R.status==404?this.pollIndex_>=pwH.length?this.publish("pairingFailed",Error("Pk")):(R=pwH[this.pollIndex_],this.JSC$19744_timer_=_.JN((0,_.Wv)(this.poll_,this),R),this.pollIndex_++):this.publish("pairingFailed",Error("Qk`"+R.status))};
_.l.JSC$19746_onTimeout_=function(){this.JSC$19744_xhr_=null;this.publish("pairingFailed",Error("Rk"))};
var pwH=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Pb(rO,nE);_.l=rO.prototype;_.l.start=function(){HQ(this)&&this.publish("screenChange");!_.K1("yt-remote-lounge-token-expiration")&&FXn(this);_.mT(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.JN((0,_.Wv)(this.start,this),1E4)};
_.l.add=function(R,A){HQ(this);WXY(this,R);BIN(this,!1);this.publish("screenChange");A(R);R.token||FXn(this)};
_.l.remove=function(R,A){var Y=HQ(this);blF(this,R)&&(BIN(this,!1),Y=!0);A(R);Y&&this.publish("screenChange")};
_.l.updateName=function(R,A,Y,P){var E=HQ(this),z=this.get(R.id);z?(z.name!=A&&(z.name=A,BIN(this,!1),E=!0),Y(R)):P(Error("Sk"));E&&this.publish("screenChange")};
_.l.disposeInternal=function(){_.mT(this.loungeTokenRefreshTimer_);rO.superClass_.disposeInternal.call(this)};
var FXn=function(R){if(R.screens.length){var A=_.aS(R.screens,function(P){return P.id}),Y=mW(R.JSC$19748_http_,"/pairing/get_lounge_token_batch");
R.JSC$19748_http_.sendRequest("POST",Y,{screen_ids:A.join(",")},(0,_.Wv)(R.handleLoungeTokens_,R),(0,_.Wv)(R.handleLoungeTokenError_,R))}};
rO.prototype.handleLoungeTokens_=function(R){HQ(this);var A=this.screens.length;R=R&&R.screens||[];for(var Y=R.length,P=0;P<Y;++P){var E=R[P],z=this.get(E.screenId);z&&(z.token=E.loungeToken,--A)}BIN(this,!A);A&&QD(this.JSC$19741_logName_,"Missed "+A+" lounge tokens.")};
rO.prototype.handleLoungeTokenError_=function(R){QD(this.JSC$19741_logName_,"Requesting lounge tokens failed: "+R)};
var HQ=function(R){if(_.v("deprecate_pair_servlet_enabled"))return jJF(R,[]);var A=Sbj(Io0());A=_.zx(A,function(Y){return!Y.uuid});
return jJF(R,A)},BIN=function(R,A){WyN(_.aS(R.screens,$vj));
A&&Kyo()};var Ui=function(R,A){_.$i.call(this);this.getScreensToCheck_=A;A=(A=_.K1("yt-remote-online-screen-ids")||"")?A.split(","):[];for(var Y={},P=this.getScreensToCheck_(),E=P.length,z=0;z<E;++z){var c=P[z].id;Y[c]=_.B3(A,c)}this.screenIdSet_=Y;this.JSC$19751_http_=R;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;amo("Initialized with "+(0,_.pA)(this.screenIdSet_))};
_.H(Ui,_.$i);Ui.prototype.isOnline=function(R){return!!this.screenIdSet_[R]};
Ui.prototype.start=function(){var R=parseInt(_.K1("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.YB()-144E5<R?0:R)?CON(this):(this.fastCheckEndTime_=_.YB()+3E5,_.Im("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Ui.prototype.isEmpty=function(){return _.BO.isEmpty(this.screenIdSet_)};
Ui.prototype.update=function(){amo("Updating availability on schedule.");var R=this.getScreensToCheck_(),A=_.BO.filter(this.screenIdSet_,function(Y,P){return Y&&!!VD(R,P)},this);
hEm(this,A)};
var oMY=function(R,A,Y){var P=mW(R.JSC$19751_http_,"/pairing/get_screen_availability");R.JSC$19751_http_.sendRequest("POST",P,{lounge_token:A.token},(0,_.Wv)(function(E){E=E.screens||[];for(var z=E.length,c=0;c<z;++c)if(E[c].loungeToken==A.token){Y(E[c].status=="online");return}Y(!1)},R),(0,_.Wv)(function(){Y(!1)},R))};
Ui.prototype.disposeInternal=function(){_.mT(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.$i.prototype.disposeInternal.call(this)};
var hEm=function(R,A){a:if(_.BO.getCount(A)!=_.BO.getCount(R.screenIdSet_))var Y=!1;else{Y=_.BO.getKeys(A);for(var P=Y.length,E=0;E<P;++E)if(!R.screenIdSet_[Y[E]]){Y=!1;break a}Y=!0}Y||(amo("Updated online screens: "+(0,_.pA)(R.screenIdSet_)),R.screenIdSet_=A,R.publish("screenChange"));kVY(R)},CON=function(R){isNaN(R.refreshTimer_)||_.mT(R.refreshTimer_);
R.refreshTimer_=_.JN((0,_.Wv)(R.requestScreenAvailability_,R),R.fastCheckEndTime_>0&&R.fastCheckEndTime_<_.YB()?2E4:1E4)};
Ui.prototype.requestScreenAvailability_=function(){_.mT(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var R=GVg(this);if(_.BO.getCount(R)){var A=mW(this.JSC$19751_http_,"/pairing/get_screen_availability"),Y={lounge_token:_.BO.getKeys(R).join(",")};this.currentRequest_=this.JSC$19751_http_.sendRequest("POST",A,Y,(0,_.Wv)(this.onScreenAvailability_,this,R),(0,_.Wv)(this.onScreenAvailabilityError_,this))}else hEm(this,{}),CON(this)};
Ui.prototype.onScreenAvailability_=function(R,A){this.currentRequest_=null;var Y=_.BO.getKeys(GVg(this));if(_.uJ(Y,_.BO.getKeys(R))){A=A.screens||[];Y={};for(var P=A.length,E=0;E<P;++E)Y[R[A[E].loungeToken]]=A[E].status=="online";hEm(this,Y);CON(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Ui.prototype.onScreenAvailabilityError_=function(R){this.warn_("Screen availability failed: "+R);this.currentRequest_=null;CON(this)};
var amo=function(R){QD("OnlineScreenService",R)};
Ui.prototype.warn_=function(R){QD("OnlineScreenService",R)};
var GVg=function(R){var A={};_.uI(R.getScreensToCheck_(),function(Y){Y.token?A[Y.token]=Y.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return A},kVY=function(R){R=_.BO.getKeys(_.BO.filter(R.screenIdSet_,function(A){return A}));
R.sort(_.$b3);R.length?_.Im("yt-remote-online-screen-ids",R.join(","),60):_.Wd("yt-remote-online-screen-ids")};_.Pb(D6,nE);_.l=D6.prototype;_.l.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.l.add=function(R,A,Y){this.localScreenService_.add(R,A,Y)};
_.l.remove=function(R,A,Y){this.localScreenService_.remove(R,A,Y);this.onlineScreenService_.update()};
_.l.updateName=function(R,A,Y,P){this.localScreenService_.contains(R)?this.localScreenService_.updateName(R,A,Y,P):(R="Updating name of unknown screen: "+R.name,QD(this.JSC$19741_logName_,R),P(Error(R)))};
_.l.getScreens=function(R){return R?this.screens:krF(this.screens,_.zx(this.automaticScreens_,function(A){return!this.contains(A)},this))};
_.l.JSC$19756_getOnlineScreens=function(){return _.zx(this.getScreens(!0),function(R){return this.onlineScreenService_.isOnline(R.id)},this)};
var ttW=function(R,A,Y,P,E,z){R.info("getAutomaticScreenByIds "+Y+" / "+A);Y||(Y=R.deviceToScreenId_[A]);var c=R.getScreens(),M=Y?VD(c,Y):null;Y&&(R.disableAutomaticScreenCache_||M)||(M=VD(c,A));if(M){M.uuid=A;var N=$$(R,M);oMY(R.onlineScreenService_,N,function(y){E(y?N:null)})}else Y?Zl9(R,Y,(0,_.Wv)(function(y){var m=$$(this,new sG({name:P,
screenId:Y,loungeToken:y,dialId:A||""}));oMY(this.onlineScreenService_,m,function(T){E(T?m:null)})},R),z):E(null)};
D6.prototype.JSC$19756_getScreenByPollingPairingCode=function(R,A,Y,P,E,z){var c=this;this.info("getDialScreenByPairingCode "+R+" / "+A);var M=new fmi(this.JSC$19754_http_,R,A,Y,P);M.subscribe("pairingComplete",function(N,y){_.lt(M);E($$(c,N),y)});
M.subscribe("pairingFailed",function(N){_.lt(M);z(N)});
M.start();return(0,_.Wv)(M.stop,M)};
var wwm=function(R,A){for(var Y=R.screens.length,P=0;P<Y;++P)if(R.screens[P].name==A)return R.screens[P];return null};
D6.prototype.JSC$19756_getScreenByPairingCode=function(R,A,Y,P){_.QQ(mW(this.JSC$19754_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:R},timeout:5E3,onSuccess:(0,_.Wv)(function(E,z){E=new sG(z.screen||{});if(!E.name||wwm(this,E.name)){a:{z=E.name;for(var c=2,M=A(z,c);wwm(this,M);){c++;if(c>20)break a;M=A(z,c)}z=M}E.name=z}Y($$(this,E))},this),
onError:(0,_.Wv)(function(E){P(Error("Tk`"+E.status))},this),
onTimeout:(0,_.Wv)(function(){P(Error("Uk"))},this)})};
var uPo=function(R,A,Y){oMY(R.onlineScreenService_,A,Y)};
D6.prototype.disposeInternal=function(){_.lt(this.localScreenService_);_.lt(this.onlineScreenService_);D6.superClass_.disposeInternal.call(this)};
var Zl9=function(R,A,Y,P){R.info("requestLoungeToken_ for "+A);var E={postParams:{screen_ids:A},method:"POST",context:R,onSuccess:function(z,c){z=c&&c.screens||[];z[0]&&z[0].screenId==A?Y(z[0].loungeToken):P(Error("Vk"))},
onError:function(){P(Error("Wk"))}};
_.QQ(mW(R.JSC$19754_http_,"/pairing/get_lounge_token_batch"),E)},eEg=function(R){R.screens=R.localScreenService_.getScreens();
for(var A=_.BO.transpose(R.deviceToScreenId_),Y=R.screens.length,P=0;P<Y;++P){var E=R.screens[P];E.uuid=A[E.id]||""}R.info("Updated manual screens: "+u7f(R.screens))};
D6.prototype.handleScreenChange_=function(){eEg(this);this.publish("screenChange");this.onlineScreenService_.update()};
var exi=function(R){qbH(R);R.localScreenService_=new rO(R.JSC$19754_http_);R.localScreenService_.subscribe("screenChange",(0,_.Wv)(R.handleScreenChange_,R));eEg(R);R.disableAutomaticScreenCache_||(R.automaticScreens_=Sbj(_.K1("yt-remote-automatic-screen-cache")||[]));qbH(R);R.info("Initializing automatic screens: "+u7f(R.automaticScreens_));R.onlineScreenService_=new Ui(R.JSC$19754_http_,(0,_.Wv)(R.getScreens,R,!0));R.onlineScreenService_.subscribe("screenChange",(0,_.Wv)(function(){this.publish("onlineScreenChange")},
R))},$$=function(R,A){var Y=R.get(A.id);
Y?(Y.uuid=A.uuid,A=Y):((Y=VD(R.automaticScreens_,A.uuid))?(Y.id=A.id,Y.token=A.token,A=Y):R.automaticScreens_.push(A),R.disableAutomaticScreenCache_||LXo(R));qbH(R);R.deviceToScreenId_[A.uuid]=A.id;_.Im("yt-remote-device-id-map",R.deviceToScreenId_,31536E3);return A},LXo=function(R){R=_.zx(R.automaticScreens_,function(A){return A.idType!="shortLived"});
_.Im("yt-remote-automatic-screen-cache",_.aS(R,$vj))},qbH=function(R){R.deviceToScreenId_=_.K1("yt-remote-device-id-map")||{}};
D6.prototype.dispose=D6.prototype.dispose;_.Pb(UG,_.$i);var XZ=function(R,A){R.screen_=A;R.publish("sessionScreen",R.screen_)},dvg=function(R,A){R.screen_&&(R.screen_.token=A,$$(R.JSC$19758_screenService_,R.screen_));
R.publish("sessionScreen",R.screen_)};
UG.prototype.onSessionStopped=function(R){this.isDisposed()||(R&&(SC(this,""+R),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
UG.prototype.info=function(R){QD(this.JSC$19758_logName_,R)};
var SC=function(R,A){QD(R.JSC$19758_logName_,A)};
UG.prototype.JSC$19760_getCastSession=function(){return null};
UG.prototype.setDisplayStatus=function(R){var A=this.receiver_;R?(A.displayStatus=new chrome.cast.ReceiverDisplayStatus(R,[]),A.displayStatus.showStop=!0):A.displayStatus=null;chrome.cast.setReceiverDisplayStatus(A,(0,_.Wv)(function(){this.info("Updated receiver status for "+A.friendlyName+": "+R)},this),(0,_.Wv)(function(){SC(this,"Failed to update receiver status for: "+A.friendlyName)},this))};
UG.prototype.disposeInternal=function(){this.setDisplayStatus("");UG.superClass_.disposeInternal.call(this)};var Il=function(R,A,Y){UG.call(this,R,A,"CastSession");var P=this;this.config_=Y;this.JSC$19763_session_=null;this.JSC$19763_boundSessionUpdate_=(0,_.Wv)(this.JSC$19765_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Wv)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.JN(function(){RvF(P,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$19763_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$19763_isInitLoungeToken_=!1;this.JSC$19763_lastLoungeTokenRefreshError_="unknown"};
_.H(Il,UG);_.l=Il.prototype;
_.l.setCastSession=function(R){if(this.JSC$19763_session_){if(this.JSC$19763_session_==R)return;SC(this,"Overriding cast session with new session object");ACG(this);this.JSC$19763_isInitLoungeToken_=!1;this.JSC$19763_lastLoungeTokenRefreshError_="unknown";this.JSC$19763_session_.removeUpdateListener(this.JSC$19763_boundSessionUpdate_);this.JSC$19763_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$19763_session_=R;this.JSC$19763_session_.addUpdateListener(this.JSC$19763_boundSessionUpdate_);this.JSC$19763_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);YHg(this,"getMdxSessionStatus")};
_.l.launchWithParams=function(R){this.info("launchWithParams no-op for Cast: "+(0,_.pA)(R))};
_.l.stop=function(){if(this.JSC$19763_session_)this.JSC$19763_session_.stop((0,_.Wv)(function(){this.onSessionStopped()},this),(0,_.Wv)(function(){this.onSessionStopped(Error("Xk"))},this));
else this.onSessionStopped(Error("Yk"))};
_.l.setDisplayStatus=function(){};
_.l.disposeInternal=function(){this.info("disposeInternal");ACG(this);this.JSC$19763_session_&&(this.JSC$19763_session_.removeUpdateListener(this.JSC$19763_boundSessionUpdate_),this.JSC$19763_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$19763_session_=null;UG.prototype.disposeInternal.call(this)};
var EXY=function(R,A){_.mT(R.getLoungeTokenTimeoutKey_);R.getLoungeTokenTimeoutKey_=0;A==0?Pgi(R):R.getLoungeTokenTimeoutKey_=_.JN(function(){Pgi(R)},A)},Pgi=function(R){YHg(R,"getLoungeToken");
_.mT(R.onLoungeTokenTimeoutKey_);R.onLoungeTokenTimeoutKey_=_.JN(function(){zvn(R,null)},3E4)},YHg=function(R,A){R.info("sendYoutubeMessage_: "+A+" "+(0,_.pA)(void 0));
var Y={};Y.type=A;R.JSC$19763_session_?R.JSC$19763_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",Y,function(){},(0,_.Wv)(function(){SC(this,"Failed to send message: "+A+".")},R)):SC(R,"Sending yt message without session: "+(0,_.pA)(Y))};
Il.prototype.onYoutubeMessage_=function(R,A){if(!this.isDisposed())if(A)if(A=(0,_.We)(A),_.ZI(A))switch(R=""+A.type,A=A.data||{},this.info("onYoutubeMessage_: "+R+" "+(0,_.pA)(A)),R){case "mdxSessionStatus":RvF(this,A);break;case "loungeToken":zvn(this,A);break;default:SC(this,"Unknown youtube message: "+R)}else SC(this,"Unable to parse message.");else SC(this,"No data in message.")};
var ipo=function(R,A){if(A)R.info("onConnectedScreenId_: Received screenId: "+A),R.screen_&&R.screen_.id==A||R.getScreen_(A,function(Y){XZ(R,Y)},function(){return R.onSessionStopped()},5);
else R.onSessionStopped(Error("Zk"))},xug=function(R,A,Y){R.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(A));
var P=new sG(A);lPH(R,P,function(E){E?(R.JSC$19763_isInitLoungeToken_=!0,$$(R.JSC$19758_screenService_,P),XZ(R,P),R.JSC$19763_lastLoungeTokenRefreshError_="unknown",EXY(R,Y)):(_.hv(Error("$k`"+JSON.stringify(A))),R.onSessionStopped())},5)},RvF=function(R,A){_.mT(R.sessionStatusTimeoutKey_);
R.sessionStatusTimeoutKey_=0;if(A)R.config_.enableCastLoungeToken&&A.loungeToken?A.deviceId?R.screen_&&R.screen_.uuid==A.deviceId||(A.loungeTokenRefreshIntervalMs?xug(R,{name:R.receiver_.friendlyName,screenId:A.screenId,loungeToken:A.loungeToken,dialId:A.deviceId,screenIdType:"shortLived"},A.loungeTokenRefreshIntervalMs):(_.hv(Error("bl`"+JSON.stringify(A))),ipo(R,A.screenId))):(_.hv(Error("al`"+JSON.stringify(A))),ipo(R,A.screenId)):ipo(R,A.screenId);else R.onSessionStopped(Error("Zk"))},zvn=function(R,
A){_.mT(R.onLoungeTokenTimeoutKey_);
R.onLoungeTokenTimeoutKey_=0;var Y=null;if(A)if(A.loungeToken){var P;((P=R.screen_)==null?void 0:P.token)==A.loungeToken&&(Y="staleLoungeToken")}else Y="missingLoungeToken";else Y="noLoungeTokenResponse";Y?(R.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(A)+", error: "+Y)),R.JSC$19763_lastLoungeTokenRefreshError_=Y,EXY(R,3E4)):(dvg(R,A.loungeToken),R.JSC$19763_isInitLoungeToken_=!1,R.JSC$19763_lastLoungeTokenRefreshError_="unknown",EXY(R,A.loungeTokenRefreshIntervalMs))};
Il.prototype.getScreen_=function(R,A,Y,P){_.mT(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;ttW(this.JSC$19758_screenService_,this.receiver_.label,R,this.receiver_.friendlyName,(0,_.Wv)(function(E){E?A(E):P>=0?(SC(this,"Screen "+R+" appears to be offline. "+P+" retries left."),this.getScreenTimeoutKey_=_.JN((0,_.Wv)(this.getScreen_,this,R,A,Y,P-1),300)):Y(Error("cl"))},this),Y)};
var lPH=function(R,A,Y,P){_.mT(R.JSC$19763_checkScreenAvailabilityTimeoutKey_);R.JSC$19763_checkScreenAvailabilityTimeoutKey_=0;uPo(R.JSC$19758_screenService_,A,function(E){E||P<0?Y(E):R.JSC$19763_checkScreenAvailabilityTimeoutKey_=_.JN(function(){lPH(R,A,Y,P-1)},300)})};
Il.prototype.JSC$19760_getCastSession=function(){return this.JSC$19763_session_};
Il.prototype.JSC$19765_onSessionUpdate_=function(R){this.isDisposed()||R||(SC(this,"Cast session died."),this.onSessionStopped())};
var ACG=function(R){_.mT(R.getScreenTimeoutKey_);R.getScreenTimeoutKey_=0;_.mT(R.JSC$19763_checkScreenAvailabilityTimeoutKey_);R.JSC$19763_checkScreenAvailabilityTimeoutKey_=0;_.mT(R.sessionStatusTimeoutKey_);R.sessionStatusTimeoutKey_=0;_.mT(R.onLoungeTokenTimeoutKey_);R.onLoungeTokenTimeoutKey_=0;_.mT(R.getLoungeTokenTimeoutKey_);R.getLoungeTokenTimeoutKey_=0};var K3=function(R,A,Y,P){UG.call(this,R,A,"DialSession");this.config_=P;this.JSC$19767_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$19767_theme_=Y;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$19767_deferredLaunchDeadlineTimer_=NaN;this.JSC$19767_boundSessionUpdate_=(0,_.Wv)(this.JSC$19769_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$19767_checkScreenAvailabilityTimeoutKey_=0;this.JSC$19767_isInitLoungeToken_=!1;this.JSC$19767_lastLoungeTokenRefreshError_="unknown"};
_.H(K3,UG);K3.prototype.setCastSession=function(R){this.JSC$19767_session_=R;this.JSC$19767_session_.addUpdateListener(this.JSC$19767_boundSessionUpdate_)};
K3.prototype.launchWithParams=function(R){this.connectData_=R;this.deferredLaunch_()};
K3.prototype.stop=function(){cCm(this);if(this.JSC$19767_session_)this.JSC$19767_session_.stop((0,_.Wv)(this.onSessionStopped,this,null),(0,_.Wv)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
K3.prototype.disposeInternal=function(){cCm(this);this.JSC$19767_session_&&this.JSC$19767_session_.removeUpdateListener(this.JSC$19767_boundSessionUpdate_);this.JSC$19767_session_=null;UG.prototype.disposeInternal.call(this)};
var Opg=function(R){var A;return!!(R.config_.enableDialLoungeToken&&((A=R.JSC$19767_session_)==null?0:A.getDialAppInfo))},ML0=function(R){R.cancelPolling_=R.JSC$19758_screenService_.JSC$19756_getScreenByPollingPairingCode(R.reversePairingCode_,R.receiver_.label,R.receiver_.friendlyName,Opg(R),function(A,Y){R.cancelPolling_=function(){};
R.JSC$19767_isInitLoungeToken_=!0;XZ(R,A);A.idType=="shortLived"&&Y>0&&WB(R,Y)},function(A){R.cancelPolling_=function(){};
R.onSessionStopped(A)})};
K3.prototype.JSC$19769_onSessionUpdate_=function(R){this.isDisposed()||R||(SC(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var szm=function(R){var A={};A.pairingCode=R.reversePairingCode_;A.theme=R.JSC$19767_theme_;bGH()&&(A.env_useStageMdx=1);return _.vU(A)},Nyj=function(R){return new Promise(function(A){R.reversePairingCode_=Q6m();
if(R.connectData_){var Y=new chrome.cast.DialLaunchResponse(!0,szm(R));A(Y);ML0(R)}else R.deferredLaunch_=function(){_.mT(R.JSC$19767_deferredLaunchDeadlineTimer_);R.deferredLaunch_=function(){};
R.JSC$19767_deferredLaunchDeadlineTimer_=NaN;var P=new chrome.cast.DialLaunchResponse(!0,szm(R));A(P);ML0(R)},R.JSC$19767_deferredLaunchDeadlineTimer_=_.JN(function(){R.deferredLaunch_()},100)})},JCY=function(R,A,Y){R.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(A));
var P=new sG(A);return(new Promise(function(E){VLQ(R,P,function(z){z?(R.JSC$19767_isInitLoungeToken_=!0,$$(R.JSC$19758_screenService_,P),XZ(R,P),WB(R,Y)):_.hv(Error("el`"+JSON.stringify(A)));E(z)},5)})).then(function(E){return E?new chrome.cast.DialLaunchResponse(!1):Nyj(R)})},yCY=function(R,A){var Y=R.launchData_.receiver.label,P=R.receiver_.friendlyName;
return(new Promise(function(E){ttW(R.JSC$19758_screenService_,Y,A,P,function(z){z&&z.token&&XZ(R,z);E(z)},function(z){SC(R,"Failed to get DIAL screen: "+z);
E(null)})})).then(function(E){return E&&E.token?new chrome.cast.DialLaunchResponse(!1):Nyj(R)})},VLQ=function(R,A,Y,P){_.mT(R.JSC$19767_checkScreenAvailabilityTimeoutKey_);
R.JSC$19767_checkScreenAvailabilityTimeoutKey_=0;uPo(R.JSC$19758_screenService_,A,function(E){E||P<0?Y(E):R.JSC$19767_checkScreenAvailabilityTimeoutKey_=_.JN(function(){VLQ(R,A,Y,P-1)},300)})},WB=function(R,A){R.info("getDialAppInfoWithTimeout_ "+A);
Opg(R)&&(_.mT(R.getDialAppInfoTimeoutKey_),R.getDialAppInfoTimeoutKey_=0,A==0?muH(R):R.getDialAppInfoTimeoutKey_=_.JN(function(){muH(R)},A))},muH=function(R){Opg(R)&&R.JSC$19767_session_.getDialAppInfo(function(A){R.info("getDialAppInfo dialLaunchData: "+JSON.stringify(A));
A=A.extraData||{};var Y=null;if(A.loungeToken){var P;((P=R.screen_)==null?void 0:P.token)==A.loungeToken&&(Y="staleLoungeToken")}else Y="missingLoungeToken";Y?(R.JSC$19767_lastLoungeTokenRefreshError_=Y,WB(R,3E4)):(R.JSC$19767_isInitLoungeToken_=!1,R.JSC$19767_lastLoungeTokenRefreshError_="unknown",dvg(R,A.loungeToken),WB(R,A.loungeTokenRefreshIntervalMs))},function(A){R.info("getDialAppInfo error: "+A);
R.JSC$19767_lastLoungeTokenRefreshError_="noLoungeTokenResponse";WB(R,3E4)})},cCm=function(R){_.mT(R.JSC$19767_checkScreenAvailabilityTimeoutKey_);
R.JSC$19767_checkScreenAvailabilityTimeoutKey_=0;_.mT(R.getDialAppInfoTimeoutKey_);R.getDialAppInfoTimeoutKey_=0;R.cancelPolling_();R.cancelPolling_=function(){};
_.mT(R.JSC$19767_deferredLaunchDeadlineTimer_)};var jC=function(R,A){UG.call(this,R,A,"ManualSession");this.JSC$19771_deferredLaunchDeadlineTimer_=_.JN((0,_.Wv)(this.launchWithParams,this,null),150)};
_.H(jC,UG);jC.prototype.stop=function(){this.onSessionStopped()};
jC.prototype.setCastSession=function(){};
jC.prototype.launchWithParams=function(){_.mT(this.JSC$19771_deferredLaunchDeadlineTimer_);this.JSC$19771_deferredLaunchDeadlineTimer_=NaN;var R=VD(this.JSC$19758_screenService_.getScreens(),this.receiver_.label);if(R)XZ(this,R);else this.onSessionStopped(Error("fl"))};
jC.prototype.disposeInternal=function(){_.mT(this.JSC$19771_deferredLaunchDeadlineTimer_);this.JSC$19771_deferredLaunchDeadlineTimer_=NaN;UG.prototype.disposeInternal.call(this)};var I5=function(R,A){_.$i.call(this);this.config_=A;this.JSC$19774_screenService_=R;this.JSC$19774_appId_=A.appId||"233637DE";this.JSC$19774_theme_=A.theme||"cl";this.disableDial_=A.disableCastApi||!1;this.forceMirroring_=A.forceMirroring||!1;this.JSC$19774_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Wv)(this.onReceiverAction_,this)};
_.H(I5,_.$i);
I5.prototype.init=function(R,A){chrome.cast.timeout.requestSession=3E4;var Y=new chrome.cast.SessionRequest(this.JSC$19774_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.v("desktop_enable_cast_connect")&&(Y.androidReceiverCompatible=!0);this.disableDial_||(Y.dialRequest=new chrome.cast.DialRequest("YouTube"));var P=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;R=R||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var E=(0,_.Wv)(this.onReceiverUpdated_,
this);Y=new chrome.cast.ApiConfig(Y,(0,_.Wv)(this.onSessionEstablished_,this),E,P,R);Y.customDialLaunchCallback=(0,_.Wv)(this.onDialLaunchRequested_,this);chrome.cast.initialize(Y,(0,_.Wv)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),owN(),this.JSC$19774_screenService_.subscribe("onlineScreenChange",(0,_.Wv)(this.JSC$19776_onScreenChange_,this)),this.customReceivers_=TyW(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Wv)(function(z){this.warn_("Failed to set initial custom receivers: "+(0,_.pA)(z))},this)),this.publish("yt-remote-cast2-availability-change",b7(this)),A(!0))},this),(0,_.Wv)(function(z){this.warn_("Failed to initialize API: "+(0,_.pA)(z));
A(!1)},this))};
I5.prototype.setConnectedScreenStatus=function(R,A){f3("Setting connected screen ID: "+R+" -> "+A);if(this.JSC$19774_session_){var Y=this.JSC$19774_session_.screen_;if(!R||Y&&Y.id!=R)f3("Unsetting old screen status: "+this.JSC$19774_session_.receiver_.friendlyName),p3(this,null)}if(R&&A){if(!this.JSC$19774_session_){R=VD(this.JSC$19774_screenService_.getScreens(),R);if(!R){f3("setConnectedScreenStatus: Unknown screen.");return}if(R.idType=="shortLived"){f3("setConnectedScreenStatus: Screen with id type to be short lived.");
return}Y=Qzj(this,R);Y||(f3("setConnectedScreenStatus: Connected receiver not custom..."),Y=new chrome.cast.Receiver(R.uuid?R.uuid:R.id,R.name),Y.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(Y),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Wv)(function(P){this.warn_("Failed to set initial custom receivers: "+(0,_.pA)(P))},this)));
f3("setConnectedScreenStatus: new active receiver: "+Y.friendlyName);p3(this,new jC(this.JSC$19774_screenService_,Y),!0)}this.JSC$19774_session_.setDisplayStatus(A)}else f3("setConnectedScreenStatus: no screen.")};
var Qzj=function(R,A){return A?_.jP(R.customReceivers_,function(Y){return N$(A,Y.label)},R):null};
I5.prototype.setLaunchParams=function(R){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$19774_session_?this.JSC$19774_session_.launchWithParams(R):this.warn_("Setting connection data without a session")};
I5.prototype.JSC$19776_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$19774_session_?(this.JSC$19774_session_.stop(),p3(this,null)):f3("Stopping non-existing session")};
I5.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Wv)(this.onSessionEstablished_,this),(0,_.Wv)(this.onSessionRequestFailed_,this))};
I5.prototype.disposeInternal=function(){this.JSC$19774_screenService_.unsubscribe("onlineScreenChange",(0,_.Wv)(this.JSC$19776_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.ak(_.Zr("yt.mdx.remote.debug.handlers_")||[],aoG);_.lt(this.JSC$19774_session_);_.$i.prototype.disposeInternal.call(this)};
var f3=function(R){QD("Controller",R)};
I5.prototype.warn_=function(R){QD("Controller",R)};
var aoG=function(R){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(R)},b7=function(R){return R.hasCastReceiver_||!!R.customReceivers_.length||!!R.JSC$19774_session_},p3=function(R,A,Y){A!=R.JSC$19774_session_&&(_.lt(R.JSC$19774_session_),(R.JSC$19774_session_=A)?(Y?R.publish("yt-remote-cast2-receiver-resumed",A.receiver_):R.publish("yt-remote-cast2-receiver-selected",A.receiver_),A.subscribe("sessionScreen",(0,_.Wv)(R.onSessionScreen_,R,A)),A.subscribe("sessionFailed",
function(){return vXN(R,A)}),A.screen_?R.publish("yt-remote-cast2-session-change",A.screen_):Y&&R.JSC$19774_session_.launchWithParams(null)):R.publish("yt-remote-cast2-session-change",null))},vXN=function(R,A){R.JSC$19774_session_==A&&R.publish("yt-remote-cast2-session-failed")};
_.l=I5.prototype;_.l.onSessionScreen_=function(R,A){this.JSC$19774_session_==R&&(A||p3(this,null),this.publish("yt-remote-cast2-session-change",A))};
_.l.onReceiverAction_=function(R,A){if(!this.isDisposed())if(R)switch(R.friendlyName=chrome.cast.unescape(R.friendlyName),f3("onReceiverAction_ "+R.label+" / "+R.friendlyName+"-- "+A),A){case chrome.cast.ReceiverAction.CAST:if(this.JSC$19774_session_)if(this.JSC$19774_session_.receiver_.label!=R.label)f3("onReceiverAction_: Stopping active receiver: "+this.JSC$19774_session_.receiver_.friendlyName),this.JSC$19774_session_.stop();else{f3("onReceiverAction_: Casting to active receiver.");this.JSC$19774_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$19774_session_.screen_);break}switch(R.receiverType){case chrome.cast.ReceiverType.CUSTOM:p3(this,new jC(this.JSC$19774_screenService_,R));break;case chrome.cast.ReceiverType.DIAL:p3(this,new K3(this.JSC$19774_screenService_,R,this.JSC$19774_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:p3(this,new Il(this.JSC$19774_screenService_,R,this.config_));break;default:this.warn_("Unknown receiver type: "+R.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$19774_session_&&
this.JSC$19774_session_.receiver_.label==R.label?this.JSC$19774_session_.stop():this.warn_("Stopping receiver w/o session: "+R.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.l.onDialLaunchRequested_=function(R){if(this.isDisposed())return Promise.reject(Error("gl"));var A=R.receiver;A.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+A.friendlyName),A.receiverType=chrome.cast.ReceiverType.DIAL);var Y=this.JSC$19774_session_?this.JSC$19774_session_.receiver_:null;if(!Y||Y.label!=A.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+A.friendlyName),Promise.reject(Error("hl"));if(Y&&Y.label==A.label&&Y.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$19774_session_.screen_)return f3("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$19774_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+Y.receiverType+'" to "dial" for '+A.friendlyName);p3(this,new K3(this.JSC$19774_screenService_,A,this.JSC$19774_theme_,this.config_))}A=this.JSC$19774_session_;A.launchData_=R;A.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(R=A.launchData_.extraData||{},Y=R.screenId||null,Opg(A)&&R.loungeToken?R.loungeTokenRefreshIntervalMs?R=JCY(A,{name:A.receiver_.friendlyName,screenId:R.screenId,loungeToken:R.loungeToken,dialId:A.launchData_.receiver.label,screenIdType:"shortLived"},R.loungeTokenRefreshIntervalMs):(_.hv(Error("dl`"+JSON.stringify(R))),R=yCY(A,Y)):R=yCY(A,Y)):R=Nyj(A);return R};
_.l.onSessionEstablished_=function(R){var A=this;if(!this.isDisposed()&&!this.forceMirroring_){f3("New cast session ID: "+R.sessionId);var Y=R.receiver;if(Y.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$19774_session_)if(Y.receiverType==chrome.cast.ReceiverType.CAST)f3("Got resumed cast session before resumed mdx connection."),Y.friendlyName=chrome.cast.unescape(Y.friendlyName),p3(this,new Il(this.JSC$19774_screenService_,Y,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var P=this.JSC$19774_session_.receiver_,E=VD(this.JSC$19774_screenService_.getScreens(),P.label);E&&N$(E,Y.label)&&P.receiverType!=chrome.cast.ReceiverType.CAST&&Y.receiverType==chrome.cast.ReceiverType.CAST&&(f3("onSessionEstablished_: manual to cast session change "+Y.friendlyName),_.lt(this.JSC$19774_session_),this.JSC$19774_session_=new Il(this.JSC$19774_screenService_,Y,this.config_),this.JSC$19774_session_.subscribe("sessionScreen",(0,_.Wv)(this.onSessionScreen_,this,this.JSC$19774_session_)),
this.JSC$19774_session_.subscribe("sessionFailed",function(){return vXN(A,A.JSC$19774_session_)}),this.JSC$19774_session_.launchWithParams(null));
this.JSC$19774_session_.setCastSession(R)}}};
_.l.JSC$19776_getCastSession=function(){return this.JSC$19774_session_?this.JSC$19774_session_.JSC$19760_getCastSession():null};
_.l.onSessionRequestFailed_=function(R){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.pA)(R)),R.code!=chrome.cast.ErrorCode.CANCEL&&p3(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.l.onReceiverUpdated_=function(R){f3("Receiver availability updated: "+R);if(!this.isDisposed()){var A=b7(this);this.hasCastReceiver_=R==chrome.cast.ReceiverAvailability.AVAILABLE;b7(this)!=A&&this.publish("yt-remote-cast2-availability-change",b7(this))}};
var TyW=function(R){var A=R.JSC$19774_screenService_.JSC$19756_getOnlineScreens(),Y=R.JSC$19774_session_&&R.JSC$19774_session_.receiver_;R=_.aS(A,function(P){Y&&N$(P,Y.label)&&(Y=null);var E=P.uuid?P.uuid:P.id,z=Qzj(this,P);z?(z.label=E,z.friendlyName=P.name):(z=new chrome.cast.Receiver(E,P.name),z.receiverType=chrome.cast.ReceiverType.CUSTOM);return z},R);
Y&&(Y.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(Y=new chrome.cast.Receiver(Y.label,Y.friendlyName),Y.receiverType=chrome.cast.ReceiverType.CUSTOM),R.push(Y));return R};
I5.prototype.JSC$19776_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=TyW(this),f3("Updating custom receivers: "+(0,_.pA)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Wv)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",b7(this)))};
I5.prototype.setLaunchParams=I5.prototype.setLaunchParams;I5.prototype.setConnectedScreenStatus=I5.prototype.setConnectedScreenStatus;I5.prototype.stopSession=I5.prototype.JSC$19776_stopSession;I5.prototype.getCastSession=I5.prototype.JSC$19776_getCastSession;I5.prototype.requestSession=I5.prototype.requestSession;I5.prototype.init=I5.prototype.init;I5.prototype.dispose=I5.prototype.dispose;var gXG=_.Z7(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),V5Y=[],P4Q=_.Jr(gXG);var nXH=function(R){R.audioTrackId=null;R.trackData=null;R.playerState=-1;R.hasPrevious=!1;R.hasNext=!1;R.playerTime_=0;R.playerTimeAt_=_.YB();R.seekableStart_=0;R.seekableEnd_=0;R.duration_=0;R.loadedTime=0;R.liveIngestionTime_=NaN;R.isLive_=!1};
_.l=KE.prototype;
_.l.reset=function(R){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;R&&(this.index=R.index,this.listId=R.listId,this.videoId=R.videoId,this.playerState=R.playerState,this.volume=R.volume,this.muted=R.muted,this.audioTrackId=R.audioTrackId,this.trackData=R.trackData,this.hasPrevious=R.hasPrevious,this.hasNext=R.hasNext,this.playerTime_=R.playerTime,this.playerTimeAt_=R.playerTimeAt,this.seekableStart_=R.seekableStart,this.seekableEnd_=R.seekableEnd,this.duration_=R.duration,this.loadedTime=
R.loadedTime,this.liveIngestionTime_=R.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.l.stopPlayer=function(){this.index=-1;this.videoId="";nXH(this)};
_.l.isPlaying=function(){return this.playerState==1};
_.l.isBuffering=function(){return this.playerState==3};
_.l.isAdPlaying=function(){return this.playerState==1081};
var FZ=function(R,A){R.playerTime_=A;R.playerTimeAt_=_.YB()},Hp9=function(R){switch(R.playerState){case 1:case 1081:return(_.YB()-R.playerTimeAt_)/1E3+R.playerTime_;
case -1E3:return 0}return R.playerTime_};
KE.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.YB()-this.playerTimeAt_)/1E3:0):this.duration_};
var rCm=function(R,A,Y){var P=R.videoId;R.videoId=A;R.index=Y;A!=P&&nXH(R)},DuY=function(R){var A={};
A.index=R.index;A.listId=R.listId;A.videoId=R.videoId;A.playerState=R.playerState;A.volume=R.volume;A.muted=R.muted;A.audioTrackId=R.audioTrackId;A.trackData=_.BO.unsafeClone(R.trackData);A.hasPrevious=R.hasPrevious;A.hasNext=R.hasNext;A.playerTime=R.playerTime_;A.playerTimeAt=R.playerTimeAt_;A.seekableStart=R.seekableStart_;A.seekableEnd=R.seekableEnd_;A.duration=R.duration_;A.loadedTime=R.loadedTime;A.liveIngestionTime=R.liveIngestionTime_;return A};
KE.prototype.clone=function(){return new KE(DuY(this))};var BB=function(R,A){_.$i.call(this);var Y=this;this.state_=0;this.connection_=R;this.contextSubscriptions_=[];this.actionQueue_=new OGi;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Wv)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Wv)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Wv)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Wv)(this.onCloudviewAvailabilityChange_,this);var P=0;R?(P=R.getProxyState(),
P!=3&&(R.subscribe("proxyStateChange",this.setState_,this),UuY(this))):P=3;P!=0&&(A?this.setState_(P):_.JN(function(){Y.setState_(P)},0));
(R=TUG())&&$uY(this,R);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.H(BB,_.$i);BB.prototype.getState=function(){return this.state_};
BB.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
BB.prototype.reconnect=function(){this.connection_.reconnect()};
var al=function(R){return new KE(R.connection_.getPlayerContextData())};
_.l=BB.prototype;_.l.play=function(){C3(this)?(this.castMedia_?this.castMedia_.play(null,_.r$,Xfm(this,"play")):h3(this,"play"),SHg(this,1,Hp9(al(this))),this.publish("remotePlayerChange")):ol(this,this.play)};
_.l.pause=function(){C3(this)?(this.castMedia_?this.castMedia_.pause(null,_.r$,Xfm(this,"pause")):h3(this,"pause"),SHg(this,2,Hp9(al(this))),this.publish("remotePlayerChange")):ol(this,this.pause)};
_.l.seekTo=function(R){if(C3(this)){if(this.castMedia_){var A=al(this),Y=new chrome.cast.media.SeekRequest;Y.currentTime=R;A.isPlaying()||A.isBuffering()?Y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:Y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(Y,_.r$,Xfm(this,"seekTo",{newTime:R}))}else h3(this,"seekTo",{newTime:R});SHg(this,3,R);this.publish("remotePlayerChange")}else ol(this,_.nj(this.seekTo,R))};
_.l.stop=function(){if(C3(this)){this.castMedia_?this.castMedia_.stop(null,_.r$,Xfm(this,"stopVideo")):h3(this,"stopVideo");var R=al(this);R.stopPlayer();k$(this,R);this.publish("remotePlayerChange")}else ol(this,this.stop)};
_.l.setVolume=function(R,A){if(C3(this)){var Y=al(this);if(this.castSession_){if(Y.volume!=R){var P=Math.round(R)/100;this.castSession_.setReceiverVolumeLevel(P,(0,_.Wv)(function(){vQ("set receiver volume: "+P)},this),(0,_.Wv)(function(){this.warn_("failed to set receiver volume.")},this))}Y.muted!=A&&this.castSession_.setReceiverMuted(A,(0,_.Wv)(function(){vQ("set receiver muted: "+A)},this),(0,_.Wv)(function(){this.warn_("failed to set receiver muted.")},this))}else{var E={volume:R,
muted:A};Y.volume!=-1&&(E.delta=R-Y.volume);h3(this,"setVolume",E)}Y.muted=A;Y.volume=R;k$(this,Y)}else ol(this,_.nj(this.setVolume,R,A))};
_.l.setAudioTrack=function(R,A){C3(this)?(A=A.getLanguageInfo().getId(),h3(this,"setAudioTrack",{videoId:R,audioTrackId:A}),R=al(this),R.audioTrackId=A,k$(this,R)):ol(this,_.nj(this.setAudioTrack,R,A))};
_.l.addVideo=function(R){C3(this)?h3(this,"addVideo",{videoId:R}):ol(this,_.nj(this.addVideo,R))};
_.l.addPlaylist=function(R){C3(this)?h3(this,"addVideos",{listId:R}):ol(this,_.nj(this.addPlaylist,R))};
_.l.addVideos=function(R){R.length==0?this.warn_("Ignore add videos request due to empty list"):C3(this)?h3(this,"addVideos",{videoIds:R.join(",")}):ol(this,_.nj(this.addVideos,R))};
_.l.JSC$19786_removeVideo=function(R){C3(this)?h3(this,"removeVideo",{videoId:R}):ol(this,_.nj(this.JSC$19786_removeVideo,R))};
_.l.JSC$19786_insertVideo=function(R){C3(this)?h3(this,"insertVideo",{videoId:R}):ol(this,_.nj(this.JSC$19786_insertVideo,R))};
_.l.playVideo=function(R,A,Y,P,E,z,c){P=P===void 0?null:P;E=E===void 0?null:E;z=z===void 0?null:z;c=c===void 0?null:c;var M=al(this),N={videoId:R};Y!==void 0&&(N.currentIndex=Y);rCm(M,R,Y||0);A!==void 0&&(FZ(M,A),N.currentTime=A);P&&(N.listId=P);E&&(N.playerParams=E);z&&(N.clickTrackingParams=z);c&&(N.locationInfo=(0,_.pA)(c));h3(this,"setPlaylist",N);P||k$(this,M)};
_.l.nextVideo=function(R,A){if(C3(this)){if(R&&A){var Y=al(this);rCm(Y,R,A);k$(this,Y)}h3(this,"next")}else ol(this,_.nj(this.nextVideo,R,A))};
_.l.clearPlaylist=function(){if(C3(this)){h3(this,"clearPlaylist");var R=al(this);R.reset();k$(this,R);this.publish("remotePlayerChange")}else ol(this,this.clearPlaylist)};
_.l.dispose=function(){if(this.state_!=3){var R=this.state_;this.state_=3;this.publish("proxyStateChange",R,this.state_)}_.$i.prototype.dispose.call(this)};
_.l.disposeInternal=function(){IPn(this);this.connection_=null;this.actionQueue_.clear();$uY(this,null);_.$i.prototype.disposeInternal.call(this)};
var UuY=function(R){_.uI("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(A){this.contextSubscriptions_.push(this.connection_.subscribe(A,_.nj(this.onProxyEvent_,A),this))},R)},IPn=function(R){_.uI(R.contextSubscriptions_,function(A){this.connection_.unsubscribeByKey(A)},R);
R.contextSubscriptions_.length=0},C3=function(R){return R.getState()==1},ol=function(R,A){R.actionQueue_.getCount()<50&&R.actionQueue_.enqueue(A)},SHg=function(R,A,Y){var P=al(R);
FZ(P,Y);P.playerState!=-1E3&&(P.playerState=A);k$(R,P)},h3=function(R,A,Y){R.connection_.sendMessage(A,Y)},k$=function(R,A){IPn(R);
R.connection_.setPlayerContextData(DuY(A));UuY(R)};
BB.prototype.setState_=function(R){if((R!=this.state_||R==2)&&this.state_!=3&&R!=0){var A=this.state_;this.state_=R;this.publish("proxyStateChange",A,R);if(R==1)for(;!this.actionQueue_.isEmpty();)R=this.actionQueue_,GD0(R),R.front_.pop().apply(this);else R==3&&this.dispose()}};
BB.prototype.onProxyEvent_=function(R,A){this.publish(R,A)};
var $uY=function(R,A){R.castSession_&&(R.castSession_.removeUpdateListener(R.boundCastStatusListener_),R.castSession_.removeMediaListener(R.boundCastMediaListener_),R.onCastMediaChange_(null));R.castSession_=A;if(R.castSession_&&(vQ("Setting cast session: "+R.castSession_.sessionId),R.castSession_.addUpdateListener(R.boundCastStatusListener_),R.castSession_.addMediaListener(R.boundCastMediaListener_),R.castSession_.media.length))R.onCastMediaChange_(R.castSession_.media[0])};
BB.prototype.onCastStatusUpdate_=function(R){if(!R)this.onCastMediaChange_(null),$uY(this,null);else if(this.castSession_.receiver.volume){R=this.castSession_.receiver.volume;var A=al(this),Y=Math.round(100*R.level||0);if(A.volume!=Y||A.muted!=R.muted)vQ("Cast volume update: "+R.level+(R.muted?" muted":"")),A.volume=Y,A.muted=!!R.muted,k$(this,A)}};
BB.prototype.onCastMediaChange_=function(R){vQ("Cast media: "+!!R);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=R)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),KuN(this),this.publish("remotePlayerChange")};
var KuN=function(R){var A=R.castMedia_.media,Y=R.castMedia_.customData;if(A&&Y){var P=al(R);A.contentId!=P.videoId&&vQ("Cast changing video to: "+A.contentId);P.videoId=A.contentId;P.playerState=Y.playerState;FZ(P,R.castMedia_.getEstimatedTime());k$(R,P)}else vQ("No cast media video. Ignoring state update.")};
BB.prototype.onCastMediaUpdate_=function(R){if(R)KuN(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
BB.prototype.onCloudviewAvailabilityChange_=function(){var R=TUG();R&&$uY(this,R)};
BB.prototype.warn_=function(R){QD("CP",R)};
var Xfm=function(R,A,Y){return(0,_.Wv)(function(P){this.warn_("Failed to "+A+" with cast v2 channel. Error code: "+P.code);P.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+A+" using MDx browser channel."),h3(this,A,Y))},R)};var Zy=function(R,A,Y,P){P=P===void 0?!1:P;_.$i.call(this);var E=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$19791_http_=R;this.enableConnectWithInitialState_=P;this.listeners_.push(_.Ya(window,"beforeunload",function(){E.JSC$19794_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new KE;this.currentScreenId_=A.id;this.currentScreenIdType_=A.idType;this.channelService=Bgo(this.JSC$19791_http_,Y,this.JSC$19794_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){WuF(E)});
this.channelService.listen("channelClosed",function(){Gh("Channel closed");isNaN(E.connectTimerId_)?JP(!0):JP();E.dispose()});
this.channelService.listen("channelError",function(z){JP();isNaN(E.getReconnectTimeout_())?(z==1&&E.currentScreenIdType_=="shortLived"&&E.publish("browserChannelAuthError",z),Gh("Channel error: "+z+" without reconnection"),E.dispose()):(E.reconnecting_=!0,Gh("Channel error: "+z+" with reconnection in "+E.getReconnectTimeout_()+" ms"),jzF(E,2))});
this.channelService.listen("channelMessage",function(z){bpQ(E,z)});
this.channelService.setLoungeToken(A.token);this.subscribe("remoteQueueChange",function(){var z=E.playerContext_.videoId;rhQ()&&_.Im("yt-remote-session-video-id",z)})};
_.H(Zy,_.$i);
Zy.prototype.connect=function(R,A){if(A){var Y=A.listId,P=A.videoId,E=A.videoIds,z=A.playerParams,c=A.clickTrackingParams,M=A.index,N={videoId:P},y=A.currentTime,m=A.locationInfo;A=A.loopMode;y!==void 0&&(N.currentTime=y<=5?0:y);z&&(N.playerParams=z);m&&(N.locationInfo=m);c&&(N.clickTrackingParams=c);Y&&(N.listId=Y);E&&E.length>0&&(N.videoIds=E.join(","));M!==void 0&&(N.currentIndex=M);this.enableConnectWithInitialState_&&(N.loopMode=A||"LOOP_MODE_OFF");Y&&(this.playerContext_.listId=Y);this.playerContext_.videoId=
P;this.playerContext_.index=M||0;this.playerContext_.state=3;FZ(this.playerContext_,y);this.autoplayMode_="UNSUPPORTED";Y=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Gh("Connecting with "+Y+" and params: "+(0,_.pA)(N));this.channelService.connect({method:Y,params:(0,_.pA)(N)},R,SlQ())}else Gh("Connecting without params"),this.channelService.connect({},R,SlQ());fPQ(this)};
Zy.prototype.setLoungeToken=function(R){this.channelService.setLoungeToken(R)};
Zy.prototype.dispose=function(){this.isDisposed()||(_.PG("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),jzF(this,3));_.$i.prototype.dispose.call(this)};
Zy.prototype.disposeInternal=function(){pfH(this);FuQ(this);By9(this);_.mT(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.mT(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.ewu(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.$i.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var aP9=function(R){return _.jP(R.connectedDevices_,function(A){return A.type=="LOUNGE_SCREEN"})},Gh=function(R){QD("conn",R)},jzF=function(R,A){R.publish("proxyStateChange",A)},fPQ=function(R){R.connectTimerId_=_.JN(function(){Gh("Connecting timeout");
R.JSC$19794_disconnect_(1)},2E4)},pfH=function(R){_.mT(R.connectTimerId_);
R.connectTimerId_=NaN},By9=function(R){_.mT(R.reconnectedCheckScreenTimeout_);
R.reconnectedCheckScreenTimeout_=NaN},Cgf=function(R){FuQ(R);
R.playingSyncTimerId_=_.JN(function(){t3(R,"getNowPlaying")},2E4)},FuQ=function(R){_.mT(R.playingSyncTimerId_);
R.playingSyncTimerId_=NaN},WuF=function(R){Gh("Channel opened");
R.reconnecting_&&(R.reconnecting_=!1,By9(R),R.reconnectedCheckScreenTimeout_=_.JN(function(){Gh("Timing out waiting for a screen.");R.JSC$19794_disconnect_(1)},15E3))},oXY=function(R,A){var Y=null;
if(A){var P=aP9(R);P&&(Y={clientName:P.clientName,deviceMake:P.brand,deviceModel:P.model,osVersion:P.osVersion})}_.PG("yt.mdx.remote.remoteClient_",Y);A&&(pfH(R),By9(R));Y=R.channelService.isChannelOpened()&&isNaN(R.connectTimerId_);A==Y?A&&(jzF(R,1),t3(R,"getSubtitlesTrack")):A?(R.getOtherConnectedRemoteId_()&&R.playerContext_.reset(),jzF(R,1),t3(R,"getNowPlaying"),hvo(R)):R.JSC$19794_disconnect_(1)},kFW=function(R,A){var Y=A.params.videoId;
delete A.params.videoId;Y==R.playerContext_.videoId&&(_.BO.isEmpty(A.params)?R.playerContext_.trackData=null:R.playerContext_.trackData=A.params,R.publish("remotePlayerChange"))},GFH=function(R,A,Y){var P=A.params.videoId||A.params.video_id,E=parseInt(A.params.currentIndex,10);
R.playerContext_.listId=A.params.listId||R.playerContext_.listId;rCm(R.playerContext_,P,E);R.publish("remoteQueueChange",Y)},Zpf=function(R,A){A.params=A.params||{};
GFH(R,A,"NOW_PLAYING_MAY_CHANGE");R.onStateChange_(A);R.publish("autoplayDismissed")};
Zy.prototype.onStateChange_=function(R){var A=parseInt(R.params.currentTime||R.params.current_time,10);FZ(this.playerContext_,isNaN(A)?0:A);A=parseInt(R.params.state,10);A=isNaN(A)?-1:A;A==-1&&this.playerContext_.playerState==-1E3&&(A=-1E3);this.playerContext_.playerState=A;A=Number(R.params.loadedTime);this.playerContext_.loadedTime=isNaN(A)?0:A;A=Number(R.params.duration);this.playerContext_.duration_=isNaN(A)?0:A;A=this.playerContext_;var Y=Number(R.params.liveIngestionTime);A.liveIngestionTime_=
Y;A.isLive_=isNaN(Y)?!1:!0;A=this.playerContext_;Y=Number(R.params.seekableStartTime);R=Number(R.params.seekableEndTime);A.seekableStart_=isNaN(Y)?0:Y;A.seekableEnd_=isNaN(R)?0:R;this.playerContext_.playerState==1?Cgf(this):FuQ(this);this.publish("remotePlayerChange")};
Zy.prototype.onAdStateChange_=function(R){if(this.playerContext_.playerState!=-1E3){var A=1085;switch(parseInt(R.params.adState,10)){case 1:A=1081;break;case 2:A=1084;break;case 0:A=1083}this.playerContext_.playerState=A;R=parseInt(R.params.currentTime,10);FZ(this.playerContext_,isNaN(R)?0:R);this.publish("remotePlayerChange")}};
var tLi=function(R,A){var Y=A.params.muted=="true";R.playerContext_.volume=parseInt(A.params.volume,10);R.playerContext_.muted=Y;R.publish("remotePlayerChange")},wfn=function(R,A){R.autoplayVideoId_=A.params.videoId;
R.publish("nowAutoplaying",parseInt(A.params.timeout,10))},uyg=function(R,A){R.autoplayVideoId_=A.params.videoId||null;
R.publish("autoplayUpNext",R.autoplayVideoId_)},evf=function(R,A){R.autoplayMode_=A.params.autoplayMode;
R.publish("autoplayModeChange",R.autoplayMode_);R.autoplayMode_=="DISABLED"&&R.publish("autoplayDismissed")},qHj=function(R,A){var Y=A.params.hasNext=="true";
R.playerContext_.hasPrevious=A.params.hasPrevious=="true";R.playerContext_.hasNext=Y;R.publish("previousNextChange")};
Zy.prototype.isCapabilitySupportedOnConnectedDevices_=function(R){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var A=_.x(this.connectedDevices_),Y=A.next();!Y.done;Y=A.next())if(!Y.value.capabilities.has(R))return!1;return!0};
var bpQ=function(R,A){A=A.message;A.params?Gh("Received: action="+A.action+", params="+(0,_.pA)(A.params)):Gh("Received: action="+A.action+" {}");switch(A.action){case "loungeStatus":A=(0,_.We)(A.params.devices);R.connectedDevices_=_.aS(A,function(P){return new Dy(P)});
A=!!_.jP(R.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
oXY(R,A);A=R.isCapabilitySupportedOnConnectedDevices_("mlm");R.publish("multiStateLoopEnabled",A);break;case "loungeScreenDisconnected":oh0(R.connectedDevices_,function(P){return P.type=="LOUNGE_SCREEN"});
oXY(R,!1);break;case "remoteConnected":var Y=new Dy((0,_.We)(A.params.device));_.jP(R.connectedDevices_,function(P){return P.equals(Y)})||_.nqk(R.connectedDevices_,Y);
break;case "remoteDisconnected":Y=new Dy((0,_.We)(A.params.device));oh0(R.connectedDevices_,function(P){return P.equals(Y)});
break;case "gracefulDisconnect":break;case "playlistModified":GFH(R,A,"QUEUE_MODIFIED");break;case "nowPlaying":Zpf(R,A);break;case "onStateChange":R.onStateChange_(A);break;case "onAdStateChange":R.onAdStateChange_(A);break;case "onVolumeChanged":tLi(R,A);break;case "onSubtitlesTrackChanged":kFW(R,A);break;case "nowAutoplaying":wfn(R,A);break;case "autoplayDismissed":R.publish("autoplayDismissed");break;case "autoplayUpNext":uyg(R,A);break;case "onAutoplayModeChanged":evf(R,A);break;case "onHasPreviousNextChanged":qHj(R,
A);break;case "requestAssistedSignIn":R.publish("assistedSignInRequested",A.params.authCode);break;case "onLoopModeChanged":R.publish("loopModeChange",A.params.loopMode);break;default:Gh("Unrecognized action: "+A.action)}};
_.l=Zy.prototype;_.l.getProxyState_=function(){var R=3;this.isDisposed()||(R=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(R=1):R=2);return R};
_.l.JSC$19794_disconnect_=function(R){Gh("Disconnecting with "+R);_.PG("yt.mdx.remote.remoteClient_",null);pfH(this);this.publish("beforeDisconnect",R);R==1&&JP();this.channelService.disconnect(R);this.dispose()};
_.l.getPlayerContextData_=function(){var R=this.playerContext_;this.clientVideoId_&&(R=this.playerContext_.clone(),rCm(R,this.clientVideoId_,R.index));return DuY(R)};
_.l.setPlayerContextData_=function(R){var A=this,Y=new KE(R);Y.videoId&&Y.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=Y.videoId,_.mT(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.JN(function(){if(A.clientVideoId_){var E=A.clientVideoId_;A.clientVideoId_=null;A.playerContext_.videoId!=E&&t3(A,"getNowPlaying")}},5E3));
var P=[];this.playerContext_.listId==Y.listId&&this.playerContext_.videoId==Y.videoId&&this.playerContext_.index==Y.index||P.push("remoteQueueChange");this.playerContext_.playerState==Y.playerState&&this.playerContext_.volume==Y.volume&&this.playerContext_.muted==Y.muted&&Hp9(this.playerContext_)==Hp9(Y)&&(0,_.pA)(this.playerContext_.trackData)==(0,_.pA)(Y.trackData)||P.push("remotePlayerChange");this.playerContext_.reset(R);_.uI(P,function(E){this.publish(E)},this)};
_.l.getOtherConnectedRemoteId_=function(){var R=this.channelService.getDeviceId(),A=_.jP(this.connectedDevices_,function(Y){return Y.type=="REMOTE_CONTROL"&&Y.id!=R});
return A?A.id:""};
_.l.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.l.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.l.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.l.JSC$19794_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var hvo=function(R){_.mT(R.idleDisconnectTimerId_);R.idleDisconnectTimerId_=_.JN(function(){R.JSC$19794_disconnect_(1)},864E5)},t3=function(R,A,Y){Y?Gh("Sending: action="+A+", params="+(0,_.pA)(Y)):Gh("Sending: action="+A);
R.channelService.sendMessage(A,Y)};
Zy.prototype.sendMessageWithUserAction_=function(R,A){t3(this,R,A);hvo(this)};
Zy.prototype.JSC$19794_getXsrfToken_=function(){var R=_.HU.get("SAPISID","")||_.HU.get("__Secure-1PAPISID",void 0)||"",A=_.HU.get("__Secure-3PAPISID","")||"";if(!R&&!A)return"";R=_.WF(_.IX(R),2);A=_.WF(_.IX(A),2);return _.WF(_.IX(","+R+","+A),2)};
Zy.prototype.subscribe=Zy.prototype.subscribe;Zy.prototype.unsubscribeByKey=Zy.prototype.unsubscribeByKey;Zy.prototype.getProxyState=Zy.prototype.getProxyState_;Zy.prototype.disconnect=Zy.prototype.JSC$19794_disconnect_;Zy.prototype.getPlayerContextData=Zy.prototype.getPlayerContextData_;Zy.prototype.setPlayerContextData=Zy.prototype.setPlayerContextData_;Zy.prototype.getOtherConnectedRemoteId=Zy.prototype.getOtherConnectedRemoteId_;Zy.prototype.getReconnectTimeout=Zy.prototype.getReconnectTimeout_;
Zy.prototype.getAutoplayMode=Zy.prototype.getAutoplayMode_;Zy.prototype.getAutoplayVideoId=Zy.prototype.getAutoplayVideoId_;Zy.prototype.reconnect=Zy.prototype.JSC$19794_reconnect_;Zy.prototype.sendMessage=Zy.prototype.sendMessageWithUserAction_;Zy.prototype.getXsrfToken=Zy.prototype.JSC$19794_getXsrfToken_;Zy.prototype.isCapabilitySupportedOnConnectedDevices=Zy.prototype.isCapabilitySupportedOnConnectedDevices_;var Luj=function(R){nE.call(this,"ScreenServiceProxy");this.instance_=R;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Wv)(this.JSC$19797_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Wv)(this.onOnlineScreenChange_,this)))};
_.H(Luj,nE);_.l=Luj.prototype;_.l.getScreens=function(R){return this.instance_.$_gs(R)};
_.l.contains=function(R){return!!this.instance_.$_c(R)};
_.l.get=function(R){return this.instance_.$_g(R)};
_.l.start=function(){this.instance_.$_st()};
_.l.add=function(R,A,Y){this.instance_.$_a(R,A,Y)};
_.l.remove=function(R,A,Y){this.instance_.$_r(R,A,Y)};
_.l.updateName=function(R,A,Y,P){this.instance_.$_un(R,A,Y,P)};
_.l.disposeInternal=function(){for(var R=this.subscriptionKeys_.length,A=0;A<R;++A)this.instance_.$_ubk(this.subscriptionKeys_[A]);this.subscriptionKeys_.length=0;this.instance_=null;nE.prototype.disposeInternal.call(this)};
_.l.JSC$19797_onScreenChange_=function(){this.publish("screenChange")};
_.l.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
D6.prototype.$_st=D6.prototype.start;D6.prototype.$_gspc=D6.prototype.JSC$19756_getScreenByPairingCode;D6.prototype.$_gsppc=D6.prototype.JSC$19756_getScreenByPollingPairingCode;D6.prototype.$_c=D6.prototype.contains;D6.prototype.$_g=D6.prototype.get;D6.prototype.$_a=D6.prototype.add;D6.prototype.$_un=D6.prototype.updateName;D6.prototype.$_r=D6.prototype.remove;D6.prototype.$_gs=D6.prototype.getScreens;D6.prototype.$_gos=D6.prototype.JSC$19756_getOnlineScreens;D6.prototype.$_s=D6.prototype.subscribe;
D6.prototype.$_ubk=D6.prototype.unsubscribeByKey;var z_f=function(R){j6i();if(!yD||!yD.get("yt-remote-disable-remote-module-for-dev")){R=_.a1("MDX_CONFIG")||R;WhF();Uog();wG||(wG=new M$(R?R.loungeApiHost:void 0),bGH()&&(wG.basePath="/api/loungedev"));u7||(u7=_.Zr("yt.mdx.remote.deferredProxies_")||[],_.PG("yt.mdx.remote.deferredProxies_",u7));dui();var A=eC();if(!A){var Y=new D6(wG,R?R.disableAutomaticScreenCache||!1:!1);_.PG("yt.mdx.remote.screenService_",Y);A=eC();var P={};R&&(P={appId:R.appId,disableDial:R.disableDial,theme:R.theme,loadCastApiSetupScript:R.loadCastApiSetupScript,
disableCastApi:R.disableCastApi,enableDialLoungeToken:R.enableDialLoungeToken,enableCastLoungeToken:R.enableCastLoungeToken,forceMirroring:R.forceMirroring});_.PG("yt.mdx.remote.enableConnectWithInitialState_",R?R.enableConnectWithInitialState||!1:!1);sZi(Y,function(z){z?q3()&&v9n(q3(),"YouTube TV"):Y.subscribe("onlineScreenChange",function(){BJ("yt-remote-receiver-availability-change")})},P)}if(R&&!_.Zr("yt.mdx.remote.initialized_")){_.PG("yt.mdx.remote.initialized_",!0);
L3("Initializing: "+(0,_.pA)(R));dG.push(_.Oa("yt-remote-cast2-api-ready",function(){BJ("yt-remote-api-ready")}));
dG.push(_.Oa("yt-remote-cast2-availability-change",function(){BJ("yt-remote-receiver-availability-change")}));
dG.push(_.Oa("yt-remote-cast2-receiver-selected",function(){R_Q();BJ("yt-remote-auto-connect","cast-selector-receiver")}));
dG.push(_.Oa("yt-remote-cast2-receiver-resumed",function(){BJ("yt-remote-receiver-resumed","cast-selector-receiver")}));
dG.push(_.Oa("yt-remote-cast2-session-change",Aio));dG.push(_.Oa("yt-remote-connection-change",function(z){z?v9n(q3(),"YouTube TV"):YDF()||(v9n(null,null),mfm())}));
dG.push(_.Oa("yt-remote-cast2-session-failed",function(){BJ("yt-remote-connection-failed")}));
P=PMN();R.isAuto&&(P.id+="#dial");var E=R.capabilities||[];E.length>0&&(P.capabilities=E);P.name=R.device;P.app=R.app;(R=R.theme)&&(P.theme=R);L3(" -- with channel params: "+(0,_.pA)(P));P?(_.Im("yt-remote-session-app",P.app),_.Im("yt-remote-session-name",P.name)):(_.Wd("yt-remote-session-app"),_.Wd("yt-remote-session-name"));_.PG("yt.mdx.remote.channelParams_",P);A.start();q3()||Emi()}}},l_F=function(){var R=eC().instance_.$_gos();
var A=iPm();A&&RO()&&(gwG(R,A)||R.push(A));return vwQ(R)},xWg=function(){var R=l_F(),A=iPm();
A||(A=YDF());return _.jP(R,function(Y){return A&&N$(A,Y.key)?!0:!1})},iPm=function(){var R=q3();
if(!R)return null;var A=eC().getScreens();return VD(A,R)},Aio=function(R){L3("remote.onCastSessionChange_: "+g99(R));
if(R){var A=iPm();A&&A.id==R.id?(v9n(A.id,"YouTube TV"),R.idType=="shortLived"&&(R=R.token)&&(A=RO())&&A.setLoungeToken(R)):(A&&ciG(),OPn(R,1))}else RO()&&ciG()},ciG=function(){QZY()?Sf().stopSession():XU("stopSession called before API ready.");
var R=RO();R&&(R.disconnect(1),MnY(null))},s_n=function(){var R=RO();
return R&&R.getProxyState()!=3?new BB(RO(),void 0):null},L3=function(R){QD("remote",R)},eC=function(){if(!N7m){var R=_.Zr("yt.mdx.remote.screenService_");
N7m=R?new Luj(R):null}return N7m},q3=function(){return _.Zr("yt.mdx.remote.currentScreenId_")},Vng=function(R){_.PG("yt.mdx.remote.currentScreenId_",R)},R_Q=function(){_.PG("yt.mdx.remote.connectData_",null)},RO=function(){return _.Zr("yt.mdx.remote.connection_")},MnY=function(R){var A=RO();
R_Q();R||Vng("");_.PG("yt.mdx.remote.connection_",R);u7&&(_.uI(u7,function(Y){Y(R)}),u7.length=0);
A&&!R?BJ("yt-remote-connection-change",!1):!A&&R&&BJ("yt-remote-connection-change",!0)},YDF=function(){var R=rhQ();
if(!R)return null;var A=eC();if(!A)return null;A=A.getScreens();return VD(A,R)},OPn=function(R,A){Vng(R.id);
R=new Zy(wG,R,PMN(),_.Zr("yt.mdx.remote.enableConnectWithInitialState_")||!1);R.connect(A,_.Zr("yt.mdx.remote.connectData_"));R.subscribe("beforeDisconnect",function(Y){BJ("yt-remote-before-disconnect",Y)});
R.subscribe("beforeDispose",function(){RO()&&MnY(null)});
R.subscribe("browserChannelAuthError",function(){var Y=iPm();Y&&Y.idType=="shortLived"&&(QZY()?Sf().handleBrowserChannelAuthError():XU("refreshLoungeToken called before API ready."))});
MnY(R)},Emi=function(){var R=YDF();
R?(L3("Resume connection to: "+g99(R)),OPn(R,0)):(JP(),mfm(),L3("Skipping connecting because no session screen found."))},wG=null,u7=null,N7m=null,dui=function(){var R=PMN();
if(_.BO.isEmpty(R)){R=HGf();var A=_.K1("yt-remote-session-name")||"",Y=_.K1("yt-remote-session-app")||"";R={device:"REMOTE_CONTROL",id:R,name:A,app:Y,mdxVersion:3};R.authuser=String(_.a1("SESSION_INDEX","0"));(A=_.a1("DELEGATED_SESSION_ID"))&&(R.pageId=String(A));_.PG("yt.mdx.remote.channelParams_",R)}},PMN=function(){return _.Zr("yt.mdx.remote.channelParams_")||{}},dG=[];var JiF=new _.Cn("yt-menu"),yif=function(){},T70=function(R,A,Y){R=A=="right-click"?Y.rightClickMenuPopupHint:Y.menuPopupHint;
if(!(mWN(A)>10))return A=A||"default",JiF.set(A+"-impression",mWN(A)+1),R},mWN=function(R){return parseInt(JiF.get((R||"default")+"-impression")||0,10)};
_.AR(yif);var Q_j=function(){this.contexts_=new WeakMap;this.JSC$19803_networkService_=this.activeContext_=null},vm9=function(R,A,Y){var P=R.contexts_.get(A);
P||(P=new I0G(R.JSC$19803_networkService_),R.contexts_.set(A,P));R.activeContext_=P;Y&&R.activeContext_.reset();R.activeContext_.start();return R.activeContext_};var Aq=function(){};
Aq.prototype.enqueue=function(){var R=this,A;return _.O(function(Y){if(R.isCounterfactual())return(A=R.getCounterfactualData())&&R.shouldLogCounterfactualImpression()&&R.sendImpressionEndpoints(A),Y.return();R.doEnqueue();_.XH(Y)})};
Aq.prototype.sendImpressionEndpoints=function(R){_.ZA.getInstance().triggerOptionalAction("yt-service-request",{},R[0])};var YQ=function(R,A){this.renderer=R;this.page=A};
_.H(YQ,Aq);YQ.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
YQ.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
YQ.prototype.shouldLogCounterfactualImpression=function(){return!0};
YQ.prototype.doEnqueue=function(){var R=_.PT(this.page);R&&R.pause();this.renderer.impressionCommand&&_.ZA.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Gf(_.ZA.getInstance(),[this.renderer.promoCommand],this.page)};var gmn=function(R,A){this.renderer=R;this.resolver=_.ei();this.JSC$19815_enforcementCounter=new _.Ct7;A?this.JSC$19815_playerManager=_.PT(A):this.JSC$19815_playerManager=null;_.vr(1,!0)};
_.H(gmn,Aq);_.l=gmn.prototype;_.l.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var R=[];this.renderer.impressionEndpoints.forEach(function(A){(A=_.h7(A))&&R.push(A)});
return R}};
_.l.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.l.shouldLogCounterfactualImpression=function(){var R=_.Snk();R?(this.JSC$19815_enforcementCounter.increment("POPUP"),_.vr(3)):_.vr(2);return R};
_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.doEnqueue=function(){var R=this;_.Snk()?(this.JSC$19815_enforcementCounter.increment("POPUP"),_.vr(3),nmY(this)):this.JSC$19815_playerManager?(this.resolver.promise.then(function(){nmY(R)}),HP0(this.resolver,this.JSC$19815_playerManager)):_.vr(2)};
var HP0=function(R,A){var Y=_.ei();A.getPlayerPromise().then(function(P){Y.resolve(P)});
Y.promise.then(function(P){P.addEventListener("onAbnormalityDetected",R.resolve);_.jS(R.promise,function(){P.removeEventListener("onAbnormalityDetected",R.resolve)})});
R.promise.thenCatch(function(){Y.promise.cancel()})},nmY=function(R){_.vr(3);
var A={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:R.renderer}};A=_.ZA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:A},{});Promise.all(A).then(function(){ri0();R.JSC$19815_playerManager&&R.JSC$19815_playerManager.pause()})},ri0=function(){UTW(function(R,A){_.sK9(R,A);
R===0?_.vr(7):_.vr(4)})};var DW0=function(R,A){this.renderer=R;this.page=A;this.resolver=_.ei()};
_.H(DW0,Aq);_.l=DW0.prototype;_.l.cancel=function(){this.resolver.promise.cancel()};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var R=this;this.resolver.promise.then(function(){var Y={popup:{mealbarPromoRenderer:R.renderer},popupType:"MEALBAR"};_.ZA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Y},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var A=_.PT(this.page);A&&UWY(this.resolver,A)}break;default:this.resolver.resolve()}};
var UWY=function(R,A){var Y=_.ei();A.getPlayerPromise().then(function(P){Y.resolve(P)});
Y.promise.then(function(P){P.addEventListener("onAdEnd",R.resolve);_.jS(R.promise,function(){P.removeEventListener("onAdEnd",R.resolve)})});
R.promise.thenCatch(function(){Y.promise.cancel()})};var $Wj=function(R,A){this.renderer=R;this.page=A};
_.H($Wj,Aq);_.l=$Wj.prototype;_.l.cancel=function(){this.JSC$19823_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19823_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19823_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.l.isCounterfactual=function(){return!this.renderer.isVisible};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var R=this,A,Y;((A=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(Y=A.playbackUpsellDialogTriggerConditionData)==null?void 0:Y.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$19823_downloadedVideosCountSelectorUnsubscriber=_.Fq(_.Yp(),goY,function(P,E){P>E&&(XlW(R),R.cancel())}):XlW(this)};
var XlW=function(R){var A={popup:{upsellDialogRenderer:R.renderer},popupType:"MODAL"};_.ZA.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:A},{});(R=_.PT(R.page))&&R.pause()};var P0={},SDm=(P0.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",P0.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",P0.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",P0.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",P0.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",P0.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",P0.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",P0),I_W=function(R,A){this.renderer=R;this.targetManager=
A};
_.H(I_W,Aq);_.l=I_W.prototype;_.l.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$19830_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$19830_downloadedVideosCountSelectorUnsubscriber(),this.JSC$19830_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.l.getCounterfactualData=function(){if(this.isCounterfactual()){var R;return(R=this.renderer.promoConfig)==null?void 0:R.impressionEndpoints}};
_.l.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.l.shouldLogCounterfactualImpression=function(){return!0};
_.l.doEnqueue=function(){var R=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$19830_downloadedVideosCountSelectorUnsubscriber=_.Fq(_.Yp(),goY,function(A,Y){R.renderer.targetId&&A>Y&&(LOG(R.targetManager,R.renderer.targetId,KKf(R)),R.cancel())});
break;default:LOG(this.targetManager,this.renderer.targetId,KKf(this))}};
var KKf=function(R){var A;if((A=R.renderer.suggestedPosition)==null?0:A.type)var Y=SDm[R.renderer.suggestedPosition.type];Y||(Y="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:R.renderer},popupType:"HINT",position:Y}}};var WKW=function(){this.previousPage=null},j_G;
WKW.prototype.registerPromoCommand=function(R,A){bPm(this,void 0,void 0,_.n(R.roadblock,e1H),void 0,void 0,A)};
var bPm=function(R,A,Y,P,E,z,c){R.previousPage!==c&&R.pendingTooltipPromo&&R.pendingTooltipPromo.cancel();R.previousPage=c;E?(R.pendingEnforcementPromo&&R.pendingEnforcementPromo.cancel(),R.pendingEnforcementPromo=new gmn(E,c),R.pendingEnforcementPromo.enqueue()):z?(R.pendingCommandWrapperPromo=new YQ(z,c),R.pendingCommandWrapperPromo.enqueue()):P?(R.pendingRoadblockPromo&&R.pendingRoadblockPromo.cancel(),R.pendingRoadblockPromo=new $Wj(P,c),R.pendingRoadblockPromo.enqueue()):A?(R.pendingMealbarPromo&&
R.pendingMealbarPromo.cancel(),R.pendingMealbarPromo=new DW0(A,c),R.pendingMealbarPromo.enqueue()):Y&&(R.pendingTooltipPromo&&R.pendingTooltipPromo.cancel(),R.pendingTooltipPromo=new I_W(Y,_.k7()),R.pendingTooltipPromo.enqueue())},f_i=function(){j_G||(j_G=new WKW);
return j_G};var Dfm=!1;var dVm=function(R,A){var Y=_.a1("SESSION_INDEX");this.actionToken_=R;this.commonToken_=A;this.sessionIndex_=Y},LpN=function(R){var A=_.ei(),Y=_.Zr("payments.business.integration.bootstrap"),P=_.Zr("payments.business.integration"),E=P.Style.create().withMaterialDesignStyle(),z=P.mashupMode.popup("instrument-manager");
Y.asMashupMode(z).usingUserIndex(R.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(E).inStandaloneContext(P.standaloneContextAuthId.forUserId()).instrumentManager(R.actionToken_,R.commonToken_.length>0?R.commonToken_:void 0,function(c){var M=c.instrumentId;M?A.resolve(M):(M=_.Zr("payments.business.integration.scenario.InstrumentManager"),A.reject(c.errorCode&&c.errorCode===M.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(c){_.hv(c);
A.reject("instrumentManagerLoadError")});
return A.promise};var fE=function(R,A,Y){this.payloadName="transactionFlowFailed";this.payload={errorType:R,serializedTransactionFlowLoggingParams:A,isUserDismiss:Y===void 0?!1:Y}};
_.PG("yt.ypc.shared.YpcTransactionFlowError",fE);var Et=function(){return _.rg.apply(this,arguments)||this};
_.H(Et,_.rg);Et.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
Et.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
Et.prototype.onErrorMessageDismiss=Et.prototype.onErrorMessageDismiss;_.C([_.S({readOnly:!0,observer:"errorRendererChanged"}),_.k("design:type",Object)],Et.prototype,"errorRenderer",void 0);_.C([_.Qa("yt-live-chat-error-message-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Et.prototype,"onErrorMessageDismiss",null);_.C([_.Do()],Et);var plg=[Et.prototype];var FKH;var B70;var a_N=new _.Cn("yt-live-chat"),CMi=new Map;CMi.set("timestamp_toggle","show-timestamps");CMi.set("reactions_toggle","allow-reactions");var z4=function(){return _.K.apply(this,arguments)||this};
_.H(z4,_.K);_.l=z4.prototype;_.l.menuItemIdentifierChanged=function(){var R;(R=this.data)!=null&&R.menuItemIdentifier&&(R=CMi.get(this.data.menuItemIdentifier))&&(_.v("enable_lwe_web_mute")?(R=a_N.get(R),this.isToggled=!(R===void 0?!this.data.isToggled:!R)):this.isToggled=a_N.get(R))};
_.l.onFocus=function(){this.toggleButton.focus()};
_.l.onTap=function(){var R=this.data.command;R&&this.componentBehavior.resolveCommand(R)};
_.l.computeText=function(R,A,Y){return this.componentBehavior.getSimpleString(R?Y:A)};
_.l.computeIcon=function(R,A,Y){return(R=R?Y:A)&&R.iconType?_.m0(R.iconType):""};
z4.prototype.onTap=z4.prototype.onTap;z4.prototype.onFocus=z4.prototype.onFocus;z4.prototype.menuItemIdentifierChanged=z4.prototype.menuItemIdentifierChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],z4.prototype,"componentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],z4.prototype,"data",void 0);
_.C([_.S({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.k("design:type",String)],z4.prototype,"icon",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],z4.prototype,"isToggled",void 0);_.C([_.nG("tp-yt-paper-toggle-button"),_.k("design:type",Object)],z4.prototype,"toggleButton",void 0);_.C([_.vZ("data.menuItemIdentifier"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],z4.prototype,"menuItemIdentifierChanged",null);
_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],z4.prototype,"onFocus",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],z4.prototype,"onTap",null);_.C([_.CG({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],z4);
_.B(z4,"yt-live-chat-toggle-renderer",function(){if(B70===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;FKH===void 0&&(FKH=document.createElement("template"));var P=FKH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);B70=R}R=B70;return R},{mode:_.v("live_chat_enable_sink_wrapper")?2:0});var h_i=new _.cP("NAVIGATION_PROGRESS_TOKEN");var omQ={},kPo={},GPQ=(kPo[F40.name]=!0,kPo),iQ=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;R.tabGesturesIsActive=!1;R.actionRouterIsRoot=!0;R.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"};R.pageTitle="";R.titleSuffix="YouTube";R.unseenNotificationCount=
0;R.hasNavigated=!1;R.hasSetScrollTopForNavigation=!1;R.pagePreparer=null;R.zwiebackInitJobId=0;R.dataUpdatePromise=null;R.loadDepsPromise=_.Vn();R.hasPendingNavigation=!1;R.pendingPlayerOnResponseReceivedActions=[];return R};
_.H(iQ,_.rg);iQ.prototype.attached=function(){ZPN(this);document.addEventListener("yt-navigate-cache",_.T2(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var R=lQ();R.init();R.dispatchElement=this.hostElement};
var ZPN=function(R,A){A=A===void 0?0:A;var Y=_.is().resolve(_.z3(_.om));if(Y)tno(R,Y);else{if(A>=5)throw Error("il");setTimeout(function(){ZPN(R,A+1)},0)}},tno=function(R,A){A.addEventListener("yt-navigate-start",_.T2(R,R.onYtNavigateStart));
A.addEventListener("yt-navigate-finish",_.T2(R,R.onYtNavigateFinish));A.addEventListener("yt-navigate-error",_.T2(R,R.onYtNavigateError));A.addEventListener("yt-page-data-fetched",_.T2(R,R.onYtPageDataFetched))};
_.l=iQ.prototype;_.l.detached=function(){var R=_.is().resolve(_.om);R.removeEventListener("yt-navigate-start",_.T2(this,this.onYtNavigateStart));R.removeEventListener("yt-navigate-finish",_.T2(this,this.onYtNavigateFinish));R.removeEventListener("yt-navigate-error",_.T2(this,this.onYtNavigateError));R.removeEventListener("yt-page-data-fetched",_.T2(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.T2(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.l.setPageOffset=function(R,A){R?_.OC(this.hostElement,"yt-set-page-offset",[R,A]):_.bj(Error("jl"))};
_.l.setPageOffsetForNavigation=function(R,A){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(R,A))};
_.l.onYtNavigateSetPageOffset=function(R,A){this.setPageOffsetForNavigation(A.page,A.offset)};
_.l.getPageOffset=function(){var R=_.Mo(this.hostElement).querySelector("#page-manager").getCurrentPage(),A=0;R&&(A=_.OC(this.hostElement,"yt-get-page-offset",[R])[0]);return A};
_.l.onYtHistoryPop=function(R,A){if(_.CQ("DISABLE_WARM_LOADS"))R.preventDefault(),window.location.reload();else{var Y=_.is().resolve(_.om);Y.hasPendingNavigation()&&R.preventDefault();Y.cancelPendingNavigation();_.MT(this.hostElement,"yt-pending-navigation-cancelled");A.errorMsg&&(R=A.errorMsg.split(" - "),A=Error(R[0]),R.length==2&&R[1]&&(_.F8(A,R[1]),_.pK(A)),window.location.reload())}};
_.l.onYtHistoryLoad=function(R,A){var Y=this;if(_.CQ("DISABLE_WARM_LOADS"))window.location.reload();else{(R=A.endpoint)&&Object.keys(R).length||(R=null);var P=A.historyEntry,E=_.is().resolve(_.om),z=_.is().resolve(_.YH),c=null;P&&P.rootData&&(c=P.rootData);var M=c&&wlQ(c);!c||M||c.filler?R?(E.navigate(R,!0),u3i(this,R)):(A.legacyBorder||M||(A.JSC$30136_savedComponentState==null&&c==null?_.pK(new _.XN("Incomplete history entry",A.forward)):_.fK(new _.XN("Malformed history entry",A.JSC$30136_savedComponentState,
A.forward,c))),window.location.reload()):(_.Qj3({isHot:!0}),_.bE({webInfo:{navigationReason:"h"}}),_.jDq(),_.Fh("srt"),_.Fh("pdc"),this.cancelPendingTasks(),e_W(this,A.forward,c),c.player&&(c.player.loaded=!1),u3i(this,R),_.GcA(E,R||{},c,2,{},!1,A).then(function(){Y.setPageOffset(z.getCurrentPage(),P.scrollTop||0)}))}};
_.l.initHistoryManager=function(R){if(!this.hasNavigated){this.hasNavigated=!0;var A=_.Mo(this.hostElement).querySelector("#page-manager").getCurrentData();R=isNaN(R)?this.getPageOffset():R;var Y=_.is().resolve(_.om).currentEndpoint;this.replaceState(Y,A,R)}};
_.l.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.l.onYtNavigateStart=function(R,A){this.cancelPendingTasks();A.noProgressBar||(R=_.is().resolve(_.z3(h_i)))&&R.start();R=this.hasPendingNavigation?null:this.data;var Y=_.is().resolve(_.YH),P,E,z;_.v("kevlar_use_vimio_behavior")&&!((P=A.endpoint)==null?0:(E=P.commandMetadata)==null?0:(z=E.webCommandMetadata)==null?0:z.ignoreNavigation)&&(P=Y.getCurrentPage())&&P.disconnectVisibilityRoot();Y.prepareForNavigation(A.pageType,A.endpoint);_.v("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.gt(1,
"pcl"),_.nH(this.pagePreparer,Y.preparePage.bind(Y,A.pageType,A.endpoint)));P=this.getPageOffset();this.initHistoryManager(P);A.reload||this.hasPendingNavigation?(_.v("web_enable_delay_shorts_sequence_call")&&A.pageType==="shorts"&&A.reload&&_.xo(this.hostElement,"yt-shorts-reset"),this.replaceState(A.endpoint,R,P)):(R==null?void 0:R.page)==="watch"&&A.pageType==="watch"&&_.v("kevlar_replace_watch_to_watch_history_state")?this.replaceState(A.endpoint,R,P):(R==null?void 0:R.page)!=="shorts"||A.pageType!==
"shorts"||A.endpoint.reelWatchEndpoint.sequenceParams||_.v("short_to_short_back_nav_killswitch")?A.type!="navigate-back"&&A.type!="navigate-forward"&&(A.pageType==="shorts"&&_.xo(this.hostElement,"yt-shorts-reset"),this.saveAndPush(A.url,A.endpoint,R,P)):(_.v("web_enable_delay_shorts_sequence_call")&&(A.endpoint.reelWatchEndpoint.sequenceParams=R==null?void 0:R.cachedSequenceParams,A.endpoint.reelWatchEndpoint.sequenceProvider=R==null?void 0:R.cachedSequenceProvider),this.replaceState(A.endpoint,
R,0));this.hasPendingNavigation=!0};
var qDm=function(R){R.hasPendingNavigation=!1;(R=_.is().resolve(_.z3(h_i)))&&R.finish()};
iQ.prototype.onYtNavigateError=function(R,A){qDm(this);R=this.get("endpoint.commandMetadata.webCommandMetadata.url",A);var Y=_.qI(window.location.href);R&&!Y.pbjreload&&(A=A.navigationErrorReason||"10",_.v("kevlar_parent_on_pbjreload")&&(Y={csn:_.F9()},this.get("data.endpoint.clickTrackingParams")&&(Y.itct=this.data.endpoint.clickTrackingParams),_.Yo(R,Y)),_.eI(_.LQ(R,{pbjreload:A})))};
iQ.prototype.onYtNavigateCache=function(R,A){var Y=this,P=A.url,E=A.endpoint,z=A.data;R=!!A.miniplayer;A=!!A.skipHistory;if(P&&E&&z){var c=this.getPageOffset(),M=this.data||null;A||this.saveAndPush(P,E,M,c);P=_.GcA(_.is().resolve(_.om),E,z,R?4:3,{},R);R&&P.then(function(){Y.dataUpdatePromise&&Y.dataUpdatePromise.then(function(){var N=_.is().resolve(_.YH);Y.setPageOffset(N.getCurrentPage(),0)})})}};
iQ.prototype.onYtNavigateFinish=function(R,A){var Y=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){LKG(Y,A.fromHistory)})};
var LKG=function(R,A){qDm(R);if(R.pendingPlayerOnResponseReceivedActions){for(var Y=_.x(R.pendingPlayerOnResponseReceivedActions),P=Y.next();!P.done;P=Y.next())_.vc(P.value,R.hostElement);R.pendingPlayerOnResponseReceivedActions=[]}Y=_.is().resolve(_.YH);A||!R.hasNavigated||_.v("web_disable_scroll_on_navigate_finish")||((A=Y.getCurrentPage())?A.is==="ytd-shorts"||R.tabGesturesIsActive||R.setPageOffsetForNavigation(A,0):_.pK(Error("kl")));_.wg(function(){_.wg(function(){_.Fh("pda")})})};
iQ.prototype.onYtNavigate=function(R){if(!R.detail.endpoint){var A=new _.XN("Error: Missing yt-navigate endpoint from target:",R.target,R.target.nodeName);_.bj(A)}if(A=_.v("cold_missing_history"))A=lQ(),A.init(!1),A=!(A.browserHistory.boundHistoryReplaceState&&A.browserHistory.boundHistoryPushState);if(A){_.BD("DISABLE_WARM_LOADS",!0);A=new _.XN("Failed to initialize history manager",this.getDebugString());var Y=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
Y?_.pK(A):_.bj(A)}A=R.detail.endpoint;var P,E;_.v("debug_forward_web_query_parameters")&&((P=A.commandMetadata)==null?0:(E=P.webCommandMetadata)==null?0:E.url)&&(A=JSON.parse(JSON.stringify(A)),A.commandMetadata.webCommandMetadata.url=_.uhV(A.commandMetadata.webCommandMetadata.url,window.location.search));R={type:0,command:A,form:{params:R.detail.params,tempData:R.detail.tempData||{},requestType:R.detail.type,createScreenConfig:R.detail.createScreenConfig,reload:R.detail.reload?R.detail.reload:!1,
requestForm:R.detail}};_.v("kevlar_yt_navigate_command_handler")?(P=_.is().resolve(_.ls),R.form.skipDefaultElement=!0,P.resolveCommand(A,{form:R.form})):this.handleNavigate(R)};
iQ.prototype.handleNavigate=function(R){this.hasSetScrollTopForNavigation=!1;var A=_.is().resolve(_.om),Y=R.form||{};A.navigate(R.command,Y.reload,Y.params,Y.tempData,Y.requestType,Y.createScreenConfig,Y.ignoreConfirmation,Y.requestForm)&&u3i(this,R.command,Y.tempData)};
iQ.prototype.onYtPageDataFetched=function(R,A){try{_.fhS().reset();this.data=A.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.is().resolve(_.YH).updatePageData(this.data);if(!_.v("web_service_params_response_processor")){var Y=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);Y&&SQQ(Y);var P=this.get("response.responseContext.serviceTrackingParams",
this.data);P&&SQQ(P)}var E=this.get("playerResponse.onResponseReceivedActions",this.data);E&&(E=dWQ(this,E));E&&_.NT(this.hostElement,E,this.hostElement);var z=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),c=this.get("response.responseContext.consistencyTokenJar",this.data);if(z||c){var M=_.Byk(),N=(0,_.BO.getValues)(M.tokenJars);z&&M.replace(N,z);c&&M.replace(N,c)}}catch(y){_.bj(y)}};
var u3i=function(R,A,Y){try{R.onYtEndpointChangeHandler(A,Y)}catch(P){_.bj(P)}};
_.l=iQ.prototype;_.l.onYtEndpointChangeHandler=function(){};
_.l.setPageTitle=function(R){R=(this.pageTitle=R)?R+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+R};
_.l.onYtUpdateTitle=function(R,A){this.setPageTitle(A)};
_.l.setUnseenNotificationCount=function(R){this.unseenNotificationCount=R;this.setPageTitle(this.pageTitle)};
_.l.handleUpdateNotificationsUnseenCountAction=function(R){_.n(R,Qsm)&&((R=_.n(R,Qsm).unseenCount)?this.setUnseenNotificationCount(R):this.setUnseenNotificationCount(0))};
_.l.handleClearCookieAction=function(R){var A;(R=(A=_.n(R,JQj))==null?void 0:A.cookieName)&&_.V9k(R)};
_.l.onYtUpdateUnseenNotificationCount=function(R,A){this.setUnseenNotificationCount(A)};
_.l.loadData=function(R){var A=this;this.loadDepsPromise.then(function(){var Y=_.is().resolve(_.z3(_.om));Y||_.bj(Error("ll"));if(R&&R.response){if(!R.endpoint){var P=_.t_(window.document.location.href)||"/",E="";if(P==="/"||P.startsWith("/?"))E="WEB_PAGE_TYPE_BROWSE";R.endpoint={commandMetadata:{webCommandMetadata:{url:P,webPageType:E,rootVe:3854}}}}_.GcA(Y,R.endpoint,R,5,{})}else R.endpoint?Y.navigate(R.endpoint):Y.navigate(_.p_);_.fn.cancelJob(A.zwiebackInitJobId);A.zwiebackInitJobId=_.fn.addLowPriorityJob(UfF)})};
var lQ=function(){return _.is().resolve(_.fp)};
iQ.prototype.getDebugString=function(){return lQ().getDebugString()};
iQ.prototype.getThirdPartyManipulationSuspected=function(){return lQ().getThirdPartyManipulationSuspected()};
iQ.prototype.replaceState=function(R,A,Y){lQ().saveAndReplace(R,A,Y)};
iQ.prototype.saveAndPush=function(R,A,Y,P){lQ().saveAndPush(R,A,Y,P)};
var wlQ=function(R){return _.n(R.endpoint,_.LO)||_.n(R.endpoint,_.SI)?!0:!R||isNaN(R.expirationTime)?!1:(0,_.iB)()>R.expirationTime},e_W=function(R,A,Y){var P=R.get("response.trackingParams",Y),E=_.pO(),z=_.F9();
if(P&&E&&z&&(P=R.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",Y),!P&&Y.rootVe&&(P=Y.rootVe),E=A?"forwardButton":"backButton",A=R.get("playerResponse.topbar.desktopTopbarRenderer."+E+".buttonRenderer.command.clickTrackingParams",R.data),R=R.get("response.topbar.desktopTopbarRenderer."+E+".buttonRenderer.command.clickTrackingParams",R.data),A=(R=A||R)?_.S5(R):void 0,R=_.rU(),E=[_.Vn(Y)],_.$5(R,P,A,{dataPromises:E,csnToClone:Y.csn}),Y.graftedVes))for(Y=
_.x(Y.graftedVes),P=Y.next();!P.done;P=Y.next())_.Xq(R,P.value)};
iQ.prototype.onStoreGraftedVeAction=function(R){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(R)):_.pK(Error("ml"))};
var dWQ=function(R,A){return A.filter(function(Y){for(var P in Y)if(GPQ[P])return R.pendingPlayerOnResponseReceivedActions.push(Y),!0;return!1})};
_.Yh.Object.defineProperties(iQ.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
iQ.prototype.onStoreGraftedVeAction=iQ.prototype.onStoreGraftedVeAction;iQ.prototype.loadData=iQ.prototype.loadData;iQ.prototype.onYtUpdateUnseenNotificationCount=iQ.prototype.onYtUpdateUnseenNotificationCount;iQ.prototype.handleClearCookieAction=iQ.prototype.handleClearCookieAction;iQ.prototype.handleUpdateNotificationsUnseenCountAction=iQ.prototype.handleUpdateNotificationsUnseenCountAction;iQ.prototype.setUnseenNotificationCount=iQ.prototype.setUnseenNotificationCount;
iQ.prototype.onYtUpdateTitle=iQ.prototype.onYtUpdateTitle;iQ.prototype.setPageTitle=iQ.prototype.setPageTitle;iQ.prototype.onYtEndpointChangeHandler=iQ.prototype.onYtEndpointChangeHandler;iQ.prototype.onYtPageDataFetched=iQ.prototype.onYtPageDataFetched;iQ.prototype.handleNavigate=iQ.prototype.handleNavigate;iQ.prototype.onYtNavigate=iQ.prototype.onYtNavigate;iQ.prototype.onYtNavigateFinish=iQ.prototype.onYtNavigateFinish;iQ.prototype.onYtNavigateCache=iQ.prototype.onYtNavigateCache;
iQ.prototype.onYtNavigateError=iQ.prototype.onYtNavigateError;iQ.prototype.onYtNavigateStart=iQ.prototype.onYtNavigateStart;iQ.prototype.cancelPendingTasks=iQ.prototype.cancelPendingTasks;iQ.prototype.initHistoryManager=iQ.prototype.initHistoryManager;iQ.prototype.onYtHistoryLoad=iQ.prototype.onYtHistoryLoad;iQ.prototype.onYtHistoryPop=iQ.prototype.onYtHistoryPop;iQ.prototype.onYtNavigateSetPageOffset=iQ.prototype.onYtNavigateSetPageOffset;iQ.prototype.setPageOffset=iQ.prototype.setPageOffset;
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],iQ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iQ.prototype,"data",void 0);_.C([_.Qa("yt-navigate-set-page-offset"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],iQ.prototype,"onYtNavigateSetPageOffset",null);
_.C([_.Qa("yt-history-pop"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],iQ.prototype,"onYtHistoryPop",null);_.C([_.Qa("yt-history-load"),_.k("design:type",Function),_.k("design:paramtypes",[Event,_.M1N]),_.k("design:returntype")],iQ.prototype,"onYtHistoryLoad",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],iQ.prototype,"onYtNavigate",null);
_.C([_.Qa("yt-update-title"),_.k("design:type",Function),_.k("design:paramtypes",[Event,String]),_.k("design:returntype")],iQ.prototype,"onYtUpdateTitle",null);_.C([_.Qa("yt-update-unseen-notification-count"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Number]),_.k("design:returntype")],iQ.prototype,"onYtUpdateUnseenNotificationCount",null);_.C([_.Do()],iQ);omQ.YtdAppBehavior=[_.fH.YtActionHandlerBehavior,iQ.prototype];var xQ=function(){var R=_.rg.apply(this,arguments)||this;R._noAccessors=!0;return R};
_.H(xQ,_.rg);xQ.prototype.ready=function(){var R=this;_.Mo(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){R.onChange_()})};
xQ.prototype.dataChanged_=function(){_.Mo(this.hostElement).querySelector("#checkbox").checked=!1};
xQ.prototype.onChange_=function(){var R=_.Mo(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.xo(this.hostElement,"yt-dismissal-reason-"+R,this.data.feedbackToken)};
xQ.prototype.dataChanged_=xQ.prototype.dataChanged_;_.C([_.S(),_.k("design:type",Object)],xQ.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xQ.prototype,"dataChanged_",null);_.C([_.Do()],xQ);var RGG=[xQ.prototype];var c0=function(){var R=_.rg.apply(this,arguments)||this;R.timeoutJobId=0;R.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return R};
_.H(c0,_.rg);c0.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
c0.prototype.startTimeout=function(){var R=this,A=this.data&&this.data.displayDurationSeconds;A&&!this.timeoutJobId&&(this.timeoutJobId=_.Ua(_.fn,function(){_.OC(R.hostElement,"yt-close-popup-action",[R.is]);R.timeoutJobId=0},A*1E3))};
c0.prototype.cancelTimeout=function(){_.fn.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
c0.prototype.ytdHatsSurveyBehaviorDataChanged=c0.prototype.ytdHatsSurveyBehaviorDataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],c0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c0.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.C([_.Do()],c0);var AjQ=[_.fH.YtActionHandlerBehavior,c0.prototype];var YmH=function(R,A){var Y;return((Y=R.prefixMapping)==null?0:Y[A])?R.prefixMapping[A]:R.SHARED_RENDERERS_.hasOwnProperty(A)?"yt":R.prefix},Ot={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}};Ot.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.v("kevlar_mealbar_above_player"),modern:_.v("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"}};
Ot.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Ot.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Ot.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Ot.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)"}};
Ot.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};
Ot.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};
Ot.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};
Ot.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};Ot.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"}};
Ot.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Ot.TOAST={component:null,properties:{}};var Pfn=new function(R,A,Y){this.supportedPopups=R;this.navigationEndpointPopupMap=A;this.popupTypeMap=Y;this.supportedPopups=R;this.navigationEndpointPopupMap=A;this.popupTypeMap=Y}({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:_.v("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"}),EEF=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$19880_popupConfig=Ot;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 zGF=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.Rz.getInstance()},M0=function(R,A){var Y=R.pageNameToElement.get(A);
if(!Y){switch(A){case "watch":var P=_.v("web_watch_force_learning_journey_for_testing")?_.vX("ytd-watch-learning-journey"):_.v("kevlar_watch_fixie")?_.vX("ytd-watch-fixie"):_.v("kevlar_watch_grid")?_.vX("ytd-watch-grid"):_.vX("ytd-watch-flexy");break;case "learning_journey_watch":P=_.vX("ytd-watch-learning-journey");break;case "shorts":P=_.vX("ytd-shorts");break;case "search":P=_.vX("ytd-search");break;case "channel":P=_.vX("ytd-browse");P.pageSubtype="channels";break;case "trending":P=_.vX("ytd-browse");
P.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "learning_journey_browse":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":P=
_.vX("ytd-browse");P.pageSubtype=A;break;case "browse":P=_.vX("ytd-browse");break;default:_.pK(new _.XN("Error getting page element for type",A))}Y=P;R.pageNameToElement.set(A,Y)}return Y};
zGF.prototype.preparePage=function(R,A,Y){Y&&(R=_.ra(Y)||R);if(R!=="watch"&&R!=="learning_journey_watch"){var P=this.elementPoolPopulator,E=R;E!=P.targetPage_&&P.pendingPages_.indexOf(E)>-1&&(P.targetPage_&&(P.pendingPages_.unshift(P.targetPage_),P.abort()),AV0(P,E),_.l1Z(P,E))}if((P=M0(this,R))||!_.n(Y,_.G$)){P.isAttached||P===A||(P.hidden=!0);if(!P.data&&(R!=="watch"&&R!=="learning_journey_watch"||!_.v("swatcheroo_page_pool_dont_provide_filler_data"))){var z;if(R=(z=_.a1("FILLER_DATA",{})[R])==
null?void 0:z.response)P.data=R}return P}};var iS9=function(R){this.JSC$32030_clientRoot=R;this.playlistHandlerActionMap={"yt-add-to-playlist-command":fcf,"yt-end-playlist-command":pco,"yt-recover-playlist-command":BUo,"yt-refresh-playlist-command":hwW,"yt-playlist-remove-videos-action":acH};_.t$(_.ZA.getInstance(),this.playlistHandlerActionMap,this.JSC$32030_clientRoot);Mvm()},lqf;var st=function(R,A,Y){this.apiKey=R;this.endpoint=A;this.confidenceThreshold=Y===void 0?.5:Y;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=A==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||A==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
A==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||A==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new MQW};
_.l=st.prototype;
_.l.start=function(R){if(this.state===0)if(this.isOnline()){R.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=R.supportsHttpHeadersOverwriteParam);R.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=R.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.pj("voice_assistant");_.Bk("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=R.languageCode||"en-US";this.supportsCrossDomainXhr=R.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=R.youtubeAssistantRequest||null;this.listeningHandler=R.listeningHandler||this.listeningHandler;this.audioDetectedHandler=R.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=R.stopHandler||this.stopHandler;this.completeHandler=R.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=R.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=R.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
R.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=R.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=R.accessToken;this.additionalHeaders=R.additionalHeaders||{};var A;this.prefetchResponseTimeoutMs=(A=R.prefetchResponseTimeoutMs)!=null?A:this.prefetchResponseTimeoutMs;xq9(this);this.startAudio();cji(this)}else this.errorHandler("OFFLINE")};
_.l.stop=function(R){var A=R===void 0?{}:R;R=A.logCancel===void 0?!0:A.logCancel;var Y=A.logMicClosed===void 0?!0:A.logMicClosed;var P=A.handleError===void 0?!0:A.handleError;A=A.handleStop===void 0?!0:A.handleStop;this.state!==0&&(R&&N0("voz_cx"),V9(this,{logMicClosed:Y,handleStop:A}),P&&this.errorHandler("ABORTED"))};
_.l.getState=function(){return this.state};
_.l.isSupported=function(){return!0};
_.l.stopAudio=function(R){(R===void 0||R)&&N0("voz_mf")};
_.l.startAudio=function(){N0("voz_vp");return _.Vn(null)};
var OSW=function(R,A){R.channelOpen&&(R.state!==2&&(R.state=2,N0("voz_ss"),R.listeningHandler()),A=new Uint8Array(A),A='{ "audioIn": "'+_.WF(A)+'" }',R.channel.send(A))},V9=function(R,A){var Y=A===void 0?{}:A;
A=Y.logMicClosed===void 0?!0:Y.logMicClosed;Y=Y.handleStop===void 0?!0:Y.handleStop;R.vozEndOfDataTimeout>-1&&(clearTimeout(R.vozEndOfDataTimeout),R.vozEndOfDataTimeout=-1);MWW(R);R.stopAudio(A);R.channel&&(R.channelOpen=!1,R.manuallyClosedChannel=!0,R.channel.close(),R.channel=void 0);R.transcribedSpeechResults=[];R.state=0;Y&&R.stopHandler()},xq9=function(R){var A={httpHeadersOverwriteParam:R.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},R.additionalHeaders,R.accessToken&&R.isUsingVoz?{Authorization:"Bearer "+R.accessToken}:{"x-goog-api-key":R.apiKey}),supportsCrossDomainXhr:R.supportsCrossDomainXhr};R.channel=new N3(R.endpoint,A);R.channel.open();_.KC(R.channel,"w",function(){var Y=R.channel,P=Y.send,E=R.isUsingVoz?"PLACEHOLDER":"example";E={config:{dialogStateIn:{languageCode:R.languageCode},deviceConfig:{deviceId:E,deviceModelId:E},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!R.isUsingVoz)E.config.requestType=4;else if(R.isUsingVoz&&R.youtubeAssistantRequest){var z=JSON.stringify(R.youtubeAssistantRequest);E.config.internalIn={youtubeAssistantS3InputJson:z}}P.call(Y,E);R.channelOpen=!0;R.manuallyClosedChannel=!1});
_.KC(R.channel,"x",function(){R.manuallyClosedChannel||(R.channelOpen=!1,R.channel=void 0,V9(R))});
_.KC(R.channel,"z",function(Y){if(Y.data){MWW(R);for(var P=0;P<Y.data.length;P++){var E=R,z=Y.data[P],c=z.speechResults;if(c)a:{var M=[];z=[];var N=!1;c=_.x(c);for(var y=c.next();!y.done;y=c.next()){y=y.value;if(y.noSpeech){V9(E);E.errorHandler("NO_SPEECH");break a}y.transcript!==void 0&&y.stability!==void 0&&(y.stability<E.confidenceThreshold&&(N=!0),N?z.push(y.transcript):M.push(y.transcript))}if(M.length!==0||z.length!==0)M=M.join(" "),z=z.join(" "),E.receivedEndOfUtterance&&!E.isUsingVoz?E.isUsingVoz||
E.completeHandler([M,z]):(N=E,c=M,y=z,N0("voz_sf"),N.transcriptionUpdateHandler(c,y),N.transcribedSpeechResults=[c,y]),E.receivedEndOfUtterance&&(N0("voz_eou"),E.transcriptionCompleteHandler([M,z]),E.isUsingVoz&&(E.prefetchResponseTimeoutMs===0?V9(E,{logMicClosed:!1,handleStop:!0}):E.prefetchResponseTimeoutMs>0&&sUm(E)))}else E.isUsingVoz&&(z==null?0:z.internalOut)?(z=JSON.parse(z.internalOut.youtubeAssistantS3OutputJson),z.userHasOptedInToVaa||z.vaaConsent?E.vaaConsentUpdateHandler(!!z.userHasOptedInToVaa,
!!z.vaaConsent):(NwN(E),z&&(M=E.transcribedSpeechResults,N0("voz_rqf"),E.completeHandler(M,z)))):z.eventType==="END_OF_UTTERANCE"?E.receivedEndOfUtterance=!0:(N0("voz_err"),E.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.pK(Error("nl")))}}});
_.KC(R.channel,"y",function(Y){V9(R);switch(Y.status){case 1:Y="WEBCHANNEL_NETWORK_ERROR";break;case 2:Y="WEBCHANNEL_SERVER_ERROR";break;default:Y="WEBCHANNEL_UNKNOWN_ERROR"}R.errorHandler(Y);R.logError(Error(Y))})};
st.prototype.logError=function(R){_.bj(R)};
st.prototype.isOnline=function(){return!0};
var sUm=function(R){NwN(R);R.prefetchResponseSetTimeoutId=setTimeout(function(){V9(R,{logMicClosed:!1,handleStop:!0})},R.prefetchResponseTimeoutMs)},NwN=function(R){R.prefetchResponseSetTimeoutId>-1&&(clearTimeout(R.prefetchResponseSetTimeoutId),R.prefetchResponseSetTimeoutId=-1)},cji=function(R){MWW(R);
R.noResponseReceivedTimeout=window.setTimeout(function(){V9(R);R.errorHandler("NO_SPEECH")},11E3)},MWW=function(R){R.noResponseReceivedTimeout>-1&&(window.clearTimeout(R.noResponseReceivedTimeout),R.noResponseReceivedTimeout=-1)},N0=function(R){_.Fh(R,void 0,"voice_assistant")};var Jq=function(){st.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.H(Jq,st);Jq.prototype.isSupported=function(){return o9N()};
Jq.prototype.startAudio=function(){var R=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.j5(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(P){VWi(R,P)};
this.processor.connect(this.audioContext.destination);var A=function(P){R.stream=P;if(!R.audioContext)return _.Vn(null);P=R.audioContext.createMediaStreamSource(P);R.processor&&P.connect(R.processor);return _.Vn(null)},Y={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?A(this.stream):(Y=navigator.mediaDevices.getUserMedia(Y))?Y.then(A).catch(function(P){V9(R);P.name&&P.name==="NotAllowedError"?R.errorHandler("NO_MICROPHONE_PERMISSION"):(R.errorHandler("AUDIO_ERROR"),R.logError(P));return _.j5(null)}):(V9(this),this.errorHandler("AUDIO_ERROR"),_.pK(Error("ol")));
return st.prototype.startAudio.call(this)};
Jq.prototype.stopAudio=function(R){R=R===void 0?!0:R;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(A){A.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;st.prototype.stopAudio.call(this,R)};
Jq.prototype.isOnline=function(){return navigator.onLine};
var VWi=function(R,A){if(R.audioContext)if(window.OfflineAudioContext){var Y=R.audioContext.sampleRate,P=A.inputBuffer.getChannelData(0);A=new window.OfflineAudioContext(1,P.length,16E3);for(var E=A.createBuffer(1,P.length,Y),z=E.getChannelData(0),c=0,M=0;M<P.length;M++)z[M]=P[M],c+=z[M]*z[M];!R.audioDetected&&Math.sqrt(c/P.length)>.01&&(R.audioDetected=!0,R.audioDetectedHandler());P=A.createBufferSource();P.buffer=E;P.connect(A.destination);P.start(0);A.oncomplete=function(N){N=N.renderedBuffer.getChannelData(0);
for(var y=Math.floor(16384E3/Y),m=new Int16Array(y),T=0;T<y;++T)m[T]=Math.max(-1,Math.min(1,N[T]))*32767;OSW(R,m.buffer)};
A.startRendering()}else Jjn(R,A)},Jjn=function(R,A){var Y=R.audioContext.sampleRate,P=A.inputBuffer.getChannelData(0),E=Math.floor((Y+8E3)/16E3);
Y=P.length/E;A=new Float32Array(Y);for(var z=0;z<Y;++z)A[z]=P[z*E];P=new Int16Array(Y);for(E=0;E<Y;++E)P[E]=Math.max(-1,Math.min(1,A[E]))*32767;OSW(R,P.buffer)};var yjN={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var mqn=function(){this.JSC$19945_audioEnabled=!0;this.audioFeedbackHolder={}};
mqn.prototype.isPlaying=function(R){return R.currentTime>0&&!R.paused&&!R.ended&&R.readyState>2};
var Twg=function(R){for(var A=_.x(Object.values(yjN)),Y=A.next();!Y.done;Y=A.next())Y=Y.value,R.audioFeedbackHolder[Y]=new Audio,R.audioFeedbackHolder[Y].src="/s/search/audio/"+Y+".mp3",R.audioFeedbackHolder[Y].load()},y9=function(R,A){if(R.JSC$19945_audioEnabled!==!1&&A in R.audioFeedbackHolder){for(var Y=_.x(Object.values(R.audioFeedbackHolder)),P=Y.next();!P.done;P=Y.next())P=P.value,R.isPlaying(P)&&P.pause();
R.audioFeedbackHolder[A].currentTime=0;R.audioFeedbackHolder[A].play().catch(function(){})}};var QUF=function(R,A){var Y=this;this.store=R;this.service=A;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){Y.setState("offline");Y.stop()};
this.audioPlayer=new mqn;var P;(P=this.audioPlayer)==null||Twg(P)};
_.l=QUF.prototype;_.l.getService=function(){return this.service};
_.l.isEnabled=function(){return!!this.service};
_.l.isSupported=function(){var R;return(R=this.service)==null?void 0:R.isSupported()};
_.l.start=function(){var R=this,A,Y,P,E,z,c,M,N,y,m,T,Q,g;return _.O(function(r){switch(r.nextAddress){case 1:R.store.dispatch(H7N("",""));if(!navigator.onLine)return R.setState("offline"),r.return();window.addEventListener("offline",R.handleOfflineEvent);R.stream=null;if(!R.permissionsSupported){r.jumpTo(2);break}_.g2(r,3);return r.yield(vEY(R),5);case 5:A=r.yieldResult;if(!A)return(Y=R.audioPlayer)==null||y9(Y,"failure"),r.return();R.service.stream=R.stream;R.setState("listening");_.us(r,2);break;
case 3:_.UT(r),R.permissionsSupported=!1;case 2:P={context:_.gp6(_.x_())},P.youtubeAssistantParams={searchParams:{inlineSearchResponse:R.enableInlineSearchResponse}},E=function(I,b){R.store.dispatch(rR9("transcribing"));R.store.dispatch(H7N(I,b))},z=function(){var I;
(I=R.audioPlayer)==null||y9(I,"open");R.setState("listening")},c=function(){R.setState("transcribing")},M=function(I){R.setErrorState(I)},N=function(I,b){var p;
(p=R.audioPlayer)==null||y9(p,"success");b&&(_.v("kevlar_voice_search_inline_search")&&(R.responseProcessor=_.is().resolve(_.zTk),R.responseProcessor&&(p=b.navigationAction,I=b.prefetchedSearchResponse,p&&I&&(p=(new _.hqY).JSC$13106_getStoreKey(p),_.C6(R.responseProcessor,I,p)))),R.JSC$19963_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",b))},y=function(){window.removeEventListener("offline",R.handleOfflineEvent)},m=_.Is8(!1),T=m.Authorization!=null,Q=R.enableFirstPartyAuth||
R.enableFPAForSignedInUsers&&T?m:{"X-Goog-Visitor-Id":m["X-Goog-Visitor-Id"]},g={completeHandler:N,
errorHandler:M,listeningHandler:z,audioDetectedHandler:c,stopHandler:y,transcriptionUpdateHandler:E,youtubeAssistantRequest:P,languageCode:gEW(),additionalHeaders:Q,supportsCrossDomainXhr:R.enableFirstPartyAuth||R.enableFPAForSignedInUsers&&T,supportsHttpHeadersOverwriteParam:!R.disableHttpHeadersOverwrite},R.service.start(g),_.XH(r)}})};
_.l.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.l.reset=function(){this.store.dispatch(_.cK({type:"RESET_VOICE_SEARCH_STATE"}))};
_.l.setState=function(R){this.store.dispatch(rR9(R))};
_.l.setErrorState=function(R){switch(R){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var A;(A=this.audioPlayer)==null||y9(A,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)vEY(this);else{var Y;(Y=this.audioPlayer)==null||y9(Y,"failure");this.setState("permission-denied")}break;case "ABORTED":var P;(P=this.audioPlayer)==null||y9(P,"no_input");break;default:var E;(E=this.audioPlayer)==
null||y9(E,"no_input");this.setState("timeout")}};
var vEY=function(R){var A,Y;return _.O(function(P){switch(P.nextAddress){case 1:return P.yield(navigator.permissions.query({name:"microphone"}),2);case 2:A=P.yieldResult;if(A.state==="granted")return P.return(!0);if(A.state==="denied")return R.setState("permission-denied"),P.return(!1);R.setState("permission");Y={audio:{sampleSize:16,channelCount:1},video:!1};_.g2(P,3);return P.yield(navigator.mediaDevices.getUserMedia(Y),5);case 5:return R.stream=P.yieldResult,P.return(!0);case 3:return _.UT(P),
R.setState("permission-denied"),P.return(!1)}})},gEW=function(){var R=_.a1("INNERTUBE_CONTEXT_HL"),A=_.a1("INNERTUBE_CONTEXT_GL");
return R.indexOf("-")>-1?R:R+"-"+A};var nEW=function(R,A,Y){QUF.call(this,A,Y);this.JSC$19963_actionRouter=R;this.enableInlineSearchResponse=_.v("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.v("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.v("kevlar_voice_search_enable_fpa_signedin_users")},HSH;
_.H(nEW,QUF);
var rjN=function(){if(!HSH){var R="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.v("kevlar_voice_search_auth_enabled")||_.v("kevlar_voice_search_use_yt_endpoint")?R="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.v("kevlar_voice_search_use_fp_endpoint")&&(R="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");HSH=
new nEW(_.ZA.getInstance(),_.Yp(),new Jq(_.a1("VOZ_API_KEY"),R,.5))}return HSH};var DqH=function(R){this.JSC$19967_clientRoot=R;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$19967_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)]]));R=_.x(this.eventListeners);for(var A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;Y=Y.next().value;Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next()){var E=
_.x(P.value);P=E.next().value;E=E.next().value;A.addEventListener(P,E)}}_.t$(_.ZA.getInstance(),this.autonavPauseActionMap,this.JSC$19967_clientRoot)},Uq9,$qG=function(R){return _.v("kevlar_autonav_popup_filtering")?(R=_.Yw(R))?R.hasAttribute("prevent-autonav"):!0:!0};
_.l=DqH.prototype;_.l.onIronOverlayOpened=function(R){$qG(R)&&(this.autonavPauseReasons.overlayOpen=!0,md(this))};
_.l.onIronOverlayClosed=function(R){$qG(R)&&(this.autonavPauseReasons.overlayOpen=!1,md(this))};
_.l.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;md(this)};
_.l.onYtAutonavPauseBlur=function(){var R=this;_.fn.addJob(function(){R.isInBackground()||(R.autonavPauseReasons.inputBoxFocus=!1,md(R))},8,0)};
_.l.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;md(this)};
_.l.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;md(this)};
_.l.onYtAutonavPauseScroll=function(){var R=_.is().resolve(_.YH);R.isOnWatch()&&(R=R.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=R.getBoundingClientRect().top<-200,md(this))};
_.l.onYtAutonavPauseUserEngagement=function(R){var A=this;if(_.v("user_engagement_enable_autoplay_pause_feature")){var Y=Number(R.lowEngagementThresholdMs);isNaN(Y)||Y<=0||R.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.DU("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.is().resolve(_.XW),_.z$()<Y?_.Ua(_.fn,function(){_.DU("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.V0G()?(this.userEngagementCsn=_.F9(),_.Ua(_.fn,function(){_.DU("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
A.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,md(this)):_.DU("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.jPk(Error("pl`"+JSON.stringify(R)))};
_.l.onYtAutonavPausePlayer=function(R){this.autonavPauseReasons.requestedByPlayer=!!R.detail;md(this)};
_.l.onYtAutonavVisibilityChanged=function(){var R=this,A,Y,P;return _.O(function(E){if(E.nextAddress==1)return(A=_.EJ())?E.yield(A.getPlayerPromise(),2):E.return();Y=E.yieldResult;P=Y.isMuted()||Y.getVolume()===0;R.autonavPauseReasons.backgroundAndMute=R.isInBackground()&&P;md(R);_.XH(E)})};
_.l.onYtAutonavPausePlayerEnded=function(){_.is().resolve(_.XW);var R=144E5;_.v("user_engagement_enable_autoplay_pause_feature")||_.v("is_part_of_any_user_engagement_experiment")||(R=45E5);this.autonavPauseReasons.longIdle=_.z$()>R;Xo0(this);md(this)};
_.l.onYtUserActivity=function(){var R=this;this.autonavPauseReasons.userEngagement&&(_.Ua(_.fn,function(){_.DU("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",R.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,md(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Ua(_.fn,function(){_.DU("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",R.userEngagementCsn);_.j_()}),this.autonavPauseReasons.youthereLactExperiment=!1,md(this));
this.autonavPauseReasons.longIdle&&!_.v("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,md(this))};
_.l.isInBackground=function(){var R=window.document.visibilityState;return!(!R||R==="visible")};
var md=function(R){for(var A=!1,Y=_.x(Object.values(R.autonavPauseReasons)),P=Y.next();!P.done;P=Y.next())P=P.value,A=A||P;A?_.mA.getInstance().pause(R.autonavPauseReasons):(R=_.mA.getInstance(),R.autonavState_==3?(R.setState(2,!1,!1),R.autonavPauseReason_=void 0):R.autonavState_==1&&(R.disabledAutonavPauseReason_=void 0))},Xo0=function(R){var A=!1;
if(_.v("enable_autoplay_pause_by_lact")){_.is().resolve(_.XW);A=_.cU("autoplay_pause_by_lact_sec")*1E3;var Y=_.cU("autoplay_pause_by_lact_sampling_fraction");(A=_.z$()>=A&&Math.random()<Y)&&!_.V0G()&&(_.Ua(_.fn,function(){_.DU("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),A=!1)}A!==R.autonavPauseReasons.youthereLactExperiment&&(R.autonavPauseReasons.youthereLactExperiment=A)&&(R.userEngagementCsn=_.F9(),_.Ua(_.fn,function(){_.DU("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",R.userEngagementCsn)}));
R.autonavPauseReasons.userEngagement&&_.Ua(_.fn,function(){_.DU("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",R.userEngagementCsn)})};
DqH.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.DU("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.j_(),this.autonavPauseReasons.youthereLactExperiment=!1,md(this));this.autonavPauseReasons.userEngagement&&(_.DU("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,md(this))};
DqH.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var T4=function(){var R=_.K.apply(this,arguments)||this;R.miniGuideVisible=!1;R.guideOpened=_.v("disable_initial_guide_state_fix")?!1:R.canFitPersistentGuide(R.initialBodyClientWidth);R.guideUserStateOpened=R.getInitialGuideUserStateOpened();R.isFullscreenShorts=!1;R.miniGuideWidthThreshold=_.cU("kevlar_mini_guide_width_threshold",791);R.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");R.persistentGuideBlockedPagesPatterns=
"^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");R.persistentGuideBlockedPagePathRegex=new RegExp(R.persistentGuideBlockedPagesPatterns.join("|"));R.animationTransitionDuration=0;R.lateDataResolver=_.ei();R.initialGuideDataFetchFailed=!1;R.initialLoad=!0;R.guideRenderers=new Set;R.isMouseOverGuide=!1;R.sessionUserManuallyExpandedGuideState=!1;R.actionMap={"yt-start-loading-watch":"startLoadingWatch",
"yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return R};
_.H(T4,_.K);_.l=T4.prototype;_.l.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.l.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.l.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.l.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.l.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.l.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.l.ready=function(){_.is().addProvider({provide:_.xX,useValue:this.hostElement})};
_.l.attached=function(){var R=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.T2(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.T2(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.T2(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.T2(this,this.onYtGuideShow));_.RK(this,function(){R.animationTransitionDuration=200})};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.T2(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.T2(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.T2(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.T2(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.T2(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.T2(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.T2(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.l.getData=function(){return this.data};
_.l.load=function(){var R=this,A,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=R.lateDataResolver.resolve.bind(R),z.return(R.lateDataResolver.promise);if(window.ytInitialGuideData)return A=_.ei(),A.resolve(window.ytInitialGuideData),z.return(A.promise);P=!1;_.g2(z,2);return z.yield(R.fetchGuideData(),4);case 4:Y=z.yieldResult;_.us(z,3);break;case 2:E=_.UT(z),E.message==="Returned error"&&(P=
!0);case 3:if(Y)return z.return(Y);R.onYtGuideClose();P||(R.initialGuideDataFetchFailed=!0);return z.return(R.lateDataResolver.promise)}})};
_.l.fetchGuideData=function(){var R=this,A,Y,P,E,z,c,M;return _.O(function(N){if(N.nextAddress==1)return A=_.is(),R.guidePromise||(Y=A.resolve(_.Co),R.guidePromise=_.uh(Y,UhN)),N.yield(R.guidePromise,2);if(N.nextAddress!=3)return P=N.yieldResult,E=A.resolve(_.nM),N.yield(E(),3);(z=N.yieldResult)&&((c=P)==null?void 0:(M=c.responseContext)==null?void 0:M.maxAgeSeconds)!==0&&z.put("service:guide:fallback",new _.Kp({innertubeResponse:P}));return N.return(P)})};
_.l.initializeGuideDataIfEmpty=function(){var R=this,A,Y;return _.O(function(P){if(P.nextAddress==1){if(!R.initialGuideDataFetchFailed||R.data)return P.return();_.g2(P,2);return P.yield(R.fetchGuideData(),4)}if(P.nextAddress!=2)return(A=P.yieldResult)&&R.lateDataResolver.resolve(A),_.us(P,0);Y=_.UT(P);_.pK(Y);_.XH(P)})};
_.l.initializeGuideData=function(){var R=this,A;return _.O(function(Y){switch(Y.nextAddress){case 1:return _.iD(cgY(),{mainAppWeb:_.qi()}),_.g2(Y,2),Y.yield(R.load(),4);case 4:R.data=Y.yieldResult;_.us(Y,3);break;case 2:_.UT(Y),_.lD(cgY(),"FAILURE");case 3:A=R.data&&R.data.items&&R.data.items.length>0?"SUCCESS":"FAILURE",_.lD(cgY(),A),_.XH(Y)}})};
_.l.setGuideData=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1)return A.disabled?E.return():A.data?(R.data=A.data,A.guideRenderers.add(R),E.return()):E.yield(A.initializeGuideData(),2);A.graftGuideToPage();Y=_.CQ("IS_HOMEPAGE_COLD")?"eop":void 0;_.v("disable_element_pool_populator")?A.setGuideDataAfterInit(R):(P=new _.gt(1,Y),_.nH(P,A.setGuideDataAfterInit.bind(A,R)));_.XH(E)})};
_.l.setGuideDataAfterInit=function(R){R.data=this.data;R.markDirty();this.guideRenderers.add(R);_.wg(function(){_.Fh("gle")});
_.RK(this,function(){_.Fh("gpe")})};
_.l.graftGuideToPage=function(){if(this.data){var R=this.data&&this.data.trackingParams;R&&(R=_.S5(R),_.Sm(_.rU(),R))}};
_.l.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.T2(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.l.onDrawerOpenedChanged=function(R,A){!A.value&&this.guideOpened&&(this.guideOpened=!1)};
_.l.onYtGuideToggle=function(R){var A=this.guideOpened;this.guideOpened=!A;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var Y=_.Hk();_.rH(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;Y.save()}this.updateGuideDrawerElementState();if(this.guideElement){var P;this.guideOpened&&((P=R.detail)==null?0:P.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.T2(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.T2(this,this.onAppDrawerTransitioned))}A||this.initializeGuideDataIfEmpty()};
_.l.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.T2(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.Ln(this.guideElement)};
_.l.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.T2(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(gBo(this.guideOpened))};
_.l.guidePersistentAndVisibleChanged=function(){_.MT(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.l.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.cK({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.l.miniGuideVisibleChanged=function(){_.MT(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.l.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(gBo(this.guideOpened)),this.initialLoad=!1);_.MT(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.l.activeEndpointChanged=function(){_.MT(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.l.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.l.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()};
_.l.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var R=this.canFitPersistentGuide(this.cachedClientWidth);R?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=R}this.updateGuideDrawerElementState()};
_.l.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.l.getGuideOpened=function(){return this.guideOpened};
_.l.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.l.getActiveEndpoint=function(){return this.activeEndpoint};
_.l.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.l.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&&_.xo(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.l.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.v("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.l.handleGuideMouseLeave=function(){var R=this;!this.sessionUserManuallyExpandedGuideState&&_.v("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.u5(this,"handleGuideMouseLeave",function(){R.isMouseOverGuide||!R.guideOpened||R.miniGuideVisible||(R.guideOpened=!1,R.updateGuideDrawerElementState())},100))};
_.l.computeGuidePersistentAndVisible=function(){var R=this;_.u5(this,"computeGuidePersistentAndVisible",function(){R.guidePersistentAndVisible=R.guideOpened&&R.guidePersistent;R.guideIsVisibleButNotPersistent=!(!R.guideOpened||R.guidePersistent)})};
_.l.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.l.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.l.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.l.startLoadingWatch=function(){this.closeGuide()};
_.l.startLoadingShorts=function(){_.v("web_hide_guide_on_shorts")&&this.closeGuide()};
_.l.onYtNavigateFinish=function(R,A){if(!_.lu||A){this.activeEndpoint=A.endpoint;this.pageType=A.pageType;this.pageUrl=A.response.url;var Y,P;R=(P=_.n((Y=A.endpoint)==null?void 0:Y.commandMetadata,_.Ti))==null?void 0:P.url;!this.pageUrl&&R&&(this.pageUrl=R);_.v("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.l.getVisibleGuideRenderer=function(){for(var R=_.x(this.guideRenderers),A=R.next();!A.done;A=R.next())if(A=A.value,this.miniGuideVisible&&A.is==="ytd-mini-guide-renderer"||this.guideOpened&&A.is==="ytd-guide-renderer")return A;return null};
_.l.markGuideRendererDirty=function(R){if(R){typeof R.markDirty==="function"&&R.markDirty();R=_.x([].concat(_.py(_.Mo(R).children)));for(var A=R.next();!A.done;A=R.next())this.markGuideRendererDirty(A.value)}};
_.l.persistentGuideEnabled=function(R,A){if(!A||R==="watch"||R==="settings"||R==="shorts"&&this.isFullscreenShorts||_.v("reels_web_disable_persistent_guide_shorts")&&R==="shorts")return!1;var Y=_.T3(A)||"";return _.v("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(P){return Y===P}):!this.persistentGuideBlockedPagePathRegex.test(Y)};
_.l.canFitPersistentGuide=function(R){var A=_.cU("kevlar_persistent_guide_width_threshold",1312);return A===-1||_.v("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:R>A};
_.l.canFitMiniGuide=function(R){return this.miniGuideWidthThreshold===-1?!1:R>this.miniGuideWidthThreshold};
_.l.onResize=function(){var R=this;_.u5(this,"calculateGuideState",function(){R.onResizeDebounced()})};
_.l.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.l.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.l.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.l.getInitialGuideUserStateOpened=function(){return _.v("web_force_mini_guide_default")?!1:!_.Hk().getFlag(109)};
_.Yh.Object.defineProperties(T4.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.a1("initialBodyClientWidth")||window.innerWidth}}});
T4.prototype.onResize=T4.prototype.onResize;T4.prototype.observeForMiniGuideVisible=T4.prototype.observeForMiniGuideVisible;T4.prototype.computeGuidePersistentAndVisible=T4.prototype.computeGuidePersistentAndVisible;T4.prototype.cachedClientWidthChanged=T4.prototype.cachedClientWidthChanged;T4.prototype.resetGuide=T4.prototype.resetGuide;T4.prototype.activeEndpointChanged=T4.prototype.activeEndpointChanged;T4.prototype.guideOpenedChanged=T4.prototype.guideOpenedChanged;
T4.prototype.miniGuideVisibleChanged=T4.prototype.miniGuideVisibleChanged;T4.prototype.guideIsVisibleButNotPersistentChanged=T4.prototype.guideIsVisibleButNotPersistentChanged;T4.prototype.guidePersistentAndVisibleChanged=T4.prototype.guidePersistentAndVisibleChanged;T4.prototype.onGuideElementChanged=T4.prototype.onGuideElementChanged;T4.prototype.onGuidePersistentChanged=T4.prototype.onGuidePersistentChanged;T4.prototype.onRenderGuideChanged=T4.prototype.onRenderGuideChanged;
T4.prototype.onActiveEndpointChanged=T4.prototype.onActiveEndpointChanged;T4.prototype.onMiniGuideVisibleChanged=T4.prototype.onMiniGuideVisibleChanged;T4.prototype.onGuideIsVisibleButNotPersistentChanged=T4.prototype.onGuideIsVisibleButNotPersistentChanged;T4.prototype.onGuidePersistendAndVisibleChanged=T4.prototype.onGuidePersistendAndVisibleChanged;_.C([_.U(_.Cr),_.k("design:type",Object)],T4.prototype,"ironResizableBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],T4.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],T4.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],T4.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],T4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],T4.prototype,"disabled",void 0);
_.C([_.S(),_.k("design:type",Boolean)],T4.prototype,"guidePersistentAndVisible",void 0);_.C([_.vZ("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onGuidePersistendAndVisibleChanged",null);_.C([_.S(),_.k("design:type",Boolean)],T4.prototype,"guideIsVisibleButNotPersistent",void 0);
_.C([_.vZ("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.C([_.S(),_.k("design:type",Object)],T4.prototype,"miniGuideVisible",void 0);_.C([_.vZ("miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onMiniGuideVisibleChanged",null);_.C([_.S(),_.k("design:type",Boolean)],T4.prototype,"forceMiniGuideClose",void 0);
_.C([_.S(),_.k("design:type",Object)],T4.prototype,"activeEndpoint",void 0);_.C([_.vZ("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onActiveEndpointChanged",null);_.C([_.S(),_.k("design:type",Boolean)],T4.prototype,"renderGuide",void 0);_.C([_.vZ("renderGuide"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onRenderGuideChanged",null);
_.C([_.S(),_.k("design:type",Object)],T4.prototype,"guideOpened",void 0);_.C([_.S(),_.k("design:type",Boolean)],T4.prototype,"guidePersistent",void 0);_.C([_.vZ("guidePersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onGuidePersistentChanged",null);_.C([_.S(),_.k("design:type",Object)],T4.prototype,"guideUserStateOpened",void 0);_.C([_.S(),_.k("design:type",String)],T4.prototype,"pageUrl",void 0);
_.C([_.S(),_.k("design:type",String)],T4.prototype,"pageType",void 0);_.C([_.S(),_.k("design:type",Number)],T4.prototype,"cachedClientWidth",void 0);_.C([_.S(),_.k("design:type",Object)],T4.prototype,"guideElement",void 0);_.C([_.S({selector:_.zt}),_.k("design:type",Object)],T4.prototype,"isFullscreenShorts",void 0);_.C([_.vZ("guideElement"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onGuideElementChanged",null);
_.C([_.vZ("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"guidePersistentAndVisibleChanged",null);_.C([_.Ul("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.C([_.vZ("miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"miniGuideVisibleChanged",null);_.C([_.Ul("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"guideOpenedChanged",null);_.C([_.vZ("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"activeEndpointChanged",null);
_.C([_.Ul("pageUrl"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"resetGuide",null);_.C([_.Ul("cachedClientWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"cachedClientWidthChanged",null);_.C([_.vZ("guideOpened","guidePersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"computeGuidePersistentAndVisible",null);
_.C([_.Ul("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"observeForMiniGuideVisible",null);_.C([_.Qa("iron-resize"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T4.prototype,"onResize",null);_.C([_.F({disableElementRegistration:!0,is:"yt-guide-manager"})],T4);var SmQ=_.B(T4,"yt-guide-manager",void 0,{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var Q9=function(){var R=_.K.apply(this,arguments)||this;R.JSC$19977_keyboardInUse=!1;R.boundHandleCapturedKeydownEvent=function(A){R.handleCapturedKeydownEvent(A)};
return R};
_.H(Q9,_.K);_.l=Q9.prototype;_.l.attached=function(){this.listenToDocument(document)};
_.l.listenToDocument=function(R){R.addEventListener("keydown",_.T2(this,this.onKeyDownEvent));R.addEventListener("keyup",_.T2(this,this.onKeyUpEvent));R.addEventListener("mousedown",_.T2(this,this.onMouseDownEvent));_.v("desktop_keyboard_capture_keydown_killswitch")||R.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);R.addEventListener("yt-page-data-updated",_.T2(this,this.onPageUpdate))};
_.l.detached=function(){this.unlistenFromDocument(document)};
_.l.unlistenFromDocument=function(R){R.removeEventListener("keydown",_.T2(this,this.onKeyDownEvent));R.removeEventListener("keyup",_.T2(this,this.onKeyUpEvent));R.removeEventListener("mousedown",_.T2(this,this.onMouseDownEvent));_.v("desktop_keyboard_capture_keydown_killswitch")||R.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);R.removeEventListener("yt-page-data-updated",_.T2(this,this.onPageUpdate))};
_.l.ready=function(){_.is().addProvider({provide:_.rt,useValue:this})};
_.l.isKeyBoardInUse=function(){return this.JSC$19977_keyboardInUse};
_.l.handleCapturedKeydownEvent=function(R){if(R.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(R)};
_.l.onMouseDownEvent=function(){this.JSC$19977_keyboardInUse=!1};
_.l.onPageUpdate=function(){if(_.v("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.v("web_shorts_keyboard_shortcut_usage_log")){_.II.clear();for(var R=_.x(_.XA),A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;Y=Y.next().value;Y=_.NV(Y);_.II.set(A,Y);_.ZM(_.F9(),_.pO(),Y)}_.Kh.clear();R=_.x(_.SZ);for(A=R.next();!A.done;A=R.next())Y=_.x(A.value),A=Y.next().value,Y=Y.next().value,Y=_.NV(Y),_.Kh.set(A,Y),_.ZM(_.F9(),_.pO(),Y);_.tg(_.F9(),_.pO(),[].concat(_.py(_.Kh.values()),
_.py(_.II.values())));_.uE(_.F9(),[].concat(_.py(_.Kh.values()),_.py(_.II.values())))}};
_.l.onMiniplayerActiveChange=function(){var R;(R=_.is().resolve(_.jv).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(R.document):this.unlistenFromDocument(R.document))};
_.l.ignoreKeyEvent=function(R){if(R.ctrlKey||R.altKey)if(_.v("kevlar_macro_markers_keyboard_shortcut")){if(R.keyCode!==37&&R.keyCode!==39)return!0}else return!0;var A=_.Ah(R)||[];return _.m4F(A)?(_.v("web_button_or_anchor_list_item")&&jaj(A,R)&&(this.JSC$19977_keyboardInUse=!0),!0):R.defaultPrevented?(uZ(R.keyCode,R.shiftKey,this.isShortsPage),!0):R.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(R):!1};
_.l.isSpacebarClick=function(R){var A=R||window.event;var Y;A.composedPath&&typeof A.composedPath==="function"?Y=A.composedPath():Y=A.path;Y&&Y.length?A=Y[0]:(A=A||window.event,A=A.target||A.srcElement,A.nodeType==3&&(A=A.parentNode));return A&&R.keyCode===32&&(R=A.tagName==="BUTTON"||A.tagName==="A"||A.tagName==="INPUT",A=(A=A.getAttribute("role"))&&(A==="option"||A==="button"||A.indexOf("menuitem")===0),R||A)?!0:!1};
_.l.onKeyDownEvent=function(R){if(!this.ignoreKeyEvent(R)&&(R.keyCode===191&&(R.shiftKey||R.metaKey?R.repeat!=null&&R.repeat||(this.openHotkeyDialog(),uZ(R.keyCode,R.shiftKey,this.isShortsPage)):(this.focusSearchBox(),R.preventDefault())),!R.metaKey)){var A=_.is().resolve(_.jv);switch(R.keyCode){case 9:this.JSC$19977_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(R);break;case 84:A.pipController.getWindow()&&window.focus();this.toggleTheaterMode(R.keyCode,R.shiftKey);break;case 73:A.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(R.keyCode,R.shiftKey);break;case 70:if(this.isShortsPage&&_.v("web_fullscreen_shorts")){_.TqF();break}this.isMiniplayerActive()?A.pipController.getWindow()&&(A.close(!0),window.focus()):this.passEventToPlayer(R);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(R.keyCode,R.shiftKey):this.closeMiniplayer(R.keyCode,R.shiftKey)||this.passEventToPlayer(R);break;case 13:R.shiftKey&&_.is().resolve(_.Ga).activate(R);break;default:this.passEventToPlayer(R)}}};
_.l.onKeyUpEvent=function(R){if(!this.ignoreKeyEvent(R))if(_.v("web_speedmaster_spacebar_control")&&R.keyCode===32)this.handlePlayerSpaceKey(R,!0);else{var A=this.getPlayerManager();A&&(A=A.getPlayer())&&A.handleGlobalKeyUp(R.keyCode,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code)}};
_.l.getPlayerManager=function(){var R=_.EJ(),A=_.is().resolve(_.z3(_.YH));return R&&A&&A.isOnWatch()?R:null};
_.l.passEventToPlayer=function(R,A){var Y=this,P,E,z,c;return _.O(function(M){if(M.nextAddress==1){if(!_.v("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&Y.isMiniplayerActive())P=_.is().resolve(_.jv).getPlayerElement();else if(Y.inlinePreviewIsActive){if(E=_.MT(Y.hostElement,"yt-get-inline-preview-player-action"),(z=E)==null?0:z[0])P=E[0]}else P=_.EJ();return P?M.yield(P.getPlayerPromise(),3):M.jumpTo(0)}c=M.yieldResult;A?c.handleGlobalKeyUp(R.keyCode,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,
R.key,R.code):c.handleGlobalKeyDown(R.keyCode,R.shiftKey,R.ctrlKey,R.altKey,R.metaKey,R.key,R.code,R.repeat);R.keyCode!==38&&R.keyCode!==40&&uZ(R.keyCode,R.shiftKey,Y.isShortsPage);_.XH(M)})};
_.l.focusSearchBox=function(){_.xo(this.hostElement,"yt-focus-searchbox")};
_.l.openHotkeyDialog=function(){_.xo(this.hostElement,"yt-open-hotkey-dialog")};
_.l.isMiniplayerActive=function(){return _.is().resolve(_.jv).isMiniplayerActive()};
_.l.closeMiniplayer=function(R,A){return this.isMiniplayerActive()?(_.is().resolve(_.jv).close(),uZ(R,A,this.isShortsPage),!0):!1};
_.l.toggleTheaterMode=function(R,A){var Y=_.pY(_.Yp().getState()),P=this.getPlayerManager(),E=_.v("disable_theater_mode_keyboard")||_.CQ("START_IN_FULL_WINDOW_MODE");P&&!E&&(Y=!Y,_.EC()&&_.v("external_fullscreen")&&(Y=!0),_.OC(this.hostElement,"yt-toggle-theater-mode",[Y]),uZ(R,A,this.isShortsPage))};
_.l.toggleMiniplayer=function(R,A){var Y=this.getPlayerManager();if(this.isMiniplayerActive()){var P;((P=_.is().resolve(_.z3(_.YH)))==null?0:P.isOnWatch())?_.is().resolve(_.jv).close(!0):_.dm(_.is().resolve(_.jv));uZ(R,A,this.isShortsPage)}else Y&&(_.OC(this.hostElement,"yt-activate-miniplayer-from-watch-action"),uZ(R,A,this.isShortsPage))};
_.l.handlePlayerSpaceKey=function(R,A){var Y=!!_.EJ()||this.isMiniplayerActive();Y=_.v("disable_space_scroll_fix")||Y;_.v("global_spacebar_pause")&&!this.isKeyBoardInUse()&&Y&&(R.preventDefault(),this.passEventToPlayer(R,A))};
_.l.isPresentingTheaterMode=function(){return _.v("web_watch_enable_tm_esc_key")?_.pY(_.Yp().getState())&&!_.EC():!1};
Q9.prototype.onMiniplayerActiveChange=Q9.prototype.onMiniplayerActiveChange;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Q9.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Q9.prototype,"ytdReduxBehavior",void 0);_.C([_.S({selector:_.YVl}),_.k("design:type",Boolean)],Q9.prototype,"inlinePreviewIsActive",void 0);_.C([_.S({selector:_.P76}),_.k("design:type",Boolean)],Q9.prototype,"isShortsPage",void 0);
_.C([_.S({selector:_.BK}),_.k("design:type",Boolean)],Q9.prototype,"miniplayerIsActive",void 0);_.C([_.vZ("miniplayerIsActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Q9.prototype,"onMiniplayerActiveChange",null);_.C([_.F({disableElementRegistration:!0,is:"yt-hotkey-manager"})],Q9);_.B(Q9,"yt-hotkey-manager",void 0,{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var v0=function(){var R=_.K.apply(this,arguments)||this;R.loopStateEntityKey_=null;R.playlistLoopStateEntity_=null;R.isShuffleNextPlaylist=!1;R.PLAYER_EVENTS_=new Map;R.playerListenersSetup_=!1;R.videoSkipJob_=0;R.canAutoAdvance_=!1;R.playerManager_=null;R.TEST_ONLY={};return R};
_.H(v0,_.K);_.l=v0.prototype;_.l.ready=function(){_.is().addProvider({provide:_.Y7,useValue:this.hostElement})};
_.l.created=function(){this.PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.l.attached=function(){document.addEventListener("yt-navigate-start",_.T2(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.T2(this,this.onYtNavigateFinish_))};
_.l.detached=function(){document.removeEventListener("yt-navigate-start",_.T2(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.T2(this,this.onYtNavigateFinish_))};
_.l.updatePlaylistEventListeners=function(R,A){A&&!this.playerListenersSetup_?(this.playerManager_=R,this.registerPlaylistEventListeners_(R)):!A&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(R))};
_.l.setPlayer=function(R){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=R};
_.l.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.l.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.l.registerPlaylistEventListeners_=function(R){var A=this;R.getPlayerPromise().then(function(Y){A.playerListenersSetup_||(A.ytPlayerListenerBehavior.listenToPlayerEvents(Y,A.PLAYER_EVENTS_),A.playerListenersSetup_=!0)})};
_.l.removePlaylistEventListeners_=function(R){var A=this;R.getPlayerPromise().then(function(Y){A.playerListenersSetup_&&(A.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Y,A.PLAYER_EVENTS_),A.playerListenersSetup_=!1)})};
_.l.setPlaylistComponent=function(R){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.T2(this,this.onPlaylistYtNavigate_)),R&&(R.data&&this.playlistComponent.data&&R.data.playlistId==this.playlistComponent.data.playlistId?(R.loopOn=this.playlistComponent.loopOn,R.shuffleOn=this.playlistComponent.shuffleOn):(R.loopOn=!1,R.shuffleOn=!1),this.isShuffleNextPlaylist&&(R.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=R;this.playlistComponent.addEventListener("yt-navigate",
_.T2(this,this.onPlaylistYtNavigate_))};
_.l.setAutoplayRenderer=function(R){this.autoplayData=R};
_.l.setPlaylistData=function(R){this.currentPlaylistData_=R;_.xo(this.hostElement,"yt-playlist-data-updated");_.BO.isEmpty(R)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(R)};
_.l.setPlayerPlaybackControlData=function(R){this.playerManager_&&this.playerManager_.updatePlayerComponents(R.playlistPanelRenderer)};
_.l.getPlaylistData=function(){return this.currentPlaylistData_};
_.l.getTempData_=function(R,A){if(this.playlistComponent==null)return null;R={};this.playlistComponent.shuffleOn&&(R.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(R.loop_on=this.playlistComponent.loopOn);A&&(R.autonav="1",_.is().resolve(_.XW),A=_.z$(),A>0&&(R.lact=A),this.playerManager_&&(A=this.playerManager_.getPlayer())&&A.shouldSendVisibilityState()&&(A=A.getVisibilityState(),A!=0&&(R.vis=A)));_.v("enable_unknown_lact_fix_on_html5")&&(_.is().resolve(_.XW),R.lact=
_.z$());return R};
_.l.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.l.setLoopStateEntityKey_=function(R){var A;this.loopStateEntityKey_=((A=this.getPlaylistLoopData_(R))==null?void 0:A.playlistLoopStateEntityKey)||null};
_.l.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.l.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.l.skipVideo=function(){var R=this,A=_.v("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||A)A=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.$H(_.fn,function(){R.onPlaylistNext();R.videoSkipJob_=0},A)};
_.l.cancelVideoSkip=function(){this.videoSkipJob_&&(_.fn.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.l.isInBackground_=function(){var R=window.document.visibilityState;return!(!R||R=="visible")};
_.l.onPlaylistIndex_=function(R){this.playlistComponent&&(R=this.playlistComponent.data.contents[R].playlistPanelVideoRenderer.navigationEndpoint,_.xo(this.hostElement,"yt-navigate",{endpoint:R,tempData:this.getTempData_(R)}))};
_.l.onPlayerStateChange_=function(R){if(R=R==0&&this.playlistComponent&&this.canAutoAdvance_)R=_.mA.getInstance(),R=!(R.autonavState_===3?R.autonavPauseReason_&&R.autonavPauseReason_.inputBoxFocus===!0:R.autonavState_===1&&R.disabledAutonavPauseReason_&&R.disabledAutonavPauseReason_.inputBoxFocus===!0);R&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.l.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.l.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.l.navigateToAutoplayWatchEndpoint_=function(R,A,Y){var P=this.playlistComponent.data.currentIndex,E=this.getNumPlayableVideos_();R=="NORMAL"&&A=="autoplayVideo"&&P+1>=E&&Y||!(R=this.getVideoEndpoint_(R,A))||(Y=this.getTempData_(R,Y),_.xo(this.hostElement,"yt-navigate",{endpoint:R,tempData:Y}))};
_.l.getNumPlayableVideos_=function(){for(var R=0,A=_.x(this.playlistComponent.data.contents||[]),Y=A.next();!Y.done;Y=A.next())Y.value.playlistPanelVideoRenderer&&(R+=1);return R};
_.l.getVideoEndpoint_=function(R,A){if(this.autoplayData&&this.autoplayData.sets)for(var Y=0,P=this.autoplayData.sets.length;Y<P;Y++){var E=this.autoplayData.sets[Y];if(E.mode==R){if(E[A])return E[A];break}}else R=new _.XN("AutoplayData is undefined in playlist manager","Mode: "+R+" endpoint: "+A),_.pK(R)};
_.l.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.l.onPlaylistYtNavigate_=function(R){if(R.detail.endpoint){R.stopPropagation();var A=R.detail;A.tempData=this.getTempData_(R.detail.endpoint);_.xo(this.hostElement,"yt-navigate",A)}};
_.l.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.l.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.l.playlistLoopStateEntityChanged_=function(R){var A=this,Y,P,E;return _.O(function(z){if(z.nextAddress==1){if(!R)return z.return();Y=R.state==="PLAYLIST_LOOP_STATE_ONE";return A.playerManager_?z.yield(A.playerManager_.getPlayerPromise(),3):z.jumpTo(2)}z.nextAddress!=2&&(P=z.yieldResult,P.setLoopVideo(Y));E=R.state==="PLAYLIST_LOOP_STATE_ALL";A.playlistComponent&&(A.playlistComponent.loopOn=E);_.XH(z)})};
_.l.getPlaylistLoopData_=function(R){var A,Y;if(R=R==null?void 0:(A=R.playlistButtons)==null?void 0:(Y=A.menuRenderer)==null?void 0:Y.topLevelButtons)for(A=_.x(R),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,Y.playlistLoopButtonRenderer)return Y.playlistLoopButtonRenderer};
_.l.getLoopStateCommand_=function(R){var A=this.getPlaylistData(),Y;A=((Y=this.getPlaylistLoopData_(A))==null?void 0:Y.states)||[];var P;R=(P=_.n(A[R?1:2],_.Iw8))==null?void 0:P.button;var E;return(E=_.n(R,_.RC))==null?void 0:E.command};
_.l.onPlayerLoopChange_=function(R){this.playlistLoopStateEntity_&&(R?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(R=this.getLoopStateCommand_(R))&&this.ytComponentBehavior.resolveCommand(R)};
_.l.onSleepTimerSettingsChanged_=function(R){this.canAutoAdvance_=R!=="End of video"};
v0.prototype.onPlaylistLoopStateEntityChanged=v0.prototype.onPlaylistLoopStateEntityChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],v0.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.VC.YtPlayerListenerBehavior),_.k("design:type",_.JC)],v0.prototype,"ytPlayerListenerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],v0.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],v0.prototype,"loopStateEntityKey_",void 0);
_.C([_.S({selectorArgs:["loopStateEntityKey_"],selector:_.L2k}),_.k("design:type",Object)],v0.prototype,"playlistLoopStateEntity_",void 0);_.C([_.vZ("playlistLoopStateEntity_"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],v0.prototype,"onPlaylistLoopStateEntityChanged",null);_.C([_.F({disableElementRegistration:!0,is:"yt-playlist-manager"})],v0);_.B(v0,"yt-playlist-manager",void 0,{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var IqN,Kan=function(){if(IqN!==void 0)return IqN;var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return IqN=R};var gQ=function(){var R=_.K.apply(this,arguments)||this;R.lastCallback=null;R.getAccountLinkPromises={};R.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);R.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return R};
_.H(gQ,_.K);_.l=gQ.prototype;_.l.getLocation=function(){return window.location.href};
_.l.getCompletionUrl=function(){return _.Ag(this.getLocation())};
_.l.containsRedirectState=function(R){return(R=_.ge(_.I1k(R)))?(new URLSearchParams(R)).get("redirect_state")!==null:!1};
_.l.createGalConfig=function(R,A){var Y=new GsG;R=Y=A?this.getPopupOrRedirectSetting(Y,_.a1("LINK_API_KEY"),_.a1("LINK_API_KEY_REDIRECT"),R):ZFf(Y,_.a1("LINK_API_KEY"));R.authUser=_.a1("SESSION_INDEX")||0;R.supportedFlows=new Set([4]);return R.build()};
_.l.getPopupOrRedirectSetting=function(R,A,Y,P){this.isGalInteractionPopupMode(P)?(R.interactionMode=0,R=ZFf(R,A)):(R.interactionMode=1,A=this.getCompletionUrl(),R.completionUrl=A,R=ZFf(R,Y));return R};
_.l.isGalInteractionPopupMode=function(R){if(this.redirectModeProviderAllowlist.has(R))switch(R){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.l.getStatusEntityKeyForProviderId=function(R){return _.yS(R+":all","accountLinkStatusEntity")};
_.l.findNestedPropValue=function(R,A){var Y=!1,P=null;JSON.stringify(R,function(E,z){Y||E!==A||(Y=!0,P=z);return Y?null:z});
return P};
_.l.findAccountLinkButtonViewModel=function(R,A){var Y=null,P=!1;JSON.stringify(R,function(E,z){P||z.accountLinkStatusEntityKey!==A||z.accountLinkStatusSecondaryEntityKey||(P=!0,Y=z);return P?null:z});
return Y};
_.l.executeLinkingSuccessOrFailureCommands=function(R,A,Y){var P=null,E;(A==null?0:(E=A.url)==null?0:E.includes("account_sharing"))?P=A==null?void 0:A.response:P=A==null?void 0:A.response;(A=this.findAccountLinkButtonViewModel(P,R))?(R=Y?this.findNestedPropValue(A,"onSuccessCommand"):this.findNestedPropValue(A,"onFailureCommand"))?_.yn([R],this.hostElement):_.tv(Error("ql")):_.tv(Error("rl`"+R))};
_.l.handleInitializeRequest=function(R,A){var Y=this,P=KbW(this.createGalConfig(R,!0));this.containsRedirectState(this.getLocation())?UiW(R,P.config,P.galService).then(function(E){var z=Y.getStatusEntityKeyForProviderId(R);if(E.statusCode===1)A&&Y.executeLinkingSuccessOrFailureCommands(z,A,!0),E=Y.getLocation().indexOf("#"),E!==-1&&window.history.pushState(null,"",Y.getLocation().substring(0,E));else return A&&Y.executeLinkingSuccessOrFailureCommands(z,A,!1),Promise.reject(Error(E.statusMessage))}).catch(function(E){_.pK(E);
_.Wj("gamingAccountLinkStatusChanged",{serviceId:R,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(E)}):this.getAccountLinkPromises[R]=P.startLinkingSession({serviceId:R})};
_.l.handleAccountLinkCommand=function(R){_.n(R,K49)&&this.handleLinkRequest(_.n(R,K49))};
_.l.handleLinkRequest=function(R){var A=this,Y=R.thirdPartyId;if(Y)if(this.isGalInteractionPopupMode(Y)){var P=function(){A.closeAndFire("ytd-gaming-account-link-setting-renderer",R.onFailureCommand)},E=function(){A.closeAndFire("ytd-gaming-account-link-setting-renderer",R.onSuccessCommand)};
this.lastCallback=E;this.getAccountLinkPromises[Y].then(function(z){rA0(z).then(function(c){c.statusCode===1?E():P()})}).catch(function(){P()})}else this.getAccountLinkPromises[Y].then(function(z){rA0(z).then(function(c){if(c.statusCode!==1)return Promise.reject(Error(c.statusMessage))})}).catch(function(z){_.pK(z);
_.Wj("gamingAccountLinkStatusChanged",{serviceId:Y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(z)})};
_.l.closeAndFire=function(R,A){_.OC(this.hostElement,"yt-close-popup-action",[R]);A&&_.yn([A],this.hostElement)};
_.l.handleAccountUnlinkCommand=function(R){_.n(R,W4G)&&this.handleUnlinkRequest(_.n(R,W4G))};
_.l.handleUnlinkRequest=function(R){var A=this,Y=R.thirdPartyId;if(Y){var P=function(){A.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",R.onFailureCommand)},E=function(){A.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",R.onSuccessCommand)};
this.lastCallback=E;var z=KbW(this.createGalConfig(Y,!1));this.unlinkUserGal(z,Y).then(function(c){c.statusCode===1?E():P()}).catch(function(){P()})}};
_.l.unlinkUserGal=function(R,A){return R.deleteLink(A)};
_.l.handleLogAccountLinkingEventCommand=function(R){_.v("enable_gel_log_commands")&&_.n(R,jsF)&&(R=_.n(R,jsF).event)&&_.Wj("gamingAccountLinkStatusChanged",R)};
_.Yh.Object.defineProperties(gQ,{template:{configurable:!0,enumerable:!0,get:function(){return Kan()}}});
_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],gQ.prototype,"ytOpenPopupBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],gQ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-third-party-manager"})],gQ);_.B(gQ,"ytd-third-party-manager",function(){return Kan()},{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var WaW,jUG=function(){if(WaW!==void 0)return WaW;var R=document.createElement("template");_.D(R,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return WaW=R};var n2=function(){var R=_.K.apply(this,arguments)||this;R.currentPage=void 0;R.renderLoadingStateJobId=0;R.updatePageDataJobId=0;R.pageDisposeJobsets=new WeakMap;R.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-start-loading-learning-journey":"startLoadingLearningJourney","yt-get-page-offset":"getPageOffset","yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose",
"yt-stop-old-player":"onYtStopOldPlayer"};R.shouldApplyLockupToWatchTransition=_.v("web_thumbnail_to_watch_transition");R.shouldApplySlideTransition=_.OK("web_page_transition_type")==="slide"||_.v("enable_plj_landing_page");R.shouldApplyLearningJourneyTransition=_.v("enable_plj_landing_page");R.TEST_ONLY=void 0;return R};
_.H(n2,_.K);_.l=n2.prototype;_.l.ready=function(){var R=_.is();R.addProvider({provide:_.YH,useValue:this});R.addProvider({provide:_.qIA,useValue:this})};
_.l.created=function(){this.pagePool=new zGF;this.contextSwitcher=new Q_j};
_.l.attached=function(){_.xo(this.hostElement,"attached");var R=_.is().resolve(_.z3(_.a4));R&&(this.contextSwitcher.JSC$19803_networkService_=R);this.viewTransitionManager=_.is().resolve(_.B8)};
_.l.getPageOffset=function(R){return R.getScrollTop()};
_.l.setPageOffset=function(R,A){try{R.setScrollTop(A)}catch(Y){}};
_.l.setPageOffsetForNavigation=function(R,A){_.xo(this.hostElement,"yt-navigate-set-page-offset",{page:R,offset:A===void 0?0:A})};
_.l.pauseActiveContext=function(){var R=this.contextSwitcher;R.activeContext_&&R.activeContext_.pause()};
_.l.getModuleNameForType=function(R){return R==="watch"?_.v("kevlar_watch_fixie")?"watchFixie":_.v("kevlar_watch_grid")?"watchGrid":"watchFlexy":R==="shorts"||R==="search"?R:"browse"};
_.l.attachPage=function(R){var A,Y=!_.v("pc_is_attached_ks")&&(R==null?void 0:(A=R.polymerController)==null?void 0:A.isAttached);if(!R.isAttached&&!Y)try{_.Mo(this.hostElement).appendChild(R)}catch(E){var P;_.pK(new _.XN("Error attaching page element for component",{origin:(P=this.currentPage)==null?void 0:P.is,component:R.is}))}};
_.l.setActivePage=function(R){var A=this,Y=!1,P=function(){var E=A.isOnWatch(),z=A.currentPage;if(R)if(R!==A.currentPage){z&&(z.hidden=!0,z.active=!1,z.removeAttribute("role"));A.currentPage=R;var c,M=_.ra((c=A.data)==null?void 0:c.endpoint);z&&_.xo(A.hostElement,"yt-page-type-changed",{oldPageType:z.is,newPageType:R.is,newPageSubtype:M});_.RZ().dispatch(_.cK({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:R.is}));_.RZ().dispatch(_.cK({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:M||""}));R.hidden=
!1;A.attachPage(R);R.active=!0;R.setAttribute("role","main");z&&A.setPageOffsetForNavigation(R,0);_.v("kevlar_remove_page_dom_on_switch")&&!E&&z&&_.Mo(A.hostElement).removeChild(z)}else Y=!0;else A.handleMissingDestinationPage(z)};
this.shouldRunBrowseTransition(this.currentPage,R)?ojW(this.viewTransitionManager,P):this.shouldRunLearningJourneyTransition(this.currentPage,R)?Z6N(this.viewTransitionManager,P):P();return Y};
_.l.handleMissingDestinationPage=function(R){if(this.isColdLoadForUnknownPage(R))_.pK(new _.XN("Cold load for unknown page"));else{var A;R=new _.XN("Unable to set active page",R?R.is:"unknown origin",(A=this.data)==null?void 0:A.endpoint);_.bj(R)}};
_.l.isColdLoadForUnknownPage=function(R){return!R&&FA(this.data)==="unknown"};
_.l.shouldRunBrowseTransition=function(R,A){return this.shouldApplySlideTransition&&(R==null?void 0:R.is)==="ytd-browse"&&(A==null?void 0:A.is)==="ytd-browse"&&R!==A};
_.l.shouldRunLearningJourneyTransition=function(R,A){return this.shouldApplyLearningJourneyTransition&&(R==null?void 0:R.is)==="ytd-browse"&&((A==null?void 0:A.is)==="ytd-watch-learning-journey"||(A==null?void 0:A.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.l.shouldRunWatchNextLoadedTransition=function(R,A){return this.viewTransitionManager&&R.is==="ytd-watch-flexy"&&A};
_.l.updatePageData=function(R){var A=this,Y=this.data;this.updatePageDataJobId&&_.fn.cancelJob(this.updatePageDataJobId);this.data=R;return new _.yR(function(P){var E=function(){R.filler?A.performDataUpdate(R,Y):dhF(function(){A.performDataUpdate(R,Y)});
var N=_.EV();_.zD(N,"cr")||N.processSignal("cr");P()},z=function(){R&&R.page==="watch"?A.updatePageDataJobId=_.$H(_.fn,E):E()};
if(_.v("kevlar_enable_mss_page_modules_client")&&R){var c=_.is().resolve(_.f6),M=A.getModuleNameForType(R.page);(c=CDo(c,[M]))?c.then(z):z()}else z()})};
_.l.isDownloadsPage=function(R){var A,Y;return(R==null?void 0:(A=R.endpoint)==null?void 0:(Y=A.browseEndpoint)==null?void 0:Y.browseId)==="FEdownloads"};
_.l.setPlayerSyncInterval=function(R){var A;return _.O(function(Y){if(Y.nextAddress==1)return Y.yield(_.is().resolve(_.cT),2);A=Y.yieldResult;A.setUpPositionSyncInterval(R);_.XH(Y)})};
_.l.performDataUpdate=function(R,A){_.v("kevlar_early_popup_close")||_.OC(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var Y=!R.filler;Y&&(_.Fh("lps"),_.v("config_age_report_killswitch")||GiQ());var P=FA(R),E,z=!1;if(_.v("kevlar_remove_page_dom_on_switch")){var c=A&&FA(A);P===c&&(E=this.getCurrentPage())}E||(E=M0(this.pagePool,P));Y&&YRW(this.pagePool.elementPoolPopulator,P);Y&&!this.renderLoadingStateJobId&&(z=this.setActivePage(E));if(E){c=P==="watch";var M=
P==="shorts",N=P==="learning_journey_watch";_.v("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(E);if(c||M||N)E.playerData=R.playerResponse;if(M)if(_.v("web_enable_delay_shorts_sequence_call")){R.reelWatchSequenceResponse&&(R.reelWatchSequenceResponse.entries||R.reelWatchSequenceResponse.prevEntries)&&(E.reelWatchSequenceResponse=R.reelWatchSequenceResponse);E.currentEndpoint=R.endpoint;var y;E.isPreviousPageShorts=!!(A==null?0:(y=A.endpoint)==null?0:y.reelWatchEndpoint);
var m,T;R.cachedSequenceParams=((m=R.endpoint)==null?void 0:(T=m.reelWatchEndpoint)==null?void 0:T.sequenceParams)||R.cachedSequenceParams||(A==null?void 0:A.cachedSequenceParams);var Q,g;R.cachedSequenceProvider=((Q=R.endpoint)==null?void 0:(g=Q.reelWatchEndpoint)==null?void 0:g.sequenceProvider)||R.cachedSequenceProvider||(A==null?void 0:A.cachedSequenceProvider);E.cachedSequenceParams=R.cachedSequenceParams;E.cachedSequenceProvider=R.cachedSequenceProvider}else{R.reelWatchSequenceResponse&&(R.reelWatchSequenceResponse.entries||
R.reelWatchSequenceResponse.prevEntries)?E.reelWatchSequenceResponse=R.reelWatchSequenceResponse:R.cachedReelWatchSequenceResponse?E.reelWatchSequenceResponse=R.cachedReelWatchSequenceResponse:_.v("web_enable_cached_reel_sequence_fix")&&E.cachedReelWatchSequenceResponse&&!E.reelWatchSequenceResponse&&(E.reelWatchSequenceResponse=E.cachedReelWatchSequenceResponse);E.currentEndpoint=R.endpoint;var r;E.isPreviousPageShorts=!!(A==null?0:(r=A.endpoint)==null?0:r.reelWatchEndpoint);R.cachedReelWatchSequenceResponse=
R.reelWatchSequenceResponse||R.cachedReelWatchSequenceResponse||(A==null?void 0:A.cachedReelWatchSequenceResponse);E.cachedReelWatchSequenceResponse=R.cachedReelWatchSequenceResponse}y=this.isDownloadsPage(R);m=this.isDownloadsPage(A);y&&!m?this.setPlayerSyncInterval(6E5):!y&&m&&this.setPlayerSyncInterval();_.v("block_all_player_prefetch_requests")||this.preparePrefetchRequest(R,E,Y,c,M,N);tv9(_.is().resolve(_.jv),A,R);_.gy(_.is().resolve(_.XW));_.v("kevlar_flush_jobs_before_setting_player_response")||
this.flushPageDisposeJobset(E);Y?(Y=typeof E.loadPage,Y==="function"?(E.pageContext=vm9(this.contextSwitcher,E,E.data!==R.response),Y=function(){E.loadPage(R.response)},this.shouldApplySlideTransition&&E.is==="ytd-browse"&&z&&(P==="learning"||this.isDifferentBrowseId(R==null?void 0:R.endpoint,A==null?void 0:A.endpoint))?ojW(this.viewTransitionManager,Y):this.shouldRunWatchNextLoadedTransition(E,z)?GGi(this.viewTransitionManager,Y):Y()):_.fK(new _.XN("b/38014653 ",[P,
E.is,E.nodeName,Y,E.isAttached,A&&FA(A),this.hostElement.children.length])),_.Fh("pdl")):(E.hidden=!0,R.response.filler=!0,E.data=R.response,this.attachPage(E));_.xo(this.hostElement,"yt-page-data-updated",{pageType:P})}_.Ua(_.fn,function(){_.v("logging_avoid_blocking_during_navigation")&&_.iiJ().transition("none");var I=f_i(),b=E;if(R){var p=HCn(R),h=r7Y(R),L;a:{if(R.playerResponse){var Z=R.playerResponse,w;if((L=Z.auxiliaryUi)==null?0:(w=L.messageRenderers)==null?0:w.upsellDialogRenderer){L=Z.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(R.response&&(L=R.response,(Z=L.overlay)==null?0:Z.upsellDialogRenderer)){L=L.overlay.upsellDialogRenderer;break a}L=void 0}var t;var d;w=(t=R.playerResponse)==null?void 0:(d=t.auxiliaryUi)==null?void 0:d.messageRenderers;t=(w==null?void 0:w.enforcementMessageViewModel)||(w==null?void 0:w.bkaEnforcementMessageViewModel);t=(t==null?void 0:t.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?t:void 0;var Jk;a:{if(R.response&&(d=R.response,(Jk=d.overlay)==null?0:Jk.commandWrapperPromoRenderer)){Jk=
d.overlay.commandWrapperPromoRenderer;break a}Jk=void 0}bPm(I,p,h,L,t,Jk,b)}})};
_.l.preparePrefetchRequest=function(R,A,Y,P,E,z){var c,M,N,y,m,T,Q,g,r,I,b,p,h,L,Z;return _.O(function(w){if(w.nextAddress==1)return!Y||!(P||E||z)||_.v("kevlar_disable_background_prefetch")&&_.o1(_.xYS)()===0?w.return():(c=_.PT(A))?w.yield(c.getPlayerPromise(),2):w.return();M=w.yieldResult;N=_.is().resolve(_.z3(_.a4));if(!N)return w.return();if(E)return y=_.qh(_.hd),cVo(y,(m=R.endpoint)==null?void 0:m.reelWatchEndpoint,A.reelWatchSequenceResponse,M,N),w.return();g=(T=R.response)==null?void 0:(Q=T.responseContext)==
null?void 0:Q.webResponseContextExtensionData;if(!g)return w.return();h=(r=R.response)==null?void 0:(I=r.contents)==null?void 0:(b=I.twoColumnWatchNextResults)==null?void 0:(p=b.autoplay)==null?void 0:p.autoplay;L=_.is().resolve(_.Y7);Z=_.qh(_.hd);O6i(Z,g,M,N,L,h);_.XH(w)})};
_.l.movePlayerToWatch=function(R){var A=this,Y,P;return _.O(function(E){Y=M0(A.pagePool,"watch");P=Y.getPlayerContainer();R.appendTo(P);_.XH(E)})};
_.l.movePlayerToShorts=function(R){var A=this,Y,P,E;return _.O(function(z){Y=M0(A.pagePool,"shorts");P=Y.getPlayerContainer();(E=R)==null||E.appendTo(P,void 0,!0);_.XH(z)})};
_.l.getPlayerFromWatch=function(){var R=M0(this.pagePool,"watch");return _.PT(R)};
_.l.getPlayerFromShorts=function(){var R=M0(this.pagePool,"shorts");return _.PT(R)};
_.l.startLoadingWatch=function(){var R=this,A=M0(this.pagePool,"watch");this.renderLoadingStateJobId?(_.fn.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.v("web_watch_transition_enable_start_loading_watch_callsite")?kGY(this.viewTransitionManager,function(){R.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(A)};
_.l.startLoadingShorts=function(){var R=M0(this.pagePool,"shorts");this.setActivePage(R)};
_.l.startLoadingLearningJourney=function(){var R=M0(this.pagePool,"learning_journey_watch");this.setActivePage(R)};
_.l.getCurrentPage=function(){return this.currentPage};
_.l.getDestinationPageType=function(){return this.destinationPageType};
_.l.getCurrentData=function(){return this.data};
_.l.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.l.isOnShorts=function(){var R;return((R=this.currentPage)==null?void 0:R.is)==="ytd-shorts"};
_.l.isWatchPage=function(R){return!!R&&(R.is==="ytd-watch-flexy"||R.is==="ytd-watch-fixie"||R.is==="ytd-watch-grid")};
_.l.preparePage=function(R,A){var Y=this,P=function(){var c=Y.pagePool.preparePage(R,Y.currentPage,A);c&&Y.attachPage(c)},E=function(c){_.F8(c,A);
_.pK(c)};
if(_.v("kevlar_enable_mss_page_modules_client")){var z=this.getModuleNameForType(R);if(z=CDo(_.is().resolve(_.f6),[z])){z.then(P.bind(this)).catch(E.bind(this));return}}try{P()}catch(c){E(c)}};
_.l.lazyPrepareCriticalPages=function(R,A){R=_.ra(A)||R;_.v("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(R).then(this.maybePrepareWatchPage.bind(this,R)):this.maybePrepareWatchPage(R)};
_.l.maybePrepareWatchPage=function(R){R==="watch"||R==="learning_journey_watch"&&_.v("web_watch_learning_journey_disable_lazy_pages")||_.Ua(_.fn,this.preparePage.bind(this,"watch"))};
_.l.downloadPageModules=function(R){R=this.getModuleNameForType(R);var A=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);A.delete(R);var Y=_.is().resolve(_.f6);Y.JSC$18545_loadModules(R);return Y.JSC$18545_loadModules.apply(Y,_.py(A))};
_.l.renderPageLoadingState=function(R,A){this.preparePage(R,A);var Y=M0(this.pagePool,R);Y.loadingData&&(Y.loadingData.endpoint=A);Y.loading=!0;this.setActivePage(Y);R!=="watch"&&R!=="learning_journey_watch"||_.xo(this.hostElement,"yt-guide-close")};
_.l.prepareForNavigation=function(R,A){var Y=this;if(this.currentPage&&this.data){var P=_.ra(A)||R;this.destinationPageType=P;FA(this.data)==P&&_.xo(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((R==="watch"||R==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.fn.cancelJob(this.renderLoadingStateJobId);_.is().resolve(_.jv).deactivate(A);_.cC(_.fn,function(){var z=Y.viewTransitionManager,c=Y.currentPage;
if(z.isLockupToWatchTransitionEnabled&&z.isLockupThumbnailRegistrationEnabled&&c)if(z.registeredLockupThumbnail)z.lockupThumbnailRegisteredFromWatchEndpoint&&_.pK(new _.XN("Lockup thumbnail already registered from watch endpoint."));else{a:{var M=_.n(A,_.LO);if(M==null?0:M.videoId){var N="yt-lockup-view-model ."+_.xE6(M.videoId)+" yt-thumbnail-view-model";c=c.querySelectorAll(N);if(c.length===1){M=c[0];break a}c.length>1?_.pK(new _.XN("Multiple LockupViewModel thumbnails found for videoId: "+M.videoId+
". Selector: "+N)):_.v("web_thumbnail_to_watch_transition_debug")&&_.pK(new _.XN("No LockupViewModel thumbnail found for videoId: "+M.videoId+". Selector: "+N))}M=void 0}M&&(z.registeredLockupThumbnail=M,z.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.jSF(z,M))}});
var E=this.data;this.renderLoadingStateJobId=_.cC(_.fn,function(){kGY(Y.viewTransitionManager,function(){if(Y.data!=E){var z=M0(Y.pagePool,R);Y.setActivePage(z)}else Y.renderPageLoadingState(R,A);Y.renderLoadingStateJobId=0})},150)}};
_.l.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var R=new _.gt(1);this.currentPage.pageDisposeJobs.forEach(function(A){_.nH(R,A)});
this.pageDisposeJobsets.set(this.currentPage,R)}};
_.l.flushPageDisposeJobset=function(R){var A=this.pageDisposeJobsets.get(R);A&&(A.flushJobs(),this.pageDisposeJobsets.delete(R))};
_.l.onYtStopOldPlayer=function(R,A){A=A===void 0?!1:A;var Y,P=_.M1("kevlar_new_stop_old_player_logic_pages");if(_.v("kevlar_check_current_page_on_stop_old_player")&&(P.length===0||this.currentPage&&P.includes(this.currentPage.is)))if(this.data&&(Y=FA(this.data)),FA(R)===Y&&this.currentPage&&FA(this.currentPage.data)!==Y)var E=_.PT(this.currentPage);else Y=FA(this.data),E=M0(this.pagePool,Y),E=_.PT(E);else this.data&&(Y=FA(this.data),E=M0(this.pagePool,Y),E=_.PT(E));if(E)if(R=FA(R),P=M0(this.pagePool,
R),P=_.PT(P),E==P)A&&!_.v("kevlar_disable_preemptive_player_reset")&&E.resetForNewPlayback();else if(A=Y==="watch"&&R!=="watch",!A||R==="shorts"||_.LKH()&&!aZi(this.data)&&R!=="yts-products"&&R!="mini_app"&&R!="playables")Y=_.is().resolve(_.jv),A&&Y.isMiniplayerActive()&&Y.pipController.getWindow()||E.stop()};
_.l.isDifferentBrowseId=function(R,A){R=_.n(R,_.Ds);A=_.n(A,_.Ds);return(R==null?void 0:R.browseId)!==(A==null?void 0:A.browseId)};
_.Yh.Object.defineProperties(n2,{template:{configurable:!0,enumerable:!0,get:function(){return jUG()}}});
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],n2.prototype,"ytActionHandlerBehavior",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-page-manager"})],n2);_.B(n2,"ytd-page-manager",function(){return jUG()},{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var bSm;var H0=function(){var R=_.K.apply(this,arguments)||this;R.useListItemStyles=_.v("web_list_item_style_for_menu_items");R.systemIcons=_.v("kevlar_system_icons");return R};
_.H(H0,_.K);_.l=H0.prototype;_.l.ready=function(){this.hostElement.addEventListener("tap",_.T2(this,this.onEndpointTapExtra))};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var R;(R=_.Mo(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.l.onEndpointTapExtra=function(R){_.xo(this.hostElement,"iron-activate");var A=this.data.navigationEndpoint;A&&_.n(A,_.p56)&&(R.stopPropagation(),_.NT(this.hostElement,[A],this.hostElement))};
_.l.computeIcon=function(R){return R&&R.iconType?_.m0(R.iconType):""};
_.l.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.v("kevlar_legacy_browsers")&&_.ya(this.hostElement)};
H0.prototype.forceUpdateStylesOnLegacyBrowsers=H0.prototype.forceUpdateStylesOnLegacyBrowsers;H0.prototype.onFocus=H0.prototype.onFocus;_.C([_.U(_.Qg),_.k("design:type",Object)],H0.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.rpD.YtConditionalRendererBehavior),_.k("design:type",Object)],H0.prototype,"ytConditionalRendererBehavior",void 0);_.C([_.U(_.bF.YtEndpointBehavior),_.k("design:type",Object)],H0.prototype,"ytEndpointBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],H0.prototype,"data",void 0);_.C([_.S({computed:"computeIcon(data.icon)",value:""}),_.k("design:type",String)],H0.prototype,"icon",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],H0.prototype,"useIcons",void 0);_.C([_.S({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Boolean)],H0.prototype,"hasSeparator",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],H0.prototype,"useListItemStyles",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],H0.prototype,"systemIcons",void 0);_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H0.prototype,"onFocus",null);_.C([_.vZ("useIcons","hasSeparator"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],H0.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(H0,"ytd-menu-navigation-item-renderer",function(){if(bSm===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);bSm=R}R=bSm;return R},{mode:1});var fqW;var pog=_.dF(_.vk("DOWNLOAD",{},"Download")),FaQ=_.dF(_.vk("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),BwH=_.dF(_.vk("RETRY",{},"Retry")),aqn=_.dF(_.vk("PAUSE_DOWNLOADING",{},"Pause downloading")),Cfj=_.dF(_.vk("RESUME_DOWNLOAD",{},"Resume download")),rQ=function(){var R=_.K.apply(this,arguments)||this;R.primaryText=pog;R.primaryIconType="OFFLINE_DOWNLOAD";R.hasSecondaryContent=!1;R.hasSeparator=!1;R.transferState="TRANSFER_STATE_UNKNOWN";R.isVideoDeletedByUser=!1;R.isHidden=!1;R.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return R};
_.H(rQ,_.K);_.l=rQ.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){this.primaryEntry.focus()};
_.l.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.l.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.l.getRemoveAction=function(){return"ACTION_REMOVE"};
_.l.sendOfflineAction=function(R){var A=this.data.serviceEndpoint;if(A){var Y=_.n(A,_.TI);Y&&R&&(Y.action=R);this.ytComponentBehavior.resolveCommand(A)}};
_.l.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=pog,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=pog;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=BwH;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=FaQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Cfj;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=FaQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
aqn;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=FaQ;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=FaQ;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=pog,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.l.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.l.isSecondaryEntryHidden=function(R,A){return R?!0:!A};
_.l.computeHasSeparator=function(){var R;return!((R=this.data)==null||!R.hasSeparator)};
rQ.prototype.showHideButton=rQ.prototype.showHideButton;rQ.prototype.onTransferStateChange=rQ.prototype.onTransferStateChange;rQ.prototype.onFocus=rQ.prototype.onFocus;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rQ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],rQ.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],rQ.prototype,"ytComponentBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],rQ.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],rQ.prototype,"primaryText",void 0);_.C([_.S(),_.k("design:type",String)],rQ.prototype,"primaryIconType",void 0);_.C([_.S(),_.k("design:type",String)],rQ.prototype,"primaryAction",void 0);_.C([_.S(),_.k("design:type",Object)],rQ.prototype,"secondaryText",void 0);_.C([_.S(),_.k("design:type",String)],rQ.prototype,"secondaryIconType",void 0);
_.C([_.S(),_.k("design:type",String)],rQ.prototype,"secondaryAction",void 0);_.C([_.S(),_.k("design:type",Object)],rQ.prototype,"hasSecondaryContent",void 0);_.C([_.S({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Object)],rQ.prototype,"hasSeparator",void 0);_.C([_.S({selector:_.h0,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",String)],rQ.prototype,"transferState",void 0);
_.C([_.S({selector:_.v7P,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",Object)],rQ.prototype,"isVideoDeletedByUser",void 0);_.C([_.S(),_.k("design:type",Object)],rQ.prototype,"isHidden",void 0);_.C([_.S({selector:_.NRI,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.k("design:type",Object)],rQ.prototype,"offlineabilityState",void 0);_.C([_.nG("#primary-entry"),_.k("design:type",Object)],rQ.prototype,"primaryEntry",void 0);
_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rQ.prototype,"onFocus",null);_.C([_.Ul("transferState","isVideoDeletedByUser"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rQ.prototype,"onTransferStateChange",null);_.C([_.Ul("offlineabilityState"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rQ.prototype,"showHideButton",null);
_.B(rQ,"ytd-menu-service-item-download-renderer",function(){if(fqW===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);fqW=R}R=fqW;return R},{mode:1});var hGW;var D9=function(){var R=_.K.apply(this,arguments)||this;R.useIcons=!1;R.systemIcons=_.v("kevlar_system_icons");R.useListItemStyles=_.v("web_list_item_style_for_menu_items");return R};
_.H(D9,_.K);_.l=D9.prototype;_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.l.onFocus=function(){var R;(R=_.Mo(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.l.onTap=function(){_.MT(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var R=this.data.serviceEndpoint,A=this.data.command;if(R){var Y,P=(Y=this.data)==null?void 0:Y.trackingParams;Y=!!_.n(R,_.xND);P&&Y&&_.Yp().dispatch(_.cK({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:P}}));this.ytComponentBehavior.resolveCommand(R)||_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}})}A&&(this.ytComponentBehavior.resolveCommand(A)||_.NT(this.hostElement,
[A],this.hostElement))};
_.l.computeIcon=function(R){return R&&R.iconType?_.m0(R.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.computeHasSeparator=function(){var R;return!((R=this.data)==null||!R.hasSeparator)};
_.l.forceUpdateStylesOnLegacyBrowsers=function(){_.v("kevlar_legacy_browsers")&&_.ya(this.hostElement)};
_.l.computeIsSelected=function(){var R;return!((R=this.data)==null||!R.isSelected)};
D9.prototype.forceUpdateStylesOnLegacyBrowsers=D9.prototype.forceUpdateStylesOnLegacyBrowsers;D9.prototype.onTap=D9.prototype.onTap;D9.prototype.onFocus=D9.prototype.onFocus;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],D9.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],D9.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],D9.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.rpD.YtConditionalRendererBehavior),_.k("design:type",Object)],D9.prototype,"ytConditionalRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],D9.prototype,"data",void 0);_.C([_.S({computed:"computeIcon(data.icon)",value:""}),_.k("design:type",String)],D9.prototype,"icon",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],D9.prototype,"useIcons",void 0);
_.C([_.S({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.k("design:type",Boolean)],D9.prototype,"hasSeparator",void 0);_.C([_.S({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.k("design:type",Boolean)],D9.prototype,"isSelected",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],D9.prototype,"systemIcons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],D9.prototype,"useListItemStyles",void 0);
_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D9.prototype,"onFocus",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],D9.prototype,"onTap",null);_.C([_.vZ("useIcons","hasSeparator"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],D9.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.B(D9,"ytd-menu-service-item-renderer",function(){if(hGW===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);hGW=R}R=hGW;return R},{mode:2});var oE9;var Ut=function(){return _.K.apply(this,arguments)||this};
_.H(Ut,_.K);_.l=Ut.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var R=this;_.RK(this,function(){R.postbox.openDialog();R.focus();_.xo(R.hostElement,"yt-refit")})};
_.l.focus=function(){this.postbox.focus()};
_.l.closePopup=function(){_.OC(this.hostElement,"yt-close-popup-action")};
_.l.onYtCommentboxDismiss=function(){this.closePopup()};
Ut.prototype.onYtCommentboxDismiss=Ut.prototype.onYtCommentboxDismiss;Ut.prototype.onDataChanged=Ut.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ut.prototype,"data",void 0);_.C([_.S({value:function(){return _.vk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],Ut.prototype,"closeButtonAriaLabel",void 0);_.C([_.nG("#postbox"),_.k("design:type",Object)],Ut.prototype,"postbox",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ut.prototype,"onDataChanged",null);_.C([_.Qa("yt-commentbox-dismiss"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ut.prototype,"onYtCommentboxDismiss",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],Ut);
_.B(Ut,"ytd-backstage-post-dialog-popup-renderer",function(){if(oE9!==void 0)return oE9;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return oE9=R},{mode:1});var k19;var $Q=function(){return _.K.apply(this,arguments)||this};
_.H($Q,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$Q.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$Q.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],$Q);
_.B($Q,"ytd-sender-id-section-renderer",function(){if(k19!==void 0)return k19;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return k19=R},{mode:1});var G1m;var ZS0;var tWW;var Xz=function(){return _.K.apply(this,arguments)||this};
_.H(Xz,_.K);Xz.prototype.closePopup=function(){_.OC(this.hostElement,"yt-close-popup-action")};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Xz.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Xz.prototype,"data",void 0);_.C([_.CG({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Xz);
_.B(Xz,"yt-community-post-section-renderer",function(){if(tWW===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;ZS0===void 0&&(ZS0=document.createElement("template"));var P=ZS0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);tWW=R}R=tWW;return R},{mode:2});var woo;var u0f;var eGi;var qmN;var Lai;var dqf;var SU=function(){return _.K.apply(this,arguments)||this};
_.H(SU,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],SU.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],SU.prototype,"data",void 0);_.C([_.CG({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],SU);
_.B(SU,"yt-share-start-time-with-context-renderer",function(){if(dqf===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Lai===void 0&&(Lai=document.createElement("template"));var P=Lai;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);dqf=R}R=dqf;return R},{mode:2});var IO=function(){return _.K.apply(this,arguments)||this};
_.H(IO,_.K);IO.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],IO.prototype,"data",void 0);_.C([_.CG({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],IO);
_.B(IO,"yt-share-panel-title-v15-renderer",function(){if(qmN===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;eGi===void 0&&(eGi=document.createElement("template"));var P=eGi;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);qmN=R}R=qmN;return R},{mode:2});var K2=function(){return _.K.apply(this,arguments)||this};
_.H(K2,_.K);K2.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],K2.prototype,"data",void 0);_.C([_.CG({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],K2);
_.B(K2,"yt-share-panel-header-renderer",function(){if(u0f===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;woo===void 0&&(woo=document.createElement("template"));var P=woo;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);u0f=R}R=u0f;return R},{mode:2});var ReY;var AcF;var W0=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-open-popup-action":"onOpen"};return R};
_.H(W0,_.K);_.l=W0.prototype;_.l.attached=function(){this.onOpen()};
_.l.updateTimeSecs=function(R){this.currentTimeSecs=R};
_.l.computeTimeString=function(R){R=R.toString();var A=Math.floor(Number(R)/3600),Y=Math.floor(Number(R)%3600%60);return(A>0?A+":":"")+_.cs(Math.floor(Number(R)%3600/60),A>0?2:1)+":"+_.cs(Y,2)};
_.l.computeTimeStringA11y=function(R){R=_.n7l({seconds:R});var A=R.hours===void 0?0:R.hours,Y=R.minutes===void 0?0:R.minutes,P=R.seconds===void 0?0:R.seconds;R=[];if(A>0){var E=DTn().format({hours:A});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Zn)||A>9999)E=E.replace(A.toString(),_.H1k(A)),_.Zn==="km"&&(E=E.replace(".",","));R.push(E)}Y>0&&R.push(DTn().format({minutes:Y}));P>0&&R.push(DTn().format({seconds:P}));A="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");Y=_.Zn==
"am"?"{0}\u1363 ":_.Zn=="fa"?"{0}\u060c\u200f ":_.Zn=="my"?"{0} - ":_.Zn=="ne"?"{0},":_.Zn=="th"?"{0} ":_.Zn=="ur"?"{0}\u060c ":_.Zn=="ar"||_.Zn=="ar-XB"?"{0} \u0648":_.Zn=="ja"||_.Zn=="zh-CN"||_.Zn=="zh-HK"||_.Zn=="zh-TW"?"{0}\u3001":"{0}, ";P=_.Zn=="am"?"\u1363 ":_.Zn=="fa"?"\u060c\u200f ":_.Zn=="my"?" - ":_.Zn=="th"?" ":_.Zn=="ur"?"\u060c ":_.Zn=="ar"||_.Zn=="ar-XB"?" \u0648":_.Zn=="ja"||_.Zn=="zh-CN"||_.Zn=="zh-HK"||_.Zn=="zh-TW"?"\u3001":", ";E=_.Zn=="am"?" \u12a5\u1293 {0}":_.Zn=="as"?" \u0986\u09f0\u09c1 {0}":
_.Zn=="az"?" v\u0259 {0}":_.Zn=="bn"?" \u098f\u09ac\u0982 {0}":_.Zn=="cs"?" a\u00a0{0}":_.Zn=="de"?" und {0}":_.Zn=="el"?" \u03ba\u03b1\u03b9 {0}":_.Zn=="eu"?" eta {0}":_.Zn=="fa"?"\u060c \u0648 {0}":_.Zn=="fil"?", at {0}":_.Zn=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Zn=="hi"?", \u0914\u0930 {0}":_.Zn=="hu"?" \u00e9s {0}":_.Zn=="hy"?" \u0587 {0}":_.Zn=="id"?", dan {0}":_.Zn=="iw"?" \u05d5-{0}":_.Zn=="ja"?"\u3001{0}":_.Zn=="ka"?" \u10d3\u10d0 {0}":_.Zn=="km"?" \u1793\u17b7\u1784 {0}":_.Zn=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Zn=="ko"?" \ubc0f {0}":_.Zn=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Zn=="lt"?" ir {0}":_.Zn=="lv"?" un {0}":_.Zn=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Zn=="mr"?" \u0906\u0923\u093f {0}":_.Zn=="ms"?" dan {0}":_.Zn=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Zn=="ne"?" \u0930 {0}":_.Zn=="or"?", \u0b13 {0}":_.Zn=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Zn=="ro"?" \u0219i {0}":_.Zn=="si"?", \u0dc3\u0dc4 {0}":_.Zn=="sk"?" a {0}":_.Zn=="sl"?" in {0}":_.Zn=="sq"?" dhe {0}":_.Zn=="sv"?" och {0}":
_.Zn=="sw"?" na {0}":_.Zn=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Zn=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Zn=="th"?" \u0e41\u0e25\u0e30{0}":_.Zn=="tr"?" ve {0}":_.Zn=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Zn=="uz"?" va {0}":_.Zn=="vi"?" v\u00e0 {0}":_.Zn=="zh-HK"?"\u53ca{0}":_.Zn=="zu"?", ne-{0}":_.Zn=="af"||_.Zn=="nl"?" en {0}":_.Zn=="ar"||_.Zn=="ar-XB"?" \u0648{0}":_.Zn=="be"||_.Zn=="uk"?" \u0456 {0}":_.Zn=="en-GB"||_.Zn=="en-IN"?" and {0}":_.Zn=="en"||_.Zn=="en-XA"?
", and {0}":_.Zn=="et"||_.Zn=="fi"?" ja {0}":_.Zn=="fr"||_.Zn=="fr-CA"?" et {0}":_.Zn=="zh-CN"||_.Zn=="zh-TW"?"\u548c{0}":_.Zn=="da"||_.Zn=="is"||_.Zn=="no"?" og {0}":_.Zn=="es"||_.Zn=="es-419"||_.Zn=="es-US"?" y {0}":_.Zn=="kk"||_.Zn=="lo"||_.Zn=="mn"?", {0}":_.Zn=="bg"||_.Zn=="mk"||_.Zn=="ru"||_.Zn=="sr"?" \u0438 {0}":_.Zn=="gl"||_.Zn=="it"||_.Zn=="pt-BR"||_.Zn=="pt-PT"?" e {0}":" i {0}";var z=_.Zn=="am"?"{0} \u12a5\u1293 {1}":_.Zn=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Zn=="az"?"{0} v\u0259 {1}":
_.Zn=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Zn=="de"?"{0} und {1}":_.Zn=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Zn=="eu"?"{0} eta {1}":_.Zn=="fa"?"{0} \u0648 {1}":_.Zn=="fil"?"{0} at {1}":_.Zn=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Zn=="hi"?"{0} \u0914\u0930 {1}":_.Zn=="hu"?"{0} \u00e9s {1}":_.Zn=="hy"?"{0} \u0587 {1}":_.Zn=="iw"?"{0} \u05d5-{1}":_.Zn=="ja"?"{0}\u3001{1}":_.Zn=="ka"?"{0} \u10d3\u10d0 {1}":_.Zn=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Zn=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Zn=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Zn=="ko"?"{0} \ubc0f {1}":_.Zn=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Zn=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Zn=="lt"?"{0} ir {1}":_.Zn=="lv"?"{0} un {1}":_.Zn=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Zn=="mn"?"{0}, {1}":_.Zn=="mr"?"{0} \u0906\u0923\u093f {1}":_.Zn=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Zn=="ne"?"{0} \u0930 {1}":_.Zn=="or"?"{0} \u0b13 {1}":_.Zn=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Zn=="ro"?"{0} \u0219i {1}":_.Zn==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Zn=="sl"?"{0} in {1}":_.Zn=="sq"?"{0} dhe {1}":_.Zn=="sv"?"{0} och {1}":_.Zn=="sw"?"{0} na {1}":_.Zn=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Zn=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Zn=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Zn=="tr"?"{0} ve {1}":_.Zn=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Zn=="uz"?"{0} va {1}":_.Zn=="vi"?"{0} v\u00e0 {1}":_.Zn=="zh-HK"?"{0}\u53ca{1}":_.Zn=="zu"?"{0} ne-{1}":_.Zn=="af"||_.Zn=="nl"?"{0} en {1}":_.Zn=="ar"||_.Zn==
"ar-XB"?"{0} \u0648{1}":_.Zn=="be"||_.Zn=="uk"?"{0} \u0456 {1}":_.Zn=="cs"||_.Zn=="sk"?"{0} a\u00a0{1}":_.Zn=="et"||_.Zn=="fi"?"{0} ja {1}":_.Zn=="fr"||_.Zn=="fr-CA"?"{0} et {1}":_.Zn=="id"||_.Zn=="ms"?"{0} dan {1}":_.Zn=="zh-CN"||_.Zn=="zh-TW"?"{0}\u548c{1}":_.Zn=="da"||_.Zn=="is"||_.Zn=="no"?"{0} og {1}":_.Zn=="es"||_.Zn=="es-419"||_.Zn=="es-US"?"{0} y {1}":_.Zn=="bg"||_.Zn=="mk"||_.Zn=="ru"||_.Zn=="sr"?"{0} \u0438 {1}":_.Zn=="en"||_.Zn=="en-GB"||_.Zn=="en-IN"||_.Zn=="en-XA"?"{0} and {1}":_.Zn==
"gl"||_.Zn=="it"||_.Zn=="pt-BR"||_.Zn=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Zn==="sq"?(E=E.replace("dhe","e"),z=z.replace("dhe","e")):_.Zn==="th"?(P=P.replace("{0}"," {0}"),z=z.replace("{0}","{0} "),z=z.replace("{1}"," {1}")):_.Zn==="ne"?P=",":_.Zn==="zh-CN"?P="":A.includes(_.Zn)&&(P=" ");return R.length<2?R.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(_.Zn)?R.length===2?
z.replace("{0}",R[0]).replace("{1}",R[1]):Y.replace("{0}",R[0])+R.slice(1,-1).join(P)+E.replace("{0}",R[R.length-1]):R.join(P)};
_.l.getTimeParam=function(){return kjQ(this.timeString)};
_.l.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var R={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},A;_.K_(_.rU(),(A=this.data)==null?void 0:A.trackingParams,R,7)};
_.l.onChangeStartAtTimestamp=function(){for(var R=this.startAtTimestamp.value.split(":"),A=0,Y=1,P=R.length-1;P>=0;P--)A+=Number(R[P])*Y,Y*=60;this.updateTimeSecs(A);this.setTimestamp()};
_.l.onOpen=function(){var R=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var A=_.EJ();A?A.getPlayerPromise().then(function(Y){Y=Y.getCurrentTime();R.updateTimeSecs(Y)}):Hxo()&&this.updateTimeSecs(Hxo())};
_.l.setTimestamp=function(){var R=Math.floor(this.currentTimeSecs);_.OC(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!R,timestamp:R||""}])};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],W0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],W0.prototype,"data",void 0);_.C([_.S({value:!1,notify:!0}),_.k("design:type",Boolean)],W0.prototype,"isStartAtChecked",void 0);_.C([_.S(),_.k("design:type",Number)],W0.prototype,"currentTimeSecs",void 0);
_.C([_.S({computed:"computeTimeString(currentTimeSecs)"}),_.k("design:type",String)],W0.prototype,"timeString",void 0);_.C([_.S({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.k("design:type",String)],W0.prototype,"timeStringA11y",void 0);_.C([_.nG("#start-at-timestamp"),_.k("design:type",Object)],W0.prototype,"startAtTimestamp",void 0);_.C([_.CG({is:"yt-start-at-renderer",disableElementRegistration:!0})],W0);
_.B(W0,"yt-start-at-renderer",function(){if(AcF===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;ReY===void 0&&(ReY=document.createElement("template"));var P=ReY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);AcF=R}R=AcF;return R},{mode:2});var YoH;var P0f;var E40=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"]]),zei=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"]]),imo=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var l$G={};l$G.YtBindingExpressionsBehavior={identity:_.bJ,msg:function(R,A){A=A===void 0?{}:A;return _.vk(R,A,R)},
msgPlural:function(R,A){return _.gH(R,A)},
getMusicIconFromType:function(R){if(_.v("music_web_enable_icon_wil"))R=_.m0(R);else if(zei.has(R))R="yt-sys-icons:"+zei.get(R);else{var A=E40.get(R)||_.m0(R).split(":")[1];A=_.eX3(A);var Y;R=((Y=imo.get(R))!=null?Y:"yt-sys-icons:")+A}return R}};var xrf;var ccF;var Omn;var MkQ=document.head,sbo=MkQ.appendChild,NBY;if(Omn===void 0){var VkW=document.createElement("template");_.D(VkW,'\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>');Omn=VkW}NBY=Omn;sbo.call(MkQ,NBY.content);var jU=function(){var R=_.K.apply(this,arguments)||this;R.screenLayer=7;return R};
_.H(jU,_.K);jU.prototype.getScreenLayer=function(){return this.screenLayer};
jU.prototype.onTap=function(R){R&&R.detail&&(R.detail.x||R.detail.y)&&_.Mo(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.sC(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(R=this.getScreenLayer(),_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:R}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Yh.Object.defineProperties(jU.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()}}});
jU.prototype.onTap=jU.prototype.onTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],jU.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],jU.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],jU.prototype,"data",void 0);_.C([_.X("data.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],jU.prototype,"title",null);
_.C([_.X("data.serviceName"),_.k("design:type",String),_.k("design:paramtypes",[])],jU.prototype,"icon",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],jU.prototype,"onTap",null);_.C([_.CG({is:"yt-share-target-renderer",disableElementRegistration:!0})],jU);
_.B(jU,"yt-share-target-renderer",function(){if(ccF===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" active="true" icon="[[icon]]" size="60"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;xrf===void 0&&(xrf=document.createElement("template"));var P=xrf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ccF=R}R=ccF;return R},{mode:2});var Jc0;var ycn;var bQ=function(){var R=_.K.apply(this,arguments)||this;R.SHARE_TARGET_WIDTH=70;R.SHARE_TARGET_MARGIN_RIGHT=8;R.PAGE_SCROLL_SPEED=9;R.actionMap={"yt-share-panel-reset-action":"onReset_"};return R};
_.H(bQ,_.K);_.l=bQ.prototype;_.l.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.l.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Mo(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Mo(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.l.onReset_=function(){if(_.Mo(this.hostElement).querySelector("#list")){var R=_.Mo(this.hostElement).querySelector("#list");var A=_.Mo(this.hostElement).querySelector("#list");var Y=A.offsetLeft,P=A.offsetParent;P||_.y9D(A)!="fixed"||(P=_.oS(A).documentElement);if(P){if(_.xB&&!_.Ok(58)){var E=_.r9S(P);Y+=E.left}else Number(_.p_8)>=8&&!(Number(_.p_8)>=9)&&(E=_.r9S(P),Y-=E.left);A=_.nnz(P)?P.clientWidth-(Y+A.offsetWidth):Y}else A=Y;s2W(R,A);this.updateScrollButtons_()}};
_.l.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.l.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.l.onScrollWheel_=function(R){R.stopPropagation();R.preventDefault();var A=MRf(_.Mo(this.hostElement).querySelector("#list"));R=Math.abs(R.deltaX)>Math.abs(R.deltaY)?R.deltaX:R.deltaY;s2W(_.Mo(this.hostElement).querySelector("#list"),A+R);this.updateScrollButtons_()};
_.l.smoothScrollByOnePage_=function(R){var A=_.Mo(this.hostElement).querySelector("#list"),Y=(Math.floor(A.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,P=MRf(A),E=Y*(R?1:-1),z=this.PAGE_SCROLL_SPEED,c=this.updateScrollButtons_.bind(this),M=0,N;(function m(){M+=z;N=M/Y*2;s2W(A,P+E*(N<1?N*N:-N*N+4*N-2));M<Y?window.requestAnimationFrame(m):c()})()};
_.l.updateScrollButtons_=function(){var R=MRf(_.Mo(this.hostElement).querySelector("#list")),A=_.Mo(this.hostElement).querySelector("#list").scrollWidth-_.Mo(this.hostElement).querySelector("#list").clientWidth;_.Mo(this.hostElement).querySelector("#scroll-button-back").hidden=R<=0;_.Mo(this.hostElement).querySelector("#scroll-button-forward").hidden=R>=A};
bQ.prototype.onScrollWheel_=bQ.prototype.onScrollWheel_;bQ.prototype.onDataChanged_=bQ.prototype.onDataChanged_;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],bQ.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(l$G.YtBindingExpressionsBehavior),_.k("design:type",Object)],bQ.prototype,"ytBindingExpressionsBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bQ.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bQ.prototype,"onDataChanged_",null);_.C([_.Qa("wheel"),_.k("design:type",Function),_.k("design:paramtypes",[WheelEvent]),_.k("design:returntype")],bQ.prototype,"onScrollWheel_",null);
_.C([_.CG({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],bQ);
_.B(bQ,"yt-third-party-share-target-section-renderer",function(){if(ycn===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Jc0===void 0&&(Jc0=document.createElement("template"));var P=Jc0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ycn=R}R=ycn;return R},{mode:2});var f2=function(){return _.K.apply(this,arguments)||this};
_.H(f2,_.K);f2.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"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],f2.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],f2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],f2.prototype,"data",void 0);_.C([_.CG({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],f2);
_.B(f2,"yt-third-party-network-section-renderer",function(){if(P0f===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;YoH===void 0&&(YoH=document.createElement("template"));var P=YoH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);P0f=R}R=P0f;return R},{mode:2});_.Ow(_.E5(function(R){return _.V("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.V("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.V(_.ni,{data:function(){return R.data().firstPartyItems}},{listItemViewModel:_.Yr})))},"gh"),"first-party-network-section-view-model",{props:{data:_.VY}});var mrN=_.Z7(["data:image/svg+xml;charset=UTF-8;base64,",""]),p2=function(){var R=_.K.apply(this,arguments)||this;R.screenLayer=7;R.qrCodeEnabled=_.v("web_enable_sharing_qr_code");R.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return R};
_.H(p2,_.K);_.l=p2.prototype;_.l.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"}}}};
_.l.attached=function(){this.JSC$20042_scroller&&(this.JSC$20042_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20042_scroller.attached&&typeof this.JSC$20042_scroller.attached==="function"&&this.JSC$20042_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.l.onDataChanged=function(){var R=this,A;(A=this.data)!=null&&A.contents&&(this.hostElement.setAttribute("links-only","true"),_.Va(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.RK(this,function(){_.xo(R.hostElement,"yt-refit");R.focusSharePanelHeader()}))};
_.l.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.l.handleSetTimestamp=function(R){var A=this.shortUrl();R.isSet&&(A=_.uK(A,"t",R.timestamp));this.maybeRenderQrCode(A)};
_.l.shortUrl=function(){var R,A=(R=this.data)==null?void 0:R.contents;if(A)for(R=0;R<A.length;R++){var Y=void 0,P=void 0;if((Y=A[R])==null?0:(P=Y.thirdPartyNetworkSection)==null?0:P.copyLinkContainer){var E=P=Y=void 0;return(E=_.n((Y=A[R])==null?void 0:(P=Y.thirdPartyNetworkSection)==null?void 0:P.copyLinkContainer,NtQ))==null?void 0:E.shortUrl}}};
_.l.maybeRenderQrCode=function(R){var A=this,Y,P,E,z,c,M,N,y,m;return _.O(function(T){if(T.nextAddress==1){Y=_.Mo(A.hostElement).querySelector("#qr-code");if(!A.qrCodeEnabled||!R)return Y&&(Y.style.display="none"),T.return();P=_.Ef6(_.is().resolve(_.Tj),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});E=document.createElement("div");return typeof P==="function"?(P(E),T.jumpTo(2)):T.yield(P,3)}T.nextAddress!=2&&(z=T.yieldResult,z(E));N=(c=E)==null?void 0:(M=c.firstChild)==null?void 0:M.firstChild;
y=document.createElement("img");m=_.AOk(mrN,btoa(N.outerHTML));y.onload=function(){var Q={canvas:Y,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:y},g=new epF;YlW(g,R);P5i(g,!1,Ew0(g));var r=g.modules,I=Object.assign({},EIW,Q);r=structuredClone(r);Q=r.length;var b,p=(b=I.canvas)!=null?b:document.createElement("canvas");b=I.cellSize;g=I.logo;var h,L=(h=I.logoSize)!=null?h:Math.floor(Q/4);Q%2!==L%2&&L++;var Z=I.logoPadding,w=I.backgroundColor;h=Q*b;var t=
I.width,d=0;t&&(d=I.padding,d=Math.ceil(d*h/(t-d*2)),p.style.width=t+"px",p.style.height=t+"px");p.width!==h+d*2&&(p.width=h+d*2);p.height!==h+d*2&&(p.height=h+d*2);h=p.getContext("2d");I.autoClear&&h.clearRect(0,0,p.width,p.height);h.fillStyle=w;h.beginPath();h.roundRect(0,0,p.width,p.height,I.borderRadius);h.fill();h.save();h.translate(d,d);if(g)for(p=Math.floor(Q-L)/2-Z,Z=Math.floor(Q+L)/2+Z,w=p;w<Z;w++)for(t=p;t<Z;t++)r[w][t]=!1;for(p=0;p<Q;p++)for(Z=0;Z<Q;Z++)(p<7&&Z<7||p<7&&Z>=Q-7||p>=Q-7&&
Z<7)&&(r[p][Z]=!1);var Jk;p=(Jk=I.markerColor)!=null?Jk:I.color;iGN(h,0,0,b,p);iGN(h,b*(Q-7),0,b,p);iGN(h,0,b*(Q-7),b,p);switch(I.cellStyle){case 0:Jk=r;r=Jk.length;p=I.cellSize;h.beginPath();for(Z=0;Z<r;Z++)for(w=0;w<r;w++)Jk[Z][w]&&h.rect(Z*p,w*p,p,p);h.fillStyle=I.color;h.fill();break;case 1:Jk=r;r=Jk.length;p=I.cellSize;Z=p*I.relativeCircleSize;h.fillStyle=I.color;h.beginPath();for(I=0;I<r;I++)for(w=0;w<r;w++)Jk[I][w]&&(h.beginPath(),h.ellipse((I+.5)*p,(w+.5)*p,Z/2,Z/2,0,0,2*Math.PI),h.fill());
h.fill();break;case 2:Jk=r;r=Jk.length;p=I.cellSize;h.fillStyle=I.color;I=[[1,1],[-1,1],[-1,-1],[1,-1]];h.beginPath();for(Z=0;Z<r;Z++)for(w=0;w<r;w++)if(Jk[Z][w])h.roundRect(Z*p,w*p,p,p,p/2),Z+1<r&&Jk[Z+1][w]&&h.rect(Z*p+p/2,w*p,p,p),w+1<r&&Jk[Z][w+1]&&h.rect(Z*p,w*p+p/2,p,p);else{t=Z*p+p/2;d=w*p+p/2;for(var Nb=0;Nb<4;Nb++){var Qk=_.x(I[Nb]),H3=Qk.next().value;Qk=Qk.next().value;Z+H3>=0&&Z+H3<r&&w+Qk>=0&&w+Qk<r&&Jk[Z+H3][w]&&Jk[Z][w+Qk]&&Jk[Z+H3][w+Qk]&&(H3=Nb*Math.PI/2,Qk=p/2,h.moveTo(t+Qk*Math.cos(H3),
d+Qk*Math.sin(H3)),h.arc(t,d,p/2,H3,H3+Math.PI/2,!1),h.lineTo(t+Qk*(Math.cos(H3)-Math.sin(H3)),d+Qk*(Math.cos(H3)+Math.sin(H3))),h.lineTo(t+Qk*Math.cos(H3),d+Qk*Math.sin(H3)))}}h.fill()}g&&h.drawImage(g,(Q-L)*b/2,(Q-L)*b/2,L*b,L*b);h.restore();Y.style.removeProperty("display")};
y.src=_.Ff(m);_.XH(T)})};
_.l.hasCommunityPostRenderer=function(){var R,A,Y,P;return!!((R=this.data)==null?0:(A=R.header)==null?0:(Y=A.sharePanelHeaderRenderer)==null?0:(P=Y.communityPost)==null?0:P.communityPostSectionRenderer)};
_.l.onTapClose=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.l.getScreenLayer=function(){return this.screenLayer};
_.l.logSharePanelPage=function(){if(!_.v("enable_share_panel_navigation_logging_fix_on_web")){var R;if((R=this.data)!=null&&R.trackingParams){R=this.data.trackingParams;var A=this.parentClickTrackingParams;A=A?_.S5(A):void 0;var Y=_.rU();_.$5(Y,21760,A,{layer:7,parentLayer:0});Y.graftServerVe(R,void 0,7);_.Yp().dispatch(_.cK({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
p2.prototype.onDataChanged=p2.prototype.onDataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],p2.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],p2.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],p2.prototype,"data",void 0);_.C([_.S({value:_.vk("SBOX_INAPPROPRIATE_CANCEL")}),_.k("design:type",String)],p2.prototype,"closeButtonAriaLabel",void 0);_.C([_.nG("yt-share-panel-header-renderer"),_.k("design:type",HTMLElement)],p2.prototype,"header",void 0);_.C([_.S({selector:function(R){return R.share.parentClickTrackingParams}}),
_.k("design:type",String)],p2.prototype,"parentClickTrackingParams",void 0);_.C([_.S(),_.k("design:type",Object)],p2.prototype,"qrCodeEnabled",void 0);_.C([_.nG("#scroller"),_.k("design:type",Object)],p2.prototype,"JSC$20042_scroller",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],p2.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],p2);
_.B(p2,"ytd-unified-share-panel-renderer",function(){if(G1m!==void 0)return G1m;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return G1m=R},{mode:1});var TBi;var Fz=function(){var R=_.K.apply(this,arguments)||this;R.modernModal=!0;return R};
_.H(Fz,_.K);Fz.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
Fz.prototype.computeShouldHideOldButtons=function(){var R;return!((R=this.data)==null?0:R.button)};
_.Yh.Object.defineProperties(Fz.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var R,A;return(R=this.data)==null?void 0:(A=R.button)==null?void 0:A.buttonRenderer}}});
_.C([_.S(),_.k("design:type",Object)],Fz.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Fz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],Fz.prototype,"ytEventForwardingBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Fz.prototype,"modernModal",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Fz.prototype,"buttonRendererData",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],Fz);
_.B(Fz,"ytd-modal-with-title-and-button-renderer",function(){if(TBi!==void 0)return TBi;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return TBi=R},{mode:1});var QbW;var B0=function(){return _.K.apply(this,arguments)||this};
_.H(B0,_.K);B0.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("page-changed",this.page))};
B0.prototype.pageChangedForBinding=B0.prototype.pageChangedForBinding;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],B0.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],B0.prototype,"page",void 0);_.C([_.vZ("page"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B0.prototype,"pageChangedForBinding",null);
_.C([_.F({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],B0);
_.B(B0,"ytd-account-item-section-header-renderer",function(){if(QbW!==void 0)return QbW;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QbW=R},{mode:1});var v4i;var aO=function(){return _.K.apply(this,arguments)||this};
_.H(aO,_.K);aO.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"}}}};
aO.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],aO.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],aO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],aO.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],aO.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!1}),_.k("design:type",Function)],aO.prototype,"onAccountItemTap",void 0);
_.C([_.F({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],aO);
_.B(aO,"ytd-account-item-section-renderer",function(){if(v4i!==void 0)return v4i;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return v4i=R},{mode:1});var g4N;var n4f;var C2=function(){return _.K.apply(this,arguments)||this};
_.H(C2,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],C2.prototype,"data",void 0);_.C([_.F({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],C2);
_.B(C2,"ytd-accounts-dialog-header-renderer",function(){if(n4f!==void 0)return n4f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return n4f=R},{mode:1});var Hmm;var hq=function(){return _.K.apply(this,arguments)||this};
_.H(hq,_.K);hq.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hq.prototype,"data",void 0);_.C([_.F({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],hq);
_.B(hq,"ytd-google-account-header-renderer",function(){if(Hmm!==void 0)return Hmm;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Hmm=R},{mode:1});var oO=function(){return _.K.apply(this,arguments)||this};
_.H(oO,_.K);oO.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"}}}};
oO.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("page-changed",this.page))};
oO.prototype.pageChangedForBinding=oO.prototype.pageChangedForBinding;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],oO.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],oO.prototype,"page",void 0);
_.C([_.vZ("page"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],oO.prototype,"pageChangedForBinding",null);_.C([_.F({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],oO);
_.s5()(oO,"ytd-account-section-list-renderer",function(){if(g4N===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);g4N=R}R=g4N;return R},{allowedProps:["data"],
mode:1});var rcn;var kQ=function(){var R=_.K.apply(this,arguments)||this;R.enableHandlesAccountMenuSwitcher=_.v("enable_handles_account_menu_switcher");return R};
_.H(kQ,_.K);kQ.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
kQ.prototype.dataChanged=kQ.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kQ.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],kQ.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.C([_.nG("#avatar"),_.k("design:type",Object)],kQ.prototype,"avatar",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kQ.prototype,"dataChanged",null);_.C([_.F({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],kQ);
_.s5()(kQ,"ytd-active-account-header-renderer",function(){if(rcn===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);rcn=R}R=rcn;return R},{allowedProps:["data"],
mode:1});var DrF;var UrW;var G4=function(){return _.K.apply(this,arguments)||this};
_.H(G4,_.K);G4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
G4.prototype.onBackTap=function(){_.xo(this.hostElement,"yt-menu-back-tapped")};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],G4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],G4.prototype,"data",void 0);_.C([_.F({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],G4);
_.s5()(G4,"ytd-simple-menu-header-renderer",function(){if(UrW===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);UrW=R}R=UrW;return R},{allowedProps:["data"],
mode:2});var $rQ;var Z9=function(){return _.K.apply(this,arguments)||this};
_.H(Z9,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Z9.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Z9.prototype,"data",void 0);_.C([_.F({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Z9);
_.B(Z9,"ytd-comment-video-thumbnail-header-renderer",function(){if($rQ!==void 0)return $rQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $rQ=R},{mode:1});var XAQ;var tq=function(){return _.K.apply(this,arguments)||this};
_.H(tq,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tq.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tq.prototype,"data",void 0);_.C([_.F({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],tq);
_.B(tq,"ytd-abuse-type-selector-renderer",function(){if(XAQ!==void 0)return XAQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return XAQ=R},{mode:1});var Som;var wQ=function(){return _.K.apply(this,arguments)||this};
_.H(wQ,_.K);wQ.prototype.attached=function(){var R=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){R.additionalContextInput.focusTextInput()})};
wQ.prototype.handleAdditionalContextChanged=function(){var R=this;_.u5(this,"ytd-report-channel-additional-context-update",function(){R.ytdReduxBehavior.dispatch(_.cK({type:"ADDITIONAL_CONTEXT_UPDATED",payload:R.additionalContext}))},300)};
wQ.prototype.updateAdditionalContextFromBinding=function(R){this.additionalContext=R.detail.value};
wQ.prototype.handleAdditionalContextChanged=wQ.prototype.handleAdditionalContextChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],wQ.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",String)],wQ.prototype,"additionalContext",void 0);_.C([_.S({selector:function(R){return R.reportChannelAbuse.additionalContext}}),
_.k("design:type",String)],wQ.prototype,"additionalContextRedux",void 0);_.C([_.S(),_.k("design:type",Object)],wQ.prototype,"data",void 0);_.C([_.nG("yt-text-input-form-field-renderer"),_.k("design:type",Object)],wQ.prototype,"additionalContextInput",void 0);_.C([_.vZ("additionalContext"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wQ.prototype,"handleAdditionalContextChanged",null);
_.C([_.F({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],wQ);
_.B(wQ,"ytd-report-channel-modal-additional-context-renderer",function(){if(Som!==void 0)return Som;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Som=R},{mode:1});var I$W;var uQ=function(){var R=_.K.apply(this,arguments)||this;R.nextButtonDisabled=null;R.submitEndpoint=null;R.navigationEndpoint=null;R.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return R};
_.H(uQ,_.K);_.l=uQ.prototype;_.l.computeNextButtonData=function(R,A,Y){var P={};A&&(P.navigationEndpoint=A);Y&&(P.serviceEndpoint=Y);R&&R.buttonRenderer&&_.BO.extend(P,R.buttonRenderer);return P};
_.l.handleReportChannelModalDisableNextButtonAction=function(R){this.setNextButtonIsDisabled(R)};
_.l.handleReportFormEndpointUpdateAction=function(R){this.setNextButtonIsDisabled(!!R.disableSubmitButton);this.resetEndpointData();R.submitEndpoint?this.submitEndpoint=R.submitEndpoint:R.submitNavigationEndpoint&&(this.navigationEndpoint=R.submitNavigationEndpoint)};
_.l.handleSignalActionSubmitForm=function(){var R,A=Object.keys(((R=this.reportChannelAbuseForm)==null?void 0:R.selectedVideoIds)||{}),Y;R=((Y=this.reportChannelAbuseForm)==null?void 0:Y.additionalContext)||"";var P;Y=((P=this.reportChannelAbuseForm)==null?void 0:P.impersonatedChannelUrl)||"";var E;if((E=this.data)==null?0:E.submitEndpoint){A={impersonated_channel_url:Y,text:R,video_ids:A};var z;_.is().resolve(_.ls).resolveCommand((z=this.data)==null?void 0:z.submitEndpoint,{form:Object.assign({},
A,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.l.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.l.onYtServiceRequestError=function(R){this.setNextButtonIsDisabled(!1);_.Zk(this.hostElement,R.detail.error.message)};
_.l.setNextButtonIsDisabled=function(R){this.set("data.nextButton.buttonRenderer.isDisabled",R)};
_.l.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
uQ.prototype.onYtServiceRequestError=uQ.prototype.onYtServiceRequestError;uQ.prototype.onYtServiceRequestCompleted=uQ.prototype.onYtServiceRequestCompleted;_.C([_.S(),_.k("design:type",Object)],uQ.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],uQ.prototype,"nextButtonDisabled",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],uQ.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],uQ.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uQ.prototype,"submitEndpoint",void 0);_.C([_.S(),_.k("design:type",Object)],uQ.prototype,"navigationEndpoint",void 0);_.C([_.S({selector:function(R){return R.reportChannelAbuse}}),
_.k("design:type",Object)],uQ.prototype,"reportChannelAbuseForm",void 0);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],uQ.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],uQ.prototype,"onYtServiceRequestError",null);
_.C([_.F({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],uQ);
_.B(uQ,"ytd-report-channel-modal-footer-renderer",function(){if(I$W!==void 0)return I$W;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return I$W=R},{mode:1});var KIj;var eU=function(){var R=_.K.apply(this,arguments)||this;R.boundOnTapDismissButton=function(){R.closePopup()};
return R};
_.H(eU,_.K);eU.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
eU.prototype.handleDataChanged=function(){_.qz(this.hostElement)};
eU.prototype.closePopup=function(){_.OC(this.hostElement,"yt-close-popup-action")};
eU.prototype.handleDataChanged=eU.prototype.handleDataChanged;_.C([_.S(),_.k("design:type",Object)],eU.prototype,"boundOnTapDismissButton",void 0);_.C([_.S(),_.k("design:type",Object)],eU.prototype,"data",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],eU.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],eU.prototype,"handleDataChanged",null);_.C([_.F({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],eU);
_.B(eU,"ytd-report-channel-modal-header-renderer",function(){if(KIj!==void 0)return KIj;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return KIj=R},{mode:1});var WIQ;var q0=function(){var R=_.K.apply(this,arguments)||this;R.autoValidate=!1;R.invalid=!1;R.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return R};
_.H(q0,_.K);_.l=q0.prototype;_.l.attached=function(){var R=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){R.channelUrlInput.focusTextInput()})};
_.l.disableNextButton=function(R){_.OC(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[R])};
_.l.handleImpersonatedChannelUrlChanged=function(){var R=this;this.disableNextButton(!0);this.invalid=!1;_.u5(this,"ytd-report-channel-impersonated-channel-update",function(){var A=R.impersonatedChannelUrl.trim();R.ytdReduxBehavior.dispatch(_.cK({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:A}));var Y;((Y=R.data)==null?0:Y.submitEndpoint)&&A&&_.is().resolve(_.ls).resolveCommand(R.data.submitEndpoint,{form:{impersonated_channel_url:A,element:R.hostElement}})},500)};
_.l.handleModifyReportFormCommand=function(R){this.invalid=this.get("modifyReportFormCommand.action",R)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.l.updateInvalidFromBinding=function(R){this.invalid=R.detail.value};
_.l.updateImpersonatedChannelUrlFromBinding=function(R){this.impersonatedChannelUrl=R.detail.value};
q0.prototype.handleImpersonatedChannelUrlChanged=q0.prototype.handleImpersonatedChannelUrlChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],q0.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],q0.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],q0.prototype,"autoValidate",void 0);_.C([_.S(),_.k("design:type",Object)],q0.prototype,"invalid",void 0);
_.C([_.S(),_.k("design:type",String)],q0.prototype,"impersonatedChannelUrl",void 0);_.C([_.S({selector:function(R){return R.reportChannelAbuse.impersonatedChannelUrl}}),
_.k("design:type",String)],q0.prototype,"impersonatedChannelUrlRedux",void 0);_.C([_.S(),_.k("design:type",Object)],q0.prototype,"data",void 0);_.C([_.nG("#text-input"),_.k("design:type",Object)],q0.prototype,"channelUrlInput",void 0);_.C([_.vZ("impersonatedChannelUrl"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],q0.prototype,"handleImpersonatedChannelUrlChanged",null);
_.C([_.F({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],q0);
_.B(q0,"ytd-report-channel-modal-impersonation-renderer",function(){if(WIQ!==void 0)return WIQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return WIQ=R},{mode:1});var jbn;var bmY;var L2=function(){return _.K.apply(this,arguments)||this};
_.H(L2,_.K);L2.prototype.onCheckboxToggled=function(R){var A,Y,P=(Y=_.n((A=this.data)==null?void 0:A.video,_.Y5))==null?void 0:Y.videoId;P&&this.ytdReduxBehavior.dispatch(R.target.checked?_.cK({type:"VIDEO_SELECTED",payload:P}):_.cK({type:"VIDEO_UNSELECTED",payload:P}))};
L2.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Yh.Object.defineProperties(L2.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var R,A=(R=this.data)==null?void 0:R.video;if(!A)return{};var Y;R=(Y=_.n(A,_.Y5))==null?void 0:Y.navigationEndpoint;if(!R)return A;_.n(R==null?void 0:R.commandMetadata,_.Ti)&&(_.n(R.commandMetadata,_.Ti).ignoreNavigation=!0);return A}}});
_.C([_.S({reflectToAttribute:!0,selector:function(R,A){return A in R.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.k("design:type",Boolean)],L2.prototype,"checked",void 0);_.C([_.S(),_.k("design:type",Object)],L2.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],L2.prototype,"video",null);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],L2.prototype,"ytdReduxBehavior",void 0);_.C([_.F({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],L2);
_.B(L2,"ytd-selectable-video-renderer",function(){if(bmY!==void 0)return bmY;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return bmY=R},{mode:1});var dQ=function(){var R=_.K.apply(this,arguments)||this;R.monitorScroll=!0;return R};
_.H(dQ,_.K);dQ.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dQ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],dQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dQ.prototype,"data",void 0);_.C([_.F({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],dQ);
_.B(dQ,"ytd-selectable-video-list-renderer",function(){if(jbn!==void 0)return jbn;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return jbn=R},{mode:1});var f$o;_.bh("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var RV=function(){return _.K.apply(this,arguments)||this};
_.H(RV,_.K);RV.prototype.onChange=function(R){if(R=_.Yw(R).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.v("kevlar_command_handler_migration_killswitch"))_.NT(this.hostElement,R,this.hostElement);else{R=_.x(R);for(var A=R.next();!A.done;A=R.next())this.ytComponentBehavior.resolveCommand(A.value)}};
RV.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
RV.prototype.updateDataToggledFromBinding=function(R){this.set("data.toggled",R.detail.value)};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],RV.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],RV.prototype,"data",void 0);_.C([_.S({computed:"isEnabled(data)"}),_.k("design:type",Boolean)],RV.prototype,"enabled",void 0);_.C([_.F({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],RV);
_.B(RV,"ytd-toggle-item-renderer",function(){if(f$o!==void 0)return f$o;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return f$o=R},{mode:1});var pAf;var FIj;var BBf;var Ax=function(){var R=_.K.apply(this,arguments)||this;R.setVisible=!1;R.boundOnSubmitButtonClick=function(){R.onSubmitButtonClick()};
R.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return R};
_.H(Ax,_.K);Ax.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}}}}}};
Ax.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
Ax.prototype.onSubmitButtonClick=function(){var R;((R=this.data)==null?0:R.submitEndpoint)&&!_.v("enable_ytc_refunds_submit_form_signal_action")&&_.sC(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
Ax.prototype.handleSignalActionSubmitForm=function(){var R;((R=this.data)==null?0:R.submitEndpoint)&&_.sC(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Yh.Object.defineProperties(Ax.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.hiddenByDefault)&&!this.setVisible}}});
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ax.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ax.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ax.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ax.prototype,"setVisible",void 0);_.C([_.S(),_.k("design:type",Object)],Ax.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],Ax.prototype,"surveyFeedbackData",void 0);_.C([_.S(),_.k("design:type",Object)],Ax.prototype,"boundOnSubmitButtonClick",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data","setVisible"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ax.prototype,"visibilityHidden",null);_.C([_.CG({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],Ax);
_.B(Ax,"yt-flow-footer-renderer",function(){if(BBf===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;FIj===void 0&&(FIj=document.createElement("template"));var P=FIj;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);BBf=R}R=BBf;return R},{mode:2});var YV=function(){return _.K.apply(this,arguments)||this};
_.H(YV,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],YV.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],YV.prototype,"data",void 0);_.C([_.S({selector:function(R){return R.ypc.surveyFeedbackData}}),
_.k("design:type",Object)],YV.prototype,"surveyFeedbackData",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],YV);
_.B(YV,"ytd-flow-footer-renderer",function(){if(pAf!==void 0)return pAf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return pAf=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var a$g;var C0i;var PH=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return R};
_.H(PH,_.K);_.l=PH.prototype;_.l.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.fY("multiPageMenuSectionItems")}}};
_.l.handleHideEnclosingAction_=function(R){if(this.data&&this.data.items)for(var A=0;A<this.data.items.length;A++){var Y=this.data.items[A].notificationRenderer;if(Y&&Y.notificationId==R.hideEnclosingAction.notificationId){this.splice("data.items",A,1);_.OC(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.l.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Va(this.hostElement,"hidden",!0)};
_.l.updateMenu_=function(R){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&R&&!R.doNotRefreshInbox){R=this.data.continuations;for(var A=0;A<R.length;A++)if(R[A].invalidationContinuationData){var Y=void 0;var P=(Y=R[A].invalidationContinuationData)==null?void 0:Y.continuation;break}R=_.BO.clone(this.data.continuationUpdateEndpoint||null);R.continuation=P;R.click_tracking_params=this.data.trackingParams;_.sC(this.hostElement,[R])}};
_.l.onServiceRequestCompleted_=function(R,A){if(this.data&&(R=A.actions)){A=0;for(var Y=R.length;A<Y;A++){var P=_.n(R[A],_.C6H);if(!P)break;if((P.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||P.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&P.continuationItems&&this.data.items){var E=this.data.items.length-1;this.data.items[E].continuationItemRenderer&&(P=["data.items",E,1].concat(P.continuationItems),this.splice.apply(this,P))}}}};
PH.prototype.onServiceRequestCompleted_=PH.prototype.onServiceRequestCompleted_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],PH.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],PH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],PH.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],PH.prototype,"data",void 0);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],PH.prototype,"onServiceRequestCompleted_",null);_.C([_.CG({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],PH);
_.s5()(PH,"yt-multi-page-menu-section-renderer",function(){if(C0i===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;a$g===void 0&&(a$g=document.createElement("template"));var P=a$g;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);C0i=R}R=C0i;return R},{allowedProps:["data"],
mode:2});var heH;var o4m;var Ef=function(){return _.K.apply(this,arguments)||this};
_.H(Ef,_.K);Ef.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Yh.Object.defineProperties(Ef.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.progress)==null?0:this.data.progress*100}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ef.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ef.prototype,"data",void 0);_.C([_.X("data.progress"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Ef.prototype,"showProgressBar",null);
_.C([_.X("data.progress"),_.k("design:type",Number),_.k("design:paramtypes",[])],Ef.prototype,"progress",null);_.C([_.CG({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Ef);
_.B(Ef,"yt-flow-header-renderer",function(){if(o4m===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;heH===void 0&&(heH=document.createElement("template"));var P=heH;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);o4m=R}R=o4m;return R},{mode:2});var kg0;var GgQ;var z6=function(){return _.K.apply(this,arguments)||this};
_.H(z6,_.K);z6.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],z6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],z6.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],z6.prototype,"data",void 0);_.C([_.CG({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],z6);
_.B(z6,"yt-post-confirmation-flow-step-renderer",function(){if(GgQ===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;kg0===void 0&&(kg0=document.createElement("template"));var P=kg0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);GgQ=R}R=GgQ;return R},{mode:2});var ZmY;var tkj;var iA=function(){return _.K.apply(this,arguments)||this};
_.H(iA,_.K);
iA.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"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iA.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],iA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iA.prototype,"data",void 0);_.C([_.CG({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],iA);
_.B(iA,"yt-refund-confirmation-flow-step-renderer",function(){if(tkj===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;ZmY===void 0&&(ZmY=document.createElement("template"));var P=ZmY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);tkj=R}R=tkj;return R},{mode:2});var wAg=_.E5(function(R){var A=R.data;return _.V("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.V("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.V(_.P1,{data:function(){return{thumbnails:[{url:A().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.V("div",{class:"profileBadgeViewModelContent"},_.V("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return A().badgeDesc}),_.V(_.J,{cond:function(){return A().badgeSubtitle},
then:function(){return _.V("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return A().badgeSubtitle})}})))},"hh");
wAg.idomCompat=!0;var uji=_.E5(function(R){var A=R.data;return _.V("yt-comment-interaction-view-model",{el:_.zo(_.fi(function(){return A().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.V("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return A().onTapA11yLabel},
"on:keydown":_.qyk(),tabindex:0},_.V("div",{class:"ytCommentInteractionViewModelHeader"},_.V("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return A().headerPrefix},' "',function(){return A().videoTitle}),_.V("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.V("div",{class:"ytCommentInteractionViewModelContent"},_.V("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return A().commentContent}),_.V("div",{class:"ytCommentInteractionViewModelChevron"},
_.V(_.P1,{data:function(){return{thumbnails:[{url:A().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"ih");
uji.idomCompat=!0;var eeH=_.E5(function(R){var A=R.data;return _.V("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW}),_.V("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return A().channelName}))},"jh");
eeH.idomCompat=!0;var ADH=_.E5(function(R){var A=R.data;R={};return _.V("yt-profile-info-view-model",{class:_.To("ytProfileInfoViewModelHost",(R.ytProfileInfoViewModelWithVideoShelf=function(){return A().videosHorizontalShelf},R))},_.V(qon,{profileInfo:A}),_.V(_.ni,{data:function(){return A().videosHorizontalShelf}},{horizontalShelfViewModel:function(Y){return _.V("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.V(_.ES,{data:Y.data}))}}),_.V(_.J,{cond:function(){return A().comments},
then:function(){return _.V(LIH,{profileInfo:A})}}),_.V(_.J,{cond:function(){return A().sharedSubscriptionsTitle},
then:function(){return _.V(_.J,{cond:function(){return A().subscriptionsAccessButtonCommand},
then:function(){return _.V(drQ,{profileInfo:A})},
else:function(){return _.V(R6i,{profileInfo:A})}})}}))},"kh");
ADH.idomCompat=!0;var LIH=_.E5(function(R){var A=R.profileInfo;return _.V("div",{class:"ytProfileInfoViewModelActivity"},_.V("div",{class:"ytProfileInfoViewModelHeader"},_.V("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return A().commentsInteractionTitle})),_.V(_.ni,{data:function(){return A().comments}},{commentInteractionViewModel:function(Y){return _.V("div",{class:"ytProfileInfoViewModelActivity"},_.V(uji,{data:Y.data}))}}))},"lh"),drQ=_.E5(function(R){var A=R.profileInfo;
return _.V("div",{class:"ytProfileInfoViewModelSubSection"},_.V("div",{class:"ytProfileInfoViewModelSubHeader"},_.V(_.DW,{command:function(){return A().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.V("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return A().sharedSubscriptionsTitle}),_.V("div",null,_.V(_.ni,{data:function(){return A().subscriptionsAccessButton}},{buttonViewModel:_.Is})))),_.V(Y$H,{sharedSubscriptions:function(){var Y;
return((Y=A().sharedSubscriptions)==null?void 0:Y.slice(0,5))||[]}}))},"mh"),R6i=_.E5(function(R){var A=R.profileInfo;
return _.V("div",{class:"ytProfileInfoViewModelSubSection"},_.V("div",{class:"ytProfileInfoViewModelSubHeader"},_.V("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return A().sharedSubscriptionsTitle})),_.V(Y$H,{sharedSubscriptions:function(){var Y;
return((Y=A().sharedSubscriptions)==null?void 0:Y.slice(0,5))||[]}}))},"nh"),Y$H=_.E5(function(R){return _.V("div",{class:"ytProfileInfoViewModelSubs"},_.V(_.ni,{data:R.sharedSubscriptions},{sharedSubscriptionViewModel:function(A){return _.V("div",{class:"ytProfileInfoViewModelSub"},_.V(eeH,{data:A.data}))}}))},"oh"),qon=_.E5(function(R){var A=R.profileInfo;
return _.V("div",{class:"ytProfileInfoViewModelActivity"},_.V(_.Ue,{each:function(){return[A().profileBadgeInfoYtWide,A().profileBadgeInfoChannelWide].filter(function(Y){return!!Y})},
keyBy:"INDEX"},function(Y){return _.V(_.lI,null,_.V("div",{class:"ytProfileInfoViewModelHeader"},_.V("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return Y().profileSectionTitle}),_.V("div",{class:"ytProfileInfoViewModelSectionDesc"},_.V("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var P;
return(P=Y().commentBadge)==null?void 0:P.commentDesc}),_.V(_.J,{cond:function(){var P;
return(P=Y().commentBadge)==null?void 0:P.blackHeartDesc},
then:function(){return _.V("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.V("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.V(_.P1,{data:function(){var P;
return{thumbnails:[{url:(P=Y().commentBadge)==null?void 0:P.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.V("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var P;return(P=Y().commentBadge)==null?void 0:P.blackHeartDesc}))),_.V("div",{class:"ytProfileInfoViewModelBadge"},_.V(_.Ue,{each:function(){return Y().badges||[]}},function(P){return _.V(wAg,{data:P})})))}))},"ph");var PWj=_.E5(function(R){var A=R.data;var Y=function(){return A().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.V("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.V(_.ni,{data:function(){return A().profileIdentityInfo}},{profileIdentityInfoViewModel:function(P){return _.V(_.uX0,{data:P.data,
hideDivider:Y,isChannelInfoCard:Y})},
profileInfoViewModel:ADH}),_.V(_.ni,{data:function(){return A().profileInfo}},{profileIdentityInfoViewModel:_.uX0,
profileInfoViewModel:ADH}))},"qh");
PWj.idomCompat=!0;_.Ow(PWj,"yt-profile-card-view-model",{props:{data:_.VY}});var lA=function(){var R=_.K.apply(this,arguments)||this;R.enableFocusFix=_.v("music_web_enable_focus_on_setting_menu_fix")&&_.CQ("IS_MOBILE_WEB",!1);R.covered=!1;R.hideMenu=!1;R.isCommentNotificationOnProfileCard=!1;R.scrolledByTouch=!1;R.disableBackdropFilter=_.v("web_disable_backdrop_filter");R.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return R};
_.H(lA,_.K);_.l=lA.prototype;
_.l.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"}}}};
_.l.ready=function(){var R=this;this.JSC$20144_containerElement.addEventListener("scroll",function(){R.ytRendererBehavior.markDirty()})};
_.l.attributeChanged=function(R,A){R==="menu-style"&&_.OC(this.hostElement,"yt-multi-page-menu-closed-action",[A])};
_.l.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.T2(this,this.focusOnStampFinished))};
_.l.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.T2(this,this.focusOnStampFinished))};
_.l.reset=function(){this.closeJobId&&(_.fn.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.l.focusOnStampFinished=function(R){R.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.T2(this,this.focusOnStampFinished)),this.doFocus())};
_.l.doFocus=function(){var R=_.ktH(this.sectionsElement);R.length&&R[0].focus()};
_.l.computeMenuStyle=function(R){return R?R.toLowerCase().replace(/_/g,"-"):""};
_.l.computeIsCommentNotificationOnProfileCard=function(R){return _.v("enable_profile_cards_on_comments")&&R.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.l.computeHideMenu=function(R,A){return R||!(!A||!A.showLoadingSpinner)};
_.l.onPopupClosed=function(){this.isPopUpOpen=!1;_.OC(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.l.onPopupOpened=function(R,A){this.isPopUpOpen=!0;A.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.xo(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.cK({type:"CHANNEL_REPORT_RESET"})))};
_.l.onYtNavigate=function(R,A){this.shouldCloseOnNavigateEvent(A.endpoint)&&_.OC(this.hostElement,"yt-close-all-popups-action")};
_.l.handleEndpoint=function(R){R=_.n(R,_.eM);!this.isCommentNotificationOnProfileCard&&R&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20144_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.l.handleActions=function(R){for(var A=0,Y=R.length;A<Y;A++){var P=_.n(R[A],yQj);P&&this.handleGetMultiPageMenuAction(P);(P=_.n(R[A],_.C6H))&&this.handleAppendContinuationItemsAction(P)}};
_.l.onServiceRequestSentOrCompleted=function(R,A){R.detail&&R.detail.endpoint&&this.handleEndpoint(R.detail.endpoint);A.actions&&this.handleActions(A.actions)};
_.l.handleGetMultiPageMenuAction=function(R){var A=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Mo(this.submenuElement).appendChild(A);(R=R.menu.multiPageMenuRenderer)&&this.logSubmenu(R);A.data=R;A.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.l.handleAppendContinuationItemsAction=function(R){if(this.data&&R.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&R.continuationItems&&this.data.sections){var A=this.data.sections.length-1;this.data.sections[A].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),A--);if(this.data.sections[A].multiPageMenuNotificationSectionRenderer&&R.continuationItems){R=_.x(R==null?void 0:R.continuationItems);for(var Y=R.next();!Y.done;Y=R.next())if(Y=Y.value,_.n(Y,oun)){var P=
void 0,E=void 0,z=void 0,c=void 0,M=void 0;((P=this)==null?0:(E=P.data)==null?0:(z=E.sections)==null?0:(c=z[A])==null?0:(M=c.multiPageMenuNotificationSectionRenderer)==null?0:M.items)&&this.push("data.sections."+A+".multiPageMenuNotificationSectionRenderer.items",Y)}else if(_.n(Y,_.S2N)||_.n(Y,_.eb))this.push("data.sections",Y),A++}}};
_.l.logSubmenu=function(R){if(!_.v("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var A=this.ytRendererBehavior.getScreenLayer(),Y=_.F9(A),P=_.pO(A);if((R=R.trackingParams)&&Y&&P){var E=_.S5(R);_.v("combine_ve_grafts")?_.rU().graftServerVe(R,P,A):_.ZM(Y,P,E)}}};
_.l.emptySubmenuContainer=function(){for(var R=_.Mo(this.submenuElement);R.firstChild;)R.removeChild(R.firstChild)};
_.l.onMenuBackTap=function(R){_.xo(this.hostElement,"yt-submenu-closed");R.stopPropagation()};
_.l.onSubmenuClosed=function(R){_.Yw(R)!==this.hostElement&&(this.covered=!1,_.xo(this.hostElement,"yt-refit"),R.stopPropagation())};
_.l.onRetrieveLocation=function(R,A){A.hasComments&&(A.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),R.stopPropagation())};
_.l.shouldCloseOnNavigateEvent=function(R){if(!R)return!0;if(_.n(R,_.AeD)||_.n(R,_.YO8)||_.n(R,_.RlE)||_.n(R,_.G$))return!1;var A;return((A=_.n(R==null?void 0:R.commandMetadata,_.Ti))==null?0:A.ignoreNavigation)?!1:!0};
_.l.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.l.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.l.refitAfterRender=function(){var R=this;_.RK(this,function(){_.xo(R.hostElement,"yt-refit")})};
lA.prototype.refitAfterRender=lA.prototype.refitAfterRender;lA.prototype.onRetrieveLocation=lA.prototype.onRetrieveLocation;lA.prototype.onSubmenuClosed=lA.prototype.onSubmenuClosed;lA.prototype.onMenuBackTap=lA.prototype.onMenuBackTap;lA.prototype.onServiceRequestSentOrCompleted=lA.prototype.onServiceRequestSentOrCompleted;lA.prototype.onYtNavigate=lA.prototype.onYtNavigate;lA.prototype.onPopupOpened=lA.prototype.onPopupOpened;lA.prototype.onPopupClosed=lA.prototype.onPopupClosed;
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],lA.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],lA.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],lA.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],lA.prototype,"enableFocusFix",void 0);_.C([_.S(),_.k("design:type",Object)],lA.prototype,"covered",void 0);_.C([_.S({computed:"computeHideMenu(covered, data)"}),_.k("design:type",Object)],lA.prototype,"hideMenu",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.k("design:type",String)],lA.prototype,"menuStyle",void 0);
_.C([_.S({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.k("design:type",Object)],lA.prototype,"isCommentNotificationOnProfileCard",void 0);_.C([_.S(),_.k("design:type",Boolean)],lA.prototype,"isPopUpOpen",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],lA.prototype,"scrolledByTouch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],lA.prototype,"disableBackdropFilter",void 0);
_.C([_.nG("#sections"),_.k("design:type",HTMLElement)],lA.prototype,"sectionsElement",void 0);_.C([_.nG("#spinner"),_.k("design:type",HTMLElement)],lA.prototype,"spinnerElement",void 0);_.C([_.nG("#header"),_.k("design:type",HTMLElement)],lA.prototype,"headerElement",void 0);_.C([_.nG("#container"),_.k("design:type",HTMLElement)],lA.prototype,"JSC$20144_containerElement",void 0);_.C([_.nG("#submenu"),_.k("design:type",HTMLElement)],lA.prototype,"submenuElement",void 0);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lA.prototype,"onPopupClosed",null);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],lA.prototype,"onPopupOpened",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],lA.prototype,"onYtNavigate",null);
_.C([_.Qa("yt-service-request-completed"),_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],lA.prototype,"onServiceRequestSentOrCompleted",null);_.C([_.Qa("yt-menu-back-tapped"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lA.prototype,"onMenuBackTap",null);
_.C([_.Qa("yt-submenu-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],lA.prototype,"onSubmenuClosed",null);_.C([_.Qa("yt-retrieve-location"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],lA.prototype,"onRetrieveLocation",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lA.prototype,"refitAfterRender",null);
_.C([_.F({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],lA);
_.B(lA,"ytd-multi-page-menu-renderer",function(){if(DrF!==void 0)return DrF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return DrF=R},{mode:1});var Ez9;var xV=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return R};
_.H(xV,_.K);_.l=xV.prototype;_.l.created=function(){this.showTooltips=!0};
_.l.computeAccessibility_=function(R){return this.get("accessibility.accessibilityData",R)||null};
_.l.onTap=function(){var R=_.MT(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(R&&R.length===1&&R[0])_.OC(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var A;if((A=this.data)==null?0:A.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var Y;((Y=this.data)==null?0:Y.menuRequest)&&_.sC(this.hostElement,[this.data.menuRequest])}}};
_.l.handleTopbarMenuClosedAction=function(R){var A,Y;(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(R)===((A=this.data)==null?void 0:(Y=A.icon)==null?void 0:Y.iconType)&&this.toggleIconState(!1)};
_.l.toggleIconState=function(R){_.v("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=R)};
_.l.handleUpdateTopbarAvatarAction=function(R){var A;R=(A=_.n(R,cQY))==null?void 0:A.avatarUrl;var Y,P;A=(Y=this.data)==null?void 0:(P=Y.avatar)==null?void 0:P.thumbnails;R&&A&&(Y={thumbnails:[Object.assign({},A[0],{url:R})]},this.set("data.avatar",Y))};
_.Yh.Object.defineProperties(xV.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Mo(this.hostElement).querySelector("#button")}}});
xV.prototype.onTap=xV.prototype.onTap;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],xV.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],xV.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.aKH.YtButtonBehavior),_.k("design:type",Object)],xV.prototype,"ytButtonBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xV.prototype,"data",void 0);
_.C([_.nG("yt-icon-button#button"),_.k("design:type",Object)],xV.prototype,"iconButton",void 0);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xV.prototype,"onTap",null);_.C([_.F({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],xV);
_.s5()(xV,"ytd-topbar-menu-button-renderer",function(){if(Ez9===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);Ez9=R}R=Ez9;return R},{allowedProps:["data"],
mode:1});var z6W;var cH=function(){return _.K.apply(this,arguments)||this};
_.H(cH,_.K);cH.prototype.getSelected=function(){return this.reasons.selected};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cH.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],cH.prototype,"data",void 0);_.C([_.nG("#reasons"),_.k("design:type",Object)],cH.prototype,"reasons",void 0);_.C([_.F({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],cH);
_.B(cH,"ytd-ad-feedback-content",function(){if(z6W!==void 0)return z6W;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return z6W=R},{mode:1});var i5Y;var Of=function(){return _.K.apply(this,arguments)||this};
_.H(Of,_.K);_.l=Of.prototype;_.l.onPopupOpened=function(){_.OC(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.l.computeConfirmButton=function(R){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:R.confirmLabel}};
_.l.computeCancelButton=function(R){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:R.cancelLabel}};
_.l.onConfirmTap=function(){var R=this.content.getSelected();R!==void 0&&(R=this.data.reasons[R].endpoint)&&(_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}}),_.OC(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.l.sendFeedbackSubmitToastAction=function(){var R;(R=this.data)!=null&&R.completionMessage&&_.OC(this.hostElement,"yt-open-popup-action",[_.Ed(this.data.completionMessage),this])};
_.l.onCancelTap=function(){_.OC(this.hostElement,"yt-close-popup-action")};
Of.prototype.onPopupOpened=Of.prototype.onPopupOpened;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Of.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Of.prototype,"data",void 0);_.C([_.nG("#content"),_.k("design:type",Object)],Of.prototype,"content",void 0);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Of.prototype,"onPopupOpened",null);
_.C([_.F({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Of);
_.B(Of,"ytd-ad-feedback-renderer",function(){if(i5Y!==void 0)return i5Y;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return i5Y=R},{mode:1});var lBo;var Mx=function(){return _.K.apply(this,arguments)||this};
_.H(Mx,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Mx.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Mx.prototype,"data",void 0);_.C([_.F({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],Mx);
_.B(Mx,"ytd-ad-info-dialog-content",function(){if(lBo!==void 0)return lBo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return lBo=R},{mode:1});var x8N;var sf=function(){return _.K.apply(this,arguments)||this};
_.H(sf,_.K);sf.prototype.computeConfirmButton=function(R){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:R.confirmLabel}};
sf.prototype.onConfirmTap=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
sf.prototype.computeShouldShowTitle=function(){var R;return!((R=this.data)==null||!R.title)};
sf.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
sf.prototype.onPopupClosed=sf.prototype.onPopupClosed;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sf.prototype,"data",void 0);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],sf.prototype,"onPopupClosed",null);_.C([_.F({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],sf);
_.B(sf,"ytd-ad-info-dialog-renderer",function(){if(x8N!==void 0)return x8N;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return x8N=R},{mode:1});var cDW;var Nx=function(){var R=_.K.apply(this,arguments)||this;R.actionButtonClass="action-button";R.dismissButtonId="dismiss-button";R.dialogDismiss=!0;return R};
_.H(Nx,_.K);_.l=Nx.prototype;_.l.computeInPlayer=function(R){return(R==null?void 0:R.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.l.computedLogo=function(){var R,A;return this.isDarkTheme()?(R=this.data)==null?void 0:R.logoDark:(A=this.data)==null?void 0:A.logo};
_.l.computedHeaderImage=function(){var R,A;return this.isDarkTheme()?(R=this.data)==null?void 0:R.headerImageDark:(A=this.data)==null?void 0:A.headerImage};
_.l.computeLogoIconId=function(){var R,A,Y,P=(R=this.computedLogo())==null?void 0:(A=R.sources)==null?void 0:(Y=A[0])==null?void 0:Y.height;return P&&P%31===0?"logo-icon-with-padding":"logo-icon"};
_.l.computeLogoIconHeight=function(){var R,A,Y,P=(R=this.computedLogo())==null?void 0:(A=R.sources)==null?void 0:(Y=A[0])==null?void 0:Y.height;return P&&P%31===0?"31":"24"};
_.l.onPopupClosed=function(){_.is().resolve(_.bq).dispose()};
_.l.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.l.onShow=function(){this.inPlayer&&_.vr(6);this.titleElement.focus()};
_.l.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var R=0;R<this.data.impressionEndpoints.length;R++){var A=_.n(this.data.impressionEndpoints[R],_.CC);A&&this.ytComponentBehavior.resolveCommand(A)}};
_.l.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.OC(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Yh.Object.defineProperties(Nx.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var R,A;return!((R=this.data)==null||!R.headerImageDark)&&!((A=this.data)==null||!A.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.secondaryButton)}}});
Nx.prototype.onPopupClosed=Nx.prototype.onPopupClosed;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Nx.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Nx.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.cX.YtVisibilityBehavior),_.k("design:type",Object)],Nx.prototype,"ytVisibilityBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Nx.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],Nx.prototype,"actionButtonClass",void 0);_.C([_.S(),_.k("design:type",Object)],Nx.prototype,"dismissButtonId",void 0);_.C([_.S(),_.k("design:type",Object)],Nx.prototype,"dialogDismiss",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Nx.prototype,"hasHeaderImage",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Nx.prototype,"hasPremiumButton",null);
_.C([_.S({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.k("design:type",Boolean)],Nx.prototype,"inPlayer",void 0);_.C([_.nG("#dismiss-button"),_.k("design:type",HTMLElement)],Nx.prototype,"dismissButton",void 0);_.C([_.nG("#title"),_.k("design:type",HTMLElement)],Nx.prototype,"titleElement",void 0);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Nx.prototype,"onPopupClosed",null);
_.C([_.F({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],Nx);
_.B(Nx,"ytd-enforcement-message-view-model",function(){if(cDW!==void 0)return cDW;var R=document.createElement("template");_.D(R,'\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="fc-dialog-container 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" tabindex="0" role="heading" 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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return cDW=R},{mode:1});var O5f;var MsH;var VL=function(){var R=_.K.apply(this,arguments)||this;R.TEST_ONLY={immediateValidation:function(){R.immediateValidation()},
onValidationResponse:function(A){R.onValidationResponse(A)},
onGenerateHandleFromNameResponse:function(A){R.onGenerateHandleFromNameResponse(A)}};
return R};
_.H(VL,_.K);_.l=VL.prototype;_.l.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.l.validate=function(){this.immediateValidation()};
_.l.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.l.setHandleInputValue=function(R){this.handleDir=this.getHandleDir(R);this.handleInput.value=R;this.validationState={status:"PENDING"};this.immediateValidation()};
_.l.getHandleDir=function(R){var A=R===""&&!1;return(A=_.Wxb.test.call(_.Wxb,R))?"rtl":"ltr"};
_.l.onDataChanged=function(){var R,A;this.handleDir=this.getHandleDir((A=(R=this.data)==null?void 0:R.handle)!=null?A:"");var Y;this.validationState=((Y=this.data)==null?0:Y.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var P;((P=this.data)==null?0:P.validateOnInit)&&this.immediateValidation()};
_.l.stopPropagation=function(R){R.stopPropagation()};
_.l.onInput=function(){var R;this.handleDir=this.getHandleDir((R=this.handleInput.value)!=null?R:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.l.onFocusout=function(R){this.handleInput.contains(R.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.l.delayedValidation=function(){var R,A;this.debouncedValidation((A=(R=this.data)==null?void 0:R.validationDelayMs)!=null?A:1E3)};
_.l.immediateValidation=function(){this.debouncedValidation(0)};
_.l.debouncedValidation=function(R){var A=this;_.u5(this,"debouncedValidation",function(){var Y,P=A.staticValidation((Y=A.handleInput.value)!=null?Y:"");if(P!==void 0)A.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:P};else{var E;if((E=A.data)!=null&&E.validateChannelHandleCommand){A.validationState={status:"LOADING"};var z;A.ytComponentBehavior.resolveCommand(A.data.validateChannelHandleCommand,{form:{handle:(z=A.handleInput.value)!=null?z:""},commandController:{onSuccess:function(c,
M){A.onValidationResponse(M)},
onServerError:function(c,M){A.onValidationServerError(M)}}})}else A.handleUnexpectedValidationError(new _.XN("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",A.data))}},R)};
_.l.staticValidation=function(R){var A;if(((A=this.data)==null?void 0:A.channelHandleStaticValidationParams)!==void 0){A=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(R)&&A.validValueRegexpErrorMessage!==void 0)return A.validValueRegexpErrorMessage;if(A.minLength!==void 0&&R.length<A.minLength&&A.minLengthErrorMessage!==void 0)return A.minLengthErrorMessage;if(A.maxLength!==void 0&&R.length>A.maxLength&&A.maxLengthErrorMessage!==void 0)return A.maxLengthErrorMessage}};
_.l.onValidationResponse=function(R){var A=_.n(R.result,OHW);A===void 0?this.handleUnexpectedValidationError(new _.XN("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",R)):this.handleValidationResultRenderer(A)};
_.l.onValidationServerError=function(R){this.handleUnexpectedValidationError(new _.XN("ValidateChannelHandle request failed.",R))};
_.l.handleValidationResultRenderer=function(R){if(R.handle===void 0)this.handleUnexpectedValidationError(new _.XN("ChannelHandleValidationResultRenderer does not contain handle.",R));else if(R.handle===this.handleInput.value)switch(R.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:R.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:R.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.XN("Unrecognized ChannelHandleValidationResult",R));break;default:_.kZ(R.result)}};
_.l.handleUnexpectedValidationError=function(R){var A;this.validationState={status:"UNKNOWN",handle:(A=this.handleInput.value)!=null?A:""};_.pK(R)};
_.l.stopEventPropagation=function(R){R.stopPropagation()};
_.l.updateHandleOnChannelNameInputChange=function(R){if(!this.wasEdited){var A,Y;this.debouncedGenerateHandleFromName(R,(Y=(A=this.data)==null?void 0:A.validationDelayMs)!=null?Y:1E3)}};
_.l.debouncedGenerateHandleFromName=function(R,A){var Y=this;_.u5(this,"debouncedGenerateHandleFromName",function(){var P;(P=Y.data)!=null&&P.validateChannelHandleCommand?Y.ytComponentBehavior.resolveCommand(Y.data.validateChannelHandleCommand,{form:{name:R},commandController:{onSuccess:function(E,z){Y.onGenerateHandleFromNameResponse(z)},
onServerError:function(E,z){_.pK(new _.XN("Error calling GenerateHandleFromName",z))}}}):_.pK(new _.XN("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",Y.data))},A)};
_.l.onGenerateHandleFromNameResponse=function(R){this.wasEdited||((R=_.n(R.result,MVY))?this.setHandleInputValue(R.handle):_.pK(new _.XN("Invalid results when generate handle from name")))};
_.Yh.Object.defineProperties(VL.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var R;if(R=this.validationState)R=this.validationState,R=R.status==="OK"||R.status==="UNKNOWN";if(R)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var R;if(((R=this.validationState)==null?void 0:R.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 R,A=(R=this.channelHandleEntity)==null?void 0:R.handleEdit;this.handleDir=this.getHandleDir(A!=null?A:"");return A}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var R,A;if(((R=this.data)==null?void 0:(A=R.channelHandleStaticValidationParams)==null?void 0:A.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
VL.prototype.stopEventPropagation=VL.prototype.stopEventPropagation;VL.prototype.onDataChanged=VL.prototype.onDataChanged;VL.prototype.applyHandleEdit=VL.prototype.applyHandleEdit;VL.prototype.onValueChanged=VL.prototype.onValueChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],VL.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],VL.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],VL.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Boolean)],VL.prototype,"wasEdited",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],VL.prototype,"handleDir",void 0);_.C([_.nG("#handle-input"),_.k("design:type",Object)],VL.prototype,"handleInput",void 0);_.C([_.S(),_.X("validationState"),_.k("design:type",Object),_.k("design:paramtypes",[])],VL.prototype,"value",null);
_.C([_.vZ("value"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VL.prototype,"onValueChanged",null);_.C([_.X("validationState"),_.k("design:type",Object),_.k("design:paramtypes",[])],VL.prototype,"errorIndicator",null);_.C([_.S({reflectToAttribute:!0}),_.X("errorIndicator"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],VL.prototype,"borderErrorIndicator",null);
_.C([_.S({selectorArgs:["data.channelHandleEntityKey"],selector:function(R,A){return _.mc(R.entities,"channelHandle",A)}}),
_.k("design:type",Object)],VL.prototype,"channelHandleEntity",void 0);_.C([_.X("channelHandleEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],VL.prototype,"handleEdit",null);_.C([_.vZ("handleEdit"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VL.prototype,"applyHandleEdit",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VL.prototype,"onDataChanged",null);
_.C([_.X("data.channelHandleStaticValidationParams.validValueRegexp"),_.k("design:type",Object),_.k("design:paramtypes",[])],VL.prototype,"validValueRegexp",null);_.C([_.Qa("yt-service-request-sent"),_.Qa("yt-service-request-completed"),_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],VL.prototype,"stopEventPropagation",null);_.C([_.F({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],VL);
_.B(VL,"ytd-channel-handle-input-renderer",function(){if(MsH!==void 0)return MsH;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return MsH=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var Jx=function(){var R=_.K.apply(this,arguments)||this;R.data=null;R.errorMessage=null;R.isLoading=!0;R.hideContainer=!1;R.enableNewChannelCreationOnIdForAll=_.v("enable_new_channel_creation_for_id4all");R.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"};R.testOnly={setErrorMessage:function(A){R.resetErrorState();
R.setErrorState(A)}};
return R};
_.H(Jx,_.K);_.l=Jx.prototype;_.l.created=function(){this.logScreenVe()};
_.l.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")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var R;((R=this.zeroStepErrorMessageEntity)==null?0:R.value)&&this.set("errorMessage",_.dF(this.zeroStepErrorMessageEntity.value))};
_.l.onCreateTap=function(){var R=this;if(this.data&&this.data.channelCreationEndpoint){var A,Y;if(!((A=this.data.createChannelButton)==null?0:(Y=A.buttonRenderer)==null?0:Y.isDisabled)){var P;if((P=this.nameInput)!=null&&P.value){this.setLoadingState();var E,z;A=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(E=this.handleInput)==null?void 0:E.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((z=this.handleInput)==null?void 0:z.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:A,commandController:{onSuccess:function(c,M){R.onChannelCreationEndpointSuccess(M);R.obakeImageSource&&_.Wj("channelCreatedWithObakeImage",{imageSourceType:R.obakeImageSource})},
onServerError:function(){R.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.l.endpointRequiresServiceRequestAction=function(R){return!!_.n(R,_.D7)||!!_.n(R,cQY)};
_.l.isNavigateAction=function(R){var A;return!!_.n(R,_.Tc)||!!_.n((A=_.n(R,VVY))==null?void 0:A.command,_.Tc)};
_.l.isPlaylistAction=function(R){return!!_.n(R,_.qN)||!!_.n(R,_.Pi)};
_.l.onChannelCreationEndpointSuccess=function(R){if(R.createChannelError){var A;this.setErrorState((A=R.createChannelError)==null?void 0:A.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.v("enable_secondary_channel_creation_form")&&R.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(R.navigationEndpoint);if(R.actions){A=_.x(R.actions);for(var Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,this.endpointRequiresServiceRequestAction(Y)&&this.ytComponentBehavior.resolveCommand(Y),
this.isNavigateAction(Y)){var P=void 0;Y=_.n((P=_.n(Y,VVY))==null?void 0:P.command,_.Tc);P=void 0;this.isPlaylistAction((P=Y)==null?void 0:P.endpoint)&&(_.OC(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),P=void 0,this.ytComponentBehavior.resolveCommand((P=Y)==null?void 0:P.endpoint))}}R.actions&&R.actions.some(function(E){var z;return _.n(E,_.Tc)||_.n((z=_.n(E,VVY))==null?void 0:z.command,_.Tc)})||_.OC(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.l.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.l.onCancelTap=function(){var R,A,Y;if(!((R=this.data)==null?0:(A=R.cancelButton)==null?0:(Y=A.buttonRenderer)==null?0:Y.isDisabled)){var P,E,z;R=(P=this.data)==null?void 0:(E=P.cancelButton)==null?void 0:(z=E.buttonRenderer)==null?void 0:z.command;if(!R||!_.n(R,_.aaJ)){var c;this.nameInput&&((c=this.data)==null?0:c.name)&&(this.nameInput.value=this.data.name);var M;this.handleInput&&((M=this.data)==null?0:M.channelHandleInput)&&(this.handleInput.data=_.n(this.data.channelHandleInput,ssH));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.l.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.l.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.l.onClearProfilePhotoTap=function(){var R,A,Y;((R=this.data)==null?0:(A=R.clearProfilePhotoButton)==null?0:(Y=A.buttonRenderer)==null?0:Y.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.l.onEditAvatarTap=function(){var R,A,Y;((R=this.data)==null?0:(A=R.editAvatarButton)==null?0:(Y=A.buttonRenderer)==null?0:Y.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.l.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)};
_.l.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var R;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((R=this.data)==null?0:R.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.l.setErrorState=function(R){this.resetErrorState();if(R)this.set("errorMessage",R);else{var A;if((A=this.zeroStepErrorMessageEntity)==null?0:A.value)this.set("errorMessage",_.dF(this.zeroStepErrorMessageEntity.value));else{var Y;((Y=this.data)==null?0:Y.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.l.fetchImageBlobWithAlr=function(R,A){A=A===void 0?5:A;var Y=this,P,E,z,c,M;return _.O(function(N){switch(N.nextAddress){case 1:return N.yield(fetch(R,{method:"GET",mode:"cors"}),2);case 2:P=N.yieldResult;if(P.ok){N.jumpTo(3);break}if(A===0)throw Error();E=Y.addJitter(Math.pow(2,5-A));return N.yield(new Promise(function(y){setTimeout(y,E*1E3)}),4);
case 4:return N.return(Y.fetchImageBlobWithAlr(R,A-1));case 3:if(!P.headers.get("content-type").split(";").some(function(y){return y.trim()==="text/plain"})){N.jumpTo(5);
break}z=Y;c=z.fetchImageBlobWithAlr;return N.yield(P.text(),6);case 6:return N.return(c.call(z,N.yieldResult,A-1));case 5:return N.yield(P.blob(),7);case 7:return M=N.yieldResult,N.return(M)}})};
_.l.addJitter=function(R){var A=R*.3*Math.random();Math.random()>.5&&(A*=-1);return R+A};
_.l.openProfilePicturePicker=function(){var R=this,A,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1){A=R.data.scottyUploadUrl;if(!A)return c.return();Y=document.documentElement.hasAttribute("dark");P=document.body.style.colorScheme;Y&&(document.body.style.colorScheme="dark");E=m2g(Txf(yHo(cHN(Y?"dark":"light")),function(M){var N,y,m,T,Q;return _.O(function(g){if(g.nextAddress==1)return N=_.uK(b9n(new iz(M.photoUrl,!1)).build(),"alr","yes"),R.obakeImageSource=R.pictureChangeSourceToObakeImageSourceType(M.photoSource),
_.g2(g,2),R.setLoadingState(),g.yield(R.fetchImageBlobWithAlr(N),4);if(g.nextAddress!=2)return y=g.yieldResult,m=new FileReader,m.addEventListener("load",function(){var r,I,b,p,h,L;return _.O(function(Z){if(Z.nextAddress==1){if(y.size>15728640)return R.setErrorState((r=R.data)==null?void 0:r.imageSizeErrorMessage),_.pK(Error("vl")),Z.return();if(!m.result)return R.setErrorState((I=R.data)==null?void 0:I.genericImageLoadErrorMessage),_.pK(Error("wl")),Z.return();b=m.result;_.g2(Z,2);return Z.yield(Gjj(y,
A),4)}if(Z.nextAddress!=2)return p=Z.yieldResult,R.handleImageUpdatedAction(b,p),R.resetErrorState(),_.us(Z,0);h=_.UT(Z);R.setErrorState((L=R.data)==null?void 0:L.uploadErrorMessage);if(h instanceof Error)_.bj(h);else{var w=new _.XN(JSON.stringify(h));_.bj(w)}_.XH(Z)})}),m.readAsDataURL(y),_.us(g,0);
T=_.UT(g);R.setErrorState((Q=R.data)==null?void 0:Q.genericImageLoadErrorMessage);T instanceof Error?_.bj(T):_.fK(new _.XN(JSON.stringify(T)));_.XH(g)})}),function(){R.hideContainer=!1;
document.body.style.colorScheme=P});
_.g2(c,2);return c.yield(E.openPicker(),4)}if(c.nextAddress!=2)return _.us(c,0);_.UT(c);R.setErrorState((z=R.data)==null?void 0:z.selectImageErrorMessage);_.XH(c)})};
_.l.pictureChangeSourceToObakeImageSourceType=function(R){switch(R){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.l.logScreenVe=function(){_.$5(_.rU(),124448)};
_.l.graftServerVe=function(){var R=_.pO(),A,Y,P=(A=this.data)==null?void 0:(Y=A.loggingDirectives)==null?void 0:Y.trackingParams;P&&R&&(this.channelCreationFormVe=_.rU().graftServerVe(P,R),R={visualElement:this.channelCreationFormVe},_.nC().reportShown(R))};
_.l.isNameChanged=function(R){var A;return((A=this.data)==null?void 0:A.name)!==R};
_.l.isHandleChanged=function(R){var A,Y=_.n((A=this.data)==null?void 0:A.channelHandleInput,ssH);return Y&&R?Y.handle!==R:!1};
_.l.handleImageUpdatedAction=function(R,A){this.hideContainer=!1;this.previewDataUrl=R;this.encryptedBlobId=A};
_.l.handleImageSelectionErrorAction=function(R){this.hideContainer=!1;this.setErrorState(R)};
_.l.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.l.showContainer=function(){this.hideContainer=!1};
_.l.maybeWipeZeroStepErrorMessage=function(){var R,A=(R=this.data)==null?void 0:R.zeroStepErrorMessageEntityKey,Y;A&&((Y=this.zeroStepErrorMessageEntity)==null?0:Y.value)&&this.ytdReduxBehavior.dispatch(_.HT("stringEntity",A,{key:A,value:""}))};
_.Yh.Object.defineProperties(Jx.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 R;return((R=this.photoThumbnail)==null?0:R.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 R;return!((R=this.data)==null||!R.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.descriptionInfo}}});
Jx.prototype.dataChanged=Jx.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Jx.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Jx.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Jx.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Jx.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Jx.prototype,"errorMessage",void 0);
_.C([_.S(),_.k("design:type",Object)],Jx.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",String)],Jx.prototype,"previewDataUrl",void 0);_.C([_.S(),_.k("design:type",Number)],Jx.prototype,"obakeImageSource",void 0);_.C([_.S(),_.k("design:type",Object)],Jx.prototype,"hideContainer",void 0);_.C([_.nG("#title-input"),_.k("design:type",Object)],Jx.prototype,"nameInput",void 0);_.C([_.nG("#handle-input"),_.k("design:type",Object)],Jx.prototype,"handleInput",void 0);
_.C([_.S(),_.k("design:type",Boolean)],Jx.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.C([_.S({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.hM}),_.k("design:type",Object)],Jx.prototype,"zeroStepErrorMessageEntity",void 0);_.C([_.X("data","data.isDefaultProfilePhoto","previewDataUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jx.prototype,"photoThumbnail",null);
_.C([_.X("data","data.isDefaultProfilePhoto","photoThumbnail"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jx.prototype,"userSetPhotoThumbnailUrl",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Jx.prototype,"hideProfilePhotoButtonLayer",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Jx.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.C([_.Ul("data","zeroStepErrorMessageEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Jx.prototype,"dataChanged",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.descriptionInfo","zeroStepErrorMessageEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],Jx.prototype,"description",null);_.C([_.F({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],Jx);
_.B(Jx,"ytd-channel-creation-dialog-renderer",function(){if(O5f!==void 0)return O5f;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return O5f=R},{mode:1});var swg;var yL=function(){var R=_.K.apply(this,arguments)||this;R.isLoading=!1;R.isDisabled=!1;return R};
_.H(yL,_.K);yL.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
yL.prototype.updateDisabled=function(){var R;this.isDisabled=this.isLoading||((R=this.handleInput)==null?void 0:R.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
yL.prototype.onSaveClick=function(){var R=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var A;((A=this.data)==null?void 0:A.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 Y;if((Y=R.data)==null?0:Y.nextEndpoint){var P;R.ytComponentBehavior.resolveCommand((P=R.data)==null?void 0:P.nextEndpoint)}else R.isLoading=
!1,R.closeDialog()},
onServerError:function(){R.isLoading=!1;R.handleInput.validate();var Y;R.errorMessage=(Y=R.data)==null?void 0:Y.errorMessage}}}))}};
yL.prototype.closeDialog=function(){_.OC(this.hostElement,"yt-close-popup-action",[this.is])};
yL.prototype.updateDisabled=yL.prototype.updateDisabled;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],yL.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],yL.prototype,"data",void 0);_.C([_.nG("#handle-input"),_.k("design:type",Object)],yL.prototype,"handleInput",void 0);_.C([_.vZ("isLoading"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],yL.prototype,"updateDisabled",null);
_.C([_.F({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],yL);
_.B(yL,"ytd-channel-handle-edit-dialog-renderer",function(){if(swg!==void 0)return swg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return swg=R},{mode:1});var NCf;var mq=function(){return _.K.apply(this,arguments)||this};
_.H(mq,_.K);mq.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mq.prototype,"data",void 0);_.C([_.F({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],mq);
_.B(mq,"ytd-channel-switcher-footer-renderer",function(){if(NCf!==void 0)return NCf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return NCf=R},{mode:1});var VsH;var JDG;var T6=function(){return _.K.apply(this,arguments)||this};
_.H(T6,_.K);T6.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
T6.prototype.onIronChange=T6.prototype.onIronChange;_.C([_.S(),_.k("design:type",Object)],T6.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!1}),_.k("design:type",Function)],T6.prototype,"onDontAskAgainChanged",void 0);_.C([_.nG("#checkbox"),_.k("design:type",Object)],T6.prototype,"checkbox",void 0);_.C([_.Qa("iron-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],T6.prototype,"onIronChange",null);
_.C([_.F({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],T6);
_.B(T6,"ytd-identity-prompt-footer-renderer",function(){if(JDG!==void 0)return JDG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return JDG=R},{mode:1});var QL=function(){var R=_.K.apply(this,arguments)||this;R.dontAskAgain=!1;R.showPopup=!1;R.boundDontAskAgainChanged=function(A){R.dontAskAgainChanged(A)};
R.boundOnAccountItemTap=function(A){R.onAccountItemTap(A)};
return R};
_.H(QL,_.K);_.l=QL.prototype;
_.l.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]]"}}}}}};
_.l.ready=function(){var R=this;_.Mo(this.hostElement).querySelector("#container").addEventListener("scroll",function(){R.ytRendererBehavior.markDirty()})};
_.l.dontAskAgainChanged=function(R){this.dontAskAgain=R};
_.l.onAccountItemTap=function(R){if(R){var A={};this.dontAskAgain&&(A={dont_ask_again:this.dontAskAgain});_.eI(R,A)}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.l.redirectOnlyAccount=function(R){R.sections&&R.sections.length>0&&(R=_.n(R.sections[0],_.XsG),(R==null?0:R.contents)&&(R==null?void 0:R.contents.length)<=1?(R=_.qI(window.location.href),(R==null?0:R.next)&&_.UT6(R.next)?_.eI(R.next):_.eI("/")):this.showPopup=!0)};
QL.prototype.dataChanged=QL.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],QL.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!1}),_.k("design:type",Object)],QL.prototype,"dontAskAgain",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],QL.prototype,"showPopup",void 0);_.C([_.S({reflectToAttribute:!1}),_.k("design:type",Object)],QL.prototype,"boundDontAskAgainChanged",void 0);_.C([_.S({reflectToAttribute:!1}),_.k("design:type",Object)],QL.prototype,"boundOnAccountItemTap",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],QL.prototype,"dataChanged",null);
_.C([_.F({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],QL);
_.B(QL,"ytd-channel-switcher-renderer",function(){if(VsH!==void 0)return VsH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return VsH=R},{mode:1});var yDf;var vH=function(){return _.K.apply(this,arguments)||this};
_.H(vH,_.K);_.Yh.Object.defineProperties(vH.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.C([_.S(),_.k("design:type",Object)],vH.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],vH.prototype,"steps",null);_.C([_.F({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],vH);
_.B(vH,"ytd-channel-transfer-stepper-renderer",function(){if(yDf!==void 0)return yDf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return yDf=R},{mode:1});var m8f;var gh=function(){var R=_.K.apply(this,arguments)||this;R.data=null;R.isError=!1;R.isLoading=!1;return R};
_.H(gh,_.K);_.l=gh.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.l.computeProfileName=function(R){return R?R.givenNameValue+" "+R.familyNameValue:""};
_.l.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)};
_.l.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)};
gh.prototype.onYtServiceRequestError=gh.prototype.onYtServiceRequestError;gh.prototype.onYtServiceRequestSent=gh.prototype.onYtServiceRequestSent;gh.prototype.dataChanged=gh.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],gh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],gh.prototype,"data",void 0);
_.C([_.S({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.k("design:type",String)],gh.prototype,"profileName",void 0);_.C([_.S(),_.k("design:type",Object)],gh.prototype,"isError",void 0);_.C([_.S(),_.k("design:type",Object)],gh.prototype,"isLoading",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],gh.prototype,"dataChanged",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],gh.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],gh.prototype,"onYtServiceRequestError",null);_.C([_.F({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],gh);
_.B(gh,"ytd-channel-warm-welcome-cont-renderer",function(){if(m8f!==void 0)return m8f;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return m8f=R},{mode:1});var TCo;var DC=function(){var R=_.K.apply(this,arguments)||this;R.data=null;return R};
_.H(DC,_.K);DC.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
DC.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],DC.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],DC.prototype,"data",void 0);_.C([_.F({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],DC);
_.B(DC,"ytd-channel-warm-welcome-renderer",function(){if(TCo!==void 0)return TCo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return TCo=R},{mode:1});var Qwg;var Uf=function(){return _.K.apply(this,arguments)||this};
_.H(Uf,_.K);_.Yh.Object.defineProperties(Uf.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.authorThumbnail)||{}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Uf.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Uf.prototype,"thumbnailDetails",null);_.C([_.F({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Uf);
_.B(Uf,"ytd-comment-preview-renderer",function(){if(Qwg!==void 0)return Qwg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Qwg=R},{mode:1});var vzi;var $V=function(){return _.K.apply(this,arguments)||this};
_.H($V,_.K);$V.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Yh.Object.defineProperties($V.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.submitButton}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$V.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],$V.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$V.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],$V.prototype,"submitButton",null);_.C([_.F({is:"ytd-notice-renderer",disableElementRegistration:!0})],$V);
_.B($V,"ytd-notice-renderer",function(){if(vzi!==void 0)return vzi;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return vzi=R},{mode:1});var gzQ;var Xd=function(){return _.K.apply(this,arguments)||this};
_.H(Xd,_.K);Xd.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Xd.prototype,"data",void 0);_.C([_.F({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Xd);
_.B(Xd,"ytd-preview-comment-dialog-content",function(){if(gzQ!==void 0)return gzQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return gzQ=R},{mode:1});var nz0;var Sr=function(){return _.K.apply(this,arguments)||this};
_.H(Sr,_.K);Sr.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Sr.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Sr.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Sr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Sr.prototype,"data",void 0);_.C([_.F({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Sr);
_.B(Sr,"ytd-preview-comment-dialog-renderer",function(){if(nz0!==void 0)return nz0;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return nz0=R},{mode:1});var H5i;var rDF=_.v("web_button_rework")&&_.CQ("BUTTON_REWORK")||_.v("web_button_rework_with_live"),IV=function(){var R=_.K.apply(this,arguments)||this;R.closeLabel=_.vk("CLOSE");R.selectedAmountIndex=1;R.privacyCheckboxValue=!1;R.useAmsterdamStyle=rDF;R.amountPlaceholderIndex=-1;return R};
_.H(IV,_.K);_.l=IV.prototype;_.l.onAmountClick=function(R){this.selectedAmountIndex=_.Mo(this.hostElement).querySelector("#amounts").indexForElement(R.currentTarget)};
_.l.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.OC(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.l.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.OC(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.OC(this.hostElement,"yt-close-popup-action",[this.is]);var R;(R=_.EJ())==null||R.getPlayerPromise().then(function(A){A.pauseVideo()})}};
_.l.donationCallback=function(R){R.success?(this.hostElement.hasAttribute("live-chat")&&R.response&&R.response.data&&R.response.data.actions&&_.OC(this.hostElement,"yt-live-chat-open-popup",[R.response.data.actions[0]]),_.OC(this.hostElement,"yt-close-popup-action",[this.is]),_.OC(this.hostElement,"yt-live-chat-close-buy-flow")):R.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(R.errorMessageRenderer)};
_.l.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Mo(this.hostElement).querySelector("#custom-amount-input").focus()};
_.l.updateConfirmationDialogTextWithAmount=function(R){var A=this.getConfirmDialogRuns();A&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(A),"text"],this.getFormattedAmount(R))};
_.l.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.l.getAmountPlaceholderIndex=function(R){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=R.findIndex(function(A){return A.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.l.getFormattedAmount=function(R){var A;return(new _.t0(4,((A=this.data)==null?void 0:A.currencyCode)||"")).format(R)};
_.l.isAmountValid=function(R){if(R==="")return!1;R=Number(R)*1E6;var A=this.get("minAmountMicros",this.data),Y=this.get("maxAmountMicros",this.data);return A&&R<A||Y&&R>Y?!1:!0};
_.l.setInputError=function(){this.shouldShowValidationError?_.Mo(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Mo(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.l.setInitialCheckboxValue=function(){var R;this.privacyCheckboxValue=!((R=this.data)==null||!R.privacyCheckboxInitialState)};
_.l.updateCustomAmountInputFromBinding=function(R){this.customAmountInput=R.detail.value};
_.l.updatePrivacyCheckboxValueFromBinding=function(R){this.privacyCheckboxValue=R.detail.value};
_.Yh.Object.defineProperties(IV.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var R=this,A,Y;return((A=this.data)==null?void 0:(Y=A.suggestedAmounts)==null?void 0:Y.map(function(P,E){return{buttonRenderer:{style:R.selectedAmountIndex===E?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:P.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 R;return!((R=this.data)==null||!R.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 R=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(R&&this.amountMicros!==null)return Object.assign({},R,{ypcGetCartEndpoint:Object.assign({},R.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 R=this.get("confirmLargeAmount",this.data);if(R&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),R}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var R=this.get("donateButton.buttonRenderer",this.data);if(R)return Object.assign({},R,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
IV.prototype.setInitialCheckboxValue=IV.prototype.setInitialCheckboxValue;IV.prototype.setInputError=IV.prototype.setInputError;IV.prototype.setFocusOnCustomAmountInput=IV.prototype.setFocusOnCustomAmountInput;_.C([_.U(plg),_.k("design:type",Object)],IV.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],IV.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],IV.prototype,"closeLabel",void 0);_.C([_.S(),_.k("design:type",Object)],IV.prototype,"selectedAmountIndex",void 0);_.C([_.S(),_.k("design:type",String)],IV.prototype,"customAmountInput",void 0);_.C([_.S(),_.k("design:type",Object)],IV.prototype,"privacyCheckboxValue",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],IV.prototype,"useAmsterdamStyle",void 0);_.C([_.vZ("customAmount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"setFocusOnCustomAmountInput",null);_.C([_.X("data","selectedAmountIndex"),_.k("design:type",Array),_.k("design:paramtypes",[])],IV.prototype,"suggestedAmountButtons",null);
_.C([_.X("data","selectedAmountIndex"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IV.prototype,"isCustomAmountSelected",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IV.prototype,"showPrivacyCheckbox",null);_.C([_.X("data","selectedAmountIndex","customAmount"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"amountMicros",null);
_.C([_.X("isCustomAmountSelected","customAmountInput"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"customAmount",null);_.C([_.X("customAmount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IV.prototype,"shouldShowValidationError",null);_.C([_.X("customAmount"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],IV.prototype,"isDonateButtonEnabled",null);
_.C([_.X("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"donateCommand",null);_.C([_.X("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"donateCommandWithConfirmation",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"largeDonationThreshold",null);
_.C([_.X("customAmount","donateCommand","amountMicros"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"confirmLargeAmountCommand",null);_.C([_.X("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.k("design:type",Object),_.k("design:paramtypes",[])],IV.prototype,"donateButtonRenderer",null);_.C([_.vZ("shouldShowValidationError"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"setInputError",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],IV.prototype,"setInitialCheckboxValue",null);_.C([_.F({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],IV);
_.B(IV,"ytd-donation-amount-picker-renderer",function(){if(H5i!==void 0)return H5i;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" aria-label="[[getSimpleString(data.pickerTitle)]]" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" label="[[closeLabel]]" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignTitle)]]</div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignSubtitle)]]</div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.campaignDescription)]]</div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer"> </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return H5i=R},{mode:1});var D8n;var Kz=function(){return _.K.apply(this,arguments)||this};
_.H(Kz,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Kz.prototype,"ytComponentBehavior",void 0);_.C([_.S({}),_.k("design:type",Object)],Kz.prototype,"data",void 0);_.C([_.F({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],Kz);
_.B(Kz,"ytd-donation-post-transaction-content",function(){if(D8n!==void 0)return D8n;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return D8n=R},{mode:1});var U8F;var WH=function(){return _.K.apply(this,arguments)||this};
_.H(WH,_.K);WH.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],WH.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],WH.prototype,"ytRendererBehavior",void 0);_.C([_.S({}),_.k("design:type",Object)],WH.prototype,"data",void 0);_.C([_.F({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],WH);
_.B(WH,"ytd-donation-post-transaction-renderer",function(){if(U8F!==void 0)return U8F;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return U8F=R},{mode:1});var $8i;var XRm;var jr=function(){return _.K.apply(this,arguments)||this};
_.H(jr,_.K);jr.prototype.computeIsStreamingProvider=function(R){return!!R.isStreamingShelf};
jr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],jr.prototype,"data",void 0);_.C([_.S({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],jr.prototype,"isStreamingProvider",void 0);
_.C([_.F({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],jr);
_.B(jr,"ytd-media-provider-renderer",function(){if(XRm!==void 0)return XRm;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return XRm=R},{mode:1});var S$Y;var bA=function(){return _.K.apply(this,arguments)||this};
_.H(bA,_.K);bA.prototype.observeLightsourcePalette=function(){var R,A=(R=this.data)==null?void 0:R.vibrantsourceColorPaletteData;A&&_.W1(this.hostElement,A)};
bA.prototype.observeLightsourcePalette=bA.prototype.observeLightsourcePalette;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bA.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],bA.prototype,"data",void 0);
_.C([_.vZ("data.vibrantsourceColorPaletteData"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bA.prototype,"observeLightsourcePalette",null);_.C([_.F({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],bA);
_.B(bA,"ytd-streaming-pop-up-dialog",function(){if(S$Y!==void 0)return S$Y;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return S$Y=R},{mode:1});var fz=function(){return _.K.apply(this,arguments)||this};
_.H(fz,_.K);fz.prototype.onPopupOpened_=function(){var R;((R=this.data)==null?0:R.serviceEndpoint)&&_.is().resolve(_.ls).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
fz.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
fz.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"}}}}};
fz.prototype.onPopupOpened_=fz.prototype.onPopupOpened_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fz.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],fz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.cA),_.k("design:type",Object)],fz.prototype,"ytContinuationHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fz.prototype,"data",void 0);
_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fz.prototype,"onPopupOpened_",null);_.C([_.F({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],fz);
_.B(fz,"ytd-brandconnect-popup-renderer",function(){if($8i!==void 0)return $8i;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $8i=R},{mode:1});var IBg;var pz=function(){return _.K.apply(this,arguments)||this};
_.H(pz,_.K);_.l=pz.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){for(var R=0;R<this.getOptionRenderers().length;R++)this.notifyPath("data.options."+R+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+R+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.l.updateSubmitButton=function(R){this.set("data.submitButton.buttonRenderer.isDisabled",!R)};
_.l.computeAlt=function(R){return _.R4(R)};
_.l.onDismissTap=function(){_.OC(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.getOptionRenderers=function(R){return(R=R||this.data)&&R.options?R.options.reduce(function(A,Y){Y.checkboxSurveyOptionRenderer&&A.push(Y.checkboxSurveyOptionRenderer);return A},[]):[]};
_.l.onOptionChange=function(R){var A=this,Y=!1;if(R.detail.checked)for(var P=this.getOptionRenderers().find(function(M){return M.value===R.detail.value}),E=this.getOptionRenderers(),z=0;z<E.length;z++){var c=E[z];
this.notifyPath("data.options."+z+".checkboxSurveyOptionRenderer.checked");c.checked&&((P==null?0:P.isExclusiveOption)?!c.isExclusiveOption:c.isExclusiveOption)?this.set("data.options."+z+".checkboxSurveyOptionRenderer.checked",!1):c.checked&&(Y=!0)}else Y=this.getOptionRenderers().some(function(M,N){A.notifyPath("data.options."+N+".checkboxSurveyOptionRenderer.checked");return M.checked});
this.updateSubmitButton(Y)};
_.l.onSubmitTap=function(){var R=this.getOptionRenderers().filter(function(z){return z.checked});
if(R.length!==0){var A=R.map(function(z){return z.responseEndpoint});
R=[];for(var Y=1;Y<A.length;Y++){var P=void 0,E=(P=_.n(A[Y],_.UR))==null?void 0:P.feedbackToken;E&&R.push(E)}A=[A[0]];R.length&&A.push({extra_feedback_tokens:R});_.sC(this.hostElement,A);_.OC(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);R=this.data&&this.data.submitActions||[];if(_.v("kevlar_command_handler_migration_killswitch"))_.NT(this.hostElement,R,this.hostElement);else for(R=_.x(R),A=R.next();!A.done;A=R.next())this.ytComponentBehavior.resolveCommand(A.value)}};
pz.prototype.onOptionChange=pz.prototype.onOptionChange;pz.prototype.dataChanged=pz.prototype.dataChanged;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],pz.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],pz.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.C([_.U(AjQ),_.k("design:type",Object)],pz.prototype,"ytdHatsSurveyBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pz.prototype,"data",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pz.prototype,"dataChanged",null);
_.C([_.Qa("ytd-checkbox-survey-option-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],pz.prototype,"onOptionChange",null);_.C([_.F({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],pz);
_.B(pz,"ytd-checkbox-survey-renderer",function(){if(IBg!==void 0)return IBg;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return IBg=R},{mode:1});var Kgi;var Wgn;var Fd=function(){return _.K.apply(this,arguments)||this};
_.H(Fd,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Fd.prototype,"ytRendererBehavior",void 0);_.C([_.U(RGG),_.k("design:type",Object)],Fd.prototype,"ytdDismissalReasonBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Fd.prototype,"data",void 0);_.C([_.F({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Fd);
_.B(Fd,"ytd-dismissal-reason-text-renderer",function(){if(Wgn!==void 0)return Wgn;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Wgn=R},{mode:1});var jwN;var BH=function(){return _.K.apply(this,arguments)||this};
_.H(BH,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],BH.prototype,"ytRendererBehavior",void 0);_.C([_.U(RGG),_.k("design:type",Object)],BH.prototype,"ytdDismissalReasonBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],BH.prototype,"data",void 0);_.C([_.F({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],BH);
_.B(BH,"ytd-dismissal-reason-video-renderer",function(){if(jwN!==void 0)return jwN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return jwN=R},{mode:1});var aV=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(aV,_.K);_.l=aV.prototype;_.l.created=function(){this.selectedFeedbackTokens=new n3};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.l.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.l.onDismissalReasonSelected=function(R,A){_.xo(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(A);this.hasReasonsSelected=!0};
_.l.onDismissalReasonDeselected=function(R,A){_.xo(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(A);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.l.onCancelTap=function(){_.OC(this.hostElement,"yt-close-popup-action")};
_.l.onSubmitTap=function(){var R=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(R={feedback_tokens:R},_.is().resolve(_.ls).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},R,{element:this.hostElement})}));_.OC(this.hostElement,"yt-close-popup-action")};
aV.prototype.onDismissalReasonDeselected=aV.prototype.onDismissalReasonDeselected;aV.prototype.onDismissalReasonSelected=aV.prototype.onDismissalReasonSelected;aV.prototype.dataChanged=aV.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],aV.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Boolean)],aV.prototype,"hasReasonsSelected",void 0);_.C([_.S(),_.k("design:type",n3)],aV.prototype,"selectedFeedbackTokens",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],aV.prototype,"darkerDarkTheme",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],aV.prototype,"dataChanged",null);
_.C([_.Qa("yt-dismissal-reason-selected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],aV.prototype,"onDismissalReasonSelected",null);_.C([_.Qa("yt-dismissal-reason-deselected"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,String]),_.k("design:returntype")],aV.prototype,"onDismissalReasonDeselected",null);_.C([_.F({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],aV);
_.B(aV,"ytd-dismissal-follow-up-renderer",function(){if(Kgi!==void 0)return Kgi;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Kgi=R},{mode:1});var b5f;var Cz=function(){return _.K.apply(this,arguments)||this};
_.H(Cz,_.K);_.l=Cz.prototype;_.l.onCheckedChange=function(){this.multiselect||_.xo(this.hostElement,"yt-feedback-single-select-changed");_.Mo(this.hostElement).querySelector("#freeform").focus();_.xo(this.hostElement,"yt-refit")};
_.l.showTextBox=function(R,A){return R&&A};
_.l.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))};
_.l.updateDataCheckedFromBinding=function(R){this.set("data.checked",R.detail.value)};
_.l.updateDataResultTextFromBinding=function(R){this.set("data.resultText",R.detail.value)};
Cz.prototype.dataChanged=Cz.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Cz.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Cz.prototype,"multiselect",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Cz.prototype,"dataChanged",null);
_.C([_.F({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],Cz);
_.B(Cz,"ytd-feedback-option-renderer",function(){if(b5f!==void 0)return b5f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return b5f=R},{mode:1});var fBG;var hx=function(){return _.K.apply(this,arguments)||this};
_.H(hx,_.K);hx.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
hx.prototype.onSingleSelectCheckedChanged=function(R){R=_.Yw(R);for(var A=0;A<this.data.options.length;A++)if(R.data!==_.n(this.data.options[A],L4F)){var Y="data.options."+A+".feedbackOptionRenderer.checked";this.notifyPath(Y);this.set(Y,!1)}};
hx.prototype.onSingleSelectCheckedChanged=hx.prototype.onSingleSelectCheckedChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hx.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hx.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hx.prototype,"data",void 0);
_.C([_.Qa("yt-feedback-single-select-changed"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],hx.prototype,"onSingleSelectCheckedChanged",null);_.C([_.F({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],hx);
_.B(hx,"ytd-feedback-question-renderer",function(){if(fBG!==void 0)return fBG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fBG=R},{mode:1});var pRf;var oV=function(){return _.K.apply(this,arguments)||this};
_.H(oV,_.K);oV.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
oV.prototype.getSelectedFeedbackResults=function(){for(var R={},A=0;A<this.data.questions.length;A++)for(var Y=_.n(this.data.questions[A],qhm),P=0;P<Y.options.length;P++){var E=_.n(Y.options[P],L4F);E&&E.checked&&(R[E.optionKey]=E.resultText)}return R};
oV.prototype.onKeyUp=function(){var R=this;_.JM(_.fn,function(){_.xo(R.hostElement,"yt-refit")});
_.fn.start()};
oV.prototype.submitSurvey=function(){var R=this.getSelectedFeedbackResults();Object.keys(R).length>0&&this.data.submitFeedbackEndpoint&&(R={survey_results:R,is_feedback_token_unencrypted:!0},_.is().resolve(_.ls).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},R,{element:this.hostElement})}))};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],oV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],oV.prototype,"data",void 0);_.C([_.F({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],oV);
_.B(oV,"ytd-feedback-survey-renderer",function(){if(pRf!==void 0)return pRf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return pRf=R},{mode:1});var Fg0;var BCj;var kV=function(){return _.K.apply(this,arguments)||this};
_.H(kV,_.K);kV.prototype.computeAlt=function(R){return _.R4(R)};
kV.prototype.submitResponse=function(){var R,A;(R=this.data)!=null&&R.feedbackToken&&((A=this.data)==null?void 0:A.nextStageIndex)!==void 0&&(_.MT(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.MT(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
kV.prototype.onClick=function(){this.submitResponse()};
kV.prototype.onClick=kV.prototype.onClick;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kV.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kV.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],kV.prototype,"vertical",void 0);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kV.prototype,"onClick",null);
_.C([_.F({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],kV);
_.B(kV,"ytd-single-select-answer-option-renderer",function(){if(BCj!==void 0)return BCj;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return BCj=R},{mode:1});var aBm;var G6=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return R};
_.H(G6,_.K);G6.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
G6.prototype.dataChanged=function(){var R,A;this.vertical=((A=(R=this.data)==null?void 0:R.answerOrientation)!=null?A:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
G6.prototype.submitFeedback=function(R){var A;((A=this.data)==null?0:A.responseEndpoint)&&R&&_.sC(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[R]}])};
G6.prototype.dataChanged=G6.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],G6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],G6.prototype,"eventForwardingBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],G6.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],G6.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],G6.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],G6.prototype,"vertical",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],G6.prototype,"darkerDarkTheme",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],G6.prototype,"dataChanged",null);_.C([_.F({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],G6);
_.B(G6,"ytd-single-select-question-renderer",function(){if(aBm!==void 0)return aBm;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return aBm=R},{mode:1});var ZC=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return R};
_.H(ZC,_.K);_.l=ZC.prototype;_.l.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"}}}};
_.l.dataChanged=function(){this.jumpToStage(0)};
_.l.jumpToStage=function(R){var A,Y;if((A=this.data)==null?0:(Y=A.stages)==null?0:Y[R])this.currentStage=this.data.stages[R],this.refitAfterRender()};
_.l.computeAlt=function(R){return _.R4(R)};
_.l.computeSimpleMessage=function(R){var A;return(A=_.n(R,AB0))==null?void 0:A.messageText};
_.l.computeHideDismiss=function(R){var A;return(A=_.n(R,$UQ))==null?void 0:A.hideParentDismissButton};
_.l.onDismissTap=function(){_.OC(this.hostElement,"yt-close-popup-action");_.n(this.currentStage,AB0)||this.data.dismissalEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.l.refitAfterRender=function(){var R=this;_.RK(this,function(){_.xo(R.hostElement,"yt-refit")})};
ZC.prototype.dataChanged=ZC.prototype.dataChanged;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],ZC.prototype,"eventForwardingBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ZC.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ZC.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ZC.prototype,"ytActionHandlerBehavior",void 0);
_.C([_.U(AjQ),_.k("design:type",Object)],ZC.prototype,"ytdHatsSurveyBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ZC.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],ZC.prototype,"currentStage",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZC.prototype,"dataChanged",null);_.C([_.F({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],ZC);
_.B(ZC,"ytd-multi-stage-survey-renderer",function(){if(Fg0!==void 0)return Fg0;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Fg0=R},{mode:1});var CW9;var tx=function(){return _.K.apply(this,arguments)||this};
_.H(tx,_.K);tx.prototype.computeAlt=function(R){return _.R4(R)};
tx.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.is().resolve(_.ls).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.OC(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.EhQ(!1)))};
tx.prototype.onTap=function(){this.vertical&&this.submitResponse()};
tx.prototype.onTap=tx.prototype.onTap;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tx.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],tx.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tx.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tx.prototype,"vertical",void 0);
_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tx.prototype,"onTap",null);_.C([_.F({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],tx);
_.B(tx,"ytd-single-option-survey-option-renderer",function(){if(CW9!==void 0)return CW9;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return CW9=R},{mode:1});var h6i;var wh=function(){return _.K.apply(this,arguments)||this};
_.H(wh,_.K);_.l=wh.prototype;_.l.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){var R,A;this.vertical=(((R=this.data)==null?void 0:(A=R.surveyOrientation)==null?void 0:A.type)||"HORIZONTAL")==="VERTICAL"};
_.l.computeAlt=function(R){return _.R4(R)};
_.l.onDismissTap=function(){_.OC(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.is().resolve(_.ls).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.EhQ(!1))};
wh.prototype.dataChanged=wh.prototype.dataChanged;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],wh.prototype,"eventForwardingBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wh.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(AjQ),_.k("design:type",Object)],wh.prototype,"ytdHatsSurveyBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],wh.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wh.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],wh.prototype,"vertical",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],wh.prototype,"dataChanged",null);_.C([_.F({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],wh);
_.B(wh,"ytd-single-option-survey-renderer",function(){if(h6i!==void 0)return h6i;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return h6i=R},{mode:1});var ozQ;var uA=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(uA,_.K);uA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uA.prototype.onDismissTap=function(){_.OC(this.hostElement,"yt-close-popup-action")};
uA.prototype.onNavigate=function(){_.OC(this.hostElement,"yt-close-popup-action")};
uA.prototype.onNavigate=uA.prototype.onNavigate;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],uA.prototype,"ytEventForwardingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uA.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uA.prototype,"darkerDarkTheme",void 0);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],uA.prototype,"onNavigate",null);_.C([_.F({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],uA);
_.B(uA,"ytd-survey-follow-up-renderer",function(){if(ozQ!==void 0)return ozQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ozQ=R},{mode:1});var kl0;var Glf;var Z5H;var er=function(){var R=_.K.apply(this,arguments)||this;R.polymer2="Element"in Polymer;return R};
_.H(er,_.K);_.l=er.prototype;_.l.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.l.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.l.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.l.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("minutes-changed",this.minutes))};
_.l.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("seconds-changed",this.seconds))};
_.l.updateMinutesFromBinding=function(R){this.minutes=R.detail.value};
_.l.updateSecondsFromBinding=function(R){this.seconds=R.detail.value};
er.prototype.secondsChangedForBinding=er.prototype.secondsChangedForBinding;er.prototype.minutesChangedForBinding=er.prototype.minutesChangedForBinding;er.prototype.secondsChanged=er.prototype.secondsChanged;_.C([_.S(),_.k("design:type",String)],er.prototype,"minutes",void 0);_.C([_.S(),_.k("design:type",String)],er.prototype,"seconds",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],er.prototype,"polymer2",void 0);
_.C([_.nG("#seconds"),_.k("design:type",Object)],er.prototype,"secondsEl",void 0);_.C([_.vZ("seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],er.prototype,"secondsChanged",null);_.C([_.vZ("minutes"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],er.prototype,"minutesChangedForBinding",null);
_.C([_.vZ("seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],er.prototype,"secondsChangedForBinding",null);_.C([_.CG({is:"yt-timestamp-input",disableElementRegistration:!0})],er);
_.B(er,"yt-timestamp-input",function(){if(Z5H===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Glf===void 0&&(Glf=document.createElement("template"));var P=Glf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Z5H=R}R=Z5H;return R},{mode:2});var qx=function(){return _.K.apply(this,arguments)||this};
_.H(qx,_.K);_.l=qx.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20316_scroller.dialogElement=this.hostElement.parentNode};
_.l.dataChanged=function(){var R=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.zI().getPlayerPromise().then(function(A){A=A.getCurrentTime();R.minutes=Math.floor(A/60).toString();R.seconds=(Math.floor(A)%60).toString()})};
_.l.onTapSubmit=function(R){R.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(R={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(R.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(R.minutes=this.minutes,R.seconds=this.seconds),_.is().resolve(_.ls).resolveCommand(this.serviceEndpoint,{form:Object.assign({},R,{element:this.hostElement})}))};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.l.onYtServiceRequestCompleted=function(R,A){A=A.actions;if(Array.isArray(A))for(var Y=0,P=A.length;Y<P;Y++)_.n(A[Y],_.Fe)&&(R.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(A[Y]))};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.l.toggleSubmitButton=function(R){this.set("submitButton.isDisabled",!R)};
_.l.handleInput=function(){var R=this.issueType,A=this.affiliation,Y=this.minutes,P=this.seconds;Y=!this.showTimestamp||!!Y&&!!P;this.toggleSubmitButton(!!this.descriptionText&&!!R&&!!A&&Y)};
_.l.computeServiceEndpoint=function(R){return this.get("submitButton.buttonRenderer.serviceEndpoint",R)};
_.l.computeSubmitButton=function(R){(R=this.get("submitButton.buttonRenderer",R))&&(R=Object.assign({},R,{serviceEndpoint:void 0}));return R};
_.l.computeShowTimestamp=function(R){return!!R};
_.l.onValueChangedForIssueType=function(R){this.issueType=R.detail.value};
_.l.onValueChangedForAffiliation=function(R){this.affiliation=R.detail.value};
_.l.updateDescriptionTextFromBinding=function(R){this.descriptionText=R.detail.value};
_.l.updateFullNameTextFromBinding=function(R){this.fullNameText=R.detail.value};
_.l.updateMinutesFromBinding=function(R){this.minutes=R.detail.value};
_.l.updateSecondsFromBinding=function(R){this.seconds=R.detail.value};
qx.prototype.handleInput=qx.prototype.handleInput;qx.prototype.onYtServiceRequestError=qx.prototype.onYtServiceRequestError;qx.prototype.onYtServiceRequestCompleted=qx.prototype.onYtServiceRequestCompleted;qx.prototype.onYtServiceRequestSent=qx.prototype.onYtServiceRequestSent;qx.prototype.dataChanged=qx.prototype.dataChanged;_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],qx.prototype,"ytOpenPopupBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qx.prototype,"ytRendererBehavior",void 0);_.C([_.nG("#scroller"),_.k("design:type",Object)],qx.prototype,"JSC$20316_scroller",void 0);_.C([_.nG("#description"),_.k("design:type",HTMLInputElement)],qx.prototype,"description",void 0);_.C([_.nG("#full-name"),_.k("design:type",Object)],qx.prototype,"fullName",void 0);_.C([_.S(),_.k("design:type",Object)],qx.prototype,"data",void 0);
_.C([_.S({computed:"computeShowTimestamp(data.timestampLabel)"}),_.k("design:type",Boolean)],qx.prototype,"showTimestamp",void 0);_.C([_.S({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.k("design:type",Object)],qx.prototype,"serviceEndpoint",void 0);_.C([_.S({computed:"computeSubmitButton(data)"}),_.k("design:type",Object)],qx.prototype,"submitButton",void 0);_.C([_.S(),_.k("design:type",String)],qx.prototype,"descriptionText",void 0);
_.C([_.S(),_.k("design:type",Number)],qx.prototype,"issueType",void 0);_.C([_.S(),_.k("design:type",Number)],qx.prototype,"affiliation",void 0);_.C([_.S(),_.k("design:type",String)],qx.prototype,"fullNameText",void 0);_.C([_.S(),_.k("design:type",String)],qx.prototype,"minutes",void 0);_.C([_.S(),_.k("design:type",String)],qx.prototype,"seconds",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qx.prototype,"dataChanged",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],qx.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],qx.prototype,"onYtServiceRequestCompleted",null);
_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],qx.prototype,"onYtServiceRequestError",null);_.C([_.vZ("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qx.prototype,"handleInput",null);_.C([_.F({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],qx);
_.B(qx,"ytd-legal-report-details-form-renderer",function(){if(kl0!==void 0)return kl0;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return kl0=R},{mode:1});var tsQ;var Lz=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return R};
_.H(Lz,_.K);Lz.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
Lz.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var R=this.formRenderer.getForm();R&&this.data.submitEndpoint&&(_.is().resolve(_.ls).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},R,{element:this.hostElement})}),_.OC(this.hostElement,"yt-close-popup-action"))}};
Lz.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.OC(this.hostElement,"yt-close-popup-action"))};
Lz.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
Lz.prototype.onPopupClosed=Lz.prototype.onPopupClosed;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],Lz.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Lz.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);
_.C([_.nG("yt-form-renderer"),_.k("design:type",Object)],Lz.prototype,"formRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],Lz.prototype,"data",void 0);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lz.prototype,"onPopupClosed",null);_.C([_.F({is:"ytd-form-popup-content",disableElementRegistration:!0})],Lz);
_.B(Lz,"ytd-form-popup-content",function(){if(tsQ!==void 0)return tsQ;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return tsQ=R},{mode:1});var wRQ;var dh=function(){return _.K.apply(this,arguments)||this};
_.H(dh,_.K);dh.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
dh.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dh.prototype.onPopupOpened=function(){_.xo(this.hostElement,"yt-invalidate-popup-tabbables")};
dh.prototype.onYtServiceRequestCompleted=function(R,A){A.data&&A.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.xo(this.hostElement,"yt-invalidate-popup-tabbables"))};
dh.prototype.onYtServiceRequestCompleted=dh.prototype.onYtServiceRequestCompleted;dh.prototype.onPopupOpened=dh.prototype.onPopupOpened;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],dh.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],dh.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dh.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],dh.prototype,"data",void 0);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],dh.prototype,"onPopupOpened",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],dh.prototype,"onYtServiceRequestCompleted",null);_.C([_.F({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],dh);
_.B(dh,"ytd-form-popup-renderer",function(){if(wRQ!==void 0)return wRQ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return wRQ=R},{mode:1});var uoF;var R3=function(){var R=_.K.apply(this,arguments)||this;R.isLoading=!1;return R};
_.H(R3,_.K);_.l=R3.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");THj(this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.isLoading=!0};
_.l.onYtServiceRequestCompleted=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.l.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.NT(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.l.closePopupHandler=function(){this.fireOnCloseActions()};
_.l.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var R=this.get("data.headerImage.thumbnails");R&&(R=_.MH(R,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+R+")")}};
_.l.onYtNavigate=function(R){(R=_.Yw(R))&&R.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
R3.prototype.onYtNavigate=R3.prototype.onYtNavigate;R3.prototype.onHeaderImageChanged=R3.prototype.onHeaderImageChanged;R3.prototype.closePopupHandler=R3.prototype.closePopupHandler;R3.prototype.onYtServiceRequestCompleted=R3.prototype.onYtServiceRequestCompleted;R3.prototype.onYtServiceRequestSent=R3.prototype.onYtServiceRequestSent;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],R3.prototype,"ytEventForwardingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],R3.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],R3.prototype,"isLoading",void 0);_.C([_.nG("#header"),_.k("design:type",HTMLDivElement)],R3.prototype,"header",void 0);_.C([_.nG("#confirm-button"),_.k("design:type",_.Gu)],R3.prototype,"confirmButton",void 0);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],R3.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],R3.prototype,"onYtServiceRequestCompleted",null);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],R3.prototype,"closePopupHandler",null);_.C([_.vZ("data.headerImage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R3.prototype,"onHeaderImageChanged",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],R3.prototype,"onYtNavigate",null);
_.C([_.F({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],R3);
_.B(R3,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(uoF!==void 0)return uoF;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return uoF=R},{mode:1});var e6g;var AW=function(){var R=_.K.apply(this,arguments)||this;R.isLoading=!1;return R};
_.H(AW,_.K);_.l=AW.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);THj(this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.l.onYtServiceRequestError=function(R){_.Zk(this.hostElement,R.detail.error.message)};
_.l.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.l.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.OC(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.l.onDataChanged=function(){this.isLoading=!1;var R=this.get("data.headerImage.thumbnails");R&&(R=_.MH(R,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+R+")");R=_.F9();var A=_.pO(),Y=this.get("data.trackingParams");Y&&A&&R&&_.ZM(R,A,_.S5(Y))};
_.Yh.Object.defineProperties(AW.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
AW.prototype.onDataChanged=AW.prototype.onDataChanged;AW.prototype.onDomChange=AW.prototype.onDomChange;AW.prototype.onYtServiceRequestError=AW.prototype.onYtServiceRequestError;AW.prototype.onYtServiceRequestCompleted=AW.prototype.onYtServiceRequestCompleted;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],AW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],AW.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],AW.prototype,"isLoading",void 0);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],AW.prototype,"hasDescription",null);_.C([_.nG("tp-yt-paper-dialog-scrollable"),_.k("design:type",Object)],AW.prototype,"scrollable",void 0);_.C([_.nG("#header"),_.k("design:type",HTMLElement)],AW.prototype,"header",void 0);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],AW.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],AW.prototype,"onYtServiceRequestError",null);
_.C([_.Qa("dom-change"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],AW.prototype,"onDomChange",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AW.prototype,"onDataChanged",null);_.C([_.F({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],AW);
_.B(AW,"ytd-gaming-account-link-setting-renderer",function(){if(e6g!==void 0)return e6g;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return e6g=R},{mode:1});var q$n;var LgW;var Yd=function(){var R=_.K.apply(this,arguments)||this;R.isHeader=!1;R.getEndpointForm=function(){return q5j(R.data)};
return R};
_.H(Yd,_.K);_.l=Yd.prototype;_.l.triggerHintActions=function(){var R=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var A=_.MT(R.hostElement,"yt-get-opened-popups-action");!(A&&A.length===1?A[0]:[]).some(function(Y){Y=Y.openPopupAction.popupType;return Y==="SURVEY"||Y==="MEALBAR"||Y==="HINT"})&&R.data.hintActions&&R.guideOpened&&(_.NT(R.hostElement,R.data.hintActions,R.hostElement),R.data.hintActions=void 0)})};
_.l.getBadgeIconType=function(R){return R&&R.liveBroadcasting?"live":null};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(R){if(this.data.serviceEndpoint){var A;_.v("shorts_controller_retrieve_seedless_sequence_v2")&&((A=_.n(this.data.serviceEndpoint,_.SI))==null?void 0:A.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):ewf(this.data.serviceEndpoint,this);R.preventDefault()}else this.data.navigationEndpoint&&!_.RP(_.Ah(R),this.hostElement,["A".toString()])&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.l.computeActive=function(R,A){if(!R)return!1;var Y=R.navigationEndpoint;R=R.serviceEndpoint;if(!Y&&!R||!A)return!1;if(Y){R=(R=_.ra(A))&&["subscriptions","filteredsubscriptions"].includes(R);if(_.n(Y,_.Ds)&&_.n(A,_.Ds)&&!R){var P=_.n(Y,_.Ds).browseId;A=_.n(A,_.Ds).browseId;return P!==void 0&&A!==void 0&&(P===A||P==="VLWL"&&A==="FEwatch_later"||P==="FEwatch_later"&&A==="VLWL")}var E;Y=(E=_.n(Y.commandMetadata,_.Ti))==null?void 0:E.url;A=(P=_.n(A.commandMetadata,_.Ti))==null?void 0:P.url;return!(!Y||
!A||Y!==A&&Y!==_.T3(A))}return this.isActiveShortsTab(R,A)};
_.l.isActiveShortsTab=function(R,A){A=!!_.n(A,_.SI)||!!_.n(A,_.Ld);return(!!_.n(R,_.SI)||!!_.n(R,_.Ld))&&A};
_.l.computeIsPrimary=function(R){return!!R};
_.Yh.Object.defineProperties(Yd.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 R=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&R)return R}}});
Yd.prototype.onTap=Yd.prototype.onTap;Yd.prototype.onUp=Yd.prototype.onUp;Yd.prototype.onDown=Yd.prototype.onDown;Yd.prototype.triggerHintActions=Yd.prototype.triggerHintActions;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Yd.prototype,"componentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Yd.prototype,"rendererBehavior",void 0);_.C([_.U(_.QY.YtTaskEmitterBehavior),_.k("design:type",Object)],Yd.prototype,"taskEmitterBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],Yd.prototype,"activeEndpoint",void 0);_.C([_.S(),_.k("design:type",Object)],Yd.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],Yd.prototype,"guideOpened",void 0);_.C([_.S(),_.k("design:type",String)],Yd.prototype,"type",void 0);_.C([_.nG("yt-interaction"),_.k("design:type",Object)],Yd.prototype,"interaction",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Yd.prototype,"isHeader",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data","activeEndpoint"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yd.prototype,"active",null);_.C([_.S({reflectToAttribute:!0}),_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Yd.prototype,"isPrimary",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.count","data.presentationStyle","data.badges.*"),_.k("design:type",String),_.k("design:paramtypes",[])],Yd.prototype,"lineEndStyle",null);
_.C([_.X("lineEndStyle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Yd.prototype,"ariaLabel",null);_.C([_.vZ("data.hintActions","guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yd.prototype,"triggerHintActions",null);_.C([_.Qa("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yd.prototype,"onDown",null);
_.C([_.Qa("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Yd.prototype,"onUp",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Yd.prototype,"onTap",null);_.C([_.F({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Yd);
_.B(Yd,"ytd-guide-entry-renderer",function(){if(LgW!==void 0)return LgW;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return LgW=R},{mode:1});var P4=function(){var R=_.K.apply(this,arguments)||this;R.userToggled=!1;return R};
_.H(P4,_.K);_.l=P4.prototype;_.l.getItemsPath=function(){return"data.expandableItems"};
_.l.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.l.onExpanderItemTapped=function(R){var A=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.v("kevlar_guide_expandable_items_killswitch")&&_.RK(this,function(){_.Ln(A.expandableItems)});
R.preventDefault()};
_.l.onCollapserItemTapped=function(R){var A=this;this._setExpanded(!1);this.userToggled=!0;R.preventDefault();this.expandableItems&&!_.v("kevlar_guide_collapsible_items_killswitch")&&_.RK(this,function(){_.qz(A.hostElement)})};
_.l.observeActiveEndpoint=function(){for(var R=this.activeEndpoint,A=this.data,Y=this.expandableItems.children,P=0,E=Y.length;P<E;P++)Y[P].activeEndpoint=R;A&&A.autoExpandCommand&&R&&!this.userToggled&&(Y=this.data.autoExpandCommand,A=!(!_.n(Y,_.Ds)||!_.n(R,_.Ds)||_.n(Y,_.Ds).browseId!==_.n(R,_.Ds).browseId),R=this.get("commandMetadata.webCommandMetadata.url",R),Y=this.get("commandMetadata.webCommandMetadata.url",Y),A=A||!!(R&&Y&&R.includes(Y)),this._setExpanded(A),A&&this.ytLazyListBehavior.fillRemainingListItems())};
P4.prototype.observeActiveEndpoint=P4.prototype.observeActiveEndpoint;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],P4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],P4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],P4.prototype,"ytLazyListBehavior",void 0);_.C([_.nG("#expandable-items"),_.k("design:type",HTMLElement)],P4.prototype,"expandableItems",void 0);
_.C([_.S(),_.k("design:type",Object)],P4.prototype,"data",void 0);_.C([_.S({readOnly:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],P4.prototype,"expanded",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],P4.prototype,"initialCount",void 0);_.C([_.S(),_.k("design:type",Object)],P4.prototype,"activeEndpoint",void 0);_.C([_.vZ("data","activeEndpoint","canShowMore"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],P4.prototype,"observeActiveEndpoint",null);
_.C([_.F({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],P4);
_.B(P4,"ytd-guide-collapsible-entry-renderer",function(){if(q$n!==void 0)return q$n;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-guide-entry-renderer id="expander-item" aria-expanded="[[expanded]]" data="[[data.expanderItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onExpanderItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n</ytd-guide-entry-renderer>\n<div id="expanded" class="style-scope ytd-guide-collapsible-entry-renderer">\n  <div id="expandable-items" class="style-scope ytd-guide-collapsible-entry-renderer"></div>\n  <ytd-guide-entry-renderer id="collapser-item" aria-expanded="[[expanded]]" data="[[data.collapserItem.guideEntryRenderer]]" detail="[[isDetail]]" role="button" on-click="onCollapserItemTapped" class="style-scope ytd-guide-collapsible-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return q$n=R},{mode:_.Nf("kevlar_poly_si_batch_j079")?1:2});var d89;var RtY;var En=function(){var R=_.K.apply(this,arguments)||this;R.allVideosCount=0;R.renderGuideEntry=!1;return R};
_.H(En,_.K);En.prototype.observeRenderEntry=function(){var R;this.renderGuideEntry=!((R=this.data)==null||!R.alwaysShow)||!!this.allVideosCount};
En.prototype.observeRenderEntry=En.prototype.observeRenderEntry;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],En.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],En.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],En.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],En.prototype,"activeEndpoint",void 0);_.C([_.S({selector:_.xak}),_.k("design:type",Object)],En.prototype,"allVideosCount",void 0);
_.C([_.S(),_.k("design:type",Object)],En.prototype,"renderGuideEntry",void 0);_.C([_.Ul("allVideosCount","data.alwaysShow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],En.prototype,"observeRenderEntry",null);_.C([_.F({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],En);
_.B(En,"ytd-guide-downloads-entry-renderer",function(){if(RtY===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);RtY=R}R=RtY;return R},{mode:1});var zq=function(){var R=_.K.apply(this,arguments)||this;R.youtab=_.v("web_enable_youtab");R.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return R};
_.H(zq,_.K);_.l=zq.prototype;_.l.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]]"}}}}}};
_.l.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var R=this.sectionItems.children,A=0,Y=R.length;A<Y;A++)R[A].activeEndpoint=this.activeEndpoint}};
_.l.handleAddToGuideSectionAction=function(R){var A=_.n(R,mUW);if(A&&this.data&&(R=A.items,A=A.handlerData,R&&A&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(A)>-1)){A=0;for(var Y=R.length;A<Y;A++)R[A].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,R[A])}};
_.l.handleRemoveFromGuideSectionAction=function(R){var A=_.n(R,Tt9);A&&this.data&&(R=A.guideEntryId,A=A.handlerData,R&&A&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(A)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(R,this.data.sectionItems),this.removeFromCollapsedSection(R,this.data.sectionItems)))};
_.l.removeFromExpandedSection=function(R,A){R=this.getEntryIndexMatchingId(R,A);R!==-1&&this.splice("data.sectionItems",R,1)};
_.l.removeFromCollapsedSection=function(R,A){var Y=A.findIndex(function(P){return!!_.n(P,bH9)});
Y&&Y!==-1&&A[Y]&&_.n(A[Y],bH9)&&(A=_.n(A[Y],bH9).expandableItems)&&(R=this.getEntryIndexMatchingId(R,A),R!==-1&&this.splice("data.sectionItems."+Y+".guideCollapsibleEntryRenderer.expandableItems",R,1))};
_.l.getEntryIndexMatchingId=function(R,A){var Y=this;return A.findIndex(function(P){return Y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===R})};
zq.prototype.activeEndpointChanged=zq.prototype.activeEndpointChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],zq.prototype,"actionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("#section-items"),_.k("design:type",HTMLDivElement)],zq.prototype,"sectionItems",void 0);
_.C([_.nG("#header-entry"),_.k("design:type",Object)],zq.prototype,"headerEntry",void 0);_.C([_.S(),_.k("design:type",Object)],zq.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],zq.prototype,"activeEndpoint",void 0);_.C([_.S(),_.k("design:type",Object)],zq.prototype,"youtab",void 0);_.C([_.vZ("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zq.prototype,"activeEndpointChanged",null);
_.C([_.F({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],zq);
_.B(zq,"ytd-guide-collapsible-section-entry-renderer",function(){if(d89===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);d89=R}R=d89;return R},{mode:1});var AKo;var YYo;var iL=function(){var R=_.K.apply(this,arguments)||this;R.modernTypography=_.v("web_modern_typography");R.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 R};
_.H(iL,_.K);_.l=iL.prototype;
_.l.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}}}}};
_.l.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var R=_.MT(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);R&&R.length===1&&R[0]&&_.MT(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.l.handleResetChannelUnreadCountCommand=function(R){var A;(R=(A=_.n(R,vuQ))==null?void 0:A.channelId)&&this.data&&this.data.items&&(A=this.getPathToEntryMatchingId(R))&&(this.set(A+".guideEntryRenderer.count",0),this.set(A+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.handleResetSubscriptionsUnreadDotCommand=function(R){var A,Y=(A=_.n(R,guH))==null?void 0:A.targetId,P;Y&&(P=this.data)!=null&&P.items&&(R=this.data.items.findIndex(function(E){var z;return((z=E.guideEntryRenderer)==null?void 0:z.targetId)===Y}),R<0||this.set("data.items."+R+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.l.getPathToEntryMatchingId=function(R){if(this.data&&this.data.items){var A=this.getEntryIndexMatchingId(R,this.data.items);if(A>-1)return"data.items."+A;for(var Y=0;Y<this.data.items.length;Y++)if(A=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[Y]))if(A=this.getEntryIndexMatchingId(R,A),A>-1)return"data.items."+Y+".guideCollapsibleEntryRenderer.expandableItems."+A}};
_.l.handleAddToGuideSectionAction=function(R){var A=this;if(_.n(R,mUW)){var Y=_.n(R,mUW).items;R=_.n(R,mUW).handlerData;var P,E;if(Y&&R&&((P=this.data)==null?void 0:(E=P.handlerDatas)==null?void 0:E.indexOf(R))>-1){Y=Y.filter(function(c){return(c=A.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",c))&&!A.isGuideItemPresent(c)});
var z;if(R==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((z=this.data)==null?0:z.items)&&(P=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),P>-1)){this.splice.apply(this,["data.items",P+1,0].concat(_.py(Y)));return}this.unshift.apply(this,["data.items"].concat(_.py(Y)))}}};
_.l.isGuideItemPresent=function(R){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(R,this.data.items)!==-1)return!0;var A=this.data.items.find(function(Y){return!!Y.guideCollapsibleEntryRenderer});
if((A==null?0:A.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(R,A.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.l.getEntryIndexMatchingId=function(R,A){var Y=this;return A.findIndex(function(P){return Y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===R})};
_.l.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(R,A){var Y=this;return A.findIndex(function(P){return Y.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",P)===R})};
_.l.handleRemoveFromGuideSectionAction=function(R){if(_.n(R,Tt9)){var A=_.n(R,Tt9).guideEntryId;R=_.n(R,Tt9).handlerData;var Y,P;A&&R&&((Y=this.data)==null?void 0:(P=Y.handlerDatas)==null?void 0:P.indexOf(R))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(A,this.data.items),this.removeFromCollapsedSection(A,this.data.items))}};
_.l.removeFromExpandedSection=function(R,A){R=this.getEntryIndexMatchingId(R,A);R!==-1&&this.splice("data.items",R,1)};
_.l.removeFromCollapsedSection=function(R,A){var Y=A.findIndex(function(P){return!!P.guideCollapsibleEntryRenderer});
Y!==-1&&(A=A[Y].guideCollapsibleEntryRenderer.expandableItems)&&(R=this.getEntryIndexMatchingId(R,A),R!==-1&&this.splice("data.items."+Y+".guideCollapsibleEntryRenderer.expandableItems",R,1))};
_.l.activeEndpointChanged=function(){for(var R=_.Mo(this.hostElement).querySelector("#items").children,A=0,Y=R.length;A<Y;A++)R[A].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.l.guideOpenedChanged=function(){for(var R=_.Mo(this.hostElement).querySelector("#items").children,A=0,Y=R.length;A<Y;A++)R[A].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
iL.prototype.guideOpenedChanged=iL.prototype.guideOpenedChanged;iL.prototype.activeEndpointChanged=iL.prototype.activeEndpointChanged;iL.prototype.persistentGuideChanged=iL.prototype.persistentGuideChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],iL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],iL.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],iL.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],iL.prototype,"ytLazyListBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],iL.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],iL.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],iL.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],iL.prototype,"modernTypography",void 0);_.C([_.S(),_.k("design:type",String)],iL.prototype,"type",void 0);_.C([_.S({value:20}),_.k("design:type",Number)],iL.prototype,"initialCount",void 0);_.C([_.S({value:10}),_.k("design:type",Number)],iL.prototype,"targetFramerate",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],iL.prototype,"autoFill",void 0);_.C([_.S({value:50}),_.k("design:type",Number)],iL.prototype,"renderDelay",void 0);
_.C([_.vZ("guidePersistentAndVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iL.prototype,"persistentGuideChanged",null);_.C([_.Ul("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iL.prototype,"activeEndpointChanged",null);_.C([_.Ul("guideOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],iL.prototype,"guideOpenedChanged",null);
_.C([_.F({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],iL);
_.B(iL,"ytd-guide-section-renderer",function(){if(YYo!==void 0)return YYo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return YYo=R},{mode:_.Nf("kevlar_poly_si_batch_j073")?1:2});var P2f;var lL=function(){return _.K.apply(this,arguments)||this};
_.H(lL,_.K);_.Yh.Object.defineProperties(lL.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],lL.prototype,"rendererBehaviors",void 0);_.C([_.S(),_.k("design:type",Object)],lL.prototype,"data",void 0);_.C([_.S(),_.X("data.signInButton.buttonRenderer.style"),_.k("design:type",Object),_.k("design:paramtypes",[])],lL.prototype,"alignByText",null);_.C([_.F({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],lL);
_.B(lL,"ytd-guide-signin-promo-renderer",function(){if(P2f===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);P2f=R}R=P2f;return R},{mode:1});var xd=function(){var R=_.K.apply(this,arguments)||this;R.showFooter=!1;return R};
_.H(xd,_.K);xd.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}}}}};
xd.prototype.attached=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1){A=_.is().resolve(_.z3(_.xX));if(!A)return Y.jumpTo(0);A.setGuideData(R.hostElement);return Y.yield(0,3)}R.ytLazyListBehavior.initialCount=2;return Y.return()})};
xd.prototype.onMouseExit=function(){_.v("web_guide_hover_expansion")&&_.MT(this.hostElement,"yt-guide-mouseleaved",[])};
xd.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
xd.prototype.dataChanged=xd.prototype.dataChanged;xd.prototype.onMouseExit=xd.prototype.onMouseExit;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xd.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],xd.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.ry.YtLazyListBehavior),_.k("design:type",Object)],xd.prototype,"ytLazyListBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],xd.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xd.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],xd.prototype,"showFooter",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],xd.prototype,"autoFill",void 0);_.C([_.Qa("mouseleave"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xd.prototype,"onMouseExit",null);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],xd.prototype,"dataChanged",null);_.C([_.F({is:"ytd-guide-renderer",disableElementRegistration:!0})],xd);
_.B(xd,"ytd-guide-renderer",function(){if(AKo!==void 0)return AKo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return AKo=R},{mode:_.Nf("kevlar_poly_si_batch_j073")?1:2});var E80;var c4=function(){var R=_.K.apply(this,arguments)||this;R.systemIcons=_.v("kevlar_system_icons");R.frostedGlass=_.v("web_frosted_glass");R.getEndpointForm=function(){return q5j(R.data)};
return R};
_.H(c4,_.K);_.l=c4.prototype;_.l.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.l.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.R4(this.data.formattedTitle))};
_.l.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.l.onDown=function(){this.interaction.triggerDown()};
_.l.onUp=function(){this.interaction.triggerUp()};
_.l.onTap=function(R){if(this.data.serviceEndpoint){var A;_.v("shorts_controller_retrieve_seedless_sequence_v2")&&((A=_.n(this.data.serviceEndpoint,_.SI))==null?void 0:A.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):ewf(this.data.serviceEndpoint,this);R.preventDefault()}else{var Y;((Y=this.data)==null?0:Y.navigationEndpoint)&&!_.RP(_.Ah(R),this.hostElement,["A".toString()])&&_.xo(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.l.computeActive=function(R,A){if(!R)return!1;var Y=R.navigationEndpoint;R=R.serviceEndpoint;if(!Y&&!R||!A)return!1;if(Y){R=_.n(Y,_.Ds);var P=_.n(A,_.Ds);if(R&&P)return R.browseId===P.browseId&&R.params===P.params;var E;Y=(E=_.n(Y.commandMetadata,_.Ti))==null?void 0:E.url;var z;A=(z=_.n(A.commandMetadata,_.Ti))==null?void 0:z.url;return!(!Y||!A||Y!==A&&Y!==_.T3(A))}return this.isActiveShortsTab(R,A)};
_.l.isActiveShortsTab=function(R,A){A=!!_.n(A,_.SI)||!!_.n(A,_.Ld);return(!!_.n(R,_.SI)||!!_.n(R,_.Ld))&&A};
_.l.computeTitle=function(R,A){return A?"":_.R4(R)};
_.Yh.Object.defineProperties(c4.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
c4.prototype.onTap=c4.prototype.onTap;c4.prototype.onUp=c4.prototype.onUp;c4.prototype.onDown=c4.prototype.onDown;c4.prototype.onActiveStateChange=c4.prototype.onActiveStateChange;c4.prototype.dataChanged=c4.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],c4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],c4.prototype,"ytComponentBehavior",void 0);
_.C([_.U(_.oj),_.k("design:type",Object)],c4.prototype,"ironButtonState",void 0);_.C([_.S(),_.k("design:type",Object)],c4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],c4.prototype,"activeEndpoint",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],c4.prototype,"noLabels",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.k("design:type",Boolean)],c4.prototype,"isActive",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],c4.prototype,"systemIcons",void 0);_.C([_.nG("yt-interaction"),_.k("design:type",Object)],c4.prototype,"interaction",void 0);_.C([_.X("isActive"),_.k("design:type",Object),_.k("design:paramtypes",[])],c4.prototype,"ariaSelected",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],c4.prototype,"frostedGlass",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c4.prototype,"dataChanged",null);_.C([_.vZ("isActive"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c4.prototype,"onActiveStateChange",null);_.C([_.Qa("down"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c4.prototype,"onDown",null);
_.C([_.Qa("up"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],c4.prototype,"onUp",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],c4.prototype,"onTap",null);_.C([_.F({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],c4);
_.B(c4,"ytd-mini-guide-entry-renderer",function(){if(E80!==void 0)return E80;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return E80=R},{mode:_.Nf("kevlar_poly_si_batch_j063")?1:2});var zti;var On=function(){var R=_.K.apply(this,arguments)||this;R.allVideosCount=0;R.noLabels=_.v("kevlar_mini_guide_no_labels");R.frostedGlass=_.v("web_frosted_glass");return R};
_.H(On,_.K);_.l=On.prototype;_.l.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.l.onMouseEnter=function(){_.v("web_guide_hover_expansion")&&_.MT(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.l.visibleChanged=function(){if(this.visible&&!this.data){var R=_.is().resolve(_.z3(_.xX));R&&R.setGuideData(this.hostElement)}};
_.l.dataChanged=function(){var R=[],A;if((A=this.data)!=null&&A.items){A=_.x(this.data.items);for(var Y=A.next();!Y.done;Y=A.next()){Y=Y.value;var P=void 0;if((P=Y.guideSectionRenderer)==null?0:P.items)for(P=void 0,Y=_.x((P=Y.guideSectionRenderer)==null?void 0:P.items),P=Y.next();!P.done;P=Y.next())if(P=P.value,P.guideEntryRenderer)P=P.guideEntryRenderer,P.isPrimary&&R.push({guideEntryRenderer:P});else if(P.guideCollapsibleSectionEntryRenderer){var E=void 0;((E=_.n(P.guideCollapsibleSectionEntryRenderer.headerEntry,
rG))==null?0:E.isPrimary)&&R.push({guideEntryRenderer:_.n(P.guideCollapsibleSectionEntryRenderer.headerEntry,rG)});if(P=P.guideCollapsibleSectionEntryRenderer.sectionItems)for(P=_.x(P),E=P.next();!E.done;E=P.next()){var z=E.value;E=_.n(z,fWQ);var c=void 0;((c=_.n(z,rG))==null?0:c.isPrimary)?R.push({guideEntryRenderer:_.n(z,rG)}):E&&(z=void 0,_.n((z=E)==null?void 0:z.entryRenderer,rG)&&(E.alwaysShow||this.allVideosCount)&&R.push({guideEntryRenderer:_.n(E.entryRenderer,rG)}))}}}}this.miniGuideItems=
R};
_.l.activeEndpointChanged=function(){for(var R=this.items.children,A=0;A<R.length;A++)R[A].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.l.registerWithViewTransitionManager=function(){var R=this;_.Ua(_.fn,function(){var A=_.is().resolve(_.z3(_.B8));if(A&&A.isAnyTransitionEnabled){var Y={};A.viewTransitionCoordinator.registerElement(R.hostElement,(Y.slide="mini-guide-page-transition",Y))}})};
On.prototype.activeEndpointChanged=On.prototype.activeEndpointChanged;On.prototype.dataChanged=On.prototype.dataChanged;On.prototype.visibleChanged=On.prototype.visibleChanged;On.prototype.onMouseEnter=On.prototype.onMouseEnter;_.C([_.U(_.Pf),_.k("design:type",Object)],On.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],On.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],On.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],On.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],On.prototype,"ytComponentBehavior",void 0);_.C([_.nG("#items"),_.k("design:type",Object)],On.prototype,"items",void 0);_.C([_.S(),_.k("design:type",Object)],On.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Boolean)],On.prototype,"visible",void 0);_.C([_.S(),_.k("design:type",Object)],On.prototype,"miniGuideItems",void 0);_.C([_.S({selector:_.xak}),_.k("design:type",Object)],On.prototype,"allVideosCount",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],On.prototype,"noLabels",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],On.prototype,"frostedGlass",void 0);
_.C([_.Qa("mouseenter"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],On.prototype,"onMouseEnter",null);_.C([_.Ul("visible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],On.prototype,"visibleChanged",null);_.C([_.Ul("data","allVideosCount"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],On.prototype,"dataChanged",null);
_.C([_.Ul("activeEndpoint"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],On.prototype,"activeEndpointChanged",null);_.C([_.F({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],On);
_.B(On,"ytd-mini-guide-renderer",function(){if(zti===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);zti=R}R=zti;return R},{mode:1});var iIf;var lJn=/^[\x00-\x7F]+$/,Ms=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(Ms,_.K);_.Yh.Object.defineProperties(Ms.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var R,A=_.R4((R=this.data)==null?void 0:R.handle);if(A)return _.dF("@"+A)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var R=_.R4(this.displayHandle),A,Y=_.R4((A=this.data)==null?void 0:A.handleUrl);if(R&&Y)return _.dF(Y+R)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var R=_.R4(this.displayHandle);if(R&&!lJn.test(R)){var A;return(A=this.data)==null?void 0:A.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var R=_.R4(this.displayHandleUrl),A,Y=_.R4((A=this.data)==null?void 0:A.urlInfoText);if(R&&Y)return _.dF(Y+" "+R)}}});
_.C([_.S(),_.k("design:type",Object)],Ms.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ms.prototype,"displayHandle",null);_.C([_.X("displayHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ms.prototype,"displayHandleUrl",null);_.C([_.X("displayHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ms.prototype,"warningText",null);
_.C([_.X("displayHandleUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ms.prototype,"urlInfoTextWithUrl",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ms.prototype,"darkerDarkTheme",void 0);_.C([_.F({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Ms);
_.B(Ms,"ytd-handles-claiming-confirm-dialog-content",function(){if(iIf!==void 0)return iIf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return iIf=R},{mode:1});var xtQ;var sn=function(){var R=_.K.apply(this,arguments)||this;R.okButtonOverride={style:"mono",type:"outline",size:"M"};return R};
_.H(sn,_.K);sn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
sn.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sn.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],sn.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sn.prototype,"okButtonOverride",void 0);_.C([_.S(),_.k("design:type",Object)],sn.prototype,"data",void 0);_.C([_.F({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],sn);
_.B(sn,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(xtQ!==void 0)return xtQ;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return xtQ=R},{mode:1});var cKQ;var OIN=/^[\x00-\x7F]+$/,Ns=function(){var R=_.K.apply(this,arguments)||this;R.isLoading=!1;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(Ns,_.K);Ns.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var R;this.selectedHandle=(R=this.handleInput)==null?void 0:R.value;this.onSelectedHandleChanged(this.selectedHandle);_.MT(this.hostElement,"yt-refit-popups-action")}};
_.Yh.Object.defineProperties(Ns.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var R;return(R=this.data)==null?void 0:R.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.dF("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.dF(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!OIN.test(this.selectedHandle)){var R;return(R=this.data)==null?void 0:R.warningText}}}});
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Ns.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ns.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],Ns.prototype,"selectedHandle",void 0);_.C([_.S(),_.k("design:type",Object)],Ns.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Function)],Ns.prototype,"onSelectedHandleChanged",void 0);_.C([_.nG("#channel-handle-input"),_.k("design:type",Object)],Ns.prototype,"handleInput",void 0);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ns.prototype,"handleUrlPrefix",null);_.C([_.X("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ns.prototype,"displayHandle",null);_.C([_.X("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ns.prototype,"displayHandleUrl",null);_.C([_.X("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],Ns.prototype,"warningText",null);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Ns.prototype,"darkerDarkTheme",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ns.prototype,"ytRendererBehavior",void 0);_.C([_.F({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Ns);
_.B(Ns,"ytd-handles-claiming-edit-dialog-content",function(){if(cKQ!==void 0)return cKQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return cKQ=R},{mode:1});var MuH;var VE=function(){var R=_.K.apply(this,arguments)||this;R.actionButtonOverride={style:"mono",type:"filled",size:"M"};R.cancelButtonOverride={style:"mono",type:"text",size:"M"};R.selectButtonDisabled=!1;R.isLoading=!1;R.hasSelectedHandleEventListener=!1;R.selectedHandleChanged=function(A){R.selectedHandle=A};
return R};
_.H(VE,_.K);_.l=VE.prototype;_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.l.onDataChanged=function(){var R,A;this.selectedHandle=(A=_.n((R=this.data)==null?void 0:R.inputField,ssH))==null?void 0:A.handle};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.selectedHandle="";_.OC(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var R=this;if(this.selectedHandle!==void 0){var A;((A=this.data)==null?void 0:A.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(Y,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.Zk(R.hostElement,_.R4(P.newHandleUpdateStatus.errorMessage)),
R.isLoading=!1;else{var E;if((E=R.data)==null?0:E.onChannelUpdateSuccess){Y=R.data.onChannelUpdateSuccess;var z,c;if(P=(z=_.n(Y,_.Fe))==null?void 0:(c=z.popup)==null?void 0:c.handlesClaimingConfirmDialogRenderer)P.handle=_.dF(R.selectedHandle);R.ytComponentBehavior.resolveCommand(Y);_.OC(R.hostElement,"yt-close-popup-action",[R.is])}else R.isLoading=!1}},
onServerError:function(){var Y;R.content&&((Y=R.content)==null?0:Y.handleInput)&&R.content.handleInput.validate();R.isLoading=!1;_.Zk(R.hostElement,_.vk("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
VE.prototype.onDataChanged=VE.prototype.onDataChanged;VE.prototype.onSelectedHandleChanged=VE.prototype.onSelectedHandleChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],VE.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],VE.prototype,"actionButtonOverride",void 0);_.C([_.S(),_.k("design:type",Object)],VE.prototype,"cancelButtonOverride",void 0);_.C([_.S(),_.k("design:type",Object)],VE.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",String)],VE.prototype,"selectedHandle",void 0);_.C([_.S(),_.k("design:type",Object)],VE.prototype,"selectButtonDisabled",void 0);_.C([_.S(),_.k("design:type",Object)],VE.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Object)],VE.prototype,"hasSelectedHandleEventListener",void 0);_.C([_.S(),_.k("design:type",Object)],VE.prototype,"handleInput",void 0);
_.C([_.vZ("selectedHandle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VE.prototype,"onSelectedHandleChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],VE.prototype,"onDataChanged",null);_.C([_.nG("ytd-handles-claiming-edit-dialog-content"),_.k("design:type",Object)],VE.prototype,"content",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.F({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],VE);
_.B(VE,"ytd-handles-claiming-edit-dialog-renderer",function(){if(MuH!==void 0)return MuH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return MuH=R},{mode:1});var sio;var JW=function(){return _.K.apply(this,arguments)||this};
_.H(JW,_.K);_.Yh.Object.defineProperties(JW.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null?0:R.handle){var A;return _.dF("@"+_.R4((A=this.data)==null?void 0:A.handle))}}}});
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],JW.prototype,"formattedHandle",null);_.C([_.S(),_.k("design:type",Object)],JW.prototype,"data",void 0);_.C([_.F({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],JW);
_.B(JW,"ytd-handles-claiming-radio-option-renderer",function(){if(sio!==void 0)return sio;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return sio=R},{mode:1});var N9H;var Vu0=/^[\x00-\x7F]+$/,yE=function(){var R=_.K.apply(this,arguments)||this;R.initialRadioIndex="-1";R.isLoading=!1;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.maybeSubmitFeedback=function(){R.feedbackSurveyRenderer.submitSurvey()};
return R};
_.H(yE,_.K);yE.prototype.updateSelectedHandleIndexFromBinding=function(R){this.selectedRadioIndex=+R.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(R)};
yE.prototype.selectedHandleChanged=function(R){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var A;this.selectedHandle=(A=this.handleInput)==null?void 0:A.value;this.onSelectedHandleChanged(R)}};
_.Yh.Object.defineProperties(yE.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var R;return this.ytRendererBehavior.getSimpleString((R=this.data)==null?void 0:R.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.dF("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.dF(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Vu0.test(this.selectedHandle)){var R;return(R=this.data)==null?void 0:R.warningText}}}});
_.C([_.S(),_.k("design:type",Object)],yE.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],yE.prototype,"initialRadioIndex",void 0);_.C([_.S(),_.k("design:type",Number)],yE.prototype,"selectedRadioIndex",void 0);_.C([_.S(),_.k("design:type",String)],yE.prototype,"selectedHandle",void 0);_.C([_.S(),_.k("design:type",Object)],yE.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Function)],yE.prototype,"onSelectedHandleChanged",void 0);
_.C([_.S(),_.k("design:type",Function)],yE.prototype,"onSelectedRadioIndexChanged",void 0);_.C([_.nG("#channel-handle-input"),_.k("design:type",Object)],yE.prototype,"handleInput",void 0);_.C([_.nG("ytd-feedback-survey-renderer"),_.k("design:type",Object)],yE.prototype,"feedbackSurveyRenderer",void 0);_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],yE.prototype,"radioButtonLength",null);
_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],yE.prototype,"handleUrlPrefix",null);_.C([_.X("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],yE.prototype,"displayHandle",null);_.C([_.X("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],yE.prototype,"displayHandleUrl",null);_.C([_.X("selectedHandle"),_.k("design:type",Object),_.k("design:paramtypes",[])],yE.prototype,"warningText",null);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],yE.prototype,"darkerDarkTheme",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],yE.prototype,"ytRendererBehavior",void 0);_.C([_.F({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],yE);
_.B(yE,"ytd-handles-claiming-select-dialog-content",function(){if(N9H!==void 0)return N9H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return N9H=R},{mode:1});var JKN;var mQ=function(){var R=_.K.apply(this,arguments)||this;R.actionButtonOverride={style:"mono",type:"filled",size:"M"};R.cancelButtonOverride={style:"mono",type:"text",size:"M"};R.initialRadioIndex="-1";R.selectButtonDisabled=!1;R.isLoading=!1;R.selectedRadioIndexChanged=function(A){R.selectedRadioIndex=Number(A.detail.value)};
R.selectedHandleChanged=function(A){R.selectedHandle=A.detail.value};
R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(mQ,_.K);_.l=mQ.prototype;_.l.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.l.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.l.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.MT(this.hostElement,"yt-refit-popups-action")};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.OC(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onSelectHandle=function(){var R=this;if(this.selectedHandle!==void 0){var A;((A=this.data)==null?void 0:A.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(Y,P){if(P.newHandleUpdateStatus!==void 0&&P.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&P.newHandleUpdateStatus.errorMessage)_.Zk(R.hostElement,_.R4(P.newHandleUpdateStatus.errorMessage)),
R.isLoading=!1;else{var E;if((E=R.data)==null?0:E.onChannelUpdateSuccess){Y=R.data.onChannelUpdateSuccess;P=_.n(Y,_.Fe);var z;if(P==null?0:(z=P.popup)==null?0:z.handlesClaimingConfirmDialogRenderer)P.popup.handlesClaimingConfirmDialogRenderer.handle=_.dF(R.selectedHandle);R.ytComponentBehavior.resolveCommand(Y);_.OC(R.hostElement,"yt-close-popup-action",[R.is])}else R.isLoading=!1}},
onServerError:function(){if(R.selectedRadioIndex===R.radioButtonLength){var Y;R.content&&((Y=R.content)==null?0:Y.handleInput)&&R.content.handleInput.validate()}R.isLoading=!1;_.Zk(R.hostElement,_.vk("TRY_AGAIN_LATER"))}}}))}};
_.l.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var R,A;this.selectedHandle=(R=this.content)==null?void 0:(A=R.handleInput)==null?void 0:A.value}else this.selectedRadioIndex>=0&&((R=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(R==null?void 0:R.handle):this.selectedHandle=void 0)};
_.l.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.l.getRadioItem=function(R){if(this.radioButtonLength>R&&R>=0)return _.n(this.data.radioButton[R],XXY)};
_.Yh.Object.defineProperties(mQ.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var R;return(((R=this.data)==null?void 0:R.radioButton)||[]).length}}});
mQ.prototype.onSelectedHandleChanged=mQ.prototype.onSelectedHandleChanged;mQ.prototype.onSelectedHandleIndexChanged=mQ.prototype.onSelectedHandleIndexChanged;mQ.prototype.onDataChanged=mQ.prototype.onDataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],mQ.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],mQ.prototype,"actionButtonOverride",void 0);_.C([_.S(),_.k("design:type",Object)],mQ.prototype,"cancelButtonOverride",void 0);
_.C([_.S(),_.k("design:type",Object)],mQ.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],mQ.prototype,"initialRadioIndex",void 0);_.C([_.S(),_.k("design:type",Number)],mQ.prototype,"selectedRadioIndex",void 0);_.C([_.S(),_.k("design:type",String)],mQ.prototype,"selectedHandle",void 0);_.C([_.S(),_.k("design:type",Object)],mQ.prototype,"selectButtonDisabled",void 0);_.C([_.S(),_.k("design:type",Object)],mQ.prototype,"isLoading",void 0);
_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],mQ.prototype,"radioButtonLength",null);_.C([_.nG("ytd-handles-claiming-select-dialog-content"),_.k("design:type",Object)],mQ.prototype,"content",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mQ.prototype,"onDataChanged",null);
_.C([_.vZ("selectedRadioIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mQ.prototype,"onSelectedHandleIndexChanged",null);_.C([_.vZ("selectedHandle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],mQ.prototype,"onSelectedHandleChanged",null);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],mQ.prototype,"darkerDarkTheme",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],mQ.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],mQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.F({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],mQ);
_.B(mQ,"ytd-handles-claiming-select-dialog-renderer",function(){if(JKN!==void 0)return JKN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return JKN=R},{mode:1});var yKH;var mti;var Tq=function(){return _.K.apply(this,arguments)||this};
_.H(Tq,_.K);Tq.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Tq.prototype,"data",void 0);_.C([_.F({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],Tq);
_.B(Tq,"ytd-hotkey-dialog-section-option-renderer",function(){if(mti!==void 0)return mti;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return mti=R},{mode:1});var T9W;var QE=function(){return _.K.apply(this,arguments)||this};
_.H(QE,_.K);QE.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],QE.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],QE.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],QE.prototype,"data",void 0);_.C([_.F({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],QE);
_.B(QE,"ytd-hotkey-dialog-section-renderer",function(){if(T9W!==void 0)return T9W;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return T9W=R},{mode:1});var v4=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(v4,_.K);v4.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],v4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],v4.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],v4.prototype,"darkerDarkTheme",void 0);_.C([_.F({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],v4);
_.B(v4,"ytd-hotkey-dialog-content",function(){if(yKH!==void 0)return yKH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return yKH=R},{mode:1});var Qin;var g1=function(){return _.K.apply(this,arguments)||this};
_.H(g1,_.K);g1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var R=document.querySelector("ytd-hotkey-dialog-content #scrollable");R&&(R.dialogElement=this.hostElement.parentElement)};
g1.prototype.onCloseTap=function(){_.OC(this.hostElement,"yt-close-popup-action")};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],g1.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],g1.prototype,"data",void 0);_.C([_.F({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],g1);
_.B(g1,"ytd-hotkey-dialog-renderer",function(){if(Qin!==void 0)return Qin;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Qin=R},{mode:1});var v8F;var nN=function(){return _.K.apply(this,arguments)||this};
_.H(nN,_.K);nN.prototype.onYtServiceRequestError=function(){if(this.blocked){var R;var A=(R=this.data)==null?void 0:R.defaultServiceEndpoint}else{var Y;A=(Y=this.data)==null?void 0:Y.toggledServiceEndpoint}var P;(A=(P=_.n(A,_.KwA))==null?void 0:P.onFailureAction)&&this.ytComponentBehavior.resolveCommand(A);this.updateBlockState(!this.blocked)};
nN.prototype.onYtToggleButton=function(R){this.updateBlockState(R.detail.toggled)};
nN.prototype.updateBlockState=function(R){if(R!==this.blocked){var A=this.blockedEntityKey;A&&this.ytdReduxBehavior.dispatch(_.HT("blockStateEntity",A,{key:A,blocked:R}));this.set("data.isToggled",R)}};
_.Yh.Object.defineProperties(nN.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)}}});
nN.prototype.onYtToggleButton=nN.prototype.onYtToggleButton;nN.prototype.onYtServiceRequestError=nN.prototype.onYtServiceRequestError;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],nN.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],nN.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nN.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],nN.prototype,"blockedEntityKey",void 0);
_.C([_.S({selectorArgs:["blockedEntityKey"],selector:function(R,A){return _.mc(R.entities,"blockStateEntity",A)}}),
_.k("design:type",Object)],nN.prototype,"blockStateEntity",void 0);_.C([_.X("data","blockStateEntity"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],nN.prototype,"blocked",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],nN.prototype,"onYtServiceRequestError",null);
_.C([_.Qa("yt-toggle-button"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],nN.prototype,"onYtToggleButton",null);_.C([_.F({is:"ytd-block-button",disableElementRegistration:!0})],nN);
_.B(nN,"ytd-block-button",function(){if(v8F!==void 0)return v8F;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return v8F=R},
{mode:1});var g8G;var n8n;var H4=function(){return _.K.apply(this,arguments)||this};
_.H(H4,_.K);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],H4.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],H4.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],H4.prototype,"data",void 0);_.C([_.F({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],H4);
_.B(H4,"ytd-kids-blocklist-picker-item-renderer",function(){if(n8n!==void 0)return n8n;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return n8n=R},{mode:1});var r1=function(){return _.K.apply(this,arguments)||this};
_.H(r1,_.K);r1.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],r1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],r1.prototype,"data",void 0);_.C([_.F({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],r1);
_.B(r1,"ytd-kids-blocklist-picker-content",function(){if(g8G!==void 0)return g8G;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return g8G=
R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var HIm;var DQ=function(){var R=_.K.apply(this,arguments)||this;R.hasAnyRequestSucceeded=!1;R.hasAnyRequestFailed=!1;R.numPendingRequests=0;return R};
_.H(DQ,_.K);_.l=DQ.prototype;_.l.attached=function(){this.hostElement.setAttribute("dialog","")};
_.l.onDoneButtonTap=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.l.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.l.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.l.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.l.onPopupClosed=function(R){var A,Y;if(((A=R.detail)==null?void 0:(Y=A.popup)==null?void 0:Y.is)==="tp-yt-paper-dialog"){var P;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((P=this.data)==null?0:P.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.Ed(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
DQ.prototype.onPopupClosed=DQ.prototype.onPopupClosed;DQ.prototype.onYtServiceRequestError=DQ.prototype.onYtServiceRequestError;DQ.prototype.onYtServiceRequestCompleted=DQ.prototype.onYtServiceRequestCompleted;DQ.prototype.onYtServiceRequestSent=DQ.prototype.onYtServiceRequestSent;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],DQ.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],DQ.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],DQ.prototype,"data",void 0);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DQ.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DQ.prototype,"onYtServiceRequestCompleted",null);
_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],DQ.prototype,"onYtServiceRequestError",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],DQ.prototype,"onPopupClosed",null);_.C([_.F({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],DQ);
_.B(DQ,"ytd-kids-blocklist-picker-renderer",function(){if(HIm!==void 0)return HIm;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return HIm=R},{mode:1});var rKo;var DtH;var Un=function(){return _.K.apply(this,arguments)||this};
_.H(Un,_.K);Un.prototype.setTip=function(R){var A=this;this.data&&(this.tip=T70(yif.getInstance(),R,this.data),_.RK(this,function(){_.xo(A.hostElement,"yt-refit")}))};
Un.prototype.clearTip=function(){this.tip=void 0};
Un.prototype.computeHidden=function(R){return!R};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Un.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Un.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.k("design:type",Boolean)],Un.prototype,"hidden",void 0);_.C([_.S(),_.k("design:type",Object)],Un.prototype,"tip",void 0);_.C([_.F({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],Un);
_.B(Un,"ytd-menu-popup-tip-renderer",function(){if(DtH!==void 0)return DtH;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);
return DtH=R},{mode:1});var UtQ;var $d=function(){var R=_.K.apply(this,arguments)||this;R.useIcons=!1;R.systemIcons=_.v("kevlar_system_icons");R.useListItemStyles=_.v("web_list_item_style_for_menu_items");return R};
_.H($d,_.K);_.l=$d.prototype;_.l.onFocus=function(){var R;(R=_.Mo(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.l.onTap=function(){var R=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(R&&_.n(R,_.Jg))this.componentBehavior.resolveCommand(R),this.updateToggledStateInEntity();else if(R){this.componentBehavior.resolveCommand(R)||_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}});var A;((A=_.n(R,_.mZ))==null?void 0:A.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.l.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.l.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.l.updateToggledStateInEntity=function(){var R=this.data.toggleMenuServiceItemEntityKey,A=!this.data.isToggled;R&&this.ytdReduxBehavior.dispatch(_.HT("toggleMenuServiceItemEntity",R,{key:R,isToggled:A}))};
_.l.computeIcon=function(R,A,Y){return(R=R?Y:A)&&R.iconType?_.m0(R.iconType):""};
_.l.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.l.isIconActive=function(R){return!_.v("toggle_menu_active_icon_killswitch")&&R};
_.Yh.Object.defineProperties($d.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?0:R.isToggled)?(A=this.data)==null?void 0:A.toggledText:(Y=this.data)==null?void 0:Y.defaultText}}});
$d.prototype.toggledStateEntityChanged=$d.prototype.toggledStateEntityChanged;$d.prototype.onYtServiceRequestCompleted=$d.prototype.onYtServiceRequestCompleted;$d.prototype.onTap=$d.prototype.onTap;$d.prototype.onFocus=$d.prototype.onFocus;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],$d.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],$d.prototype,"componentBehavior",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],$d.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],$d.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$d.prototype,"useIcons",void 0);_.C([_.S({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.k("design:type",String)],$d.prototype,"icon",void 0);
_.C([_.S({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(R,A){return _.mc(R.entities,"toggleMenuServiceItemEntity",A)}}),
_.k("design:type",Object)],$d.prototype,"toggleMenuServiceItemEntity",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$d.prototype,"systemIcons",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],$d.prototype,"useListItemStyles",void 0);_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$d.prototype,"onFocus",null);
_.C([_.X("data.isToggled"),_.k("design:type",Object),_.k("design:paramtypes",[])],$d.prototype,"toggleButtonText",null);_.C([_.Qa("tap"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$d.prototype,"onTap",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$d.prototype,"onYtServiceRequestCompleted",null);
_.C([_.vZ("toggleMenuServiceItemEntity.isToggled","data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$d.prototype,"toggledStateEntityChanged",null);_.C([_.F({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],$d);
_.B($d,"ytd-toggle-menu-service-item-renderer",function(){if(UtQ!==void 0)return UtQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return UtQ=R},{mode:1});var $tQ;var Xl=function(){return _.K.apply(this,arguments)||this};
_.H(Xl,_.K);Xl.prototype.onFocus=function(){var R;(R=_.Mo(this.hostElement).querySelector("tp-yt-paper-item"))==null||R.focus()};
_.Yh.Object.defineProperties(Xl.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.oR(this.data.iconUrl)}}});
Xl.prototype.onFocus=Xl.prototype.onFocus;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Xl.prototype,"rendererBehavior",void 0);_.C([_.U(_.bF.YtEndpointBehavior),_.k("design:type",Object)],Xl.prototype,"ytEndpointBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Xl.prototype,"data",void 0);_.C([_.Qa("focus"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Xl.prototype,"onFocus",null);
_.C([_.X("data.iconUrl"),_.k("design:type",Object),_.k("design:paramtypes",[])],Xl.prototype,"imageSource",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],Xl);
_.B(Xl,"ytd-menu-custom-icon-item-renderer",function(){if($tQ!==void 0)return $tQ;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return $tQ=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});_.Ow(_.Yr,"yt-list-item-view-model",{props:{data:_.VY,isMenuItem:_.VY,isCompact:_.VY,onTap:_.xL,trailingAccessory:_.xL,hideSelectionTextChevron:_.VY,disabled:_.VY,inPopup:_.VY,disableHorizontalPadding:_.VY,isOverlay:_.VY,isToggled:_.VY,ariaLabel:_.VY,ariaPressed:_.VY}});var SA=function(){var R=_.K.apply(this,arguments)||this;R.disableBackdropFilter=_.v("web_disable_backdrop_filter");return R};
_.H(SA,_.K);_.l=SA.prototype;
_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.l.computeAriaLabel=function(R){return R};
_.l.onPopupOpened=function(){this.items.selected=0;for(var R=_.x(_.Mo(this.items).children),A=R.next();!A.done;A=R.next())A.value.popupPositionTarget=this.positionTarget;if(R=this.popupTip||void 0)R.setTip(this.source||""),this.source=void 0;this.veData&&(R=_.F9())&&_.uE(R,[this.veData])};
_.l.onPopupClosed=function(){var R=this.popupTip||void 0;R&&R.clearTip()};
_.l.onIronActivate=function(R){this.shouldPersist(R)||_.OC(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(R=_.F9())&&_.qT(R,this.veData)};
_.l.shouldPersist=function(R){var A,Y;if(((A=R.detail)==null?void 0:A.selected)===void 0||(Y=this.data)==null||!Y.items)return!1;var P,E;return!((E=(P=this.data.items[R.detail.selected])==null?void 0:P.toggleMenuServiceItemRenderer)==null||!E.persistentOnMenuPopup)};
_.l.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(R){return R.menuNavigationItemRenderer?!!R.menuNavigationItemRenderer.icon:R.menuServiceItemRenderer?!!R.menuServiceItemRenderer.icon:R.menuConditionalServiceItemRenderer?!!R.menuConditionalServiceItemRenderer.icon:R.menuConditionalNavigationItemRenderer?!!R.menuConditionalNavigationItemRenderer.icon:R.toggleMenuServiceItemRenderer?!!R.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
SA.prototype.onPopupClosed=SA.prototype.onPopupClosed;SA.prototype.onPopupOpened=SA.prototype.onPopupOpened;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],SA.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],SA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],SA.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],SA.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],SA.prototype,"veData",void 0);_.C([_.S({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.k("design:type",String)],SA.prototype,"ariaLabel",void 0);_.C([_.S({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],SA.prototype,"useIcons",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],SA.prototype,"disableBackdropFilter",void 0);_.C([_.nG("#items"),_.k("design:type",Object)],SA.prototype,"items",void 0);_.C([_.nG("ytd-menu-popup-tip-renderer"),_.k("design:type",Object)],SA.prototype,"popupTip",void 0);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SA.prototype,"onPopupOpened",null);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],SA.prototype,"onPopupClosed",null);_.C([_.F({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],SA);
_.B(SA,"ytd-menu-popup-renderer",function(){if(rKo!==void 0)return rKo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return rKo=R},{mode:1});var X8n;var SYW=_.E5(function(R){R=_.Pc(R,{icon:void 0});var A=R.data;R=R.icon;var Y=function(){return A().iconBadgeText},P={},E=_.To("yt-spec-icon-badge-shape",function(){a:switch(A().iconBadgeType){case "notification":var z="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":z="yt-spec-icon-badge-shape--type-cart";break a;default:z=""}return z},function(){a:switch(A().iconBadgeStyle){case "overlay":var z="yt-spec-icon-badge-shape--style-overlay";
break a;default:z=""}return z},(P["yt-spec-icon-badge-shape--text-size-small"]=function(){var z=Y();
return!!((z==null?0:z.length)&&z.length>2)},P));
return _.V("yt-icon-badge-shape",null,_.V(_.J,{cond:R,then:function(z){return _.V("div",{class:E},_.V("div",{class:"yt-spec-icon-badge-shape__icon"},_.V(_.H1,{icon:z})),_.V(_.J,{cond:Y,then:function(c){return _.V("div",{class:"yt-spec-icon-badge-shape__badge"},c)}}))}}))},"rh");
SYW.idomCompat=!0;_.Ow(SYW,"yt-icon-badge-shape",{props:{data:_.VY,icon:_.VY}});var I3=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};R.unseenCount=0;R.isOverlay=!1;return R};
_.H(I3,_.K);_.l=I3.prototype;_.l.attached=function(){var R=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(A){R.onServiceWorkerMessage(A)})};
_.l.onDataChanged=function(){this.isAttached&&!this.JSC$20447_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20447_lastData=this.data};
_.l.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.computeIcon=function(){var R,A;return(R=this.data)==null?void 0:(A=R.icon)==null?void 0:A.iconType};
_.l.onServiceWorkerMessage=function(R){R.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.l.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.n(this.data.updateUnseenCountEndpoint,_.mZ)&&_.n(this.data.updateUnseenCountEndpoint,_.mZ).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.l.handleUpdateNotificationsUnseenCountAction=function(R){var A=this;R=_.n(R,Qsm);R!=null&&R.unseenCount&&R.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(R.unseenCount),_.fn.addLowPriorityJob(function(){A.data.updateUnseenCountEndpoint&&A.ytComponentBehavior.resolveCommand(A.data.updateUnseenCountEndpoint)},R.timeoutMs))};
_.l.onClick=function(){_.xo(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var R=_.MT(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),A=this.data.menuRequest;R&&R.length===1&&R[0]?_.OC(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):A&&this.ytComponentBehavior.resolveCommand(A)};
_.l.handleTopbarMenuClosedAction=function(R){R==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.l.toggleIconState=function(R){this.iconButton&&(this.iconButton.pressed=R)};
_.l.sendUnseenCountRequest=function(R){var A=this;_.Ua(_.fn,function(){A.ytComponentBehavior.resolveCommand(R)})};
_.l.updateCountUI=function(R){this.set("unseenCount",R<9?R:"9+")};
_.Yh.Object.defineProperties(I3.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
I3.prototype.handleUpdateNotificationsUnseenCountAction=I3.prototype.handleUpdateNotificationsUnseenCountAction;I3.prototype.onDataChanged=I3.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],I3.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Qg),_.k("design:type",Object)],I3.prototype,"ytdOpenPopupBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],I3.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],I3.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],I3.prototype,"unseenCount",void 0);_.C([_.S(),_.k("design:type",Object)],I3.prototype,"isOverlay",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],I3.prototype,"showTooltips",void 0);_.C([_.nG("yt-icon-button"),_.k("design:type",Object)],I3.prototype,"iconButton",void 0);
_.C([_.X("unseenCount"),_.k("design:type",Object),_.k("design:paramtypes",[])],I3.prototype,"showNotificationCount",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],I3.prototype,"onDataChanged",null);_.C([_.Qa("yt-update-notifications-unseen-count-action"),_.k("design:type",Function),_.k("design:paramtypes",[Object]),_.k("design:returntype")],I3.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.C([_.F({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],I3);
_.B(I3,"ytd-notification-topbar-button-renderer",function(){if(X8n!==void 0)return X8n;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return X8n=R},{mode:_.Nf("kevlar_poly_si_batch_j025")?1:2});var IJG;var KN=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return R};
_.H(KN,_.K);KN.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}}}}}};
KN.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
KN.prototype.onDarkModeToggled=function(R){this.dark=R};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],KN.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],KN.prototype,"data",void 0);_.C([_.S({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],KN.prototype,"dark",void 0);
_.C([_.F({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],KN);
_.B(KN,"yt-pdg-buy-flow-header-renderer",function(){if(IJG!==void 0)return IJG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return IJG=R},{mode:1});var Kjg;var WjF;var W4=function(){var R=_.K.apply(this,arguments)||this;R.immediateValue=0;R.isDarkTheme=!1;R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(W4,_.K);_.l=W4.prototype;_.l.created=function(){_.eQ.requestAvailability()};
_.l.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.l.dataChanged=function(){var R=_.Mo(this.hostElement).querySelector("#color-slider");R.immediateValue&&this.updateSliderKnobAndGradientStyles(R.immediateValue);this.data.notches[0].knobColorArgb&&_.ya(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Zs(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.a1("HTML_DIR")==="rtl"&&_.Mo(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.l.onSliderImmediateChange=function(){var R=_.Mo(this.hostElement).querySelector("#color-slider");R.dragging&&(R.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(R.immediateValue),this.updateSliderKnobAndGradientStyles(R.immediateValue)),this.updateSliderAria())};
_.l.onSliderChange=function(){var R=_.Mo(this.hostElement).querySelector("#color-slider");R.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(R.immediateValue),this.updateSliderKnobAndGradientStyles(R.immediateValue));this.updateSliderAria()};
_.l.updateSliderAria=function(){var R=_.Mo(this.hostElement).querySelector("#color-slider"),A=_.Mo(this.hostElement).querySelector("#color-slider");A=_.R4(this.data.notches[A.immediateValue].tierValue);_.Ou8()&&_.xo(this.hostElement,"iron-announce",{text:A});R.setAttribute("aria-valuetext",A)};
_.l.updateSuperThanksSelectedTierEntity=function(R){if(R!==this.immediateValue){var A,Y,P=this==null?void 0:(A=this.data)==null?void 0:(Y=A.superThanksSelectedTierEntity)==null?void 0:Y.key;P&&P.length>0&&this.ytdReduxBehavior.dispatch(_.HT("superThanksSelectedTierEntity",P,{key:P,index:R}))}};
_.l.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.updateSliderKnobAndGradientStyles=function(R){this.immediateValue=R;R=this.data.notches[R];if(R==null?0:R.knobColorArgb)var A={"--ytd-pdg-color-slider-knob-color":_.Zs(R.knobColorArgb)};(R==null?0:R.linearGradientCssStyle)&&A!==null&&(A=Object.assign({},A,{"--ytd-pdg-color-slider-active-color":R==null?void 0:R.linearGradientCssStyle}));A!==null&&_.ya(this.hostElement,A)};
W4.prototype.onSliderChange=W4.prototype.onSliderChange;W4.prototype.onSliderImmediateChange=W4.prototype.onSliderImmediateChange;W4.prototype.dataChanged=W4.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],W4.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],W4.prototype,"immediateValue",void 0);_.C([_.S(),_.k("design:type",Number)],W4.prototype,"maxMarkers",void 0);
_.C([_.S({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:U6H}),_.k("design:type",Object)],W4.prototype,"superThanksSelectedTierEntity",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],W4.prototype,"isDarkTheme",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],W4.prototype,"ytdReduxBehavior",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W4.prototype,"dataChanged",null);
_.C([_.Qa("immediate-value-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W4.prototype,"onSliderImmediateChange",null);_.C([_.Qa("change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],W4.prototype,"onSliderChange",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],W4);
_.B(W4,"ytd-pdg-color-slider-renderer",function(){if(WjF!==void 0)return WjF;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return WjF=R},{mode:1});var jiG;var bIG;var jA=null;
_.jz({is:"ytd-comment-input",_template:function(){if(bIG!==void 0)return bIG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return bIG=R},
behaviors:[_.n4u.YtHostElementBehavior,_.Kr,_.iF.YtComponentBehavior,_.HX.YtRendererstamperBehavior,_.Tmf.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 _.cw}},
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",_.T2(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;_.Hy();this.focus()},
detached:function(){document.removeEventListener("tap",_.T2(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(R){R=R.detail;R=R.isCustomEmoji?R.shortcuts[0]:R.emojiId;var A=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(A,R);this.maybeUpdateTextDirection_();_.xo(this.hostElement,"input")},
getInputRange_:function(){var R=_.Or();if(R){R=R.getBrowserRangeObject();for(var A=R.commonAncestorContainer;A;){if(A===this.getEditableTextArea_())return R;A=A.parentNode}}R=this.getEditableTextArea_();R=_.tS(R,R.childNodes.length);R.select();return R.getBrowserRangeObject()},
insertTextWithEmojis_:function(R,A,Y){(A=this.emojiManager.createDocumentFragment(A,!0,!1,Y===void 0?!0:Y))&&A.childNodes.length!==0&&(R.collapsed||R.deleteContents(),Y=A.lastChild,R.insertNode(A),_.G9A(Y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var R=_.Or();if(R){var A=R.JSC$11334_getStartNode(),Y=R.JSC$11334_getEndNode();if(L09(A)&&L09(Y)){var P=R.JSC$11334_getStartOffset(),E;if(_.Mc&&A.nodeType===Node.ELEMENT_NODE&&(E=_.kN7(A)))_.tS(E,0).select();else{E=WQ(A)?A:_.GE(A,WQ);var z=WQ(Y)?Y:_.GE(Y,WQ);if(E||z)if(R.isCollapsed()){if(A.nodeType===Node.TEXT_NODE){R=!0;P===A.length&&(R=!1);if(jA==="end"||jA==="right")R=!1;A=A.parentNode;R=[].concat(_.py(A.parentNode.childNodes)).indexOf(A)+(R?0:1);_.tS(A.parentNode,
R).select()}}else E?E.previousSibling&&E.previousSibling.length>0?_.wk(Y,R.JSC$11334_getEndOffset(),E.previousSibling,E.previousSibling.length-1).select():(A=document.createTextNode("\u200b"),E.parentNode.insertBefore(A,E),_.wk(Y,R.JSC$11334_getEndOffset(),A,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.wk(A,R.JSC$11334_getStartOffset(),z.nextSibling,1).select():(Y=document.createTextNode("\u200b"),z.parentNode.insertBefore(Y,z.nextSibling),_.wk(A,R.JSC$11334_getStartOffset(),Y,Y.length).select()));
jA=null}}else jA=null}else jA=null},
leftKeyPressed_:function(){jA="left"},
rightKeyPressed_:function(){jA="right"},
endKeyPressed_:function(){jA="end"},
maybeDeleteChip_:function(){var R=ELY(!0);if(R){var A=_.Or(),Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();_.hS(Y,A,R,R.childNodes.length).select()}},
maybeBackspaceChip_:function(){var R=ELY(!1);if(R){var A=_.Or(),Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();_.hS(Y,A,R,0).select()}},
maybeBackspaceChipWordMode_:function(R){var A=_.Or();if(A.isCollapsed()){var Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();var P=zcQ(Y,A,!0);P&&(_.hS(Y,A,P,0).select(),document.execCommand("delete"),R.preventDefault(),R.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(R){var A=_.Or();if(A.isCollapsed()){var Y=A.JSC$11334_getStartNode();A=A.JSC$11334_getStartOffset();var P=zcQ(Y,A,!1);P&&(_.hS(Y,A,P,P.childNodes.length).select(),document.execCommand("delete"),R.preventDefault(),R.stopImmediatePropagation())}},
onContentClick:function(R){R.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(R){R.defaultPrevented||R.currentTarget.tagName==="YTD-COMMENT-INPUT"&&WQ(R.target)&&R.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Mo(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Mo(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(R,A){R=Rc9(R,this.emojiManager,A).cloneNode(!0);for(A=R.firstChild;A;)if(A.nodeType!==1)A=A.nextSibling;else switch(A.tagName){case "BR":var Y=_.bK();_.LSz(Y,A);A=Y.nextSibling;break;case "DIV":(Y=A.lastChild)&&A.nextSibling&&_.Bs(_.bK(),Y);A.previousSibling&&(A.previousSibling.nodeType===1||A.previousSibling.nodeType===3&&!A.previousSibling.textContent.endsWith("\n"))&&_.Fw(_.bK(),A);Y&&Y.nodeName==="BR"&&_.UU(Y);Y=A;A.hasChildNodes()?(A=A.firstChild,
_.dGD(Y)):(A=A.nextSibling,_.UU(Y));break;default:A=A.nextSibling}return iYF(R)},
setTextAreaValue:function(R){R||(R="");var A=this.getEditableFormattedString_();A.text="";this.getEditableTextArea_().innerText="";typeof R==="string"&&(R={runs:[{text:R}]});A.text=R},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();jA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var R=this.getEditableTextArea_();R&&(_.tS(R,R.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.a1("HTML_DIR")==="rtl"){var R=this.getEditableTextArea_(),A=this.getTextAreaValue()!==""?"auto":"rtl";R.setAttribute("dir",A)}},
handleInputEvent_:function(){var R=null;if(this.isEmojiButtonDisplayed){var A=this.getInputRange_();A&&(R=this.emojiInput.retrieveTextBeforeRange(A))}this.insertText_(R,!0);this.updateCharCount_();R=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=R.scrollHeight>R.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var R=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:R})},
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(R){this.isEmojiButtonDisplayed&&(R.preventDefault(),R.stopImmediatePropagation(),R=R.clipboardData.getData("text/plain"),this.insertText_(R,!1,!1),_.xo(this.hostElement,"input"))},
insertText_:function(R,A,Y){A=A===void 0?!1:A;Y=Y===void 0?!0:Y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&R){var P=this.getInputRange_().cloneRange();this.emojiManager&&P&&(A&&this.emojiInput.offsetStartOfRangeBy(P,R.length),this.insertTextWithEmojis_(P,R,Y),dfn(this.getEditableTextArea_().lastChild)||(P=this.getInputRange_().cloneRange()),P&&(this.emojiInput.updateSuggestions(P,R),this.updateSuggestionOffset_(P)))}},
getSimpleString:_.R4,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(R){return R?"focused":"not-focused"},
computePlaceholderText_:function(R){return this.getSimpleString(R)},
computeEditableText_:function(R){return this.getSimpleString(R)},
onPrefilledContentDismissed_:function(R){R.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(R,A){R?this.fire("yt-autonav-pause-focus"):A!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(R){var A=this.getEditableTextArea_();[].concat(_.py(R.dataTransfer.items)).forEach(function(Y){Y.kind==="string"&&Y.type.match("^text/plain")&&Y.getAsString(function(P){A.appendChild(document.createTextNode(P))})});
R.preventDefault()},
preventDefault_:function(R){R.preventDefault()},
onSuggestionInsert_:function(R){this.insertTextWithEmojis_(R.detail.range,R.detail.text)},
onEmojiSuggestionClick_:function(R){this.emojiInput.insertSuggestion(R.detail)},
updateSuggestionOffset_:function(R){if(this.emojiInput&&_.Mo(this.emojiInput).querySelector("#dropdown")){var A=this.getEditableTextArea_().getBoundingClientRect().bottom,Y=R.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(A-Y)+5;A=this.getEditableTextArea_().getBoundingClientRect().left;R=R.getBoundingClientRect().left-A;_.Mo(this.emojiInput).querySelector("#dropdown").style.marginLeft=R+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Cn("yt-post"));return this.localStorage}});var bL=function(){var R=_.K.apply(this,arguments)||this;R.currentCommentOptionIndex=0;R.isEmojiPickerDisplayed=!1;R.emojiManager=_.cw;R.isUgcEmpty=!1;R.userGeneratedCommentChangedHandler=function(){_.xo(R.hostElement,"ytd-pdg-user-generated-comment-changed");R.isEmojiYtdCommentInputEnabled&&(R.isUgcEmpty=!R.ytdCommentInputEl.getTextAreaValue())};
R.pasteHandler=function(A){A.preventDefault();A.stopImmediatePropagation();var Y;if(A=(Y=A.clipboardData)==null?void 0:Y.getData("text/plain"))Y=document.getSelection().getRangeAt(0),Y.collapsed||Y.deleteContents(),A=document.createTextNode(A),Y.insertNode(A),Y.selectNodeContents(A),Y.collapse(!1),A=window.getSelection(),A.removeAllRanges(),A.addRange(Y)};
R.onDocumentClick=function(A){if(R.isEmojiPickerDisplayed){var Y,P,E;!(A.target instanceof Node)||(Y=A.composedPath())!=null&&Y.includes(R.editableTextEl)||(P=A.composedPath())!=null&&P.includes(R.emojiButtonEl)||(E=A.composedPath())!=null&&E.includes(R.emojiPickerEl)||(R.isEmojiPickerDisplayed=!1)}};
return R};
_.H(bL,_.K);_.l=bL.prototype;_.l.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.l.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.l.detached=function(){var R;(R=this.contentEl)==null||R.removeEventListener("input",this.userGeneratedCommentChangedHandler);var A;(A=this.contentEl)==null||A.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.l.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.l.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var R;this.contentEl.textContent=this.rendererBehavior.getSimpleString((R=this.data)==null?void 0:R.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.l.reloadEmojis=function(){this.emojiPickerEl&&_.n(this.emojiPicker,_.MJG)&&this.emojiPickerEl.updateEmojiCategories()};
_.l.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.ya(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.l.handleBackgroundColorStyling=function(){var R;if((R=this.currentCommentOption)==null?0:R.commentBackgroundColorArgb){var A;_.ya(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Zs((A=this.currentCommentOption)==null?void 0:A.commentBackgroundColorArgb)})}else _.ya(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.l.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var R;(R=this.contentEl)==null||R.focus()}};
_.l.onEditButtonClick=function(R){var A=document.getSelection();A&&this.contentEl&&(R.stopPropagation(),R.preventDefault(),A.selectAllChildren(this.contentEl),A.collapseToEnd())};
_.l.onContentDrop=function(R){var A=this;if(R.dataTransfer){R=_.x(R.dataTransfer.items);for(var Y=R.next();!Y.done;Y=R.next())Y=Y.value,Y.kind==="string"&&Y.type.match("^text/plain")&&Y.getAsString(function(P){var E;(E=A.contentEl)==null||E.appendChild(document.createTextNode(P))})}};
_.l.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.l.getUserGeneratedCommentText=function(){var R,A=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(R=this.contentEl)==null?void 0:R.textContent;return A?A.trim():""};
_.l.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.l.onEmojiSelect=function(R){this.ytdCommentInputEl.onEmojiSelect(R)};
_.Yh.Object.defineProperties(bL.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.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 R;return!((R=this.currentCommentOption)==null||!R.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var R;if(_.n((R=this.currentCommentOption)==null?void 0:R.chipRenderer,_.IXz)){var A;return _.n((A=this.currentCommentOption)==null?void 0:A.chipRenderer,_.IXz)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var R,A;return((R=this.data)==null?0:R.commentOptionRenderers)?_.n((A=this.data)==null?void 0:A.commentOptionRenderers[this.superThanksSelectedTierEntity.index],ZH0):void 0}var Y,P;return((Y=this.data)==null?0:Y.commentOptionRenderers)?_.n((P=this.data)==null?void 0:P.commentOptionRenderers[this.currentCommentOptionIndex],ZH0):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var R;return this.rendererBehavior.getSimpleString((R=this.data)==null?void 0:R.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var R;return this.rendererBehavior.getSimpleString((R=this.data)==null?void 0:R.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.commentDialog,_.j8Z))==null?void 0:A.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.commentDialog,_.j8Z))==null?void 0:A.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=_.n((R=this.data)==null?void 0:R.commentDialog,_.j8Z))==null?void 0:A.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(A=_.n((R=this.data)==null?void 0:R.commentDialog,_.j8Z))==null?void 0:A.emojiPicker;if(!_.n(Y,_.MJG)||!_.n(Y,_.MJG).categories)return!1;R=function(z){return z.emojiPickerCategoryRenderer?z.emojiPickerCategoryRenderer.emojiIds&&z.emojiPickerCategoryRenderer.emojiIds.length>0:z.emojiPickerUpsellCategoryRenderer?z.emojiPickerUpsellCategoryRenderer.emojis&&z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var P,E;return((P=_.n(Y,_.MJG))==null?0:(E=P.categories)==null?0:E.find(R))?!0:!1}}});
bL.prototype.onEmojiSelect=bL.prototype.onEmojiSelect;bL.prototype.dataChanged=bL.prototype.dataChanged;bL.prototype.currentCommentOptionChanged=bL.prototype.currentCommentOptionChanged;_.C([_.U(_.Pf),_.k("design:type",Object)],bL.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bL.prototype,"rendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bL.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.nG("#content-dom-if"),_.k("design:type",_.fG)],bL.prototype,"contentDomIfEl",void 0);_.C([_.nG("#content-no-emojis"),_.k("design:type",HTMLElement)],bL.prototype,"contentEl",void 0);_.C([_.nG("#container"),_.k("design:type",HTMLElement)],bL.prototype,"containerEl",void 0);_.C([_.nG("#comment-chip-container"),_.k("design:type",HTMLElement)],bL.prototype,"paidCommentChipContainerEl",void 0);_.C([_.nG("#text-input"),_.k("design:type",HTMLElement)],bL.prototype,"editableTextEl",void 0);
_.C([_.nG("#emoji-button"),_.k("design:type",HTMLElement)],bL.prototype,"emojiButtonEl",void 0);_.C([_.nG("#emoji-picker > yt-emoji-picker-renderer"),_.k("design:type",Object)],bL.prototype,"emojiPickerEl",void 0);_.C([_.nG("#text-input > ytd-comment-input"),_.k("design:type",Object)],bL.prototype,"ytdCommentInputEl",void 0);_.C([_.S(),_.k("design:type",Object)],bL.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],bL.prototype,"currentCommentOptionIndex",void 0);
_.C([_.S({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:U6H}),_.k("design:type",Object)],bL.prototype,"superThanksSelectedTierEntity",void 0);_.C([_.S(),_.k("design:type",Object)],bL.prototype,"isEmojiPickerDisplayed",void 0);_.C([_.S(),_.k("design:type",Object)],bL.prototype,"emojiManager",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],bL.prototype,"isUgcEmpty",void 0);
_.C([_.vZ("currentCommentOption"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bL.prototype,"currentCommentOptionChanged",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bL.prototype,"dataChanged",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bL.prototype,"isEmojiYtdCommentInputEnabled",null);
_.C([_.X("data.title"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"title",null);_.C([_.X("data.authorText"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"channelName",null);_.C([_.X("data.commentOptionRenderers","currentCommentOption"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bL.prototype,"shouldShowPaidCommentChipRenderer",null);
_.C([_.X("data.commentOptionRenderers","currentCommentOption"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"paidCommentChipRenderer",null);_.C([_.X("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"currentCommentOption",null);
_.C([_.X("data.defaultCommentText","superThanksSelectedTierEntity"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"commentText",null);_.C([_.X("data.placeholderText"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"placeholderText",null);_.C([_.X("data.commentDialog.commentDialogRenderer.editableText"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"editableText",null);
_.C([_.X("data.commentDialog.commentDialogRenderer.emojiButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"emojiButton",null);_.C([_.X("data.commentDialog.commentDialogRenderer.emojiPicker"),_.k("design:type",Object),_.k("design:paramtypes",[])],bL.prototype,"emojiPicker",null);
_.C([_.X("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],bL.prototype,"isEmojiButtonDisplayed",null);_.C([_.Qa("yt-emoji-select"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],bL.prototype,"onEmojiSelect",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],bL);
_.B(bL,"ytd-pdg-comment-preview-renderer",function(){if(jiG!==void 0)return jiG;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return jiG=R},{mode:2});var fJG;var fN=function(){var R=_.K.apply(this,arguments)||this;R.selected=!1;return R};
_.H(fN,_.K);_.l=fN.prototype;_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.l.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.l.dataChanged=function(){this.data&&(_.sl(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.ya(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Zs(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Zs(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.l.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.l.onClick=function(){this.logClick()};
_.l.onKeyboardSelect=function(){_.xo(this.hostElement,"tap");this.onClick()};
_.l.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
fN.prototype.onClick=fN.prototype.onClick;fN.prototype.selectedChanged=fN.prototype.selectedChanged;fN.prototype.dataChanged=fN.prototype.dataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],fN.prototype,"componentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Kr),_.k("design:type",Object)],fN.prototype,"ironA11yKeysBehavior",void 0);
_.C([_.U(_.qo),_.k("design:type",Object)],fN.prototype,"ironSelectableBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fN.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],fN.prototype,"shownThumbnail",void 0);_.C([_.S(),_.k("design:type",Object)],fN.prototype,"basePriceText",void 0);_.C([_.S(),_.k("design:type",Object)],fN.prototype,"purchaseCommand",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],fN.prototype,"selected",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fN.prototype,"dataChanged",null);_.C([_.vZ("selected"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fN.prototype,"selectedChanged",null);_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],fN.prototype,"onClick",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],fN);
_.B(fN,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(fJG!==void 0)return fJG;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return fJG=R},{mode:1});var pN=function(){var R=_.K.apply(this,arguments)||this;R.selectedItemIndex=0;R.buyButtonDisabled=!1;return R};
_.H(pN,_.K);_.l=pN.prototype;
_.l.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]]"}}}}}};
_.l.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var R;var A=(R=_.n(this.data.colorSlider,GuF))==null?void 0:R.notches[this.selectedItemIndex].purchaseCommand}else{var Y;A=(Y=_.n(this.data.selectableItemButtons[this.selectedItemIndex],wXQ))==null?void 0:Y.purchaseCommand}if(A){R=_.n(A,_.NI7);R.productData||(R.productData={});var P;R.productData={pdgData:{commentMessageText:(P=this.commentPreviewRenderer)==null?void 0:P.getUserGeneratedCommentText()}};
_.xo(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(A)}}};
_.l.dataChanged=function(){if(this.data){_.cw.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.wIz(_.cw,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.cw.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var R;this.buyButtonDisabled=!((R=_.n(this.data.commentPreview,tVQ))==null||!R.placeholderText);this.updatePriceSelectorStatus();var A;if((A=this.data)==null?0:A.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;R=[];this.data.preloadImages&&(R=this.data.preloadImages);
R=R.map(function(Y){return _.MH(Y.thumbnails,1920)});
R=_.x(R);for(A=R.next();!A.done;A=R.next())(A=A.value)&&_.qvk(A).thenCatch(function(){_.pK(Error("xl"))})}};
_.l.superThanksSelectedTierEntityChanged=function(){var R;(this==null?void 0:(R=this.superThanksSelectedTierEntity)==null?void 0:R.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.l.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.l.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Mo(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Mo(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Mo(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Mo(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.l.closeBuyFlow=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.l.onUserGeneratedContentChanged=function(){var R;this.buyButtonDisabled=!((R=this.commentPreviewRenderer)==null?0:R.getUserGeneratedCommentText())};
_.l.updateSelectedItemIndexFromBinding=function(R){this.selectedItemIndex=R.detail.value};
_.Yh.Object.defineProperties(pN.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var R;return!((R=this.data)==null||!R.disclaimerText)}}});
pN.prototype.onUserGeneratedContentChanged=pN.prototype.onUserGeneratedContentChanged;pN.prototype.closeBuyFlow=pN.prototype.closeBuyFlow;pN.prototype.selectedItemIndexChanged=pN.prototype.selectedItemIndexChanged;pN.prototype.superThanksSelectedTierEntityChanged=pN.prototype.superThanksSelectedTierEntityChanged;pN.prototype.dataChanged=pN.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pN.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],pN.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pN.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],pN.prototype,"selectedItemIndex",void 0);_.C([_.S(),_.k("design:type",Boolean)],pN.prototype,"isColorSlider",void 0);
_.C([_.S(),_.k("design:type",Object)],pN.prototype,"buyButtonDisabled",void 0);_.C([_.S({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:U6H}),_.k("design:type",Object)],pN.prototype,"superThanksSelectedTierEntity",void 0);_.C([_.nG("ytd-pdg-comment-preview-renderer"),_.k("design:type",Object)],pN.prototype,"commentPreviewRenderer",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],pN.prototype,"ytdReduxBehavior",void 0);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pN.prototype,"dataChanged",null);_.C([_.vZ("superThanksSelectedTierEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pN.prototype,"superThanksSelectedTierEntityChanged",null);_.C([_.vZ("selectedItemIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pN.prototype,"selectedItemIndexChanged",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pN.prototype,"closeBuyFlow",null);_.C([_.Qa("ytd-pdg-user-generated-comment-changed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],pN.prototype,"onUserGeneratedContentChanged",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],pN.prototype,"isDisclaimerTextShown",null);
_.C([_.F({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],pN);
_.B(pN,"yt-super-vod-buy-flow-content-renderer",function(){if(Kjg!==void 0)return Kjg;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Kjg=R},{mode:1});var p8W;var Fl=function(){var R=_.K.apply(this,arguments)||this;R.lottieAnimationRef={};return R};
_.H(Fl,_.K);_.l=Fl.prototype;_.l.created=function(){_.eQ.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.T2(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.l.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.xo(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.l.detached=function(){this.autoCloseJobId&&_.fn.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.T2(this,this.onPopupIronOverlayOpened))};
_.l.dataChanged=function(){var R=this;this.data&&this.data.autoCloseDelay&&(_.OC(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.JM(_.fn,function(){R.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.ya(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.l.onDOMLoadedLottie=function(){var R=this,A,Y,P=Number((A=this.data)==null?void 0:(Y=A.autoCloseDelay)==null?void 0:Y.seconds)||0;this.fadeOutJobId=_.JM(_.fn,function(){R.lottiePlayerEl.classList.add("fadeout")},(P-.25)*1E3);
this.autoCloseJobId=_.JM(_.fn,function(){R.closePopup()},P*1E3)};
_.l.openPopup=function(){this.ironOverlayBehavior.open()};
_.l.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.OC(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.NT(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.is().resolve(_.ls).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.fn.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.fn.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.l.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var R,A;(R=this.lottieAnimationRef)==null||(A=R.lottieEl)==null||A.destroy();R=this.data.lottie;var Y,P;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:R.url+"_"+Math.random(),path:R.url,autoplay:!0,loop:(P=(Y=R.settings)==null?void 0:Y.loop)!=null?P:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Yh.Object.defineProperties(Fl.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var R,A;return!!((R=this.data)==null?0:(A=R.lottie)==null?0:A.url)}}});
Fl.prototype.maybeInitializeLottie=Fl.prototype.maybeInitializeLottie;Fl.prototype.dataChanged=Fl.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Fl.prototype,"rendererBehavior",void 0);_.C([_.U(_.Ae),_.k("design:type",Object)],Fl.prototype,"ironOverlayBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Fl.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Fl.prototype,"lottiePlayerProps",void 0);
_.C([_.S(),_.k("design:type",Object)],Fl.prototype,"lottieAnimationRef",void 0);_.C([_.nG("ytd-lottie-player"),_.k("design:type",HTMLElement)],Fl.prototype,"lottiePlayerEl",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fl.prototype,"dataChanged",null);_.C([_.X("data"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Fl.prototype,"hasLottieAnimation",null);
_.C([_.vZ("data.lottie.url"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Fl.prototype,"maybeInitializeLottie",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],Fl);
_.B(Fl,"ytd-desktop-image-overlay-renderer",function(){if(p8W!==void 0)return p8W;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return p8W=R},{mode:1});var FjN;var B4=function(){return _.K.apply(this,arguments)||this};
_.H(B4,_.K);_.l=B4.prototype;_.l.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"}}}}};
_.l.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",_.T2(this,this.closePopup))};
_.l.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.T2(this,this.closePopup))};
_.l.dataChanged=function(){_.MT(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.n(this.data.header,kui)&&(this.hasBackgroundBanner=!!_.n(this.data.header,kui).backgroundBanner)};
_.l.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.T2(this,this.closePopup))};
_.l.closePopup=function(){this.data&&this.data.onCloseCommand&&_.sC(this.hostElement,[this.data.onCloseCommand])};
B4.prototype.handleBuyflowSelectionSubmitted=B4.prototype.handleBuyflowSelectionSubmitted;B4.prototype.dataChanged=B4.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],B4.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],B4.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],B4.prototype,"data",void 0);
_.C([_.S({value:!0,reflectToAttribute:!0}),_.k("design:type",Boolean)],B4.prototype,"hasBackgroundBanner",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B4.prototype,"dataChanged",null);_.C([_.Qa("yt-pdg-buy-flow-selection-submitted"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],B4.prototype,"handleBuyflowSelectionSubmitted",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],B4);
_.B(B4,"ytd-pdg-buy-flow-renderer",function(){if(FjN!==void 0)return FjN;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return FjN=R},{mode:1});var B90;var a3=function(){var R=_.K.apply(this,arguments)||this;R.isOpen=!1;R.isPlaylistCreated=!1;return R};
_.H(a3,_.K);_.l=a3.prototype;_.l.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.l.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.xo(this.hostElement,"yt-refit")};
_.l.onCreateTap=function(){var R=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.sC(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(A,Y){if(!_.v("killswitch_ep_in_create_playlist_response")&&(Y==null?0:Y.actions))for(A=_.x(Y.actions),Y=A.next();!Y.done;Y=A.next())Y=Y.value,_.n(Y,_.D7)&&R.ytComponentBehavior.resolveCommand(Y)}}]),this.isPlaylistCreated=!0)};
_.l.onKeydown=function(R){if(R.keyCode===13)this.onCreateTap()};
_.l.onServiceRequestCompleted=function(R){R.stopPropagation();_.OC(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.l.computePrivacyBadge=function(R){return R?[{metadataBadgeRenderer:R}]:[]};
a3.prototype.onServiceRequestCompleted=a3.prototype.onServiceRequestCompleted;a3.prototype.onKeydown=a3.prototype.onKeydown;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],a3.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],a3.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],a3.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],a3.prototype,"isOpen",void 0);
_.C([_.S(),_.k("design:type",Object)],a3.prototype,"isPlaylistCreated",void 0);_.C([_.S({value:{REQUIRED_LABEL:_.vk("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.vk("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.k("design:type",Object)],a3.prototype,"addToStrings",void 0);_.C([_.S({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.k("design:type",Array)],a3.prototype,"privacyBadge",void 0);
_.C([_.nG("#privacy-input"),_.k("design:type",Object)],a3.prototype,"privacyInput",void 0);_.C([_.nG("#name-input"),_.k("design:type",Object)],a3.prototype,"nameInput",void 0);_.C([_.Qa("keydown"),_.k("design:type",Function),_.k("design:paramtypes",[KeyboardEvent]),_.k("design:returntype")],a3.prototype,"onKeydown",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],a3.prototype,"onServiceRequestCompleted",null);
_.C([_.F({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],a3);
_.B(a3,"ytd-add-to-playlist-create-renderer",function(){if(B90!==void 0)return B90;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return B90=R},{mode:1});var aJW;var C2j;var CN=function(){var R=_.K.apply(this,arguments)||this;R.transferState="TRANSFER_STATE_UNKNOWN";return R};
_.H(CN,_.K);CN.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
CN.prototype.onCheckboxChange=function(R){var A=this;this.data&&_.u5(this,"yt-playlist-checkbox-changed",function(){var Y=_.Yw(R).checked?A.data.addToPlaylistServiceEndpoint:A.data.removeFromPlaylistServiceEndpoint;Y&&_.is().resolve(_.ls).resolveCommand(Y,{form:{element:A.hostElement}});_.v("dl_playlist_killswitch")||A.transferState!=="TRANSFER_STATE_UNKNOWN"&&A.transferState!=="TRANSFER_STATE_FAILED"&&A.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:A.data.playlistId,action:"ACTION_SYNC"}})},
100)};
CN.prototype.computeIconType=function(R){return R?"yt-icons:"+R.toLowerCase():null};
CN.prototype.dataChanged=CN.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],CN.prototype,"data",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],CN.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],CN.prototype,"ytComponentBehavior",void 0);_.C([_.nG("#checkbox"),_.k("design:type",HTMLInputElement)],CN.prototype,"checkbox",void 0);
_.C([_.S({selector:_.oa,selectorArgs:["data.playlistId"]}),_.k("design:type",String)],CN.prototype,"transferState",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],CN.prototype,"dataChanged",null);_.C([_.F({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],CN);
_.B(CN,"ytd-playlist-add-to-option-renderer",function(){if(C2j!==void 0)return C2j;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return C2j=R},{mode:1});var ht9=_.E5(function(R){var A=R.data;return _.V("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.V("div",null,_.V(_.NU,{text:function(){return A().title}})),_.V(_.J,{cond:function(){return A().subtitle},
then:function(Y){return _.V("div",{class:"ytdMenuTitleRendererSubtitle"},_.V(_.NU,{text:Y}))}}))},"sh");
ht9.idomCompat=!0;_.Ow(ht9,"ytd-menu-title-renderer",{props:{data:_.VY}});var hW=function(){var R=_.K.apply(this,arguments)||this;R.addToStrings={ADD_TO_DROPDOWN_LABEL:_.vk("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};R.closeButtonAriaLabel=_.vk("SBOX_INAPPROPRIATE_CANCEL");R.dialog=_.v("desktop_add_to_playlist_renderer_dialog_popup");return R};
_.H(hW,_.K);_.l=hW.prototype;_.l.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"}}}};
_.l.onPopupOpened=function(){_.No(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.l.onPopupClosed=function(){_.No(this.playlists,"scrollable",!1)};
_.l.computeAriaLabel=function(){var R;if(this==null?0:(R=this.data)==null?0:R.actions){R=_.x(this.data.actions);for(var A=R.next();!A.done;A=R.next())if(A=A.value,A.menuTitleRenderer)return _.R4(A.menuTitleRenderer.title)}};
_.l.onTapClose=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Yh.Object.defineProperties(hW.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var R;if(this==null?0:(R=this.data)==null?0:R.actions){R=_.x(this.data.actions);for(var A=R.next();!A.done;A=R.next())if(A=A.value,A.menuTitleRenderer)return A.menuTitleRenderer}return!1}}});
hW.prototype.onPopupClosed=hW.prototype.onPopupClosed;hW.prototype.onPopupOpened=hW.prototype.onPopupOpened;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],hW.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hW.prototype,"ytRendererStamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],hW.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],hW.prototype,"addToStrings",void 0);_.C([_.S({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.k("design:type",String)],hW.prototype,"ariaLabel",void 0);_.C([_.S(),_.k("design:type",String)],hW.prototype,"closeButtonAriaLabel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],hW.prototype,"dialog",void 0);
_.C([_.nG("#playlists"),_.k("design:type",HTMLElement)],hW.prototype,"playlists",void 0);_.C([_.nG("ytd-add-to-playlist-create-renderer"),_.k("design:type",Object)],hW.prototype,"createRenderer",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],hW.prototype,"menuTitleRenderer",null);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hW.prototype,"onPopupOpened",null);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hW.prototype,"onPopupClosed",null);_.C([_.F({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],hW);
_.B(hW,"ytd-add-to-playlist-renderer",function(){if(aJW!==void 0)return aJW;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return aJW=R},{mode:1});var o8i;var o3=function(){var R=_.K.apply(this,arguments)||this;R.isPlaylistEditComplete=!1;R.isCollabEngagementDisabled=!1;R.closeButtonAriaLabel=_.vk("SBOX_INAPPROPRIATE_CANCEL");R.saveButton={title:_.vk("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"};R.onValueChanged=function(){R.updateSaveButtonState();R.computeCollabEngagementDisabled()};
return R};
_.H(o3,_.K);_.l=o3.prototype;_.l.attached=function(){this.JSC$20501_scroller&&(this.JSC$20501_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20501_scroller.attached&&typeof this.JSC$20501_scroller.attached==="function"&&this.JSC$20501_scroller.attached())};
_.l.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.l.onPopupClosed=function(){this.reset()};
_.l.close=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.l.onClickSave=function(){var R=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var A=[];this.nameInput.value!==null&&A.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&A.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var Y=Number(this.privacyInput.value);isNaN(Y)||A.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:Y})}this.votingInput.value!==null&&(Y=this.votingInput.value)&&A.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:Y});if(A.length>0){var P;_.n((P=this.data)==null?void 0:P.updateSettingsEndpoint,_.qN).actions=A;var E;if((E=this.data)==null?0:E.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){R.close()}}}),this.isPlaylistEditComplete=!0}}};
_.l.computePrivacyBadge=function(R){return R?[{metadataBadgeRenderer:R}]:[]};
_.l.computeEditorData=function(R){var A,Y;return R==null?void 0:(A=R.sections)==null?void 0:(Y=A[0])==null?void 0:Y.playlistSettingsEditorCasualSectionRenderer};
_.l.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.l.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}}}}}};
_.l.computeAriaLabel=function(){var R,A,Y,P=(R=this.data)==null?void 0:(A=R.sections)==null?void 0:(Y=A[0])==null?void 0:Y.playlistSettingsEditorCasualSectionRenderer;return _.R4(P==null?void 0:P.title)};
_.l.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"}))};
_.l.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.l.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.l.isNameChanged=function(){var R,A,Y;return(((R=this.editorData)==null?void 0:(A=R.name)==null?void 0:(Y=A.textInputFormFieldRenderer)==null?void 0:Y.value)||"")!==(this.nameInput.value||"")};
_.l.isDescriptionChanged=function(){var R,A,Y;return(((R=this.editorData)==null?void 0:(A=R.description)==null?void 0:(Y=A.textInputFormFieldRenderer)==null?void 0:Y.value)||"")!==(this.descriptionInput.value||"")};
_.l.isPrivacyChanged=function(){var R,A,Y,P,E,z,c,M;return((c=(R=this.editorData)==null?void 0:(A=R.privacy)==null?void 0:(Y=A.dropdownFormFieldRenderer)==null?void 0:(P=Y.dropdown)==null?void 0:(E=P.dropdownRenderer)==null?void 0:(z=E.entries)==null?void 0:z.find(function(N){var y;return N==null?void 0:(y=N.privacyDropdownItemRenderer)==null?void 0:y.isSelected}))==null?void 0:(M=c.privacyDropdownItemRenderer)==null?void 0:M.int32Value)!==this.privacyInput.value};
_.l.isVotingChanged=function(){var R,A,Y,P,E,z,c,M;return((c=(R=this.editorData)==null?void 0:(A=R.voting)==null?void 0:(Y=A.dropdownFormFieldRenderer)==null?void 0:(P=Y.dropdown)==null?void 0:(E=P.dropdownRenderer)==null?void 0:(z=E.entries)==null?void 0:z.find(function(N){var y;return N==null?void 0:(y=N.privacyDropdownItemRenderer)==null?void 0:y.isSelected}))==null?void 0:(M=c.privacyDropdownItemRenderer)==null?void 0:M.int32Value)!==this.votingInput.value};
o3.prototype.onPopupClosed=o3.prototype.onPopupClosed;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],o3.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],o3.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],o3.prototype,"ytRendererStamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],o3.prototype,"data",void 0);_.C([_.S({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.k("design:type",Array)],o3.prototype,"privacyBadge",void 0);_.C([_.S({computed:"computeEditorData(data)"}),_.k("design:type",Object)],o3.prototype,"editorData",void 0);_.C([_.S(),_.k("design:type",Object)],o3.prototype,"isPlaylistEditComplete",void 0);_.C([_.S(),_.k("design:type",Object)],o3.prototype,"isCollabEngagementDisabled",void 0);
_.C([_.S({value:{REQUIRED_LABEL:_.vk("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.vk("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.k("design:type",Object)],o3.prototype,"addToStrings",void 0);_.C([_.S({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.k("design:type",String)],o3.prototype,"ariaLabel",void 0);_.C([_.S(),_.k("design:type",String)],o3.prototype,"closeButtonAriaLabel",void 0);
_.C([_.S(),_.k("design:type",Object)],o3.prototype,"saveButton",void 0);_.C([_.nG("#name-input"),_.k("design:type",Object)],o3.prototype,"nameInput",void 0);_.C([_.nG("#description-input"),_.k("design:type",Object)],o3.prototype,"descriptionInput",void 0);_.C([_.nG("#privacy-input"),_.k("design:type",Object)],o3.prototype,"privacyInput",void 0);_.C([_.nG("#voting-input"),_.k("design:type",Object)],o3.prototype,"votingInput",void 0);
_.C([_.nG("#scroller"),_.k("design:type",Object)],o3.prototype,"JSC$20501_scroller",void 0);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],o3.prototype,"onPopupClosed",null);_.C([_.S(),_.k("design:type",Object)],o3.prototype,"onValueChanged",void 0);_.C([_.F({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],o3);
_.B(o3,"ytd-playlist-settings-editor-renderer",function(){if(o8i===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" disabled="[[editorData.name.textInputFormFieldRenderer.disabled]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);o8i=R}R=o8i;return R},{mode:1});var kKi;_.bh("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var kd=function(){return _.K.apply(this,arguments)||this};
_.H(kd,_.K);_.l=kd.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.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 R=this.get("data.nextButton.buttonRenderer.navigationEndpoint");R&&(this.nextNavigationEndpoint=R,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.l.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 R={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",R)}}};
_.l.onPopupOpened=function(R){R.detail!==this&&R.detail!==this.hostElement||!_.v("enable_premium_voluntary_pause")||_.OC(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.l.onNextButtonTap=function(){var R=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);R&&this.ytdOpenPopupBehavior.openPopup(R)};
_.l.updateSelectedResponseIndexFromBinding=function(R){this.selectedResponseIndex=R.detail.value};
kd.prototype.onPopupOpened=kd.prototype.onPopupOpened;kd.prototype.onSelectedResponseIndexChange=kd.prototype.onSelectedResponseIndexChange;kd.prototype.dataChanged=kd.prototype.dataChanged;_.C([_.U(_.Qg),_.k("design:type",Object)],kd.prototype,"ytdOpenPopupBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kd.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],kd.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],kd.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],kd.prototype,"selectedResponseIndex",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kd.prototype,"dataChanged",null);_.C([_.vZ("selectedResponseIndex"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kd.prototype,"onSelectedResponseIndexChange",null);
_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],kd.prototype,"onPopupOpened",null);_.C([_.F({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],kd);
_.B(kd,"ytd-red-cancel-survey-renderer",function(){if(kKi!==void 0)return kKi;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return kKi=R},{mode:1});var GKf;var Gq=function(){var R=_.K.apply(this,arguments)||this;R.closeButtonAriaLabel=_.vk("SBOX_INAPPROPRIATE_CANCEL");return R};
_.H(Gq,_.K);Gq.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
Gq.prototype.onClickClose=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Gq.prototype,"rendererStamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Gq.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],Gq.prototype,"closeButtonAriaLabel",void 0);_.C([_.F({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],Gq);
_.B(Gq,"ytd-search-filter-options-dialog-renderer",function(){if(GKf!==void 0)return GKf;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return GKf=R},{mode:1});var ZIF;var cMj=function(){return function(R){R=R.availabilityType;return R===void 0||R==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||R==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var ZQ=function(){var R=_.K.apply(this,arguments)||this;R.qualityOptions=[];R.upsellOptions=[];R.showUpsellSection=!1;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.rememberSettingsChecked=!1;return R};
_.H(ZQ,_.K);_.l=ZQ.prototype;_.l.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}}}}};
_.l.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.l.updateQualityOptions=function(){if(this.formats===void 0)_.OC(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var R=[],A=[];this.showUpsellSection=!1;for(var Y=_.x(this.formats),P=Y.next();!P.done;P=Y.next())(P=P.value)&&(P.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?A.push(P):R.push(P));R.length&&(this.qualityOptions=xHQ(R));A.length&&(this.showUpsellSection=!0,this.upsellOptions=xHQ(A))}};
_.l.updateRememberString=function(){if(this.downloadQualityPickerEntity)var R=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var A;R=(A=this.data)==null?void 0:A.premiumRememberSettingString}else{var Y;R=(Y=this.data)==null?void 0:Y.rememberSettingString}R=R===void 0?_.vk("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):R;this.rememberSettingsCheckboxRenderer={title:_.iw(R),disabled:!1}};
_.l.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Yh.Object.defineProperties(ZQ.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var R;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(R=this.data)==null?void 0:R.qualityFormats}}});
ZQ.prototype.updateRememberString=ZQ.prototype.updateRememberString;ZQ.prototype.updateQualityOptions=ZQ.prototype.updateQualityOptions;ZQ.prototype.dataChanged=ZQ.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ZQ.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ZQ.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ZQ.prototype,"data",void 0);
_.C([_.U(_.Pf),_.k("design:type",Object)],ZQ.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Boolean)],ZQ.prototype,"selectedUpsellQuality",void 0);_.C([_.S({computed:"computeIcon_(data.premiumIcon)",value:""}),_.k("design:type",String)],ZQ.prototype,"premiumIcon",void 0);_.C([_.S({selector:noo,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.k("design:type",Object)],ZQ.prototype,"downloadQualityPickerEntity",void 0);
_.C([_.S(),_.k("design:type",Array)],ZQ.prototype,"qualityOptions",void 0);_.C([_.S(),_.k("design:type",Array)],ZQ.prototype,"upsellOptions",void 0);_.C([_.S(),_.k("design:type",Object)],ZQ.prototype,"showUpsellSection",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ZQ.prototype,"darkerDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],ZQ.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.C([_.nG("#remember-settings"),_.k("design:type",HTMLInputElement)],ZQ.prototype,"rememberSettingsCheckbox",void 0);_.C([_.S(),_.k("design:type",Object)],ZQ.prototype,"rememberSettingsChecked",void 0);_.C([_.S(),_.k("design:type",Function)],ZQ.prototype,"onRememberSettingsCheckedChanged",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZQ.prototype,"dataChanged",null);
_.C([_.vZ("downloadQualityPickerEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZQ.prototype,"updateQualityOptions",null);_.C([_.vZ("selectedUpsellQuality"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ZQ.prototype,"updateRememberString",null);_.C([_.F({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],ZQ);
_.B(ZQ,"ytd-download-quality-selector-content",function(){if(ZIF!==void 0)return ZIF;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return ZIF=R},{mode:1});var tuj;var tW=function(){var R=_.K.apply(this,arguments)||this;R.selectedUpsellQuality=!1;R.qualityOptions=[];R.darkerDarkTheme=_.v("web_darker_dark_theme");R.useUpsellDismissAlternate=_.v("use_not_now_dl_upsell_dismiss_cta");R.shouldShowAlternateUpsellDimiss=!1;R.rememberSettings=!1;R.rememberSettingsChecked=!1;R.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};R.rememberSettingsCheckedChanged=function(A){R.rememberSettingsChecked=A};
return R};
_.H(tW,_.K);_.l=tW.prototype;
_.l.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iw(_.vk("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.iw(_.vk("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iw(_.vk("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.iw(_.vk("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.l.updateQualityOptions=function(){this.formats===void 0?_.OC(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=xHQ(this.formats)};
_.l.onQualityOptionsSelect=function(R){if(this.qualityOptions&&R){R!==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 A=_.x(this.qualityOptions.entries()),Y=A.next();!Y.done;Y=
A.next()){Y=_.x(Y.value);var P=Y.next().value;Y=Y.next().value;var E=void 0,z=void 0;if(((E=Y)==null?void 0:(z=E.settingsRadioOptionRenderer)==null?void 0:z.id)===R){this.selectedQualityIndex=P;R=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((R=this.formats[P])==null?void 0:R.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.l.onClickSubmit=function(){var R;if((R=this.downloadButtonRenderer)==null||!R.isDisabled){var A,Y;R=(Y=(A=this.data)==null?void 0:A.onSubmitEndpoint)!=null?Y:{};var P,E;if(this.formats&&(((P=_.n(R,_.TI))==null?0:P.videoId)||((E=_.n(R,_.QJ))==null?0:E.playlistId))){var z,c,M,N,y,m;A={formatType:(N=(z=this.formats)==null?void 0:(c=z[(M=this.selectedQualityIndex)!=null?M:0])==null?void 0:c.format)!=null?N:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(y=this.getOfflineEndpoint(R))==null?void 0:(m=y.actionParams)==null?void 0:m.settingsAction)};this.getOfflineEndpoint(R).actionParams=A;this.ytComponentBehavior.resolveCommand(R)}_.OC(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.l.onClickUpsell=function(){var R;if((R=this.upsellButtonRenderer)==null||!R.isDisabled){var A,Y;R=(Y=(A=this.data)==null?void 0:A.upsellEndpoint)!=null?Y:{};this.ytComponentBehavior.resolveCommand(R);_.OC(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);A="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var P,E,z,c;A=(c=(P=this.formats)==null?void 0:(E=P[(z=this.selectedQualityIndex)!=null?z:0])==null?void 0:E.format)!=null?c:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:A}})}};
_.l.onClickClose=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.l.getOfflineSettingsAction=function(R,A){return R?A===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":A:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.l.getOfflineEndpoint=function(R){return _.n(R,_.TI)?_.n(R,_.TI):_.n(R,_.QJ)};
_.Yh.Object.defineProperties(tW.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.iw(_.vk("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var R;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(R=this.data)==null?void 0:R.qualityFormats}}});
tW.prototype.updateQualityOptions=tW.prototype.updateQualityOptions;tW.prototype.dataChanged=tW.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],tW.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],tW.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tW.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Number)],tW.prototype,"selectedQualityIndex",void 0);_.C([_.S(),_.k("design:type",Object)],tW.prototype,"selectedUpsellQuality",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],tW.prototype,"ytdReduxBehavior",void 0);
_.C([_.S({selector:noo,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.k("design:type",Object)],tW.prototype,"downloadQualityPickerEntity",void 0);_.C([_.S(),_.k("design:type",Array)],tW.prototype,"qualityOptions",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],tW.prototype,"darkerDarkTheme",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],tW.prototype,"useUpsellDismissAlternate",void 0);
_.C([_.S(),_.k("design:type",Object)],tW.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.C([_.S(),_.k("design:type",Object)],tW.prototype,"downloadButtonRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],tW.prototype,"upsellButtonRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],tW.prototype,"cancelButtonRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],tW.prototype,"upsellCancelButtonRenderer",void 0);_.C([_.S(),_.k("design:type",Object)],tW.prototype,"rememberSettings",void 0);
_.C([_.S(),_.k("design:type",Object)],tW.prototype,"rememberSettingsChecked",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tW.prototype,"dataChanged",null);_.C([_.vZ("downloadQualityPickerEntity"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],tW.prototype,"updateQualityOptions",null);_.C([_.F({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],tW);
_.B(tW,"ytd-download-quality-selector-renderer",function(){if(tuj!==void 0)return tuj;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return tuj=R},{mode:1});var w8H;var w1=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(w1,_.K);w1.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
w1.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"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],w1.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],w1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],w1.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],w1.prototype,"darkerDarkTheme",void 0);_.C([_.S({computed:"computeIcon_(data.infoIcon)"}),_.k("design:type",Object)],w1.prototype,"infoIcon",void 0);
_.C([_.S({computed:"computeIcon_(data.warningIcon)"}),_.k("design:type",Object)],w1.prototype,"warningIcon",void 0);_.C([_.F({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],w1);
_.B(w1,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(w8H!==void 0)return w8H;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return w8H=R},{mode:1});var uDi;var uL=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(uL,_.K);uL.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
uL.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"}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],uL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],uL.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],uL.prototype,"darkerDarkTheme",void 0);_.C([_.F({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],uL);
_.B(uL,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(uDi!==void 0)return uDi;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return uDi=R},{mode:1});var etn;var eA=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(eA,_.K);eA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
eA.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"}}}}};
eA.prototype.onServiceRequestSentOrCompleted=function(R,A){A&&A.actions&&A.actions.length>0&&_.OC(this.hostElement,"yt-close-popup-action",[this.is])};
eA.prototype.onServiceRequestSentOrCompleted=eA.prototype.onServiceRequestSentOrCompleted;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],eA.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],eA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],eA.prototype,"darkerDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],eA.prototype,"data",void 0);
_.C([_.Qa("yt-service-request-completed"),_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],eA.prototype,"onServiceRequestSentOrCompleted",null);_.C([_.F({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],eA);
_.B(eA,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(etn!==void 0)return etn;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return etn=R},{mode:1});var qYm;var qs=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.submitButtonDisabled=!0;return R};
_.H(qs,_.K);_.l=qs.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.l.onDataChanged=function(){var R,A,Y;if(((R=this.data)==null?void 0:(A=R.confirmButton)==null?void 0:(Y=A.buttonRenderer)==null?void 0:Y.isDisabled)!==void 0){var P,E,z;this.submitButtonDisabled=(P=this.data)==null?void 0:(E=P.confirmButton)==null?void 0:(z=E.buttonRenderer)==null?void 0:z.isDisabled}};
_.l.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.l.updateSubmitButtonDisabledFromBinding=function(R){this.submitButtonDisabled=R.detail.value};
_.l.updateSubmitButtonDisabledFromConfirmCheckbox=function(R){this.submitButtonDisabled=!R.detail.value};
qs.prototype.onDataChanged=qs.prototype.onDataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],qs.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qs.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],qs.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],qs.prototype,"darkerDarkTheme",void 0);
_.C([_.S(),_.k("design:type",Object)],qs.prototype,"submitButtonDisabled",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],qs.prototype,"onDataChanged",null);_.C([_.F({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],qs);
_.B(qs,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(qYm!==void 0)return qYm;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return qYm=R},{mode:1});var LjG;var LN=function(){return _.K.apply(this,arguments)||this};
_.H(LN,_.K);_.Yh.Object.defineProperties(LN.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;return((R=this.data)==null?void 0:R.title)+" "+((A=this.data)==null?void 0:A.metadataPrimary)+" "+((Y=this.data)==null?void 0:Y.metadataSecondary)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],LN.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],LN.prototype,"data",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],LN.prototype,"ariaLabel",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],LN);
_.B(LN,"ytd-compact-product-list-item-renderer",function(){if(LjG!==void 0)return LjG;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return LjG=R},{mode:1});var dtj;var d1=function(){return _.K.apply(this,arguments)||this};
_.H(d1,_.K);d1.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]]"}}}}}};
_.Yh.Object.defineProperties(d1.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],d1.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],d1.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],d1.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],d1.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],d1);
_.B(d1,"ytd-compact-product-list-renderer",function(){if(dtj!==void 0)return dtj;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return dtj=R},{mode:1});var RXo;var R0=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(R0,_.K);_.l=R0.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.l.getBackgroundUrl=function(){var R=this.get("data.headerImage.thumbnails");return R?"url("+_.MH(R,this.hostElement.clientWidth)+")":""};
_.l.onDataChanged=function(){var R=this.getBackgroundUrl();R&&(this.header.style.backgroundImage=R);R=_.F9();var A=_.pO(),Y=this.get("data.trackingParams");Y&&A&&R&&_.ZM(R,A,_.S5(Y));R=_.x(this.hostElement.querySelectorAll("yt-img-shadow"));for(A=R.next();!A.done;A=R.next())A.value.onShow()};
_.l.onPopupClosed=function(R){_.Yw(R).localName==="ytd-membership-post-cancel-renderer"&&_.OC(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
R0.prototype.onPopupClosed=R0.prototype.onPopupClosed;R0.prototype.onDataChanged=R0.prototype.onDataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],R0.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],R0.prototype,"darkerDarkTheme",void 0);
_.C([_.nG("#header"),_.k("design:type",HTMLDivElement)],R0.prototype,"header",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],R0.prototype,"onDataChanged",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],R0.prototype,"onPopupClosed",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],R0);
_.B(R0,"ytd-membership-post-cancel-renderer",function(){if(RXo!==void 0)return RXo;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return RXo=R},{mode:1});var Aof;var AG=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(AG,_.K);AG.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
AG.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],AG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],AG.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],AG.prototype,"darkerDarkTheme",void 0);_.C([_.nG("ytd-feedback-survey-renderer"),_.k("design:type",Object)],AG.prototype,"feedbackSurveyRenderer",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],AG);
_.B(AG,"ytd-sponsorship-confirm-cancel-content",function(){if(Aof!==void 0)return Aof;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Aof=R},{mode:1});var YZj;var YA=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.maybeSubmitFeedback=function(){R.content&&R.content.maybeSubmitFeedback()};
return R};
_.H(YA,_.K);_.l=YA.prototype;_.l.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.l.onYtPopupOpened=function(R,A){A===this&&this.data&&this.data.onOpenCommands&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement);_.OC(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.l.onYtPopupClosed=function(R,A){(A&&A.canceled===!0||A&&A.canceled===!1&&A.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestCompleted=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.l.onYtServiceRequestError=function(R){_.Zk(this.hostElement,R.detail.error.message)};
_.l.onDataChanged=function(){if(this.isAttached){var R=this.backgroundUrl;R&&(_.Mo(this.hostElement).querySelector("#header").style.backgroundImage=R)}};
_.Yh.Object.defineProperties(YA.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var R=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return R?"url("+_.MH(R,this.hostElement.clientWidth)+")":""}}});
YA.prototype.onDataChanged=YA.prototype.onDataChanged;YA.prototype.onYtServiceRequestError=YA.prototype.onYtServiceRequestError;YA.prototype.onYtServiceRequestCompleted=YA.prototype.onYtServiceRequestCompleted;YA.prototype.onYtPopupClosed=YA.prototype.onYtPopupClosed;YA.prototype.onYtPopupOpened=YA.prototype.onYtPopupOpened;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],YA.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],YA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],YA.prototype,"data",void 0);_.C([_.S({value:function(){return _.vk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],YA.prototype,"closeButtonAriaLabel",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],YA.prototype,"darkerDarkTheme",void 0);_.C([_.nG("#scrollable"),_.k("design:type",Object)],YA.prototype,"scrollable",void 0);_.C([_.nG("ytd-sponsorship-confirm-cancel-content"),_.k("design:type",Object)],YA.prototype,"content",void 0);
_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],YA.prototype,"onYtPopupOpened",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],YA.prototype,"onYtPopupClosed",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],YA.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],YA.prototype,"onYtServiceRequestError",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],YA.prototype,"onDataChanged",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],YA);
_.B(YA,"ytd-sponsorship-confirm-cancel-renderer",function(){if(YZj!==void 0)return YZj;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return YZj=R},{mode:_.Nf("kevlar_poly_si_batch_j081")?1:2});var P9G;var Pq=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(Pq,_.K);Pq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Pq.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Pq.prototype,"darkerDarkTheme",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],Pq);
_.B(Pq,"ytd-sponsorships-celebration-content",function(){if(P9G!==void 0)return P9G;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return P9G=
R},{mode:1});var Ee9;var zXY=_.Z7(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),EL=function(){var R=_.K.apply(this,arguments)||this;R.scriptsAppended=!1;R.useFullWidthPrimaryButton=!1;R.buttonOverrides={type:"tonal",style:"overlay-dark"};return R};
_.H(EL,_.K);_.l=EL.prototype;_.l.dataChanged=function(){var R;this.useFullWidthPrimaryButton=!((R=this.data)==null||!R.useFullWidthPrimaryButton)};
_.l.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:_.v("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.onDataChanged=function(){var R;(R=this.header)==null||R.style.setProperty("background-color",this.backgroundColor);if(R=this.headerImageUrl){var A;(A=this.header)==null||A.style.setProperty("background-image",R)}A=_.F9(4);R=_.pO(4);var Y=this.get("data.trackingParams");if(Y&&R&&A){var P=_.S5(Y);_.ZM(A,R,P);_.v("combine_ve_grafts")?_.rU().graftServerVe(Y,R,4):_.ZM(A,R,P)}A=_.x(this.hostElement.querySelectorAll("yt-img-shadow"));for(R=A.next();!R.done;R=A.next())R.value.onShow();if(A=this.get("data.gtmId"))_.wR(A,
_.a1("GL","")),this.setupConversionTracking()};
_.l.setupConversionTracking=function(){if(!this.scriptsAppended){var R=document.createElement("script");var A=_.YU(zXY.join(""));_.Pt(R,A);document.head.appendChild(R);R=document.createElement("noscript");R.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(R);this.scriptsAppended=!0}};
_.l.onPopupClosed=function(R){if(_.Yw(R).localName==="ytd-sponsorships-celebration-renderer"){_.OC(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var A;this.data&&((A=this.data)==null?0:A.dismissCommand)&&_.Qp.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Yh.Object.defineProperties(EL.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Zs(R)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return R?"url("+_.MH(R,this.hostElement.getBoundingClientRect().width)+")":""}}});
EL.prototype.onPopupClosed=EL.prototype.onPopupClosed;EL.prototype.onDataChanged=EL.prototype.onDataChanged;EL.prototype.dataChanged=EL.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],EL.prototype,"data",void 0);
_.C([_.nG("#header"),_.k("design:type",HTMLElement)],EL.prototype,"header",void 0);_.C([_.S(),_.k("design:type",Object)],EL.prototype,"scriptsAppended",void 0);_.C([_.S({type:Boolean,reflectToAttribute:!0}),_.k("design:type",Object)],EL.prototype,"useFullWidthPrimaryButton",void 0);_.C([_.S(),_.k("design:type",Object)],EL.prototype,"buttonOverrides",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EL.prototype,"dataChanged",null);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],EL.prototype,"onDataChanged",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],EL.prototype,"onPopupClosed",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],EL);
_.B(EL,"ytd-sponsorships-celebration-renderer",function(){if(Ee9!==void 0)return Ee9;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return Ee9=R},{mode:1});var ivj;var zM=function(){var R=_.K.apply(this,arguments)||this;R.isToggleChecked=!1;return R};
_.H(zM,_.K);zM.prototype.onDataChanged=function(){var R;this.isToggleChecked=((R=this.data)==null?void 0:R.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
zM.prototype.close=function(){var R;((R=this.data)==null?0:R.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
zM.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var R,A=_.n((R=this.data)==null?void 0:R.switchButton,umf);A&&(this.isToggleChecked&&A.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(A.switchOnInnertubeCommand),!this.isToggleChecked&&A.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(A.switchOffInnertubeCommand))};
zM.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
zM.prototype.onDataChanged=zM.prototype.onDataChanged;_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],zM.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],zM.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],zM.prototype,"isToggleChecked",void 0);_.C([_.S({value:_.vk("CLOSE")}),_.k("design:type",String)],zM.prototype,"closeButtonAriaLabel",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],zM.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],zM);
_.B(zM,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(ivj!==void 0)return ivj;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ivj=R},{mode:1});var llo;var ip=function(){return _.K.apply(this,arguments)||this};
_.H(ip,_.K);_.l=ip.prototype;_.l.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"}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.playerElement.stop()};
_.l.onYtServiceRequestCompleted=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.l.onYtServiceRequestError=function(R){_.Zk(this.hostElement,R.detail.error.message)};
_.l.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.l.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.l.getTier=function(R,A){return!R||!R.tiers||A<0?null:_.n(R.tiers[A],dUo)};
_.l.moreThanOne=function(R){return!!(R&&R.length>1)};
_.l.tierOverviewTap=function(R){var A=this;this.selectedTier=R.model.index;_.RK(this,function(){_.xo(A.hostElement,"yt-refit")})};
_.l.computeSelectedClass=function(R,A){return this.isSelected(R,A)?"selected":""};
_.l.computeButtonAriaPressed=function(R,A){return this.isSelected(R,A)?"true":"false"};
_.l.isSelected=function(R,A){return R===A};
_.l.onDataChanged=function(){_.Mo(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Mo(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 R=_.x(this.hostElement.querySelectorAll("yt-img-shadow")),
A=R.next();!A.done;A=R.next())A.value.onShow();var Y;this.set("selectedTier",(Y=this.get("data.targetTierIndex"))!=null?Y:0);var P;(R=(P=this.data)==null?void 0:P.onVisible)&&this.ytComponentBehavior.resolveCommand(R)};
_.l.initializeVe=function(R){var A=_.F9(),Y=_.pO(),P=this.get("data.trackingParams");Y&&A&&(this.screenLayer=4,A=_.o1(_.KvJ)(void 0,69877,{clientScreenNonce:A,visualElement:Y},void 0,void 0,void 0),_.aK(A,69877,4),Y=_.pO(4),P&&Y&&(P=_.S5(P),_.ZM(A,Y,P),R&&(this.offerVideoVe=_.NV(74659),_.ZM(A,P,this.offerVideoVe))))};
_.l.setHeaderBackground=function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Mo(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Zs(R);if(R=this.getHeaderImage())R=_.MH(R,screen.width),_.Mo(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+R+")"};
_.l.getHeaderImage=function(){var R=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&R?R:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setupVideoPlayer=function(R){var A=this,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1)return Y=A.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),P=A.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.v("kevlar_player_update_killswitch")?A.playerElement.update({args:{autoplay:Y,video_id:R,player_params:P}}):A.playerElement.loadVideoWithPlayerVars({autoplay:Y,video_id:R,player_params:P}),
c.yield(A.playerElement.getPlayerPromise(),2);E=c.yieldResult;E.addEventListener("onStateChange",function(M){A.onPlayerStateChange(M)});
E.setScreenLayer(A.screenLayer);(z=_.F9(4))&&A.offerVideoVe&&_.wH(z,A.offerVideoVe);Y&&(A.pauseOtherPlayers(),A.playerElement.focusOnPlayer(),A.playerElement.getPlayer().hideControls(),_.Ua(_.fn,function(){A.fadeOutHeaderOverlay()},4E3));
_.XH(c)})};
_.l.onPlayerStateChange=function(R){R===1?this.backgroundPlayerElement&&(R=this.backgroundPlayerElement.player_.getPlayerState(),R!==1&&R!==3||this.backgroundPlayerElement.pause()):R===0&&(_.Mo(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Mo(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.l.fadeOutHeaderOverlay=function(){_.Mo(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.l.onHeaderTap=function(){if(this.offerVideo){_.Mo(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var R;((R=this.playerElement.player_)==null?void 0:R.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(R=_.F9(4))&&this.offerVideoVe&&_.qT(R,this.offerVideoVe)}};
_.l.getBackgroundImageLayerClass=function(R){return R?"background-image-layer-with-video":""};
_.l.getHeaderClass=function(R){return R?"header-with-video":""};
_.l.getHeaderOverlayClass=function(R){return R?"header-overlay-with-video":""};
_.l.getTitleContainerClass=function(R,A){return R?"title-container-with-video":A?"title-container-without-video-flexible":"title-container-without-video"};
_.l.tierTitleDisplayStatus=function(R){return this.moreThanOne(R)?"hide":"show"};
_.l.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.is().resolve(_.jv).getPlayerElement():this.backgroundPlayerElement=_.EJ();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var R=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=R===1||R===3;this.backgroundPlayerElement.pause()}};
_.l.isMiniplayerActive=function(){return _.is().resolve(_.jv).isMiniplayerActive()};
_.l.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("selected-tier-changed",this.selectedTier))};
ip.prototype.selectedTierChangedForBinding=ip.prototype.selectedTierChangedForBinding;ip.prototype.onDataChanged=ip.prototype.onDataChanged;ip.prototype.onYtPopupClosed=ip.prototype.onYtPopupClosed;ip.prototype.onYtPopupOpened=ip.prototype.onYtPopupOpened;ip.prototype.onYtServiceRequestError=ip.prototype.onYtServiceRequestError;ip.prototype.onYtServiceRequestCompleted=ip.prototype.onYtServiceRequestCompleted;
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ip.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ip.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ip.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],ip.prototype,"data",void 0);_.C([_.S({value:0}),_.k("design:type",Number)],ip.prototype,"selectedTier",void 0);
_.C([_.S({value:""}),_.k("design:type",String)],ip.prototype,"offerVideo",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],ip.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.C([_.S({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.tk(this)}}),
_.k("design:type",String)],ip.prototype,"playerId",void 0);_.C([_.nG("tp-yt-paper-dialog-scrollable"),_.k("design:type",Object)],ip.prototype,"scrollable",void 0);_.C([_.nG("ytd-sponsorships-tier-renderer"),_.k("design:type",Object)],ip.prototype,"tierRenderer",void 0);_.C([_.nG("#player"),_.k("design:type",Object)],ip.prototype,"playerElement",void 0);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ip.prototype,"onYtServiceRequestCompleted",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ip.prototype,"onYtServiceRequestError",null);
_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ip.prototype,"onYtPopupOpened",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ip.prototype,"onYtPopupClosed",null);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ip.prototype,"onDataChanged",null);
_.C([_.vZ("selectedTier"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ip.prototype,"selectedTierChangedForBinding",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],ip);
_.B(ip,"ytd-sponsorships-offer-renderer",function(){if(llo!==void 0)return llo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return llo=R},{mode:_.Nf("kevlar_poly_si_batch_j077")?1:2});var xeo;var lp=function(){var R=_.K.apply(this,arguments)||this;R.buttonOverrides={type:"filled",style:"mono"};return R};
_.H(lp,_.K);lp.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}}}}}};
lp.prototype.backgroundColorChanged=function(){var R,A,Y,P=(A=_.n((R=this.data)==null?void 0:R.content,RE9))==null?void 0:(Y=A.backgroundColor)==null?void 0:Y.backgroundColor;P&&(R=_.G9(P),_.Mo(this.hostElement).querySelector("#banner").style.backgroundColor=R,_.Mo(this.hostElement).querySelector("#abstract-art").style.backgroundColor=R)};
lp.prototype.attached=function(){this.JSC$20587_scroller&&(this.JSC$20587_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20587_scroller.attached&&typeof this.JSC$20587_scroller.attached==="function"&&this.JSC$20587_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
lp.prototype.backgroundColorChanged=lp.prototype.backgroundColorChanged;_.C([_.S(),_.k("design:type",Object)],lp.prototype,"data",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],lp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("#scroller"),_.k("design:type",Object)],lp.prototype,"JSC$20587_scroller",void 0);_.C([_.S(),_.k("design:type",Object)],lp.prototype,"buttonOverrides",void 0);
_.C([_.vZ("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],lp.prototype,"backgroundColorChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],lp);
_.B(lp,"ytd-sponsorships-promotion-celebration-renderer",function(){if(xeo!==void 0)return xeo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return xeo=R},{mode:_.Nf("kevlar_poly_si_batch_j077")?1:2});var coF;var OvN;var xA=function(){return _.K.apply(this,arguments)||this};
_.H(xA,_.K);xA.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
xA.prototype.computeIsInitiallyChecked=function(R){return R===1};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],xA.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],xA.prototype,"data",void 0);_.C([_.nG("#checkbox"),_.k("design:type",Object)],xA.prototype,"checkbox",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],xA);
_.B(xA,"ytd-subscription-toggle-option-renderer",function(){if(OvN!==void 0)return OvN;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return OvN=R},{mode:1});var cq=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return R};
_.H(cq,_.K);cq.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"}}}};
cq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cq.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var R=_.Mo(this.hostElement).querySelector("#options").selected;R=this.data.options[R].subscriptionRadioOptionRenderer.serviceEndpoint;var A=_.Mo(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");A&&R&&R.modifyChannelNotificationPreferenceEndpoint&&(A=A.getValue())&&(R.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[A]);_.is().resolve(_.ls).resolveCommand(R,{form:{element:this.hostElement}});
_.OC(this.hostElement,"yt-close-popup-action")};
_.Yh.Object.defineProperties(cq.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var R=this.data.options,A=0;A<R.length;A++){var Y=R[A].subscriptionRadioOptionRenderer;if(Y&&Y.selected)return A}return null}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],cq.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],cq.prototype,"eventForwardingBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],cq.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],cq.prototype,"darkerDarkTheme",void 0);_.C([_.X("data.options"),_.k("design:type",Object),_.k("design:paramtypes",[])],cq.prototype,"initialIndex",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],cq);
_.B(cq,"ytd-subscription-notification-options-renderer",function(){if(coF!==void 0)return coF;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return coF=R},{mode:1});var M4m;var OL=function(){return _.K.apply(this,arguments)||this};
_.H(OL,_.K);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],OL.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],OL.prototype,"data",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],OL);
_.B(OL,"ytd-tvfilm-offer-groups-renderer",function(){if(M4m!==void 0)return M4m;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return M4m=R},{mode:1});var sfn;var MS=function(){var R=_.K.apply(this,arguments)||this;R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(MS,_.K);_.l=MS.prototype;_.l.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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.l.computeThumbnailClass=function(R){return R.thumbnailOverlays?R.isShow?"thumbnail-show":"thumbnail-movie":R.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.l.computeCommerceSectionClass=function(R){return R.offers&&R.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.l.computeTitleClass=function(R){return R.offers&&R.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.l.onDataChanged=function(){[].concat(_.py(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(R){R.onShow()})};
MS.prototype.onDataChanged=MS.prototype.onDataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],MS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],MS.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],MS.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],MS.prototype,"darkerDarkTheme",void 0);
_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],MS.prototype,"onDataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],MS);
_.B(MS,"ytd-ypc-offers-overlay-renderer",function(){if(sfn!==void 0)return sfn;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return sfn=R},{mode:_.Nf("kevlar_poly_si_batch_j028")?1:2});var Njf;var V4g=function(){this.usedMethods=new Set};
V4g.prototype.add=function(R){this.usedMethods.add(R)};
V4g.prototype.reset=function(){this.usedMethods.clear()};var meG=function(R,A){this.query=R;this.previousSearchQuery=A;this.id=Joj++;if(!yof){A=_.a1("SBOX_SETTINGS");R="https://"+((A==null?void 0:A.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var Y=A==null?void 0:A.REQUEST_LANGUAGE;Y&&(R+="&hl="+Y);(Y=A==null?void 0:A.REQUEST_DOMAIN)&&(R+="&gl="+Y);R+="&client=youtube&gs_ri=youtube";(Y=A==null?void 0:A.SUGG_EXP_ID)&&(R+="&sugexp="+encodeURIComponent(Y));(Y=A==null?void 0:A.PSUGGEST_TOKEN)&&(R+="&tok="+Y);(A=
A==null?void 0:A.SESSION_INDEX)&&(R+="&authuser="+A);_.v("desktop_enable_visual_suggest")&&(R+="&h=180&w=320&ytvs=1");yof=R}},TjH=function(R){var A="q="+encodeURIComponent(R.query);
R.previousSearchQuery&&(A+="&pq="+encodeURIComponent(R.previousSearchQuery));return A},Qfj=function(){var R=_.a1("SBOX_SETTINGS"),A={};
if(R==null?0:R.SEND_VISITOR_DATA)A["X-Goog-Visitor-Id"]=R==null?void 0:R.VISITOR_DATA;return A},veg=function(R){var A=yof;
A+="&gs_id="+R.id.toString(36);A+="&q="+encodeURIComponent(R.query);A+="&cp="+R.query.length;R.previousSearchQuery&&(A+="&pq="+encodeURIComponent(R.previousSearchQuery));(R=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(A+="&video_id="+R);return A},Joj=0,yof="";var geY=_.gp.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,nem=_.gp.SEARCH_ENTITY_SUGGESTION_MOVIE,Hvj=_.gp.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,roo=_.gp.SEARCH_ENTITY_SUGGESTION_TV_SHOW,De0=function(R,A){this.text=R;this.bold=A},UeN=function(R,A,Y){this.input=A;
this.index=Y;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=R[0];this.type=R[1];this.subtypes=R[2];var P;this.displayText=bz((P=R[3])==null?void 0:P.b);var E;this.ignoredPrefix=bz((E=R[3])==null?void 0:E.a);var z,c;this.hasNewVideo=((z=R[3])==null?void 0:(c=z.zam)==null?void 0:c.toString())==="true"?!0:!1;var M;this.visualSuggestUrl=(M=R[3])==null?void 0:M.zai;var N;this.entityType=bz((N=R[3])==null?void 0:N.zap);var y;this.entityName=bz((y=R[3])==null?void 0:y.zao);var m;A=bz((m=
R[3])==null?void 0:m.zaf);var T;this.entityMid=(T=R[3])==null?void 0:T.zae;m=Mig(this.subtypes,this.entityMid);if(A&&m){if(A){T="";switch(m){case "YOUTUBE_ENTITY_TYPE_SONG":T=Hvj;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":T=geY;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":T=roo;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":T=nem}m=m==="YOUTUBE_ENTITY_TYPE_SONG"||m==="YOUTUBE_ENTITY_TYPE_ALBUM"?T+" \u2022  \u2022 "+A:A}else m="";this.entitySubtitle=m}var Q;this.externalChannelId=(Q=R[3])==null?void 0:Q.zav;var g;
this.entityThumbnailAttributionUrl=(g=R[3])==null?void 0:g.zaq},Xam=function(R,A){var Y=[],P,E=(P=R.displayText)!=null?P:R.text;
(A==null?0:A.useEntityName)&&$eG(R)&&R.entityName&&(E=R.entityName);if(R.type===33)return Y.push(new De0(E,!1)),Y;if(E.length>=R.input.length&&E.substring(0,R.input.length)===R.input)Y.push(new De0(R.input,!1)),Y.push(new De0(E.substring(R.input.length),!0));else{var z=new Set(R.input.split(/\s/)),c=E.split(/\s/);Y=c.map(function(M,N){return new De0(M.trim()+(N===c.length-1?"":" "),!z.has(M))})}return Y},$eG=function(R){var A=!!Mig(R.subtypes);
R=!!R.entityMid;return A||R};var SZW=function(R){this.rawResponse=["",[],{}];this.suggestions=[];try{var A=JSON.parse(sEF(R));if(typeof A==="object"&&A!==null)this.rawResponse=A;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(P){console.log("Suggest: Failed to parse SuggestResponse!");return}var Y=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(P,E){return new UeN(P,Y,E)})};var IlN=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new V4g;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20624_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},KNf,WNG=function(){KNf||(KNf=new IlN);
return KNf};
IlN.prototype.updateSuggestions=function(R){var A=this;this.availableSuggestions.forEach(function(Y){A.previousSuggestions[Y]=!0});
this.availableSuggestions=R.map(function(Y){var P=Y.type.toString();Y.subtypes.length>0&&(P+="i"+Y.subtypes.join("i"),P+="k"+Y.suggestionSources.COMPLETE_SERVER.toString());return P})};
var jfW=function(R,A){var Y=Date.now();R.firstEditTime<0&&(R.firstEditTime=Y);A&&(R.lastQueryBuildTime=Y);R.lastEditTime=Y};
IlN.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20624_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var bvN=function(R){var A="";R.availableSuggestions.forEach(function(E){delete R.previousSuggestions[E]});
for(var Y=_.x(Object.keys(R.previousSuggestions)),P=Y.next();!P.done;P=Y.next())P=P.value,R.previousSuggestions[P]&&(A+=(A?"j":"")+P);return A},flN=function(R,A){var Y=[];
A&&(Y[1]=A.toString());Y[0]="youtube";Y[7]=Date.now()-R.startTime;Y[6]=R.sessionNumber;R.zeroPrefixSuggestionCount>=0&&(Y[33]=R.zeroPrefixSuggestionCount);Y[13]=R.outOfSyncResponseCount;if(R.availableSuggestions.length>0){for(var P=A="",E=0,z=_.x(R.availableSuggestions),c=z.next();!c.done;c=z.next())c=c.value,c!==P&&(E>1&&(A+="l"+E),A+=(P?"j":"")+c,E=0,P=c),E+=1;E>1&&(A+="l"+E);Y[3]=A}Y[35]=bvN(R);R.selectedSuggestionIndex>=0&&(Y[2]=R.selectedSuggestionIndex);var M;if(A=(M=_.a1("SBOX_SETTINGS"))==
null?void 0:M.SUGG_EXP_ID)Y[19]=R.normalize(A),M=0,R.experimentTriggeredBeforeFinal&&(M|=1),R.experimentTriggeredFinal&&(M|=2),Y[20]=M;Y[26]=Array.from(R.inputMethodsTracker.usedMethods).join("j");if(R.JSC$20624_totalRoundTripTime>0){Y[15]=R.JSC$20624_totalRoundTripTime;Y[14]=R.maxRoundTripTime;M=[];for(E=A=0;E<10;E++)P=R.roundTripTimeHistogram[E],P===0?A++:(A>1?M.push(E+"-"+P):A===1?M.push("0j"+P):M.push(P.toString()),A=0);M=M.join("j");Y[16]=M}R.zeroPrefixRoundTripTime>0&&(Y[36]=R.zeroPrefixRoundTripTime);
R.lastQueryBuildTime>0&&(Y[18]=R.lastQueryBuildTime-R.startTime);R.firstEditTime>0&&(Y[4]=R.firstEditTime-R.startTime);R.lastEditTime>0&&(Y[5]=R.lastEditTime-R.startTime);return Y.join(".")};
IlN.prototype.normalize=function(R){return R.replaceAll(".","-")};
var paQ=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var sL=function(){var R=_.K.apply(this,arguments)||this;R.microphoneSpinnerActive=!1;R.noAnimations=!1;R.boundExitClick=function(){R.onExitButtonClick()};
R.speechOverlayClassName="";R.isLevelAnimating=!1;R.playCloseDialogAudioFeedback=!0;R.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return R};
_.H(sL,_.K);_.l=sL.prototype;_.l.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.l.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=rjN()};
_.l.dataChanged=function(){this.logDialog()};
_.l.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var R;(R=this.manager.audioPlayer)!=null&&(R.JSC$19945_audioEnabled=!1)}this.manager.stop();(R=this.manager.audioPlayer)!=null&&(R.JSC$19945_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.l.handleSpeechQueryCompleteAction=function(R){var A=R.navigationAction;A&&(R.trackingParams&&_.rU().graftServerVe(R.trackingParams,this.dialogVe,5),_.xo(this.hostElement,"yt-navigate",{endpoint:A,tempData:this.getNavigationParams(A),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.l.onExitButtonClick=function(){this.closeDialog()};
_.l.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var R;if((R=this.manager)!=null){var A;(A=R.audioPlayer)==null||y9(A,"failure");R.setState("microphone-off");R.stop()}}else(R=this.manager)==null||R.start()};
_.l.transcriptionChanged=function(){var R,A;(((R=this.transcription)==null?0:R.low)||((A=this.transcription)==null?0:A.high))&&this.setState("transcribing",this.transcription)};
_.l.stateChanged=function(){this.setState(this.state,this.transcription)};
_.l.logDialog=function(){var R;(R=this.data)!=null&&R.trackingParams&&(R=_.rU(),_.$5(R,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=R.graftServerVe(this.data.trackingParams,void 0,5))};
_.l.getNavigationParams=function(R){var A={};if(_.v("web_yt_searchbox")){var Y=WNG();Y.inputMethodsTracker.add(6);Y=flN(Y,15);A.gs_l=Y;var P;A.oq=((P=_.n(R,_.Ud))==null?void 0:P.query)||""}else if(R=window.ytvoicesearchloggingparams){if(R=R())A.oq=R.oq,A.gs_l=R.gs_l}else _.tv(Error("yl"));return A};
_.l.closeDialog=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.l.setState=function(R,A){if(this.data){var Y=this.data,P={};switch(R){case "listening":P={headerText:Y.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:Y.microphoneButtonAriaLabel};break;case "timeout":P={headerText:Y.promptHeader,microphoneState:"try-again",microphoneLabel:Y.promptMicrophoneLabel,microphoneAriaLabel:Y.promptMicrophoneLabel};break;case "microphone-off":P={headerText:Y.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:Y.promptMicrophoneLabel,
microphoneAriaLabel:Y.promptMicrophoneLabel};break;case "transcribing":(A==null?0:A.low)||(A==null?0:A.high)?P={transcriptionLow:A==null?void 0:A.low,transcriptionHigh:A==null?void 0:A.high,microphoneState:"speaking",microphoneAriaLabel:Y.microphoneButtonAriaLabel}:P={headerText:Y.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:Y.microphoneButtonAriaLabel};break;case "processing":P={headerText:Y.loadingHeader,microphoneState:"processing",microphoneAriaLabel:Y.microphoneButtonAriaLabel};
break;case "offline":P={headerText:Y.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:Y.connectionErrorMicrophoneLabel,microphoneAriaLabel:Y.connectionErrorMicrophoneLabel};break;case "permission":P={headerText:Y.permissionsHeader,bodyLine1:Y.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:Y.permissionsSubtext};break;case "permission-denied":P={headerText:Y.disabledHeader,bodyLine1:Y.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:Y.disabledSubtext}}P.className=
R;this.speechOverlayState=P;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.l.setMicrophoneState=function(R){var A=this.isLevelAnimating;this.isLevelAnimating=R==="speaking";!A&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=R==="processing"&&!this.noAnimations};
_.l.setClass=function(R){this.speechOverlayClassName&&_.No(this.hostElement,this.speechOverlayClassName,!1);R&&(this.speechOverlayClassName=R,_.No(this.hostElement,R,!0))};
_.l.runLevelAnimation=function(){var R=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var A=1+Math.random()*.75,Y=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+Y/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+A+")");_.fn.addJob(function(){R.runLevelAnimation()},3,Y)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
sL.prototype.stateChanged=sL.prototype.stateChanged;sL.prototype.transcriptionChanged=sL.prototype.transcriptionChanged;sL.prototype.onPopupClosed=sL.prototype.onPopupClosed;sL.prototype.dataChanged=sL.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],sL.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],sL.prototype,"rendererStamperBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],sL.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],sL.prototype,"eventForwardingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],sL.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],sL.prototype,"speechOverlayState",void 0);
_.C([_.S(),_.k("design:type",Object)],sL.prototype,"microphoneSpinnerActive",void 0);_.C([_.S({type:_.v("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.k("design:type",Object)],sL.prototype,"noAnimations",void 0);_.C([_.S({selector:function(R){var A;return(A=R.voiceSearch)==null?void 0:A.transcription}}),
_.k("design:type",Object)],sL.prototype,"transcription",void 0);_.C([_.S({selector:function(R){var A;return(A=R.voiceSearch)==null?void 0:A.overlay}}),
_.k("design:type",String)],sL.prototype,"state",void 0);_.C([_.S(),_.k("design:type",Object)],sL.prototype,"boundExitClick",void 0);_.C([_.nG("#microphone-levels"),_.k("design:type",HTMLElement)],sL.prototype,"level",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sL.prototype,"dataChanged",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sL.prototype,"onPopupClosed",null);
_.C([_.Ul("transcription"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sL.prototype,"transcriptionChanged",null);_.C([_.Ul("state"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],sL.prototype,"stateChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],sL);
_.B(sL,"ytd-voice-search-dialog-renderer",function(){if(Njf!==void 0)return Njf;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return Njf=R},{mode:1});var FNi;var NS=function(){var R=_.K.apply(this,arguments)||this;R.isOverlay=!1;R.hidden=!1;return R};
_.H(NS,_.K);_.l=NS.prototype;_.l.onPopupClosed=function(){this.toggleIconState(!1)};
_.l.computeIcon=function(){var R,A,Y;return(A=_.n((R=this.data)==null?void 0:R.icon,zE0))==null?void 0:(Y=A.icon)==null?void 0:Y.iconType};
_.l.computeIconBadgeShape=function(){var R;return{iconBadgeType:"cart",iconBadgeText:(R=this.iconBadgeEntity)==null?void 0:R.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.l.onClick=function(){var R;(R=this.data)!=null&&R.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.l.computeHidden=function(R){return!R};
_.l.toggleIconState=function(R){this.iconButton&&(this.iconButton.pressed=R)};
NS.prototype.onPopupClosed=NS.prototype.onPopupClosed;_.C([_.U(_.Pf),_.k("design:type",Object)],NS.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],NS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],NS.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],NS.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],NS.prototype,"isOverlay",void 0);
_.C([_.S({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.k("design:type",Object)],NS.prototype,"hidden",void 0);_.C([_.S({selectorArgs:["data.iconBadgeEntityKey"],selector:function(R,A){return _.mc(R.entities,"iconBadgeEntity",A)}}),
_.k("design:type",Object)],NS.prototype,"iconBadgeEntity",void 0);_.C([_.nG("yt-icon-button"),_.k("design:type",HTMLButtonElement)],NS.prototype,"iconButton",void 0);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],NS.prototype,"onPopupClosed",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],NS);
_.B(NS,"ytd-icon-badge-topbar-button-renderer",function(){if(FNi!==void 0)return FNi;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return FNi=R},{mode:1});var BjG;var Vt=function(){var R=_.K.apply(this,arguments)||this;R.premiumOptions=[];R.darkerDarkTheme=_.v("web_darker_dark_theme");return R};
_.H(Vt,_.K);Vt.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Yh.Object.defineProperties(Vt.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Vt.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Vt.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Array)],Vt.prototype,"premiumOptions",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],Vt.prototype,"darkerDarkTheme",void 0);_.C([_.X("premiumOptions"),_.k("design:type",Object),_.k("design:paramtypes",[])],Vt.prototype,"hasPremiumOptions",null);
_.C([_.F({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Vt);
_.B(Vt,"ytd-offline-promo-content",function(){if(BjG!==void 0)return BjG;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!data.description]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return BjG=R},{mode:1});var ali;var JG=function(){var R=_.K.apply(this,arguments)||this;R.premiumOptions=[];return R};
_.H(JG,_.K);JG.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var R;this.premiumOptions=OYN((R=this.data)==null?void 0:R.formats)};
JG.prototype.onClickSubmit=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var R;(R=_.EJ())==null||R.pause()};
JG.prototype.attached=function(){this.JSC$20644_scroller&&(this.JSC$20644_scroller.dialogElement=this.hostElement.parentNode)};
_.Yh.Object.defineProperties(JG.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
JG.prototype.dataChanged=JG.prototype.dataChanged;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],JG.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],JG.prototype,"data",void 0);
_.C([_.S({computed:"computeIcon_(data.headersIcon)",value:""}),_.k("design:type",String)],JG.prototype,"headersIcon",void 0);_.C([_.S(),_.k("design:type",Array)],JG.prototype,"premiumOptions",void 0);_.C([_.nG("#scroller"),_.k("design:type",Object)],JG.prototype,"JSC$20644_scroller",void 0);_.C([_.X("headersIcon"),_.k("design:type",Object),_.k("design:paramtypes",[])],JG.prototype,"showIcon",null);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],JG.prototype,"dataChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],JG);
_.B(JG,"ytd-offline-promo-renderer",function(){if(ali!==void 0)return ali;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ali=R},{mode:1});var C9i;var m9=function(){var R=_.K.apply(this,arguments)||this;R.playbackPauseInterval=NaN;R.isLoading=!1;R.hasError=!1;R.dialogClass="";R.youtubeLabel=_.vk("LOGO_ALT_LABEL",{},"YouTube Home");R.logoName="yt-logos-ext:yt-logo-updated";R.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return R};
_.H(m9,_.K);_.l=m9.prototype;_.l.onDataChange=function(){var R;if(this.showEOMV1Text=!((R=this.data)==null||!R.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.l.attached=function(){this.pausePlayer()};
_.l.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.l.handleLangSelect=function(R){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[R.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.l.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.l.handleSaveConsent=function(R){var A=this;this.showLoadingSpinner();this.showLoadingSpinner();MFi(_.n(R,iH9)).catch(function(Y){_.pK(new _.XN("Something went wrong when save consent "+(Y.message?Y.message:Y)+"."));A.hideLoadingSpinner();A.showErrorMessage()})};
_.l.handleDisablePersonalization=function(R){var A=this;this.showLoadingSpinner();so0(_.n(R,z1f)).then(function(){A.dialog.close();A.resumePlayer()}).catch(function(Y){_.pK(new _.XN("Something went wrong when disable personalization "+(Y.message?Y.message:Y)+"."));
A.hideLoadingSpinner();A.showErrorMessage()})};
_.l.showLoadingSpinner=function(){var R=this;this.showSpinnerJobId=_.fn.addLowPriorityJob(function(){R.isLoading=!0},500)};
_.l.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.fn.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.l.showErrorMessage=function(){var R=this;this.hasError=!0;_.fn.addLowPriorityJob(function(){R.hasError=!1},2E3)};
_.l.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.yQ(function(){try{var R=_.EJ();R&&R.pause()}catch(A){}},100))};
_.l.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var R=_.EJ();R&&R.play()}catch(A){}};
_.Yh.Object.defineProperties(m9.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.eomV1Text)return[];R=[];for(var A=["SHIELD","WARNING","BAR_CHART"],Y=this.data.eomV1Text.essentialCookieMsg.items,P=0;P<A.length&&P<Y.length;P++)R.push({icon:A[P],text:Y[P]});return R}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var R;if((R=this.data)==null||!R.eomV1Text)return[];R=[];for(var A=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],Y=this.data.eomV1Text.nonEssentialCookieMsg.items,P=0;P<A.length&&P<Y.length;P++)R.push({icon:A[P],text:Y[P]});return R}}});
m9.prototype.onDataChange=m9.prototype.onDataChange;_.C([_.S(),_.k("design:type",Object)],m9.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],m9.prototype,"showEOMV1Text",void 0);_.C([_.S(),_.k("design:type",Object)],m9.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Object)],m9.prototype,"hasError",void 0);_.C([_.S(),_.k("design:type",Number)],m9.prototype,"showSpinnerJobId",void 0);_.C([_.S(),_.k("design:type",Object)],m9.prototype,"dialogClass",void 0);
_.C([_.nG("#dialog"),_.k("design:type",Object)],m9.prototype,"dialog",void 0);_.C([_.nG("#cb-header"),_.k("design:type",HTMLElement)],m9.prototype,"header",void 0);_.C([_.nG("#lang-select"),_.k("design:type",HTMLElement)],m9.prototype,"langSelect",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],m9.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],m9.prototype,"ytComponentBehavior",void 0);
_.C([_.S(),_.k("design:type",String)],m9.prototype,"youtubeLabel",void 0);_.C([_.S(),_.k("design:type",Object)],m9.prototype,"logoName",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],m9.prototype,"onDataChange",null);_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],m9.prototype,"eomEssentialCookieMsgItems",null);
_.C([_.X("data"),_.k("design:type",Array),_.k("design:paramtypes",[])],m9.prototype,"eomNonEssentialCookieMsgItems",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],m9);
_.B(m9,"ytd-consent-bump-v2-lightbox",function(){if(C9i!==void 0)return C9i;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return C9i=R},{mode:1});var hXW;var TM=function(){return _.K.apply(this,arguments)||this};
_.H(TM,_.K);TM.prototype.ready=function(){if(!_.DO()||Q29)var R=!0;else Q29=!0,R=!1;R||(R=document.querySelector("ytd-app"),R||(R=document.body),this.internalLightBox=_.Mo(R).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.C([_.S(),_.k("design:type",Object)],TM.prototype,"data",void 0);_.C([_.nG("#lightbox"),_.k("design:type",Object)],TM.prototype,"lightBox",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],TM);
_.B(TM,"ytd-consent-bump-v2-renderer",function(){if(hXW!==void 0)return hXW;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return hXW=R},{mode:1});var oef;var kHo;var GHf;var Qt=function(){return _.K.apply(this,arguments)||this};
_.H(Qt,_.K);_.l=Qt.prototype;_.l.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&SRf(this.toastManager,this.toastType)};
_.l.open=function(R){this.toast&&(this.ephemeralAction&&_.is().resolve(_.Ga).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=R!=null?R:0,this.toastManager.enqueue(this.toast,R)):this.toast.open())};
_.l.close=function(R){var A;(A=this.toast)==null||A.close();this.toastManager&&R===1&&SRf(this.toastManager,R)};
_.l.refit=function(){var R;(R=this.toast)==null||R.refit()};
_.l.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var R;(R=this.toast)==null||R.close()}};
_.l.setVerticalOffset=function(R){this.toast&&(this.toast.verticalOffset=R,this.toast.fit())};
_.l.computeButtonClass_=function(R){return R?"toast-button":""};
_.l.computeText_=function(R){return _.R4(R)};
_.l.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Nv("toast-opened-changed",this.toastOpened))};
_.l.updateToastOpenedFromBinding=function(R){this.toastOpened=R.detail.value};
_.Yh.Object.defineProperties(Qt.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var R,A,Y=(R=this.data)==null?void 0:(A=R.actionButton)==null?void 0:A.buttonRenderer;return(Y==null?void 0:Y.command)||(Y==null?void 0:Y.serviceEndpoint)||(Y==null?void 0:Y.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var R=[],A;((A=this.data)==null?0:A.responseText)&&R.push(_.R4(this.data.responseText));var Y;((Y=this.data)==null?0:Y.subText)&&R.push(_.R4(this.data.subText));var P,E;if((P=this.data)==null?0:(E=P.actionButton)==null?0:E.buttonRenderer){var z,c;R.push(((z=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label)||_.R4(this.data.actionButton.buttonRenderer.text))}return R.filter(function(M){return M}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var R,A;return(A=(R=this.toast)==null?void 0:R.opened)!=null?A:!1}}});
Qt.prototype.toastOpenedChangedForBinding=Qt.prototype.toastOpenedChangedForBinding;Qt.prototype.toastOpenedChanged=Qt.prototype.toastOpenedChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],Qt.prototype,"ytEventForwardingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Qt.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Qt.prototype,"duration",void 0);
_.C([_.S(),_.k("design:type",Number)],Qt.prototype,"toastType",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Qt.prototype,"useCloseButton",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Qt.prototype,"closeToastOnActionButtonClick",void 0);_.C([_.S({value:function(){return _.vk("SBOX_INAPPROPRIATE_CANCEL")}}),
_.k("design:type",String)],Qt.prototype,"closeButtonAriaLabel",void 0);_.C([_.S(),_.k("design:type",Boolean)],Qt.prototype,"toastOpened",void 0);_.C([_.S(),_.k("design:type",Boolean)],Qt.prototype,"hasOpened",void 0);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qt.prototype,"command",null);_.C([_.X("labelText","command","duration"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qt.prototype,"ephemeralAction",null);
_.C([_.X("ephemeralAction"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Qt.prototype,"hasEphemeralAction",null);_.C([_.nG("#toast"),_.k("design:type",Object)],Qt.prototype,"toast",void 0);_.C([_.S({value:function(){return{style:"call-to-action-inverse"}}}),
_.k("design:type",Object)],Qt.prototype,"buttonOverrides",void 0);_.C([_.S({value:{style:"mono-inverse"}}),_.k("design:type",Object)],Qt.prototype,"closeButtonOverrides",void 0);_.C([_.S({value:function(){return _.is().resolve(_.z3(_.aD))}}),
_.k("design:type",Object)],Qt.prototype,"toastManager",void 0);_.C([_.X("data.responseText","data.subText","data.actionButton"),_.k("design:type",Object),_.k("design:paramtypes",[])],Qt.prototype,"labelText",null);_.C([_.vZ("toastOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qt.prototype,"toastOpenedChanged",null);
_.C([_.vZ("toastOpened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Qt.prototype,"toastOpenedChangedForBinding",null);_.C([_.CG({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Qt);
_.B(Qt,"yt-notification-action-renderer",function(){if(GHf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;kHo===void 0&&(kHo=document.createElement("template"));var P=kHo;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);GHf=R}R=GHf;return R},{mode:2});var vq=function(){var R=_.K.apply(this,arguments)||this;R.duration=4E3;R.downloadingCount=0;R.downloadedCount=0;R.downloadingOnlySmartDownloads=!1;R.sessionTotalDownloads=0;R.sessionDownloaded=0;R.previousSessionsDownloaded=0;R.totalDownloadPercentage=0;R.currentDownloadProgress=0;R.currentDownloadPercentage=0;R.isLeaderTab=!0;R.isFullScreen=!1;R.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};R.boundBeforeUnload=function(A){R.isLeaderTab&&R.downloadingCount>0&&(A.preventDefault(),
A.returnValue=!0)};
return R};
_.H(vq,_.K);_.l=vq.prototype;
_.l.open=function(){this.updateDownloadState();if(this.data){var R=this.sessionDownloaded+1,A=this.sessionTotalDownloads>1?_.vk("VIDEOS_DOWNLOADING_RATIO",{downloaded:R.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+R+"/"+this.sessionTotalDownloads):_.vk("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(A=this.sessionTotalDownloads>1?_.vk("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:R.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
R+"/"+this.sessionTotalDownloads):_.vk("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));R=this.isLeaderTab?_.vk("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.R4(this.data.responseText)!==A||_.R4(this.data.subText)!==R)this.set("data.responseText",_.dF(A)),this.set("data.subText",_.dF(R)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.l.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.l.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.l.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.l.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var R=this.downloadedCount-this.previousSessionsDownloaded;R<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-R);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.l.handleFullscreenChange=function(R){(this.isFullScreen=R)||this.updatePopup()};
vq.prototype.updateCurrentDownloadProgress=vq.prototype.updateCurrentDownloadProgress;vq.prototype.updatePopup=vq.prototype.updatePopup;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],vq.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],vq.prototype,"ytEventForwardingBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],vq.prototype,"actionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],vq.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],vq.prototype,"duration",void 0);_.C([_.S({selector:function(R){return _.lYV(R.entities).length}}),
_.k("design:type",Object)],vq.prototype,"downloadingCount",void 0);_.C([_.S({selector:goY}),_.k("design:type",Object)],vq.prototype,"downloadedCount",void 0);_.C([_.S({selector:function(R){var A=_.lYV(R.entities);return voN(R.entities,A)}}),
_.k("design:type",Object)],vq.prototype,"downloadingOnlySmartDownloads",void 0);_.C([_.S(),_.k("design:type",Object)],vq.prototype,"sessionTotalDownloads",void 0);_.C([_.S(),_.k("design:type",Object)],vq.prototype,"sessionDownloaded",void 0);_.C([_.S(),_.k("design:type",Object)],vq.prototype,"previousSessionsDownloaded",void 0);_.C([_.S(),_.k("design:type",Object)],vq.prototype,"totalDownloadPercentage",void 0);
_.C([_.S({selector:function(R){var A;R=(A=_.lYV(R.entities))!=null?A:[];return R.length>0?_.elk(R.slice(-1)):0}}),
_.k("design:type",Object)],vq.prototype,"currentDownloadProgress",void 0);_.C([_.S(),_.k("design:type",Object)],vq.prototype,"currentDownloadPercentage",void 0);_.C([_.S({selector:_.smJ}),_.k("design:type",Object)],vq.prototype,"isLeaderTab",void 0);_.C([_.nG("yt-notification-action-renderer"),_.k("design:type",Object)],vq.prototype,"notificationActionRenderer",void 0);
_.C([_.Ul("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vq.prototype,"updatePopup",null);_.C([_.Ul("currentDownloadProgress"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],vq.prototype,"updateCurrentDownloadProgress",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],vq);
_.B(vq,"ytd-video-download-toast-renderer",function(){if(oef!==void 0)return oef;var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return oef=R},{mode:1});var ZvY;var t4Q;var gV=function(){return _.K.apply(this,arguments)||this};
_.H(gV,_.K);gV.prototype.computeIsRedLogo=function(R,A){!R&&A&&(R=A);return R==="YOUTUBE_RED_LOGO"||R==="YOUTUBE_PREMIUM_LOGO"};
gV.prototype.computeLogoName=function(R){R=this.componentBehavior.computeIcon_(R);return R===""?"yt-logos-ext:yt-logo-updated":R};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],gV.prototype,"componentBehavior",void 0);_.C([_.S({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.k("design:type",Boolean)],gV.prototype,"isRedLogo",void 0);_.C([_.S({computed:"computeLogoName(data)"}),_.k("design:type",String)],gV.prototype,"logoName",void 0);_.C([_.S({value:{}}),_.k("design:type",Object)],gV.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],gV.prototype,"logoType",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-logo"})],gV);
_.B(gV,"ytd-logo",function(){if(t4Q!==void 0)return t4Q;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return t4Q=R},{mode:_.Nf("kevlar_poly_si_batch_j074")?1:2});var nk=function(){var R=_.K.apply(this,arguments)||this;R.animationRef={};return R};
_.H(nk,_.K);_.l=nk.prototype;_.l.attached=function(){document.addEventListener("yt-navigate-finish",_.T2(this,this.logYoodle))};
_.l.detached=function(){document.removeEventListener("yt-navigate-finish",_.T2(this,this.logYoodle))};
_.l.logYoodle=function(){var R,A;if((R=this.data)==null?0:(A=R.loggingDirectives)==null?0:A.trackingParams)this.ytRendererBehavior.markDirty(),_.rU().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.l.computeHideImg=function(R,A){return!!R||!!A};
_.l.computeHideYtdLogo=function(R,A){return!R||!!A};
_.l.computeHideLottie=function(R){return!R};
_.l.computeIsRedLogo=function(R){return R==="YOUTUBE_RED_LOGO"||R==="YOUTUBE_PREMIUM_LOGO"};
_.l.renderLogoEntity=function(){var R=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),A=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),Y=this.getLogoTitleText(this.data),P=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==R&&(this.url=R);this.animatedUrl!==A&&(this.animatedUrl=A);this.logoTitleText!==Y&&(this.logoTitleText=Y);this.lottieUrl!==P&&(this.lottieUrl=P,this.lottiePlayerProps=this.computeLottiePlayerProps(P))};
_.l.getSanitizedThumbnail=function(R){return R&&R.thumbnails?_.VlP(R.thumbnails,122)||"":""};
_.l.getThumbnailUrl=function(R,A){if(!A)return"";var Y,P;R=R?(Y=A.darkThemeLogo)==null?void 0:Y.thumbnail:(P=A.lightThemeLogo)==null?void 0:P.thumbnail;return this.getSanitizedThumbnail(R)};
_.l.getAnimatedThumbnailUrl=function(R,A){return A?this.getSanitizedThumbnail(R?A.darkThemeAnimatedLogo:A.lightThemeAnimatedLogo):""};
_.l.getLogoTitleText=function(R){if(R)return _.R4(R.tooltipText)};
_.l.computeLogoIcon=function(R,A){if(A){var Y,P;return R?(Y=A.darkThemeLogo)==null?void 0:Y.icon:(P=A.lightThemeLogo)==null?void 0:P.icon}};
_.l.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.l.getLottieUrl=function(R,A){var Y,P,E,z;return R?A==null?void 0:(Y=A.darkThemeLogo)==null?void 0:(P=Y.lottieAnimation)==null?void 0:P.url:A==null?void 0:(E=A.lightThemeLogo)==null?void 0:(z=E.lottieAnimation)==null?void 0:z.url};
_.l.computeLottiePlayerProps=function(R){if(R){var A;if((A=this.animationRef)==null?0:A.lottieEl){var Y;(Y=this.animationRef)==null||Y.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:R,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.l.onLottieError=function(){this.data&&this.lottieUrl&&_.xo(this.hostElement,"yoodle-error")};
_.l.onImgError=function(){this.data&&!this.lottieUrl&&_.xo(this.hostElement,"yoodle-error")};
nk.prototype.playAnimation=nk.prototype.playAnimation;nk.prototype.renderLogoEntity=nk.prototype.renderLogoEntity;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],nk.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],nk.prototype,"data",void 0);_.C([_.S({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.k("design:type",Boolean)],nk.prototype,"hideImg",void 0);
_.C([_.S({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.k("design:type",Boolean)],nk.prototype,"hideYtdLogo",void 0);_.C([_.S({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.k("design:type",Boolean)],nk.prototype,"hideLottie",void 0);_.C([_.S({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.k("design:type",Boolean)],nk.prototype,"isRedLogo",void 0);
_.C([_.S(),_.k("design:type",Boolean)],nk.prototype,"useDarkThemeYoodle",void 0);_.C([_.S(),_.k("design:type",String)],nk.prototype,"url",void 0);_.C([_.S(),_.k("design:type",String)],nk.prototype,"animatedUrl",void 0);_.C([_.S(),_.k("design:type",String)],nk.prototype,"logoTitleText",void 0);_.C([_.S({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.k("design:type",Object)],nk.prototype,"logoIcon",void 0);_.C([_.S(),_.k("design:type",Object)],nk.prototype,"logoType",void 0);
_.C([_.S(),_.k("design:type",String)],nk.prototype,"lottieUrl",void 0);_.C([_.S(),_.k("design:type",Object)],nk.prototype,"lottiePlayerProps",void 0);_.C([_.S(),_.k("design:type",Object)],nk.prototype,"animationRef",void 0);_.C([_.vZ("data"),_.vZ("useDarkThemeYoodle"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],nk.prototype,"renderLogoEntity",null);
_.C([_.Qa("click"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],nk.prototype,"playAnimation",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],nk);
_.B(nk,"ytd-yoodle-renderer",function(){if(ZvY!==void 0)return ZvY;var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return ZvY=R},{mode:_.Nf("kevlar_poly_si_batch_j074")?1:2});var wam;var uG0;var eXF=_.oP.currentPageTypeSelector,qZf=_.oP.currentPageSubTypeSelector,Hq=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return R};
_.H(Hq,_.K);_.l=Hq.prototype;_.l.onYoodleError=function(){_.v("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.l.computeLogoName=function(R){R=this.componentBehavior.computeIcon_(R);return R===""?"yt-logos-ext:yt-logo-updated":R};
_.l.computeTitle=function(R,A,Y){return Y&&(A==null?0:A.tooltipText)?_.R4(A.tooltipText):_.R4(R)};
_.l.computeAriaLabel=function(R,A,Y){return Y&&(A==null?0:A.tooltipText)?_.R4(R):""};
_.l.computeShowYoodle=function(R,A,Y){return!R||!A&&!!Y&&!_.BO.isEmpty(Y)};
_.l.onNavigateHomeAction=function(){if(_.v("kevlar_miniplayer_navigate_home_from_app_killswitch")){var R;(R=_.Mo(this.hostElement).querySelector(".yt-simple-endpoint"))==null||R.click()}};
_.l.computeLogoHref=function(R,A,Y){var P;(Y==null?0:Y.onTapCommand)?P=this.componentBehavior.computeHref_(Y.onTapCommand):R&&(P=this.componentBehavior.computeHref_(R));return P?P:A};
_.l.computeCommand=function(R,A){return(A==null?void 0:A.onTapCommand)||R};
_.l.getEndpointForm=function(){if(_.v("kevlar_topbar_disable_cache_only_home")){var R=_.is().resolve(_.PX),A=eXF(R.getState())||"";R=qZf(R.getState())||"";return{disableCache:A==="ytd-browse"&&R==="home"}}return{disableCache:!0}};
Hq.prototype.onYoodleError=Hq.prototype.onYoodleError;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Hq.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Hq.prototype,"componentBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],Hq.prototype,"ytdReduxBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],Hq.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],Hq.prototype,"countryCode",void 0);_.C([_.S({selectorArgs:["data.overrideEntityKey"],selector:function(R,A){return _.mc(R.entities,"logoEntity",A)}}),
_.k("design:type",Object)],Hq.prototype,"logoEntity",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.k("design:type",Boolean)],Hq.prototype,"showYoodle",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Hq.prototype,"yoodleError",void 0);_.C([_.S({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.k("design:type",String)],Hq.prototype,"titleText",void 0);
_.C([_.S({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.k("design:type",String)],Hq.prototype,"ariaLabelText",void 0);_.C([_.S({value:"/"}),_.k("design:type",String)],Hq.prototype,"defaultEndpointUrl",void 0);_.C([_.S({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.k("design:type",String)],Hq.prototype,"endpointUrl",void 0);
_.C([_.S({computed:"computeCommand(data.endpoint, logoEntity)"}),_.k("design:type",String)],Hq.prototype,"command",void 0);_.C([_.S(),_.k("design:type",Object)],Hq.prototype,"logoType",void 0);_.C([_.S({}),_.k("design:type",Boolean)],Hq.prototype,"useDarkThemeYoodle",void 0);_.C([_.Qa("yoodle-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Hq.prototype,"onYoodleError",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Hq);
_.B(Hq,"ytd-topbar-logo-renderer",function(){if(uG0!==void 0)return uG0;var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return uG0=R},{mode:_.Nf("kevlar_poly_si_batch_j027")?1:2});var LNH=0;var dei=_.gp.SEARCH_APPEND_LABEL,RCG=_.gp.SUGGESTION_NEW_VIDEOS_TEXT,AtQ=_.gp.SUGGESTION_THUMBNAIL_LABEL,YS0=_.gp.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,PNG=_.E5(function(R){function A(Xb){var go,JO;return _.O(function(yN){if(yN.nextAddress==1)return go=new Request(Xb),_.g2(yN,2),yN.yield(fetch(go,{credentials:"include"}),4);if(yN.nextAddress!=2)return UW(!0),_.us(yN,0);JO=_.UT(yN);_.pK(JO);_.XH(yN)})}
var Y=R.isHighlighted;var P=R.suggestion;var E=R.onClickCallback;var z=R.onHoverUpdateCallback;var c=R.labels;var M=R.queryBuilderFunction;var N=R.onRemoveCallback;var y=R.suggestionIndex;var m=R.generateUniqueId;var T=R.highlightedId;var Q=R.useScrollMargin;var g=R.isKeyboardMode;var r=null,I=null,b=_.LK("div"),p=_.LK("span");R=_.x(_.yy(!1,void 0,"NIdw2c"));var h=R.next().value,L=R.next().value,Z=_.d5("a",function(Xb){Xb&&_.rc(237477,Xb,I,function(go){I=go})}),w=_.d5("button",function(Xb){Xb&&_.rc(237477,
Xb,I,function(go){I=go})}),t=_.Qi(function(Xb){if((Xb==null?void 0:Xb.button)===2)return Xb.preventDefault(),!1;
var go=_.F9();go&&r&&_.Lj(go,r,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var JO;E(Xb,P().text,P().index,P().entityMid,Xb==null?void 0:(JO=Xb.detail)==null?void 0:JO.wasSelectedByKeyboard);return!1}),d=function(){return P().type===35},Jk=function(){return _.v("desktop_enable_single_suggestion_highlight")},Nb=function(){return _.cU("desktop_suggestions_panel_row_height")||0},Qk=function(){var Xb;
return _.v("desktop_enable_new_video_metadata")&&((Xb=P())==null?void 0:Xb.hasNewVideo)===!0},H3=function(){return _.v("desktop_enable_visual_suggest")},nu=function(){return _.v("desktop_enable_entity_suggest")&&$eG(P())},hk=function(){return P().entitySubtitle},FV=function(){return Jk()?(Y==null?void 0:Y())||RA()&&!(g==null?0:g()):(Y==null?void 0:Y())||RA()},i8=function(){var Xb=_.a1("SBOX_SETTINGS");
return d()&&!(Xb==null?0:Xb.HIDE_REMOVE_LINK)},fD=function(){return Xam(P(),{useEntityName:nu()})},NG,d8=!((NG=_.is().resolve(_.z3(_.dU)))==null||!NG()),mS=function(){return d()?_.v("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},V7=function(){return c==null?void 0:c().SUGGESTION_DISMISS_LABEL},KD=function(){return c==null?void 0:c().SUGGESTION_DISMISSED_LABEL};
R=_.x(_.yy(!1,void 0,"ze5Bhc"));NG=R.next().value;var UW=R.next().value;R=_.x(_.yy(!1,void 0,"Mx5LWc"));var eH=R.next().value,zS=R.next().value,RA=eH,vS=_.Qi(function(){M(p.value.innerText);return!1}),Mg=_.Qi(function(Xb){Xb.preventDefault();
return!1}),gf=_.Qi(function(Xb){var go=P().text,JO=_.a1("SBOX_SETTINGS"),yN="https://"+(JO.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
yN+="&delq="+encodeURIComponent(go);(go=JO==null?void 0:JO.PSUGGEST_TOKEN)&&(yN+="&tok="+go);(JO=JO==null?void 0:JO.SESSION_INDEX)&&(yN+="&authuser="+JO);A(yN);Xb.preventDefault();(Xb=_.F9())&&I&&_.Lj(Xb,I,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");N(y==null?void 0:y());return!1}),A9=_.Qi(function(){if(Jk()&&(g==null?0:g()))return!1;
zS(!0);z(!0);return!1}),le=_.Qi(function(){zS(!1);
z(!1);return!1}),RH=_.Qi(function(){L(!0);
return!1}),OA=_.Qi(function(){L(!1);
return!1}),wf=_.Qi(function(Xb){Xb.preventDefault();
var go;(Xb=(go=P().entityThumbnailAttributionUrl)!=null?go:"")&&_.plb(Xb);return!1});
R=_.x(_.yy("",void 0,"aYzCJe"));var mm=R.next().value,$Z=R.next().value;_.WD(function(){i8()&&$Z(m==null?void 0:m(y==null?void 0:y()));b.value&&_.rc(12453,b.value,r,function(Xb){r=Xb})});
return _.V(_.J,{cond:NG,then:function(){var Xb={};return _.V("div",{class:_.To("ytSuggestionComponentRemovedText",(Xb.ytSuggestionComponentLargerRemovedText=function(){return H3()},Xb)),
style:function(){return Nb()>0?"height: "+Nb()+"px;":""},
role:"button"},KD)},
else:function(){var Xb={},go={};return _.V("div",{class:_.To("ytSuggestionComponentSuggestion",(Xb.ytSuggestionComponentSuggestionHover=function(){return!Jk()},Xb.ytSuggestionComponentHighlighted=FV,Xb.ytSuggestionComponentPersonalizedSuggestion=d,Xb.ytSuggestionComponentMweb=!1,Xb.ytSuggestionComponentLargerSuggestion=function(){return Qk()||H3()},Xb.ytSuggestionComponentThumbnailSuggestion=function(){return H3()},Xb.ytSuggestionComponentRoundedSuggestion=function(){return _.v("desktop_enable_scrollable_suggestions_panel")&&
_.v("desktop_enable_suggestions_panel_padding")},Xb.ytSuggestionComponentThumbnailPadding=function(){return H3()&&!d()},Xb)),
style:function(){return Nb()>0?"height: "+Nb()+"px;":""},
role:"presentation","on:mousedown":t,"on:mouseover":A9,"on:mouseout":le,el:b},_.V("div",{class:_.To("ytSuggestionComponentText",(go.ytSuggestionComponentScrollMargin=Q,go)),"aria-label":function(){return Qk()?P().text+" "+RCG:P().text},
id:function(){return m==null?void 0:m(y==null?void 0:y())},
"on:mousedown":t,role:"option"},_.V(_.J,{cond:function(){return P().type!==33},
then:function(){return _.V(_.H1,{icon:mS,className:"ytSuggestionComponentIcon"})}}),_.V("div",{class:"ytSuggestionComponentLeftContainer"},_.V("span",{el:p,
role:"button",tabindex:0},_.V(_.Ue,{each:fD},function(JO){return JO.bold?_.V("span",{class:"ytSuggestionComponentBold"},JO.text):_.V("span",null,JO.text)})),_.V(_.J,{cond:function(){return nu()&&!!P().entitySubtitle||Qk()},
then:function(){return _.V("div",{class:"ytSuggestionComponentMetadataContainer"},_.V(_.J,{cond:function(){return nu()&&!!P().entitySubtitle},
then:function(){return _.V("div",{class:"ytSuggestionComponentEntitySubtitle"},hk)}}),_.V(_.J,{cond:function(){return Qk()},
then:function(){return _.V("div",{class:"ytSuggestionComponentNewVideoContainer"},_.V("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.V("div",{class:"ytSuggestionComponentNewVideoText"},RCG))}}))}}))),_.V("div",{class:"ytSuggestionComponentRightContainer"},_.V(_.J,{cond:function(){return H3()&&P().visualSuggestUrl!==void 0},
then:function(){var JO={};return _.V("div",{class:"ytSuggestionComponentThumbnailContainer"},_.V("img",{"aria-label":AtQ,class:_.To("ytSuggestionComponentVisualSuggestThumbnail",(JO.ytSuggestionComponentCircularFrame=function(){return nu()&&P().subtypes.includes(790)},JO.ytSuggestionComponentEntitySuggestThumbnail=function(){return nu()},JO)),
src:function(){return P().visualSuggestUrl}}),_.V(_.J,{cond:function(){return nu()&&!!P().entityThumbnailAttributionUrl},
then:function(){var yN={};return _.V("span",{title:YS0,role:"tooltip"},_.V("div",{"on:mouseover":RH,"on:mouseout":OA,"on:mousedown":wf,class:_.To("ytSuggestionComponentThumbnailOverlay",(yN.ytSuggestionComponentThumbnailOverlayHidden=function(){return!h()},yN))},_.V(_.H1,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.V(_.SO,null,_.V(_.$W,{when:function(){return H3()&&i8()}},function(){var JO={};
return _.V("button",{class:_.To("ytSuggestionComponentRemoveLinkClearButton",(JO.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return mm()&&mm()===(T==null?void 0:T())},JO.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!FV()},JO)),
el:w,"on:mousedown":gf,"aria-label":V7,id:function(){return mm()}},_.V(_.H1,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.V(_.$W,{when:function(){return!(H3()&&P().visualSuggestUrl!==void 0)&&i8()}},function(){var JO={};
return _.V("a",{class:_.To("ytSuggestionComponentRemoveLink",(JO.ytSuggestionComponentRemoveLinkDark=d8,JO.ytSuggestionComponentRemoveLinkSelected=function(){return mm()&&mm()===(T==null?void 0:T())},JO)),
el:Z,"on:mousedown":gf,"aria-label":V7,tabindex:0,role:"button",id:function(){return mm()}},V7)}),_.V(_.$W,{when:function(){return!1}},function(){return _.V("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":vS,"on:mousedown":Mg,role:"button","aria-label":dei},_.V(_.H1,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"th");var Er9=_.Z7(["//www.google.com/textinputassistant/","/","_tia.js"]),zCW=_.E5(function(){return _.V("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.V("button",{class:"ytdTextInputAssistantButton","on:click":_.Qi(function(){WNG().inputMethodsTracker.add(3);var R,A=(R=_.a1("SBOX_SETTINGS"))==null?void 0:R.REQUEST_LANGUAGE;if(A)return _.Gr(_.Jr(Er9,14,A)),!1})},_.V("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"uh");var iao=function(){this.cache=new Map},lho=function(R){for(var A=_.x(R.cache.entries()),Y=A.next();!Y.done;Y=A.next()){var P=_.x(Y.value);
Y=P.next().value;P=P.next().value;P.suggestions.some(function(E){return E.type===35})&&R.cache.delete(Y)}};var xwn=_.gp.SEARCH,ctF=_.gp.SEARCH_CLEAR_LABEL,Oaf=new _.cP("FAKE_SUGGEST_RESPONSE");_.Ow(_.E5(function(R){function A(){RH||(RH=setTimeout(function(){wf()},1E3))}
function Y(HS,nD,bi){if(HS.trim()){le=HS;_.BD("REFINEMENTS_TUPLE",void 0);gf=!0;var Q$;nD=flN(eH,nD);var y7=(Q$=R.searchEndpoint)==null?void 0:Q$.call(R);_.Vi0(HS,nD,y7,mS.value.value,bi);wf();mS.value.value=HS;mS.value.blur();eH.reset()}}
function P(HS){return _.O(function(nD){return nD.return(new Promise(function(bi){var Q$=new XMLHttpRequest;Q$.open("GET",veg(HS),!0);Q$.withCredentials=!0;var y7=_.a1("SBOX_SETTINGS");(y7==null?0:y7.SEND_VISITOR_DATA)&&Q$.setRequestHeader("X-Goog-Visitor-Id",y7==null?void 0:y7.VISITOR_DATA);Q$.onload=function(){bi(Q$.responseText)};
Q$.onerror=function(){_.pK(Error("Al"));bi(null)};
setTimeout(function(){Q$.abort()},1E4);
Q$.send(null)}))})}
function E(HS){var nD,bi,Q$,y7;return _.O(function(Up){switch(Up.nextAddress){case 1:return nD={credentials:"include",headers:Qfj()},window.AbortController&&(bi=new AbortController,setTimeout(function(){bi.abort("ytsbox-suggest-timeout")},1E4),nD.signal=bi.signal),_.g2(Up,2),Up.yield(fetch(veg(HS),nD),4);
case 4:Q$=Up.yieldResult.text();_.us(Up,3);break;case 2:return y7=_.UT(Up),y7!=="ytsbox-abort-last"&&y7!=="ytsbox-suggest-timeout"&&_.pK(y7),Up.return(null);case 3:return Up.return(Q$)}})}
function z(HS){var nD,bi,Q$;return _.O(function(y7){switch(y7.nextAddress){case 1:if(nD=_.is().resolve(_.z3(Oaf)))return y7.return(nD);bi=Date.now();A();return _.v("yt_searchbox_xhr")?y7.yield(P(HS),5):y7.yield(E(HS),4);case 4:Q$=y7.yieldResult;y7.jumpTo(3);break;case 5:Q$=y7.yieldResult;case 3:if(Q$){RH&&(clearTimeout(RH),RH=null);var Up=eH,IN=bi,aR=HS.query.length===0;IN=Date.now()-IN;aR?Up.zeroPrefixRoundTripTime=IN:(Up.JSC$20624_totalRoundTripTime+=IN,Up.maxRoundTripTime=Math.max(Up.maxRoundTripTime,
IN),aR=Math.floor(IN/100),aR>=paQ.length?++Up.roundTripTimeHistogram[9]:++Up.roundTripTimeHistogram[paQ[aR]])}return y7.return(Q$)}})}
function c(HS){var nD,bi,Q$;return _.O(function(y7){if(y7.nextAddress==1)return(nD=UW.cache.get(TjH(HS)))?y7.return(nD):y7.yield(z(HS),2);bi=y7.yieldResult;if(bi===null)return y7.return(null);Q$=new SZW(bi);HS.query.length===0&&Q$.suggestions.length===0||UW.cache.set(TjH(HS),Q$);return y7.return(Q$)})}
function M(HS){var nD,bi;return _.O(function(Q$){if(Q$.nextAddress==1){A9=!1;var y7=le;y7=_.WDk()==="search"?(_.wz(location.href,"search_query")||_.wz(location.href,"q"))===y7:!1;nD=new meG(HS,y7?le:null);return Q$.yield(c(nD),2)}bi=Q$.yieldResult;if(bi===null)return Q$.return();nD.query.length===0&&(eH.zeroPrefixSuggestionCount=bi.suggestions.length);if(nD.id<=OA)return eH.outOfSyncResponseCount++,Q$.return();if(document.activeElement!==mS.value)return Q$.return();OA=nD.id;var Up=eH,IN=bi.rawResponse[2]||
{};Up.experimentTriggeredBeforeFinal||(Up.experimentTriggeredBeforeFinal=Up.experimentTriggeredFinal);Up.experimentTriggeredFinal=!!IN.e;eH.updateSuggestions(bi.suggestions);b(-1);i8([]);bi.suggestions!==g()&&pQ(bi.suggestions.length);r(bi.suggestions);Jk(bi.suggestions.length>0&&bi.suggestions[0].type===33);KD&&(KD.hidden=bi.suggestions.length===0,d()?(KD.style.minWidth="",Up=KD.style,IN=(y7=g()[0])==null?void 0:y7.ignoredPrefix,Up.marginLeft=(IN?Math.min(IN.length*6,V7.value.offsetWidth):0).toString()+
"px"):(KD.style.minWidth=V7.value.offsetWidth+"px",KD.style.marginLeft="0"),oG());_.XH(Q$)})}
function N(){if(!gf)return!1;var HS=_.a1("REFINEMENTS_TUPLE");return HS?(HS=HS[1].map(function(nD,bi){return new UeN([nD,0,[71]],mS.value.value,bi)}),g()!==HS&&pQ(HS.length),i8([]),r(HS),eH.updateSuggestions(HS),gf=!1,KD.hidden=HS.length===0,A9=HS.length>0,!0):!1}
function y(){var HS=mS.value.value;(typeof HS==="string"||HS instanceof String)&&HS!==""?Z(!0):Z(!1)}
function m(){if(_.WDk()==="search"){var HS=window.location.href;try{var nD=_.wz(HS,"search_query")||_.wz(HS,"q")||""}catch(bi){nD=""}nD&&(mS.value.value=nD,Z(!0))}}
var T=_.x(_.yy([],void 0,"kGFAjf")),Q=T.next().value;T=T.next().value;var g=Q,r=T;Q=_.x(_.yy(-1,void 0,"mLGL9e"));var I=Q.next().value,b=Q.next().value;Q=_.x(_.yy(-1,void 0,"u2rYdc"));var p=Q.next().value,h=Q.next().value;Q=_.x(_.yy(!1,void 0,"W9DFC"));var L=Q.next().value,Z=Q.next().value;Q=_.x(_.yy(!1,void 0,"Ip4dNc"));var w=Q.next().value,t=Q.next().value;T=_.x(_.yy(!1,void 0,"ZNKSQb"));Q=T.next().value;T=T.next().value;var d=Q,Jk=T;T=_.x(_.yy(!1,void 0,"JBrGLd"));Q=T.next().value;var Nb=T.next().value;
T=_.x(_.yy(!1,void 0,"P2pD6e"));var Qk=T.next().value,H3=T.next().value;T=_.x(_.yy(1,void 0,"SjP20c"));var nu=T.next().value,hk=T.next().value;T=_.x(_.yy([],void 0,"h4dRaf"));var FV=T.next().value,i8=T.next().value;T=_.x(_.yy(!1,void 0,"TUTzaf"));var fD=T.next().value,NG=T.next().value;T=_.v("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var d8=_.LK("yt-searchbox"),mS=_.LK("input"),V7=_.LK("div"),KD,UW=
new iao,eH=WNG(),zS=_.is().resolve(_.z3(_.dU)),RA=function(){var HS;return((HS=R.forceDarkMode)==null?void 0:HS.call(R))||!(zS==null||!zS())},vS=function(){return _.v("desktop_enable_scrollable_suggestions_panel")},Mg="i"+LNH++,gf=!1,A9=!1,le="",RH=null,OA=-1,wf=function(){i8([]);
r([]);Jk(!1);KD&&(KD.hidden=!0);RH&&(clearTimeout(RH),RH=null);b(-1)},mm=function(HS,nD){HS.preventDefault();
NG(!0);KD&&(KD.hidden=!1);var bi=I();HS=g();var Q$=FV();nD=JMn(nD);bi+=nD;for(bi>=HS.length?bi=-1:bi<-1&&(bi=HS.length-1);bi!==-1&&(Q$.includes(bi)||bi>=HS.length||bi<0);)bi+=nD,bi>=HS.length&&(bi=-1);b(bi);I()>=0&&(mS.value.value=g()[I()].text,h(0),y(),HS=I(),Q$=p(),(Q$=document.getElementById(sp[HS][Q$]))&&vS()&&(HS===g().length-1?KD.scrollTop=KD.scrollHeight:Q$.scrollIntoView({block:"nearest",inline:"start"})))},$Z=_.Qi(function(HS){if(!(HS.relatedTarget instanceof Element&&HS.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){t(!0);
var nD;(nD=R.focusCallback)==null||nD.call(R,!0);N()||(A9?KD.hidden=!1:(_.xo(d8.value,"yt-autonav-pause-focus",{}),M(HS.target.value)))}}),Xb=_.Qi(function(HS){if(!(HS.relatedTarget instanceof Element&&HS.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){t(!1);
var nD;(nD=R.focusCallback)==null||nD.call(R,!1);KD.scrollTop=0;KD.hidden=!0;_.xo(d8.value,"yt-autonav-pause-blur",{})}}),go=function(HS){HS=JMn(HS);
var nD;((nD=sp[I()])==null?0:nD[p()+HS])&&h(p()+HS)},JO=_.Qi(function(HS){var nD=HS.target;
switch(HS.keyCode){case 13:HS.preventDefault();var bi;if((bi=sp[I()])==null?0:bi[p()]){var Q$;(Q$=document.getElementById(sp[I()][p()]))==null||Q$.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}HS=HS.shiftKey?4:3;bi=eH;Q$=I();bi.selectedSuggestionIndex=Q$;Y(nD.value,HS);break;case 27:KD&&(KD.hidden=!0);break;case 40:mm(HS,40);break;case 38:mm(HS,38);break;case 39:go(39);break;case 37:go(37);break;case 229:eH.inputMethodsTracker.add(4);break;default:eH.inputMethodsTracker.add(1),
jfW(eH)}return!1}),yN=_.Qi(function(HS){M(HS.target.value);
y();vS()&&KD&&(KD.scrollTop=0);return!1}),Ks=_.Qi(function(){eH.inputMethodsTracker.add(2);
jfW(eH);return!1});
_.WD(function(){if(KD){eH.reset();if(window.ResizeObserver){var HS=new ResizeObserver(function(){d()||(KD.style.minWidth=V7.value.offsetWidth+"px")});
HS.observe(V7.value);(new ResizeObserver(function(){oG()})).observe(KD);
_.bm(function(){HS.disconnect()})}m();
window.addEventListener("yt-navigate-finish",m);window.addEventListener("yt-focus-searchbox",function(){mS.value.focus()});
var nD;Nb((nD=_.a1("SBOX_SETTINGS"))==null?void 0:nD.HAS_ON_SCREEN_KEYBOARD)}else _.bj(new _.XN("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var X4=_.Qi(function(HS){HS.preventDefault();Y(mS.value.value,12);return!1}),hE=_.Qi(function(HS){HS.preventDefault();
var nD,bi;(nD=mS)==null||(bi=nD.value)==null||bi.focus();var Q$,y7;((Q$=mS)==null?void 0:(y7=Q$.value)==null?void 0:y7.value)!==""&&(mS.value.value="",mS.value.dispatchEvent(new Event("input")));return!1}),Ab=_.Qi(function(){var HS=$6Y(mS.value.value,g().filter(function(nD){return nD.type!==35}).map(function(nD){return{label:nD.text}}));
_.OC(d8.value,"yt-open-popup-action",[{openPopupAction:HS},document.body]);return!1}),G0=_.Qi(function(){mS.value.focus();
return!1}),xD=function(HS,nD,bi,Q$,y7){eH.selectedSuggestionIndex=bi;
Y(nD,y7?3:1,Q$)},sK=function(HS){mS.value.value=HS;
mS.value.dispatchEvent(new Event("input"));eH.inputMethodsTracker.add(5);jfW(eH,!0)},sp=[[]],NI=function(HS){var nD="searchbox-suggestion"+_.hn(_.qe);
sp[HS].push(nD);return nD},pQ=function(HS){if(g()){sp=[[]];
for(var nD=0;nD<HS;nD++)sp.push([])}},oG=function(){if(vS()){var HS=KD,nD=HS.scrollTop;
HS=HS.scrollHeight-HS.clientHeight;H3(nD>=HS);nD=Math.abs(HS-nD);nD<=40?hk(1-(40-nD)/40):hk(1)}},EQ=function(){return"opacity: "+nu()*100+"%"},XV=_.Qi(function(){oG();
return!1}),pu=_.Qi(function(){NG(!1);
return!1}),GS,Q7={},sW={},jc={},ro={};
return _.V("yt-searchbox",{class:_.To("ytSearchboxComponentHost",(Q7.ytSearchboxComponentMweb=!1,Q7.ytSearchboxComponentDesktop=!0,Q7["yt-searchbox-filled-query"]=function(){return L()},Q7["ytd-masthead"]=function(){return!w()},Q7.ytSearchboxComponentHostDark=RA,Q7)),
role:"search",el:d8,"client-ve-type":10349},_.V("div",{el:V7,"on:click":G0,class:_.To("ytSearchboxComponentInputBox",(sW.ytSearchboxComponentInputBoxDark=RA,sW.ytSearchboxComponentInputBoxHasFocus=w,sW))},_.V("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":X4},_.V(_.J,{cond:w,then:function(){return _.V("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.V(_.H1,{icon:"SEARCH"}))}}),_.V("input",{el:mS,
class:_.To("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Mg,"aria-expanded":!((GS=KD)==null?0:GS.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":Xb,"on:focus":$Z,"on:input":yN,"on:keydown":JO,"on:paste":Ks,placeholder:R.placeholderText,"aria-activedescendant":function(){var HS;return(HS=sp[I()])==null?void 0:HS[p()]},
"aria-autocomplete":"list",role:"combobox"})),_.V(_.J,{cond:Q,then:function(){return _.V("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.V(zCW,null))}}),_.V(_.J,{cond:L,
then:function(){return _.V("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.V("button",{class:"ytSearchboxComponentClearButton","on:click":hE,"aria-label":R.clearButtonAriaLabel||ctF},_.V(_.H1,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.V(_.Uh,{model:{}})))}})),_.V("button",{class:_.To("ytSearchboxComponentSearchButton",(jc.ytSearchboxComponentSearchButtonDark=RA,jc)),
"on:click":X4,"aria-label":xwn,title:R.placeholderText},_.V(_.H1,{icon:"SEARCH"})),_.V(_.J,{cond:function(){if(o9N()&&_.v("mweb_voice_search")&&R.voiceSearchButton)return R.voiceSearchButton()},
then:function(HS){var nD={};return _.V("div",{class:_.To("ytSearchboxComponentVoiceSearchWrapper",(nD.ytSearchboxComponentHideVoiceSearchButton=function(){return L()},nD))},_.V(_.ni,{data:HS},{buttonRenderer:function(bi){return _.V(_.VO,{data:bi.data,
onButtonClickCallback:function(){}})}}))}}),_.V("div",{el:_.zo(function(HS){return void(KD=HS)}),
id:Mg,class:_.To("ytSearchboxComponentSuggestionsContainer",(ro.ytSearchboxComponentSuggestionsContainerDark=RA,ro["yt-searchbox-suggestions-container"]=!1,ro.ytSearchboxComponentSuggestionsContainerScrollable=vS(),ro.ytSearchboxComponentSuggestionsContainerAnimated=T,ro)),"on:scroll":XV,"on:mousemove":pu,role:"listbox",hidden:!0},_.V(_.Ue,{each:g},function(HS,nD){return _.V(PNG,{suggestion:HS,isHighlighted:function(){return nD()===I()},
onClickCallback:xD,onHoverUpdateCallback:function(bi){if(_.v("desktop_enable_single_suggestion_highlight")){var Q$=nD();bi&&(h(0),b(Q$))}},
onRemoveCallback:function(bi){lho(UW);bi===void 0||bi<0||FV().includes(bi)||i8([].concat(_.py(FV()),[bi]))},
labels:R.labels,queryBuilderFunction:sK,suggestionIndex:nD,generateUniqueId:NI,highlightedId:function(){var bi;return(bi=sp[I()])==null?void 0:bi[p()]},
useScrollMargin:vS(),isKeyboardMode:fD})}),_.V(_.J,{cond:function(){return!d()&&g().find(function(HS){return HS.type!==35})&&_.v("searchbox_reporting")},
then:function(){return _.V("button",{class:"ytSearchboxComponentReportButton","on:mousedown":Ab},_.vk("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.V(_.J,{cond:function(){return!Qk()&&vS()},
then:function(){return _.V("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.V("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:EQ}))}})))},"vh"),"yt-searchbox",{props:{searchEndpoint:_.VY,
placeholderText:_.VY,labels:_.VY,voiceSearchButton:_.VY,focusCallback:_.xL,clearButtonAriaLabel:_.VY,forceDarkMode:_.VY}});var rV=function(){var R=_.K.apply(this,arguments)||this;R.menuButtonTargetId="topbar-guide-menu";R.narrow=!1;R.menuStrings={BACK_ALT_LABEL:_.vk("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.vk("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.vk("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.vk("SBOX_PLACEHOLDER",void 0,"Search")};R.pageDarkTheme=document.documentElement.hasAttribute("dark");R.watchPageScrollTop=0;R.theater=!1;R.fullscreen=!1;R.disableFrostedGlassDuringViewTransition=
!1;R.desktopUnifiedSearchPanelMode=_.v("desktop_enable_unified_search_panel");R.cinematicTheaterMode=_.v("web_cinematic_theater_mode");R.ytSearchboxFocused=!1;R.searchboxLabels=_.a1("SBOX_LABELS");R.topbarIsAboveChipbar=!1;R.isDarkThemeForced=!1;R.areGhostCardsHidden=!1;R.guideKeyboardToggle=!1;R.voiceSearchManager=rjN();R.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};R.setYtSearchboxFocused=function(A){R.ytSearchboxFocused=
A};
R.toggleFrostedGlassDuringViewTransition=function(A){R.disableFrostedGlassDuringViewTransition=A};
return R};
_.H(rV,_.K);_.l=rV.prototype;_.l.computeSimpleText=function(R){return _.R4(R)};
_.l.onDarkChanged=function(){for(var R=_.x(this.buttons||[]),A=R.next();!A.done;A=R.next())A.value.isOverlay=!!this.dark;R=_.x(this.buttonRenderers||[]);for(A=R.next();!A.done;A=R.next())A.value.overrides=this.computeButtonOverride()};
_.l.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.l.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]]"}},
buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}},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"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var R=_.zD(_.EV(),"aa");_.No(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||R||(this.isDarkThemeForced=this.dark=!0);this.logoType?(R=this.hostElement.querySelector("#masthead-logo"))&&(_.v("polymer_on_demand_shady_dom")?R.setAttribute("slot","masthead-logo-old"):_.UU(R)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.T2(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.T2(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.l.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.T2(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.T2(this,this.onSetTheaterModeEnabled))};
_.l.dataChanged=function(){var R=this.data;R&&(this.voiceEnabled=R.voiceSearchButton?rjN().isSupported():!1,_.q$Z(_.k7(),this.menuButtonTargetId,this.guideButton),R.onReceivedActions&&R.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.NT(this.hostElement,R.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&R&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.No(this.hostElement,"dark",!1),_.No(this.hostElement,"theater",!1),
(R=this.hostElement.querySelector("#masthead-logo"))&&(_.v("polymer_on_demand_shady_dom")?R.setAttribute("slot","masthead-logo-old"):_.UU(R))))};
_.l.computeCenterHidden=function(){var R;return this.data&&!((R=this.data.searchbox)==null?0:R.fusionSearchboxRenderer)};
_.l.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.No(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.l.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.l.onWatchScroll=function(R){this.watchPageScrollTop=R.detail||0;this.updateMastheadBackgroundOpacity()};
_.l.onFullscreenChangeAction=function(R){R||(this.watchPageScrollTop=0);this.fullscreen=R;this.updateMastheadBackgroundOpacity()};
_.l.onSetTheaterModeEnabled=function(R){this.theater=R.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.l.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.l.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.l.setBackgroundOpacity=function(R){R=this.calculateBackgroundOpacity(R);this.background.style.opacity=""+R};
_.l.calculateBackgroundOpacity=function(R){var A=this.theater&&this.cinematicTheaterMode?.6:0,Y=this.hostElement.clientHeight/2;return Math.min(Math.max(R,0),Y)/Y*(1-A)+A};
_.l.shouldShowCinematicMastHead=function(){var R=_.v("kevlar_watch_grid")&&!_.v("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(R||this.pageDarkTheme)};
_.l.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.l.focusGuide=function(){this.guideButton.focus()};
_.l.onGuideToggleTap=function(){_.xo(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.l.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.l.onGuideToggleHover=function(){_.xo(this.hostElement,"yt-guide-hover")};
_.l.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.l.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.l.closeOnOutsideClickCondition=function(R){for(R=_.Ah(R);R[0];){var A=R.shift();if(A instanceof Element&&A.id==="kbd")return!1}return!0};
_.l.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.l.pausePlayer=function(){var R;(R=_.EJ())==null||R.pause();this.pauseMiniplayer()};
_.l.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var R;(R=_.is().resolve(_.jv).getPlayerElement())==null||R.pause()}};
_.l.isMiniplayerActive=function(){return _.is().resolve(_.jv).isMiniplayerActive()};
_.l.updateNarrowFromBinding=function(R){this.narrow=R.detail.value};
_.l.onYtSendFeedbackAction=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.registerWithViewTransitionManager=function(){h3N(_.is().resolve(_.B8),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Yh.Object.defineProperties(rV.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.v("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var R;return(R=this.data)==null?void 0:R.voiceSearchButton}}}});
rV.prototype.narrowChanged=rV.prototype.narrowChanged;rV.prototype.onWatchPageChange=rV.prototype.onWatchPageChange;rV.prototype.onRendererStamperFinished=rV.prototype.onRendererStamperFinished;rV.prototype.dataChanged=rV.prototype.dataChanged;rV.prototype.onDarkChanged=rV.prototype.onDarkChanged;_.C([_.U(_.Cr),_.k("design:type",Object)],rV.prototype,"ironResizableBehavior",void 0);_.C([_.U(_.NuH),_.k("design:type",Object)],rV.prototype,"ytdExpandableInputBehavior",void 0);
_.C([_.U(_.cf.YtdGuideStateAwareBehavior),_.k("design:type",Object)],rV.prototype,"ytdGuideStateAwareBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],rV.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],rV.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.Pf),_.k("design:type",Object)],rV.prototype,"ytdReduxBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],rV.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],rV.prototype,"narrow",void 0);_.C([_.S(),_.k("design:type",Object)],rV.prototype,"logoType",void 0);_.C([_.S(),_.k("design:type",Boolean)],rV.prototype,"voiceEnabled",void 0);
_.C([_.S(),_.k("design:type",Object)],rV.prototype,"menuStrings",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],rV.prototype,"dark",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rV.prototype,"pageDarkTheme",void 0);_.C([_.S(),_.k("design:type",Object)],rV.prototype,"watchPageScrollTop",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.RR8}),_.k("design:type",Boolean)],rV.prototype,"isWatchPage",void 0);
_.C([_.S({reflectToAttribute:!0,selector:_.AdP}),_.k("design:type",Boolean)],rV.prototype,"isShortsPage",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rV.prototype,"theater",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rV.prototype,"fullscreen",void 0);_.C([_.S({reflectToAttribute:!0,selector:_.zRq}),_.k("design:type",String)],rV.prototype,"frostedGlassMode",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],rV.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.C([_.S(),_.k("design:type",Object)],rV.prototype,"ytSearchboxFocused",void 0);_.C([_.HZ("#buttons > *"),_.k("design:type",Array)],rV.prototype,"buttons",void 0);_.C([_.HZ("ytd-button-renderer"),_.k("design:type",Array)],rV.prototype,"buttonRenderers",void 0);_.C([_.nG("#background"),_.k("design:type",HTMLDivElement)],rV.prototype,"background",void 0);
_.C([_.nG("#guide-button"),_.k("design:type",Object)],rV.prototype,"guideButton",void 0);_.C([_.nG("#logo"),_.k("design:type",Object)],rV.prototype,"logo",void 0);_.C([_.S({computed:"computeButtonOverride(dark)"}),_.k("design:type",Object)],rV.prototype,"buttonOverrides",void 0);_.C([_.Ul("dark"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rV.prototype,"onDarkChanged",null);_.C([_.S({value:function(){return this.onVoiceTap.bind(this)}}),
_.k("design:type",Function)],rV.prototype,"boundOnTapVoiceButton",void 0);_.C([_.S(),_.k("design:type",Object)],rV.prototype,"topbarIsAboveChipbar",void 0);_.C([_.S(),_.k("design:type",String),_.k("design:paramtypes",[])],rV.prototype,"guideIcon",null);_.C([_.X("voiceEnabled"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],rV.prototype,"shouldShowVoiceSearchButton",null);_.C([_.X("data"),_.k("design:type",Object),_.k("design:paramtypes",[])],rV.prototype,"voiceSearchButton",null);
_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rV.prototype,"dataChanged",null);_.C([_.Qa("yt-rendererstamper-finished"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rV.prototype,"onRendererStamperFinished",null);_.C([_.Ul("isWatchPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rV.prototype,"onWatchPageChange",null);
_.C([_.Ul("narrow"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],rV.prototype,"narrowChanged",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-masthead"})],rV);
_.B(rV,"ytd-masthead",function(){if(wam!==void 0)return wam;var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="[[guideIcon]]" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return wam=R},{mode:_.Nf("kevlar_poly_si_batch_j036")?1:2});var M7f;var sQQ={},N_Y={},V7m={},JtN={},ytY=(JtN.OFFLINE=(sQQ["publicytnetworkstatus-online"]="BACK_ONLINE",sQQ),JtN.ONLINE=(N_Y["publicytnetworkstatus-offline"]="OFFLINE",N_Y),JtN.BACK_ONLINE=(V7m["publicytnetworkstatus-offline"]="OFFLINE",V7m.TIMER_TRIGGER="ONLINE",V7m),JtN),D3=function(){var R=_.K.apply(this,arguments)||this;R.currentState="ONLINE";R.scheduledJobId=0;R.bannerString="";R.bannerVe=null;R.networkStatusManagerInstance=new _.wM;return R};
_.H(D3,_.K);_.l=D3.prototype;_.l.attached=function(){var R=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){R.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){R.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.detached=function(){var R=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){R.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){R.stateChangeHandler("publicytnetworkstatus-offline")})};
_.l.enterState=function(R){var A=this;this.scheduledJobId&&_.fn.cancelJob(this.scheduledJobId);R==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):R==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.vk("NO_INTERNET_CONNECTION",void 0,"No internet connection")):R==="BACK_ONLINE"&&(this.bannerString=_.vk("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Ua(_.fn,function(){A.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=R};
_.l.stateChangeHandler=function(R){(R=ytY[this.currentState][R])&&this.enterState(R)};
_.l.logVisibility=function(R){var A=_.F9();this.createBannerVe(R);A&&this.bannerVe&&(R?_.uE(A,[this.bannerVe]):_.eF(A,[this.bannerVe]))};
_.l.createBannerVe=function(R){!this.bannerVe&&R&&(this.bannerVe=_.NV(37929),_.Sm(_.rU(),this.bannerVe))};
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",String)],D3.prototype,"currentState",void 0);_.C([_.S(),_.k("design:type",Object)],D3.prototype,"scheduledJobId",void 0);_.C([_.S(),_.k("design:type",Object)],D3.prototype,"bannerString",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-network-status-banner"})],D3);
_.B(D3,"ytd-network-status-banner",function(){if(M7f!==void 0)return M7f;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return M7f=
R},{mode:1});var mwo;var UL=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};R.hidden=!0;R.frostedGlass=_.v("web_frosted_glass");return R};
_.H(UL,_.K);UL.prototype.computeHidden=function(R){return R&&R.status?!1:!0};
UL.prototype.handleUpdatePermissionRoleCommand=function(R){if(R=_.n(R,_.WUS))if(R=_.n(R.renderer,_.KUA))this.data=R};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],UL.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],UL.prototype,"componentBehavior",void 0);_.C([_.S({value:!0,computed:"computeHidden(data)"}),_.k("design:type",Object)],UL.prototype,"hidden",void 0);_.C([_.S(),_.k("design:type",Object)],UL.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],UL.prototype,"frostedGlass",void 0);
_.C([_.F({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],UL);
_.B(UL,"ytd-permission-role-bottom-bar-renderer",function(){if(mwo!==void 0)return mwo;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return mwo=R},{mode:1});var T_H;var QQ9;var yMm={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var $A=function(){return _.K.apply(this,arguments)||this};
_.H($A,_.K);_.l=$A.prototype;_.l.attached=function(){this.JSC$20727_scroller&&(this.JSC$20727_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20727_scroller.attached&&typeof this.JSC$20727_scroller.attached==="function"&&this.JSC$20727_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(Y){Y.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var R=_.Mo(this.hostElement);R.querySelector("tp-yt-paper-radio-group").selected="";var A=R.querySelector("#reason-text");A&&(A.value="");R.querySelector("#description-text").value=""}};
_.l.canSubmit=function(R,A){_.xo(this.hostElement,"yt-invalidate-popup-tabbables");return!(R&&A)};
_.l.onCancel=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.l.onSubmit=function(){var R=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(z){return z.active}).map(function(z){return z.innerText.trim()}),A=this.hostElement.querySelector("tp-yt-paper-radio-group"),Y=A.selectedItem,P=Y.name;
Y=Y.innerText.trim();var E=A.querySelector("#reason-text");A=void 0;E&&(A=E.value);(E=this.descriptionText.value)&&(E=E.trim());mHj(this.data.searchQuery,R,P,Y,E,A);_.OC(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.l.sendFormSubmitToast=function(){var R=_.z9(_.vk("SBOX_INAPPROPRIATE_TOAST"));_.OC(this.hostElement,"yt-open-popup-action",[R,this])};
_.l.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(R){return R.active})};
_.l.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
$A.prototype.onIronSelect=$A.prototype.onIronSelect;$A.prototype.onIronChange=$A.prototype.onIronChange;$A.prototype.dataChanged=$A.prototype.dataChanged;_.C([_.S(),_.k("design:type",Object)],$A.prototype,"data",void 0);_.C([_.S({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.k("design:type",Boolean)],$A.prototype,"submitDisabled",void 0);_.C([_.S(),_.k("design:type",Boolean)],$A.prototype,"suggestionSelected",void 0);
_.C([_.S(),_.k("design:type",Boolean)],$A.prototype,"catagorySelected",void 0);_.C([_.nG("#scroller"),_.k("design:type",Object)],$A.prototype,"JSC$20727_scroller",void 0);_.C([_.nG("#description-text"),_.k("design:type",Object)],$A.prototype,"descriptionText",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$A.prototype,"dataChanged",null);
_.C([_.Qa("iron-change"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$A.prototype,"onIronChange",null);_.C([_.Qa("iron-select"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],$A.prototype,"onIronSelect",null);_.C([_.F({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],$A);
_.B($A,"ytd-search-suggestion-report-dialog",function(){if(QQ9!==void 0)return QQ9;var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);return QQ9=R},{mode:1});var XC=function(R){var A=R.openPopupAction;var Y=R.target;var P=R.container;var E=R.popupContainerConfig;var z=R.getElement;R=R.removeWhenClosed===void 0?!1:R.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=A;this.target=Y;this.container=P;this.popupContainerConfig=E;this.getElement=z;this.JSC$20733_popupConfig=this.popupContainerConfig.JSC$19880_popupConfig[this.openPopupAction.popupType];this.rendererName=(A=this.getName())?_.ak8(A,YmH(this.popupContainerConfig,
A)):"";_.v("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=R);this.createPopup()};
XC.prototype.updatePopup=function(R){this.openPopupAction=R;this.JSC$20733_popupConfig=this.popupContainerConfig.JSC$19880_popupConfig[this.openPopupAction.popupType];vrm(this);_.v("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
XC.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var Hai=function(R,A,Y){(A=A&&R.JSC$20733_popupConfig.narrowProperties?R.JSC$20733_popupConfig.narrowProperties:R.JSC$20733_popupConfig.properties)&&Y!==void 0&&(A.isAriaModal=Y);grH(R,A);R.isRtl()&&grH(R,R.JSC$20733_popupConfig.rtlProperties);nrH(R)};
XC.prototype.createPopup=function(){var R=this.JSC$20733_popupConfig.component;if(this.popupContent=rtG(this,this.rendererName)){if(R){this.popup=rtG(this,R);var A=this.popupContent;_.v("web_enable_wrapper_for_cow_component_in_popup")&&(A=document.createElement("div"),A.appendChild(this.popupContent));_.v("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$20733_popupConfig.slotName&&A.setAttribute("slot",this.JSC$20733_popupConfig.slotName);R=this.popup;var Y=this.container.tagName.toLowerCase(),
P=_.PZ(A);_.rjk(_.z2(R),_.xw(A,Y,P));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.v("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Mo(this.container).appendChild(this.popup)}};
var vrm=function(R){var A,Y,P=(A=R.openPopupAction.accessibilityData)==null?void 0:(Y=A.accessibilityData)==null?void 0:Y.label;P&&(R.popup.ariaLabel=P);var E;((E=R.popupContent.polymerController)!=null?E:R.popupContent).data=(0,_.BO.unsafeClone)(R.openPopupAction.popup[R.getName()]);R.popupContent.duration=DwG(R);R.popupContent.positionType=R.openPopupAction.position;var z=R.openPopupAction.properties;z&&Object.keys(z).forEach(function(c){R.popupContent[c]=z[c]})},grH=function(R,A){if(A)for(var Y=
_.x(Object.keys(A)),P=Y.next();!P.done;P=Y.next())P=P.value,R.popup[P]=A[P]},nrH=function(R){if(R.openPopupAction.position){var A=R.JSC$20733_popupConfig.positionalProperties&&R.JSC$20733_popupConfig.positionalProperties[R.openPopupAction.position],Y=R.JSC$20733_popupConfig.rtlPositionalProperties&&R.JSC$20733_popupConfig.rtlPositionalProperties[R.openPopupAction.position];
A=R.isRtl()&&Y?Y:A;A.shiftedHorizontalOffset&&(Y=R.popup.style.display,R.popup.style.display="block",R.popupContent&&R.popup.positionTarget&&R.popupContent.clientWidth>R.popup.positionTarget.clientWidth&&(A.horizontalOffset=R.popup.positionTarget.clientWidth/2-A.shiftedHorizontalOffset),R.popup.style.display=Y);grH(R,A)}},Uw0=function(R,A){if(A)for(var Y=_.x(Object.keys(A)),P=Y.next();!P.done;P=Y.next())P=P.value,R.popup.style[P]=A[P]};
XC.prototype.getName=function(){return _.fQ(this.openPopupAction.popup,"renderer")||_.fQ(this.openPopupAction.popup,"dialog")||_.fQ(this.openPopupAction.popup,"model")||void 0};
var DwG=function(R){R=R.openPopupAction.durationHintMs;return R===0?R:Math.max(4E3,R||4E3)};
XC.prototype.isRtl=function(){return _.a1("HTML_DIR")==="rtl"};
var rtG=function(R,A){R=R.getElement(A,R.target);R==null&&_.pK(new _.XN("popup getElement returned null",A));return R};var $wN={};
$wN.YtPopupContainerBehavior=[_.iF.YtComponentBehavior,_.fH.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.iE(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.lE(this.hostElement)},
closePopup:function(R){var A=this.createCacheKey(void 0,R);this.popups_[A]&&this.handleClosePopupAction_(void 0,R)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.fn.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.fn.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(R){R.opened&&R.keepBelowPlayer&&this.ensurePopupBelowPlayer(R)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var R in this.popups_){var A=this.popups_[R];if(A.popup.scrollAction==="refit"){var Y=A.popup.positionTarget.getBoundingClientRect(),P=A.popup;Y=Y.top;var E=A;if(!E.naturalHeight){E.popup.hidden=!1;E.popup.style.position="fixed";E.popup.style.top="0px";E.popup.style.left="0px";var z=E.popup.getBoundingClientRect();E.naturalHeight=z.bottom-z.top;E.popup.refit()}P.hidden=!(Y>=E.naturalHeight+60);A.popupContent.clientHeight===0&&A.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(R){this.popupContainerConfig=R},
handleOpenPopupAction:function(R,A){var Y=R.openPopupAction,P=_.is().resolve(_.z3(_.aD))&&Y.popupType==="TOAST";P&&!Y.uniqueId&&(Y.uniqueId=_.E4());if(!_.v("popup_container_parent_target_killswitch")){var E;A=(E=this.getParentTarget(A))!=null?E:A}var z=this.ensurePopup_(Y,A);return new _.yR(function(c){z.then(function(M){if(!M)return c();this.maybeCreateNarrowMediaQuery_();var N=this.createCacheKey(M.rendererName,M.openPopupAction.uniqueId);if(Y.showOncePerUniqueId){if(this.shownPopupKeys_.has(N))return c();
this.shownPopupKeys_.add(N)}N=this.popups_[N];var y=!(!N||!N.openPopupAction.beReused);y=!!Y.reusePopup||y;if(M.popup.opened&&!y){P&&!M.openPopupAction.replacePopup||this.handleClosePopupAction_(M.rendererName,M.openPopupAction.uniqueId);y=Y.popupType==="DIALOG"&&!_.v("popup_container_dialog_reopen_killswitch");if(!P&&!y&&N&&N.target==A&&!M.openPopupAction.replacePopup)return c();_.RK(M.popup,function(){this.completeOpenPopupAction_(Y,A,M);c()}.bind(this))}else M.popup.opened?M.updatePopup(Y):this.completeOpenPopupAction_(Y,
A,M),c()}.bind(this))}.bind(this))},
getParentTarget:function(R){if(R&&R instanceof HTMLElement)for(var A=_.x(Object.entries(this.popups_)),Y=A.next();!Y.done;Y=A.next())if(Y=_.x(Y.value),Y.next(),Y=Y.next().value,this.popupClosesOnClick(Y)&&Y.popup.contains(R))return Y.target},
popupClosesOnClick:function(R){return R.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(R.rendererName.toUpperCase())},
completeOpenPopupAction_:function(R,A,Y){Y.updatePopup(R);R=this.narrowMediaQuery_.queryMatches;var P=this.isAriaModal;Y.target=A;var E;A=((E=Y.target.polymerController)!=null?E:Y.target).popupPositionTarget||Y.target;Y.JSC$20733_popupConfig.targetContainer&&(A=Y.container);Y.popup.positionTarget=A;Y.popupContent.positionTarget=A;nrH(Y);Y.JSC$20733_popupConfig.forceFocus&&(Y.popupContent.style.outline="none");Y.popupContent.tabIndex=-1;Y.JSC$20733_popupConfig.narrowProperties&&(Y.popup.style.position=
"static");Y.JSC$20733_popupConfig.preventAutonav&&Y.popup.setAttribute("prevent-autonav",!0);Y.JSC$20733_popupConfig.forceCloseOnOutsideClick&&Y.popup.setAttribute("force-close-on-outside-click",!0);Hai(Y,R,P);Uw0(Y,Y.JSC$20733_popupConfig.styles);Y.isRtl()&&Uw0(Y,Y.JSC$20733_popupConfig.rtlStyles);if(!Y.openPopupAction.shouldStopParentSignal){var z;E=(z=Y.target.polymerController)!=null?z:Y.target;(Y.popupContent.startForwardingEvents||Y.popupContainerConfig.forwardingEnabledPopups.has(Y.rendererName))&&
E.parentComponent!==Y.popupContent&&Y.popupContent!==Y.target&&Y.target!==document.body&&(Y.popupContent.startForwardingEvents?Y.popupContent.startForwardingEvents(Y.popupContainerConfig.forwardedEvents,Y.target):(Y.JSC$20733_eventForwarder||(Y.JSC$20733_eventForwarder=new _.PC(Y.popupContent)),Y.JSC$20733_eventForwarder.start(Y.popupContainerConfig.forwardedEvents,Y.target)))}Y=Y.popup;Y.addEventListener("iron-overlay-opened",_.T2(this,this.onPopupIronOverlayOpened_));Y.addEventListener("iron-overlay-closed",
_.T2(this,this.onPopupIronOverlayClosed_));Y.addEventListener("iron-overlay-canceled",_.T2(this,this.onPopupIronOverlayCanceled_));Y.addEventListener("yt-refit",_.T2(this,this.refitPopup_));Y.addEventListener("yt-invalidate-popup-tabbables",_.T2(this,this.handleInvalidatePopupTabbables_));Y.open()},
getPopupDurationMs_:function(R){return R.durationHintMs===0?R.durationHintMs:Math.max(4E3,R.durationHintMs||4E3)},
handleClosePopupAction_:function(R,A){var Y=_.v("web_popup_cache_key_killswitch")||!!A;if(R||Y){var P=this.createCacheKey(R,A);R=(R=this.popups_[P])&&R.popup}else R=_.tbS(_.dS);if(R&&R.close){if(A=_.is().resolve(_.z3(_.rt)))R.restoreFocusOnClose=A.isKeyBoardInUse();R.close();this.removePopup_(R,P)}},
handleClosePopupCommand_:function(R){R.closePopupCommand&&R.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,R.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(R){var A={},Y;for(Y in this.popups_)if(A={key$jscomp$1211:A.key$jscomp$1211},A.key$jscomp$1211=Y,!R||!R.some(function(z){return function(c){return c==z.key$jscomp$1211}}(A))){var P=this.popups_[A.key$jscomp$1211],E=P.popup;
_.is().resolve(_.z3(_.aD))&&P.openPopupAction.popupType==="TOAST"||(E&&E.close&&E.close(),this.removePopup_(E,A.key$jscomp$1211))}},
handleClosePopupsAction_:function(R){R.forEach(function(A){var Y=this.popups_[A];Y&&((Y=Y.popup)&&Y.close&&Y.close(),this.removePopup_(Y,A))}.bind(this))},
handleGetPopupOpenedAction_:function(R,A){return(A=this.createCacheKey(R,A))&&this.popups_[A]?this.popups_[R].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var R=[],A;for(A in this.popups_){var Y=this.popups_[A];Y.popup.opened&&R.push(Y)}return R},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(R,A){_.v("ytpopup_disable_default_html_caching")&&R&&R.removeWhenClosed&&(_.Mo(this.hostElement).removeChild(R),A&&this.popups_[A]&&delete this.popups_[A])},
shouldReusePopup_:function(R){return!(!R||!R.reusePopup)||!(!R||!R.beReused)},
ensurePopup_:function(R,A){this.maybeCreateNarrowMediaQuery_();var Y=_.fQ(R.popup,"renderer")||_.fQ(R.popup,"dialog")||_.fQ(R.popup,"model");if(!Y)return _.Vn();Y=_.ak8(Y,YmH(this.popupContainerConfig,Y));return _.Vn(this.getAndMaybeCreatePopup_(R,Y,A))},
getAndMaybeCreatePopup_:function(R,A,Y){var P=this.createCacheKey(A,R.uniqueId);if(this.popups_[P])return this.popups_[P];R=new XC({openPopupAction:R,target:Y,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(A)});return this.popups_[P]=R},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(R){return _.v("ytpopup_disable_default_html_caching")?R&&R.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",_.T2(this,this.openPopupQueryMatchesChanged_)),_.Mo(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(R){R=R.detail.value;for(var A in this.popups_)Hai(this.popups_[A],R)},
onPopupIronOverlayClosed_:function(R){var A=R.currentTarget,Y=_.G1l(A);Y=Y.length>0?Y[0]:A;if(Y.is!=="ytd-reel-watch-while-dialog-renderer"||R.target.is!=="tp-yt-iron-dropdown"){R.detail.popup=A;R.detail.popupRenderer=Y;var P,E={context:{openingElement:((P=this.popups_[(Y==null?void 0:Y.is)||""])==null?void 0:P.target)||void 0}};Object.assign(E,R.detail);var z;_.xo((z=Y.hostElement)!=null?z:Y,"yt-popup-closed",E);A.removeEventListener("yt-refit",_.T2(this,this.refitPopup_));A.removeEventListener("yt-invalidate-popup-tabbables",
_.T2(this,this.handleInvalidatePopupTabbables_));A.removeEventListener("iron-overlay-canceled",_.T2(this,this.onPopupIronOverlayCanceled_));A.removeEventListener("iron-overlay-closed",_.T2(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(A)}},
onPopupIronOverlayCanceled_:function(R,A){var Y=R.currentTarget,P=_.G1l(Y);P=P.length>0?P[0]:Y;if(P.is!=="ytd-reel-watch-while-dialog-renderer"||R.target.is!=="tp-yt-iron-dropdown"){var E;_.xo((E=P.hostElement)!=null?E:P,"yt-popup-canceled",R.detail);E=A?_.Ah(A):null;(!A||["click","tap"].includes(A.type))&&!Y.hasAttribute("force-close-on-outside-click")&&Y.positionTarget&&E&&E.includes(Y.positionTarget)&&R.preventDefault();Y.restoreFocusOnClose=_.Kr.keyboardEventMatchesKeys(A,"esc")}},
onPopupIronOverlayOpened_:function(R){R=R.currentTarget;var A=_.G1l(R);A=A.length>0?A[0]:R;var Y,P;_.xo((Y=A.hostElement)!=null?Y:A,"yt-popup-opened",(P=A.hostElement)!=null?P:A);R.keepBelowPlayer&&(this.ensurePopupBelowPlayer(R,!0),this.dynamicallyPositionedElements_.add(R));Y=_.is().resolve(_.z3(_.rt));P=!!A.querySelector("#toast");Y&&Y.isKeyBoardInUse()&&!P&&(typeof A.focusFirstItem==="function"?A.focusFirstItem():(A=_.ktH(R),A.length&&A[0].focus()));R.removeEventListener("iron-overlay-opened",
_.T2(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(R){R=R.currentTarget;R.refit&&R.refit()},
refitPopups_:function(){for(var R in this.popups_)this.popups_[R].refit()},
handleInvalidatePopupTabbables_:function(R){R=R.currentTarget;R.invalidateTabbables&&R.invalidateTabbables()},
createCacheKey:function(R,A){return _.v("web_popup_cache_key_killswitch")?A?R+"#"+A:R:A?"#"+A:R},
openSheet:function(R,A){var Y=R==null?void 0:R.openPopupActionCommand;!Y&&(R==null?0:R.viewModel)&&(Y={openPopupAction:{popup:{sheetViewModel:R.viewModel},popupType:"CONTEXTUAL_SHEET"}});Y&&this.handleOpenPopupAction(Y,A)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var R=this;return _.O(function(A){return A.return(R.handleGetOpenedPopupsAction_().filter(function(Y){var P;return((P=Y.openPopupAction)==null?void 0:P.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(R,A,Y){if(_.v("web_dialog_utils_killswitch")){var P=R==null?void 0:R.openPopupActionCommand,E=(Y==null?0:Y.ariaLabel)?{accessibilityData:{accessibilityData:{label:Y.ariaLabel}}}:void 0;!P&&(R==null?0:R.viewModel)&&(P={openPopupAction:Object.assign({},{popup:{dialogViewModel:R.viewModel},popupType:(Y==null?0:Y.isModal)?"MODAL":"DIALOG"},E&&E)});P&&this.handleOpenPopupAction(P,A)}else{if(E=R==null?void 0:R.viewModel){var z=Y=Y===void 0?{}:Y;Y=z.ariaLabel;E={popup:{dialogViewModel:E},
popupType:z.isModal?"MODAL":"DIALOG"};z={accessibilityData:{label:Y}};Y&&(E.accessibilityData=z);E={openPopupAction:E}}else E=void 0;if(E=(P=E)!=null?P:R==null?void 0:R.openPopupActionCommand)this.isAriaModal=_.v("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(E,A)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var R=this;return _.O(function(A){return A.return(R.handleGetOpenedPopupsAction_().filter(function(Y){var P;return((P=Y.openPopupAction)==null?void 0:P.popupType)==="DIALOG"}).length>0)})}}];var XpY;var SSY;var Ihm=_.Z7(["about:blank"]),Sj=function(){var R=_.K.apply(this,arguments)||this;R.isMuted=!1;R.pageLoadTimeoutId=void 0;return R};
_.H(Sj,_.K);_.l=Sj.prototype;_.l.dataChanged=function(){var R=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var A=this.data.url,Y=_.pn(A);_.v("enable_yt_ata_iframe_authuser")?(Y=_.pn(A),_.Lq(this.iframe,Tl9(Y))):_.Lq(this.iframe,Y);this.pageLoadTimeoutId=_.Ua(_.n6(),function(){return void R.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.zs({destination:window,iframe:this.iframe,origin:_.FmS(Y.toString()),channelName:"ataiframe",onMessage:_.oYk(lWf,function(P){xUN(P.data)?(P=_.wo(P.data,1,_.Yn,_.M_()),P.length!==1?_.pK(Error("Bl")):(P=P[0],P===3?(R.isMuted=!0,R.logStateChanged({adMuteRequested:!0})):P===1&&R.close())):_.pK(Error("Cl"))}),
onEstablished:function(){R.cancelPageLoadTimeout();R.logStateChanged({pageLoadSucceeded:!0})}})}};
_.l.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.n6().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.l.logStateChanged=function(R){var A;if((A=this.data)==null?0:A.trackingParams)R={adsClientData:{aboutThisAdData:R}},_.rU().stateChanged(this.data.trackingParams,R)};
_.l.close=function(){_.OC(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.handlesPopupClosed=function(R,A){var Y=this,P,E;return _.O(function(z){if(z.nextAddress==1)return _.a1("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.OC(Y.hostElement,"on-about-this-ad-popup-closed",[Y.isMuted,A]),z.jumpTo(0)):R&&QEW(R)?z.yield(vLm(R),4):(Y.isMuted&&_.OC(Y.hostElement,"yt-mute-ad-action",[Y.is,Y]),z.jumpTo(0));if(P=z.yieldResult){var c=E=new _.Zq(P),M=Y.isMuted;c.getOptions().includes("onAboutThisAdPopupClosed")?_.Sib(c,"onAboutThisAdPopupClosed",{isMuted:M,layoutId:A}):_.GI("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.XH(z)})};
_.l.onPopupClosed=function(R){var A=this,Y,P;return _.O(function(E){Y=_.Jr(Ihm);_.Lq(A.iframe,Y);A.cancelPageLoadTimeout();if(!A.data)return E.jumpTo(0);A.ytRendererBehavior.markDirty();P=R.detail.context.openingElement;return E.yield(A.handlesPopupClosed(P,A.data.layoutId),0)})};
_.l.detached=function(){this.cancelPageLoadTimeout()};
_.l.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Sj.prototype.onPopupClosed=Sj.prototype.onPopupClosed;Sj.prototype.dataChanged=Sj.prototype.dataChanged;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Sj.prototype,"ytRendererBehavior",void 0);_.C([_.nG("#iframe"),_.k("design:type",HTMLIFrameElement)],Sj.prototype,"iframe",void 0);_.C([_.S(),_.k("design:type",Object)],Sj.prototype,"data",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Sj.prototype,"dataChanged",null);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype",Promise)],Sj.prototype,"onPopupClosed",null);_.C([_.CG({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Sj);
_.B(Sj,"yt-about-this-ad-renderer",function(){if(SSY===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;XpY===void 0&&(XpY=document.createElement("template"));var P=XpY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);SSY=R}R=SSY;return R},{mode:2});var Kk9;var Wkf;var I0=function(R){var A=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=A.message;"stack"in A&&(this.stack=A.stack);this.maxFileSizeMB=R;Object.setPrototypeOf(this,I0.prototype)};
_.H(I0,Error);var jQ0=function(R,A){var Y=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.minWidth=R;this.minHeight=A;Object.setPrototypeOf(this,jQ0.prototype)};
_.H(jQ0,Error);var bam=function(R){this.requirements=R;this.JSC$20761_maxFileSize=R.maxFileSizeMB*1024*1024},fhF=function(R,A){if(A.size>R.JSC$20761_maxFileSize)throw new I0(R.requirements.maxFileSizeMB);
};var ppm=function(R,A){this.canvas=R;this.imageEditorBuilder=A};
ppm.prototype.addEventListeners=function(R){var A=function(E){FkN(R,E)};
this.JSC$20767_mouseDownEvent=A;var Y=function(E){B_H(R,E)};
this.JSC$20767_mouseMoveEvent=Y;var P=function(){ahn(R)};
this.JSC$20767_mouseUpEvent=P;this.canvas.addEventListener("mousedown",A);this.canvas.addEventListener("mousemove",Y);document.addEventListener("mouseup",P)};
ppm.prototype.removeEventListeners=function(){this.JSC$20767_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$20767_mouseDownEvent);this.JSC$20767_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$20767_mouseMoveEvent);this.JSC$20767_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$20767_mouseUpEvent)};
var CNi=function(R,A){R.removeEventListeners();return new Promise(function(Y){var P=new Image;P.crossOrigin="anonymous";P.onload=function(){var E=R.imageEditorBuilder(R.canvas,P);R.addEventListeners(E);Y(E)};
P.src=A})},Kk=function(R,A,Y,P,E,z,c,M){this.canvas=R;
this.image=A;this.requiredRatio=Y;this.minImageCropDimension=P;this.minOutputImageResolution=E;this.component=z;this.styleFocusedCorner=M===void 0?!0:M;this.action=2;this.focusedCorner=this.resizeCorner=0;R=this.canvas.getContext("2d");if(!R)throw Error("Dl");this.ctx=R;this.canvasMargin=c!=null?c:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;c=this.image;R=this.canvasInnerWidth/c.width;c.height*R>912&&(R=c.width/c.height*912/c.width);c=R;this.scaledImageWidth=this.canvas.width%2?
nL9(this.image.width*c):gLF(this.image.width*c);this.scaledImageHeight=Math.round(this.image.height*c);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$20770_overlayMarginBottom=this.JSC$20770_overlayMarginTop=this.canvasMargin;this.JSC$20770_overlayMarginRight=this.JSC$20770_overlayMarginLeft=this.horizontalMargin;this.JSC$20770_overlayWidth=this.scaledImageWidth;this.JSC$20770_overlayHeight=this.scaledImageHeight;
R=this.image.width/this.image.height;R>this.requiredRatio?(this.JSC$20770_overlayWidth=this.canvas.width%2?nL9(this.scaledImageHeight*this.requiredRatio):gLF(this.scaledImageHeight*this.requiredRatio),this.JSC$20770_overlayMarginRight=this.JSC$20770_overlayMarginLeft=(this.canvas.width-this.JSC$20770_overlayWidth)/2):R<this.requiredRatio&&(this.JSC$20770_overlayHeight=this.canvas.height%2?nL9(this.scaledImageWidth/this.requiredRatio):gLF(this.scaledImageWidth/this.requiredRatio),this.JSC$20770_overlayMarginBottom=
this.JSC$20770_overlayMarginTop=(this.canvas.height-this.JSC$20770_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*c,this.scaledImageWidth);hCi(this)};
Kk.prototype.getContext=function(){return this.ctx};
var FkN=function(R,A){A={x:Math.round(A.pageX-R.canvas.getBoundingClientRect().left),y:Math.round(A.pageY-R.canvas.getBoundingClientRect().top)};R.dragStart=A;oro(R,A)!==0?(R.action=1,kvQ(R,A),R.resizeCorner=oro(R,A)):A.x>R.JSC$20770_overlayMarginLeft&&A.x<R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth&&A.y>R.JSC$20770_overlayMarginTop&&A.y<R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight&&(R.action=0)},GvG=function(R,A){switch(A){case 1:return{x:R.JSC$20770_overlayMarginLeft,
y:R.JSC$20770_overlayMarginTop};case 2:return{x:R.JSC$20770_overlayMarginLeft,y:R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight};case 3:return{x:R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth,y:R.JSC$20770_overlayMarginTop};case 4:return{x:R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth,y:R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight};default:throw Error("El");}},t7m=function(R,A){if(R.focusedCorner!==0){R.dragStart=GvG(R,R.focusedCorner);
R.action=1;R.resizeCorner=R.focusedCorner;var Y=R.dragStart.x,P=R.dragStart.y;switch(A){case 0:R.focusedCorner===1||R.focusedCorner===4?(Y-=10,P-=10):(Y-=10,P+=10);break;case 1:R.focusedCorner===1||R.focusedCorner===4?(Y+=10,P+=10):(Y+=10,P-=10);break;case 2:Y=R.focusedCorner===1||R.focusedCorner===4?Y-10:Y+10;P-=10;break;case 3:Y=R.focusedCorner===1||R.focusedCorner===4?Y+10:Y-10;P+=10;break;default:throw Error("Fl");}Zao(R,{x:Y,y:P});hCi(R);R.action=2;R.dragStart=void 0}},B_H=function(R,A){A={x:Math.round(A.pageX-
R.canvas.getBoundingClientRect().left),
y:Math.round(A.pageY-R.canvas.getBoundingClientRect().top)};kvQ(R,A);switch(R.action){case 1:Zao(R,A);break;case 0:R.dragStart&&(R.JSC$20770_overlayMarginLeft=Math.max(R.horizontalMargin,Math.min(R.JSC$20770_overlayMarginLeft-(R.dragStart.x-A.x),R.horizontalMargin+R.scaledImageWidth-R.JSC$20770_overlayWidth)),R.JSC$20770_overlayMarginRight=R.canvas.width-R.JSC$20770_overlayMarginLeft-R.JSC$20770_overlayWidth,R.JSC$20770_overlayMarginTop=Math.max(R.canvasMargin,Math.min(R.JSC$20770_overlayMarginTop-
(R.dragStart.y-A.y),R.scaledImageHeight-R.JSC$20770_overlayHeight+R.canvasMargin)),R.JSC$20770_overlayMarginBottom=R.canvas.height-(R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight));break;default:return}hCi(R);R.dragStart=A},ahn=function(R){R.action=2;
R.dragStart=void 0;document.body.style.cursor="auto"},kvQ=function(R,A){switch(oro(R,A)){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:R.action!==1&&(document.body.style.cursor="auto")}},oro=function(R,A){var Y=R.JSC$20770_overlayMarginLeft-5,P=R.JSC$20770_overlayMarginTop-5,E=R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth-5;
R=R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight-5;return wpj(A,{x:Y,y:P})?1:wpj(A,{x:E,y:P})?3:wpj(A,{x:Y,y:R})?2:wpj(A,{x:E,y:R})?4:0},wpj=function(R,A){return R.x>=A.x&&R.x<=A.x+10&&R.y>=A.y&&R.y<=A.y+10},Zao=function(R,A){if(R.dragStart)switch(R.resizeCorner){case 2:Math.abs((R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth-A.x)/(A.y-R.JSC$20770_overlayMarginTop))>=R.requiredRatio?ugQ(R,A.x):eCG(R,A.y);
break;case 1:Math.abs((R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth-A.x)/(R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight-A.y))>=R.requiredRatio?qSW(R,A.x):eCG(R,A.y);break;case 4:Math.abs((A.x-R.JSC$20770_overlayMarginLeft)/(A.y-R.JSC$20770_overlayMarginTop))>=R.requiredRatio?ugQ(R,A.x):LkH(R,A.y);break;case 3:Math.abs((A.x-R.JSC$20770_overlayMarginLeft)/(R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight-A.y))>=R.requiredRatio?qSW(R,A.x):LkH(R,A.y);break;default:throw Error("Gl");
}},ugQ=function(R,A){var Y=R.JSC$20770_overlayMarginTop;
R.JSC$20770_overlayMarginBottom=dwf(R,A);R.JSC$20770_overlayHeight=R.canvas.height-R.JSC$20770_overlayMarginBottom-Y;R.JSC$20770_overlayWidth=Math.round(R.JSC$20770_overlayHeight*R.requiredRatio);R9f(R)},qSW=function(R,A){var Y=R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight;
R.JSC$20770_overlayMarginTop=dwf(R,A);R.JSC$20770_overlayHeight=Y-R.JSC$20770_overlayMarginTop;R.JSC$20770_overlayWidth=Math.round(R.JSC$20770_overlayHeight*R.requiredRatio);R9f(R)},R9f=function(R){switch(R.resizeCorner){case 2:case 1:R.JSC$20770_overlayMarginLeft=R.canvas.width-R.JSC$20770_overlayMarginRight-R.JSC$20770_overlayWidth;
break;case 4:case 3:R.JSC$20770_overlayMarginRight=R.canvas.width-R.JSC$20770_overlayMarginLeft-R.JSC$20770_overlayWidth;break;default:throw Error("Gl");}},eCG=function(R,A){var Y=R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth;
R.JSC$20770_overlayMarginLeft=AyF(R,A);R.JSC$20770_overlayWidth=Y-R.JSC$20770_overlayMarginLeft;R.JSC$20770_overlayHeight=Math.round(R.JSC$20770_overlayWidth/R.requiredRatio);YqN(R)},LkH=function(R,A){var Y=R.JSC$20770_overlayMarginLeft;
R.JSC$20770_overlayMarginRight=AyF(R,A);R.JSC$20770_overlayWidth=R.canvas.width-R.JSC$20770_overlayMarginRight-Y;R.JSC$20770_overlayHeight=Math.round(R.JSC$20770_overlayWidth/R.requiredRatio);YqN(R)},YqN=function(R){switch(R.resizeCorner){case 2:case 4:R.JSC$20770_overlayMarginBottom=R.canvas.height-R.JSC$20770_overlayMarginTop-R.JSC$20770_overlayHeight;
break;case 1:case 3:R.JSC$20770_overlayMarginTop=R.canvas.height-R.JSC$20770_overlayMarginBottom-R.JSC$20770_overlayHeight;break;default:throw Error("Gl");}},dwf=function(R,A){switch(R.resizeCorner){case 2:A=R.canvas.height-(R.JSC$20770_overlayMarginTop+PqY(R,A));
break;case 4:A=R.canvas.height-(R.JSC$20770_overlayMarginTop+EvH(R,A));break;case 1:A=R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight-PqY(R,A);break;case 3:A=R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight-EvH(R,A);break;default:throw Error("Gl");}return Math.max(A,R.canvasMargin)},PqY=function(R,A){A=R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth-Math.max(A,R.horizontalMargin);
A=A<0?R.JSC$20770_overlayWidth:Math.max(A,R.minOverlayWidth);return Math.round(A/R.requiredRatio)},EvH=function(R,A){A=R.canvas.width-Math.max(R.canvas.width-A,R.horizontalMargin)-R.JSC$20770_overlayMarginLeft;
A=A<0?R.JSC$20770_overlayWidth:Math.max(A,R.minOverlayWidth);return Math.round(A/R.requiredRatio)},AyF=function(R,A){switch(R.resizeCorner){case 2:A=R.canvas.width-R.JSC$20770_overlayMarginRight-z9Y(R,A);
break;case 4:A=R.canvas.width-R.JSC$20770_overlayMarginLeft-z9Y(R,A);break;case 1:A=R.canvas.width-R.JSC$20770_overlayMarginRight-iLi(R,A);break;case 3:A=R.canvas.width-R.JSC$20770_overlayMarginLeft-iLi(R,A);break;default:throw Error("Gl");}return Math.max(A,R.horizontalMargin)},z9Y=function(R,A){A=R.canvas.height-Math.max(R.canvas.height-A,R.canvasMargin)-R.JSC$20770_overlayMarginTop;
return A<0?R.JSC$20770_overlayWidth:Math.max(Math.round(A*R.requiredRatio),R.minOverlayWidth)},iLi=function(R,A){A=R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight-Math.max(A,R.canvasMargin);
return A<0?R.JSC$20770_overlayWidth:Math.max(Math.round(A*R.requiredRatio),R.minOverlayWidth)},hCi=function(R){R.ctx.clearRect(0,0,R.canvas.width,R.canvas.height);
R.ctx.drawImage(R.image,0,0,R.image.width,R.image.height,R.horizontalMargin,R.canvasMargin,R.canvas.width-2*R.horizontalMargin,R.scaledImageHeight);R.ctx.fillStyle="rgba(0, 0, 0, 0.7)";R.ctx.fillRect(R.horizontalMargin,R.JSC$20770_overlayMarginTop,R.JSC$20770_overlayMarginLeft-R.horizontalMargin,R.JSC$20770_overlayHeight);R.ctx.fillRect(R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth,R.JSC$20770_overlayMarginTop,R.JSC$20770_overlayMarginRight-R.horizontalMargin,R.JSC$20770_overlayHeight);R.ctx.fillRect(R.horizontalMargin,
R.canvasMargin,R.scaledImageWidth,R.JSC$20770_overlayMarginTop-R.canvasMargin);R.ctx.fillRect(R.horizontalMargin,R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight,R.scaledImageWidth,R.JSC$20770_overlayMarginBottom-R.canvasMargin);R.drawOverlay();R.component&&_.xo(R.component,"image-updated")};
Kk.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$20770_overlayMarginLeft,this.JSC$20770_overlayMarginTop,this.JSC$20770_overlayWidth,this.JSC$20770_overlayHeight);lKo(this)};
var lKo=function(R){var A=R.JSC$20770_overlayMarginLeft-5,Y=R.JSC$20770_overlayMarginTop-5,P=R.JSC$20770_overlayMarginLeft+R.JSC$20770_overlayWidth-5,E=R.JSC$20770_overlayMarginTop+R.JSC$20770_overlayHeight-5;R.ctx.fillStyle="#FFF";R.ctx.fillRect(A,Y,10,10);R.ctx.strokeRect(A,Y,10,10);R.ctx.fillRect(P,Y,10,10);R.ctx.strokeRect(P,Y,10,10);R.ctx.fillRect(A,E,10,10);R.ctx.strokeRect(A,E,10,10);R.ctx.fillRect(P,E,10,10);R.ctx.strokeRect(P,E,10,10);if(R.focusedCorner!==0&&R.styleFocusedCorner){R.ctx.lineWidth=
4;R.ctx.strokeStyle="#3EA6FF";switch(R.focusedCorner){case 1:--A;--Y;break;case 2:--A;Y=E-1;break;case 3:A=P-1;--Y;break;case 4:A=P-1;Y=E-1;break;default:return}R.ctx.strokeRect(A,Y,12,12)}};
Kk.prototype.crop=function(R,A){A=A===void 0?!0:A;var Y=this.image.width/this.scaledImageWidth,P=document.createElement("canvas"),E=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],z=this.JSC$20770_overlayWidth*Y,c=this.JSC$20770_overlayHeight*Y;P.width=Math.max(z,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);P.height=Math.max(c,E);R&&(P.width=Math.min(P.width,P.height),P.height=Math.min(P.width,P.height));
R=P.getContext("2d");if(!R)throw Error("ul");E=(this.JSC$20770_overlayMarginLeft-this.horizontalMargin)*Y;Y*=this.JSC$20770_overlayMarginTop-this.canvasMargin;A||(R.fillStyle="white",R.fillRect(0,0,P.width,P.height));R.drawImage(this.image,E,Y,z,c,0,0,P.width,P.height);return P};var xkf=function(R,A,Y,P,E){Kk.call(this,R,A,Y,P,void 0,E,8,!1)};
_.H(xkf,Kk);xkf.prototype.drawOverlay=function(){var R=this.getContext(),A=this.JSC$20770_overlayWidth,Y=this.JSC$20770_overlayHeight,P=this.JSC$20770_overlayMarginTop,E=this.JSC$20770_overlayMarginLeft;R.lineWidth=2;R.strokeStyle="#3EA6FF";R.beginPath();R.arc(E+A/2,P+Y/2,A/2,0,2*Math.PI);R.stroke();R.strokeRect(E,P,A,Y);lKo(this)};
var cyF={maxFileSizeMB:15,minWidth:98,minHeight:98},OLf=["image/png","image/jpeg","image/gif"],Wq=function(){var R=_.K.apply(this,arguments)||this;R.fileSelectorFocusListener=null;R.errorMessage=null;R.isLoading=!0;R.hideContainer=!0;R.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return R};
_.H(Wq,_.K);_.l=Wq.prototype;_.l.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.l.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.l.computePlaylistThumbnail=function(R){return R==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.l.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.OC(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.l.setErrorState=function(R){this.resetErrorState();R&&(this.errorMessage=R)};
_.l.showPopup=function(){var R=this;this.hideContainer=!1;_.Ua(_.fn,function(){_.xo(R.hostElement,"yt-refit")});
this.isLoading=!1};
_.l.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.l.closePopup=function(){this.resetFileSelector();_.OC(this.hostElement,"yt-close-popup-action",[this.is])};
_.l.onCancelTap=function(){this.isPlaylistThumbnail||_.OC(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.l.openFileSelector=function(){var R=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Ua(_.fn,function(){setTimeout(function(){if(!R.fileSelector.files||R.fileSelector.files.length===0)R.onCancelTap();R.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(A){A instanceof Error?_.bj(A):_.fK(new _.XN(JSON.stringify(A)))}};
_.l.handleFileSelection=function(){var R=this,A,Y,P,E,z,c;return _.O(function(M){switch(M.nextAddress){case 1:_.g2(M,2);if(!R.fileSelector.files||!R.imageEditorCanvas)return R.onCancelTap(),M.return();A=R.fileSelector.files[0];fhF(R.imageChecker,A);_.g2(M,4);return M.yield(t5g(A),6);case 6:R.mimeType=M.yieldResult;_.us(M,5,2);break;case 4:_.UT(M,2),_.OC(R.hostElement,"yt-image-selection-error-action",[(Y=R.data)==null?void 0:Y.genericImageLoadErrorMessage]),R.onCancelTap();case 5:P=new FileReader;
P.addEventListener("load",function(){var N,y;return _.O(function(m){if(m.nextAddress==1){if(!P.result)return _.pK(Error("wl")),m.return();N=P.result;y=new Image;y.src=N;y.onload=function(){try{var T=R.imageChecker;if(y.width<T.requirements.minWidth||y.height<T.requirements.minHeight)throw new jQ0(T.requirements.minWidth,T.requirements.minHeight);}catch(g){if(g instanceof jQ0){var Q;_.OC(R.hostElement,"yt-image-selection-error-action",[(Q=R.data)==null?void 0:Q.imageDimensionErrorMessage]);R.logImageDimensionErrorVe()}else g instanceof
Error?_.bj(g):(T=new _.XN(JSON.stringify(g)),_.bj(T));R.onCancelTap()}R.showPopup()};
y.onerror=function(){var T;_.OC(R.hostElement,"yt-image-selection-error-action",[(T=R.data)==null?void 0:T.genericImageLoadErrorMessage]);R.onCancelTap()};
return m.yield(CNi(R.imageEditorCanvas,N),2)}R.imageEditor=m.yieldResult;R.updatePositionOfAllCorners();R.addEventListeners(R.imageEditor);_.XH(m)})},!1);
P.readAsDataURL(A);_.us(M,0);break;case 2:E=_.UT(M),E instanceof I0?_.OC(R.hostElement,"yt-image-selection-error-action",[(z=R.data)==null?void 0:z.imageSizeErrorMessage]):(E instanceof Error?_.bj(E):_.fK(new _.XN(JSON.stringify(E))),_.OC(R.hostElement,"yt-image-selection-error-action",[(c=R.data)==null?void 0:c.genericImageLoadErrorMessage])),R.onCancelTap(),_.XH(M)}})};
_.l.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var R=_.Hc(_.rU(),{veType:232707,visualElement:_.NV(232707)});R&&(R={visualElement:R},_.nC().reportShown(R))}};
_.l.handleImageSelectionErrorAction=function(R){this.isPlaylistThumbnail&&_.DEJ(this.hostElement,R)};
_.l.convertToImageFormatBundle=function(R){var A=this,Y,P,E;return _.O(function(z){switch(z.nextAddress){case 1:return Y=R.toDataURL(A.outputMimeType,1),z.yield(wcH(Y),2);case 2:P=z.yieldResult;_.g2(z,3);fhF(A.imageChecker,P);_.us(z,4);break;case 3:E=_.UT(z);if(!(E instanceof I0))throw E;_.pK(new _.XN("Output size is bigger than input size for image",A.mimeType,A.outputMimeType,P.size));Y=R.toDataURL("image/jpeg",.95);return z.yield(wcH(Y),6);case 6:P=z.yieldResult;case 4:return z.return({dataUrl:Y,
imageFile:P})}})};
_.l.handleUploadImageToScottyCommand=function(R){var A=this,Y,P,E,z,c,M,N,y,m,T;return _.O(function(Q){switch(Q.nextAddress){case 1:if(!A.imageEditor||!_.n(R,HH0))return Q.return();Y=_.n(R,HH0).scottyUploadUrl;if(!Y){var g=new _.XN("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.bj(g);return Q.return()}_.g2(Q,2);A.setLoadingState();P=A.imageEditor.crop(!1,!1);return Q.yield(A.convertToImageFormatBundle(P),4);case 4:return E=Q.yieldResult,Q.yield(Gjj(E.imageFile,Y),5);
case 5:z=Q.yieldResult;((c=A.data)==null?0:c.onUploadEndpoint)?(M=A.buildUploadServiceEndpoint(z),A.ytComponentBehavior.resolveCommand(M),N=_.n(M,_.qN),((y=N)==null?0:y.params)?A.closePopup():A.resetFileSelector()):(_.OC(A.hostElement,"yt-image-updated-action",[E.dataUrl,z]),A.closePopup());_.us(Q,0);break;case 2:m=_.UT(Q),A.setErrorState((T=A.data)==null?void 0:T.uploadErrorMessage),m instanceof Error?_.bj(m):(g=new _.XN(JSON.stringify(m)),_.bj(g)),_.XH(Q)}})};
_.l.buildUploadServiceEndpoint=function(R){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",R),this.data.onUploadEndpoint):null};
_.l.dataChanged=function(){var R=this,A;return _.O(function(Y){if(Y.nextAddress==1){if(!R.data||!R.canvasElement)return Y.return();R.data.imageRatio&&R.data.minImageCropWidth||_.fK(new _.XN("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));A=function(P,E){return R.data.imageType==="IMAGE_TYPE_AVATAR"?new xkf(P,E,R.data.imageRatio,[R.data.minImageCropWidth,R.data.minImageCropWidth/R.data.imageRatio],R.hostElement):new Kk(P,E,R.data.imageRatio,[R.data.minImageCropWidth,
R.data.minImageCropWidth/R.data.imageRatio],void 0,R.hostElement,8,!1)};
R.imageEditorCanvas=new ppm(R.canvasElement,A);return R.data.url?Y.yield(CNi(R.imageEditorCanvas,R.data.url),3):(R.hideContainer=!0,R.openFileSelector(),Y.jumpTo(0))}R.imageEditor=Y.yieldResult;R.showPopup();R.addEventListeners(R.imageEditor);_.XH(Y)})};
_.l.addEventListeners=function(R){this.removeEventListeners();var A=function(E){FkN(R,E)};
this.JSC$20778_mouseDownEvent=A;var Y=function(E){B_H(R,E)};
this.JSC$20778_mouseMoveEvent=Y;var P=function(){ahn(R)};
this.JSC$20778_mouseUpEvent=P;this.topLeftCorner.addEventListener("mousedown",A);this.topLeftCorner.addEventListener("mousemove",Y);this.topLeftCorner.addEventListener("mouseup",P);this.topRightCorner.addEventListener("mousedown",A);this.topRightCorner.addEventListener("mousemove",Y);this.topRightCorner.addEventListener("mouseup",P);this.bottomLeftCorner.addEventListener("mousedown",A);this.bottomLeftCorner.addEventListener("mousemove",Y);this.bottomLeftCorner.addEventListener("mouseup",P);this.bottomRightCorner.addEventListener("mousedown",
A);this.bottomRightCorner.addEventListener("mousemove",Y);this.bottomRightCorner.addEventListener("mouseup",P)};
_.l.removeEventListeners=function(){this.JSC$20778_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$20778_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$20778_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$20778_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$20778_mouseDownEvent));this.JSC$20778_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$20778_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$20778_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$20778_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$20778_mouseMoveEvent));this.JSC$20778_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$20778_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$20778_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$20778_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$20778_mouseUpEvent))};
_.l.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var R=document.activeElement;R&&R.shadowRoot&&R.shadowRoot.activeElement;)R=R.shadowRoot.activeElement;switch(R){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};
_.l.updatePositionOfCorner=function(R,A){var Y=R.y-A.offsetHeight/2+4;A.style.left=R.x-A.offsetWidth/2+16+"px";A.style.top=Y+"px"};
_.l.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var R=_.x([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),A=R.next();!A.done;A=R.next()){A=A.value;var Y=GvG(this.imageEditor,A.corner);this.updatePositionOfCorner(Y,A.div)}};
_.l.onLeft=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(t7m(this.imageEditor,0),this.updatePositionOfAllCorners(),R.preventDefault())};
_.l.onRight=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(t7m(this.imageEditor,1),this.updatePositionOfAllCorners(),R.preventDefault())};
_.l.onUp=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(t7m(this.imageEditor,2),this.updatePositionOfAllCorners(),R.preventDefault())};
_.l.onDown=function(R){this.imageEditor&&this.setFocusInImageEditor()&&(t7m(this.imageEditor,3),this.updatePositionOfAllCorners(),R.preventDefault())};
_.l.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Yh.Object.defineProperties(Wq.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&OLf.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var R,A,Y;((A=this.data)==null?0:A.imageRatio)&&((Y=this.data)==null?0:Y.minImageCropWidth)?R={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:R=cyF;return new bam(R)}}});
Wq.prototype.updatePositionOfAllCorners=Wq.prototype.updatePositionOfAllCorners;Wq.prototype.dataChanged=Wq.prototype.dataChanged;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Wq.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Wq.prototype,"ytComponentBehavior",void 0);_.C([_.U(_.Kr),_.k("design:type",Object)],Wq.prototype,"ironA11yKeysBehavior",void 0);
_.C([_.nG("#canvas"),_.k("design:type",HTMLCanvasElement)],Wq.prototype,"canvasElement",void 0);_.C([_.nG("#file-selector"),_.k("design:type",HTMLInputElement)],Wq.prototype,"fileSelector",void 0);_.C([_.nG("#top-left-corner"),_.k("design:type",HTMLDivElement)],Wq.prototype,"topLeftCorner",void 0);_.C([_.nG("#top-right-corner"),_.k("design:type",HTMLDivElement)],Wq.prototype,"topRightCorner",void 0);
_.C([_.nG("#bottom-left-corner"),_.k("design:type",HTMLDivElement)],Wq.prototype,"bottomLeftCorner",void 0);_.C([_.nG("#bottom-right-corner"),_.k("design:type",HTMLDivElement)],Wq.prototype,"bottomRightCorner",void 0);_.C([_.S(),_.k("design:type",Object)],Wq.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],Wq.prototype,"errorMessage",void 0);_.C([_.S(),_.k("design:type",Object)],Wq.prototype,"isLoading",void 0);_.C([_.S(),_.k("design:type",Object)],Wq.prototype,"hideContainer",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.k("design:type",Boolean)],Wq.prototype,"isPlaylistThumbnail",void 0);_.C([_.Ul("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],Wq.prototype,"dataChanged",null);_.C([_.Qa("image-updated"),_.Qa("yt-refit"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Wq.prototype,"updatePositionOfAllCorners",null);
_.C([_.CG({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Wq);
_.B(Wq,"yt-image-editor-renderer",function(){if(Wkf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Kk9===void 0&&(Kk9=document.createElement("template"));var P=Kk9;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Wkf=R}R=Wkf;return R},{mode:2});var M$F;var sqG;var jj=function(){return _.K.apply(this,arguments)||this};
_.H(jj,_.K);jj.prototype.updateMinutesFromBinding=function(R){this.handleMinutesChanged&&this.handleMinutesChanged(R)};
jj.prototype.updateSecondsFromBinding=function(R){this.handleSecondsChanged&&this.handleSecondsChanged(R)};
jj.prototype.updateDescriptionFromBinding=function(R){this.handleDescriptionChanged&&this.handleDescriptionChanged(R)};
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],jj.prototype,"ytComponentBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],jj.prototype,"data",void 0);_.C([_.S(),_.k("design:type",String)],jj.prototype,"minutes",void 0);_.C([_.S(),_.k("design:type",String)],jj.prototype,"seconds",void 0);_.C([_.S(),_.k("design:type",String)],jj.prototype,"description",void 0);_.C([_.S(),_.k("design:type",Function)],jj.prototype,"handleMinutesChanged",void 0);
_.C([_.S(),_.k("design:type",Function)],jj.prototype,"handleSecondsChanged",void 0);_.C([_.S(),_.k("design:type",Function)],jj.prototype,"handleDescriptionChanged",void 0);_.C([_.S(),_.k("design:type",Number)],jj.prototype,"characterLimit",void 0);_.C([_.S(),_.k("design:type",Number)],jj.prototype,"textNumRows",void 0);_.C([_.CG({is:"yt-report-details-form-content",disableElementRegistration:!0})],jj);
_.B(jj,"yt-report-details-form-content",function(){if(sqG===void 0){var R=document.createElement("template");_.D(R,'\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>');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;M$F===void 0&&(M$F=document.createElement("template"));var P=M$F;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);sqG=R}R=sqG;return R},{mode:2});var NWY;var V$N;var bp=function(){var R=_.K.apply(this,arguments)||this;R.updateMinutesFromBinding=function(A){R.minutes=A.detail.value};
R.updateSecondsFromBinding=function(A){R.seconds=A.detail.value};
R.updateDescriptionFromBinding=function(A){R.description=A.detail.value};
return R};
_.H(bp,_.K);_.l=bp.prototype;_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.l.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"}}}};
_.l.ready=function(){_.Mo(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.l.onSubmitYtAction=function(R){var A=R.detail;A.actionName==="yt-service-request"&&(A=A.args[1],A.flagEndpoint&&(R.stopPropagation(),this.refireAction(A)))};
_.l.refireAction=function(R){var A={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(A.vss_id=this.vssId);_.sC(this.hostElement,[R,A]);this.submitDisabled=!0};
_.l.dataChanged=function(){var R=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var A=_.EJ();A&&A.getPlayerPromise().then(function(Y){var P=Y.getOption("cc","track")||Y.getOption("captions","track");P&&(R.vssId=P.vss_id);Y=Y.getCurrentTime();R.minutes=Math.floor(Y/60).toString();R.seconds=(Math.floor(Y)%60).toString()})};
_.l.updateSubmitButtonState=function(){var R;((R=this.data)==null?0:R.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==="")};
_.l.onYtServiceRequestCompleted=function(){_.OC(this.hostElement,"yt-close-popup-action")};
_.l.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Yh.Object.defineProperties(bp.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var R;return((R=this.data)==null?void 0:R.textNumRows)||4}}});
bp.prototype.onYtServiceRequestError=bp.prototype.onYtServiceRequestError;bp.prototype.onYtServiceRequestCompleted=bp.prototype.onYtServiceRequestCompleted;bp.prototype.updateSubmitButtonState=bp.prototype.updateSubmitButtonState;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);
_.C([_.S({observer:"dataChanged"}),_.k("design:type",Object)],bp.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Boolean)],bp.prototype,"submitDisabled",void 0);_.C([_.S(),_.k("design:type",String)],bp.prototype,"minutes",void 0);_.C([_.S(),_.k("design:type",String)],bp.prototype,"seconds",void 0);_.C([_.S(),_.k("design:type",String)],bp.prototype,"description",void 0);_.C([_.S(),_.k("design:type",String)],bp.prototype,"vssId",void 0);
_.C([_.S({value:_.a1("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.k("design:type",Boolean)],bp.prototype,"isMusic",void 0);_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],bp.prototype,"characterLimit",null);_.C([_.X("data"),_.k("design:type",Number),_.k("design:paramtypes",[])],bp.prototype,"textNumRows",null);
_.C([_.Ul("minutes","seconds","description","submitDisabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bp.prototype,"updateSubmitButtonState",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bp.prototype,"onYtServiceRequestCompleted",null);
_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],bp.prototype,"onYtServiceRequestError",null);_.C([_.CG({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],bp);
_.B(bp,"yt-report-details-form-renderer",function(){if(V$N===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;NWY===void 0&&(NWY=document.createElement("template"));var P=NWY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);V$N=R}R=V$N;return R});var Jyg;var yyi;var mkY;var TWn;var fk=function(){return _.K.apply(this,arguments)||this};
_.H(fk,_.K);
fk.prototype.onCheckedChanged_=function(){if(this.data){var R=_.Mo(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.OC(this.hostElement,"yt-additional-detail-checkbox-update",[R]):this.data.identifier==="yt-hide-user-checkbox"?_.OC(this.hostElement,"yt-hide-user-checkbox-update",[R]):R&&this.data.enableCommand?_.OC(this.hostElement,"yt-modify-report-form-command",[_.n(this.data.enableCommand,IWj)]):!R&&this.data.disableCommand&&_.OC(this.hostElement,
"yt-modify-report-form-command",[_.n(this.data.enableCommand,IWj)])}};
fk.prototype.onLabelTap_=function(R){R.target.tagName!="A"&&(_.Mo(this.hostElement).querySelector("#checkbox").checked=!_.Mo(this.hostElement).querySelector("#checkbox").checked)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],fk.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],fk.prototype,"data",void 0);_.C([_.CG({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],fk);
_.B(fk,"yt-boolean-form-field-v2-renderer",function(){if(TWn===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;mkY===void 0&&(mkY=document.createElement("template"));var P=mkY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);TWn=R}R=TWn;return R});var pk=function(){var R=_.K.apply(this,arguments)||this;R.canShowAdditionalDetailCheckbox=!1;R.canShowCheckbox=!1;R.keepDropdownFocusedAfterSelection=!0;return R};
_.H(pk,_.K);pk.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}}}}};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],pk.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],pk.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],pk.prototype,"canShowAdditionalDetailCheckbox",void 0);_.C([_.S(),_.k("design:type",Object)],pk.prototype,"canShowCheckbox",void 0);_.C([_.S(),_.k("design:type",Object)],pk.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.C([_.CG({is:"yt-report-form-modal-content",disableElementRegistration:!0})],pk);
_.B(pk,"yt-report-form-modal-content",function(){if(yyi===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Jyg===void 0&&(Jyg=document.createElement("template"));var P=Jyg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);yyi=R}R=yyi;return R},{mode:2});var QqQ;var vv9;var FC=function(){var R=_.K.apply(this,arguments)||this;R.submitting=!1;R.submitButtonDisabled=!0;R.command=null;R.canShowCheckbox=!1;R.canShowAdditionalDetailCheckbox=!1;R.canShowNextButton=!1;R.additionalDetailCheckboxChecked=!1;R.refitJob=0;R.keepDropdownFocusedAfterSelection=!0;R.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 R};
_.H(FC,_.K);_.l=FC.prototype;_.l.created=function(){this.refitJob=0};
_.l.attached=function(){this.JSC$20801_scroller&&(this.JSC$20801_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20801_scroller.attached&&typeof this.JSC$20801_scroller.attached==="function"&&this.JSC$20801_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.dataChanged=function(R){R&&(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,R.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),R.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.l.onYtPopupOpened=function(){var R=_.EJ();R&&R.getPlayerPromise().then(function(A){A.pauseVideo()})};
_.l.onYtNavigate=function(R){_.n(R.detail.endpoint,_.xlq)&&(R.stopPropagation(),this.hideReportForm=!0)};
_.l.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.l.onYtServiceRequestCompleted=function(R,A){var Y=A.actions;if(Y){if(Y.length===1&&_.n(Y[0],_.Jg)){var P;Y=((P=_.n(Y[0],_.Jg))==null?void 0:P.commands)||[]}P=0;for(var E=Y.length;P<E;P++)_.n(Y[P],_.Fe)&&(R.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(Y[P]))}if(A.data&&(R=this.get("feedbackResponses",A.data)))for(A=0;A<R.length;A++)if(R[A].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.l.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.l._onDescendantIronResize=function(R){R.stopPropagation();return!1};
_.l.handleReportFormEndpointUpdateAction=function(R){if(R.submitEndpoint){var A=this.command=R.submitEndpoint;A=_.n(A,_.z$S);if(A==null?0:A.additionalDetailCheckboxChecked)A.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else R.submitNavigationEndpoint?(this.command=R.submitNavigationEndpoint,this.toggleSubmitButton(!1)):R.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:R.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;R.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",R));this.refit()};
_.l.handleConfirmDialogCloseAction=function(R){R.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.l.submitButtonDisabledChanged=function(){var R=this.hostElement.parentElement;R&&R.invalidateTabbables&&R.invalidateTabbables()};
_.l.handleModifyReportFormCommand=function(R){R=this.get("action",R);R==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:R==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:R==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:R==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:R==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:R==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.l.updateDialogStyling=function(){var R,A,Y,P,E,z=((E=(R=this.data)==null?void 0:(A=R.optionsSupportedRenderers)==null?void 0:(Y=A.optionsRenderer)==null?void 0:(P=Y.items)==null?void 0:P.length)!=null?E:0)<=2?0:240;_.ya(this.hostElement,{"--yt-report-form-modal-renderer-min-width":z+"px"})};
_.l.toggleSubmitButton=function(R){this.submitButtonDisabled=!R;this.submitButtonDisabled=R};
_.l.computeSubmitButtonData=function(R,A){var Y={};_.n(A,_.xlq)?Y.navigationEndpoint=A:Y.command=A||void 0;R&&R.buttonRenderer&&_.BO.extend(Y,R.buttonRenderer);return Y};
_.l.computeNextButtonData=function(R,A){var Y={};if(!R||!R.buttonRenderer)return Y;_.BO.extend(Y,R.buttonRenderer);if(!A)return Y;if(_.n(A,_.xlq))Y.navigationEndpoint=u2F(A);else if(Y.command=u2F(A),R=_.n(Y.command,_.z$S))R.legalCheckboxChecked=!0;return Y};
_.l.computeShowNextButton=function(R,A,Y){return!!R&&A&&Y};
_.l.refit=function(){var R=this;this.refitJob||(this.refitJob=_.fn.addLowPriorityJob(function(){_.xo(R.hostElement,"yt-refit");R.refitJob=0}))};
_.l.handleAdditionalDetailCheckboxUpdateAction=function(R){this.additionalDetailCheckboxChecked=R;_.n(this.command,_.z$S).additionalDetailCheckboxChecked=R};
_.Yh.Object.defineProperties(FC,{template:{configurable:!0,enumerable:!0,get:function(){if(vv9===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;QqQ===void 0&&(QqQ=document.createElement("template"));var P=QqQ;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);vv9=R}R=vv9;return R}}});
FC.prototype.onYtServiceRequestError=FC.prototype.onYtServiceRequestError;FC.prototype.onYtServiceRequestCompleted=FC.prototype.onYtServiceRequestCompleted;FC.prototype.onYtServiceRequestSent=FC.prototype.onYtServiceRequestSent;FC.prototype.onYtNavigate=FC.prototype.onYtNavigate;FC.prototype.onYtPopupOpened=FC.prototype.onYtPopupOpened;_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],FC.prototype,"openPopupBehavior",void 0);
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],FC.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],FC.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],FC.prototype,"eventForwardingBehavior",void 0);_.C([_.U(_.Cr),_.k("design:type",Object)],FC.prototype,"ironResizableBehavior",void 0);_.C([_.S({observer:"dataChanged"}),_.k("design:type",Object)],FC.prototype,"data",void 0);
_.C([_.S(),_.k("design:type",Object)],FC.prototype,"submitting",void 0);_.C([_.S({observer:"submitButtonDisabledChanged"}),_.k("design:type",Object)],FC.prototype,"submitButtonDisabled",void 0);_.C([_.S(),_.k("design:type",Object)],FC.prototype,"command",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],FC.prototype,"hideReportForm",void 0);_.C([_.S(),_.k("design:type",Object)],FC.prototype,"canShowCheckbox",void 0);
_.C([_.S(),_.k("design:type",Object)],FC.prototype,"canShowAdditionalDetailCheckbox",void 0);_.C([_.S(),_.k("design:type",Object)],FC.prototype,"canShowNextButton",void 0);_.C([_.S(),_.k("design:type",Object)],FC.prototype,"additionalDetailCheckboxChecked",void 0);_.C([_.S(),_.k("design:type",Object)],FC.prototype,"refitJob",void 0);_.C([_.S(),_.k("design:type",Object)],FC.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.C([_.nG("#scroller"),_.k("design:type",Object)],FC.prototype,"JSC$20801_scroller",void 0);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],FC.prototype,"onYtPopupOpened",null);_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],FC.prototype,"onYtNavigate",null);
_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],FC.prototype,"onYtServiceRequestSent",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],FC.prototype,"onYtServiceRequestCompleted",null);
_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],FC.prototype,"onYtServiceRequestError",null);_.C([_.CG({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],FC);var gvW;var nvn;var Bq=function(){return _.K.apply(this,arguments)||this};
_.H(Bq,_.K);_.l=Bq.prototype;_.l.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.l.onVisible=function(){var R,A;(A=_.is().resolve(_.z3(_.Ga)))==null||A.enqueue({label:_.R4((R=this.data)==null?void 0:R.messageTitle),elementToFocus:this.hostElement})};
_.l.onThumbnailLoaded=function(){_.xo(this.hostElement,"yt-refit")};
_.l.onDismissTap=function(){_.OC(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.l.computeAlternateIcon=function(R){return R?R==="BACKSTAGE_ARTWORK"?"backstage:artwork":R:null};
_.l.computeFontFamily=function(R){return R==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.l.computeBackgroundStyle=function(R,A){if(R=this.computeBackgroundImage(R,A))if(R=_.sw(R.thumbnails))return'background-image: url("'+R+'");'};
_.l.computeHasFullHeightImage=function(R){return!(!(R&&R.thumbnails&&R.thumbnails.length>0)||this.modern)};
_.l.isModernStyle=function(R){return R.style==="STYLE_MODERN"};
_.l.computeIcon=function(R,A){if(R&&R.icon)return A?R.iconDark:R.icon};
_.l.computeBackgroundImage=function(R,A){if(R&&R.backgroundImage)return A?R.backgroundImageDark:R.backgroundImage};
_.l.computeLogo=function(R,A){if(R&&R.logo)return A?R.logoDark:R.logo};
_.l.computeShouldShowModernIcon=function(R,A){return R&&!!A};
_.l.getLogoContainerClassName=function(R){return this.logoWithPadding(R)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.l.getLogoImageId=function(R){return this.logoWithPadding(R)?"mealbar-logo-with-padding":"mealbar-logo"};
_.l.logoWithPadding=function(R){var A,Y,P;return(R=(A=this.computeLogo(R,this.isDarkTheme))==null?void 0:(Y=A.thumbnails)==null?void 0:(P=Y[0])==null?void 0:P.height)&&R%31===0?!0:!1};
Bq.prototype.onThumbnailLoaded=Bq.prototype.onThumbnailLoaded;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Bq.prototype,"ytRendererBehavior",void 0);_.C([_.S({}),_.k("design:type",Object)],Bq.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.k("design:type",Boolean)],Bq.prototype,"modern",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Bq.prototype,"isDarkTheme",void 0);
_.C([_.S({computed:"computeIcon(data, isDarkTheme)"}),_.k("design:type",Object)],Bq.prototype,"icon",void 0);_.C([_.S({computed:"computeLogo(data, isDarkTheme)"}),_.k("design:type",Object)],Bq.prototype,"logo",void 0);_.C([_.S({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.k("design:type",Object)],Bq.prototype,"backgroundStyle",void 0);_.C([_.S({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.k("design:type",Object)],Bq.prototype,"alternateIcon",void 0);
_.C([_.S({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.k("design:type",Boolean)],Bq.prototype,"hasFullHeightImage",void 0);_.C([_.S({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.k("design:type",Boolean)],Bq.prototype,"useYoutubeSans",void 0);_.C([_.S({computed:"computeShouldShowModernIcon(modern, icon)"}),_.k("design:type",Boolean)],Bq.prototype,"shouldShowModernIcon",void 0);
_.C([_.Qa("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Bq.prototype,"onThumbnailLoaded",null);_.C([_.CG({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],Bq);
_.B(Bq,"yt-mealbar-promo-renderer",function(){if(nvn===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;gvW===void 0&&(gvW=document.createElement("template"));var P=gvW;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);nvn=R}R=nvn;return R},{mode:2});var HLW;var ryH;var a0=function(){return _.K.apply(this,arguments)||this};
_.H(a0,_.K);_.l=a0.prototype;_.l.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]]"}}}}}};
_.l.computeHasButtons_=function(R){return!(!R.dismissButton&&!R.acceptButton)};
_.l.computeStyle_=function(R){return R||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.l.observeImpressionEndpoints_=function(){var R=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(A){A.clickTrackingParams&&delete A.clickTrackingParams;_.sC(R.hostElement,[A])})};
_.l.onTap_=function(){_.OC(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
a0.prototype.observeImpressionEndpoints_=a0.prototype.observeImpressionEndpoints_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],a0.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],a0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],a0.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],a0.prototype,"positionType",void 0);_.C([_.S({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.k("design:type",Boolean)],a0.prototype,"hasButtons_",void 0);_.C([_.S({value:function(){return this.onTap_.bind(this)}}),
_.k("design:type",Function)],a0.prototype,"boundOnTap_",void 0);_.C([_.S({value:{style:"mono-inverse"}}),_.k("design:type",Object)],a0.prototype,"buttonOverride",void 0);_.C([_.vZ("data.promoConfig.impressionEndpoints"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],a0.prototype,"observeImpressionEndpoints_",null);_.C([_.CG({is:"yt-tooltip-renderer",disableElementRegistration:!0})],a0);
_.B(a0,"yt-tooltip-renderer",function(){if(ryH===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;HLW===void 0&&(HLW=document.createElement("template"));var P=HLW;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ryH=R}R=ryH;return R},{mode:2});var DkF;var Uko;var $k0={},Xhm=($k0.WEB_REMIX="music.youtube.com",$k0),Ck=function(){var R=_.K.apply(this,arguments)||this;R.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return R};
_.H(Ck,_.K);_.l=Ck.prototype;_.l.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.created=function(){this.embedHost_=Xhm[_.a1("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.l.ready=function(){_.Mo(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.l.computeEmbedCode_=function(R,A,Y,P,E){if(!R)return"";var z=R.videoId,c=R.fullListId,M=[];R.attributionId&&M.push("si="+R.attributionId);P||M.push("controls=0");Y&&Number(A)>0&&M.push("start="+A);c&&(z="videoseries",M.push("list="+c));Y="https://"+(E?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+z;R.clipId&&(M.push("clip="+R.clipId),M.push("clipt="+R.clipTiming));A=M.length>0?Y+"?"+M.join("&amp;"):Y;R.encryptedEmbedConfig&&M.push("embed_config="+JSON.stringify({enc:R.encryptedEmbedConfig}));
M=M.length>0?Y+"?"+M.join("&amp;"):Y;_.v("web_sharing_embed_preview_killswitch")?_.Mo(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(M,R.previewWidth||854,R.previewHeight||480):(_.pF(this.videoPreviewContainer),_.Mo(this.videoPreviewContainer).appendChild(this.buildIframeElement(M)));return this.getEmbedCode_(A,R.width||560,R.height||315)};
_.l.buildIframeElement=function(R){var A=document.createElement("iframe"),Y,P;A.width=""+((P=(Y=this.data)==null?void 0:Y.previewWidth)!=null?P:854);var E,z;A.height=""+((z=(E=this.data)==null?void 0:E.previewHeight)!=null?z:480);_.l4k(A,2,R);A.title="YouTube video player";A.frameBorder="0";A.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";A.referrerPolicy="strict-origin-when-cross-origin";A.allowFullscreen=!0;return A};
_.l.computeIsSquareAspectRatio_=function(R){return R.previewHeight&&R.previewWidth?R.previewHeight==R.previewWidth:!1};
_.l.computeShowEmbedOptions_=function(R){return!!R.enablePrivacyModeOptionLabel||!!R.showPlayerControlsOptionLabel};
_.l.getEmbedCode_=function(R,A,Y){return'<iframe width="'+A+'" height="'+Y+'" src="'+R+'" 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>'};
_.l.handleSignalActionCopyShareEmbedUrl_=function(){_.Mo(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.l.handleSetTimestamp_=function(R){this.startAtTimeStamp_=(this.startAtChecked_=R.isSet)?R.timestamp:0};
_.l.closePanel_=function(){_.OC(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.l.onEmbedCode_=function(){_.Mo(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.l.onYtPopupClosed_=function(){_.pF(_.Mo(this.hostElement).querySelector("#video-preview"))};
_.l.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.n(this.data.actionButtons[0],_.RC)&&this.ytRendererBehavior.logExplicitClick(_.n(this.data.actionButtons[0],_.RC))};
Ck.prototype.onYtPopupClosed_=Ck.prototype.onYtPopupClosed_;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Ck.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Ck.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ck.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Ck.prototype,"data",void 0);
_.C([_.S({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.k("design:type",String)],Ck.prototype,"embedCode_",void 0);_.C([_.S({value:!0}),_.k("design:type",Boolean)],Ck.prototype,"isPlayerControlsOptionChecked_",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Ck.prototype,"isPrivacyModeOptionChecked_",void 0);_.C([_.S({value:!1,notify:!0}),_.k("design:type",Boolean)],Ck.prototype,"startAtChecked_",void 0);
_.C([_.S({value:0}),_.k("design:type",Number)],Ck.prototype,"startAtTimeStamp_",void 0);_.C([_.S({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Ck.prototype,"isSquareAspectRatio_",void 0);_.C([_.nG("#video-preview"),_.k("design:type",HTMLElement)],Ck.prototype,"videoPreviewContainer",void 0);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Ck.prototype,"onYtPopupClosed_",null);
_.C([_.CG({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Ck);
_.B(Ck,"yt-sharing-embed-renderer",function(){if(Uko===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;DkF===void 0&&(DkF=document.createElement("template"));var P=DkF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Uko=R}R=Uko;return R},{mode:2});var SqQ={};
SqQ.YtUnlimitedFamilyInterstitialBehavior=[_.jV.YtOpenPopupBehavior,_.fH.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(R){R=_.NoA(_.Yw(R),"yt-button-renderer");return R?R.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(R){this.dialogHistory_.push(R)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var R=this.popFromHistory();if(R){var A={openPopupAction:{popupType:"DIALOG",popup:{}}};A.openPopupAction.popup[R.renderer]=R.data;this.showingPreviousDialog_=!0;this.openPopup(A)}},
handleOpenPopupAction_:function(R){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var A=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(P){return!!R.openPopupAction.popup[P]}),Y=this.getElementName_();
A&&this.data&&(this.pushToHistory({renderer:Y,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(R){if(R=_.n(R,EMQ))this.loading=!0,_.OC(this.hostElement,"yt-open-create-family-dialog",[R,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var R=this.hostElement.nodeName.split("-").slice(1).map(function(A){return""+A[0].toUpperCase()+A.slice(1).toLowerCase()}).join("");
return R[0].toLowerCase()+R.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var IKn;var Knf;var hG=function(){return _.K.apply(this,arguments)||this};
_.H(hG,_.K);_.l=hG.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.OC(this.hostElement,"yt-register-create-family-dialog");_.Mo(this.hostElement).querySelector("#thumbnail").onShow()};
_.l.fireOnCloseCommand_=function(){var R;((R=this.data)==null?0:R.onCloseCommand)&&_.NT(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.l.onYtServiceRequestSent_=function(R,A){A&&A.endpoint&&_.n(A.endpoint,_.mZ)||(this.loading=!0)};
_.l.onYtServiceRequestCompleted_=function(){var R=this.hostElement.parentElement;R.close&&R.close();this.loading=!1};
_.l.openPopupHandler_=function(R){if(R.detail==this){var A;((A=this.data)==null?0:A.onOpenCommands)&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.l.closePopupHandler_=function(R,A){this.fireOnCloseCommand_();if(A&&A.canceled===!0||A&&A.canceled===!1&&A.confirmed===!1){var Y;((Y=this.data)==null?0:Y.onDismissCommands)&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.l.dataChanged_=function(){this.loading=!1};
hG.prototype.dataChanged_=hG.prototype.dataChanged_;hG.prototype.closePopupHandler_=hG.prototype.closePopupHandler_;hG.prototype.openPopupHandler_=hG.prototype.openPopupHandler_;hG.prototype.onYtServiceRequestCompleted_=hG.prototype.onYtServiceRequestCompleted_;hG.prototype.onYtServiceRequestSent_=hG.prototype.onYtServiceRequestSent_;_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],hG.prototype,"ytEventForwardingBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],hG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(SqQ.YtUnlimitedFamilyInterstitialBehavior),_.k("design:type",Object)],hG.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],hG.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],hG.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],hG.prototype,"loading",void 0);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],hG.prototype,"onYtServiceRequestSent_",null);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],hG.prototype,"onYtServiceRequestCompleted_",null);
_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],hG.prototype,"openPopupHandler_",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],hG.prototype,"closePopupHandler_",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],hG.prototype,"dataChanged_",null);
_.C([_.CG({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],hG);
_.B(hG,"yt-unlimited-family-message-interstitial-renderer",function(){if(Knf===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;IKn===void 0&&(IKn=document.createElement("template"));var P=IKn;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Knf=R}R=Knf;return R},{mode:2});var WnW;var jqF;var o0=function(){return _.K.apply(this,arguments)||this};
_.H(o0,_.K);o0.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"}}}};
o0.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Mo(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(R){R.onShow()});
_.Mo(this.hostElement).querySelector("#main-thumbnail").onShow()};
o0.prototype.onButtonTap_=function(R){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(R)};
o0.prototype.computeMainThumbnailWidth_=function(R){return R&&R.length!==0?72:96};
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.C([_.U(SqQ.YtUnlimitedFamilyInterstitialBehavior),_.k("design:type",Object)],o0.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],o0.prototype,"data",void 0);
_.C([_.S({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.k("design:type",Number)],o0.prototype,"mainThumbnailWidth_",void 0);_.C([_.S({value:function(){return this.onButtonTap_.bind(this)}}),
_.k("design:type",Function)],o0.prototype,"boundButtonTap_",void 0);_.C([_.CG({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],o0);
_.B(o0,"yt-unlimited-family-profile-interstitial-renderer",function(){if(jqF===void 0){var R=document.createElement("template");_.D(R,'\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>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;WnW===void 0&&(WnW=document.createElement("template"));var P=WnW;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);jqF=R}R=jqF;return R},{mode:2});var bLm;var fKg;var kA=function(){var R=_.K.apply(this,arguments)||this;R.sliderAriaValueText_=null;R.selectedIndex_=0;R.messages={PAUSE_SLIDER:_.vk("PAUSE_SLIDER",void 0,"Pause Duration")};return R};
_.H(kA,_.K);_.l=kA.prototype;_.l.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_]]"}}}}}};
_.l.onPopupOpened_=function(R){R.detail==this&&_.v("enable_premium_voluntary_pause")&&(_.OC(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.l.setDialogData=function(R){this.data=R;this.resetSlider_()};
_.l.dataChanged_=function(){this.data&&this.resetSlider_()};
_.l.onSubmitTap_=function(){if(this.data.confirmCommand){var R=this.data.confirmCommand;_.n(R,_.L4S)&&_.sC(this.hostElement,[R,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.l.onExitButtonTap_=function(){_.OC(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.l.closePopupHandler_=function(R,A){(A&&A.canceled===!0||A.canceled===!1&&A.confirmed===!1)&&this.handleOnDismissCommands_()};
_.l.onSliderChange_=function(){this.selectedIndex_=_.Mo(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.l.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.l.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.l.resetSlider_=function(){if(this.data){var R=this.data.defaultEndOptionIndex||0,A=_.Mo(this.hostElement).querySelector("#id-pause-slider");if(A.immediateValue<R)for(;A.immediateValue!=R;)A.increment();else if(R<A.immediateValue)for(;A.immediateValue!=R;)A.decrement();this.selectedIndex_=R;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.l.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestSent=function(){this.loading=!0};
_.l.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
kA.prototype.onYtServiceRequestCompleted=kA.prototype.onYtServiceRequestCompleted;kA.prototype.onYtServiceRequestSent=kA.prototype.onYtServiceRequestSent;kA.prototype.closePopupHandler_=kA.prototype.closePopupHandler_;kA.prototype.dataChanged_=kA.prototype.dataChanged_;kA.prototype.onPopupOpened_=kA.prototype.onPopupOpened_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],kA.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],kA.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],kA.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],kA.prototype,"loading",void 0);_.C([_.S(),_.k("design:type",Number)],kA.prototype,"selectIndexMax_",void 0);_.C([_.S(),_.k("design:type",Object)],kA.prototype,"selectedData_",void 0);
_.C([_.S(),_.k("design:type",Object)],kA.prototype,"sliderAriaValueText_",void 0);_.C([_.S({value:function(){return this.onSubmitTap_.bind(this)}}),
_.k("design:type",Function)],kA.prototype,"onButtonTap_",void 0);_.C([_.S({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.k("design:type",Function)],kA.prototype,"onSecondaryTap_",void 0);_.C([_.S(),_.k("design:type",Object)],kA.prototype,"messages",void 0);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],kA.prototype,"onPopupOpened_",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],kA.prototype,"dataChanged_",null);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],kA.prototype,"closePopupHandler_",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],kA.prototype,"onYtServiceRequestSent",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],kA.prototype,"onYtServiceRequestCompleted",null);_.C([_.CG({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],kA);
_.B(kA,"yt-unplugged-pause-membership-dialog-renderer",function(){if(fKg===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-unplugged-pause-membership-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.ypc.yt_unplugged_pause_membership_dialog_renderer.yt.unplugged.pause.membership.dialog.renderer.css.js--\x3e<tp-yt-paper-spinner-lite active="[[loading]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></tp-yt-paper-spinner-lite><div class="dialog-title style-scope yt-unplugged-pause-membership-dialog-renderer" role="heading">[[getSimpleString(data.title)]]</div><div class="duration-title style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pausePeriodMessage)]]\n</div><div class="duration-subtitle style-scope yt-unplugged-pause-membership-dialog-renderer">\n  [[getSimpleString(selectedData_.pauseEndMessage)]]\n</div><tp-yt-paper-slider id="id-pause-slider" class="pause-slider style-scope yt-unplugged-pause-membership-dialog-renderer" aria-label$="[[messages.PAUSE_SLIDER]]" aria-valuetext$="[[sliderAriaValueText_]]" max="[[selectIndexMax_]]" min="0" step="1" on-immediate-value-change="onSliderChange_" on-value-change="onSliderChange_"></tp-yt-paper-slider><template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><yt-formatted-string class="body-message style-scope yt-unplugged-pause-membership-dialog-renderer" split-lines="" text="[[item]]"></yt-formatted-string></template><div id="dialog-actions" class="style-scope yt-unplugged-pause-membership-dialog-renderer"><div id="secondary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div><div id="primary-button" class="style-scope yt-unplugged-pause-membership-dialog-renderer"></div></div>');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;bLm===void 0&&(bLm=document.createElement("template"));var P=bLm;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);fKg=R}R=fKg;return R},{mode:2});var phf;var FnF;var GM=function(){return _.K.apply(this,arguments)||this};
_.H(GM,_.K);GM.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.fY("vcBalanceRenderer")}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],GM.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],GM.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],GM.prototype,"data",void 0);_.C([_.CG({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],GM);
_.B(GM,"yt-vc-offer-layout-header-renderer",function(){if(FnF===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;phf===void 0&&(phf=document.createElement("template"));var P=phf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);FnF=R}R=FnF;return R},{mode:2});var BWN;var aKG;var CqY;var h9n;var Z3=function(){return _.K.apply(this,arguments)||this};
_.H(Z3,_.K);Z3.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Yh.Object.defineProperties(Z3.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)}}});
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Z3.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.HeH.YtTappableItemBehavior),_.k("design:type",Object)],Z3.prototype,"ytTappableItemBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Z3.prototype,"data",void 0);
_.C([_.S({reflectToAttribute:!0}),_.X("data.accessibilityText"),_.k("design:type",String),_.k("design:paramtypes",[])],Z3.prototype,"ariaLabel",null);_.C([_.S({reflectToAttribute:!0}),_.X("data.style"),_.k("design:type",String),_.k("design:paramtypes",[])],Z3.prototype,"vcOfferStyle",null);_.C([_.X("data.style","data.titleText"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],Z3.prototype,"showTitleText",null);_.C([_.CG({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],Z3);
_.B(Z3,"yt-vc-offer-renderer",function(){if(h9n===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;CqY===void 0&&(CqY=document.createElement("template"));var P=CqY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);h9n=R}R=h9n;return R},{mode:2});var tG=function(){return _.K.apply(this,arguments)||this};
_.H(tG,_.K);tG.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}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],tG.prototype,"data",void 0);_.C([_.CG({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],tG);
_.B(tG,"yt-vc-offer-layout-renderer",function(){if(aKG===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;BWN===void 0&&(BWN=document.createElement("template"));var P=BWN;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);aKG=R}R=aKG;return R},{mode:2});var ovf;var kz9;var GzY;var ZLo;var wV=function(){return _.K.apply(this,arguments)||this};
_.H(wV,_.K);wV.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}}}}}};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],wV.prototype,"data",void 0);_.C([_.CG({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],wV);
_.B(wV,"yt-ypc-offers-modal-top-bar-renderer",function(){if(ZLo===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;GzY===void 0&&(GzY=document.createElement("template"));var P=GzY;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);ZLo=R}R=ZLo;return R},{mode:2});var up=function(){return _.K.apply(this,arguments)||this};
_.H(up,_.K);up.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"}}}}};
up.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
up.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var R=this.scrollable;R.attached&&typeof R.attached==="function"&&R.attached()};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.C([_.nG("#scrollable"),_.k("design:type",Object)],up.prototype,"scrollable",void 0);_.C([_.S(),_.k("design:type",Object)],up.prototype,"data",void 0);_.C([_.CG({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],up);
_.B(up,"yt-ypc-offers-modal-renderer",function(){if(kz9===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;ovf===void 0&&(ovf=document.createElement("template"));var P=ovf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);kz9=R}R=kz9;return R},{mode:2});var t$0;var whG;var ej=function(){return _.K.apply(this,arguments)||this};
_.H(ej,_.K);_.l=ej.prototype;_.l.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}}}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Mo(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.l.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.OC(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.l.onYtPopupOpened_=function(R,A){(A==null?void 0:A.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.NT(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.l.onYtPopupClosed_=function(R,A){this.continueButtonTapped||A&&(A.canceled===!0||A.canceled===!1&&A.confirmed===!1)&&this.data.onDismissCommands&&_.NT(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.l.onYtServiceRequestError_=function(R){this.set("showSpinner",!1);_.Zk(this.hostElement,R.detail.error.message)};
_.l.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.v("enable_ypc_spinners")?_.OC(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
ej.prototype.onYtServiceRequestError_=ej.prototype.onYtServiceRequestError_;ej.prototype.onYtPopupClosed_=ej.prototype.onYtPopupClosed_;ej.prototype.onYtPopupOpened_=ej.prototype.onYtPopupOpened_;ej.prototype.onYtServiceRequestCompleted_=ej.prototype.onYtServiceRequestCompleted_;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],ej.prototype,"ytRendererstamperBehavior",void 0);
_.C([_.S(),_.k("design:type",Object)],ej.prototype,"data",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],ej.prototype,"showSpinner",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],ej.prototype,"continueButtonTapped",void 0);_.C([_.S({value:function(){return this.onContinueTapped_.bind(this)}}),
_.k("design:type",Function)],ej.prototype,"bindOnContinueTapped_",void 0);_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ej.prototype,"onYtServiceRequestCompleted_",null);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],ej.prototype,"onYtPopupOpened_",null);
_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],ej.prototype,"onYtPopupClosed_",null);_.C([_.Qa("yt-service-request-error"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ej.prototype,"onYtServiceRequestError_",null);_.C([_.CG({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ej);
_.B(ej,"yt-ypc-upgrade-dialog-renderer",function(){if(whG===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;t$0===void 0&&(t$0=document.createElement("template"));var P=t$0;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);whG=R}R=whG;return R},{mode:2});var u5f;var e9f;var qS=function(){return _.K.apply(this,arguments)||this};
_.H(qS,_.K);qS.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
qS.prototype.computeHasButtons_=function(R){return!(!R.dismissButton&&!R.confirmButton)};
qS.prototype.computeStyle_=function(R){return R||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],qS.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],qS.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],qS.prototype,"ytRendererstamperBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],qS.prototype,"data",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],qS.prototype,"positionType",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.k("design:type",Boolean)],qS.prototype,"hasButtons_",void 0);_.C([_.S({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.k("design:type",Boolean)],qS.prototype,"style_",void 0);_.C([_.CG({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],qS);
_.B(qS,"yt-bubble-hint-renderer",function(){if(e9f===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;u5f===void 0&&(u5f=document.createElement("template"));var P=u5f;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);e9f=R}R=e9f;return R},{mode:2});var qqF;var Lng;var Lk=function(){var R=_.Pe.apply(this,arguments)||this;R.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return R};
_.H(Lk,_.Pe);_.l=Lk.prototype;_.l.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.l.attached=function(){var R=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){R.$.thumbnail.onShow();R.$["header-image"].onShow()})};
_.l.handleCheckBoxUpdateAction_=function(R){this.canShowCheckboxEnabledConfirmButton=R};
_.l.computeUseOverlayForSpinner_=function(R,A){return!!R&&A};
_.l.computeShowSpinner_=function(R,A){return R||!!A};
_.l.fireOnCloseActions_=function(){var R,A=_.x(((R=this.data)==null?void 0:R.onClosedActions)||[]);for(R=A.next();!R.done;R=A.next())this.ytRendererBehavior.resolveCommand(R.value)};
_.l.fireOnOpenCommands_=function(R){var A,Y=(A=this.data)==null?void 0:A.onOpenCommands;if(Y)for(R.stopImmediatePropagation(),R=_.x(Y),A=R.next();!A.done;A=R.next())this.ytRendererBehavior.resolveCommand(A.value)};
_.l.fireOnDismissCommands_=function(R){var A,Y=(A=this.data)==null?void 0:A.onDismissCommands;if(Y)for(R.stopImmediatePropagation(),R=_.x(Y),A=R.next();!A.done;A=R.next())this.ytRendererBehavior.resolveCommand(A.value)};
_.l.openPopupHandler_=function(R){R.detail==this&&this.fireOnOpenCommands_(R)};
_.l.closePopupHandler_=function(R,A){_.MT(this,"yt-confirm-dialog-close-action",[A]);this.fireOnCloseActions_();(A&&A.canceled===!0||A&&A.canceled===!1&&A.confirmed===!1)&&this.fireOnDismissCommands_(R)};
_.l.onHeaderImageChanged_=function(){var R;((R=this.data)==null?0:R.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.l.computeHasHeaderImageWidth_=function(R){return R!=void 0};
_.l.computeHasLoadingMessage=function(R){return!!R};
_.l.onHeaderImageWidthChanged_=function(){var R,A=(R=this.data)==null?void 0:R.headerImageWidth;if(A){if(R=1.25*A*2+A,this.$.main.style.width=R+"px",A=this.$.scroller.firstElementChild)A.style.minWidth=R+"px"}else this.$.main.style.width="100%"};
_.l.onThumbnailChanged_=function(){var R;((R=this.data)==null?0:R.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")};
_.l.onYtNavigate_=function(R){R=_.Yw(R);R instanceof Node&&_.sl(this.$["confirm-button"]).contains(R)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.l.computePrimaryIsCancel_=function(R){return R};
_.l.computeIsCancelButtonHidden_=function(R){return R.skipCancelButton||!R.cancelButton};
_.l.computeIsCheckboxHidden_=function(R){return!R.checkbox};
_.l.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.l.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.l.onYtServiceRequestCompleted_=function(){var R;((R=this.data)==null?0:R.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Yh.Object.defineProperties(Lk,{template:{configurable:!0,enumerable:!0,get:function(){if(Lng===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-confirm-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.yt_confirm_dialog_renderer.yt.confirm.dialog.renderer.css.js--\x3e<div id="spinner" hidden="[[!showSpinner_]]" class="style-scope yt-confirm-dialog-renderer">\n  <tp-yt-paper-spinner active="[[showSpinner_]]" class="style-scope yt-confirm-dialog-renderer"></tp-yt-paper-spinner>\n  <div id="loading-message" class="body-text style-scope yt-confirm-dialog-renderer" hidden="[[!data.loadingMessage]]">\n    <yt-formatted-string text="[[data.loadingMessage]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </div>\n</div>\n<yt-img-shadow id="thumbnail" hidden="[[!data.thumbnail]]" notify-on-loaded="" thumbnail="[[data.thumbnail]]" width="256" class="style-scope yt-confirm-dialog-renderer">\n</yt-img-shadow>\n<div id="main" hidden="[[data.showLoadingSpinner]]" class="style-scope yt-confirm-dialog-renderer">\n  <yt-img-shadow id="header-image" hidden="[[!data.headerImage]]" notify-on-loaded="" thumbnail="[[data.headerImage]]" width="[[data.headerImageWidth]]" class="style-scope yt-confirm-dialog-renderer">\n  </yt-img-shadow>\n  <h2 class="heading style-scope yt-confirm-dialog-renderer">\n    <yt-formatted-string id="title" hidden$="[[!data.title]]" text="[[data.title]]" class="style-scope yt-confirm-dialog-renderer"></yt-formatted-string>\n  </h2>\n  <tp-yt-paper-dialog-scrollable id="scroller" class="body-text style-scope yt-confirm-dialog-renderer">\n    <template is="dom-repeat" items="[[data.dialogMessages]]" class="style-scope yt-confirm-dialog-renderer">\n      <yt-formatted-string class="line-text style-scope yt-confirm-dialog-renderer" respect-html-dir="" split-lines="" text="[[item]]">\n      </yt-formatted-string>\n    </template>\n  </tp-yt-paper-dialog-scrollable>\n  <div id="checkbox-container" hidden="[[isCheckboxHidden]]" class="style-scope yt-confirm-dialog-renderer"></div>\n  <div class="buttons style-scope yt-confirm-dialog-renderer">\n    <yt-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" dialog-dismiss="" hidden="[[isCancelButtonHidden]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="checkbox-enabled-confirm-button" data="[[data.checkboxEnabledConfirmButton.buttonRenderer]]" dialog-confirm="" hidden="[[!canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n    <yt-button-renderer id="confirm-button" data="[[data.confirmButton.buttonRenderer]]" dialog-confirm$="[[!data.showLoadingSpinnerOnAction]]" hidden="[[canShowCheckboxEnabledConfirmButton]]" class="style-scope yt-confirm-dialog-renderer">\n    </yt-button-renderer>\n  </div>\n</div>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;qqF===void 0&&(qqF=document.createElement("template"));var P=qqF;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Lng=R}R=Lng;return R}}});
Lk.prototype.onYtServiceRequestCompleted_=Lk.prototype.onYtServiceRequestCompleted_;Lk.prototype.onYtServiceRequestSent_=Lk.prototype.onYtServiceRequestSent_;Lk.prototype.onThumbnailLoaded_=Lk.prototype.onThumbnailLoaded_;Lk.prototype.onYtNavigate_=Lk.prototype.onYtNavigate_;Lk.prototype.onThumbnailChanged_=Lk.prototype.onThumbnailChanged_;Lk.prototype.onHeaderImageWidthChanged_=Lk.prototype.onHeaderImageWidthChanged_;Lk.prototype.onHeaderImageChanged_=Lk.prototype.onHeaderImageChanged_;
Lk.prototype.closePopupHandler_=Lk.prototype.closePopupHandler_;Lk.prototype.openPopupHandler_=Lk.prototype.openPopupHandler_;_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Lk.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],Lk.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],Lk.prototype,"ytRendererBehavior",void 0);
_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],Lk.prototype,"ytEventForwardingBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],Lk.prototype,"data",void 0);_.C([_.S({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.k("design:type",Boolean)],Lk.prototype,"primaryIsCancel",void 0);_.C([_.S({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.k("design:type",Boolean)],Lk.prototype,"isCancelButtonHidden",void 0);
_.C([_.S({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.k("design:type",Boolean)],Lk.prototype,"isCheckboxHidden",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],Lk.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.C([_.S({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.k("design:type",Boolean)],Lk.prototype,"useOverlayForSpinner_",void 0);
_.C([_.S({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.k("design:type",Boolean)],Lk.prototype,"showSpinner_",void 0);_.C([_.S({value:!1}),_.k("design:type",Boolean)],Lk.prototype,"isActionInProgress_",void 0);_.C([_.S({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.k("design:type",Boolean)],Lk.prototype,"hasHeaderImageWidth_",void 0);
_.C([_.S({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.k("design:type",Boolean)],Lk.prototype,"hasLoadingMessage",void 0);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Lk.prototype,"openPopupHandler_",null);_.C([_.Qa("yt-popup-closed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],Lk.prototype,"closePopupHandler_",null);
_.C([_.vZ("data.headerImage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lk.prototype,"onHeaderImageChanged_",null);_.C([_.vZ("data.headerImageWidth"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lk.prototype,"onHeaderImageWidthChanged_",null);_.C([_.vZ("data.thumbnail"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lk.prototype,"onThumbnailChanged_",null);
_.C([_.Qa("yt-navigate"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],Lk.prototype,"onYtNavigate_",null);_.C([_.Qa("yt-img-shadow-loaded"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],Lk.prototype,"onThumbnailLoaded_",null);_.C([_.Qa("yt-service-request-sent"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.Go]),_.k("design:returntype")],Lk.prototype,"onYtServiceRequestSent_",null);
_.C([_.Qa("yt-service-request-completed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,_.dl]),_.k("design:returntype")],Lk.prototype,"onYtServiceRequestCompleted_",null);_.C([_.CG({is:"yt-confirm-dialog-renderer",noInjection:!0})],Lk);var dkf;var RmN;var dV=function(){return _.K.apply(this,arguments)||this};
_.H(dV,_.K);dV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Mo(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
dV.prototype.computeConfirmButton_=function(R){var A={text:R.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};R.confirmNavigationEndpoint?A.navigationEndpoint=R.confirmNavigationEndpoint:R.confirmServiceEndpoint&&(A.serviceEndpoint=R.confirmServiceEndpoint);return A};
dV.prototype.computeShowTitle_=function(R){return!(R==null||!R.title)};
_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],dV.prototype,"data",void 0);_.C([_.S({computed:"computeShowTitle_(data)"}),_.k("design:type",Boolean)],dV.prototype,"showTitle",void 0);_.C([_.CG({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],dV);
_.B(dV,"yt-fancy-dismissible-dialog-renderer",function(){if(RmN===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;dkf===void 0&&(dkf=document.createElement("template"));var P=dkf;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);RmN=R}R=RmN;return R});var Azm;var YMi;var RM=function(){var R=_.K.apply(this,arguments)||this;R.spinnerActive=!1;return R};
_.H(RM,_.K);RM.prototype.created=function(){mhW(2201)};
RM.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
RM.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
RM.prototype.onIronOverlayClosed=RM.prototype.onIronOverlayClosed;RM.prototype.onIronOverlayOpened=RM.prototype.onIronOverlayOpened;_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],RM.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.Ae),_.k("design:type",Object)],RM.prototype,"tpYtIronOverlayBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],RM.prototype,"data",void 0);_.C([_.S(),_.k("design:type",Object)],RM.prototype,"spinnerActive",void 0);
_.C([_.Qa("iron-overlay-opened"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RM.prototype,"onIronOverlayOpened",null);_.C([_.Qa("iron-overlay-closed"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],RM.prototype,"onIronOverlayClosed",null);_.C([_.CG({is:"yt-loading-renderer",disableElementRegistration:!0})],RM);
_.B(RM,"yt-loading-renderer",function(){if(YMi===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Azm===void 0&&(Azm=document.createElement("template"));var P=Azm;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);YMi=R}R=YMi;return R},{mode:2});var PCn;var EOY;var AI=function(){var R=_.K.apply(this,arguments)||this;R.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);R.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);R.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";R.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return R};
_.H(AI,_.K);_.l=AI.prototype;_.l.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.l.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.l.onDarkModeToggledAction=function(R){this.isDarkTheme=R};
_.l.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.l.openPopupHandler_=function(R){R.detail===this.hostElement&&this.hostElement.hidden&&_.OC(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.l.onDismissButtonTap_=function(){var R;this.closeOnDismissButton_.has(((R=this.data)==null?void 0:R.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OC(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.onAcceptButtonTap_=function(){var R;this.closeOnAcceptButton_.has(((R=this.data)==null?void 0:R.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.OC(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.l.computeHasHeader_=function(R){return!!R.headerBackgroundImage};
_.l.computeLayoutStyle_=function(R){return R};
_.l.computePopupSize_=function(R){return R};
_.l.computeIconType_=function(R){return R.dialogIcon&&R.dialogIcon.iconType?R.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":R.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":R.dialogIcon.iconType:""};
_.l.computeIsLogo_=function(R){return!!R.dialogIcon&&!!R.dialogIcon.iconType&&(R.dialogIcon.iconType==="YOUTUBE_LOGO"||R.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||R.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.l.computeHasCustomLogo=function(R){return!(R==null||!R.headerForegroundImage)};
_.l.computeCustomLogo=function(R,A){if(R!=null&&R.headerForegroundImage)return R.headerForegroundImageDark?A?R.headerForegroundImageDark:R.headerForegroundImage:R.headerForegroundImage};
_.l.computeHeaderBackgroundImage=function(R,A){if(R!=null&&R.headerBackgroundImage)return A&&(R==null?0:R.headerBackgroundImageDark)?R.headerBackgroundImageDark:R.headerBackgroundImage};
_.l.shouldShowIconContainer=function(R,A){return R&&!A};
_.l.shouldShowNonYouTubeIcon=function(R,A){return!R&&!A};
_.l.getLogoImageId=function(R){var A,Y,P;return(R=(A=this.computeCustomLogo(R,this.isDarkTheme))==null?void 0:(Y=A.thumbnails)==null?void 0:(P=Y[0])==null?void 0:P.height)&&R%31===0?"custom-logo-with-padding":"custom-logo"};
AI.prototype.openPopupHandler_=AI.prototype.openPopupHandler_;AI.prototype.dataChanged_=AI.prototype.dataChanged_;_.C([_.U(_.HX.YtRendererstamperBehavior),_.k("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.C([_.S(),_.k("design:type",Boolean)],AI.prototype,"isDarkTheme",void 0);
_.C([_.S({computed:"computeCustomLogo(data, isDarkTheme)"}),_.k("design:type",Object)],AI.prototype,"customLogo",void 0);_.C([_.S({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.k("design:type",Object)],AI.prototype,"headerBackgroundImage",void 0);_.C([_.S(),_.k("design:type",Object)],AI.prototype,"data",void 0);_.C([_.S({computed:"computeHasHeader_(data)"}),_.k("design:type",Boolean)],AI.prototype,"hasHeader",void 0);
_.C([_.S({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.k("design:type",Object)],AI.prototype,"layoutStyle",void 0);_.C([_.S({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.k("design:type",Object)],AI.prototype,"popupSize",void 0);_.C([_.S({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],AI.prototype,"hasLogo",void 0);
_.C([_.S({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.k("design:type",Boolean)],AI.prototype,"hasCustomLogo",void 0);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],AI.prototype,"dataChanged_",null);_.C([_.Qa("yt-popup-opened"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],AI.prototype,"openPopupHandler_",null);
_.C([_.CG({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],AI);
_.B(AI,"yt-upsell-dialog-renderer",function(){if(EOY===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;PCn===void 0&&(PCn=document.createElement("template"));var P=PCn;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);EOY=R}R=EOY;return R},{mode:2});var zmo=_.E5(function(R){return _.V("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.V(_.J,{cond:R.title,then:function(A){return _.V("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},A)}}))},"wh"),iZi=_.E5(function(R){return _.V("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.V(_.ni,{data:R.closeButton},{buttonViewModel:function(A){return _.V("div",null,_.V(_.Is,{data:A.data}))}}))},"xh"),l8f=_.E5(function(R){var A=R.data;
return _.V(_.lI,null,_.V("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.V("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.V(_.J,{cond:function(){return!!A().image&&!!A().title},
then:function(){return _.V(_.P1,{data:function(){return A().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.V("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.V(_.J,{cond:function(){return A().title},
then:function(Y){return _.V("h3",{class:"miniAppGameInfoDialogViewModelTitle"},Y)}}),_.V(_.J,{cond:function(){return A().primaryGenre},
then:function(Y){return _.V("span",{class:"miniAppGameInfoDialogViewModelGenre"},Y)}}))),_.V(_.J,{cond:function(){var Y=A().description;
return Y&&Y.length<=150},
then:function(){return _.V("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.V("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return A().description}))}}))},"yh"),xpW=_.E5(function(R){R=R.infoRows;
var A=_.is().resolve(_.Oq),Y=_.v("enable_displaying_ppn");return _.V("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.V(_.Ue,{each:R},function(P){return _.V("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.V(_.J,{cond:function(){return P.label},
then:function(E){return _.V("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},E)}}),_.V(_.J,{cond:function(){return P.attributedLabel},
then:function(E){return _.V("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.V(_.NU,{text:E,noPreWrap:!0}))}}),_.V(_.J,{cond:function(){return P.value},
then:function(E){return _.V("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},E)}}),_.V(_.J,{cond:function(){return P.attributedValue},
then:function(E){return _.V("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.V(_.NU,{text:E,noPreWrap:!0}))}}))}),_.V(_.J,{cond:function(){return Y&&A.clientData.has("post_play_nonce")},
then:function(){return _.V("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.V("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.V("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},A.getData("post_play_nonce")))}}))},"zh"),czi=_.E5(function(R){var A=R.data;
return _.V("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.V(zmo,{title:function(){return A().dialogTitle}}),_.V(l8f,{data:A}),_.V(_.J,{cond:function(){return A().infoRow},
then:function(Y){return _.V(xpW,{infoRows:Y})}}),_.V(iZi,{closeButton:function(){return A().closeButton}}))},"Ah");
czi.idomCompat=!0;_.Ow(czi,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;return _.V("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.V(_.P1,{data:function(){return A().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.V("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.V("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.V(_.J,{cond:function(){var Y=A().ytLogo;return Y?Y.iconType:null},
then:function(Y){return _.V(_.H1,{icon:Y,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.V("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.V("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.V(_.NU,{text:function(){return A().body}})),_.V("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.V(_.NU,{text:function(){return A().verifyStateText}}))),
_.V("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.V("div",null,_.V(_.ni,{data:function(){return A().dismissButton}},{buttonViewModel:_.Is})),_.V("div",null,_.V(_.ni,{data:function(){return A().linkParentButton}},{buttonViewModel:_.Is})))))},"Bh"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.VY}});var OZN=_.E5(function(R){var A=R.data;R=_.Y9(function(){return A().agreements},[]);
return _.V("installment-agreements-view-model",{class:_.To("ytInstallmentAgreementsViewModelHost")},_.V(_.Ue,{each:R},function(Y){return _.V("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.V("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.V(_.NU,{text:Y.label})),_.V("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.V(_.ni,{data:function(){return Y.openButton}},{buttonViewModel:_.Is})))}))},"Ch");
OZN.idomCompat=!0;var MlY=_.E5(function(R){return _.V("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.V("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.V(_.NU,{text:function(){return R.data().inviteMessage}})),_.V("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.V(_.NU,{text:function(){return R.data().attributedAccountSectionHeaderText}})),_.V("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.V(_.ni,{data:function(){return R.data().accountAvatar}},{avatarViewModel:_.qW}),_.V("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.V(_.NU,{text:function(){return R.data().accountName}}),_.V("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.V(_.NU,{text:function(){return R.data().handle}}))),_.V(_.ni,{data:function(){return R.data().trailingButton}},{buttonViewModel:_.Is})),_.V("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.V(_.NU,{text:function(){return R.data().termsOfService}})))},"Dh");var spG=_.E5(function(R){var A=_.x(_.gl(function(){var t,d;return((t=R.data().createPlaylistDialogFormSchema)==null?0:(d=t.initialValues)==null?0:d.title)?R.data().createPlaylistDialogFormSchema.initialValues.title:""})),Y=A.next().value,P=A.next().value;
A=_.x(_.gl(function(){R.data();return!1}));
var E=A.next().value,z=A.next().value;A=_.x(_.gl(function(){R.data();return!1}));
var c=A.next().value,M=A.next().value;A=_.x(_.gl(function(){var t,d;return(t=R.data().createPlaylistDialogFormSchema)==null?void 0:(d=t.initialValues)==null?void 0:d.visibility}));
var N=A.next().value,y=A.next().value;A=_.x(_.gl(function(){R.data();return!1}));
var m=A.next().value,T=A.next().value;A=_.x(_.gl(function(){var t,d;return(t=R.data().createPlaylistDialogFormSchema)==null?void 0:(d=t.initialValues)==null?void 0:d.isCollaborative}));
var Q=A.next().value,g=A.next().value,r=_.LK("div");_.jq(function(){var t=r.value.querySelector("textarea");t&&(t.value=Y())},"sgS9sc");
_.jO(function(){var t;_.Ir0((t=R.data().createPlaylistDialogFormSchema)==null?void 0:t.id,{onSubmit:function(){var d=Y();var Jk=N(),Nb=Q(),Qk=R.data();d={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:d,privacyStatus:Jk,videoIds:Qk.videoIds,sourcePlaylistId:Qk.sourcePlaylistId,params:Nb?Qk.createPlaylistParamsCollaborationEnabled:Qk.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.is().resolve(_.ls).resolveCommand(d)},
isValid:function(){return E()&&!c()&&!m()}})});
var I=function(t){if(t!==void 0&&(P(t),!E()&&t.length>0&&z(!0),E())){var d=HYi(R.data());if(d){var Jk=d.minLength;d=d.maxLength;Jk&&t.length<Jk?M(!0):d&&t.length>d?M(!0):M(!1)}}},b=function(){var t=!(!Q()||N()!=="PRIVATE");
T(t)},p=function(t){t!==void 0&&(y(t),b())},h=function(){if(m())return DHf(R.data())},L=function(){g(!Q());
b()},Z=function(){return{validate:function(t){if(E()){var d=HYi(R.data());
if(d){var Jk=d.minLength;d=d.translations;if(Jk&&t.length<Jk)return d==null?void 0:d.minLengthErrorMessage}}}}},w=function(){var t=HYi(R.data()),d=t==null?void 0:t.maxLength,Jk;
t=t==null?void 0:(Jk=t.translations)==null?void 0:Jk.maxLengthErrorMessage;if(d&&t)return{maxChars:d,errorMessage:t}};
return _.V("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.V("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:r},_.V(_.ni,{data:function(){return R.data().playlistTitle}},{textFormFieldViewModel:function(t){return _.V(_.Jwg,{data:t.data,
text:Y,onInput:I,validation:Z,characterLimit:w})},
textFieldViewModel:function(t){return _.V(_.VyG,{data:t.data,text:Y,onInput:I,validation:Z,characterLimit:w})}})),_.V("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.V(_.ni,{data:function(){return R.data().playlistVisibility}},{dropdownViewModel:function(t){return _.V(_.DKN,{data:t.data,
onSelected:p,error:h})}})),_.V(_.J,{cond:function(){return!!R.data().playlistCollaborate},
then:function(){return _.V("div",null,_.V(_.ni,{data:function(){return R.data().playlistCollaborate}},{switchListItemViewModel:function(t){return _.V(_.vKN,{data:t.data,
onTap:L})}}))}}))},"Eh");var Ns0=_.E5(function(R){var A=R.data;return _.V("upsell-offer-table-cell-content-view-model",null,_.V("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.V(_.SO,null,_.V(_.$W,{when:function(){return A().iconType}},function(){return _.V("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.V(_.H1,{icon:function(){return A().iconType.toString()}}))}),_.V(_.$W,{when:function(){return A().title}},function(){return _.V(_.NU,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return A().title}})}),_.V(_.$W,{when:function(){return A().subtitle}},function(){return _.V(_.NU,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return A().subtitle}})}),_.V(_.$W,{when:function(){return A().infoText}},function(){return _.V(_.NU,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return A().infoText}})}),_.V(_.$W,{when:function(){return A().featureDescription}},function(){return _.V(_.NU,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return A().featureDescription}})}),_.V(_.$W,{when:function(){return A().note}},function(){return _.V(_.NU,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return A().note}})}))))},"Fh");
Ns0.idomCompat=!0;var VlG=_.E5(function(R){var A=R.data;return _.V("upsell-offer-table-cell-view-model",null,_.V("div",{class:_.To("ytUpsellOfferTableCellViewModelCellWrapper",function(){return A().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.V(_.ni,{data:function(){return A().contents}},{upsellOfferTableCellContentViewModel:Ns0})))},"Gh");
VlG.idomCompat=!0;var JzH=_.E5(function(R){var A=R.data;var Y=R.upsellTableIsFirstRow;var P=function(){return(Y==null?0:Y())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},E=function(){return(Y==null?0:Y())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.V("ytm-upsell-offer-table-row-view-model",null,_.V("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.V(_.ni,{data:function(){return A().rowHeaderCell}},{upsellOfferTableCellViewModel:function(z){return _.V("div",{class:P},_.V(VlG,{data:z.data}))}}),_.V(_.ni,{data:function(){return A().contentCells}},{upsellOfferTableCellViewModel:function(z){return _.V("div",{class:E},_.V(VlG,{data:z.data}))}})))},"Hh");
JzH.idomCompat=!0;var yz0=_.E5(function(R){var A=R.data;return _.V("ytm-upsell-offer-table-view-model",null,_.V("div",{class:"ytUpsellOfferTableViewModelHost"},_.V("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.V(_.ni,{data:function(){return A().rows}},{upsellOfferTableRowViewModel:function(Y,P){return _.V(JzH,{data:Y.data,
upsellTableIsFirstRow:function(){return P()===0}})}}))))},"Ih");
yz0.idomCompat=!0;var mpN=_.E5(function(R){var A=_.Y9(R.noPadding,!1),Y=function(){var z,c;return(c=(z=R.data().logo.accessibilityData)==null?void 0:z.label)!=null?c:""},P=function(){return R.data().offerTable},E={};
return _.V("upsell-view-model",{class:_.To("ytUpsellViewModelHost",(E.ytUpsellViewModelHostNoPadding=function(){return A()},E.ytUpsellViewModelHostWide=function(){return P()!==void 0},E))},_.V("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.V(_.J,{cond:function(){return _.h4(R.data().logo)},
then:function(z){return _.V(_.P1,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:Y})}})),_.V("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.V(_.NU,{text:function(){return R.data().title}})),_.V("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.V(_.Ue,{each:function(){var z;
return(z=R.data().subtitles)!=null?z:[]},
keyBy:"INDEX"},function(z){var c={};return _.V("div",{class:_.To("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(c.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return P()!==void 0},c))},_.V(_.NU,{text:z}))})),_.V("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.V(_.Ue,{each:function(){var z;
return(z=R.data().benefitInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){return _.V(_.J,{cond:function(){return z().info},
then:function(c){return _.V("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.V(_.H1,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.V(_.NU,{text:c}))}})})),_.V(_.J,{cond:function(){return P()!==void 0},
then:function(){return _.V("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.V(yz0,{data:P}))}}),_.V("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.V(_.Ue,{each:function(){var z;
return(z=R.data().legalInfos)!=null?z:[]},
keyBy:"INDEX"},function(z){var c={};return _.V("div",{class:_.To("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(c.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return P()!==void 0},c))},_.V(_.NU,{text:z}))})))},"Jh");var Tsf=_.E5(function(R){var A=R.data;R={};R=(R.ytMiniAppScoreChallengeViewModelScoreRadial=!0,R.ytMiniAppScoreChallengeViewModelDarkScoreRadial=UHQ(),R);return _.V("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.V("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return A().title}),_.V("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return A().subtitle}),_.V("div",{class:_.IP(R)},_.V("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return A().score})),_.V("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return A().prompt}))},"Kh");var QpG=function(){this.store=_.RZ();this.formId=""};
QpG.prototype.onInit=function(R){R.formId&&(this.formId=R.formId,this.store.dispatch(_.cK({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var vOn=_.E5(function(R){function A(M){if(M&&(M=_.n(M,_.Dk)))return Object.assign({},M,{isSelected:z()})}
var Y=_.x(_.gl(function(){var M,N;return(N=(M=_.n(R.data().option,_.Dk))==null?void 0:M.isSelected)!=null?N:!1})),P=Y.next().value,E=Y.next().value,z=P;
_.jO(function(){var M;_.Ir0((M=R.data().formSchema)==null?void 0:M.id,{onSubmit:function(){var N=_.is().resolve(_.ls),y=!!R.data().selectedCommand,m=!!R.data().unselectedCommand;if(z()){if(y)var T=R.data().selectedCommand}else m&&(T=R.data().unselectedCommand);T=_.h7(T);A(R.data().option)&&!T?(N="",!y&&m?N="selected ":y&&!m&&(N="unselected "),y=new _.XN("No "+N+"command found for SelectionListItemFormViewModel"),_.bj(y)):T&&N.resolveCommand(T)},
isValid:function(){return!0}})});
var c=function(){E(!z())};
_.bm(function(){var M,N,y=(M=R.data())==null?void 0:(N=M.formSchema)==null?void 0:N.id;y&&_.fSI()().delete(y)});
return _.V("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.V("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.V(_.NU,{text:function(){return R.data().paragraph}})),_.V(_.J,{cond:function(){return A(R.data().option)},
then:function(M){return _.V(_.Yr,{data:M,isCompact:!0,hideSelectionTextChevron:!0,onTap:c,disableHorizontalPadding:!0})}}))},"Lh");var gOH=_.E5(function(R){var A=R.data;var Y=R.disablePadding;var P=R.className;var E=_.LK("yt-dialog-header-view-model"),z=function(){var M=A().imageBanner;a:switch(A().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var N="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:N="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:M,style:N,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},c=function(){return A().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.jO(function(){var M=function(){_.OC(E.value,"yt-refit-popups-action")},N;
(N=E.value)==null||N.addEventListener("image-loaded",M);_.bm(function(){var y;(y=E.value)==null||y.removeEventListener("image-loaded",M)})});
R={};return _.V("yt-dialog-header-view-model",{el:E,class:_.To(P,(R.ytDialogHeaderViewModelHost=!0,R.ytDialogHeaderViewModelHostDisablePadding=Y,R))},_.V(_.J,{cond:function(){return A().imageBanner},
then:function(){var M={};return _.V("div",{class:_.To(P,(M.ytDialogHeaderViewModelBanner=!0,M.ytDialogHeaderViewModelBannerFullBleed=c,M)),style:_.nY({"max-height":function(){return A().assetContainerMaxHeight!==void 0?A().assetContainerMaxHeight+"px":void 0}})},_.V(_.rw,{data:z,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.V(_.J,{cond:function(){return A().headerBlock},
then:function(){return _.V("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.V(_.ni,{data:function(){return A().headerBlock}},{contentPreviewImageViewModel:function(M){return _.V(_.rw,{data:M.data,
notifyOnLoaded:!0})}}))}}),_.V(_.J,{cond:function(){return A().customBanner},
then:function(M){return _.V("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.V(_.ni,{data:M},{avatarStackViewModel:_.d7}))}}),_.V(_.J,{cond:function(){return A().headline},
then:function(M){return _.V("h2",null,_.V(_.NU,{text:M,className:"ytDialogHeaderViewModelText"}))}}))},"Mh");
gOH.idomCompat=!0;var nOQ=_.E5(function(R){var A=_.WYV(function(){return R.data().formId}),Y=A.submitForm,P=A.isValid;
return _.V("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.V(_.ni,{data:function(){return R.data().panelFooter}},{panelFooterViewModel:function(E){return _.V(_.ym,{data:E.data,
disablePadding:!0,disablePrimaryButton:function(){return!P()},
onClickPrimaryButton:function(){Y()}})}}))},"Nh");var HZY=_.E5(function(R){var A=function(){var Y,P;return(P=(Y=_.n(R.data().rendererContext,_.Kd))==null?void 0:Y.label)!=null?P:""};
return _.V("yt-dialog-image-content-view-model",{class:_.To("ytDialogImageContentViewModelHost",R.className)},_.V(_.J,{cond:function(){return _.h4(R.data().image)},
then:function(Y){var P={};return _.V("div",{style:_.nY((P.width=(0,_.Lv)(function(){var E;return(E=R.data().imageMaxWidth)!=null?E:""}),P)),
class:"ytDialogImageContentViewModelImage"},_.V(_.P1,{data:Y,alt:A,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.V(_.NU,{text:function(){return R.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Oh");var UpF=_.E5(function(R){var A=_.Pc(R,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),Y=A.elRefCallback;R=A.iconWiz;var P=A.assetWiz,E=A.assetType,z=A.titleWiz,c=A.leadingActionHeaderWiz,M=A.trailingActionHeaderWiz,N=A.headerPosition,y=A.contentWiz,m=A.buttonLayout,T=A.buttonStyle,Q=A.primaryButtonWiz,g=A.secondaryButtonWiz,r=A.contentAlignment,I=A.isFullscreen,b=A.width,p=A.maxHeight,h=A.isHeaderWizDefined,
L=A.headerWiz,Z=A.isFooterWizDefined,w=A.footerWiz;A=_.LK("dialog-layout",function(FV){Y==null||Y(FV)});
var t=P?function(){return P({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,d=Q?function(){var FV={};
return Q({buttonOverrides:function(){return{style:(T==null?void 0:T())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.To((FV["yt-spec-dialog-layout__dialog-layout-button"]=!0,FV["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(m==null?void 0:m())===0||(m==null?void 0:m())===2},FV))})}:void 0,Jk=g?function(){var FV={};
return g({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.To((FV["yt-spec-dialog-layout__dialog-layout-button"]=!0,FV["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(m==null?void 0:m())===0||(m==null?void 0:m())===2},FV))})}:void 0,Nb=function(){return(!!z||!!c||!!M)&&N()===0},Qk={},H3={},nu={},hk={};
return _.V("dialog-layout",{el:A,class:_.To((Qk["yt-spec-dialog-layout"]=!0,Qk["yt-spec-dialog-layout--dialog-layout-fullscreen"]=I,Qk["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!I()},Qk["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return p()===1},Qk["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(E==null?void 0:E())===1},Qk)),
style:function(){return(b==null?void 0:b())!==void 0?"width: "+b+"px;":""}},R?_.V("div",{class:_.To((H3["yt-spec-dialog-layout__dialog-layout-icon"]=!0,H3["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!P&&N()===1},H3["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return r()===1},H3))},_.V(R,null)):null,_.V(_.J,{cond:h,
then:function(){return L?_.V("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.V(L,null)):null},
else:function(){return _.V(_.lI,null,_.V(_.J,{cond:Nb,then:function(){return _.V(rzW,{contentAlignment:r,LeadingActionHeader:c,TrailingActionHeader:M,Title:z,isAboveAsset:!!t})}}),t?_.V("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.V(t,null)):null)}}),_.V("div",{class:_.To((nu["yt-spec-dialog-layout__dialog-layout-container"]=!0,nu["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(r==null?void 0:r())===1},nu["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!z&&!(L&&h())||!!t&&(N==null?void 0:N())===0},nu))},_.V(_.J,{cond:function(){return z&&!L&&(N==null?void 0:N())===1},
then:function(){return _.V(rzW,{contentAlignment:r,LeadingActionHeader:c,TrailingActionHeader:M,Title:z,isAboveAsset:!1})}}),y?_.V("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.V("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.V(y,null))):null,_.V(_.J,{cond:Z,
then:function(){return w?_.V("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.V(w,null)):null}}),d||Jk?_.V(Dp0,{footerClasses:_.To((hk["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,hk["yt-spec-dialog-layout__dialog-layout-footer"]=!0,hk["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(m==null?void 0:m())===2},hk["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(m==null?void 0:m())===1},hk)),
PrimaryButton:d,SecondaryButton:Jk}):null))},"Ph"),rzW=_.E5(function(R){var A=_.Pc(R,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),Y=A.contentAlignment,P=A.LeadingActionHeader;R=A.Title;var E=A.TrailingActionHeader,z=A.isAboveAsset,c=A.enableLeadingActionHeader;A={};return _.V("div",{class:_.To((A["yt-spec-dialog-layout__dialog-header-container"]=!0,A["yt-spec-dialog-layout__dialog-header"]=!0,A["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=z,A["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Y==null?void 0:Y())===1&&c()},A))},_.V(_.J,{cond:function(){return c()},
then:function(){return P?_.V("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.V(P,null)):null}}),R?_.V("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.V(R,null)):null,E?_.V("div",null,_.V(E,null)):null)},"Qh"),Dp0=_.E5(function(R){var A=R.footerClasses;
var Y=R.PrimaryButton;R=R.SecondaryButton;return _.V("div",{class:A},R?_.V(R,null):null,Y?_.V(Y,null):null)},"Rh");var $pi=_.E5(function(R){var A=R.data;return _.V("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.V("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.V(_.ni,{data:function(){return A().avatar}},{avatarViewModel:_.qW})),_.V("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V(_.NU,{text:function(){return A().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Sh");var XIF=_.E5(function(R){var A=R.data;return _.V("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.V("div",{class:"ytAccessConfirmationViewModelContent"},_.V(_.ni,{data:function(){var Y;return(Y=A().avatar)!=null?Y:A().dualAvatar}},{dualAvatarViewModel:function(Y){return _.V(_.x5f,{data:Y.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(Y){return _.V(_.LP,{data:Y.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.V("h2",{class:"ytAccessConfirmationViewModelTitle"},_.V(_.NU,{text:function(){return A().title}})),_.V(_.NU,{text:function(){return A().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Th");var SMm=_.E5(function(R){var A=R.data;var Y=void 0;R=_.x(_.gl(function(){var y;return((y=_.n(A().content,_.Cb))==null?void 0:y.defaultSelectedKey)||""}));
var P=R.next().value,E=R.next().value,z,c=function(){E("");var y;(y=Y)!=null&&y.store.dispatch(_.cK({type:"RESET_COMMAND_MAP"}))};
_.jO(function(){Y=new QpG;window.addEventListener("yt-popup-closed",c)});
_.jq(function(){if(Y&&z!==A().formId&&(Y.onInit(A()),(z=A().formId)&&P())){var y=Y,m={key:P()};m.command&&y.store.dispatch(vBn(z,m.command))}},"c2n8Gf");
_.bm(function(){window.removeEventListener("yt-popup-closed",c)});
var M=function(y,m,T){m.key&&T&&m.key!==P()&&(E(m.key),Y&&m.command&&Y.store.dispatch(vBn(T,m.command)))},N=function(){if(_.n(A().content,_.Cb))return!(P==null?0:P())};
return _.V("yt-dialog-view-model",{class:_.To("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.V(UpF,{headerWiz:function(){return _.V("span",{skip:!0},_.V(_.ni,{data:function(){return A().header}},{dialogHeaderViewModel:function(y){return _.V(gOH,{data:y.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!A().header},
contentWiz:function(){return _.V("span",{skip:!0},_.V(_.ni,{data:function(){return A().customContent?A().customContent:A().content}},{basicContentViewModel:_.TZN,
createPlaylistDialogFormViewModel:spG,collaborativePlaylistInviteMessageViewModel:MlY,miniAppScoreChallengeViewModel:Tsf,radioButtonGroupViewModel:function(y){var m=y.data;return _.V(_.Ogn,{data:m,selectedKey:P,onSelected:M,groupName:function(){return m().formId}})},
selectionListItemFormViewModel:vOn,upsellViewModel:function(y){return _.V(mpN,{data:y.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:$pi,installmentAgreementsViewModel:OZN,accessConfirmationViewModel:XIF,listViewModel:function(y){return _.V(_.Xgb,{data:y.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:HZY}))},
footerWiz:function(){return _.V("span",{skip:!0},_.V(_.ni,{data:function(){return A().footer}},{panelFooterViewModel:function(y){return _.V(_.ym,{data:y.data,
disablePadding:!0,disablePrimaryButton:N})},
formPanelFooterViewModel:nOQ,formFooterViewModel:function(y){return _.V(_.zOW,{data:y.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!A().footer}}))},"Uh");
SMm.idomCompat=!0;_.Ow(SMm,"yt-dialog-view-model",{props:{data:_.VY},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var I8N=_.E5(function(R){var A=R.data;R={};return _.V("yt-panel-header-view-model",{class:_.To("ytPanelHeaderViewModelHost",(R.ytPanelHeaderViewModelHostHideDivider=function(){return!!A().shouldHideDivider},R.ytPanelHeaderViewModelHostCompact=function(){return!!A().subtitle},R))},_.V("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.V(_.J,{cond:function(){return A().title},
then:function(Y){return _.V(_.NU,{text:Y,className:"ytPanelHeaderViewModelTitle"})}}),_.V(_.J,{cond:function(){return A().subtitle},
then:function(Y){return _.V(_.NU,{text:Y,className:"ytPanelHeaderViewModelSubtitle"})}})),_.V("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.V(_.ni,{data:function(){return A().trailingButtons}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Vh");
I8N.idomCompat=!0;var KzH=_.E5(function(R){var A=_.Qi(function(z){var c;if((c=R.skipContentClick)==null?0:c.call(R))return!1;R.onContentWrapperClick(z);return!0}),Y,P,E;
return _.V("div",{class:_.To("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return R.isAnimating()?"transform: translateY("+R.currentY()+"px);transition: 0.2s":""}},(Y=R.header)==null?void 0:Y.call(R),_.V("div",{id:R.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.nY({"max-height":(0,_.Lv)(R.maxHeightForContentWrapper)}),"on:scroll":ILg(R.onScroll),"on:touchmove":ILg(function(z){return void z.stopPropagation()})},_.V("div",{el:{onRender:R.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":A},(P=R.body)==null?void 0:P.call(R))),(E=R.footer)==null?void 0:E.call(R))},"Wh");
KzH.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var Wz0=_.E5(function(R){var A=_.Y9(R.leadingLabel),Y=_.Y9(R.trailingLabel),P=_.Y9(R.footerButtonType),E=function(){return A()||Y()||R.hasPrimaryButton()||R.hasSecondaryButton()},z={},c=_.To("yt-spec-bottom-sheet-layout__primary-button",(z["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return P()===0&&R.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return P()===1&&R.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return P()===2&&R.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return P()===3&&R.hasPrimaryButton()},z));
z={};var M=_.To("yt-spec-bottom-sheet-layout__secondary-button",(z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return P()===1&&R.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return P()===2&&R.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return P()===3&&R.hasPrimaryButton()},z));
return _.V(_.J,{cond:R.hasFooterOverride,then:function(){var N;return _.V(_.lI,null,(N=R.footerOverride)==null?void 0:N.call(R))},
else:function(){return _.V(_.J,{cond:E,then:function(){return _.V("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.V(_.J,{cond:function(){return A()||Y()},
then:function(){var N={};return _.V("div",{class:_.To("yt-spec-bottom-sheet-layout__footer-label-wrapper",(N["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!R.hasPrimaryButton()},N))},_.V(_.J,{cond:A,
then:function(){return _.V("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},A)}}),_.V(_.J,{cond:Y,
then:function(){return _.V("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},Y)}}))}}),_.V(_.J,{cond:function(){return R.hasPrimaryButton()||R.hasSecondaryButton()},
then:function(){var N={};return _.V("div",{class:_.To("yt-spec-bottom-sheet-layout__footer-button-wrapper",(N["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.nrA,N))},_.V(_.J,{cond:function(){return R.hasSecondaryButton()&&P()!==0},
then:function(){var y;return _.V("div",{class:M},(y=R.secondaryButton)==null?void 0:y.call(R))}}),_.V(_.J,{cond:R.hasPrimaryButton,
then:function(){var y;return _.V("div",{class:c},(y=R.primaryButton)==null?void 0:y.call(R))}}))}}))}})}})},"Xh");
Wz0.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var jp9=_.E5(function(R){var A=_.Y9(R.title),Y=_.Y9(R.subtitle);return _.V("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:R.headerId,"on:touchstart":_.Qi(function(P){var E;(E=R.touchstart)==null||E.call(R,P);return!1}),
"on:touchmove":_.Qi(function(P){var E;(E=R.touchmove)==null||E.call(R,P);return!1}),
"on:touchend":_.Qi(function(P){var E;(E=R.touchend)==null||E.call(R,P);return!1})},_.V("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.V(_.J,{cond:R.hasHeaderOverride,
then:function(){var P;return _.V(_.lI,null,(P=R.headerOverride)==null?void 0:P.call(R))},
else:function(){var P={};return _.V("div",{class:_.To((P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,P["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=A,P))},_.V("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.V(_.J,{cond:A,then:function(){return _.V(_.lI,null,_.V("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},A),_.V(_.J,{cond:Y,then:function(){return _.V("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
Y)}}))}})),_.V(_.J,{cond:function(){return A()&&R.hasActionHeader()},
then:function(){var E;return _.V("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(E=R.actionHeader)==null?void 0:E.call(R))}}))}}))},"Yh");
jp9.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.E5(function(R){function A(t){if(!p&&typeof MutationObserver!=="undefined"){var d={childList:!0};"MutationObserver"in window&&(p=new MutationObserver(Y.bind(void 0,t)),p.observe(t,d))}}
function Y(t){typeof p!=="undefined"&&(h["content-wrapper"]===void 0&&(h["content-wrapper"]=t.children[0].clientHeight),g(h["content-wrapper"]),Q()>r()||I(Q()))}
function P(){T(window.innerHeight);Q()>r()||I(Q());L.isFullScreen[0]()&&Q()>r()?Z().dispatch("Snap To Full Screen",{maxHeight:b()}):Z().dispatch("Snap To Neutral Position",{maxHeight:r()})}
function E(t){document.body.style.overscrollBehavior="none";t.preventDefault();Z().dispatch("Touch Start",{event:t})}
function z(t){t.preventDefault();Z().dispatch("Touch Move",{event:t,contentScrollable:Q()>r(),fullContentWrapperHeight:b(),contentWrapperHeight:r(),contentHeightMap:h,contentWrapperId:"content-wrapper",header:WBN(R),footer:WBN(R)})}
function c(){document.body.style.overscrollBehavior="";L.isFullScreen[0]()?L.currentY[0]()>=60?Z().dispatch("Snap To Neutral Position",{maxHeight:r()}):Z().dispatch("Snap To Full Screen",{maxHeight:b()}):L.currentY[0]()>=60?M():L.currentY[0]()<=-60&&Q()>r()?Z().dispatch("Snap To Full Screen",{maxHeight:b()}):Z().dispatch("Snap To Neutral Position",{maxHeight:r()})}
function M(){Z().dispatch("Close Sheet",{clientHeight:m(),maxHeight:0});setTimeout(function(){KBQ()},250)}
var N=_.x(_.yy(window.innerHeight,void 0,"Q6Nekc")),y=N.next().value;N=N.next().value;var m=y,T=N;N=_.x(_.yy(0,void 0,"vjnlmb"));y=N.next().value;N=N.next().value;var Q=y,g=N;N=_.x(_.gl(function(){var t=WBN(R);return.6*m()-$Hf(t)-X1g(t)}));
y=N.next().value;N=N.next().value;var r=y,I=N,b=function(){var t=WBN(R);return m()-$Hf(t)-X1g(t)-24-24},p=null,h={},L={initialY:_.yy(0,void 0,"B0aY2c"),
currentY:_.yy(0,void 0,"nLPMcf"),isAnimating:_.yy(!1,void 0,"lXnnZ"),isFullScreen:_.yy(!1,void 0,"rZZoFe"),maxHeightForContentWrapper:_.gl(r)},Z=function(){var t=null;return function(){if(!t){var d={initialY:L.initialY[0](),currentY:L.currentY[0](),isAnimating:L.isAnimating[0](),isFullScreen:L.isFullScreen[0](),maxHeightForContentWrapper:L.maxHeightForContentWrapper[0]()};t=SwY(d)}return t}}();
_.jO(function(){window.addEventListener("resize",P);Z().subscribe(function(t){L.initialY[1](t.initialY);L.currentY[1](t.currentY);L.isAnimating[1](t.isAnimating);L.isFullScreen[1](t.isFullScreen);L.maxHeightForContentWrapper[1](t.maxHeightForContentWrapper)})});
_.bm(function(){window.removeEventListener("resize",P);p&&(p.disconnect(),p=null)});
var w=_.To({"bottom-sheet-content-without-icon":function(){var t;return!((t=R.shouldShowIcons)==null?0:t.call(R))}});
return _.V("bottom-sheet-layout",null,_.V(KzH,{contentWrapperId:"content-wrapper",isAnimating:function(){return L.isAnimating[0]()},
currentY:function(){return L.currentY[0]()},
maxHeightForContentWrapper:function(){return L.maxHeightForContentWrapper[0]()},
shouldShowIcons:R.shouldShowIcons,skipContentClick:R.skipContentClick,onScroll:function(){var t=document.getElementById("header-wrapper"),d=document.getElementById("content-wrapper");if(t&&d){var Jk={};Jk=(Jk["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,Jk["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,Jk);t.className=d.scrollTop>1?_.IP(Jk):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:KBQ,contentWrapperEl:function(t){A(t);requestAnimationFrame(function(){Y(t)})},
header:function(){return _.V(jp9,{touchstart:E,touchmove:z,touchend:c,title:R.headerTitle,subtitle:R.headerSubtitle,headerId:"header-wrapper",headerOverride:R.headerFn,hasHeaderOverride:R.hasHeaderFn,actionHeader:R.headerActionHeader,hasActionHeader:R.hasHeaderActionHeader})},
footer:function(){return _.V(Wz0,{footerButtonType:R.footerButtonType,leadingLabel:R.footerLeadingLabel,trailingLabel:R.footerTrailingLabel,primaryButton:R.footerPrimaryButton,hasPrimaryButton:R.hasFooterPrimaryButton,secondaryButton:R.footerSecondaryButton,hasSecondaryButton:R.hasFooterSecondaryButton,footerOverride:R.footerFn,hasFooterOverride:R.hasFooterFn})},
body:function(){return _.V(_.J,{cond:R.hasContentFn,then:function(){var t;return _.V("div",{class:w},(t=R.contentFn)==null?void 0:t.call(R))}})}}))},"Zh").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var bZW=_.E5(function(R){var A=_.is().resolve(_.wy);return _.V("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.Qi(function(){return void A.closeSheet()})},_.V(_.J,{cond:function(){return!!R.header},
then:function(){return _.V("div",{class:"ytContextualSheetLayoutHeaderContainer"},R.header())}}),_.V(_.J,{cond:function(){return!!R.content},
then:function(){return _.V("div",{class:"ytContextualSheetLayoutContentContainer"},R.content())}}),_.V(_.J,{cond:function(){return!!R.footer},
then:function(){return _.V("div",{class:"ytContextualSheetLayoutFooterContainer"},R.footer())}}))},"$h");
bZW.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var f8H=_.E5(function(R){R=R.data;var A=_.LK("yt-sheet-view-model",function(P){if(_.v("web_focus_first_element_sheet")||!_.v("sheet_focus_first_killswitch"))return P.addEventListener("focus",function(){obi(P)}),function(){P.removeEventListener("focus",function(){obi(P)})}}),Y={};
return _.V("yt-sheet-view-model",{"on:mousedown":_.Qi(function(P){_.v("sheet_focus_first_killswitch")||P.currentTarget!==P.target&&P.preventDefault()}),
"on:focus":_.Qi(function(){_.v("sheet_focus_first_killswitch")||obi(A.value)}),
class:_.To("ytSheetViewModelHost",(Y.ytSheetViewModelContextual=!0,Y.ytSheetViewModelDisableBackdropFilter=_.v("web_disable_backdrop_filter"),Y)),el:A,tabindex:-1},_.V(_.J,{cond:R,then:function(P){return _.V(bZW,{header:function(){return _.V(_.ni,{data:function(){return P().header}},{panelHeaderViewModel:I8N})},
content:function(){return _.V(_.ni,{data:function(){return P().content}},{listViewModel:function(E){return _.V(_.Xgb,{data:E.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:mpN,miniAppScoreChallengeViewModel:Tsf})},
footer:function(){return _.V(_.ni,{data:function(){return P().footer}},{panelFooterViewModel:_.ym})}})}}))},"ai");
f8H.idomCompat=!0;_.Ow(f8H,"yt-sheet-view-model",{props:{data:_.VY}});var Fzo=_.E5(function(R){var A=function(){var Y;return(Y=R.data().enableDebuggingFeatures)!=null?Y:!1};
return _.V("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.V(_.Ue,{each:function(){var Y;return(Y=R.data().stickers)!=null?Y:[]}},function(Y){return _.V(pIn,{data:function(){return Y},
debugMode:A})}))},"bi"),pIn=_.E5(function(R){var A=_.Pc(R,{debugMode:!1}).debugMode,Y=_.Y9(function(){var N;
return(N=R.data().region)==null?void 0:N.w},0),P=_.Y9(function(){var N;
return(N=R.data().region)==null?void 0:N.h},0),E=_.Y9(function(){var N;
return(N=R.data().region)==null?void 0:N.x},0),z=_.Y9(function(){var N;
return(N=R.data().region)==null?void 0:N.y},0),c=_.Qi(function(){var N=R.data().onTap;
N&&_.Zc(N)}),M={};
return _.V("div",{class:_.To("ytStoriesStickerLayerViewModelSticker",(M.ytStoriesStickerLayerViewModelDebugMode=A,M)),style:_.nY({width:function(){return 100*Y()+"%"},
height:function(){return 100*P()+"%"},
left:function(){return 100*E()+"%"},
top:function(){return 100*z()+"%"},
"flex-direction":function(){return jEf(R.data().flexDirection)},
"justify-content":function(){return bYo(R.data().justifyContent)},
"align-items":function(){return fLQ(R.data().alignItems)}}),
"on:click":c},_.V(_.ni,{data:function(){return R.data().button||R.data().toggleButton}},{buttonViewModel:function(N){return _.V(_.Is,{data:N.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(N){return _.V(_.uF,{data:N.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"ci");var a8n=_.E5(function(R){var A=function(){return R.data()},Y={},P=_.Y9(function(){return A().backgroundColor},0),E=_.Y9(function(){return A().actionButtons},[]),z=_.Y9(function(){return A().stickerLayer},{}),c=function(){var N,y;
return{animationRef:Y,animationConfig:{autoplay:!1,loop:!1,path:(y=(N=A().foregroundAnimation)==null?void 0:N.url)!=null?y:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){R.navigateToNextItemOnLottieComplete()}}}},M=function(){var N,y,m,T,Q,g,r,I;
return{animationConfig:{autoplay:(g=(N=A().backgroundAnimation)==null?void 0:(y=N.settings)==null?void 0:y.autoplay)!=null?g:!1,loop:(r=(m=A().backgroundAnimation)==null?void 0:(T=m.settings)==null?void 0:T.loop)!=null?r:!1,path:(I=(Q=A().backgroundAnimation)==null?void 0:Q.url)!=null?I:"",name:"stories_item_background_animation"}}};
_.jq(function(){if(R.isVisible()){var N;(N=Y.lottieEl)==null||N.play();R.animationRef()&&(R.animationRef().lottieEl=Y.lottieEl)}else{var y;(y=Y.lottieEl)==null||y.stop()}},"AvUgVe");
return _.V("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.nY({"background-color":function(){return _.Zs(P())+";"}})},_.V("div",{class:"ytStoriesItemViewModelAssetContent"},_.V(_.J,{cond:function(){return!!A().backgroundAnimation},
then:function(){return _.V(_.pH,{data:M,animationName:function(){return M().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.V(_.J,{cond:function(){return!!A().backgroundImage},
then:function(){return _.V(_.P1,{data:function(){return A().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.V(_.J,{cond:function(){return!!A().foregroundAnimation},
then:function(){return _.V(_.pH,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.V(_.J,{cond:function(){return!!A().foregroundImage},
then:function(){return _.V(_.P1,{data:function(){return A().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.V("div",{class:"ytStoriesItemViewModelTopShadow"}),_.V(_.ni,{data:function(){return z()}},{storiesStickerLayerViewModel:Fzo})),_.V("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.nY({"background-color":function(){return _.Zs(P())}})},_.V("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.V(_.Ue,{each:E},function(N){return _.V(Bsf,{data:function(){return N},
pauseAutoNavigation:R.pauseAutoNavigation})}))))},"di"),CCQ={style:"overlay",
type:"outline"},Bsf=_.E5(function(R){var A={};return _.V("div",{class:_.To("ytStoriesItemViewModelActionButton",(A.ytStoriesItemViewModelStretchedActionButton=function(){return R.data().size==="STORIES_BUTTON_SIZE_STRETCH"},A)),
"on:click":_.Qi(R.pauseAutoNavigation)},_.V(_.ni,{data:function(){return R.data().button}},{buttonViewModel:function(Y){return _.V(_.Is,{data:Y.data,
buttonOverrides:CCQ})}}))},"ei");_.Ow(_.E5(function(R){var A=function(){var Nb;return(Nb=R.data().startIndex)!=null?Nb:0},Y=_.x(_.gl(A)),P=Y.next().value,E=Y.next().value;
Y=_.x(_.yy(!1,void 0,"klmjc"));var z=Y.next().value,c=Y.next().value,M=function(){var Nb;return(Nb=R.data().storyItems)!=null?Nb:[]},N={},y=_.LK("yt-stories-viewer-view-model"),m=function(){return R.data().dismissButton},T=function(){var Nb;
return _.h7((Nb=_.n(m(),_.E7))==null?void 0:Nb.onTap)},Q=_.LK("div"),g,r,I=!1,b=function(){var Nb;
(Nb=g)==null||Nb.cancel();g=p(P()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});g.onfinish=function(){var Qk=_.n(M()[P()],Btg),H3,nu;Qk!=null&&Qk.foregroundAnimation&&((Qk==null?0:(H3=Qk.foregroundAnimation)==null?0:H3.url)||(Qk==null?0:(nu=Qk.foregroundAnimation)==null?0:nu.payload))||(P()!==M().length-1?(E(P()+1),b()):T()&&_.oZ(T()))}},p=function(Nb){return Q.value.children[Nb].children[0]},h=function(){for(var Nb=0;Nb<P();Nb++)p(Nb).style.transform=
"scaleX(1)"};
Y=_.Qi(function(){I||(z()?c(!1):(P()===M().length-1&&T()&&_.oZ(T()),p(P()).style.transform="scaleX(1)",P()!==M().length-1&&(E(P()+1),b())))});
var L=_.Qi(function(){I||(z()?c(!1):(p(P()).style.transform="scaleX(0)",P()!==0&&E(P()-1),b()))}),Z=function(){c(!0)},w=function(){p(P()).style.transform="scaleX(1)";
P()!==M().length-1?(E(P()+1),b()):T()&&_.oZ(T())},t=_.Qi(function(){I=!1;
r=setTimeout(function(){c(!0);I=!0},300)}),d=_.Qi(function(){clearTimeout(r);
I&&z()&&c(!1)});
_.jq(function(){if(z()){var Nb;(Nb=g)==null||Nb.pause();var Qk;(Qk=N.lottieEl)==null||Qk.pause()}else{var H3;(H3=g)==null||H3.play();var nu;(nu=N.lottieEl)==null||nu.play()}},"DIHTEd");
_.jq(function(){h();P()===A()&&b()},"ze5F8b");
var Jk=function(Nb){Nb.target===y.value&&(Nb=T())&&_.oZ(Nb)};
_.jO(function(){h();b();window.addEventListener("yt-popup-closed",Jk)});
_.bm(function(){clearTimeout(r);window.removeEventListener("yt-popup-closed",Jk)});
return _.V("yt-stories-viewer-view-model",{el:y,class:_.To("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.V("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.V("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":L,"on:mousedown":t,"on:mouseup":d,"on:mouseleave":d}),_.V("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":Y,"on:mousedown":t,"on:mouseup":d,"on:mouseleave":d})),_.V("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},
_.V(_.ni,{data:M},{storiesItemViewModel:function(Nb,Qk){var H3=Nb.data;return _.V(_.J,{cond:function(){return Math.abs(Qk()-P())<=1},
then:function(){var nu={};return _.V("div",{class:_.To("ytStoriesViewerViewModelStoryItem",(nu.ytStoriesViewerViewModelActiveStoryItem=function(){return Qk()===P()},nu))},_.V(a8n,{data:H3,
pauseAutoNavigation:Z,navigateToNextItemOnLottieComplete:w,isVisible:function(){return Qk()===P()},
animationRef:N}))}})}})),_.V("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:Q},_.V(_.Ue,{each:M},function(){return _.V("div",{class:"ytStoriesViewerViewModelProgressBar"},_.V("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.V("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.V(_.ni,{data:m},{buttonViewModel:_.Is})))},"fi"),"yt-stories-viewer-view-model",{props:{data:_.VY}});_.Ow(_.E5(function(R){var A=R.data;var Y=_.LK("yt-gen-ai-feedback-form-view-model"),P=[];return _.V("yt-gen-ai-feedback-form-view-model",{el:Y,class:"ytGenAiFeedbackFormViewModelHost"},_.V(_.NU,{text:function(){return A().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.V("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.V(_.ni,{data:function(){return A().feedbackChips}},{toggleButtonViewModel:function(E){var z=E.data;
return _.V(_.uF,{data:z,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(c){var M=z();M=_.n(M,_.iS);M=_.n(M==null?void 0:M.defaultButtonViewModel,_.E7).trackingParams;c?P.push(M):(c=P.indexOf(M),c>-1&&P.splice(c,1))}})}})),_.V(_.NU,{text:function(){return A().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.V("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.V(_.ni,{data:function(){return A().submitButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){p1g(Y.value,P,A().uniqueId)}})}}),_.V(_.ni,{data:function(){return A().moreFeedbackButton}},{buttonViewModel:function(E){return _.V(_.Is,{data:E.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"gi"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.VY},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var Yx=function(){return _.K.apply(this,arguments)||this};
_.H(Yx,_.K);Yx.prototype.created=function(){mhW(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(EEF);var R=_.is().resolve(_.ono);R&&(R.container=this.ytPopupContainerBehavior);if(R=_.is().resolve(_.wy))R.container=this.ytPopupContainerBehavior;if(R=_.is().resolve(_.ug)){var A=this.ytPopupContainerBehavior;R.containerWasInjected?_.pK(Error("gj")):R.container=A}};
Yx.prototype.ensurePopupBelowPlayer=function(R,A){var Y=_.is().resolve(_.z3(_.YH));if(!Y||!Y.isOnWatch()||!_.EJ())return!1;Y=Y.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.XI().height>Y+this.getPopupHeight(R,A)?(R.style.top="auto",R.style.bottom="0px"):(R.style.top=Y+"px",R.style.bottom="auto");return!0};
Yx.prototype.getPopupHeight=function(R,A){A&&(R.cachedPopupHeight=0);if(!R.cachedPopupHeight){A=0;var Y=R.clientHeight,P=window.getComputedStyle(R);A+=parseInt(P.marginTop,10);A+=parseInt(P.marginBottom,10);R.cachedPopupHeight=Y+A}return R.cachedPopupHeight};
Yx.prototype.getElement=function(R){return document.createElement(R)};
_.C([_.U($wN.YtPopupContainerBehavior),_.k("design:type",Object)],Yx.prototype,"ytPopupContainerBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],Yx.prototype,"ytComponentBehavior",void 0);_.C([_.F({disableElementRegistration:!0,is:"ytd-popup-container"})],Yx);
_.B(Yx,"ytd-popup-container",function(){if(T_H!==void 0)return T_H;var R=document.createElement("template");_.D(R,"\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");R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);return T_H=R},{mode:1});var hmm;var oOi={};oOi.YtLogYpcFlowCommandsBehavior=[_.fH.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(R){_.n(R,POf)&&(R=_.n(R,POf))&&(R.serializedTransactionFlowLoggingParams?_.GPk(R.serializedTransactionFlowLoggingParams):R.serializedYpcCancelFlowLoggingParams?(R=R.serializedYpcCancelFlowLoggingParams)&&_.l1("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",R):R.serializedYpcResumeFlowLoggingParams?(R=R.serializedYpcResumeFlowLoggingParams)&&_.l1("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",R):R.serializedYpcPauseFlowLoggingParams?(R=R.serializedYpcPauseFlowLoggingParams)&&
_.l1("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",R):R.serializedYpcRefundFlowLoggingParams?(R=R.serializedYpcRefundFlowLoggingParams)&&TFo("YPC_EVENT_TYPE_START",R):R.serializedYpcDeactivateFlowLoggingParams?(R=R.serializedYpcDeactivateFlowLoggingParams)&&_.l1("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",R):R.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(R=R.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.l1("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",R))},
handleLogYpcFlowDismiss_:function(R){_.n(R,Ybn)&&(R=_.n(R,Ybn),R.serializedTransactionFlowLoggingParams?_.ZPk(R.serializedTransactionFlowLoggingParams):R.serializedYpcCancelFlowLoggingParams?(R=R.serializedYpcCancelFlowLoggingParams)&&_.l1("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",R):R.serializedYpcResumeFlowLoggingParams?(R=R.serializedYpcResumeFlowLoggingParams)&&_.l1("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",R):R.serializedYpcPauseFlowLoggingParams?(R=
R.serializedYpcPauseFlowLoggingParams)&&_.l1("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",R):R.serializedYpcRefundFlowLoggingParams&&(R=R.serializedYpcRefundFlowLoggingParams)&&TFo("YPC_EVENT_TYPE_CANCEL",R))}}];var kmN={};kmN.YtCancelRecurrenceBehavior=[_.iF.YtComponentBehavior,_.Ju8,{attached:function(){var R=this;R30(this,function(A,Y){return R.ypcCancelRecurrenceHandler(A,Y)})},
ypcCancelRecurrenceHandler:function(R,A){var Y=this;if(!A||!A.ypcCancelRecurrenceEndpoint)return!1;if(!A.ypcCancelRecurrenceEndpoint.params)return _.hv(Error("Hl")),!0;_.BL(this.hostElement);var P=_.tM.instance,E=_.is().resolve(_.z3(_.a4));P&&_.wl(P,A)?_.uh(P,A).then(function(z){Y.ypcCancelRecurrenceSuccess_(R,A,{data:z})},function(z){Y.ypcCancelRecurrenceFailure_(R,A,z)}).thenCatch(function(){_.hv(Error("Il"))}):E?E.requestDataForServiceEndpoint(A).then(function(z){Y.ypcCancelRecurrenceSuccess_(R,
A,z)},function(z){Y.ypcCancelRecurrenceFailure_(R,A,z)}).thenCatch(function(){_.hv(Error("Il"))}):_.hv(Error("Jl"));
return!0},
ypcCancelRecurrenceSuccess_:function(R,A,Y){_.a9(this.hostElement);Y.data||(Y={data:Y});Y.data&&Y.data.actions&&_.NT(this.hostElement,Y.data.actions,this.hostElement);Y.data.messageRenderer?vb9(A.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(A=A.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.l1("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",A);_.xo(R,"yt-service-request-completed",Y)},
ypcCancelRecurrenceFailure_:function(R,A,Y){_.a9(this.hostElement);vb9(A.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.xo(R,"yt-service-request-error",{error:Y,params:[R,A]})}}];var GmN=function(R,A){_.Rk.call(this,A)};
_.H(GmN,j2F);var ZZo={};ZZo.YtCompleteTransactionBehavior=[_.iF.YtComponentBehavior,_.Ju8,{attached:function(){var R=this;R30(this,function(A,Y){return R.ypcCompleteTransactionHandler(A,Y)})},
completeTransaction:function(R,A){var Y=this;A={payments_payload:window.btoa(A.integratorData),buybucket_params:R.data.buybucketParams,offer_params:R.data.offerParams};var P=_.is().resolve(_.a4),E=R.data.completeTransactionEndpoint,z=this.get("ypcCompleteTransactionEndpoint.actions",E);z&&_.NT(this.hostElement,z,this.hostElement);return(z=_.tM.instance)&&_.wl(z,E)?_.uh(z,E,A).then(function(c){return!c||(c==null?0:c.error)?(c=Y.get("data.serializedTransactionFlowLoggingParams",R),_.j5(new fE("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
c))):{data:c}}).then(function(c){return Y.handleCompleteTransactionSuccess_(c,R)},function(){return Y.handleCompleteTransactionFailure_(R)}):P.requestDataForServiceEndpoint(E,A).then(function(c){return Y.handleCompleteTransactionSuccess_(c,R)},function(){return Y.handleCompleteTransactionFailure_(R)})},
handleCompleteTransactionSuccess_:function(R,A){R.data||(R={data:R});if(R.data.messageRenderer)return _.j5(new GmN(R.data.messageRenderer));if(R.data.trackingParams){var Y=_.F9(),P=_.pO();Y&&P&&_.ZM(Y,P,_.S5(R.data.trackingParams))}A=this.get("data.serializedTransactionFlowLoggingParams",A);Qai(A);return _.Vn(R)},
handleCompleteTransactionFailure_:function(R){R=this.get("data.serializedTransactionFlowLoggingParams",R);_.da("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",R);return _.j5(new fE("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",R))},
ypcCompleteTransactionHandler:function(R,A){var Y=this;if(!A.ypcCompleteTransactionEndpoint)return!1;if(!A.ypcCompleteTransactionEndpoint.transactionParams)return _.hv(Error("Kl")),!0;A.ypcCompleteTransactionEndpoint&&A.ypcCompleteTransactionEndpoint.gtmData&&_.ur(A.ypcCompleteTransactionEndpoint.gtmData);var P=_.is().resolve(_.z3(_.a4));if(P){_.BL(this.hostElement);var E=_.tM.instance;E&&_.wl(E,A)?_.uh(E,A).then(function(z){return!z||(z==null?0:z.error)?(z=Y.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
A),_.j5(new fE("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",z))):{data:z}}).then(function(z){_.xo(R,"yt-service-request-completed");
Y.ypcCompleteTransactionSuccess_(A,z)},function(){return Y.ypcCompleteTransactionFailure_(A)}):P.requestDataForServiceEndpoint(A).then(function(z){_.xo(R,"yt-service-request-completed");
Y.ypcCompleteTransactionSuccess_(A,z)},function(){return Y.ypcCompleteTransactionFailure_(A)})}return!0},
ypcCompleteTransactionSuccess_:function(R,A){_.a9(this.hostElement);A.data||(A={data:A});_.OC(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);A.data.messageRenderer||A.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(R):(_.ur('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",R));A.data.actions&&(R=Ic9(A.data.actions),A=K0o(A.data.actions),R.length&&_.sC(this.hostElement,
R),A.length&&_.NT(this.hostElement,A,this.hostElement))},
ypcCompleteTransactionFailure_:function(R){_.a9(this.hostElement);_.OC(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",R,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(R,A,Y){if(A=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",A))A={serializedTransactionFlowLoggingParams:A},Y&&(A.errorType=Y),_.Wj(R,A),_.j_()}}];var tlj={};tlj.YtEndpointHandlerWithYpcBehavior=[_.Ju8,_.fH.YtActionHandlerBehavior,[{openWalletDialog:function(R,A,Y,P,E,z,c){var M=this,N=_.ei();A=A.replace(/-/g,"+").replace(/_/g,"/");var y=_.Hk().get("hl");_.F9P(_.qh(_.R6),A,N.resolve,E,function(m){z&&z();N.reject(m)},y,function(m){return M.onServerBackendAnalyticEvent_(R,Y,m)},this.onDialogClose_.bind(this),P,c);
return N.promise},
openFixFlowDialog:function(R,A,Y,P){R=R.replace(/-/g,"+").replace(/_/g,"/");_.qh(_.R6).openFixFlowDialog(R,A,Y,P)},
onDialogClose_:function(){_.OC(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(R,A,Y){_.xo(R,"yt-commerce-action-init-done");A&&_.sC(this.hostElement,[A,{backend_analytics:Y}])}}],
_.jV.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(R,A){R=this.get("data.nativeFlowEndpoint",A);A=this.get("data.fallbackEndpoint",A);R?_.sC(this.hostElement,[R]):A&&_.xo(this.hostElement,"yt-navigate",{endpoint:A})}}],
kmN.YtCancelRecurrenceBehavior,ZZo.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 R=this;R30(this,function(A,Y,P){return R.handleYPCEndpoint(A,Y,P)});
this.ypcRegisterActionMapJobId_=_.Ua(_.fn,function(){R.registerActionMap(R.buyFlowActionMap_)})},
detached:function(){var R=this;_.fn.cancelJob(this.ypcRegisterActionMapJobId_);_.Ua(_.fn,function(){R.unregisterActionMap(R.buyFlowActionMap_)})},
handleYPCEndpoint:function(R,A,Y){var P=A.ypcGetCartEndpoint;if(P){_.pj("commerce_transaction");var E=P.gtmId;E&&_.wR(E);(P=P.gtmData)&&_.ur(P)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",A)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(R,A),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",A)!=null?(this.handleYPCFixInstrumentEndpoint_(R,A),!0):A.ypcPauseSubscriptionCommand?(ZYH(this.hostElement,R,A,Y),
!0):A.ypcResumeSubscriptionCommand?(uWo(this.hostElement,R,A),!0):A.getPaymentInstrumentsParamsCommand?(oLH(this.hostElement,R,A),!0):A.ypcHandleTransactionEndpoint?(Chj(this.hostElement,R,A,Y),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(R,A){var Y=this;_.Fh("ttcr",void 0,"commerce_transaction");A=A.ypcGetCartEndpoint;var P=A.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,E=P.encryptedPurchaseParams,z=P.serializedTransactionFlowLoggingParams,c=P.serializedPaymentsClientParams,M=this.createGetCartResponseFromParams_(P,A.offerParams,z);this.changeButtonState(R,!0);_.jS(this.openWalletDialog(R,E,P.ypcLogWalletAnalyticDataEndpoint,z,function(){Y.changeButtonState(R,!1)},function(){Y.changeButtonState(R,
!1)},c).then(function(N){return Y.handleBuyFlowCompleteCallback_(R,M,N)},function(){return Y.handleOnLoadError(M)}).then(function(N){return void Y.handlePostPurchaseSuccess_(R,M,N)},function(N){return void Y.handlePostPurchaseError_(N)}),function(){Y.changeButtonState(R,!1);
R instanceof Element&&_.xo(R,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(R,A,Y){var P=R.completeTransactionEndpoint,E=R.handleTransactionEndpoint;A={data:{offerParams:window.btoa(A),serializedTransactionFlowLoggingParams:Y}};E?A.data.handleTransactionEndpoint=E:A.data.completeTransactionEndpoint=P;R.onCartDismissCommand&&(A.data.onCartDismissCommand=R.onCartDismissCommand);return A},
onGetCartServiceRequestCompleted_:function(R,A){var Y=this,P=R.target;if(A&&A.data&&A.data.messageRenderer)_.a9(this.hostElement),this.handleMessageRenderer_(A.data.messageRenderer),this.changeButtonState(P,!1);else{var E=this.get("data.encryptedPurchaseParams",A),z=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",A),c=this.get("data.ypcLogWalletAnalyticDataEndpoint",A),M=this.get("data.serializedPaymentsClientParams",A),N=this.getLoggingParams_(A);if(N||E||z)R.stopPropagation(),_.Fh("ttcr",
void 0,"commerce_transaction"),E||_.a9(this.hostElement),this.changeButtonState(P,!1),z?_.OC(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.a1("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:z}}},this]):E&&(this.changeButtonState(P,!0),R=null,R=this.openWalletDialog(P,E,c,N,function(){_.a9(Y.hostElement);Y.changeButtonState(P,!1)},function(){_.a9(Y.hostElement);
Y.changeButtonState(P,!1)},M),_.jS(R.then(function(y){return Y.handleBuyFlowCompleteCallback_(P,A,y)},function(){return Y.handleOnLoadError(A)}).then(function(y){return Y.handlePostPurchaseSuccess_(P,A,y)},function(y){return Y.handlePostPurchaseError_(y)}),function(){Y.changeButtonState(P,!1);
_.xo(P,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(R,A){A&&A.endpoint&&A.endpoint.ypcGetCartEndpoint&&!A.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",A.endpoint.ypcGetCartEndpoint)&&_.NT(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",A.endpoint.ypcGetCartEndpoint)],R.target),_.BL(this.hostElement),this.changeButtonState(R.target,!0))},
onServiceRequestError_:function(R,A){if(A&&A.params&&A.params.length){A=_.x(A.params);for(var Y=A.next();!Y.done;Y=A.next())if((Y=Y.value)&&Y.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",Y.ypcGetCartEndpoint)&&_.NT(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",Y.ypcGetCartEndpoint)],R.target);_.a9(this.hostElement);this.changeButtonState(R.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(R,A,Y){var P=Y.integratorData;return P==null||P===""||Y.error!=null?(P=this.getLoggingParams_(A),String(Y.error)==="-1"?(A.data.onCartDismissCommand&&_.NT(this.hostElement,[A.data.onCartDismissCommand],R),_.j5(new fE("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P,!0))):_.j5(new fE("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",P))):A.data.handleTransactionEndpoint?hc0(this.hostElement,A.data.handleTransactionEndpoint,{payments_payload:P,funds_guarantee_callback_client_data:Y.integratorClientCallbackData}):
this.completeTransaction(A,Y)},
handlePostPurchaseSuccess_:function(R,A,Y){A=Y.data;var P=!1,E,z;if(A&&((E=A.command)==null?0:(z=E.commandExecutorCommand)==null?0:z.commands)){var c,M;E=(c=A.command)==null?void 0:(M=c.commandExecutorCommand)==null?void 0:M.commands;for(c=0;c<E.length;c++)if(_.n(E[c],_.e1A)){P=!0;break}}P||(A&&A.gtmDatas&&A.gtmDatas.length?_.ur(A.gtmDatas[0]):_.ur('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));Y.data&&Y.data.actions&&(A=Ic9(Y.data.actions),Y=K0o(Y.data.actions),A.length&&
_.sC(this.hostElement,A),Y.length&&_.NT(this.hostElement,Y,R))},
handlePostPurchaseError_:function(R){R&&R.payload&&R.payload.isUserDismiss||_.bj(Error("Ml"))},
handleOnLoadError:function(R){R=this.getLoggingParams_(R);return _.j5(new fE("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",R))},
getLoggingParams_:function(R){return this.get("data.serializedTransactionFlowLoggingParams",R)},
handleMessageRenderer_:function(R){var A=_.fQ(R,"renderer"),Y=_.a1("openPopupConfig");A==="confirmDialogRenderer"&&Y&&_.OC(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:Y.popupTypeMap[A],popup:R}},this])},
handleYPCFixInstrumentEndpoint_:function(R,A){var Y=this,P=A.ypcFixInstrumentEndpoint;A=P.encryptedFixInstrumentParameters;this.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(R,!0);this.openFixFlowDialog(A,function(E,z){Y.onFixFlowCompleteCallback_(P,E,z)},function(){return Y.changeButtonState(R,!1)},function(){Y.changeButtonState(R,!1);
Y.logFixFopEvent_(P,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(R,A,Y){var P=_.Zr("payments.business.integration.scenario.FixInstrument");if(A==P.IntegratorCallbackType.ON_COMPLETE){A="FIX_FOP_EVENT_TYPE_CANCEL";var E=null;Y.error!=null?Y.error!=P.OnCompleteCallbackError.USER_CANCELLED&&(_.NT(this.hostElement,[R.errorAction],this.hostElement),A="FIX_FOP_EVENT_TYPE_FAILURE",E="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.NT(this.hostElement,[R.successAction],this.hostElement),A="FIX_FOP_EVENT_TYPE_SUCCESS");_.NT(this.hostElement,[R.onFinishAction],
this.hostElement);this.logFixFopEvent_(R,A,E)}},
logFixFopEvent_:function(R,A,Y){(R=R.serializedFixFopLoggingParams)?(A={eventType:A,serializedFixFopLoggingParams:R},Y!=null&&(A.errorType=Y),_.Wj("fixFopFlow",A),_.j_()):_.bj(Error("Nl"))},
changeButtonState:function(R,A){_.v("enable_ypc_spinners")&&R&&(R.is==="yt-button-renderer"||R.is==="ytd-button-renderer")&&(R.disabled=A)}}];var wIj=function(R){this.JSC$32317_clientRoot=R;this.feedbackCollectorActionMap={"yt-help-dialog-requested":qwf,"yt-feedback-dialog-requested":ecN,"yt-signal-action-help":LBG,"yt-signal-action-send-feedback":dHN,"yt-send-feedback-action":A4i,"yt-user-feedback-endpoint":YJ0};_.t$(_.ZA.getInstance(),this.feedbackCollectorActionMap,this.JSC$32317_clientRoot)},u_f;var emm=function(R){this.JSC$32322_clientRoot=R;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Pco.bind(null,this.JSC$32322_clientRoot),"yt-signal-action-delete-all-downloads":zH9,"yt-signal-action-delete-download":iii,"yt-signal-action-delete-playlist-download":xV9,"yt-signal-action-install-pwa":Vdf,"yt-signal-action-refresh-downloads":sPn,"yt-offline-video-endpoint":y4n,"yt-offline-playlist-endpoint":T0G,"yt-update-local-app-setting-command":vH0,"yt-offline-orchestration-action-command":nHi,
"yt-signal-action-undo-delete-download":Oii,"yt-local-watch-history-command":DVg};_.t$(_.ZA.getInstance(),this.downloadManagerActionMap,this.JSC$32322_clientRoot);_.po.instance=new _.po},qMQ;var P6=function(){var R=_.K.apply(this,arguments)||this;R.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_"};R.remoteApi_=null;return R};
_.H(P6,_.K);_.l=P6.prototype;
_.l.ready=function(){_.v("polymer_enable_mdx")&&(z_f({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.v("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.v("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.v("enable_cast_short_lived_lounge_token")}),_.Oa("yt-remote-connection-change",this.handleConnectionChange_,this),_.Oa("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=s_n())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.l.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.l.handleConnectionChange_=function(R){(this.mdxConnected=R)?(R=xWg(),!R&&J7g()&&y79()&&(R={key:"cast-selector-receiver",name:y79()}),R=R.name):R=null;this.receiverName=R;_.lt(this.remoteApi_);(this.remoteApi_=s_n())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.l.handleReceiverAvailabilityChange_=function(){var R=l_F();J7g()&&_.K1("yt-remote-cast-available")&&R.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=R.length>0};
_.l.handleRemoteQueueChange_=function(){var R=this.currentVideoId_,A=this.currentListId_,Y=al(this.remoteApi_);this.currentVideoId_=Y.videoId;this.currentListId_=Y.listId;this.currentVideoId_&&_.OC(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.v("polymer_enable_mdx_queue")?this.currentListId_:null,R,A])};
_.l.handleAddToQueueAction_=function(R){R=_.n(R,aWo);this.remoteApi_&&(R.videoId?this.remoteApi_.addVideo(R.videoId):R.playlistId&&this.remoteApi_.addPlaylist(R.playlistId))};
_.l.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.l.handleInsertInQueueAction_=function(R){R=_.n(R,CFF);this.remoteApi_&&R.videoId&&this.remoteApi_.JSC$19786_insertVideo(R.videoId)};
_.l.handleRemoveFromQueueAction_=function(R){R=_.n(R,h1i);this.remoteApi_&&R.videoId&&this.remoteApi_.JSC$19786_removeVideo(R.videoId)};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],P6.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S(),_.k("design:type",Object)],P6.prototype,"appId",void 0);_.C([_.S(),_.k("design:type",Boolean)],P6.prototype,"mdxConnected",void 0);_.C([_.S(),_.k("design:type",Boolean)],P6.prototype,"receiverAvailable",void 0);_.C([_.S(),_.k("design:type",Object)],P6.prototype,"receiverName",void 0);_.C([_.S(),_.k("design:type",Object)],P6.prototype,"currentVideoId_",void 0);
_.C([_.S(),_.k("design:type",Object)],P6.prototype,"currentListId_",void 0);_.C([_.CG({is:"yt-mdx-manager",disableElementRegistration:!0})],P6);_.B(P6,"yt-mdx-manager",void 0,{mode:2});var Lzg;var dpN;var Ex=function(){var R=_.K.apply(this,arguments)||this;R.APP_IDS={ytr:3,ytm:5};R.JSC$20993_timeoutId_=0;R.actionMap={"yt-open-create-family-dialog":"open"};return R};
_.H(Ex,_.K);_.l=Ex.prototype;_.l.created=function(){mhW(2200)};
_.l.detached=function(){this.observer_&&this.observer_.disconnect()};
_.l.open=function(R,A){var Y=this,P=R.serializedYpcFamilyCreateLoggingParams;this.JSC$20993_timeoutId_=setTimeout(this.abort_.bind(this,R.postFlowErrorEndpoint,P),3E4);A&&(this.onReadyCallback_=A);var E=_.Mo(this.hostElement).querySelector("#unicorn-iframe");P&&P&&m6W("ypcFamilyCreateFlowStarted",P);_.KCI("family_creation",function(){var z=_.Zr("gapi.family_creation.render");_.Zr("gapi.config.update")("iframes/family_creation/url",Y.getFamilyCreationUrlWithUnicornParams_());var c=3;R.appId&&R.appId in
Y.APP_IDS&&(c=Y.APP_IDS[R.appId]);c={authUser:_.a1("SESSION_INDEX")||0,clientId:c,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.a1("HL"),initialflow:[4,5,6,7],m:Y.isMobile?1:0,onFlowComplete:Y.onUnicornFlowComplete_.bind(Y,R.postFlowSuccessEndpoint,P),onError:Y.onUnicornFlowError_.bind(Y,R.postFlowErrorEndpoint,P),onReady:Y.onUnicornFlowReady_.bind(Y,R.referencePcidParams)};z(E,c)})};
_.l.close=function(){_.Mo(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.l.onUnicornFlowComplete_=function(R,A){this.close();A&&A&&m6W("ypcFamilyCreateFlowSucceeded",A);_.xo(this.hostElement,"yt-navigate",{endpoint:R})};
_.l.onUnicornFlowError_=function(R,A){this.close();A&&m6W("ypcFamilyCreateFlowCancelled",A);_.xo(this.hostElement,"yt-navigate",{endpoint:R})};
_.l.onUnicornFlowReady_=function(R){var A=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();R&&_.Zr("gapi.family_creation.setConfig")(0,R);this.observer_=new MutationObserver(function(){_.Mo(A.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Mo(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Mo(this.hostElement).querySelector("#dialog").open()};
_.l.getFamilyCreationUrlWithUnicornParams_=function(){return _.a1("YTR_FAMILY_CREATION_URL")};
_.l.getCurrentUrl_=function(){return document.location.href};
_.l.abort_=function(R,A){this.clearTimeout_();this.onUnicornFlowError_(R,A)};
_.l.clearTimeout_=function(){clearTimeout(this.JSC$20993_timeoutId_)};
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],Ex.prototype,"ytActionHandlerBehavior",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],Ex.prototype,"isMobile",void 0);_.C([_.S(),_.k("design:type",Object)],Ex.prototype,"onReadyCallback_",void 0);_.C([_.S(),_.k("design:type",Object)],Ex.prototype,"observer_",void 0);_.C([_.CG({is:"yt-create-family-dialog",disableElementRegistration:!0})],Ex);
_.B(Ex,"yt-create-family-dialog",function(){if(dpN===void 0){var R=document.createElement("template");_.D(R,'\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');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);var A=R.content,Y=A.insertBefore;Lzg===void 0&&(Lzg=document.createElement("template"));var P=Lzg;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);dpN=R}R=dpN;return R},{mode:2});var Rn9;var Aum;var z_=function(){var R=_.K.apply(this,arguments)||this;R.STEP=1;R.BLOCK_ON=80;R.MIN_PROGESS=0;R.MAX_PROGESS=100;return R};
_.H(z_,_.K);_.l=z_.prototype;_.l.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.l.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));_.is().addProvider({provide:h_i,useValue:this})};
_.l.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.l.finish=function(){var R=this;this.progress=this.MAX_PROGESS;UVH(function(){R.progress==R.MAX_PROGESS&&(R.hostElement.hidden=!0)})};
_.l.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Yh.Object.defineProperties(z_.prototype,{progress:{configurable:!0,enumerable:!0,set:function(R){this.progress_=R;var A="scaleX("+R/this.MAX_PROGESS+")",Y=_.Mo(this.hostElement).querySelector("#progress").style;Y.transform=A;Y.webkitTransform=A;this.hostElement.setAttribute("aria-valuenow",String(R))},
get:function(){return this.progress_}}});
_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],z_.prototype,"ytComponentBehavior",void 0);_.C([_.CG({is:"yt-page-navigation-progress",disableElementRegistration:!0})],z_);
_.B(z_,"yt-page-navigation-progress",function(){if(Aum===void 0){var R=document.createElement("template");_.D(R,'\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');R.content.insertBefore(_.G().content.cloneNode(!0),
R.content.firstChild);var A=R.content,Y=A.insertBefore;Rn9===void 0&&(Rn9=document.createElement("template"));var P=Rn9;Y.call(A,P.content.cloneNode(!0),R.content.firstChild);Aum=R}R=Aum;return R},{mode:2});var YNF={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"},Pl0={"font-size":"12px","font-style":"italic"},ETN={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Ikn=function(){return _.O(function(R){_.XH(R)})};var znf=_.E5(function(R){var A=function(){return R.data().subtext},Y={};
return _.V("snackbar-view-model",{class:_.To("snackbarViewModelHost",R.className)},_.V("div",{class:_.To("snackbarViewModelEngagementBarWrapper",R.className)},_.V(_.J,{cond:function(){return R.data().image},
then:function(P){return _.V(_.P1,{data:P,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.V(_.J,{cond:function(){return R.data().imageContent},
then:function(){return _.V("div",{class:"snackbarViewModelAvatarContainer"},_.V(_.ni,{data:function(){return R.data().imageContent}},{decoratedAvatarViewModel:_.LP}))}}),_.V("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.V("div",{class:_.To((Y.snackbarViewModelTitle=!0,Y.snackbarViewModelTitleWithSubtext=A,Y))},_.V(_.NU,{text:function(){return R.data().text}})),_.V(_.J,{cond:A,
then:function(){return _.V("div",{class:"snackbarViewModelSubtext"},_.V(_.NU,{text:function(){return A()}}))}})),_.V(_.J,{cond:function(){return R.data().buttons},
then:function(){return _.V("div",{class:"snackbarViewModelButtonClassWrapper"},_.V(_.ni,{data:function(){return R.data().buttons}},{buttonViewModel:function(P){return _.V(_.Is,{data:P.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:R.target})}}))}})))},"hi");_.Ow(_.E5(function(){function R(h,L,Z){r(h);b(Z);Q("in");m(!0);A(h,L);c=setTimeout(function(){Y()},L)}
function A(h,L){var Z,w=(Z=h.text)==null?void 0:Z.content;h=_.jd(h.rendererContext);w&&(L={label:w,command:h,durationMs:L},_.is().resolve(_.Ga).enqueue(L))}
function Y(h){Q("out");h&&clearTimeout(c)}
function P(){Y(!0)}
function E(h){if(h){var L=h.snackbarViewModel,Z=h.durationMs,w=h.target;Z||(Z=3E3);L&&(h=_.is().resolve(_.z3(_.aD)))&&h.enqueue({isOpened:y,open:function(){R(L,Z,w)},
close:Y},0)}}
var z=_.d5("snackbar-container"),c=void 0,M=_.x(_.yy(!1,void 0,"mDc5N")),N=M.next().value;M=M.next().value;var y=N,m=M;N=_.x(_.yy("out",void 0,"FpOs5e"));var T=N.next().value,Q=N.next().value;N=_.x(_.yy(void 0,void 0,"jIDRob"));var g=N.next().value,r=N.next().value;N=_.x(_.yy(void 0,void 0,"kOA3Mb"));var I=N.next().value,b=N.next().value,p=_.Qi(function(){if(T()==="out"){m(!1);r(void 0);b(void 0);var h=_.is().resolve(_.z3(_.aD));h&&SRf(h,0)}});
_.jO(function(){var h=_.is().resolve(_.z3(_.MHF));h&&(h.showSnackbarFn=E,h.closeSnackbarFn=P)});
return _.V("snackbar-container",{class:"ytSnackbarContainerHost",el:z},_.V(_.J,{cond:function(){return y()&&!!g()},
then:function(){var h={};return _.V("div",{class:_.To("ytSnackbarContainerSnackbarContainer",(h.ytSnackbarContainerMobile=!1,h.ytSnackbarContainerPivotBar=function(){var L;return!((L=_.is().resolve(_.z3(_.sAj)))==null||!L())},h.ytSnackbarContainerOpened=function(){return y()&&T()==="in"},h.ytSnackbarContainerClosed=function(){return y()&&T()==="out"},h)),
"on:animationend":p},_.V(znf,{data:function(){return g()},
target:function(){return I()}}))}}))},"ii"),"snackbar-container");_.Ow(_.JyG,"yt-tooltip");var iRF=_.SWY.ephemeralActionSelector;_.Ow(_.E5(function(){var R=_.aE(iRF);return _.V("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var A;return(A=R())==null?void 0:A.announcement})},"ji"),"yt-ephemeral-actions");var ukY=new Map;var qPg=function(R,A){var Y=this;this.handleError=R;this.logEventInternal=A;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){Y.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
qPg.prototype.logError=function(R){this.handleError(R)};
qPg.prototype.logEvent=function(R,A){switch(R){case "IDB_DATA_CORRUPTED":_.v("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",A);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",A);break;case "IS_SUPPORTED_COMPLETED":_.v("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",A);break;case "QUOTA_EXCEEDED":lvW(this,A);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",A);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":R=Object.assign({},A,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",R)}};
var lvW=function(R,A){_.tY.getInstance().estimate().then(function(Y){Y=Object.assign({},A,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:qJn(Y==null?void 0:Y.usage),deviceStorageQuotaMbytes:qJn(Y==null?void 0:Y.quota)});R.logEventInternal("idbQuotaExceeded",Y)})};var xQW=_.E5(function(R){var A=_.LK("yt-draggable"),Y=R.onDrag,P=R.onDragStart,E=R.onDragEnd,z=_.Pc(R,{allowClicks:!1,dragThreshold:5}),c=z.dragThreshold,M=z.allowClicks;R=z.children;z=z.className;var N=void 0,y=void 0,m=new _.Cs(0,0),T=!1;_.jO(function(){N=new _.Zw(A.value);y=new _.zr(g);Q(N,y);if(M()){_.MXS(N,c());var I;(I=A.value)==null||I.addEventListener("click",r,{capture:!0})}_.bm(function(){var b;(b=N)==null||b.dispose();if(M()){var p;(p=A.value)==null||p.removeEventListener("click",r,{capture:!0})}})});
var Q=function(I,b){_.KC(I,"earlycancel",function(){M()&&(T=!1)});
_.KC(I,"start",function(p){P==null||P(p);p.defaultPrevented||M()&&(T=!0)});
_.KC(I,"beforedrag",function(p){N&&y&&(p.preventDefault(),m=new _.Cs(p.clientX-N.startX,p.clientY-N.startY),y.start())});
_.KC(I,"end",function(){b.stop();E==null||E();m=new _.Cs(0,0)})},g=function(){m&&Y(m)},r=function(I){T&&(T=!1,I.stopPropagation(),I.preventDefault())};
return _.V("yt-draggable",{el:A,class:_.To("ytDraggableComponentHost",z)},R)},"ki");var cui=_.E5(function(R){var A=_.x(_.yy(0,void 0,"CvAwBd")),Y=A.next().value,P=A.next().value;A=function(E){var z={},c={};return _.V(xQW,{className:_.To("ytdMiniplayerComponentResizer",(z.ytdMiniplayerComponentResizerDisabled=function(){return E===R.horizontalAlignment()||E===R.verticalAlignment()},z.ytdMiniplayerComponentResizerNorth=E==="north",z.ytdMiniplayerComponentResizerEast=E==="east",z.ytdMiniplayerComponentResizerSouth=E==="south",z.ytdMiniplayerComponentResizerWest=E==="west",z)),
onDragStart:function(){P(R.currentMiniplayerSize());if(R.onResizeStart)R.onResizeStart()},
onDrag:function(M){E!=="north"&&E!=="west"||M.scale(-1);var N;M=(N=E==="north"||E==="south")?M.y:M.x;var y=R.currentAspectRatio();N&&y>=1?M*=y:!N&&y<1&&(M/=y);N=M;R.onResize(Y()+N)}},_.V("div",{class:_.To("ytdMiniplayerComponentResizerCorner",(c.ytdMiniplayerComponentResizerNorthCorner=E==="north",c.ytdMiniplayerComponentResizerEastCorner=E==="east",c.ytdMiniplayerComponentResizerSouthCorner=E==="south",c.ytdMiniplayerComponentResizerWestCorner=E==="west",c))}))};
return _.V("div",{class:"ytdMiniplayerComponentResizers"},A("north"),A("east"),A("south"),A("west"))},"li");var ORG=16/9;_.Ow(_.E5(function(){var R=_.LK("ytd-miniplayer"),A=_.x(_.yy(new _.Dg(NaN,NaN),void 0,"GNXZTe")),Y=A.next().value,P=A.next().value;A=_.x(_.yy(!1,void 0,"XqI9xc"));var E=A.next().value,z=A.next().value;A=_.x(_.yy(!1,void 0,"k3iLGe"));var c=A.next().value,M=A.next().value;A=_.x(_.yy(!1,void 0,"ApjQ9b"));var N=A.next().value,y=A.next().value;A=_.x(_.yy(!1,void 0,"PzlhGe"));var m=A.next().value,T=A.next().value;A=_.x(_.yy(!1,void 0,"pm6fl"));var Q=A.next().value,g=A.next().value;A=_.x(_.yy(!1,void 0,
"xQrL1e"));var r=A.next().value,I=A.next().value;A=_.x(_.yy(ORG,void 0,"NcrWZb"));var b=A.next().value,p=A.next().value,h=_.x(_.yy(!1,void 0,"e5rxBc"));A=h.next().value;var L=h.next().value;h=_.x(_.yy(!1,void 0,"uZtCde"));var Z=h.next().value,w=h.next().value;h=_.x(_.yy(void 0,void 0,"wKFvEe"));var t=h.next().value,d=h.next().value;h=_.x(_.yy(_.a1("HTML_DIR")==="rtl"?"west":"east",void 0,"FF7oMe"));var Jk=h.next().value,Nb=h.next().value;h=_.x(_.yy("south",void 0,"QXcssb"));var Qk=h.next().value,
H3=h.next().value;h=_.x(_.yy(400,void 0,"Fr8gSb"));var nu=h.next().value,hk=h.next().value,FV=_.is().resolve(_.jv).miniplayerPropSignalMap[0],i8=FV.data,fD=FV.externalPlaylistData;h=FV.toastData;var NG=FV.playabilityStatus,d8=FV.isReadyToResume,mS=FV.isDisabled,V7=FV.watchWhile,KD=FV.playerVe,UW=FV.expandVe,eH=FV.closeVe,zS=FV.readyToResumeVe,RA=FV.readyToResumeCloseVe,vS=FV.repositionVe,Mg=FV.resizeVe;FV=_.x(_.gl(d8));var gf=FV.next().value,A9=FV.next().value,le=!1,RH=!1,OA;_.jO(function(){P(_.XI());
R.value.addEventListener("animationend",function(hE){hE.target===R.value&&(g(!1),I(!1))});
Pxm(R.value)});
_.qj("yt-window-resized",function(hE){hE&&P(hE)});
var wf=function(){OA&&p(OA.getVideoAspectRatio())},mm=function(){if(OA){var hE=OA.getPlayerState()===1;
gf()&&hE&&A9(!1)}},$Z=function(){var hE=UW();
if(hE){var Ab=_.F9(3);Ab&&_.qT(Ab,hE)}},Xb=function(){var hE=eH(),Ab=RA();
hE&&_.qT(_.F9(3),hE);d8()&&Ab&&_.qT(_.F9(3),Ab)};
_.qj("yt-activate-miniplayer",function(hE){var Ab;return _.O(function(G0){if(G0.nextAddress==1)return E()?G0.return():G0.yield((Ab=_.is().resolve(_.jv).getPlayerElement())==null?void 0:Ab.getPlayerPromise(),2);OA=G0.yieldResult;if(!OA)return G0.return();!Z()&&_.v("kevlar_watch_while_v2")&&(H3(hE&&!_.v("kevlar_watch_while_bottom_align")?"north":"south"),Nb(_.a1("HTML_DIR")==="rtl"?"west":"east"));var xD=OA;xD.addEventListener("onVideoDataChange",wf);xD.addEventListener("onStateChange",mm);xD.addEventListener("onExpandMiniplayer",
$Z);xD.addEventListener("onCloseMiniplayer",Xb);p(OA.getVideoAspectRatio());z(!0);Yro()||g(!0);_.XH(G0)})});
_.qj("yt-deactivate-miniplayer",function(hE){return _.O(function(Ab){if(!E())return Ab.return();z(!1);A9(!1);I(hE);T(!1);M(!1);if(OA){var G0=OA;G0.removeEventListener("onVideoDataChange",wf);G0.removeEventListener("onStateChange",mm);G0.removeEventListener("onExpandMiniplayer",$Z);G0.removeEventListener("onCloseMiniplayer",Xb)}Yro()||g(!0);_.XH(Ab)})});
var go=function(){return!(V7()&&_.v("kevlar_watch_while_modern"))},JO=function(){var hE;
return!((hE=fD())==null||!hE.contents)},yN=function(){var hE=nu();
var Ab=Y();Ab=Math.min(Math.min(Ab.width,Ab.height)-32,720);var G0=b(),xD=go(),sK=JO()&&c(),sp=Math.min(hE,Ab);hE=new _.Dg(192,xD?116:192);G0=new _.Dg(sK?ORG:G0,1);sp=new _.Dg(sp,xD?sp-76:sp);sp=G0.aspectRatio()>sp.aspectRatio()?sp.width/G0.width:sp.height/G0.height;G0=G0.scale(sp);hE.width<=G0.width&&hE.height<=G0.height||(hE=G0.aspectRatio()<=hE.aspectRatio()?hE.width/G0.width:hE.height/G0.height,G0.scale(hE),G0.width=Math.min(G0.width,Ab),G0.height=Math.min(G0.height,Ab));return new _.Dg(G0.width,
_.Sv(192,G0.height+l5G(xD,sK),720))},Ks=function(){var hE=yN(),Ab=go(),G0=JO()&&c();
return new _.Dg(hE.width,hE.height-l5G(Ab,G0))},X4=function(){var hE=function(Ab){Ab.target===R.value&&m()&&(T(!1),R.value.removeEventListener("transitionend",hE))};
Yro()||(R.value.addEventListener("transitionend",hE),T(!0));M(!c())};
_.jq(function(){var hE=KD(),Ab=_.F9(3),G0=_.pO(3);if(Ab&&G0&&hE){_.ZM(Ab,G0,hE);G0=vS();var xD=Mg(),sK=UW(),sp=eH(),NI=RA();sK&&sp&&NI&&(_.tg(Ab,hE,[sK,sp,NI]),_.uE(Ab,[sK,sp]));G0&&xD&&_.tg(Ab,hE,[G0,xD])}},"Snz6Ld");
_.jq(function(){var hE=zS();if(hE){var Ab=_.F9(0),G0=_.pO(0);Ab&&G0&&(_.ZM(Ab,G0,hE),_.uE(Ab,[hE]))}},"X1FpHd");
FV={};return _.V("ytd-miniplayer",{el:R,class:_.To("ytdMiniplayerComponentHost",(FV.ytdMiniplayerComponentVisible=function(){return E()||Q()},FV.ytdMiniplayerComponentAnimatingSnap=N,FV.ytdMiniplayerComponentAnimatingPlaylistExpand=m,FV.ytdMiniplayerComponentAnimatingFade=Q,FV),function(){if(Q()){var hE=Qk();
var Ab=E(),G0=r();hE=Ab?hE==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":G0?hE==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":hE==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else hE="";return hE}),
style:_.nY({top:function(){return Qk()==="north"?"16px":""},
right:function(){return Jk()==="east"?"16px":""},
bottom:function(){return Qk()==="south"?"16px":""},
left:function(){return Jk()==="west"?"16px":""},
width:function(){return yN().width+"px"},
height:function(){return yN().height+"px"},
transform:function(){var hE=t();return hE?"translate("+hE.x+"px, "+hE.y+"px)":""}})},_.V("div",{class:"ytdMiniplayerComponentContent"},_.V(xQW,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(hE){var Ab=i00(Jk(),Qk(),Y(),yN(),t()),G0=Ks();Math.abs(hE.clientY-(Ab.y+G0.height))>15?(L(!0),hE=_.F9(3),Ab=vS(),le||(le=!0,hE&&Ab&&_.uE(hE,[Ab])),hE&&Ab&&_.qT(hE,Ab)):hE.preventDefault()},
onDrag:function(hE){d(hE)},
onDragEnd:function(){var hE=EsF(i00(Jk(),Qk(),Y(),yN(),t()),Y(),yN()),Ab=z8n(Jk(),Qk(),Y(),yN()),G0=z8n(hE.horizontalAlignment,hE.verticalAlignment,Y(),yN());G0=new _.Cs(G0.x-Ab.x,G0.y-Ab.y);var xD;Ab=Ab.y+(((xD=t())==null?void 0:xD.y)||0)+yN().height/2;var sK=function(){Jk()===hE.horizontalAlignment&&Qk()===hE.verticalAlignment||w(!0);Nb(hE.horizontalAlignment);H3(hE.verticalAlignment);d(void 0)},sp=function(NI){NI.target===R.value&&N()&&(y(!1),sK(),R.value.removeEventListener("transitionend",sp))};
L(!1);Qk()==="south"&&Ab>Y().height?(sK(),_.is().resolve(_.jv).close()):(R.value.addEventListener("transitionend",sp),y(!0),d(G0))}},_.V(_.J,{cond:E,
then:function(){return _.V(_.FMW,{isDisabled:mS,playabilityStatus:NG,size:Ks})}}),_.V(_.J,{cond:go,
then:function(){return _.V(_.fgF,{isReadyToResume:gf,data:i8,expanded:c,onExpandClick:X4,playlistData:fD})}}),_.V(_.J,{cond:A,
then:function(){return _.V("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.V(_.J,{cond:function(){return JO()&&c()||m()},
then:function(){return _.V(_.gYS,{className:"ytdMiniplayerComponentPlaylistPanel",data:fD,hideHeaderText:!0,withinMiniplayer:!0})}}),_.V("div",{class:"ytdMiniplayerComponentToast"},_.V(_.BLF,{toastData:h}))),_.V(cui,{onResize:function(hE){hk(_.Sv(192,hE,720))},
onResizeStart:function(){var hE=_.F9(3),Ab=Mg();RH||(RH=!0,hE&&Ab&&_.uE(hE,[Ab]));hE&&Ab&&_.qT(hE,Ab)},
currentAspectRatio:b,currentMiniplayerSize:nu,horizontalAlignment:Jk,verticalAlignment:Qk}))},"mi"),"ytd-miniplayer",{});var ln=function(){var R=_.K.apply(this,arguments)||this;R.tabGesturesIsActive=!1;R.deprecateFullerscreenUi=_.v("web_watch_fullerscreen_deprecation_ui");R.hasDelegation=!1;R.darkerDarkTheme=_.v("web_darker_dark_theme");R.isFrostedGlassInitialized=!1;R.frostedGlassExp=_.v("web_frosted_glass");R.mastheadHiddenFocusWithinKillswitch=_.v("web_masthead_hidden_focus_within_killswitch");R.clientOnlyWizTooltipsEnabled=_.v("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");R.scrollAtTop=
!0;R.guideScrollTop=0;R.isTheaterModeSession=_.CQ("START_IN_THEATER_MODE");R.iMaxTheaterMode=_.v("web_watch_imax_theater_mode");R.isFullWindowSession=_.CQ("START_IN_FULL_WINDOW_MODE");R.hasCreateFamilyDialog=!1;R.mastheadHeight=56;R.networkStatusManager=new _.wM;R.actionMap={"yt-command-executor-command":"handleCommandWithCommandHandler","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-edu-dismiss-action":"handleEduDismissAction","yt-edu-impression-action":"handleEduImpressionAction","yt-navigate-action":"onYtNavigateAction",
"yt-navigate-home-action":"onYtNavigateHomeAction","yt-player-fullscreen":"onPlayerFullscreen","yt-register-create-family-dialog":"onYtRegisterCreateFamilyDialog","yt-select-country-command":"handleCommandWithCommandHandler","yt-select-language-command":"handleSelectLanguageCommand","yt-set-push-notifications-enabled-command":"onSetPushNotificationsEnabledCommand","yt-signal-action-copy-debug-data":"onYtSignalActionCopyDebugData","yt-signal-action-enable-chrome-notifications":"onYtSignalActionEnableChromeNotifications",
"yt-signal-action-toggle-restricted-mode-on":"onYtSignalActionToggleRestrictedModeOnAction","yt-signal-action-toggle-restricted-mode-off":"onYtSignalActionToggleRestrictedModeOffAction","yt-signal-action-confirm-mentions-edu":"onYtSignalActionConfirmMentionsEdu","yt-signal-action-record-mentions-edu-impression":"onYtSignalActionRecordMentionsEduImpression","yt-signal-action-show-keyboard-shortcut-dialog":"onYtSignalActionShowKeyboardShortcutDialog","yt-signal-action-skip-navigation":"onYtSignalActionSkipNavigation",
"yt-signal-action-request-persistent-storage":"onYtSignalActionRequestPersistentStorage","yt-timed-command":"onYtTimedCommand","yt-window-resized":"onWindowResized","yt-window-scrolled":"onWindowScrolled","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleCommandWithCommandHandler","yt-confirm-dialog-endpoint":"handleConfirmDialogEndpoint","yt-ad-feedback-endpoint":"handleOpenPopupNavigationEndpoints",
"yt-create-backstage-post-dialog-endpoint":"handleOpenPopupNavigationEndpoints","yt-manage-purchase-endpoint":"handleOpenPopupNavigationEndpoints","yt-modal-endpoint":"handleOpenPopupNavigationEndpoints","yt-unlimited-family-flow-endpoint":"handleOpenPopupNavigationEndpoints","yt-ypc-cancel-survey-endpoint":"handleOpenPopupNavigationEndpoints","yt-register-promo-command":"handleYtRegisterPromoCommand","yt-location-collection-command":"onYtLocationCollectionCommand","yt-get-location-command":"onYtGetLocationCommand",
"yt-log-flow-logging-event-command":"logFlowLoggingEventCommand","yt-save-command-to-session-storage-action":"handleSaveCommandToSessionStorage","yt-show-dma-consent-flow-command":"handleShowConsentPrimitive","yt-signal-action-show-dma-consent-flow":"handleShowConsentPrimitive","yt-show-mmg-notice-command":"handleShowConsentPrimitive","yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice",
"yt-select-active-identity-endpoint":"handleSelectActiveIdentityEndpointInternal","yt-update-permission-role-command":"handleUpdatePermissionRoleCommand","yt-channel-creation-form-endpoint":"handleYtChannelCreationFormEndpoints","yt-show-engagement-panel-endpoint":"handleShowEngagementPanelEndpoint","yt-google-payment-billing-command":"handleCommandWithCommandHandler"};R.dynamicActionMap={"yt-run-attestation-command":function(A){var Y=_.lI0.instance,P=_.n(A,_.r8D);return P?_.v("use_rta_manager_for_async")&&
peG()?i6Y(Y,P,A.clickTrackingParams):z3f(Y,P,A.clickTrackingParams):_.j5(Error("oi"))}};
R.isFrostedGlassDisabled=!1;R.isChannelOrPlaylistPage=!1;return R};
_.H(ln,_.K);_.l=ln.prototype;_.l.created=function(){var R=_.is();_.v("kevlar_clear_duplicate_pref_cookie")&&_.Ua(_.fn,function(){var A=_.HU.get("PREF");A&&!/f\d=/.test(A)&&(A=_.OK("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=A?"PREF=null;domain="+A+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.v("gzip_gel_with_worker")&&_.pZ6();_.v("jspb_serialize_with_worker")&&lMG();_.v("web_worker_availability_check")&&eHY();_.v("nwl_init_killswitch")||zY9().then(function(){_.fn.addLowPriorityJob(n9W)});
this.pageManagerAttachedPromise=_.ei();this.ytdAppBehavior.loadDepsPromise=_.W$([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.kH(this.onThrottledScroll,200,this);_.v("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);Lrj();Khn=!!_.Zr("ytappsettings.initialized");ZU=_.Zr("ytappsettings.previousValue");bjo=_.Zr("ytappsettings.previousSnapshotTime");Khn||(Khn=!0,fMj());XcQ();S5n();_.BD("DEFERRED_DETACH",
_.v("kevlar_tuner_should_defer_detach"));_.BD("REUSE_COMPONENTS",!0);_.BD("STAMPER_STABLE_LIST",!0);_.BD("SCHEDULED_LAZY_LIST",!0);_.BD("openPopupConfig",Pfn);_.BD("useClickHandler",!0);_.v("kevlar_shell_cleanup")&&_.fn.addLowPriorityJob(ooi.bind(this,_.P3.caches));_.CQ("IS_SHELL_LOAD")&&_.bE({shellStartupDurationMs:Math.round((0,_.iB)()-_.SF())});biG(this.networkStatusManager);_.v("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",$VQ(YNF)),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!",
$VQ(Pl0)),console.log("%cVisit http://go/join-youtube-web to apply today.",$VQ(ETN)));_.TMH(R.resolve(_.oD),1E3)};
_.l.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var R=mTH();R&&!_.v("external_fullscreen_killswitch")&&document.addEventListener(R,this.setFullscreen.bind(this));(R=window.matchMedia("(prefers-color-scheme: dark)"))&&R.addEventListener&&R.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.l.attached=function(){var R=this;_.EV().processSignal("ci");_.v("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.pWk?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.lD(_.Lw3(),"SUCCESS");this.updateIconSet();_.iE(this.guideInnerContent,!1);_.k7().initVisibilityObserver();this.guideService.guideElement=this.guide;var A=document.createElement("ytd-miniplayer"),Y=_.Mo(this.hostElement).querySelector("#content");
_.Mo(this.hostElement).insertBefore(A,Y);_.EV().processSignal("ma");_.is().resolve(_.jv).init(A);_.CQ("IS_SHELL_LOAD")&&(Y=document.createElement("ytd-network-status-banner"),_.Mo(this.hostElement).insertBefore(Y,A));_.v("kevlar_right_click_on_lockups")&&_.dS._onCaptureClick&&document.addEventListener("contextmenu",_.dS._onCaptureClick.bind(_.dS),!0);var P=function(){var E=_.vX("yt-page-navigation-progress");_.Mo(R.hostElement).appendChild(E)};
setTimeout(function(){_.EV().parkOrScheduleJob(P,0,"eocs",16)},0);
_.v("service_worker_push_enabled")&&_.Ua(_.fn,y0Y);_.t$(_.ZA.getInstance(),this.dynamicActionMap,this.hostElement);_.xo(this.hostElement,"ytd-app-attached");_.EV().processSignal("aa");jo9(this.hostElement);_.PG("gapi.load",_.KCI);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Ua(_.fn,
function(){var E=document.createElement("ytd-video-preview");_.Mo(_.Mo(R.hostElement).querySelector("#video-preview")).appendChild(E)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Ua(_.fn,function(){Kp9();R.registerWithViewTransitionManager()});
if(_.fo()&&this.isAppDarkTheme()!==_.jI())this.onDarkModeToggledAction();else A=_.bk()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==A&&(_.v("enable_dark_theme_only_on_shorts")?_.eI(_.v("enable_dark_theme_only_on_shorts_control")?window.location.href:_.LQ(window.location.href,{theme:"dark"})):_.pK(new _.XN("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(lqf=new iS9(this.hostElement)),qMQ=new emm(this.hostElement),u_f=new wIj(this.hostElement),Uq9=new DqH(this.hostElement)};
_.l.getThemeSettingsToLog=function(){var R=_.bk()==="USER_INTERFACE_THEME_DARK";R=_.fo()?_.jI()?"os-dark":"os-light":R?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:R,cookiesEnabled:_.DO()}};
_.l.detached=function(){_.lE(this.guideInnerContent);_.fn.cancelJob(oI);oI=0;_.fn.cancelJob(GY);GY=0;_.ewu(WZQ);WZQ.length=0;SCG=_.rCl=null;_.k7().dispose();_.v("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.e_(_.ZA.getInstance(),lqf.playlistHandlerActionMap,lqf.JSC$32030_clientRoot);_.e_(_.ZA.getInstance(),qMQ.downloadManagerActionMap,qMQ.JSC$32322_clientRoot);_.e_(_.ZA.getInstance(),u_f.feedbackCollectorActionMap,u_f.JSC$32317_clientRoot);
for(var R=_.x(Uq9.eventListeners),A=R.next();!A.done;A=R.next()){var Y=_.x(A.value);A=Y.next().value;Y=Y.next().value;Y=_.x(Y);for(var P=Y.next();!P.done;P=Y.next()){var E=_.x(P.value);P=E.next().value;E=E.next().value;A.removeEventListener(P,E)}}_.e_(_.ZA.getInstance(),Uq9.autonavPauseActionMap,Uq9.JSC$19967_clientRoot)};
_.l.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.Hk().getFlag(186)};
_.l.computeIsInlinePreviewEnabled=function(R,A,Y){return!Y&&_.VXn({miniplayerIsActive:R,miniplayerPlaybackState:A})};
_.l.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.cK({type:"SET_FROSTED_GLASS_MODE",payload:!_.v("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"}))};
_.l.computeIsFrostedGlassDisabled=function(R,A,Y,P){return R||A||Y||P&&_.v("web_frosted_glass_disable_watch")};
_.l.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.v("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.l.computeIsHomePage=function(R,A){if(!R||A==null||!A.endpoint)return!1;var Y;return((Y=_.n(A.endpoint,_.Ds))==null?void 0:Y.browseId)==="FEwhat_to_watch"};
_.l.updateIsChannelOrPlaylistPage=function(){if(_.v("web_frosted_glass")){var R,A,Y=(A=(R=_.is().resolve(_.z3(_.YH)))==null?void 0:R.getCurrentPage())==null?void 0:A.pageSubtype;this.isChannelOrPlaylistPage=Y?["channel","channels","playlist"].includes(Y):!1}};
_.l.scheduleFrostedGlassInitialization=function(){var R=this;_.v("web_frosted_glass")&&_.EV().parkOrScheduleJob(function(){R.isFrostedGlassInitialized=!0},0,_.xR(["eocs",
"cr"]),300)};
_.l.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.ZSN(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.cK({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.cK({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.l.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(nBH(!0))};
_.l.onYtSignalActionRequestPersistentStorage=function(){if(!_.v("request_persistent_storage_killswitch")){var R=_.is().resolve(_.Oqi);R.cachedPersistStatePromise||(R.cachedPersistStatePromise=a7f())}};
_.l.handleYtChannelCreationFormEndpoints=function(R){R&&this.ytComponentBehavior.resolveCommand(R)};
_.l.handleShowEngagementPanelEndpoint=function(R){R&&this.ytComponentBehavior.resolveCommand(R)};
_.l.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(nBH(!1))};
_.l.initIconDefs=function(R,A){var Y=document.createElement("iron-iconset-svg");Y.name=R;R=document.createElementNS("http://www.w3.org/2000/svg","svg");Y.appendChild(R);R.appendChild(A);document.body.appendChild(Y);return Y};
_.l.onWindowResized=function(){_.OC(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var R=_.PWz.getInstance();R.documentWidth_=document.body.clientWidth;WOQ(R)};
_.l.onWindowScrolled=function(){var R=_.is().resolve(_.YH).getCurrentPage();if(R!=null&&R.getScrollTop){var A=this.ytdReduxBehavior,Y=A.dispatch;R=R.getScrollTop()<=0;Y.call(A,_.cK({type:"SET_SCROLL_AT_TOP",payload:R}))}};
_.l.guideIsVisibleButNotPersistentSelectorChanged=function(){var R=_.is().resolve(_.YH).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=R.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"),
R.setScrollTop(this.guideScrollTop));_.MT(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.l.getCurrentPageScrollableElementType=function(){var R=_.is().resolve(_.YH).getCurrentPage();if(R&&R.getPageScrollingElement())return R.getPageScrollingElement().nodeName};
_.l.observeGuideVisibility=function(){var R=_.PWz.getInstance(),A=this.miniGuideVisible;R.guidePersistentAndVisible_=this.guidePersistentAndVisible;R.miniGuideVisible_=A;WOQ(R)};
_.l.handleEduDismissAction=function(R){R&&R.eduDismissAction&&(_.OC(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.LIA.getInstance(),_.TD.set(R.eduDismissAction.key+"-dismissed",!0))};
_.l.handleEduImpressionAction=function(R){if(R&&R.eduImpressionAction){var A=_.LIA.getInstance();R=R.eduImpressionAction.key;A.JSC$13007_eduDisplayedThisLoad_[_.qoZ[R].setKey||R]=!0;_.TD.set(R+"-impression",parseInt(_.TD.get(R+"-impression")||0,10)+1)}};
_.l.onYtSignalActionConfirmMentionsEdu=function(){_.OC(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.gR.getInstance();_.vd.set("edu-dismissed",!0)};
_.l.onYtSignalActionRecordMentionsEduImpression=function(){_.gR.getInstance();var R=_.vd.set,A=parseInt(_.vd.get("edu-impressions"),10);R.call(_.vd,"edu-impressions",(isFinite(A)?A:0)+1)};
_.l.onYtPageManagerAttached=function(R){var A;((A=_.Yw(R))==null?void 0:A.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.l.onInvokeInstrumentManagerAction=function(R,A){Amf(A,R)};
_.l.updateIconSet=function(){var R=this.hostElement.querySelector("#masthead");if(R){var A=_.sl(R),Y=A.querySelector("g#yt-logo-updated");Y&&(R=document.createElementNS("http://www.w3.org/2000/svg","defs"),R.appendChild(Y.cloneNode(!0)),(A=A.querySelector("g#yt-logo-red-updated"))&&R.appendChild(A.cloneNode(!0)),this.initIconDefs("yt-logos-ext",R))}};
_.l.updateMastheadData=function(){var R=this,A,Y,P,E,z;return _.O(function(c){if(c.nextAddress==1){A=R.data;Y=R.hostElement.querySelector("#masthead");if(!Y)return c.return();_.RK(R,function(){Y.data=R.topbarData});
if(!R.get("response.topbar",A)||R.get("response.topbar.responseContext.maxAgeSeconds",A)===0)return c.jumpTo(0);if(P=_.is().resolve(_.nM))return c.yield(P(),6);E=_.is().resolve(_.Iz);return c.yield(E.put("service:topbar:fallback",new _.Kp({innertubeResponse:R.get("response.topbar",A)})),0)}return(z=c.yieldResult)?c.yield(z.put("service:topbar:fallback",new _.Kp({innertubeResponse:R.get("response.topbar",A)})),0):c.jumpTo(0)})};
_.l.computeTopbarData=function(R){if(!R)return null;var A;return this.isShortsPage&&this.topbarData&&!_.n((A=R.response)==null?void 0:A.topbar,UU0)?this.topbarData:R.response&&"topbar"in R.response?_.n(R.response.topbar,UU0)||null:null};
_.l.onSetTheaterModeEnabled=function(R,A){this.isTheaterModeSession=A.enabled;this.setTheaterModeStyles(A.enabled)};
_.l.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.l.onDarkModeToggledAction=function(){var R=_.T3(window.location.href);if(!_.fPk(R)){(R=!!_.qI(window.location.href).themeRefresh)&&_.pK(new _.XN("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!R){fMj();R={themeRefresh:1};var A=_.is().resolve(_.YH);if(A.isOnWatch()){var Y,P;A=((Y=A.getPlayerFromWatch())==null?void 0:(P=Y.getPlayer())==null?void 0:P.getCurrentTime())||0;A>=1&&(R.time_continue=Math.floor(A))}_.DO()||_.bk()!=="USER_INTERFACE_THEME_DARK"||(R.theme="dark");_.eI(_.LQ(window.location.href,
R))}_.v("web_appshell_refresh_trigger")&&_.P3.caches&&this.refreshAppShellResponse();Y=_.t_(window.location.href);_.bg(_.is().resolve(_.fp),_.Pk(Y,"theme"))}};
_.l.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.l.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.l.onPlayerFullscreen=function(R){_.EC();this.playerFullscreen=R};
_.l.setRestrictedMode=function(R){var A=_.Hk();_.rH(0,58,R);A.save();_.is().resolve(_.om).reload()};
_.l.onPageChanged=function(R){R.detail.newPageType==="ytd-watch-flexy"||R.detail.newPageType==="ytd-watch-fixie"||R.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.HC("WEB_PAGE_TYPE_WATCH")):R.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.HC("WEB_PAGE_TYPE_SHORTS")):R.detail.newPageType==="ytd-browse"&&R.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.HC("WEB_PAGE_TYPE_MINI_APP")):_.v("web_frosted_glass")&&R.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.HC("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.HC("WEB_PAGE_TYPE_UNKNOWN"));R.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.l.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.l.onGuideToggleTap=function(){_.xo(this.hostElement,"yt-guide-toggle")};
_.l.onGuideToggleHover=function(){_.xo(this.hostElement,"yt-guide-hover")};
_.l.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.l.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.l.setMastheadTheme=function(){var R=_.sl(this.hostElement).querySelector("#masthead");R&&(R.dark=R.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),R.isDarkThemeForced=!1)};
_.l.onRequestPanelModeChange=function(R,A){this.hideHeaderShadow=A.mode!=="seamed"};
_.l.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.l.onDrawerIronSelect=function(R){_.Yw(R).id==="guide"&&this.processDrawerIronSelect()};
_.l.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var R="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(R="opened"));_.xo(this.hostElement,"yt-autonav-pause-guide-"+R)};
_.l.onAddElementToApp=function(R){_.Mo(this.hostElement).appendChild(R.detail)};
_.l.onThrottledScroll=function(){var R=_.is().resolve(_.YH).getCurrentPage();R&&(this.scrollAtTop=R.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.l.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.l.setFullscreen=function(){if(_.v("external_fullscreen")||!this.isWatchPage){var R=_.v("kevlar_fullerscreen_root_only_killswitch")?!!_.EC():!!_.EC()&&_.EC()===document.documentElement;R=(this.isWatchPage||_.v("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(R||this.isFullWindowSession);this.fullscreen!==R&&((this.fullscreen=R)&&_.MT(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Yp().dispatch(_.fqA(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.OC(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.l.setFullscreenLoggingForShorts=function(R){var A,Y,P;return _.O(function(E){if(E.nextAddress==1)return E.yield((A=_.EJ())==null?void 0:A.getPlayerPromise(),2);Y=E.yieldResult;(P=Y)==null||P.setAppFullscreen(R);_.XH(E)})};
_.l.updateMastheadCssHeight=function(){var R=this.mastheadHeight;this.fullscreen&&(R=0);_.ya(this.hostElement,{"--ytd-masthead-height":R+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.l.updateNetworkStatusBannerDisplayStatus=function(){var R="unset";this.fullscreen&&(R="none");_.ya(this.hostElement,{"--ytd-network-status-banner-display":R})};
_.l.updateNetworkStatusBannerCssHeight=function(){var R="unset";this.fullscreen&&(R="0px");_.ya(this.hostElement,{"--ytd-network-status-banner-max-height":R})};
_.l.updateScrollAndMasthead=function(R,A,Y,P){this.iMaxTheaterMode||(P=!1);var E=_.is().resolve(_.YH).getCurrentPage();R||A||P?(document.body.classList.add("no-scroll"),E.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.T2(this,this.onScroll)),E.setScrollTop(0),_.ya(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.zc()+"px"})):Y?_.xo(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.xo(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
E.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.T2(this,this.onScroll)));this.mastheadHidden=R||A||Y;this.updateMastheadCssHeight();_.v("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.l.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.l.onYtNavigateAction=function(R){R=this.get("navigateAction.endpoint",R);_.xo(this.hostElement,"yt-navigate",{endpoint:R})};
_.l.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var R=document.createElement("yt-create-family-dialog");_.Mo(this.hostElement).appendChild(R);this.hasCreateFamilyDialog=!0}};
_.l.onSetPushNotificationsEnabledCommand=function(R){var A=this,Y=_.n(R,DU9);Y&&typeof Y.enabled==="boolean"&&(Notification.permission!=="granted"?M90().then(function(){Notification.permission==="granted"?(eYg(!Y.enabled).then(dTi),Y.successAction&&_.sC(A.hostElement,[Y.successAction])):Y.failureAction&&_.sC(A.hostElement,[Y.failureAction])}):(eYg(!Y.enabled).then(dTi),Y.successAction&&_.sC(this.hostElement,[Y.successAction])))};
_.l.onYtSignalActionEnableChromeNotifications=function(){sa9(!0)};
_.l.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.n(this.topbarData.hotkeyDialog,ShG)}}})};
_.l.onYtSignalActionShowKeyboardShortcutDialog=function(){_.OC(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.l.onYtEndpointChangeHandler=function(R,A){var Y=_.qh(_.hd);Y.pendingPrefetchJob_&&(A=!(!A||A.autonav!="1"),Y.pendingPrefetchJob_.resolve(R&&_.DuV(R)?_.UuV(R,A):""),Y.pendingPrefetchJob_=null);_.OC(this.hostElement,"yt-pause-active-page-context");_.OC(this.hostElement,"ytd-log-youthere-nav");_.OC(this.hostElement,"yt-prepare-page-dispose")};
_.l.handleCommandWithCommandHandler=function(R,A){_.Qp.instance.resolveCommand(R,{form:{element:A}})};
_.l.onYtTimedCommand=function(R){var A=this;R=_.n(R,VVY);var Y=R.command;Y&&_.cC(_.fn,function(){var P=_.n(Y,_.Js7);P?(_.Qp.instance.resolveCommand(Y),A.maybeLogGetAnswerRequestTick(P)):_.NT(A.hostElement,[Y],A.hostElement)},R.timeoutMs||0)};
_.l.maybeLogGetAnswerRequestTick=function(R){R&&R.isFirstRequest&&(_.pj("search_overview_answer"),_.Fh("so_rq",void 0,"search_overview_answer"))};
_.l.onYtSignalActionSkipNavigation=function(){var R=_.is().resolve(_.YH).getCurrentPage();_.Ln(R)};
_.l.onYtSignalActionCopyDebugData=function(){D6i()};
_.l.handleEntityUpdateCommand=function(R){_.nx(_.n(R,_.GpN).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.l.logFlowLoggingEventCommand=function(R){if(R=_.n(R,_.V7l))if(R.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var A=R.flowEventNamespace,Y=R.flowEventType,P=R.flowType;P&&A&&Y&&_.Ty6(_.mb(A,Y,R.flowEventMetadata),P)}else{A=_.Q2();Y=R.flowEventNamespace;P=R.flowEventType;var E=R.flowType;E&&Y&&P&&_.T9(A,_.mb(Y,P,R.flowEventMetadata),E,R.flowNonce)}};
_.l.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.l.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.l.onTouchStart=function(){var R=_.GD();_.F9()&&_.ZL(R.JSC$13234_screenManager,{visualElement:R.ve})};
_.l.handleSelectLanguageCommand=function(R){if(R=_.n(R,nuj).hl){var A=_.Hk();A.set("hl",R);A.save();_.is().resolve(_.om).reload()}};
_.l.handleConfirmDialogEndpoint=function(R){(R=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(R))&&this.ytOpenPopupBehavior.openPopup(R)};
_.l.handleOpenPopupNavigationEndpoints=function(R,A){_.v("web_button_rework")&&(R=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(R))&&this.ytOpenPopupBehavior.openPopup(R,A)};
_.l.handleSaveCommandToSessionStorage=function(R){if(R=_.n(R,_.IxZ)){var A=R.key;A&&R.command&&window.sessionStorage.setItem(A,JSON.stringify(R.command))}};
_.l.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(R){R&&R.active&&R.active.postMessage({type:"refresh_shell"})}).catch(function(R){R.name!=="SecurityError"&&_.bj(R)})};
_.l.onDeviceThemeChanged=function(){var R=_.jI();_.rH(_.Hk(),185,R);_.Hk().save()};
_.l.handleYtRegisterPromoCommand=function(R){if(_.n(R,rQG)){var A=_.is().resolve(_.YH).getCurrentPage()||this.hostElement;f_i().registerPromoCommand(_.n(R,rQG),A)}};
_.l.onYtNavigateHomeAction=function(){if(!_.v("kevlar_miniplayer_navigate_home_from_app_killswitch")){var R,A,Y,P,E=(P=(R=this.topbarData)==null?void 0:(A=R.logo)==null?void 0:(Y=A.topbarLogoRenderer)==null?void 0:Y.endpoint)!=null?P:_.p_;this.ytComponentBehavior.resolveCommand(E)}};
_.l.onYtLocationCollectionCommand=function(R){SJF(_.n(R,F40))};
_.l.onYtGetLocationCommand=function(R){jZN(_.n(R,pXo),this)};
_.l.updateRenderGuideFromBinding=function(R){this.renderGuide=R.detail.value};
_.l.updateGuidePersistentAndVisibleFromBinding=function(R){this.guidePersistentAndVisible=R.detail.value};
_.l.updateMiniGuideVisibleFromBinding=function(R){this.miniGuideVisible=R.detail.value};
_.l.onThemeSelected=function(R,A){var Y=_.Hk(),P=R||A?R:_.jI(),E=(P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!P&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.fPk(_.T3(window.location.href));_.rH(0,165,R);_.rH(0,174,A);Y.save();E&&_.OC(this.hostElement,"yt-dark-mode-toggled-action",[P]);_.OC(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.l.getCurrentTheme=function(){return _.fo()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.bk()};
_.l.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.l.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.l.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.l.handleShowConsentPrimitive=function(R){var A=this,Y,P;return _.O(function(E){if(E.nextAddress==1){try{Y=(P=_.EJ())==null?void 0:P.getPlayerPromise()}catch(z){}return E.yield(wTi(R,Y),2)}_.OC(A.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.XH(E)})};
_.l.handleSelectActiveIdentityEndpointInternal=function(R){_.wa();R=_.n(R,_.KAG);if(R!=null&&R.supportedTokens){R=_.x(R.supportedTokens);for(var A=R.next();!A.done;A=R.next())A=A.value,A.accountSigninToken&&_.eI(A.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.l.handleUpdatePermissionRoleCommand=function(R){if(R=_.n(R,_.WUS)){var A;this.hasDelegation=!((A=_.n(R.renderer,_.KUA))==null||!A.status)}};
_.l.registerWithViewTransitionManager=function(){var R=_.is().resolve(_.z3(_.B8));if(R){var A,Y=(A=this.guide)==null?void 0:A.querySelector("#scrim"),P;A=(P=this.guide)==null?void 0:P.querySelector("#contentContainer");Y&&A&&R.isAnyTransitionEnabled&&(P={},R.viewTransitionCoordinator.registerElement(Y,(P.slide="app-drawer-scrim-page-transition",P["lockup-to-watch"]="app-drawer-scrim-page-transition",P["learning-journey"]="app-drawer-scrim-page-transition",P)),Y={},R.viewTransitionCoordinator.registerElement(A,
(Y.slide="app-drawer-container-page-transition",Y["lockup-to-watch"]="app-drawer-container-page-transition",Y["learning-journey"]="app-drawer-container-page-transition",Y)))}};
_.Yh.Object.defineProperties(ln.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.v("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Yh.Object.defineProperties(ln,{template:{configurable:!0,enumerable:!0,get:function(){if(hmm===void 0){var R=document.createElement("template");_.D(R,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<snackbar-container class="style-scope ytd-app"></snackbar-container>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n<template is="dom-if" if="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
R.content.insertBefore(_.G().content.cloneNode(!0),R.content.firstChild);hmm=R}R=hmm;return R}}});
ln.prototype.onOpenHotkeyDialog=ln.prototype.onOpenHotkeyDialog;ln.prototype.setFullscreen=ln.prototype.setFullscreen;ln.prototype.onAddElementToApp=ln.prototype.onAddElementToApp;ln.prototype.onDrawerIronSelect=ln.prototype.onDrawerIronSelect;ln.prototype.onGuideOpenButtonHover=ln.prototype.onGuideOpenButtonHover;ln.prototype.onRequestPanelModeChange=ln.prototype.onRequestPanelModeChange;ln.prototype.onPageDataUpdated=ln.prototype.onPageDataUpdated;ln.prototype.onPageChanged=ln.prototype.onPageChanged;
ln.prototype.onSetTheaterModeEnabled=ln.prototype.onSetTheaterModeEnabled;ln.prototype.updateMastheadData=ln.prototype.updateMastheadData;ln.prototype.onYtPageManagerAttached=ln.prototype.onYtPageManagerAttached;ln.prototype.observeGuideVisibility=ln.prototype.observeGuideVisibility;ln.prototype.guideIsVisibleButNotPersistentSelectorChanged=ln.prototype.guideIsVisibleButNotPersistentSelectorChanged;ln.prototype.isInlinePreviewEnabledChanged=ln.prototype.isInlinePreviewEnabledChanged;
ln.prototype.isWatchPageChanged=ln.prototype.isWatchPageChanged;ln.prototype.dispatchFrostedGlassMode=ln.prototype.dispatchFrostedGlassMode;_.C([_.U(_.Pf),_.k("design:type",Object)],ln.prototype,"ytdReduxBehavior",void 0);_.C([_.U(_.hi.YtEventForwardingBehavior),_.k("design:type",Object)],ln.prototype,"ytEventForwardingBehavior",void 0);_.C([_.U(_.jV.YtOpenPopupBehavior),_.k("design:type",Object)],ln.prototype,"ytOpenPopupBehavior",void 0);
_.C([_.U(_.fH.YtActionHandlerBehavior),_.k("design:type",Object)],ln.prototype,"ytActionHandlerBehavior",void 0);_.C([_.U({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.ZA.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.v("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var R;((R=this.actionRouterNode.hostElement)!=null?R:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var R;((R=this.actionRouterNode.hostElement)!=null?R:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(R){this.actionRouter_.handleAction(R.detail)}}),
_.k("design:type",Object)],ln.prototype,"ytActionRouterBehavior",void 0);_.C([_.U(omQ.YtdAppBehavior),_.k("design:type",Object)],ln.prototype,"ytdAppBehavior",void 0);_.C([_.U(_.bF.YtEndpointBehavior),_.k("design:type",Object)],ln.prototype,"ytEndpointBehavior",void 0);_.C([_.U(tlj.YtEndpointHandlerWithYpcBehavior),_.k("design:type",Object)],ln.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.C([_.U(oOi.YtLogYpcFlowCommandsBehavior),_.k("design:type",Object)],ln.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.C([_.U(_.u.YtRendererBehavior),_.k("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.C([_.U(_.iF.YtComponentBehavior),_.k("design:type",Object)],ln.prototype,"ytComponentBehavior",void 0);_.C([_.S({selector:_.RAm}),_.k("design:type",Object)],ln.prototype,"tabGesturesIsActive",void 0);_.C([_.S(),_.k("design:type",Boolean)],ln.prototype,"renderGuide",void 0);
_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"guidePersistentAndVisible",void 0);_.C([_.S({selector:_.d9f}),_.k("design:type",Boolean)],ln.prototype,"guideIsVisibleButNotPersistent",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"standalone",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"miniGuideVisible",void 0);
_.C([_.S({selector:_.E7k}),_.k("design:type",Number)],ln.prototype,"miniplayerPlaybackState",void 0);_.C([_.S({selector:_.BK,reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"miniplayerIsActive",void 0);_.C([_.S({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.k("design:type",Boolean)],ln.prototype,"isInlinePreviewEnabled",void 0);_.C([_.S(),_.k("design:type",Boolean)],ln.prototype,"isInlinePreviewDisabled",void 0);
_.C([_.S({reflectToAttribute:!0,value:function(){return _.CQ("START_IN_FULL_WINDOW_MODE")}}),
_.k("design:type",Boolean)],ln.prototype,"mastheadHidden",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"playerFullscreen",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ln.prototype,"deprecateFullerscreenUi",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"fullscreen",void 0);_.C([_.S({value:!1,reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"hideHeaderShadow",void 0);
_.C([_.S({value:{GUIDE_ALT_LABEL:_.vk("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.k("design:type",Object)],ln.prototype,"menuStrings",void 0);_.C([_.S({computed:"computeTopbarData(data)"}),_.k("design:type",Object)],ln.prototype,"topbarData",void 0);_.C([_.S({selector:_.RR8}),_.k("design:type",Boolean)],ln.prototype,"isWatchPage",void 0);_.C([_.S({selector:_.AdP,reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"isShortsPage",void 0);_.C([_.S({selector:function(R){return _.aa(R)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.k("design:type",Boolean)],ln.prototype,"isMiniAppPage",void 0);_.C([_.S({selector:function(R){return _.aa(R)==="WEB_PAGE_TYPE_BROWSE"}}),
_.k("design:type",Boolean)],ln.prototype,"isBrowsePage",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Boolean)],ln.prototype,"scrolling",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ln.prototype,"hasDelegation",void 0);_.C([_.S({reflectToAttribute:!0,value:!1}),_.k("design:type",Boolean)],ln.prototype,"guideScrolledByTouch",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ln.prototype,"darkerDarkTheme",void 0);
_.C([_.S(),_.k("design:type",Object)],ln.prototype,"isFrostedGlassInitialized",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ln.prototype,"frostedGlassExp",void 0);_.C([_.S({selector:function(R){return R.ui.chipBarIsSticky}}),
_.k("design:type",Boolean)],ln.prototype,"chipBarIsSticky",void 0);_.C([_.S({computed:"computeIsHomePage(isBrowsePage, data)"}),_.k("design:type",Boolean)],ln.prototype,"isHomePage",void 0);_.C([_.S({reflectToAttribute:!0}),_.k("design:type",Object)],ln.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.C([_.S(),_.k("design:type",Object)],ln.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.C([_.Uy("guide"),_.k("design:type",Object)],ln.prototype,"guide",void 0);
_.C([_.Uy("guide-service"),_.k("design:type",SmQ)],ln.prototype,"guideService",void 0);_.C([_.Uy("guide-inner-content"),_.k("design:type",HTMLDivElement)],ln.prototype,"guideInnerContent",void 0);_.C([_.S({selector:_.zRq}),_.k("design:type",String)],ln.prototype,"frostedGlassMode",void 0);
_.C([_.vZ("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"dispatchFrostedGlassMode",null);_.C([_.S({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.k("design:type",Object)],ln.prototype,"isFrostedGlassDisabled",void 0);
_.C([_.vZ("isWatchPage"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"isWatchPageChanged",null);_.C([_.X("isHomePage","chipBarIsSticky"),_.k("design:type",Boolean),_.k("design:paramtypes",[])],ln.prototype,"applyFrostedGlassToChipBar",null);_.C([_.S(),_.k("design:type",Object)],ln.prototype,"isChannelOrPlaylistPage",void 0);
_.C([_.Ul("isInlinePreviewEnabled"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"isInlinePreviewEnabledChanged",null);_.C([_.vZ("guideIsVisibleButNotPersistent"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.C([_.vZ("guidePersistentAndVisible","miniGuideVisible"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"observeGuideVisibility",null);_.C([_.Qa("attached"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ln.prototype,"onYtPageManagerAttached",null);_.C([_.vZ("data"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype",Promise)],ln.prototype,"updateMastheadData",null);
_.C([_.Qa("yt-set-theater-mode-enabled"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent,Object]),_.k("design:returntype")],ln.prototype,"onSetTheaterModeEnabled",null);_.C([_.Qa("yt-page-type-changed"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ln.prototype,"onPageChanged",null);_.C([_.Qa("yt-page-data-updated"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"onPageDataUpdated",null);
_.C([_.Qa("yt-request-panel-mode-change"),_.k("design:type",Function),_.k("design:paramtypes",[Event,Object]),_.k("design:returntype")],ln.prototype,"onRequestPanelModeChange",null);_.C([_.Qa("yt-guide-hover"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"onGuideOpenButtonHover",null);_.C([_.Qa("app-drawer-transitioned"),_.k("design:type",Function),_.k("design:paramtypes",[Event]),_.k("design:returntype")],ln.prototype,"onDrawerIronSelect",null);
_.C([_.Qa("yt-add-element-to-app"),_.k("design:type",Function),_.k("design:paramtypes",[CustomEvent]),_.k("design:returntype")],ln.prototype,"onAddElementToApp",null);_.C([_.Qa("yt-set-fullerscreen-styles"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"setFullscreen",null);_.C([_.Qa("yt-open-hotkey-dialog"),_.k("design:type",Function),_.k("design:paramtypes",[]),_.k("design:returntype")],ln.prototype,"onOpenHotkeyDialog",null);
_.C([_.F({is:"ytd-app"})],ln);_.EV().processSignal("eor");
_.aX();
}catch(e){_._DumpException(e)}
try{
_.Bv("NSzT5");
var QKi,ghF;_.WJ=function(R){var A=document.createElement("link");_.xU(A,R,"stylesheet");document.head.appendChild(A)};
_.jZ=function(R,A){var Y,P;return _.O(function(E){Y=document.createElement("div");Y.id=R.id;R.className&&(Y.className=R.className);P=R.element;if(!P)throw Error("Wj");if(R.location==="prepend")P.prepend(Y);else if(R.location==="appendChild")P.appendChild(Y);else if(R.location==="after")P.after(Y);else throw Error("Xj");return E.return(_.KQ(Y,A,"ah"))})};
_.bZ=function(R){var A;return _.O(function(Y){(A=document.getElementById(R))&&A.remove();_.XH(Y)})};
_.fh=function(R,A){var Y=document.querySelector(R);Y?A(Y):setTimeout(function(){_.fh(R,A)},1E3)};
_.vh0=function(R,A,Y){var P;_.O(function(E){if(E.nextAddress==1)return(P=document.getElementById(R))?E.jumpTo(2):E.yield(QKi(R,A,Y),2);if(P=document.getElementById(R))P.style.display="block";_.XH(E)})};
QKi=function(R,A,Y){return _.O(function(P){return P.return(new Promise(function(E){_.fh("div #panels",function(z){_.jZ({element:z,location:"appendChild",id:R,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+Y},A);E()})}))})};
ghF=function(){var R,A;(R=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||(A=R.closest("yt-button-view-model.ytd-menu-renderer"))==null||A.remove()};
_.D49=function(){_.bZ("creator_chatbots-entry-point");_.bZ("creator_chatbots-panel");_.WJ(nhG);_.fh("ytd-watch-metadata #top-level-buttons-computed",function(R){document.getElementById("creator_chatbots-entry-point")||(_.jZ({element:R,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.V(HOo,null)}),_.vh0("creator_chatbots-panel",function(){return _.V(r_N,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))});
_.fh("ytd-watch-metadata",function(R){ghF();(new MutationObserver(ghF)).observe(R,{childList:!0,subtree:!0})})};_.ph=_.E5(function(R){var A=R.text;var Y=R.onClick;var P=R.color;var E=R.backgroundColor;var z=R.buttonSize;var c=R.disabled;var M=R.iconName;var N=R.iconSize;R=R.className;var y=_.Qi(function(T){Y(T)}),m={};
return _.V("button",{class:_.To("ytpStandardButtonsHost",(m.ytpStandardButtonsLarge=function(){return(z==null?void 0:z())==="large"},m),R),
"on:click":y,style:_.nY({color:P,"background-color":E}),disabled:c}," ",_.V(_.J,{cond:M,then:function(){return _.V(_.H1,{className:"ytpStandardButtonsIconContainer",icon:M,size:N})}}),A)},"$g");_.U4i=_.E5(function(R){var A;return _.V("div",{class:_.To("ytprototypesEngagementPanelComponentHost",R.className),id:R.id},_.V("div",{class:_.To("ytprototypesEngagementPanelComponentEngagementPanelHeader",R.headerClassName)},_.V("div",null,R.header()),_.V("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.V("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(A=R.HeaderButton)==null?void 0:A.call(R)),_.V(_.ph,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var Y=R.id();if(Y=document.getElementById(Y))Y.style.display="none"}}))),_.V("div",{class:_.To("ytprototypesEngagementPanelComponentEngagementPanelContent",R.contentClassName),
style:function(){var Y;return"height: "+(((Y=R.height)==null?void 0:Y.call(R))||"800px")+";"}},R.content()))},"bh");var $4g=_.Z7(["https://portraits.google.com"]),XeN=_.Z7(["https://portraits.google.com/kimscott_vidcontexttests"]),SPQ=_.Z7(["https://labs-characters.teams.x20web.corp.google.com"]),IZ0=_.Jr($4g),Kr0=_.Jr(XeN),WrY=_.Jr(SPQ),r_N=_.E5(function(){var R=_.v("enable_creator_chatbots_extension_dev_server"),A=document.createElement("iframe"),Y=R?WrY:Kr0;_.l4k(A,1,Y);A.className="ytprotoCreatorChatbotsAppLabsIframe";A.allow="microphone; clipboard-read; clipboard-write self "+Y;var P=function(){var z;return _.O(function(c){if(c.nextAddress==
1)return c.yield(_.is().resolve(_.cT),2);(z=c.yieldResult)&&z.pauseVideo();_.XH(c)})},E=function(){var z,c,M;
return _.O(function(N){return N.nextAddress==1?N.yield(_.is().resolve(_.cT),2):(z=N.yieldResult)?N.return({video_id:(M=(c=z.getVideoData())==null?void 0:c.video_id)!=null?M:"",timestamp_sec:z.getCurrentTime().toString()}):N.return({})})};
window.addEventListener("message",function(z){var c,M,N,y,m,T;return _.O(function(Q){if(Q.nextAddress==1){c=R?WrY.toString():IZ0.toString();if(z.origin!==c)return console.warn("Received message from untrusted origin:",z.origin),Q.return();M=z.data;if(typeof M!=="object"||M===null||!M.action)return Q.return();if(M.action==="pause")return Q.yield(P(),0);if(M.action!=="getYouTubeContext"||!z.source)return Q.jumpTo(0);N=z.source;y=N.postMessage;m=JSON;T=m.stringify;return Q.yield(E(),7)}y.call(N,T.call(m,
{youTubeContext:Q.yieldResult}),{targetOrigin:z.origin});return Q.jumpTo(0)})});
_.zs({destination:window,iframe:A,origin:Y.toString(),channelName:"xdc1",onMessage:function(z){var c,M;return _.O(function(N){if(N.nextAddress==1){if(z.data.action==="pause")return N.yield(P(),0);if(z.data.action!=="getYouTubeContext")return N.jumpTo(0);c=z;M=c.reply;return N.yield(E(),5)}M.call(c,{youTubeContext:N.yieldResult});return N.jumpTo(0)})}});
return _.V("div",{class:"ytprotoCreatorChatbotsAppHost",style:"height: var(--ytd-watch-flexy-panel-max-height);"},_.V(_.U4i,{id:"creator_chatbots-panel",height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",header:function(){return _.V("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.V("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},
"Talk to the Creator"),_.V(_.Pl,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.V(_.ph,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.dZ(window,_.Cq(Y.toString()),"_blank")}})},
content:function(){return A}}))},"ch");var jKj=_.Z7(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]),nhG=_.Jr(jKj),HOo=_.E5(function(){var R=function(){_.vh0("creator_chatbots-panel",function(){return _.V(r_N,null)},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.V("div",{class:"ytd-menu-renderer"},_.V(_.SV,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:R}},
icon:function(){return _.V(_.H1,{icon:"SPARK"})}}))},"dh");
_.aX();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
